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
sourceimpl Substate
impl Substate
sourcepub fn from_access_list(access_list: &AccessList) -> Self
pub fn from_access_list(access_list: &AccessList) -> Self
Creates a new substate from an access list
sourcepub fn accrue(&mut self, s: Substate)
pub fn accrue(&mut self, s: Substate)
Merge secondary substate s
into self, accruing each element correspondingly.
sourcepub fn to_cleanup_mode(&mut self, schedule: &Schedule) -> CleanupMode<'_>
pub fn to_cleanup_mode(&mut self, schedule: &Schedule) -> CleanupMode<'_>
Get the cleanup mode object from this.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Substate
impl !Send for Substate
impl !Sync for Substate
impl Unpin for Substate
impl !UnwindSafe for Substate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more