polymesh_ink_upgrade_tracker

Crates.iopolymesh_ink_upgrade_tracker
lib.rspolymesh_ink_upgrade_tracker
version0.3.0
sourcesrc
created_at2023-02-10 10:12:20.579684
updated_at2023-07-28 08:11:07.173206
descriptionUpgrade tracker contract for Upgradable Polymesh Ink! API
homepagehttps://github.com/PolymeshAssociation/Polymesh
repositoryhttps://github.com/PolymeshAssociation/Polymesh
max_upload_size
id781761
size11,693
Adam Dossa (adamdossa)

documentation

README

Upgrade tracker contract for easier upgrading of APIs.

Build

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.

Setup.

Deploy the contract polymesh_ink_upgrade_tracker.contract. The account used will be the admin.

Use

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.

Commit count: 2199

cargo fmt