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§

👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.

Provided Methods§

👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.

Implement migration for the next version. Should be unimplemented for a new contract. TODO: consider adding version of the contract stored in the storage?

Implementors§