-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: builder script for replacing committee and charter
- Loading branch information
1 parent
cfe20f4
commit fff596d
Showing
2 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
packages/builders/scripts/inter-protocol/ec-changes-core.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 @@ | ||
/* global process */ | ||
|
||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
import { getManifestForReplaceCommitteeAndCharter } from '@agoric/inter-protocol/src/proposals/replaceCommitteeAndCharter'; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */ | ||
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => { | ||
return harden({ | ||
sourceSpec: | ||
'@agoric/inter-protocol/src/proposals/replaceCommitteeAndCharter.js', | ||
getManifestCall: [ | ||
getManifestForReplaceCommitteeAndCharter.name, | ||
{ | ||
...opts, | ||
economicCommitteeRef: publishRef( | ||
install( | ||
'@agoric/governance/src/committee.js', | ||
'@agoric/governance/bundles/bundle-committee.js', | ||
), | ||
), | ||
economicCharterRef: publishRef( | ||
install( | ||
'@agoric/inter-protocol/src/econCommitteeCharter.js', | ||
'@agoric/inter-protocol/bundles/bundle-econCommitteeCharter.js', | ||
), | ||
), | ||
}, | ||
], | ||
}); | ||
}; | ||
|
||
export default async (homeP, endowments) => { | ||
const { writeCoreEval } = await makeHelpers(homeP, endowments); | ||
await writeCoreEval('replace-committee-and-charter', 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