Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MetaProtocol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nebula
MetaProtocol
Commits
18c0e034
Commit
18c0e034
authored
Dec 04, 2022
by
Ubuntu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add repeated tx with test stat
parent
0669b3d3
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
510 additions
and
138 deletions
+510
-138
resource.proto
baseapi/base/v1/resource.proto
+11
-0
mock_test.go
benchmark/mock_test.go
+12
-13
stat_test.go
benchmark/stat_test.go
+125
-0
test_test.go
benchmark/test_test.go
+12
-0
resource.pb.go
gen/proto/go/base/v1/resource.pb.go
+183
-53
service.pb.go
gen/proto/go/ring/v1/service.pb.go
+89
-72
service_grpc.pb.go
gen/proto/go/ring/v1/service_grpc.pb.go
+72
-0
go.sum
go.sum
+2
-0
service.proto
ringapi/ring/v1/service.proto
+4
-0
No files found.
baseapi/base/v1/resource.proto
View file @
18c0e034
...
...
@@ -37,6 +37,9 @@ message Address {
// AddressLength = 20
// )
message
EthTx
{
EthTxData
Inner
=
1
;
google.protobuf.Timestamp
time
=
2
;
...
...
@@ -105,6 +108,10 @@ message TransactionEth{
EthTx
tx
=
3
;
}
message
RepeatedEthTx
{
repeated
TransactionEth
txs
=
1
;
}
message
TransactionStd
{
TxProof
tx_proof
=
1
;
...
...
@@ -113,6 +120,10 @@ message TransactionStd{
}
message
RepeatedStdTx
{
repeated
TransactionStd
txs
=
1
;
}
//3. bytes
message
TransactionBytes
{
...
...
benchmark/mock_test.go
View file @
18c0e034
package
benchmark
import
(
"fmt"
"testing"
ring
"github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/ring/v1"
...
...
@@ -20,7 +19,7 @@ func TestSendEmptyMsg(t *testing.T) {
mockGreeterClient
:=
NewMockRingServiceClient
(
ctrl
)
mockGreeterClient
.
EXPECT
()
.
SendEmptyMsg
(
gomock
.
Any
(),
gomock
.
Any
()
)
.
Return
(
&
ring
.
EmptyResponse
{},
nil
)
.
AnyTimes
()
mockGreeterClient
.
EXPECT
()
.
SendEmptyMsg
(
gomock
.
Any
(),
&
ring
.
EmptyRequest
{}
)
.
Return
(
&
ring
.
EmptyResponse
{},
nil
)
.
AnyTimes
()
// gomock.Any(), // expect any value for first parameter
// gomock.Any(), // expect any value for second parameter
...
...
@@ -30,17 +29,17 @@ type rpcMsg struct {
msg
proto
.
Message
}
func
(
r
*
rpcMsg
)
Matches
(
msg
interface
{})
bool
{
m
,
ok
:=
msg
.
(
proto
.
Message
)
if
!
ok
{
return
false
}
return
proto
.
Equal
(
m
,
r
.
msg
)
}
func
(
r
*
rpcMsg
)
String
()
string
{
return
fmt
.
Sprintf
(
"is %s"
,
r
.
msg
)
}
//
func (r *rpcMsg) Matches(msg interface{}) bool {
//
m, ok := msg.(proto.Message)
//
if !ok {
//
return false
//
}
//
return proto.Equal(m, r.msg)
//
}
//
func (r *rpcMsg) String() string {
//
return fmt.Sprintf("is %s", r.msg)
//
}
func
TestHelloWorld
(
t
*
testing
.
T
)
{
...
...
benchmark/stat_test.go
0 → 100644
View file @
18c0e034
package
benchmark_test
import
(
"context"
"crypto/ecdsa"
"fmt"
"testing"
"time"
"math/big"
base
"github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1"
ring
"github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/ring/v1"
"github.com/ethereum/go-ethereum/crypto"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
var
tableTx
=
[]
struct
{
input
int
}{
{
input
:
200
},
{
input
:
500
},
{
input
:
1000
},
{
input
:
2000
},
{
input
:
5000
},
}
func
RepeatedEthTx
(
txl
int
,
b
*
testing
.
B
)
{
//b.Logf("b.N: %d\n", b.N)
local
,
err
:=
crypto
.
HexToECDSA
(
"FD5CC6F5E7E2805E920AC5DC83D5AF1106F9C92F0C04F9D5E1FD4261B4B4464A"
)
if
err
!=
nil
{
b
.
Fatal
(
err
)
}
publicKey
:=
local
.
Public
()
publicKeyECDSA
,
_
:=
publicKey
.
(
*
ecdsa
.
PublicKey
)
fromAddr
:=
crypto
.
PubkeyToAddress
(
*
publicKeyECDSA
)
remote
,
err
:=
crypto
.
GenerateKey
()
if
err
!=
nil
{
b
.
Fatal
(
err
)
}
tx
,
err
:=
pricedTransaction
(
crypto
.
PubkeyToAddress
(
remote
.
PublicKey
),
0
,
100000
,
big
.
NewInt
(
1
),
local
)
if
err
!=
nil
{
b
.
Fatal
(
err
)
}
b
.
ResetTimer
()
b
.
RunParallel
(
func
(
pb
*
testing
.
PB
)
{
for
pb
.
Next
()
{
conn
,
err
:=
grpc
.
Dial
(
"127.0.0.1:9006"
,
grpc
.
WithTransportCredentials
(
insecure
.
NewCredentials
()))
if
err
!=
nil
{
b
.
Fatal
(
err
)
}
defer
conn
.
Close
()
c
:=
ring
.
NewRingServiceClient
(
conn
)
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
)
defer
cancel
()
inner
:=
base
.
EthTxData
{
AccountNonce
:
tx
.
Nonce
(),
Price
:
tx
.
GasPrice
()
.
Bytes
(),
GasLimit
:
tx
.
Gas
(),
Payload
:
tx
.
Data
(),
}
v
,
r
,
sigs
:=
tx
.
RawSignatureValues
()
inner
.
V
=
v
.
Bytes
()
inner
.
R
=
r
.
Bytes
()
inner
.
S
=
sigs
.
Bytes
()
inner
.
Amount
=
tx
.
Value
()
.
Bytes
()
addr
:=
base
.
Address
{
Address
:
tx
.
To
()
.
Bytes
()}
inner
.
Recipient
=
&
addr
inner
.
From
=
fromAddr
.
Bytes
()
txs
:=
make
([]
*
base
.
TransactionEth
,
0
,
txl
)
for
i
:=
0
;
i
<
txl
;
i
++
{
txs
=
append
(
txs
,
&
base
.
TransactionEth
{
Tx
:
&
base
.
EthTx
{
Inner
:
&
inner
}})
}
res
,
err
:=
c
.
SendRepeatedEthTx
(
ctx
,
&
base
.
RepeatedEthTx
{
Txs
:
txs
})
if
err
!=
nil
{
b
.
Fatal
(
err
)
}
_
=
res
// if bytes.Compare(tx.Hash().Bytes(), res.TxHash) != 0 {
// b.Fatal(err)
// }
// onceHash.Do(func() {
// b.Logf("response: %x local: %x \n", res.TxHash, tx.Hash().Bytes())
// })
}
})
}
func
BenchmarkRepeated
(
b
*
testing
.
B
)
{
for
_
,
v
:=
range
tableTx
{
b
.
Run
(
fmt
.
Sprintf
(
"input_size_%d"
,
v
.
input
),
func
(
b
*
testing
.
B
)
{
RepeatedEthTx
(
v
.
input
,
b
)
})
}
}
// 验证和 b.Run sub-benchmark的时间一致;
func
Benchmark200RepeatedEthTx
(
b
*
testing
.
B
)
{
RepeatedEthTx
(
5000
,
b
)
}
benchmark/test_test.go
View file @
18c0e034
...
...
@@ -33,6 +33,18 @@ type RingServer struct {
ring
.
UnimplementedRingServiceServer
}
func
(
*
RingServer
)
SendRepeatedStdTx
(
context
.
Context
,
*
base
.
RepeatedStdTx
)
(
*
ring
.
SendRawTransactionResponse
,
error
)
{
//fmt.Printf("SendEmptyMsg: %s \n", time.Now())
return
&
ring
.
SendRawTransactionResponse
{},
nil
}
func
(
*
RingServer
)
SendRepeatedEthTx
(
context
.
Context
,
*
base
.
RepeatedEthTx
)
(
*
ring
.
SendRawTransactionResponse
,
error
)
{
//fmt.Printf("SendEmptyMsg: %s \n", time.Now())
return
&
ring
.
SendRawTransactionResponse
{},
nil
}
func
(
*
RingServer
)
SendEmptyMsg
(
context
.
Context
,
*
ring
.
EmptyRequest
)
(
*
ring
.
EmptyResponse
,
error
)
{
//fmt.Printf("SendEmptyMsg: %s \n", time.Now())
...
...
gen/proto/go/base/v1/resource.pb.go
View file @
18c0e034
...
...
@@ -774,6 +774,53 @@ func (x *TransactionEth) GetTx() *EthTx {
return
nil
}
type
RepeatedEthTx
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
Txs
[]
*
TransactionEth
`protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
}
func
(
x
*
RepeatedEthTx
)
Reset
()
{
*
x
=
RepeatedEthTx
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
11
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
func
(
x
*
RepeatedEthTx
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
RepeatedEthTx
)
ProtoMessage
()
{}
func
(
x
*
RepeatedEthTx
)
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 RepeatedEthTx.ProtoReflect.Descriptor instead.
func
(
*
RepeatedEthTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_base_v1_resource_proto_rawDescGZIP
(),
[]
int
{
11
}
}
func
(
x
*
RepeatedEthTx
)
GetTxs
()
[]
*
TransactionEth
{
if
x
!=
nil
{
return
x
.
Txs
}
return
nil
}
type
TransactionStd
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
...
...
@@ -787,7 +834,7 @@ type TransactionStd struct {
func
(
x
*
TransactionStd
)
Reset
()
{
*
x
=
TransactionStd
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
1
]
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
2
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
...
...
@@ -800,7 +847,7 @@ func (x *TransactionStd) String() string {
func
(
*
TransactionStd
)
ProtoMessage
()
{}
func
(
x
*
TransactionStd
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
1
]
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
2
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
...
...
@@ -813,7 +860,7 @@ func (x *TransactionStd) ProtoReflect() protoreflect.Message {
// Deprecated: Use TransactionStd.ProtoReflect.Descriptor instead.
func
(
*
TransactionStd
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_base_v1_resource_proto_rawDescGZIP
(),
[]
int
{
1
1
}
return
file_base_v1_resource_proto_rawDescGZIP
(),
[]
int
{
1
2
}
}
func
(
x
*
TransactionStd
)
GetTxProof
()
*
TxProof
{
...
...
@@ -837,6 +884,53 @@ func (x *TransactionStd) GetTx() *StdTx {
return
nil
}
type
RepeatedStdTx
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
Txs
[]
*
TransactionStd
`protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
}
func
(
x
*
RepeatedStdTx
)
Reset
()
{
*
x
=
RepeatedStdTx
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
13
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
func
(
x
*
RepeatedStdTx
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
RepeatedStdTx
)
ProtoMessage
()
{}
func
(
x
*
RepeatedStdTx
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
13
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
ms
.
StoreMessageInfo
(
mi
)
}
return
ms
}
return
mi
.
MessageOf
(
x
)
}
// Deprecated: Use RepeatedStdTx.ProtoReflect.Descriptor instead.
func
(
*
RepeatedStdTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_base_v1_resource_proto_rawDescGZIP
(),
[]
int
{
13
}
}
func
(
x
*
RepeatedStdTx
)
GetTxs
()
[]
*
TransactionStd
{
if
x
!=
nil
{
return
x
.
Txs
}
return
nil
}
// 3. bytes
type
TransactionBytes
struct
{
state
protoimpl
.
MessageState
...
...
@@ -852,7 +946,7 @@ type TransactionBytes struct {
func
(
x
*
TransactionBytes
)
Reset
()
{
*
x
=
TransactionBytes
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
2
]
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
4
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
...
...
@@ -865,7 +959,7 @@ func (x *TransactionBytes) String() string {
func
(
*
TransactionBytes
)
ProtoMessage
()
{}
func
(
x
*
TransactionBytes
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
2
]
mi
:=
&
file_base_v1_resource_proto_msgTypes
[
1
4
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
...
...
@@ -878,7 +972,7 @@ func (x *TransactionBytes) ProtoReflect() protoreflect.Message {
// Deprecated: Use TransactionBytes.ProtoReflect.Descriptor instead.
func
(
*
TransactionBytes
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_base_v1_resource_proto_rawDescGZIP
(),
[]
int
{
1
2
}
return
file_base_v1_resource_proto_rawDescGZIP
(),
[]
int
{
1
4
}
}
func
(
x
*
TransactionBytes
)
GetTxProof
()
*
TxProof
{
...
...
@@ -1000,35 +1094,43 @@ var file_base_v1_resource_proto_rawDesc = []byte{
0x74
,
0x69
,
0x6d
,
0x65
,
0x6f
,
0x75
,
0x74
,
0x42
,
0x6c
,
0x6f
,
0x63
,
0x6b
,
0x4e
,
0x75
,
0x6d
,
0x12
,
0x1e
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x0e
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x45
,
0x74
,
0x68
,
0x54
,
0x78
,
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
,
0x1e
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x0e
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x74
,
0x64
,
0x54
,
0x78
,
0x52
,
0x02
,
0x74
,
0x78
,
0x22
,
0x8f
,
0x01
,
0x0a
,
0x10
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x42
,
0x79
,
0x74
,
0x65
,
0x73
,
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
,
0x0e
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x02
,
0x74
,
0x78
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x66
,
0x72
,
0x6f
,
0x6d
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x66
,
0x72
,
0x6f
,
0x6d
,
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
,
0x3a
,
0x0a
,
0x0d
,
0x52
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x65
,
0x64
,
0x45
,
0x74
,
0x68
,
0x54
,
0x78
,
0x12
,
0x29
,
0x0a
,
0x03
,
0x74
,
0x78
,
0x73
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x17
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x45
,
0x74
,
0x68
,
0x52
,
0x03
,
0x74
,
0x78
,
0x73
,
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
,
0x1e
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x0e
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x74
,
0x64
,
0x54
,
0x78
,
0x52
,
0x02
,
0x74
,
0x78
,
0x22
,
0x3a
,
0x0a
,
0x0d
,
0x52
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x74
,
0x64
,
0x54
,
0x78
,
0x12
,
0x29
,
0x0a
,
0x03
,
0x74
,
0x78
,
0x73
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x17
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x53
,
0x74
,
0x64
,
0x52
,
0x03
,
0x74
,
0x78
,
0x73
,
0x22
,
0x8f
,
0x01
,
0x0a
,
0x10
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x42
,
0x79
,
0x74
,
0x65
,
0x73
,
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
,
0x0e
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x02
,
0x74
,
0x78
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x66
,
0x72
,
0x6f
,
0x6d
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x66
,
0x72
,
0x6f
,
0x6d
,
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
(
...
...
@@ -1043,7 +1145,7 @@ func file_base_v1_resource_proto_rawDescGZIP() []byte {
return
file_base_v1_resource_proto_rawDescData
}
var
file_base_v1_resource_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
1
3
)
var
file_base_v1_resource_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
1
5
)
var
file_base_v1_resource_proto_goTypes
=
[]
interface
{}{
(
*
Bytes32
)(
nil
),
// 0: base.v1.Bytes32
(
*
BigInt
)(
nil
),
// 1: base.v1.BigInt
...
...
@@ -1056,32 +1158,36 @@ var file_base_v1_resource_proto_goTypes = []interface{}{
(
*
TxProof
)(
nil
),
// 8: base.v1.TxProof
(
*
Transaction
)(
nil
),
// 9: base.v1.Transaction
(
*
TransactionEth
)(
nil
),
// 10: base.v1.TransactionEth
(
*
TransactionStd
)(
nil
),
// 11: base.v1.TransactionStd
(
*
TransactionBytes
)(
nil
),
// 12: base.v1.TransactionBytes
(
*
timestamppb
.
Timestamp
)(
nil
),
// 13: google.protobuf.Timestamp
(
*
anypb
.
Any
)(
nil
),
// 14: google.protobuf.Any
(
*
RepeatedEthTx
)(
nil
),
// 11: base.v1.RepeatedEthTx
(
*
TransactionStd
)(
nil
),
// 12: base.v1.TransactionStd
(
*
RepeatedStdTx
)(
nil
),
// 13: base.v1.RepeatedStdTx
(
*
TransactionBytes
)(
nil
),
// 14: base.v1.TransactionBytes
(
*
timestamppb
.
Timestamp
)(
nil
),
// 15: google.protobuf.Timestamp
(
*
anypb
.
Any
)(
nil
),
// 16: google.protobuf.Any
}
var
file_base_v1_resource_proto_depIdxs
=
[]
int32
{
5
,
// 0: base.v1.EthTx.Inner:type_name -> base.v1.EthTxData
1
3
,
// 1: base.v1.EthTx.time:type_name -> google.protobuf.Timestamp
1
5
,
// 1: base.v1.EthTx.time:type_name -> google.protobuf.Timestamp
3
,
// 2: base.v1.EthTxData.recipient:type_name -> base.v1.Address
2
,
// 3: base.v1.EthTxData.hash:type_name -> base.v1.Hash
3
,
// 4: base.v1.StdTxData.recipient:type_name -> base.v1.Address
2
,
// 5: base.v1.StdTxData.hash:type_name -> base.v1.Hash
6
,
// 6: base.v1.StdTx.Inner:type_name -> base.v1.StdTxData
1
3
,
// 7: base.v1.StdTx.time:type_name -> google.protobuf.Timestamp
1
5
,
// 7: base.v1.StdTx.time:type_name -> google.protobuf.Timestamp
8
,
// 8: base.v1.Transaction.tx_proof:type_name -> base.v1.TxProof
1
4
,
// 9: base.v1.Transaction.tx:type_name -> google.protobuf.Any
1
6
,
// 9: base.v1.Transaction.tx:type_name -> google.protobuf.Any
8
,
// 10: base.v1.TransactionEth.tx_proof:type_name -> base.v1.TxProof
4
,
// 11: base.v1.TransactionEth.tx:type_name -> base.v1.EthTx
8
,
// 12: base.v1.TransactionStd.tx_proof:type_name -> base.v1.TxProof
7
,
// 13: base.v1.TransactionStd.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
10
,
// 12: base.v1.RepeatedEthTx.txs:type_name -> base.v1.TransactionEth
8
,
// 13: base.v1.TransactionStd.tx_proof:type_name -> base.v1.TxProof
7
,
// 14: base.v1.TransactionStd.tx:type_name -> base.v1.StdTx
12
,
// 15: base.v1.RepeatedStdTx.txs:type_name -> base.v1.TransactionStd
8
,
// 16: base.v1.TransactionBytes.tx_proof:type_name -> base.v1.TxProof
17
,
// [17:17] is the sub-list for method output_type
17
,
// [17:17] is the sub-list for method input_type
17
,
// [17:17] is the sub-list for extension type_name
17
,
// [17:17] is the sub-list for extension extendee
0
,
// [0:17] is the sub-list for field type_name
}
func
init
()
{
file_base_v1_resource_proto_init
()
}
...
...
@@ -1223,7 +1329,7 @@ func file_base_v1_resource_proto_init() {
}
}
file_base_v1_resource_proto_msgTypes
[
11
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
TransactionStd
);
i
{
switch
v
:=
v
.
(
*
RepeatedEthTx
);
i
{
case
0
:
return
&
v
.
state
case
1
:
...
...
@@ -1235,6 +1341,30 @@ func file_base_v1_resource_proto_init() {
}
}
file_base_v1_resource_proto_msgTypes
[
12
]
.
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
[
13
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
RepeatedStdTx
);
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
[
14
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
TransactionBytes
);
i
{
case
0
:
return
&
v
.
state
...
...
@@ -1253,7 +1383,7 @@ func file_base_v1_resource_proto_init() {
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
RawDescriptor
:
file_base_v1_resource_proto_rawDesc
,
NumEnums
:
0
,
NumMessages
:
1
3
,
NumMessages
:
1
5
,
NumExtensions
:
0
,
NumServices
:
0
,
},
...
...
gen/proto/go/ring/v1/service.pb.go
View file @
18c0e034
...
...
@@ -298,58 +298,69 @@ var file_ring_v1_service_proto_rawDesc = []byte{
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x22
,
0x20
,
0x0a
,
0x0a
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x79
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x32
,
0x
84
,
0x04
,
0x0a
,
0x0b
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x6d
,
0x65
,
0x32
,
0x
ac
,
0x05
,
0x0a
,
0x0b
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x4d
,
0x0a
,
0x0b
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x45
,
0x74
,
0x68
,
0x12
,
0x17
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x45
,
0x74
,
0x68
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x4d
,
0x0a
,
0x0b
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x53
,
0x74
,
0x64
,
0x12
,
0x17
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x53
,
0x74
,
0x64
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x4a
,
0x0a
,
0x0b
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x41
,
0x6e
,
0x79
,
0x12
,
0x14
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x51
,
0x0a
,
0x0d
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x42
,
0x79
,
0x74
,
0x65
,
0x73
,
0x12
,
0x19
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x42
,
0x79
,
0x74
,
0x65
,
0x73
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x3d
,
0x0a
,
0x09
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x12
,
0x16
,
0x2e
,
0x67
,
0x00
,
0x12
,
0x52
,
0x0a
,
0x11
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x65
,
0x64
,
0x45
,
0x74
,
0x68
,
0x54
,
0x78
,
0x12
,
0x16
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x65
,
0x64
,
0x45
,
0x74
,
0x68
,
0x54
,
0x78
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x52
,
0x0a
,
0x11
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x74
,
0x64
,
0x54
,
0x78
,
0x12
,
0x16
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x74
,
0x64
,
0x54
,
0x78
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x4d
,
0x0a
,
0x0b
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x53
,
0x74
,
0x64
,
0x12
,
0x17
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x53
,
0x74
,
0x64
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x4a
,
0x0a
,
0x0b
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x41
,
0x6e
,
0x79
,
0x12
,
0x14
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x51
,
0x0a
,
0x0d
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x54
,
0x78
,
0x41
,
0x73
,
0x42
,
0x79
,
0x74
,
0x65
,
0x73
,
0x12
,
0x19
,
0x2e
,
0x62
,
0x61
,
0x73
,
0x65
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x42
,
0x79
,
0x74
,
0x65
,
0x73
,
0x1a
,
0x23
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x52
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x3d
,
0x0a
,
0x09
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x12
,
0x16
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x1a
,
0x16
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x1a
,
0x16
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x22
,
0x00
,
0x12
,
0x3f
,
0x0a
,
0x0c
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x4d
,
0x73
,
0x67
,
0x12
,
0x15
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x16
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x38
,
0x0a
,
0x05
,
0x4e
,
0x6f
,
0x6e
,
0x63
,
0x65
,
0x12
,
0x15
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4e
,
0x6f
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x16
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4e
,
0x6f
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x32
,
0x39
,
0x0a
,
0x09
,
0x4d
,
0x79
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x2c
,
0x0a
,
0x03
,
0x47
,
0x65
,
0x74
,
0x12
,
0x10
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x11
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x32
,
0x43
,
0x0a
,
0x07
,
0x47
,
0x72
,
0x65
,
0x65
,
0x74
,
0x65
,
0x72
,
0x12
,
0x38
,
0x0a
,
0x08
,
0x53
,
0x61
,
0x79
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x12
,
0x15
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x13
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x79
,
0x22
,
0x00
,
0x42
,
0xa7
,
0x01
,
0x0a
,
0x0b
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x42
,
0x0c
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x4d
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x43
,
0x61
,
0x64
,
0x75
,
0x63
,
0x65
,
0x75
,
0x73
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x76
,
0x65
,
0x72
,
0x73
,
0x65
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x2f
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2f
,
0x76
,
0x31
,
0x3b
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x76
,
0x31
,
0xa2
,
0x02
,
0x03
,
0x52
,
0x58
,
0x58
,
0xaa
,
0x02
,
0x07
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x56
,
0x31
,
0xca
,
0x02
,
0x07
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x5c
,
0x56
,
0x31
,
0xe2
,
0x02
,
0x13
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x5c
,
0x56
,
0x31
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x08
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x3a
,
0x3a
,
0x56
,
0x31
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x22
,
0x00
,
0x12
,
0x3f
,
0x0a
,
0x0c
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x4d
,
0x73
,
0x67
,
0x12
,
0x15
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x16
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x12
,
0x38
,
0x0a
,
0x05
,
0x4e
,
0x6f
,
0x6e
,
0x63
,
0x65
,
0x12
,
0x15
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4e
,
0x6f
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x16
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4e
,
0x6f
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x32
,
0x39
,
0x0a
,
0x09
,
0x4d
,
0x79
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x2c
,
0x0a
,
0x03
,
0x47
,
0x65
,
0x74
,
0x12
,
0x10
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x11
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x00
,
0x32
,
0x43
,
0x0a
,
0x07
,
0x47
,
0x72
,
0x65
,
0x65
,
0x74
,
0x65
,
0x72
,
0x12
,
0x38
,
0x0a
,
0x08
,
0x53
,
0x61
,
0x79
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x12
,
0x15
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x13
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x48
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x79
,
0x22
,
0x00
,
0x42
,
0xa7
,
0x01
,
0x0a
,
0x0b
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x76
,
0x31
,
0x42
,
0x0c
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x4d
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x43
,
0x61
,
0x64
,
0x75
,
0x63
,
0x65
,
0x75
,
0x73
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x76
,
0x65
,
0x72
,
0x73
,
0x65
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x2f
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2f
,
0x76
,
0x31
,
0x3b
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x76
,
0x31
,
0xa2
,
0x02
,
0x03
,
0x52
,
0x58
,
0x58
,
0xaa
,
0x02
,
0x07
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x56
,
0x31
,
0xca
,
0x02
,
0x07
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x5c
,
0x56
,
0x31
,
0xe2
,
0x02
,
0x13
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x5c
,
0x56
,
0x31
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x08
,
0x52
,
0x69
,
0x6e
,
0x67
,
0x3a
,
0x3a
,
0x56
,
0x31
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
var
(
...
...
@@ -373,35 +384,41 @@ var file_ring_v1_service_proto_goTypes = []interface{}{
(
*
HelloRequest
)(
nil
),
// 4: ring.v1.HelloRequest
(
*
HelloReply
)(
nil
),
// 5: ring.v1.HelloReply
(
*
v1
.
TransactionEth
)(
nil
),
// 6: base.v1.TransactionEth
(
*
v1
.
TransactionStd
)(
nil
),
// 7: base.v1.TransactionStd
(
*
v1
.
Transaction
)(
nil
),
// 8: base.v1.Transaction
(
*
v1
.
TransactionBytes
)(
nil
),
// 9: base.v1.TransactionBytes
(
*
emptypb
.
Empty
)(
nil
),
// 10: google.protobuf.Empty
(
*
NonceRequest
)(
nil
),
// 11: ring.v1.NonceRequest
(
*
SendRawTransactionResponse
)(
nil
),
// 12: ring.v1.SendRawTransactionResponse
(
*
NonceResponse
)(
nil
),
// 13: ring.v1.NonceResponse
(
*
v1
.
RepeatedEthTx
)(
nil
),
// 7: base.v1.RepeatedEthTx
(
*
v1
.
RepeatedStdTx
)(
nil
),
// 8: base.v1.RepeatedStdTx
(
*
v1
.
TransactionStd
)(
nil
),
// 9: base.v1.TransactionStd
(
*
v1
.
Transaction
)(
nil
),
// 10: base.v1.Transaction
(
*
v1
.
TransactionBytes
)(
nil
),
// 11: base.v1.TransactionBytes
(
*
emptypb
.
Empty
)(
nil
),
// 12: google.protobuf.Empty
(
*
NonceRequest
)(
nil
),
// 13: ring.v1.NonceRequest
(
*
SendRawTransactionResponse
)(
nil
),
// 14: ring.v1.SendRawTransactionResponse
(
*
NonceResponse
)(
nil
),
// 15: ring.v1.NonceResponse
}
var
file_ring_v1_service_proto_depIdxs
=
[]
int32
{
6
,
// 0: ring.v1.RingService.SendTxAsEth:input_type -> base.v1.TransactionEth
7
,
// 1: ring.v1.RingService.SendTxAsStd:input_type -> base.v1.TransactionStd
8
,
// 2: ring.v1.RingService.SendTxAsAny:input_type -> base.v1.Transaction
9
,
// 3: ring.v1.RingService.SendTxAsBytes:input_type -> base.v1.TransactionBytes
10
,
// 4: ring.v1.RingService.SendEmpty:input_type -> google.protobuf.Empty
0
,
// 5: ring.v1.RingService.SendEmptyMsg:input_type -> ring.v1.EmptyRequest
11
,
// 6: ring.v1.RingService.Nonce:input_type -> ring.v1.NonceRequest
2
,
// 7: ring.v1.MyService.Get:input_type -> ring.v1.Request
4
,
// 8: ring.v1.Greeter.SayHello:input_type -> ring.v1.HelloRequest
12
,
// 9: ring.v1.RingService.SendTxAsEth:output_type -> ring.v1.SendRawTransactionResponse
12
,
// 10: ring.v1.RingService.SendTxAsStd:output_type -> ring.v1.SendRawTransactionResponse
12
,
// 11: ring.v1.RingService.SendTxAsAny:output_type -> ring.v1.SendRawTransactionResponse
12
,
// 12: ring.v1.RingService.SendTxAsBytes:output_type -> ring.v1.SendRawTransactionResponse
10
,
// 13: ring.v1.RingService.SendEmpty:output_type -> google.protobuf.Empty
1
,
// 14: ring.v1.RingService.SendEmptyMsg:output_type -> ring.v1.EmptyResponse
13
,
// 15: ring.v1.RingService.Nonce:output_type -> ring.v1.NonceResponse
3
,
// 16: ring.v1.MyService.Get:output_type -> ring.v1.Response
5
,
// 17: ring.v1.Greeter.SayHello:output_type -> ring.v1.HelloReply
9
,
// [9:18] is the sub-list for method output_type
0
,
// [0:9] is the sub-list for method input_type
7
,
// 1: ring.v1.RingService.SendRepeatedEthTx:input_type -> base.v1.RepeatedEthTx
8
,
// 2: ring.v1.RingService.SendRepeatedStdTx:input_type -> base.v1.RepeatedStdTx
9
,
// 3: ring.v1.RingService.SendTxAsStd:input_type -> base.v1.TransactionStd
10
,
// 4: ring.v1.RingService.SendTxAsAny:input_type -> base.v1.Transaction
11
,
// 5: ring.v1.RingService.SendTxAsBytes:input_type -> base.v1.TransactionBytes
12
,
// 6: ring.v1.RingService.SendEmpty:input_type -> google.protobuf.Empty
0
,
// 7: ring.v1.RingService.SendEmptyMsg:input_type -> ring.v1.EmptyRequest
13
,
// 8: ring.v1.RingService.Nonce:input_type -> ring.v1.NonceRequest
2
,
// 9: ring.v1.MyService.Get:input_type -> ring.v1.Request
4
,
// 10: ring.v1.Greeter.SayHello:input_type -> ring.v1.HelloRequest
14
,
// 11: ring.v1.RingService.SendTxAsEth:output_type -> ring.v1.SendRawTransactionResponse
14
,
// 12: ring.v1.RingService.SendRepeatedEthTx:output_type -> ring.v1.SendRawTransactionResponse
14
,
// 13: ring.v1.RingService.SendRepeatedStdTx:output_type -> ring.v1.SendRawTransactionResponse
14
,
// 14: ring.v1.RingService.SendTxAsStd:output_type -> ring.v1.SendRawTransactionResponse
14
,
// 15: ring.v1.RingService.SendTxAsAny:output_type -> ring.v1.SendRawTransactionResponse
14
,
// 16: ring.v1.RingService.SendTxAsBytes:output_type -> ring.v1.SendRawTransactionResponse
12
,
// 17: ring.v1.RingService.SendEmpty:output_type -> google.protobuf.Empty
1
,
// 18: ring.v1.RingService.SendEmptyMsg:output_type -> ring.v1.EmptyResponse
15
,
// 19: ring.v1.RingService.Nonce:output_type -> ring.v1.NonceResponse
3
,
// 20: ring.v1.MyService.Get:output_type -> ring.v1.Response
5
,
// 21: ring.v1.Greeter.SayHello:output_type -> ring.v1.HelloReply
11
,
// [11:22] is the sub-list for method output_type
0
,
// [0:11] is the sub-list for method input_type
0
,
// [0:0] is the sub-list for extension type_name
0
,
// [0:0] is the sub-list for extension extendee
0
,
// [0:0] is the sub-list for field type_name
...
...
gen/proto/go/ring/v1/service_grpc.pb.go
View file @
18c0e034
...
...
@@ -26,6 +26,8 @@ const _ = grpc.SupportPackageIsVersion7
type
RingServiceClient
interface
{
// account info service
SendTxAsEth
(
ctx
context
.
Context
,
in
*
v1
.
TransactionEth
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
SendRepeatedEthTx
(
ctx
context
.
Context
,
in
*
v1
.
RepeatedEthTx
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
SendRepeatedStdTx
(
ctx
context
.
Context
,
in
*
v1
.
RepeatedStdTx
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
SendTxAsStd
(
ctx
context
.
Context
,
in
*
v1
.
TransactionStd
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
SendTxAsAny
(
ctx
context
.
Context
,
in
*
v1
.
Transaction
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
SendTxAsBytes
(
ctx
context
.
Context
,
in
*
v1
.
TransactionBytes
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
...
...
@@ -52,6 +54,24 @@ func (c *ringServiceClient) SendTxAsEth(ctx context.Context, in *v1.TransactionE
return
out
,
nil
}
func
(
c
*
ringServiceClient
)
SendRepeatedEthTx
(
ctx
context
.
Context
,
in
*
v1
.
RepeatedEthTx
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
{
out
:=
new
(
SendRawTransactionResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/ring.v1.RingService/SendRepeatedEthTx"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
ringServiceClient
)
SendRepeatedStdTx
(
ctx
context
.
Context
,
in
*
v1
.
RepeatedStdTx
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
{
out
:=
new
(
SendRawTransactionResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/ring.v1.RingService/SendRepeatedStdTx"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
ringServiceClient
)
SendTxAsStd
(
ctx
context
.
Context
,
in
*
v1
.
TransactionStd
,
opts
...
grpc
.
CallOption
)
(
*
SendRawTransactionResponse
,
error
)
{
out
:=
new
(
SendRawTransactionResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/ring.v1.RingService/SendTxAsStd"
,
in
,
out
,
opts
...
)
...
...
@@ -112,6 +132,8 @@ func (c *ringServiceClient) Nonce(ctx context.Context, in *NonceRequest, opts ..
type
RingServiceServer
interface
{
// account info service
SendTxAsEth
(
context
.
Context
,
*
v1
.
TransactionEth
)
(
*
SendRawTransactionResponse
,
error
)
SendRepeatedEthTx
(
context
.
Context
,
*
v1
.
RepeatedEthTx
)
(
*
SendRawTransactionResponse
,
error
)
SendRepeatedStdTx
(
context
.
Context
,
*
v1
.
RepeatedStdTx
)
(
*
SendRawTransactionResponse
,
error
)
SendTxAsStd
(
context
.
Context
,
*
v1
.
TransactionStd
)
(
*
SendRawTransactionResponse
,
error
)
SendTxAsAny
(
context
.
Context
,
*
v1
.
Transaction
)
(
*
SendRawTransactionResponse
,
error
)
SendTxAsBytes
(
context
.
Context
,
*
v1
.
TransactionBytes
)
(
*
SendRawTransactionResponse
,
error
)
...
...
@@ -129,6 +151,12 @@ type UnimplementedRingServiceServer struct {
func
(
UnimplementedRingServiceServer
)
SendTxAsEth
(
context
.
Context
,
*
v1
.
TransactionEth
)
(
*
SendRawTransactionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method SendTxAsEth not implemented"
)
}
func
(
UnimplementedRingServiceServer
)
SendRepeatedEthTx
(
context
.
Context
,
*
v1
.
RepeatedEthTx
)
(
*
SendRawTransactionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method SendRepeatedEthTx not implemented"
)
}
func
(
UnimplementedRingServiceServer
)
SendRepeatedStdTx
(
context
.
Context
,
*
v1
.
RepeatedStdTx
)
(
*
SendRawTransactionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method SendRepeatedStdTx not implemented"
)
}
func
(
UnimplementedRingServiceServer
)
SendTxAsStd
(
context
.
Context
,
*
v1
.
TransactionStd
)
(
*
SendRawTransactionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method SendTxAsStd not implemented"
)
}
...
...
@@ -178,6 +206,42 @@ func _RingService_SendTxAsEth_Handler(srv interface{}, ctx context.Context, dec
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_RingService_SendRepeatedEthTx_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
v1
.
RepeatedEthTx
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RingServiceServer
)
.
SendRepeatedEthTx
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/ring.v1.RingService/SendRepeatedEthTx"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RingServiceServer
)
.
SendRepeatedEthTx
(
ctx
,
req
.
(
*
v1
.
RepeatedEthTx
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_RingService_SendRepeatedStdTx_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
v1
.
RepeatedStdTx
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RingServiceServer
)
.
SendRepeatedStdTx
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/ring.v1.RingService/SendRepeatedStdTx"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RingServiceServer
)
.
SendRepeatedStdTx
(
ctx
,
req
.
(
*
v1
.
RepeatedStdTx
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_RingService_SendTxAsStd_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
v1
.
TransactionStd
)
if
err
:=
dec
(
in
);
err
!=
nil
{
...
...
@@ -297,6 +361,14 @@ var RingService_ServiceDesc = grpc.ServiceDesc{
MethodName
:
"SendTxAsEth"
,
Handler
:
_RingService_SendTxAsEth_Handler
,
},
{
MethodName
:
"SendRepeatedEthTx"
,
Handler
:
_RingService_SendRepeatedEthTx_Handler
,
},
{
MethodName
:
"SendRepeatedStdTx"
,
Handler
:
_RingService_SendRepeatedStdTx_Handler
,
},
{
MethodName
:
"SendTxAsStd"
,
Handler
:
_RingService_SendTxAsStd_Handler
,
...
...
go.sum
View file @
18c0e034
...
...
@@ -62,6 +62,7 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57 h1:LQmS1nU0twXLA96Kt7U9qtHJEbBk3z6Q0V4UXjZkpr4=
golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
...
...
@@ -105,6 +106,7 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023 h1:0c3L82FDQ5rt1bjTBlchS8t6RQ6299/+5bWMnRLh+uI=
golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
...
...
ringapi/ring/v1/service.proto
View file @
18c0e034
...
...
@@ -14,6 +14,10 @@ service RingService{
// account info service
rpc
SendTxAsEth
(
base.v1.TransactionEth
)
returns
(
SendRawTransactionResponse
)
{};
rpc
SendRepeatedEthTx
(
base.v1.RepeatedEthTx
)
returns
(
SendRawTransactionResponse
)
{};
rpc
SendRepeatedStdTx
(
base.v1.RepeatedStdTx
)
returns
(
SendRawTransactionResponse
)
{};
rpc
SendTxAsStd
(
base.v1.TransactionStd
)
returns
(
SendRawTransactionResponse
)
{};
rpc
SendTxAsAny
(
base.v1.Transaction
)
returns
(
SendRawTransactionResponse
)
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment