Skip to content

Commit

Permalink
Merge pull request #92 from cheqd/fix-denom
Browse files Browse the repository at this point in the history
Replace cheq instead token
  • Loading branch information
Toktar authored Aug 5, 2021
2 parents 45cf5ab + 04d55fd commit dad86f8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions ci/docker_testnet/gen_node_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ cheqd-noded init dummy_node --chain-id $CHAIN_ID --home $CLIENT_HOME

echo "##### [Validator operators] Add them to the genesis"

cheqd-noded add-genesis-account alice 10000000token,100000000stake --home $CLIENT_HOME
cheqd-noded add-genesis-account bob 10000000token,100000000stake --home $CLIENT_HOME
cheqd-noded add-genesis-account alice 10000000cheq,100000000stake --home $CLIENT_HOME
cheqd-noded add-genesis-account bob 10000000cheq,100000000stake --home $CLIENT_HOME


echo "##### [Test pool] Add test account to the genesis"

ACCOUNT_ID="cosmos1fknpjldck6n3v2wu86arpz8xjnfc60f99ylcjd"
echo $(cat ${CLIENT_HOME}/config/genesis.json | jq '.app_state.bank.balances += [{"address": "'${ACCOUNT_ID}'", "coins": [{"denom": "stake", "amount": "100000000"},{"denom": "token", "amount": "1000"}] }]') > ${CLIENT_HOME}/config/genesis.json
echo $(cat ${CLIENT_HOME}/config/genesis.json | jq '.app_state.bank.balances += [{"address": "'${ACCOUNT_ID}'", "coins": [{"denom": "stake", "amount": "100000000"},{"denom": "cheq", "amount": "1000"}] }]') > ${CLIENT_HOME}/config/genesis.json
echo $(cat ${CLIENT_HOME}/config/genesis.json | jq '.app_state.auth.accounts += [{"@type": "/cosmos.auth.v1beta1.BaseAccount","address": "'${ACCOUNT_ID}'", "pub_key": null,"account_number": "0","sequence": "0"}]') > ${CLIENT_HOME}/config/genesis.json


Expand Down
8 changes: 4 additions & 4 deletions ci/integration_tests/multisig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ echo "############ Someone (Jack) transfers money to the ffour account"
FFOUR_ADDRESS=$(cheqd-noded keys show ffour -a --home $JACK_HOME)
FFOUR_PUBKEY=$(cheqd-noded keys show ffour -p --home $JACK_HOME)

cheqd-noded tx bank send jack $FFOUR_ADDRESS 1000000token \
--fees 200000token \
cheqd-noded tx bank send jack $FFOUR_ADDRESS 1000000cheq \
--fees 200000cheq \
--chain-id=$CHAIN_ID \
--home $JACK_HOME \
--yes
Expand All @@ -67,8 +67,8 @@ cheqd-noded keys show ffour --home $BOB_HOME

echo "############ Jack generates a transaction"

cheqd-noded tx bank send $FFOUR_ADDRESS $JACK_ADDRESS 1000token \
--fees 200000token \
cheqd-noded tx bank send $FFOUR_ADDRESS $JACK_ADDRESS 1000cheq \
--fees 200000cheq \
--generate-only \
--home $JACK_HOME \
> $NODE_CONFIGS/unsignedTx.json
Expand Down
2 changes: 1 addition & 1 deletion ci/local_net/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ vc query bank balances (vc keys show anna -a --home localnet/client) --home loca
### Create NYM
```
vc tx cheqd create-nym "alias" "verkey" "did" "role" --from anna --gas-prices 1token --chain-id cheqd-node-chain --home localnet/client
vc tx cheqd create-nym "alias" "verkey" "did" "role" --from anna --gas-prices 1cheq --chain-id cheqd-node-chain --home localnet/client
```
### List nym
Expand Down
2 changes: 1 addition & 1 deletion ci/local_net/gen_node_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ echo "##### [Validator operators] Add them to the genesis"

for ((i=0 ; i<$NODES_COUNT ; i++))
do
cheqd-noded add-genesis-account "operator$i" 10000000token,100000000stake --home $OPERATORS_HOME
cheqd-noded add-genesis-account "operator$i" 10000000cheq,100000000stake --home $OPERATORS_HOME
done


Expand Down
8 changes: 4 additions & 4 deletions ci/local_net/gen_node_configs_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "# Initialze node"
cheqd-noded init node0 --chain-id $CHAIN_ID --home $NODE_0_HOME

echo "# Add genesis account"
cheqd-noded add-genesis-account jack 10000000token,100000000stake --home $NODE_0_HOME
cheqd-noded add-genesis-account jack 10000000cheq,100000000stake --home $NODE_0_HOME

echo "# Generate genesis node tx"
cheqd-noded gentx jack 1000000stake --chain-id $CHAIN_ID --home $NODE_0_HOME
Expand All @@ -50,7 +50,7 @@ mkdir $NODE_1_HOME/config/gentx
cp $NODE_0_HOME/config/gentx/* $NODE_1_HOME/config/gentx

echo "# Add genesis account"
cheqd-noded add-genesis-account alice 10000000token,100000000stake --home $NODE_1_HOME
cheqd-noded add-genesis-account alice 10000000cheq,100000000stake --home $NODE_1_HOME

echo "# Generate genesis node tx"
cheqd-noded gentx alice 1000000stake --chain-id $CHAIN_ID --home $NODE_1_HOME
Expand All @@ -77,7 +77,7 @@ mkdir $NODE_2_HOME/config/gentx
cp $NODE_1_HOME/config/gentx/* $NODE_2_HOME/config/gentx

echo "# Add genesis account"
cheqd-noded add-genesis-account bob 10000000token,100000000stake --home $NODE_2_HOME
cheqd-noded add-genesis-account bob 10000000cheq,100000000stake --home $NODE_2_HOME

echo "# Generate genesis node tx"
cheqd-noded gentx bob 1000000stake --chain-id $CHAIN_ID --home $NODE_2_HOME
Expand All @@ -104,7 +104,7 @@ mkdir $NODE_3_HOME/config/gentx
cp $NODE_2_HOME/config/gentx/* $NODE_3_HOME/config/gentx

echo "# Add genesis account"
cheqd-noded add-genesis-account anna 10000000token,100000000stake --home $NODE_3_HOME
cheqd-noded add-genesis-account anna 10000000cheq,100000000stake --home $NODE_3_HOME

echo "# Generate genesis node tx"
cheqd-noded gentx anna 1000000stake --chain-id $CHAIN_ID --home $NODE_3_HOME
Expand Down
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
accounts:
- name: alice
coins: ["1000token", "100000000stake"]
coins: ["1000cheq", "100000000stake"]
- name: bob
coins: ["500token"]
coins: ["500cheq"]
validator:
name: alice
staked: "100000000stake"
Expand All @@ -11,4 +11,4 @@ client:
path: "vue/src/store"
faucet:
name: bob
coins: ["5token"]
coins: ["5cheq"]
2 changes: 1 addition & 1 deletion docs/how-to-join-existing-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ This document describes in detail how to join existing network as validator.
Example:
```
cheqd-noded tx staking create-validator --amount 50000000stake --from steward1 --moniker steward1 --chain-id cheqdnode --min-self-delegation="1" --gas="auto" --gas-prices="1token" --pubkey cosmosvalconspub1zcjduepqpmyzmytdzjhf2fjwttjsrv49t62gdexm2yttpmgzh38p0rncqg8ssrxm2l --commission-max-change-rate="0.02" --commission-max-rate="0.02" --commission-rate="0.01"
cheqd-noded tx staking create-validator --amount 50000000stake --from steward1 --moniker steward1 --chain-id cheqdnode --min-self-delegation="1" --gas="auto" --gas-prices="1cheq" --pubkey cosmosvalconspub1zcjduepqpmyzmytdzjhf2fjwttjsrv49t62gdexm2yttpmgzh38p0rncqg8ssrxm2l --commission-max-change-rate="0.02" --commission-max-rate="0.02" --commission-rate="0.01"
```
4 changes: 2 additions & 2 deletions docs/how-to-setup-a-new-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ All participants should [setup their nodes](how-to-setup-a-new-node.md) using de

- **Add a genesis account with a public key:**

Command: `cheqd-noded add-genesis-account <key_name> 10000000token,100000000stake`
Command: `cheqd-noded add-genesis-account <key_name> 10000000cheq,100000000stake`

Example: `cheqd-noded add-genesis-account alice 10000000token,100000000stake`
Example: `cheqd-noded add-genesis-account alice 10000000cheq,100000000stake`

- **Generate genesis node transaction:**

Expand Down

0 comments on commit dad86f8

Please sign in to comment.