This guide will help you set up automated cascadiad
upgrades.
Step 1: Create the upgrade-info.json file.
The upgrade-info.json file will be created in the data folder after the upgrade proposal is passed.
{"name":"v0.3.0","time":"0001-01-01T00:00:00Z","height":2820000,"info":"{\"binaries\":{\"linux/amd64\":\"https://github.com/CascadiaFoundation/cascadia/releases/download/v0.1.7/cascadiad-v0.3.0-linux-amd64.tar.gz\"}"}
The latest cascadiad
binary release can be found on GitHub.
Step 2: Prepare for an automated upgrade.
To automate the upgrade using cosmovisor, ensure your cosmovisor/
directory is structured as follows:
cosmovisor/
├── current/ # either genesis or upgrades/<name>
├── genesis
│ └── bin
│ └── cascadiad
└── upgrades
└── v0.3.0
├── bin
│ └── cascadiad
└── upgrade-info.json
Step 3: Download and extract the cascadiad binary.
Use the following command to download and extract the cascadiad binary to the upgrades folder:
mkdir -p [your cosmovisor path]/cosmovisor/upgrades/v0.3.0
wget -O - https://github.com/CascadiaFoundation/cascadia/releases/download/v0.3.0/cascadiad-v0.3.0-linux-amd64.tar.gz | tar -xzvf - -C [your cosmovisor path]/cosmovisor/upgrades/v0.3.0
Step 4: Create the upgrade-info.json file in the upgrade folder.
Finally, create the upgrade-info.json file in the 'upgrades/v0.1.7' folder using this command:
cat <<EOF > [your cosmovisor path]/cosmovisor/upgrades/upgrades/v0.2.0/upgrade-info.json
{"name":"v0.3.0","time":"0001-01-01T00:00:00Z","height":2820000,"info":"{\"binaries\":{\"linux/amd64\":\"https://github.com/CascadiaFoundation/cascadia/releases/download/v0.3.0/cascadiad-v0.3.0-linux-amd64.tar.gz\"}"}
EOF
Last updated