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
bbc1f393
Commit
bbc1f393
authored
Nov 03, 2022
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
4641f0b4
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
20 additions
and
230 deletions
+20
-230
request_response.proto
baseapi/base/v1/request_response.proto
+8
-90
resource.proto
baseapi/base/v1/resource.proto
+6
-15
service.proto
baseapi/base/v1/service.proto
+2
-15
request_response.proto
crypterapi/crypter/v1/request_response.proto
+0
-2
resource.proto
crypterapi/crypter/v1/resource.proto
+0
-3
service.proto
crypterapi/crypter/v1/service.proto
+0
-1
main.go
main.go
+2
-2
account_req_res.proto
nebulaapi/nebula/v1/account_req_res.proto
+0
-2
request_response.proto
nebulaapi/nebula/v1/request_response.proto
+0
-24
resource.proto
nebulaapi/nebula/v1/resource.proto
+0
-17
service.proto
nebulaapi/nebula/v1/service.proto
+1
-1
request_response.proto
p2papi/p2p/v1/request_response.proto
+0
-2
resource.proto
p2papi/p2p/v1/resource.proto
+0
-1
service.proto
p2papi/p2p/v1/service.proto
+0
-1
service.proto
ringapi/ring/v1/service.proto
+0
-3
request_response.proto
sentryapi/sentry/v1/request_response.proto
+0
-15
resource.proto
sentryapi/sentry/v1/resource.proto
+0
-16
service.proto
sentryapi/sentry/v1/service.proto
+0
-1
request_response.proto
txcheckerapi/txchecker/v1/request_response.proto
+0
-1
resource.proto
txcheckerapi/txchecker/v1/resource.proto
+0
-16
service.proto
txcheckerapi/txchecker/v1/service.proto
+1
-2
No files found.
baseapi/base/v1/request_response.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
base
.
v1
;
package
base
.
v1
;
//option go_package = "basev1";
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"base/v1/resource.proto"
;
import
"base/v1/resource.proto"
;
// The standard List request definition.
message
RLPData
{
message
ListShelvesRequest
{
bytes
data
=
1
;
// 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
;
}
// The standard List response definition.
message
ListShelvesResponse
{
// The retrieved list of shelves.
repeated
Shelf
shelves
=
1
;
// True if more shelves are available.
bool
next
=
2
;
}
// The standard BatchGet request definition.
message
BatchGetShelvesRequest
{
// The ids of the requested shelves.
repeated
string
ids
=
1
;
}
// The standard BatchGet response definition.
message
BatchGetShelvesResponse
{
// The retrieved shelves.
repeated
Shelf
shelves
=
1
;
}
// The standard Get request definition.
message
GetShelfRequest
{
// The id of the requested shelf.
string
id
=
1
;
}
// The standard Get response definition.
message
GetShelfResponse
{
// The retrieved shelf.
Shelf
shelf
=
1
;
}
// The standard Create request definition.
message
CreateShelfRequest
{
// The shelf to create.
Shelf
shelf
=
1
;
// The unique id of the parent example where the shelf is to be created.
string
example_id
=
2
;
}
// The standard Create response definition.
message
CreateShelfResponse
{
// The created shelf.
Shelf
shelf
=
1
;
}
// The standard Update request definition.
message
UpdateShelfRequest
{
// The id of the shelf to be updated.
string
id
=
1
;
// The shelf which replaces the shelf on the server.
Shelf
shelf
=
2
;
// The update mask applied to the shelf. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
google.protobuf.FieldMask
update_mask
=
3
;
}
// The standard Update response definition.
message
UpdateShelfResponse
{
// The updated shelf.
Shelf
shelf
=
1
;
}
// The standard Delete request definition.
message
DeleteShelfRequest
{
// The id of the shelf to be deleted.
string
id
=
1
;
}
}
// The standard Delete response definition.
message
Account
{
message
DeleteShelfResponse
{
Address
address
=
1
;
// The deleted shelf.
bytes
nonce
=
2
;
Shelf
shelf
=
1
;
bytes
balance
=
3
;
Hash
state_root
=
4
;
}
}
\ No newline at end of file
baseapi/base/v1/resource.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
base
.
v1
;
package
base
.
v1
;
//option go_package = "basev1";
import
"google/protobuf/timestamp.proto"
;
message
Hash
{
bytes
hash
=
1
;
}
// The default Shelf resource representation.
message
Address
{
message
Shelf
{
bytes
address
=
1
;
// 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
baseapi/base/v1/service.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
base
.
v1
;
package
base
.
v1
;
//option go_package = "basev1";
import
"base/v1/request_response.proto"
;
import
"base/v1/request_response.proto"
;
// ShelfService defines methods for managing shelves.
service
BaseService
{
service
ShelfService
{
rpc
ParseAccount
(
RLPData
)
returns
(
Account
)
{};
// ListShelves retrieves a list of shelf resources from the server.
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
)
{}
}
}
crypterapi/crypter/v1/request_response.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
crypter
.
v1
;
package
crypter
.
v1
;
//option go_package = "crypterv1";
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"crypter/v1/resource.proto"
;
import
"crypter/v1/resource.proto"
;
message
BatchSignRequest
{
message
BatchSignRequest
{
string
id
=
1
;
string
id
=
1
;
repeated
bytes
privk
=
2
;
repeated
bytes
privk
=
2
;
...
...
crypterapi/crypter/v1/resource.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
crypter
.
v1
;
package
crypter
.
v1
;
//option go_package = "crypterv1";
import
"google/protobuf/timestamp.proto"
;
enum
CryptType
{
enum
CryptType
{
CRYPT_TYPE_INVALID
=
0
;
CRYPT_TYPE_INVALID
=
0
;
...
...
crypterapi/crypter/v1/service.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
crypter
.
v1
;
package
crypter
.
v1
;
//option go_package = "crypterv1";
import
"crypter/v1/request_response.proto"
;
import
"crypter/v1/request_response.proto"
;
...
...
main.go
View file @
bbc1f393
...
@@ -30,12 +30,12 @@ type SentryServer struct {
...
@@ -30,12 +30,12 @@ type SentryServer struct {
}
}
type
TxCheckServer
struct
{
type
TxCheckServer
struct
{
txchecker
.
Unimplemented
Shelf
ServiceServer
txchecker
.
Unimplemented
TxChecker
ServiceServer
}
}
// hello server
// hello server
type
BaseType
struct
{
type
BaseType
struct
{
metabase
.
Unimplemented
Shelf
ServiceServer
metabase
.
Unimplemented
Base
ServiceServer
}
}
type
RingServer
struct
{
type
RingServer
struct
{
...
...
nebulaapi/nebula/v1/account_req_res.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
nebula
.
v1
;
package
nebula
.
v1
;
//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
"nebula/v1/resource.proto"
;
import
"nebula/v1/resource.proto"
;
...
...
nebulaapi/nebula/v1/request_response.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
nebula
.
v1
;
package
nebula
.
v1
;
//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
"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 GetBlockByNumberRequest {
// // request block number
// bytes block_id = 1;
// }
// message BlockResponse {
// bytes block_info = 1;
// }
nebulaapi/nebula/v1/resource.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
nebula
.
v1
;
package
nebula
.
v1
;
//option go_package = "nebulav1";
import
"google/protobuf/timestamp.proto"
;
// The default Shelf resource representation.
message
Shelf
{
// 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
;
}
nebulaapi/nebula/v1/service.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
nebula
.
v1
;
package
nebula
.
v1
;
//option go_package = "nebulav1";
import
"google/protobuf/empty.proto"
;
import
"google/protobuf/empty.proto"
;
import
"nebula/v1/request_response.proto"
;
import
"nebula/v1/request_response.proto"
;
import
"nebula/v1/account_req_res.proto"
;
import
"nebula/v1/account_req_res.proto"
;
...
...
p2papi/p2p/v1/request_response.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
p2p
.
v1
;
package
p2p
.
v1
;
//option go_package = "p2pv1";
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"p2p/v1/resource.proto"
;
import
"p2p/v1/resource.proto"
;
...
...
p2papi/p2p/v1/resource.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
p2p
.
v1
;
package
p2p
.
v1
;
//option go_package = "p2pv1";
import
"google/protobuf/timestamp.proto"
;
import
"google/protobuf/timestamp.proto"
;
enum
P2PMsgType
{
enum
P2PMsgType
{
...
...
p2papi/p2p/v1/service.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
p2p
.
v1
;
package
p2p
.
v1
;
//option go_package = "p2pv1";
import
"p2p/v1/request_response.proto"
;
import
"p2p/v1/request_response.proto"
;
service
P2PService
{
service
P2PService
{
...
...
ringapi/ring/v1/service.proto
View file @
bbc1f393
...
@@ -4,9 +4,6 @@ package ring.v1;
...
@@ -4,9 +4,6 @@ package ring.v1;
import
"ring/v1/request_response.proto"
;
import
"ring/v1/request_response.proto"
;
// ShelfService defines methods for managing shelves.
//service ShelfService {
service
RingService
{
service
RingService
{
rpc
SendRawTransaction
(
SendRawTransactionRequest
)
returns
(
SendRawTransactionResponse
)
{}
rpc
SendRawTransaction
(
SendRawTransactionRequest
)
returns
(
SendRawTransactionResponse
)
{}
rpc
EstimateGas
(
EstimateGasRequest
)
returns
(
EstimateGasResponse
)
{}
rpc
EstimateGas
(
EstimateGasRequest
)
returns
(
EstimateGasResponse
)
{}
...
...
sentryapi/sentry/v1/request_response.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
sentry
.
v1
;
package
sentry
.
v1
;
//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
"sentry/v1/resource.proto"
;
import
"sentry/v1/resource.proto"
;
// The standard List request definition.
message
ListShelvesRequest
{
// 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
LimitInfoRequest
{
message
LimitInfoRequest
{
// block height to get limit info from contract.
// block height to get limit info from contract.
uint32
height
=
1
;
uint32
height
=
1
;
...
...
sentryapi/sentry/v1/resource.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
sentry
.
v1
;
package
sentry
.
v1
;
//option go_package = "sentryv1";
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
sentryapi/sentry/v1/service.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
sentry
.
v1
;
package
sentry
.
v1
;
//option go_package = "sentryv1";
import
"sentry/v1/request_response.proto"
;
import
"sentry/v1/request_response.proto"
;
import
"google/protobuf/empty.proto"
;
import
"google/protobuf/empty.proto"
;
...
...
txcheckerapi/txchecker/v1/request_response.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
txchecker
.
v1
;
package
txchecker
.
v1
;
//option go_package = "txcheckerv1";
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"google/protobuf/timestamp.proto"
;
...
...
txcheckerapi/txchecker/v1/resource.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
txchecker
.
v1
;
package
txchecker
.
v1
;
//option go_package = "txcheckerv1";
import
"google/protobuf/timestamp.proto"
;
// // The default Shelf resource representation.
// message Shelf {
// // 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;
// }
txcheckerapi/txchecker/v1/service.proto
View file @
bbc1f393
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
txchecker
.
v1
;
package
txchecker
.
v1
;
//option go_package = "txcheckerv1";
import
"txchecker/v1/request_response.proto"
;
import
"txchecker/v1/request_response.proto"
;
service
Shelf
Service
{
service
TxChecker
Service
{
rpc
BatchCheckTx
(
BatchCheckTxRequest
)
returns
(
BatchCheckTxResponse
)
{}
rpc
BatchCheckTx
(
BatchCheckTxRequest
)
returns
(
BatchCheckTxResponse
)
{}
...
...
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