From 664a6aa7d7e6c2b774ade0e1fae7188d29b00bac Mon Sep 17 00:00:00 2001 From: Matt Curtis Date: Tue, 28 Nov 2023 11:12:30 +0000 Subject: [PATCH] Contract addresses: Have host fetch contract address from enclave --- go/common/enclave.go | 3 + go/common/query_types.go | 1 + go/common/rpc/generated/enclave.pb.go | 1048 ++++++++++------- go/common/rpc/generated/enclave.proto | 8 + go/common/rpc/generated/enclave_grpc.pb.go | 36 + go/enclave/crosschain/processors.go | 6 + go/enclave/enclave.go | 4 + go/enclave/rpc_server.go | 9 + go/host/host.go | 11 +- go/host/rpc/enclaverpc/enclave_client.go | 15 + .../actions/l1/important_contracts.go | 24 + .../tests/bridge/important_contracts_test.go | 3 + 12 files changed, 711 insertions(+), 457 deletions(-) diff --git a/go/common/enclave.go b/go/common/enclave.go index 14718089be..e4396b45c3 100644 --- a/go/common/enclave.go +++ b/go/common/enclave.go @@ -137,6 +137,9 @@ type EnclaveScan interface { // GetPublicTransactionData returns a list of public transaction data GetPublicTransactionData(pagination *QueryPagination) (*TransactionListingResponse, SystemError) + + // GetL2MessageBusAddress returns the address of the L2 message bus contract + GetL2MessageBusAddress() (gethcommon.Address, SystemError) } // BlockSubmissionResponse is the response sent from the enclave back to the node after ingesting a block diff --git a/go/common/query_types.go b/go/common/query_types.go index 9648e4b597..2ecc459e0b 100644 --- a/go/common/query_types.go +++ b/go/common/query_types.go @@ -89,5 +89,6 @@ type ObscuroNetworkInfo struct { L1StartHash common.Hash SequencerID common.Address MessageBusAddress common.Address + L2MessageBusAddress common.Address ImportantContracts map[string]common.Address // map of contract name to address } diff --git a/go/common/rpc/generated/enclave.pb.go b/go/common/rpc/generated/enclave.pb.go index 14762a1957..2b8eccc425 100644 --- a/go/common/rpc/generated/enclave.pb.go +++ b/go/common/rpc/generated/enclave.pb.go @@ -122,6 +122,99 @@ func (x *GetPublicTransactionDataResponse) GetSystemError() *SystemError { return nil } +type GetL2MessageBusAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetL2MessageBusAddressRequest) Reset() { + *x = GetL2MessageBusAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_enclave_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetL2MessageBusAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetL2MessageBusAddressRequest) ProtoMessage() {} + +func (x *GetL2MessageBusAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_enclave_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetL2MessageBusAddressRequest.ProtoReflect.Descriptor instead. +func (*GetL2MessageBusAddressRequest) Descriptor() ([]byte, []int) { + return file_enclave_proto_rawDescGZIP(), []int{2} +} + +type GetL2MessageBusAddressResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + L2MessageBusAddress []byte `protobuf:"bytes,1,opt,name=l2MessageBusAddress,proto3" json:"l2MessageBusAddress,omitempty"` + SystemError *SystemError `protobuf:"bytes,2,opt,name=systemError,proto3" json:"systemError,omitempty"` +} + +func (x *GetL2MessageBusAddressResponse) Reset() { + *x = GetL2MessageBusAddressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_enclave_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetL2MessageBusAddressResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetL2MessageBusAddressResponse) ProtoMessage() {} + +func (x *GetL2MessageBusAddressResponse) ProtoReflect() protoreflect.Message { + mi := &file_enclave_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetL2MessageBusAddressResponse.ProtoReflect.Descriptor instead. +func (*GetL2MessageBusAddressResponse) Descriptor() ([]byte, []int) { + return file_enclave_proto_rawDescGZIP(), []int{3} +} + +func (x *GetL2MessageBusAddressResponse) GetL2MessageBusAddress() []byte { + if x != nil { + return x.L2MessageBusAddress + } + return nil +} + +func (x *GetL2MessageBusAddressResponse) GetSystemError() *SystemError { + if x != nil { + return x.SystemError + } + return nil +} + type GetReceiptsByAddressRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -133,7 +226,7 @@ type GetReceiptsByAddressRequest struct { func (x *GetReceiptsByAddressRequest) Reset() { *x = GetReceiptsByAddressRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[2] + mi := &file_enclave_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -146,7 +239,7 @@ func (x *GetReceiptsByAddressRequest) String() string { func (*GetReceiptsByAddressRequest) ProtoMessage() {} func (x *GetReceiptsByAddressRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[2] + mi := &file_enclave_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -159,7 +252,7 @@ func (x *GetReceiptsByAddressRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetReceiptsByAddressRequest.ProtoReflect.Descriptor instead. func (*GetReceiptsByAddressRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{2} + return file_enclave_proto_rawDescGZIP(), []int{4} } func (x *GetReceiptsByAddressRequest) GetEncryptedParams() []byte { @@ -181,7 +274,7 @@ type GetReceiptsByAddressResponse struct { func (x *GetReceiptsByAddressResponse) Reset() { *x = GetReceiptsByAddressResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[3] + mi := &file_enclave_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -194,7 +287,7 @@ func (x *GetReceiptsByAddressResponse) String() string { func (*GetReceiptsByAddressResponse) ProtoMessage() {} func (x *GetReceiptsByAddressResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[3] + mi := &file_enclave_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -207,7 +300,7 @@ func (x *GetReceiptsByAddressResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetReceiptsByAddressResponse.ProtoReflect.Descriptor instead. func (*GetReceiptsByAddressResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{3} + return file_enclave_proto_rawDescGZIP(), []int{5} } func (x *GetReceiptsByAddressResponse) GetEncodedEnclaveResponse() []byte { @@ -235,7 +328,7 @@ type GetBatchRequest struct { func (x *GetBatchRequest) Reset() { *x = GetBatchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[4] + mi := &file_enclave_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -248,7 +341,7 @@ func (x *GetBatchRequest) String() string { func (*GetBatchRequest) ProtoMessage() {} func (x *GetBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[4] + mi := &file_enclave_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -261,7 +354,7 @@ func (x *GetBatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBatchRequest.ProtoReflect.Descriptor instead. func (*GetBatchRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{4} + return file_enclave_proto_rawDescGZIP(), []int{6} } func (x *GetBatchRequest) GetKnownHead() []byte { @@ -282,7 +375,7 @@ type GetBatchBySeqNoRequest struct { func (x *GetBatchBySeqNoRequest) Reset() { *x = GetBatchBySeqNoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[5] + mi := &file_enclave_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -295,7 +388,7 @@ func (x *GetBatchBySeqNoRequest) String() string { func (*GetBatchBySeqNoRequest) ProtoMessage() {} func (x *GetBatchBySeqNoRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[5] + mi := &file_enclave_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -308,7 +401,7 @@ func (x *GetBatchBySeqNoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBatchBySeqNoRequest.ProtoReflect.Descriptor instead. func (*GetBatchBySeqNoRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{5} + return file_enclave_proto_rawDescGZIP(), []int{7} } func (x *GetBatchBySeqNoRequest) GetSeqNo() uint64 { @@ -330,7 +423,7 @@ type GetBatchResponse struct { func (x *GetBatchResponse) Reset() { *x = GetBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[6] + mi := &file_enclave_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -343,7 +436,7 @@ func (x *GetBatchResponse) String() string { func (*GetBatchResponse) ProtoMessage() {} func (x *GetBatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[6] + mi := &file_enclave_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -356,7 +449,7 @@ func (x *GetBatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBatchResponse.ProtoReflect.Descriptor instead. func (*GetBatchResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{6} + return file_enclave_proto_rawDescGZIP(), []int{8} } func (x *GetBatchResponse) GetBatch() []byte { @@ -382,7 +475,7 @@ type StreamL2UpdatesRequest struct { func (x *StreamL2UpdatesRequest) Reset() { *x = StreamL2UpdatesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[7] + mi := &file_enclave_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -395,7 +488,7 @@ func (x *StreamL2UpdatesRequest) String() string { func (*StreamL2UpdatesRequest) ProtoMessage() {} func (x *StreamL2UpdatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[7] + mi := &file_enclave_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -408,7 +501,7 @@ func (x *StreamL2UpdatesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamL2UpdatesRequest.ProtoReflect.Descriptor instead. func (*StreamL2UpdatesRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{7} + return file_enclave_proto_rawDescGZIP(), []int{9} } type EncodedUpdateResponse struct { @@ -422,7 +515,7 @@ type EncodedUpdateResponse struct { func (x *EncodedUpdateResponse) Reset() { *x = EncodedUpdateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[8] + mi := &file_enclave_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -435,7 +528,7 @@ func (x *EncodedUpdateResponse) String() string { func (*EncodedUpdateResponse) ProtoMessage() {} func (x *EncodedUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[8] + mi := &file_enclave_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -448,7 +541,7 @@ func (x *EncodedUpdateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EncodedUpdateResponse.ProtoReflect.Descriptor instead. func (*EncodedUpdateResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{8} + return file_enclave_proto_rawDescGZIP(), []int{10} } func (x *EncodedUpdateResponse) GetBatch() []byte { @@ -470,7 +563,7 @@ type Pagination struct { func (x *Pagination) Reset() { *x = Pagination{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[9] + mi := &file_enclave_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -483,7 +576,7 @@ func (x *Pagination) String() string { func (*Pagination) ProtoMessage() {} func (x *Pagination) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[9] + mi := &file_enclave_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -496,7 +589,7 @@ func (x *Pagination) ProtoReflect() protoreflect.Message { // Deprecated: Use Pagination.ProtoReflect.Descriptor instead. func (*Pagination) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{9} + return file_enclave_proto_rawDescGZIP(), []int{11} } func (x *Pagination) GetOffset() int32 { @@ -525,7 +618,7 @@ type SystemError struct { func (x *SystemError) Reset() { *x = SystemError{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[10] + mi := &file_enclave_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -538,7 +631,7 @@ func (x *SystemError) String() string { func (*SystemError) ProtoMessage() {} func (x *SystemError) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[10] + mi := &file_enclave_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -551,7 +644,7 @@ func (x *SystemError) ProtoReflect() protoreflect.Message { // Deprecated: Use SystemError.ProtoReflect.Descriptor instead. func (*SystemError) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{10} + return file_enclave_proto_rawDescGZIP(), []int{12} } func (x *SystemError) GetErrorCode() int32 { @@ -577,7 +670,7 @@ type GetTotalContractCountRequest struct { func (x *GetTotalContractCountRequest) Reset() { *x = GetTotalContractCountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[11] + mi := &file_enclave_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -590,7 +683,7 @@ func (x *GetTotalContractCountRequest) String() string { func (*GetTotalContractCountRequest) ProtoMessage() {} func (x *GetTotalContractCountRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[11] + mi := &file_enclave_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -603,7 +696,7 @@ func (x *GetTotalContractCountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTotalContractCountRequest.ProtoReflect.Descriptor instead. func (*GetTotalContractCountRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{11} + return file_enclave_proto_rawDescGZIP(), []int{13} } type GetTotalContractCountResponse struct { @@ -618,7 +711,7 @@ type GetTotalContractCountResponse struct { func (x *GetTotalContractCountResponse) Reset() { *x = GetTotalContractCountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[12] + mi := &file_enclave_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -631,7 +724,7 @@ func (x *GetTotalContractCountResponse) String() string { func (*GetTotalContractCountResponse) ProtoMessage() {} func (x *GetTotalContractCountResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[12] + mi := &file_enclave_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -644,7 +737,7 @@ func (x *GetTotalContractCountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTotalContractCountResponse.ProtoReflect.Descriptor instead. func (*GetTotalContractCountResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{12} + return file_enclave_proto_rawDescGZIP(), []int{14} } func (x *GetTotalContractCountResponse) GetCount() int64 { @@ -672,7 +765,7 @@ type DebugEventLogRelevancyRequest struct { func (x *DebugEventLogRelevancyRequest) Reset() { *x = DebugEventLogRelevancyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[13] + mi := &file_enclave_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -685,7 +778,7 @@ func (x *DebugEventLogRelevancyRequest) String() string { func (*DebugEventLogRelevancyRequest) ProtoMessage() {} func (x *DebugEventLogRelevancyRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[13] + mi := &file_enclave_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -698,7 +791,7 @@ func (x *DebugEventLogRelevancyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugEventLogRelevancyRequest.ProtoReflect.Descriptor instead. func (*DebugEventLogRelevancyRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{13} + return file_enclave_proto_rawDescGZIP(), []int{15} } func (x *DebugEventLogRelevancyRequest) GetTxHash() []byte { @@ -720,7 +813,7 @@ type DebugEventLogRelevancyResponse struct { func (x *DebugEventLogRelevancyResponse) Reset() { *x = DebugEventLogRelevancyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[14] + mi := &file_enclave_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -733,7 +826,7 @@ func (x *DebugEventLogRelevancyResponse) String() string { func (*DebugEventLogRelevancyResponse) ProtoMessage() {} func (x *DebugEventLogRelevancyResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[14] + mi := &file_enclave_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -746,7 +839,7 @@ func (x *DebugEventLogRelevancyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugEventLogRelevancyResponse.ProtoReflect.Descriptor instead. func (*DebugEventLogRelevancyResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{14} + return file_enclave_proto_rawDescGZIP(), []int{16} } func (x *DebugEventLogRelevancyResponse) GetMsg() string { @@ -775,7 +868,7 @@ type DebugTraceTransactionRequest struct { func (x *DebugTraceTransactionRequest) Reset() { *x = DebugTraceTransactionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[15] + mi := &file_enclave_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -788,7 +881,7 @@ func (x *DebugTraceTransactionRequest) String() string { func (*DebugTraceTransactionRequest) ProtoMessage() {} func (x *DebugTraceTransactionRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[15] + mi := &file_enclave_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -801,7 +894,7 @@ func (x *DebugTraceTransactionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugTraceTransactionRequest.ProtoReflect.Descriptor instead. func (*DebugTraceTransactionRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{15} + return file_enclave_proto_rawDescGZIP(), []int{17} } func (x *DebugTraceTransactionRequest) GetTxHash() []byte { @@ -830,7 +923,7 @@ type DebugTraceTransactionResponse struct { func (x *DebugTraceTransactionResponse) Reset() { *x = DebugTraceTransactionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[16] + mi := &file_enclave_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -843,7 +936,7 @@ func (x *DebugTraceTransactionResponse) String() string { func (*DebugTraceTransactionResponse) ProtoMessage() {} func (x *DebugTraceTransactionResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[16] + mi := &file_enclave_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -856,7 +949,7 @@ func (x *DebugTraceTransactionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugTraceTransactionResponse.ProtoReflect.Descriptor instead. func (*DebugTraceTransactionResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{16} + return file_enclave_proto_rawDescGZIP(), []int{18} } func (x *DebugTraceTransactionResponse) GetMsg() string { @@ -884,7 +977,7 @@ type CreateBatchRequest struct { func (x *CreateBatchRequest) Reset() { *x = CreateBatchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[17] + mi := &file_enclave_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -897,7 +990,7 @@ func (x *CreateBatchRequest) String() string { func (*CreateBatchRequest) ProtoMessage() {} func (x *CreateBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[17] + mi := &file_enclave_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -910,7 +1003,7 @@ func (x *CreateBatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateBatchRequest.ProtoReflect.Descriptor instead. func (*CreateBatchRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{17} + return file_enclave_proto_rawDescGZIP(), []int{19} } func (x *CreateBatchRequest) GetSkipIfEmpty() bool { @@ -931,7 +1024,7 @@ type CreateBatchResponse struct { func (x *CreateBatchResponse) Reset() { *x = CreateBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[18] + mi := &file_enclave_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -944,7 +1037,7 @@ func (x *CreateBatchResponse) String() string { func (*CreateBatchResponse) ProtoMessage() {} func (x *CreateBatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[18] + mi := &file_enclave_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -957,7 +1050,7 @@ func (x *CreateBatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateBatchResponse.ProtoReflect.Descriptor instead. func (*CreateBatchResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{18} + return file_enclave_proto_rawDescGZIP(), []int{20} } func (x *CreateBatchResponse) GetError() string { @@ -978,7 +1071,7 @@ type CreateRollupRequest struct { func (x *CreateRollupRequest) Reset() { *x = CreateRollupRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[19] + mi := &file_enclave_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -991,7 +1084,7 @@ func (x *CreateRollupRequest) String() string { func (*CreateRollupRequest) ProtoMessage() {} func (x *CreateRollupRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[19] + mi := &file_enclave_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1004,7 +1097,7 @@ func (x *CreateRollupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateRollupRequest.ProtoReflect.Descriptor instead. func (*CreateRollupRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{19} + return file_enclave_proto_rawDescGZIP(), []int{21} } func (x *CreateRollupRequest) GetFromSequenceNumber() uint64 { @@ -1026,7 +1119,7 @@ type CreateRollupResponse struct { func (x *CreateRollupResponse) Reset() { *x = CreateRollupResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[20] + mi := &file_enclave_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1039,7 +1132,7 @@ func (x *CreateRollupResponse) String() string { func (*CreateRollupResponse) ProtoMessage() {} func (x *CreateRollupResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[20] + mi := &file_enclave_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1052,7 +1145,7 @@ func (x *CreateRollupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateRollupResponse.ProtoReflect.Descriptor instead. func (*CreateRollupResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{20} + return file_enclave_proto_rawDescGZIP(), []int{22} } func (x *CreateRollupResponse) GetMsg() *ExtRollupMsg { @@ -1078,7 +1171,7 @@ type StatusRequest struct { func (x *StatusRequest) Reset() { *x = StatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[21] + mi := &file_enclave_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1091,7 +1184,7 @@ func (x *StatusRequest) String() string { func (*StatusRequest) ProtoMessage() {} func (x *StatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[21] + mi := &file_enclave_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1104,7 +1197,7 @@ func (x *StatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. func (*StatusRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{21} + return file_enclave_proto_rawDescGZIP(), []int{23} } type StatusResponse struct { @@ -1121,7 +1214,7 @@ type StatusResponse struct { func (x *StatusResponse) Reset() { *x = StatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[22] + mi := &file_enclave_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1134,7 +1227,7 @@ func (x *StatusResponse) String() string { func (*StatusResponse) ProtoMessage() {} func (x *StatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[22] + mi := &file_enclave_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1147,7 +1240,7 @@ func (x *StatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. func (*StatusResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{22} + return file_enclave_proto_rawDescGZIP(), []int{24} } func (x *StatusResponse) GetStatusCode() int32 { @@ -1187,7 +1280,7 @@ type AttestationRequest struct { func (x *AttestationRequest) Reset() { *x = AttestationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[23] + mi := &file_enclave_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1200,7 +1293,7 @@ func (x *AttestationRequest) String() string { func (*AttestationRequest) ProtoMessage() {} func (x *AttestationRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[23] + mi := &file_enclave_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1213,7 +1306,7 @@ func (x *AttestationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AttestationRequest.ProtoReflect.Descriptor instead. func (*AttestationRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{23} + return file_enclave_proto_rawDescGZIP(), []int{25} } type AttestationResponse struct { @@ -1228,7 +1321,7 @@ type AttestationResponse struct { func (x *AttestationResponse) Reset() { *x = AttestationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[24] + mi := &file_enclave_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1241,7 +1334,7 @@ func (x *AttestationResponse) String() string { func (*AttestationResponse) ProtoMessage() {} func (x *AttestationResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[24] + mi := &file_enclave_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1254,7 +1347,7 @@ func (x *AttestationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AttestationResponse.ProtoReflect.Descriptor instead. func (*AttestationResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{24} + return file_enclave_proto_rawDescGZIP(), []int{26} } func (x *AttestationResponse) GetAttestationReportMsg() *AttestationReportMsg { @@ -1280,7 +1373,7 @@ type GenerateSecretRequest struct { func (x *GenerateSecretRequest) Reset() { *x = GenerateSecretRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[25] + mi := &file_enclave_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1293,7 +1386,7 @@ func (x *GenerateSecretRequest) String() string { func (*GenerateSecretRequest) ProtoMessage() {} func (x *GenerateSecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[25] + mi := &file_enclave_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1306,7 +1399,7 @@ func (x *GenerateSecretRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GenerateSecretRequest.ProtoReflect.Descriptor instead. func (*GenerateSecretRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{25} + return file_enclave_proto_rawDescGZIP(), []int{27} } type GenerateSecretResponse struct { @@ -1321,7 +1414,7 @@ type GenerateSecretResponse struct { func (x *GenerateSecretResponse) Reset() { *x = GenerateSecretResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[26] + mi := &file_enclave_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1334,7 +1427,7 @@ func (x *GenerateSecretResponse) String() string { func (*GenerateSecretResponse) ProtoMessage() {} func (x *GenerateSecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[26] + mi := &file_enclave_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1347,7 +1440,7 @@ func (x *GenerateSecretResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GenerateSecretResponse.ProtoReflect.Descriptor instead. func (*GenerateSecretResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{26} + return file_enclave_proto_rawDescGZIP(), []int{28} } func (x *GenerateSecretResponse) GetEncryptedSharedEnclaveSecret() []byte { @@ -1375,7 +1468,7 @@ type InitEnclaveRequest struct { func (x *InitEnclaveRequest) Reset() { *x = InitEnclaveRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[27] + mi := &file_enclave_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1388,7 +1481,7 @@ func (x *InitEnclaveRequest) String() string { func (*InitEnclaveRequest) ProtoMessage() {} func (x *InitEnclaveRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[27] + mi := &file_enclave_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1401,7 +1494,7 @@ func (x *InitEnclaveRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InitEnclaveRequest.ProtoReflect.Descriptor instead. func (*InitEnclaveRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{27} + return file_enclave_proto_rawDescGZIP(), []int{29} } func (x *InitEnclaveRequest) GetEncryptedSharedEnclaveSecret() []byte { @@ -1422,7 +1515,7 @@ type InitEnclaveResponse struct { func (x *InitEnclaveResponse) Reset() { *x = InitEnclaveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[28] + mi := &file_enclave_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1435,7 +1528,7 @@ func (x *InitEnclaveResponse) String() string { func (*InitEnclaveResponse) ProtoMessage() {} func (x *InitEnclaveResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[28] + mi := &file_enclave_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1448,7 +1541,7 @@ func (x *InitEnclaveResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InitEnclaveResponse.ProtoReflect.Descriptor instead. func (*InitEnclaveResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{28} + return file_enclave_proto_rawDescGZIP(), []int{30} } func (x *InitEnclaveResponse) GetSystemError() *SystemError { @@ -1469,7 +1562,7 @@ type StartRequest struct { func (x *StartRequest) Reset() { *x = StartRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[29] + mi := &file_enclave_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1482,7 +1575,7 @@ func (x *StartRequest) String() string { func (*StartRequest) ProtoMessage() {} func (x *StartRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[29] + mi := &file_enclave_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1495,7 +1588,7 @@ func (x *StartRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StartRequest.ProtoReflect.Descriptor instead. func (*StartRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{29} + return file_enclave_proto_rawDescGZIP(), []int{31} } func (x *StartRequest) GetEncodedBlock() []byte { @@ -1516,7 +1609,7 @@ type StartResponse struct { func (x *StartResponse) Reset() { *x = StartResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[30] + mi := &file_enclave_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1529,7 +1622,7 @@ func (x *StartResponse) String() string { func (*StartResponse) ProtoMessage() {} func (x *StartResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[30] + mi := &file_enclave_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1542,7 +1635,7 @@ func (x *StartResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StartResponse.ProtoReflect.Descriptor instead. func (*StartResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{30} + return file_enclave_proto_rawDescGZIP(), []int{32} } func (x *StartResponse) GetSystemError() *SystemError { @@ -1565,7 +1658,7 @@ type SubmitBlockRequest struct { func (x *SubmitBlockRequest) Reset() { *x = SubmitBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[31] + mi := &file_enclave_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1578,7 +1671,7 @@ func (x *SubmitBlockRequest) String() string { func (*SubmitBlockRequest) ProtoMessage() {} func (x *SubmitBlockRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[31] + mi := &file_enclave_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1591,7 +1684,7 @@ func (x *SubmitBlockRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitBlockRequest.ProtoReflect.Descriptor instead. func (*SubmitBlockRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{31} + return file_enclave_proto_rawDescGZIP(), []int{33} } func (x *SubmitBlockRequest) GetEncodedBlock() []byte { @@ -1627,7 +1720,7 @@ type SubmitBlockResponse struct { func (x *SubmitBlockResponse) Reset() { *x = SubmitBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[32] + mi := &file_enclave_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1640,7 +1733,7 @@ func (x *SubmitBlockResponse) String() string { func (*SubmitBlockResponse) ProtoMessage() {} func (x *SubmitBlockResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[32] + mi := &file_enclave_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1653,7 +1746,7 @@ func (x *SubmitBlockResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitBlockResponse.ProtoReflect.Descriptor instead. func (*SubmitBlockResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{32} + return file_enclave_proto_rawDescGZIP(), []int{34} } func (x *SubmitBlockResponse) GetBlockSubmissionResponse() *BlockSubmissionResponseMsg { @@ -1681,7 +1774,7 @@ type SubmitTxRequest struct { func (x *SubmitTxRequest) Reset() { *x = SubmitTxRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[33] + mi := &file_enclave_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1694,7 +1787,7 @@ func (x *SubmitTxRequest) String() string { func (*SubmitTxRequest) ProtoMessage() {} func (x *SubmitTxRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[33] + mi := &file_enclave_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1707,7 +1800,7 @@ func (x *SubmitTxRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitTxRequest.ProtoReflect.Descriptor instead. func (*SubmitTxRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{33} + return file_enclave_proto_rawDescGZIP(), []int{35} } func (x *SubmitTxRequest) GetEncryptedTx() []byte { @@ -1729,7 +1822,7 @@ type SubmitTxResponse struct { func (x *SubmitTxResponse) Reset() { *x = SubmitTxResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[34] + mi := &file_enclave_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1742,7 +1835,7 @@ func (x *SubmitTxResponse) String() string { func (*SubmitTxResponse) ProtoMessage() {} func (x *SubmitTxResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[34] + mi := &file_enclave_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1755,7 +1848,7 @@ func (x *SubmitTxResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitTxResponse.ProtoReflect.Descriptor instead. func (*SubmitTxResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{34} + return file_enclave_proto_rawDescGZIP(), []int{36} } func (x *SubmitTxResponse) GetEncodedEnclaveResponse() []byte { @@ -1783,7 +1876,7 @@ type SubmitBatchRequest struct { func (x *SubmitBatchRequest) Reset() { *x = SubmitBatchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[35] + mi := &file_enclave_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1796,7 +1889,7 @@ func (x *SubmitBatchRequest) String() string { func (*SubmitBatchRequest) ProtoMessage() {} func (x *SubmitBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[35] + mi := &file_enclave_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1809,7 +1902,7 @@ func (x *SubmitBatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitBatchRequest.ProtoReflect.Descriptor instead. func (*SubmitBatchRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{35} + return file_enclave_proto_rawDescGZIP(), []int{37} } func (x *SubmitBatchRequest) GetBatch() *ExtBatchMsg { @@ -1830,7 +1923,7 @@ type SubmitBatchResponse struct { func (x *SubmitBatchResponse) Reset() { *x = SubmitBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[36] + mi := &file_enclave_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1843,7 +1936,7 @@ func (x *SubmitBatchResponse) String() string { func (*SubmitBatchResponse) ProtoMessage() {} func (x *SubmitBatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[36] + mi := &file_enclave_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1856,7 +1949,7 @@ func (x *SubmitBatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitBatchResponse.ProtoReflect.Descriptor instead. func (*SubmitBatchResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{36} + return file_enclave_proto_rawDescGZIP(), []int{38} } func (x *SubmitBatchResponse) GetSystemError() *SystemError { @@ -1877,7 +1970,7 @@ type ObsCallRequest struct { func (x *ObsCallRequest) Reset() { *x = ObsCallRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[37] + mi := &file_enclave_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1890,7 +1983,7 @@ func (x *ObsCallRequest) String() string { func (*ObsCallRequest) ProtoMessage() {} func (x *ObsCallRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[37] + mi := &file_enclave_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1903,7 +1996,7 @@ func (x *ObsCallRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ObsCallRequest.ProtoReflect.Descriptor instead. func (*ObsCallRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{37} + return file_enclave_proto_rawDescGZIP(), []int{39} } func (x *ObsCallRequest) GetEncryptedParams() []byte { @@ -1925,7 +2018,7 @@ type ObsCallResponse struct { func (x *ObsCallResponse) Reset() { *x = ObsCallResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[38] + mi := &file_enclave_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1938,7 +2031,7 @@ func (x *ObsCallResponse) String() string { func (*ObsCallResponse) ProtoMessage() {} func (x *ObsCallResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[38] + mi := &file_enclave_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1951,7 +2044,7 @@ func (x *ObsCallResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ObsCallResponse.ProtoReflect.Descriptor instead. func (*ObsCallResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{38} + return file_enclave_proto_rawDescGZIP(), []int{40} } func (x *ObsCallResponse) GetEncodedEnclaveResponse() []byte { @@ -1979,7 +2072,7 @@ type GetTransactionCountRequest struct { func (x *GetTransactionCountRequest) Reset() { *x = GetTransactionCountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[39] + mi := &file_enclave_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1992,7 +2085,7 @@ func (x *GetTransactionCountRequest) String() string { func (*GetTransactionCountRequest) ProtoMessage() {} func (x *GetTransactionCountRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[39] + mi := &file_enclave_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2005,7 +2098,7 @@ func (x *GetTransactionCountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTransactionCountRequest.ProtoReflect.Descriptor instead. func (*GetTransactionCountRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{39} + return file_enclave_proto_rawDescGZIP(), []int{41} } func (x *GetTransactionCountRequest) GetEncryptedParams() []byte { @@ -2027,7 +2120,7 @@ type GetTransactionCountResponse struct { func (x *GetTransactionCountResponse) Reset() { *x = GetTransactionCountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[40] + mi := &file_enclave_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2040,7 +2133,7 @@ func (x *GetTransactionCountResponse) String() string { func (*GetTransactionCountResponse) ProtoMessage() {} func (x *GetTransactionCountResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[40] + mi := &file_enclave_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2053,7 +2146,7 @@ func (x *GetTransactionCountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTransactionCountResponse.ProtoReflect.Descriptor instead. func (*GetTransactionCountResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{40} + return file_enclave_proto_rawDescGZIP(), []int{42} } func (x *GetTransactionCountResponse) GetEncodedEnclaveResponse() []byte { @@ -2079,7 +2172,7 @@ type StopRequest struct { func (x *StopRequest) Reset() { *x = StopRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[41] + mi := &file_enclave_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2092,7 +2185,7 @@ func (x *StopRequest) String() string { func (*StopRequest) ProtoMessage() {} func (x *StopRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[41] + mi := &file_enclave_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2105,7 +2198,7 @@ func (x *StopRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StopRequest.ProtoReflect.Descriptor instead. func (*StopRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{41} + return file_enclave_proto_rawDescGZIP(), []int{43} } type StopResponse struct { @@ -2119,7 +2212,7 @@ type StopResponse struct { func (x *StopResponse) Reset() { *x = StopResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[42] + mi := &file_enclave_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2132,7 +2225,7 @@ func (x *StopResponse) String() string { func (*StopResponse) ProtoMessage() {} func (x *StopResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[42] + mi := &file_enclave_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2145,7 +2238,7 @@ func (x *StopResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StopResponse.ProtoReflect.Descriptor instead. func (*StopResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{42} + return file_enclave_proto_rawDescGZIP(), []int{44} } func (x *StopResponse) GetSystemError() *SystemError { @@ -2166,7 +2259,7 @@ type GetTransactionRequest struct { func (x *GetTransactionRequest) Reset() { *x = GetTransactionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[43] + mi := &file_enclave_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2179,7 +2272,7 @@ func (x *GetTransactionRequest) String() string { func (*GetTransactionRequest) ProtoMessage() {} func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[43] + mi := &file_enclave_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2192,7 +2285,7 @@ func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead. func (*GetTransactionRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{43} + return file_enclave_proto_rawDescGZIP(), []int{45} } func (x *GetTransactionRequest) GetEncryptedParams() []byte { @@ -2214,7 +2307,7 @@ type GetTransactionResponse struct { func (x *GetTransactionResponse) Reset() { *x = GetTransactionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[44] + mi := &file_enclave_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2227,7 +2320,7 @@ func (x *GetTransactionResponse) String() string { func (*GetTransactionResponse) ProtoMessage() {} func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[44] + mi := &file_enclave_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2240,7 +2333,7 @@ func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTransactionResponse.ProtoReflect.Descriptor instead. func (*GetTransactionResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{44} + return file_enclave_proto_rawDescGZIP(), []int{46} } func (x *GetTransactionResponse) GetEncodedEnclaveResponse() []byte { @@ -2268,7 +2361,7 @@ type GetTransactionReceiptRequest struct { func (x *GetTransactionReceiptRequest) Reset() { *x = GetTransactionReceiptRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[45] + mi := &file_enclave_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2281,7 +2374,7 @@ func (x *GetTransactionReceiptRequest) String() string { func (*GetTransactionReceiptRequest) ProtoMessage() {} func (x *GetTransactionReceiptRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[45] + mi := &file_enclave_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2294,7 +2387,7 @@ func (x *GetTransactionReceiptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTransactionReceiptRequest.ProtoReflect.Descriptor instead. func (*GetTransactionReceiptRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{45} + return file_enclave_proto_rawDescGZIP(), []int{47} } func (x *GetTransactionReceiptRequest) GetEncryptedParams() []byte { @@ -2316,7 +2409,7 @@ type GetTransactionReceiptResponse struct { func (x *GetTransactionReceiptResponse) Reset() { *x = GetTransactionReceiptResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[46] + mi := &file_enclave_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2329,7 +2422,7 @@ func (x *GetTransactionReceiptResponse) String() string { func (*GetTransactionReceiptResponse) ProtoMessage() {} func (x *GetTransactionReceiptResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[46] + mi := &file_enclave_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2342,7 +2435,7 @@ func (x *GetTransactionReceiptResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTransactionReceiptResponse.ProtoReflect.Descriptor instead. func (*GetTransactionReceiptResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{46} + return file_enclave_proto_rawDescGZIP(), []int{48} } func (x *GetTransactionReceiptResponse) GetEncodedEnclaveResponse() []byte { @@ -2370,7 +2463,7 @@ type GetBalanceRequest struct { func (x *GetBalanceRequest) Reset() { *x = GetBalanceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[47] + mi := &file_enclave_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2383,7 +2476,7 @@ func (x *GetBalanceRequest) String() string { func (*GetBalanceRequest) ProtoMessage() {} func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[47] + mi := &file_enclave_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2396,7 +2489,7 @@ func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead. func (*GetBalanceRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{47} + return file_enclave_proto_rawDescGZIP(), []int{49} } func (x *GetBalanceRequest) GetEncryptedParams() []byte { @@ -2418,7 +2511,7 @@ type GetBalanceResponse struct { func (x *GetBalanceResponse) Reset() { *x = GetBalanceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[48] + mi := &file_enclave_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2431,7 +2524,7 @@ func (x *GetBalanceResponse) String() string { func (*GetBalanceResponse) ProtoMessage() {} func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[48] + mi := &file_enclave_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2444,7 +2537,7 @@ func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead. func (*GetBalanceResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{48} + return file_enclave_proto_rawDescGZIP(), []int{50} } func (x *GetBalanceResponse) GetEncodedEnclaveResponse() []byte { @@ -2473,7 +2566,7 @@ type GetCodeRequest struct { func (x *GetCodeRequest) Reset() { *x = GetCodeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[49] + mi := &file_enclave_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2486,7 +2579,7 @@ func (x *GetCodeRequest) String() string { func (*GetCodeRequest) ProtoMessage() {} func (x *GetCodeRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[49] + mi := &file_enclave_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2499,7 +2592,7 @@ func (x *GetCodeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCodeRequest.ProtoReflect.Descriptor instead. func (*GetCodeRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{49} + return file_enclave_proto_rawDescGZIP(), []int{51} } func (x *GetCodeRequest) GetAddress() []byte { @@ -2528,7 +2621,7 @@ type GetCodeResponse struct { func (x *GetCodeResponse) Reset() { *x = GetCodeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[50] + mi := &file_enclave_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2541,7 +2634,7 @@ func (x *GetCodeResponse) String() string { func (*GetCodeResponse) ProtoMessage() {} func (x *GetCodeResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[50] + mi := &file_enclave_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2554,7 +2647,7 @@ func (x *GetCodeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCodeResponse.ProtoReflect.Descriptor instead. func (*GetCodeResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{50} + return file_enclave_proto_rawDescGZIP(), []int{52} } func (x *GetCodeResponse) GetCode() []byte { @@ -2583,7 +2676,7 @@ type SubscribeRequest struct { func (x *SubscribeRequest) Reset() { *x = SubscribeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[51] + mi := &file_enclave_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2596,7 +2689,7 @@ func (x *SubscribeRequest) String() string { func (*SubscribeRequest) ProtoMessage() {} func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[51] + mi := &file_enclave_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2609,7 +2702,7 @@ func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead. func (*SubscribeRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{51} + return file_enclave_proto_rawDescGZIP(), []int{53} } func (x *SubscribeRequest) GetId() []byte { @@ -2637,7 +2730,7 @@ type SubscribeResponse struct { func (x *SubscribeResponse) Reset() { *x = SubscribeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[52] + mi := &file_enclave_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2650,7 +2743,7 @@ func (x *SubscribeResponse) String() string { func (*SubscribeResponse) ProtoMessage() {} func (x *SubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[52] + mi := &file_enclave_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2663,7 +2756,7 @@ func (x *SubscribeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead. func (*SubscribeResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{52} + return file_enclave_proto_rawDescGZIP(), []int{54} } func (x *SubscribeResponse) GetSystemError() *SystemError { @@ -2684,7 +2777,7 @@ type UnsubscribeRequest struct { func (x *UnsubscribeRequest) Reset() { *x = UnsubscribeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[53] + mi := &file_enclave_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2697,7 +2790,7 @@ func (x *UnsubscribeRequest) String() string { func (*UnsubscribeRequest) ProtoMessage() {} func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[53] + mi := &file_enclave_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2710,7 +2803,7 @@ func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UnsubscribeRequest.ProtoReflect.Descriptor instead. func (*UnsubscribeRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{53} + return file_enclave_proto_rawDescGZIP(), []int{55} } func (x *UnsubscribeRequest) GetId() []byte { @@ -2731,7 +2824,7 @@ type UnsubscribeResponse struct { func (x *UnsubscribeResponse) Reset() { *x = UnsubscribeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[54] + mi := &file_enclave_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2744,7 +2837,7 @@ func (x *UnsubscribeResponse) String() string { func (*UnsubscribeResponse) ProtoMessage() {} func (x *UnsubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[54] + mi := &file_enclave_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2757,7 +2850,7 @@ func (x *UnsubscribeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UnsubscribeResponse.ProtoReflect.Descriptor instead. func (*UnsubscribeResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{54} + return file_enclave_proto_rawDescGZIP(), []int{56} } func (x *UnsubscribeResponse) GetSystemError() *SystemError { @@ -2778,7 +2871,7 @@ type EstimateGasRequest struct { func (x *EstimateGasRequest) Reset() { *x = EstimateGasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[55] + mi := &file_enclave_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2791,7 +2884,7 @@ func (x *EstimateGasRequest) String() string { func (*EstimateGasRequest) ProtoMessage() {} func (x *EstimateGasRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[55] + mi := &file_enclave_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2804,7 +2897,7 @@ func (x *EstimateGasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EstimateGasRequest.ProtoReflect.Descriptor instead. func (*EstimateGasRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{55} + return file_enclave_proto_rawDescGZIP(), []int{57} } func (x *EstimateGasRequest) GetEncryptedParams() []byte { @@ -2826,7 +2919,7 @@ type EstimateGasResponse struct { func (x *EstimateGasResponse) Reset() { *x = EstimateGasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[56] + mi := &file_enclave_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2839,7 +2932,7 @@ func (x *EstimateGasResponse) String() string { func (*EstimateGasResponse) ProtoMessage() {} func (x *EstimateGasResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[56] + mi := &file_enclave_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2852,7 +2945,7 @@ func (x *EstimateGasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EstimateGasResponse.ProtoReflect.Descriptor instead. func (*EstimateGasResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{56} + return file_enclave_proto_rawDescGZIP(), []int{58} } func (x *EstimateGasResponse) GetEncodedEnclaveResponse() []byte { @@ -2880,7 +2973,7 @@ type GetLogsRequest struct { func (x *GetLogsRequest) Reset() { *x = GetLogsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[57] + mi := &file_enclave_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2893,7 +2986,7 @@ func (x *GetLogsRequest) String() string { func (*GetLogsRequest) ProtoMessage() {} func (x *GetLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[57] + mi := &file_enclave_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2906,7 +2999,7 @@ func (x *GetLogsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLogsRequest.ProtoReflect.Descriptor instead. func (*GetLogsRequest) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{57} + return file_enclave_proto_rawDescGZIP(), []int{59} } func (x *GetLogsRequest) GetEncryptedParams() []byte { @@ -2928,7 +3021,7 @@ type GetLogsResponse struct { func (x *GetLogsResponse) Reset() { *x = GetLogsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[58] + mi := &file_enclave_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2941,7 +3034,7 @@ func (x *GetLogsResponse) String() string { func (*GetLogsResponse) ProtoMessage() {} func (x *GetLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[58] + mi := &file_enclave_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2954,7 +3047,7 @@ func (x *GetLogsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLogsResponse.ProtoReflect.Descriptor instead. func (*GetLogsResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{58} + return file_enclave_proto_rawDescGZIP(), []int{60} } func (x *GetLogsResponse) GetEncodedEnclaveResponse() []byte { @@ -2983,7 +3076,7 @@ type HealthCheckResponse struct { func (x *HealthCheckResponse) Reset() { *x = HealthCheckResponse{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[59] + mi := &file_enclave_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2996,7 +3089,7 @@ func (x *HealthCheckResponse) String() string { func (*HealthCheckResponse) ProtoMessage() {} func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[59] + mi := &file_enclave_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3009,7 +3102,7 @@ func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. func (*HealthCheckResponse) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{59} + return file_enclave_proto_rawDescGZIP(), []int{61} } func (x *HealthCheckResponse) GetStatus() bool { @@ -3035,7 +3128,7 @@ type EmptyArgs struct { func (x *EmptyArgs) Reset() { *x = EmptyArgs{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[60] + mi := &file_enclave_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3048,7 +3141,7 @@ func (x *EmptyArgs) String() string { func (*EmptyArgs) ProtoMessage() {} func (x *EmptyArgs) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[60] + mi := &file_enclave_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3061,7 +3154,7 @@ func (x *EmptyArgs) ProtoReflect() protoreflect.Message { // Deprecated: Use EmptyArgs.ProtoReflect.Descriptor instead. func (*EmptyArgs) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{60} + return file_enclave_proto_rawDescGZIP(), []int{62} } type AttestationReportMsg struct { @@ -3079,7 +3172,7 @@ type AttestationReportMsg struct { func (x *AttestationReportMsg) Reset() { *x = AttestationReportMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[61] + mi := &file_enclave_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3092,7 +3185,7 @@ func (x *AttestationReportMsg) String() string { func (*AttestationReportMsg) ProtoMessage() {} func (x *AttestationReportMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[61] + mi := &file_enclave_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3105,7 +3198,7 @@ func (x *AttestationReportMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use AttestationReportMsg.ProtoReflect.Descriptor instead. func (*AttestationReportMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{61} + return file_enclave_proto_rawDescGZIP(), []int{63} } func (x *AttestationReportMsg) GetReport() []byte { @@ -3155,7 +3248,7 @@ type BlockSubmissionResponseMsg struct { func (x *BlockSubmissionResponseMsg) Reset() { *x = BlockSubmissionResponseMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[62] + mi := &file_enclave_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3168,7 +3261,7 @@ func (x *BlockSubmissionResponseMsg) String() string { func (*BlockSubmissionResponseMsg) ProtoMessage() {} func (x *BlockSubmissionResponseMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[62] + mi := &file_enclave_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3181,7 +3274,7 @@ func (x *BlockSubmissionResponseMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockSubmissionResponseMsg.ProtoReflect.Descriptor instead. func (*BlockSubmissionResponseMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{62} + return file_enclave_proto_rawDescGZIP(), []int{64} } func (x *BlockSubmissionResponseMsg) GetProducedSecretResponses() []*SecretResponseMsg { @@ -3210,7 +3303,7 @@ type BlockSubmissionErrorMsg struct { func (x *BlockSubmissionErrorMsg) Reset() { *x = BlockSubmissionErrorMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[63] + mi := &file_enclave_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3223,7 +3316,7 @@ func (x *BlockSubmissionErrorMsg) String() string { func (*BlockSubmissionErrorMsg) ProtoMessage() {} func (x *BlockSubmissionErrorMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[63] + mi := &file_enclave_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3236,7 +3329,7 @@ func (x *BlockSubmissionErrorMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockSubmissionErrorMsg.ProtoReflect.Descriptor instead. func (*BlockSubmissionErrorMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{63} + return file_enclave_proto_rawDescGZIP(), []int{65} } func (x *BlockSubmissionErrorMsg) GetCause() string { @@ -3268,7 +3361,7 @@ type CrossChainMsg struct { func (x *CrossChainMsg) Reset() { *x = CrossChainMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[64] + mi := &file_enclave_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3281,7 +3374,7 @@ func (x *CrossChainMsg) String() string { func (*CrossChainMsg) ProtoMessage() {} func (x *CrossChainMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[64] + mi := &file_enclave_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3294,7 +3387,7 @@ func (x *CrossChainMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use CrossChainMsg.ProtoReflect.Descriptor instead. func (*CrossChainMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{64} + return file_enclave_proto_rawDescGZIP(), []int{66} } func (x *CrossChainMsg) GetSender() []byte { @@ -3345,7 +3438,7 @@ type ExtBatchMsg struct { func (x *ExtBatchMsg) Reset() { *x = ExtBatchMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[65] + mi := &file_enclave_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3358,7 +3451,7 @@ func (x *ExtBatchMsg) String() string { func (*ExtBatchMsg) ProtoMessage() {} func (x *ExtBatchMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[65] + mi := &file_enclave_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3371,7 +3464,7 @@ func (x *ExtBatchMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use ExtBatchMsg.ProtoReflect.Descriptor instead. func (*ExtBatchMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{65} + return file_enclave_proto_rawDescGZIP(), []int{67} } func (x *ExtBatchMsg) GetHeader() *BatchHeaderMsg { @@ -3424,7 +3517,7 @@ type BatchHeaderMsg struct { func (x *BatchHeaderMsg) Reset() { *x = BatchHeaderMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[66] + mi := &file_enclave_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3437,7 +3530,7 @@ func (x *BatchHeaderMsg) String() string { func (*BatchHeaderMsg) ProtoMessage() {} func (x *BatchHeaderMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[66] + mi := &file_enclave_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3450,7 +3543,7 @@ func (x *BatchHeaderMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchHeaderMsg.ProtoReflect.Descriptor instead. func (*BatchHeaderMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{66} + return file_enclave_proto_rawDescGZIP(), []int{68} } func (x *BatchHeaderMsg) GetParentHash() []byte { @@ -3599,7 +3692,7 @@ type ExtRollupMsg struct { func (x *ExtRollupMsg) Reset() { *x = ExtRollupMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[67] + mi := &file_enclave_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3612,7 +3705,7 @@ func (x *ExtRollupMsg) String() string { func (*ExtRollupMsg) ProtoMessage() {} func (x *ExtRollupMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[67] + mi := &file_enclave_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3625,7 +3718,7 @@ func (x *ExtRollupMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use ExtRollupMsg.ProtoReflect.Descriptor instead. func (*ExtRollupMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{67} + return file_enclave_proto_rawDescGZIP(), []int{69} } func (x *ExtRollupMsg) GetHeader() *RollupHeaderMsg { @@ -3669,7 +3762,7 @@ type RollupHeaderMsg struct { func (x *RollupHeaderMsg) Reset() { *x = RollupHeaderMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[68] + mi := &file_enclave_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3682,7 +3775,7 @@ func (x *RollupHeaderMsg) String() string { func (*RollupHeaderMsg) ProtoMessage() {} func (x *RollupHeaderMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[68] + mi := &file_enclave_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3695,7 +3788,7 @@ func (x *RollupHeaderMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use RollupHeaderMsg.ProtoReflect.Descriptor instead. func (*RollupHeaderMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{68} + return file_enclave_proto_rawDescGZIP(), []int{70} } func (x *RollupHeaderMsg) GetParentHash() []byte { @@ -3782,7 +3875,7 @@ type SecretResponseMsg struct { func (x *SecretResponseMsg) Reset() { *x = SecretResponseMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[69] + mi := &file_enclave_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3795,7 +3888,7 @@ func (x *SecretResponseMsg) String() string { func (*SecretResponseMsg) ProtoMessage() {} func (x *SecretResponseMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[69] + mi := &file_enclave_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3808,7 +3901,7 @@ func (x *SecretResponseMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponseMsg.ProtoReflect.Descriptor instead. func (*SecretResponseMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{69} + return file_enclave_proto_rawDescGZIP(), []int{71} } func (x *SecretResponseMsg) GetSecret() []byte { @@ -3852,7 +3945,7 @@ type WithdrawalMsg struct { func (x *WithdrawalMsg) Reset() { *x = WithdrawalMsg{} if protoimpl.UnsafeEnabled { - mi := &file_enclave_proto_msgTypes[70] + mi := &file_enclave_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3865,7 +3958,7 @@ func (x *WithdrawalMsg) String() string { func (*WithdrawalMsg) ProtoMessage() {} func (x *WithdrawalMsg) ProtoReflect() protoreflect.Message { - mi := &file_enclave_proto_msgTypes[70] + mi := &file_enclave_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3878,7 +3971,7 @@ func (x *WithdrawalMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use WithdrawalMsg.ProtoReflect.Descriptor instead. func (*WithdrawalMsg) Descriptor() ([]byte, []int) { - return file_enclave_proto_rawDescGZIP(), []int{70} + return file_enclave_proto_rawDescGZIP(), []int{72} } func (x *WithdrawalMsg) GetAmount() []byte { @@ -3921,6 +4014,17 @@ var file_enclave_proto_rawDesc = []byte{ 0x38, 0x0a, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x0b, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x47, 0x65, 0x74, + 0x4c, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8c, 0x01, 0x0a, 0x1e, 0x47, + 0x65, 0x74, 0x4c, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, + 0x13, 0x6c, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x6c, 0x32, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x38, 0x0a, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x47, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, @@ -4368,7 +4472,7 @@ var file_enclave_proto_rawDesc = []byte{ 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x32, 0xaf, 0x13, 0x0a, 0x0c, 0x45, 0x6e, 0x63, 0x6c, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x32, 0xa0, 0x14, 0x0a, 0x0c, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3f, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, @@ -4523,9 +4627,16 @@ var file_enclave_proto_rawDesc = []byte{ 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x17, 0x5a, 0x15, 0x65, 0x6e, 0x63, - 0x6c, 0x61, 0x76, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x16, 0x47, 0x65, 0x74, + 0x4c, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, + 0x47, 0x65, 0x74, 0x4c, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x32, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x17, 0x5a, 0x15, 0x65, 0x6e, + 0x63, 0x6c, 0x61, 0x76, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4540,184 +4651,189 @@ func file_enclave_proto_rawDescGZIP() []byte { return file_enclave_proto_rawDescData } -var file_enclave_proto_msgTypes = make([]protoimpl.MessageInfo, 71) +var file_enclave_proto_msgTypes = make([]protoimpl.MessageInfo, 73) var file_enclave_proto_goTypes = []interface{}{ (*GetPublicTransactionDataRequest)(nil), // 0: generated.GetPublicTransactionDataRequest (*GetPublicTransactionDataResponse)(nil), // 1: generated.GetPublicTransactionDataResponse - (*GetReceiptsByAddressRequest)(nil), // 2: generated.GetReceiptsByAddressRequest - (*GetReceiptsByAddressResponse)(nil), // 3: generated.GetReceiptsByAddressResponse - (*GetBatchRequest)(nil), // 4: generated.GetBatchRequest - (*GetBatchBySeqNoRequest)(nil), // 5: generated.GetBatchBySeqNoRequest - (*GetBatchResponse)(nil), // 6: generated.GetBatchResponse - (*StreamL2UpdatesRequest)(nil), // 7: generated.StreamL2UpdatesRequest - (*EncodedUpdateResponse)(nil), // 8: generated.EncodedUpdateResponse - (*Pagination)(nil), // 9: generated.Pagination - (*SystemError)(nil), // 10: generated.SystemError - (*GetTotalContractCountRequest)(nil), // 11: generated.GetTotalContractCountRequest - (*GetTotalContractCountResponse)(nil), // 12: generated.GetTotalContractCountResponse - (*DebugEventLogRelevancyRequest)(nil), // 13: generated.DebugEventLogRelevancyRequest - (*DebugEventLogRelevancyResponse)(nil), // 14: generated.DebugEventLogRelevancyResponse - (*DebugTraceTransactionRequest)(nil), // 15: generated.DebugTraceTransactionRequest - (*DebugTraceTransactionResponse)(nil), // 16: generated.DebugTraceTransactionResponse - (*CreateBatchRequest)(nil), // 17: generated.CreateBatchRequest - (*CreateBatchResponse)(nil), // 18: generated.CreateBatchResponse - (*CreateRollupRequest)(nil), // 19: generated.CreateRollupRequest - (*CreateRollupResponse)(nil), // 20: generated.CreateRollupResponse - (*StatusRequest)(nil), // 21: generated.StatusRequest - (*StatusResponse)(nil), // 22: generated.StatusResponse - (*AttestationRequest)(nil), // 23: generated.AttestationRequest - (*AttestationResponse)(nil), // 24: generated.AttestationResponse - (*GenerateSecretRequest)(nil), // 25: generated.GenerateSecretRequest - (*GenerateSecretResponse)(nil), // 26: generated.GenerateSecretResponse - (*InitEnclaveRequest)(nil), // 27: generated.InitEnclaveRequest - (*InitEnclaveResponse)(nil), // 28: generated.InitEnclaveResponse - (*StartRequest)(nil), // 29: generated.StartRequest - (*StartResponse)(nil), // 30: generated.StartResponse - (*SubmitBlockRequest)(nil), // 31: generated.SubmitBlockRequest - (*SubmitBlockResponse)(nil), // 32: generated.SubmitBlockResponse - (*SubmitTxRequest)(nil), // 33: generated.SubmitTxRequest - (*SubmitTxResponse)(nil), // 34: generated.SubmitTxResponse - (*SubmitBatchRequest)(nil), // 35: generated.SubmitBatchRequest - (*SubmitBatchResponse)(nil), // 36: generated.SubmitBatchResponse - (*ObsCallRequest)(nil), // 37: generated.ObsCallRequest - (*ObsCallResponse)(nil), // 38: generated.ObsCallResponse - (*GetTransactionCountRequest)(nil), // 39: generated.GetTransactionCountRequest - (*GetTransactionCountResponse)(nil), // 40: generated.GetTransactionCountResponse - (*StopRequest)(nil), // 41: generated.StopRequest - (*StopResponse)(nil), // 42: generated.StopResponse - (*GetTransactionRequest)(nil), // 43: generated.GetTransactionRequest - (*GetTransactionResponse)(nil), // 44: generated.GetTransactionResponse - (*GetTransactionReceiptRequest)(nil), // 45: generated.GetTransactionReceiptRequest - (*GetTransactionReceiptResponse)(nil), // 46: generated.GetTransactionReceiptResponse - (*GetBalanceRequest)(nil), // 47: generated.GetBalanceRequest - (*GetBalanceResponse)(nil), // 48: generated.GetBalanceResponse - (*GetCodeRequest)(nil), // 49: generated.GetCodeRequest - (*GetCodeResponse)(nil), // 50: generated.GetCodeResponse - (*SubscribeRequest)(nil), // 51: generated.SubscribeRequest - (*SubscribeResponse)(nil), // 52: generated.SubscribeResponse - (*UnsubscribeRequest)(nil), // 53: generated.UnsubscribeRequest - (*UnsubscribeResponse)(nil), // 54: generated.UnsubscribeResponse - (*EstimateGasRequest)(nil), // 55: generated.EstimateGasRequest - (*EstimateGasResponse)(nil), // 56: generated.EstimateGasResponse - (*GetLogsRequest)(nil), // 57: generated.GetLogsRequest - (*GetLogsResponse)(nil), // 58: generated.GetLogsResponse - (*HealthCheckResponse)(nil), // 59: generated.HealthCheckResponse - (*EmptyArgs)(nil), // 60: generated.EmptyArgs - (*AttestationReportMsg)(nil), // 61: generated.AttestationReportMsg - (*BlockSubmissionResponseMsg)(nil), // 62: generated.BlockSubmissionResponseMsg - (*BlockSubmissionErrorMsg)(nil), // 63: generated.BlockSubmissionErrorMsg - (*CrossChainMsg)(nil), // 64: generated.CrossChainMsg - (*ExtBatchMsg)(nil), // 65: generated.ExtBatchMsg - (*BatchHeaderMsg)(nil), // 66: generated.BatchHeaderMsg - (*ExtRollupMsg)(nil), // 67: generated.ExtRollupMsg - (*RollupHeaderMsg)(nil), // 68: generated.RollupHeaderMsg - (*SecretResponseMsg)(nil), // 69: generated.SecretResponseMsg - (*WithdrawalMsg)(nil), // 70: generated.WithdrawalMsg + (*GetL2MessageBusAddressRequest)(nil), // 2: generated.GetL2MessageBusAddressRequest + (*GetL2MessageBusAddressResponse)(nil), // 3: generated.GetL2MessageBusAddressResponse + (*GetReceiptsByAddressRequest)(nil), // 4: generated.GetReceiptsByAddressRequest + (*GetReceiptsByAddressResponse)(nil), // 5: generated.GetReceiptsByAddressResponse + (*GetBatchRequest)(nil), // 6: generated.GetBatchRequest + (*GetBatchBySeqNoRequest)(nil), // 7: generated.GetBatchBySeqNoRequest + (*GetBatchResponse)(nil), // 8: generated.GetBatchResponse + (*StreamL2UpdatesRequest)(nil), // 9: generated.StreamL2UpdatesRequest + (*EncodedUpdateResponse)(nil), // 10: generated.EncodedUpdateResponse + (*Pagination)(nil), // 11: generated.Pagination + (*SystemError)(nil), // 12: generated.SystemError + (*GetTotalContractCountRequest)(nil), // 13: generated.GetTotalContractCountRequest + (*GetTotalContractCountResponse)(nil), // 14: generated.GetTotalContractCountResponse + (*DebugEventLogRelevancyRequest)(nil), // 15: generated.DebugEventLogRelevancyRequest + (*DebugEventLogRelevancyResponse)(nil), // 16: generated.DebugEventLogRelevancyResponse + (*DebugTraceTransactionRequest)(nil), // 17: generated.DebugTraceTransactionRequest + (*DebugTraceTransactionResponse)(nil), // 18: generated.DebugTraceTransactionResponse + (*CreateBatchRequest)(nil), // 19: generated.CreateBatchRequest + (*CreateBatchResponse)(nil), // 20: generated.CreateBatchResponse + (*CreateRollupRequest)(nil), // 21: generated.CreateRollupRequest + (*CreateRollupResponse)(nil), // 22: generated.CreateRollupResponse + (*StatusRequest)(nil), // 23: generated.StatusRequest + (*StatusResponse)(nil), // 24: generated.StatusResponse + (*AttestationRequest)(nil), // 25: generated.AttestationRequest + (*AttestationResponse)(nil), // 26: generated.AttestationResponse + (*GenerateSecretRequest)(nil), // 27: generated.GenerateSecretRequest + (*GenerateSecretResponse)(nil), // 28: generated.GenerateSecretResponse + (*InitEnclaveRequest)(nil), // 29: generated.InitEnclaveRequest + (*InitEnclaveResponse)(nil), // 30: generated.InitEnclaveResponse + (*StartRequest)(nil), // 31: generated.StartRequest + (*StartResponse)(nil), // 32: generated.StartResponse + (*SubmitBlockRequest)(nil), // 33: generated.SubmitBlockRequest + (*SubmitBlockResponse)(nil), // 34: generated.SubmitBlockResponse + (*SubmitTxRequest)(nil), // 35: generated.SubmitTxRequest + (*SubmitTxResponse)(nil), // 36: generated.SubmitTxResponse + (*SubmitBatchRequest)(nil), // 37: generated.SubmitBatchRequest + (*SubmitBatchResponse)(nil), // 38: generated.SubmitBatchResponse + (*ObsCallRequest)(nil), // 39: generated.ObsCallRequest + (*ObsCallResponse)(nil), // 40: generated.ObsCallResponse + (*GetTransactionCountRequest)(nil), // 41: generated.GetTransactionCountRequest + (*GetTransactionCountResponse)(nil), // 42: generated.GetTransactionCountResponse + (*StopRequest)(nil), // 43: generated.StopRequest + (*StopResponse)(nil), // 44: generated.StopResponse + (*GetTransactionRequest)(nil), // 45: generated.GetTransactionRequest + (*GetTransactionResponse)(nil), // 46: generated.GetTransactionResponse + (*GetTransactionReceiptRequest)(nil), // 47: generated.GetTransactionReceiptRequest + (*GetTransactionReceiptResponse)(nil), // 48: generated.GetTransactionReceiptResponse + (*GetBalanceRequest)(nil), // 49: generated.GetBalanceRequest + (*GetBalanceResponse)(nil), // 50: generated.GetBalanceResponse + (*GetCodeRequest)(nil), // 51: generated.GetCodeRequest + (*GetCodeResponse)(nil), // 52: generated.GetCodeResponse + (*SubscribeRequest)(nil), // 53: generated.SubscribeRequest + (*SubscribeResponse)(nil), // 54: generated.SubscribeResponse + (*UnsubscribeRequest)(nil), // 55: generated.UnsubscribeRequest + (*UnsubscribeResponse)(nil), // 56: generated.UnsubscribeResponse + (*EstimateGasRequest)(nil), // 57: generated.EstimateGasRequest + (*EstimateGasResponse)(nil), // 58: generated.EstimateGasResponse + (*GetLogsRequest)(nil), // 59: generated.GetLogsRequest + (*GetLogsResponse)(nil), // 60: generated.GetLogsResponse + (*HealthCheckResponse)(nil), // 61: generated.HealthCheckResponse + (*EmptyArgs)(nil), // 62: generated.EmptyArgs + (*AttestationReportMsg)(nil), // 63: generated.AttestationReportMsg + (*BlockSubmissionResponseMsg)(nil), // 64: generated.BlockSubmissionResponseMsg + (*BlockSubmissionErrorMsg)(nil), // 65: generated.BlockSubmissionErrorMsg + (*CrossChainMsg)(nil), // 66: generated.CrossChainMsg + (*ExtBatchMsg)(nil), // 67: generated.ExtBatchMsg + (*BatchHeaderMsg)(nil), // 68: generated.BatchHeaderMsg + (*ExtRollupMsg)(nil), // 69: generated.ExtRollupMsg + (*RollupHeaderMsg)(nil), // 70: generated.RollupHeaderMsg + (*SecretResponseMsg)(nil), // 71: generated.SecretResponseMsg + (*WithdrawalMsg)(nil), // 72: generated.WithdrawalMsg } var file_enclave_proto_depIdxs = []int32{ - 9, // 0: generated.GetPublicTransactionDataRequest.pagination:type_name -> generated.Pagination - 10, // 1: generated.GetPublicTransactionDataResponse.systemError:type_name -> generated.SystemError - 10, // 2: generated.GetReceiptsByAddressResponse.systemError:type_name -> generated.SystemError - 10, // 3: generated.GetBatchResponse.systemError:type_name -> generated.SystemError - 10, // 4: generated.GetTotalContractCountResponse.systemError:type_name -> generated.SystemError - 10, // 5: generated.DebugEventLogRelevancyResponse.systemError:type_name -> generated.SystemError - 10, // 6: generated.DebugTraceTransactionResponse.systemError:type_name -> generated.SystemError - 67, // 7: generated.CreateRollupResponse.msg:type_name -> generated.ExtRollupMsg - 10, // 8: generated.CreateRollupResponse.systemError:type_name -> generated.SystemError - 10, // 9: generated.StatusResponse.systemError:type_name -> generated.SystemError - 61, // 10: generated.AttestationResponse.attestationReportMsg:type_name -> generated.AttestationReportMsg - 10, // 11: generated.AttestationResponse.systemError:type_name -> generated.SystemError - 10, // 12: generated.GenerateSecretResponse.systemError:type_name -> generated.SystemError - 10, // 13: generated.InitEnclaveResponse.systemError:type_name -> generated.SystemError - 10, // 14: generated.StartResponse.systemError:type_name -> generated.SystemError - 62, // 15: generated.SubmitBlockResponse.blockSubmissionResponse:type_name -> generated.BlockSubmissionResponseMsg - 10, // 16: generated.SubmitBlockResponse.systemError:type_name -> generated.SystemError - 10, // 17: generated.SubmitTxResponse.systemError:type_name -> generated.SystemError - 65, // 18: generated.SubmitBatchRequest.batch:type_name -> generated.ExtBatchMsg - 10, // 19: generated.SubmitBatchResponse.systemError:type_name -> generated.SystemError - 10, // 20: generated.ObsCallResponse.systemError:type_name -> generated.SystemError - 10, // 21: generated.GetTransactionCountResponse.systemError:type_name -> generated.SystemError - 10, // 22: generated.StopResponse.systemError:type_name -> generated.SystemError - 10, // 23: generated.GetTransactionResponse.systemError:type_name -> generated.SystemError - 10, // 24: generated.GetTransactionReceiptResponse.systemError:type_name -> generated.SystemError - 10, // 25: generated.GetBalanceResponse.systemError:type_name -> generated.SystemError - 10, // 26: generated.GetCodeResponse.systemError:type_name -> generated.SystemError - 10, // 27: generated.SubscribeResponse.systemError:type_name -> generated.SystemError - 10, // 28: generated.UnsubscribeResponse.systemError:type_name -> generated.SystemError - 10, // 29: generated.EstimateGasResponse.systemError:type_name -> generated.SystemError - 10, // 30: generated.GetLogsResponse.systemError:type_name -> generated.SystemError - 10, // 31: generated.HealthCheckResponse.systemError:type_name -> generated.SystemError - 10, // 32: generated.AttestationReportMsg.systemError:type_name -> generated.SystemError - 69, // 33: generated.BlockSubmissionResponseMsg.producedSecretResponses:type_name -> generated.SecretResponseMsg - 63, // 34: generated.BlockSubmissionResponseMsg.error:type_name -> generated.BlockSubmissionErrorMsg - 66, // 35: generated.ExtBatchMsg.header:type_name -> generated.BatchHeaderMsg - 64, // 36: generated.BatchHeaderMsg.CrossChainMessages:type_name -> generated.CrossChainMsg - 68, // 37: generated.ExtRollupMsg.header:type_name -> generated.RollupHeaderMsg - 64, // 38: generated.RollupHeaderMsg.CrossChainMessages:type_name -> generated.CrossChainMsg - 10, // 39: generated.SecretResponseMsg.systemError:type_name -> generated.SystemError - 21, // 40: generated.EnclaveProto.Status:input_type -> generated.StatusRequest - 23, // 41: generated.EnclaveProto.Attestation:input_type -> generated.AttestationRequest - 25, // 42: generated.EnclaveProto.GenerateSecret:input_type -> generated.GenerateSecretRequest - 27, // 43: generated.EnclaveProto.InitEnclave:input_type -> generated.InitEnclaveRequest - 31, // 44: generated.EnclaveProto.SubmitL1Block:input_type -> generated.SubmitBlockRequest - 33, // 45: generated.EnclaveProto.SubmitTx:input_type -> generated.SubmitTxRequest - 35, // 46: generated.EnclaveProto.SubmitBatch:input_type -> generated.SubmitBatchRequest - 37, // 47: generated.EnclaveProto.ObsCall:input_type -> generated.ObsCallRequest - 39, // 48: generated.EnclaveProto.GetTransactionCount:input_type -> generated.GetTransactionCountRequest - 41, // 49: generated.EnclaveProto.Stop:input_type -> generated.StopRequest - 43, // 50: generated.EnclaveProto.GetTransaction:input_type -> generated.GetTransactionRequest - 45, // 51: generated.EnclaveProto.GetTransactionReceipt:input_type -> generated.GetTransactionReceiptRequest - 47, // 52: generated.EnclaveProto.GetBalance:input_type -> generated.GetBalanceRequest - 49, // 53: generated.EnclaveProto.GetCode:input_type -> generated.GetCodeRequest - 51, // 54: generated.EnclaveProto.Subscribe:input_type -> generated.SubscribeRequest - 53, // 55: generated.EnclaveProto.Unsubscribe:input_type -> generated.UnsubscribeRequest - 55, // 56: generated.EnclaveProto.EstimateGas:input_type -> generated.EstimateGasRequest - 57, // 57: generated.EnclaveProto.GetLogs:input_type -> generated.GetLogsRequest - 60, // 58: generated.EnclaveProto.HealthCheck:input_type -> generated.EmptyArgs - 4, // 59: generated.EnclaveProto.GetBatch:input_type -> generated.GetBatchRequest - 5, // 60: generated.EnclaveProto.GetBatchBySeqNo:input_type -> generated.GetBatchBySeqNoRequest - 17, // 61: generated.EnclaveProto.CreateBatch:input_type -> generated.CreateBatchRequest - 19, // 62: generated.EnclaveProto.CreateRollup:input_type -> generated.CreateRollupRequest - 15, // 63: generated.EnclaveProto.DebugTraceTransaction:input_type -> generated.DebugTraceTransactionRequest - 7, // 64: generated.EnclaveProto.StreamL2Updates:input_type -> generated.StreamL2UpdatesRequest - 13, // 65: generated.EnclaveProto.DebugEventLogRelevancy:input_type -> generated.DebugEventLogRelevancyRequest - 11, // 66: generated.EnclaveProto.GetTotalContractCount:input_type -> generated.GetTotalContractCountRequest - 2, // 67: generated.EnclaveProto.GetReceiptsByAddress:input_type -> generated.GetReceiptsByAddressRequest - 0, // 68: generated.EnclaveProto.GetPublicTransactionData:input_type -> generated.GetPublicTransactionDataRequest - 22, // 69: generated.EnclaveProto.Status:output_type -> generated.StatusResponse - 24, // 70: generated.EnclaveProto.Attestation:output_type -> generated.AttestationResponse - 26, // 71: generated.EnclaveProto.GenerateSecret:output_type -> generated.GenerateSecretResponse - 28, // 72: generated.EnclaveProto.InitEnclave:output_type -> generated.InitEnclaveResponse - 32, // 73: generated.EnclaveProto.SubmitL1Block:output_type -> generated.SubmitBlockResponse - 34, // 74: generated.EnclaveProto.SubmitTx:output_type -> generated.SubmitTxResponse - 36, // 75: generated.EnclaveProto.SubmitBatch:output_type -> generated.SubmitBatchResponse - 38, // 76: generated.EnclaveProto.ObsCall:output_type -> generated.ObsCallResponse - 40, // 77: generated.EnclaveProto.GetTransactionCount:output_type -> generated.GetTransactionCountResponse - 42, // 78: generated.EnclaveProto.Stop:output_type -> generated.StopResponse - 44, // 79: generated.EnclaveProto.GetTransaction:output_type -> generated.GetTransactionResponse - 46, // 80: generated.EnclaveProto.GetTransactionReceipt:output_type -> generated.GetTransactionReceiptResponse - 48, // 81: generated.EnclaveProto.GetBalance:output_type -> generated.GetBalanceResponse - 50, // 82: generated.EnclaveProto.GetCode:output_type -> generated.GetCodeResponse - 52, // 83: generated.EnclaveProto.Subscribe:output_type -> generated.SubscribeResponse - 54, // 84: generated.EnclaveProto.Unsubscribe:output_type -> generated.UnsubscribeResponse - 56, // 85: generated.EnclaveProto.EstimateGas:output_type -> generated.EstimateGasResponse - 58, // 86: generated.EnclaveProto.GetLogs:output_type -> generated.GetLogsResponse - 59, // 87: generated.EnclaveProto.HealthCheck:output_type -> generated.HealthCheckResponse - 6, // 88: generated.EnclaveProto.GetBatch:output_type -> generated.GetBatchResponse - 6, // 89: generated.EnclaveProto.GetBatchBySeqNo:output_type -> generated.GetBatchResponse - 18, // 90: generated.EnclaveProto.CreateBatch:output_type -> generated.CreateBatchResponse - 20, // 91: generated.EnclaveProto.CreateRollup:output_type -> generated.CreateRollupResponse - 16, // 92: generated.EnclaveProto.DebugTraceTransaction:output_type -> generated.DebugTraceTransactionResponse - 8, // 93: generated.EnclaveProto.StreamL2Updates:output_type -> generated.EncodedUpdateResponse - 14, // 94: generated.EnclaveProto.DebugEventLogRelevancy:output_type -> generated.DebugEventLogRelevancyResponse - 12, // 95: generated.EnclaveProto.GetTotalContractCount:output_type -> generated.GetTotalContractCountResponse - 3, // 96: generated.EnclaveProto.GetReceiptsByAddress:output_type -> generated.GetReceiptsByAddressResponse - 1, // 97: generated.EnclaveProto.GetPublicTransactionData:output_type -> generated.GetPublicTransactionDataResponse - 69, // [69:98] is the sub-list for method output_type - 40, // [40:69] is the sub-list for method input_type - 40, // [40:40] is the sub-list for extension type_name - 40, // [40:40] is the sub-list for extension extendee - 0, // [0:40] is the sub-list for field type_name + 11, // 0: generated.GetPublicTransactionDataRequest.pagination:type_name -> generated.Pagination + 12, // 1: generated.GetPublicTransactionDataResponse.systemError:type_name -> generated.SystemError + 12, // 2: generated.GetL2MessageBusAddressResponse.systemError:type_name -> generated.SystemError + 12, // 3: generated.GetReceiptsByAddressResponse.systemError:type_name -> generated.SystemError + 12, // 4: generated.GetBatchResponse.systemError:type_name -> generated.SystemError + 12, // 5: generated.GetTotalContractCountResponse.systemError:type_name -> generated.SystemError + 12, // 6: generated.DebugEventLogRelevancyResponse.systemError:type_name -> generated.SystemError + 12, // 7: generated.DebugTraceTransactionResponse.systemError:type_name -> generated.SystemError + 69, // 8: generated.CreateRollupResponse.msg:type_name -> generated.ExtRollupMsg + 12, // 9: generated.CreateRollupResponse.systemError:type_name -> generated.SystemError + 12, // 10: generated.StatusResponse.systemError:type_name -> generated.SystemError + 63, // 11: generated.AttestationResponse.attestationReportMsg:type_name -> generated.AttestationReportMsg + 12, // 12: generated.AttestationResponse.systemError:type_name -> generated.SystemError + 12, // 13: generated.GenerateSecretResponse.systemError:type_name -> generated.SystemError + 12, // 14: generated.InitEnclaveResponse.systemError:type_name -> generated.SystemError + 12, // 15: generated.StartResponse.systemError:type_name -> generated.SystemError + 64, // 16: generated.SubmitBlockResponse.blockSubmissionResponse:type_name -> generated.BlockSubmissionResponseMsg + 12, // 17: generated.SubmitBlockResponse.systemError:type_name -> generated.SystemError + 12, // 18: generated.SubmitTxResponse.systemError:type_name -> generated.SystemError + 67, // 19: generated.SubmitBatchRequest.batch:type_name -> generated.ExtBatchMsg + 12, // 20: generated.SubmitBatchResponse.systemError:type_name -> generated.SystemError + 12, // 21: generated.ObsCallResponse.systemError:type_name -> generated.SystemError + 12, // 22: generated.GetTransactionCountResponse.systemError:type_name -> generated.SystemError + 12, // 23: generated.StopResponse.systemError:type_name -> generated.SystemError + 12, // 24: generated.GetTransactionResponse.systemError:type_name -> generated.SystemError + 12, // 25: generated.GetTransactionReceiptResponse.systemError:type_name -> generated.SystemError + 12, // 26: generated.GetBalanceResponse.systemError:type_name -> generated.SystemError + 12, // 27: generated.GetCodeResponse.systemError:type_name -> generated.SystemError + 12, // 28: generated.SubscribeResponse.systemError:type_name -> generated.SystemError + 12, // 29: generated.UnsubscribeResponse.systemError:type_name -> generated.SystemError + 12, // 30: generated.EstimateGasResponse.systemError:type_name -> generated.SystemError + 12, // 31: generated.GetLogsResponse.systemError:type_name -> generated.SystemError + 12, // 32: generated.HealthCheckResponse.systemError:type_name -> generated.SystemError + 12, // 33: generated.AttestationReportMsg.systemError:type_name -> generated.SystemError + 71, // 34: generated.BlockSubmissionResponseMsg.producedSecretResponses:type_name -> generated.SecretResponseMsg + 65, // 35: generated.BlockSubmissionResponseMsg.error:type_name -> generated.BlockSubmissionErrorMsg + 68, // 36: generated.ExtBatchMsg.header:type_name -> generated.BatchHeaderMsg + 66, // 37: generated.BatchHeaderMsg.CrossChainMessages:type_name -> generated.CrossChainMsg + 70, // 38: generated.ExtRollupMsg.header:type_name -> generated.RollupHeaderMsg + 66, // 39: generated.RollupHeaderMsg.CrossChainMessages:type_name -> generated.CrossChainMsg + 12, // 40: generated.SecretResponseMsg.systemError:type_name -> generated.SystemError + 23, // 41: generated.EnclaveProto.Status:input_type -> generated.StatusRequest + 25, // 42: generated.EnclaveProto.Attestation:input_type -> generated.AttestationRequest + 27, // 43: generated.EnclaveProto.GenerateSecret:input_type -> generated.GenerateSecretRequest + 29, // 44: generated.EnclaveProto.InitEnclave:input_type -> generated.InitEnclaveRequest + 33, // 45: generated.EnclaveProto.SubmitL1Block:input_type -> generated.SubmitBlockRequest + 35, // 46: generated.EnclaveProto.SubmitTx:input_type -> generated.SubmitTxRequest + 37, // 47: generated.EnclaveProto.SubmitBatch:input_type -> generated.SubmitBatchRequest + 39, // 48: generated.EnclaveProto.ObsCall:input_type -> generated.ObsCallRequest + 41, // 49: generated.EnclaveProto.GetTransactionCount:input_type -> generated.GetTransactionCountRequest + 43, // 50: generated.EnclaveProto.Stop:input_type -> generated.StopRequest + 45, // 51: generated.EnclaveProto.GetTransaction:input_type -> generated.GetTransactionRequest + 47, // 52: generated.EnclaveProto.GetTransactionReceipt:input_type -> generated.GetTransactionReceiptRequest + 49, // 53: generated.EnclaveProto.GetBalance:input_type -> generated.GetBalanceRequest + 51, // 54: generated.EnclaveProto.GetCode:input_type -> generated.GetCodeRequest + 53, // 55: generated.EnclaveProto.Subscribe:input_type -> generated.SubscribeRequest + 55, // 56: generated.EnclaveProto.Unsubscribe:input_type -> generated.UnsubscribeRequest + 57, // 57: generated.EnclaveProto.EstimateGas:input_type -> generated.EstimateGasRequest + 59, // 58: generated.EnclaveProto.GetLogs:input_type -> generated.GetLogsRequest + 62, // 59: generated.EnclaveProto.HealthCheck:input_type -> generated.EmptyArgs + 6, // 60: generated.EnclaveProto.GetBatch:input_type -> generated.GetBatchRequest + 7, // 61: generated.EnclaveProto.GetBatchBySeqNo:input_type -> generated.GetBatchBySeqNoRequest + 19, // 62: generated.EnclaveProto.CreateBatch:input_type -> generated.CreateBatchRequest + 21, // 63: generated.EnclaveProto.CreateRollup:input_type -> generated.CreateRollupRequest + 17, // 64: generated.EnclaveProto.DebugTraceTransaction:input_type -> generated.DebugTraceTransactionRequest + 9, // 65: generated.EnclaveProto.StreamL2Updates:input_type -> generated.StreamL2UpdatesRequest + 15, // 66: generated.EnclaveProto.DebugEventLogRelevancy:input_type -> generated.DebugEventLogRelevancyRequest + 13, // 67: generated.EnclaveProto.GetTotalContractCount:input_type -> generated.GetTotalContractCountRequest + 4, // 68: generated.EnclaveProto.GetReceiptsByAddress:input_type -> generated.GetReceiptsByAddressRequest + 0, // 69: generated.EnclaveProto.GetPublicTransactionData:input_type -> generated.GetPublicTransactionDataRequest + 2, // 70: generated.EnclaveProto.GetL2MessageBusAddress:input_type -> generated.GetL2MessageBusAddressRequest + 24, // 71: generated.EnclaveProto.Status:output_type -> generated.StatusResponse + 26, // 72: generated.EnclaveProto.Attestation:output_type -> generated.AttestationResponse + 28, // 73: generated.EnclaveProto.GenerateSecret:output_type -> generated.GenerateSecretResponse + 30, // 74: generated.EnclaveProto.InitEnclave:output_type -> generated.InitEnclaveResponse + 34, // 75: generated.EnclaveProto.SubmitL1Block:output_type -> generated.SubmitBlockResponse + 36, // 76: generated.EnclaveProto.SubmitTx:output_type -> generated.SubmitTxResponse + 38, // 77: generated.EnclaveProto.SubmitBatch:output_type -> generated.SubmitBatchResponse + 40, // 78: generated.EnclaveProto.ObsCall:output_type -> generated.ObsCallResponse + 42, // 79: generated.EnclaveProto.GetTransactionCount:output_type -> generated.GetTransactionCountResponse + 44, // 80: generated.EnclaveProto.Stop:output_type -> generated.StopResponse + 46, // 81: generated.EnclaveProto.GetTransaction:output_type -> generated.GetTransactionResponse + 48, // 82: generated.EnclaveProto.GetTransactionReceipt:output_type -> generated.GetTransactionReceiptResponse + 50, // 83: generated.EnclaveProto.GetBalance:output_type -> generated.GetBalanceResponse + 52, // 84: generated.EnclaveProto.GetCode:output_type -> generated.GetCodeResponse + 54, // 85: generated.EnclaveProto.Subscribe:output_type -> generated.SubscribeResponse + 56, // 86: generated.EnclaveProto.Unsubscribe:output_type -> generated.UnsubscribeResponse + 58, // 87: generated.EnclaveProto.EstimateGas:output_type -> generated.EstimateGasResponse + 60, // 88: generated.EnclaveProto.GetLogs:output_type -> generated.GetLogsResponse + 61, // 89: generated.EnclaveProto.HealthCheck:output_type -> generated.HealthCheckResponse + 8, // 90: generated.EnclaveProto.GetBatch:output_type -> generated.GetBatchResponse + 8, // 91: generated.EnclaveProto.GetBatchBySeqNo:output_type -> generated.GetBatchResponse + 20, // 92: generated.EnclaveProto.CreateBatch:output_type -> generated.CreateBatchResponse + 22, // 93: generated.EnclaveProto.CreateRollup:output_type -> generated.CreateRollupResponse + 18, // 94: generated.EnclaveProto.DebugTraceTransaction:output_type -> generated.DebugTraceTransactionResponse + 10, // 95: generated.EnclaveProto.StreamL2Updates:output_type -> generated.EncodedUpdateResponse + 16, // 96: generated.EnclaveProto.DebugEventLogRelevancy:output_type -> generated.DebugEventLogRelevancyResponse + 14, // 97: generated.EnclaveProto.GetTotalContractCount:output_type -> generated.GetTotalContractCountResponse + 5, // 98: generated.EnclaveProto.GetReceiptsByAddress:output_type -> generated.GetReceiptsByAddressResponse + 1, // 99: generated.EnclaveProto.GetPublicTransactionData:output_type -> generated.GetPublicTransactionDataResponse + 3, // 100: generated.EnclaveProto.GetL2MessageBusAddress:output_type -> generated.GetL2MessageBusAddressResponse + 71, // [71:101] is the sub-list for method output_type + 41, // [41:71] is the sub-list for method input_type + 41, // [41:41] is the sub-list for extension type_name + 41, // [41:41] is the sub-list for extension extendee + 0, // [0:41] is the sub-list for field type_name } func init() { file_enclave_proto_init() } @@ -4751,7 +4867,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReceiptsByAddressRequest); i { + switch v := v.(*GetL2MessageBusAddressRequest); i { case 0: return &v.state case 1: @@ -4763,7 +4879,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReceiptsByAddressResponse); i { + switch v := v.(*GetL2MessageBusAddressResponse); i { case 0: return &v.state case 1: @@ -4775,7 +4891,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBatchRequest); i { + switch v := v.(*GetReceiptsByAddressRequest); i { case 0: return &v.state case 1: @@ -4787,7 +4903,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBatchBySeqNoRequest); i { + switch v := v.(*GetReceiptsByAddressResponse); i { case 0: return &v.state case 1: @@ -4799,7 +4915,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBatchResponse); i { + switch v := v.(*GetBatchRequest); i { case 0: return &v.state case 1: @@ -4811,7 +4927,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StreamL2UpdatesRequest); i { + switch v := v.(*GetBatchBySeqNoRequest); i { case 0: return &v.state case 1: @@ -4823,7 +4939,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodedUpdateResponse); i { + switch v := v.(*GetBatchResponse); i { case 0: return &v.state case 1: @@ -4835,7 +4951,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pagination); i { + switch v := v.(*StreamL2UpdatesRequest); i { case 0: return &v.state case 1: @@ -4847,7 +4963,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SystemError); i { + switch v := v.(*EncodedUpdateResponse); i { case 0: return &v.state case 1: @@ -4859,7 +4975,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTotalContractCountRequest); i { + switch v := v.(*Pagination); i { case 0: return &v.state case 1: @@ -4871,7 +4987,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTotalContractCountResponse); i { + switch v := v.(*SystemError); i { case 0: return &v.state case 1: @@ -4883,7 +4999,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugEventLogRelevancyRequest); i { + switch v := v.(*GetTotalContractCountRequest); i { case 0: return &v.state case 1: @@ -4895,7 +5011,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugEventLogRelevancyResponse); i { + switch v := v.(*GetTotalContractCountResponse); i { case 0: return &v.state case 1: @@ -4907,7 +5023,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugTraceTransactionRequest); i { + switch v := v.(*DebugEventLogRelevancyRequest); i { case 0: return &v.state case 1: @@ -4919,7 +5035,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugTraceTransactionResponse); i { + switch v := v.(*DebugEventLogRelevancyResponse); i { case 0: return &v.state case 1: @@ -4931,7 +5047,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateBatchRequest); i { + switch v := v.(*DebugTraceTransactionRequest); i { case 0: return &v.state case 1: @@ -4943,7 +5059,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateBatchResponse); i { + switch v := v.(*DebugTraceTransactionResponse); i { case 0: return &v.state case 1: @@ -4955,7 +5071,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRollupRequest); i { + switch v := v.(*CreateBatchRequest); i { case 0: return &v.state case 1: @@ -4967,7 +5083,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRollupResponse); i { + switch v := v.(*CreateBatchResponse); i { case 0: return &v.state case 1: @@ -4979,7 +5095,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusRequest); i { + switch v := v.(*CreateRollupRequest); i { case 0: return &v.state case 1: @@ -4991,7 +5107,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusResponse); i { + switch v := v.(*CreateRollupResponse); i { case 0: return &v.state case 1: @@ -5003,7 +5119,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttestationRequest); i { + switch v := v.(*StatusRequest); i { case 0: return &v.state case 1: @@ -5015,7 +5131,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttestationResponse); i { + switch v := v.(*StatusResponse); i { case 0: return &v.state case 1: @@ -5027,7 +5143,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateSecretRequest); i { + switch v := v.(*AttestationRequest); i { case 0: return &v.state case 1: @@ -5039,7 +5155,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateSecretResponse); i { + switch v := v.(*AttestationResponse); i { case 0: return &v.state case 1: @@ -5051,7 +5167,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitEnclaveRequest); i { + switch v := v.(*GenerateSecretRequest); i { case 0: return &v.state case 1: @@ -5063,7 +5179,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitEnclaveResponse); i { + switch v := v.(*GenerateSecretResponse); i { case 0: return &v.state case 1: @@ -5075,7 +5191,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartRequest); i { + switch v := v.(*InitEnclaveRequest); i { case 0: return &v.state case 1: @@ -5087,7 +5203,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartResponse); i { + switch v := v.(*InitEnclaveResponse); i { case 0: return &v.state case 1: @@ -5099,7 +5215,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitBlockRequest); i { + switch v := v.(*StartRequest); i { case 0: return &v.state case 1: @@ -5111,7 +5227,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitBlockResponse); i { + switch v := v.(*StartResponse); i { case 0: return &v.state case 1: @@ -5123,7 +5239,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTxRequest); i { + switch v := v.(*SubmitBlockRequest); i { case 0: return &v.state case 1: @@ -5135,7 +5251,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTxResponse); i { + switch v := v.(*SubmitBlockResponse); i { case 0: return &v.state case 1: @@ -5147,7 +5263,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitBatchRequest); i { + switch v := v.(*SubmitTxRequest); i { case 0: return &v.state case 1: @@ -5159,7 +5275,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitBatchResponse); i { + switch v := v.(*SubmitTxResponse); i { case 0: return &v.state case 1: @@ -5171,7 +5287,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObsCallRequest); i { + switch v := v.(*SubmitBatchRequest); i { case 0: return &v.state case 1: @@ -5183,7 +5299,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObsCallResponse); i { + switch v := v.(*SubmitBatchResponse); i { case 0: return &v.state case 1: @@ -5195,7 +5311,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionCountRequest); i { + switch v := v.(*ObsCallRequest); i { case 0: return &v.state case 1: @@ -5207,7 +5323,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionCountResponse); i { + switch v := v.(*ObsCallResponse); i { case 0: return &v.state case 1: @@ -5219,7 +5335,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopRequest); i { + switch v := v.(*GetTransactionCountRequest); i { case 0: return &v.state case 1: @@ -5231,7 +5347,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopResponse); i { + switch v := v.(*GetTransactionCountResponse); i { case 0: return &v.state case 1: @@ -5243,7 +5359,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionRequest); i { + switch v := v.(*StopRequest); i { case 0: return &v.state case 1: @@ -5255,7 +5371,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionResponse); i { + switch v := v.(*StopResponse); i { case 0: return &v.state case 1: @@ -5267,7 +5383,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionReceiptRequest); i { + switch v := v.(*GetTransactionRequest); i { case 0: return &v.state case 1: @@ -5279,7 +5395,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionReceiptResponse); i { + switch v := v.(*GetTransactionResponse); i { case 0: return &v.state case 1: @@ -5291,7 +5407,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBalanceRequest); i { + switch v := v.(*GetTransactionReceiptRequest); i { case 0: return &v.state case 1: @@ -5303,7 +5419,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBalanceResponse); i { + switch v := v.(*GetTransactionReceiptResponse); i { case 0: return &v.state case 1: @@ -5315,7 +5431,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCodeRequest); i { + switch v := v.(*GetBalanceRequest); i { case 0: return &v.state case 1: @@ -5327,7 +5443,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCodeResponse); i { + switch v := v.(*GetBalanceResponse); i { case 0: return &v.state case 1: @@ -5339,7 +5455,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeRequest); i { + switch v := v.(*GetCodeRequest); i { case 0: return &v.state case 1: @@ -5351,7 +5467,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeResponse); i { + switch v := v.(*GetCodeResponse); i { case 0: return &v.state case 1: @@ -5363,7 +5479,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnsubscribeRequest); i { + switch v := v.(*SubscribeRequest); i { case 0: return &v.state case 1: @@ -5375,7 +5491,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnsubscribeResponse); i { + switch v := v.(*SubscribeResponse); i { case 0: return &v.state case 1: @@ -5387,7 +5503,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateGasRequest); i { + switch v := v.(*UnsubscribeRequest); i { case 0: return &v.state case 1: @@ -5399,7 +5515,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateGasResponse); i { + switch v := v.(*UnsubscribeResponse); i { case 0: return &v.state case 1: @@ -5411,7 +5527,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogsRequest); i { + switch v := v.(*EstimateGasRequest); i { case 0: return &v.state case 1: @@ -5423,7 +5539,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogsResponse); i { + switch v := v.(*EstimateGasResponse); i { case 0: return &v.state case 1: @@ -5435,7 +5551,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HealthCheckResponse); i { + switch v := v.(*GetLogsRequest); i { case 0: return &v.state case 1: @@ -5447,7 +5563,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyArgs); i { + switch v := v.(*GetLogsResponse); i { case 0: return &v.state case 1: @@ -5459,7 +5575,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttestationReportMsg); i { + switch v := v.(*HealthCheckResponse); i { case 0: return &v.state case 1: @@ -5471,7 +5587,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockSubmissionResponseMsg); i { + switch v := v.(*EmptyArgs); i { case 0: return &v.state case 1: @@ -5483,7 +5599,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockSubmissionErrorMsg); i { + switch v := v.(*AttestationReportMsg); i { case 0: return &v.state case 1: @@ -5495,7 +5611,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CrossChainMsg); i { + switch v := v.(*BlockSubmissionResponseMsg); i { case 0: return &v.state case 1: @@ -5507,7 +5623,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtBatchMsg); i { + switch v := v.(*BlockSubmissionErrorMsg); i { case 0: return &v.state case 1: @@ -5519,7 +5635,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchHeaderMsg); i { + switch v := v.(*CrossChainMsg); i { case 0: return &v.state case 1: @@ -5531,7 +5647,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtRollupMsg); i { + switch v := v.(*ExtBatchMsg); i { case 0: return &v.state case 1: @@ -5543,7 +5659,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RollupHeaderMsg); i { + switch v := v.(*BatchHeaderMsg); i { case 0: return &v.state case 1: @@ -5555,7 +5671,7 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecretResponseMsg); i { + switch v := v.(*ExtRollupMsg); i { case 0: return &v.state case 1: @@ -5567,6 +5683,30 @@ func file_enclave_proto_init() { } } file_enclave_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RollupHeaderMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_enclave_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecretResponseMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_enclave_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WithdrawalMsg); i { case 0: return &v.state @@ -5579,14 +5719,14 @@ func file_enclave_proto_init() { } } } - file_enclave_proto_msgTypes[19].OneofWrappers = []interface{}{} + file_enclave_proto_msgTypes[21].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_enclave_proto_rawDesc, NumEnums: 0, - NumMessages: 71, + NumMessages: 73, NumExtensions: 0, NumServices: 1, }, diff --git a/go/common/rpc/generated/enclave.proto b/go/common/rpc/generated/enclave.proto index cf5617e7cc..093de1409b 100644 --- a/go/common/rpc/generated/enclave.proto +++ b/go/common/rpc/generated/enclave.proto @@ -91,6 +91,7 @@ service EnclaveProto { rpc GetPublicTransactionData(GetPublicTransactionDataRequest) returns (GetPublicTransactionDataResponse) {} + rpc GetL2MessageBusAddress(GetL2MessageBusAddressRequest) returns (GetL2MessageBusAddressResponse) {} } message GetPublicTransactionDataRequest { @@ -102,6 +103,13 @@ message GetPublicTransactionDataResponse{ SystemError systemError = 2; } +message GetL2MessageBusAddressRequest {} + +message GetL2MessageBusAddressResponse{ + bytes l2MessageBusAddress = 1; + SystemError systemError = 2; +} + message GetReceiptsByAddressRequest { bytes encryptedParams = 1; } diff --git a/go/common/rpc/generated/enclave_grpc.pb.go b/go/common/rpc/generated/enclave_grpc.pb.go index 2a599406b4..01212a8ea6 100644 --- a/go/common/rpc/generated/enclave_grpc.pb.go +++ b/go/common/rpc/generated/enclave_grpc.pb.go @@ -77,6 +77,7 @@ type EnclaveProtoClient interface { GetTotalContractCount(ctx context.Context, in *GetTotalContractCountRequest, opts ...grpc.CallOption) (*GetTotalContractCountResponse, error) GetReceiptsByAddress(ctx context.Context, in *GetReceiptsByAddressRequest, opts ...grpc.CallOption) (*GetReceiptsByAddressResponse, error) GetPublicTransactionData(ctx context.Context, in *GetPublicTransactionDataRequest, opts ...grpc.CallOption) (*GetPublicTransactionDataResponse, error) + GetL2MessageBusAddress(ctx context.Context, in *GetL2MessageBusAddressRequest, opts ...grpc.CallOption) (*GetL2MessageBusAddressResponse, error) } type enclaveProtoClient struct { @@ -371,6 +372,15 @@ func (c *enclaveProtoClient) GetPublicTransactionData(ctx context.Context, in *G return out, nil } +func (c *enclaveProtoClient) GetL2MessageBusAddress(ctx context.Context, in *GetL2MessageBusAddressRequest, opts ...grpc.CallOption) (*GetL2MessageBusAddressResponse, error) { + out := new(GetL2MessageBusAddressResponse) + err := c.cc.Invoke(ctx, "/generated.EnclaveProto/GetL2MessageBusAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // EnclaveProtoServer is the server API for EnclaveProto service. // All implementations must embed UnimplementedEnclaveProtoServer // for forward compatibility @@ -430,6 +440,7 @@ type EnclaveProtoServer interface { GetTotalContractCount(context.Context, *GetTotalContractCountRequest) (*GetTotalContractCountResponse, error) GetReceiptsByAddress(context.Context, *GetReceiptsByAddressRequest) (*GetReceiptsByAddressResponse, error) GetPublicTransactionData(context.Context, *GetPublicTransactionDataRequest) (*GetPublicTransactionDataResponse, error) + GetL2MessageBusAddress(context.Context, *GetL2MessageBusAddressRequest) (*GetL2MessageBusAddressResponse, error) mustEmbedUnimplementedEnclaveProtoServer() } @@ -524,6 +535,9 @@ func (UnimplementedEnclaveProtoServer) GetReceiptsByAddress(context.Context, *Ge func (UnimplementedEnclaveProtoServer) GetPublicTransactionData(context.Context, *GetPublicTransactionDataRequest) (*GetPublicTransactionDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPublicTransactionData not implemented") } +func (UnimplementedEnclaveProtoServer) GetL2MessageBusAddress(context.Context, *GetL2MessageBusAddressRequest) (*GetL2MessageBusAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetL2MessageBusAddress not implemented") +} func (UnimplementedEnclaveProtoServer) mustEmbedUnimplementedEnclaveProtoServer() {} // UnsafeEnclaveProtoServer may be embedded to opt out of forward compatibility for this service. @@ -1062,6 +1076,24 @@ func _EnclaveProto_GetPublicTransactionData_Handler(srv interface{}, ctx context return interceptor(ctx, in, info, handler) } +func _EnclaveProto_GetL2MessageBusAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetL2MessageBusAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EnclaveProtoServer).GetL2MessageBusAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/generated.EnclaveProto/GetL2MessageBusAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EnclaveProtoServer).GetL2MessageBusAddress(ctx, req.(*GetL2MessageBusAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + // EnclaveProto_ServiceDesc is the grpc.ServiceDesc for EnclaveProto service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -1181,6 +1213,10 @@ var EnclaveProto_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetPublicTransactionData", Handler: _EnclaveProto_GetPublicTransactionData_Handler, }, + { + MethodName: "GetL2MessageBusAddress", + Handler: _EnclaveProto_GetL2MessageBusAddress_Handler, + }, }, Streams: []grpc.StreamDesc{ { diff --git a/go/enclave/crosschain/processors.go b/go/enclave/crosschain/processors.go index 3469d0070c..fbaa839186 100644 --- a/go/enclave/crosschain/processors.go +++ b/go/enclave/crosschain/processors.go @@ -1,6 +1,7 @@ package crosschain import ( + "github.com/ten-protocol/go-ten/go/common" "math/big" "github.com/ten-protocol/go-ten/go/enclave/storage" @@ -31,3 +32,8 @@ func New( func (c *Processors) Enabled() bool { return c.Remote.Enabled() } + +func (c *Processors) GetL2MessageBusAddress() (gethcommon.Address, common.SystemError) { + address := c.Local.GetBusAddress() + return *address, nil +} diff --git a/go/enclave/enclave.go b/go/enclave/enclave.go index f0f7b37385..5bac8cc9f2 100644 --- a/go/enclave/enclave.go +++ b/go/enclave/enclave.go @@ -1378,6 +1378,10 @@ func (e *enclaveImpl) GetPublicTransactionData(pagination *common.QueryPaginatio }, nil } +func (e *enclaveImpl) GetL2MessageBusAddress() (gethcommon.Address, common.SystemError) { + return e.crossChainProcessors.GetL2MessageBusAddress() +} + // Create a helper to check if a gas allowance results in an executable transaction // isGasEnough returns whether the gaslimit should be raised, lowered, or if it was impossible to execute the message func (e *enclaveImpl) isGasEnough(args *gethapi.TransactionArgs, gas uint64, blkNumber *gethrpc.BlockNumber) (bool, *gethcore.ExecutionResult, error) { diff --git a/go/enclave/rpc_server.go b/go/enclave/rpc_server.go index 5777e9ab27..561f99b4d2 100644 --- a/go/enclave/rpc_server.go +++ b/go/enclave/rpc_server.go @@ -430,6 +430,15 @@ func (s *RPCServer) GetPublicTransactionData(_ context.Context, req *generated.G return &generated.GetPublicTransactionDataResponse{PublicTransactionData: marshal}, nil } +func (s *RPCServer) GetL2MessageBusAddress(_ context.Context, _ *generated.GetL2MessageBusAddressRequest) (*generated.GetL2MessageBusAddressResponse, error) { + address, sysError := s.enclave.GetL2MessageBusAddress() + if sysError != nil { + s.logger.Error("Error getting message bus address", log.ErrKey, sysError) + return &generated.GetL2MessageBusAddressResponse{SystemError: toRPCError(sysError)}, nil + } + return &generated.GetL2MessageBusAddressResponse{L2MessageBusAddress: address.Bytes()}, nil +} + func (s *RPCServer) decodeBlock(encodedBlock []byte) types.Block { block := types.Block{} err := rlp.DecodeBytes(encodedBlock, &block) diff --git a/go/host/host.go b/go/host/host.go index 62ae258025..acbc70d28c 100644 --- a/go/host/host.go +++ b/go/host/host.go @@ -200,13 +200,18 @@ func (h *host) HealthCheck() (*hostcommon.HealthCheck, error) { // ObscuroConfig returns info on the Obscuro network func (h *host) ObscuroConfig() (*common.ObscuroNetworkInfo, error) { + l2MessageBusAddress, err := h.EnclaveClient().GetL2MessageBusAddress() + if err != nil { + return nil, responses.ToInternalError(fmt.Errorf("unable to get L2 message bus address - %w", err)) + } return &common.ObscuroNetworkInfo{ ManagementContractAddress: h.config.ManagementContractAddress, L1StartHash: h.config.L1StartHash, - SequencerID: h.config.SequencerID, - MessageBusAddress: h.config.MessageBusAddress, - ImportantContracts: h.services.L1Publisher().GetImportantContracts(), + SequencerID: h.config.SequencerID, + MessageBusAddress: h.config.MessageBusAddress, + L2MessageBusAddress: l2MessageBusAddress, + ImportantContracts: h.services.L1Publisher().GetImportantContracts(), }, nil } diff --git a/go/host/rpc/enclaverpc/enclave_client.go b/go/host/rpc/enclaverpc/enclave_client.go index f6ec0b6f1a..8a9bcb7388 100644 --- a/go/host/rpc/enclaverpc/enclave_client.go +++ b/go/host/rpc/enclaverpc/enclave_client.go @@ -598,3 +598,18 @@ func (c *Client) GetPublicTransactionData(pagination *common.QueryPagination) (* return &result, nil } + +func (c *Client) GetL2MessageBusAddress() (gethcommon.Address, common.SystemError) { + timeoutCtx, cancel := context.WithTimeout(context.Background(), c.config.EnclaveRPCTimeout) + defer cancel() + + response, err := c.protoClient.GetL2MessageBusAddress(timeoutCtx, &generated.GetL2MessageBusAddressRequest{}) + if err != nil { + return gethcommon.Address{}, syserr.NewRPCError(err) + } + if response != nil && response.SystemError != nil { + return gethcommon.Address{}, syserr.NewInternalError(fmt.Errorf("%s", response.SystemError.ErrorString)) + } + + return gethcommon.BytesToAddress(response.L2MessageBusAddress), nil +} diff --git a/integration/networktest/actions/l1/important_contracts.go b/integration/networktest/actions/l1/important_contracts.go index cc8fa4279c..da2d997771 100644 --- a/integration/networktest/actions/l1/important_contracts.go +++ b/integration/networktest/actions/l1/important_contracts.go @@ -2,6 +2,8 @@ package l1 import ( "context" + "fmt" + "github.com/ten-protocol/go-ten/integration/networktest/actions" "time" "github.com/ethereum/go-ethereum/common" @@ -104,3 +106,25 @@ func (s *setImportantContract) Verify(_ context.Context, network networktest.Net } return nil } + +func VerifyL2MessageBusAddressAvailable() networktest.Action { + // VerifyOnly because the L2MessageBus should be deployed automatically by the node as a synthetic tx + return actions.VerifyOnlyAction(func(ctx context.Context, network networktest.NetworkConnector) error { + cli, err := obsclient.Dial(network.ValidatorRPCAddress(0)) + if err != nil { + return errors.Wrap(err, "failed to dial obsClient") + } + networkCfg, err := cli.GetConfig() + if err != nil { + return errors.Wrap(err, "failed to get network config") + } + + var _emptyAddress common.Address + if networkCfg.L2MessageBusAddress == _emptyAddress { + return errors.New("L2MessageBusAddress not set") + + } + fmt.Println("L2MessageBusAddress: ", networkCfg.L2MessageBusAddress) + return nil + }) +} diff --git a/integration/networktest/tests/bridge/important_contracts_test.go b/integration/networktest/tests/bridge/important_contracts_test.go index e608569a98..0648b1c434 100644 --- a/integration/networktest/tests/bridge/important_contracts_test.go +++ b/integration/networktest/tests/bridge/important_contracts_test.go @@ -17,7 +17,10 @@ func TestImportantContractsLookup(t *testing.T) { t, env.LocalDevNetwork(), actions.Series( + // Verify that an address for an important contract can be set and read l1.SetImportantContract("L1TestContract", gethcommon.HexToAddress("0x64")), + // Verify that the L2 Message Bus address is made available by the host (it is deployed with a synthetic tx) + l1.VerifyL2MessageBusAddressAvailable(), ), ) }