UpgradeDatabaseState
Hierarchy
- { nextUpgradeAuthority: PublicKeyOption; root: Field; storage: Storage; validFrom: UInt32; version: UInt32 }
- UpgradeDatabaseState
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalvalue: { nextUpgradeAuthority: PublicKeyOption; root: Field; storage: Storage; validFrom: UInt32; version: UInt32 }
externalnextUpgradeAuthority: PublicKeyOption = PublicKeyOption
Optional public key of the next upgrade authority
externalroot: Field = Field
Root of the UpgradeAuthority database
externalstorage: Storage = Storage
Storage information (e.g., IPFS hash)
externalvalidFrom: UInt32 = UInt32
Slot when the UpgradeAuthority is valid from
externalversion: UInt32 = UInt32
Version of the UpgradeAuthorityDatabase
Returns UpgradeDatabaseState
Properties
nextUpgradeAuthority
Optional public key of the next upgrade authority
root
Root of the UpgradeAuthority database
storage
Storage information (e.g., IPFS hash)
validFrom
Slot when the UpgradeAuthority is valid from
version
Version of the UpgradeAuthorityDatabase
Methods
pack
Packs the
UpgradeDatabaseState
into aUpgradeDatabaseStatePacked
.Returns UpgradeDatabaseStatePacked
A packed representation of the upgrade database state.
staticassertEquals
Asserts that two
UpgradeDatabaseState
instances are equal.Parameters
a: UpgradeDatabaseState
First
UpgradeDatabaseState
instance.b: UpgradeDatabaseState
Second
UpgradeDatabaseState
instance.
Returns void
staticempty
Returns an empty
UpgradeDatabaseState
.Returns UpgradeDatabaseState
An empty
UpgradeDatabaseState
instance.
staticunpack
Unpacks a
UpgradeDatabaseStatePacked
into aUpgradeDatabaseState
.Parameters
packed: UpgradeDatabaseStatePacked
The packed upgrade database state.
Returns UpgradeDatabaseState
An unpacked
UpgradeDatabaseState
instance.
Represents the state of the upgrade database.