Module bus_mapping::operation
source · Expand description
Collection of structs and functions used to:
- Define the internals of a
MemoryOp
,StackOp
andStorageOp
. - Define the actual operation types and a wrapper over them (the
Operation
enum). - Define structures that interact with operations such as
OperationContainer
.
Structs§
- Represents a change in the Account field implied by a
BeginTx
,EXTCODECOPY
,EXTCODESIZE
,BALANCE
,SELFDESTRUCT
,*CALL
*,CREATE*
,STOP
,RETURN
orREVERT
step. - Represents an CallContext read/write operation.
- Represents a
MemoryAddress
of the EVM. - Operation is a Wrapper over a type that implements Op with a RWCounter.
- Represent a Padding padding operation
- Wrapper type over
usize
which represents the global counter. The purpose of theRWCounter
is to enforce that each Opcode/Instruction and Operation is unique and just executed once. - Represents a
StackAddress
of the EVM. The address range goesTOP -> DOWN (1024, 0]
. - Represent a Start padding operation
- StepStateOp represents exec state store and load
- An iterator over the variants of Self
- Represents a change in the Account AccessList implied by a
BeginTx
,EXTCODECOPY
,EXTCODESIZE
,EXTCODEHASH
BALANCE
,SELFDESTRUCT
,*CALL
* orCREATE*
step. - Represents TxLog read/write operation.
- Represents TxReceipt read/write operation.
- Represents a change in the Transaction Refund AccessList implied by an
SSTORE
,STOP
,RETURN
orREVERT
step of theExecStep
.
Enums§
- Represents a field parameter of the Account that can be accessed via EVM execution.
- Represents a field parameter of the CallContext that can be accessed via EVM execution.
- Marker that defines whether an Operation performs a
READ
or aWRITE
. - Represents a field parameter of the StepStateField.
- Enum used to differentiate between EVM Stack, Memory and Storage operations. This is also used as the RwTableTag for the RwTable.
- Represents a field parameter of the TxLog that can be accessed via EVM execution.
- Represents a field parameter of the TxReceipt that can be accessed via EVM execution.
Traits§
- Trait used for Operation Kinds.