Expand description
Constants and utils for calldata cost.
See also EIP-7623: Increase calldata cost
Constants§
- NON_
ZERO_ BYTE_ DATA_ COST - The cost of a non-zero byte in calldata.
- NON_
ZERO_ BYTE_ MULTIPLIER - The multiplier for a non zero byte in calldata.
- STANDARD_
TOKEN_ COST - The standard cost of calldata token.
- TOTAL_
COST_ FLOOR_ PER_ TOKEN - The cost floor per token
Functions§
- tokens_
in_ calldata - Retrieve the total number of tokens in calldata.
- transaction_
floor_ cost - Calculate the transaction cost floor as specified in EIP-7623.