Commit bbc1f393 authored by vicotor's avatar vicotor

remove unused code

parent 4641f0b4
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 Account {
message CreateShelfRequest { Address address = 1;
// The shelf to create. bytes nonce = 2;
Shelf shelf = 1; bytes balance = 3;
// The unique id of the parent example where the shelf is to be created. Hash state_root = 4;
string example_id = 2; }
} \ No newline at end of file
// 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;
}
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 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;
} }
message Address {
bytes address = 1;
}
\ No newline at end of file
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) {}
} }
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;
......
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;
......
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";
......
...@@ -30,12 +30,12 @@ type SentryServer struct { ...@@ -30,12 +30,12 @@ type SentryServer struct {
} }
type TxCheckServer struct { type TxCheckServer struct {
txchecker.UnimplementedShelfServiceServer txchecker.UnimplementedTxCheckerServiceServer
} }
// hello server // hello server
type BaseType struct { type BaseType struct {
metabase.UnimplementedShelfServiceServer metabase.UnimplementedBaseServiceServer
} }
type RingServer struct { type RingServer struct {
......
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";
......
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;
// }
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;
}
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";
......
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";
......
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 {
......
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 {
......
...@@ -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) {}
......
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;
......
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
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";
......
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";
......
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;
// }
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 ShelfService { service TxCheckerService {
rpc BatchCheckTx(BatchCheckTxRequest) returns (BatchCheckTxResponse) {} rpc BatchCheckTx(BatchCheckTxRequest) returns (BatchCheckTxResponse) {}
......
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