version
Module0xc067…8bf8
- Move path
- 0x79ee…5b7a::version
- Functions
- 42 public, 0 entry
- Structs
- 1
- Friend modules
- staked_positionvault
Functions4
- public fun current_version(): u64
- public fun upgrade_version(&authority::AuthorityCap<authority::PACKAGE<authority::ADMIN>>,&mut Version)
Structs1
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- Versionkey
id UID version u64
Constants5
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "EInvalidVersion" // interpreted as UTF8 string | vector<u8> | Value | |
| 1 | "You are interacting with an outdated contract." // interpreted as UTF8 string | vector<u8> | Value | |
| 2 | "EVersionAlreadyCreated" // interpreted as UTF8 string | vector<u8> | Value | |
| 3 | "The singleton `Version` has already been created." // interpreted as UTF8 string | vector<u8> | Value | |
| 4 | 2 | u64 | Value | create_versioncurrent_versionupgrade_versionassert_correct_package |