The journaled_state
module of the revm
crate provides a state management implementation for Ethereum-style accounts.
METHODS:
selfdestruct
This method marks an account as self-destructed and transfers its balance to a target account. If the target account does not exist, it's created. If the self-destructed account and the target are the same, the balance will be lost.
initial_account_and_code_load
This method initializes an account and loads its associated code from the database. If the code does not exist, an empty code is associated with the account.
initial_account_load
This method loads an account's basic information from the database without loading the code. It also loads specified storage slots into memory.
load_account
This method loads an account's information into memory and returns whether the account was cold or hot accessed.
load_account_exist
This method checks whether an account exists or not. It returns whether the account was cold or hot accessed and whether it exists.
load_code
This method loads an account's code into memory from the database.
sload
This method loads a specified storage value of an account. It returns the value and whether the storage was cold loaded.
sstore
This method changes the value of a specified storage slot in an account and returns the original value, the present value, the new value, and whether the storage was cold loaded.
log
This method adds a log entry to the journal.
is_precompile
This method checks whether an address is a precompiled contract or not.