Crates.io | polymesh_ink_upgrade_tracker |
lib.rs | polymesh_ink_upgrade_tracker |
version | 0.3.0 |
source | src |
created_at | 2023-02-10 10:12:20.579684 |
updated_at | 2023-07-28 08:11:07.173206 |
description | Upgrade tracker contract for Upgradable Polymesh Ink! API |
homepage | https://github.com/PolymeshAssociation/Polymesh |
repository | https://github.com/PolymeshAssociation/Polymesh |
max_upload_size | |
id | 781761 |
size | 11,693 |
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/polymesh_ink_upgrade_tracker.contract
.
Deploy the contract polymesh_ink_upgrade_tracker.contract
. The account used will be the admin.
Call the upgrade_wrapped_api(<api version>, Upgrade { chain_version: ChainVersion { spec: 5_002_001, tx: 3}, hash: <code hash of upgraded api>})
to upgrade an API.