pub struct CellAccount {Show 22 fields
pub cell_id: AccountId,
pub owner: AccountId,
pub bytecode: Vec<u8>,
pub storage: HashMap<[u8; 32], [u8; 32]>,
pub balance: u128,
pub rent_deposit: u128,
pub is_token: bool,
pub token_config: Option<TokenConfig>,
pub created_at: u64,
pub upgraded_at: Option<u64>,
pub last_rent_paid_height: u64,
pub rent_grace_blocks: u64,
pub pending_owner: Option<AccountId>,
pub is_immutable: bool,
pub declared_reads: Vec<[u8; 32]>,
pub declared_writes: Vec<[u8; 32]>,
pub commutative_keys: Vec<[u8; 32]>,
pub storage_key_specs: Vec<StorageKeySpec>,
pub oracle_schema_ids: Vec<[u8; 32]>,
pub governance_proposal: Option<GovernanceProposal>,
pub manifest_version: u64,
pub manifest_hash: [u8; 32],
}Expand description
Cell account - stores bytecode and state
Fields§
§cell_id: AccountId§owner: AccountId§bytecode: Vec<u8>§storage: HashMap<[u8; 32], [u8; 32]>§balance: u128§rent_deposit: u128§is_token: bool§token_config: Option<TokenConfig>§created_at: u64§upgraded_at: Option<u64>§last_rent_paid_height: u64§rent_grace_blocks: u64§pending_owner: Option<AccountId>§is_immutable: bool§declared_reads: Vec<[u8; 32]>§declared_writes: Vec<[u8; 32]>§commutative_keys: Vec<[u8; 32]>§storage_key_specs: Vec<StorageKeySpec>§oracle_schema_ids: Vec<[u8; 32]>§governance_proposal: Option<GovernanceProposal>§manifest_version: u64§manifest_hash: [u8; 32]Implementations§
Source§impl CellAccount
impl CellAccount
pub fn compute_manifest_hash( bytecode: &[u8], declared_reads: &[[u8; 32]], declared_writes: &[[u8; 32]], commutative_keys: &[[u8; 32]], oracle_schema_ids: &[[u8; 32]], ) -> [u8; 32]
pub fn analyze_bytecode(bytecode: &[u8]) -> Result<ManifestAnalysis, String>
pub fn require_inferable( bytecode: &[u8], storage_key_specs: &[StorageKeySpec], ) -> Result<(), String>
pub fn verify_manifest_against_bytecode( bytecode: &[u8], declared_reads: &[[u8; 32]], declared_writes: &[[u8; 32]], storage_key_specs: &[StorageKeySpec], ) -> Result<(), String>
Trait Implementations§
Source§impl Clone for CellAccount
impl Clone for CellAccount
Source§fn clone(&self) -> CellAccount
fn clone(&self) -> CellAccount
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 moreSource§impl ConflictAwareCell for CellAccount
impl ConflictAwareCell for CellAccount
Source§impl Debug for CellAccount
impl Debug for CellAccount
Source§impl<'de> Deserialize<'de> for CellAccount
impl<'de> Deserialize<'de> for CellAccount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CellAccount
impl RefUnwindSafe for CellAccount
impl Send for CellAccount
impl Sync for CellAccount
impl Unpin for CellAccount
impl UnsafeUnpin for CellAccount
impl UnwindSafe for CellAccount
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