Expand description
EVM gas calculation utilities.
Structs§
- Represents the state of gas during execution.
- Utility struct that speeds up calculation of memory expansion It contains the current memory length and its memory expansion cost.
Enums§
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.
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.