pub trait Upgradable {
fn get_staging_duration(&self) -> U64;
fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp);
fn deploy_code(&mut self) -> Promise;
fn migrate(&mut self) { ... }
}
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Required Methods§
sourcefn 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.
sourcefn 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.
sourcefn 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.