Skip to content

Commit 3738472

Browse files
committed
feat(rpc): add kvstore fixtures for v1
1 parent ac3db79 commit 3738472

File tree

74 files changed

+7174
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+7174
-7
lines changed

rpc/tests/kvstore_fixtures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ mod kvstore_fixtures {
2424
mod v0_34;
2525
mod v0_37;
2626
mod v0_38;
27+
mod v1;
2728
}
2829

2930
fn find_fixtures(ver_folder_name: &str, in_out_folder_name: &str) -> Vec<PathBuf> {

rpc/tests/kvstore_fixtures/v1.rs

Lines changed: 1434 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"id": "019a7d69-6c2e-4ce0-b2aa-2b6a5e658ba2",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"response": {
6+
"app_version": "1",
7+
"data": "{\"size\":0}",
8+
"last_block_app_hash": "AAAAAAAAAAA=",
9+
"last_block_height": "24",
10+
"version": "2.1.0"
11+
}
12+
}
13+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"id": "dd2ba505-6045-4cac-90b7-4544c9ba3f3a",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"response": {
6+
"code": 0,
7+
"codespace": "",
8+
"height": "79",
9+
"index": "0",
10+
"info": "",
11+
"key": "dHgw",
12+
"log": "exists",
13+
"proofOps": null,
14+
"value": "dmFsdWU="
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"id": "7aa9b998-facb-4fcc-b981-0d13b3ec0030",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"response": {
6+
"code": 0,
7+
"codespace": "",
8+
"height": "26",
9+
"index": "0",
10+
"info": "",
11+
"key": "bm9uX2V4aXN0ZW50X2tleQ==",
12+
"log": "does not exist",
13+
"proofOps": null,
14+
"value": null
15+
}
16+
}
17+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"error": {
3+
"code": -32603,
4+
"data": "height must be greater than 0, but got 0",
5+
"message": "Internal error"
6+
},
7+
"id": "f66f964b-01f8-45a2-af12-735486b0e703",
8+
"jsonrpc": "2.0"
9+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"id": "59f1d68e-65ad-41e9-950f-010cf3a1d58b",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"block": {
6+
"data": {
7+
"txs": []
8+
},
9+
"evidence": {
10+
"evidence": []
11+
},
12+
"header": {
13+
"app_hash": "0000000000000000",
14+
"chain_id": "dockerchain",
15+
"consensus_hash": "68ECD6F333119CE43751ECE583B981F23508AEAF4221FF582B1BB33BE42BCEFA",
16+
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
17+
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
18+
"height": "1",
19+
"last_block_id": {
20+
"hash": "",
21+
"parts": {
22+
"hash": "",
23+
"total": 0
24+
}
25+
},
26+
"last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
27+
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
28+
"next_validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
29+
"proposer_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6",
30+
"time": "2025-06-30T10:04:39.861132656Z",
31+
"validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
32+
"version": {
33+
"app": "1",
34+
"block": "11"
35+
}
36+
},
37+
"last_commit": {
38+
"block_id": {
39+
"hash": "",
40+
"parts": {
41+
"hash": "",
42+
"total": 0
43+
}
44+
},
45+
"height": "0",
46+
"round": 0,
47+
"signatures": []
48+
}
49+
},
50+
"block_id": {
51+
"hash": "9968D641711D6A01FE9A889FB9924124F942ACDB255C80FA9C07B504BE70B778",
52+
"parts": {
53+
"hash": "4E5D1578F0E576D2C8AC819DC5DFC092D1CA3442E61D330A5653EA4DAE248250",
54+
"total": 1
55+
}
56+
}
57+
}
58+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"id": "7c51db63-99f1-4d59-8d88-9558f871ceda",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"block": {
6+
"data": {
7+
"txs": []
8+
},
9+
"evidence": {
10+
"evidence": []
11+
},
12+
"header": {
13+
"app_hash": "0000000000000000",
14+
"chain_id": "dockerchain",
15+
"consensus_hash": "68ECD6F333119CE43751ECE583B981F23508AEAF4221FF582B1BB33BE42BCEFA",
16+
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
17+
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
18+
"height": "10",
19+
"last_block_id": {
20+
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
21+
"parts": {
22+
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
23+
"total": 1
24+
}
25+
},
26+
"last_commit_hash": "2C33C85C8D599EC432CA03B33CC6B06B3ADA2460D4635696A74DD33314310B12",
27+
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
28+
"next_validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
29+
"proposer_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6",
30+
"time": "2025-06-30T10:04:44.920428185Z",
31+
"validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
32+
"version": {
33+
"app": "1",
34+
"block": "11"
35+
}
36+
},
37+
"last_commit": {
38+
"block_id": {
39+
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
40+
"parts": {
41+
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
42+
"total": 1
43+
}
44+
},
45+
"height": "9",
46+
"round": 0,
47+
"signatures": [
48+
{
49+
"block_id_flag": 2,
50+
"signature": "XmRIt73/YJIsmMg7zveVrp++d8UU16OFz2TBLHCKRRPuNGlwyLyAgoNkbyWitkVUHCjAdKnJzt5rcXaRP8eOAA==",
51+
"timestamp": "2025-06-30T10:04:44.920428185Z",
52+
"validator_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6"
53+
}
54+
]
55+
}
56+
},
57+
"block_id": {
58+
"hash": "582DDEDEAC10340AE0EC8327BA20AB5C9EE98C295AA6721688923325B6C66B0B",
59+
"parts": {
60+
"hash": "54F1AD38474F2F1F6BC9E2E9079E62CBCD13B55343C7E1674A939CD9BA709DA3",
61+
"total": 1
62+
}
63+
}
64+
}
65+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"id": "5d661158-58c0-41dd-a863-54d2e9d750c8",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"block": {
6+
"data": {
7+
"txs": []
8+
},
9+
"evidence": {
10+
"evidence": []
11+
},
12+
"header": {
13+
"app_hash": "0000000000000000",
14+
"chain_id": "dockerchain",
15+
"consensus_hash": "68ECD6F333119CE43751ECE583B981F23508AEAF4221FF582B1BB33BE42BCEFA",
16+
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
17+
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
18+
"height": "10",
19+
"last_block_id": {
20+
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
21+
"parts": {
22+
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
23+
"total": 1
24+
}
25+
},
26+
"last_commit_hash": "2C33C85C8D599EC432CA03B33CC6B06B3ADA2460D4635696A74DD33314310B12",
27+
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
28+
"next_validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
29+
"proposer_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6",
30+
"time": "2025-06-30T10:04:44.920428185Z",
31+
"validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
32+
"version": {
33+
"app": "1",
34+
"block": "11"
35+
}
36+
},
37+
"last_commit": {
38+
"block_id": {
39+
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
40+
"parts": {
41+
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
42+
"total": 1
43+
}
44+
},
45+
"height": "9",
46+
"round": 0,
47+
"signatures": [
48+
{
49+
"block_id_flag": 2,
50+
"signature": "XmRIt73/YJIsmMg7zveVrp++d8UU16OFz2TBLHCKRRPuNGlwyLyAgoNkbyWitkVUHCjAdKnJzt5rcXaRP8eOAA==",
51+
"timestamp": "2025-06-30T10:04:44.920428185Z",
52+
"validator_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6"
53+
}
54+
]
55+
}
56+
},
57+
"block_id": {
58+
"hash": "582DDEDEAC10340AE0EC8327BA20AB5C9EE98C295AA6721688923325B6C66B0B",
59+
"parts": {
60+
"hash": "54F1AD38474F2F1F6BC9E2E9079E62CBCD13B55343C7E1674A939CD9BA709DA3",
61+
"total": 1
62+
}
63+
}
64+
}
65+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"id": "f5430943-ccb0-4609-9b48-32cb9fd7cfca",
3+
"jsonrpc": "2.0",
4+
"result": {
5+
"app_hash": "AAAAAAAAAAA=",
6+
"consensus_param_updates": null,
7+
"finalize_block_events": null,
8+
"height": "10",
9+
"txs_results": null,
10+
"validator_updates": null
11+
}
12+
}

0 commit comments

Comments
 (0)