Upgrade tracker contract for easier upgrading of APIs.
Install cargo-contract
.
cargo install cargo-contract --force
Build the contract:
cargo +nightly contract build --release
Contract file needed for deployment ./target/ink/upgrade_tracker.contract
.
Deploy the contract upgrade_tracker.contract
. The account used will be the admin.
Call the upgrade_wrapped_api(<api version>, Upgrade { chain_version: ChainVersion { spec: 5_002_000, tx: 3}, hash: <code hash of upgraded api>})
to upgrade an API.