Skip to main content

StateDiff

Struct StateDiff 

Source
pub struct StateDiff {
Show 40 fields pub account_updates: HashMap<AccountId, AccountRecord>, pub staking_updates: Vec<StakingUpdate>, pub nft_updates: HashMap<[u8; 32], Option<NFTRecord>>, pub cell_updates: Vec<CellUpdate>, pub gas_fee: u128, pub name_fee: u128, pub cu_fee: u128, pub treasury_fee: u128, pub compute_fee_trth: u128, pub tx_hash: [u8; 32], pub tx_hashes: HashSet<[u8; 32]>, pub pending_name_proposals: Vec<(String, PendingNameRegistration, AccountId, bool)>, pub name_votes: Vec<(String, Vec<u8>, u64)>, pub pending_token_authority_proposals: Vec<(AccountId, TokenAuthorityProposal)>, pub token_authority_votes: Vec<(AccountId, Vec<u8>, u64)>, pub name_renewals: Vec<(String, u64)>, pub name_transfers: Vec<(String, AccountId)>, pub native_transfers: Vec<(AccountId, u128)>, pub native_debits: Vec<(AccountId, u128)>, pub compute_escrow_credits: Vec<(AccountId, u128)>, pub compute_escrow_debits: Vec<(AccountId, u128)>, pub token_credits: Vec<(AccountId, AccountId, u128)>, pub token_balance_updates: Vec<((AccountId, AccountId), u128)>, pub staking_rewards: Vec<(AccountId, u128)>, pub cell_credits: Vec<(AccountId, u128)>, pub cell_debits: Vec<(AccountId, u128)>, pub storage_deltas: HashMap<AccountId, StorageDelta>, pub airdrop_claims: Vec<(AccountId, u64)>, pub minted_amount: u128, pub frozen_account_updates: Vec<((AccountId, AccountId), bool)>, pub oracle_updates: Vec<OracleUpdate>, pub param_updates: Vec<([u8; 32], [u8; 32])>, pub nonce_updates: Vec<(AccountId, u64)>, pub gas_fee_spent: u128, pub name_fee_spent: u128, pub compute_fee_spent: u128, pub treasury_fee_spent: u128, pub fee_burned: u128, pub is_system: bool, pub gas_breakdown: Vec<(String, u128)>,
}

Fields§

§account_updates: HashMap<AccountId, AccountRecord>§staking_updates: Vec<StakingUpdate>§nft_updates: HashMap<[u8; 32], Option<NFTRecord>>§cell_updates: Vec<CellUpdate>§gas_fee: u128§name_fee: u128§cu_fee: u128§treasury_fee: u128§compute_fee_trth: u128§tx_hash: [u8; 32]§tx_hashes: HashSet<[u8; 32]>§pending_name_proposals: Vec<(String, PendingNameRegistration, AccountId, bool)>§name_votes: Vec<(String, Vec<u8>, u64)>§pending_token_authority_proposals: Vec<(AccountId, TokenAuthorityProposal)>§token_authority_votes: Vec<(AccountId, Vec<u8>, u64)>§name_renewals: Vec<(String, u64)>§name_transfers: Vec<(String, AccountId)>§native_transfers: Vec<(AccountId, u128)>§native_debits: Vec<(AccountId, u128)>§compute_escrow_credits: Vec<(AccountId, u128)>§compute_escrow_debits: Vec<(AccountId, u128)>§token_credits: Vec<(AccountId, AccountId, u128)>§token_balance_updates: Vec<((AccountId, AccountId), u128)>§staking_rewards: Vec<(AccountId, u128)>§cell_credits: Vec<(AccountId, u128)>§cell_debits: Vec<(AccountId, u128)>§storage_deltas: HashMap<AccountId, StorageDelta>§airdrop_claims: Vec<(AccountId, u64)>§minted_amount: u128§frozen_account_updates: Vec<((AccountId, AccountId), bool)>§oracle_updates: Vec<OracleUpdate>§param_updates: Vec<([u8; 32], [u8; 32])>§nonce_updates: Vec<(AccountId, u64)>§gas_fee_spent: u128§name_fee_spent: u128§compute_fee_spent: u128§treasury_fee_spent: u128§fee_burned: u128

Fee revenue permanently removed during a system distribution.

This is an audit field: balances are not credited here. The amount is represented by spent fee accumulators that are intentionally not paid to validators or Staked TRTH holders.

§is_system: bool§gas_breakdown: Vec<(String, u128)>

Trait Implementations§

Source§

impl Clone for StateDiff

Source§

fn clone(&self) -> StateDiff

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StateDiff

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StateDiff

Source§

fn default() -> StateDiff

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more