Expand description
EVM gas calculation utilities.
Structs§
- Represents the state of gas during execution.
Constants§
- EIP-3860 : Limit and meter initcode
- EIP-1884: Repricing for trie-size-dependent opcodes
Functions§
- Calculate call gas cost for the call instruction.
*COPY
opcodes cost calculation.- Calculate the cost of buffer per word.
CREATE2
opcode cost calculation.EXP
opcode cost calculation.EXTCODECOPY
opcode cost calculation.- EIP-3860: Limit and meter initcode
KECCAK256
opcode cost calculation.LOG
opcode cost calculation.- Memory expansion cost calculation for a given number of words.
- Memory expansion cost calculation for a given memory length.
SELFDESTRUCT
opcode cost calculation.SLOAD
opcode cost calculation.SSTORE
opcode cost calculation.SSTORE
opcode refund calculation.- Initial gas that is deducted for transaction to be included. Initial gas contains initial stipend gas, gas for access list and input data.
- Berlin warm and cold storage access cost for account access.
- Berlin warm and cold storage access cost for account access.