Test Point Evaluation Precompile Gas¶
Documentation for tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py.
Generate fixtures for these test cases for Cancun with:
Cancun only:
fill -v tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py --fork=Cancun --evm-bin=/path/to/evm-tool-dev-version
fill -v tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py --until=Cancun --evm-bin=/path/to/evm-tool-dev-version
Tests gas usage on point evaluation precompile for EIP-4844: Shard Blob Transactions
Test gas usage on point evaluation precompile for EIP-4844: Shard Blob Transactions.
Spec
dataclass
¶
Parameters from the EIP-4844 specifications as defined at https://eips.ethereum.org/EIPS/eip-4844#parameters
If the parameter is not currently used within the tests, it is commented out.
Source code in tests/cancun/eip4844_blobs/spec.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
test_point_evaluation_precompile_gas_usage(blockchain_test, pre, tx, post)
¶
Test point evaluation precompile gas usage under different call contexts and gas limits:
- Test using all call types (CALL, DELEGATECALL, CALLCODE, STATICCALL)
- Test using different gas limits (exact gas, insufficient gas, extra gas)
- Test using correct and incorrect proofs
Source code in tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |