From d0be264010d651139852079f5465145018953bca Mon Sep 17 00:00:00 2001 From: lightclient Date: Thu, 10 Oct 2024 06:52:24 -0600 Subject: [PATCH] tests: add 7702 tests Co-authored-by: pellekrab <78560773+PelleKrab@users.noreply.github.com> --- tests/eth_getTransactionByHash/get-authlist-tx.io | 3 +++ tests/eth_getTransactionReceipt/get-auth-list.io | 3 +++ tests/eth_sendRawTransaction/send-authorization-list-tx.io | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 tests/eth_getTransactionByHash/get-authlist-tx.io create mode 100644 tests/eth_getTransactionReceipt/get-auth-list.io create mode 100644 tests/eth_sendRawTransaction/send-authorization-list-tx.io diff --git a/tests/eth_getTransactionByHash/get-authlist-tx.io b/tests/eth_getTransactionByHash/get-authlist-tx.io new file mode 100644 index 000000000..8820d070a --- /dev/null +++ b/tests/eth_getTransactionByHash/get-authlist-tx.io @@ -0,0 +1,3 @@ +// gets a authorization list transaction +>> {"jsonrpc":"2.0","id":1,"method":"eth_getTransactionByHash","params":["0x3025fd75c0ac8a05f4c50fb15225d7d8ce17ba0aa60b560d02805ae97b6c033e"]} +<< {"jsonrpc":"2.0","id":1,"result":{"blockHash":"0x5204c8e7c8a14bcbd6031520d70b2531999f4f8d587603659f1fb1c82935bcd4","blockNumber":"0x3","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x186a0","gasPrice":"0x281d620e","maxFeePerGas":"0x281d620e","maxPriorityFeePerGas":"0x1","hash":"0x3025fd75c0ac8a05f4c50fb15225d7d8ce17ba0aa60b560d02805ae97b6c033e","input":"0x3f446a7c4145b1f0656d6974","nonce":"0x9","to":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","transactionIndex":"0x1","value":"0x3","type":"0x4","accessList":[{"address":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","storageKeys":["0x0000000000000000000000000000000000000000000000000000000000000000","0xb52248fb459b43720abbf1d5218c4ede9036a623653b31c2077991e04da9a456"]}],"chainId":"0xc72dd9d5e883e","authorizationList":[{"chainId":"0x1","address":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","nonce":"0x1","v":"0x0","r":"0xb9a9724fca45b21dbc84ac9c0be479e2780a83c96b579877eaf256c5005811c0","s":"0x36e39cca69a5256235f38cb2f8cd7a61829aff39439fca1c1cf5b55dfbb116a"}],"v":"0x1","r":"0xcd2bc1d83a0aed04c06b641e5c93a3112c29a45edab4b12f834b2f41c269e0d5","s":"0xcd7d25d1c29fa7f722865ba3aae5a88651eddfeadc88dc37d6c0ec6b9be77d7","yParity":"0x1"}} diff --git a/tests/eth_getTransactionReceipt/get-auth-list.io b/tests/eth_getTransactionReceipt/get-auth-list.io new file mode 100644 index 000000000..989e81245 --- /dev/null +++ b/tests/eth_getTransactionReceipt/get-auth-list.io @@ -0,0 +1,3 @@ +// gets an authorization list transaction +>> {"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0x3025fd75c0ac8a05f4c50fb15225d7d8ce17ba0aa60b560d02805ae97b6c033e"]} +<< {"jsonrpc":"2.0","id":1,"result":{"blockHash":"0x5204c8e7c8a14bcbd6031520d70b2531999f4f8d587603659f1fb1c82935bcd4","blockNumber":"0x3","contractAddress":null,"cumulativeGasUsed":"0x1f6e0","effectiveGasPrice":"0x281d620e","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gasUsed":"0x12c44","logs":[{"address":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","topics":["0x00000000000000000000000000000000000000000000000000000000656d6974","0xb52248fb459b43720abbf1d5218c4ede9036a623653b31c2077991e04da9a456"],"data":"0x0000000000000000000000000000000000000000000000000000000000000003","blockNumber":"0x3","transactionHash":"0x3025fd75c0ac8a05f4c50fb15225d7d8ce17ba0aa60b560d02805ae97b6c033e","transactionIndex":"0x1","blockHash":"0x5204c8e7c8a14bcbd6031520d70b2531999f4f8d587603659f1fb1c82935bcd4","logIndex":"0x1","removed":false}],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000200000000000000004000000000002000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000","status":"0x1","to":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","transactionHash":"0x3025fd75c0ac8a05f4c50fb15225d7d8ce17ba0aa60b560d02805ae97b6c033e","transactionIndex":"0x1","type":"0x4"}} diff --git a/tests/eth_sendRawTransaction/send-authorization-list-tx.io b/tests/eth_sendRawTransaction/send-authorization-list-tx.io new file mode 100644 index 000000000..557f90bcc --- /dev/null +++ b/tests/eth_sendRawTransaction/send-authorization-list-tx.io @@ -0,0 +1,3 @@ +// sends a authorization list transaction +>> {"jsonrpc":"2.0","id":1,"method":"eth_sendRawTransaction","params":["0x04f90131870c72dd9d5e883e808201f48404419d3e83013880947dcd17433742f4c0ca53122ab541d0ba67fc27df8080f85bf859947dcd17433742f4c0ca53122ab541d0ba67fc27dff842a00000000000000000000000000000000000000000000000000000000000000000a00100000000000000000000000000000000000000000000000000000000000000f863f861870c72dd9d5e883e947dcd17433742f4c0ca53122ab541d0ba67fc27df8080a08074cb63170a7bd4df6c3a6d9a16c11fab4fa036c9ae75d3b66b1d91672f9757a00dcf14df506fe8e636266602e0f95be6c61f52b316d7c4ebece6ddc25079d56e80a0b60ff0cda09fd67894d4f9923badc8a8efa82a3d0f09c8fb954b70d5d2de614ea04cf7436b81a664533d3c912c54d2300dbb9d326716302a382068a62af1244ad3"]} +<< {"jsonrpc":"2.0","id":1,"result":"0x69b856be7b1ee3c82820bf8b8f98a1d69b5b1d9574c87995091cc7d755464504"}