Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP 2537 state tests #712

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 15 additions & 4 deletions GeneralStateTests/stExample/add11.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"add11" : {
"_info" : {
"comment" : "A test for (add 1 1) opcode result",
"filling-rpc-server" : "Geth-1.9.14-unstable-8cf83419-20200512",
"filling-tool-version" : "retesteth-0.0.3+commit.672a84dd.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"filling-rpc-server" : "Geth-1.9.16-unstable-1d977d26-20200710",
"filling-tool-version" : "retesteth-0.0.5-t8ntool+commit.113c1853.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.7.5+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stExample/add11Filler.json",
"sourceHash" : "e474fc13b1ea4c60efe2ba925dd48d6f9c1b12317dcd631f5eeeb3722a790a37"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xFF112233445566",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
Expand All @@ -27,6 +27,17 @@
"hash" : "0xe4c855f0d0e96d48d73778772ee570c45acb7c57f87092e08fed6b2205d390f4",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
],
"YoloV1" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0xe4c855f0d0e96d48d73778772ee570c45acb7c57f87092e08fed6b2205d390f4",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
Expand Down
64 changes: 64 additions & 0 deletions GeneralStateTests/stExample/extras_fp2_to_g2_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp2_to_g2_0" : {
"_info" : {
"comment" : "A test for extras_fp2_to_g2_0",
"filling-rpc-server" : "Geth-1.9.16-unstable-1d977d26-20200710",
"filling-tool-version" : "retesteth-0.0.5-t8ntool+commit.113c1853.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.7.5+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stExample/extras_fp2_to_g2_0Filler.json",
"sourceHash" : "f762f3f19b19b9470f7fdbbc5966f8544a37b394b044cb12dd329b5745d5d91c"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"YoloV1" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0xbee04e8d811e9cf133568b04683ac071c92f157123c69f3975ceb78e4de77843",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd429900000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002256031a4cc1bd58dc0e2ebb13b49b5ded8a28170c5ea0fd"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
64 changes: 64 additions & 0 deletions GeneralStateTests/stExample/extras_fp2_to_g2_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp2_to_g2_1" : {
"_info" : {
"comment" : "A test for extras_fp2_to_g2_1",
"filling-rpc-server" : "Geth-1.9.16-unstable-1d977d26-20200710",
"filling-tool-version" : "retesteth-0.0.5-t8ntool+commit.113c1853.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.7.5+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stExample/extras_fp2_to_g2_1Filler.json",
"sourceHash" : "7b7f86f17a0c265df200e7651599f6446c1f6f2a096fbb8225bec8c4e2d43d53"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"YoloV1" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0x7aa881e4f5f8854c1f0e4d4594a1c8a4bc555cd0ff6cfa347d194e890a2d2a17",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd42990000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000241031a4cc1bd58dc0e2ebb256b49b5ded8a28170c5ea0fd"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
64 changes: 64 additions & 0 deletions GeneralStateTests/stExample/extras_fp2_to_g2_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp2_to_g2_2" : {
"_info" : {
"comment" : "A test for extras_fp2_to_g2_2",
"filling-rpc-server" : "Geth-1.9.16-unstable-1d977d26-20200710",
"filling-tool-version" : "retesteth-0.0.5-t8ntool+commit.113c1853.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.7.5+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stExample/extras_fp2_to_g2_2Filler.json",
"sourceHash" : "3dbd07be4261642084e739350b71f42dfdb2f854989d9d4513ca255c960bab20"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"YoloV1" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0x56fa99a1e2424873c1b5380b4b29cf07c67528b9ae87bd263cecace946282e2b",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd42990000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000241031a4cc1bd58dc0e2ebb13b49b5ded8a282560c5ea0fd"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
64 changes: 64 additions & 0 deletions GeneralStateTests/stExample/extras_fp_to_g1_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp_to_g1_0" : {
"_info" : {
"comment" : "A test for extras_fp_to_g1_0",
"filling-rpc-server" : "Geth-1.9.16-unstable-1d977d26-20200710",
"filling-tool-version" : "retesteth-0.0.5-t8ntool+commit.113c1853.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.7.5+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stExample/extras_fp_to_g1_0Filler.json",
"sourceHash" : "5ff400b0866b946974de927ce720433206f784c72a4a77b7aa8b7eca361d84bd"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"YoloV1" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0xa557fcb7ee3a31968c3d2bfcfbd19416f637ce7e87baebbfed37270544c9271c",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd429900000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000215a2313a0241779006bce33a776aeedae5d05ea6ee5a9b9"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
Loading