Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MetaProtocol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nebula
MetaProtocol
Commits
09cad5f9
Commit
09cad5f9
authored
Nov 02, 2022
by
Ubuntu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix buf generate
parent
74e5295e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
110 additions
and
88 deletions
+110
-88
account_req_res.proto
nebulaapi/nebula/v1/account_req_res.proto
+3
-3
block_req_res.proto
nebulaapi/nebula/v1/block_req_res.proto
+22
-22
request_response.proto
nebulaapi/nebula/v1/request_response.proto
+19
-19
service.proto
nebulaapi/nebula/v1/service.proto
+15
-14
transaction_req_res.proto
nebulaapi/nebula/v1/transaction_req_res.proto
+15
-15
request_response.proto
sentryapi/sentry/v1/request_response.proto
+24
-3
resource.proto
sentryapi/sentry/v1/resource.proto
+12
-12
No files found.
nebulaapi/nebula/v1/account_req_res.proto
View file @
09cad5f9
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
{
...
...
nebulaapi/nebula/v1/block_req_res.proto
View file @
09cad5f9
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;
//
}
nebulaapi/nebula/v1/request_response.proto
View file @
09cad5f9
...
...
@@ -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;
//
}
nebulaapi/nebula/v1/service.proto
View file @
09cad5f9
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) {}
}
nebulaapi/nebula/v1/transaction_req_res.proto
View file @
09cad5f9
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
...
...
sentryapi/sentry/v1/request_response.proto
View file @
09cad5f9
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
;
}
sentryapi/sentry/v1/resource.proto
View file @
09cad5f9
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment