Commit 1b908768 authored by vicotor's avatar vicotor

update proto

parent 6b703c0d
......@@ -34,8 +34,11 @@ func (e *ExChainAPI) OutputV0AtBlock(ctx context.Context, blockHash common.Hash)
}
func (e *ExChainAPI) ChainID(ctx context.Context) (*big.Int, error) {
//TODO implement me
panic("implement me")
id, err := e.chain.ChainId()
if err != nil {
return nil, err
}
return new(big.Int).SetUint64(id.Uint64()), nil
}
func (e *ExChainAPI) NewPayload(params exchain.PayloadParams) (exchain.ExecutionResult, error) {
......
......@@ -88,6 +88,7 @@ type TransactionReceipt struct {
// *TransactionReceipt_LimitR
// *TransactionReceipt_MarketR
// *TransactionReceipt_CancelR
// *TransactionReceipt_ProtocolR
Content isTransactionReceipt_Content `protobuf_oneof:"content"`
}
......@@ -221,6 +222,13 @@ func (x *TransactionReceipt) GetCancelR() *CancelOrderReceipt {
return nil
}
func (x *TransactionReceipt) GetProtocolR() *ProtocolTransactionReceipt {
if x, ok := x.GetContent().(*TransactionReceipt_ProtocolR); ok {
return x.ProtocolR
}
return nil
}
type isTransactionReceipt_Content interface {
isTransactionReceipt_Content()
}
......@@ -257,6 +265,10 @@ type TransactionReceipt_CancelR struct {
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_DepositR) isTransactionReceipt_Content() {}
......@@ -273,6 +285,8 @@ func (*TransactionReceipt_MarketR) isTransactionReceipt_Content() {}
func (*TransactionReceipt_CancelR) isTransactionReceipt_Content() {}
func (*TransactionReceipt_ProtocolR) isTransactionReceipt_Content() {}
type SignProxyReceipt struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
......@@ -620,6 +634,44 @@ func (x *CancelOrderReceipt) GetOrderId() string {
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_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,
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,
0x74, 0x73, 0x22, 0xf6, 0x05, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
0x74, 0x73, 0x22, 0xc6, 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,
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,
......@@ -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,
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,
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,
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,
......@@ -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,
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, 0x49, 0x64, 0x42, 0xd5, 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, 0x0c, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 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,
0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 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, 0x42, 0xd5, 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,
0x0c, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 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 (
......@@ -733,23 +792,24 @@ func file_nebula_v1_receipt_proto_rawDescGZIP() []byte {
return file_nebula_v1_receipt_proto_rawDescData
}
var file_nebula_v1_receipt_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_nebula_v1_receipt_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_nebula_v1_receipt_proto_goTypes = []interface{}{
(*TransactionReceiptList)(nil), // 0: exchain.nebula.v1.TransactionReceiptList
(*TransactionReceipt)(nil), // 1: exchain.nebula.v1.TransactionReceipt
(*SignProxyReceipt)(nil), // 2: exchain.nebula.v1.SignProxyReceipt
(*DepositReceipt)(nil), // 3: exchain.nebula.v1.DepositReceipt
(*WithdrawReceipt)(nil), // 4: exchain.nebula.v1.WithdrawReceipt
(*CreatePairReceipt)(nil), // 5: exchain.nebula.v1.CreatePairReceipt
(*DisablePairReceipt)(nil), // 6: exchain.nebula.v1.DisablePairReceipt
(*LimitOrderReceipt)(nil), // 7: exchain.nebula.v1.LimitOrderReceipt
(*MarketOrderReceipt)(nil), // 8: exchain.nebula.v1.MarketOrderReceipt
(*CancelOrderReceipt)(nil), // 9: exchain.nebula.v1.CancelOrderReceipt
(TxType)(0), // 10: exchain.nebula.v1.TxType
(*TransactionReceiptList)(nil), // 0: exchain.nebula.v1.TransactionReceiptList
(*TransactionReceipt)(nil), // 1: exchain.nebula.v1.TransactionReceipt
(*SignProxyReceipt)(nil), // 2: exchain.nebula.v1.SignProxyReceipt
(*DepositReceipt)(nil), // 3: exchain.nebula.v1.DepositReceipt
(*WithdrawReceipt)(nil), // 4: exchain.nebula.v1.WithdrawReceipt
(*CreatePairReceipt)(nil), // 5: exchain.nebula.v1.CreatePairReceipt
(*DisablePairReceipt)(nil), // 6: exchain.nebula.v1.DisablePairReceipt
(*LimitOrderReceipt)(nil), // 7: exchain.nebula.v1.LimitOrderReceipt
(*MarketOrderReceipt)(nil), // 8: exchain.nebula.v1.MarketOrderReceipt
(*CancelOrderReceipt)(nil), // 9: exchain.nebula.v1.CancelOrderReceipt
(*ProtocolTransactionReceipt)(nil), // 10: exchain.nebula.v1.ProtocolTransactionReceipt
(TxType)(0), // 11: exchain.nebula.v1.TxType
}
var file_nebula_v1_receipt_proto_depIdxs = []int32{
1, // 0: exchain.nebula.v1.TransactionReceiptList.receipts:type_name -> exchain.nebula.v1.TransactionReceipt
10, // 1: exchain.nebula.v1.TransactionReceipt.tx_type:type_name -> exchain.nebula.v1.TxType
11, // 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
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
......@@ -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
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
10, // [10:10] is the sub-list for method output_type
10, // [10:10] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
10, // 10: exchain.nebula.v1.TransactionReceipt.protocol_r:type_name -> exchain.nebula.v1.ProtocolTransactionReceipt
11, // [11:11] is the sub-list for method output_type
11, // [11:11] is the sub-list for method input_type
11, // [11:11] is the sub-list for extension 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() }
......@@ -892,6 +953,18 @@ func file_nebula_v1_receipt_proto_init() {
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{}{
(*TransactionReceipt_SignProxyR)(nil),
......@@ -902,6 +975,7 @@ func file_nebula_v1_receipt_proto_init() {
(*TransactionReceipt_LimitR)(nil),
(*TransactionReceipt_MarketR)(nil),
(*TransactionReceipt_CancelR)(nil),
(*TransactionReceipt_ProtocolR)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
......@@ -909,7 +983,7 @@ func file_nebula_v1_receipt_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_nebula_v1_receipt_proto_rawDesc,
NumEnums: 0,
NumMessages: 10,
NumMessages: 11,
NumExtensions: 0,
NumServices: 0,
},
......
......@@ -33,6 +33,7 @@ const (
TxType_LimitTx TxType = 5
TxType_MarketTx TxType = 6
TxType_CancelTx TxType = 7
TxType_ProtocolTx TxType = 8
)
// Enum value maps for TxType.
......@@ -46,6 +47,7 @@ var (
5: "LimitTx",
6: "MarketTx",
7: "CancelTx",
8: "ProtocolTx",
}
TxType_value = map[string]int32{
"SignProxyTx": 0,
......@@ -56,6 +58,7 @@ var (
"LimitTx": 5,
"MarketTx": 6,
"CancelTx": 7,
"ProtocolTx": 8,
}
)
......@@ -214,8 +217,9 @@ type Transaction struct {
// *Transaction_LimitTx
// *Transaction_MarketTx
// *Transaction_CancelTx
// *Transaction_ProtocolTx
Tx isTransaction_Tx `protobuf_oneof:"tx"`
Signature *Signature `protobuf:"bytes,13,opt,name=signature,proto3" json:"signature,omitempty"`
Signature *Signature `protobuf:"bytes,14,opt,name=signature,proto3" json:"signature,omitempty"`
}
func (x *Transaction) Reset() {
......@@ -341,6 +345,13 @@ func (x *Transaction) GetCancelTx() *CancelOrderTransaction {
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 {
if x != nil {
return x.Signature
......@@ -384,6 +395,10 @@ type Transaction_CancelTx struct {
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_DepositTx) isTransaction_Tx() {}
......@@ -400,6 +415,8 @@ func (*Transaction_MarketTx) isTransaction_Tx() {}
func (*Transaction_CancelTx) isTransaction_Tx() {}
func (*Transaction_ProtocolTx) isTransaction_Tx() {}
type SignProxyTransaction struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
......@@ -872,6 +889,85 @@ func (x *CancelOrderTransaction) GetOrderId() string {
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_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,
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,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0xa7, 0x06, 0x0a, 0x0b,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0xf2, 0x06, 0x0a, 0x0b,
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, 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{
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,
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,
0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61,
0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42,
0x04, 0x0a, 0x02, 0x74, 0x78, 0x22, 0x39, 0x0a, 0x14, 0x53, 0x69, 0x67, 0x6e, 0x50, 0x72, 0x6f,
0x78, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a,
0x0c, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79,
0x22, 0x75, 0x0a, 0x12, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63,
0x6f, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12,
0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52,
0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x55, 0x0a, 0x13, 0x57, 0x69, 0x74, 0x68, 0x64,
0x72, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12,
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73,
0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xc0,
0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x69, 0x72, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65,
0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x78,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x6f, 0x69, 0x6e, 0x52, 0x08, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x36,
0x0a, 0x0a, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62,
0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x09, 0x71, 0x75, 0x6f,
0x74, 0x65, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x39, 0x0a, 0x09, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69,
0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61,
0x69, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x08, 0x70, 0x61, 0x69, 0x72, 0x49, 0x6e, 0x66,
0x6f, 0x22, 0x35, 0x0a, 0x16, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x69, 0x72,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70,
0x61, 0x69, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x70, 0x61, 0x69, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x6d,
0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x70, 0x61, 0x69, 0x72, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e,
0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x69,
0x64, 0x65, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a,
0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x7a, 0x0a, 0x16, 0x4d, 0x61,
0x72, 0x6b, 0x65, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x69, 0x72, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72,
0x53, 0x69, 0x64, 0x65, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75,
0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x71, 0x75,
0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x33, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,
0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
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, 0x49, 0x64, 0x2a, 0x86, 0x01, 0x0a, 0x06,
0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x50, 0x72,
0x6f, 0x78, 0x79, 0x54, 0x78, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x54, 0x78, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72,
0x61, 0x77, 0x54, 0x78, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x50, 0x61, 0x69, 0x72, 0x54, 0x78, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x69, 0x73, 0x61,
0x62, 0x6c, 0x65, 0x50, 0x61, 0x69, 0x72, 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, 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,
0x6c, 0x54, 0x78, 0x12, 0x49, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f,
0x74, 0x78, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 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,
0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x54, 0x78, 0x12, 0x3a,
0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62, 0x75,
0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52,
0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x04, 0x0a, 0x02, 0x74, 0x78,
0x22, 0x39, 0x0a, 0x14, 0x53, 0x69, 0x67, 0x6e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e,
0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b,
0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x75, 0x0a, 0x12, 0x44,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x61,
0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d,
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75,
0x6e, 0x74, 0x22, 0x55, 0x0a, 0x13, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x72,
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a,
0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x69,
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xc0, 0x01, 0x0a, 0x15, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x69, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x69, 0x6e,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52,
0x08, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x0a, 0x71, 0x75, 0x6f,
0x74, 0x65, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x43, 0x6f, 0x69,
0x6e, 0x12, 0x39, 0x0a, 0x09, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e,
0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x52, 0x08, 0x70, 0x61, 0x69, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x35, 0x0a, 0x16,
0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x69, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73,
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x69, 0x72, 0x4e,
0x61, 0x6d, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64,
0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a,
0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x69,
0x72, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61,
0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x69, 0x64, 0x65, 0x52, 0x04, 0x73,
0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x71, 0x75, 0x61,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x7a, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4f,
0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
0x61, 0x69, 0x72, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6e, 0x65, 0x62, 0x75,
0x6c, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x69, 0x64, 0x65, 0x52,
0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x22, 0x33, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 0x49, 0x64, 0x22, 0xbb, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x63, 0x6f, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
0x0a, 0x09, 0x6c, 0x31, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x04, 0x52, 0x08, 0x6c, 0x31, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6c,
0x31, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6c, 0x31,
0x54, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6c, 0x31, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6c, 0x31, 0x42,
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75,
0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,
0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65,
0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64,
0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
0x41, 0x64, 0x64, 0x72, 0x2a, 0x96, 0x01, 0x0a, 0x06, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12,
0x0f, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x54, 0x78, 0x10, 0x00,
0x12, 0x0d, 0x0a, 0x09, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x78, 0x10, 0x01, 0x12,
0x0e, 0x0a, 0x0a, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x78, 0x10, 0x02, 0x12,
0x10, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x69, 0x72, 0x54, 0x78, 0x10,
0x03, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x69, 0x72,
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 (
......@@ -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_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_nebula_v1_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_nebula_v1_transaction_proto_goTypes = []interface{}{
(TxType)(0), // 0: exchain.nebula.v1.TxType
(*Signature)(nil), // 1: exchain.nebula.v1.Signature
......@@ -1049,9 +1163,10 @@ var file_nebula_v1_transaction_proto_goTypes = []interface{}{
(*LimitOrderTransaction)(nil), // 9: exchain.nebula.v1.LimitOrderTransaction
(*MarketOrderTransaction)(nil), // 10: exchain.nebula.v1.MarketOrderTransaction
(*CancelOrderTransaction)(nil), // 11: exchain.nebula.v1.CancelOrderTransaction
(*Coin)(nil), // 12: exchain.nebula.v1.Coin
(*PairParam)(nil), // 13: exchain.nebula.v1.PairParam
(OrderSide)(0), // 14: exchain.nebula.v1.OrderSide
(*ProtocolTransaction)(nil), // 12: exchain.nebula.v1.ProtocolTransaction
(*Coin)(nil), // 13: exchain.nebula.v1.Coin
(*PairParam)(nil), // 14: exchain.nebula.v1.PairParam
(OrderSide)(0), // 15: exchain.nebula.v1.OrderSide
}
var file_nebula_v1_transaction_proto_depIdxs = []int32{
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{
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
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, // 11: exchain.nebula.v1.CreatePairTransaction.base_coin:type_name -> exchain.nebula.v1.Coin
12, // 12: exchain.nebula.v1.CreatePairTransaction.quote_coin:type_name -> exchain.nebula.v1.Coin
13, // 13: exchain.nebula.v1.CreatePairTransaction.pair_info:type_name -> exchain.nebula.v1.PairParam
14, // 14: exchain.nebula.v1.LimitOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
14, // 15: exchain.nebula.v1.MarketOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
16, // [16:16] is the sub-list for method output_type
16, // [16:16] is the sub-list for method input_type
16, // [16:16] is the sub-list for extension type_name
16, // [16:16] is the sub-list for extension extendee
0, // [0:16] is the sub-list for field type_name
12, // 10: exchain.nebula.v1.Transaction.protocol_tx:type_name -> exchain.nebula.v1.ProtocolTransaction
1, // 11: exchain.nebula.v1.Transaction.signature:type_name -> exchain.nebula.v1.Signature
13, // 12: exchain.nebula.v1.CreatePairTransaction.base_coin:type_name -> exchain.nebula.v1.Coin
13, // 13: exchain.nebula.v1.CreatePairTransaction.quote_coin:type_name -> exchain.nebula.v1.Coin
14, // 14: exchain.nebula.v1.CreatePairTransaction.pair_info:type_name -> exchain.nebula.v1.PairParam
15, // 15: exchain.nebula.v1.LimitOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
15, // 16: exchain.nebula.v1.MarketOrderTransaction.side:type_name -> exchain.nebula.v1.OrderSide
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_nebula_v1_transaction_proto_init() }
......@@ -1218,6 +1334,18 @@ func file_nebula_v1_transaction_proto_init() {
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{}{
(*Transaction_SignProxyTx)(nil),
......@@ -1228,6 +1356,7 @@ func file_nebula_v1_transaction_proto_init() {
(*Transaction_LimitTx)(nil),
(*Transaction_MarketTx)(nil),
(*Transaction_CancelTx)(nil),
(*Transaction_ProtocolTx)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
......@@ -1235,7 +1364,7 @@ func file_nebula_v1_transaction_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_nebula_v1_transaction_proto_rawDesc,
NumEnums: 1,
NumMessages: 11,
NumMessages: 12,
NumExtensions: 0,
NumServices: 0,
},
......
......@@ -32,6 +32,7 @@ message TransactionReceipt {
LimitOrderReceipt limit_r = 11;
MarketOrderReceipt market_r = 12;
CancelOrderReceipt cancel_r = 13;
ProtocolTransactionReceipt protocol_r = 14;
}
}
......@@ -60,3 +61,6 @@ message MarketOrderReceipt {
message CancelOrderReceipt {
string order_id = 1;
}
message ProtocolTransactionReceipt {
}
......@@ -24,6 +24,7 @@ enum TxType {
LimitTx = 5;
MarketTx = 6;
CancelTx = 7;
ProtocolTx = 8;
}
message Signature {
......@@ -50,8 +51,9 @@ message Transaction {
LimitOrderTransaction limit_tx = 10;
MarketOrderTransaction market_tx = 11;
CancelOrderTransaction cancel_tx = 12;
ProtocolTransaction protocol_tx = 13;
}
Signature signature = 13;
Signature signature = 14;
}
message SignProxyTransaction {
......@@ -97,3 +99,11 @@ message MarketOrderTransaction {
message CancelOrderTransaction {
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;
}
......@@ -3,7 +3,6 @@ package derive
import (
"encoding/binary"
"fmt"
"github.com/exchain/go-exchain/op-node/rollup"
"github.com/exchain/go-exchain/op-service/eth"
)
......@@ -22,11 +21,21 @@ func PayloadToBlockRef(rollupCfg *rollup.Config, payload *eth.ExecutionPayload)
sequenceNumber = 0
} else {
// todo: vicotor implement this.
data := make([]byte, 0)
info, err := L1BlockInfoFromBytes(rollupCfg, uint64(payload.Timestamp), data)
if err != nil {
return eth.L2BlockRef{}, fmt.Errorf("failed to parse L1 info deposit tx from L2 block: %w", err)
}
//if len(payload.Transactions) == 0 {
// return eth.L2BlockRef{}, fmt.Errorf("l2 block is missing L1 info deposit tx, block hash: %s", payload.BlockHash)
//}
//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}
sequenceNumber = info.SequenceNumber
}
......
......@@ -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.
return
}
fc := eth.ForkchoiceState{
HeadBlockHash: fcEvent.UnsafeL2Head.Hash,
SafeBlockHash: fcEvent.SafeL2Head.Hash,
FinalizedBlockHash: fcEvent.FinalizedL2Head.Hash,
}
//fc := eth.ForkchoiceState{
// HeadBlockHash: fcEvent.UnsafeL2Head.Hash,
// SafeBlockHash: fcEvent.SafeL2Head.Hash,
// FinalizedBlockHash: fcEvent.FinalizedL2Head.Hash,
//}
buildStartTime := time.Now()
result, err := startPayload(context.TODO(), eq.ec.engine, fc, ev.Attributes.Attributes)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment