Structs§
- Action
Params - Action (call/create) input params. Everything else should be specified in Externalities.
- CIP645
Spec - Represents the feature flags for CIP-645 implementation.
- Consensus
GasSpec - Spec parameters are determined solely by block height and thus accessible to the consensus protocol.
- Env
- Information concerning the execution environment for a message-call/contract-creation.
- Return
Data - Return data buffer. Holds memory from a previous call and a slice into that memory.
- Spec
- Definition of the cost spec and other parameterisations for the VM.
Enums§
- Action
Value - Transaction value
- Block
Hash Source - Call
Type - The type of the call-like instruction.
- Contract
Create Result - Result of externalities create function.
- Create
Contract Address - Specifies how an address is calculated for a new contract.
- Create
Type - The type of the create-like instruction.
- Error
- VM errors.
- GasLeft
- Gas Left: either it is a known value, or it needs to be computed by processing a return instruction.
- Instruction
Result - Message
Call Result - Result of externalities call function.
- Params
Type - Type of the way parameters encoded
- Trap
Error - Trap
Kind - Trap
Result
Constants§
Traits§
- Context
- Context for VMs
- Exec
- Virtual Machine interface
- Interpreter
Info - Resume
Call - Resume call interface
- Resume
Create - Resume create interface
Functions§
- contract_
address - Calculate new contract address.
- extract_
7702_ payload - separate_
out_ db_ error - Separate out database-related errors from other EVM errors. The EVM itself does not distinguish between errors that originate from within (e.g., index out-of-bounds) and those that come from external sources like database operations.