Struct primitives::account::ContractAccount
source · pub struct ContractAccount {
pub balance: U256,
pub nonce: U256,
pub code_hash: H256,
pub staking_balance: U256,
pub collateral_for_storage: U256,
pub accumulated_interest_return: U256,
pub admin: Address,
pub sponsor_info: SponsorInfo,
}
Expand description
Defined for Rlp serialization/deserialization.
Fields§
§balance: U256
§nonce: U256
§code_hash: H256
§staking_balance: U256
This is the number of tokens used in staking.
collateral_for_storage: U256
This is the number of tokens used as collateral for storage, which will be returned to balance if the storage is released.
accumulated_interest_return: U256
This is the accumulated interest return.
admin: Address
This is the address of the administrator of the contract.
sponsor_info: SponsorInfo
This is the sponsor information of the contract.
Trait Implementations§
source§impl Decodable for ContractAccount
impl Decodable for ContractAccount
Auto Trait Implementations§
impl RefUnwindSafe for ContractAccount
impl Send for ContractAccount
impl Sync for ContractAccount
impl Unpin for ContractAccount
impl UnwindSafe for ContractAccount
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