diff --git a/scripts/cosm/README.md b/scripts/cosm/README.md index 13c16ea5..07ea4583 100644 --- a/scripts/cosm/README.md +++ b/scripts/cosm/README.md @@ -78,3 +78,12 @@ You should get output matching the following: threshold: 0 pubkeys: [] ``` + +## Preset accounts + +1. Faucet
+ economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone
+ cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 +2. Unused: for testing account state; this account never changes balances or nonces
+ oyster design unusual machine spread century engine gravity focus cave carry slot
+ cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u diff --git a/scripts/cosm/deploy_erc20.js b/scripts/cosm/deploy_erc20.js index 9a6791d6..6199806f 100755 --- a/scripts/cosm/deploy_erc20.js +++ b/scripts/cosm/deploy_erc20.js @@ -26,6 +26,7 @@ const defaultFee = { const faucetMnemonic = "economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone"; const faucetAddress = "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6"; +const unusedAccount = "cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u"; async function uploadContract(client, pen, wasm) { const memo = "Upload ERC20 contract"; @@ -96,6 +97,10 @@ async function main() { address: faucetAddress, amount: "11", }, + { + address: unusedAccount, + amount: "12812345", + }, ], }; const instantiationResult = await instantiateContract(client, pen, codeId, initMsg); diff --git a/scripts/cosm/generate_template.sh b/scripts/cosm/generate_template.sh index d6f79123..9a448adc 100755 --- a/scripts/cosm/generate_template.sh +++ b/scripts/cosm/generate_template.sh @@ -10,13 +10,13 @@ source "$SCRIPT_DIR"/env rm -rf "$SCRIPT_DIR/template" mkdir "$SCRIPT_DIR/template" -# any any more addresses you want to fund in genesis below +# The usage of the accounts below is documented in README.md of this directory docker run --rm \ -e PASSWORD=my-secret-password \ --mount type=bind,source="$SCRIPT_DIR/template",target=/root \ "$REPOSITORY:$VERSION" \ ./setup.sh \ - cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 + cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u # The ./template folder is created by the docker daemon's user (root on Linux, current user # when using Docker Desktop on macOS), let's make it ours if needed