-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: split game1 proposal from walletFactory upgrade
- Loading branch information
Showing
12 changed files
with
226 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/builders/scripts/smart-wallet/build-game1-start.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @file Proposal Builder: Upgrade walletFactory | ||
* | ||
* Usage: | ||
* agoric run build-game1-start.js | ||
*/ | ||
|
||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
import { getManifestForGame1 } from '@agoric/smart-wallet/test/start-game1-proposal.js'; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */ | ||
export const game1ProposalBuilder = async ({ publishRef, install }) => { | ||
return harden({ | ||
sourceSpec: '@agoric/smart-wallet/test/start-game1-proposal.js', | ||
getManifestCall: [ | ||
getManifestForGame1.name, | ||
{ | ||
game1Ref: publishRef( | ||
install( | ||
'@agoric/smart-wallet/test/gameAssetContract.js', | ||
'../bundles/bundle-game1.js', | ||
{ persist: true }, | ||
), | ||
), | ||
}, | ||
], | ||
}); | ||
}; | ||
|
||
/** @type {DeployScriptFunction} */ | ||
export default async (homeP, endowments) => { | ||
const { writeCoreProposal } = await makeHelpers(homeP, endowments); | ||
await writeCoreProposal('start-game1', game1ProposalBuilder); | ||
}; |
35 changes: 35 additions & 0 deletions
35
packages/builders/scripts/smart-wallet/build-walletFactory-upgrade.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* @file Proposal Builder: Upgrade walletFactory | ||
* | ||
* Usage: | ||
* agoric run build-walletFactory-upgrade.js | ||
*/ | ||
|
||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
import { getManifestForUpgrade } from '@agoric/smart-wallet/src/proposals/upgrade-walletFactory-proposal.js'; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */ | ||
export const defaultProposalBuilder = async ({ publishRef, install }) => { | ||
return harden({ | ||
sourceSpec: | ||
'@agoric/smart-wallet/src/proposals/upgrade-walletFactory-proposal.js', | ||
getManifestCall: [ | ||
getManifestForUpgrade.name, | ||
{ | ||
walletFactoryRef: publishRef( | ||
install( | ||
'@agoric/smart-wallet/src/walletFactory.js', | ||
'../bundles/bundle-walletFactory.js', | ||
{ persist: true }, | ||
), | ||
), | ||
}, | ||
], | ||
}); | ||
}; | ||
|
||
/** @type {DeployScriptFunction} */ | ||
export default async (homeP, endowments) => { | ||
const { writeCoreProposal } = await makeHelpers(homeP, endowments); | ||
await writeCoreProposal('upgrade-walletFactory', defaultProposalBuilder); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.