pub struct Upgrade {
pub owner: AccountId,
pub staging_duration: Duration,
pub staging_timestamp: Timestamp,
}This was removed because there is no standard (UIP) for upgradable contracts.
Fields§
§owner: AccountIdThis was removed because there is no standard (UIP) for upgradable contracts.
staging_duration: DurationThis was removed because there is no standard (UIP) for upgradable contracts.
staging_timestamp: TimestampThis was removed because there is no standard (UIP) for upgradable contracts.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Upgrade
impl BorshDeserialize for Upgrade
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Upgrade
impl BorshSerialize for Upgrade
Source§impl Ownable for Upgrade
impl Ownable for Upgrade
Source§fn get_owner(&self) -> AccountId
fn get_owner(&self) -> AccountId
This was removed because there is no standard (UIP) for upgradable contracts.
Source§fn set_owner(&mut self, owner: AccountId)
fn set_owner(&mut self, owner: AccountId)
This was removed because there is no standard (UIP) for upgradable contracts.
Source§fn assert_owner(&self)
fn assert_owner(&self)
This was removed because there is no standard (UIP) 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
This was removed because there is no standard (UIP) for upgradable contracts.
Source§fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp)
fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp)
This was removed because there is no standard (UIP) for upgradable contracts.
Source§fn deploy_code(&mut self) -> Promise
fn deploy_code(&mut self) -> Promise
This was removed because there is no standard (UIP) for upgradable contracts.