# Juno decommission All the setup is based on Ubuntu OS ## Prerequisites - jq - sed ## Setup contracts Clone passage marketplace contracts ``` sh git clone https://github.com/envadiv/passage-contracts.git cd passage-contracts ``` ## Install juno binary Download latest juno binary from github https://github.com/CosmosContracts/juno/releases/tag/v16.0.0 Check juno version ``` sh junod version ``` Setup juno mainnet account. This will add a new key to the `keyring backend test`. If you already have account ignore this step. ``` sh junod keys add migration-key --keyring-backend test ``` Transfer few tokens to above address, so that we can execute transactions. Setup juno mainnet config ``` sh junod config chain-id juno-1 junod config node https://rpc-juno.whispernode.com:443 junod config broadcast-mode sync junod config output json jundo config keyring-backend test # if your key is stored in os backend, then use os backend. ``` ``` sh junod config ``` Confirm all the config parameters are correct Verify valid keyring-backend is used ``` sh junod keys list ``` Should return your contract admin key. ## Setting up Clone passage contracts decommission scrpits ``` sh git clone https://github.com/aleem1314/cw-migration.git cd update-scripts git checkout aleem/update-scripts ``` - Open `contracts.json` file verify all contract details. `adminKey` is the name of the contract admin key-name in the keyring. - Open `juno/.env` file and update `PATH_TO_CONTRACTS` and `CURRENT_DIR`. ### running migrations ``` sh ./decommission_all.sh 2>&1 | tee output.json ``` NOTE: Please don't execute this script multiple times, as doing so could complicate resuming from previous failed state.