diff --git a/scripts/simapp/setup.sh b/scripts/simapp/setup.sh index 9e55095e..ff5d125f 100644 --- a/scripts/simapp/setup.sh +++ b/scripts/simapp/setup.sh @@ -18,6 +18,8 @@ echo "Creating genesis ..." simd init --chain-id "$CHAIN_ID" "$MONIKER" sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.simapp/config/genesis.json # staking/governance token is hardcoded in config, change this sed -i "s/\"port_id\": *\"transfer\"/\"port_id\": \"$TRANSFER_PORT\"/" "$HOME"/.simapp/config/genesis.json # allow custom ibc transfer port +# this is essential for sub-1s block times (or header times go crazy) +sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$HOME"/.simapp/config/genesis.json echo "Setting up validator ..." if ! simd keys show validator 2>/dev/null; then diff --git a/scripts/simapp/template/.simapp/366f3df3597b75f4e8dcee258fa0b071022cc022.address b/scripts/simapp/template/.simapp/366f3df3597b75f4e8dcee258fa0b071022cc022.address deleted file mode 100644 index d2a73451..00000000 --- a/scripts/simapp/template/.simapp/366f3df3597b75f4e8dcee258fa0b071022cc022.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0wOCAxNDozNDozNC4yMTE4MjA3NDQgKzAwMDAgVVRDIG09KzAuMTA3NzA2MjkwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiWi1wNExKSFc0aDBPRS1MXyJ9.DzoPByLMagEyNaQkQuUt1E3zNdfUsQ1BGDj9iosjuUzPXMRH_Yv6zw.AYVtd9Mxss3U0ZFu.NbxprKEUUX9l5fayaKkSUDz-cZe3_Cg8B0Z5sfPqR2kS9diP2j6XMEIBkvMUaAz0EvBb_6FW-Yu0rSMidv56ZuZ47EDGoLJKqp8hedLhKr7ZpNxzfy-qVFVsnpFC_d7il1ZPqZj8t6CJha8rwS_AgQvBf4acWMvjClOwhpWQHS8-8EepZ_qbK4nt4RCa67L5JVsJyiNtsZETTYn0Ys6Iu3rn9FFbL0c7aPjX4cQfHqDsAJgGm8Ddjmi_.cm2TRr0iIyY-A1NYaPKCaw \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/b3f8b0f41eb336f4a070d1992ab11752005632e2.address b/scripts/simapp/template/.simapp/b3f8b0f41eb336f4a070d1992ab11752005632e2.address new file mode 100644 index 00000000..12609c90 --- /dev/null +++ b/scripts/simapp/template/.simapp/b3f8b0f41eb336f4a070d1992ab11752005632e2.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTozNTozOS45NDU5NjcwMDkgKzAwMDAgVVRDIG09KzAuMDk0MzUwNjQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiOE1ENkJqLS15Qk9FSEJuXyJ9.WuJqyfG5VB98XESmeAAd7Qe4frsztVuuSoH5DW8Ui6dOdx2G2rrACw.kRzQVEC3Ob5chLSR.aDu11cwxY86tdg_AygsylzqYp6iRNxnovBtcITdzMU0D3z0SaOkjgfzxFceplC_vn21VsqFQ-vriW8Z8RQ4xT3Vueegef-DpfhwMkIGd0JsaqlGaC3wd8robkKjOirSY0u7AhjqRFtKNhoOy9wmJaxWIbjduMN9OH48NqzxM8IqjdXllojurwwjJet-mv5BUulxd-MenX9_1UXfJD_chInVrE1ylMLFGR5xrsRJ6pt8MjoqI2fNeH_2z.eG5pKBrkHy8OO91Aj793Bw \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/config/genesis.json b/scripts/simapp/template/.simapp/config/genesis.json index 05cdca4e..6df48a2c 100644 --- a/scripts/simapp/template/.simapp/config/genesis.json +++ b/scripts/simapp/template/.simapp/config/genesis.json @@ -6,7 +6,7 @@ { "@type": "/cosmos.auth.v1beta1.BaseAccount", "account_number": "0", - "address": "cosmos1xehnmu6e0d6lf6xuacjclg9swypzespzef9stv", + "address": "cosmos1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhzl4rg7p", "pub_key": null, "sequence": "0" }, @@ -180,7 +180,7 @@ ] }, { - "address": "cosmos1xehnmu6e0d6lf6xuacjclg9swypzespzef9stv", + "address": "cosmos1f7j7ryulwjfe9ljplvhtcaxa6wqgula3etktce", "coins": [ { "amount": "1000000000", @@ -193,7 +193,7 @@ ] }, { - "address": "cosmos1f7j7ryulwjfe9ljplvhtcaxa6wqgula3etktce", + "address": "cosmos1vkv9sfwaak76weyamqx0flmng2vuquxqcuqukh", "coins": [ { "amount": "1000000000", @@ -206,7 +206,7 @@ ] }, { - "address": "cosmos1vkv9sfwaak76weyamqx0flmng2vuquxqcuqukh", + "address": "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5", "coins": [ { "amount": "1000000000", @@ -219,7 +219,7 @@ ] }, { - "address": "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5", + "address": "cosmos106jwym4s9aujcmes26myzzwqsccw09sdm0v5au", "coins": [ { "amount": "1000000000", @@ -232,7 +232,7 @@ ] }, { - "address": "cosmos106jwym4s9aujcmes26myzzwqsccw09sdm0v5au", + "address": "cosmos14qemq0vw6y3gc3u3e0aty2e764u4gs5le3hada", "coins": [ { "amount": "1000000000", @@ -245,7 +245,7 @@ ] }, { - "address": "cosmos14qemq0vw6y3gc3u3e0aty2e764u4gs5le3hada", + "address": "cosmos142u9fgcjdlycfcez3lw8x6x5h7rfjlnfhpw2lx", "coins": [ { "amount": "1000000000", @@ -258,7 +258,7 @@ ] }, { - "address": "cosmos142u9fgcjdlycfcez3lw8x6x5h7rfjlnfhpw2lx", + "address": "cosmos1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhzl4rg7p", "coins": [ { "amount": "1000000000", @@ -442,7 +442,7 @@ }, "public_key": { "@type": "/cosmos.crypto.secp256k1.PubKey", - "key": "AhzV+8QSxROnzLCSt1m1UJFKVDd0WQDnuuEG7SDcUZeG" + "key": "A8zRRptdU4iURW4V9ZT4NdlHmrAjBGCInbBE/v4C03Cu" }, "sequence": "0" } @@ -450,7 +450,7 @@ }, "body": { "extension_options": [], - "memo": "d39b635fce85d35c65813a6899c375e2efdd8212@172.17.0.2:26656", + "memo": "55709ce4b190d810f266c2ab07ce99a8883b846f@172.17.0.2:26656", "messages": [ { "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", @@ -459,7 +459,7 @@ "max_rate": "0.200000000000000000", "rate": "0.100000000000000000" }, - "delegator_address": "cosmos1xehnmu6e0d6lf6xuacjclg9swypzespzef9stv", + "delegator_address": "cosmos1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhzl4rg7p", "description": { "details": "", "identity": "", @@ -470,9 +470,9 @@ "min_self_delegation": "1", "pubkey": { "@type": "/cosmos.crypto.ed25519.PubKey", - "key": "QNZE8wAsI9mHP3QEBga9AZ4wuehdjIgzdnDEDv5gmR0=" + "key": "TP4DgQaFWjKKxp+DFkvoA89VXdk9E/CBO9g16Pc+fsA=" }, - "validator_address": "cosmosvaloper1xehnmu6e0d6lf6xuacjclg9swypzespzua398l", + "validator_address": "cosmosvaloper1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhz6phajj", "value": { "amount": "3000000", "denom": "ustake" @@ -483,7 +483,7 @@ "timeout_height": "0" }, "signatures": [ - "lk/lTmxdDR2OqbgoxkrPy4QYkzyN+++3G9a1lyJquSk/uoWAi8gi4rxAv3Y3ILkqvEIbpS1/bLE48eOtNYiVKw==" + "w4uHdKCyWX0v9kT5+4aLp6X91X3lhNe47IxcwZGC0CURg3Gr10YNjpC6uddXvkpP3RmWhdvM7mvsuoo3G525NA==" ] } ] @@ -599,7 +599,7 @@ "block": { "max_bytes": "22020096", "max_gas": "-1", - "time_iota_ms": "1000" + "time_iota_ms": "10" }, "evidence": { "max_age_duration": "172800000000000", @@ -613,6 +613,6 @@ }, "version": {} }, - "genesis_time": "2021-03-08T14:34:34.046341871Z", + "genesis_time": "2021-03-10T15:35:39.799454492Z", "initial_height": "1" } diff --git a/scripts/simapp/template/.simapp/config/gentx/gentx-55709ce4b190d810f266c2ab07ce99a8883b846f.json b/scripts/simapp/template/.simapp/config/gentx/gentx-55709ce4b190d810f266c2ab07ce99a8883b846f.json new file mode 100644 index 00000000..211867a4 --- /dev/null +++ b/scripts/simapp/template/.simapp/config/gentx/gentx-55709ce4b190d810f266c2ab07ce99a8883b846f.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"simd-moniker","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhzl4rg7p","validator_address":"cosmosvaloper1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhz6phajj","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"TP4DgQaFWjKKxp+DFkvoA89VXdk9E/CBO9g16Pc+fsA="},"value":{"denom":"ustake","amount":"3000000"}}],"memo":"55709ce4b190d810f266c2ab07ce99a8883b846f@172.17.0.2:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A8zRRptdU4iURW4V9ZT4NdlHmrAjBGCInbBE/v4C03Cu"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["w4uHdKCyWX0v9kT5+4aLp6X91X3lhNe47IxcwZGC0CURg3Gr10YNjpC6uddXvkpP3RmWhdvM7mvsuoo3G525NA=="]} diff --git a/scripts/simapp/template/.simapp/config/gentx/gentx-d39b635fce85d35c65813a6899c375e2efdd8212.json b/scripts/simapp/template/.simapp/config/gentx/gentx-d39b635fce85d35c65813a6899c375e2efdd8212.json deleted file mode 100644 index e0303a27..00000000 --- a/scripts/simapp/template/.simapp/config/gentx/gentx-d39b635fce85d35c65813a6899c375e2efdd8212.json +++ /dev/null @@ -1 +0,0 @@ -{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"simd-moniker","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1xehnmu6e0d6lf6xuacjclg9swypzespzef9stv","validator_address":"cosmosvaloper1xehnmu6e0d6lf6xuacjclg9swypzespzua398l","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"QNZE8wAsI9mHP3QEBga9AZ4wuehdjIgzdnDEDv5gmR0="},"value":{"denom":"ustake","amount":"3000000"}}],"memo":"d39b635fce85d35c65813a6899c375e2efdd8212@172.17.0.2:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AhzV+8QSxROnzLCSt1m1UJFKVDd0WQDnuuEG7SDcUZeG"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["lk/lTmxdDR2OqbgoxkrPy4QYkzyN+++3G9a1lyJquSk/uoWAi8gi4rxAv3Y3ILkqvEIbpS1/bLE48eOtNYiVKw=="]} diff --git a/scripts/simapp/template/.simapp/config/node_key.json b/scripts/simapp/template/.simapp/config/node_key.json index c8f00e8f..03a65cce 100644 --- a/scripts/simapp/template/.simapp/config/node_key.json +++ b/scripts/simapp/template/.simapp/config/node_key.json @@ -1 +1 @@ -{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRFjcA/FLd+DfnB+cyS5cB+cgP37AnDVjIQc6H7KX1L8AofJlXA4H5GIcNaMd43cAxYwZOR8TjYRM3RFi1X5/Q=="}} \ No newline at end of file +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"SlaMxwrURsTgt1npmAVf89+2cX2+OmgaaTMJmA4YbMzg5jn12CvQ1CcvoQRjcUsW/ma/xVSZbOd7OrRCjOMy0Q=="}} \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/config/priv_validator_key.json b/scripts/simapp/template/.simapp/config/priv_validator_key.json index a54a5a89..4407592a 100644 --- a/scripts/simapp/template/.simapp/config/priv_validator_key.json +++ b/scripts/simapp/template/.simapp/config/priv_validator_key.json @@ -1,11 +1,11 @@ { - "address": "0662C4AFEC30214207EB9E8198902C8164476440", + "address": "DA9FE299B5ED6AB145DB1DE192C4D4A920E03C1D", "pub_key": { "type": "tendermint/PubKeyEd25519", - "value": "QNZE8wAsI9mHP3QEBga9AZ4wuehdjIgzdnDEDv5gmR0=" + "value": "TP4DgQaFWjKKxp+DFkvoA89VXdk9E/CBO9g16Pc+fsA=" }, "priv_key": { "type": "tendermint/PrivKeyEd25519", - "value": "CN1o3NQb42cbxL1ofNPyQ8Op9qnbeFX+3CBFWxbswAlA1kTzACwj2Yc/dAQGBr0BnjC56F2MiDN2cMQO/mCZHQ==" + "value": "V5p6K3kYrM+ZJ1Qwu9lyn5Bvx5fuYAfXCpr+uDMcQVFM/gOBBoVaMorGn4MWS+gDz1Vd2T0T8IE72DXo9z5+wA==" } } \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/keyhash b/scripts/simapp/template/.simapp/keyhash index b09fba69..612056c7 100755 --- a/scripts/simapp/template/.simapp/keyhash +++ b/scripts/simapp/template/.simapp/keyhash @@ -1 +1 @@ -$2a$10$Yj6qu35kxkIeNO0p1lcG5Obj..fe9mvp5VgD2Q3galiX/PvOkzHW. \ No newline at end of file +$2a$10$F4jP.tpLb2nc0FWuO8KX1e6kL2.iZrZV4lwgilCl/rUOSpPk7ZyyS \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/validator.info b/scripts/simapp/template/.simapp/validator.info index 0028776a..f987657e 100644 --- a/scripts/simapp/template/.simapp/validator.info +++ b/scripts/simapp/template/.simapp/validator.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0wOCAxNDozNDozNC4yMDY3OTgzMzcgKzAwMDAgVVRDIG09KzAuMTAyNjgzODgwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiaTJiYm44aHRseVN0ck9xVyJ9.0UpcXTMfvSxjtcVv3I11o2D7jdo3oMlhXeSv4mZEXvpRWOs62PV6_g.FkDgJ_PIUCHy_LYt.-wColJPADEsjQ9mFnhG0Sln_5ULSMK0W9CBilhfYl1BCEHf3G0hLsV4bXIs6AHMn9C84OLhclUdp_UVf9v5Qgs8K8Hea8mSjyYIrbwkJAJ03V3ZXPmY7Ce8aWs1RtsmLUOEJXGPtfa96gvGtjuMU6dLyLanu_B6ygUzjnc0-smv9DSw-aHr3wWnZLe8KGNLbx7oJOPTbR-FWwip2teowMDLNfz5iXI16qQg1crmgNLLr2Mu674odletqNCeYOFY5C4vXSCR-PuuAZB4rttrp75llc6MIn9FA_MTnvrjWiv5zxuxqcKHWFh-ccCbT-py832Wfn5dPkr32lzRV2iehE49EQanDFH-EAeitJzOpcP4Au4hF.4ES5oMCnxte0ElojzjYDxg \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTozNTozOS45NDE4ODg0MzEgKzAwMDAgVVRDIG09KzAuMDkwMjcyMDg1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiT3d3Rm5hbU9xMnB4RVhEUiJ9.0o_Je_yulaEEdml1n1TlnzcEwu52A7DJ3FvQPZ5_FhYWmgIP41CzQw.yL9ugvLKh4jUxR22.dEM-c_XPFpCoZQ0yEi_W4q7maewYdX_r4DSm_MgfkALvIPkTA4Krtkrdu8WG6POKjL2x4sfVMeMbOqmXbaP3QETlkC7z8Ld4o_PyAgd9-WA-W53QJEp4HYr8pFkJp3ENuxQRr5QzpnxloK6CQ5F2Tyd71Zv9xkER0XKksydVoTvd-4bp3KSf2xaXQdLrJqMtpwS0vHZ-FfBW3VCTEa7rPaFdzMQI6KNiS2uNNyRaWxZLHkLxWk_mEGjNf-6MFoTAf2iwb5E2TiRvC1FhUSY47Cx_mzrrOgj5KOjeLATht7Cc6UNGP5jjpLgwtzX6iz86pSX7GQbMmH-07yOUm4Y-2Wrjf4jo28fQTG0e3aVdbfunXP5d.mQqpr04f2hGJEXaGR6pZVg \ No newline at end of file diff --git a/scripts/simapp/template/setup.sh b/scripts/simapp/template/setup.sh index 9e55095e..ff5d125f 100755 --- a/scripts/simapp/template/setup.sh +++ b/scripts/simapp/template/setup.sh @@ -18,6 +18,8 @@ echo "Creating genesis ..." simd init --chain-id "$CHAIN_ID" "$MONIKER" sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.simapp/config/genesis.json # staking/governance token is hardcoded in config, change this sed -i "s/\"port_id\": *\"transfer\"/\"port_id\": \"$TRANSFER_PORT\"/" "$HOME"/.simapp/config/genesis.json # allow custom ibc transfer port +# this is essential for sub-1s block times (or header times go crazy) +sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$HOME"/.simapp/config/genesis.json echo "Setting up validator ..." if ! simd keys show validator 2>/dev/null; then diff --git a/scripts/wasmd/generate_template.sh b/scripts/wasmd/generate_template.sh index dd49d7ec..b11218ef 100755 --- a/scripts/wasmd/generate_template.sh +++ b/scripts/wasmd/generate_template.sh @@ -12,13 +12,17 @@ mkdir "$SCRIPT_DIR/template" export CHAIN_ID=wasmd-1 +# TODO: go back to just using ./setup_wasmd.sh and not mounting scripts dir +# once https://github.com/CosmWasm/wasmd/pull/453 is merged and in our CI image + # The usage of the accounts below is documented in README.md of this directory docker run --rm \ -e PASSWORD=my-secret-password \ -e CHAIN_ID \ --mount type=bind,source="$SCRIPT_DIR/template",target=/root \ + --mount type=bind,source="$SCRIPT_DIR/scripts/setup_wasmd.sh",target=/opt/setup_wasmd.sh \ "$REPOSITORY:$VERSION" \ - ./setup_wasmd.sh \ + /opt/setup_wasmd.sh \ wasm1pkptre7fdkl6gfrzlesjjvhxhlc3r4gm32kke3 wasm10dyr9899g6t0pelew4nvf4j5c3jcgv0r5d3a5l wasm1xy4yqngt0nlkdcenxymg8tenrghmek4n3u2lwa wasm142u9fgcjdlycfcez3lw8x6x5h7rfjlnfaallkd wasm1hsm76p4ahyhl5yh3ve9ur49r5kemhp2r93f89d \ wasm14qemq0vw6y3gc3u3e0aty2e764u4gs5lndxgyk wasm1hhg2rlu9jscacku2wwckws7932qqqu8xm5ca8y wasm1xv9tklw7d82sezh9haa573wufgy59vmwnxhnsl wasm17yg9mssjenmc3jkqth6ulcwj9cxujrxxg9nmzk wasm1f7j7ryulwjfe9ljplvhtcaxa6wqgula3nh873j \ wasm1lvrwcvrqlc5ktzp2c4t22xgkx29q3y83426at5 wasm1vkv9sfwaak76weyamqx0flmng2vuquxqjq3flu wasm106jwym4s9aujcmes26myzzwqsccw09sd3nap5h wasm1c7wpeen2uv8thayf7g8q2rgpm29clj0dzlu7t9 wasm1mjxpv9ft30wer7ma7kwfxhm42l379xuttrjcl3 \ diff --git a/scripts/wasmd/scripts/setup_wasmd.sh b/scripts/wasmd/scripts/setup_wasmd.sh new file mode 100755 index 00000000..9b07538f --- /dev/null +++ b/scripts/wasmd/scripts/setup_wasmd.sh @@ -0,0 +1,33 @@ +#!/bin/sh +#set -o errexit -o nounset -o pipefail + +PASSWORD=${PASSWORD:-1234567890} +STAKE=${STAKE_TOKEN:-ustake} +FEE=${FEE_TOKEN:-ucosm} +CHAIN_ID=${CHAIN_ID:-testing} +MONIKER=${MONIKER:-node001} + +wasmd init --chain-id "$CHAIN_ID" "$MONIKER" +# staking/governance token is hardcoded in config, change this +sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.wasmd/config/genesis.json +# this is essential for sub-1s block times (or header times go crazy) +sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$HOME"/.wasmd/config/genesis.json + +if ! wasmd keys show validator; then + (echo "$PASSWORD"; echo "$PASSWORD") | wasmd keys add validator +fi +# hardcode the validator account for this instance +echo "$PASSWORD" | wasmd add-genesis-account validator "1000000000$STAKE,1000000000$FEE" + +# (optionally) add a few more genesis accounts +for addr in "$@"; do + echo $addr + wasmd add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE" +done + +# submit a genesis validator tx +## Workraround for https://github.com/cosmos/cosmos-sdk/issues/8251 +(echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | wasmd gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" --amount="250000000$STAKE" +## should be: +# (echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | wasmd gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" +wasmd collect-gentxs diff --git a/scripts/wasmd/template/.wasmd/48f8006f4b3facd12af4b186331861119efc97c5.address b/scripts/wasmd/template/.wasmd/48f8006f4b3facd12af4b186331861119efc97c5.address new file mode 100644 index 00000000..6afd40a5 --- /dev/null +++ b/scripts/wasmd/template/.wasmd/48f8006f4b3facd12af4b186331861119efc97c5.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTo1NDo1My45NDQ5OTQyMTEgKzAwMDAgVVRDIG09KzAuMDk0ODY5MTU1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRGd5cUxsMXlUbnIxVTE0QSJ9.HrC0vdXsaG09MLmPanGGh4OjwWeN_Z8LYdD13_gIlgtHAErkq-BNmQ.SLcgh1o1JYlC4Wox.6MD_HwIH5ber5XVdsdbKXyOhwR8g47PKbA4BhZ8F2kAQ73rdcadHf8tMrw9E2q_Fx_sDIn58Fxx3VrRAhrDZ7dyWBMk3Hi828Fn495Z6jzQkOrpE7c0hV8tZPZ9ocVEO_raynE0hAE8Y2tEVpqQr6MpRC-sNNf8pN2fBFp8R8fS3dJNC-Be9LFts0fB5eV-dJ40p5r7VfMArZLeum6EDfLY27eXuCvKDmgmJgyHYq48fkCcxiybtD84e.mLBRNAGl1HHcnVJ-PRaFUA \ No newline at end of file diff --git a/scripts/wasmd/template/.wasmd/8a0ef791ebea0b46d9042d7f9e866a55bcefe061.address b/scripts/wasmd/template/.wasmd/8a0ef791ebea0b46d9042d7f9e866a55bcefe061.address deleted file mode 100644 index ad88f8a9..00000000 --- a/scripts/wasmd/template/.wasmd/8a0ef791ebea0b46d9042d7f9e866a55bcefe061.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0wMSAxNTo0NToyMi41NDU1MDM2NDcgKzAwMDAgVVRDIG09KzAuMDk0MTI5MTcwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiU0NoT3VBZmRCTUJDVFVHOSJ9.C4L3jq4W8H7WPQjmTdtkgHOsS8q8s9uu4cXkRicYjYZfn0g1_PrYTA.X6YAhha-QOenxbOf.h1nDJ0ikvxDhWA5Dny-ZE8Q2gJ6chTNEML3b0CCnPAfbJloe3gAw8ie3C1eBd2QulnWXKdRA6WvyXrNFIuACnbm7gQfFfVQvAbHouRlFPH16fEsAVy_QOT_BeDZogfilPvQ-NFW8oSmWKZJXlxLx1mZd0fR2J2sbP7VSmwbkITtOs4bgIpvb5JN9EF16KKzfr7KBl8SL4VBtY0FZOVu0OqIt-f41fAw5Rb2KSUo9T9kiaMnzJgo9Gcxc.5smMuYscZljHM2TXCl4Hhg \ No newline at end of file diff --git a/scripts/wasmd/template/.wasmd/config/genesis.json b/scripts/wasmd/template/.wasmd/config/genesis.json index 3a2f51e4..629c02bb 100644 --- a/scripts/wasmd/template/.wasmd/config/genesis.json +++ b/scripts/wasmd/template/.wasmd/config/genesis.json @@ -6,7 +6,7 @@ { "@type": "/cosmos.auth.v1beta1.BaseAccount", "account_number": "0", - "address": "wasm13g800y0tag95dkgy94leapn22k7wlcrpfk9u0e", + "address": "wasm1fruqqm6t87kdz2h5kxrrxxrpzx00e979vrtat9", "pub_key": null, "sequence": "0" }, @@ -335,7 +335,7 @@ ] }, { - "address": "wasm1f3pws3ztnp3s4nn5zxqdrl9vlqv5avkq3rjfe7", + "address": "wasm1fruqqm6t87kdz2h5kxrrxxrpzx00e979vrtat9", "coins": [ { "amount": "1000000000", @@ -348,7 +348,7 @@ ] }, { - "address": "wasm1f7j7ryulwjfe9ljplvhtcaxa6wqgula3nh873j", + "address": "wasm1f3pws3ztnp3s4nn5zxqdrl9vlqv5avkq3rjfe7", "coins": [ { "amount": "1000000000", @@ -361,7 +361,7 @@ ] }, { - "address": "wasm12zejt8d9xl70jd2333p4p265m2nr9h8g6pgmly", + "address": "wasm1f7j7ryulwjfe9ljplvhtcaxa6wqgula3nh873j", "coins": [ { "amount": "1000000000", @@ -374,7 +374,7 @@ ] }, { - "address": "wasm1vkv9sfwaak76weyamqx0flmng2vuquxqjq3flu", + "address": "wasm12zejt8d9xl70jd2333p4p265m2nr9h8g6pgmly", "coins": [ { "amount": "1000000000", @@ -387,7 +387,7 @@ ] }, { - "address": "wasm10dyr9899g6t0pelew4nvf4j5c3jcgv0r5d3a5l", + "address": "wasm1vkv9sfwaak76weyamqx0flmng2vuquxqjq3flu", "coins": [ { "amount": "1000000000", @@ -400,7 +400,7 @@ ] }, { - "address": "wasm106jwym4s9aujcmes26myzzwqsccw09sd3nap5h", + "address": "wasm10dyr9899g6t0pelew4nvf4j5c3jcgv0r5d3a5l", "coins": [ { "amount": "1000000000", @@ -413,7 +413,7 @@ ] }, { - "address": "wasm13g800y0tag95dkgy94leapn22k7wlcrpfk9u0e", + "address": "wasm106jwym4s9aujcmes26myzzwqsccw09sd3nap5h", "coins": [ { "amount": "1000000000", @@ -653,7 +653,7 @@ }, "public_key": { "@type": "/cosmos.crypto.secp256k1.PubKey", - "key": "A6HP21v9IRo1OC5SycIsnciCeKYG/9NW4fp0Ol73lC5f" + "key": "AmLwbyN+bZbvJBK+OUkxhiEe7crnTGboX2mt59I9BJxk" }, "sequence": "0" } @@ -661,7 +661,7 @@ }, "body": { "extension_options": [], - "memo": "b28817cd65bc4abd3f4e65a7388194215aa39642@172.17.0.2:26656", + "memo": "223486d74b7095ad678a1cdc6f343d7c98cec9d2@172.17.0.3:26656", "messages": [ { "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", @@ -670,7 +670,7 @@ "max_rate": "0.200000000000000000", "rate": "0.100000000000000000" }, - "delegator_address": "wasm13g800y0tag95dkgy94leapn22k7wlcrpfk9u0e", + "delegator_address": "wasm1fruqqm6t87kdz2h5kxrrxxrpzx00e979vrtat9", "description": { "details": "", "identity": "", @@ -681,9 +681,9 @@ "min_self_delegation": "1", "pubkey": { "@type": "/cosmos.crypto.ed25519.PubKey", - "key": "40yKSAQZLZwMtbOWEaE3kWfMGqFc6iuy2CafP9kbxvw=" + "key": "kkRh/LhgYjgkD7NrsnOCqB9llaf9OOWvYDFUpW+4cSY=" }, - "validator_address": "wasmvaloper13g800y0tag95dkgy94leapn22k7wlcrpu2sqpr", + "validator_address": "wasmvaloper1fruqqm6t87kdz2h5kxrrxxrpzx00e979el7p9l", "value": { "amount": "250000000", "denom": "ustake" @@ -694,7 +694,7 @@ "timeout_height": "0" }, "signatures": [ - "D0n+Pi49/6vr5EwWXunxzbwa/aBO20xcjTfplXQKzI0gmyTXfV76u3WQ0Cby6ABQR6yDKnWD7YeQ+9hTCMjHTA==" + "PlTt6F/5GIlYKl8cQ4Vq8eZd123j6J/VOWv2SYrX4KRLrnnxO7paTFmI3bYdiLpCmiVoZ1EOxcwfTRY8di+uYg==" ] } ] @@ -824,7 +824,7 @@ "block": { "max_bytes": "22020096", "max_gas": "-1", - "time_iota_ms": "1000" + "time_iota_ms": "10" }, "evidence": { "max_age_duration": "172800000000000", @@ -838,6 +838,6 @@ }, "version": {} }, - "genesis_time": "2021-03-01T15:45:22.408350416Z", + "genesis_time": "2021-03-10T15:54:53.773607451Z", "initial_height": "1" } diff --git a/scripts/wasmd/template/.wasmd/config/gentx/gentx-223486d74b7095ad678a1cdc6f343d7c98cec9d2.json b/scripts/wasmd/template/.wasmd/config/gentx/gentx-223486d74b7095ad678a1cdc6f343d7c98cec9d2.json new file mode 100644 index 00000000..342fc7b9 --- /dev/null +++ b/scripts/wasmd/template/.wasmd/config/gentx/gentx-223486d74b7095ad678a1cdc6f343d7c98cec9d2.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"node001","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"wasm1fruqqm6t87kdz2h5kxrrxxrpzx00e979vrtat9","validator_address":"wasmvaloper1fruqqm6t87kdz2h5kxrrxxrpzx00e979el7p9l","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"kkRh/LhgYjgkD7NrsnOCqB9llaf9OOWvYDFUpW+4cSY="},"value":{"denom":"ustake","amount":"250000000"}}],"memo":"223486d74b7095ad678a1cdc6f343d7c98cec9d2@172.17.0.3:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AmLwbyN+bZbvJBK+OUkxhiEe7crnTGboX2mt59I9BJxk"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["PlTt6F/5GIlYKl8cQ4Vq8eZd123j6J/VOWv2SYrX4KRLrnnxO7paTFmI3bYdiLpCmiVoZ1EOxcwfTRY8di+uYg=="]} diff --git a/scripts/wasmd/template/.wasmd/config/gentx/gentx-b28817cd65bc4abd3f4e65a7388194215aa39642.json b/scripts/wasmd/template/.wasmd/config/gentx/gentx-b28817cd65bc4abd3f4e65a7388194215aa39642.json deleted file mode 100644 index baf37f59..00000000 --- a/scripts/wasmd/template/.wasmd/config/gentx/gentx-b28817cd65bc4abd3f4e65a7388194215aa39642.json +++ /dev/null @@ -1 +0,0 @@ -{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"node001","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"wasm13g800y0tag95dkgy94leapn22k7wlcrpfk9u0e","validator_address":"wasmvaloper13g800y0tag95dkgy94leapn22k7wlcrpu2sqpr","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"40yKSAQZLZwMtbOWEaE3kWfMGqFc6iuy2CafP9kbxvw="},"value":{"denom":"ustake","amount":"250000000"}}],"memo":"b28817cd65bc4abd3f4e65a7388194215aa39642@172.17.0.2:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A6HP21v9IRo1OC5SycIsnciCeKYG/9NW4fp0Ol73lC5f"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["D0n+Pi49/6vr5EwWXunxzbwa/aBO20xcjTfplXQKzI0gmyTXfV76u3WQ0Cby6ABQR6yDKnWD7YeQ+9hTCMjHTA=="]} diff --git a/scripts/wasmd/template/.wasmd/config/node_key.json b/scripts/wasmd/template/.wasmd/config/node_key.json index c759aa30..67f746aa 100644 --- a/scripts/wasmd/template/.wasmd/config/node_key.json +++ b/scripts/wasmd/template/.wasmd/config/node_key.json @@ -1 +1 @@ -{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"OTJbYHoB1AT9h6t9RZ83TokCiYqPIzQSv7kacTzV0PwAlYYbDroyhGochOjL6D68cB9jjV22IBpC9hpAvF9nzg=="}} \ No newline at end of file +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"y4yBMGx97kBbeWC4lJ6HoG1DC6Jc7cI7K6/QKhMJizHdOEaUgS1ED+B/VBfkJ5fpTFDVBLmKdfZM/nlcpNdnxw=="}} \ No newline at end of file diff --git a/scripts/wasmd/template/.wasmd/config/priv_validator_key.json b/scripts/wasmd/template/.wasmd/config/priv_validator_key.json index 315c7977..fcb68e48 100644 --- a/scripts/wasmd/template/.wasmd/config/priv_validator_key.json +++ b/scripts/wasmd/template/.wasmd/config/priv_validator_key.json @@ -1,11 +1,11 @@ { - "address": "12806835D9CC952018437707C0D546CBFA227538", + "address": "53286087605D9B5A58B5183DB024ED17C5FA1F0C", "pub_key": { "type": "tendermint/PubKeyEd25519", - "value": "40yKSAQZLZwMtbOWEaE3kWfMGqFc6iuy2CafP9kbxvw=" + "value": "kkRh/LhgYjgkD7NrsnOCqB9llaf9OOWvYDFUpW+4cSY=" }, "priv_key": { "type": "tendermint/PrivKeyEd25519", - "value": "AkrvchX9zOoqBeTWZ2p70jm7X/nmeKmWo7Fwv5hlo1XjTIpIBBktnAy1s5YRoTeRZ8waoVzqK7LYJp8/2RvG/A==" + "value": "hr7OFfBOvu5YRMroP7CJN0HfoxzMlCyR4xXUoLPWa96SRGH8uGBiOCQPs2uyc4KoH2WVp/045a9gMVSlb7hxJg==" } } \ No newline at end of file diff --git a/scripts/wasmd/template/.wasmd/keyhash b/scripts/wasmd/template/.wasmd/keyhash index dc133659..9088994e 100755 --- a/scripts/wasmd/template/.wasmd/keyhash +++ b/scripts/wasmd/template/.wasmd/keyhash @@ -1 +1 @@ -$2a$10$IUE33WFNByfnBjwx1beKieBq.ogKtA0EaU6I7nFNZsBgByPk0LDRy \ No newline at end of file +$2a$10$VFjVtnNpzw.Nk4Chgl3L2ewkAbjVngJ343DWICaiZPG8mxSEN938u \ No newline at end of file diff --git a/scripts/wasmd/template/.wasmd/validator.info b/scripts/wasmd/template/.wasmd/validator.info index c160825c..41e1b639 100644 --- a/scripts/wasmd/template/.wasmd/validator.info +++ b/scripts/wasmd/template/.wasmd/validator.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0wMSAxNTo0NToyMi41NDEzMzgxNTQgKzAwMDAgVVRDIG09KzAuMDg5OTYzNjk3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiUVl3SFpPWGdlckVnajUwRCJ9.af5PSe731S0XlOnJ1rHOTxbn_944EvHG3ZK6t3Uag04yvdE2W5cvEg.Oe0huIWfGaw8b3Si.fuwWHON6GibkpDTSiamhDQOwbLDdYlF08Wy_h7CepftYtFZCZDxGAZ5yT2G3dPXPr0Fwf916yOaWu0AWijYP5IlarvfaFNrZFMyT7xplL8VmWMPlom4kLEBZw6b0SEt3tifSuynaeeFHFHj_pKvNXYLYwKG6TRFCnIgMQW-5BnVIsBfmUe7TIFmxqBjskG7ZF7SU08wHhMEwlZbZadlpGn8v84TV8zXIFc4fvEV4VZzfogekl4B2Haxl9fL4u1SETYKtIxaLbkv9LuO8hw1Wawm97Id2GzwS2lFePB4zndvGkmzUCnZFDtfAKxtasxIljTtxKbaF-rzJcN2phgbbFgZoGL8pV2qKMaU7XqI6Tp3qnxGb.iPFw8OeHU66571l9FhSO0A \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTo1NDo1My45NDA2OTUzNDEgKzAwMDAgVVRDIG09KzAuMDkwNTcwMjgxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRDFtSHR5elFDYzJrTWg5MyJ9.Ouo_f5DDL7YCsTQFU9VGh_qiipGpKEGBYJh4rUcM4-Wazm9pYIvt0Q.GQ9pvd-RMBONZ6Vt.azR6zA2UupIhDCfQ1vI7ydom-dH1Dc037u54hpQSIVeR0xxYogZufhmXKrM9oHxTHtHnU3l6GM4SZ3G9ToL3WiqlmI4XFzf4GUKg_v1c4yMIPfaDFVDSvCarYcuQIzDT1i69niqH6ZTFMzzI2c378c_E_-6TsPo3LY1muY-_Gbdz3qVPYTYFbdVBnAWzbJd5cSvblRhleo5mmYLwebS2vLsu3L-TJVlFtddBpj_SbtYP3JusiDEEL8mUucGLzwwNCSwWGC1IhuGvrr5oPk1D9WXdHIIbKu3qT7sxD05Pk4SuxnbUVOi9jXxuP34QShzWZl5VFvaWk5y3eCrajarMO48o_v7y_nDGD96LNahG1BGdv-a6.FDMmD8BQBRkHuSn5i-jX4A \ No newline at end of file