From 4cd6832a731660e56744658e57e6088cd430dc15 Mon Sep 17 00:00:00 2001 From: mertmalaz Date: Wed, 30 Nov 2022 00:58:19 +0300 Subject: [PATCH 1/2] rename wasmcli to wasmd --- tutorials/governance.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tutorials/governance.md b/tutorials/governance.md index 294eecffa..99b0c807b 100644 --- a/tutorials/governance.md +++ b/tutorials/governance.md @@ -74,18 +74,18 @@ There are two options to get the sample contract: Deployment command is down below: ```shell -wasmcli tx gov submit-proposal wasm-store cw1-subkeys.wasm \ +wasmd tx gov submit-proposal wasm-store cw1-subkeys.wasm \ --source "https://github.com/CosmWasm/cw-plus" \ —-builder "cosmwasm/workspace-optimizer:0.10.3" \ —-title "Enable cw1-subkeys functionality" \ —-description "DAO and DSOs need this!" \ —-instantiate-everybody "true" \ - —-run-as $(wasmcli keys show -a account) + —-run-as $(wasmd keys show -a account) —-deposit "10000umuon" --from account ``` -If you run `wasmcli tx gov submit-proposal wasm-store -h`, you will notice two more important flags: +If you run `wasmd tx gov submit-proposal wasm-store -h`, you will notice two more important flags: ```shell --instantiate-everybody string Everybody can instantiate a contract from the code, optional @@ -103,7 +103,7 @@ Instantiate-everybody might make sense for a multisig (everyone makes their own) After the proposal creation, it needs to be approved by governance voting. ```shell -wasmcli tx gov vote [proposal-id] yes --from account +wasmd tx gov vote [proposal-id] yes --from account ``` ## Instantiate {#instantiate} @@ -112,7 +112,7 @@ After the proposal passes the code will be deployed. Now you can instantiate the ```shell INIT='{"admins": ["cosmos12at9uplen85jt2vrfc5fs36s9ed4ahgduclk5a","cosmos1v7mjgfyxvlqt7tzj2j9fwee82fh6ra0jvhrxyp","cosmos18rkzfn65485wq68p3ylv4afhgguq904djepfkk","cosmos1xxkueklal9vejv9unqu80w9vptyepfa95pd53u"], "mutable": true}' -wasmcli tx wasm instantiate [code_id] "$INIT" \ +wasmd tx wasm instantiate [code_id] "$INIT" \ --label "UP-101 Funding Account" —-amount 2000000uatom --from account @@ -124,7 +124,7 @@ If you have admin access to the contract you can add or remove admins by running ``` export UPDATE_ADMINS_MSG='{"update_admins": {"admins":["cosmos1u3nufc2kjslj2t3pugxhjv4zc8adw5thuwu0tm", "cosmos1fp9qlazkm8kgq304kalev6e69pyp5kmdd5pcgj"]}}' -wasmcli tx wasm execute $CONTRACT_ADDRESS "$UPDATE_ADMINS_MSG" \ +wasmd tx wasm execute $CONTRACT_ADDRESS "$UPDATE_ADMINS_MSG" \ --from account ``` @@ -132,5 +132,5 @@ Subkey allowances can execute send token transaction using the command: ``` export SEND_MSG='{"execute":{"msgs":[{"bank":{"send":{"amount":[{"denom":"umuon","amount":"1000"}],"from_address":"cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5","to_address":"cosmos1cs63ehtq6lw86vc87t42cnhcmydtnrffzdjhkz"}}}]}}' -wasmcli tx wasm execute $CONTRACT_ADDRESS "$SEND_MSG" --from account +wasmd tx wasm execute $CONTRACT_ADDRESS "$SEND_MSG" --from account ``` From 172607b0a420d772dbb03f16629110b9947aa241 Mon Sep 17 00:00:00 2001 From: mertmalaz Date: Wed, 30 Nov 2022 00:58:58 +0300 Subject: [PATCH 2/2] remove source and builder --- tutorials/governance.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/tutorials/governance.md b/tutorials/governance.md index 99b0c807b..77c68647e 100644 --- a/tutorials/governance.md +++ b/tutorials/governance.md @@ -75,8 +75,6 @@ Deployment command is down below: ```shell wasmd tx gov submit-proposal wasm-store cw1-subkeys.wasm \ - --source "https://github.com/CosmWasm/cw-plus" \ - —-builder "cosmwasm/workspace-optimizer:0.10.3" \ —-title "Enable cw1-subkeys functionality" \ —-description "DAO and DSOs need this!" \ —-instantiate-everybody "true" \