Skip to content

Commit

Permalink
Add mainnet tests few api (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 authored Apr 12, 2024
1 parent 2e96c24 commit 878a0c0
Show file tree
Hide file tree
Showing 22 changed files with 364 additions and 0 deletions.
16 changes: 16 additions & 0 deletions integration/mainnet/erigon_blockNumber/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_blockNumber",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/erigon_blockNumber/test_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_blockNumber",
"params":["earliest"],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":"0x0"
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/erigon_blockNumber/test_3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_blockNumber",
"params":["safe"],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/erigon_blockNumber/test_4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_blockNumber",
"params":["latest"],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/erigon_blockNumber/test_5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_blockNumber",
"params":["finalized"],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/erigon_blockNumber/test_6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_blockNumber",
"params":["latestExecuted"],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/erigon_nodeInfo/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"erigon_nodeInfo",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result": null
}
}
]

24 changes: 24 additions & 0 deletions integration/mainnet/erigon_watchTheBurn/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"request": {
"jsonrpc":"2.0",
"method":"erigon_watchTheBurn",
"params":["0x49BDEF"],
"id":1
},
"response": {
"jsonrpc":"2.0",
"id":1,
"result": {
"blockReward": "0x2c3c465ca58ec000",
"burnt": "0x0",
"issuance": "0x6aaf7c8516d0c000",
"tips": "0x0",
"totalBurnt": "0x0",
"totalIssued": "0x0",
"uncleReward": "0x3e73362871420000"
}
}
}
]

4 changes: 4 additions & 0 deletions integration/mainnet/eth_maxPriorityFeePerGas/test_01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[
{
"test": {
"reference": "",
"description": ""
},
"request":{
"jsonrpc":"2.0",
"method":"eth_maxPriorityFeePerGas",
Expand Down
4 changes: 4 additions & 0 deletions integration/mainnet/eth_mining/test_01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[
{
"test": {
"reference": "",
"description": ""
},
"request": {
"jsonrpc":"2.0",
"method":"eth_mining",
Expand Down
16 changes: 16 additions & 0 deletions integration/mainnet/eth_protocolVersion/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"eth_protocolVersion",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":"0x42"
}
}
]

26 changes: 26 additions & 0 deletions integration/mainnet/eth_submitHashrate/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"test": {
"reference": "",
"description": ""
},
"request": {
"jsonrpc":"2.0",
"method":"eth_submitHashrate",
"params":[
"0x1",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
],
"id":1
},
"response": {
"id":1,
"jsonrpc":"2.0",
"error":{
"code":-32000,
"message":"not supported, consensus engine is not ethash"
}
}
}
]

27 changes: 27 additions & 0 deletions integration/mainnet/eth_submitWork/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"test": {
"reference": "",
"description": ""
},
"request": {
"jsonrpc":"2.0",
"method":"eth_submitWork",
"params":[
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
],
"id":1
},
"response": {
"id":1,
"jsonrpc":"2.0",
"error":{
"code":-32000,
"message":"not supported, consensus engine is not ethash"
}
}
}
]

20 changes: 20 additions & 0 deletions integration/mainnet/eth_syncing/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"test": {
"reference": "",
"description": ""
},
"request":{
"jsonrpc":"2.0",
"method":"eth_syncing",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/net_listening/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"net_listening",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":true
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/net_peerCount/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"net_peerCount",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/net_version/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"net_version",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":"1"
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/ots_getApiLevel/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"ots_getApiLevel",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":8
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/txpool_status/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request": {
"jsonrpc": "2.0",
"method": "txpool_status",
"params": [],
"id": 1
},
"response": {
"result":null,
"id": 1,
"jsonrpc": "2.0"
}
}
]

19 changes: 19 additions & 0 deletions integration/mainnet/unknown_method/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"unknown_method",
"params":[],
"id":1
},
"response":{
"error": {
"code": -32601,
"message": "the method unknown_method does not exist/is not available"
},
"id": 1,
"jsonrpc": "2.0"
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/web3_clientVersion/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"web3_clientVersion",
"params":[],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":null
}
}
]

16 changes: 16 additions & 0 deletions integration/mainnet/web3_sha3/test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"request":{
"jsonrpc":"2.0",
"method":"web3_sha3",
"params":["0x00"],
"id":1
},
"response":{
"jsonrpc":"2.0",
"id":1,
"result":"0xbc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a"
}
}
]

0 comments on commit 878a0c0

Please sign in to comment.