Skip to content

Commit

Permalink
Get rid of version, consider standard solution in ethereum#408 for th…
Browse files Browse the repository at this point in the history
…e future
  • Loading branch information
epheph committed Jun 8, 2023
1 parent 152cf09 commit c8abc82
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/eth/execute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
- name: eth_multicall
summary: Executes a sequence of message calls building on each other's state without creating transactions on the block chain, optionally overriding block and state data
params:
- name: Version
schema:
title: Version
$ref: '#/components/schemas/uint'
- name: BlockCalls
schema:
title: Arguments for multi call
Expand Down
2 changes: 1 addition & 1 deletion tests/eth_multicall/multicall-account-add-state.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":["0x0",[],"latest"]}
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":[[],"latest"]}
<< {"jsonrpc":"2.0","id":1,"result":[]}
2 changes: 1 addition & 1 deletion tests/eth_multicall/multicall-account-override-state.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":["0x0",[{"stateOverrides":[{"nonce":"0x1", "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "balance": "0xde0b6b3a7640000", "state": {"0x2292f0db49e1af24fbcac7f32b7537f334244455ad0ed0b46a78202982e7b70d": "0xde0b6b3a7640000", "0x877bd4632ef8c8ddc43b67e5a4511d939eadb612553c8a060670e05ebb1bb83c": "0xde0b6b3a7640000"}}],"calls":[{"from":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","to":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","data":"0x18160ddd"}]}],"latest"]}
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":[[{"stateOverrides":[{"nonce":"0x1", "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "balance": "0xde0b6b3a7640000", "state": {"0x2292f0db49e1af24fbcac7f32b7537f334244455ad0ed0b46a78202982e7b70d": "0xde0b6b3a7640000", "0x877bd4632ef8c8ddc43b67e5a4511d939eadb612553c8a060670e05ebb1bb83c": "0xde0b6b3a7640000"}}],"calls":[{"from":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","to":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","data":"0x18160ddd"}]}],"latest"]}
<< {"jsonrpc":"2.0","id":1,"result":[{"status":"0x1","return":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","gasUsed":"0x5338","logs":[]}]}
2 changes: 1 addition & 1 deletion tests/eth_multicall/multicall-block-override.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc": "2.0", "id": 1, "method": "eth_multicall", "params": [ "0x0", [ { "calls": [ { "to": "0x4B62D7C9C4e5c7150Eda45F7552a25C7Cd726bF6", "data": "0x42cbb15c" } ] }, { "blockOverride": { "number": "0x4999999" }, "calls": [ { "to": "0x4B62D7C9C4e5c7150Eda45F7552a25C7Cd726bF6", "data": "0x42cbb15c" } ] } ], "latest" ] }
>> {"jsonrpc": "2.0", "id": 1, "method": "eth_multicall", "params": [ [ { "calls": [ { "to": "0x4B62D7C9C4e5c7150Eda45F7552a25C7Cd726bF6", "data": "0x42cbb15c" } ] }, { "blockOverride": { "number": "0x4999999" }, "calls": [ { "to": "0x4B62D7C9C4e5c7150Eda45F7552a25C7Cd726bF6", "data": "0x42cbb15c" } ] } ], "latest" ] }
<< {"jsonrpc":"2.0","id":1,"result":[{"status":"0x1","return":"0x0000000000000000000000000000000000000000000000000000000001031b64","gasUsed":"0x5338","logs":[]},{"status":"0x1","return":"0x0000000000000000000000000000000000000000000000000000000004999999","gasUsed":"0x5338","logs":[]}]}
2 changes: 1 addition & 1 deletion tests/eth_multicall/multicall-empty.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":["0x0",[],"latest"]}
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":[[],"latest"]}
<< {"jsonrpc":"2.0","id":1,"result":[]}
2 changes: 1 addition & 1 deletion tests/eth_multicall/multicall-simple-error.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":["0x0",[{"calls":[{"from":"0xde67356daf70aba7582d9b313d29de02681dfbd8","to":"0x5cd267914528e83422cafa6718153eafc67a9e6c","data":"0xef41d20800000000000000000000000000000000000000000000000000000000000000017691e8f7c821ff647ecb48aab3c593b316d7c705fa9ccc61778ceab57acd1bb200000000000000000000000000000000000000000000000000000002540be40000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000"}]}],"latest"]}
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":[[{"calls":[{"from":"0xde67356daf70aba7582d9b313d29de02681dfbd8","to":"0x5cd267914528e83422cafa6718153eafc67a9e6c","data":"0xef41d20800000000000000000000000000000000000000000000000000000000000000017691e8f7c821ff647ecb48aab3c593b316d7c705fa9ccc61778ceab57acd1bb200000000000000000000000000000000000000000000000000000002540be40000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000"}]}],"latest"]}
<< {"jsonrpc":"2.0","id":1,"result":[{"status":"0x0","return":"0x0000000000000000000000000000000000000000000000000000000000000012","gasUsed":"0x5338","error":{"code":-32015,"message":"VM execution error.","data":"Reverted 0x5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c6564"}}]}
2 changes: 1 addition & 1 deletion tests/eth_multicall/multicall-simple.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":["0x0",[{"calls":[{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x313ce567"}]}],"latest"]}
>> {"jsonrpc":"2.0","id":1,"method":"eth_multicall","params":[[{"calls":[{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x313ce567"}]}],"latest"]}
<< {"jsonrpc":"2.0","id":1,"result":[ { "number": "0x1", "hash": "0x2222222222222222222222222222222222222222222222222222222222222222", "timestamp": "0x929292", "gasLimit": "0x2000", "gasUsed": "0x1000", "feeRecipient": "0x1111111111111111111111111111111111111111", "baseFeePerGas": "0x827129", "calls": [ { "status": "0x1", "return": "0x0000000000000000000000000000000000000000000000000000000000000012", "gasUsed": "0x5338", "logs": [] } ] } ]}

0 comments on commit c8abc82

Please sign in to comment.