Skip to main content

UpgradeDatabaseState

Represents the state of the upgrade database.

Hierarchy

  • { nextUpgradeAuthority: PublicKeyOption; root: Field; storage: Storage; validFrom: UInt32; version: UInt32 }
    • UpgradeDatabaseState

Index

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

nextUpgradeAuthority: PublicKeyOption = PublicKeyOption

Optional public key of the next upgrade authority

root

root: Field = Field

Root of the UpgradeAuthority database

storage

storage: Storage = Storage

Storage information (e.g., IPFS hash)

validFrom

validFrom: UInt32 = UInt32

Slot when the UpgradeAuthority is valid from

version

version: UInt32 = UInt32

Version of the UpgradeAuthorityDatabase

Methods

pack

  • Packs the UpgradeDatabaseState into a UpgradeDatabaseStatePacked.


    Returns UpgradeDatabaseStatePacked

    A packed representation of the upgrade database state.

staticassertEquals

staticempty

  • Returns an empty UpgradeDatabaseState.


    Returns UpgradeDatabaseState

    An empty UpgradeDatabaseState instance.

staticunpack