1
0
notamon/rust/upgradable-v1
2025-04-01 00:34:08 +02:00
..
src Initial, based on PBC Example Contracts 2025-04-01 00:34:08 +02:00
Cargo.toml Initial, based on PBC Example Contracts 2025-04-01 00:34:08 +02:00
README.md Initial, based on PBC Example Contracts 2025-04-01 00:34:08 +02:00

Upgradable v1

The simplest possible upgradable example contract that retains some amount of security and usability.

The [UpgradableV1State] contains the address of the account or contract that is allowed to upgrade this contract.

Contract can only be upgraded to a different contract, it cannot be upgraded to itself, or from any other kind of contract.

About upgrade governance

This contract is an example, and does not reflect what good upgrade logic for a contract should look like. Please read documentation page for upgradable smart contracts for suggestion of how to implement the upgrade governance.