Skip to content

Commit

Permalink
grpc: add GetBlockTime
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jul 2, 2024
1 parent 7a528ee commit b0fa543
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions old-faithful-proto/proto/old-faithful.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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 GetTransaction(TransactionRequest) returns (TransactionResponse);

Expand All @@ -18,6 +19,14 @@ message VersionResponse {
string version = 1;
}

message BlockTimeRequest {
uint64 slot = 1;
}

message BlockTimeResponse {
uint64 block_time = 1;
}

message BlockRequest {
uint64 slot = 1;
}
Expand Down Expand Up @@ -54,6 +63,7 @@ message GetRequest {
uint64 id = 1;
oneof request {
VersionRequest version = 2;
BlockTimeRequest block_time = 5;
BlockRequest block = 3;
TransactionRequest transaction = 4;
}
Expand All @@ -64,6 +74,7 @@ message GetResponse {
oneof response {
GetResponseError error = 2;
VersionResponse version = 3;
BlockTimeResponse block_time = 6;
BlockResponse block = 4;
TransactionResponse transaction = 5;
}
Expand Down

0 comments on commit b0fa543

Please sign in to comment.