File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ service KV {
5454 rpc Range (RangeReq ) returns (Pairs );
5555 // rpc Stream(RangeReq) returns (stream Pairs);
5656
57+ rpc Sequence (SequenceReq ) returns (SequenceReply );
5758
5859 //Temporal methods
5960 rpc GetLatest (GetLatestReq ) returns (GetLatestReply ); // can return latest value or as of given timestamp
@@ -182,6 +183,19 @@ message RangeReq {
182183}
183184
184185
186+ // `kv.Sequence` method
187+ message SequenceReq {
188+ uint64 tx_id = 1 ; // returned by .Tx()
189+
190+ // query params
191+ string table = 2 ;
192+ }
193+
194+ message SequenceReply {
195+ uint64 value = 1 ;
196+ }
197+
198+
185199//Temporal methods
186200message GetLatestReq {
187201 uint64 tx_id = 1 ; // returned by .Tx()
Original file line number Diff line number Diff line change @@ -80,6 +80,17 @@ message NonceReply {
8080 uint64 nonce = 2 ;
8181}
8282
83+ message GetBlobsRequest {
84+ repeated types.H256 blob_hashes = 1 ;
85+ }
86+ message BlobAndProofV1 {
87+ bytes blob = 1 ;
88+ bytes proof = 2 ;
89+ }
90+ message GetBlobsReply {
91+ repeated BlobAndProofV1 blobs_and_proofs = 1 ;
92+ }
93+
8394service Txpool {
8495 // Version returns the service version number
8596 rpc Version (google.protobuf.Empty ) returns (types.VersionReply );
@@ -100,4 +111,6 @@ service Txpool {
100111 rpc Status (StatusRequest ) returns (StatusReply );
101112 // returns nonce for given account
102113 rpc Nonce (NonceRequest ) returns (NonceReply );
114+ // returns the list of blobs and proofs for a given list of blob hashes
115+ rpc GetBlobs (GetBlobsRequest ) returns (GetBlobsReply );
103116}
You can’t perform that action at this time.
0 commit comments