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