Docs.rs
  • revm-interpreter-2.0.0
    • revm-interpreter 2.0.0
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • rakita
    • Dependencies
      • revm-primitives ^2.0.0 normal
      • serde ^1.0 normal
    • Versions
    • 68.75% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

revm_interpreter2.0.0

Module gas

  • Structs
  • Constants
  • Functions

In crate revm_interpreter

?
Change settings

Module revm_interpreter::gas

source ·
Expand description

EVM gas calculation utilities.

Structs§

  • Gas
    Represents the state of gas during execution.

Constants§

  • ACCESS_LIST_ADDRESS
  • ACCESS_LIST_STORAGE_KEY
  • BASE
  • BLOCKHASH
  • CALLVALUE
  • CALL_STIPEND
  • CODEDEPOSIT
  • COLD_ACCOUNT_ACCESS_COST
  • COLD_SLOAD_COST
  • COPY
  • CREATE
  • EXP
  • HIGH
  • INITCODE_WORD_COST
    EIP-3860 : Limit and meter initcode
  • INSTANBUL_SLOAD_GAS
    EIP-1884: Repricing for trie-size-dependent opcodes
  • JUMPDEST
  • KECCAK256
  • KECCAK256WORD
  • LOG
  • LOGDATA
  • LOGTOPIC
  • LOW
  • MEMORY
  • MID
  • NEWACCOUNT
  • REFUND_SSTORE_CLEARS
  • SELFDESTRUCT
  • SSTORE_RESET
  • SSTORE_SET
  • TRANSACTION_NON_ZERO_DATA_FRONTIER
  • TRANSACTION_NON_ZERO_DATA_INIT
  • TRANSACTION_ZERO_DATA
  • VERYLOW
  • WARM_SSTORE_RESET
  • WARM_STORAGE_READ_COST
  • ZERO

Functions§

  • account_access_gas
  • call_cost
  • call_gas
  • create2_cost
  • exp_cost
  • extcodecopy_cost
  • initcode_cost
    EIP-3860: Limit and meter initcode
  • keccak256_cost
  • log_cost
  • memory_gas
  • selfdestruct_cost
  • sload_cost
  • sstore_cost
  • sstore_refund
  • validate_initial_tx_gas
    Initial gas that is deducted for transaction to be included. Initial gas contains initial stipend gas, gas for access list and input data.
  • verylowcopy_cost
  • warm_cold_cost