Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade simulation for the liquidity module that is rebased to Cosmos SDK 0.44.x #4

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2654da4
split v5.0.0 and v5.0.5
jaybxyz Aug 23, 2021
0cc86ea
upload exported genesis zip file
jaybxyz Aug 23, 2021
61f079f
upload tar archive compresses genesis file
jaybxyz Aug 23, 2021
e340bfb
upload tar.bz2 files
jaybxyz Aug 23, 2021
d35c0e3
chore: move validators consensus keys to each directory and update gi…
jaybxyz Aug 23, 2021
010004f
update README.md
jaybxyz Aug 23, 2021
7cb36c2
update genesis.json file
jaybxyz Aug 23, 2021
f21c2bb
update README.md
jaybxyz Aug 23, 2021
7bcc465
update README.md
jaybxyz Aug 24, 2021
1dce4bb
chore: update proposal name, title, info
jaybxyz Aug 24, 2021
d992cea
tidy up some sentences and fix the gravity-dex version and add liquid…
jaybxyz Aug 24, 2021
c16cb08
add compared files line by line
jaybxyz Aug 24, 2021
0b60d11
fix misguidance
jaybxyz Aug 24, 2021
c3c83db
fix: update some commands and link
dongsam Aug 31, 2021
0ae08bb
docs: update chain id
jaybxyz Sep 2, 2021
6e28036
docs: update the hash since chain id is changed
jaybxyz Sep 3, 2021
5c8e6cd
docs: make things more descriptive
jaybxyz Sep 8, 2021
9f54655
docs: update sdk version to v0.44.0
jaybxyz Sep 8, 2021
6028655
docs: apply feedback
jaybxyz Sep 8, 2021
405d5c7
docs: update README.md
jaybxyz Oct 19, 2021
43c0edf
chore: organize directory structure, v6.0.1-rc1 is work in progress
jaybxyz Oct 19, 2021
387ca74
docs: work in progress
jaybxyz Oct 19, 2021
a2e248a
docs: update version
jaybxyz Oct 19, 2021
4aa179e
docs: add step 4 ~ 6
jaybxyz Oct 19, 2021
0418bf4
docs: add further tests
jaybxyz Oct 20, 2021
4afbd45
docs: add proposal.json
jaybxyz Oct 20, 2021
2d4ee12
docs: need more tests
jaybxyz Oct 20, 2021
f51dd60
docs: add cross platform for sed
jaybxyz Oct 21, 2021
21982b0
docs: debugging why withdrawing a small amount of pool coin throws in…
jaybxyz Oct 21, 2021
f407e50
docs: add more description
jaybxyz Oct 22, 2021
6558b73
docs: fixed typo
jaybxyz Oct 22, 2021
585b86c
docs: fix typo again
jaybxyz Oct 22, 2021
42d549c
feat: simulate upgrade test for v1.4.1
jaybxyz Oct 25, 2021
39dfce6
fix: rename dir for v6.0.0 and update gaia to v6.0.0-rc2
dongsam Nov 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
218 changes: 121 additions & 97 deletions v5.0.5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@

## Versions

- Cosmos Hub Mainnet `cosmoshub-4` currently uses [gaia v5.0.5](https://github.com/cosmos/gaia/releases/tag/v5.0.5).
- [Upgrade `gaiad` version with Gravity DEX that is rebased to Cosmos SDK v0.43.0](https://github.com/b-harvest/gravity-dex/blob/upgrade-liquidity-module-based-sdk-43)
- Cosmos Hub Mainnet `cosmoshub-4` version: [gaia v5.0.5](https://github.com/cosmos/gaia/releases/tag/v5.0.5)
- Forked version of `gaiad`: [the version with Gravity DEX that is based on Cosmos SDK v0.43.0](https://github.com/b-harvest/gravity-dex/tree/upgrade-liquidity-module-based-sdk-43)
jaybxyz marked this conversation as resolved.
Show resolved Hide resolved

## Build

```bash
git clone -b v5.0.5 https://github.com/cosmos/gaia.git
cd gaia
make build

mv ./build/gaiad $GOBIN/gaiad_old
```

## Option 1: Fast track

We have prepared a genesis file `genesis.json.tar.bz2` which was obtained after going from "Step 1 to 5" in Option 2. Uncompress the genesis file and use it as the genesis data to mock the upgrade simulation test. You can go to `Step 4` to proceed.
We have prepared a genesis file `genesis.json.tar.bz2` which was obtained after proceeding from `Step 1 to Step 5` in Option 2 below. Uncompress the genesis file and use it as the genesis data to mock the upgrade simulation test. You can go to `Step 4` to proceed.

```bash
# uncompress the file
Expand All @@ -16,7 +26,7 @@ tar xvzf genesis.json.tar.bz2
# verify the hash
cat genesis.json | shasum -a 256
>
238ce65ca9f1b112cf3480de99bd0fdd9a65c54cf71ea155f0ba9ea897cffc56
a44e3392391e9afa4b53e08c7d6639ca46d6fd109d0280b93346582ed06e4ecf
```

## Option 2: Step by step guide
Expand All @@ -35,7 +45,8 @@ df10480978a9a211fbc2f82865659c1298f1ba97a3fee37512b299102fa1e9c3
# copy the file and name it to genesis.json
cp exported_genesis_with_height_7304500_sorted.json genesis.json
```
## Steps
## Steps

### Step 1. Substitute validator keys and accounts

In this step, we are going to swap 2 validators and add new 2 different accounts in the genesis file. We are also going to modify some parameters to improve test efficiency. The mnemonics for the 2 new different accounts and the following files are already prepared in this repository.
Expand All @@ -54,7 +65,7 @@ In this step, we are going to swap 2 validators and add new 2 different accounts

```bash
# change chain id
sed -i '' 's%"chain_id": "cosmoshub-4",%"chain_id": "cosmoshub-4-upgrade-testnet-1001",%g' genesis.json
sed -i '' 's%"chain_id": "cosmoshub-4",%"chain_id": "cosmoshub-4-upgrade-testnet-2001",%g' genesis.json

# substitue "Certus One" validator1
sed -i '' 's%cOQZvh/h9ZioSeUMZB/1Vy1Xo5x2sjrVjlE/qHnYifM=%qwiUMxz3llsy45fPvM0a8+XQeAJLvrX3QAEJmRMEEoU=%g' genesis.json
Expand Down Expand Up @@ -134,8 +145,8 @@ sed -i '' 's%"voting_period": "1209600s"%"voting_period": "60s"%g' genesis.json

```bash
export EXPORTED_GENESIS=genesis.json
export BINARY=gaiad
export CHAIN_ID=cosmoshub-4-upgrade-testnet-1001
export BINARY=gaiad_old
export CHAIN_ID=cosmoshub-4-upgrade-testnet-2001
export CHAIN_DIR=./data

export VAL_1_CHAIN_DIR=$CHAIN_DIR/$CHAIN_ID/val1
Expand Down Expand Up @@ -228,33 +239,46 @@ sed -i '' 's/unconditional_peer_ids = ""/unconditional_peer_ids = "'$VAL_2_NODE_
sed -i '' 's/pprof_laddr = "localhost:6060"/pprof_laddr = "localhost:'$VAL_2_PPROF_PORT'"/g' $VAL_2_CHAIN_DIR/config/config.toml
sed -i '' 's/addr_book_strict = true/addr_book_strict = false/g' $VAL_2_CHAIN_DIR/config/config.toml
sed -i '' 's/addr_book_strict = true/addr_book_strict = false/g' $VAL_1_CHAIN_DIR/config/config.toml

# verify the genesis hash
cat genesis.json | shasum -a 256
>
238ce65ca9f1b112cf3480de99bd0fdd9a65c54cf71ea155f0ba9ea897cffc56
```

### Step 6. Start the chain

Open up two terminals and start 2 validator nodes.
Open up two terminals and start 2 validator nodes. It requires 2+ validators to start the network that is exported from live chain. Read [this issue](https://github.com/cosmos/cosmos-sdk/issues/7505) for more information about it. You can start the chain with `--x-crisis-skip-assert-invariants` flag to skip invariant checks since it takes a long time. It takes more than an hour to start the chain. Of course, it depends on the resources of your local machine.

```bash
#
# Terminal 1
# Terminal 1 (note that you should run the below command from v5.0.5 directory)
#
export BINARY=gaiad
export CHAIN_ID=cosmoshub-4-upgrade-testnet-1001
export BINARY=gaiad_old
export CHAIN_ID=cosmoshub-4-upgrade-testnet-2001
export HOME1=./data/$CHAIN_ID/val1
$BINARY start --home $HOME1

#
# Optional Commands
#
# skip invariant checks to start the chain
$BINARY start --home $HOME1 --x-crisis-skip-assert-invariants

# reset the blockchain database and its state
$BINARY unsafe-reset-all --home $HOME1

#
# Terminal 2
# Terminal 2 (note that you should run the below command from v5.0.5 directory)
#
export BINARY=gaiad
export CHAIN_ID=cosmoshub-4-upgrade-testnet-1001
export BINARY=gaiad_old
export CHAIN_ID=cosmoshub-4-upgrade-testnet-2001
export HOME2=./data/$CHAIN_ID/val2
$BINARY start --home $HOME2

#
# Optional Commands
#
# skip invariant checks to start the chain
$BINARY start --home $HOME2 --x-crisis-skip-assert-invariants

# reset the blockchain database and its state
$BINARY unsafe-reset-all --home $HOME1
```

### Step 7. Send an upgrade proposal to the network
Expand All @@ -263,117 +287,88 @@ Open up terminal 3 to send an upgrade proposal along with a deposit and a vote.

```bash
#
# Terminal 3
# Terminal 3 (note that you should run the below command from v5.0.5 directory)
#

export BINARY=gaiad_old

# make sure upgrade-height has enough time for the proposal to pass
gaiad tx gov submit-proposal software-upgrade vega \
$BINARY tx gov submit-proposal software-upgrade vega \
--title vega \
--deposit 1000uatom \
--upgrade-height 7304520 \
--upgrade-info "upgrade-liquidity-module-based-sdk-43-e817e034edbe812d5debf8c2242bd0f655cc9d46" \
--description "This on-chain upgrade governance proposal is to adopt the Gravity DEX protocol on the Cosmos Hub. By voting YES to this proposal, you approve of adding the Gravity DEX protocol on the Cosmos Hub.\\n\\n### Background\\n\\nIn July 2020, the Iqlusion team developed ATOM 2021 to drive the direction of the Cosmos Hub after the completion of the Cosmos whitepaper and IBC. It became clear that providing liquidity to new IBC connected zones was core the Hub's mission. \\n\\nTendermint ([https://tendermint.com](https://tendermint.com/)) and B-Harvest ([https://bharvest.io](https://bharvest.io/)) joined forces to produce and develop a Liquidity Module ([https://github.com/tendermint/liquidity](https://github.com/tendermint/liquidity)). In 2021 March, they submitted a signal governance proposal to ask the Atom delegator community about Gravity DEX (Liquidity Module) adoption on the Cosmos Hub. Prop38 was very well approved by the community ([https://www.mintscan.io/cosmos/proposals/38](https://www.mintscan.io/cosmos/proposals/38)).\\n\\nThis proposal completes the first leg of ATOM 2021 and achieves the goals of the signaling proposal by bringing an IBC compatible DEX to the Hub.\\n\\n### Ready for Production\\n\\nWith continuous quality improvement of the codebase, very wide test coverage, a codebase audit from Least Authority and Simply VC, and subsequent follow-up codebase strengthening, along with extensive simulation processes, we are now very confident to be ready for production utilization of the Gravity DEX (Liquidity Module) on the Cosmos Hub. The Gaia branch for the new release with Gravity DEX feature can be found [here](https://github.com/cosmos/gaia/releases/tag/v5.0.0)). Please also check out the [github repository](https://github.com/b-harvest/gravity-dex-upgrade-test) for the launch testing of Gaia with Gravity DEX.\\n\\n### On-Chain Upgrade Process\\n\\nWhen the network reaches the halt height, the state machine program of the Cosmos Hub will be halted. And then, all validators and node operators have to substitute the existing state machine binary to the new binary with the Gravity DEX feature. Because it is an onchain upgrade process, the blockchain will be continued with all the accumulated history with continuous block height.\\n\\n### Potential Risk Factors\\n\\nAlthough Tendermint executed very extensive testing and simulation, and conducted in-depth audits, and followed up with the corresponding codebase improvement, there always still exists a risk that the Cosmos Hub might experience problems due to potential bugs or errors from the new Gravity DEX feature. In the case of serious problems, validators should stop operating the network immediately, and use the fixed state machine program provided by Tendermint." \
--upgrade-height 7304620 \
--upgrade-info "upgrade-liquidity-module-based-sdk-43" \
dongsam marked this conversation as resolved.
Show resolved Hide resolved
--description "vega upgrade" \
--gas 400000 \
--from user1 \
--keyring-backend test \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--node tcp://localhost:36657 \
--yes
--yes -b block

# query the proposal to check the status.
# the status should be PROPOSAL_STATUS_VOTING_PERIOD.
gaiad query gov proposal 54 \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
$BINARY query gov proposal 54 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--node tcp://localhost:36657

# vote yes for the proposal
# note that voting period, quorum, and threshold params are modified
gaiad tx gov vote 54 yes \
$BINARY tx gov vote 54 yes \
--from user1 \
--keyring-backend test \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--node tcp://localhost:36657 \
--yes
--yes -b block

# wait for a while for the proposal to pass

# query the proposal to check if it is passed
# the status should be PROPOSAL_STATUS_PASSED
gaiad query gov proposal 54 \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
$BINARY query gov proposal 54 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--node tcp://localhost:36657
```


Result of the proposal

```json
content:
'@type': /cosmos.upgrade.v1beta1.SoftwareUpgradeProposal
description: This on-chain upgrade governance proposal is to adopt the Gravity DEX
protocol on the Cosmos Hub. By voting YES to this proposal, you approve of adding
the Gravity DEX protocol on the Cosmos Hub.\n\n### Background\n\nIn July 2020,
the Iqlusion team developed ATOM 2021 to drive the direction of the Cosmos Hub
after the completion of the Cosmos whitepaper and IBC. It became clear that providing
liquidity to new IBC connected zones was core the Hub's mission. \n\nTendermint
([https://tendermint.com](https://tendermint.com/)) and B-Harvest ([https://bharvest.io](https://bharvest.io/)) joined
forces to produce and develop a Liquidity Module ([https://github.com/tendermint/liquidity](https://github.com/tendermint/liquidity)).
In 2021 March, they submitted a signal governance proposal to ask the Atom delegator
community about Gravity DEX (Liquidity Module) adoption on the Cosmos Hub. Prop38
was very well approved by the community ([https://www.mintscan.io/cosmos/proposals/38](https://www.mintscan.io/cosmos/proposals/38)).\n\nThis
proposal completes the first leg of ATOM 2021 and achieves the goals of the signaling
proposal by bringing an IBC compatible DEX to the Hub.\n\n### Ready for Production\n\nWith
continuous quality improvement of the codebase, very wide test coverage, a codebase
audit from Least Authority and Simply VC, and subsequent follow-up codebase strengthening,
along with extensive simulation processes, we are now very confident to be ready
for production utilization of the Gravity DEX (Liquidity Module) on the Cosmos
Hub. The Gaia branch for the new release with Gravity DEX feature can be found
[here](https://github.com/cosmos/gaia/releases/tag/v5.0.0)). Please also check
out the [github repository](https://github.com/b-harvest/gravity-dex-upgrade-test)
for the launch testing of Gaia with Gravity DEX.\n\n### On-Chain Upgrade Process\n\nWhen
the network reaches the halt height, the state machine program of the Cosmos Hub
will be halted. And then, all validators and node operators have to substitute
the existing state machine binary to the new binary with the Gravity DEX feature.
Because it is an onchain upgrade process, the blockchain will be continued with
all the accumulated history with continuous block height.\n\n### Potential Risk
Factors\n\nAlthough Tendermint executed very extensive testing and simulation,
and conducted in-depth audits, and followed up with the corresponding codebase
improvement, there always still exists a risk that the Cosmos Hub might experience
problems due to potential bugs or errors from the new Gravity DEX feature. In
the case of serious problems, validators should stop operating the network immediately,
and use the fixed state machine program provided by Tendermint.
description: vega upgrade
plan:
height: "7304520"
info: upgrade-liquidity-module-based-sdk-43-e817e034edbe812d5debf8c2242bd0f655cc9d46
height: "7304620"
info: upgrade-liquidity-module-based-sdk-43
dongsam marked this conversation as resolved.
Show resolved Hide resolved
name: vega
time: "0001-01-01T00:00:00Z"
upgraded_client_state: null
title: vega
deposit_end_time: "2021-09-07T02:08:31.975946Z"
deposit_end_time: "2021-09-17T07:26:13.536950Z"
final_tally_result:
abstain: "0"
"no": "0"
no_with_veto: "0"
"yes": "108058021"
proposal_id: "54"
status: PROPOSAL_STATUS_PASSED
submit_time: "2021-08-24T02:08:31.975946Z"
submit_time: "2021-09-03T07:26:13.536950Z"
total_deposit:
- amount: "1000"
denom: uatom
voting_end_time: "2021-08-24T02:09:31.975946Z"
voting_start_time: "2021-08-24T02:08:31.975946Z"
voting_end_time: "2021-09-03T07:27:13.536950Z"
voting_start_time: "2021-09-03T07:26:13.536950Z"
```

### Step 8. Restart node using new gaiad gravity-dex version

The proposal has passed and it is all good to go. When `upgrade-height` is reached, the node must be halted for upgrade.

> ERR UPGRADE "vega" NEEDED at height: 7304520: upgrade-liquidity-module-based-sdk-43-e817e034edbe812d5debf8c2242bd0f655cc9d46
ERR CONSENSUS FAILURE!!! err="UPGRADE \"vega\" NEEDED at height: 7304520: upgrade-liquidity-module-based-sdk-43-e817e034edbe812d5debf8c2242bd0f655cc9d46"
> ERR UPGRADE "vega" NEEDED at height: 7304620: upgrade-liquidity-module-based-sdk-43
ERR CONSENSUS FAILURE!!! err="UPGRADE \"vega\" NEEDED at height: 7304620: upgrade-liquidity-module-based-sdk-43" module=consensus stack="goroutine 285931 [running]:\nruntime/debug.Stack(0xc01aee9020, 0x55de1c0, 0xc054e7af10)\n\truntime/debug/stack.go:24 +0x9f\ngithub.com/tendermint/tendermint/consensus.(*State).
........................................................................................................
..................................................................................................................................

Expand All @@ -387,7 +382,7 @@ make install
# check version
gaiad version
>
upgrade-liquidity-module-based-sdk-43-e817e034edbe812d5debf8c2242bd0f655cc9d46
upgrade-liquidity-module-based-sdk-43-xxxx

# Terminal 1
gaiad start --home $HOME1 --x-crisis-skip-assert-invariants
Expand Down Expand Up @@ -437,27 +432,37 @@ Result
```

```bash
export CHAIN_ID=cosmoshub-4-upgrade-testnet-2001
export HOME1=./data/$CHAIN_ID/val1
export HOME2=./data/$CHAIN_ID/val2

# query user2 balance
gaiad q bank balances cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9 --output json | jq

# create liquidity pool
gaiad tx liquidity create-pool 1 1000000ibc/1BE91D67775723D3230A9A5AC54BB29B92A5A51B4B8F20BBA37DF1CFA602297C,1000000uatom \
--from user2 \
--keyring-backend test \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--gas 300000 \
--node tcp://localhost:36657 \
--yes
--yes -b block

# query liquidity pool
gaiad query liquidity pools \
--node tcp://localhost:36657 \
--output json | jq
gaiad q liquidity pools --node tcp://localhost:36657 --output json | jq

# query reserve pool balances
gaiad q bank balances cosmos1qf9sqpexwyh3py786f8vx2w7fx8thpd5wz79sf --output json | jq

# swap request
gaiad tx liquidity swap 1 1 100000uatom ibc/1BE91D67775723D3230A9A5AC54BB29B92A5A51B4B8F20BBA37DF1CFA602297C 0.019 0.003 \
--from user2 --keyring-backend test \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--node tcp://localhost:36657
gaiad tx liquidity swap 10 1 100000uatom ibc/1BE91D67775723D3230A9A5AC54BB29B92A5A51B4B8F20BBA37DF1CFA602297C 0.019 0.003 \
--home $HOME2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--node tcp://localhost:36657 \
--from user2 \
--keyring-backend test \
--yes -b block

gaiad query auth account cosmos1w323u2q2f9h8nnhus0s9zmzfl4a3mft4xse2h6 \
--node tcp://localhost:36657 \
Expand All @@ -467,14 +472,33 @@ gaiad query auth account cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9 \
--node tcp://localhost:36657 \
--output json | jq

# query balance before transacted
gaiad query bank balances cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9 \
--node tcp://localhost:36657 \
--output json | jq

# withdraw request
gaiad tx liquidity withdraw 1 1000pool024B000726712F1093C7D24EC329DE498EBB85B4B2D37C59D4F37BC542020151 \
gaiad tx liquidity withdraw 10 1000pool024B000726712F1093C7D24EC329DE498EBB85B4B2D37C59D4F37BC542020151 \
--from user2 --keyring-backend test \
--home data/cosmoshub-4-upgrade-testnet-1001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-1001 \
--node tcp://localhost:36657
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--node tcp://localhost:36657 --yes -b block


gaiad tx liquidity deposit 10 1000000ibc/1BE91D67775723D3230A9A5AC54BB29B92A5A51B4B8F20BBA37DF1CFA602297C,1000000uatom \
--from user2 --keyring-backend test \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--node tcp://localhost:36657 --yes -b block


gaiad tx bank send user2 cosmos1w323u2q2f9h8nnhus0s9zmzfl4a3mft4xse2h6 79373uatom \
--keyring-backend test \
--home data/cosmoshub-4-upgrade-testnet-2001/val2 \
--chain-id cosmoshub-4-upgrade-testnet-2001 \
--node tcp://localhost:36657 --yes -b block --output json

# query balance after swap transacted
# query balance after transacted
gaiad query bank balances cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9 \
--node tcp://localhost:36657 \
--output json | jq
Expand All @@ -494,7 +518,7 @@ diff exported_genesis_with_height_7304500_sorted.json genesis.json -u
{
"genesis_time": "2019-12-11T16:11:34Z",
- "chain_id": "cosmoshub-4",
+ "chain_id": "cosmoshub-4-upgrade-testnet-1001",
+ "chain_id": "cosmoshub-4-upgrade-testnet-2001",
"initial_height": "7304501",
"consensus_params": {
"block": {
Expand Down
Binary file modified v5.0.5/genesis.json.tar.bz2
Binary file not shown.