First commit to demonstrate change
This commit is contained in:
parent
fdc047ae7a
commit
4bdddf9829
10
README.md
10
README.md
|
@ -85,16 +85,20 @@ ABCI requests/responses are simple Protobuf messages. Check out the [schema fil
|
|||
|
||||
#### Query
|
||||
* __Arguments__:
|
||||
* `Data ([]byte)`: The query request bytes
|
||||
* `Query ([]byte)`: The query request bytes
|
||||
* `Path (string)`: Path of request
|
||||
* `Height (uint64)`: The block height for which you want the query (default=0 returns data for the latest committed block)
|
||||
* `Prove (bool)`: Return Merkle proof with response
|
||||
* __Returns__:
|
||||
* `Code (uint32)`: Response code
|
||||
* `Data ([]byte)`: The query response bytes
|
||||
* `Log (string)`: Debug or error message
|
||||
* `Height (uint64)`: The block height from which data was derived
|
||||
* `Proof ([]byte)`: Proof for the data, if requested
|
||||
|
||||
#### Proof
|
||||
* __Arguments__:
|
||||
* `Key ([]byte)`: The key whose data you want to verifiably query
|
||||
* `Height (int64)`: The block height for which you want the proof (default=0 returns the proof for last committed block)
|
||||
* `Height (uint64)`: The block height for which you want the proof (default=0 returns the proof for last committed block)
|
||||
* __Returns__:
|
||||
* `Code (uint32)`: Response code
|
||||
* `Data ([]byte)`: The query response bytes
|
||||
|
|
|
@ -25,7 +25,6 @@ enum MessageType {
|
|||
InitChain = 0x15;
|
||||
BeginBlock = 0x16;
|
||||
EndBlock = 0x17;
|
||||
Proof = 0x18;
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
|
@ -87,7 +86,6 @@ message Request {
|
|||
RequestInitChain init_chain = 9;
|
||||
RequestBeginBlock begin_block = 10;
|
||||
RequestEndBlock end_block = 11;
|
||||
RequestProof proof = 12;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,11 +114,9 @@ message RequestCheckTx{
|
|||
|
||||
message RequestQuery{
|
||||
bytes query = 1;
|
||||
}
|
||||
|
||||
message RequestProof{
|
||||
bytes key = 1;
|
||||
uint64 height = 2;
|
||||
string path = 2;
|
||||
uint64 height = 3;
|
||||
bool prove = 4;
|
||||
}
|
||||
|
||||
message RequestCommit{
|
||||
|
@ -157,7 +153,6 @@ message Response {
|
|||
ResponseInitChain init_chain = 10;
|
||||
ResponseBeginBlock begin_block = 11;
|
||||
ResponseEndBlock end_block = 12;
|
||||
ResponseProof proof = 13;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -196,15 +191,10 @@ message ResponseCheckTx{
|
|||
}
|
||||
|
||||
message ResponseQuery{
|
||||
CodeType code = 1;
|
||||
bytes data = 2;
|
||||
string log = 3;
|
||||
}
|
||||
|
||||
message ResponseProof{
|
||||
CodeType code = 1;
|
||||
bytes data = 2;
|
||||
string log = 3;
|
||||
uint64 height = 4;
|
||||
bytes proof = 5;
|
||||
}
|
||||
|
||||
message ResponseCommit{
|
||||
|
@ -265,7 +255,6 @@ service ABCIApplication {
|
|||
rpc DeliverTx(RequestDeliverTx) returns (ResponseDeliverTx);
|
||||
rpc CheckTx(RequestCheckTx) returns (ResponseCheckTx);
|
||||
rpc Query(RequestQuery) returns (ResponseQuery);
|
||||
rpc Proof(RequestProof) returns (ResponseProof);
|
||||
rpc Commit(RequestCommit) returns (ResponseCommit);
|
||||
rpc InitChain(RequestInitChain) returns (ResponseInitChain);
|
||||
rpc BeginBlock(RequestBeginBlock) returns (ResponseBeginBlock);
|
||||
|
|
Loading…
Reference in New Issue