Commit 09cad5f9 authored by Ubuntu's avatar Ubuntu

fix buf generate

parent 74e5295e
syntax = "proto3"; syntax = "proto3";
package meta.nebula.v1; package nebula.v1;
option go_package = "nebulav1"; //option go_package = "nebulav1";
import "google/protobuf/field_mask.proto"; import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "meta/nebula/v1/resource.proto"; import "nebula/v1/resource.proto";
// The standard List request definition. // The standard List request definition.
message Example { message Example {
......
syntax = "proto3"; syntax = "proto3";
package meta.nebula.v1; package nebula.v1;
option go_package = "nebulav1"; //option go_package = "nebulav1";
import "google/protobuf/field_mask.proto"; import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "meta/nebula/v1/resource.proto"; import "nebula/v1/resource.proto";
// The standard List request definition. // The standard List request definition.
message Example { // message Example {
// Only retrieve shelves after this time. // // Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1; // google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time. // // Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2; // google.protobuf.Timestamp before_time = 2;
// The start index for pagination. // // The start index for pagination.
uint64 start = 3; // uint64 start = 3;
// The maximum number of shelves to return. // // The maximum number of shelves to return.
uint64 max_size = 4; // uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves. // // The unique id of the parent example for which to list the shelves.
string example_id = 5; // string example_id = 5;
} // }
message GetBlockByNumberRequest { // message GetBlockByNumberRequest {
// request block number // // request block number
bytes block_id = 1; // bytes block_id = 1;
} // }
message BlockResponse { // message BlockResponse {
bytes block_info = 1; // bytes block_info = 1;
} // }
...@@ -8,24 +8,24 @@ import "google/protobuf/timestamp.proto"; ...@@ -8,24 +8,24 @@ import "google/protobuf/timestamp.proto";
import "nebula/v1/resource.proto"; import "nebula/v1/resource.proto";
// The standard List request definition. // The standard List request definition.
message Example { // message Example {
// Only retrieve shelves after this time. // // Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1; // google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time. // // Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2; // google.protobuf.Timestamp before_time = 2;
// The start index for pagination. // // The start index for pagination.
uint64 start = 3; // uint64 start = 3;
// The maximum number of shelves to return. // // The maximum number of shelves to return.
uint64 max_size = 4; // uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves. // // The unique id of the parent example for which to list the shelves.
string example_id = 5; // string example_id = 5;
} // }
message GetBlockByNumberRequest { // message GetBlockByNumberRequest {
// request block number // // request block number
bytes block_id = 1; // bytes block_id = 1;
} // }
message BlockResponse { // message BlockResponse {
bytes block_info = 1; // bytes block_info = 1;
} // }
syntax = "proto3"; syntax = "proto3";
package meta.nebula.v1; package nebula.v1;
option go_package = "nebulav1"; //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 { service NebulaService {
// block info service // block info service
rpc // rpc
// transaction info service // transaction info service
...@@ -27,15 +28,15 @@ service NebulaService { ...@@ -27,15 +28,15 @@ service NebulaService {
// ShelfService defines methods for managing shelves. // ShelfService defines methods for managing shelves.
service ShelfService { service ShelfService {
// ListShelves retrieves a list of shelf resources from the server. // 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. // BatchGetShelves retrieves multiple shelf resources from the server.
rpc BatchGetShelves(BatchGetShelvesRequest) returns (BatchGetShelvesResponse) {} // rpc BatchGetShelves(BatchGetShelvesRequest) returns (BatchGetShelvesResponse) {}
// GetShelf retrieves a single shelf resource from the server. // // GetShelf retrieves a single shelf resource from the server.
rpc GetShelf(GetShelfRequest) returns (GetShelfResponse) {} // rpc GetShelf(GetShelfRequest) returns (GetShelfResponse) {}
// CreateShelf creates a new shelf resource on the server. // // CreateShelf creates a new shelf resource on the server.
rpc CreateShelf(CreateShelfRequest) returns (CreateShelfResponse) {} // rpc CreateShelf(CreateShelfRequest) returns (CreateShelfResponse) {}
// UpdateShelf updates the shelf resource on the server. // // UpdateShelf updates the shelf resource on the server.
rpc UpdateShelf(UpdateShelfRequest) returns (UpdateShelfResponse) {} // rpc UpdateShelf(UpdateShelfRequest) returns (UpdateShelfResponse) {}
// DeleteShelf deletes the shelf resource from the server. // // DeleteShelf deletes the shelf resource from the server.
rpc DeleteShelf(DeleteShelfRequest) returns (DeleteShelfResponse) {} // rpc DeleteShelf(DeleteShelfRequest) returns (DeleteShelfResponse) {}
} }
syntax = "proto3"; syntax = "proto3";
package meta.nebula.v1; package nebula.v1;
option go_package = "nebulav1"; //option go_package = "nebulav1";
import "google/protobuf/field_mask.proto"; import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "meta/nebula/v1/resource.proto"; import "nebula/v1/resource.proto";
// The standard List request definition. // The standard List request definition.
message Example { // message Example {
// Only retrieve shelves after this time. // // Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1; // google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time. // // Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2; // google.protobuf.Timestamp before_time = 2;
// The start index for pagination. // // The start index for pagination.
uint64 start = 3; // uint64 start = 3;
// The maximum number of shelves to return. // // The maximum number of shelves to return.
uint64 max_size = 4; // uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves. // // The unique id of the parent example for which to list the shelves.
string example_id = 5; // string example_id = 5;
} // }
message GetBlockByNumberRequest { message GetBlockByNumberRequest {
// request block number // request block number
......
syntax = "proto3"; syntax = "proto3";
package meta.sentry.v1; package sentry.v1;
option go_package = "sentryv1"; //option go_package = "sentryv1";
import "google/protobuf/field_mask.proto"; import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "meta/sentry/v1/resource.proto"; import "sentry/v1/resource.proto";
// The standard List request definition. // The standard List request definition.
message ListShelvesRequest { message ListShelvesRequest {
...@@ -82,3 +82,24 @@ message GetConsensusedBlockResponse { ...@@ -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; ...@@ -5,15 +5,15 @@ package sentry.v1;
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
// The default Shelf resource representation. // The default Shelf resource representation.
message Example { // message Example {
// The unique shelf id. // // The unique shelf id.
string id = 1; // string id = 1;
// Indicates when the shelf was created. // // Indicates when the shelf was created.
google.protobuf.Timestamp create_time = 2; // google.protobuf.Timestamp create_time = 2;
// Indicates when the shelf was last updated. // // Indicates when the shelf was last updated.
google.protobuf.Timestamp update_time = 3; // google.protobuf.Timestamp update_time = 3;
// The unique id of the parent example resource. // // The unique id of the parent example resource.
string example_id = 4; // string example_id = 4;
// The display name for the shelf. // // The display name for the shelf.
string display_name = 5; // string display_name = 5;
} // }
\ No newline at end of file \ 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