Commit 09cad5f9 authored by Ubuntu's avatar Ubuntu

fix buf generate

parent 74e5295e
syntax = "proto3";
package meta.nebula.v1;
option go_package = "nebulav1";
package nebula.v1;
//option go_package = "nebulav1";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "meta/nebula/v1/resource.proto";
import "nebula/v1/resource.proto";
// The standard List request definition.
message Example {
......
syntax = "proto3";
package meta.nebula.v1;
option go_package = "nebulav1";
package nebula.v1;
//option go_package = "nebulav1";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "meta/nebula/v1/resource.proto";
import "nebula/v1/resource.proto";
// The standard List request definition.
message Example {
// Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2;
// The start index for pagination.
uint64 start = 3;
// The maximum number of shelves to return.
uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves.
string example_id = 5;
}
// message Example {
// // Only retrieve shelves after this time.
// google.protobuf.Timestamp after_time = 1;
// // Only retrieve shelves before this time.
// google.protobuf.Timestamp before_time = 2;
// // The start index for pagination.
// uint64 start = 3;
// // The maximum number of shelves to return.
// uint64 max_size = 4;
// // The unique id of the parent example for which to list the shelves.
// string example_id = 5;
// }
message GetBlockByNumberRequest {
// request block number
bytes block_id = 1;
}
// message GetBlockByNumberRequest {
// // request block number
// bytes block_id = 1;
// }
message BlockResponse {
bytes block_info = 1;
}
// message BlockResponse {
// bytes block_info = 1;
// }
......@@ -8,24 +8,24 @@ import "google/protobuf/timestamp.proto";
import "nebula/v1/resource.proto";
// The standard List request definition.
message Example {
// Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2;
// The start index for pagination.
uint64 start = 3;
// The maximum number of shelves to return.
uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves.
string example_id = 5;
}
// message Example {
// // Only retrieve shelves after this time.
// google.protobuf.Timestamp after_time = 1;
// // Only retrieve shelves before this time.
// google.protobuf.Timestamp before_time = 2;
// // The start index for pagination.
// uint64 start = 3;
// // The maximum number of shelves to return.
// uint64 max_size = 4;
// // The unique id of the parent example for which to list the shelves.
// string example_id = 5;
// }
message GetBlockByNumberRequest {
// request block number
bytes block_id = 1;
}
// message GetBlockByNumberRequest {
// // request block number
// bytes block_id = 1;
// }
message BlockResponse {
bytes block_info = 1;
}
// message BlockResponse {
// bytes block_info = 1;
// }
syntax = "proto3";
package meta.nebula.v1;
option go_package = "nebulav1";
package nebula.v1;
//option go_package = "nebulav1";
import "meta/nebula/v1/request_response.proto";
import "nebula/v1/request_response.proto";
import "nebula/v1/block_req_res.proto";
service NebulaService {
// block info service
rpc
// rpc
// transaction info service
......@@ -27,15 +28,15 @@ service NebulaService {
// ShelfService defines methods for managing shelves.
service ShelfService {
// ListShelves retrieves a list of shelf resources from the server.
rpc ListShelves(ListShelvesRequest) returns (ListShelvesResponse) {}
//rpc ListShelves(ListShelvesRequest) returns (ListShelvesResponse) {}
// BatchGetShelves retrieves multiple shelf resources from the server.
rpc BatchGetShelves(BatchGetShelvesRequest) returns (BatchGetShelvesResponse) {}
// GetShelf retrieves a single shelf resource from the server.
rpc GetShelf(GetShelfRequest) returns (GetShelfResponse) {}
// CreateShelf creates a new shelf resource on the server.
rpc CreateShelf(CreateShelfRequest) returns (CreateShelfResponse) {}
// UpdateShelf updates the shelf resource on the server.
rpc UpdateShelf(UpdateShelfRequest) returns (UpdateShelfResponse) {}
// DeleteShelf deletes the shelf resource from the server.
rpc DeleteShelf(DeleteShelfRequest) returns (DeleteShelfResponse) {}
// rpc BatchGetShelves(BatchGetShelvesRequest) returns (BatchGetShelvesResponse) {}
// // GetShelf retrieves a single shelf resource from the server.
// rpc GetShelf(GetShelfRequest) returns (GetShelfResponse) {}
// // CreateShelf creates a new shelf resource on the server.
// rpc CreateShelf(CreateShelfRequest) returns (CreateShelfResponse) {}
// // UpdateShelf updates the shelf resource on the server.
// rpc UpdateShelf(UpdateShelfRequest) returns (UpdateShelfResponse) {}
// // DeleteShelf deletes the shelf resource from the server.
// rpc DeleteShelf(DeleteShelfRequest) returns (DeleteShelfResponse) {}
}
syntax = "proto3";
package meta.nebula.v1;
option go_package = "nebulav1";
package nebula.v1;
//option go_package = "nebulav1";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "meta/nebula/v1/resource.proto";
import "nebula/v1/resource.proto";
// The standard List request definition.
message Example {
// Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2;
// The start index for pagination.
uint64 start = 3;
// The maximum number of shelves to return.
uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves.
string example_id = 5;
}
// message Example {
// // Only retrieve shelves after this time.
// google.protobuf.Timestamp after_time = 1;
// // Only retrieve shelves before this time.
// google.protobuf.Timestamp before_time = 2;
// // The start index for pagination.
// uint64 start = 3;
// // The maximum number of shelves to return.
// uint64 max_size = 4;
// // The unique id of the parent example for which to list the shelves.
// string example_id = 5;
// }
message GetBlockByNumberRequest {
// request block number
......
syntax = "proto3";
package meta.sentry.v1;
option go_package = "sentryv1";
package sentry.v1;
//option go_package = "sentryv1";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "meta/sentry/v1/resource.proto";
import "sentry/v1/resource.proto";
// The standard List request definition.
message ListShelvesRequest {
......@@ -82,3 +82,24 @@ message GetConsensusedBlockResponse {
}
// GetBalance -> eth.getBalance -> eth_getBalance
message GetBalanceReq {
repeated string address = 1;
}
message GetBalanceResp {
repeated string balance = 1;
}
// GetNonce -> eth.GetNonce -> GetNonce
message GetNonceReq {
repeated string address = 1;
}
message GetNonceResp {
repeated string balance = 1;
}
message BlockNumber {
uint64 blocknum = 1;
}
......@@ -5,15 +5,15 @@ package sentry.v1;
import "google/protobuf/timestamp.proto";
// The default Shelf resource representation.
message Example {
// The unique shelf id.
string id = 1;
// Indicates when the shelf was created.
google.protobuf.Timestamp create_time = 2;
// Indicates when the shelf was last updated.
google.protobuf.Timestamp update_time = 3;
// The unique id of the parent example resource.
string example_id = 4;
// The display name for the shelf.
string display_name = 5;
}
\ No newline at end of file
// message Example {
// // The unique shelf id.
// string id = 1;
// // Indicates when the shelf was created.
// google.protobuf.Timestamp create_time = 2;
// // Indicates when the shelf was last updated.
// google.protobuf.Timestamp update_time = 3;
// // The unique id of the parent example resource.
// string example_id = 4;
// // The display name for the shelf.
// string display_name = 5;
// }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment