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
acc21840
Commit
acc21840
authored
Nov 02, 2022
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update nebula
parent
04ac4c6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
334 additions
and
71 deletions
+334
-71
account_req_res.proto
meta/nebula/v1/account_req_res.proto
+266
-0
block_req_res.proto
meta/nebula/v1/block_req_res.proto
+31
-0
request_response.proto
meta/nebula/v1/request_response.proto
+6
-71
transaction_req_res.proto
meta/nebula/v1/transaction_req_res.proto
+31
-0
No files found.
meta/nebula/v1/account_req_res.proto
0 → 100644
View file @
acc21840
syntax
=
"proto3"
;
package
meta
.
nebula.v1
;
option
go_package
=
"nebulav1"
;
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"meta/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
NodeVersionRequest
{
string
id
=
1
;
}
message
NodeVersionResponse
{
bytes
version
=
1
;
}
message
Sha3Request
{
// data need to caculate sha3.
bytes
data
=
1
;
}
message
Sha3Response
{
//
bytes
hash
=
1
;
}
message
NetVersionRequest
{
string
id
=
1
;
}
message
NetVersionResponse
{
bytes
version
=
1
;
}
message
NetPeerCountRequest
{
string
id
=
1
;
}
message
NetPeerCountResponse
{
uint32
peer_count
=
1
;
}
message
ProtocolVersionRequest
{
string
id
=
1
;
}
message
ProtocolVersionResponse
{
bytes
version
=
1
;
}
message
SyncingRequest
{
string
id
=
1
;
}
message
SyncingResponse
{
bytes
start
=
1
;
bytes
end
=
2
;
bytes
current
=
3
;
}
message
CoinbaseRequest
{
string
id
=
1
;
}
message
CoinbaseResponse
{
bytes
address
=
1
;
}
message
MiningRequest
{
string
id
=
1
;
}
message
MiningResponse
{
string
status
=
1
;
}
message
HashRateRequest
{
string
id
=
1
;
}
message
HashRateResponse
{
string
result
=
1
;
}
message
GasPriceRequest
{
string
id
=
1
;
}
message
GasPriceResponse
{
// gas price in wei.
bytes
gas_price
=
1
;
}
message
AccountsRequest
{
string
id
=
1
;
}
message
AccountsResponse
{
repeated
bytes
address
=
1
;
}
message
HeightRequest
{
string
id
=
1
;
}
message
HeightResponse
{
bytes
height
=
1
;
}
message
BalanceRequest
{
// request address
bytes
address
=
1
;
// request block number
bytes
block_id
=
2
;
}
message
BalanceResponse
{
// the address
bytes
address
=
1
;
// block height
bytes
block_id
=
2
;
// balance
bytes
balance
=
3
;
}
message
StorageRequest
{
bytes
address
=
1
;
bytes
block_id
=
2
;
bytes
position
=
3
;
}
message
StorageResponse
{
bytes
address
=
1
;
bytes
block_id
=
2
;
bytes
position
=
3
;
bytes
data
=
4
;
}
message
GetNonceRequest
{
// request address
bytes
address
=
1
;
// request block number
bytes
block_id
=
2
;
}
message
NonceResponse
{
// the address
bytes
address
=
1
;
// block height
bytes
block_id
=
2
;
// nonce
bytes
nonce
=
3
;
}
message
GetTransactionCountRequest
{
// request address
bytes
address
=
1
;
// request block number
bytes
block_id
=
2
;
}
message
TransactionCountResponse
{
// the address
bytes
address
=
1
;
// block height
bytes
block_id
=
2
;
// count
bytes
count
=
3
;
}
message
BlockTransactionCountByHashRequest
{
bytes
block_hash
=
1
;
}
message
BlockTransactionCountByHashResponse
{
bytes
block_hash
=
1
;
uint32
count
=
2
;
}
message
BlockTransactionCountByNumberRequest
{
bytes
block_id
=
1
;
}
message
BlockTransactionCountByNumberResponse
{
bytes
block_id
=
1
;
uint32
count
=
2
;
}
message
UncleCountByHashRequest
{
bytes
block_hash
=
1
;
}
message
UncleCountByHashResponse
{
bytes
block_hash
=
1
;
uint32
count
=
2
;
}
message
UncleCountByNumberRequest
{
bytes
block_id
=
1
;
}
message
UncleCountByNumberResponse
{
bytes
block_id
=
1
;
uint32
count
=
2
;
}
message
GetCodeRequest
{
bytes
address
=
1
;
bytes
block_id
=
2
;
}
message
GetCodeResponse
{
bytes
address
=
1
;
bytes
block_id
=
2
;
bytes
code
=
3
;
}
message
SignRequest
{
bytes
address
=
1
;
bytes
data
=
2
;
}
message
SignResponse
{
bytes
signature
=
1
;
}
message
SignTransactionRequest
{
bytes
address
=
1
;
bytes
tx_data
=
2
;
bytes
method
=
3
;
}
message
SignTransactionResponse
{
bytes
signed_tx
=
1
;
}
message
SendTransactionRequest
{
bytes
address
=
1
;
bytes
tx_data
=
2
;
}
message
SendTransactionResponse
{
bytes
tx_hash
=
1
;
}
message
SendRawTransactionRequest
{
bytes
signed_tx
=
1
;
}
message
SendRawTransactionResponse
{
bytes
tx_hash
=
1
;
}
\ No newline at end of file
meta/nebula/v1/block_req_res.proto
0 → 100644
View file @
acc21840
syntax
=
"proto3"
;
package
meta
.
nebula.v1
;
option
go_package
=
"nebulav1"
;
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"meta/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
;
}
meta/nebula/v1/request_response.proto
View file @
acc21840
...
...
@@ -8,7 +8,7 @@ import "google/protobuf/timestamp.proto";
import
"meta/nebula/v1/resource.proto"
;
// The standard List request definition.
message
ListShelvesRequest
{
message
Example
{
// Only retrieve shelves after this time.
google.protobuf.Timestamp
after_time
=
1
;
// Only retrieve shelves before this time.
...
...
@@ -21,76 +21,11 @@ message ListShelvesRequest {
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
;
message
GetBlockByNumberRequest
{
// request block number
bytes
block_id
=
1
;
}
// 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
DeleteShelfResponse
{
// The deleted shelf.
Shelf
shelf
=
1
;
message
BlockResponse
{
bytes
block_info
=
1
;
}
meta/nebula/v1/transaction_req_res.proto
0 → 100644
View file @
acc21840
syntax
=
"proto3"
;
package
meta
.
nebula.v1
;
option
go_package
=
"nebulav1"
;
import
"google/protobuf/field_mask.proto"
;
import
"google/protobuf/timestamp.proto"
;
import
"meta/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
;
}
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