description |
---|
Prepare for and the upcomming chain upgrade using Cosmovisor. |
Chain ID: kichain-2 | Latest Version Tag: pismoA | Custom Port: 27
{% hint style="info" %} Since we are using Cosmovisor, it makes it very easy to prepare for upcomming upgrade. You just have to build new binaries and move it into cosmovisor upgrades directory. {% endhint %}
# Clone project repository
cd $HOME
rm -rf pismoA
git clone https://github.com/kichain/kichain-sdk.git pismoA
cd pismoA
git checkout pismoA
# Install and build kichain Javascript packages
yarn install && yarn build
# Install and build kichain Cosmos SDK support
(cd packages/cosmic-swingset && make)
# Prepare binaries for Cosmovisor
mkdir -p $HOME/.kid/cosmovisor/upgrades/kichain-upgrade-8/bin
ln -s $HOME/pismoA/packages/cosmic-swingset/bin/ag-chain-cosmos $HOME/.kid/cosmovisor/upgrades/kichain-upgrade-8/bin/ag-chain-cosmos
ln -s $HOME/pismoA/packages/cosmic-swingset/bin/ag-nchainz $HOME/.kid/cosmovisor/upgrades/kichain-upgrade-8/bin/ag-nchainz
cp golang/cosmos/build/kid $HOME/.kid/cosmovisor/upgrades/kichain-upgrade-8/bin/
cp golang/cosmos/build/ag-cosmos-helper $HOME/.kid/cosmovisor/upgrades/kichain-upgrade-8/bin/
Thats it! Now when upgrade block height is reached, Cosmovisor will handle it automatically!