Skip to content

Commit

Permalink
add test cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
GNaD13 committed May 15, 2024
1 parent 42663b4 commit 0d7dc42
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 782 deletions.
21 changes: 16 additions & 5 deletions scripts/node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,31 @@ git checkout test/upgrade
./local_node.sh

# proposal upgrade
realio-networkd tx gov submit-legacy-proposal software-upgrade multistaking --upgrade-height 30 --description "testing, testing, 1, 2, 3" --upgrade-info "testing" --title "Test Proposal" --from dev0 --keyring-backend test --no-validate --chain-id realionetworklocal_7777-1 --deposit 10000000ario --yes --home "$HOME/.realio-network-tmp" --fees 1000000000000000000000000ario --gas 1000000
realio-networkd tx gov submit-legacy-proposal software-upgrade multistaking --upgrade-height 50 --description "testing, testing, 1, 2, 3" --upgrade-info "testing" --title "Test Proposal" --from dev0 --keyring-backend test --no-validate --chain-id realionetworklocal_7777-1 --deposit 10000000ario --yes --home "$HOME/.realio-network-tmp" --fees 1000000000000000000000000ario --gas 1000000

# vote
realio-networkd tx gov vote 1 yes --from dev0 --keyring-backend test --chain-id realionetworklocal_7777-1 --yes --home "$HOME/.realio-network-tmp" --fees 1000000000000000000000000ario

# wait until upgrade height and cancel node process

# copy state to config
# export new state
realio-networkd export --home "$HOME/.realio-network-tmp" >> ~/.realio-network-tmp/config/state.json

# checkout intergrate-multistaking
git checkout intergrate-multistaking
# copy state to config
# export new state
realio-networkd export --home "$HOME/.realio-network-tmp" >> scripts/state.json
# copy state
cp scripts/state.json ~/.realio-network-tmp/config/state.json
# build new binary
make install
# run node
realio-networkd start --log_level "info" --minimum-gas-prices=0.00001ario --json-rpc.api eth,txpool,personal,net,debug,web3 --api.enable --home "$HOME/.realio-network-tmp"

realio-networkd tx gov submit-legacy-proposal software-upgrade v4 --upgrade-height 80 --description "testing, testing, 1, 2, 3" --upgrade-info "testing" --title "Test Proposal" --from dev0 --keyring-backend test --no-validate --chain-id realionetworklocal_7777-1 --deposit 10000000ario --yes --home "$HOME/.realio-network-tmp" --fees 1000000000000000000000000ario --gas 1000000

realio-networkd tx gov vote 2 yes --from dev0 --keyring-backend test --chain-id realionetworklocal_7777-1 --yes --home "$HOME/.realio-network-tmp" --fees 1000000000000000000000000ario

git checkout feat/sdk-47

make install
# run node
realio-networkd start --log_level "info" --minimum-gas-prices=0.00001ario --json-rpc.api eth,txpool,personal,net,debug,web3 --api.enable --home "$HOME/.realio-network-tmp"
Loading

0 comments on commit 0d7dc42

Please sign in to comment.