diff --git a/old-faithful-proto/proto/old-faithful.proto b/old-faithful-proto/proto/old-faithful.proto index c79f98e3..0985d679 100644 --- a/old-faithful-proto/proto/old-faithful.proto +++ b/old-faithful-proto/proto/old-faithful.proto @@ -6,8 +6,8 @@ option go_package = "github.com/rpcpool/yellowstone-faithful/old-faithful-proto; service OldFaithful { rpc GetVersion(VersionRequest) returns (VersionResponse); - rpc GetBlockTime(BlockTimeRequest) returns (BlockTimeResponse); rpc GetBlock(BlockRequest) returns (BlockResponse); + rpc GetBlockTime(BlockTimeRequest) returns (BlockTimeResponse); rpc GetTransaction(TransactionRequest) returns (TransactionResponse); rpc Get(stream GetRequest) returns (stream GetResponse); @@ -19,14 +19,6 @@ message VersionResponse { string version = 1; } -message BlockTimeRequest { - uint64 slot = 1; -} - -message BlockTimeResponse { - uint64 block_time = 1; -} - message BlockRequest { uint64 slot = 1; } @@ -42,6 +34,14 @@ message BlockResponse { bytes rewards = 8; // protobuf or bincode (or empty) } +message BlockTimeRequest { + uint64 slot = 1; +} + +message BlockTimeResponse { + int64 block_time = 1; +} + message TransactionRequest { bytes signature = 1; }