Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.45 KB

upgrade.md

File metadata and controls

39 lines (29 loc) · 1.45 KB
description
Prepare for and the upcomming chain upgrade using Cosmovisor.

Upgrade

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 %}

Download and build upgrade binaries

# 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!