Skip to content

Commit 04b004c

Browse files
committed
fix(agoric-cli): hardcode vpurse genesis state with faucet address
TODO: allow specifying this via set-defaults command-line args.
1 parent 8105589 commit 04b004c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/agoric-cli/lib/chain-config.js

+15
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,21 @@ export function finishCosmosGenesis({ genesisJson, exportedGenesisJson }) {
124124
genesis.app_state.mint.params.inflation_rate_change = '0.0';
125125
genesis.app_state.mint.params.inflation_min = '0.0';
126126

127+
/*
128+
FIXME: Allow these to be configurable.
129+
- name: faucet
130+
type: local
131+
address: agoric1hr29lkgsdzdr0jdpa0tfzjgrm0vnd339qde52l
132+
pubkey: agoricpub1addwnpepqw0aeejelzrmy9wn0tp9zcs70jf2d0jw0ycyt6pc4a92fmss9uv4g5e0n9y
133+
mnemonic: ""
134+
threshold: 0
135+
pubkeys: []
136+
*/
137+
genesis.app_state.vpurse.bootstrap_address =
138+
'agoric1hr29lkgsdzdr0jdpa0tfzjgrm0vnd339qde52l';
139+
genesis.app_state.vpurse.bootstrap_value = `${50000n * 10n ** 6n}`;
140+
genesis.app_state.vpurse.donation_value = `${5n * 10n ** 6n}`;
141+
127142
// Set the denomination for different modules.
128143
genesis.app_state.mint.params.mint_denom = MINT_DENOM;
129144
genesis.app_state.crisis.constant_fee.denom = MINT_DENOM;

0 commit comments

Comments
 (0)