Struct near_contract_standards_sbt::upgrade::Upgrade
source · pub struct Upgrade {
pub owner: AccountId,
pub staging_duration: Duration,
pub staging_timestamp: Timestamp,
}
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Fields§
§owner: AccountId
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
§staging_duration: Duration
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
§staging_timestamp: Timestamp
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Implementations§
Trait Implementations§
source§impl BorshDeserialize for Upgradewhere
AccountId: BorshDeserialize,
Duration: BorshDeserialize,
Timestamp: BorshDeserialize,
impl BorshDeserialize for Upgradewhere
AccountId: BorshDeserialize,
Duration: BorshDeserialize,
Timestamp: BorshDeserialize,
source§impl BorshSerialize for Upgradewhere
AccountId: BorshSerialize,
Duration: BorshSerialize,
Timestamp: BorshSerialize,
impl BorshSerialize for Upgradewhere
AccountId: BorshSerialize,
Duration: BorshSerialize,
Timestamp: BorshSerialize,
source§impl Ownable for Upgrade
impl Ownable for Upgrade
source§fn get_owner(&self) -> AccountId
fn get_owner(&self) -> AccountId
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
source§fn set_owner(&mut self, owner: AccountId)
fn set_owner(&mut self, owner: AccountId)
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
source§fn assert_owner(&self)
fn assert_owner(&self)
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
source§impl Upgradable for Upgrade
impl Upgradable for Upgrade
source§fn get_staging_duration(&self) -> U64
fn get_staging_duration(&self) -> U64
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
source§fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp)
fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp)
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
source§fn deploy_code(&mut self) -> Promise
fn deploy_code(&mut self) -> Promise
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.