Commit 0e1b3898 authored by Ubuntu's avatar Ubuntu

update proto

parent 6322ca8e
...@@ -7,4 +7,4 @@ directories: ...@@ -7,4 +7,4 @@ directories:
- p2papi - p2papi
- ringapi - ringapi
- sentryapi - sentryapi
- txcheckerapi #- txcheckerapi
\ No newline at end of file \ No newline at end of file
节点用到的主要是 recover from , 验签失败,from返回的空地址 00000000
\ No newline at end of file
syntax = "proto3";
package ethrpc.v1;
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "ethrpc/v1/resource.proto";
message NodeVersionRequest { }
message NodeVersionResponse {
bytes version = 1;
}
message Sha3Request {
// data need to caculate sha3.
bytes data = 1;
}
message Sha3Response {
//
bytes hash = 1;
}
message NetVersionRequest { }
message NetVersionResponse {
bytes version = 1;
}
message NetPeerCountRequest { }
message NetPeerCountResponse {
uint32 peer_count = 1;
}
message ProtocolVersionRequest { }
message ProtocolVersionResponse {
bytes version = 1;
}
message SyncingRequest { }
message SyncingResponse {
bytes start = 1;
bytes end = 2;
bytes current = 3;
}
message CoinbaseRequest { }
message CoinbaseResponse {
bytes address = 1;
}
message MiningRequest { }
message MiningResponse {
string status = 1;
}
message HashRateRequest { }
message HashRateResponse {
string result = 1;
}
message GasPriceRequest { }
message GasPriceResponse {
// gas price in wei.
bytes gas_price = 1;
}
message AccountsRequest { }
message AccountsResponse {
repeated bytes address = 1;
}
message HeightRequest { }
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 NonceRequest {
// 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 RepeatedNonceRequest {
// request address
repeated bytes address = 1;
// request block number
repeated bytes block_id = 2;
}
message RepeatedNonceResponse {
// the address
repeated bytes address = 1;
// block height
repeated bytes block_id = 2;
// nonce
repeated bytes nonce = 3;
}
message TransactionCountRequest {
// 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;
}
message CallRequest {
bytes signed_tx = 1;
}
message CallResponse {
bytes result = 1;
}
message EstimateGasRequest {
bytes signed_tx = 1;
}
message EstimateGasResponse {
bytes result = 1;
uint32 gas = 2;
}
message BlockByHashRequest {
bytes block_hash = 1;
}
message BlockByHashResponse {
bytes block = 1;
}
message BlockByNumberRequest {
bytes block_id = 1;
}
message BlockByNumberResponse {
bytes block = 1;
}
message TransactionByHashRequest {
bytes tx_hash = 1;
}
message TransactionByHashResponse {
bytes tx_data = 1;
}
message TransactionByBlockHashAndIndexRequest {
bytes block_hash = 1;
uint32 index = 2;
}
message TransactionByBlockHashAndIndexResponse {
bytes tx_data = 1;
}
message TransactionByBlockNumberAndIndexRequest {
bytes block_id = 1;
uint32 index = 2;
}
message TransactionByBlockNumberAndIndexResponse {
bytes tx_data = 1;
}
message TransactionReceiptRequest {
bytes tx_hash = 1;
}
message TransactionReceiptResponse {
bytes tx_receipt = 1;
}
message UncleByBlockHashAndIndexRequest {
bytes block_hash = 1;
uint32 index = 2;
}
message UncleByBlockHashAndIndexResponse {
bytes uncle_block = 1;
}
message UncleByBlockNumberAndIndexRequest {
bytes block_id = 1;
uint32 index = 2;
}
message UncleByBlockNumberAndIndexResponse {
bytes uncle_block = 1;
}
message CompilersRequest {
}
message CompilersResponse {
bytes compilers = 1;
}
message CompileSolidityRequest {
bytes source = 1;
}
message CompileSolidityResponse {
bytes code = 1;
}
message CompileLLLRequest {
bytes source = 1;
}
message CompileLLLResponse {
bytes code = 1;
}
message CompileSerpentRequest {
bytes source = 1;
}
message CompileSerpentResponse {
bytes code = 1;
}
message NewFilterRequest {
bytes param = 1;
}
message NewFilterResponse {
bytes filter_id = 1;
}
message NewBlockFilterRequest { }
message NewBlockFilterResponse {
bytes filter_id = 1;
}
message PendingTransactionFilterRequest { }
message PendingTransactionFilterResponse {
bytes filter_id = 1;
}
message UninstallFilterRequest {
bytes filter_id = 1;
}
message UninstallFilterResponse {
bool result = 1;
}
message FilterChangesRequest {
bytes filter_id = 1;
}
message FilterChangesResponse {
bytes info = 1;
}
message FilterLogsRequest {
bytes filter_id = 1;
}
message FilterLogsResponse {
bytes logs = 1;
}
message LogsRequest {
bytes param = 1;
}
message LogsResponse {
bytes logs = 1;
}
\ No newline at end of file
syntax = "proto3";
package ethrpc.v1;
//option go_package = "protoeth";
import "google/protobuf/empty.proto";
// GetAccounts only for ganache
message GetAccountsReq {}
message TestnetReq {
uint32 id = 1;
}
message HashStringOrNumber {
string reqString = 1;
uint64 reqNum = 2;
}
message InfoWithIndex {
HashStringOrNumber req = 1;
uint64 index = 2;
}
message CountResp {
uint64 count = 1;
}
message ObjResp {
string respObj = 1;
}
message GetAccountsResp {
repeated string accounts = 1;
}
// 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 CreateRawTransactionReq {
string to = 1;
string data = 2;
uint32 gas = 3;
uint32 value = 4;
}
message CreateRawTransactionResp {
string rawTX = 1;
}
message DeploySignedTransactionReq{
string signedTX = 1;
}
message DeploySignedTransactionResp {
string txReciept = 1;
}
// GetTransaction -> Eth.getTransaction -> eth_getTransactionByHAsh
message TxHash {
string txhash = 1;
}
message TransactionInfo {
string transaction = 1;
}
message TxReceipt {
string txReceipt = 1;
}
message RawTxRequest {
uint32 networkid = 1;
string tx = 2;
}
message BlockNumber {
uint64 blocknum = 1;
}
message TxResponse {
string txData = 1;
}
message NumResult {
uint64 resultNum = 1;
}
message GetTxReq {
uint32 networkid = 1;
string txhash = 2;
}
message CallRequest {
uint32 networkid = 1;
string fn = 2;
string params = 3;
string abi = 4;
string address = 5;
string fromAddress = 6; // python will not allow .from so it has to be fromAddress
uint64 value = 7;
uint64 gasSupply = 8;
}
message CallResponse {
string result = 1;
}
service ProtoEthService {
rpc GetBalance(GetBalanceReq) returns (GetBalanceResp) {};
rpc GetNonce(GetNonceReq) returns (GetNonceResp) {};
rpc GetTransaction(GetTxReq) returns (TransactionInfo) {};
rpc GetTransactionReceipt(TxHash) returns (TxReceipt) {};
rpc ContractCall(CallRequest) returns (CallResponse) {};
rpc GetHashrate(google.protobuf.Empty) returns (NumResult) {};
rpc GetGasPrice(google.protobuf.Empty) returns (NumResult) {};
rpc GetBlockNumber(google.protobuf.Empty) returns (BlockNumber) {};
rpc GetBlockTransactionCount(HashStringOrNumber) returns (CountResp) {};
rpc GetBlock(HashStringOrNumber) returns (ObjResp) {};
rpc GetTransactionFromBlock(InfoWithIndex) returns (ObjResp) {};
// eth_sendRawTransaction should have simple requests but stream of responses
rpc SendRawTransactions(RawTxRequest) returns (TxResponse) {};
}
// ##############################
// ## 1. create protocol buffer for sendTransaction
// ## this protobuf should return a stream. Once the transaction is successful, stream will return confirmations
// ## 2. split functions in multiple subs exmp - eth, personal, debug
// ##############################
syntax = "proto3";
package ethrpc.v1;
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "ethrpc/v1/resource.proto";
syntax = "proto3";
package ethrpc.v1;
import "base/v1/resource.proto";
message Tx {
base.v1.Address address = 1;
base.v1.Hash hash = 2;
}
\ No newline at end of file
syntax = "proto3";
package ethrpc.v1;
import "google/protobuf/empty.proto";
import "ethrpc/v1/request_response.proto";
import "ethrpc/v1/account_req_res.proto";
service NebulaService {
// web3
rpc Sha3(Sha3Request) returns (Sha3Response) {};
rpc NodeVersion(google.protobuf.Empty) returns (NodeVersionResponse) {};
// network info service
rpc NetVersion(google.protobuf.Empty) returns (NetVersionResponse) {};
rpc NetPeerCount(google.protobuf.Empty) returns (NetPeerCountResponse) {};
// node status
rpc ProtocolVersion(google.protobuf.Empty) returns (ProtocolVersionResponse) {};
rpc Syncing(google.protobuf.Empty) returns (SyncingResponse) {};
rpc Coinbase(google.protobuf.Empty) returns (CoinbaseResponse) {};
rpc Mining(google.protobuf.Empty) returns (MiningResponse) {};
rpc HashRate(google.protobuf.Empty) returns (HashRateResponse) {};
rpc Accounts(google.protobuf.Empty) returns (AccountsResponse) {};
// tx operatoration
rpc GasPrice(google.protobuf.Empty) returns (GasPriceResponse) {};
// block info service
rpc BlockNumber(google.protobuf.Empty) returns (HeightResponse) {};
rpc BlockByHash(BlockByHashRequest) returns (BlockByHashResponse) {};
rpc BlockByNumber(BlockByNumberRequest) returns (BlockByNumberResponse) {};
rpc BlockTransactionCountByHash(BlockTransactionCountByHashRequest) returns (BlockTransactionCountByHashResponse) {};
rpc BlockTransactionCountByNumber(BlockTransactionCountByNumberRequest) returns (BlockTransactionCountByNumberResponse) {};
rpc UncleCountByHash(UncleCountByHashRequest) returns (UncleCountByHashResponse) {};
rpc UncleCountByNumber(UncleCountByNumberRequest) returns (UncleCountByNumberResponse) {};
rpc UncleByBlockHashAndIndex(UncleByBlockHashAndIndexRequest) returns (UncleByBlockHashAndIndexResponse) {};
rpc UncleByBlockNumberAndIndex(UncleByBlockNumberAndIndexRequest) returns (UncleByBlockNumberAndIndexResponse) {};
// compiler
rpc Compilers(CompilersRequest) returns (CompilersResponse) {};
rpc CompileSolidity(CompileSolidityRequest) returns (CompileSolidityResponse) {};
rpc CompileLLL(CompileLLLRequest) returns (CompileLLLResponse) {};
rpc CompileSerpent(CompileSerpentRequest) returns (CompileSerpentResponse) {};
// transaction info service
rpc EstimateGas(EstimateGasRequest) returns (EstimateGasResponse) {};
rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashResponse) {};
rpc TransactionByBlockHashAndIndex(TransactionByBlockHashAndIndexRequest) returns (TransactionByBlockHashAndIndexResponse) {};
rpc TransactionByBlockNumberAndIndex(TransactionByBlockNumberAndIndexRequest) returns (TransactionByBlockNumberAndIndexResponse) {};
rpc TransactionReceipt(TransactionReceiptRequest) returns (TransactionReceiptResponse) {};
// account info service
rpc Balance(BalanceRequest) returns (BalanceResponse) {};
rpc Storage(StorageRequest) returns (StorageResponse) {};
rpc Nonce(NonceRequest) returns (NonceResponse) {};
rpc RepeatedNonce(RepeatedNonceRequest) returns (RepeatedNonceResponse) {};
rpc TransactionCount(TransactionCountRequest) returns (TransactionCountResponse) {};
rpc GetCode(GetCodeRequest) returns (GetCodeResponse) {};
rpc Sign(SignRequest) returns (SignResponse) {};
rpc SignTransaction(SignTransactionRequest) returns (SignTransactionResponse) {};
rpc SendTransaction(SendTransactionRequest) returns (SendTransactionResponse) {};
rpc SendRawTransaction(SendRawTransactionRequest) returns (SendRawTransactionResponse) {};
rpc Call(CallRequest) returns (CallResponse) {};
// filter
rpc NewFilter(NewFilterRequest) returns (NewFilterResponse) {};
rpc NewBlockFilter(google.protobuf.Empty) returns (NewBlockFilterResponse) {};
rpc PendingTransactionFilter(google.protobuf.Empty) returns (PendingTransactionFilterResponse) {};
rpc UninstallFilter(UninstallFilterRequest) returns (UninstallFilterResponse) {};
rpc FilterChanges(FilterChangesRequest) returns (FilterChangesResponse) {};
rpc FilterLogs(FilterLogsRequest) returns (FilterLogsResponse) {};
rpc Logs(LogsRequest) returns (LogsResponse) {};
// consensus info service
}
\ No newline at end of file
### 对外的接口
1. 对外封装 grpc接口;
2. 转json rpc 到对应的各个模块的 grpc接口(引用对应模块的grpc)。
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: ethrpc/v1/eth.proto
package ethrpcv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GetAccounts only for ganache
type GetAccountsReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetAccountsReq) Reset() {
*x = GetAccountsReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAccountsReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAccountsReq) ProtoMessage() {}
func (x *GetAccountsReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAccountsReq.ProtoReflect.Descriptor instead.
func (*GetAccountsReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{0}
}
type TestnetReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *TestnetReq) Reset() {
*x = TestnetReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestnetReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestnetReq) ProtoMessage() {}
func (x *TestnetReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestnetReq.ProtoReflect.Descriptor instead.
func (*TestnetReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{1}
}
func (x *TestnetReq) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
type HashStringOrNumber struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ReqString string `protobuf:"bytes,1,opt,name=reqString,proto3" json:"reqString,omitempty"`
ReqNum uint64 `protobuf:"varint,2,opt,name=reqNum,proto3" json:"reqNum,omitempty"`
}
func (x *HashStringOrNumber) Reset() {
*x = HashStringOrNumber{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HashStringOrNumber) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HashStringOrNumber) ProtoMessage() {}
func (x *HashStringOrNumber) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HashStringOrNumber.ProtoReflect.Descriptor instead.
func (*HashStringOrNumber) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{2}
}
func (x *HashStringOrNumber) GetReqString() string {
if x != nil {
return x.ReqString
}
return ""
}
func (x *HashStringOrNumber) GetReqNum() uint64 {
if x != nil {
return x.ReqNum
}
return 0
}
type InfoWithIndex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Req *HashStringOrNumber `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"`
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
}
func (x *InfoWithIndex) Reset() {
*x = InfoWithIndex{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InfoWithIndex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InfoWithIndex) ProtoMessage() {}
func (x *InfoWithIndex) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InfoWithIndex.ProtoReflect.Descriptor instead.
func (*InfoWithIndex) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{3}
}
func (x *InfoWithIndex) GetReq() *HashStringOrNumber {
if x != nil {
return x.Req
}
return nil
}
func (x *InfoWithIndex) GetIndex() uint64 {
if x != nil {
return x.Index
}
return 0
}
type CountResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (x *CountResp) Reset() {
*x = CountResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountResp) ProtoMessage() {}
func (x *CountResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountResp.ProtoReflect.Descriptor instead.
func (*CountResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{4}
}
func (x *CountResp) GetCount() uint64 {
if x != nil {
return x.Count
}
return 0
}
type ObjResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RespObj string `protobuf:"bytes,1,opt,name=respObj,proto3" json:"respObj,omitempty"`
}
func (x *ObjResp) Reset() {
*x = ObjResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ObjResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ObjResp) ProtoMessage() {}
func (x *ObjResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ObjResp.ProtoReflect.Descriptor instead.
func (*ObjResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{5}
}
func (x *ObjResp) GetRespObj() string {
if x != nil {
return x.RespObj
}
return ""
}
type GetAccountsResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}
func (x *GetAccountsResp) Reset() {
*x = GetAccountsResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAccountsResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAccountsResp) ProtoMessage() {}
func (x *GetAccountsResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAccountsResp.ProtoReflect.Descriptor instead.
func (*GetAccountsResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{6}
}
func (x *GetAccountsResp) GetAccounts() []string {
if x != nil {
return x.Accounts
}
return nil
}
// GetBalance -> eth.getBalance -> eth_getBalance
type GetBalanceReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
}
func (x *GetBalanceReq) Reset() {
*x = GetBalanceReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetBalanceReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBalanceReq) ProtoMessage() {}
func (x *GetBalanceReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetBalanceReq.ProtoReflect.Descriptor instead.
func (*GetBalanceReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{7}
}
func (x *GetBalanceReq) GetAddress() []string {
if x != nil {
return x.Address
}
return nil
}
type GetBalanceResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Balance []string `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"`
}
func (x *GetBalanceResp) Reset() {
*x = GetBalanceResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetBalanceResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBalanceResp) ProtoMessage() {}
func (x *GetBalanceResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetBalanceResp.ProtoReflect.Descriptor instead.
func (*GetBalanceResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{8}
}
func (x *GetBalanceResp) GetBalance() []string {
if x != nil {
return x.Balance
}
return nil
}
// GetNonce -> eth.GetNonce -> GetNonce
type GetNonceReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
}
func (x *GetNonceReq) Reset() {
*x = GetNonceReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetNonceReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetNonceReq) ProtoMessage() {}
func (x *GetNonceReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetNonceReq.ProtoReflect.Descriptor instead.
func (*GetNonceReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{9}
}
func (x *GetNonceReq) GetAddress() []string {
if x != nil {
return x.Address
}
return nil
}
type GetNonceResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Balance []string `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"`
}
func (x *GetNonceResp) Reset() {
*x = GetNonceResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetNonceResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetNonceResp) ProtoMessage() {}
func (x *GetNonceResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetNonceResp.ProtoReflect.Descriptor instead.
func (*GetNonceResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{10}
}
func (x *GetNonceResp) GetBalance() []string {
if x != nil {
return x.Balance
}
return nil
}
type CreateRawTransactionReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Gas uint32 `protobuf:"varint,3,opt,name=gas,proto3" json:"gas,omitempty"`
Value uint32 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *CreateRawTransactionReq) Reset() {
*x = CreateRawTransactionReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRawTransactionReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRawTransactionReq) ProtoMessage() {}
func (x *CreateRawTransactionReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRawTransactionReq.ProtoReflect.Descriptor instead.
func (*CreateRawTransactionReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{11}
}
func (x *CreateRawTransactionReq) GetTo() string {
if x != nil {
return x.To
}
return ""
}
func (x *CreateRawTransactionReq) GetData() string {
if x != nil {
return x.Data
}
return ""
}
func (x *CreateRawTransactionReq) GetGas() uint32 {
if x != nil {
return x.Gas
}
return 0
}
func (x *CreateRawTransactionReq) GetValue() uint32 {
if x != nil {
return x.Value
}
return 0
}
type CreateRawTransactionResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RawTX string `protobuf:"bytes,1,opt,name=rawTX,proto3" json:"rawTX,omitempty"`
}
func (x *CreateRawTransactionResp) Reset() {
*x = CreateRawTransactionResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRawTransactionResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRawTransactionResp) ProtoMessage() {}
func (x *CreateRawTransactionResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRawTransactionResp.ProtoReflect.Descriptor instead.
func (*CreateRawTransactionResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{12}
}
func (x *CreateRawTransactionResp) GetRawTX() string {
if x != nil {
return x.RawTX
}
return ""
}
type DeploySignedTransactionReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SignedTX string `protobuf:"bytes,1,opt,name=signedTX,proto3" json:"signedTX,omitempty"`
}
func (x *DeploySignedTransactionReq) Reset() {
*x = DeploySignedTransactionReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeploySignedTransactionReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeploySignedTransactionReq) ProtoMessage() {}
func (x *DeploySignedTransactionReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeploySignedTransactionReq.ProtoReflect.Descriptor instead.
func (*DeploySignedTransactionReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{13}
}
func (x *DeploySignedTransactionReq) GetSignedTX() string {
if x != nil {
return x.SignedTX
}
return ""
}
type DeploySignedTransactionResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxReciept string `protobuf:"bytes,1,opt,name=txReciept,proto3" json:"txReciept,omitempty"`
}
func (x *DeploySignedTransactionResp) Reset() {
*x = DeploySignedTransactionResp{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeploySignedTransactionResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeploySignedTransactionResp) ProtoMessage() {}
func (x *DeploySignedTransactionResp) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeploySignedTransactionResp.ProtoReflect.Descriptor instead.
func (*DeploySignedTransactionResp) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{14}
}
func (x *DeploySignedTransactionResp) GetTxReciept() string {
if x != nil {
return x.TxReciept
}
return ""
}
// GetTransaction -> Eth.getTransaction -> eth_getTransactionByHAsh
type TxHash struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Txhash string `protobuf:"bytes,1,opt,name=txhash,proto3" json:"txhash,omitempty"`
}
func (x *TxHash) Reset() {
*x = TxHash{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TxHash) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxHash) ProtoMessage() {}
func (x *TxHash) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TxHash.ProtoReflect.Descriptor instead.
func (*TxHash) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{15}
}
func (x *TxHash) GetTxhash() string {
if x != nil {
return x.Txhash
}
return ""
}
type TransactionInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Transaction string `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
}
func (x *TransactionInfo) Reset() {
*x = TransactionInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransactionInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransactionInfo) ProtoMessage() {}
func (x *TransactionInfo) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.
func (*TransactionInfo) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{16}
}
func (x *TransactionInfo) GetTransaction() string {
if x != nil {
return x.Transaction
}
return ""
}
type TxReceipt struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxReceipt string `protobuf:"bytes,1,opt,name=txReceipt,proto3" json:"txReceipt,omitempty"`
}
func (x *TxReceipt) Reset() {
*x = TxReceipt{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TxReceipt) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxReceipt) ProtoMessage() {}
func (x *TxReceipt) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TxReceipt.ProtoReflect.Descriptor instead.
func (*TxReceipt) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{17}
}
func (x *TxReceipt) GetTxReceipt() string {
if x != nil {
return x.TxReceipt
}
return ""
}
type RawTxRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Networkid uint32 `protobuf:"varint,1,opt,name=networkid,proto3" json:"networkid,omitempty"`
Tx string `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
}
func (x *RawTxRequest) Reset() {
*x = RawTxRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RawTxRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RawTxRequest) ProtoMessage() {}
func (x *RawTxRequest) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RawTxRequest.ProtoReflect.Descriptor instead.
func (*RawTxRequest) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{18}
}
func (x *RawTxRequest) GetNetworkid() uint32 {
if x != nil {
return x.Networkid
}
return 0
}
func (x *RawTxRequest) GetTx() string {
if x != nil {
return x.Tx
}
return ""
}
type BlockNumber struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Blocknum uint64 `protobuf:"varint,1,opt,name=blocknum,proto3" json:"blocknum,omitempty"`
}
func (x *BlockNumber) Reset() {
*x = BlockNumber{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BlockNumber) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockNumber) ProtoMessage() {}
func (x *BlockNumber) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BlockNumber.ProtoReflect.Descriptor instead.
func (*BlockNumber) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{19}
}
func (x *BlockNumber) GetBlocknum() uint64 {
if x != nil {
return x.Blocknum
}
return 0
}
type TxResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxData string `protobuf:"bytes,1,opt,name=txData,proto3" json:"txData,omitempty"`
}
func (x *TxResponse) Reset() {
*x = TxResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TxResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxResponse) ProtoMessage() {}
func (x *TxResponse) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TxResponse.ProtoReflect.Descriptor instead.
func (*TxResponse) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{20}
}
func (x *TxResponse) GetTxData() string {
if x != nil {
return x.TxData
}
return ""
}
type NumResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ResultNum uint64 `protobuf:"varint,1,opt,name=resultNum,proto3" json:"resultNum,omitempty"`
}
func (x *NumResult) Reset() {
*x = NumResult{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NumResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NumResult) ProtoMessage() {}
func (x *NumResult) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NumResult.ProtoReflect.Descriptor instead.
func (*NumResult) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{21}
}
func (x *NumResult) GetResultNum() uint64 {
if x != nil {
return x.ResultNum
}
return 0
}
type GetTxReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Networkid uint32 `protobuf:"varint,1,opt,name=networkid,proto3" json:"networkid,omitempty"`
Txhash string `protobuf:"bytes,2,opt,name=txhash,proto3" json:"txhash,omitempty"`
}
func (x *GetTxReq) Reset() {
*x = GetTxReq{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetTxReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetTxReq) ProtoMessage() {}
func (x *GetTxReq) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetTxReq.ProtoReflect.Descriptor instead.
func (*GetTxReq) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{22}
}
func (x *GetTxReq) GetNetworkid() uint32 {
if x != nil {
return x.Networkid
}
return 0
}
func (x *GetTxReq) GetTxhash() string {
if x != nil {
return x.Txhash
}
return ""
}
type CallRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Networkid uint32 `protobuf:"varint,1,opt,name=networkid,proto3" json:"networkid,omitempty"`
Fn string `protobuf:"bytes,2,opt,name=fn,proto3" json:"fn,omitempty"`
Params string `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
Abi string `protobuf:"bytes,4,opt,name=abi,proto3" json:"abi,omitempty"`
Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
FromAddress string `protobuf:"bytes,6,opt,name=fromAddress,proto3" json:"fromAddress,omitempty"` // python will not allow .from so it has to be fromAddress
Value uint64 `protobuf:"varint,7,opt,name=value,proto3" json:"value,omitempty"`
GasSupply uint64 `protobuf:"varint,8,opt,name=gasSupply,proto3" json:"gasSupply,omitempty"`
}
func (x *CallRequest) Reset() {
*x = CallRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CallRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CallRequest) ProtoMessage() {}
func (x *CallRequest) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[23]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.
func (*CallRequest) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{23}
}
func (x *CallRequest) GetNetworkid() uint32 {
if x != nil {
return x.Networkid
}
return 0
}
func (x *CallRequest) GetFn() string {
if x != nil {
return x.Fn
}
return ""
}
func (x *CallRequest) GetParams() string {
if x != nil {
return x.Params
}
return ""
}
func (x *CallRequest) GetAbi() string {
if x != nil {
return x.Abi
}
return ""
}
func (x *CallRequest) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *CallRequest) GetFromAddress() string {
if x != nil {
return x.FromAddress
}
return ""
}
func (x *CallRequest) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
func (x *CallRequest) GetGasSupply() uint64 {
if x != nil {
return x.GasSupply
}
return 0
}
type CallResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (x *CallResponse) Reset() {
*x = CallResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_eth_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CallResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CallResponse) ProtoMessage() {}
func (x *CallResponse) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_eth_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.
func (*CallResponse) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_eth_proto_rawDescGZIP(), []int{24}
}
func (x *CallResponse) GetResult() string {
if x != nil {
return x.Result
}
return ""
}
var File_ethrpc_v1_eth_proto protoreflect.FileDescriptor
var file_ethrpc_v1_eth_proto_rawDesc = []byte{
0x0a, 0x13, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x74, 0x68, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x10, 0x0a,
0x0e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x22,
0x1c, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4a, 0x0a,
0x12, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x72, 0x4e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28,
0x04, 0x52, 0x06, 0x72, 0x65, 0x71, 0x4e, 0x75, 0x6d, 0x22, 0x56, 0x0a, 0x0d, 0x49, 0x6e, 0x66,
0x6f, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2f, 0x0a, 0x03, 0x72, 0x65,
0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x72,
0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x69,
0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65,
0x78, 0x22, 0x21, 0x0a, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14,
0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x22, 0x23, 0x0a, 0x07, 0x4f, 0x62, 0x6a, 0x52, 0x65, 0x73, 0x70, 0x12,
0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x70, 0x4f, 0x62, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x72, 0x65, 0x73, 0x70, 0x4f, 0x62, 0x6a, 0x22, 0x2d, 0x0a, 0x0f, 0x47, 0x65, 0x74,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x29, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x42,
0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x22, 0x2a, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22,
0x27, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18,
0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x28, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4e,
0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61,
0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e,
0x63, 0x65, 0x22, 0x65, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x77, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a,
0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x12, 0x0a,
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74,
0x61, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03,
0x67, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x30, 0x0a, 0x18, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x77, 0x54, 0x58, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x61, 0x77, 0x54, 0x58, 0x22, 0x38, 0x0a, 0x1a, 0x44,
0x65, 0x70, 0x6c, 0x6f, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69, 0x67,
0x6e, 0x65, 0x64, 0x54, 0x58, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x69, 0x67,
0x6e, 0x65, 0x64, 0x54, 0x58, 0x22, 0x3b, 0x0a, 0x1b, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x53,
0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x78, 0x52, 0x65, 0x63, 0x69, 0x65, 0x70,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x78, 0x52, 0x65, 0x63, 0x69, 0x65,
0x70, 0x74, 0x22, 0x20, 0x0a, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06,
0x74, 0x78, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78,
0x68, 0x61, 0x73, 0x68, 0x22, 0x33, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72,
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x29, 0x0a, 0x09, 0x54, 0x78, 0x52,
0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x78, 0x52, 0x65, 0x63, 0x65,
0x69, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x78, 0x52, 0x65, 0x63,
0x65, 0x69, 0x70, 0x74, 0x22, 0x3c, 0x0a, 0x0c, 0x52, 0x61, 0x77, 0x54, 0x78, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x74, 0x78, 0x22, 0x29, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65,
0x72, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20,
0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6e, 0x75, 0x6d, 0x22, 0x24, 0x0a,
0x0a, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74,
0x78, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x44,
0x61, 0x74, 0x61, 0x22, 0x29, 0x0a, 0x09, 0x4e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20,
0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x4e, 0x75, 0x6d, 0x22, 0x40,
0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e,
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x78, 0x68, 0x61,
0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x68, 0x61, 0x73, 0x68,
0x22, 0xd5, 0x01, 0x0a, 0x0b, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x64, 0x12, 0x0e,
0x0a, 0x02, 0x66, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x66, 0x6e, 0x12, 0x16,
0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x62, 0x69, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x62, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20,
0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x61,
0x73, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x67,
0x61, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x22, 0x26, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x32, 0xcb, 0x06, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x74, 0x68, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e,
0x63, 0x65, 0x12, 0x18, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47,
0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61,
0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x08, 0x47, 0x65, 0x74,
0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e,
0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x6e,
0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x2e, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x1a,
0x1a, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x00, 0x12, 0x42, 0x0a,
0x15, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x11, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x1a, 0x14, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22,
0x00, 0x12, 0x41, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x61, 0x6c,
0x6c, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61,
0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x48, 0x61, 0x73, 0x68, 0x72,
0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x65, 0x74,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c,
0x74, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69,
0x63, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x22, 0x00, 0x12, 0x42, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f,
0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x12, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48,
0x61, 0x73, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65,
0x72, 0x1a, 0x14, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x08, 0x47, 0x65, 0x74,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x72, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x1a, 0x12, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x2e, 0x4f, 0x62, 0x6a, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x17, 0x47, 0x65,
0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x6f, 0x6d,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a,
0x12, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x52,
0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x54, 0x78, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb1,
0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x42, 0x08, 0x45, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75,
0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63,
0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2,
0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x56,
0x31, 0xca, 0x02, 0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15,
0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x3a, 0x3a,
0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_ethrpc_v1_eth_proto_rawDescOnce sync.Once
file_ethrpc_v1_eth_proto_rawDescData = file_ethrpc_v1_eth_proto_rawDesc
)
func file_ethrpc_v1_eth_proto_rawDescGZIP() []byte {
file_ethrpc_v1_eth_proto_rawDescOnce.Do(func() {
file_ethrpc_v1_eth_proto_rawDescData = protoimpl.X.CompressGZIP(file_ethrpc_v1_eth_proto_rawDescData)
})
return file_ethrpc_v1_eth_proto_rawDescData
}
var file_ethrpc_v1_eth_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_ethrpc_v1_eth_proto_goTypes = []interface{}{
(*GetAccountsReq)(nil), // 0: ethrpc.v1.GetAccountsReq
(*TestnetReq)(nil), // 1: ethrpc.v1.TestnetReq
(*HashStringOrNumber)(nil), // 2: ethrpc.v1.HashStringOrNumber
(*InfoWithIndex)(nil), // 3: ethrpc.v1.InfoWithIndex
(*CountResp)(nil), // 4: ethrpc.v1.CountResp
(*ObjResp)(nil), // 5: ethrpc.v1.ObjResp
(*GetAccountsResp)(nil), // 6: ethrpc.v1.GetAccountsResp
(*GetBalanceReq)(nil), // 7: ethrpc.v1.GetBalanceReq
(*GetBalanceResp)(nil), // 8: ethrpc.v1.GetBalanceResp
(*GetNonceReq)(nil), // 9: ethrpc.v1.GetNonceReq
(*GetNonceResp)(nil), // 10: ethrpc.v1.GetNonceResp
(*CreateRawTransactionReq)(nil), // 11: ethrpc.v1.CreateRawTransactionReq
(*CreateRawTransactionResp)(nil), // 12: ethrpc.v1.CreateRawTransactionResp
(*DeploySignedTransactionReq)(nil), // 13: ethrpc.v1.DeploySignedTransactionReq
(*DeploySignedTransactionResp)(nil), // 14: ethrpc.v1.DeploySignedTransactionResp
(*TxHash)(nil), // 15: ethrpc.v1.TxHash
(*TransactionInfo)(nil), // 16: ethrpc.v1.TransactionInfo
(*TxReceipt)(nil), // 17: ethrpc.v1.TxReceipt
(*RawTxRequest)(nil), // 18: ethrpc.v1.RawTxRequest
(*BlockNumber)(nil), // 19: ethrpc.v1.BlockNumber
(*TxResponse)(nil), // 20: ethrpc.v1.TxResponse
(*NumResult)(nil), // 21: ethrpc.v1.NumResult
(*GetTxReq)(nil), // 22: ethrpc.v1.GetTxReq
(*CallRequest)(nil), // 23: ethrpc.v1.CallRequest
(*CallResponse)(nil), // 24: ethrpc.v1.CallResponse
(*emptypb.Empty)(nil), // 25: google.protobuf.Empty
}
var file_ethrpc_v1_eth_proto_depIdxs = []int32{
2, // 0: ethrpc.v1.InfoWithIndex.req:type_name -> ethrpc.v1.HashStringOrNumber
7, // 1: ethrpc.v1.ProtoEthService.GetBalance:input_type -> ethrpc.v1.GetBalanceReq
9, // 2: ethrpc.v1.ProtoEthService.GetNonce:input_type -> ethrpc.v1.GetNonceReq
22, // 3: ethrpc.v1.ProtoEthService.GetTransaction:input_type -> ethrpc.v1.GetTxReq
15, // 4: ethrpc.v1.ProtoEthService.GetTransactionReceipt:input_type -> ethrpc.v1.TxHash
23, // 5: ethrpc.v1.ProtoEthService.ContractCall:input_type -> ethrpc.v1.CallRequest
25, // 6: ethrpc.v1.ProtoEthService.GetHashrate:input_type -> google.protobuf.Empty
25, // 7: ethrpc.v1.ProtoEthService.GetGasPrice:input_type -> google.protobuf.Empty
25, // 8: ethrpc.v1.ProtoEthService.GetBlockNumber:input_type -> google.protobuf.Empty
2, // 9: ethrpc.v1.ProtoEthService.GetBlockTransactionCount:input_type -> ethrpc.v1.HashStringOrNumber
2, // 10: ethrpc.v1.ProtoEthService.GetBlock:input_type -> ethrpc.v1.HashStringOrNumber
3, // 11: ethrpc.v1.ProtoEthService.GetTransactionFromBlock:input_type -> ethrpc.v1.InfoWithIndex
18, // 12: ethrpc.v1.ProtoEthService.SendRawTransactions:input_type -> ethrpc.v1.RawTxRequest
8, // 13: ethrpc.v1.ProtoEthService.GetBalance:output_type -> ethrpc.v1.GetBalanceResp
10, // 14: ethrpc.v1.ProtoEthService.GetNonce:output_type -> ethrpc.v1.GetNonceResp
16, // 15: ethrpc.v1.ProtoEthService.GetTransaction:output_type -> ethrpc.v1.TransactionInfo
17, // 16: ethrpc.v1.ProtoEthService.GetTransactionReceipt:output_type -> ethrpc.v1.TxReceipt
24, // 17: ethrpc.v1.ProtoEthService.ContractCall:output_type -> ethrpc.v1.CallResponse
21, // 18: ethrpc.v1.ProtoEthService.GetHashrate:output_type -> ethrpc.v1.NumResult
21, // 19: ethrpc.v1.ProtoEthService.GetGasPrice:output_type -> ethrpc.v1.NumResult
19, // 20: ethrpc.v1.ProtoEthService.GetBlockNumber:output_type -> ethrpc.v1.BlockNumber
4, // 21: ethrpc.v1.ProtoEthService.GetBlockTransactionCount:output_type -> ethrpc.v1.CountResp
5, // 22: ethrpc.v1.ProtoEthService.GetBlock:output_type -> ethrpc.v1.ObjResp
5, // 23: ethrpc.v1.ProtoEthService.GetTransactionFromBlock:output_type -> ethrpc.v1.ObjResp
20, // 24: ethrpc.v1.ProtoEthService.SendRawTransactions:output_type -> ethrpc.v1.TxResponse
13, // [13:25] is the sub-list for method output_type
1, // [1:13] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_ethrpc_v1_eth_proto_init() }
func file_ethrpc_v1_eth_proto_init() {
if File_ethrpc_v1_eth_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_ethrpc_v1_eth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAccountsReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestnetReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HashStringOrNumber); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InfoWithIndex); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ObjResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAccountsResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetBalanceReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetBalanceResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetNonceReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetNonceResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRawTransactionReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRawTransactionResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeploySignedTransactionReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeploySignedTransactionResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TxHash); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TransactionInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TxReceipt); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RawTxRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BlockNumber); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TxResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NumResult); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetTxReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CallRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ethrpc_v1_eth_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CallResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ethrpc_v1_eth_proto_rawDesc,
NumEnums: 0,
NumMessages: 25,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_ethrpc_v1_eth_proto_goTypes,
DependencyIndexes: file_ethrpc_v1_eth_proto_depIdxs,
MessageInfos: file_ethrpc_v1_eth_proto_msgTypes,
}.Build()
File_ethrpc_v1_eth_proto = out.File
file_ethrpc_v1_eth_proto_rawDesc = nil
file_ethrpc_v1_eth_proto_goTypes = nil
file_ethrpc_v1_eth_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: ethrpc/v1/eth.proto
package ethrpcv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// ProtoEthServiceClient is the client API for ProtoEthService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ProtoEthServiceClient interface {
GetBalance(ctx context.Context, in *GetBalanceReq, opts ...grpc.CallOption) (*GetBalanceResp, error)
GetNonce(ctx context.Context, in *GetNonceReq, opts ...grpc.CallOption) (*GetNonceResp, error)
GetTransaction(ctx context.Context, in *GetTxReq, opts ...grpc.CallOption) (*TransactionInfo, error)
GetTransactionReceipt(ctx context.Context, in *TxHash, opts ...grpc.CallOption) (*TxReceipt, error)
ContractCall(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
GetHashrate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NumResult, error)
GetGasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NumResult, error)
GetBlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BlockNumber, error)
GetBlockTransactionCount(ctx context.Context, in *HashStringOrNumber, opts ...grpc.CallOption) (*CountResp, error)
GetBlock(ctx context.Context, in *HashStringOrNumber, opts ...grpc.CallOption) (*ObjResp, error)
GetTransactionFromBlock(ctx context.Context, in *InfoWithIndex, opts ...grpc.CallOption) (*ObjResp, error)
// eth_sendRawTransaction should have simple requests but stream of responses
SendRawTransactions(ctx context.Context, in *RawTxRequest, opts ...grpc.CallOption) (*TxResponse, error)
}
type protoEthServiceClient struct {
cc grpc.ClientConnInterface
}
func NewProtoEthServiceClient(cc grpc.ClientConnInterface) ProtoEthServiceClient {
return &protoEthServiceClient{cc}
}
func (c *protoEthServiceClient) GetBalance(ctx context.Context, in *GetBalanceReq, opts ...grpc.CallOption) (*GetBalanceResp, error) {
out := new(GetBalanceResp)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetBalance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetNonce(ctx context.Context, in *GetNonceReq, opts ...grpc.CallOption) (*GetNonceResp, error) {
out := new(GetNonceResp)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetNonce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetTransaction(ctx context.Context, in *GetTxReq, opts ...grpc.CallOption) (*TransactionInfo, error) {
out := new(TransactionInfo)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetTransactionReceipt(ctx context.Context, in *TxHash, opts ...grpc.CallOption) (*TxReceipt, error) {
out := new(TxReceipt)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetTransactionReceipt", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) ContractCall(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) {
out := new(CallResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/ContractCall", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetHashrate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NumResult, error) {
out := new(NumResult)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetHashrate", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetGasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NumResult, error) {
out := new(NumResult)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetGasPrice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetBlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BlockNumber, error) {
out := new(BlockNumber)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetBlockNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetBlockTransactionCount(ctx context.Context, in *HashStringOrNumber, opts ...grpc.CallOption) (*CountResp, error) {
out := new(CountResp)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetBlockTransactionCount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetBlock(ctx context.Context, in *HashStringOrNumber, opts ...grpc.CallOption) (*ObjResp, error) {
out := new(ObjResp)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetBlock", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) GetTransactionFromBlock(ctx context.Context, in *InfoWithIndex, opts ...grpc.CallOption) (*ObjResp, error) {
out := new(ObjResp)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/GetTransactionFromBlock", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *protoEthServiceClient) SendRawTransactions(ctx context.Context, in *RawTxRequest, opts ...grpc.CallOption) (*TxResponse, error) {
out := new(TxResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.ProtoEthService/SendRawTransactions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProtoEthServiceServer is the server API for ProtoEthService service.
// All implementations must embed UnimplementedProtoEthServiceServer
// for forward compatibility
type ProtoEthServiceServer interface {
GetBalance(context.Context, *GetBalanceReq) (*GetBalanceResp, error)
GetNonce(context.Context, *GetNonceReq) (*GetNonceResp, error)
GetTransaction(context.Context, *GetTxReq) (*TransactionInfo, error)
GetTransactionReceipt(context.Context, *TxHash) (*TxReceipt, error)
ContractCall(context.Context, *CallRequest) (*CallResponse, error)
GetHashrate(context.Context, *emptypb.Empty) (*NumResult, error)
GetGasPrice(context.Context, *emptypb.Empty) (*NumResult, error)
GetBlockNumber(context.Context, *emptypb.Empty) (*BlockNumber, error)
GetBlockTransactionCount(context.Context, *HashStringOrNumber) (*CountResp, error)
GetBlock(context.Context, *HashStringOrNumber) (*ObjResp, error)
GetTransactionFromBlock(context.Context, *InfoWithIndex) (*ObjResp, error)
// eth_sendRawTransaction should have simple requests but stream of responses
SendRawTransactions(context.Context, *RawTxRequest) (*TxResponse, error)
mustEmbedUnimplementedProtoEthServiceServer()
}
// UnimplementedProtoEthServiceServer must be embedded to have forward compatible implementations.
type UnimplementedProtoEthServiceServer struct {
}
func (UnimplementedProtoEthServiceServer) GetBalance(context.Context, *GetBalanceReq) (*GetBalanceResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented")
}
func (UnimplementedProtoEthServiceServer) GetNonce(context.Context, *GetNonceReq) (*GetNonceResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetNonce not implemented")
}
func (UnimplementedProtoEthServiceServer) GetTransaction(context.Context, *GetTxReq) (*TransactionInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTransaction not implemented")
}
func (UnimplementedProtoEthServiceServer) GetTransactionReceipt(context.Context, *TxHash) (*TxReceipt, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTransactionReceipt not implemented")
}
func (UnimplementedProtoEthServiceServer) ContractCall(context.Context, *CallRequest) (*CallResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ContractCall not implemented")
}
func (UnimplementedProtoEthServiceServer) GetHashrate(context.Context, *emptypb.Empty) (*NumResult, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetHashrate not implemented")
}
func (UnimplementedProtoEthServiceServer) GetGasPrice(context.Context, *emptypb.Empty) (*NumResult, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGasPrice not implemented")
}
func (UnimplementedProtoEthServiceServer) GetBlockNumber(context.Context, *emptypb.Empty) (*BlockNumber, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBlockNumber not implemented")
}
func (UnimplementedProtoEthServiceServer) GetBlockTransactionCount(context.Context, *HashStringOrNumber) (*CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBlockTransactionCount not implemented")
}
func (UnimplementedProtoEthServiceServer) GetBlock(context.Context, *HashStringOrNumber) (*ObjResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBlock not implemented")
}
func (UnimplementedProtoEthServiceServer) GetTransactionFromBlock(context.Context, *InfoWithIndex) (*ObjResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTransactionFromBlock not implemented")
}
func (UnimplementedProtoEthServiceServer) SendRawTransactions(context.Context, *RawTxRequest) (*TxResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendRawTransactions not implemented")
}
func (UnimplementedProtoEthServiceServer) mustEmbedUnimplementedProtoEthServiceServer() {}
// UnsafeProtoEthServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ProtoEthServiceServer will
// result in compilation errors.
type UnsafeProtoEthServiceServer interface {
mustEmbedUnimplementedProtoEthServiceServer()
}
func RegisterProtoEthServiceServer(s grpc.ServiceRegistrar, srv ProtoEthServiceServer) {
s.RegisterService(&ProtoEthService_ServiceDesc, srv)
}
func _ProtoEthService_GetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBalanceReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetBalance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetBalance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetBalance(ctx, req.(*GetBalanceReq))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNonceReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetNonce(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetNonce",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetNonce(ctx, req.(*GetNonceReq))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTxReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetTransaction(ctx, req.(*GetTxReq))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetTransactionReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TxHash)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetTransactionReceipt(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetTransactionReceipt",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetTransactionReceipt(ctx, req.(*TxHash))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_ContractCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CallRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).ContractCall(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/ContractCall",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).ContractCall(ctx, req.(*CallRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetHashrate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetHashrate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetHashrate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetHashrate(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetGasPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetGasPrice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetGasPrice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetGasPrice(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetBlockNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetBlockNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetBlockNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetBlockNumber(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetBlockTransactionCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HashStringOrNumber)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetBlockTransactionCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetBlockTransactionCount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetBlockTransactionCount(ctx, req.(*HashStringOrNumber))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HashStringOrNumber)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetBlock",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetBlock(ctx, req.(*HashStringOrNumber))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_GetTransactionFromBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InfoWithIndex)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).GetTransactionFromBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/GetTransactionFromBlock",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).GetTransactionFromBlock(ctx, req.(*InfoWithIndex))
}
return interceptor(ctx, in, info, handler)
}
func _ProtoEthService_SendRawTransactions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RawTxRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProtoEthServiceServer).SendRawTransactions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.ProtoEthService/SendRawTransactions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProtoEthServiceServer).SendRawTransactions(ctx, req.(*RawTxRequest))
}
return interceptor(ctx, in, info, handler)
}
// ProtoEthService_ServiceDesc is the grpc.ServiceDesc for ProtoEthService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ProtoEthService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "ethrpc.v1.ProtoEthService",
HandlerType: (*ProtoEthServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetBalance",
Handler: _ProtoEthService_GetBalance_Handler,
},
{
MethodName: "GetNonce",
Handler: _ProtoEthService_GetNonce_Handler,
},
{
MethodName: "GetTransaction",
Handler: _ProtoEthService_GetTransaction_Handler,
},
{
MethodName: "GetTransactionReceipt",
Handler: _ProtoEthService_GetTransactionReceipt_Handler,
},
{
MethodName: "ContractCall",
Handler: _ProtoEthService_ContractCall_Handler,
},
{
MethodName: "GetHashrate",
Handler: _ProtoEthService_GetHashrate_Handler,
},
{
MethodName: "GetGasPrice",
Handler: _ProtoEthService_GetGasPrice_Handler,
},
{
MethodName: "GetBlockNumber",
Handler: _ProtoEthService_GetBlockNumber_Handler,
},
{
MethodName: "GetBlockTransactionCount",
Handler: _ProtoEthService_GetBlockTransactionCount_Handler,
},
{
MethodName: "GetBlock",
Handler: _ProtoEthService_GetBlock_Handler,
},
{
MethodName: "GetTransactionFromBlock",
Handler: _ProtoEthService_GetTransactionFromBlock_Handler,
},
{
MethodName: "SendRawTransactions",
Handler: _ProtoEthService_SendRawTransactions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "ethrpc/v1/eth.proto",
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: ethrpc/v1/request_response.proto
package ethrpcv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/fieldmaskpb"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_ethrpc_v1_request_response_proto protoreflect.FileDescriptor
var file_ethrpc_v1_request_response_proto_rawDesc = []byte{
0x0a, 0x20, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x09, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66,
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x18, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0xbd, 0x01, 0x0a, 0x0d, 0x63,
0x6f, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72,
0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x09,
0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x45, 0x74, 0x68, 0x72,
0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x5c, 0x56,
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a,
0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var file_ethrpc_v1_request_response_proto_goTypes = []interface{}{}
var file_ethrpc_v1_request_response_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_ethrpc_v1_request_response_proto_init() }
func file_ethrpc_v1_request_response_proto_init() {
if File_ethrpc_v1_request_response_proto != nil {
return
}
file_ethrpc_v1_resource_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ethrpc_v1_request_response_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_ethrpc_v1_request_response_proto_goTypes,
DependencyIndexes: file_ethrpc_v1_request_response_proto_depIdxs,
}.Build()
File_ethrpc_v1_request_response_proto = out.File
file_ethrpc_v1_request_response_proto_rawDesc = nil
file_ethrpc_v1_request_response_proto_goTypes = nil
file_ethrpc_v1_request_response_proto_depIdxs = nil
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: ethrpc/v1/resource.proto
package ethrpcv1
import (
v1 "github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Tx struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Address *v1.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Hash *v1.Hash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (x *Tx) Reset() {
*x = Tx{}
if protoimpl.UnsafeEnabled {
mi := &file_ethrpc_v1_resource_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Tx) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Tx) ProtoMessage() {}
func (x *Tx) ProtoReflect() protoreflect.Message {
mi := &file_ethrpc_v1_resource_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Tx.ProtoReflect.Descriptor instead.
func (*Tx) Descriptor() ([]byte, []int) {
return file_ethrpc_v1_resource_proto_rawDescGZIP(), []int{0}
}
func (x *Tx) GetAddress() *v1.Address {
if x != nil {
return x.Address
}
return nil
}
func (x *Tx) GetHash() *v1.Hash {
if x != nil {
return x.Hash
}
return nil
}
var File_ethrpc_v1_resource_proto protoreflect.FileDescriptor
var file_ethrpc_v1_resource_proto_rawDesc = []byte{
0x0a, 0x18, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x16, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a,
0x02, 0x54, 0x78, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
0x21, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61,
0x73, 0x68, 0x42, 0xb6, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70,
0x63, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65,
0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b,
0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02,
0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x45, 0x74, 0x68,
0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x5c,
0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
0x0a, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_ethrpc_v1_resource_proto_rawDescOnce sync.Once
file_ethrpc_v1_resource_proto_rawDescData = file_ethrpc_v1_resource_proto_rawDesc
)
func file_ethrpc_v1_resource_proto_rawDescGZIP() []byte {
file_ethrpc_v1_resource_proto_rawDescOnce.Do(func() {
file_ethrpc_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_ethrpc_v1_resource_proto_rawDescData)
})
return file_ethrpc_v1_resource_proto_rawDescData
}
var file_ethrpc_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_ethrpc_v1_resource_proto_goTypes = []interface{}{
(*Tx)(nil), // 0: ethrpc.v1.Tx
(*v1.Address)(nil), // 1: base.v1.Address
(*v1.Hash)(nil), // 2: base.v1.Hash
}
var file_ethrpc_v1_resource_proto_depIdxs = []int32{
1, // 0: ethrpc.v1.Tx.address:type_name -> base.v1.Address
2, // 1: ethrpc.v1.Tx.hash:type_name -> base.v1.Hash
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_ethrpc_v1_resource_proto_init() }
func file_ethrpc_v1_resource_proto_init() {
if File_ethrpc_v1_resource_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_ethrpc_v1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Tx); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ethrpc_v1_resource_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_ethrpc_v1_resource_proto_goTypes,
DependencyIndexes: file_ethrpc_v1_resource_proto_depIdxs,
MessageInfos: file_ethrpc_v1_resource_proto_msgTypes,
}.Build()
File_ethrpc_v1_resource_proto = out.File
file_ethrpc_v1_resource_proto_rawDesc = nil
file_ethrpc_v1_resource_proto_goTypes = nil
file_ethrpc_v1_resource_proto_depIdxs = nil
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: ethrpc/v1/service.proto
package ethrpcv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_ethrpc_v1_service_proto protoreflect.FileDescriptor
var file_ethrpc_v1_service_proto_rawDesc = []byte{
0x0a, 0x17, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x65, 0x74, 0x68, 0x72, 0x70,
0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x20, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x5f, 0x72, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x32, 0xb0, 0x1f, 0x0a, 0x0d, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x68, 0x61, 0x33, 0x12, 0x16,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x33, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x33, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x47, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70,
0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x4e, 0x65,
0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x1a, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x49, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e,
0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0f,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a,
0x07, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x1a, 0x1a, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e,
0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41,
0x0a, 0x08, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x3d, 0x0a, 0x06, 0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x12, 0x41, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68, 0x52, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12,
0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69,
0x63, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0b, 0x42, 0x6c, 0x6f,
0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x1a, 0x19, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x69,
0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a,
0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79,
0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x65, 0x74,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48,
0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a,
0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1f,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x20, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63,
0x6b, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x1b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61,
0x73, 0x68, 0x12, 0x2d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42,
0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x2e, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c,
0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x00, 0x12, 0x84, 0x01, 0x0a, 0x1d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x55, 0x6e,
0x63, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x22,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x23, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55,
0x6e, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x12, 0x55, 0x6e, 0x63,
0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
0x24, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c,
0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75,
0x0a, 0x18, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61,
0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2a, 0x2e, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c,
0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48,
0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x1a, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x12, 0x2c, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62,
0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e,
0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x00, 0x12, 0x48, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x12,
0x1b, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
0x69, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f,
0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x12,
0x21, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
0x69, 0x6c, 0x65, 0x53, 0x6f, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70,
0x69, 0x6c, 0x65, 0x4c, 0x4c, 0x4c, 0x12, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x4c, 0x4c, 0x4c, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x4c, 0x4c, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
0x53, 0x65, 0x72, 0x70, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x70, 0x65,
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72,
0x70, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e,
0x0a, 0x0b, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x47, 0x61, 0x73, 0x12, 0x1d, 0x2e,
0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61,
0x74, 0x65, 0x47, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74,
0x65, 0x47, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60,
0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x48,
0x61, 0x73, 0x68, 0x12, 0x23, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x48, 0x61, 0x73,
0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70,
0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x12, 0x87, 0x01, 0x0a, 0x1e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x12, 0x30, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f,
0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42,
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8d, 0x01, 0x0a, 0x20, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63,
0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12,
0x32, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f,
0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x12, 0x54, 0x72,
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74,
0x12, 0x24, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x42, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x2e, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x07, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x19,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61,
0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65,
0x12, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e,
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x07, 0x47, 0x65,
0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1a, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39,
0x0a, 0x04, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x53, 0x69, 0x67,
0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70,
0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x65, 0x74,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x63, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e,
0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61,
0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x16,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x48, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x65, 0x74,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65,
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0e, 0x4e,
0x65, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x18, 0x50, 0x65,
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2b,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69,
0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a,
0x0f, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
0x12, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69,
0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e,
0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x46, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x65, 0x74, 0x68,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61,
0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x65, 0x74,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68,
0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x4b, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1c, 0x2e,
0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x65, 0x74,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f,
0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x04,
0x4c, 0x6f, 0x67, 0x73, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb5, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e,
0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65,
0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x2f, 0x76, 0x31, 0x3b, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45,
0x58, 0x58, 0xaa, 0x02, 0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02,
0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x45, 0x74, 0x68,
0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x0a, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_ethrpc_v1_service_proto_goTypes = []interface{}{
(*Sha3Request)(nil), // 0: ethrpc.v1.Sha3Request
(*emptypb.Empty)(nil), // 1: google.protobuf.Empty
(*BlockByHashRequest)(nil), // 2: ethrpc.v1.BlockByHashRequest
(*BlockByNumberRequest)(nil), // 3: ethrpc.v1.BlockByNumberRequest
(*BlockTransactionCountByHashRequest)(nil), // 4: ethrpc.v1.BlockTransactionCountByHashRequest
(*BlockTransactionCountByNumberRequest)(nil), // 5: ethrpc.v1.BlockTransactionCountByNumberRequest
(*UncleCountByHashRequest)(nil), // 6: ethrpc.v1.UncleCountByHashRequest
(*UncleCountByNumberRequest)(nil), // 7: ethrpc.v1.UncleCountByNumberRequest
(*UncleByBlockHashAndIndexRequest)(nil), // 8: ethrpc.v1.UncleByBlockHashAndIndexRequest
(*UncleByBlockNumberAndIndexRequest)(nil), // 9: ethrpc.v1.UncleByBlockNumberAndIndexRequest
(*CompilersRequest)(nil), // 10: ethrpc.v1.CompilersRequest
(*CompileSolidityRequest)(nil), // 11: ethrpc.v1.CompileSolidityRequest
(*CompileLLLRequest)(nil), // 12: ethrpc.v1.CompileLLLRequest
(*CompileSerpentRequest)(nil), // 13: ethrpc.v1.CompileSerpentRequest
(*EstimateGasRequest)(nil), // 14: ethrpc.v1.EstimateGasRequest
(*TransactionByHashRequest)(nil), // 15: ethrpc.v1.TransactionByHashRequest
(*TransactionByBlockHashAndIndexRequest)(nil), // 16: ethrpc.v1.TransactionByBlockHashAndIndexRequest
(*TransactionByBlockNumberAndIndexRequest)(nil), // 17: ethrpc.v1.TransactionByBlockNumberAndIndexRequest
(*TransactionReceiptRequest)(nil), // 18: ethrpc.v1.TransactionReceiptRequest
(*BalanceRequest)(nil), // 19: ethrpc.v1.BalanceRequest
(*StorageRequest)(nil), // 20: ethrpc.v1.StorageRequest
(*NonceRequest)(nil), // 21: ethrpc.v1.NonceRequest
(*RepeatedNonceRequest)(nil), // 22: ethrpc.v1.RepeatedNonceRequest
(*TransactionCountRequest)(nil), // 23: ethrpc.v1.TransactionCountRequest
(*GetCodeRequest)(nil), // 24: ethrpc.v1.GetCodeRequest
(*SignRequest)(nil), // 25: ethrpc.v1.SignRequest
(*SignTransactionRequest)(nil), // 26: ethrpc.v1.SignTransactionRequest
(*SendTransactionRequest)(nil), // 27: ethrpc.v1.SendTransactionRequest
(*SendRawTransactionRequest)(nil), // 28: ethrpc.v1.SendRawTransactionRequest
(*CallRequest)(nil), // 29: ethrpc.v1.CallRequest
(*NewFilterRequest)(nil), // 30: ethrpc.v1.NewFilterRequest
(*UninstallFilterRequest)(nil), // 31: ethrpc.v1.UninstallFilterRequest
(*FilterChangesRequest)(nil), // 32: ethrpc.v1.FilterChangesRequest
(*FilterLogsRequest)(nil), // 33: ethrpc.v1.FilterLogsRequest
(*LogsRequest)(nil), // 34: ethrpc.v1.LogsRequest
(*Sha3Response)(nil), // 35: ethrpc.v1.Sha3Response
(*NodeVersionResponse)(nil), // 36: ethrpc.v1.NodeVersionResponse
(*NetVersionResponse)(nil), // 37: ethrpc.v1.NetVersionResponse
(*NetPeerCountResponse)(nil), // 38: ethrpc.v1.NetPeerCountResponse
(*ProtocolVersionResponse)(nil), // 39: ethrpc.v1.ProtocolVersionResponse
(*SyncingResponse)(nil), // 40: ethrpc.v1.SyncingResponse
(*CoinbaseResponse)(nil), // 41: ethrpc.v1.CoinbaseResponse
(*MiningResponse)(nil), // 42: ethrpc.v1.MiningResponse
(*HashRateResponse)(nil), // 43: ethrpc.v1.HashRateResponse
(*AccountsResponse)(nil), // 44: ethrpc.v1.AccountsResponse
(*GasPriceResponse)(nil), // 45: ethrpc.v1.GasPriceResponse
(*HeightResponse)(nil), // 46: ethrpc.v1.HeightResponse
(*BlockByHashResponse)(nil), // 47: ethrpc.v1.BlockByHashResponse
(*BlockByNumberResponse)(nil), // 48: ethrpc.v1.BlockByNumberResponse
(*BlockTransactionCountByHashResponse)(nil), // 49: ethrpc.v1.BlockTransactionCountByHashResponse
(*BlockTransactionCountByNumberResponse)(nil), // 50: ethrpc.v1.BlockTransactionCountByNumberResponse
(*UncleCountByHashResponse)(nil), // 51: ethrpc.v1.UncleCountByHashResponse
(*UncleCountByNumberResponse)(nil), // 52: ethrpc.v1.UncleCountByNumberResponse
(*UncleByBlockHashAndIndexResponse)(nil), // 53: ethrpc.v1.UncleByBlockHashAndIndexResponse
(*UncleByBlockNumberAndIndexResponse)(nil), // 54: ethrpc.v1.UncleByBlockNumberAndIndexResponse
(*CompilersResponse)(nil), // 55: ethrpc.v1.CompilersResponse
(*CompileSolidityResponse)(nil), // 56: ethrpc.v1.CompileSolidityResponse
(*CompileLLLResponse)(nil), // 57: ethrpc.v1.CompileLLLResponse
(*CompileSerpentResponse)(nil), // 58: ethrpc.v1.CompileSerpentResponse
(*EstimateGasResponse)(nil), // 59: ethrpc.v1.EstimateGasResponse
(*TransactionByHashResponse)(nil), // 60: ethrpc.v1.TransactionByHashResponse
(*TransactionByBlockHashAndIndexResponse)(nil), // 61: ethrpc.v1.TransactionByBlockHashAndIndexResponse
(*TransactionByBlockNumberAndIndexResponse)(nil), // 62: ethrpc.v1.TransactionByBlockNumberAndIndexResponse
(*TransactionReceiptResponse)(nil), // 63: ethrpc.v1.TransactionReceiptResponse
(*BalanceResponse)(nil), // 64: ethrpc.v1.BalanceResponse
(*StorageResponse)(nil), // 65: ethrpc.v1.StorageResponse
(*NonceResponse)(nil), // 66: ethrpc.v1.NonceResponse
(*RepeatedNonceResponse)(nil), // 67: ethrpc.v1.RepeatedNonceResponse
(*TransactionCountResponse)(nil), // 68: ethrpc.v1.TransactionCountResponse
(*GetCodeResponse)(nil), // 69: ethrpc.v1.GetCodeResponse
(*SignResponse)(nil), // 70: ethrpc.v1.SignResponse
(*SignTransactionResponse)(nil), // 71: ethrpc.v1.SignTransactionResponse
(*SendTransactionResponse)(nil), // 72: ethrpc.v1.SendTransactionResponse
(*SendRawTransactionResponse)(nil), // 73: ethrpc.v1.SendRawTransactionResponse
(*CallResponse)(nil), // 74: ethrpc.v1.CallResponse
(*NewFilterResponse)(nil), // 75: ethrpc.v1.NewFilterResponse
(*NewBlockFilterResponse)(nil), // 76: ethrpc.v1.NewBlockFilterResponse
(*PendingTransactionFilterResponse)(nil), // 77: ethrpc.v1.PendingTransactionFilterResponse
(*UninstallFilterResponse)(nil), // 78: ethrpc.v1.UninstallFilterResponse
(*FilterChangesResponse)(nil), // 79: ethrpc.v1.FilterChangesResponse
(*FilterLogsResponse)(nil), // 80: ethrpc.v1.FilterLogsResponse
(*LogsResponse)(nil), // 81: ethrpc.v1.LogsResponse
}
var file_ethrpc_v1_service_proto_depIdxs = []int32{
0, // 0: ethrpc.v1.NebulaService.Sha3:input_type -> ethrpc.v1.Sha3Request
1, // 1: ethrpc.v1.NebulaService.NodeVersion:input_type -> google.protobuf.Empty
1, // 2: ethrpc.v1.NebulaService.NetVersion:input_type -> google.protobuf.Empty
1, // 3: ethrpc.v1.NebulaService.NetPeerCount:input_type -> google.protobuf.Empty
1, // 4: ethrpc.v1.NebulaService.ProtocolVersion:input_type -> google.protobuf.Empty
1, // 5: ethrpc.v1.NebulaService.Syncing:input_type -> google.protobuf.Empty
1, // 6: ethrpc.v1.NebulaService.Coinbase:input_type -> google.protobuf.Empty
1, // 7: ethrpc.v1.NebulaService.Mining:input_type -> google.protobuf.Empty
1, // 8: ethrpc.v1.NebulaService.HashRate:input_type -> google.protobuf.Empty
1, // 9: ethrpc.v1.NebulaService.Accounts:input_type -> google.protobuf.Empty
1, // 10: ethrpc.v1.NebulaService.GasPrice:input_type -> google.protobuf.Empty
1, // 11: ethrpc.v1.NebulaService.BlockNumber:input_type -> google.protobuf.Empty
2, // 12: ethrpc.v1.NebulaService.BlockByHash:input_type -> ethrpc.v1.BlockByHashRequest
3, // 13: ethrpc.v1.NebulaService.BlockByNumber:input_type -> ethrpc.v1.BlockByNumberRequest
4, // 14: ethrpc.v1.NebulaService.BlockTransactionCountByHash:input_type -> ethrpc.v1.BlockTransactionCountByHashRequest
5, // 15: ethrpc.v1.NebulaService.BlockTransactionCountByNumber:input_type -> ethrpc.v1.BlockTransactionCountByNumberRequest
6, // 16: ethrpc.v1.NebulaService.UncleCountByHash:input_type -> ethrpc.v1.UncleCountByHashRequest
7, // 17: ethrpc.v1.NebulaService.UncleCountByNumber:input_type -> ethrpc.v1.UncleCountByNumberRequest
8, // 18: ethrpc.v1.NebulaService.UncleByBlockHashAndIndex:input_type -> ethrpc.v1.UncleByBlockHashAndIndexRequest
9, // 19: ethrpc.v1.NebulaService.UncleByBlockNumberAndIndex:input_type -> ethrpc.v1.UncleByBlockNumberAndIndexRequest
10, // 20: ethrpc.v1.NebulaService.Compilers:input_type -> ethrpc.v1.CompilersRequest
11, // 21: ethrpc.v1.NebulaService.CompileSolidity:input_type -> ethrpc.v1.CompileSolidityRequest
12, // 22: ethrpc.v1.NebulaService.CompileLLL:input_type -> ethrpc.v1.CompileLLLRequest
13, // 23: ethrpc.v1.NebulaService.CompileSerpent:input_type -> ethrpc.v1.CompileSerpentRequest
14, // 24: ethrpc.v1.NebulaService.EstimateGas:input_type -> ethrpc.v1.EstimateGasRequest
15, // 25: ethrpc.v1.NebulaService.TransactionByHash:input_type -> ethrpc.v1.TransactionByHashRequest
16, // 26: ethrpc.v1.NebulaService.TransactionByBlockHashAndIndex:input_type -> ethrpc.v1.TransactionByBlockHashAndIndexRequest
17, // 27: ethrpc.v1.NebulaService.TransactionByBlockNumberAndIndex:input_type -> ethrpc.v1.TransactionByBlockNumberAndIndexRequest
18, // 28: ethrpc.v1.NebulaService.TransactionReceipt:input_type -> ethrpc.v1.TransactionReceiptRequest
19, // 29: ethrpc.v1.NebulaService.Balance:input_type -> ethrpc.v1.BalanceRequest
20, // 30: ethrpc.v1.NebulaService.Storage:input_type -> ethrpc.v1.StorageRequest
21, // 31: ethrpc.v1.NebulaService.Nonce:input_type -> ethrpc.v1.NonceRequest
22, // 32: ethrpc.v1.NebulaService.RepeatedNonce:input_type -> ethrpc.v1.RepeatedNonceRequest
23, // 33: ethrpc.v1.NebulaService.TransactionCount:input_type -> ethrpc.v1.TransactionCountRequest
24, // 34: ethrpc.v1.NebulaService.GetCode:input_type -> ethrpc.v1.GetCodeRequest
25, // 35: ethrpc.v1.NebulaService.Sign:input_type -> ethrpc.v1.SignRequest
26, // 36: ethrpc.v1.NebulaService.SignTransaction:input_type -> ethrpc.v1.SignTransactionRequest
27, // 37: ethrpc.v1.NebulaService.SendTransaction:input_type -> ethrpc.v1.SendTransactionRequest
28, // 38: ethrpc.v1.NebulaService.SendRawTransaction:input_type -> ethrpc.v1.SendRawTransactionRequest
29, // 39: ethrpc.v1.NebulaService.Call:input_type -> ethrpc.v1.CallRequest
30, // 40: ethrpc.v1.NebulaService.NewFilter:input_type -> ethrpc.v1.NewFilterRequest
1, // 41: ethrpc.v1.NebulaService.NewBlockFilter:input_type -> google.protobuf.Empty
1, // 42: ethrpc.v1.NebulaService.PendingTransactionFilter:input_type -> google.protobuf.Empty
31, // 43: ethrpc.v1.NebulaService.UninstallFilter:input_type -> ethrpc.v1.UninstallFilterRequest
32, // 44: ethrpc.v1.NebulaService.FilterChanges:input_type -> ethrpc.v1.FilterChangesRequest
33, // 45: ethrpc.v1.NebulaService.FilterLogs:input_type -> ethrpc.v1.FilterLogsRequest
34, // 46: ethrpc.v1.NebulaService.Logs:input_type -> ethrpc.v1.LogsRequest
35, // 47: ethrpc.v1.NebulaService.Sha3:output_type -> ethrpc.v1.Sha3Response
36, // 48: ethrpc.v1.NebulaService.NodeVersion:output_type -> ethrpc.v1.NodeVersionResponse
37, // 49: ethrpc.v1.NebulaService.NetVersion:output_type -> ethrpc.v1.NetVersionResponse
38, // 50: ethrpc.v1.NebulaService.NetPeerCount:output_type -> ethrpc.v1.NetPeerCountResponse
39, // 51: ethrpc.v1.NebulaService.ProtocolVersion:output_type -> ethrpc.v1.ProtocolVersionResponse
40, // 52: ethrpc.v1.NebulaService.Syncing:output_type -> ethrpc.v1.SyncingResponse
41, // 53: ethrpc.v1.NebulaService.Coinbase:output_type -> ethrpc.v1.CoinbaseResponse
42, // 54: ethrpc.v1.NebulaService.Mining:output_type -> ethrpc.v1.MiningResponse
43, // 55: ethrpc.v1.NebulaService.HashRate:output_type -> ethrpc.v1.HashRateResponse
44, // 56: ethrpc.v1.NebulaService.Accounts:output_type -> ethrpc.v1.AccountsResponse
45, // 57: ethrpc.v1.NebulaService.GasPrice:output_type -> ethrpc.v1.GasPriceResponse
46, // 58: ethrpc.v1.NebulaService.BlockNumber:output_type -> ethrpc.v1.HeightResponse
47, // 59: ethrpc.v1.NebulaService.BlockByHash:output_type -> ethrpc.v1.BlockByHashResponse
48, // 60: ethrpc.v1.NebulaService.BlockByNumber:output_type -> ethrpc.v1.BlockByNumberResponse
49, // 61: ethrpc.v1.NebulaService.BlockTransactionCountByHash:output_type -> ethrpc.v1.BlockTransactionCountByHashResponse
50, // 62: ethrpc.v1.NebulaService.BlockTransactionCountByNumber:output_type -> ethrpc.v1.BlockTransactionCountByNumberResponse
51, // 63: ethrpc.v1.NebulaService.UncleCountByHash:output_type -> ethrpc.v1.UncleCountByHashResponse
52, // 64: ethrpc.v1.NebulaService.UncleCountByNumber:output_type -> ethrpc.v1.UncleCountByNumberResponse
53, // 65: ethrpc.v1.NebulaService.UncleByBlockHashAndIndex:output_type -> ethrpc.v1.UncleByBlockHashAndIndexResponse
54, // 66: ethrpc.v1.NebulaService.UncleByBlockNumberAndIndex:output_type -> ethrpc.v1.UncleByBlockNumberAndIndexResponse
55, // 67: ethrpc.v1.NebulaService.Compilers:output_type -> ethrpc.v1.CompilersResponse
56, // 68: ethrpc.v1.NebulaService.CompileSolidity:output_type -> ethrpc.v1.CompileSolidityResponse
57, // 69: ethrpc.v1.NebulaService.CompileLLL:output_type -> ethrpc.v1.CompileLLLResponse
58, // 70: ethrpc.v1.NebulaService.CompileSerpent:output_type -> ethrpc.v1.CompileSerpentResponse
59, // 71: ethrpc.v1.NebulaService.EstimateGas:output_type -> ethrpc.v1.EstimateGasResponse
60, // 72: ethrpc.v1.NebulaService.TransactionByHash:output_type -> ethrpc.v1.TransactionByHashResponse
61, // 73: ethrpc.v1.NebulaService.TransactionByBlockHashAndIndex:output_type -> ethrpc.v1.TransactionByBlockHashAndIndexResponse
62, // 74: ethrpc.v1.NebulaService.TransactionByBlockNumberAndIndex:output_type -> ethrpc.v1.TransactionByBlockNumberAndIndexResponse
63, // 75: ethrpc.v1.NebulaService.TransactionReceipt:output_type -> ethrpc.v1.TransactionReceiptResponse
64, // 76: ethrpc.v1.NebulaService.Balance:output_type -> ethrpc.v1.BalanceResponse
65, // 77: ethrpc.v1.NebulaService.Storage:output_type -> ethrpc.v1.StorageResponse
66, // 78: ethrpc.v1.NebulaService.Nonce:output_type -> ethrpc.v1.NonceResponse
67, // 79: ethrpc.v1.NebulaService.RepeatedNonce:output_type -> ethrpc.v1.RepeatedNonceResponse
68, // 80: ethrpc.v1.NebulaService.TransactionCount:output_type -> ethrpc.v1.TransactionCountResponse
69, // 81: ethrpc.v1.NebulaService.GetCode:output_type -> ethrpc.v1.GetCodeResponse
70, // 82: ethrpc.v1.NebulaService.Sign:output_type -> ethrpc.v1.SignResponse
71, // 83: ethrpc.v1.NebulaService.SignTransaction:output_type -> ethrpc.v1.SignTransactionResponse
72, // 84: ethrpc.v1.NebulaService.SendTransaction:output_type -> ethrpc.v1.SendTransactionResponse
73, // 85: ethrpc.v1.NebulaService.SendRawTransaction:output_type -> ethrpc.v1.SendRawTransactionResponse
74, // 86: ethrpc.v1.NebulaService.Call:output_type -> ethrpc.v1.CallResponse
75, // 87: ethrpc.v1.NebulaService.NewFilter:output_type -> ethrpc.v1.NewFilterResponse
76, // 88: ethrpc.v1.NebulaService.NewBlockFilter:output_type -> ethrpc.v1.NewBlockFilterResponse
77, // 89: ethrpc.v1.NebulaService.PendingTransactionFilter:output_type -> ethrpc.v1.PendingTransactionFilterResponse
78, // 90: ethrpc.v1.NebulaService.UninstallFilter:output_type -> ethrpc.v1.UninstallFilterResponse
79, // 91: ethrpc.v1.NebulaService.FilterChanges:output_type -> ethrpc.v1.FilterChangesResponse
80, // 92: ethrpc.v1.NebulaService.FilterLogs:output_type -> ethrpc.v1.FilterLogsResponse
81, // 93: ethrpc.v1.NebulaService.Logs:output_type -> ethrpc.v1.LogsResponse
47, // [47:94] is the sub-list for method output_type
0, // [0:47] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_ethrpc_v1_service_proto_init() }
func file_ethrpc_v1_service_proto_init() {
if File_ethrpc_v1_service_proto != nil {
return
}
file_ethrpc_v1_request_response_proto_init()
file_ethrpc_v1_account_req_res_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ethrpc_v1_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_ethrpc_v1_service_proto_goTypes,
DependencyIndexes: file_ethrpc_v1_service_proto_depIdxs,
}.Build()
File_ethrpc_v1_service_proto = out.File
file_ethrpc_v1_service_proto_rawDesc = nil
file_ethrpc_v1_service_proto_goTypes = nil
file_ethrpc_v1_service_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: ethrpc/v1/service.proto
package ethrpcv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// NebulaServiceClient is the client API for NebulaService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type NebulaServiceClient interface {
// web3
Sha3(ctx context.Context, in *Sha3Request, opts ...grpc.CallOption) (*Sha3Response, error)
NodeVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NodeVersionResponse, error)
// network info service
NetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetVersionResponse, error)
NetPeerCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetPeerCountResponse, error)
// node status
ProtocolVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProtocolVersionResponse, error)
Syncing(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SyncingResponse, error)
Coinbase(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error)
Mining(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MiningResponse, error)
HashRate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HashRateResponse, error)
Accounts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountsResponse, error)
// tx operatoration
GasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GasPriceResponse, error)
// block info service
BlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HeightResponse, error)
BlockByHash(ctx context.Context, in *BlockByHashRequest, opts ...grpc.CallOption) (*BlockByHashResponse, error)
BlockByNumber(ctx context.Context, in *BlockByNumberRequest, opts ...grpc.CallOption) (*BlockByNumberResponse, error)
BlockTransactionCountByHash(ctx context.Context, in *BlockTransactionCountByHashRequest, opts ...grpc.CallOption) (*BlockTransactionCountByHashResponse, error)
BlockTransactionCountByNumber(ctx context.Context, in *BlockTransactionCountByNumberRequest, opts ...grpc.CallOption) (*BlockTransactionCountByNumberResponse, error)
UncleCountByHash(ctx context.Context, in *UncleCountByHashRequest, opts ...grpc.CallOption) (*UncleCountByHashResponse, error)
UncleCountByNumber(ctx context.Context, in *UncleCountByNumberRequest, opts ...grpc.CallOption) (*UncleCountByNumberResponse, error)
UncleByBlockHashAndIndex(ctx context.Context, in *UncleByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockHashAndIndexResponse, error)
UncleByBlockNumberAndIndex(ctx context.Context, in *UncleByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockNumberAndIndexResponse, error)
// compiler
Compilers(ctx context.Context, in *CompilersRequest, opts ...grpc.CallOption) (*CompilersResponse, error)
CompileSolidity(ctx context.Context, in *CompileSolidityRequest, opts ...grpc.CallOption) (*CompileSolidityResponse, error)
CompileLLL(ctx context.Context, in *CompileLLLRequest, opts ...grpc.CallOption) (*CompileLLLResponse, error)
CompileSerpent(ctx context.Context, in *CompileSerpentRequest, opts ...grpc.CallOption) (*CompileSerpentResponse, error)
// transaction info service
EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error)
TransactionByHash(ctx context.Context, in *TransactionByHashRequest, opts ...grpc.CallOption) (*TransactionByHashResponse, error)
TransactionByBlockHashAndIndex(ctx context.Context, in *TransactionByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockHashAndIndexResponse, error)
TransactionByBlockNumberAndIndex(ctx context.Context, in *TransactionByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockNumberAndIndexResponse, error)
TransactionReceipt(ctx context.Context, in *TransactionReceiptRequest, opts ...grpc.CallOption) (*TransactionReceiptResponse, error)
// account info service
Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error)
Storage(ctx context.Context, in *StorageRequest, opts ...grpc.CallOption) (*StorageResponse, error)
Nonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error)
RepeatedNonce(ctx context.Context, in *RepeatedNonceRequest, opts ...grpc.CallOption) (*RepeatedNonceResponse, error)
TransactionCount(ctx context.Context, in *TransactionCountRequest, opts ...grpc.CallOption) (*TransactionCountResponse, error)
GetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error)
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error)
SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error)
SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error)
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
// filter
NewFilter(ctx context.Context, in *NewFilterRequest, opts ...grpc.CallOption) (*NewFilterResponse, error)
NewBlockFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewBlockFilterResponse, error)
PendingTransactionFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PendingTransactionFilterResponse, error)
UninstallFilter(ctx context.Context, in *UninstallFilterRequest, opts ...grpc.CallOption) (*UninstallFilterResponse, error)
FilterChanges(ctx context.Context, in *FilterChangesRequest, opts ...grpc.CallOption) (*FilterChangesResponse, error)
FilterLogs(ctx context.Context, in *FilterLogsRequest, opts ...grpc.CallOption) (*FilterLogsResponse, error)
Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (*LogsResponse, error)
}
type nebulaServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNebulaServiceClient(cc grpc.ClientConnInterface) NebulaServiceClient {
return &nebulaServiceClient{cc}
}
func (c *nebulaServiceClient) Sha3(ctx context.Context, in *Sha3Request, opts ...grpc.CallOption) (*Sha3Response, error) {
out := new(Sha3Response)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Sha3", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) NodeVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NodeVersionResponse, error) {
out := new(NodeVersionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/NodeVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) NetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetVersionResponse, error) {
out := new(NetVersionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/NetVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) NetPeerCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetPeerCountResponse, error) {
out := new(NetPeerCountResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/NetPeerCount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) ProtocolVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProtocolVersionResponse, error) {
out := new(ProtocolVersionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/ProtocolVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Syncing(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SyncingResponse, error) {
out := new(SyncingResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Syncing", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Coinbase(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error) {
out := new(CoinbaseResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Coinbase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Mining(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MiningResponse, error) {
out := new(MiningResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Mining", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) HashRate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HashRateResponse, error) {
out := new(HashRateResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/HashRate", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Accounts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountsResponse, error) {
out := new(AccountsResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Accounts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) GasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GasPriceResponse, error) {
out := new(GasPriceResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/GasPrice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) BlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HeightResponse, error) {
out := new(HeightResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/BlockNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) BlockByHash(ctx context.Context, in *BlockByHashRequest, opts ...grpc.CallOption) (*BlockByHashResponse, error) {
out := new(BlockByHashResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/BlockByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) BlockByNumber(ctx context.Context, in *BlockByNumberRequest, opts ...grpc.CallOption) (*BlockByNumberResponse, error) {
out := new(BlockByNumberResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/BlockByNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) BlockTransactionCountByHash(ctx context.Context, in *BlockTransactionCountByHashRequest, opts ...grpc.CallOption) (*BlockTransactionCountByHashResponse, error) {
out := new(BlockTransactionCountByHashResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/BlockTransactionCountByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) BlockTransactionCountByNumber(ctx context.Context, in *BlockTransactionCountByNumberRequest, opts ...grpc.CallOption) (*BlockTransactionCountByNumberResponse, error) {
out := new(BlockTransactionCountByNumberResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/BlockTransactionCountByNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) UncleCountByHash(ctx context.Context, in *UncleCountByHashRequest, opts ...grpc.CallOption) (*UncleCountByHashResponse, error) {
out := new(UncleCountByHashResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/UncleCountByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) UncleCountByNumber(ctx context.Context, in *UncleCountByNumberRequest, opts ...grpc.CallOption) (*UncleCountByNumberResponse, error) {
out := new(UncleCountByNumberResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/UncleCountByNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) UncleByBlockHashAndIndex(ctx context.Context, in *UncleByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockHashAndIndexResponse, error) {
out := new(UncleByBlockHashAndIndexResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/UncleByBlockHashAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) UncleByBlockNumberAndIndex(ctx context.Context, in *UncleByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockNumberAndIndexResponse, error) {
out := new(UncleByBlockNumberAndIndexResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/UncleByBlockNumberAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Compilers(ctx context.Context, in *CompilersRequest, opts ...grpc.CallOption) (*CompilersResponse, error) {
out := new(CompilersResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Compilers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) CompileSolidity(ctx context.Context, in *CompileSolidityRequest, opts ...grpc.CallOption) (*CompileSolidityResponse, error) {
out := new(CompileSolidityResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/CompileSolidity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) CompileLLL(ctx context.Context, in *CompileLLLRequest, opts ...grpc.CallOption) (*CompileLLLResponse, error) {
out := new(CompileLLLResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/CompileLLL", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) CompileSerpent(ctx context.Context, in *CompileSerpentRequest, opts ...grpc.CallOption) (*CompileSerpentResponse, error) {
out := new(CompileSerpentResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/CompileSerpent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) {
out := new(EstimateGasResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/EstimateGas", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) TransactionByHash(ctx context.Context, in *TransactionByHashRequest, opts ...grpc.CallOption) (*TransactionByHashResponse, error) {
out := new(TransactionByHashResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/TransactionByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) TransactionByBlockHashAndIndex(ctx context.Context, in *TransactionByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockHashAndIndexResponse, error) {
out := new(TransactionByBlockHashAndIndexResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/TransactionByBlockHashAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) TransactionByBlockNumberAndIndex(ctx context.Context, in *TransactionByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockNumberAndIndexResponse, error) {
out := new(TransactionByBlockNumberAndIndexResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/TransactionByBlockNumberAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) TransactionReceipt(ctx context.Context, in *TransactionReceiptRequest, opts ...grpc.CallOption) (*TransactionReceiptResponse, error) {
out := new(TransactionReceiptResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/TransactionReceipt", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) {
out := new(BalanceResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Balance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Storage(ctx context.Context, in *StorageRequest, opts ...grpc.CallOption) (*StorageResponse, error) {
out := new(StorageResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Storage", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Nonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error) {
out := new(NonceResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Nonce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) RepeatedNonce(ctx context.Context, in *RepeatedNonceRequest, opts ...grpc.CallOption) (*RepeatedNonceResponse, error) {
out := new(RepeatedNonceResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/RepeatedNonce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) TransactionCount(ctx context.Context, in *TransactionCountRequest, opts ...grpc.CallOption) (*TransactionCountResponse, error) {
out := new(TransactionCountResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/TransactionCount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) GetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) {
out := new(GetCodeResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/GetCode", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) {
out := new(SignResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Sign", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error) {
out := new(SignTransactionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/SignTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) {
out := new(SendTransactionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/SendTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) {
out := new(SendRawTransactionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/SendRawTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) {
out := new(CallResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Call", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) NewFilter(ctx context.Context, in *NewFilterRequest, opts ...grpc.CallOption) (*NewFilterResponse, error) {
out := new(NewFilterResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/NewFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) NewBlockFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewBlockFilterResponse, error) {
out := new(NewBlockFilterResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/NewBlockFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) PendingTransactionFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PendingTransactionFilterResponse, error) {
out := new(PendingTransactionFilterResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/PendingTransactionFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) UninstallFilter(ctx context.Context, in *UninstallFilterRequest, opts ...grpc.CallOption) (*UninstallFilterResponse, error) {
out := new(UninstallFilterResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/UninstallFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) FilterChanges(ctx context.Context, in *FilterChangesRequest, opts ...grpc.CallOption) (*FilterChangesResponse, error) {
out := new(FilterChangesResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/FilterChanges", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) FilterLogs(ctx context.Context, in *FilterLogsRequest, opts ...grpc.CallOption) (*FilterLogsResponse, error) {
out := new(FilterLogsResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/FilterLogs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nebulaServiceClient) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (*LogsResponse, error) {
out := new(LogsResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.NebulaService/Logs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NebulaServiceServer is the server API for NebulaService service.
// All implementations must embed UnimplementedNebulaServiceServer
// for forward compatibility
type NebulaServiceServer interface {
// web3
Sha3(context.Context, *Sha3Request) (*Sha3Response, error)
NodeVersion(context.Context, *emptypb.Empty) (*NodeVersionResponse, error)
// network info service
NetVersion(context.Context, *emptypb.Empty) (*NetVersionResponse, error)
NetPeerCount(context.Context, *emptypb.Empty) (*NetPeerCountResponse, error)
// node status
ProtocolVersion(context.Context, *emptypb.Empty) (*ProtocolVersionResponse, error)
Syncing(context.Context, *emptypb.Empty) (*SyncingResponse, error)
Coinbase(context.Context, *emptypb.Empty) (*CoinbaseResponse, error)
Mining(context.Context, *emptypb.Empty) (*MiningResponse, error)
HashRate(context.Context, *emptypb.Empty) (*HashRateResponse, error)
Accounts(context.Context, *emptypb.Empty) (*AccountsResponse, error)
// tx operatoration
GasPrice(context.Context, *emptypb.Empty) (*GasPriceResponse, error)
// block info service
BlockNumber(context.Context, *emptypb.Empty) (*HeightResponse, error)
BlockByHash(context.Context, *BlockByHashRequest) (*BlockByHashResponse, error)
BlockByNumber(context.Context, *BlockByNumberRequest) (*BlockByNumberResponse, error)
BlockTransactionCountByHash(context.Context, *BlockTransactionCountByHashRequest) (*BlockTransactionCountByHashResponse, error)
BlockTransactionCountByNumber(context.Context, *BlockTransactionCountByNumberRequest) (*BlockTransactionCountByNumberResponse, error)
UncleCountByHash(context.Context, *UncleCountByHashRequest) (*UncleCountByHashResponse, error)
UncleCountByNumber(context.Context, *UncleCountByNumberRequest) (*UncleCountByNumberResponse, error)
UncleByBlockHashAndIndex(context.Context, *UncleByBlockHashAndIndexRequest) (*UncleByBlockHashAndIndexResponse, error)
UncleByBlockNumberAndIndex(context.Context, *UncleByBlockNumberAndIndexRequest) (*UncleByBlockNumberAndIndexResponse, error)
// compiler
Compilers(context.Context, *CompilersRequest) (*CompilersResponse, error)
CompileSolidity(context.Context, *CompileSolidityRequest) (*CompileSolidityResponse, error)
CompileLLL(context.Context, *CompileLLLRequest) (*CompileLLLResponse, error)
CompileSerpent(context.Context, *CompileSerpentRequest) (*CompileSerpentResponse, error)
// transaction info service
EstimateGas(context.Context, *EstimateGasRequest) (*EstimateGasResponse, error)
TransactionByHash(context.Context, *TransactionByHashRequest) (*TransactionByHashResponse, error)
TransactionByBlockHashAndIndex(context.Context, *TransactionByBlockHashAndIndexRequest) (*TransactionByBlockHashAndIndexResponse, error)
TransactionByBlockNumberAndIndex(context.Context, *TransactionByBlockNumberAndIndexRequest) (*TransactionByBlockNumberAndIndexResponse, error)
TransactionReceipt(context.Context, *TransactionReceiptRequest) (*TransactionReceiptResponse, error)
// account info service
Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
Storage(context.Context, *StorageRequest) (*StorageResponse, error)
Nonce(context.Context, *NonceRequest) (*NonceResponse, error)
RepeatedNonce(context.Context, *RepeatedNonceRequest) (*RepeatedNonceResponse, error)
TransactionCount(context.Context, *TransactionCountRequest) (*TransactionCountResponse, error)
GetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error)
Sign(context.Context, *SignRequest) (*SignResponse, error)
SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error)
SendTransaction(context.Context, *SendTransactionRequest) (*SendTransactionResponse, error)
SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error)
Call(context.Context, *CallRequest) (*CallResponse, error)
// filter
NewFilter(context.Context, *NewFilterRequest) (*NewFilterResponse, error)
NewBlockFilter(context.Context, *emptypb.Empty) (*NewBlockFilterResponse, error)
PendingTransactionFilter(context.Context, *emptypb.Empty) (*PendingTransactionFilterResponse, error)
UninstallFilter(context.Context, *UninstallFilterRequest) (*UninstallFilterResponse, error)
FilterChanges(context.Context, *FilterChangesRequest) (*FilterChangesResponse, error)
FilterLogs(context.Context, *FilterLogsRequest) (*FilterLogsResponse, error)
Logs(context.Context, *LogsRequest) (*LogsResponse, error)
mustEmbedUnimplementedNebulaServiceServer()
}
// UnimplementedNebulaServiceServer must be embedded to have forward compatible implementations.
type UnimplementedNebulaServiceServer struct {
}
func (UnimplementedNebulaServiceServer) Sha3(context.Context, *Sha3Request) (*Sha3Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Sha3 not implemented")
}
func (UnimplementedNebulaServiceServer) NodeVersion(context.Context, *emptypb.Empty) (*NodeVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NodeVersion not implemented")
}
func (UnimplementedNebulaServiceServer) NetVersion(context.Context, *emptypb.Empty) (*NetVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NetVersion not implemented")
}
func (UnimplementedNebulaServiceServer) NetPeerCount(context.Context, *emptypb.Empty) (*NetPeerCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NetPeerCount not implemented")
}
func (UnimplementedNebulaServiceServer) ProtocolVersion(context.Context, *emptypb.Empty) (*ProtocolVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ProtocolVersion not implemented")
}
func (UnimplementedNebulaServiceServer) Syncing(context.Context, *emptypb.Empty) (*SyncingResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Syncing not implemented")
}
func (UnimplementedNebulaServiceServer) Coinbase(context.Context, *emptypb.Empty) (*CoinbaseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Coinbase not implemented")
}
func (UnimplementedNebulaServiceServer) Mining(context.Context, *emptypb.Empty) (*MiningResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Mining not implemented")
}
func (UnimplementedNebulaServiceServer) HashRate(context.Context, *emptypb.Empty) (*HashRateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method HashRate not implemented")
}
func (UnimplementedNebulaServiceServer) Accounts(context.Context, *emptypb.Empty) (*AccountsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented")
}
func (UnimplementedNebulaServiceServer) GasPrice(context.Context, *emptypb.Empty) (*GasPriceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GasPrice not implemented")
}
func (UnimplementedNebulaServiceServer) BlockNumber(context.Context, *emptypb.Empty) (*HeightResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockNumber not implemented")
}
func (UnimplementedNebulaServiceServer) BlockByHash(context.Context, *BlockByHashRequest) (*BlockByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockByHash not implemented")
}
func (UnimplementedNebulaServiceServer) BlockByNumber(context.Context, *BlockByNumberRequest) (*BlockByNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockByNumber not implemented")
}
func (UnimplementedNebulaServiceServer) BlockTransactionCountByHash(context.Context, *BlockTransactionCountByHashRequest) (*BlockTransactionCountByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockTransactionCountByHash not implemented")
}
func (UnimplementedNebulaServiceServer) BlockTransactionCountByNumber(context.Context, *BlockTransactionCountByNumberRequest) (*BlockTransactionCountByNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockTransactionCountByNumber not implemented")
}
func (UnimplementedNebulaServiceServer) UncleCountByHash(context.Context, *UncleCountByHashRequest) (*UncleCountByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleCountByHash not implemented")
}
func (UnimplementedNebulaServiceServer) UncleCountByNumber(context.Context, *UncleCountByNumberRequest) (*UncleCountByNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleCountByNumber not implemented")
}
func (UnimplementedNebulaServiceServer) UncleByBlockHashAndIndex(context.Context, *UncleByBlockHashAndIndexRequest) (*UncleByBlockHashAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleByBlockHashAndIndex not implemented")
}
func (UnimplementedNebulaServiceServer) UncleByBlockNumberAndIndex(context.Context, *UncleByBlockNumberAndIndexRequest) (*UncleByBlockNumberAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleByBlockNumberAndIndex not implemented")
}
func (UnimplementedNebulaServiceServer) Compilers(context.Context, *CompilersRequest) (*CompilersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Compilers not implemented")
}
func (UnimplementedNebulaServiceServer) CompileSolidity(context.Context, *CompileSolidityRequest) (*CompileSolidityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CompileSolidity not implemented")
}
func (UnimplementedNebulaServiceServer) CompileLLL(context.Context, *CompileLLLRequest) (*CompileLLLResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CompileLLL not implemented")
}
func (UnimplementedNebulaServiceServer) CompileSerpent(context.Context, *CompileSerpentRequest) (*CompileSerpentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CompileSerpent not implemented")
}
func (UnimplementedNebulaServiceServer) EstimateGas(context.Context, *EstimateGasRequest) (*EstimateGasResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method EstimateGas not implemented")
}
func (UnimplementedNebulaServiceServer) TransactionByHash(context.Context, *TransactionByHashRequest) (*TransactionByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionByHash not implemented")
}
func (UnimplementedNebulaServiceServer) TransactionByBlockHashAndIndex(context.Context, *TransactionByBlockHashAndIndexRequest) (*TransactionByBlockHashAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionByBlockHashAndIndex not implemented")
}
func (UnimplementedNebulaServiceServer) TransactionByBlockNumberAndIndex(context.Context, *TransactionByBlockNumberAndIndexRequest) (*TransactionByBlockNumberAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionByBlockNumberAndIndex not implemented")
}
func (UnimplementedNebulaServiceServer) TransactionReceipt(context.Context, *TransactionReceiptRequest) (*TransactionReceiptResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionReceipt not implemented")
}
func (UnimplementedNebulaServiceServer) Balance(context.Context, *BalanceRequest) (*BalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented")
}
func (UnimplementedNebulaServiceServer) Storage(context.Context, *StorageRequest) (*StorageResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Storage not implemented")
}
func (UnimplementedNebulaServiceServer) Nonce(context.Context, *NonceRequest) (*NonceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Nonce not implemented")
}
func (UnimplementedNebulaServiceServer) RepeatedNonce(context.Context, *RepeatedNonceRequest) (*RepeatedNonceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RepeatedNonce not implemented")
}
func (UnimplementedNebulaServiceServer) TransactionCount(context.Context, *TransactionCountRequest) (*TransactionCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionCount not implemented")
}
func (UnimplementedNebulaServiceServer) GetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCode not implemented")
}
func (UnimplementedNebulaServiceServer) Sign(context.Context, *SignRequest) (*SignResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented")
}
func (UnimplementedNebulaServiceServer) SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignTransaction not implemented")
}
func (UnimplementedNebulaServiceServer) SendTransaction(context.Context, *SendTransactionRequest) (*SendTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented")
}
func (UnimplementedNebulaServiceServer) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
}
func (UnimplementedNebulaServiceServer) Call(context.Context, *CallRequest) (*CallResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Call not implemented")
}
func (UnimplementedNebulaServiceServer) NewFilter(context.Context, *NewFilterRequest) (*NewFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NewFilter not implemented")
}
func (UnimplementedNebulaServiceServer) NewBlockFilter(context.Context, *emptypb.Empty) (*NewBlockFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NewBlockFilter not implemented")
}
func (UnimplementedNebulaServiceServer) PendingTransactionFilter(context.Context, *emptypb.Empty) (*PendingTransactionFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PendingTransactionFilter not implemented")
}
func (UnimplementedNebulaServiceServer) UninstallFilter(context.Context, *UninstallFilterRequest) (*UninstallFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UninstallFilter not implemented")
}
func (UnimplementedNebulaServiceServer) FilterChanges(context.Context, *FilterChangesRequest) (*FilterChangesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FilterChanges not implemented")
}
func (UnimplementedNebulaServiceServer) FilterLogs(context.Context, *FilterLogsRequest) (*FilterLogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FilterLogs not implemented")
}
func (UnimplementedNebulaServiceServer) Logs(context.Context, *LogsRequest) (*LogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Logs not implemented")
}
func (UnimplementedNebulaServiceServer) mustEmbedUnimplementedNebulaServiceServer() {}
// UnsafeNebulaServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to NebulaServiceServer will
// result in compilation errors.
type UnsafeNebulaServiceServer interface {
mustEmbedUnimplementedNebulaServiceServer()
}
func RegisterNebulaServiceServer(s grpc.ServiceRegistrar, srv NebulaServiceServer) {
s.RegisterService(&NebulaService_ServiceDesc, srv)
}
func _NebulaService_Sha3_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Sha3Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Sha3(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Sha3",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Sha3(ctx, req.(*Sha3Request))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_NodeVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).NodeVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/NodeVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).NodeVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_NetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).NetVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/NetVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).NetVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_NetPeerCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).NetPeerCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/NetPeerCount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).NetPeerCount(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_ProtocolVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).ProtocolVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/ProtocolVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).ProtocolVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Syncing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Syncing(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Syncing",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Syncing(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Coinbase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Coinbase(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Coinbase",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Coinbase(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Mining_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Mining(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Mining",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Mining(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_HashRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).HashRate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/HashRate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).HashRate(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Accounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Accounts(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Accounts",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Accounts(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_GasPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).GasPrice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/GasPrice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).GasPrice(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_BlockNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).BlockNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/BlockNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).BlockNumber(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_BlockByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).BlockByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/BlockByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).BlockByHash(ctx, req.(*BlockByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_BlockByNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockByNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).BlockByNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/BlockByNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).BlockByNumber(ctx, req.(*BlockByNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_BlockTransactionCountByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockTransactionCountByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).BlockTransactionCountByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/BlockTransactionCountByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).BlockTransactionCountByHash(ctx, req.(*BlockTransactionCountByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_BlockTransactionCountByNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockTransactionCountByNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).BlockTransactionCountByNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/BlockTransactionCountByNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).BlockTransactionCountByNumber(ctx, req.(*BlockTransactionCountByNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_UncleCountByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleCountByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).UncleCountByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/UncleCountByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).UncleCountByHash(ctx, req.(*UncleCountByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_UncleCountByNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleCountByNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).UncleCountByNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/UncleCountByNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).UncleCountByNumber(ctx, req.(*UncleCountByNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_UncleByBlockHashAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleByBlockHashAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).UncleByBlockHashAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/UncleByBlockHashAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).UncleByBlockHashAndIndex(ctx, req.(*UncleByBlockHashAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_UncleByBlockNumberAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleByBlockNumberAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).UncleByBlockNumberAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/UncleByBlockNumberAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).UncleByBlockNumberAndIndex(ctx, req.(*UncleByBlockNumberAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Compilers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompilersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Compilers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Compilers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Compilers(ctx, req.(*CompilersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_CompileSolidity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompileSolidityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).CompileSolidity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/CompileSolidity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).CompileSolidity(ctx, req.(*CompileSolidityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_CompileLLL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompileLLLRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).CompileLLL(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/CompileLLL",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).CompileLLL(ctx, req.(*CompileLLLRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_CompileSerpent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompileSerpentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).CompileSerpent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/CompileSerpent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).CompileSerpent(ctx, req.(*CompileSerpentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EstimateGasRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).EstimateGas(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/EstimateGas",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).EstimateGas(ctx, req.(*EstimateGasRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_TransactionByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).TransactionByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/TransactionByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).TransactionByHash(ctx, req.(*TransactionByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_TransactionByBlockHashAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionByBlockHashAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).TransactionByBlockHashAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/TransactionByBlockHashAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).TransactionByBlockHashAndIndex(ctx, req.(*TransactionByBlockHashAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_TransactionByBlockNumberAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionByBlockNumberAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).TransactionByBlockNumberAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/TransactionByBlockNumberAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).TransactionByBlockNumberAndIndex(ctx, req.(*TransactionByBlockNumberAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_TransactionReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionReceiptRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).TransactionReceipt(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/TransactionReceipt",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).TransactionReceipt(ctx, req.(*TransactionReceiptRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BalanceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Balance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Balance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Balance(ctx, req.(*BalanceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Storage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StorageRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Storage(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Storage",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Storage(ctx, req.(*StorageRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Nonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NonceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Nonce(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Nonce",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Nonce(ctx, req.(*NonceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_RepeatedNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RepeatedNonceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).RepeatedNonce(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/RepeatedNonce",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).RepeatedNonce(ctx, req.(*RepeatedNonceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_TransactionCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionCountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).TransactionCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/TransactionCount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).TransactionCount(ctx, req.(*TransactionCountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_GetCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCodeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).GetCode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/GetCode",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).GetCode(ctx, req.(*GetCodeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SignRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Sign(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Sign",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Sign(ctx, req.(*SignRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_SignTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SignTransactionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).SignTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/SignTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).SignTransaction(ctx, req.(*SignTransactionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_SendTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendTransactionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).SendTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/SendTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).SendTransaction(ctx, req.(*SendTransactionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendRawTransactionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).SendRawTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/SendRawTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).SendRawTransaction(ctx, req.(*SendRawTransactionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CallRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Call(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Call",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Call(ctx, req.(*CallRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_NewFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NewFilterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).NewFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/NewFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).NewFilter(ctx, req.(*NewFilterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_NewBlockFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).NewBlockFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/NewBlockFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).NewBlockFilter(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_PendingTransactionFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).PendingTransactionFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/PendingTransactionFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).PendingTransactionFilter(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_UninstallFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UninstallFilterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).UninstallFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/UninstallFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).UninstallFilter(ctx, req.(*UninstallFilterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_FilterChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FilterChangesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).FilterChanges(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/FilterChanges",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).FilterChanges(ctx, req.(*FilterChangesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_FilterLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FilterLogsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).FilterLogs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/FilterLogs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).FilterLogs(ctx, req.(*FilterLogsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NebulaService_Logs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NebulaServiceServer).Logs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethrpc.v1.NebulaService/Logs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NebulaServiceServer).Logs(ctx, req.(*LogsRequest))
}
return interceptor(ctx, in, info, handler)
}
// NebulaService_ServiceDesc is the grpc.ServiceDesc for NebulaService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var NebulaService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "ethrpc.v1.NebulaService",
HandlerType: (*NebulaServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Sha3",
Handler: _NebulaService_Sha3_Handler,
},
{
MethodName: "NodeVersion",
Handler: _NebulaService_NodeVersion_Handler,
},
{
MethodName: "NetVersion",
Handler: _NebulaService_NetVersion_Handler,
},
{
MethodName: "NetPeerCount",
Handler: _NebulaService_NetPeerCount_Handler,
},
{
MethodName: "ProtocolVersion",
Handler: _NebulaService_ProtocolVersion_Handler,
},
{
MethodName: "Syncing",
Handler: _NebulaService_Syncing_Handler,
},
{
MethodName: "Coinbase",
Handler: _NebulaService_Coinbase_Handler,
},
{
MethodName: "Mining",
Handler: _NebulaService_Mining_Handler,
},
{
MethodName: "HashRate",
Handler: _NebulaService_HashRate_Handler,
},
{
MethodName: "Accounts",
Handler: _NebulaService_Accounts_Handler,
},
{
MethodName: "GasPrice",
Handler: _NebulaService_GasPrice_Handler,
},
{
MethodName: "BlockNumber",
Handler: _NebulaService_BlockNumber_Handler,
},
{
MethodName: "BlockByHash",
Handler: _NebulaService_BlockByHash_Handler,
},
{
MethodName: "BlockByNumber",
Handler: _NebulaService_BlockByNumber_Handler,
},
{
MethodName: "BlockTransactionCountByHash",
Handler: _NebulaService_BlockTransactionCountByHash_Handler,
},
{
MethodName: "BlockTransactionCountByNumber",
Handler: _NebulaService_BlockTransactionCountByNumber_Handler,
},
{
MethodName: "UncleCountByHash",
Handler: _NebulaService_UncleCountByHash_Handler,
},
{
MethodName: "UncleCountByNumber",
Handler: _NebulaService_UncleCountByNumber_Handler,
},
{
MethodName: "UncleByBlockHashAndIndex",
Handler: _NebulaService_UncleByBlockHashAndIndex_Handler,
},
{
MethodName: "UncleByBlockNumberAndIndex",
Handler: _NebulaService_UncleByBlockNumberAndIndex_Handler,
},
{
MethodName: "Compilers",
Handler: _NebulaService_Compilers_Handler,
},
{
MethodName: "CompileSolidity",
Handler: _NebulaService_CompileSolidity_Handler,
},
{
MethodName: "CompileLLL",
Handler: _NebulaService_CompileLLL_Handler,
},
{
MethodName: "CompileSerpent",
Handler: _NebulaService_CompileSerpent_Handler,
},
{
MethodName: "EstimateGas",
Handler: _NebulaService_EstimateGas_Handler,
},
{
MethodName: "TransactionByHash",
Handler: _NebulaService_TransactionByHash_Handler,
},
{
MethodName: "TransactionByBlockHashAndIndex",
Handler: _NebulaService_TransactionByBlockHashAndIndex_Handler,
},
{
MethodName: "TransactionByBlockNumberAndIndex",
Handler: _NebulaService_TransactionByBlockNumberAndIndex_Handler,
},
{
MethodName: "TransactionReceipt",
Handler: _NebulaService_TransactionReceipt_Handler,
},
{
MethodName: "Balance",
Handler: _NebulaService_Balance_Handler,
},
{
MethodName: "Storage",
Handler: _NebulaService_Storage_Handler,
},
{
MethodName: "Nonce",
Handler: _NebulaService_Nonce_Handler,
},
{
MethodName: "RepeatedNonce",
Handler: _NebulaService_RepeatedNonce_Handler,
},
{
MethodName: "TransactionCount",
Handler: _NebulaService_TransactionCount_Handler,
},
{
MethodName: "GetCode",
Handler: _NebulaService_GetCode_Handler,
},
{
MethodName: "Sign",
Handler: _NebulaService_Sign_Handler,
},
{
MethodName: "SignTransaction",
Handler: _NebulaService_SignTransaction_Handler,
},
{
MethodName: "SendTransaction",
Handler: _NebulaService_SendTransaction_Handler,
},
{
MethodName: "SendRawTransaction",
Handler: _NebulaService_SendRawTransaction_Handler,
},
{
MethodName: "Call",
Handler: _NebulaService_Call_Handler,
},
{
MethodName: "NewFilter",
Handler: _NebulaService_NewFilter_Handler,
},
{
MethodName: "NewBlockFilter",
Handler: _NebulaService_NewBlockFilter_Handler,
},
{
MethodName: "PendingTransactionFilter",
Handler: _NebulaService_PendingTransactionFilter_Handler,
},
{
MethodName: "UninstallFilter",
Handler: _NebulaService_UninstallFilter_Handler,
},
{
MethodName: "FilterChanges",
Handler: _NebulaService_FilterChanges_Handler,
},
{
MethodName: "FilterLogs",
Handler: _NebulaService_FilterLogs_Handler,
},
{
MethodName: "Logs",
Handler: _NebulaService_Logs_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "ethrpc/v1/service.proto",
}
...@@ -328,6 +328,176 @@ func (x *SubscribeMsgResponse) GetSuccess() bool { ...@@ -328,6 +328,176 @@ func (x *SubscribeMsgResponse) GetSuccess() bool {
return false return false
} }
type NetVersionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *NetVersionRequest) Reset() {
*x = NetVersionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_p2p_v1_request_response_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetVersionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetVersionRequest) ProtoMessage() {}
func (x *NetVersionRequest) ProtoReflect() protoreflect.Message {
mi := &file_p2p_v1_request_response_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetVersionRequest.ProtoReflect.Descriptor instead.
func (*NetVersionRequest) Descriptor() ([]byte, []int) {
return file_p2p_v1_request_response_proto_rawDescGZIP(), []int{6}
}
type NetVersionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Version []byte `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
}
func (x *NetVersionResponse) Reset() {
*x = NetVersionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_p2p_v1_request_response_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetVersionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetVersionResponse) ProtoMessage() {}
func (x *NetVersionResponse) ProtoReflect() protoreflect.Message {
mi := &file_p2p_v1_request_response_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetVersionResponse.ProtoReflect.Descriptor instead.
func (*NetVersionResponse) Descriptor() ([]byte, []int) {
return file_p2p_v1_request_response_proto_rawDescGZIP(), []int{7}
}
func (x *NetVersionResponse) GetVersion() []byte {
if x != nil {
return x.Version
}
return nil
}
type NetPeerCountRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *NetPeerCountRequest) Reset() {
*x = NetPeerCountRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_p2p_v1_request_response_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetPeerCountRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetPeerCountRequest) ProtoMessage() {}
func (x *NetPeerCountRequest) ProtoReflect() protoreflect.Message {
mi := &file_p2p_v1_request_response_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetPeerCountRequest.ProtoReflect.Descriptor instead.
func (*NetPeerCountRequest) Descriptor() ([]byte, []int) {
return file_p2p_v1_request_response_proto_rawDescGZIP(), []int{8}
}
type NetPeerCountResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PeerCount uint32 `protobuf:"varint,1,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"`
}
func (x *NetPeerCountResponse) Reset() {
*x = NetPeerCountResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_p2p_v1_request_response_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetPeerCountResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetPeerCountResponse) ProtoMessage() {}
func (x *NetPeerCountResponse) ProtoReflect() protoreflect.Message {
mi := &file_p2p_v1_request_response_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetPeerCountResponse.ProtoReflect.Descriptor instead.
func (*NetPeerCountResponse) Descriptor() ([]byte, []int) {
return file_p2p_v1_request_response_proto_rawDescGZIP(), []int{9}
}
func (x *NetPeerCountResponse) GetPeerCount() uint32 {
if x != nil {
return x.PeerCount
}
return 0
}
var File_p2p_v1_request_response_proto protoreflect.FileDescriptor var File_p2p_v1_request_response_proto protoreflect.FileDescriptor
var file_p2p_v1_request_response_proto_rawDesc = []byte{ var file_p2p_v1_request_response_proto_rawDesc = []byte{
...@@ -366,18 +536,27 @@ var file_p2p_v1_request_response_proto_rawDesc = []byte{ ...@@ -366,18 +536,27 @@ var file_p2p_v1_request_response_proto_rawDesc = []byte{
0x65, 0x73, 0x22, 0x30, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d,
0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75,
0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x42, 0xa8, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x32, 0x70, 0x63, 0x65, 0x73, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x4e, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69,
0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2e, 0x0a, 0x12, 0x4e, 0x65, 0x74,
0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x15, 0x0a, 0x13, 0x4e, 0x65, 0x74,
0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x22, 0x35, 0x0a, 0x14, 0x4e, 0x65, 0x74, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x76, 0x31, 0x3b, 0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x65, 0x65, 0x72,
0x06, 0x50, 0x32, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x06, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x65,
0xe2, 0x02, 0x12, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xa8, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e,
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x50, 0x32, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63,
0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74,
0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x70,
0x32, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58,
0x58, 0xaa, 0x02, 0x06, 0x50, 0x32, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x06, 0x50, 0x32, 0x70,
0x5c, 0x56, 0x31, 0xe2, 0x02, 0x12, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x50, 0x32, 0x70, 0x3a, 0x3a,
0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
...@@ -392,7 +571,7 @@ func file_p2p_v1_request_response_proto_rawDescGZIP() []byte { ...@@ -392,7 +571,7 @@ func file_p2p_v1_request_response_proto_rawDescGZIP() []byte {
return file_p2p_v1_request_response_proto_rawDescData return file_p2p_v1_request_response_proto_rawDescData
} }
var file_p2p_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_p2p_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_p2p_v1_request_response_proto_goTypes = []interface{}{ var file_p2p_v1_request_response_proto_goTypes = []interface{}{
(*BroadCastRequest)(nil), // 0: p2p.v1.BroadCastRequest (*BroadCastRequest)(nil), // 0: p2p.v1.BroadCastRequest
(*BroadCastResponse)(nil), // 1: p2p.v1.BroadCastResponse (*BroadCastResponse)(nil), // 1: p2p.v1.BroadCastResponse
...@@ -400,14 +579,18 @@ var file_p2p_v1_request_response_proto_goTypes = []interface{}{ ...@@ -400,14 +579,18 @@ var file_p2p_v1_request_response_proto_goTypes = []interface{}{
(*SendDataResponse)(nil), // 3: p2p.v1.SendDataResponse (*SendDataResponse)(nil), // 3: p2p.v1.SendDataResponse
(*SubscribeMsgRequest)(nil), // 4: p2p.v1.SubscribeMsgRequest (*SubscribeMsgRequest)(nil), // 4: p2p.v1.SubscribeMsgRequest
(*SubscribeMsgResponse)(nil), // 5: p2p.v1.SubscribeMsgResponse (*SubscribeMsgResponse)(nil), // 5: p2p.v1.SubscribeMsgResponse
(*MessageHeader)(nil), // 6: p2p.v1.MessageHeader (*NetVersionRequest)(nil), // 6: p2p.v1.NetVersionRequest
(P2PMsgType)(0), // 7: p2p.v1.P2PMsgType (*NetVersionResponse)(nil), // 7: p2p.v1.NetVersionResponse
(*NetPeerCountRequest)(nil), // 8: p2p.v1.NetPeerCountRequest
(*NetPeerCountResponse)(nil), // 9: p2p.v1.NetPeerCountResponse
(*MessageHeader)(nil), // 10: p2p.v1.MessageHeader
(P2PMsgType)(0), // 11: p2p.v1.P2PMsgType
} }
var file_p2p_v1_request_response_proto_depIdxs = []int32{ var file_p2p_v1_request_response_proto_depIdxs = []int32{
6, // 0: p2p.v1.BroadCastRequest.header:type_name -> p2p.v1.MessageHeader 10, // 0: p2p.v1.BroadCastRequest.header:type_name -> p2p.v1.MessageHeader
6, // 1: p2p.v1.SendDataRequest.header:type_name -> p2p.v1.MessageHeader 10, // 1: p2p.v1.SendDataRequest.header:type_name -> p2p.v1.MessageHeader
6, // 2: p2p.v1.SubscribeMsgRequest.header:type_name -> p2p.v1.MessageHeader 10, // 2: p2p.v1.SubscribeMsgRequest.header:type_name -> p2p.v1.MessageHeader
7, // 3: p2p.v1.SubscribeMsgRequest.msg_types:type_name -> p2p.v1.P2PMsgType 11, // 3: p2p.v1.SubscribeMsgRequest.msg_types:type_name -> p2p.v1.P2PMsgType
4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension type_name
...@@ -494,6 +677,54 @@ func file_p2p_v1_request_response_proto_init() { ...@@ -494,6 +677,54 @@ func file_p2p_v1_request_response_proto_init() {
return nil return nil
} }
} }
file_p2p_v1_request_response_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NetVersionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_p2p_v1_request_response_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NetVersionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_p2p_v1_request_response_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NetPeerCountRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_p2p_v1_request_response_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NetPeerCountResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
...@@ -501,7 +732,7 @@ func file_p2p_v1_request_response_proto_init() { ...@@ -501,7 +732,7 @@ func file_p2p_v1_request_response_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_p2p_v1_request_response_proto_rawDesc, RawDescriptor: file_p2p_v1_request_response_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 6, NumMessages: 10,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
......
...@@ -9,6 +9,7 @@ package p2pv1 ...@@ -9,6 +9,7 @@ package p2pv1
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect" reflect "reflect"
) )
...@@ -25,51 +26,69 @@ var file_p2p_v1_service_proto_rawDesc = []byte{ ...@@ -25,51 +26,69 @@ var file_p2p_v1_service_proto_rawDesc = []byte{
0x0a, 0x14, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x0a, 0x14, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x1d,
0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe0, 0x01, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67,
0x0a, 0x0a, 0x50, 0x32, 0x50, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65,
0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x2e, 0x70, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xec, 0x02, 0x0a, 0x0a, 0x50,
0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x43, 0x61, 0x73, 0x74, 0x52, 0x32, 0x50, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x42, 0x72, 0x6f,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x2e, 0x70, 0x32, 0x70, 0x2e,
0x42, 0x72, 0x6f, 0x61, 0x64, 0x43, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x43, 0x61, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x6f,
0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x61, 0x61, 0x64, 0x43, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x12, 0x3e, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x70, 0x32,
0x2e, 0x53, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71,
0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
0x4d, 0x73, 0x67, 0x12, 0x1b, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x73, 0x67,
0x1a, 0x1c, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x12, 0x1b, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
0x69, 0x62, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x69, 0x62, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
0x42, 0xa0, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x46, 0x0a,
0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x0c, 0x4e, 0x65, 0x74, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x2e,
0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4e,
0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0a, 0x4e, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73,
0x58, 0x58, 0xaa, 0x02, 0x06, 0x50, 0x32, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x06, 0x50, 0x32, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x12, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x70, 0x32,
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x50, 0x32, 0x70, 0x3a, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xa0, 0x01, 0x0a, 0x0a, 0x63, 0x6f,
0x6d, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74,
0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d,
0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x3b,
0x70, 0x32, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x50, 0x32,
0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x06, 0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x12,
0x50, 0x32, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x07, 0x50, 0x32, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
} }
var file_p2p_v1_service_proto_goTypes = []interface{}{ var file_p2p_v1_service_proto_goTypes = []interface{}{
(*BroadCastRequest)(nil), // 0: p2p.v1.BroadCastRequest (*BroadCastRequest)(nil), // 0: p2p.v1.BroadCastRequest
(*SendDataRequest)(nil), // 1: p2p.v1.SendDataRequest (*SendDataRequest)(nil), // 1: p2p.v1.SendDataRequest
(*SubscribeMsgRequest)(nil), // 2: p2p.v1.SubscribeMsgRequest (*SubscribeMsgRequest)(nil), // 2: p2p.v1.SubscribeMsgRequest
(*BroadCastResponse)(nil), // 3: p2p.v1.BroadCastResponse (*emptypb.Empty)(nil), // 3: google.protobuf.Empty
(*SendDataResponse)(nil), // 4: p2p.v1.SendDataResponse (*BroadCastResponse)(nil), // 4: p2p.v1.BroadCastResponse
(*SubscribeMsgResponse)(nil), // 5: p2p.v1.SubscribeMsgResponse (*SendDataResponse)(nil), // 5: p2p.v1.SendDataResponse
(*SubscribeMsgResponse)(nil), // 6: p2p.v1.SubscribeMsgResponse
(*NetPeerCountResponse)(nil), // 7: p2p.v1.NetPeerCountResponse
(*NetVersionResponse)(nil), // 8: p2p.v1.NetVersionResponse
} }
var file_p2p_v1_service_proto_depIdxs = []int32{ var file_p2p_v1_service_proto_depIdxs = []int32{
0, // 0: p2p.v1.P2PService.BroadcastMsg:input_type -> p2p.v1.BroadCastRequest 0, // 0: p2p.v1.P2PService.BroadcastMsg:input_type -> p2p.v1.BroadCastRequest
1, // 1: p2p.v1.P2PService.SendMsg:input_type -> p2p.v1.SendDataRequest 1, // 1: p2p.v1.P2PService.SendMsg:input_type -> p2p.v1.SendDataRequest
2, // 2: p2p.v1.P2PService.SubscribeMsg:input_type -> p2p.v1.SubscribeMsgRequest 2, // 2: p2p.v1.P2PService.SubscribeMsg:input_type -> p2p.v1.SubscribeMsgRequest
3, // 3: p2p.v1.P2PService.BroadcastMsg:output_type -> p2p.v1.BroadCastResponse 3, // 3: p2p.v1.P2PService.NetPeerCount:input_type -> google.protobuf.Empty
4, // 4: p2p.v1.P2PService.SendMsg:output_type -> p2p.v1.SendDataResponse 3, // 4: p2p.v1.P2PService.NetVersion:input_type -> google.protobuf.Empty
5, // 5: p2p.v1.P2PService.SubscribeMsg:output_type -> p2p.v1.SubscribeMsgResponse 4, // 5: p2p.v1.P2PService.BroadcastMsg:output_type -> p2p.v1.BroadCastResponse
3, // [3:6] is the sub-list for method output_type 5, // 6: p2p.v1.P2PService.SendMsg:output_type -> p2p.v1.SendDataResponse
0, // [0:3] is the sub-list for method input_type 6, // 7: p2p.v1.P2PService.SubscribeMsg:output_type -> p2p.v1.SubscribeMsgResponse
7, // 8: p2p.v1.P2PService.NetPeerCount:output_type -> p2p.v1.NetPeerCountResponse
8, // 9: p2p.v1.P2PService.NetVersion:output_type -> p2p.v1.NetVersionResponse
5, // [5:10] is the sub-list for method output_type
0, // [0:5] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
......
...@@ -11,6 +11,7 @@ import ( ...@@ -11,6 +11,7 @@ import (
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
) )
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
...@@ -25,6 +26,9 @@ type P2PServiceClient interface { ...@@ -25,6 +26,9 @@ type P2PServiceClient interface {
BroadcastMsg(ctx context.Context, in *BroadCastRequest, opts ...grpc.CallOption) (*BroadCastResponse, error) BroadcastMsg(ctx context.Context, in *BroadCastRequest, opts ...grpc.CallOption) (*BroadCastResponse, error)
SendMsg(ctx context.Context, in *SendDataRequest, opts ...grpc.CallOption) (*SendDataResponse, error) SendMsg(ctx context.Context, in *SendDataRequest, opts ...grpc.CallOption) (*SendDataResponse, error)
SubscribeMsg(ctx context.Context, in *SubscribeMsgRequest, opts ...grpc.CallOption) (*SubscribeMsgResponse, error) SubscribeMsg(ctx context.Context, in *SubscribeMsgRequest, opts ...grpc.CallOption) (*SubscribeMsgResponse, error)
// network info service
NetPeerCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetPeerCountResponse, error)
NetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetVersionResponse, error)
} }
type p2PServiceClient struct { type p2PServiceClient struct {
...@@ -62,6 +66,24 @@ func (c *p2PServiceClient) SubscribeMsg(ctx context.Context, in *SubscribeMsgReq ...@@ -62,6 +66,24 @@ func (c *p2PServiceClient) SubscribeMsg(ctx context.Context, in *SubscribeMsgReq
return out, nil return out, nil
} }
func (c *p2PServiceClient) NetPeerCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetPeerCountResponse, error) {
out := new(NetPeerCountResponse)
err := c.cc.Invoke(ctx, "/p2p.v1.P2PService/NetPeerCount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *p2PServiceClient) NetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetVersionResponse, error) {
out := new(NetVersionResponse)
err := c.cc.Invoke(ctx, "/p2p.v1.P2PService/NetVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// P2PServiceServer is the server API for P2PService service. // P2PServiceServer is the server API for P2PService service.
// All implementations must embed UnimplementedP2PServiceServer // All implementations must embed UnimplementedP2PServiceServer
// for forward compatibility // for forward compatibility
...@@ -69,6 +91,9 @@ type P2PServiceServer interface { ...@@ -69,6 +91,9 @@ type P2PServiceServer interface {
BroadcastMsg(context.Context, *BroadCastRequest) (*BroadCastResponse, error) BroadcastMsg(context.Context, *BroadCastRequest) (*BroadCastResponse, error)
SendMsg(context.Context, *SendDataRequest) (*SendDataResponse, error) SendMsg(context.Context, *SendDataRequest) (*SendDataResponse, error)
SubscribeMsg(context.Context, *SubscribeMsgRequest) (*SubscribeMsgResponse, error) SubscribeMsg(context.Context, *SubscribeMsgRequest) (*SubscribeMsgResponse, error)
// network info service
NetPeerCount(context.Context, *emptypb.Empty) (*NetPeerCountResponse, error)
NetVersion(context.Context, *emptypb.Empty) (*NetVersionResponse, error)
mustEmbedUnimplementedP2PServiceServer() mustEmbedUnimplementedP2PServiceServer()
} }
...@@ -85,6 +110,12 @@ func (UnimplementedP2PServiceServer) SendMsg(context.Context, *SendDataRequest) ...@@ -85,6 +110,12 @@ func (UnimplementedP2PServiceServer) SendMsg(context.Context, *SendDataRequest)
func (UnimplementedP2PServiceServer) SubscribeMsg(context.Context, *SubscribeMsgRequest) (*SubscribeMsgResponse, error) { func (UnimplementedP2PServiceServer) SubscribeMsg(context.Context, *SubscribeMsgRequest) (*SubscribeMsgResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubscribeMsg not implemented") return nil, status.Errorf(codes.Unimplemented, "method SubscribeMsg not implemented")
} }
func (UnimplementedP2PServiceServer) NetPeerCount(context.Context, *emptypb.Empty) (*NetPeerCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NetPeerCount not implemented")
}
func (UnimplementedP2PServiceServer) NetVersion(context.Context, *emptypb.Empty) (*NetVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NetVersion not implemented")
}
func (UnimplementedP2PServiceServer) mustEmbedUnimplementedP2PServiceServer() {} func (UnimplementedP2PServiceServer) mustEmbedUnimplementedP2PServiceServer() {}
// UnsafeP2PServiceServer may be embedded to opt out of forward compatibility for this service. // UnsafeP2PServiceServer may be embedded to opt out of forward compatibility for this service.
...@@ -152,6 +183,42 @@ func _P2PService_SubscribeMsg_Handler(srv interface{}, ctx context.Context, dec ...@@ -152,6 +183,42 @@ func _P2PService_SubscribeMsg_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _P2PService_NetPeerCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).NetPeerCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/p2p.v1.P2PService/NetPeerCount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).NetPeerCount(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _P2PService_NetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).NetVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/p2p.v1.P2PService/NetVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).NetVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
// P2PService_ServiceDesc is the grpc.ServiceDesc for P2PService service. // P2PService_ServiceDesc is the grpc.ServiceDesc for P2PService service.
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
...@@ -171,6 +238,14 @@ var P2PService_ServiceDesc = grpc.ServiceDesc{ ...@@ -171,6 +238,14 @@ var P2PService_ServiceDesc = grpc.ServiceDesc{
MethodName: "SubscribeMsg", MethodName: "SubscribeMsg",
Handler: _P2PService_SubscribeMsg_Handler, Handler: _P2PService_SubscribeMsg_Handler,
}, },
{
MethodName: "NetPeerCount",
Handler: _P2PService_NetPeerCount_Handler,
},
{
MethodName: "NetVersion",
Handler: _P2PService_NetVersion_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "p2p/v1/service.proto", Metadata: "p2p/v1/service.proto",
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
package ringv1 package ringv1
import ( import (
v1 "github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1" _ "github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb" _ "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect" reflect "reflect"
) )
...@@ -33,441 +33,36 @@ var file_ring_v1_service_proto_rawDesc = []byte{ ...@@ -33,441 +33,36 @@ var file_ring_v1_service_proto_rawDesc = []byte{
0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72,
0x65, 0x71, 0x5f, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x61, 0x65, 0x71, 0x5f, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x61,
0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x32, 0x84, 0x1e, 0x0a, 0x0b, 0x52, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x6e, 0x0a, 0x0b, 0x52, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x53, 0x68, 0x61, 0x33, 0x12, 0x14, 0x2e, 0x72, 0x69, 0x63, 0x65, 0x12, 0x5f, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72,
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x33, 0x52, 0x65, 0x71, 0x75, 0x65, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x72, 0x69, 0x6e, 0x67,
0x73, 0x74, 0x1a, 0x15, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x33, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0b, 0x4e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e,
0x6f, 0x64, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x73, 0x65, 0x22, 0x00, 0x42, 0xa7, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x69, 0x6e,
0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f,
0x22, 0x00, 0x12, 0x43, 0x0a, 0x0a, 0x4e, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70,
0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x50, 0x65, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x69, 0x6e,
0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x52, 0x69, 0x6e, 0x67,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x52, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13,
0x1d, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x50, 0x65, 0x65, 0x52, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
0x12, 0x4d, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x72, 0x69,
0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x3d, 0x0a, 0x07, 0x53, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x1a, 0x18, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e,
0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f,
0x0a, 0x08, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x1a, 0x19, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69,
0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x3b, 0x0a, 0x06, 0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x1a, 0x17, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x69,
0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x08,
0x48, 0x61, 0x73, 0x68, 0x52, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x1a, 0x19, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x52,
0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a,
0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x1a, 0x19, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f,
0x0a, 0x08, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x1a, 0x19, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x73,
0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x40, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
0x2e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68,
0x12, 0x1b, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48,
0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a,
0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79,
0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x4e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x7a, 0x0a, 0x1b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2b,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72,
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79,
0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x69,
0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73,
0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x80, 0x01, 0x0a, 0x1d,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2d, 0x2e,
0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x72,
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59,
0x0a, 0x10, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61,
0x73, 0x68, 0x12, 0x20, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63,
0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55,
0x6e, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x12, 0x55, 0x6e, 0x63,
0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
0x22, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e,
0x63, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x18, 0x55, 0x6e,
0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e,
0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x28, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73,
0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x29, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65,
0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x77, 0x0a,
0x1a, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2a, 0x2e, 0x72, 0x69,
0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f,
0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
0x31, 0x2e, 0x55, 0x6e, 0x63, 0x6c, 0x65, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
0x65, 0x72, 0x73, 0x12, 0x19, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f,
0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x12,
0x1f, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
0x65, 0x53, 0x6f, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x20, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69,
0x6c, 0x65, 0x53, 0x6f, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x4c,
0x4c, 0x4c, 0x12, 0x1a, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d,
0x70, 0x69, 0x6c, 0x65, 0x4c, 0x4c, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
0x4c, 0x4c, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a,
0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x70, 0x65, 0x6e, 0x74, 0x12,
0x1e, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
0x65, 0x53, 0x65, 0x72, 0x70, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1f, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
0x65, 0x53, 0x65, 0x72, 0x70, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x47, 0x61,
0x73, 0x12, 0x1b, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69,
0x6d, 0x61, 0x74, 0x65, 0x47, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74,
0x65, 0x47, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5c,
0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x48,
0x61, 0x73, 0x68, 0x12, 0x21, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72,
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x48, 0x61,
0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x83, 0x01, 0x0a,
0x1e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c,
0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12,
0x2e, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2f, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x00, 0x12, 0x89, 0x01, 0x0a, 0x20, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41,
0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x30, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x42,
0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x64,
0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x69, 0x6e, 0x67,
0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x49,
0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f,
0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63,
0x65, 0x69, 0x70, 0x74, 0x12, 0x22, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e,
0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x3e, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x2e, 0x72, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x3e, 0x0a, 0x07, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x17, 0x2e, 0x72, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,
0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x38, 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x15, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e,
0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x16, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x52, 0x65, 0x70,
0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x6e,
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x72, 0x69, 0x6e, 0x67,
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
0x20, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x21, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e,
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64,
0x65, 0x12, 0x17, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43,
0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x04, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x14,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53,
0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a,
0x0f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x1f, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x20, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x1a, 0x20, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x72, 0x69,
0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x23, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61,
0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x14,
0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a,
0x09, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x72, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e,
0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x46,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e,
0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x12, 0x5f, 0x0a, 0x18, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
0x6d, 0x70, 0x74, 0x79, 0x1a, 0x29, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50,
0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x56, 0x0a, 0x0f, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55,
0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e,
0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x46, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x72, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x72, 0x69, 0x6e, 0x67,
0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x46,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1a, 0x2e, 0x72, 0x69, 0x6e, 0x67,
0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e,
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x14, 0x2e, 0x72,
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x15, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xa7, 0x01, 0x0a, 0x0b,
0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73,
0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67,
0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x69, 0x6e, 0x67,
0x2f, 0x76, 0x31, 0x3b, 0x72, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58,
0xaa, 0x02, 0x07, 0x52, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x52, 0x69, 0x6e,
0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x52, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x69, 0x6e,
0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var file_ring_v1_service_proto_goTypes = []interface{}{ var file_ring_v1_service_proto_goTypes = []interface{}{
(*Sha3Request)(nil), // 0: ring.v1.Sha3Request (*SendRawTransactionRequest)(nil), // 0: ring.v1.SendRawTransactionRequest
(*emptypb.Empty)(nil), // 1: google.protobuf.Empty (*SendRawTransactionResponse)(nil), // 1: ring.v1.SendRawTransactionResponse
(*BlockByHashRequest)(nil), // 2: ring.v1.BlockByHashRequest
(*BlockByNumberRequest)(nil), // 3: ring.v1.BlockByNumberRequest
(*BlockTransactionCountByHashRequest)(nil), // 4: ring.v1.BlockTransactionCountByHashRequest
(*BlockTransactionCountByNumberRequest)(nil), // 5: ring.v1.BlockTransactionCountByNumberRequest
(*UncleCountByHashRequest)(nil), // 6: ring.v1.UncleCountByHashRequest
(*UncleCountByNumberRequest)(nil), // 7: ring.v1.UncleCountByNumberRequest
(*UncleByBlockHashAndIndexRequest)(nil), // 8: ring.v1.UncleByBlockHashAndIndexRequest
(*UncleByBlockNumberAndIndexRequest)(nil), // 9: ring.v1.UncleByBlockNumberAndIndexRequest
(*CompilersRequest)(nil), // 10: ring.v1.CompilersRequest
(*CompileSolidityRequest)(nil), // 11: ring.v1.CompileSolidityRequest
(*CompileLLLRequest)(nil), // 12: ring.v1.CompileLLLRequest
(*CompileSerpentRequest)(nil), // 13: ring.v1.CompileSerpentRequest
(*EstimateGasRequest)(nil), // 14: ring.v1.EstimateGasRequest
(*TransactionByHashRequest)(nil), // 15: ring.v1.TransactionByHashRequest
(*TransactionByBlockHashAndIndexRequest)(nil), // 16: ring.v1.TransactionByBlockHashAndIndexRequest
(*TransactionByBlockNumberAndIndexRequest)(nil), // 17: ring.v1.TransactionByBlockNumberAndIndexRequest
(*TransactionReceiptRequest)(nil), // 18: ring.v1.TransactionReceiptRequest
(*BalanceRequest)(nil), // 19: ring.v1.BalanceRequest
(*StorageRequest)(nil), // 20: ring.v1.StorageRequest
(*NonceRequest)(nil), // 21: ring.v1.NonceRequest
(*RepeatedNonceRequest)(nil), // 22: ring.v1.RepeatedNonceRequest
(*TransactionCountRequest)(nil), // 23: ring.v1.TransactionCountRequest
(*GetCodeRequest)(nil), // 24: ring.v1.GetCodeRequest
(*SignRequest)(nil), // 25: ring.v1.SignRequest
(*SignTransactionRequest)(nil), // 26: ring.v1.SignTransactionRequest
(*v1.EthTransaction)(nil), // 27: base.v1.EthTransaction
(*SendRawTransactionRequest)(nil), // 28: ring.v1.SendRawTransactionRequest
(*CallRequest)(nil), // 29: ring.v1.CallRequest
(*NewFilterRequest)(nil), // 30: ring.v1.NewFilterRequest
(*UninstallFilterRequest)(nil), // 31: ring.v1.UninstallFilterRequest
(*FilterChangesRequest)(nil), // 32: ring.v1.FilterChangesRequest
(*FilterLogsRequest)(nil), // 33: ring.v1.FilterLogsRequest
(*LogsRequest)(nil), // 34: ring.v1.LogsRequest
(*Sha3Response)(nil), // 35: ring.v1.Sha3Response
(*NodeVersionResponse)(nil), // 36: ring.v1.NodeVersionResponse
(*NetVersionResponse)(nil), // 37: ring.v1.NetVersionResponse
(*NetPeerCountResponse)(nil), // 38: ring.v1.NetPeerCountResponse
(*ProtocolVersionResponse)(nil), // 39: ring.v1.ProtocolVersionResponse
(*SyncingResponse)(nil), // 40: ring.v1.SyncingResponse
(*CoinbaseResponse)(nil), // 41: ring.v1.CoinbaseResponse
(*MiningResponse)(nil), // 42: ring.v1.MiningResponse
(*HashRateResponse)(nil), // 43: ring.v1.HashRateResponse
(*AccountsResponse)(nil), // 44: ring.v1.AccountsResponse
(*GasPriceResponse)(nil), // 45: ring.v1.GasPriceResponse
(*HeightResponse)(nil), // 46: ring.v1.HeightResponse
(*BlockByHashResponse)(nil), // 47: ring.v1.BlockByHashResponse
(*BlockByNumberResponse)(nil), // 48: ring.v1.BlockByNumberResponse
(*BlockTransactionCountByHashResponse)(nil), // 49: ring.v1.BlockTransactionCountByHashResponse
(*BlockTransactionCountByNumberResponse)(nil), // 50: ring.v1.BlockTransactionCountByNumberResponse
(*UncleCountByHashResponse)(nil), // 51: ring.v1.UncleCountByHashResponse
(*UncleCountByNumberResponse)(nil), // 52: ring.v1.UncleCountByNumberResponse
(*UncleByBlockHashAndIndexResponse)(nil), // 53: ring.v1.UncleByBlockHashAndIndexResponse
(*UncleByBlockNumberAndIndexResponse)(nil), // 54: ring.v1.UncleByBlockNumberAndIndexResponse
(*CompilersResponse)(nil), // 55: ring.v1.CompilersResponse
(*CompileSolidityResponse)(nil), // 56: ring.v1.CompileSolidityResponse
(*CompileLLLResponse)(nil), // 57: ring.v1.CompileLLLResponse
(*CompileSerpentResponse)(nil), // 58: ring.v1.CompileSerpentResponse
(*EstimateGasResponse)(nil), // 59: ring.v1.EstimateGasResponse
(*TransactionByHashResponse)(nil), // 60: ring.v1.TransactionByHashResponse
(*TransactionByBlockHashAndIndexResponse)(nil), // 61: ring.v1.TransactionByBlockHashAndIndexResponse
(*TransactionByBlockNumberAndIndexResponse)(nil), // 62: ring.v1.TransactionByBlockNumberAndIndexResponse
(*TransactionReceiptResponse)(nil), // 63: ring.v1.TransactionReceiptResponse
(*BalanceResponse)(nil), // 64: ring.v1.BalanceResponse
(*StorageResponse)(nil), // 65: ring.v1.StorageResponse
(*NonceResponse)(nil), // 66: ring.v1.NonceResponse
(*RepeatedNonceResponse)(nil), // 67: ring.v1.RepeatedNonceResponse
(*TransactionCountResponse)(nil), // 68: ring.v1.TransactionCountResponse
(*GetCodeResponse)(nil), // 69: ring.v1.GetCodeResponse
(*SignResponse)(nil), // 70: ring.v1.SignResponse
(*SignTransactionResponse)(nil), // 71: ring.v1.SignTransactionResponse
(*SendTransactionResponse)(nil), // 72: ring.v1.SendTransactionResponse
(*SendRawTransactionResponse)(nil), // 73: ring.v1.SendRawTransactionResponse
(*CallResponse)(nil), // 74: ring.v1.CallResponse
(*NewFilterResponse)(nil), // 75: ring.v1.NewFilterResponse
(*NewBlockFilterResponse)(nil), // 76: ring.v1.NewBlockFilterResponse
(*PendingTransactionFilterResponse)(nil), // 77: ring.v1.PendingTransactionFilterResponse
(*UninstallFilterResponse)(nil), // 78: ring.v1.UninstallFilterResponse
(*FilterChangesResponse)(nil), // 79: ring.v1.FilterChangesResponse
(*FilterLogsResponse)(nil), // 80: ring.v1.FilterLogsResponse
(*LogsResponse)(nil), // 81: ring.v1.LogsResponse
} }
var file_ring_v1_service_proto_depIdxs = []int32{ var file_ring_v1_service_proto_depIdxs = []int32{
0, // 0: ring.v1.RingService.Sha3:input_type -> ring.v1.Sha3Request 0, // 0: ring.v1.RingService.SendRawTransaction:input_type -> ring.v1.SendRawTransactionRequest
1, // 1: ring.v1.RingService.NodeVersion:input_type -> google.protobuf.Empty 1, // 1: ring.v1.RingService.SendRawTransaction:output_type -> ring.v1.SendRawTransactionResponse
1, // 2: ring.v1.RingService.NetVersion:input_type -> google.protobuf.Empty 1, // [1:2] is the sub-list for method output_type
1, // 3: ring.v1.RingService.NetPeerCount:input_type -> google.protobuf.Empty 0, // [0:1] is the sub-list for method input_type
1, // 4: ring.v1.RingService.ProtocolVersion:input_type -> google.protobuf.Empty
1, // 5: ring.v1.RingService.Syncing:input_type -> google.protobuf.Empty
1, // 6: ring.v1.RingService.Coinbase:input_type -> google.protobuf.Empty
1, // 7: ring.v1.RingService.Mining:input_type -> google.protobuf.Empty
1, // 8: ring.v1.RingService.HashRate:input_type -> google.protobuf.Empty
1, // 9: ring.v1.RingService.Accounts:input_type -> google.protobuf.Empty
1, // 10: ring.v1.RingService.GasPrice:input_type -> google.protobuf.Empty
1, // 11: ring.v1.RingService.BlockNumber:input_type -> google.protobuf.Empty
2, // 12: ring.v1.RingService.BlockByHash:input_type -> ring.v1.BlockByHashRequest
3, // 13: ring.v1.RingService.BlockByNumber:input_type -> ring.v1.BlockByNumberRequest
4, // 14: ring.v1.RingService.BlockTransactionCountByHash:input_type -> ring.v1.BlockTransactionCountByHashRequest
5, // 15: ring.v1.RingService.BlockTransactionCountByNumber:input_type -> ring.v1.BlockTransactionCountByNumberRequest
6, // 16: ring.v1.RingService.UncleCountByHash:input_type -> ring.v1.UncleCountByHashRequest
7, // 17: ring.v1.RingService.UncleCountByNumber:input_type -> ring.v1.UncleCountByNumberRequest
8, // 18: ring.v1.RingService.UncleByBlockHashAndIndex:input_type -> ring.v1.UncleByBlockHashAndIndexRequest
9, // 19: ring.v1.RingService.UncleByBlockNumberAndIndex:input_type -> ring.v1.UncleByBlockNumberAndIndexRequest
10, // 20: ring.v1.RingService.Compilers:input_type -> ring.v1.CompilersRequest
11, // 21: ring.v1.RingService.CompileSolidity:input_type -> ring.v1.CompileSolidityRequest
12, // 22: ring.v1.RingService.CompileLLL:input_type -> ring.v1.CompileLLLRequest
13, // 23: ring.v1.RingService.CompileSerpent:input_type -> ring.v1.CompileSerpentRequest
14, // 24: ring.v1.RingService.EstimateGas:input_type -> ring.v1.EstimateGasRequest
15, // 25: ring.v1.RingService.TransactionByHash:input_type -> ring.v1.TransactionByHashRequest
16, // 26: ring.v1.RingService.TransactionByBlockHashAndIndex:input_type -> ring.v1.TransactionByBlockHashAndIndexRequest
17, // 27: ring.v1.RingService.TransactionByBlockNumberAndIndex:input_type -> ring.v1.TransactionByBlockNumberAndIndexRequest
18, // 28: ring.v1.RingService.TransactionReceipt:input_type -> ring.v1.TransactionReceiptRequest
19, // 29: ring.v1.RingService.Balance:input_type -> ring.v1.BalanceRequest
20, // 30: ring.v1.RingService.Storage:input_type -> ring.v1.StorageRequest
21, // 31: ring.v1.RingService.Nonce:input_type -> ring.v1.NonceRequest
22, // 32: ring.v1.RingService.RepeatedNonce:input_type -> ring.v1.RepeatedNonceRequest
23, // 33: ring.v1.RingService.TransactionCount:input_type -> ring.v1.TransactionCountRequest
24, // 34: ring.v1.RingService.GetCode:input_type -> ring.v1.GetCodeRequest
25, // 35: ring.v1.RingService.Sign:input_type -> ring.v1.SignRequest
26, // 36: ring.v1.RingService.SignTransaction:input_type -> ring.v1.SignTransactionRequest
27, // 37: ring.v1.RingService.SendTransaction:input_type -> base.v1.EthTransaction
28, // 38: ring.v1.RingService.SendRawTransaction:input_type -> ring.v1.SendRawTransactionRequest
29, // 39: ring.v1.RingService.Call:input_type -> ring.v1.CallRequest
30, // 40: ring.v1.RingService.NewFilter:input_type -> ring.v1.NewFilterRequest
1, // 41: ring.v1.RingService.NewBlockFilter:input_type -> google.protobuf.Empty
1, // 42: ring.v1.RingService.PendingTransactionFilter:input_type -> google.protobuf.Empty
31, // 43: ring.v1.RingService.UninstallFilter:input_type -> ring.v1.UninstallFilterRequest
32, // 44: ring.v1.RingService.FilterChanges:input_type -> ring.v1.FilterChangesRequest
33, // 45: ring.v1.RingService.FilterLogs:input_type -> ring.v1.FilterLogsRequest
34, // 46: ring.v1.RingService.Logs:input_type -> ring.v1.LogsRequest
35, // 47: ring.v1.RingService.Sha3:output_type -> ring.v1.Sha3Response
36, // 48: ring.v1.RingService.NodeVersion:output_type -> ring.v1.NodeVersionResponse
37, // 49: ring.v1.RingService.NetVersion:output_type -> ring.v1.NetVersionResponse
38, // 50: ring.v1.RingService.NetPeerCount:output_type -> ring.v1.NetPeerCountResponse
39, // 51: ring.v1.RingService.ProtocolVersion:output_type -> ring.v1.ProtocolVersionResponse
40, // 52: ring.v1.RingService.Syncing:output_type -> ring.v1.SyncingResponse
41, // 53: ring.v1.RingService.Coinbase:output_type -> ring.v1.CoinbaseResponse
42, // 54: ring.v1.RingService.Mining:output_type -> ring.v1.MiningResponse
43, // 55: ring.v1.RingService.HashRate:output_type -> ring.v1.HashRateResponse
44, // 56: ring.v1.RingService.Accounts:output_type -> ring.v1.AccountsResponse
45, // 57: ring.v1.RingService.GasPrice:output_type -> ring.v1.GasPriceResponse
46, // 58: ring.v1.RingService.BlockNumber:output_type -> ring.v1.HeightResponse
47, // 59: ring.v1.RingService.BlockByHash:output_type -> ring.v1.BlockByHashResponse
48, // 60: ring.v1.RingService.BlockByNumber:output_type -> ring.v1.BlockByNumberResponse
49, // 61: ring.v1.RingService.BlockTransactionCountByHash:output_type -> ring.v1.BlockTransactionCountByHashResponse
50, // 62: ring.v1.RingService.BlockTransactionCountByNumber:output_type -> ring.v1.BlockTransactionCountByNumberResponse
51, // 63: ring.v1.RingService.UncleCountByHash:output_type -> ring.v1.UncleCountByHashResponse
52, // 64: ring.v1.RingService.UncleCountByNumber:output_type -> ring.v1.UncleCountByNumberResponse
53, // 65: ring.v1.RingService.UncleByBlockHashAndIndex:output_type -> ring.v1.UncleByBlockHashAndIndexResponse
54, // 66: ring.v1.RingService.UncleByBlockNumberAndIndex:output_type -> ring.v1.UncleByBlockNumberAndIndexResponse
55, // 67: ring.v1.RingService.Compilers:output_type -> ring.v1.CompilersResponse
56, // 68: ring.v1.RingService.CompileSolidity:output_type -> ring.v1.CompileSolidityResponse
57, // 69: ring.v1.RingService.CompileLLL:output_type -> ring.v1.CompileLLLResponse
58, // 70: ring.v1.RingService.CompileSerpent:output_type -> ring.v1.CompileSerpentResponse
59, // 71: ring.v1.RingService.EstimateGas:output_type -> ring.v1.EstimateGasResponse
60, // 72: ring.v1.RingService.TransactionByHash:output_type -> ring.v1.TransactionByHashResponse
61, // 73: ring.v1.RingService.TransactionByBlockHashAndIndex:output_type -> ring.v1.TransactionByBlockHashAndIndexResponse
62, // 74: ring.v1.RingService.TransactionByBlockNumberAndIndex:output_type -> ring.v1.TransactionByBlockNumberAndIndexResponse
63, // 75: ring.v1.RingService.TransactionReceipt:output_type -> ring.v1.TransactionReceiptResponse
64, // 76: ring.v1.RingService.Balance:output_type -> ring.v1.BalanceResponse
65, // 77: ring.v1.RingService.Storage:output_type -> ring.v1.StorageResponse
66, // 78: ring.v1.RingService.Nonce:output_type -> ring.v1.NonceResponse
67, // 79: ring.v1.RingService.RepeatedNonce:output_type -> ring.v1.RepeatedNonceResponse
68, // 80: ring.v1.RingService.TransactionCount:output_type -> ring.v1.TransactionCountResponse
69, // 81: ring.v1.RingService.GetCode:output_type -> ring.v1.GetCodeResponse
70, // 82: ring.v1.RingService.Sign:output_type -> ring.v1.SignResponse
71, // 83: ring.v1.RingService.SignTransaction:output_type -> ring.v1.SignTransactionResponse
72, // 84: ring.v1.RingService.SendTransaction:output_type -> ring.v1.SendTransactionResponse
73, // 85: ring.v1.RingService.SendRawTransaction:output_type -> ring.v1.SendRawTransactionResponse
74, // 86: ring.v1.RingService.Call:output_type -> ring.v1.CallResponse
75, // 87: ring.v1.RingService.NewFilter:output_type -> ring.v1.NewFilterResponse
76, // 88: ring.v1.RingService.NewBlockFilter:output_type -> ring.v1.NewBlockFilterResponse
77, // 89: ring.v1.RingService.PendingTransactionFilter:output_type -> ring.v1.PendingTransactionFilterResponse
78, // 90: ring.v1.RingService.UninstallFilter:output_type -> ring.v1.UninstallFilterResponse
79, // 91: ring.v1.RingService.FilterChanges:output_type -> ring.v1.FilterChangesResponse
80, // 92: ring.v1.RingService.FilterLogs:output_type -> ring.v1.FilterLogsResponse
81, // 93: ring.v1.RingService.Logs:output_type -> ring.v1.LogsResponse
47, // [47:94] is the sub-list for method output_type
0, // [0:47] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
......
...@@ -8,11 +8,9 @@ package ringv1 ...@@ -8,11 +8,9 @@ package ringv1
import ( import (
context "context" context "context"
v1 "github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
) )
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
...@@ -24,62 +22,8 @@ const _ = grpc.SupportPackageIsVersion7 ...@@ -24,62 +22,8 @@ const _ = grpc.SupportPackageIsVersion7
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RingServiceClient interface { type RingServiceClient interface {
// web3
Sha3(ctx context.Context, in *Sha3Request, opts ...grpc.CallOption) (*Sha3Response, error)
NodeVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NodeVersionResponse, error)
// network info service
NetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetVersionResponse, error)
NetPeerCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetPeerCountResponse, error)
// node status
ProtocolVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProtocolVersionResponse, error)
Syncing(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SyncingResponse, error)
Coinbase(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error)
Mining(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MiningResponse, error)
HashRate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HashRateResponse, error)
Accounts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountsResponse, error)
// tx operatoration
GasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GasPriceResponse, error)
// block info service
BlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HeightResponse, error)
BlockByHash(ctx context.Context, in *BlockByHashRequest, opts ...grpc.CallOption) (*BlockByHashResponse, error)
BlockByNumber(ctx context.Context, in *BlockByNumberRequest, opts ...grpc.CallOption) (*BlockByNumberResponse, error)
BlockTransactionCountByHash(ctx context.Context, in *BlockTransactionCountByHashRequest, opts ...grpc.CallOption) (*BlockTransactionCountByHashResponse, error)
BlockTransactionCountByNumber(ctx context.Context, in *BlockTransactionCountByNumberRequest, opts ...grpc.CallOption) (*BlockTransactionCountByNumberResponse, error)
UncleCountByHash(ctx context.Context, in *UncleCountByHashRequest, opts ...grpc.CallOption) (*UncleCountByHashResponse, error)
UncleCountByNumber(ctx context.Context, in *UncleCountByNumberRequest, opts ...grpc.CallOption) (*UncleCountByNumberResponse, error)
UncleByBlockHashAndIndex(ctx context.Context, in *UncleByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockHashAndIndexResponse, error)
UncleByBlockNumberAndIndex(ctx context.Context, in *UncleByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockNumberAndIndexResponse, error)
// compiler
Compilers(ctx context.Context, in *CompilersRequest, opts ...grpc.CallOption) (*CompilersResponse, error)
CompileSolidity(ctx context.Context, in *CompileSolidityRequest, opts ...grpc.CallOption) (*CompileSolidityResponse, error)
CompileLLL(ctx context.Context, in *CompileLLLRequest, opts ...grpc.CallOption) (*CompileLLLResponse, error)
CompileSerpent(ctx context.Context, in *CompileSerpentRequest, opts ...grpc.CallOption) (*CompileSerpentResponse, error)
// transaction info service
EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error)
TransactionByHash(ctx context.Context, in *TransactionByHashRequest, opts ...grpc.CallOption) (*TransactionByHashResponse, error)
TransactionByBlockHashAndIndex(ctx context.Context, in *TransactionByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockHashAndIndexResponse, error)
TransactionByBlockNumberAndIndex(ctx context.Context, in *TransactionByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockNumberAndIndexResponse, error)
TransactionReceipt(ctx context.Context, in *TransactionReceiptRequest, opts ...grpc.CallOption) (*TransactionReceiptResponse, error)
// account info service // account info service
Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error)
Storage(ctx context.Context, in *StorageRequest, opts ...grpc.CallOption) (*StorageResponse, error)
Nonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error)
RepeatedNonce(ctx context.Context, in *RepeatedNonceRequest, opts ...grpc.CallOption) (*RepeatedNonceResponse, error)
TransactionCount(ctx context.Context, in *TransactionCountRequest, opts ...grpc.CallOption) (*TransactionCountResponse, error)
GetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error)
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error)
SendTransaction(ctx context.Context, in *v1.EthTransaction, opts ...grpc.CallOption) (*SendTransactionResponse, error)
SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error)
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
// filter
NewFilter(ctx context.Context, in *NewFilterRequest, opts ...grpc.CallOption) (*NewFilterResponse, error)
NewBlockFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewBlockFilterResponse, error)
PendingTransactionFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PendingTransactionFilterResponse, error)
UninstallFilter(ctx context.Context, in *UninstallFilterRequest, opts ...grpc.CallOption) (*UninstallFilterResponse, error)
FilterChanges(ctx context.Context, in *FilterChangesRequest, opts ...grpc.CallOption) (*FilterChangesResponse, error)
FilterLogs(ctx context.Context, in *FilterLogsRequest, opts ...grpc.CallOption) (*FilterLogsResponse, error)
Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (*LogsResponse, error)
} }
type ringServiceClient struct { type ringServiceClient struct {
...@@ -90,348 +34,6 @@ func NewRingServiceClient(cc grpc.ClientConnInterface) RingServiceClient { ...@@ -90,348 +34,6 @@ func NewRingServiceClient(cc grpc.ClientConnInterface) RingServiceClient {
return &ringServiceClient{cc} return &ringServiceClient{cc}
} }
func (c *ringServiceClient) Sha3(ctx context.Context, in *Sha3Request, opts ...grpc.CallOption) (*Sha3Response, error) {
out := new(Sha3Response)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Sha3", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) NodeVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NodeVersionResponse, error) {
out := new(NodeVersionResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/NodeVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) NetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetVersionResponse, error) {
out := new(NetVersionResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/NetVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) NetPeerCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NetPeerCountResponse, error) {
out := new(NetPeerCountResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/NetPeerCount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) ProtocolVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProtocolVersionResponse, error) {
out := new(ProtocolVersionResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/ProtocolVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Syncing(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SyncingResponse, error) {
out := new(SyncingResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Syncing", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Coinbase(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error) {
out := new(CoinbaseResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Coinbase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Mining(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MiningResponse, error) {
out := new(MiningResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Mining", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) HashRate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HashRateResponse, error) {
out := new(HashRateResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/HashRate", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Accounts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountsResponse, error) {
out := new(AccountsResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Accounts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) GasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GasPriceResponse, error) {
out := new(GasPriceResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/GasPrice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) BlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HeightResponse, error) {
out := new(HeightResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/BlockNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) BlockByHash(ctx context.Context, in *BlockByHashRequest, opts ...grpc.CallOption) (*BlockByHashResponse, error) {
out := new(BlockByHashResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/BlockByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) BlockByNumber(ctx context.Context, in *BlockByNumberRequest, opts ...grpc.CallOption) (*BlockByNumberResponse, error) {
out := new(BlockByNumberResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/BlockByNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) BlockTransactionCountByHash(ctx context.Context, in *BlockTransactionCountByHashRequest, opts ...grpc.CallOption) (*BlockTransactionCountByHashResponse, error) {
out := new(BlockTransactionCountByHashResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/BlockTransactionCountByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) BlockTransactionCountByNumber(ctx context.Context, in *BlockTransactionCountByNumberRequest, opts ...grpc.CallOption) (*BlockTransactionCountByNumberResponse, error) {
out := new(BlockTransactionCountByNumberResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/BlockTransactionCountByNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) UncleCountByHash(ctx context.Context, in *UncleCountByHashRequest, opts ...grpc.CallOption) (*UncleCountByHashResponse, error) {
out := new(UncleCountByHashResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/UncleCountByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) UncleCountByNumber(ctx context.Context, in *UncleCountByNumberRequest, opts ...grpc.CallOption) (*UncleCountByNumberResponse, error) {
out := new(UncleCountByNumberResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/UncleCountByNumber", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) UncleByBlockHashAndIndex(ctx context.Context, in *UncleByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockHashAndIndexResponse, error) {
out := new(UncleByBlockHashAndIndexResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/UncleByBlockHashAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) UncleByBlockNumberAndIndex(ctx context.Context, in *UncleByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*UncleByBlockNumberAndIndexResponse, error) {
out := new(UncleByBlockNumberAndIndexResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/UncleByBlockNumberAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Compilers(ctx context.Context, in *CompilersRequest, opts ...grpc.CallOption) (*CompilersResponse, error) {
out := new(CompilersResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Compilers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) CompileSolidity(ctx context.Context, in *CompileSolidityRequest, opts ...grpc.CallOption) (*CompileSolidityResponse, error) {
out := new(CompileSolidityResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/CompileSolidity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) CompileLLL(ctx context.Context, in *CompileLLLRequest, opts ...grpc.CallOption) (*CompileLLLResponse, error) {
out := new(CompileLLLResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/CompileLLL", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) CompileSerpent(ctx context.Context, in *CompileSerpentRequest, opts ...grpc.CallOption) (*CompileSerpentResponse, error) {
out := new(CompileSerpentResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/CompileSerpent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) {
out := new(EstimateGasResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/EstimateGas", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) TransactionByHash(ctx context.Context, in *TransactionByHashRequest, opts ...grpc.CallOption) (*TransactionByHashResponse, error) {
out := new(TransactionByHashResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/TransactionByHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) TransactionByBlockHashAndIndex(ctx context.Context, in *TransactionByBlockHashAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockHashAndIndexResponse, error) {
out := new(TransactionByBlockHashAndIndexResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/TransactionByBlockHashAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) TransactionByBlockNumberAndIndex(ctx context.Context, in *TransactionByBlockNumberAndIndexRequest, opts ...grpc.CallOption) (*TransactionByBlockNumberAndIndexResponse, error) {
out := new(TransactionByBlockNumberAndIndexResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/TransactionByBlockNumberAndIndex", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) TransactionReceipt(ctx context.Context, in *TransactionReceiptRequest, opts ...grpc.CallOption) (*TransactionReceiptResponse, error) {
out := new(TransactionReceiptResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/TransactionReceipt", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) {
out := new(BalanceResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Balance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Storage(ctx context.Context, in *StorageRequest, opts ...grpc.CallOption) (*StorageResponse, error) {
out := new(StorageResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Storage", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Nonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error) {
out := new(NonceResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Nonce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) RepeatedNonce(ctx context.Context, in *RepeatedNonceRequest, opts ...grpc.CallOption) (*RepeatedNonceResponse, error) {
out := new(RepeatedNonceResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/RepeatedNonce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) TransactionCount(ctx context.Context, in *TransactionCountRequest, opts ...grpc.CallOption) (*TransactionCountResponse, error) {
out := new(TransactionCountResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/TransactionCount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) GetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) {
out := new(GetCodeResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/GetCode", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) {
out := new(SignResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Sign", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error) {
out := new(SignTransactionResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/SignTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) SendTransaction(ctx context.Context, in *v1.EthTransaction, opts ...grpc.CallOption) (*SendTransactionResponse, error) {
out := new(SendTransactionResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/SendTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) { func (c *ringServiceClient) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) {
out := new(SendRawTransactionResponse) out := new(SendRawTransactionResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/SendRawTransaction", in, out, opts...) err := c.cc.Invoke(ctx, "/ring.v1.RingService/SendRawTransaction", in, out, opts...)
...@@ -441,981 +43,33 @@ func (c *ringServiceClient) SendRawTransaction(ctx context.Context, in *SendRawT ...@@ -441,981 +43,33 @@ func (c *ringServiceClient) SendRawTransaction(ctx context.Context, in *SendRawT
return out, nil return out, nil
} }
func (c *ringServiceClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) {
out := new(CallResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Call", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) NewFilter(ctx context.Context, in *NewFilterRequest, opts ...grpc.CallOption) (*NewFilterResponse, error) {
out := new(NewFilterResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/NewFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) NewBlockFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewBlockFilterResponse, error) {
out := new(NewBlockFilterResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/NewBlockFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) PendingTransactionFilter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PendingTransactionFilterResponse, error) {
out := new(PendingTransactionFilterResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/PendingTransactionFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) UninstallFilter(ctx context.Context, in *UninstallFilterRequest, opts ...grpc.CallOption) (*UninstallFilterResponse, error) {
out := new(UninstallFilterResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/UninstallFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) FilterChanges(ctx context.Context, in *FilterChangesRequest, opts ...grpc.CallOption) (*FilterChangesResponse, error) {
out := new(FilterChangesResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/FilterChanges", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) FilterLogs(ctx context.Context, in *FilterLogsRequest, opts ...grpc.CallOption) (*FilterLogsResponse, error) {
out := new(FilterLogsResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/FilterLogs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ringServiceClient) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (*LogsResponse, error) {
out := new(LogsResponse)
err := c.cc.Invoke(ctx, "/ring.v1.RingService/Logs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RingServiceServer is the server API for RingService service. // RingServiceServer is the server API for RingService service.
// All implementations must embed UnimplementedRingServiceServer // All implementations must embed UnimplementedRingServiceServer
// for forward compatibility // for forward compatibility
type RingServiceServer interface { type RingServiceServer interface {
// web3 // account info service
Sha3(context.Context, *Sha3Request) (*Sha3Response, error) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error)
NodeVersion(context.Context, *emptypb.Empty) (*NodeVersionResponse, error) mustEmbedUnimplementedRingServiceServer()
// network info service
NetVersion(context.Context, *emptypb.Empty) (*NetVersionResponse, error)
NetPeerCount(context.Context, *emptypb.Empty) (*NetPeerCountResponse, error)
// node status
ProtocolVersion(context.Context, *emptypb.Empty) (*ProtocolVersionResponse, error)
Syncing(context.Context, *emptypb.Empty) (*SyncingResponse, error)
Coinbase(context.Context, *emptypb.Empty) (*CoinbaseResponse, error)
Mining(context.Context, *emptypb.Empty) (*MiningResponse, error)
HashRate(context.Context, *emptypb.Empty) (*HashRateResponse, error)
Accounts(context.Context, *emptypb.Empty) (*AccountsResponse, error)
// tx operatoration
GasPrice(context.Context, *emptypb.Empty) (*GasPriceResponse, error)
// block info service
BlockNumber(context.Context, *emptypb.Empty) (*HeightResponse, error)
BlockByHash(context.Context, *BlockByHashRequest) (*BlockByHashResponse, error)
BlockByNumber(context.Context, *BlockByNumberRequest) (*BlockByNumberResponse, error)
BlockTransactionCountByHash(context.Context, *BlockTransactionCountByHashRequest) (*BlockTransactionCountByHashResponse, error)
BlockTransactionCountByNumber(context.Context, *BlockTransactionCountByNumberRequest) (*BlockTransactionCountByNumberResponse, error)
UncleCountByHash(context.Context, *UncleCountByHashRequest) (*UncleCountByHashResponse, error)
UncleCountByNumber(context.Context, *UncleCountByNumberRequest) (*UncleCountByNumberResponse, error)
UncleByBlockHashAndIndex(context.Context, *UncleByBlockHashAndIndexRequest) (*UncleByBlockHashAndIndexResponse, error)
UncleByBlockNumberAndIndex(context.Context, *UncleByBlockNumberAndIndexRequest) (*UncleByBlockNumberAndIndexResponse, error)
// compiler
Compilers(context.Context, *CompilersRequest) (*CompilersResponse, error)
CompileSolidity(context.Context, *CompileSolidityRequest) (*CompileSolidityResponse, error)
CompileLLL(context.Context, *CompileLLLRequest) (*CompileLLLResponse, error)
CompileSerpent(context.Context, *CompileSerpentRequest) (*CompileSerpentResponse, error)
// transaction info service
EstimateGas(context.Context, *EstimateGasRequest) (*EstimateGasResponse, error)
TransactionByHash(context.Context, *TransactionByHashRequest) (*TransactionByHashResponse, error)
TransactionByBlockHashAndIndex(context.Context, *TransactionByBlockHashAndIndexRequest) (*TransactionByBlockHashAndIndexResponse, error)
TransactionByBlockNumberAndIndex(context.Context, *TransactionByBlockNumberAndIndexRequest) (*TransactionByBlockNumberAndIndexResponse, error)
TransactionReceipt(context.Context, *TransactionReceiptRequest) (*TransactionReceiptResponse, error)
// account info service
Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
Storage(context.Context, *StorageRequest) (*StorageResponse, error)
Nonce(context.Context, *NonceRequest) (*NonceResponse, error)
RepeatedNonce(context.Context, *RepeatedNonceRequest) (*RepeatedNonceResponse, error)
TransactionCount(context.Context, *TransactionCountRequest) (*TransactionCountResponse, error)
GetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error)
Sign(context.Context, *SignRequest) (*SignResponse, error)
SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error)
SendTransaction(context.Context, *v1.EthTransaction) (*SendTransactionResponse, error)
SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error)
Call(context.Context, *CallRequest) (*CallResponse, error)
// filter
NewFilter(context.Context, *NewFilterRequest) (*NewFilterResponse, error)
NewBlockFilter(context.Context, *emptypb.Empty) (*NewBlockFilterResponse, error)
PendingTransactionFilter(context.Context, *emptypb.Empty) (*PendingTransactionFilterResponse, error)
UninstallFilter(context.Context, *UninstallFilterRequest) (*UninstallFilterResponse, error)
FilterChanges(context.Context, *FilterChangesRequest) (*FilterChangesResponse, error)
FilterLogs(context.Context, *FilterLogsRequest) (*FilterLogsResponse, error)
Logs(context.Context, *LogsRequest) (*LogsResponse, error)
mustEmbedUnimplementedRingServiceServer()
}
// UnimplementedRingServiceServer must be embedded to have forward compatible implementations.
type UnimplementedRingServiceServer struct {
}
func (UnimplementedRingServiceServer) Sha3(context.Context, *Sha3Request) (*Sha3Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Sha3 not implemented")
}
func (UnimplementedRingServiceServer) NodeVersion(context.Context, *emptypb.Empty) (*NodeVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NodeVersion not implemented")
}
func (UnimplementedRingServiceServer) NetVersion(context.Context, *emptypb.Empty) (*NetVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NetVersion not implemented")
}
func (UnimplementedRingServiceServer) NetPeerCount(context.Context, *emptypb.Empty) (*NetPeerCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NetPeerCount not implemented")
}
func (UnimplementedRingServiceServer) ProtocolVersion(context.Context, *emptypb.Empty) (*ProtocolVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ProtocolVersion not implemented")
}
func (UnimplementedRingServiceServer) Syncing(context.Context, *emptypb.Empty) (*SyncingResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Syncing not implemented")
}
func (UnimplementedRingServiceServer) Coinbase(context.Context, *emptypb.Empty) (*CoinbaseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Coinbase not implemented")
}
func (UnimplementedRingServiceServer) Mining(context.Context, *emptypb.Empty) (*MiningResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Mining not implemented")
}
func (UnimplementedRingServiceServer) HashRate(context.Context, *emptypb.Empty) (*HashRateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method HashRate not implemented")
}
func (UnimplementedRingServiceServer) Accounts(context.Context, *emptypb.Empty) (*AccountsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented")
}
func (UnimplementedRingServiceServer) GasPrice(context.Context, *emptypb.Empty) (*GasPriceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GasPrice not implemented")
}
func (UnimplementedRingServiceServer) BlockNumber(context.Context, *emptypb.Empty) (*HeightResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockNumber not implemented")
}
func (UnimplementedRingServiceServer) BlockByHash(context.Context, *BlockByHashRequest) (*BlockByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockByHash not implemented")
}
func (UnimplementedRingServiceServer) BlockByNumber(context.Context, *BlockByNumberRequest) (*BlockByNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockByNumber not implemented")
}
func (UnimplementedRingServiceServer) BlockTransactionCountByHash(context.Context, *BlockTransactionCountByHashRequest) (*BlockTransactionCountByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockTransactionCountByHash not implemented")
}
func (UnimplementedRingServiceServer) BlockTransactionCountByNumber(context.Context, *BlockTransactionCountByNumberRequest) (*BlockTransactionCountByNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockTransactionCountByNumber not implemented")
}
func (UnimplementedRingServiceServer) UncleCountByHash(context.Context, *UncleCountByHashRequest) (*UncleCountByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleCountByHash not implemented")
}
func (UnimplementedRingServiceServer) UncleCountByNumber(context.Context, *UncleCountByNumberRequest) (*UncleCountByNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleCountByNumber not implemented")
}
func (UnimplementedRingServiceServer) UncleByBlockHashAndIndex(context.Context, *UncleByBlockHashAndIndexRequest) (*UncleByBlockHashAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleByBlockHashAndIndex not implemented")
}
func (UnimplementedRingServiceServer) UncleByBlockNumberAndIndex(context.Context, *UncleByBlockNumberAndIndexRequest) (*UncleByBlockNumberAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UncleByBlockNumberAndIndex not implemented")
}
func (UnimplementedRingServiceServer) Compilers(context.Context, *CompilersRequest) (*CompilersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Compilers not implemented")
}
func (UnimplementedRingServiceServer) CompileSolidity(context.Context, *CompileSolidityRequest) (*CompileSolidityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CompileSolidity not implemented")
}
func (UnimplementedRingServiceServer) CompileLLL(context.Context, *CompileLLLRequest) (*CompileLLLResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CompileLLL not implemented")
}
func (UnimplementedRingServiceServer) CompileSerpent(context.Context, *CompileSerpentRequest) (*CompileSerpentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CompileSerpent not implemented")
}
func (UnimplementedRingServiceServer) EstimateGas(context.Context, *EstimateGasRequest) (*EstimateGasResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method EstimateGas not implemented")
}
func (UnimplementedRingServiceServer) TransactionByHash(context.Context, *TransactionByHashRequest) (*TransactionByHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionByHash not implemented")
}
func (UnimplementedRingServiceServer) TransactionByBlockHashAndIndex(context.Context, *TransactionByBlockHashAndIndexRequest) (*TransactionByBlockHashAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionByBlockHashAndIndex not implemented")
}
func (UnimplementedRingServiceServer) TransactionByBlockNumberAndIndex(context.Context, *TransactionByBlockNumberAndIndexRequest) (*TransactionByBlockNumberAndIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionByBlockNumberAndIndex not implemented")
}
func (UnimplementedRingServiceServer) TransactionReceipt(context.Context, *TransactionReceiptRequest) (*TransactionReceiptResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionReceipt not implemented")
}
func (UnimplementedRingServiceServer) Balance(context.Context, *BalanceRequest) (*BalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented")
}
func (UnimplementedRingServiceServer) Storage(context.Context, *StorageRequest) (*StorageResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Storage not implemented")
}
func (UnimplementedRingServiceServer) Nonce(context.Context, *NonceRequest) (*NonceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Nonce not implemented")
}
func (UnimplementedRingServiceServer) RepeatedNonce(context.Context, *RepeatedNonceRequest) (*RepeatedNonceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RepeatedNonce not implemented")
}
func (UnimplementedRingServiceServer) TransactionCount(context.Context, *TransactionCountRequest) (*TransactionCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransactionCount not implemented")
}
func (UnimplementedRingServiceServer) GetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCode not implemented")
}
func (UnimplementedRingServiceServer) Sign(context.Context, *SignRequest) (*SignResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented")
}
func (UnimplementedRingServiceServer) SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignTransaction not implemented")
}
func (UnimplementedRingServiceServer) SendTransaction(context.Context, *v1.EthTransaction) (*SendTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented")
}
func (UnimplementedRingServiceServer) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
}
func (UnimplementedRingServiceServer) Call(context.Context, *CallRequest) (*CallResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Call not implemented")
}
func (UnimplementedRingServiceServer) NewFilter(context.Context, *NewFilterRequest) (*NewFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NewFilter not implemented")
}
func (UnimplementedRingServiceServer) NewBlockFilter(context.Context, *emptypb.Empty) (*NewBlockFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NewBlockFilter not implemented")
}
func (UnimplementedRingServiceServer) PendingTransactionFilter(context.Context, *emptypb.Empty) (*PendingTransactionFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PendingTransactionFilter not implemented")
}
func (UnimplementedRingServiceServer) UninstallFilter(context.Context, *UninstallFilterRequest) (*UninstallFilterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UninstallFilter not implemented")
}
func (UnimplementedRingServiceServer) FilterChanges(context.Context, *FilterChangesRequest) (*FilterChangesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FilterChanges not implemented")
}
func (UnimplementedRingServiceServer) FilterLogs(context.Context, *FilterLogsRequest) (*FilterLogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FilterLogs not implemented")
}
func (UnimplementedRingServiceServer) Logs(context.Context, *LogsRequest) (*LogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Logs not implemented")
}
func (UnimplementedRingServiceServer) mustEmbedUnimplementedRingServiceServer() {}
// UnsafeRingServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RingServiceServer will
// result in compilation errors.
type UnsafeRingServiceServer interface {
mustEmbedUnimplementedRingServiceServer()
}
func RegisterRingServiceServer(s grpc.ServiceRegistrar, srv RingServiceServer) {
s.RegisterService(&RingService_ServiceDesc, srv)
}
func _RingService_Sha3_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Sha3Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Sha3(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Sha3",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Sha3(ctx, req.(*Sha3Request))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_NodeVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).NodeVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/NodeVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).NodeVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_NetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).NetVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/NetVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).NetVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_NetPeerCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).NetPeerCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/NetPeerCount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).NetPeerCount(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_ProtocolVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).ProtocolVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/ProtocolVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).ProtocolVersion(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Syncing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Syncing(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Syncing",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Syncing(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Coinbase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Coinbase(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Coinbase",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Coinbase(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Mining_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Mining(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Mining",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Mining(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_HashRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).HashRate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/HashRate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).HashRate(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Accounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Accounts(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Accounts",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Accounts(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_GasPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).GasPrice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/GasPrice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).GasPrice(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_BlockNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).BlockNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/BlockNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).BlockNumber(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_BlockByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).BlockByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/BlockByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).BlockByHash(ctx, req.(*BlockByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_BlockByNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockByNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).BlockByNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/BlockByNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).BlockByNumber(ctx, req.(*BlockByNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_BlockTransactionCountByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockTransactionCountByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).BlockTransactionCountByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/BlockTransactionCountByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).BlockTransactionCountByHash(ctx, req.(*BlockTransactionCountByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_BlockTransactionCountByNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockTransactionCountByNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).BlockTransactionCountByNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/BlockTransactionCountByNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).BlockTransactionCountByNumber(ctx, req.(*BlockTransactionCountByNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_UncleCountByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleCountByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).UncleCountByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/UncleCountByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).UncleCountByHash(ctx, req.(*UncleCountByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_UncleCountByNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleCountByNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).UncleCountByNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/UncleCountByNumber",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).UncleCountByNumber(ctx, req.(*UncleCountByNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_UncleByBlockHashAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleByBlockHashAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).UncleByBlockHashAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/UncleByBlockHashAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).UncleByBlockHashAndIndex(ctx, req.(*UncleByBlockHashAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_UncleByBlockNumberAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UncleByBlockNumberAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).UncleByBlockNumberAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/UncleByBlockNumberAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).UncleByBlockNumberAndIndex(ctx, req.(*UncleByBlockNumberAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Compilers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompilersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Compilers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Compilers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Compilers(ctx, req.(*CompilersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_CompileSolidity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompileSolidityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).CompileSolidity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/CompileSolidity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).CompileSolidity(ctx, req.(*CompileSolidityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_CompileLLL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompileLLLRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).CompileLLL(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/CompileLLL",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).CompileLLL(ctx, req.(*CompileLLLRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_CompileSerpent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompileSerpentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).CompileSerpent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/CompileSerpent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).CompileSerpent(ctx, req.(*CompileSerpentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EstimateGasRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).EstimateGas(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/EstimateGas",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).EstimateGas(ctx, req.(*EstimateGasRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_TransactionByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionByHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).TransactionByHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/TransactionByHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).TransactionByHash(ctx, req.(*TransactionByHashRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_TransactionByBlockHashAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionByBlockHashAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).TransactionByBlockHashAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/TransactionByBlockHashAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).TransactionByBlockHashAndIndex(ctx, req.(*TransactionByBlockHashAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_TransactionByBlockNumberAndIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionByBlockNumberAndIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).TransactionByBlockNumberAndIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/TransactionByBlockNumberAndIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).TransactionByBlockNumberAndIndex(ctx, req.(*TransactionByBlockNumberAndIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_TransactionReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionReceiptRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).TransactionReceipt(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/TransactionReceipt",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).TransactionReceipt(ctx, req.(*TransactionReceiptRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BalanceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Balance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Balance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Balance(ctx, req.(*BalanceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Storage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StorageRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Storage(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Storage",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Storage(ctx, req.(*StorageRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Nonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NonceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Nonce(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Nonce",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Nonce(ctx, req.(*NonceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_RepeatedNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RepeatedNonceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).RepeatedNonce(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/RepeatedNonce",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).RepeatedNonce(ctx, req.(*RepeatedNonceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_TransactionCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransactionCountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).TransactionCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/TransactionCount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).TransactionCount(ctx, req.(*TransactionCountRequest))
}
return interceptor(ctx, in, info, handler)
} }
func _RingService_GetCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { // UnimplementedRingServiceServer must be embedded to have forward compatible implementations.
in := new(GetCodeRequest) type UnimplementedRingServiceServer struct {
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).GetCode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/GetCode",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).GetCode(ctx, req.(*GetCodeRequest))
}
return interceptor(ctx, in, info, handler)
} }
func _RingService_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func (UnimplementedRingServiceServer) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error) {
in := new(SignRequest) return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Sign(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Sign",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Sign(ctx, req.(*SignRequest))
}
return interceptor(ctx, in, info, handler)
} }
func (UnimplementedRingServiceServer) mustEmbedUnimplementedRingServiceServer() {}
func _RingService_SignTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { // UnsafeRingServiceServer may be embedded to opt out of forward compatibility for this service.
in := new(SignTransactionRequest) // Use of this interface is not recommended, as added methods to RingServiceServer will
if err := dec(in); err != nil { // result in compilation errors.
return nil, err type UnsafeRingServiceServer interface {
} mustEmbedUnimplementedRingServiceServer()
if interceptor == nil {
return srv.(RingServiceServer).SignTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/SignTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).SignTransaction(ctx, req.(*SignTransactionRequest))
}
return interceptor(ctx, in, info, handler)
} }
func _RingService_SendTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func RegisterRingServiceServer(s grpc.ServiceRegistrar, srv RingServiceServer) {
in := new(v1.EthTransaction) s.RegisterService(&RingService_ServiceDesc, srv)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).SendTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/SendTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).SendTransaction(ctx, req.(*v1.EthTransaction))
}
return interceptor(ctx, in, info, handler)
} }
func _RingService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _RingService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
...@@ -1436,150 +90,6 @@ func _RingService_SendRawTransaction_Handler(srv interface{}, ctx context.Contex ...@@ -1436,150 +90,6 @@ func _RingService_SendRawTransaction_Handler(srv interface{}, ctx context.Contex
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _RingService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CallRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Call(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Call",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Call(ctx, req.(*CallRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_NewFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NewFilterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).NewFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/NewFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).NewFilter(ctx, req.(*NewFilterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_NewBlockFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).NewBlockFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/NewBlockFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).NewBlockFilter(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_PendingTransactionFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).PendingTransactionFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/PendingTransactionFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).PendingTransactionFilter(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_UninstallFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UninstallFilterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).UninstallFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/UninstallFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).UninstallFilter(ctx, req.(*UninstallFilterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_FilterChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FilterChangesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).FilterChanges(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/FilterChanges",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).FilterChanges(ctx, req.(*FilterChangesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_FilterLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FilterLogsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).FilterLogs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/FilterLogs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).FilterLogs(ctx, req.(*FilterLogsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RingService_Logs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RingServiceServer).Logs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ring.v1.RingService/Logs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).Logs(ctx, req.(*LogsRequest))
}
return interceptor(ctx, in, info, handler)
}
// RingService_ServiceDesc is the grpc.ServiceDesc for RingService service. // RingService_ServiceDesc is the grpc.ServiceDesc for RingService service.
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
...@@ -1587,194 +97,10 @@ var RingService_ServiceDesc = grpc.ServiceDesc{ ...@@ -1587,194 +97,10 @@ var RingService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "ring.v1.RingService", ServiceName: "ring.v1.RingService",
HandlerType: (*RingServiceServer)(nil), HandlerType: (*RingServiceServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{
MethodName: "Sha3",
Handler: _RingService_Sha3_Handler,
},
{
MethodName: "NodeVersion",
Handler: _RingService_NodeVersion_Handler,
},
{
MethodName: "NetVersion",
Handler: _RingService_NetVersion_Handler,
},
{
MethodName: "NetPeerCount",
Handler: _RingService_NetPeerCount_Handler,
},
{
MethodName: "ProtocolVersion",
Handler: _RingService_ProtocolVersion_Handler,
},
{
MethodName: "Syncing",
Handler: _RingService_Syncing_Handler,
},
{
MethodName: "Coinbase",
Handler: _RingService_Coinbase_Handler,
},
{
MethodName: "Mining",
Handler: _RingService_Mining_Handler,
},
{
MethodName: "HashRate",
Handler: _RingService_HashRate_Handler,
},
{
MethodName: "Accounts",
Handler: _RingService_Accounts_Handler,
},
{
MethodName: "GasPrice",
Handler: _RingService_GasPrice_Handler,
},
{
MethodName: "BlockNumber",
Handler: _RingService_BlockNumber_Handler,
},
{
MethodName: "BlockByHash",
Handler: _RingService_BlockByHash_Handler,
},
{
MethodName: "BlockByNumber",
Handler: _RingService_BlockByNumber_Handler,
},
{
MethodName: "BlockTransactionCountByHash",
Handler: _RingService_BlockTransactionCountByHash_Handler,
},
{
MethodName: "BlockTransactionCountByNumber",
Handler: _RingService_BlockTransactionCountByNumber_Handler,
},
{
MethodName: "UncleCountByHash",
Handler: _RingService_UncleCountByHash_Handler,
},
{
MethodName: "UncleCountByNumber",
Handler: _RingService_UncleCountByNumber_Handler,
},
{
MethodName: "UncleByBlockHashAndIndex",
Handler: _RingService_UncleByBlockHashAndIndex_Handler,
},
{
MethodName: "UncleByBlockNumberAndIndex",
Handler: _RingService_UncleByBlockNumberAndIndex_Handler,
},
{
MethodName: "Compilers",
Handler: _RingService_Compilers_Handler,
},
{
MethodName: "CompileSolidity",
Handler: _RingService_CompileSolidity_Handler,
},
{
MethodName: "CompileLLL",
Handler: _RingService_CompileLLL_Handler,
},
{
MethodName: "CompileSerpent",
Handler: _RingService_CompileSerpent_Handler,
},
{
MethodName: "EstimateGas",
Handler: _RingService_EstimateGas_Handler,
},
{
MethodName: "TransactionByHash",
Handler: _RingService_TransactionByHash_Handler,
},
{
MethodName: "TransactionByBlockHashAndIndex",
Handler: _RingService_TransactionByBlockHashAndIndex_Handler,
},
{
MethodName: "TransactionByBlockNumberAndIndex",
Handler: _RingService_TransactionByBlockNumberAndIndex_Handler,
},
{
MethodName: "TransactionReceipt",
Handler: _RingService_TransactionReceipt_Handler,
},
{
MethodName: "Balance",
Handler: _RingService_Balance_Handler,
},
{
MethodName: "Storage",
Handler: _RingService_Storage_Handler,
},
{
MethodName: "Nonce",
Handler: _RingService_Nonce_Handler,
},
{
MethodName: "RepeatedNonce",
Handler: _RingService_RepeatedNonce_Handler,
},
{
MethodName: "TransactionCount",
Handler: _RingService_TransactionCount_Handler,
},
{
MethodName: "GetCode",
Handler: _RingService_GetCode_Handler,
},
{
MethodName: "Sign",
Handler: _RingService_Sign_Handler,
},
{
MethodName: "SignTransaction",
Handler: _RingService_SignTransaction_Handler,
},
{
MethodName: "SendTransaction",
Handler: _RingService_SendTransaction_Handler,
},
{ {
MethodName: "SendRawTransaction", MethodName: "SendRawTransaction",
Handler: _RingService_SendRawTransaction_Handler, Handler: _RingService_SendRawTransaction_Handler,
}, },
{
MethodName: "Call",
Handler: _RingService_Call_Handler,
},
{
MethodName: "NewFilter",
Handler: _RingService_NewFilter_Handler,
},
{
MethodName: "NewBlockFilter",
Handler: _RingService_NewBlockFilter_Handler,
},
{
MethodName: "PendingTransactionFilter",
Handler: _RingService_PendingTransactionFilter_Handler,
},
{
MethodName: "UninstallFilter",
Handler: _RingService_UninstallFilter_Handler,
},
{
MethodName: "FilterChanges",
Handler: _RingService_FilterChanges_Handler,
},
{
MethodName: "FilterLogs",
Handler: _RingService_FilterLogs_Handler,
},
{
MethodName: "Logs",
Handler: _RingService_Logs_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "ring/v1/service.proto", Metadata: "ring/v1/service.proto",
......
...@@ -31,3 +31,17 @@ message SubscribeMsgRequest { ...@@ -31,3 +31,17 @@ message SubscribeMsgRequest {
message SubscribeMsgResponse { message SubscribeMsgResponse {
bool success = 1; bool success = 1;
} }
message NetVersionRequest { }
message NetVersionResponse {
bytes version = 1;
}
message NetPeerCountRequest { }
message NetPeerCountResponse {
uint32 peer_count = 1;
}
...@@ -2,6 +2,7 @@ syntax = "proto3"; ...@@ -2,6 +2,7 @@ syntax = "proto3";
package p2p.v1; package p2p.v1;
import "p2p/v1/request_response.proto"; import "p2p/v1/request_response.proto";
import "google/protobuf/empty.proto";
service P2PService { service P2PService {
...@@ -9,4 +10,10 @@ service P2PService { ...@@ -9,4 +10,10 @@ service P2PService {
rpc SendMsg(SendDataRequest) returns (SendDataResponse) {} rpc SendMsg(SendDataRequest) returns (SendDataResponse) {}
rpc SubscribeMsg(SubscribeMsgRequest) returns (SubscribeMsgResponse) {} rpc SubscribeMsg(SubscribeMsgRequest) returns (SubscribeMsgResponse) {}
// network info service
rpc NetPeerCount(google.protobuf.Empty) returns (NetPeerCountResponse) {};
rpc NetVersion(google.protobuf.Empty) returns (NetVersionResponse) {};
} }
主要是收交易;
...@@ -8,73 +8,8 @@ import "ring/v1/account_req_res.proto"; ...@@ -8,73 +8,8 @@ import "ring/v1/account_req_res.proto";
import "base/v1/resource.proto"; import "base/v1/resource.proto";
service RingService{ service RingService{
// web3
rpc Sha3(Sha3Request) returns (Sha3Response) {};
rpc NodeVersion(google.protobuf.Empty) returns (NodeVersionResponse) {};
// network info service
rpc NetVersion(google.protobuf.Empty) returns (NetVersionResponse) {};
rpc NetPeerCount(google.protobuf.Empty) returns (NetPeerCountResponse) {};
// node status
rpc ProtocolVersion(google.protobuf.Empty) returns (ProtocolVersionResponse) {};
rpc Syncing(google.protobuf.Empty) returns (SyncingResponse) {};
rpc Coinbase(google.protobuf.Empty) returns (CoinbaseResponse) {};
rpc Mining(google.protobuf.Empty) returns (MiningResponse) {};
rpc HashRate(google.protobuf.Empty) returns (HashRateResponse) {};
rpc Accounts(google.protobuf.Empty) returns (AccountsResponse) {};
// tx operatoration
rpc GasPrice(google.protobuf.Empty) returns (GasPriceResponse) {};
// block info service
rpc BlockNumber(google.protobuf.Empty) returns (HeightResponse) {};
rpc BlockByHash(BlockByHashRequest) returns (BlockByHashResponse) {};
rpc BlockByNumber(BlockByNumberRequest) returns (BlockByNumberResponse) {};
rpc BlockTransactionCountByHash(BlockTransactionCountByHashRequest) returns (BlockTransactionCountByHashResponse) {};
rpc BlockTransactionCountByNumber(BlockTransactionCountByNumberRequest) returns (BlockTransactionCountByNumberResponse) {};
rpc UncleCountByHash(UncleCountByHashRequest) returns (UncleCountByHashResponse) {};
rpc UncleCountByNumber(UncleCountByNumberRequest) returns (UncleCountByNumberResponse) {};
rpc UncleByBlockHashAndIndex(UncleByBlockHashAndIndexRequest) returns (UncleByBlockHashAndIndexResponse) {};
rpc UncleByBlockNumberAndIndex(UncleByBlockNumberAndIndexRequest) returns (UncleByBlockNumberAndIndexResponse) {};
// compiler
rpc Compilers(CompilersRequest) returns (CompilersResponse) {};
rpc CompileSolidity(CompileSolidityRequest) returns (CompileSolidityResponse) {};
rpc CompileLLL(CompileLLLRequest) returns (CompileLLLResponse) {};
rpc CompileSerpent(CompileSerpentRequest) returns (CompileSerpentResponse) {};
// transaction info service
rpc EstimateGas(EstimateGasRequest) returns (EstimateGasResponse) {};
rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashResponse) {};
rpc TransactionByBlockHashAndIndex(TransactionByBlockHashAndIndexRequest) returns (TransactionByBlockHashAndIndexResponse) {};
rpc TransactionByBlockNumberAndIndex(TransactionByBlockNumberAndIndexRequest) returns (TransactionByBlockNumberAndIndexResponse) {};
rpc TransactionReceipt(TransactionReceiptRequest) returns (TransactionReceiptResponse) {};
// account info service // account info service
rpc Balance(BalanceRequest) returns (BalanceResponse) {};
rpc Storage(StorageRequest) returns (StorageResponse) {};
rpc Nonce(NonceRequest) returns (NonceResponse) {};
rpc RepeatedNonce(RepeatedNonceRequest) returns (RepeatedNonceResponse) {};
rpc TransactionCount(TransactionCountRequest) returns (TransactionCountResponse) {};
rpc GetCode(GetCodeRequest) returns (GetCodeResponse) {};
rpc Sign(SignRequest) returns (SignResponse) {};
rpc SignTransaction(SignTransactionRequest) returns (SignTransactionResponse) {};
rpc SendTransaction(base.v1.EthTransaction) returns (SendTransactionResponse) {};
rpc SendRawTransaction(SendRawTransactionRequest) returns (SendRawTransactionResponse) {}; rpc SendRawTransaction(SendRawTransactionRequest) returns (SendRawTransactionResponse) {};
rpc Call(CallRequest) returns (CallResponse) {};
// filter
rpc NewFilter(NewFilterRequest) returns (NewFilterResponse) {};
rpc NewBlockFilter(google.protobuf.Empty) returns (NewBlockFilterResponse) {};
rpc PendingTransactionFilter(google.protobuf.Empty) returns (PendingTransactionFilterResponse) {};
rpc UninstallFilter(UninstallFilterRequest) returns (UninstallFilterResponse) {};
rpc FilterChanges(FilterChangesRequest) returns (FilterChangesResponse) {};
rpc FilterLogs(FilterLogsRequest) returns (FilterLogsResponse) {};
rpc Logs(LogsRequest) returns (LogsResponse) {};
// consensus info service
} }
\ No newline at end of file
## 主要是提交 批次hash;并携带查询到的 block; block更新后,再提交下一个批次;
version: v1
breaking:
use:
- FILE
lint:
use:
- DEFAULT
syntax = "proto3";
package state.v1;
\ No newline at end of file
syntax = "proto3";
package state.v1;
\ No newline at end of file
syntax = "proto3";
package state.v1;
\ 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