|
@ -10,18 +10,18 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; |
|
|
// Request types |
|
|
// Request types |
|
|
|
|
|
|
|
|
message Request { |
|
|
message Request { |
|
|
oneof value{ |
|
|
|
|
|
RequestEcho echo = 1; |
|
|
|
|
|
RequestFlush flush = 2; |
|
|
|
|
|
RequestInfo info = 3; |
|
|
|
|
|
RequestSetOption set_option = 4; |
|
|
|
|
|
RequestDeliverTx deliver_tx = 5; |
|
|
|
|
|
RequestCheckTx check_tx = 6; |
|
|
|
|
|
RequestCommit commit = 7; |
|
|
|
|
|
RequestQuery query = 8; |
|
|
|
|
|
RequestInitChain init_chain = 9; |
|
|
|
|
|
RequestBeginBlock begin_block = 10; |
|
|
|
|
|
|
|
|
oneof value { |
|
|
|
|
|
RequestEcho echo = 2; |
|
|
|
|
|
RequestFlush flush = 3; |
|
|
|
|
|
RequestInfo info = 4; |
|
|
|
|
|
RequestSetOption set_option = 5; |
|
|
|
|
|
RequestInitChain init_chain = 6; |
|
|
|
|
|
RequestQuery query = 7; |
|
|
|
|
|
RequestBeginBlock begin_block = 8; |
|
|
|
|
|
RequestCheckTx check_tx = 9; |
|
|
|
|
|
RequestDeliverTx deliver_tx = 19; |
|
|
RequestEndBlock end_block = 11; |
|
|
RequestEndBlock end_block = 11; |
|
|
|
|
|
RequestCommit commit = 12; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -36,17 +36,13 @@ message RequestInfo { |
|
|
string version = 1; |
|
|
string version = 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message RequestSetOption{ |
|
|
|
|
|
|
|
|
message RequestSetOption { |
|
|
string key = 1; |
|
|
string key = 1; |
|
|
string value = 2; |
|
|
string value = 2; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message RequestDeliverTx{ |
|
|
|
|
|
bytes tx = 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestCheckTx{ |
|
|
|
|
|
bytes tx = 1; |
|
|
|
|
|
|
|
|
message RequestInitChain { |
|
|
|
|
|
repeated Validator validators = 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message RequestQuery{ |
|
|
message RequestQuery{ |
|
@ -56,46 +52,49 @@ message RequestQuery{ |
|
|
bool prove = 4; |
|
|
bool prove = 4; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message RequestCommit{ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestInitChain{ |
|
|
|
|
|
repeated Validator validators = 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestBeginBlock{ |
|
|
|
|
|
|
|
|
message RequestBeginBlock { |
|
|
bytes hash = 1; |
|
|
bytes hash = 1; |
|
|
Header header = 2; |
|
|
Header header = 2; |
|
|
repeated int32 absent_validators = 3; |
|
|
repeated int32 absent_validators = 3; |
|
|
repeated Evidence byzantine_validators = 4; |
|
|
repeated Evidence byzantine_validators = 4; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestCheckTx { |
|
|
|
|
|
bytes tx = 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestDeliverTx { |
|
|
|
|
|
bytes tx = 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
message RequestEndBlock{ |
|
|
message RequestEndBlock{ |
|
|
int64 height = 1; |
|
|
int64 height = 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestCommit { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//---------------------------------------- |
|
|
//---------------------------------------- |
|
|
// Response types |
|
|
// Response types |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message Response { |
|
|
message Response { |
|
|
oneof value{ |
|
|
|
|
|
|
|
|
oneof value { |
|
|
ResponseException exception = 1; |
|
|
ResponseException exception = 1; |
|
|
ResponseEcho echo = 2; |
|
|
ResponseEcho echo = 2; |
|
|
ResponseFlush flush = 3; |
|
|
ResponseFlush flush = 3; |
|
|
ResponseInfo info = 4; |
|
|
ResponseInfo info = 4; |
|
|
ResponseSetOption set_option = 5; |
|
|
ResponseSetOption set_option = 5; |
|
|
ResponseDeliverTx deliver_tx = 6; |
|
|
|
|
|
ResponseCheckTx check_tx = 7; |
|
|
|
|
|
ResponseCommit commit = 8; |
|
|
|
|
|
ResponseQuery query = 9; |
|
|
|
|
|
ResponseInitChain init_chain = 10; |
|
|
|
|
|
ResponseBeginBlock begin_block = 11; |
|
|
|
|
|
ResponseEndBlock end_block = 12; |
|
|
|
|
|
|
|
|
ResponseInitChain init_chain = 6; |
|
|
|
|
|
ResponseQuery query = 7; |
|
|
|
|
|
ResponseBeginBlock begin_block = 8; |
|
|
|
|
|
ResponseCheckTx check_tx = 9; |
|
|
|
|
|
ResponseDeliverTx deliver_tx = 10; |
|
|
|
|
|
ResponseEndBlock end_block = 11; |
|
|
|
|
|
ResponseCommit commit = 12; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseException{ |
|
|
|
|
|
|
|
|
message ResponseException { |
|
|
string error = 1; |
|
|
string error = 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -103,7 +102,7 @@ message ResponseEcho { |
|
|
string message = 1; |
|
|
string message = 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseFlush{ |
|
|
|
|
|
|
|
|
message ResponseFlush { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseInfo { |
|
|
message ResponseInfo { |
|
@ -113,81 +112,82 @@ message ResponseInfo { |
|
|
bytes last_block_app_hash = 4; |
|
|
bytes last_block_app_hash = 4; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseSetOption{ |
|
|
|
|
|
|
|
|
message ResponseSetOption { |
|
|
uint32 code = 1; |
|
|
uint32 code = 1; |
|
|
string log = 2; |
|
|
string log = 2; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseDeliverTx{ |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
bytes data = 2 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
string log = 3; |
|
|
|
|
|
repeated KVPair tags = 4; |
|
|
|
|
|
|
|
|
message ResponseInitChain { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseCheckTx{ |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
bytes data = 2 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
string log = 3; |
|
|
|
|
|
int64 gas = 4; |
|
|
|
|
|
int64 fee = 5; |
|
|
|
|
|
|
|
|
message ResponseQuery { |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
int64 index = 2; |
|
|
|
|
|
bytes key = 3 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
bytes value = 4 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
bytes proof = 5 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
int64 height = 6; |
|
|
|
|
|
string log = 7; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseQuery{ |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
int64 index = 2; |
|
|
|
|
|
bytes key = 3 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
bytes value = 4 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
bytes proof = 5 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
int64 height = 6; |
|
|
|
|
|
string log = 7; |
|
|
|
|
|
|
|
|
message ResponseBeginBlock { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseCommit{ |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
bytes data = 2 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
string log = 3; |
|
|
|
|
|
|
|
|
message ResponseCheckTx { |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
bytes data = 2 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
string log = 3; |
|
|
|
|
|
int64 gas = 4; |
|
|
|
|
|
int64 fee = 5; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message ResponseInitChain{ |
|
|
|
|
|
|
|
|
message ResponseDeliverTx { |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
bytes data = 2 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
string log = 3; |
|
|
|
|
|
repeated KVPair tags = 4; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseBeginBlock{ |
|
|
|
|
|
|
|
|
message ResponseEndBlock { |
|
|
|
|
|
repeated Validator validator_updates = 1; |
|
|
|
|
|
ConsensusParams consensus_param_updates = 2; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
message ResponseEndBlock{ |
|
|
|
|
|
repeated Validator validator_set_updates = 1; |
|
|
|
|
|
ConsensusParams consensus_param_updates = 2; |
|
|
|
|
|
|
|
|
message ResponseCommit { |
|
|
|
|
|
uint32 code = 1; |
|
|
|
|
|
bytes data = 2 [(gogoproto.customtype) = "github.com/tendermint/go-wire/data.Bytes", (gogoproto.nullable) = false]; |
|
|
|
|
|
string log = 3; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------- |
|
|
|
|
|
// Misc. |
|
|
|
|
|
|
|
|
// ConsensusParams contains all consensus-relevant parameters |
|
|
// ConsensusParams contains all consensus-relevant parameters |
|
|
// that can be adjusted by the abci app |
|
|
// that can be adjusted by the abci app |
|
|
message ConsensusParams{ |
|
|
|
|
|
BlockSize block_size = 1; |
|
|
|
|
|
TxSize tx_size = 2; |
|
|
|
|
|
BlockGossip block_gossip = 3; |
|
|
|
|
|
|
|
|
message ConsensusParams { |
|
|
|
|
|
BlockSize block_size = 1; |
|
|
|
|
|
TxSize tx_size = 2; |
|
|
|
|
|
BlockGossip block_gossip = 3; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// BlockSize contain limits on the block size. |
|
|
// BlockSize contain limits on the block size. |
|
|
message BlockSize{ |
|
|
|
|
|
// NOTE: must not be 0 nor greater than 100MB |
|
|
|
|
|
int32 max_bytes = 1; |
|
|
|
|
|
int32 max_txs = 2; |
|
|
|
|
|
int64 max_gas = 3; |
|
|
|
|
|
|
|
|
message BlockSize { |
|
|
|
|
|
int32 max_bytes = 1; |
|
|
|
|
|
int32 max_txs = 2; |
|
|
|
|
|
int64 max_gas = 3; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// TxSize contain limits on the tx size. |
|
|
// TxSize contain limits on the tx size. |
|
|
message TxSize{ |
|
|
message TxSize{ |
|
|
int32 max_bytes = 1; |
|
|
|
|
|
int64 max_gas = 2; |
|
|
|
|
|
|
|
|
int32 max_bytes = 1; |
|
|
|
|
|
int64 max_gas = 2; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// BlockGossip determine consensus critical |
|
|
// BlockGossip determine consensus critical |
|
|
// elements of how blocks are gossiped |
|
|
// elements of how blocks are gossiped |
|
|
message BlockGossip{ |
|
|
message BlockGossip{ |
|
|
// Note: must not be 0 |
|
|
|
|
|
int32 block_part_size_bytes = 1; |
|
|
|
|
|
|
|
|
// Note: must not be 0 |
|
|
|
|
|
int32 block_part_size_bytes = 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//---------------------------------------- |
|
|
//---------------------------------------- |
|
|