test_call_types()
¶
Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1msm.py::test_call_types@21fb11c8
.
Generate fixtures for these test cases for Prague with:
fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1msm.py::test_call_types --fork Prague
Test the BLS12_G1MSM precompile using different call types.
Source code in tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1msm.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | input_data | expected_output | call_opcode | precompile_address |
---|---|---|---|---|
...fork_Prague-state_test-inf_times_zero-call_opcode_STATICCALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | STATICCALL | 12 |
...fork_Prague-state_test-inf_times_zero-call_opcode_DELEGATECALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | DELEGATECALL | 12 |
...fork_Prague-state_test-inf_times_zero-call_opcode_CALLCODE- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | CALLCODE | 12 |
...fork_Prague-blockchain_test_from_state_test-inf_times_zero-call_opcode_STATICCALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | STATICCALL | 12 |
...fork_Prague-blockchain_test_from_state_test-inf_times_zero-call_opcode_DELEGATECALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | DELEGATECALL | 12 |
...fork_Prague-blockchain_test_from_state_test-inf_times_zero-call_opcode_CALLCODE- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | CALLCODE | 12 |
...fork_Osaka-state_test-inf_times_zero-call_opcode_STATICCALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | STATICCALL | 12 |
...fork_Osaka-state_test-inf_times_zero-call_opcode_DELEGATECALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | DELEGATECALL | 12 |
...fork_Osaka-state_test-inf_times_zero-call_opcode_CALLCODE- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | CALLCODE | 12 |
...fork_Osaka-blockchain_test_from_state_test-inf_times_zero-call_opcode_STATICCALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | STATICCALL | 12 |
...fork_Osaka-blockchain_test_from_state_test-inf_times_zero-call_opcode_DELEGATECALL- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | DELEGATECALL | 12 |
...fork_Osaka-blockchain_test_from_state_test-inf_times_zero-call_opcode_CALLCODE- | 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 |
PointG1(x=0, y=0) | CALLCODE | 12 |