Module gas
Expand description
EVM gas calculation utilities.
Structs§
- Represents the state of gas during execution.
- Init and floor gas from transaction
Constants§
- EIP-3860 : Limit and meter initcode
- EIP-1884: Repricing for trie-size-dependent opcodes
- The cost of a non-zero byte in calldata.
- The cost of a non-zero byte in calldata adjusted by EIP-2028.
- The multiplier for a non zero byte in calldata.
- The multiplier for a non zero byte in calldata adjusted by EIP-2028.
- The standard cost of calldata token.
Functions§
- Calculate the transaction cost floor as specified in EIP-7623.
- Initial gas that is deducted for transaction to be included. Initial gas contains initial stipend gas, gas for access list and input data.
- Calculate call gas cost for the call instruction.
- Calculate the cost of buffer per word.
CREATE2
opcode cost calculation.EXP
opcode cost calculation.EXTCODECOPY
opcode cost calculation.- Retrieve the total number of tokens in calldata.
- 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.*COPY
opcodes cost calculation.- Berlin warm and cold storage access cost for account access.
- Berlin warm and cold storage access cost for account access.