2016-06-21 13:19:49 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
package core_grpc;
|
|
|
|
|
2018-06-22 06:59:02 +02:00
|
|
|
import "github.com/tendermint/tendermint/abci/types/types.proto";
|
2016-08-27 16:37:52 -04:00
|
|
|
|
2016-06-21 13:19:49 -04:00
|
|
|
//----------------------------------------
|
|
|
|
// Message types
|
|
|
|
|
|
|
|
//----------------------------------------
|
|
|
|
// Request types
|
|
|
|
|
2017-11-14 21:51:49 +00:00
|
|
|
message RequestPing {
|
|
|
|
}
|
|
|
|
|
2016-06-21 13:19:49 -04:00
|
|
|
message RequestBroadcastTx {
|
2017-07-19 12:28:19 +03:00
|
|
|
bytes tx = 1;
|
2016-06-21 13:19:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------
|
|
|
|
// Response types
|
|
|
|
|
2017-11-14 21:51:49 +00:00
|
|
|
message ResponsePing{
|
|
|
|
}
|
|
|
|
|
2016-06-21 13:19:49 -04:00
|
|
|
message ResponseBroadcastTx{
|
2017-07-19 12:28:19 +03:00
|
|
|
types.ResponseCheckTx check_tx = 1;
|
|
|
|
types.ResponseDeliverTx deliver_tx = 2;
|
2016-06-21 13:19:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------
|
|
|
|
// Service Definition
|
|
|
|
|
|
|
|
service BroadcastAPI {
|
2017-11-14 21:51:49 +00:00
|
|
|
rpc Ping(RequestPing) returns (ResponsePing) ;
|
2017-07-19 12:28:19 +03:00
|
|
|
rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx) ;
|
2016-06-21 13:19:49 -04:00
|
|
|
}
|