Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
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
exchain
nebula
Commits
1b908768
Commit
1b908768
authored
Feb 27, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update proto
parent
6b703c0d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
376 additions
and
147 deletions
+376
-147
engine.go
engine/engine.go
+5
-2
receipt.pb.go
exchain/protocol/gen/go/nebula/v1/receipt.pb.go
+109
-35
transaction.pb.go
exchain/protocol/gen/go/nebula/v1/transaction.pb.go
+227
-98
receipt.proto
exchain/protocol/proto/nebula/v1/receipt.proto
+4
-0
transaction.proto
exchain/protocol/proto/nebula/v1/transaction.proto
+11
-1
payload_util.go
op-node/rollup/derive/payload_util.go
+15
-6
build_start.go
op-node/rollup/engine/build_start.go
+5
-5
No files found.
engine/engine.go
View file @
1b908768
...
@@ -34,8 +34,11 @@ func (e *ExChainAPI) OutputV0AtBlock(ctx context.Context, blockHash common.Hash)
...
@@ -34,8 +34,11 @@ func (e *ExChainAPI) OutputV0AtBlock(ctx context.Context, blockHash common.Hash)
}
}
func
(
e
*
ExChainAPI
)
ChainID
(
ctx
context
.
Context
)
(
*
big
.
Int
,
error
)
{
func
(
e
*
ExChainAPI
)
ChainID
(
ctx
context
.
Context
)
(
*
big
.
Int
,
error
)
{
//TODO implement me
id
,
err
:=
e
.
chain
.
ChainId
()
panic
(
"implement me"
)
if
err
!=
nil
{
return
nil
,
err
}
return
new
(
big
.
Int
)
.
SetUint64
(
id
.
Uint64
()),
nil
}
}
func
(
e
*
ExChainAPI
)
NewPayload
(
params
exchain
.
PayloadParams
)
(
exchain
.
ExecutionResult
,
error
)
{
func
(
e
*
ExChainAPI
)
NewPayload
(
params
exchain
.
PayloadParams
)
(
exchain
.
ExecutionResult
,
error
)
{
...
...
exchain/protocol/gen/go/nebula/v1/receipt.pb.go
View file @
1b908768
...
@@ -88,6 +88,7 @@ type TransactionReceipt struct {
...
@@ -88,6 +88,7 @@ type TransactionReceipt struct {
// *TransactionReceipt_LimitR
// *TransactionReceipt_LimitR
// *TransactionReceipt_MarketR
// *TransactionReceipt_MarketR
// *TransactionReceipt_CancelR
// *TransactionReceipt_CancelR
// *TransactionReceipt_ProtocolR
Content
isTransactionReceipt_Content
`protobuf_oneof:"content"`
Content
isTransactionReceipt_Content
`protobuf_oneof:"content"`
}
}
...
@@ -221,6 +222,13 @@ func (x *TransactionReceipt) GetCancelR() *CancelOrderReceipt {
...
@@ -221,6 +222,13 @@ func (x *TransactionReceipt) GetCancelR() *CancelOrderReceipt {
return
nil
return
nil
}
}
func
(
x
*
TransactionReceipt
)
GetProtocolR
()
*
ProtocolTransactionReceipt
{
if
x
,
ok
:=
x
.
GetContent
()
.
(
*
TransactionReceipt_ProtocolR
);
ok
{
return
x
.
ProtocolR
}
return
nil
}
type
isTransactionReceipt_Content
interface
{
type
isTransactionReceipt_Content
interface
{
isTransactionReceipt_Content
()
isTransactionReceipt_Content
()
}
}
...
@@ -257,6 +265,10 @@ type TransactionReceipt_CancelR struct {
...
@@ -257,6 +265,10 @@ type TransactionReceipt_CancelR struct {
CancelR
*
CancelOrderReceipt
`protobuf:"bytes,13,opt,name=cancel_r,json=cancelR,proto3,oneof"`
CancelR
*
CancelOrderReceipt
`protobuf:"bytes,13,opt,name=cancel_r,json=cancelR,proto3,oneof"`
}
}
type
TransactionReceipt_ProtocolR
struct
{
ProtocolR
*
ProtocolTransactionReceipt
`protobuf:"bytes,14,opt,name=protocol_r,json=protocolR,proto3,oneof"`
}
func
(
*
TransactionReceipt_SignProxyR
)
isTransactionReceipt_Content
()
{}
func
(
*
TransactionReceipt_SignProxyR
)
isTransactionReceipt_Content
()
{}
func
(
*
TransactionReceipt_DepositR
)
isTransactionReceipt_Content
()
{}
func
(
*
TransactionReceipt_DepositR
)
isTransactionReceipt_Content
()
{}
...
@@ -273,6 +285,8 @@ func (*TransactionReceipt_MarketR) isTransactionReceipt_Content() {}
...
@@ -273,6 +285,8 @@ func (*TransactionReceipt_MarketR) isTransactionReceipt_Content() {}
func
(
*
TransactionReceipt_CancelR
)
isTransactionReceipt_Content
()
{}
func
(
*
TransactionReceipt_CancelR
)
isTransactionReceipt_Content
()
{}
func
(
*
TransactionReceipt_ProtocolR
)
isTransactionReceipt_Content
()
{}
type
SignProxyReceipt
struct
{
type
SignProxyReceipt
struct
{
state
protoimpl
.
MessageState
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
...
@@ -620,6 +634,44 @@ func (x *CancelOrderReceipt) GetOrderId() string {
...
@@ -620,6 +634,44 @@ func (x *CancelOrderReceipt) GetOrderId() string {
return
""
return
""
}
}
type
ProtocolTransactionReceipt
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
}
func
(
x
*
ProtocolTransactionReceipt
)
Reset
()
{
*
x
=
ProtocolTransactionReceipt
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_nebula_v1_receipt_proto_msgTypes
[
10
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
func
(
x
*
ProtocolTransactionReceipt
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
ProtocolTransactionReceipt
)
ProtoMessage
()
{}
func
(
x
*
ProtocolTransactionReceipt
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_nebula_v1_receipt_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 ProtocolTransactionReceipt.ProtoReflect.Descriptor instead.
func
(
*
ProtocolTransactionReceipt
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_nebula_v1_receipt_proto_rawDescGZIP
(),
[]
int
{
10
}
}
var
File_nebula_v1_receipt_proto
protoreflect
.
FileDescriptor
var
File_nebula_v1_receipt_proto
protoreflect
.
FileDescriptor
var
file_nebula_v1_receipt_proto_rawDesc
=
[]
byte
{
var
file_nebula_v1_receipt_proto_rawDesc
=
[]
byte
{
...
@@ -637,7 +689,7 @@ var file_nebula_v1_receipt_proto_rawDesc = []byte{
...
@@ -637,7 +689,7 @@ var file_nebula_v1_receipt_proto_rawDesc = []byte{
0x0b
,
0x32
,
0x25
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x0b
,
0x32
,
0x25
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x52
,
0x08
,
0x72
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x6e
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x52
,
0x08
,
0x72
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x73
,
0x22
,
0x
f6
,
0x05
,
0x0a
,
0x12
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x74
,
0x73
,
0x22
,
0x
c6
,
0x06
,
0x0a
,
0x12
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x68
,
0x61
,
0x73
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x12
,
0x32
,
0x0a
,
0x68
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x12
,
0x32
,
0x0a
,
0x07
,
0x74
,
0x78
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x19
,
0x07
,
0x74
,
0x78
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x19
,
...
@@ -684,6 +736,11 @@ var file_nebula_v1_receipt_proto_rawDesc = []byte{
...
@@ -684,6 +736,11 @@ var file_nebula_v1_receipt_proto_rawDesc = []byte{
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x52
,
0x65
,
0x76
,
0x31
,
0x2e
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x48
,
0x00
,
0x52
,
0x07
,
0x63
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x52
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x48
,
0x00
,
0x52
,
0x07
,
0x63
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x52
,
0x12
,
0x4e
,
0x0a
,
0x0a
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x5f
,
0x72
,
0x18
,
0x0e
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x2d
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x48
,
0x00
,
0x52
,
0x09
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x52
,
0x42
,
0x09
,
0x0a
,
0x07
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x22
,
0x12
,
0x0a
,
0x10
,
0x53
,
0x42
,
0x09
,
0x0a
,
0x07
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x22
,
0x12
,
0x0a
,
0x10
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x22
,
0x69
,
0x67
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x22
,
0x10
,
0x0a
,
0x0e
,
0x44
,
0x65
,
0x70
,
0x6f
,
0x73
,
0x69
,
0x74
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x10
,
0x0a
,
0x0e
,
0x44
,
0x65
,
0x70
,
0x6f
,
0x73
,
0x69
,
0x74
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
...
@@ -704,21 +761,23 @@ var file_nebula_v1_receipt_proto_rawDesc = []byte{
...
@@ -704,21 +761,23 @@ var file_nebula_v1_receipt_proto_rawDesc = []byte{
0x77
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x22
,
0x2f
,
0x0a
,
0x12
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x77
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x22
,
0x2f
,
0x0a
,
0x12
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x12
,
0x19
,
0x0a
,
0x08
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x12
,
0x19
,
0x0a
,
0x08
,
0x6f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x49
,
0x64
,
0x42
,
0xd5
,
0x01
,
0x0a
,
0x15
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x6f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x49
,
0x64
,
0x22
,
0x1c
,
0x0a
,
0x1a
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x63
,
0x6f
,
0x6c
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x31
,
0x42
,
0x0c
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x42
,
0xd5
,
0x01
,
0x0a
,
0x15
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x65
,
0x78
,
0x01
,
0x5a
,
0x48
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x42
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2d
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x0c
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x2f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x48
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x6c
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2f
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2d
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x65
,
0x76
,
0x31
,
0x3b
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x76
,
0x31
,
0xa2
,
0x02
,
0x03
,
0x45
,
0x4e
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x2f
,
0x58
,
0xaa
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2f
,
0x76
,
0x31
,
0x6c
,
0x61
,
0x2e
,
0x56
,
0x31
,
0xca
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x5c
,
0x3b
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x76
,
0x31
,
0xa2
,
0x02
,
0x03
,
0x45
,
0x4e
,
0x58
,
0xaa
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0xe2
,
0x02
,
0x1d
,
0x45
,
0x78
,
0x63
,
0x68
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x61
,
0x69
,
0x6e
,
0x5c
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0x5c
,
0x47
,
0x50
,
0x2e
,
0x56
,
0x31
,
0xca
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x5c
,
0x4e
,
0x65
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x13
,
0x45
,
0x78
,
0x63
,
0x68
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0xe2
,
0x02
,
0x1d
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x61
,
0x69
,
0x6e
,
0x3a
,
0x3a
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x3a
,
0x3a
,
0x56
,
0x31
,
0x62
,
0x6e
,
0x5c
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x13
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x3a
,
0x3a
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x3a
,
0x3a
,
0x56
,
0x31
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
@@ -733,23 +792,24 @@ func file_nebula_v1_receipt_proto_rawDescGZIP() []byte {
...
@@ -733,23 +792,24 @@ func file_nebula_v1_receipt_proto_rawDescGZIP() []byte {
return
file_nebula_v1_receipt_proto_rawDescData
return
file_nebula_v1_receipt_proto_rawDescData
}
}
var
file_nebula_v1_receipt_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
1
0
)
var
file_nebula_v1_receipt_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
1
1
)
var
file_nebula_v1_receipt_proto_goTypes
=
[]
interface
{}{
var
file_nebula_v1_receipt_proto_goTypes
=
[]
interface
{}{
(
*
TransactionReceiptList
)(
nil
),
// 0: exchain.nebula.v1.TransactionReceiptList
(
*
TransactionReceiptList
)(
nil
),
// 0: exchain.nebula.v1.TransactionReceiptList
(
*
TransactionReceipt
)(
nil
),
// 1: exchain.nebula.v1.TransactionReceipt
(
*
TransactionReceipt
)(
nil
),
// 1: exchain.nebula.v1.TransactionReceipt
(
*
SignProxyReceipt
)(
nil
),
// 2: exchain.nebula.v1.SignProxyReceipt
(
*
SignProxyReceipt
)(
nil
),
// 2: exchain.nebula.v1.SignProxyReceipt
(
*
DepositReceipt
)(
nil
),
// 3: exchain.nebula.v1.DepositReceipt
(
*
DepositReceipt
)(
nil
),
// 3: exchain.nebula.v1.DepositReceipt
(
*
WithdrawReceipt
)(
nil
),
// 4: exchain.nebula.v1.WithdrawReceipt
(
*
WithdrawReceipt
)(
nil
),
// 4: exchain.nebula.v1.WithdrawReceipt
(
*
CreatePairReceipt
)(
nil
),
// 5: exchain.nebula.v1.CreatePairReceipt
(
*
CreatePairReceipt
)(
nil
),
// 5: exchain.nebula.v1.CreatePairReceipt
(
*
DisablePairReceipt
)(
nil
),
// 6: exchain.nebula.v1.DisablePairReceipt
(
*
DisablePairReceipt
)(
nil
),
// 6: exchain.nebula.v1.DisablePairReceipt
(
*
LimitOrderReceipt
)(
nil
),
// 7: exchain.nebula.v1.LimitOrderReceipt
(
*
LimitOrderReceipt
)(
nil
),
// 7: exchain.nebula.v1.LimitOrderReceipt
(
*
MarketOrderReceipt
)(
nil
),
// 8: exchain.nebula.v1.MarketOrderReceipt
(
*
MarketOrderReceipt
)(
nil
),
// 8: exchain.nebula.v1.MarketOrderReceipt
(
*
CancelOrderReceipt
)(
nil
),
// 9: exchain.nebula.v1.CancelOrderReceipt
(
*
CancelOrderReceipt
)(
nil
),
// 9: exchain.nebula.v1.CancelOrderReceipt
(
TxType
)(
0
),
// 10: exchain.nebula.v1.TxType
(
*
ProtocolTransactionReceipt
)(
nil
),
// 10: exchain.nebula.v1.ProtocolTransactionReceipt
(
TxType
)(
0
),
// 11: exchain.nebula.v1.TxType
}
}
var
file_nebula_v1_receipt_proto_depIdxs
=
[]
int32
{
var
file_nebula_v1_receipt_proto_depIdxs
=
[]
int32
{
1
,
// 0: exchain.nebula.v1.TransactionReceiptList.receipts:type_name -> exchain.nebula.v1.TransactionReceipt
1
,
// 0: exchain.nebula.v1.TransactionReceiptList.receipts:type_name -> exchain.nebula.v1.TransactionReceipt
1
0
,
// 1: exchain.nebula.v1.TransactionReceipt.tx_type:type_name -> exchain.nebula.v1.TxType
1
1
,
// 1: exchain.nebula.v1.TransactionReceipt.tx_type:type_name -> exchain.nebula.v1.TxType
2
,
// 2: exchain.nebula.v1.TransactionReceipt.sign_proxy_r:type_name -> exchain.nebula.v1.SignProxyReceipt
2
,
// 2: exchain.nebula.v1.TransactionReceipt.sign_proxy_r:type_name -> exchain.nebula.v1.SignProxyReceipt
3
,
// 3: exchain.nebula.v1.TransactionReceipt.deposit_r:type_name -> exchain.nebula.v1.DepositReceipt
3
,
// 3: exchain.nebula.v1.TransactionReceipt.deposit_r:type_name -> exchain.nebula.v1.DepositReceipt
4
,
// 4: exchain.nebula.v1.TransactionReceipt.withdraw_r:type_name -> exchain.nebula.v1.WithdrawReceipt
4
,
// 4: exchain.nebula.v1.TransactionReceipt.withdraw_r:type_name -> exchain.nebula.v1.WithdrawReceipt
...
@@ -758,11 +818,12 @@ var file_nebula_v1_receipt_proto_depIdxs = []int32{
...
@@ -758,11 +818,12 @@ var file_nebula_v1_receipt_proto_depIdxs = []int32{
7
,
// 7: exchain.nebula.v1.TransactionReceipt.limit_r:type_name -> exchain.nebula.v1.LimitOrderReceipt
7
,
// 7: exchain.nebula.v1.TransactionReceipt.limit_r:type_name -> exchain.nebula.v1.LimitOrderReceipt
8
,
// 8: exchain.nebula.v1.TransactionReceipt.market_r:type_name -> exchain.nebula.v1.MarketOrderReceipt
8
,
// 8: exchain.nebula.v1.TransactionReceipt.market_r:type_name -> exchain.nebula.v1.MarketOrderReceipt
9
,
// 9: exchain.nebula.v1.TransactionReceipt.cancel_r:type_name -> exchain.nebula.v1.CancelOrderReceipt
9
,
// 9: exchain.nebula.v1.TransactionReceipt.cancel_r:type_name -> exchain.nebula.v1.CancelOrderReceipt
10
,
// [10:10] is the sub-list for method output_type
10
,
// 10: exchain.nebula.v1.TransactionReceipt.protocol_r:type_name -> exchain.nebula.v1.ProtocolTransactionReceipt
10
,
// [10:10] is the sub-list for method input_type
11
,
// [11:11] is the sub-list for method output_type
10
,
// [10:10] is the sub-list for extension type_name
11
,
// [11:11] is the sub-list for method input_type
10
,
// [10:10] is the sub-list for extension extendee
11
,
// [11:11] is the sub-list for extension type_name
0
,
// [0:10] is the sub-list for field type_name
11
,
// [11:11] is the sub-list for extension extendee
0
,
// [0:11] is the sub-list for field type_name
}
}
func
init
()
{
file_nebula_v1_receipt_proto_init
()
}
func
init
()
{
file_nebula_v1_receipt_proto_init
()
}
...
@@ -892,6 +953,18 @@ func file_nebula_v1_receipt_proto_init() {
...
@@ -892,6 +953,18 @@ func file_nebula_v1_receipt_proto_init() {
return
nil
return
nil
}
}
}
}
file_nebula_v1_receipt_proto_msgTypes
[
10
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
ProtocolTransactionReceipt
);
i
{
case
0
:
return
&
v
.
state
case
1
:
return
&
v
.
sizeCache
case
2
:
return
&
v
.
unknownFields
default
:
return
nil
}
}
}
}
file_nebula_v1_receipt_proto_msgTypes
[
1
]
.
OneofWrappers
=
[]
interface
{}{
file_nebula_v1_receipt_proto_msgTypes
[
1
]
.
OneofWrappers
=
[]
interface
{}{
(
*
TransactionReceipt_SignProxyR
)(
nil
),
(
*
TransactionReceipt_SignProxyR
)(
nil
),
...
@@ -902,6 +975,7 @@ func file_nebula_v1_receipt_proto_init() {
...
@@ -902,6 +975,7 @@ func file_nebula_v1_receipt_proto_init() {
(
*
TransactionReceipt_LimitR
)(
nil
),
(
*
TransactionReceipt_LimitR
)(
nil
),
(
*
TransactionReceipt_MarketR
)(
nil
),
(
*
TransactionReceipt_MarketR
)(
nil
),
(
*
TransactionReceipt_CancelR
)(
nil
),
(
*
TransactionReceipt_CancelR
)(
nil
),
(
*
TransactionReceipt_ProtocolR
)(
nil
),
}
}
type
x
struct
{}
type
x
struct
{}
out
:=
protoimpl
.
TypeBuilder
{
out
:=
protoimpl
.
TypeBuilder
{
...
@@ -909,7 +983,7 @@ func file_nebula_v1_receipt_proto_init() {
...
@@ -909,7 +983,7 @@ func file_nebula_v1_receipt_proto_init() {
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
RawDescriptor
:
file_nebula_v1_receipt_proto_rawDesc
,
RawDescriptor
:
file_nebula_v1_receipt_proto_rawDesc
,
NumEnums
:
0
,
NumEnums
:
0
,
NumMessages
:
1
0
,
NumMessages
:
1
1
,
NumExtensions
:
0
,
NumExtensions
:
0
,
NumServices
:
0
,
NumServices
:
0
,
},
},
...
...
exchain/protocol/gen/go/nebula/v1/transaction.pb.go
View file @
1b908768
...
@@ -33,6 +33,7 @@ const (
...
@@ -33,6 +33,7 @@ const (
TxType_LimitTx
TxType
=
5
TxType_LimitTx
TxType
=
5
TxType_MarketTx
TxType
=
6
TxType_MarketTx
TxType
=
6
TxType_CancelTx
TxType
=
7
TxType_CancelTx
TxType
=
7
TxType_ProtocolTx
TxType
=
8
)
)
// Enum value maps for TxType.
// Enum value maps for TxType.
...
@@ -46,6 +47,7 @@ var (
...
@@ -46,6 +47,7 @@ var (
5
:
"LimitTx"
,
5
:
"LimitTx"
,
6
:
"MarketTx"
,
6
:
"MarketTx"
,
7
:
"CancelTx"
,
7
:
"CancelTx"
,
8
:
"ProtocolTx"
,
}
}
TxType_value
=
map
[
string
]
int32
{
TxType_value
=
map
[
string
]
int32
{
"SignProxyTx"
:
0
,
"SignProxyTx"
:
0
,
...
@@ -56,6 +58,7 @@ var (
...
@@ -56,6 +58,7 @@ var (
"LimitTx"
:
5
,
"LimitTx"
:
5
,
"MarketTx"
:
6
,
"MarketTx"
:
6
,
"CancelTx"
:
7
,
"CancelTx"
:
7
,
"ProtocolTx"
:
8
,
}
}
)
)
...
@@ -214,8 +217,9 @@ type Transaction struct {
...
@@ -214,8 +217,9 @@ type Transaction struct {
// *Transaction_LimitTx
// *Transaction_LimitTx
// *Transaction_MarketTx
// *Transaction_MarketTx
// *Transaction_CancelTx
// *Transaction_CancelTx
// *Transaction_ProtocolTx
Tx
isTransaction_Tx
`protobuf_oneof:"tx"`
Tx
isTransaction_Tx
`protobuf_oneof:"tx"`
Signature
*
Signature
`protobuf:"bytes,1
3
,opt,name=signature,proto3" json:"signature,omitempty"`
Signature
*
Signature
`protobuf:"bytes,1
4
,opt,name=signature,proto3" json:"signature,omitempty"`
}
}
func
(
x
*
Transaction
)
Reset
()
{
func
(
x
*
Transaction
)
Reset
()
{
...
@@ -341,6 +345,13 @@ func (x *Transaction) GetCancelTx() *CancelOrderTransaction {
...
@@ -341,6 +345,13 @@ func (x *Transaction) GetCancelTx() *CancelOrderTransaction {
return
nil
return
nil
}
}
func
(
x
*
Transaction
)
GetProtocolTx
()
*
ProtocolTransaction
{
if
x
,
ok
:=
x
.
GetTx
()
.
(
*
Transaction_ProtocolTx
);
ok
{
return
x
.
ProtocolTx
}
return
nil
}
func
(
x
*
Transaction
)
GetSignature
()
*
Signature
{
func
(
x
*
Transaction
)
GetSignature
()
*
Signature
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Signature
return
x
.
Signature
...
@@ -384,6 +395,10 @@ type Transaction_CancelTx struct {
...
@@ -384,6 +395,10 @@ type Transaction_CancelTx struct {
CancelTx
*
CancelOrderTransaction
`protobuf:"bytes,12,opt,name=cancel_tx,json=cancelTx,proto3,oneof"`
CancelTx
*
CancelOrderTransaction
`protobuf:"bytes,12,opt,name=cancel_tx,json=cancelTx,proto3,oneof"`
}
}
type
Transaction_ProtocolTx
struct
{
ProtocolTx
*
ProtocolTransaction
`protobuf:"bytes,13,opt,name=protocol_tx,json=protocolTx,proto3,oneof"`
}
func
(
*
Transaction_SignProxyTx
)
isTransaction_Tx
()
{}
func
(
*
Transaction_SignProxyTx
)
isTransaction_Tx
()
{}
func
(
*
Transaction_DepositTx
)
isTransaction_Tx
()
{}
func
(
*
Transaction_DepositTx
)
isTransaction_Tx
()
{}
...
@@ -400,6 +415,8 @@ func (*Transaction_MarketTx) isTransaction_Tx() {}
...
@@ -400,6 +415,8 @@ func (*Transaction_MarketTx) isTransaction_Tx() {}
func
(
*
Transaction_CancelTx
)
isTransaction_Tx
()
{}
func
(
*
Transaction_CancelTx
)
isTransaction_Tx
()
{}
func
(
*
Transaction_ProtocolTx
)
isTransaction_Tx
()
{}
type
SignProxyTransaction
struct
{
type
SignProxyTransaction
struct
{
state
protoimpl
.
MessageState
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
...
@@ -872,6 +889,85 @@ func (x *CancelOrderTransaction) GetOrderId() string {
...
@@ -872,6 +889,85 @@ func (x *CancelOrderTransaction) GetOrderId() string {
return
""
return
""
}
}
type
ProtocolTransaction
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
L1Number
uint64
`protobuf:"varint,1,opt,name=l1_number,json=l1Number,proto3" json:"l1_number,omitempty"`
L1Time
uint64
`protobuf:"varint,2,opt,name=l1_time,json=l1Time,proto3" json:"l1_time,omitempty"`
L1BlockHash
[]
byte
`protobuf:"bytes,3,opt,name=l1_block_hash,json=l1BlockHash,proto3" json:"l1_block_hash,omitempty"`
SequenceNumber
uint64
`protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
BatcherAddr
[]
byte
`protobuf:"bytes,5,opt,name=batcher_addr,json=batcherAddr,proto3" json:"batcher_addr,omitempty"`
}
func
(
x
*
ProtocolTransaction
)
Reset
()
{
*
x
=
ProtocolTransaction
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_nebula_v1_transaction_proto_msgTypes
[
11
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
func
(
x
*
ProtocolTransaction
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
ProtocolTransaction
)
ProtoMessage
()
{}
func
(
x
*
ProtocolTransaction
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_nebula_v1_transaction_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 ProtocolTransaction.ProtoReflect.Descriptor instead.
func
(
*
ProtocolTransaction
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_nebula_v1_transaction_proto_rawDescGZIP
(),
[]
int
{
11
}
}
func
(
x
*
ProtocolTransaction
)
GetL1Number
()
uint64
{
if
x
!=
nil
{
return
x
.
L1Number
}
return
0
}
func
(
x
*
ProtocolTransaction
)
GetL1Time
()
uint64
{
if
x
!=
nil
{
return
x
.
L1Time
}
return
0
}
func
(
x
*
ProtocolTransaction
)
GetL1BlockHash
()
[]
byte
{
if
x
!=
nil
{
return
x
.
L1BlockHash
}
return
nil
}
func
(
x
*
ProtocolTransaction
)
GetSequenceNumber
()
uint64
{
if
x
!=
nil
{
return
x
.
SequenceNumber
}
return
0
}
func
(
x
*
ProtocolTransaction
)
GetBatcherAddr
()
[]
byte
{
if
x
!=
nil
{
return
x
.
BatcherAddr
}
return
nil
}
var
File_nebula_v1_transaction_proto
protoreflect
.
FileDescriptor
var
File_nebula_v1_transaction_proto
protoreflect
.
FileDescriptor
var
file_nebula_v1_transaction_proto_rawDesc
=
[]
byte
{
var
file_nebula_v1_transaction_proto_rawDesc
=
[]
byte
{
...
@@ -893,7 +989,7 @@ var file_nebula_v1_transaction_proto_rawDesc = []byte{
...
@@ -893,7 +989,7 @@ var file_nebula_v1_transaction_proto_rawDesc = []byte{
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x12
,
0x30
,
0x0a
,
0x03
,
0x74
,
0x78
,
0x73
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x12
,
0x30
,
0x0a
,
0x03
,
0x74
,
0x78
,
0x73
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x1e
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x1e
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x03
,
0x74
,
0x78
,
0x73
,
0x22
,
0x
a7
,
0x06
,
0x0a
,
0x0b
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x03
,
0x74
,
0x78
,
0x73
,
0x22
,
0x
f2
,
0x06
,
0x0a
,
0x0b
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x32
,
0x0a
,
0x07
,
0x74
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x32
,
0x0a
,
0x07
,
0x74
,
0x78
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x19
,
0x2e
,
0x65
,
0x78
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x19
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
...
@@ -940,86 +1036,104 @@ var file_nebula_v1_transaction_proto_rawDesc = []byte{
...
@@ -940,86 +1036,104 @@ var file_nebula_v1_transaction_proto_rawDesc = []byte{
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x2e
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x48
,
0x00
,
0x52
,
0x08
,
0x63
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x48
,
0x00
,
0x52
,
0x08
,
0x63
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x54
,
0x78
,
0x12
,
0x3a
,
0x0a
,
0x09
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x61
,
0x74
,
0x75
,
0x72
,
0x65
,
0x6c
,
0x54
,
0x78
,
0x12
,
0x49
,
0x0a
,
0x0b
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x5f
,
0x18
,
0x0d
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x74
,
0x78
,
0x18
,
0x0d
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x75
,
0x72
,
0x65
,
0x52
,
0x09
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x61
,
0x74
,
0x75
,
0x72
,
0x65
,
0x42
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x04
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x22
,
0x39
,
0x0a
,
0x14
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x48
,
0x00
,
0x52
,
0x0a
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x54
,
0x78
,
0x12
,
0x3a
,
0x78
,
0x79
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x21
,
0x0a
,
0x0a
,
0x09
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x61
,
0x74
,
0x75
,
0x72
,
0x65
,
0x18
,
0x0e
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x65
,
0x72
,
0x5f
,
0x70
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x18
,
0x01
,
0x20
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x0b
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x65
,
0x72
,
0x50
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x61
,
0x74
,
0x75
,
0x72
,
0x65
,
0x52
,
0x22
,
0x75
,
0x0a
,
0x12
,
0x44
,
0x65
,
0x70
,
0x6f
,
0x73
,
0x69
,
0x74
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x09
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x61
,
0x74
,
0x75
,
0x72
,
0x65
,
0x42
,
0x04
,
0x0a
,
0x02
,
0x74
,
0x78
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x1f
,
0x0a
,
0x0b
,
0x73
,
0x6f
,
0x75
,
0x72
,
0x63
,
0x65
,
0x22
,
0x39
,
0x0a
,
0x14
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x54
,
0x72
,
0x61
,
0x5f
,
0x68
,
0x61
,
0x73
,
0x68
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x0a
,
0x73
,
0x6f
,
0x75
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x72
,
0x63
,
0x65
,
0x48
,
0x61
,
0x73
,
0x68
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x18
,
0x65
,
0x72
,
0x5f
,
0x70
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x0b
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x63
,
0x73
,
0x69
,
0x67
,
0x6e
,
0x65
,
0x72
,
0x50
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x22
,
0x75
,
0x0a
,
0x12
,
0x44
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x12
,
0x65
,
0x70
,
0x6f
,
0x73
,
0x69
,
0x74
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x16
,
0x0a
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x6e
,
0x12
,
0x1f
,
0x0a
,
0x0b
,
0x73
,
0x6f
,
0x75
,
0x72
,
0x63
,
0x65
,
0x5f
,
0x68
,
0x61
,
0x73
,
0x68
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x22
,
0x55
,
0x0a
,
0x13
,
0x57
,
0x69
,
0x74
,
0x68
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x0a
,
0x73
,
0x6f
,
0x75
,
0x72
,
0x63
,
0x65
,
0x48
,
0x61
,
0x72
,
0x61
,
0x77
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x12
,
0x73
,
0x68
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x0a
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x75
,
0x73
,
0x52
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x03
,
0x65
,
0x72
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x61
,
0x6d
,
0x52
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x22
,
0xc0
,
0x6e
,
0x74
,
0x22
,
0x55
,
0x0a
,
0x13
,
0x57
,
0x69
,
0x74
,
0x68
,
0x64
,
0x72
,
0x61
,
0x77
,
0x54
,
0x72
,
0x01
,
0x0a
,
0x15
,
0x43
,
0x72
,
0x65
,
0x61
,
0x74
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x54
,
0x72
,
0x61
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x75
,
0x73
,
0x65
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x34
,
0x0a
,
0x09
,
0x62
,
0x61
,
0x73
,
0x65
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x12
,
0x12
,
0x0a
,
0x5f
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x17
,
0x2e
,
0x65
,
0x78
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x63
,
0x6f
,
0x69
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x52
,
0x08
,
0x62
,
0x61
,
0x73
,
0x65
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x12
,
0x36
,
0x0c
,
0x52
,
0x06
,
0x61
,
0x6d
,
0x6f
,
0x75
,
0x6e
,
0x74
,
0x22
,
0xc0
,
0x01
,
0x0a
,
0x15
,
0x43
,
0x72
,
0x0a
,
0x0a
,
0x71
,
0x75
,
0x6f
,
0x74
,
0x65
,
0x5f
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x65
,
0x61
,
0x74
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x28
,
0x0b
,
0x32
,
0x17
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x34
,
0x0a
,
0x09
,
0x62
,
0x61
,
0x73
,
0x65
,
0x5f
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x52
,
0x09
,
0x71
,
0x75
,
0x6f
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x17
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x74
,
0x65
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x12
,
0x39
,
0x0a
,
0x09
,
0x70
,
0x61
,
0x69
,
0x72
,
0x5f
,
0x69
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x52
,
0x6e
,
0x66
,
0x6f
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x08
,
0x62
,
0x61
,
0x73
,
0x65
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x12
,
0x36
,
0x0a
,
0x0a
,
0x71
,
0x75
,
0x6f
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x50
,
0x61
,
0x74
,
0x65
,
0x5f
,
0x63
,
0x6f
,
0x69
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x17
,
0x2e
,
0x69
,
0x72
,
0x50
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x52
,
0x08
,
0x70
,
0x61
,
0x69
,
0x72
,
0x49
,
0x6e
,
0x66
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x6f
,
0x22
,
0x35
,
0x0a
,
0x16
,
0x44
,
0x69
,
0x73
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x31
,
0x2e
,
0x43
,
0x6f
,
0x69
,
0x6e
,
0x52
,
0x09
,
0x71
,
0x75
,
0x6f
,
0x74
,
0x65
,
0x43
,
0x6f
,
0x69
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x1b
,
0x0a
,
0x09
,
0x70
,
0x6e
,
0x12
,
0x39
,
0x0a
,
0x09
,
0x70
,
0x61
,
0x69
,
0x72
,
0x5f
,
0x69
,
0x6e
,
0x66
,
0x6f
,
0x18
,
0x03
,
0x61
,
0x69
,
0x72
,
0x5f
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x70
,
0x61
,
0x69
,
0x72
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x22
,
0x8f
,
0x01
,
0x0a
,
0x15
,
0x4c
,
0x69
,
0x6d
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x50
,
0x61
,
0x69
,
0x72
,
0x50
,
0x61
,
0x72
,
0x69
,
0x74
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x61
,
0x6d
,
0x52
,
0x08
,
0x70
,
0x61
,
0x69
,
0x72
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x22
,
0x35
,
0x0a
,
0x16
,
0x6f
,
0x6e
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x70
,
0x61
,
0x69
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x44
,
0x69
,
0x73
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x52
,
0x04
,
0x70
,
0x61
,
0x69
,
0x72
,
0x12
,
0x30
,
0x0a
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x18
,
0x02
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x1b
,
0x0a
,
0x09
,
0x70
,
0x61
,
0x69
,
0x72
,
0x5f
,
0x6e
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x61
,
0x69
,
0x72
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x53
,
0x69
,
0x61
,
0x6d
,
0x65
,
0x22
,
0x8f
,
0x01
,
0x0a
,
0x15
,
0x4c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x4f
,
0x72
,
0x64
,
0x64
,
0x65
,
0x52
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x70
,
0x72
,
0x69
,
0x63
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x12
,
0x0a
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x05
,
0x70
,
0x72
,
0x69
,
0x63
,
0x65
,
0x12
,
0x1a
,
0x04
,
0x70
,
0x61
,
0x69
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x70
,
0x61
,
0x69
,
0x0a
,
0x08
,
0x71
,
0x75
,
0x61
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x79
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x72
,
0x12
,
0x30
,
0x0a
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x52
,
0x08
,
0x71
,
0x75
,
0x61
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x79
,
0x22
,
0x7a
,
0x0a
,
0x16
,
0x4d
,
0x61
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x72
,
0x6b
,
0x65
,
0x74
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x53
,
0x69
,
0x64
,
0x65
,
0x52
,
0x04
,
0x73
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x70
,
0x61
,
0x69
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x69
,
0x64
,
0x65
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x70
,
0x72
,
0x69
,
0x63
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x70
,
0x61
,
0x69
,
0x72
,
0x12
,
0x30
,
0x0a
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x28
,
0x0c
,
0x52
,
0x05
,
0x70
,
0x72
,
0x69
,
0x63
,
0x65
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x71
,
0x75
,
0x61
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x79
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x08
,
0x71
,
0x75
,
0x61
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x79
,
0x22
,
0x7a
,
0x0a
,
0x16
,
0x4d
,
0x61
,
0x72
,
0x6b
,
0x65
,
0x74
,
0x4f
,
0x53
,
0x69
,
0x64
,
0x65
,
0x52
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x71
,
0x75
,
0x72
,
0x64
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x61
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x79
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x08
,
0x71
,
0x75
,
0x12
,
0x0a
,
0x04
,
0x70
,
0x61
,
0x69
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x70
,
0x61
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x79
,
0x22
,
0x33
,
0x0a
,
0x16
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x61
,
0x69
,
0x72
,
0x12
,
0x30
,
0x0a
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x0e
,
0x32
,
0x1c
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x12
,
0x19
,
0x0a
,
0x08
,
0x6f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x53
,
0x69
,
0x64
,
0x65
,
0x52
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x49
,
0x64
,
0x2a
,
0x86
,
0x01
,
0x0a
,
0x06
,
0x04
,
0x73
,
0x69
,
0x64
,
0x65
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x71
,
0x75
,
0x61
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x54
,
0x78
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x0f
,
0x0a
,
0x0b
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x50
,
0x72
,
0x79
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x08
,
0x71
,
0x75
,
0x61
,
0x6e
,
0x74
,
0x69
,
0x74
,
0x6f
,
0x78
,
0x79
,
0x54
,
0x78
,
0x10
,
0x00
,
0x12
,
0x0d
,
0x0a
,
0x09
,
0x44
,
0x65
,
0x70
,
0x6f
,
0x73
,
0x79
,
0x22
,
0x33
,
0x0a
,
0x16
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x4f
,
0x72
,
0x64
,
0x65
,
0x72
,
0x69
,
0x74
,
0x54
,
0x78
,
0x10
,
0x01
,
0x12
,
0x0e
,
0x0a
,
0x0a
,
0x57
,
0x69
,
0x74
,
0x68
,
0x64
,
0x72
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x19
,
0x0a
,
0x08
,
0x6f
,
0x61
,
0x77
,
0x54
,
0x78
,
0x10
,
0x02
,
0x12
,
0x10
,
0x0a
,
0x0c
,
0x43
,
0x72
,
0x65
,
0x61
,
0x74
,
0x65
,
0x72
,
0x64
,
0x65
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6f
,
0x50
,
0x61
,
0x69
,
0x72
,
0x54
,
0x78
,
0x10
,
0x03
,
0x12
,
0x11
,
0x0a
,
0x0d
,
0x44
,
0x69
,
0x73
,
0x61
,
0x72
,
0x64
,
0x65
,
0x72
,
0x49
,
0x64
,
0x22
,
0xbb
,
0x01
,
0x0a
,
0x13
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x6c
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x54
,
0x78
,
0x10
,
0x04
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x4c
,
0x63
,
0x6f
,
0x6c
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x1b
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x54
,
0x78
,
0x10
,
0x05
,
0x12
,
0x0c
,
0x0a
,
0x08
,
0x4d
,
0x61
,
0x72
,
0x6b
,
0x0a
,
0x09
,
0x6c
,
0x31
,
0x5f
,
0x6e
,
0x75
,
0x6d
,
0x62
,
0x65
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x65
,
0x74
,
0x54
,
0x78
,
0x10
,
0x06
,
0x12
,
0x0c
,
0x0a
,
0x08
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x04
,
0x52
,
0x08
,
0x6c
,
0x31
,
0x4e
,
0x75
,
0x6d
,
0x62
,
0x65
,
0x72
,
0x12
,
0x17
,
0x0a
,
0x07
,
0x6c
,
0x54
,
0x78
,
0x10
,
0x07
,
0x42
,
0xd9
,
0x01
,
0x0a
,
0x15
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x31
,
0x5f
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x04
,
0x52
,
0x06
,
0x6c
,
0x31
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x42
,
0x10
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x12
,
0x22
,
0x0a
,
0x0d
,
0x6c
,
0x31
,
0x5f
,
0x62
,
0x6c
,
0x6f
,
0x63
,
0x6b
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x5f
,
0x68
,
0x61
,
0x73
,
0x68
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x0b
,
0x6c
,
0x31
,
0x42
,
0x50
,
0x01
,
0x5a
,
0x48
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x65
,
0x6c
,
0x6f
,
0x63
,
0x6b
,
0x48
,
0x61
,
0x73
,
0x68
,
0x12
,
0x27
,
0x0a
,
0x0f
,
0x73
,
0x65
,
0x71
,
0x75
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2d
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x5f
,
0x6e
,
0x75
,
0x6d
,
0x62
,
0x65
,
0x72
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x6e
,
0x2f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x04
,
0x52
,
0x0e
,
0x73
,
0x65
,
0x71
,
0x75
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x4e
,
0x75
,
0x6d
,
0x62
,
0x65
,
0x6f
,
0x6c
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x72
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x62
,
0x61
,
0x74
,
0x63
,
0x68
,
0x65
,
0x72
,
0x5f
,
0x61
,
0x64
,
0x64
,
0x2f
,
0x76
,
0x31
,
0x3b
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x76
,
0x31
,
0xa2
,
0x02
,
0x03
,
0x45
,
0x72
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x0b
,
0x62
,
0x61
,
0x74
,
0x63
,
0x68
,
0x65
,
0x72
,
0x4e
,
0x58
,
0xaa
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x4e
,
0x65
,
0x62
,
0x41
,
0x64
,
0x64
,
0x72
,
0x2a
,
0x96
,
0x01
,
0x0a
,
0x06
,
0x54
,
0x78
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x56
,
0x31
,
0xca
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x0f
,
0x0a
,
0x0b
,
0x53
,
0x69
,
0x67
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x78
,
0x79
,
0x54
,
0x78
,
0x10
,
0x00
,
0x5c
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0xe2
,
0x02
,
0x1d
,
0x45
,
0x78
,
0x63
,
0x12
,
0x0d
,
0x0a
,
0x09
,
0x44
,
0x65
,
0x70
,
0x6f
,
0x73
,
0x69
,
0x74
,
0x54
,
0x78
,
0x10
,
0x01
,
0x12
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x5c
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0x5c
,
0x47
,
0x0e
,
0x0a
,
0x0a
,
0x57
,
0x69
,
0x74
,
0x68
,
0x64
,
0x72
,
0x61
,
0x77
,
0x54
,
0x78
,
0x10
,
0x02
,
0x12
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x13
,
0x45
,
0x78
,
0x63
,
0x10
,
0x0a
,
0x0c
,
0x43
,
0x72
,
0x65
,
0x61
,
0x74
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x54
,
0x78
,
0x10
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x3a
,
0x3a
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x3a
,
0x3a
,
0x56
,
0x31
,
0x03
,
0x12
,
0x11
,
0x0a
,
0x0d
,
0x44
,
0x69
,
0x73
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x50
,
0x61
,
0x69
,
0x72
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x54
,
0x78
,
0x10
,
0x04
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x4c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x54
,
0x78
,
0x10
,
0x05
,
0x12
,
0x0c
,
0x0a
,
0x08
,
0x4d
,
0x61
,
0x72
,
0x6b
,
0x65
,
0x74
,
0x54
,
0x78
,
0x10
,
0x06
,
0x12
,
0x0c
,
0x0a
,
0x08
,
0x43
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x6c
,
0x54
,
0x78
,
0x10
,
0x07
,
0x12
,
0x0e
,
0x0a
,
0x0a
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x54
,
0x78
,
0x10
,
0x08
,
0x42
,
0xd9
,
0x01
,
0x0a
,
0x15
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x76
,
0x31
,
0x42
,
0x10
,
0x54
,
0x72
,
0x61
,
0x6e
,
0x73
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x48
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2d
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x65
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x6c
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2f
,
0x76
,
0x31
,
0x3b
,
0x6e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x76
,
0x31
,
0xa2
,
0x02
,
0x03
,
0x45
,
0x4e
,
0x58
,
0xaa
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x2e
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x2e
,
0x56
,
0x31
,
0xca
,
0x02
,
0x11
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x5c
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0xe2
,
0x02
,
0x1d
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x5c
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x5c
,
0x56
,
0x31
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x13
,
0x45
,
0x78
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x3a
,
0x3a
,
0x4e
,
0x65
,
0x62
,
0x75
,
0x6c
,
0x61
,
0x3a
,
0x3a
,
0x56
,
0x31
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
@@ -1035,7 +1149,7 @@ func file_nebula_v1_transaction_proto_rawDescGZIP() []byte {
...
@@ -1035,7 +1149,7 @@ func file_nebula_v1_transaction_proto_rawDescGZIP() []byte {
}
}
var
file_nebula_v1_transaction_proto_enumTypes
=
make
([]
protoimpl
.
EnumInfo
,
1
)
var
file_nebula_v1_transaction_proto_enumTypes
=
make
([]
protoimpl
.
EnumInfo
,
1
)
var
file_nebula_v1_transaction_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
1
1
)
var
file_nebula_v1_transaction_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
1
2
)
var
file_nebula_v1_transaction_proto_goTypes
=
[]
interface
{}{
var
file_nebula_v1_transaction_proto_goTypes
=
[]
interface
{}{
(
TxType
)(
0
),
// 0: exchain.nebula.v1.TxType
(
TxType
)(
0
),
// 0: exchain.nebula.v1.TxType
(
*
Signature
)(
nil
),
// 1: exchain.nebula.v1.Signature
(
*
Signature
)(
nil
),
// 1: exchain.nebula.v1.Signature
...
@@ -1049,9 +1163,10 @@ var file_nebula_v1_transaction_proto_goTypes = []interface{}{
...
@@ -1049,9 +1163,10 @@ var file_nebula_v1_transaction_proto_goTypes = []interface{}{
(
*
LimitOrderTransaction
)(
nil
),
// 9: exchain.nebula.v1.LimitOrderTransaction
(
*
LimitOrderTransaction
)(
nil
),
// 9: exchain.nebula.v1.LimitOrderTransaction
(
*
MarketOrderTransaction
)(
nil
),
// 10: exchain.nebula.v1.MarketOrderTransaction
(
*
MarketOrderTransaction
)(
nil
),
// 10: exchain.nebula.v1.MarketOrderTransaction
(
*
CancelOrderTransaction
)(
nil
),
// 11: exchain.nebula.v1.CancelOrderTransaction
(
*
CancelOrderTransaction
)(
nil
),
// 11: exchain.nebula.v1.CancelOrderTransaction
(
*
Coin
)(
nil
),
// 12: exchain.nebula.v1.Coin
(
*
ProtocolTransaction
)(
nil
),
// 12: exchain.nebula.v1.ProtocolTransaction
(
*
PairParam
)(
nil
),
// 13: exchain.nebula.v1.PairParam
(
*
Coin
)(
nil
),
// 13: exchain.nebula.v1.Coin
(
OrderSide
)(
0
),
// 14: exchain.nebula.v1.OrderSide
(
*
PairParam
)(
nil
),
// 14: exchain.nebula.v1.PairParam
(
OrderSide
)(
0
),
// 15: exchain.nebula.v1.OrderSide
}
}
var
file_nebula_v1_transaction_proto_depIdxs
=
[]
int32
{
var
file_nebula_v1_transaction_proto_depIdxs
=
[]
int32
{
3
,
// 0: exchain.nebula.v1.TransactionList.txs:type_name -> exchain.nebula.v1.Transaction
3
,
// 0: exchain.nebula.v1.TransactionList.txs:type_name -> exchain.nebula.v1.Transaction
...
@@ -1064,17 +1179,18 @@ var file_nebula_v1_transaction_proto_depIdxs = []int32{
...
@@ -1064,17 +1179,18 @@ var file_nebula_v1_transaction_proto_depIdxs = []int32{
9
,
// 7: exchain.nebula.v1.Transaction.limit_tx:type_name -> exchain.nebula.v1.LimitOrderTransaction
9
,
// 7: exchain.nebula.v1.Transaction.limit_tx:type_name -> exchain.nebula.v1.LimitOrderTransaction
10
,
// 8: exchain.nebula.v1.Transaction.market_tx:type_name -> exchain.nebula.v1.MarketOrderTransaction
10
,
// 8: exchain.nebula.v1.Transaction.market_tx:type_name -> exchain.nebula.v1.MarketOrderTransaction
11
,
// 9: exchain.nebula.v1.Transaction.cancel_tx:type_name -> exchain.nebula.v1.CancelOrderTransaction
11
,
// 9: exchain.nebula.v1.Transaction.cancel_tx:type_name -> exchain.nebula.v1.CancelOrderTransaction
1
,
// 10: exchain.nebula.v1.Transaction.signature:type_name -> exchain.nebula.v1.Signature
12
,
// 10: exchain.nebula.v1.Transaction.protocol_tx:type_name -> exchain.nebula.v1.ProtocolTransaction
12
,
// 11: exchain.nebula.v1.CreatePairTransaction.base_coin:type_name -> exchain.nebula.v1.Coin
1
,
// 11: exchain.nebula.v1.Transaction.signature:type_name -> exchain.nebula.v1.Signature
12
,
// 12: exchain.nebula.v1.CreatePairTransaction.quote_coin:type_name -> exchain.nebula.v1.Coin
13
,
// 12: exchain.nebula.v1.CreatePairTransaction.base_coin:type_name -> exchain.nebula.v1.Coin
13
,
// 13: exchain.nebula.v1.CreatePairTransaction.pair_info:type_name -> exchain.nebula.v1.PairParam
13
,
// 13: exchain.nebula.v1.CreatePairTransaction.quote_coin:type_name -> exchain.nebula.v1.Coin
14
,
// 14: exchain.nebula.v1.LimitOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
14
,
// 14: exchain.nebula.v1.CreatePairTransaction.pair_info:type_name -> exchain.nebula.v1.PairParam
14
,
// 15: exchain.nebula.v1.MarketOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
15
,
// 15: exchain.nebula.v1.LimitOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
16
,
// [16:16] is the sub-list for method output_type
15
,
// 16: exchain.nebula.v1.MarketOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
16
,
// [16:16] is the sub-list for method input_type
17
,
// [17:17] is the sub-list for method output_type
16
,
// [16:16] is the sub-list for extension type_name
17
,
// [17:17] is the sub-list for method input_type
16
,
// [16:16] is the sub-list for extension extendee
17
,
// [17:17] is the sub-list for extension type_name
0
,
// [0:16] is the sub-list for field 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_nebula_v1_transaction_proto_init
()
}
func
init
()
{
file_nebula_v1_transaction_proto_init
()
}
...
@@ -1218,6 +1334,18 @@ func file_nebula_v1_transaction_proto_init() {
...
@@ -1218,6 +1334,18 @@ func file_nebula_v1_transaction_proto_init() {
return
nil
return
nil
}
}
}
}
file_nebula_v1_transaction_proto_msgTypes
[
11
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
ProtocolTransaction
);
i
{
case
0
:
return
&
v
.
state
case
1
:
return
&
v
.
sizeCache
case
2
:
return
&
v
.
unknownFields
default
:
return
nil
}
}
}
}
file_nebula_v1_transaction_proto_msgTypes
[
2
]
.
OneofWrappers
=
[]
interface
{}{
file_nebula_v1_transaction_proto_msgTypes
[
2
]
.
OneofWrappers
=
[]
interface
{}{
(
*
Transaction_SignProxyTx
)(
nil
),
(
*
Transaction_SignProxyTx
)(
nil
),
...
@@ -1228,6 +1356,7 @@ func file_nebula_v1_transaction_proto_init() {
...
@@ -1228,6 +1356,7 @@ func file_nebula_v1_transaction_proto_init() {
(
*
Transaction_LimitTx
)(
nil
),
(
*
Transaction_LimitTx
)(
nil
),
(
*
Transaction_MarketTx
)(
nil
),
(
*
Transaction_MarketTx
)(
nil
),
(
*
Transaction_CancelTx
)(
nil
),
(
*
Transaction_CancelTx
)(
nil
),
(
*
Transaction_ProtocolTx
)(
nil
),
}
}
type
x
struct
{}
type
x
struct
{}
out
:=
protoimpl
.
TypeBuilder
{
out
:=
protoimpl
.
TypeBuilder
{
...
@@ -1235,7 +1364,7 @@ func file_nebula_v1_transaction_proto_init() {
...
@@ -1235,7 +1364,7 @@ func file_nebula_v1_transaction_proto_init() {
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
RawDescriptor
:
file_nebula_v1_transaction_proto_rawDesc
,
RawDescriptor
:
file_nebula_v1_transaction_proto_rawDesc
,
NumEnums
:
1
,
NumEnums
:
1
,
NumMessages
:
1
1
,
NumMessages
:
1
2
,
NumExtensions
:
0
,
NumExtensions
:
0
,
NumServices
:
0
,
NumServices
:
0
,
},
},
...
...
exchain/protocol/proto/nebula/v1/receipt.proto
View file @
1b908768
...
@@ -32,6 +32,7 @@ message TransactionReceipt {
...
@@ -32,6 +32,7 @@ message TransactionReceipt {
LimitOrderReceipt
limit_r
=
11
;
LimitOrderReceipt
limit_r
=
11
;
MarketOrderReceipt
market_r
=
12
;
MarketOrderReceipt
market_r
=
12
;
CancelOrderReceipt
cancel_r
=
13
;
CancelOrderReceipt
cancel_r
=
13
;
ProtocolTransactionReceipt
protocol_r
=
14
;
}
}
}
}
...
@@ -60,3 +61,6 @@ message MarketOrderReceipt {
...
@@ -60,3 +61,6 @@ message MarketOrderReceipt {
message
CancelOrderReceipt
{
message
CancelOrderReceipt
{
string
order_id
=
1
;
string
order_id
=
1
;
}
}
message
ProtocolTransactionReceipt
{
}
exchain/protocol/proto/nebula/v1/transaction.proto
View file @
1b908768
...
@@ -24,6 +24,7 @@ enum TxType {
...
@@ -24,6 +24,7 @@ enum TxType {
LimitTx
=
5
;
LimitTx
=
5
;
MarketTx
=
6
;
MarketTx
=
6
;
CancelTx
=
7
;
CancelTx
=
7
;
ProtocolTx
=
8
;
}
}
message
Signature
{
message
Signature
{
...
@@ -50,8 +51,9 @@ message Transaction {
...
@@ -50,8 +51,9 @@ message Transaction {
LimitOrderTransaction
limit_tx
=
10
;
LimitOrderTransaction
limit_tx
=
10
;
MarketOrderTransaction
market_tx
=
11
;
MarketOrderTransaction
market_tx
=
11
;
CancelOrderTransaction
cancel_tx
=
12
;
CancelOrderTransaction
cancel_tx
=
12
;
ProtocolTransaction
protocol_tx
=
13
;
}
}
Signature
signature
=
1
3
;
Signature
signature
=
1
4
;
}
}
message
SignProxyTransaction
{
message
SignProxyTransaction
{
...
@@ -97,3 +99,11 @@ message MarketOrderTransaction {
...
@@ -97,3 +99,11 @@ message MarketOrderTransaction {
message
CancelOrderTransaction
{
message
CancelOrderTransaction
{
string
order_id
=
1
;
string
order_id
=
1
;
}
}
message
ProtocolTransaction
{
uint64
l1_number
=
1
;
uint64
l1_time
=
2
;
bytes
l1_block_hash
=
3
;
uint64
sequence_number
=
4
;
bytes
batcher_addr
=
5
;
}
op-node/rollup/derive/payload_util.go
View file @
1b908768
...
@@ -3,7 +3,6 @@ package derive
...
@@ -3,7 +3,6 @@ package derive
import
(
import
(
"encoding/binary"
"encoding/binary"
"fmt"
"fmt"
"github.com/exchain/go-exchain/op-node/rollup"
"github.com/exchain/go-exchain/op-node/rollup"
"github.com/exchain/go-exchain/op-service/eth"
"github.com/exchain/go-exchain/op-service/eth"
)
)
...
@@ -22,11 +21,21 @@ func PayloadToBlockRef(rollupCfg *rollup.Config, payload *eth.ExecutionPayload)
...
@@ -22,11 +21,21 @@ func PayloadToBlockRef(rollupCfg *rollup.Config, payload *eth.ExecutionPayload)
sequenceNumber
=
0
sequenceNumber
=
0
}
else
{
}
else
{
// todo: vicotor implement this.
// todo: vicotor implement this.
data
:=
make
([]
byte
,
0
)
//if len(payload.Transactions) == 0 {
info
,
err
:=
L1BlockInfoFromBytes
(
rollupCfg
,
uint64
(
payload
.
Timestamp
),
data
)
// return eth.L2BlockRef{}, fmt.Errorf("l2 block is missing L1 info deposit tx, block hash: %s", payload.BlockHash)
if
err
!=
nil
{
//}
return
eth
.
L2BlockRef
{},
fmt
.
Errorf
(
"failed to parse L1 info deposit tx from L2 block: %w"
,
err
)
//var tx types.Transaction
}
//if err := tx.UnmarshalBinary(payload.Transactions[0]); err != nil {
// return eth.L2BlockRef{}, fmt.Errorf("failed to decode first tx to read l1 info from: %w", err)
//}
//if tx.Type() != types.DepositTxType {
// return eth.L2BlockRef{}, fmt.Errorf("first payload tx has unexpected tx type: %d", tx.Type())
//}
info
,
err
:=
L1BlockInfoFromBytes
(
rollupCfg
,
uint64
(
payload
.
Timestamp
),
tx
.
Data
())
//if err != nil {
// return eth.L2BlockRef{}, fmt.Errorf("failed to parse L1 info deposit tx from L2 block: %w", err)
//}
//l1Origin = eth.BlockID{Hash: info.BlockHash, Number: info.Number}
l1Origin
=
eth
.
BlockID
{
Hash
:
info
.
BlockHash
,
Number
:
info
.
Number
}
l1Origin
=
eth
.
BlockID
{
Hash
:
info
.
BlockHash
,
Number
:
info
.
Number
}
sequenceNumber
=
info
.
SequenceNumber
sequenceNumber
=
info
.
SequenceNumber
}
}
...
...
op-node/rollup/engine/build_start.go
View file @
1b908768
...
@@ -37,11 +37,11 @@ func (eq *EngDeriver) onBuildStart(ev BuildStartEvent) {
...
@@ -37,11 +37,11 @@ func (eq *EngDeriver) onBuildStart(ev BuildStartEvent) {
eq
.
emitter
.
Emit
(
rollup
.
CriticalErrorEvent
{
Err
:
err
})
// make the node exit, things are very wrong.
eq
.
emitter
.
Emit
(
rollup
.
CriticalErrorEvent
{
Err
:
err
})
// make the node exit, things are very wrong.
return
return
}
}
fc
:=
eth
.
ForkchoiceState
{
//
fc := eth.ForkchoiceState{
HeadBlockHash
:
fcEvent
.
UnsafeL2Head
.
Hash
,
//
HeadBlockHash: fcEvent.UnsafeL2Head.Hash,
SafeBlockHash
:
fcEvent
.
SafeL2Head
.
Hash
,
//
SafeBlockHash: fcEvent.SafeL2Head.Hash,
FinalizedBlockHash
:
fcEvent
.
FinalizedL2Head
.
Hash
,
//
FinalizedBlockHash: fcEvent.FinalizedL2Head.Hash,
}
//
}
buildStartTime
:=
time
.
Now
()
buildStartTime
:=
time
.
Now
()
result
,
err
:=
startPayload
(
context
.
TODO
(),
eq
.
ec
.
engine
,
fc
,
ev
.
Attributes
.
Attributes
)
result
,
err
:=
startPayload
(
context
.
TODO
(),
eq
.
ec
.
engine
,
fc
,
ev
.
Attributes
.
Attributes
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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