Expand description
§rtvm-primitives
EVM primitive types.
Re-exports§
pub use kzg::EnvKzgSettings;
pub use alloy_primitives;
pub use alloy_primitives::bytes;
pub use alloy_primitives::hex;
pub use alloy_primitives::hex_literal;
pub use alloy_primitives::ruint;
pub use bitvec;
pub use env::*;
pub use precompile::*;
pub use result::*;
pub use specification::*;
pub use state::*;
pub use utilities::*;
Modules§
- db
- env
- eof
- hash_
map - A hash map implemented with quadratic probing and SIMD lookup.
- hash_
set - A hash set implemented as a
HashMap
where the value is()
. - kzg
- legacy
- precompile
- result
- specification
- state
- utilities
Macros§
- address
- Converts a sequence of string literals containing hex-encoded data
into a new
Address
at compile time. - b256
- Converts a sequence of string literals containing hex-encoded data
into a new
B256
at compile time. - bytes
- Converts a sequence of string literals containing hex-encoded data into a
new
Bytes
at compile time. - fixed_
bytes - Converts a sequence of string literals containing hex-encoded data
into a new
FixedBytes
at compile time. - hex
- Macro for converting sequence of string literals containing hex-encoded data into an array of bytes.
- spec_
to_ generic
Structs§
- Address
- An Ethereum address, 20 bytes in length.
- Bytes
- Wrapper type around
bytes::Bytes
to support “0x” prefixed hex strings. - Eof
- EOF - Ethereum Object Format.
- Fixed
Bytes - A byte array of fixed length (
[u8; N]
). - HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- HashSet
- A hash set implemented as a
HashMap
where the value is()
. - Jump
Table - A map of valid
jump
destinations. - KzgSettings
- Stores the setup and parameters needed for computing KZG proofs.
- Legacy
Analyzed Bytecode - Legacy analyzed
- Log
- A log consists of an address, and some log data.
- LogData
- An Ethereum event log object.
Enums§
Constants§
- BLOB_
GASPRICE_ UPDATE_ FRACTION - Controls the maximum rate of change for blob gas price.
- BLOCK_
HASH_ HISTORY - Number of block hashes that EVM can access in the past
- GAS_
PER_ BLOB - Gas consumption of a single data blob (== blob byte size).
- MAX_
BLOB_ GAS_ PER_ BLOCK - Maximum consumable blob gas for data blobs per block.
- MAX_
BLOB_ NUMBER_ PER_ BLOCK - Max number of blobs per block
- MAX_
CODE_ SIZE - EIP-170: Contract code size limit By default limit is 0x6000 (~25kb)
- MAX_
INITCODE_ SIZE - EIP-3860: Limit and meter initcode
- MIN_
BLOB_ GASPRICE - Minimum gas price for data blobs.
- PRECOMPIL
E3 - Precompile 3 is special in few places
- TARGET_
BLOB_ GAS_ PER_ BLOCK - Target consumable blob gas for data blobs per block (for 1559-like pricing).
- TARGET_
BLOB_ NUMBER_ PER_ BLOCK - Target number of the blob per block.
- VERSIONED_
HASH_ VERSION_ KZG - First version of the blob.
Type Aliases§
- B256
- 32-byte fixed byte-array type.
- I256
- 256-bit signed integer type, consisting of 4, 64-bit limbs.
- U256
Uint
for256
bits.