Skip to content

Commit 62a002b

Browse files
authored
integration: ots_searchTransactionsBefore new tests + enable for e3 (#288)
1 parent bba8756 commit 62a002b

27 files changed

+1183
-8826
lines changed

integration/mainnet/ots_searchTransactionsBefore/test_01.json

+668-661
Large diffs are not rendered by default.

integration/mainnet/ots_searchTransactionsBefore/test_02.json

+62-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,65 @@
11
[
2-
{
3-
"request":{
4-
"jsonrpc":"2.0",
5-
"method":"ots_searchTransactionsBefore",
6-
"params":["0x0000000000000000000000000000000000000000", 0, 1],
7-
"id":1
8-
},
9-
"response":{
10-
"jsonrpc":"2.0",
11-
"id":1,
12-
"result": null
13-
}
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "ots_searchTransactionsBefore",
7+
"params": [
8+
"0x0000000000000000000000000000000000000000",
9+
0,
10+
1
11+
]
12+
},
13+
"response": {
14+
"id": 1,
15+
"jsonrpc": "2.0",
16+
"result": {
17+
"firstPage": true,
18+
"lastPage": false,
19+
"receipts": [
20+
{
21+
"blockHash": "0x0d8d1ea28c21ecaa7f010406cf7e27c47fb3ebd7550575c382e4fbec894e815f",
22+
"blockNumber": "0x14254e3",
23+
"contractAddress": null,
24+
"cumulativeGasUsed": "0xb1c8f0",
25+
"effectiveGasPrice": "0x1431e1c1f",
26+
"from": "0xfa380723711211f19ee389ec65d485443a1fbd7d",
27+
"gasUsed": "0x560c",
28+
"logs": [],
29+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
30+
"status": "0x1",
31+
"timestamp": 1730844407,
32+
"to": "0x0000000000000000000000000000000000000000",
33+
"transactionHash": "0xf4eece92591412dbee213cfed4631a9201b0189e7c4b9dfb2331fc0631341d8b",
34+
"transactionIndex": "0x63",
35+
"type": "0x0"
36+
}
37+
],
38+
"txs": [
39+
{
40+
"blockHash": "0x0d8d1ea28c21ecaa7f010406cf7e27c47fb3ebd7550575c382e4fbec894e815f",
41+
"blockNumber": "0x14254e3",
42+
"chainId": "0x1",
43+
"from": "0xfa380723711211f19ee389ec65d485443a1fbd7d",
44+
"gas": "0x575a",
45+
"gasPrice": "0x1431e1c1f",
46+
"hash": "0xf4eece92591412dbee213cfed4631a9201b0189e7c4b9dfb2331fc0631341d8b",
47+
"input": "0x69e7ea4f0a64d5a085fb1ca4cda32c0e650f9c0444350a3b6f0e919f8cffc4a26068251e00bef94220c0f26aec13482e3ca65e134f3f66a822d1284ab814cf6501",
48+
"nonce": "0xf3",
49+
"r": "0x4c51b85fa724ce326e1627c108515d53ffa8c6dc067aa2bb808ebe2fa96f74f4",
50+
"s": "0x5128245ba3ba668bc90a2cadd7ef99b5eb858b635b6b5ff4cbad8d9aee43455a",
51+
"to": "0x0000000000000000000000000000000000000000",
52+
"transactionIndex": "0x63",
53+
"type": "0x0",
54+
"v": "0x25",
55+
"value": "0x1"
56+
}
57+
]
58+
}
59+
},
60+
"test": {
61+
"description": "search for transaction before provied block for a specific account",
62+
"reference": ""
1463
}
64+
}
1565
]
16-

integration/mainnet/ots_searchTransactionsBefore/test_03.json

-688
This file was deleted.
Binary file not shown.

integration/mainnet/ots_searchTransactionsBefore/test_04.json

-1,149
This file was deleted.
Binary file not shown.

integration/mainnet/ots_searchTransactionsBefore/test_05.json

+25-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
[
2-
{
3-
"request":{
4-
"jsonrpc":"2.0",
5-
"method":"ots_searchTransactionsBefore",
6-
"params":["0xdddddF958D2ee523a2206206994597C13D831ec7", 17000000, 10],
7-
"id":1
8-
},
9-
"response":{
10-
"jsonrpc":"2.0",
11-
"id":1,
12-
"result": {
13-
"firstPage": false,
14-
"lastPage": true,
15-
"receipts": [],
16-
"txs": []
17-
}
18-
}
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "ots_searchTransactionsBefore",
7+
"params": [
8+
"0xdddddF958D2ee523a2206206994597C13D831ec7",
9+
17000000,
10+
10
11+
]
12+
},
13+
"response": {
14+
"id": 1,
15+
"jsonrpc": "2.0",
16+
"result": {
17+
"firstPage": false,
18+
"lastPage": true,
19+
"receipts": [],
20+
"txs": []
21+
}
22+
},
23+
"test": {
24+
"description": "search for transaction before provied block for a specific account",
25+
"reference": ""
1926
}
27+
}
2028
]
21-

0 commit comments

Comments
 (0)