Test Function: test_call_types()

Test the BLS12_MAP_FP_TO_G2 precompile using different call types.

Back to test_call_types().

Parametrized Test Cases

Test ID (Abbreviated) input_data expected_output call_opcode precompile_address
...fork_Prague-state_test-fp_0-call_opcode_STATICCALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) STATICCALL 17
...fork_Prague-state_test-fp_0-call_opcode_DELEGATECALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) DELEGATECALL 17
...fork_Prague-state_test-fp_0-call_opcode_CALLCODE- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) CALLCODE 17
...fork_Prague-blockchain_test_from_state_test-fp_0-call_opcode_STATICCALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) STATICCALL 17
...fork_Prague-blockchain_test_from_state_test-fp_0-call_opcode_DELEGATECALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) DELEGATECALL 17
...fork_Prague-blockchain_test_from_state_test-fp_0-call_opcode_CALLCODE- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) CALLCODE 17
...fork_Osaka-state_test-fp_0-call_opcode_STATICCALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) STATICCALL 17
...fork_Osaka-state_test-fp_0-call_opcode_DELEGATECALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) DELEGATECALL 17
...fork_Osaka-state_test-fp_0-call_opcode_CALLCODE- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) CALLCODE 17
...fork_Osaka-blockchain_test_from_state_test-fp_0-call_opcode_STATICCALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) STATICCALL 17
...fork_Osaka-blockchain_test_from_state_test-fp_0-call_opcode_DELEGATECALL- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) DELEGATECALL 17
...fork_Osaka-blockchain_test_from_state_test-fp_0-call_opcode_CALLCODE- FP2(x=(0, 0)) PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) CALLCODE 17