pub enum CellUpdate {
Deploy {
cell_id: AccountId,
cell: CellAccount,
},
StorageChange {
cell_id: AccountId,
storage_diff: HashMap<[u8; 32], Option<[u8; 32]>>,
},
BalanceChange {
cell_id: AccountId,
new_balance: u128,
},
Remove {
cell_id: AccountId,
},
Upgrade {
cell_id: AccountId,
new_bytecode: Vec<u8>,
new_declared_reads: Vec<[u8; 32]>,
new_declared_writes: Vec<[u8; 32]>,
new_commutative_keys: Vec<[u8; 32]>,
new_storage_key_specs: Vec<StorageKeySpec>,
new_oracle_schema_ids: Vec<[u8; 32]>,
timestamp: u64,
},
TransferOwnership {
cell_id: AccountId,
new_owner: AccountId,
},
AcceptOwnership {
cell_id: AccountId,
caller: AccountId,
},
MakeImmutable {
cell_id: AccountId,
caller: AccountId,
},
}Variants§
Deploy
StorageChange
BalanceChange
Remove
Upgrade
Fields
§
new_storage_key_specs: Vec<StorageKeySpec>TransferOwnership
AcceptOwnership
MakeImmutable
Trait Implementations§
Source§impl Clone for CellUpdate
impl Clone for CellUpdate
Source§fn clone(&self) -> CellUpdate
fn clone(&self) -> CellUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CellUpdate
impl RefUnwindSafe for CellUpdate
impl Send for CellUpdate
impl Sync for CellUpdate
impl Unpin for CellUpdate
impl UnsafeUnpin for CellUpdate
impl UnwindSafe for CellUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more