pub struct Substate {
    pub suicides: HashSet<Address>,
    pub touched: HashSet<Address>,
    pub logs: Vec<LogEntry>,
    pub sstore_clears_refund: i128,
    pub contracts_created: Vec<Address>,
    pub access_list: AccessList,
}
Expand description

State changes which should be applied in finalize, after transaction is fully executed.

Fields

suicides: HashSet<Address>

Any accounts that have suicided.

touched: HashSet<Address>

Any accounts that are touched.

logs: Vec<LogEntry>

Any logs.

sstore_clears_refund: i128

Refund counter of SSTORE.

contracts_created: Vec<Address>

Created contracts.

access_list: AccessList

List of accesses addresses and slots

Implementations

Creates new substate.

Creates a new substate from an access list

Merge secondary substate s into self, accruing each element correspondingly.

Get the cleanup mode object from this.

Trait Implementations

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.