Skip to content

Commit

Permalink
fix(agoric-cli): hardcode vpurse genesis state with faucet address
Browse files Browse the repository at this point in the history
TODO: allow specifying this via set-defaults command-line args.
  • Loading branch information
michaelfig committed May 1, 2021
1 parent 8105589 commit 04b004c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/agoric-cli/lib/chain-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ export function finishCosmosGenesis({ genesisJson, exportedGenesisJson }) {
genesis.app_state.mint.params.inflation_rate_change = '0.0';
genesis.app_state.mint.params.inflation_min = '0.0';

/*
FIXME: Allow these to be configurable.
- name: faucet
type: local
address: agoric1hr29lkgsdzdr0jdpa0tfzjgrm0vnd339qde52l
pubkey: agoricpub1addwnpepqw0aeejelzrmy9wn0tp9zcs70jf2d0jw0ycyt6pc4a92fmss9uv4g5e0n9y
mnemonic: ""
threshold: 0
pubkeys: []
*/
genesis.app_state.vpurse.bootstrap_address =
'agoric1hr29lkgsdzdr0jdpa0tfzjgrm0vnd339qde52l';
genesis.app_state.vpurse.bootstrap_value = `${50000n * 10n ** 6n}`;
genesis.app_state.vpurse.donation_value = `${5n * 10n ** 6n}`;

// Set the denomination for different modules.
genesis.app_state.mint.params.mint_denom = MINT_DENOM;
genesis.app_state.crisis.constant_fee.denom = MINT_DENOM;
Expand Down

0 comments on commit 04b004c

Please sign in to comment.