Skip to content

Commit

Permalink
chore: add atom collateral proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed May 3, 2023
1 parent a3460bc commit c14f7df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cosmic-swingset/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ start-vaults-etc: $(INTER_PROTO)/gov-vaults-etc.js
EVAL_PERMIT=$(INTER_PROTO)/gov-vaults-etc-permit.json \
VOTE_PROPOSAL=$(VOTE_PROPOSAL) scenario2-core-eval scenario2-vote

add-atom-collateral: $(INTER_PROTO)/gov-add-atom-collateral.js
make EVAL_CODE=$(INTER_PROTO)/gov-add-atom-collateral.js \
EVAL_PERMIT=$(INTER_PROTO)/gov-add-atom-collateral-permit.json \
VOTE_PROPOSAL=$(VOTE_PROPOSAL) scenario2-core-eval scenario2-vote

gov-q:
$(AGCH) query gov proposals --output json | \
jq -c '.proposals[] | [.proposal_id,.voting_end_time,.status]'
Expand Down
4 changes: 4 additions & 0 deletions packages/inter-protocol/scripts/init-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
import { makeHelpers } from '@agoric/deploy-script-support';
import { objectMap } from '@agoric/internal';
import { defaultProposalBuilder as addCollateralProposalBuilder } from './add-collateral-core.js';

import {
getManifestForInterProtocol,
Expand Down Expand Up @@ -196,6 +197,9 @@ export default async (homeP, endowments) => {
writeCoreProposal('gov-vaults-etc', opts =>
mainProposalBuilder({ ...opts, wrapInstall: tool.wrapInstall }),
),
writeCoreProposal('gov-add-atom-collateral', opts =>
addCollateralProposalBuilder({ ...opts, wrapInstall: tool.wrapInstall }),
),
]);
await tool.saveCache();
};

0 comments on commit c14f7df

Please sign in to comment.