Commit 74e5295e authored by Ubuntu's avatar Ubuntu
parents 5573a942 de8453cd
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
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;
}
......@@ -8,7 +8,7 @@ import "google/protobuf/timestamp.proto";
import "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;
}
syntax = "proto3";
package nebula.v1;
//option go_package = "nebulav1";
package meta.nebula.v1;
option go_package = "nebulav1";
import "nebula/v1/request_response.proto";
import "meta/nebula/v1/request_response.proto";
service NebulaService {
// block info service
rpc
// transaction info service
// account info service
// network info service
// node info service
// consensus info service
//
}
// ShelfService defines methods for managing shelves.
service ShelfService {
......
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;
}
syntax = "proto3";
package sentry.v1;
//option go_package = "sentryv1";
package meta.sentry.v1;
option go_package = "sentryv1";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "sentry/v1/resource.proto";
import "meta/sentry/v1/resource.proto";
// The standard List request definition.
message ListShelvesRequest {
......@@ -82,24 +82,3 @@ 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;
}
\ 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