Module interpreter

Source

Modules§

analysis
serde

Structs§

Contract
EVM contract information.
Interpreter
EVM bytecode interpreter.
InterpreterResult
The result of an interpreter operation.
SharedMemory
A sequential memory shared between calls, which uses a Vec for internal representation. A SharedMemory instance should always be obtained using the new static method to ensure memory safety.
Stack
EVM stack with STACK_LIMIT capacity of words.

Constants§

EMPTY_SHARED_MEMORY
Empty shared memory.
STACK_LIMIT
EVM interpreter stack limit.

Functions§

next_multiple_of_32
Rounds up x to the closest multiple of 32. If x % 32 == 0 then x is returned. Note, if x is greater than usize::MAX - 31 this will return usize::MAX which isn’t a multiple of 32.