Expand description
Evm types needed for parsing instruction sets as well
Re-exports§
pub use memory::Memory;
pub use memory::MemoryAddress;
pub use opcode_ids::OpcodeId;
pub use stack::Stack;
pub use stack::StackAddress;
pub use storage::Storage;
pub use transient_storage::TransientStorage;
pub use super::MAX_EXPANDED_MEMORY_ADDRESS as MAX_INIT_CODE_SIZE;
Modules§
- Utility functions to help calculate gas
- Doc this
- Doc this
- Doc this
- Doc this
- Doc this
Structs§
- Defines the gas consumption.
Constants§
- Gas per code word for CREATE2 if not EIP-3860.
- Gas per code word for CREATE if not EIP-3860.
- Gas stipend when CALL or CALLCODE is attached with value.
- Once per word of the init code when creating a contract.
- According to EIP-3541, disallow new code starting with 0xEF to be deployed.
- This constant ((2^32 - 1) * 32) is the highest number that can be used without overflowing the square operation of gas calculation. https://github.com/ethereum/go-ethereum/blob/e6b6a8b738069ad0579f6798ee59fde93ed13b43/core/vm/gas_table.go#L38
- Quotient for max refund of gas used
- This constant is used to iterate through precompile contract addresses 0x01 to 0x09