referrerpolicy=no-referrer-when-downgrade

Module evm

Source
Expand description

Types, and traits to integrate pallet-revive with EVM.

Re-exports§

pub use rlp;

Modules§

runtime
Runtime types for integrating pallet-revive with the EVM.

Macros§

if_ethbloom
Conditional compilation depending on whether ethereum-types is built with ethbloom support.

Structs§

AccessListEntry
Access list entry
Account
A simple account that can sign transactions
AuthorizationListEntry
Authorization list entry for EIP-7702
Block
Block object
Bloom
Bloom hash type with 256 bytes (2048 bits) size.
BloomRef
Byte
u8 wrapper type for encoding and decoding hex strings
Bytes
Vec<u8> wrapper type for encoding and decoding hex strings
Bytes8
[u8; 8] wrapper type for encoding and decoding hex strings
Bytes32
[u8; 32] wrapper type for encoding and decoding hex strings
Bytes256
[u8; 256] wrapper type for encoding and decoding hex strings
CallLog
A log emitted during a call.
CallTrace
A smart contract execution call trace.
CallTracer
A Tracer that reports logs and nested call traces transactions.
CallTracerConfig
The configuration for the call tracer.
FeeHistoryResult
Filter
filter
FromStrRadixErr
The error type for parsing numbers from strings.
GenericTransaction
Transaction object generic to all types
H32
H64
H128
Fixed-size uninterpreted hash type with 16 bytes (128 bits) size.
H160
Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
H256
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
H264
H512
Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
H520
InputOrData
Input of a GenericTransaction
Log
log
PrestateTraceInfo
The info of a prestate trace.
PrestateTracer
A tracer that traces the prestate.
PrestateTracerConfig
The configuration for the prestate tracer.
ReceiptInfo
Receipt information
SyncingProgress
Syncing progress
TracerConfig
Tracer configuration used to trace calls.
Transaction1559Signed
Signed 1559 Transaction
Transaction1559Unsigned
EIP-1559 transaction.
Transaction2930Signed
Signed 2930 Transaction
Transaction2930Unsigned
EIP-2930 transaction.
Transaction4844Signed
Signed 4844 Transaction
Transaction4844Unsigned
EIP-4844 transaction.
Transaction7702Signed
Signed 7702 Transaction
Transaction7702Unsigned
EIP-7702 transaction.
TransactionInfo
Transaction information
TransactionLegacySigned
Signed Legacy Transaction
TransactionLegacyUnsigned
Legacy transaction.
TransactionTrace
A transaction trace
TypeEip1559
Transaction type identifier: 2
TypeEip2930
Transaction type identifier: 1
TypeEip4844
Transaction type identifier: 3
TypeEip7702
Transaction type identifier: 4
TypeLegacy
Transaction type identifier: 0
U64
Little-endian large integer type Unsigned 64-bit integer.
U128
Little-endian large integer type 128-bit unsigned integer.
U256
Little-endian large integer type 256-bit unsigned integer.
U512
Little-endian large integer type 512-bits unsigned integer.
Withdrawal
Validator withdrawal

Enums§

AddressOrAddresses
Address(es)
BlockNumberOrTag
Block number or tag
BlockNumberOrTagOrHash
Block number, tag, or block hash
BlockTag
Block tag earliest: The lowest numbered block the client has available; finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; pending: A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for finalized or safe block MUST be responded to with -39001: Unknown block error
BloomInput
CallType
The type of call that was executed.
FilterResults
Filter results
FilterTopic
Filter Topic List Entry
FromDecStrErr
Conversion from decimal string error
FromStrRadixErrKind
A list of error categories encountered when parsing numbers.
HashesOrTransactionInfos
PrestateTrace
A prestate Trace
SyncingStatus
Syncing status
Trace
A Trace
Tracer
A composite tracer.
TracerType
The type of tracer to use. Only “callTracer” is supported for now.
TransactionSigned
TransactionUnsigned

Constants§

TYPE_EIP1559
Transaction value for type identifier: 2
TYPE_EIP2930
Transaction value for type identifier: 1
TYPE_EIP4844
Transaction value for type identifier: 3
TYPE_EIP7702
Transaction value for type identifier: 4
TYPE_LEGACY
Transaction value for type identifier: 0

Traits§

BigEndianHash
GasEncoder
Encodes/Decodes EVM gas values.

Functions§

decode_revert_reason
Decodes and retrieves the reason for a revert from the provided output data.
is_empty
Returns true if the map has no Some element
serialize_map_skip_none
Serializes a map, skipping None values.

Type Aliases§

AccessList
Access list
Address
Addresses
hex encoded address
FilterTopics
Filter Topics
Public
Secret
Signature