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

integration: debug_accountAt add tests #296

Merged
merged 1 commit into from
Nov 22, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add tests
  • Loading branch information
lupin012 committed Nov 21, 2024
commit f16a10770ade595525ba5b022640440755067c0e
25 changes: 25 additions & 0 deletions integration/mainnet/debug_accountAt/test_11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0x96cfa0fb5e50b0a3f6cc76f3299cfbf48f17e8b41798d1394474e67ec8a97e9f",
3,
"0x6b75d8AF000000e20B7a7DDf000Ba900b4009A80"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x20b3970548",
"code": "0x3d35803d1a4360ff161473ae2fc483527b8ef99eb5d9b44875f005ba1fae1333141660295761002d565b461a565b005b610101565b6101a1565b610269565b610353565b6103ef565b6104b3565b610599565b610635565b6106f9565b6107df565b610851565b6108a8565b6108ab565b610933565b6109b9565b610a4e565b610b27565b610bd8565b610c8f565b610d70565b610d78565b610e02565b610e66565b610eca565b610f5a565b610fe3565b611062565b611129565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b61002d565b3d3d60a43d3d60033560601c3d3d7f022c0d9f000000000000000000000000000000000000000000000000000000003d7f23b872dd000000000000000000000000000000000000000000000000000000003d523060045234604052846024523d3d60643d3d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af150526004526024526017354635461a523060445260806064525af1602d5761000080fd5b3d3d60a43d3d60033560601c3d3d7f022c0d9f000000000000000000000000000000000000000000000000000000003d7f23b872dd000000000000000000000000000000000000000000000000000000003d523060045234604052846024523d3d60643d3d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af150526004526024526017357fffffffff00000000000000000000000000000000000000000000000000000000164635461a523060445260806064525af1601b90601a35461a5761000080fd5b7f23b872dd00000000000000000000000000000000000000000000000000000000600052306004526000600060a460006000856002013560601c600060445286601a013560d81c604052806024526000600060646000600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af1507f022c0d9f000000000000000000000000000000000000000000000000000000006000526000600452600060245286601601357fffffffff00000000000000000000000000000000000000000000000000000000168735461a5230604452608060645260006084525af190601f0190813560001a57600080fd5b3d3d60a43d3d60033560601c3d3d7f022c0d9f000000000000000000000000000000000000000000000000000000003d7fa9059cbb000000000000000000000000000000000000000000000000000000003d5284600452346024523d3d60443d3d73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485af150526004526024526017354635461a523060445260806064525af1602d5761000080fd5b3d3d60a43d3d60033560601c3d3d7f022c0d9f000000000000000000000000000000000000000000000000000000003d7fa9059cbb000000000000000000000000000000000000000000000000000000003d5284600452346024523d3d60443d3d73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485af150526004526024526017357fffffffff00000000000000000000000000000000000000000000000000000000164635461a523060445260806064525af1601b90601a35461a5761000080fd5b7fa9059cbb000000000000000000000000000000000000000000000000000000006000526000600060a460006000856002013560601c86601a013560d81c602452806004526000600060446000600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485af1507f022c0d9f000000000000000000000000000000000000000000000000000000006000526000600452600060245286601601357fffffffff00000000000000000000000000000000000000000000000000000000168735461a5230604452608060645260006084525af190601f0190813560001a576500000000000080fd5b3d3d60a43d3d60033560601c3d3d7f022c0d9f000000000000000000000000000000000000000000000000000000003d7fa9059cbb000000000000000000000000000000000000000000000000000000003d5284600452346024523d3d60443d3d73dac17f958d2ee523a2206206994597c13d831ec75af150526004526024526017354635461a523060445260806064525af1602d5761000080fd5b3d3d60a43d3d60033560601c3d3d7f022c0d9f000000000000000000000000000000000000000000000000000000003d7fa9059cbb000000000000000000000000000000000000000000000000000000003d5284600452346024523d3d60443d3d73dac17f958d2ee523a2206206994597c13d831ec75af150526004526024526017357fffffffff00000000000000000000000000000000000000000000000000000000164635461a523060445260806064525af1601b90601a35461a5761000080fd5b7fa9059cbb000000000000000000000000000000000000000000000000000000006000526000600060a460006000856002013560601c86601a013560d81c602452806004526000600060446000600073dac17f958d2ee523a2206206994597c13d831ec75af1507f022c0d9f000000000000000000000000000000000000000000000000000000006000526000600452600060245286601601357fffffffff00000000000000000000000000000000000000000000000000000000168735461a5230604452608060645260006084525af190601f0190813560001a576500000000000080fd5b3d3d60443d3d7fa9059cbb000000000000000000000000000000000000000000000000000000003d526017357fffffffff00000000000000000000000000000000000000000000000000000000164635461a52601d3560601c60045260033560601c5af1601b90601a35461a57600080fd5b347f2e1a7d4d00000000000000000000000000000000000000000000000000000000013d523d3d60243d3d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af1600060006000600047335af116602d57600080fd5b33ff5b3d3d60a43d3d60033560601c7f022c0d9f000000000000000000000000000000000000000000000000000000003d3d7fa9059cbb000000000000000000000000000000000000000000000000000000003d52602b354635461a52836004523d3d60443d3d60173560601c5af15060045252346020523060445260806064525af1602d57600080fd5b3d3d60a43d3d60033560601c7f022c0d9f0000000000000000000000000000000000000000000000000000000034013d3d7fa9059cbb000000000000000000000000000000000000000000000000000000003d52602b354635461a52836004523d3d60443d3d60173560601c5af150602452523060445260806064525af1602d57600080fd5b3d3d60a460403d60033560601c7fa9059cbb000000000000000000000000000000000000000000000000000000003d52602b357fffffffff00000000000000000000000000000000000000000000000000000000164635461a52806004523d3d60443d3d60173560601c5af15034602e35461a5263022c0d9f60245230608452608060a4525af1603090602f35461a57600080fd5b6000600060a460406000856002013560601c7fa9059cbb0000000000000000000000000000000000000000000000000000000060005286602a01357fffffffff00000000000000000000000000000000000000000000000000000000168735461a5280600452600080604481808b6016013560601c5af1506000604452600060645286601301357f000000000000000000000000000000000000000000000000000000ffffffffff168760320135461a5263022c0d9f60245230608452608060a452600060c4525af19060340190813560001a57600080fd5b3d3d60a43d3d60033560601c7f022c0d9f000000000000000000000000000000000000000000000000000000003d3d3d7fa9059cbb000000000000000000000000000000000000000000000000000000003d52602b357fffffffff00000000000000000000000000000000000000000000000000000000164635461a52846004523d3d60443d3d60173560601c5af1506004526024525234602e35461a523060445260806064525af1602d57600080fd5b3d3d60a43d3d60033560601c7f022c0d9f000000000000000000000000000000000000000000000000000000003d3d3d7fa9059cbb000000000000000000000000000000000000000000000000000000003d52602b357fffffffff00000000000000000000000000000000000000000000000000000000164635461a52846004523d3d60443d3d60173560601c5af1506004526024525234602e35461a523060445260806064525af1603090602f35461a57600080fd5b60008060a48180856002013560601c600060045260006024527fa9059cbb0000000000000000000000000000000000000000000000000000000060005286602a01357fffffffff00000000000000000000000000000000000000000000000000000000168735461a5280600452600080604481808b6016013560601c5af150600060045260006024527f022c0d9f00000000000000000000000000000000000000000000000000000000600052866013013564ffffffffff168760320135461a5230604452608060645260006084525af19060340190813560001a57600080fd5b60024635461a565b7f23b872dd0000000000000000000000000000000000000000000000000000000060005230600452806008013560601c6024526000604452804601357fffffffffff00000000000000000000000000000000000000000000000000000016605b526000806064818073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af150600601803560001a565b7fa9059cbb00000000000000000000000000000000000000000000000000000000600052806008013560601c600452600060245280460135603f526000806044818073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485af150600601803560001a565b7fa9059cbb00000000000000000000000000000000000000000000000000000000600052806008013560601c600452600060245280460135603f526000806044818073dac17f958d2ee523a2206206994597c13d831ec75af150600601803560001a565b600060045260006024527f022c0d9f0000000000000000000000000000000000000000000000000000000060005280601601357fffffffff00000000000000000000000000000000000000000000000000000000168135461a5280601c013560601c6044526080606452600060845260008060a48180856002013560601c5af190601a0190813560001a57600080fd5b600060045260006024527f022c0d9f0000000000000000000000000000000000000000000000000000000060005280601601357fffffffff00000000000000000000000000000000000000000000000000000000168135461a52306044526080606452600060845260008060a48180856002013560601c5af190601a0190813560001a57600080fd5b600080604481808546013560601c7f095ea7b300000000000000000000000000000000000000000000000000000000825273ba12222222228d8ba445958a75a0704d566bf2c86004527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6024525af19060150190813560001a57600080fd5b7f52bbbe290000000000000000000000000000000000000000000000000000000060005260e0600452306024526000604452806054013560601c606452600060845280604a01358160480135461a1c60ff60a55260a4528046013560e4524661010452806021013560601c61012452806035013560601c6101445280604f013581604d0135461a1c6101645260c06101845260006101a4526000806101c4818073ba12222222228d8ba445958a75a0704d566bf2c85af19060530190813560001a57600080fd5b7f52bbbe290000000000000000000000000000000000000000000000000000000060005260e060045230602452600060445230606452600060845280604a01358160480135461a1c60ff60a55260a4528046013560e4524661010452806021013560601c61012452806035013560601c6101445280604f013581604d0135461a1c6101645260c06101845260006101a4526000806101c4818073ba12222222228d8ba445958a75a0704d566bf2c85af19060530190813560001a57600080fd",
"codeHash": "0xd238d5184c535106cc68ad3093df5427c811bb28d0411259e4c690a6647b1e8f",
"nonce": "0x1"

}
}
}
]
24 changes: 24 additions & 0 deletions integration/mainnet/debug_accountAt/test_12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0x96cfa0fb5e50b0a3f6cc76f3299cfbf48f17e8b41798d1394474e67ec8a97e9f",
3,
"0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x660ef08d00979a61",
"code": "0x",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0x20b36"
}
}
}
]
24 changes: 24 additions & 0 deletions integration/mainnet/debug_accountAt/test_13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0x95b198e154acbfc64109dfd22d8224fe927fd8dfdedfae01587674482ba4baf3",
1,
"0x6DdF03E87c471F4034B50ecfac3359C9263d83e6"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x268f08793931cc63",
"code": "0x",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0xbc"
}
}
}
]
24 changes: 24 additions & 0 deletions integration/mainnet/debug_accountAt/test_14.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
2,
"0xB517850510997a34b4DdC8c3797B4F83fAd510c4"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x7445769ed8b3946",
"code": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101fc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b81526004016101159190610218565b60005b838110156101e75781810151838201526020016101cf565b838111156101f6576000848401525b50505050565b6000825161020e8184602087016101cc565b9190910192915050565b60208152600082518060208401526102378160408501602087016101cc565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122041f64d2ff908c9983923017ed36c949dd92697a1f359295e2ea2f809da86127664736f6c63430008090033",
"codeHash": "0x932cddc50793da935ccf915651ad67f6b746e9936fcc5614f0ff492563782c75",
"nonce": "0x1"
}
}
}
]
24 changes: 24 additions & 0 deletions integration/mainnet/debug_accountAt/test_15.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0xd24fd73f794058a3807db926d8898c6481e902b7edb91ce0d479d6760f276183",
0,
"0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x6c943a4849a50e671",
"code": "0x",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0x2a109e"
}
}
}
]
19 changes: 19 additions & 0 deletions integration/mainnet/debug_accountAt/test_16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0xffffd73f794058a3807db926d8898c6481e902b7edb91ce0d479d6760f276183",
0,
"0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": null
}
}
]
24 changes: 24 additions & 0 deletions integration/mainnet/debug_accountAt/test_17.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0xd24fd73f794058a3807db926d8898c6481e902b7edb91ce0d479d6760f276183",
100000,
"0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x61fdbf60cb742c8ce",
"code": "0x",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0x2a13c5"
}
}
}
]
24 changes: 24 additions & 0 deletions integration/mainnet/debug_accountAt/test_18.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"id": 240,
"jsonrpc": "2.0",
"method": "debug_accountAt",
"params": [
"0xd24fd73f794058a3807db926d8898c6481e902b7edb91ce0d479d6760f276183",
0,
"0xffffc483527B8EF99EB5D9B44875F005ba1FaE13"
]
},
"response": {
"id": 240,
"jsonrpc": "2.0",
"result": {
"balance": "0x0",
"code": "0x",
"codeHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0"
}
}
}
]