4 // This file is copied from http://github.com/tendermint/abci
6 //----------------------------------------
12 // General response codes, 0 ~ 99
17 InsufficientFunds = 5;
20 // Reserved for basecoin, 100 ~ 199
21 BaseDuplicateAddress = 101;
22 BaseEncodingError = 102;
23 BaseInsufficientFees = 103;
24 BaseInsufficientFunds = 104;
25 BaseInsufficientGasPrice = 105;
26 BaseInvalidInput = 106;
27 BaseInvalidOutput = 107;
28 BaseInvalidPubKey = 108;
29 BaseInvalidSequence = 109;
30 BaseInvalidSignature = 110;
31 BaseUnknownAddress = 111;
32 BaseUnknownPubKey = 112;
33 BaseUnknownPlugin = 113;
35 // Reserved for governance, 200 ~ 299
36 GovUnknownEntity = 201;
37 GovUnknownGroup = 202;
38 GovUnknownProposal = 203;
39 GovDuplicateGroup = 204;
40 GovDuplicateMember = 205;
41 GovDuplicateProposal = 206;
42 GovDuplicateVote = 207;
43 GovInvalidMember = 208;
45 GovInvalidVotingPower = 210;
49 //----------------------------------------
55 RequestFlush flush = 2;
57 RequestSetOption set_option = 4;
58 RequestDeliverTx deliver_tx = 5;
59 RequestCheckTx check_tx = 6;
60 RequestCommit commit = 7;
61 RequestQuery query = 8;
62 RequestInitChain init_chain = 9;
63 RequestBeginBlock begin_block = 10;
64 RequestEndBlock end_block = 11;
72 message RequestFlush {
79 message RequestSetOption{
84 message RequestDeliverTx{
88 message RequestCheckTx{
99 message RequestCommit{
102 message RequestInitChain{
103 repeated Validator validators = 1;
106 message RequestBeginBlock{
111 message RequestEndBlock{
115 //----------------------------------------
121 ResponseException exception = 1;
122 ResponseEcho echo = 2;
123 ResponseFlush flush = 3;
124 ResponseInfo info = 4;
125 ResponseSetOption set_option = 5;
126 ResponseDeliverTx deliver_tx = 6;
127 ResponseCheckTx check_tx = 7;
128 ResponseCommit commit = 8;
129 ResponseQuery query = 9;
130 ResponseInitChain init_chain = 10;
131 ResponseBeginBlock begin_block = 11;
132 ResponseEndBlock end_block = 12;
136 message ResponseException{
140 message ResponseEcho {
144 message ResponseFlush{
147 message ResponseInfo {
150 uint64 last_block_height = 3;
151 bytes last_block_app_hash = 4;
154 message ResponseSetOption{
158 message ResponseDeliverTx{
164 message ResponseCheckTx{
170 message ResponseQuery{
180 message ResponseCommit{
187 message ResponseInitChain{
190 message ResponseBeginBlock{
193 message ResponseEndBlock{
194 repeated Validator diffs = 1;
197 //----------------------------------------
205 BlockID last_block_id = 5;
206 bytes last_commit_hash = 6;
208 bytes validators_hash = 8;
214 PartSetHeader parts = 2;
217 message PartSetHeader {
227 //----------------------------------------
228 // Service Definition
230 service ABCIApplication {
231 rpc Echo(RequestEcho) returns (ResponseEcho) ;
232 rpc Flush(RequestFlush) returns (ResponseFlush);
233 rpc Info(RequestInfo) returns (ResponseInfo);
234 rpc SetOption(RequestSetOption) returns (ResponseSetOption);
235 rpc DeliverTx(RequestDeliverTx) returns (ResponseDeliverTx);
236 rpc CheckTx(RequestCheckTx) returns (ResponseCheckTx);
237 rpc Query(RequestQuery) returns (ResponseQuery);
238 rpc Commit(RequestCommit) returns (ResponseCommit);
239 rpc InitChain(RequestInitChain) returns (ResponseInitChain);
240 rpc BeginBlock(RequestBeginBlock) returns (ResponseBeginBlock);
241 rpc EndBlock(RequestEndBlock) returns (ResponseEndBlock);