Commit 065b1599 authored by Ubuntu's avatar Ubuntu

add eth std raw tx

parent 9099c989
...@@ -6,18 +6,18 @@ import "google/protobuf/timestamp.proto"; ...@@ -6,18 +6,18 @@ import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "base/v1/resource.proto"; import "base/v1/resource.proto";
message StdTxData { // message StdTxData {
uint32 type = 1; // uint32 type = 1;
uint64 nonce = 2; // uint64 nonce = 2;
BigInt gas_price = 3; // BigInt gas_price = 3;
uint64 gas_limit = 4; // uint64 gas_limit = 4;
Address recipient = 5; // Address recipient = 5;
BigInt amount = 6; // BigInt amount = 6;
bytes data = 7; // bytes data = 7;
BigInt r = 8; // BigInt r = 8;
BigInt s = 9; // BigInt s = 9;
BigInt v = 10; // BigInt v = 10;
} // }
message Receipt { message Receipt {
uint32 type = 1; uint32 type = 1;
......
...@@ -31,12 +31,12 @@ message Address { ...@@ -31,12 +31,12 @@ message Address {
// AddressLength = 20 // AddressLength = 20
// ) // )
message EthTransaction { message EthTx {
Txdata Inner = 1; EthTxData Inner = 1;
google.protobuf.Timestamp time =2; google.protobuf.Timestamp time =2;
} }
message Txdata{ message EthTxData{
uint64 account_nonce =1; uint64 account_nonce =1;
bytes price =2 ; bytes price =2 ;
uint64 gas_limit =3; uint64 gas_limit =3;
...@@ -48,21 +48,72 @@ message Txdata{ ...@@ -48,21 +48,72 @@ message Txdata{
bytes s=9; bytes s=9;
//This is only used when marshaling to JSON. //This is only used when marshaling to JSON.
Hash hash=10; Hash hash=10;
bytes from=11;
} }
message CheckTx { message StdTxData{
google.protobuf.Any tx = 1; uint64 account_nonce =1;
Address from =2; bytes price =2 ;
uint64 gas_limit =3;
Address recipient =4;
bytes amount =5;
bytes payload =6;
bytes v =7;
bytes r=8;
bytes s=9;
//This is only used when marshaling to JSON.
Hash hash=10;
bytes from=11;
} }
message Transaction{
message StdTx{
StdTxData Inner = 1;
google.protobuf.Timestamp time =2;
}
message TxProof{
bytes rset = 1; bytes rset = 1;
bytes wset = 2; bytes wset = 2;
bytes proof =3; bytes proof =3;
int64 state_block_num =4; int64 state_block_num =4;
int64 timeout_block_num =5;
CheckTx check_tx =6;
} }
// 1. any eth--> proto3 eth tx --> grpc --->proto3 eth tx --> eth
message Transaction{
TxProof tx_proof=1;
int64 timeout_block_num =2;
google.protobuf.Any tx =3; // EthTx StdTx
}
//2. eth std: proto3 eth tx --> grpc --->proto3 eth tx
// proto3 std tx --> grpc --->proto3 std tx
message TransactionStd{
TxProof tx_proof=1;
int64 timeout_block_num =2;
EthTx tx =3;
}
message TransactionEth{
TxProof tx_proof=1;
int64 timeout_block_num =2;
StdTx tx =3;
}
//3. bytes
message TransactionBytes{
TxProof tx_proof=1;
int64 timeout_block_num =2;
bytes tx =3; // EthTx StdTx
}
//ype checkTx struct{ //ype checkTx struct{
// tx interface // tx interface
......
...@@ -63,8 +63,8 @@ service RpcService { ...@@ -63,8 +63,8 @@ service RpcService {
rpc GetCode(GetCodeRequest) returns (GetCodeResponse) {}; rpc GetCode(GetCodeRequest) returns (GetCodeResponse) {};
rpc Sign(SignRequest) returns (SignResponse) {}; rpc Sign(SignRequest) returns (SignResponse) {};
rpc SignTransaction(SignTransactionRequest) returns (SignTransactionResponse) {}; rpc SignTransaction(SignTransactionRequest) returns (SignTransactionResponse) {};
rpc SendTransaction(base.v1.EthTransaction) returns (SendTransactionResponse) {}; rpc SendTransaction(base.v1.EthTx) returns (SendTransactionResponse) {};
rpc SendRawTransaction(base.v1.EthTransaction) returns (SendRawTransactionResponse) {}; rpc SendRawTransaction(base.v1.EthTx) returns (SendRawTransactionResponse) {};
rpc Call(CallRequest) returns (CallResponse) {}; rpc Call(CallRequest) returns (CallResponse) {};
// filter // filter
......
...@@ -22,125 +22,6 @@ const ( ...@@ -22,125 +22,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type StdTxData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
GasPrice *BigInt `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
GasLimit uint64 `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
Recipient *Address `protobuf:"bytes,5,opt,name=recipient,proto3" json:"recipient,omitempty"`
Amount *BigInt `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
R *BigInt `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"`
S *BigInt `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
V *BigInt `protobuf:"bytes,10,opt,name=v,proto3" json:"v,omitempty"`
}
func (x *StdTxData) Reset() {
*x = StdTxData{}
if protoimpl.UnsafeEnabled {
mi := &file_base_v1_eth_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StdTxData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StdTxData) ProtoMessage() {}
func (x *StdTxData) ProtoReflect() protoreflect.Message {
mi := &file_base_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 StdTxData.ProtoReflect.Descriptor instead.
func (*StdTxData) Descriptor() ([]byte, []int) {
return file_base_v1_eth_proto_rawDescGZIP(), []int{0}
}
func (x *StdTxData) GetType() uint32 {
if x != nil {
return x.Type
}
return 0
}
func (x *StdTxData) GetNonce() uint64 {
if x != nil {
return x.Nonce
}
return 0
}
func (x *StdTxData) GetGasPrice() *BigInt {
if x != nil {
return x.GasPrice
}
return nil
}
func (x *StdTxData) GetGasLimit() uint64 {
if x != nil {
return x.GasLimit
}
return 0
}
func (x *StdTxData) GetRecipient() *Address {
if x != nil {
return x.Recipient
}
return nil
}
func (x *StdTxData) GetAmount() *BigInt {
if x != nil {
return x.Amount
}
return nil
}
func (x *StdTxData) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *StdTxData) GetR() *BigInt {
if x != nil {
return x.R
}
return nil
}
func (x *StdTxData) GetS() *BigInt {
if x != nil {
return x.S
}
return nil
}
func (x *StdTxData) GetV() *BigInt {
if x != nil {
return x.V
}
return nil
}
type Receipt struct { type Receipt struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
...@@ -152,7 +33,7 @@ type Receipt struct { ...@@ -152,7 +33,7 @@ type Receipt struct {
func (x *Receipt) Reset() { func (x *Receipt) Reset() {
*x = Receipt{} *x = Receipt{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_eth_proto_msgTypes[1] mi := &file_base_v1_eth_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -165,7 +46,7 @@ func (x *Receipt) String() string { ...@@ -165,7 +46,7 @@ func (x *Receipt) String() string {
func (*Receipt) ProtoMessage() {} func (*Receipt) ProtoMessage() {}
func (x *Receipt) ProtoReflect() protoreflect.Message { func (x *Receipt) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_eth_proto_msgTypes[1] mi := &file_base_v1_eth_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -178,7 +59,7 @@ func (x *Receipt) ProtoReflect() protoreflect.Message { ...@@ -178,7 +59,7 @@ func (x *Receipt) ProtoReflect() protoreflect.Message {
// Deprecated: Use Receipt.ProtoReflect.Descriptor instead. // Deprecated: Use Receipt.ProtoReflect.Descriptor instead.
func (*Receipt) Descriptor() ([]byte, []int) { func (*Receipt) Descriptor() ([]byte, []int) {
return file_base_v1_eth_proto_rawDescGZIP(), []int{1} return file_base_v1_eth_proto_rawDescGZIP(), []int{0}
} }
func (x *Receipt) GetType() uint32 { func (x *Receipt) GetType() uint32 {
...@@ -209,7 +90,7 @@ type BlockHeader struct { ...@@ -209,7 +90,7 @@ type BlockHeader struct {
func (x *BlockHeader) Reset() { func (x *BlockHeader) Reset() {
*x = BlockHeader{} *x = BlockHeader{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_eth_proto_msgTypes[2] mi := &file_base_v1_eth_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -222,7 +103,7 @@ func (x *BlockHeader) String() string { ...@@ -222,7 +103,7 @@ func (x *BlockHeader) String() string {
func (*BlockHeader) ProtoMessage() {} func (*BlockHeader) ProtoMessage() {}
func (x *BlockHeader) ProtoReflect() protoreflect.Message { func (x *BlockHeader) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_eth_proto_msgTypes[2] mi := &file_base_v1_eth_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -235,7 +116,7 @@ func (x *BlockHeader) ProtoReflect() protoreflect.Message { ...@@ -235,7 +116,7 @@ func (x *BlockHeader) ProtoReflect() protoreflect.Message {
// Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead. // Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.
func (*BlockHeader) Descriptor() ([]byte, []int) { func (*BlockHeader) Descriptor() ([]byte, []int) {
return file_base_v1_eth_proto_rawDescGZIP(), []int{2} return file_base_v1_eth_proto_rawDescGZIP(), []int{1}
} }
func (x *BlockHeader) GetParentHash() *Hash { func (x *BlockHeader) GetParentHash() *Hash {
...@@ -324,7 +205,7 @@ type BlockBody struct { ...@@ -324,7 +205,7 @@ type BlockBody struct {
func (x *BlockBody) Reset() { func (x *BlockBody) Reset() {
*x = BlockBody{} *x = BlockBody{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_eth_proto_msgTypes[3] mi := &file_base_v1_eth_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -337,7 +218,7 @@ func (x *BlockBody) String() string { ...@@ -337,7 +218,7 @@ func (x *BlockBody) String() string {
func (*BlockBody) ProtoMessage() {} func (*BlockBody) ProtoMessage() {}
func (x *BlockBody) ProtoReflect() protoreflect.Message { func (x *BlockBody) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_eth_proto_msgTypes[3] mi := &file_base_v1_eth_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -350,7 +231,7 @@ func (x *BlockBody) ProtoReflect() protoreflect.Message { ...@@ -350,7 +231,7 @@ func (x *BlockBody) ProtoReflect() protoreflect.Message {
// Deprecated: Use BlockBody.ProtoReflect.Descriptor instead. // Deprecated: Use BlockBody.ProtoReflect.Descriptor instead.
func (*BlockBody) Descriptor() ([]byte, []int) { func (*BlockBody) Descriptor() ([]byte, []int) {
return file_base_v1_eth_proto_rawDescGZIP(), []int{3} return file_base_v1_eth_proto_rawDescGZIP(), []int{2}
} }
var File_base_v1_eth_proto protoreflect.FileDescriptor var File_base_v1_eth_proto protoreflect.FileDescriptor
...@@ -363,69 +244,48 @@ var file_base_v1_eth_proto_rawDesc = []byte{ ...@@ -363,69 +244,48 @@ var file_base_v1_eth_proto_rawDesc = []byte{
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61,
0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x6e, 0x79, 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, 0x72, 0x6f, 0x74, 0x6f, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xca, 0x02, 0x0a, 0x09, 0x53, 0x74, 0x64, 0x54, 0x78, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22,
0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0xbb, 0x03, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x2e, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01,
0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x61, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48,
0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x49, 0x6e, 0x74, 0x52, 0x08, 0x67, 0x61, 0x61, 0x73, 0x68, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12,
0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x2c, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20,
0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c, 0x69, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61,
0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x68, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a,
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62,
0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x05,
0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x72,
0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6f, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65,
0x67, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x52,
0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x6f, 0x6f, 0x74, 0x12, 0x26, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x05,
0x12, 0x1d, 0x0a, 0x01, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x61, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48,
0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x49, 0x6e, 0x74, 0x52, 0x01, 0x72, 0x12, 0x61, 0x73, 0x68, 0x52, 0x06, 0x74, 0x78, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x72,
0x1d, 0x0a, 0x01, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x49, 0x6e, 0x74, 0x52, 0x01, 0x73, 0x12, 0x1d,
0x0a, 0x01, 0x76, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x61, 0x73, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x49, 0x6e, 0x74, 0x52, 0x01, 0x76, 0x22, 0x1d, 0x0a,
0x07, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xbb, 0x03, 0x0a,
0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x0b,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68,
0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2c, 0x0a, 0x0a,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 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,
0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x05, 0x6d, 0x69,
0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x05, 0x6d, 0x69, 0x6e,
0x65, 0x72, 0x12, 0x2c, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74,
0x12, 0x26, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68,
0x52, 0x06, 0x74, 0x78, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x32, 0x0a,
0x69, 0x70, 0x74, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20,
0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x0b, 0x72, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69,
0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x32, 0x0a, 0x0c, 0x62, 0x6c, 0x67, 0x49, 0x6e, 0x74, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65,
0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x08,
0x32, 0x0f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x49, 0x6e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x19,
0x74, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x08, 0x67, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04,
0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x52, 0x07, 0x67, 0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d,
0x04, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69,
0x61, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61,
0x61, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x0b, 0x0a,
0x61, 0x6d, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x6f, 0x64, 0x79, 0x42, 0xa3, 0x01, 0x0a, 0x0b, 0x63,
0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x0b, 0x20, 0x6f, 0x6d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x45, 0x74, 0x68, 0x50,
0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x0b, 0x0a, 0x09, 0x42, 0x6c, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x63, 0x6b, 0x42, 0x6f, 0x64, 0x79, 0x42, 0xa3, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x45, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74,
0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72,
0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x62,
0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x61, 0x73, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x42, 0x61,
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0xe2,
0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x02, 0x13, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x56, 0x31,
0x56, 0x31, 0xca, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x42, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x08, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
...@@ -440,35 +300,28 @@ func file_base_v1_eth_proto_rawDescGZIP() []byte { ...@@ -440,35 +300,28 @@ func file_base_v1_eth_proto_rawDescGZIP() []byte {
return file_base_v1_eth_proto_rawDescData return file_base_v1_eth_proto_rawDescData
} }
var file_base_v1_eth_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_base_v1_eth_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_base_v1_eth_proto_goTypes = []interface{}{ var file_base_v1_eth_proto_goTypes = []interface{}{
(*StdTxData)(nil), // 0: base.v1.StdTxData (*Receipt)(nil), // 0: base.v1.Receipt
(*Receipt)(nil), // 1: base.v1.Receipt (*BlockHeader)(nil), // 1: base.v1.BlockHeader
(*BlockHeader)(nil), // 2: base.v1.BlockHeader (*BlockBody)(nil), // 2: base.v1.BlockBody
(*BlockBody)(nil), // 3: base.v1.BlockBody (*Hash)(nil), // 3: base.v1.Hash
(*BigInt)(nil), // 4: base.v1.BigInt (*Address)(nil), // 4: base.v1.Address
(*Address)(nil), // 5: base.v1.Address (*BigInt)(nil), // 5: base.v1.BigInt
(*Hash)(nil), // 6: base.v1.Hash
} }
var file_base_v1_eth_proto_depIdxs = []int32{ var file_base_v1_eth_proto_depIdxs = []int32{
4, // 0: base.v1.StdTxData.gas_price:type_name -> base.v1.BigInt 3, // 0: base.v1.BlockHeader.parent_hash:type_name -> base.v1.Hash
5, // 1: base.v1.StdTxData.recipient:type_name -> base.v1.Address 3, // 1: base.v1.BlockHeader.block_hash:type_name -> base.v1.Hash
4, // 2: base.v1.StdTxData.amount:type_name -> base.v1.BigInt 4, // 2: base.v1.BlockHeader.miner:type_name -> base.v1.Address
4, // 3: base.v1.StdTxData.r:type_name -> base.v1.BigInt 3, // 3: base.v1.BlockHeader.state_root:type_name -> base.v1.Hash
4, // 4: base.v1.StdTxData.s:type_name -> base.v1.BigInt 3, // 4: base.v1.BlockHeader.tx_root:type_name -> base.v1.Hash
4, // 5: base.v1.StdTxData.v:type_name -> base.v1.BigInt 3, // 5: base.v1.BlockHeader.receipt_root:type_name -> base.v1.Hash
6, // 6: base.v1.BlockHeader.parent_hash:type_name -> base.v1.Hash 5, // 6: base.v1.BlockHeader.block_number:type_name -> base.v1.BigInt
6, // 7: base.v1.BlockHeader.block_hash:type_name -> base.v1.Hash 7, // [7:7] is the sub-list for method output_type
5, // 8: base.v1.BlockHeader.miner:type_name -> base.v1.Address 7, // [7:7] is the sub-list for method input_type
6, // 9: base.v1.BlockHeader.state_root:type_name -> base.v1.Hash 7, // [7:7] is the sub-list for extension type_name
6, // 10: base.v1.BlockHeader.tx_root:type_name -> base.v1.Hash 7, // [7:7] is the sub-list for extension extendee
6, // 11: base.v1.BlockHeader.receipt_root:type_name -> base.v1.Hash 0, // [0:7] is the sub-list for field type_name
4, // 12: base.v1.BlockHeader.block_number:type_name -> base.v1.BigInt
13, // [13:13] is the sub-list for method output_type
13, // [13:13] is the sub-list for method input_type
13, // [13:13] is the sub-list for extension type_name
13, // [13:13] is the sub-list for extension extendee
0, // [0:13] is the sub-list for field type_name
} }
func init() { file_base_v1_eth_proto_init() } func init() { file_base_v1_eth_proto_init() }
...@@ -479,18 +332,6 @@ func file_base_v1_eth_proto_init() { ...@@ -479,18 +332,6 @@ func file_base_v1_eth_proto_init() {
file_base_v1_resource_proto_init() file_base_v1_resource_proto_init()
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_base_v1_eth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { file_base_v1_eth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StdTxData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_base_v1_eth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Receipt); i { switch v := v.(*Receipt); i {
case 0: case 0:
return &v.state return &v.state
...@@ -502,7 +343,7 @@ func file_base_v1_eth_proto_init() { ...@@ -502,7 +343,7 @@ func file_base_v1_eth_proto_init() {
return nil return nil
} }
} }
file_base_v1_eth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { file_base_v1_eth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BlockHeader); i { switch v := v.(*BlockHeader); i {
case 0: case 0:
return &v.state return &v.state
...@@ -514,7 +355,7 @@ func file_base_v1_eth_proto_init() { ...@@ -514,7 +355,7 @@ func file_base_v1_eth_proto_init() {
return nil return nil
} }
} }
file_base_v1_eth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_base_v1_eth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BlockBody); i { switch v := v.(*BlockBody); i {
case 0: case 0:
return &v.state return &v.state
...@@ -533,7 +374,7 @@ func file_base_v1_eth_proto_init() { ...@@ -533,7 +374,7 @@ func file_base_v1_eth_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_base_v1_eth_proto_rawDesc, RawDescriptor: file_base_v1_eth_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 4, NumMessages: 3,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
......
...@@ -210,17 +210,17 @@ func (x *Address) GetAddress() []byte { ...@@ -210,17 +210,17 @@ func (x *Address) GetAddress() []byte {
return nil return nil
} }
type EthTransaction struct { type EthTx struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Inner *Txdata `protobuf:"bytes,1,opt,name=Inner,proto3" json:"Inner,omitempty"` Inner *EthTxData `protobuf:"bytes,1,opt,name=Inner,proto3" json:"Inner,omitempty"`
Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
} }
func (x *EthTransaction) Reset() { func (x *EthTx) Reset() {
*x = EthTransaction{} *x = EthTx{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[4] mi := &file_base_v1_resource_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -228,13 +228,13 @@ func (x *EthTransaction) Reset() { ...@@ -228,13 +228,13 @@ func (x *EthTransaction) Reset() {
} }
} }
func (x *EthTransaction) String() string { func (x *EthTx) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*EthTransaction) ProtoMessage() {} func (*EthTx) ProtoMessage() {}
func (x *EthTransaction) ProtoReflect() protoreflect.Message { func (x *EthTx) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_proto_msgTypes[4] mi := &file_base_v1_resource_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -246,26 +246,26 @@ func (x *EthTransaction) ProtoReflect() protoreflect.Message { ...@@ -246,26 +246,26 @@ func (x *EthTransaction) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use EthTransaction.ProtoReflect.Descriptor instead. // Deprecated: Use EthTx.ProtoReflect.Descriptor instead.
func (*EthTransaction) Descriptor() ([]byte, []int) { func (*EthTx) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{4} return file_base_v1_resource_proto_rawDescGZIP(), []int{4}
} }
func (x *EthTransaction) GetInner() *Txdata { func (x *EthTx) GetInner() *EthTxData {
if x != nil { if x != nil {
return x.Inner return x.Inner
} }
return nil return nil
} }
func (x *EthTransaction) GetTime() *timestamppb.Timestamp { func (x *EthTx) GetTime() *timestamppb.Timestamp {
if x != nil { if x != nil {
return x.Time return x.Time
} }
return nil return nil
} }
type Txdata struct { type EthTxData struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
...@@ -280,11 +280,12 @@ type Txdata struct { ...@@ -280,11 +280,12 @@ type Txdata struct {
R []byte `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"` R []byte `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"`
S []byte `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"` S []byte `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
// This is only used when marshaling to JSON. // This is only used when marshaling to JSON.
Hash *Hash `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"` Hash *Hash `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
From []byte `protobuf:"bytes,11,opt,name=from,proto3" json:"from,omitempty"`
} }
func (x *Txdata) Reset() { func (x *EthTxData) Reset() {
*x = Txdata{} *x = EthTxData{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[5] mi := &file_base_v1_resource_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -292,13 +293,13 @@ func (x *Txdata) Reset() { ...@@ -292,13 +293,13 @@ func (x *Txdata) Reset() {
} }
} }
func (x *Txdata) String() string { func (x *EthTxData) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*Txdata) ProtoMessage() {} func (*EthTxData) ProtoMessage() {}
func (x *Txdata) ProtoReflect() protoreflect.Message { func (x *EthTxData) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_proto_msgTypes[5] mi := &file_base_v1_resource_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -310,92 +311,109 @@ func (x *Txdata) ProtoReflect() protoreflect.Message { ...@@ -310,92 +311,109 @@ func (x *Txdata) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use Txdata.ProtoReflect.Descriptor instead. // Deprecated: Use EthTxData.ProtoReflect.Descriptor instead.
func (*Txdata) Descriptor() ([]byte, []int) { func (*EthTxData) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{5} return file_base_v1_resource_proto_rawDescGZIP(), []int{5}
} }
func (x *Txdata) GetAccountNonce() uint64 { func (x *EthTxData) GetAccountNonce() uint64 {
if x != nil { if x != nil {
return x.AccountNonce return x.AccountNonce
} }
return 0 return 0
} }
func (x *Txdata) GetPrice() []byte { func (x *EthTxData) GetPrice() []byte {
if x != nil { if x != nil {
return x.Price return x.Price
} }
return nil return nil
} }
func (x *Txdata) GetGasLimit() uint64 { func (x *EthTxData) GetGasLimit() uint64 {
if x != nil { if x != nil {
return x.GasLimit return x.GasLimit
} }
return 0 return 0
} }
func (x *Txdata) GetRecipient() *Address { func (x *EthTxData) GetRecipient() *Address {
if x != nil { if x != nil {
return x.Recipient return x.Recipient
} }
return nil return nil
} }
func (x *Txdata) GetAmount() []byte { func (x *EthTxData) GetAmount() []byte {
if x != nil { if x != nil {
return x.Amount return x.Amount
} }
return nil return nil
} }
func (x *Txdata) GetPayload() []byte { func (x *EthTxData) GetPayload() []byte {
if x != nil { if x != nil {
return x.Payload return x.Payload
} }
return nil return nil
} }
func (x *Txdata) GetV() []byte { func (x *EthTxData) GetV() []byte {
if x != nil { if x != nil {
return x.V return x.V
} }
return nil return nil
} }
func (x *Txdata) GetR() []byte { func (x *EthTxData) GetR() []byte {
if x != nil { if x != nil {
return x.R return x.R
} }
return nil return nil
} }
func (x *Txdata) GetS() []byte { func (x *EthTxData) GetS() []byte {
if x != nil { if x != nil {
return x.S return x.S
} }
return nil return nil
} }
func (x *Txdata) GetHash() *Hash { func (x *EthTxData) GetHash() *Hash {
if x != nil { if x != nil {
return x.Hash return x.Hash
} }
return nil return nil
} }
type CheckTx struct { func (x *EthTxData) GetFrom() []byte {
if x != nil {
return x.From
}
return nil
}
type StdTxData struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Tx *anypb.Any `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` AccountNonce uint64 `protobuf:"varint,1,opt,name=account_nonce,json=accountNonce,proto3" json:"account_nonce,omitempty"`
From *Address `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Price []byte `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
GasLimit uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
Recipient *Address `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
Amount []byte `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
V []byte `protobuf:"bytes,7,opt,name=v,proto3" json:"v,omitempty"`
R []byte `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"`
S []byte `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
// This is only used when marshaling to JSON.
Hash *Hash `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
From []byte `protobuf:"bytes,11,opt,name=from,proto3" json:"from,omitempty"`
} }
func (x *CheckTx) Reset() { func (x *StdTxData) Reset() {
*x = CheckTx{} *x = StdTxData{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[6] mi := &file_base_v1_resource_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -403,13 +421,13 @@ func (x *CheckTx) Reset() { ...@@ -403,13 +421,13 @@ func (x *CheckTx) Reset() {
} }
} }
func (x *CheckTx) String() string { func (x *StdTxData) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*CheckTx) ProtoMessage() {} func (*StdTxData) ProtoMessage() {}
func (x *CheckTx) ProtoReflect() protoreflect.Message { func (x *StdTxData) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_proto_msgTypes[6] mi := &file_base_v1_resource_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -421,40 +439,99 @@ func (x *CheckTx) ProtoReflect() protoreflect.Message { ...@@ -421,40 +439,99 @@ func (x *CheckTx) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use CheckTx.ProtoReflect.Descriptor instead. // Deprecated: Use StdTxData.ProtoReflect.Descriptor instead.
func (*CheckTx) Descriptor() ([]byte, []int) { func (*StdTxData) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{6} return file_base_v1_resource_proto_rawDescGZIP(), []int{6}
} }
func (x *CheckTx) GetTx() *anypb.Any { func (x *StdTxData) GetAccountNonce() uint64 {
if x != nil { if x != nil {
return x.Tx return x.AccountNonce
}
return 0
}
func (x *StdTxData) GetPrice() []byte {
if x != nil {
return x.Price
}
return nil
}
func (x *StdTxData) GetGasLimit() uint64 {
if x != nil {
return x.GasLimit
}
return 0
}
func (x *StdTxData) GetRecipient() *Address {
if x != nil {
return x.Recipient
} }
return nil return nil
} }
func (x *CheckTx) GetFrom() *Address { func (x *StdTxData) GetAmount() []byte {
if x != nil {
return x.Amount
}
return nil
}
func (x *StdTxData) GetPayload() []byte {
if x != nil {
return x.Payload
}
return nil
}
func (x *StdTxData) GetV() []byte {
if x != nil {
return x.V
}
return nil
}
func (x *StdTxData) GetR() []byte {
if x != nil {
return x.R
}
return nil
}
func (x *StdTxData) GetS() []byte {
if x != nil {
return x.S
}
return nil
}
func (x *StdTxData) GetHash() *Hash {
if x != nil {
return x.Hash
}
return nil
}
func (x *StdTxData) GetFrom() []byte {
if x != nil { if x != nil {
return x.From return x.From
} }
return nil return nil
} }
type Transaction struct { type StdTx struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Rset []byte `protobuf:"bytes,1,opt,name=rset,proto3" json:"rset,omitempty"` Inner *StdTxData `protobuf:"bytes,1,opt,name=Inner,proto3" json:"Inner,omitempty"`
Wset []byte `protobuf:"bytes,2,opt,name=wset,proto3" json:"wset,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
StateBlockNum int64 `protobuf:"varint,4,opt,name=state_block_num,json=stateBlockNum,proto3" json:"state_block_num,omitempty"`
TimeoutBlockNum int64 `protobuf:"varint,5,opt,name=timeout_block_num,json=timeoutBlockNum,proto3" json:"timeout_block_num,omitempty"`
CheckTx *CheckTx `protobuf:"bytes,6,opt,name=check_tx,json=checkTx,proto3" json:"check_tx,omitempty"`
} }
func (x *Transaction) Reset() { func (x *StdTx) Reset() {
*x = Transaction{} *x = StdTx{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[7] mi := &file_base_v1_resource_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -462,13 +539,13 @@ func (x *Transaction) Reset() { ...@@ -462,13 +539,13 @@ func (x *Transaction) Reset() {
} }
} }
func (x *Transaction) String() string { func (x *StdTx) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*Transaction) ProtoMessage() {} func (*StdTx) ProtoMessage() {}
func (x *Transaction) ProtoReflect() protoreflect.Message { func (x *StdTx) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_proto_msgTypes[7] mi := &file_base_v1_resource_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
...@@ -480,39 +557,146 @@ func (x *Transaction) ProtoReflect() protoreflect.Message { ...@@ -480,39 +557,146 @@ func (x *Transaction) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use Transaction.ProtoReflect.Descriptor instead. // Deprecated: Use StdTx.ProtoReflect.Descriptor instead.
func (*Transaction) Descriptor() ([]byte, []int) { func (*StdTx) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{7} return file_base_v1_resource_proto_rawDescGZIP(), []int{7}
} }
func (x *Transaction) GetRset() []byte { func (x *StdTx) GetInner() *StdTxData {
if x != nil {
return x.Inner
}
return nil
}
func (x *StdTx) GetTime() *timestamppb.Timestamp {
if x != nil {
return x.Time
}
return nil
}
type TxProof struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rset []byte `protobuf:"bytes,1,opt,name=rset,proto3" json:"rset,omitempty"`
Wset []byte `protobuf:"bytes,2,opt,name=wset,proto3" json:"wset,omitempty"`
Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
StateBlockNum int64 `protobuf:"varint,4,opt,name=state_block_num,json=stateBlockNum,proto3" json:"state_block_num,omitempty"`
}
func (x *TxProof) Reset() {
*x = TxProof{}
if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TxProof) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxProof) ProtoMessage() {}
func (x *TxProof) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_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 TxProof.ProtoReflect.Descriptor instead.
func (*TxProof) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{8}
}
func (x *TxProof) GetRset() []byte {
if x != nil { if x != nil {
return x.Rset return x.Rset
} }
return nil return nil
} }
func (x *Transaction) GetWset() []byte { func (x *TxProof) GetWset() []byte {
if x != nil { if x != nil {
return x.Wset return x.Wset
} }
return nil return nil
} }
func (x *Transaction) GetProof() []byte { func (x *TxProof) GetProof() []byte {
if x != nil { if x != nil {
return x.Proof return x.Proof
} }
return nil return nil
} }
func (x *Transaction) GetStateBlockNum() int64 { func (x *TxProof) GetStateBlockNum() int64 {
if x != nil { if x != nil {
return x.StateBlockNum return x.StateBlockNum
} }
return 0 return 0
} }
// 1. any eth--> proto3 eth tx --> grpc --->proto3 eth tx --> eth
type Transaction struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxProof *TxProof `protobuf:"bytes,1,opt,name=tx_proof,json=txProof,proto3" json:"tx_proof,omitempty"`
TimeoutBlockNum int64 `protobuf:"varint,2,opt,name=timeout_block_num,json=timeoutBlockNum,proto3" json:"timeout_block_num,omitempty"`
Tx *anypb.Any `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` // EthTx StdTx
}
func (x *Transaction) Reset() {
*x = Transaction{}
if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Transaction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Transaction) ProtoMessage() {}
func (x *Transaction) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_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 Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{9}
}
func (x *Transaction) GetTxProof() *TxProof {
if x != nil {
return x.TxProof
}
return nil
}
func (x *Transaction) GetTimeoutBlockNum() int64 { func (x *Transaction) GetTimeoutBlockNum() int64 {
if x != nil { if x != nil {
return x.TimeoutBlockNum return x.TimeoutBlockNum
...@@ -520,9 +704,201 @@ func (x *Transaction) GetTimeoutBlockNum() int64 { ...@@ -520,9 +704,201 @@ func (x *Transaction) GetTimeoutBlockNum() int64 {
return 0 return 0
} }
func (x *Transaction) GetCheckTx() *CheckTx { func (x *Transaction) GetTx() *anypb.Any {
if x != nil {
return x.Tx
}
return nil
}
// 2. eth std: proto3 eth tx --> grpc --->proto3 eth tx
// proto3 std tx --> grpc --->proto3 std tx
type TransactionStd struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxProof *TxProof `protobuf:"bytes,1,opt,name=tx_proof,json=txProof,proto3" json:"tx_proof,omitempty"`
TimeoutBlockNum int64 `protobuf:"varint,2,opt,name=timeout_block_num,json=timeoutBlockNum,proto3" json:"timeout_block_num,omitempty"`
Tx *EthTx `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
}
func (x *TransactionStd) Reset() {
*x = TransactionStd{}
if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransactionStd) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransactionStd) ProtoMessage() {}
func (x *TransactionStd) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_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 TransactionStd.ProtoReflect.Descriptor instead.
func (*TransactionStd) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{10}
}
func (x *TransactionStd) GetTxProof() *TxProof {
if x != nil {
return x.TxProof
}
return nil
}
func (x *TransactionStd) GetTimeoutBlockNum() int64 {
if x != nil {
return x.TimeoutBlockNum
}
return 0
}
func (x *TransactionStd) GetTx() *EthTx {
if x != nil {
return x.Tx
}
return nil
}
type TransactionEth struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxProof *TxProof `protobuf:"bytes,1,opt,name=tx_proof,json=txProof,proto3" json:"tx_proof,omitempty"`
TimeoutBlockNum int64 `protobuf:"varint,2,opt,name=timeout_block_num,json=timeoutBlockNum,proto3" json:"timeout_block_num,omitempty"`
Tx *StdTx `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
}
func (x *TransactionEth) Reset() {
*x = TransactionEth{}
if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransactionEth) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransactionEth) ProtoMessage() {}
func (x *TransactionEth) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_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 TransactionEth.ProtoReflect.Descriptor instead.
func (*TransactionEth) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{11}
}
func (x *TransactionEth) GetTxProof() *TxProof {
if x != nil {
return x.TxProof
}
return nil
}
func (x *TransactionEth) GetTimeoutBlockNum() int64 {
if x != nil {
return x.TimeoutBlockNum
}
return 0
}
func (x *TransactionEth) GetTx() *StdTx {
if x != nil {
return x.Tx
}
return nil
}
// 3. bytes
type TransactionBytes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TxProof *TxProof `protobuf:"bytes,1,opt,name=tx_proof,json=txProof,proto3" json:"tx_proof,omitempty"`
TimeoutBlockNum int64 `protobuf:"varint,2,opt,name=timeout_block_num,json=timeoutBlockNum,proto3" json:"timeout_block_num,omitempty"`
Tx []byte `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` // EthTx StdTx
}
func (x *TransactionBytes) Reset() {
*x = TransactionBytes{}
if protoimpl.UnsafeEnabled {
mi := &file_base_v1_resource_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransactionBytes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransactionBytes) ProtoMessage() {}
func (x *TransactionBytes) ProtoReflect() protoreflect.Message {
mi := &file_base_v1_resource_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 TransactionBytes.ProtoReflect.Descriptor instead.
func (*TransactionBytes) Descriptor() ([]byte, []int) {
return file_base_v1_resource_proto_rawDescGZIP(), []int{12}
}
func (x *TransactionBytes) GetTxProof() *TxProof {
if x != nil {
return x.TxProof
}
return nil
}
func (x *TransactionBytes) GetTimeoutBlockNum() int64 {
if x != nil {
return x.TimeoutBlockNum
}
return 0
}
func (x *TransactionBytes) GetTx() []byte {
if x != nil { if x != nil {
return x.CheckTx return x.Tx
} }
return nil return nil
} }
...@@ -543,60 +919,109 @@ var file_base_v1_resource_proto_rawDesc = []byte{ ...@@ -543,60 +919,109 @@ var file_base_v1_resource_proto_rawDesc = []byte{
0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x23, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x23, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x67, 0x0a, 0x0e, 0x45, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x61, 0x0a, 0x05, 0x45,
0x74, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x74, 0x68, 0x54, 0x78, 0x12, 0x28, 0x0a, 0x05, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20,
0x05, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x62, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x78, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x49, 0x68, 0x54, 0x78, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x2e,
0x6e, 0x6e, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa6,
0x74, 0x69, 0x6d, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x06, 0x54, 0x78, 0x64, 0x61, 0x74, 0x61, 0x12, 0x02, 0x0a, 0x09, 0x45, 0x74, 0x68, 0x54, 0x78, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d,
0x23, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20,
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x6f, 0x6e, 0x63,
0x6f, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c,
0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c,
0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e,
0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x09, 0x72, 0x65, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70,
0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05,
0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07,
0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70,
0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x07, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x07, 0x20, 0x01, 0x28,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x76, 0x12, 0x0c, 0x0a, 0x01, 0x72, 0x18, 0x08, 0x20, 0x01, 0x0c, 0x52, 0x01, 0x76, 0x12, 0x0c, 0x0a, 0x01, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52,
0x28, 0x0c, 0x52, 0x01, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x01, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x73,
0x52, 0x01, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x12, 0x21, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d,
0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68,
0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x55, 0x0a, 0x07, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28,
0x78, 0x12, 0x24, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x0c, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0xa6, 0x02, 0x0a, 0x09, 0x53, 0x74, 0x64, 0x54,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x78, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x41, 0x6e, 0x79, 0x52, 0x02, 0x74, 0x78, 0x12, 0x24, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x61, 0x63,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0xcc, 0x01, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65,
0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20,
0x04, 0x72, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x73, 0x65, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
0x04, 0x77, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x03, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x73, 0x73, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a,
0x74, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
0x4e, 0x75, 0x6d, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x62, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,
0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x76, 0x12, 0x0c, 0x0a,
0x01, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x73,
0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x68, 0x61, 0x73,
0x68, 0x18, 0x0a, 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, 0x12, 0x12, 0x0a, 0x04,
0x66, 0x72, 0x6f, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d,
0x22, 0x61, 0x0a, 0x05, 0x53, 0x74, 0x64, 0x54, 0x78, 0x12, 0x28, 0x0a, 0x05, 0x49, 0x6e, 0x6e,
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x53, 0x74, 0x64, 0x54, 0x78, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x49, 0x6e,
0x6e, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74,
0x69, 0x6d, 0x65, 0x22, 0x6f, 0x0a, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x12,
0x0a, 0x04, 0x72, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x73,
0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x04, 0x77, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x0f,
0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18,
0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63,
0x6b, 0x4e, 0x75, 0x6d, 0x22, 0x8c, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x07, 0x74, 0x78, 0x50, 0x72, 0x6f, 0x6f,
0x66, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69,
0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a,
0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
0x02, 0x74, 0x78, 0x22, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x53, 0x74, 0x64, 0x12, 0x2b, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x70, 0x72, 0x6f,
0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x07, 0x74, 0x78, 0x50, 0x72,
0x6f, 0x6f, 0x66, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12,
0x2b, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x1e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x62, 0x61,
0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x22,
0x6b, 0x54, 0x78, 0x52, 0x07, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x42, 0xa8, 0x01, 0x0a, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45,
0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x07, 0x74, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12,
0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65,
0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x61, 0x6f, 0x75, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x1e, 0x0a, 0x02, 0x74,
0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
0x58, 0x58, 0xaa, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x42, 0x31, 0x2e, 0x53, 0x74, 0x64, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x22, 0x7b, 0x0a, 0x10, 0x54,
0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12,
0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x42, 0x2b, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28,
0x61, 0x73, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x78, 0x50, 0x72,
0x6f, 0x6f, 0x66, 0x52, 0x07, 0x74, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x2a, 0x0a, 0x11,
0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75,
0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, 0x78, 0x42, 0xa8, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d,
0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
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, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76,
0x31, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x58, 0x58, 0xaa, 0x02,
0x07, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x5c,
0x56, 0x31, 0xe2, 0x02, 0x13, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x42, 0x61, 0x73, 0x65, 0x3a,
0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
...@@ -611,32 +1036,45 @@ func file_base_v1_resource_proto_rawDescGZIP() []byte { ...@@ -611,32 +1036,45 @@ func file_base_v1_resource_proto_rawDescGZIP() []byte {
return file_base_v1_resource_proto_rawDescData return file_base_v1_resource_proto_rawDescData
} }
var file_base_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_base_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_base_v1_resource_proto_goTypes = []interface{}{ var file_base_v1_resource_proto_goTypes = []interface{}{
(*Bytes32)(nil), // 0: base.v1.Bytes32 (*Bytes32)(nil), // 0: base.v1.Bytes32
(*BigInt)(nil), // 1: base.v1.BigInt (*BigInt)(nil), // 1: base.v1.BigInt
(*Hash)(nil), // 2: base.v1.Hash (*Hash)(nil), // 2: base.v1.Hash
(*Address)(nil), // 3: base.v1.Address (*Address)(nil), // 3: base.v1.Address
(*EthTransaction)(nil), // 4: base.v1.EthTransaction (*EthTx)(nil), // 4: base.v1.EthTx
(*Txdata)(nil), // 5: base.v1.Txdata (*EthTxData)(nil), // 5: base.v1.EthTxData
(*CheckTx)(nil), // 6: base.v1.CheckTx (*StdTxData)(nil), // 6: base.v1.StdTxData
(*Transaction)(nil), // 7: base.v1.Transaction (*StdTx)(nil), // 7: base.v1.StdTx
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp (*TxProof)(nil), // 8: base.v1.TxProof
(*anypb.Any)(nil), // 9: google.protobuf.Any (*Transaction)(nil), // 9: base.v1.Transaction
(*TransactionStd)(nil), // 10: base.v1.TransactionStd
(*TransactionEth)(nil), // 11: base.v1.TransactionEth
(*TransactionBytes)(nil), // 12: base.v1.TransactionBytes
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
(*anypb.Any)(nil), // 14: google.protobuf.Any
} }
var file_base_v1_resource_proto_depIdxs = []int32{ var file_base_v1_resource_proto_depIdxs = []int32{
5, // 0: base.v1.EthTransaction.Inner:type_name -> base.v1.Txdata 5, // 0: base.v1.EthTx.Inner:type_name -> base.v1.EthTxData
8, // 1: base.v1.EthTransaction.time:type_name -> google.protobuf.Timestamp 13, // 1: base.v1.EthTx.time:type_name -> google.protobuf.Timestamp
3, // 2: base.v1.Txdata.recipient:type_name -> base.v1.Address 3, // 2: base.v1.EthTxData.recipient:type_name -> base.v1.Address
2, // 3: base.v1.Txdata.hash:type_name -> base.v1.Hash 2, // 3: base.v1.EthTxData.hash:type_name -> base.v1.Hash
9, // 4: base.v1.CheckTx.tx:type_name -> google.protobuf.Any 3, // 4: base.v1.StdTxData.recipient:type_name -> base.v1.Address
3, // 5: base.v1.CheckTx.from:type_name -> base.v1.Address 2, // 5: base.v1.StdTxData.hash:type_name -> base.v1.Hash
6, // 6: base.v1.Transaction.check_tx:type_name -> base.v1.CheckTx 6, // 6: base.v1.StdTx.Inner:type_name -> base.v1.StdTxData
7, // [7:7] is the sub-list for method output_type 13, // 7: base.v1.StdTx.time:type_name -> google.protobuf.Timestamp
7, // [7:7] is the sub-list for method input_type 8, // 8: base.v1.Transaction.tx_proof:type_name -> base.v1.TxProof
7, // [7:7] is the sub-list for extension type_name 14, // 9: base.v1.Transaction.tx:type_name -> google.protobuf.Any
7, // [7:7] is the sub-list for extension extendee 8, // 10: base.v1.TransactionStd.tx_proof:type_name -> base.v1.TxProof
0, // [0:7] is the sub-list for field type_name 4, // 11: base.v1.TransactionStd.tx:type_name -> base.v1.EthTx
8, // 12: base.v1.TransactionEth.tx_proof:type_name -> base.v1.TxProof
7, // 13: base.v1.TransactionEth.tx:type_name -> base.v1.StdTx
8, // 14: base.v1.TransactionBytes.tx_proof:type_name -> base.v1.TxProof
15, // [15:15] is the sub-list for method output_type
15, // [15:15] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
15, // [15:15] is the sub-list for extension extendee
0, // [0:15] is the sub-list for field type_name
} }
func init() { file_base_v1_resource_proto_init() } func init() { file_base_v1_resource_proto_init() }
...@@ -694,7 +1132,7 @@ func file_base_v1_resource_proto_init() { ...@@ -694,7 +1132,7 @@ func file_base_v1_resource_proto_init() {
} }
} }
file_base_v1_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_base_v1_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EthTransaction); i { switch v := v.(*EthTx); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
...@@ -706,7 +1144,7 @@ func file_base_v1_resource_proto_init() { ...@@ -706,7 +1144,7 @@ func file_base_v1_resource_proto_init() {
} }
} }
file_base_v1_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_base_v1_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Txdata); i { switch v := v.(*EthTxData); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
...@@ -718,7 +1156,7 @@ func file_base_v1_resource_proto_init() { ...@@ -718,7 +1156,7 @@ func file_base_v1_resource_proto_init() {
} }
} }
file_base_v1_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { file_base_v1_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CheckTx); i { switch v := v.(*StdTxData); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
...@@ -730,6 +1168,30 @@ func file_base_v1_resource_proto_init() { ...@@ -730,6 +1168,30 @@ func file_base_v1_resource_proto_init() {
} }
} }
file_base_v1_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { file_base_v1_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StdTx); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_base_v1_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TxProof); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_base_v1_resource_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Transaction); i { switch v := v.(*Transaction); i {
case 0: case 0:
return &v.state return &v.state
...@@ -741,6 +1203,42 @@ func file_base_v1_resource_proto_init() { ...@@ -741,6 +1203,42 @@ func file_base_v1_resource_proto_init() {
return nil return nil
} }
} }
file_base_v1_resource_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TransactionStd); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_base_v1_resource_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TransactionEth); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_base_v1_resource_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TransactionBytes); 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{
...@@ -748,7 +1246,7 @@ func file_base_v1_resource_proto_init() { ...@@ -748,7 +1246,7 @@ func file_base_v1_resource_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_base_v1_resource_proto_rawDesc, RawDescriptor: file_base_v1_resource_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 8, NumMessages: 13,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
......
...@@ -33,7 +33,7 @@ var file_ethrpc_v1_service_proto_rawDesc = []byte{ ...@@ -33,7 +33,7 @@ var file_ethrpc_v1_service_proto_rawDesc = []byte{
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x61, 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, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x5f, 0x72, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x96, 0x1f, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x84, 0x1f, 0x0a,
0x0a, 0x52, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x0a, 0x52, 0x70, 0x63, 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, 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, 0x53, 0x68, 0x61, 0x33, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74,
...@@ -233,69 +233,68 @@ var file_ethrpc_v1_service_proto_rawDesc = []byte{ ...@@ -233,69 +233,68 @@ var file_ethrpc_v1_service_proto_rawDesc = []byte{
0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 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, 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, 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, 0x50, 0x0a, 0x0f, 0x53, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0f, 0x53, 0x65,
0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x2e, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x2e,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x78, 0x1a, 0x22, 0x2e,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72,
0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x12, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72,
0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x2e, 0x62, 0x61, 0x73, 0x65,
0x6f, 0x6e, 0x12, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x78, 0x1a, 0x25, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x25, 0x2e, 0x65, 0x74, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68,
0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x16, 0x2e, 0x65, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a,
0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x09, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x65, 0x74, 0x68,
0x48, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x65, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x42, 0x6c,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x79, 0x1a, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65,
0x70, 0x74, 0x79, 0x1a, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x18, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x18, 0x50, 0x65, 0x6e, 0x64, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74,
0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2b, 0x2e, 0x65, 0x74, 0x68,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2b, 0x2e, 0x65, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72,
0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x55, 0x6e, 0x69,
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x65,
0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x21, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61,
0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x6e,
0x74, 0x1a, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e,
0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73,
0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x46,
0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x72,
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, 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, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63,
0x67, 0x73, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65,
0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73,
0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x12, 0x16, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb5, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x65, 0x74, 0x68, 0x72, 0x70,
0x68, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x65, 0x22, 0x00, 0x42, 0xb5, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x72,
0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72,
0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61,
0x31, 0x3b, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
0xaa, 0x02, 0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x45, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b,
0x74, 0x68, 0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x45, 0x74, 0x68, 0x72, 0x70, 0x65, 0x74, 0x68, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02,
0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x09, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x45, 0x74, 0x68,
0xea, 0x02, 0x0a, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x45, 0x74, 0x68, 0x72, 0x70, 0x63, 0x5c,
0x72, 0x6f, 0x74, 0x6f, 0x33, 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{}{ var file_ethrpc_v1_service_proto_goTypes = []interface{}{
...@@ -326,7 +325,7 @@ var file_ethrpc_v1_service_proto_goTypes = []interface{}{ ...@@ -326,7 +325,7 @@ var file_ethrpc_v1_service_proto_goTypes = []interface{}{
(*GetCodeRequest)(nil), // 24: ethrpc.v1.GetCodeRequest (*GetCodeRequest)(nil), // 24: ethrpc.v1.GetCodeRequest
(*SignRequest)(nil), // 25: ethrpc.v1.SignRequest (*SignRequest)(nil), // 25: ethrpc.v1.SignRequest
(*SignTransactionRequest)(nil), // 26: ethrpc.v1.SignTransactionRequest (*SignTransactionRequest)(nil), // 26: ethrpc.v1.SignTransactionRequest
(*v1.EthTransaction)(nil), // 27: base.v1.EthTransaction (*v1.EthTx)(nil), // 27: base.v1.EthTx
(*CallRequest)(nil), // 28: ethrpc.v1.CallRequest (*CallRequest)(nil), // 28: ethrpc.v1.CallRequest
(*NewFilterRequest)(nil), // 29: ethrpc.v1.NewFilterRequest (*NewFilterRequest)(nil), // 29: ethrpc.v1.NewFilterRequest
(*UninstallFilterRequest)(nil), // 30: ethrpc.v1.UninstallFilterRequest (*UninstallFilterRequest)(nil), // 30: ethrpc.v1.UninstallFilterRequest
...@@ -419,8 +418,8 @@ var file_ethrpc_v1_service_proto_depIdxs = []int32{ ...@@ -419,8 +418,8 @@ var file_ethrpc_v1_service_proto_depIdxs = []int32{
24, // 34: ethrpc.v1.RpcService.GetCode:input_type -> ethrpc.v1.GetCodeRequest 24, // 34: ethrpc.v1.RpcService.GetCode:input_type -> ethrpc.v1.GetCodeRequest
25, // 35: ethrpc.v1.RpcService.Sign:input_type -> ethrpc.v1.SignRequest 25, // 35: ethrpc.v1.RpcService.Sign:input_type -> ethrpc.v1.SignRequest
26, // 36: ethrpc.v1.RpcService.SignTransaction:input_type -> ethrpc.v1.SignTransactionRequest 26, // 36: ethrpc.v1.RpcService.SignTransaction:input_type -> ethrpc.v1.SignTransactionRequest
27, // 37: ethrpc.v1.RpcService.SendTransaction:input_type -> base.v1.EthTransaction 27, // 37: ethrpc.v1.RpcService.SendTransaction:input_type -> base.v1.EthTx
27, // 38: ethrpc.v1.RpcService.SendRawTransaction:input_type -> base.v1.EthTransaction 27, // 38: ethrpc.v1.RpcService.SendRawTransaction:input_type -> base.v1.EthTx
28, // 39: ethrpc.v1.RpcService.Call:input_type -> ethrpc.v1.CallRequest 28, // 39: ethrpc.v1.RpcService.Call:input_type -> ethrpc.v1.CallRequest
29, // 40: ethrpc.v1.RpcService.NewFilter:input_type -> ethrpc.v1.NewFilterRequest 29, // 40: ethrpc.v1.RpcService.NewFilter:input_type -> ethrpc.v1.NewFilterRequest
1, // 41: ethrpc.v1.RpcService.NewBlockFilter:input_type -> google.protobuf.Empty 1, // 41: ethrpc.v1.RpcService.NewBlockFilter:input_type -> google.protobuf.Empty
......
...@@ -69,8 +69,8 @@ type RpcServiceClient interface { ...@@ -69,8 +69,8 @@ type RpcServiceClient interface {
GetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error) GetCode(ctx context.Context, in *GetCodeRequest, opts ...grpc.CallOption) (*GetCodeResponse, error)
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error) SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error)
SendTransaction(ctx context.Context, in *v1.EthTransaction, opts ...grpc.CallOption) (*SendTransactionResponse, error) SendTransaction(ctx context.Context, in *v1.EthTx, opts ...grpc.CallOption) (*SendTransactionResponse, error)
SendRawTransaction(ctx context.Context, in *v1.EthTransaction, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) SendRawTransaction(ctx context.Context, in *v1.EthTx, opts ...grpc.CallOption) (*SendRawTransactionResponse, error)
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
// filter // filter
NewFilter(ctx context.Context, in *NewFilterRequest, opts ...grpc.CallOption) (*NewFilterResponse, error) NewFilter(ctx context.Context, in *NewFilterRequest, opts ...grpc.CallOption) (*NewFilterResponse, error)
...@@ -423,7 +423,7 @@ func (c *rpcServiceClient) SignTransaction(ctx context.Context, in *SignTransact ...@@ -423,7 +423,7 @@ func (c *rpcServiceClient) SignTransaction(ctx context.Context, in *SignTransact
return out, nil return out, nil
} }
func (c *rpcServiceClient) SendTransaction(ctx context.Context, in *v1.EthTransaction, opts ...grpc.CallOption) (*SendTransactionResponse, error) { func (c *rpcServiceClient) SendTransaction(ctx context.Context, in *v1.EthTx, opts ...grpc.CallOption) (*SendTransactionResponse, error) {
out := new(SendTransactionResponse) out := new(SendTransactionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.RpcService/SendTransaction", in, out, opts...) err := c.cc.Invoke(ctx, "/ethrpc.v1.RpcService/SendTransaction", in, out, opts...)
if err != nil { if err != nil {
...@@ -432,7 +432,7 @@ func (c *rpcServiceClient) SendTransaction(ctx context.Context, in *v1.EthTransa ...@@ -432,7 +432,7 @@ func (c *rpcServiceClient) SendTransaction(ctx context.Context, in *v1.EthTransa
return out, nil return out, nil
} }
func (c *rpcServiceClient) SendRawTransaction(ctx context.Context, in *v1.EthTransaction, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) { func (c *rpcServiceClient) SendRawTransaction(ctx context.Context, in *v1.EthTx, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) {
out := new(SendRawTransactionResponse) out := new(SendRawTransactionResponse)
err := c.cc.Invoke(ctx, "/ethrpc.v1.RpcService/SendRawTransaction", in, out, opts...) err := c.cc.Invoke(ctx, "/ethrpc.v1.RpcService/SendRawTransaction", in, out, opts...)
if err != nil { if err != nil {
...@@ -562,8 +562,8 @@ type RpcServiceServer interface { ...@@ -562,8 +562,8 @@ type RpcServiceServer interface {
GetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error) GetCode(context.Context, *GetCodeRequest) (*GetCodeResponse, error)
Sign(context.Context, *SignRequest) (*SignResponse, error) Sign(context.Context, *SignRequest) (*SignResponse, error)
SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error) SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error)
SendTransaction(context.Context, *v1.EthTransaction) (*SendTransactionResponse, error) SendTransaction(context.Context, *v1.EthTx) (*SendTransactionResponse, error)
SendRawTransaction(context.Context, *v1.EthTransaction) (*SendRawTransactionResponse, error) SendRawTransaction(context.Context, *v1.EthTx) (*SendRawTransactionResponse, error)
Call(context.Context, *CallRequest) (*CallResponse, error) Call(context.Context, *CallRequest) (*CallResponse, error)
// filter // filter
NewFilter(context.Context, *NewFilterRequest) (*NewFilterResponse, error) NewFilter(context.Context, *NewFilterRequest) (*NewFilterResponse, error)
...@@ -691,10 +691,10 @@ func (UnimplementedRpcServiceServer) Sign(context.Context, *SignRequest) (*SignR ...@@ -691,10 +691,10 @@ func (UnimplementedRpcServiceServer) Sign(context.Context, *SignRequest) (*SignR
func (UnimplementedRpcServiceServer) SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error) { func (UnimplementedRpcServiceServer) SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignTransaction not implemented") return nil, status.Errorf(codes.Unimplemented, "method SignTransaction not implemented")
} }
func (UnimplementedRpcServiceServer) SendTransaction(context.Context, *v1.EthTransaction) (*SendTransactionResponse, error) { func (UnimplementedRpcServiceServer) SendTransaction(context.Context, *v1.EthTx) (*SendTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented") return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented")
} }
func (UnimplementedRpcServiceServer) SendRawTransaction(context.Context, *v1.EthTransaction) (*SendRawTransactionResponse, error) { func (UnimplementedRpcServiceServer) SendRawTransaction(context.Context, *v1.EthTx) (*SendRawTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented") return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
} }
func (UnimplementedRpcServiceServer) Call(context.Context, *CallRequest) (*CallResponse, error) { func (UnimplementedRpcServiceServer) Call(context.Context, *CallRequest) (*CallResponse, error) {
...@@ -1401,7 +1401,7 @@ func _RpcService_SignTransaction_Handler(srv interface{}, ctx context.Context, d ...@@ -1401,7 +1401,7 @@ func _RpcService_SignTransaction_Handler(srv interface{}, ctx context.Context, d
} }
func _RpcService_SendTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _RpcService_SendTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.EthTransaction) in := new(v1.EthTx)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -1413,13 +1413,13 @@ func _RpcService_SendTransaction_Handler(srv interface{}, ctx context.Context, d ...@@ -1413,13 +1413,13 @@ func _RpcService_SendTransaction_Handler(srv interface{}, ctx context.Context, d
FullMethod: "/ethrpc.v1.RpcService/SendTransaction", FullMethod: "/ethrpc.v1.RpcService/SendTransaction",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RpcServiceServer).SendTransaction(ctx, req.(*v1.EthTransaction)) return srv.(RpcServiceServer).SendTransaction(ctx, req.(*v1.EthTx))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _RpcService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _RpcService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.EthTransaction) in := new(v1.EthTx)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -1431,7 +1431,7 @@ func _RpcService_SendRawTransaction_Handler(srv interface{}, ctx context.Context ...@@ -1431,7 +1431,7 @@ func _RpcService_SendRawTransaction_Handler(srv interface{}, ctx context.Context
FullMethod: "/ethrpc.v1.RpcService/SendRawTransaction", FullMethod: "/ethrpc.v1.RpcService/SendRawTransaction",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RpcServiceServer).SendRawTransaction(ctx, req.(*v1.EthTransaction)) return srv.(RpcServiceServer).SendRawTransaction(ctx, req.(*v1.EthTx))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
......
...@@ -33,37 +33,37 @@ var file_ring_v1_service_proto_rawDesc = []byte{ ...@@ -33,37 +33,37 @@ 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, 0x96, 0x01, 0x0a, 0x0b, 0x52, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x94, 0x01, 0x0a, 0x0b, 0x52, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54,
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x2e, 0x62, 0x61, 0x73,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x1a, 0x23, 0x2e, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x78, 0x1a, 0x23, 0x2e, 0x72, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e,
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x15, 0x2e, 0x72, 0x00, 0x12, 0x38, 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x15, 0x2e, 0x72, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x1a, 0x16, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63,
0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xa7, 0x01, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xa7, 0x01, 0x0a, 0x0b,
0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73,
0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67,
0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x69, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x69, 0x6e, 0x67,
0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58,
0x58, 0x58, 0xaa, 0x02, 0x07, 0x52, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x52, 0xaa, 0x02, 0x07, 0x52, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x52, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x52, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x52, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47,
0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 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{}{
(*v1.CheckTx)(nil), // 0: base.v1.CheckTx (*v1.EthTx)(nil), // 0: base.v1.EthTx
(*NonceRequest)(nil), // 1: ring.v1.NonceRequest (*NonceRequest)(nil), // 1: ring.v1.NonceRequest
(*SendRawTransactionResponse)(nil), // 2: ring.v1.SendRawTransactionResponse (*SendRawTransactionResponse)(nil), // 2: ring.v1.SendRawTransactionResponse
(*NonceResponse)(nil), // 3: ring.v1.NonceResponse (*NonceResponse)(nil), // 3: ring.v1.NonceResponse
} }
var file_ring_v1_service_proto_depIdxs = []int32{ var file_ring_v1_service_proto_depIdxs = []int32{
0, // 0: ring.v1.RingService.SendRawTransaction:input_type -> base.v1.CheckTx 0, // 0: ring.v1.RingService.SendRawTransaction:input_type -> base.v1.EthTx
1, // 1: ring.v1.RingService.Nonce:input_type -> ring.v1.NonceRequest 1, // 1: ring.v1.RingService.Nonce:input_type -> ring.v1.NonceRequest
2, // 2: ring.v1.RingService.SendRawTransaction:output_type -> ring.v1.SendRawTransactionResponse 2, // 2: ring.v1.RingService.SendRawTransaction:output_type -> ring.v1.SendRawTransactionResponse
3, // 3: ring.v1.RingService.Nonce:output_type -> ring.v1.NonceResponse 3, // 3: ring.v1.RingService.Nonce:output_type -> ring.v1.NonceResponse
......
...@@ -24,7 +24,7 @@ const _ = grpc.SupportPackageIsVersion7 ...@@ -24,7 +24,7 @@ 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 {
// account info service // account info service
SendRawTransaction(ctx context.Context, in *v1.CheckTx, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) SendRawTransaction(ctx context.Context, in *v1.EthTx, opts ...grpc.CallOption) (*SendRawTransactionResponse, error)
Nonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error) Nonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error)
} }
...@@ -36,7 +36,7 @@ func NewRingServiceClient(cc grpc.ClientConnInterface) RingServiceClient { ...@@ -36,7 +36,7 @@ func NewRingServiceClient(cc grpc.ClientConnInterface) RingServiceClient {
return &ringServiceClient{cc} return &ringServiceClient{cc}
} }
func (c *ringServiceClient) SendRawTransaction(ctx context.Context, in *v1.CheckTx, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) { func (c *ringServiceClient) SendRawTransaction(ctx context.Context, in *v1.EthTx, 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...)
if err != nil { if err != nil {
...@@ -59,7 +59,7 @@ func (c *ringServiceClient) Nonce(ctx context.Context, in *NonceRequest, opts .. ...@@ -59,7 +59,7 @@ func (c *ringServiceClient) Nonce(ctx context.Context, in *NonceRequest, opts ..
// for forward compatibility // for forward compatibility
type RingServiceServer interface { type RingServiceServer interface {
// account info service // account info service
SendRawTransaction(context.Context, *v1.CheckTx) (*SendRawTransactionResponse, error) SendRawTransaction(context.Context, *v1.EthTx) (*SendRawTransactionResponse, error)
Nonce(context.Context, *NonceRequest) (*NonceResponse, error) Nonce(context.Context, *NonceRequest) (*NonceResponse, error)
mustEmbedUnimplementedRingServiceServer() mustEmbedUnimplementedRingServiceServer()
} }
...@@ -68,7 +68,7 @@ type RingServiceServer interface { ...@@ -68,7 +68,7 @@ type RingServiceServer interface {
type UnimplementedRingServiceServer struct { type UnimplementedRingServiceServer struct {
} }
func (UnimplementedRingServiceServer) SendRawTransaction(context.Context, *v1.CheckTx) (*SendRawTransactionResponse, error) { func (UnimplementedRingServiceServer) SendRawTransaction(context.Context, *v1.EthTx) (*SendRawTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented") return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
} }
func (UnimplementedRingServiceServer) Nonce(context.Context, *NonceRequest) (*NonceResponse, error) { func (UnimplementedRingServiceServer) Nonce(context.Context, *NonceRequest) (*NonceResponse, error) {
...@@ -88,7 +88,7 @@ func RegisterRingServiceServer(s grpc.ServiceRegistrar, srv RingServiceServer) { ...@@ -88,7 +88,7 @@ func RegisterRingServiceServer(s grpc.ServiceRegistrar, srv RingServiceServer) {
} }
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) {
in := new(v1.CheckTx) in := new(v1.EthTx)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -100,7 +100,7 @@ func _RingService_SendRawTransaction_Handler(srv interface{}, ctx context.Contex ...@@ -100,7 +100,7 @@ func _RingService_SendRawTransaction_Handler(srv interface{}, ctx context.Contex
FullMethod: "/ring.v1.RingService/SendRawTransaction", FullMethod: "/ring.v1.RingService/SendRawTransaction",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RingServiceServer).SendRawTransaction(ctx, req.(*v1.CheckTx)) return srv.(RingServiceServer).SendRawTransaction(ctx, req.(*v1.EthTx))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
......
...@@ -27,7 +27,7 @@ type BatchCheckTxRequest struct { ...@@ -27,7 +27,7 @@ type BatchCheckTxRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Txs []*v1.CheckTx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` Txs []*v1.EthTx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
} }
func (x *BatchCheckTxRequest) Reset() { func (x *BatchCheckTxRequest) Reset() {
...@@ -62,7 +62,7 @@ func (*BatchCheckTxRequest) Descriptor() ([]byte, []int) { ...@@ -62,7 +62,7 @@ func (*BatchCheckTxRequest) Descriptor() ([]byte, []int) {
return file_txchecker_v1_request_response_proto_rawDescGZIP(), []int{0} return file_txchecker_v1_request_response_proto_rawDescGZIP(), []int{0}
} }
func (x *BatchCheckTxRequest) GetTxs() []*v1.CheckTx { func (x *BatchCheckTxRequest) GetTxs() []*v1.EthTx {
if x != nil { if x != nil {
return x.Txs return x.Txs
} }
...@@ -125,28 +125,28 @@ var file_txchecker_v1_request_response_proto_rawDesc = []byte{ ...@@ -125,28 +125,28 @@ var file_txchecker_v1_request_response_proto_rawDesc = []byte{
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72,
0x2e, 0x76, 0x31, 0x1a, 0x16, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 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, 0x39, 0x0a, 0x13, 0x42, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x13, 0x42,
0x61, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x61, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x22, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x0e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x54, 0x78, 0x52,
0x78, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0x2e, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x03, 0x74, 0x78, 0x73, 0x22, 0x2e, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65,
0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06,
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0xd2, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0xd2, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x78, 0x63,
0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x71, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65,
0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
0x6f, 0x50, 0x01, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x01, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61,
0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50,
0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x6f, 0x2f, 0x74, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x74,
0x3b, 0x74, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58,
0x58, 0x58, 0xaa, 0x02, 0x0c, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x56, 0xaa, 0x02, 0x0c, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca,
0x31, 0xca, 0x02, 0x0c, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x02, 0x0c, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02,
0xe2, 0x02, 0x18, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x18, 0x54, 0x78, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x54, 0x78, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x54, 0x78, 0x63, 0x68,
0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x6f, 0x33, 0x33,
} }
var ( var (
...@@ -165,10 +165,10 @@ var file_txchecker_v1_request_response_proto_msgTypes = make([]protoimpl.Message ...@@ -165,10 +165,10 @@ var file_txchecker_v1_request_response_proto_msgTypes = make([]protoimpl.Message
var file_txchecker_v1_request_response_proto_goTypes = []interface{}{ var file_txchecker_v1_request_response_proto_goTypes = []interface{}{
(*BatchCheckTxRequest)(nil), // 0: txchecker.v1.BatchCheckTxRequest (*BatchCheckTxRequest)(nil), // 0: txchecker.v1.BatchCheckTxRequest
(*BatchCheckTxResponse)(nil), // 1: txchecker.v1.BatchCheckTxResponse (*BatchCheckTxResponse)(nil), // 1: txchecker.v1.BatchCheckTxResponse
(*v1.CheckTx)(nil), // 2: base.v1.CheckTx (*v1.EthTx)(nil), // 2: base.v1.EthTx
} }
var file_txchecker_v1_request_response_proto_depIdxs = []int32{ var file_txchecker_v1_request_response_proto_depIdxs = []int32{
2, // 0: txchecker.v1.BatchCheckTxRequest.txs:type_name -> base.v1.CheckTx 2, // 0: txchecker.v1.BatchCheckTxRequest.txs:type_name -> base.v1.EthTx
1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type 1, // [1:1] 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 type_name
......
...@@ -6,7 +6,7 @@ import "base/v1/resource.proto"; ...@@ -6,7 +6,7 @@ import "base/v1/resource.proto";
// The standard BatchGet request definition. // The standard BatchGet request definition.
message BatchCheckTxRequest { message BatchCheckTxRequest {
repeated base.v1.CheckTx txs = 1; repeated base.v1.EthTx txs = 1;
} }
......
...@@ -10,7 +10,7 @@ import "base/v1/resource.proto"; ...@@ -10,7 +10,7 @@ import "base/v1/resource.proto";
service RingService{ service RingService{
// account info service // account info service
rpc SendRawTransaction(base.v1.CheckTx) returns (SendRawTransactionResponse) {}; rpc SendRawTransaction(base.v1.EthTx) returns (SendRawTransactionResponse) {};
rpc Nonce(NonceRequest) returns (NonceResponse) {}; rpc Nonce(NonceRequest) returns (NonceResponse) {};
} }
\ 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