Skip to content
Open
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
1 change: 1 addition & 0 deletions rpc/tests/kvstore_fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mod kvstore_fixtures {
mod v0_34;
mod v0_37;
mod v0_38;
mod v1;
}

fn find_fixtures(ver_folder_name: &str, in_out_folder_name: &str) -> Vec<PathBuf> {
Expand Down
1,434 changes: 1,434 additions & 0 deletions rpc/tests/kvstore_fixtures/v1.rs

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions rpc/tests/kvstore_fixtures/v1/incoming/abci_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "019a7d69-6c2e-4ce0-b2aa-2b6a5e658ba2",
"jsonrpc": "2.0",
"result": {
"response": {
"app_version": "1",
"data": "{\"size\":0}",
"last_block_app_hash": "AAAAAAAAAAA=",
"last_block_height": "24",
"version": "2.1.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"id": "dd2ba505-6045-4cac-90b7-4544c9ba3f3a",
"jsonrpc": "2.0",
"result": {
"response": {
"code": 0,
"codespace": "",
"height": "79",
"index": "0",
"info": "",
"key": "dHgw",
"log": "exists",
"proofOps": null,
"value": "dmFsdWU="
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"id": "7aa9b998-facb-4fcc-b981-0d13b3ec0030",
"jsonrpc": "2.0",
"result": {
"response": {
"code": 0,
"codespace": "",
"height": "26",
"index": "0",
"info": "",
"key": "bm9uX2V4aXN0ZW50X2tleQ==",
"log": "does not exist",
"proofOps": null,
"value": null
}
}
}
9 changes: 9 additions & 0 deletions rpc/tests/kvstore_fixtures/v1/incoming/block_at_height_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"error": {
"code": -32603,
"data": "height must be greater than 0, but got 0",
"message": "Internal error"
},
"id": "f66f964b-01f8-45a2-af12-735486b0e703",
"jsonrpc": "2.0"
}
58 changes: 58 additions & 0 deletions rpc/tests/kvstore_fixtures/v1/incoming/block_at_height_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"id": "59f1d68e-65ad-41e9-950f-010cf3a1d58b",
"jsonrpc": "2.0",
"result": {
"block": {
"data": {
"txs": []
},
"evidence": {
"evidence": []
},
"header": {
"app_hash": "0000000000000000",
"chain_id": "dockerchain",
"consensus_hash": "68ECD6F333119CE43751ECE583B981F23508AEAF4221FF582B1BB33BE42BCEFA",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"height": "1",
"last_block_id": {
"hash": "",
"parts": {
"hash": "",
"total": 0
}
},
"last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"next_validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
"proposer_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6",
"time": "2025-06-30T10:04:39.861132656Z",
"validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
"version": {
"app": "1",
"block": "11"
}
},
"last_commit": {
"block_id": {
"hash": "",
"parts": {
"hash": "",
"total": 0
}
},
"height": "0",
"round": 0,
"signatures": []
}
},
"block_id": {
"hash": "9968D641711D6A01FE9A889FB9924124F942ACDB255C80FA9C07B504BE70B778",
"parts": {
"hash": "4E5D1578F0E576D2C8AC819DC5DFC092D1CA3442E61D330A5653EA4DAE248250",
"total": 1
}
}
}
}
65 changes: 65 additions & 0 deletions rpc/tests/kvstore_fixtures/v1/incoming/block_at_height_10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"id": "7c51db63-99f1-4d59-8d88-9558f871ceda",
"jsonrpc": "2.0",
"result": {
"block": {
"data": {
"txs": []
},
"evidence": {
"evidence": []
},
"header": {
"app_hash": "0000000000000000",
"chain_id": "dockerchain",
"consensus_hash": "68ECD6F333119CE43751ECE583B981F23508AEAF4221FF582B1BB33BE42BCEFA",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"height": "10",
"last_block_id": {
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
"parts": {
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
"total": 1
}
},
"last_commit_hash": "2C33C85C8D599EC432CA03B33CC6B06B3ADA2460D4635696A74DD33314310B12",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"next_validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
"proposer_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6",
"time": "2025-06-30T10:04:44.920428185Z",
"validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
"version": {
"app": "1",
"block": "11"
}
},
"last_commit": {
"block_id": {
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
"parts": {
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
"total": 1
}
},
"height": "9",
"round": 0,
"signatures": [
{
"block_id_flag": 2,
"signature": "XmRIt73/YJIsmMg7zveVrp++d8UU16OFz2TBLHCKRRPuNGlwyLyAgoNkbyWitkVUHCjAdKnJzt5rcXaRP8eOAA==",
"timestamp": "2025-06-30T10:04:44.920428185Z",
"validator_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6"
}
]
}
},
"block_id": {
"hash": "582DDEDEAC10340AE0EC8327BA20AB5C9EE98C295AA6721688923325B6C66B0B",
"parts": {
"hash": "54F1AD38474F2F1F6BC9E2E9079E62CBCD13B55343C7E1674A939CD9BA709DA3",
"total": 1
}
}
}
}
65 changes: 65 additions & 0 deletions rpc/tests/kvstore_fixtures/v1/incoming/block_by_hash.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"id": "5d661158-58c0-41dd-a863-54d2e9d750c8",
"jsonrpc": "2.0",
"result": {
"block": {
"data": {
"txs": []
},
"evidence": {
"evidence": []
},
"header": {
"app_hash": "0000000000000000",
"chain_id": "dockerchain",
"consensus_hash": "68ECD6F333119CE43751ECE583B981F23508AEAF4221FF582B1BB33BE42BCEFA",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"height": "10",
"last_block_id": {
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
"parts": {
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
"total": 1
}
},
"last_commit_hash": "2C33C85C8D599EC432CA03B33CC6B06B3ADA2460D4635696A74DD33314310B12",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"next_validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
"proposer_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6",
"time": "2025-06-30T10:04:44.920428185Z",
"validators_hash": "4C89492B846141142201F13F88E6BBFD43341F0FF0138FDC8E61CD5464CA2FB6",
"version": {
"app": "1",
"block": "11"
}
},
"last_commit": {
"block_id": {
"hash": "8A9C3091453D71741DA7053AEEE15E675ED8998566CFE7CBD9E7CEB5C5F3DA5C",
"parts": {
"hash": "5DA4917FD8CB4758FA8915B580F3A84A83FA631A12A7BD291CF69905914DD388",
"total": 1
}
},
"height": "9",
"round": 0,
"signatures": [
{
"block_id_flag": 2,
"signature": "XmRIt73/YJIsmMg7zveVrp++d8UU16OFz2TBLHCKRRPuNGlwyLyAgoNkbyWitkVUHCjAdKnJzt5rcXaRP8eOAA==",
"timestamp": "2025-06-30T10:04:44.920428185Z",
"validator_address": "5FFC79467B9BF5D94DBD146403048CE7D6FE07A6"
}
]
}
},
"block_id": {
"hash": "582DDEDEAC10340AE0EC8327BA20AB5C9EE98C295AA6721688923325B6C66B0B",
"parts": {
"hash": "54F1AD38474F2F1F6BC9E2E9079E62CBCD13B55343C7E1674A939CD9BA709DA3",
"total": 1
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"id": "f5430943-ccb0-4609-9b48-32cb9fd7cfca",
"jsonrpc": "2.0",
"result": {
"app_hash": "AAAAAAAAAAA=",
"consensus_param_updates": null,
"finalize_block_events": null,
"height": "10",
"txs_results": null,
"validator_updates": null
}
}
Loading
Loading