diff --git a/bridgectrl/pb/query.pb.go b/bridgectrl/pb/query.pb.go index 447bd455..b6e0f954 100644 --- a/bridgectrl/pb/query.pb.go +++ b/bridgectrl/pb/query.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.13.0 +// protoc-gen-go v1.28.1 +// protoc v4.24.3 // source: query.proto package pb @@ -823,6 +823,150 @@ func (x *Transaction) GetMetadata() string { return "" } +// Monitored tx +type MonitoredTx struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // Sender address of the tx + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` // Receiver address of the tx + Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` // Nonce used to create the tx + Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // Transaction value + Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // Transaction data + Gas uint64 `protobuf:"varint,7,opt,name=gas,proto3" json:"gas,omitempty"` + GasPrice string `protobuf:"bytes,8,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"` + Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` // created/confirmed/failed + BlockId uint64 `protobuf:"varint,10,opt,name=blockId,proto3" json:"blockId,omitempty"` + History []string `protobuf:"bytes,11,rep,name=history,proto3" json:"history,omitempty"` // List of all transaction hashes created from this tx and sent to the network. The order of transactions is NOT guaranteed. + CreatedAt uint64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // Unix timestamp ms + UpdatedAt uint64 `protobuf:"varint,13,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // Unix timestamp ms +} + +func (x *MonitoredTx) Reset() { + *x = MonitoredTx{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MonitoredTx) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MonitoredTx) ProtoMessage() {} + +func (x *MonitoredTx) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MonitoredTx.ProtoReflect.Descriptor instead. +func (*MonitoredTx) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{8} +} + +func (x *MonitoredTx) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *MonitoredTx) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MonitoredTx) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *MonitoredTx) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *MonitoredTx) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *MonitoredTx) GetData() string { + if x != nil { + return x.Data + } + return "" +} + +func (x *MonitoredTx) GetGas() uint64 { + if x != nil { + return x.Gas + } + return 0 +} + +func (x *MonitoredTx) GetGasPrice() string { + if x != nil { + return x.GasPrice + } + return "" +} + +func (x *MonitoredTx) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *MonitoredTx) GetBlockId() uint64 { + if x != nil { + return x.BlockId + } + return 0 +} + +func (x *MonitoredTx) GetHistory() []string { + if x != nil { + return x.History + } + return nil +} + +func (x *MonitoredTx) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *MonitoredTx) GetUpdatedAt() uint64 { + if x != nil { + return x.UpdatedAt + } + return 0 +} + type CheckAPIRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -832,7 +976,7 @@ type CheckAPIRequest struct { func (x *CheckAPIRequest) Reset() { *x = CheckAPIRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[8] + mi := &file_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -845,7 +989,7 @@ func (x *CheckAPIRequest) String() string { func (*CheckAPIRequest) ProtoMessage() {} func (x *CheckAPIRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[8] + mi := &file_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -858,7 +1002,7 @@ func (x *CheckAPIRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckAPIRequest.ProtoReflect.Descriptor instead. func (*CheckAPIRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{8} + return file_query_proto_rawDescGZIP(), []int{9} } type GetBridgesRequest struct { @@ -874,7 +1018,7 @@ type GetBridgesRequest struct { func (x *GetBridgesRequest) Reset() { *x = GetBridgesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[9] + mi := &file_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -887,7 +1031,7 @@ func (x *GetBridgesRequest) String() string { func (*GetBridgesRequest) ProtoMessage() {} func (x *GetBridgesRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[9] + mi := &file_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -900,7 +1044,7 @@ func (x *GetBridgesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBridgesRequest.ProtoReflect.Descriptor instead. func (*GetBridgesRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{9} + return file_query_proto_rawDescGZIP(), []int{10} } func (x *GetBridgesRequest) GetDestAddr() string { @@ -936,7 +1080,7 @@ type GetProofRequest struct { func (x *GetProofRequest) Reset() { *x = GetProofRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[10] + mi := &file_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -949,7 +1093,7 @@ func (x *GetProofRequest) String() string { func (*GetProofRequest) ProtoMessage() {} func (x *GetProofRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[10] + mi := &file_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -962,7 +1106,7 @@ func (x *GetProofRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetProofRequest.ProtoReflect.Descriptor instead. func (*GetProofRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{10} + return file_query_proto_rawDescGZIP(), []int{11} } func (x *GetProofRequest) GetNetId() uint32 { @@ -991,7 +1135,7 @@ type GetTokenWrappedRequest struct { func (x *GetTokenWrappedRequest) Reset() { *x = GetTokenWrappedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[11] + mi := &file_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1004,7 +1148,7 @@ func (x *GetTokenWrappedRequest) String() string { func (*GetTokenWrappedRequest) ProtoMessage() {} func (x *GetTokenWrappedRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[11] + mi := &file_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1017,7 +1161,7 @@ func (x *GetTokenWrappedRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTokenWrappedRequest.ProtoReflect.Descriptor instead. func (*GetTokenWrappedRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{11} + return file_query_proto_rawDescGZIP(), []int{12} } func (x *GetTokenWrappedRequest) GetOrigTokenAddr() string { @@ -1046,7 +1190,7 @@ type GetBridgeRequest struct { func (x *GetBridgeRequest) Reset() { *x = GetBridgeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[12] + mi := &file_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1059,7 +1203,7 @@ func (x *GetBridgeRequest) String() string { func (*GetBridgeRequest) ProtoMessage() {} func (x *GetBridgeRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[12] + mi := &file_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1072,7 +1216,7 @@ func (x *GetBridgeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBridgeRequest.ProtoReflect.Descriptor instead. func (*GetBridgeRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{12} + return file_query_proto_rawDescGZIP(), []int{13} } func (x *GetBridgeRequest) GetNetId() uint32 { @@ -1102,7 +1246,7 @@ type GetClaimsRequest struct { func (x *GetClaimsRequest) Reset() { *x = GetClaimsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[13] + mi := &file_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1115,7 +1259,7 @@ func (x *GetClaimsRequest) String() string { func (*GetClaimsRequest) ProtoMessage() {} func (x *GetClaimsRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[13] + mi := &file_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1128,7 +1272,7 @@ func (x *GetClaimsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClaimsRequest.ProtoReflect.Descriptor instead. func (*GetClaimsRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{13} + return file_query_proto_rawDescGZIP(), []int{14} } func (x *GetClaimsRequest) GetDestAddr() string { @@ -1163,7 +1307,7 @@ type GetCoinPriceRequest struct { func (x *GetCoinPriceRequest) Reset() { *x = GetCoinPriceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[14] + mi := &file_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1176,7 +1320,7 @@ func (x *GetCoinPriceRequest) String() string { func (*GetCoinPriceRequest) ProtoMessage() {} func (x *GetCoinPriceRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[14] + mi := &file_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1189,7 +1333,7 @@ func (x *GetCoinPriceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCoinPriceRequest.ProtoReflect.Descriptor instead. func (*GetCoinPriceRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{14} + return file_query_proto_rawDescGZIP(), []int{15} } func (x *GetCoinPriceRequest) GetSymbolInfos() []*SymbolInfo { @@ -1210,7 +1354,7 @@ type GetMainCoinsRequest struct { func (x *GetMainCoinsRequest) Reset() { *x = GetMainCoinsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[15] + mi := &file_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1223,7 +1367,7 @@ func (x *GetMainCoinsRequest) String() string { func (*GetMainCoinsRequest) ProtoMessage() {} func (x *GetMainCoinsRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[15] + mi := &file_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1236,7 +1380,7 @@ func (x *GetMainCoinsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMainCoinsRequest.ProtoReflect.Descriptor instead. func (*GetMainCoinsRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{15} + return file_query_proto_rawDescGZIP(), []int{16} } func (x *GetMainCoinsRequest) GetNetworkId() uint32 { @@ -1259,7 +1403,7 @@ type GetPendingTransactionsRequest struct { func (x *GetPendingTransactionsRequest) Reset() { *x = GetPendingTransactionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[16] + mi := &file_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1272,7 +1416,7 @@ func (x *GetPendingTransactionsRequest) String() string { func (*GetPendingTransactionsRequest) ProtoMessage() {} func (x *GetPendingTransactionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[16] + mi := &file_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1285,7 +1429,7 @@ func (x *GetPendingTransactionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPendingTransactionsRequest.ProtoReflect.Descriptor instead. func (*GetPendingTransactionsRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{16} + return file_query_proto_rawDescGZIP(), []int{17} } func (x *GetPendingTransactionsRequest) GetDestAddr() string { @@ -1322,7 +1466,7 @@ type GetAllTransactionsRequest struct { func (x *GetAllTransactionsRequest) Reset() { *x = GetAllTransactionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[17] + mi := &file_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1335,7 +1479,7 @@ func (x *GetAllTransactionsRequest) String() string { func (*GetAllTransactionsRequest) ProtoMessage() {} func (x *GetAllTransactionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[17] + mi := &file_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1348,7 +1492,7 @@ func (x *GetAllTransactionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllTransactionsRequest.ProtoReflect.Descriptor instead. func (*GetAllTransactionsRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{17} + return file_query_proto_rawDescGZIP(), []int{18} } func (x *GetAllTransactionsRequest) GetDestAddr() string { @@ -1372,6 +1516,124 @@ func (x *GetAllTransactionsRequest) GetLimit() uint32 { return 0 } +type GetNotReadyTransactionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *GetNotReadyTransactionsRequest) Reset() { + *x = GetNotReadyTransactionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetNotReadyTransactionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNotReadyTransactionsRequest) ProtoMessage() {} + +func (x *GetNotReadyTransactionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[19] + 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 GetNotReadyTransactionsRequest.ProtoReflect.Descriptor instead. +func (*GetNotReadyTransactionsRequest) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{19} +} + +func (x *GetNotReadyTransactionsRequest) GetOffset() uint64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *GetNotReadyTransactionsRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +type GetMonitoredTxsByStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // created/failed/confirmed + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *GetMonitoredTxsByStatusRequest) Reset() { + *x = GetMonitoredTxsByStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetMonitoredTxsByStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMonitoredTxsByStatusRequest) ProtoMessage() {} + +func (x *GetMonitoredTxsByStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[20] + 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 GetMonitoredTxsByStatusRequest.ProtoReflect.Descriptor instead. +func (*GetMonitoredTxsByStatusRequest) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{20} +} + +func (x *GetMonitoredTxsByStatusRequest) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *GetMonitoredTxsByStatusRequest) GetOffset() uint64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *GetMonitoredTxsByStatusRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + type CheckAPIResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1383,7 +1645,7 @@ type CheckAPIResponse struct { func (x *CheckAPIResponse) Reset() { *x = CheckAPIResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[18] + mi := &file_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1396,7 +1658,7 @@ func (x *CheckAPIResponse) String() string { func (*CheckAPIResponse) ProtoMessage() {} func (x *CheckAPIResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[18] + mi := &file_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +1671,7 @@ func (x *CheckAPIResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckAPIResponse.ProtoReflect.Descriptor instead. func (*CheckAPIResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{18} + return file_query_proto_rawDescGZIP(), []int{21} } func (x *CheckAPIResponse) GetApi() string { @@ -1431,7 +1693,7 @@ type GetBridgesResponse struct { func (x *GetBridgesResponse) Reset() { *x = GetBridgesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[19] + mi := &file_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1444,7 +1706,7 @@ func (x *GetBridgesResponse) String() string { func (*GetBridgesResponse) ProtoMessage() {} func (x *GetBridgesResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[19] + mi := &file_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1457,7 +1719,7 @@ func (x *GetBridgesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBridgesResponse.ProtoReflect.Descriptor instead. func (*GetBridgesResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{19} + return file_query_proto_rawDescGZIP(), []int{22} } func (x *GetBridgesResponse) GetDeposits() []*Deposit { @@ -1485,7 +1747,7 @@ type GetProofResponse struct { func (x *GetProofResponse) Reset() { *x = GetProofResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[20] + mi := &file_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1498,7 +1760,7 @@ func (x *GetProofResponse) String() string { func (*GetProofResponse) ProtoMessage() {} func (x *GetProofResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[20] + mi := &file_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1511,7 +1773,7 @@ func (x *GetProofResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetProofResponse.ProtoReflect.Descriptor instead. func (*GetProofResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{20} + return file_query_proto_rawDescGZIP(), []int{23} } func (x *GetProofResponse) GetProof() *Proof { @@ -1532,7 +1794,7 @@ type GetTokenWrappedResponse struct { func (x *GetTokenWrappedResponse) Reset() { *x = GetTokenWrappedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[21] + mi := &file_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1545,7 +1807,7 @@ func (x *GetTokenWrappedResponse) String() string { func (*GetTokenWrappedResponse) ProtoMessage() {} func (x *GetTokenWrappedResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[21] + mi := &file_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1558,7 +1820,7 @@ func (x *GetTokenWrappedResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTokenWrappedResponse.ProtoReflect.Descriptor instead. func (*GetTokenWrappedResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{21} + return file_query_proto_rawDescGZIP(), []int{24} } func (x *GetTokenWrappedResponse) GetTokenwrapped() *TokenWrapped { @@ -1579,7 +1841,7 @@ type GetBridgeResponse struct { func (x *GetBridgeResponse) Reset() { *x = GetBridgeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[22] + mi := &file_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1592,7 +1854,7 @@ func (x *GetBridgeResponse) String() string { func (*GetBridgeResponse) ProtoMessage() {} func (x *GetBridgeResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[22] + mi := &file_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1605,7 +1867,7 @@ func (x *GetBridgeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBridgeResponse.ProtoReflect.Descriptor instead. func (*GetBridgeResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{22} + return file_query_proto_rawDescGZIP(), []int{25} } func (x *GetBridgeResponse) GetDeposit() *Deposit { @@ -1627,7 +1889,7 @@ type GetClaimsResponse struct { func (x *GetClaimsResponse) Reset() { *x = GetClaimsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[23] + mi := &file_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1640,7 +1902,7 @@ func (x *GetClaimsResponse) String() string { func (*GetClaimsResponse) ProtoMessage() {} func (x *GetClaimsResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[23] + mi := &file_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1653,7 +1915,7 @@ func (x *GetClaimsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClaimsResponse.ProtoReflect.Descriptor instead. func (*GetClaimsResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{23} + return file_query_proto_rawDescGZIP(), []int{26} } func (x *GetClaimsResponse) GetClaims() []*Claim { @@ -1681,7 +1943,7 @@ type GetCoinPriceResponse struct { func (x *GetCoinPriceResponse) Reset() { *x = GetCoinPriceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[24] + mi := &file_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1694,7 +1956,7 @@ func (x *GetCoinPriceResponse) String() string { func (*GetCoinPriceResponse) ProtoMessage() {} func (x *GetCoinPriceResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[24] + mi := &file_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1707,7 +1969,7 @@ func (x *GetCoinPriceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCoinPriceResponse.ProtoReflect.Descriptor instead. func (*GetCoinPriceResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{24} + return file_query_proto_rawDescGZIP(), []int{27} } func (x *GetCoinPriceResponse) GetPrices() []*SymbolPrice { @@ -1728,7 +1990,7 @@ type GetMainCoinsResponse struct { func (x *GetMainCoinsResponse) Reset() { *x = GetMainCoinsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[25] + mi := &file_query_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1741,7 +2003,7 @@ func (x *GetMainCoinsResponse) String() string { func (*GetMainCoinsResponse) ProtoMessage() {} func (x *GetMainCoinsResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[25] + mi := &file_query_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1754,7 +2016,7 @@ func (x *GetMainCoinsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMainCoinsResponse.ProtoReflect.Descriptor instead. func (*GetMainCoinsResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{25} + return file_query_proto_rawDescGZIP(), []int{28} } func (x *GetMainCoinsResponse) GetCoinInfos() []*CoinInfo { @@ -1775,7 +2037,7 @@ type GetPendingTransactionsResponse struct { func (x *GetPendingTransactionsResponse) Reset() { *x = GetPendingTransactionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[26] + mi := &file_query_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1788,7 +2050,7 @@ func (x *GetPendingTransactionsResponse) String() string { func (*GetPendingTransactionsResponse) ProtoMessage() {} func (x *GetPendingTransactionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[26] + mi := &file_query_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1801,7 +2063,7 @@ func (x *GetPendingTransactionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPendingTransactionsResponse.ProtoReflect.Descriptor instead. func (*GetPendingTransactionsResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{26} + return file_query_proto_rawDescGZIP(), []int{29} } func (x *GetPendingTransactionsResponse) GetTransactions() []*Transaction { @@ -1822,7 +2084,7 @@ type GetAllTransactionsResponse struct { func (x *GetAllTransactionsResponse) Reset() { *x = GetAllTransactionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[27] + mi := &file_query_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1835,7 +2097,7 @@ func (x *GetAllTransactionsResponse) String() string { func (*GetAllTransactionsResponse) ProtoMessage() {} func (x *GetAllTransactionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[27] + mi := &file_query_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1848,7 +2110,7 @@ func (x *GetAllTransactionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllTransactionsResponse.ProtoReflect.Descriptor instead. func (*GetAllTransactionsResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{27} + return file_query_proto_rawDescGZIP(), []int{30} } func (x *GetAllTransactionsResponse) GetTransactions() []*Transaction { @@ -1874,7 +2136,7 @@ type CommonTransactionsResponse struct { func (x *CommonTransactionsResponse) Reset() { *x = CommonTransactionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[28] + mi := &file_query_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1887,7 +2149,7 @@ func (x *CommonTransactionsResponse) String() string { func (*CommonTransactionsResponse) ProtoMessage() {} func (x *CommonTransactionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[28] + mi := &file_query_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1900,7 +2162,7 @@ func (x *CommonTransactionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CommonTransactionsResponse.ProtoReflect.Descriptor instead. func (*CommonTransactionsResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{28} + return file_query_proto_rawDescGZIP(), []int{31} } func (x *CommonTransactionsResponse) GetCode() uint32 { @@ -1961,7 +2223,7 @@ type CommonCoinsResponse struct { func (x *CommonCoinsResponse) Reset() { *x = CommonCoinsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[29] + mi := &file_query_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1974,7 +2236,7 @@ func (x *CommonCoinsResponse) String() string { func (*CommonCoinsResponse) ProtoMessage() {} func (x *CommonCoinsResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[29] + mi := &file_query_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1987,7 +2249,7 @@ func (x *CommonCoinsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CommonCoinsResponse.ProtoReflect.Descriptor instead. func (*CommonCoinsResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{29} + return file_query_proto_rawDescGZIP(), []int{32} } func (x *CommonCoinsResponse) GetCode() uint32 { @@ -2048,7 +2310,7 @@ type CommonCoinPricesResponse struct { func (x *CommonCoinPricesResponse) Reset() { *x = CommonCoinPricesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[30] + mi := &file_query_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2061,7 +2323,7 @@ func (x *CommonCoinPricesResponse) String() string { func (*CommonCoinPricesResponse) ProtoMessage() {} func (x *CommonCoinPricesResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[30] + mi := &file_query_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2074,7 +2336,7 @@ func (x *CommonCoinPricesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CommonCoinPricesResponse.ProtoReflect.Descriptor instead. func (*CommonCoinPricesResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{30} + return file_query_proto_rawDescGZIP(), []int{33} } func (x *CommonCoinPricesResponse) GetCode() uint32 { @@ -2131,7 +2393,7 @@ type TransactionDetail struct { func (x *TransactionDetail) Reset() { *x = TransactionDetail{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[31] + mi := &file_query_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2144,7 +2406,7 @@ func (x *TransactionDetail) String() string { func (*TransactionDetail) ProtoMessage() {} func (x *TransactionDetail) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[31] + mi := &file_query_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2157,7 +2419,7 @@ func (x *TransactionDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use TransactionDetail.ProtoReflect.Descriptor instead. func (*TransactionDetail) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{31} + return file_query_proto_rawDescGZIP(), []int{34} } func (x *TransactionDetail) GetHasNext() bool { @@ -2190,7 +2452,7 @@ type CommonProofResponse struct { func (x *CommonProofResponse) Reset() { *x = CommonProofResponse{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[32] + mi := &file_query_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2203,7 +2465,7 @@ func (x *CommonProofResponse) String() string { func (*CommonProofResponse) ProtoMessage() {} func (x *CommonProofResponse) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[32] + mi := &file_query_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2216,7 +2478,7 @@ func (x *CommonProofResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CommonProofResponse.ProtoReflect.Descriptor instead. func (*CommonProofResponse) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{32} + return file_query_proto_rawDescGZIP(), []int{35} } func (x *CommonProofResponse) GetCode() uint32 { @@ -2274,7 +2536,7 @@ type ProofDetail struct { func (x *ProofDetail) Reset() { *x = ProofDetail{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[33] + mi := &file_query_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2287,7 +2549,7 @@ func (x *ProofDetail) String() string { func (*ProofDetail) ProtoMessage() {} func (x *ProofDetail) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[33] + mi := &file_query_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2300,7 +2562,7 @@ func (x *ProofDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use ProofDetail.ProtoReflect.Descriptor instead. func (*ProofDetail) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{33} + return file_query_proto_rawDescGZIP(), []int{36} } func (x *ProofDetail) GetSmtProof() []string { @@ -2336,7 +2598,7 @@ type GetSmtProofRequest struct { func (x *GetSmtProofRequest) Reset() { *x = GetSmtProofRequest{} if protoimpl.UnsafeEnabled { - mi := &file_query_proto_msgTypes[34] + mi := &file_query_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2349,7 +2611,7 @@ func (x *GetSmtProofRequest) String() string { func (*GetSmtProofRequest) ProtoMessage() {} func (x *GetSmtProofRequest) ProtoReflect() protoreflect.Message { - mi := &file_query_proto_msgTypes[34] + mi := &file_query_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2362,7 +2624,7 @@ func (x *GetSmtProofRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSmtProofRequest.ProtoReflect.Descriptor instead. func (*GetSmtProofRequest) Descriptor() ([]byte, []int) { - return file_query_proto_rawDescGZIP(), []int{34} + return file_query_proto_rawDescGZIP(), []int{37} } func (x *GetSmtProofRequest) GetIndex() uint32 { @@ -2379,6 +2641,148 @@ func (x *GetSmtProofRequest) GetFromChain() uint64 { return 0 } +type CommonMonitoredTxsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + ErrorCode string `protobuf:"bytes,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + DetailMsg string `protobuf:"bytes,5,opt,name=detailMsg,proto3" json:"detailMsg,omitempty"` + Data *MonitoredTxsDetail `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *CommonMonitoredTxsResponse) Reset() { + *x = CommonMonitoredTxsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommonMonitoredTxsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommonMonitoredTxsResponse) ProtoMessage() {} + +func (x *CommonMonitoredTxsResponse) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[38] + 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 CommonMonitoredTxsResponse.ProtoReflect.Descriptor instead. +func (*CommonMonitoredTxsResponse) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{38} +} + +func (x *CommonMonitoredTxsResponse) GetCode() uint32 { + if x != nil { + return x.Code + } + return 0 +} + +func (x *CommonMonitoredTxsResponse) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *CommonMonitoredTxsResponse) GetErrorCode() string { + if x != nil { + return x.ErrorCode + } + return "" +} + +func (x *CommonMonitoredTxsResponse) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage + } + return "" +} + +func (x *CommonMonitoredTxsResponse) GetDetailMsg() string { + if x != nil { + return x.DetailMsg + } + return "" +} + +func (x *CommonMonitoredTxsResponse) GetData() *MonitoredTxsDetail { + if x != nil { + return x.Data + } + return nil +} + +type MonitoredTxsDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + HasNext bool `protobuf:"varint,1,opt,name=hasNext,proto3" json:"hasNext,omitempty"` + Transactions []*MonitoredTx `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` +} + +func (x *MonitoredTxsDetail) Reset() { + *x = MonitoredTxsDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MonitoredTxsDetail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MonitoredTxsDetail) ProtoMessage() {} + +func (x *MonitoredTxsDetail) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[39] + 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 MonitoredTxsDetail.ProtoReflect.Descriptor instead. +func (*MonitoredTxsDetail) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{39} +} + +func (x *MonitoredTxsDetail) GetHasNext() bool { + if x != nil { + return x.HasNext + } + return false +} + +func (x *MonitoredTxsDetail) GetTransactions() []*MonitoredTx { + if x != nil { + return x.Transactions + } + return nil +} + var File_query_proto protoreflect.FileDescriptor var file_query_proto_rawDesc = []byte{ @@ -2499,119 +2903,137 @@ var file_query_proto_rawDesc = []byte{ 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x11, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, - 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, - 0x09, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x49, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6e, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x65, 0x74, - 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x43, 0x6e, 0x74, 0x22, 0x5b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, - 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, - 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x5f, 0x6e, 0x65, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6f, 0x72, 0x69, 0x67, 0x4e, 0x65, 0x74, - 0x22, 0x4a, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6e, 0x74, 0x22, 0x5d, 0x0a, 0x10, - 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x4e, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x37, 0x0a, 0x0b, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, - 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x33, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, - 0x22, 0x69, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x65, 0x0a, 0x19, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb7, 0x02, 0x0a, 0x0b, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x65, 0x64, 0x54, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x61, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x67, 0x61, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x67, + 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, + 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x18, 0x0a, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, + 0x11, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x73, 0x74, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x22, 0x24, 0x0a, 0x10, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x69, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x22, 0x61, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, - 0x0a, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, - 0x6f, 0x73, 0x69, 0x74, 0x52, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x1b, - 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6e, 0x74, 0x22, 0x3a, 0x0a, 0x10, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x26, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, - 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x56, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x77, 0x72, 0x61, 0x70, 0x70, - 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, - 0x64, 0x52, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x22, - 0x41, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x22, 0x5a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x06, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6e, 0x74, 0x22, 0x46, - 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x06, - 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x69, - 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, - 0x0a, 0x09, 0x63, 0x6f, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x63, 0x6f, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, - 0x73, 0x22, 0x5c, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x58, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, - 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x1a, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1d, - 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, - 0x12, 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0xc6, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x69, + 0x69, 0x74, 0x22, 0x49, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6e, 0x74, 0x22, 0x5b, 0x0a, + 0x16, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x6f, 0x72, 0x69, 0x67, 0x4e, 0x65, 0x74, 0x22, 0x4a, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x5f, 0x63, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x43, 0x6e, 0x74, 0x22, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, + 0x69, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, + 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x4e, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x0b, + 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, + 0x6d, 0x62, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x33, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x69, 0x6e, + 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x22, 0x69, 0x0a, 0x1d, 0x47, 0x65, + 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, + 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x65, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, + 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x4e, 0x0a, 0x1e, + 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x61, 0x64, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x66, 0x0a, 0x1e, + 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x54, 0x78, 0x73, 0x42, + 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x22, 0x24, 0x0a, 0x10, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x69, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x22, 0x61, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2e, 0x0a, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, + 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6e, 0x74, 0x22, 0x3a, 0x0a, + 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x26, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x56, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x77, 0x72, 0x61, + 0x70, 0x70, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x64, 0x52, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x64, 0x22, 0x41, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x07, 0x64, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x22, 0x5a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x63, 0x6c, 0x61, + 0x69, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x06, 0x63, 0x6c, 0x61, + 0x69, 0x6d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6e, 0x74, + 0x22, 0x46, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x52, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4d, + 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x31, 0x0a, 0x09, 0x63, 0x6f, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x63, 0x6f, 0x69, 0x6e, 0x49, 0x6e, + 0x66, 0x6f, 0x73, 0x22, 0x5c, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x58, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3a, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x1a, + 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, @@ -2621,159 +3043,184 @@ var file_query_proto_rawDesc = []byte{ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, - 0x73, 0x67, 0x12, 0x27, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xce, 0x01, 0x0a, 0x18, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1d, - 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, - 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6d, 0x62, 0x6f, - 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x69, 0x0a, 0x11, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x4e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4e, 0x65, 0x78, 0x74, 0x12, 0x3a, 0x0a, 0x0c, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x22, 0x7b, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x28, - 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6e, 0x6e, 0x65, 0x74, 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, 0x6f, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x61, 0x69, 0x6e, 0x6e, 0x65, 0x74, - 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, - 0x75, 0x70, 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, 0x6f, 0x74, - 0x22, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, - 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x32, 0xc7, 0x0c, 0x0a, 0x0d, 0x42, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6d, 0x0a, 0x08, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, 0x12, 0x1a, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x5a, 0x06, 0x12, 0x04, 0x2f, 0x61, 0x70, - 0x69, 0x12, 0x18, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, - 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x12, 0x93, 0x01, 0x0a, 0x0a, - 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x62, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x5a, - 0x16, 0x12, 0x14, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x73, - 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x28, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x62, 0x72, - 0x69, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x7d, 0x12, 0x7f, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1a, 0x2e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x5a, 0x0f, - 0x12, 0x0d, 0x2f, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, - 0x21, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x2d, 0x70, 0x72, 0x6f, - 0x6f, 0x66, 0x12, 0x76, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, - 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x28, 0x5a, 0x09, 0x12, 0x07, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x1b, 0x2f, - 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x8e, 0x01, 0x0a, 0x09, 0x47, - 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x12, 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x5a, 0x15, 0x12, 0x13, 0x2f, - 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x7d, 0x12, 0x27, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, - 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x2f, - 0x7b, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0f, - 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x12, - 0x21, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x5a, 0x0f, - 0x12, 0x0d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x12, - 0x21, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, + 0x73, 0x67, 0x12, 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x22, 0xc6, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, + 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, + 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x27, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xce, 0x01, + 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, + 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, + 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, + 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, + 0x73, 0x67, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6d, + 0x62, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x69, + 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x4e, 0x65, 0x78, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4e, 0x65, 0x78, 0x74, 0x12, 0x3a, 0x0a, + 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x13, 0x43, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x7b, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, + 0x12, 0x28, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6e, 0x6e, 0x65, 0x74, 0x45, 0x78, 0x69, 0x74, 0x52, + 0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x61, 0x69, 0x6e, 0x6e, + 0x65, 0x74, 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x6f, + 0x6c, 0x6c, 0x75, 0x70, 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0x45, 0x78, 0x69, 0x74, 0x52, 0x6f, + 0x6f, 0x74, 0x22, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, + 0x0a, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x22, 0xd7, 0x01, 0x0a, + 0x1a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, + 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, + 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, + 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x4d, 0x73, 0x67, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, + 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x54, 0x78, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6a, 0x0a, 0x12, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x65, 0x64, 0x54, 0x78, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, + 0x68, 0x61, 0x73, 0x4e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, + 0x61, 0x73, 0x4e, 0x65, 0x78, 0x74, 0x12, 0x3a, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, + 0x65, 0x64, 0x54, 0x78, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x32, 0xb9, 0x0b, 0x0a, 0x0d, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, 0x49, + 0x12, 0x1a, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x50, + 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x06, 0x12, 0x04, 0x2f, 0x61, 0x70, 0x69, 0x12, 0x67, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, + 0x12, 0x5a, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1a, 0x2e, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, + 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x57, 0x0a, 0x09, + 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x09, 0x12, 0x07, 0x2f, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x63, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, + 0x6d, 0x73, 0x12, 0x1b, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1c, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x2f, 0x7b, + 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x12, 0x21, 0x2e, + 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x77, 0x72, 0x61, 0x70, 0x70, - 0x65, 0x64, 0x12, 0x91, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, - 0x3a, 0x01, 0x2a, 0x5a, 0x10, 0x3a, 0x01, 0x2a, 0x22, 0x0b, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2d, - 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x1f, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x63, 0x6f, 0x69, 0x6e, - 0x2d, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4d, 0x61, - 0x69, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x12, 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x5a, - 0x19, 0x12, 0x17, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2d, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x2f, 0x7b, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x7d, 0x12, 0x2b, 0x2f, 0x70, 0x72, 0x69, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2d, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x2f, 0x7b, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x7d, 0x12, 0xb1, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, - 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x5a, 0x15, 0x12, 0x13, 0x2f, - 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, - 0x72, 0x7d, 0x12, 0x27, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, - 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x7d, 0x12, 0xa1, 0x01, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x5a, 0x11, 0x12, 0x0f, 0x2f, 0x61, 0x6c, 0x6c, 0x2f, - 0x7b, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x23, 0x2f, 0x70, 0x72, 0x69, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2f, 0x61, 0x6c, 0x6c, 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x7d, 0x12, - 0x82, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, - 0x1d, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, - 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x5a, 0x0c, 0x12, 0x0a, 0x2f, 0x73, 0x6d, 0x74, 0x2d, 0x70, - 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1e, 0x2f, 0x70, 0x72, 0x69, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x6f, 0x62, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x73, 0x6d, 0x74, 0x2d, 0x70, - 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x30, 0x78, 0x50, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x48, 0x65, 0x72, 0x6d, - 0x65, 0x7a, 0x2f, 0x7a, 0x6b, 0x65, 0x76, 0x6d, 0x2d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2d, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x74, 0x72, - 0x65, 0x65, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x64, 0x12, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x22, + 0x0b, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2d, 0x70, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x12, + 0x6f, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x12, + 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, + 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2d, 0x63, + 0x6f, 0x69, 0x6e, 0x73, 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x7d, + 0x12, 0x86, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x7b, + 0x64, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x7a, 0x0a, 0x12, 0x47, 0x65, 0x74, + 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x24, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x61, 0x6c, 0x6c, 0x2f, 0x7b, 0x64, 0x65, 0x73, 0x74, + 0x41, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x60, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x6d, 0x74, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1d, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6d, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x73, 0x6d, + 0x74, 0x2d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x7f, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4e, 0x6f, + 0x74, 0x52, 0x65, 0x61, 0x64, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x61, 0x64, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, + 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x6e, + 0x6f, 0x74, 0x2d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x54, 0x78, 0x73, 0x42, 0x79, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x54, 0x78, 0x73, + 0x42, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x54, 0x78, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, + 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x2d, 0x74, 0x78, 0x73, 0x2f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x7d, 0x42, 0x3f, + 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x30, 0x78, 0x50, + 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x48, 0x65, 0x72, 0x6d, 0x65, 0x7a, 0x2f, 0x7a, 0x6b, 0x65, + 0x76, 0x6d, 0x2d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x74, 0x72, 0x65, 0x65, 0x2f, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2788,7 +3235,7 @@ func file_query_proto_rawDescGZIP() []byte { return file_query_proto_rawDescData } -var file_query_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_query_proto_msgTypes = make([]protoimpl.MessageInfo, 40) var file_query_proto_goTypes = []interface{}{ (*TokenWrapped)(nil), // 0: bridge.v1.TokenWrapped (*Deposit)(nil), // 1: bridge.v1.Deposit @@ -2798,33 +3245,38 @@ var file_query_proto_goTypes = []interface{}{ (*SymbolPrice)(nil), // 5: bridge.v1.SymbolPrice (*CoinInfo)(nil), // 6: bridge.v1.CoinInfo (*Transaction)(nil), // 7: bridge.v1.Transaction - (*CheckAPIRequest)(nil), // 8: bridge.v1.CheckAPIRequest - (*GetBridgesRequest)(nil), // 9: bridge.v1.GetBridgesRequest - (*GetProofRequest)(nil), // 10: bridge.v1.GetProofRequest - (*GetTokenWrappedRequest)(nil), // 11: bridge.v1.GetTokenWrappedRequest - (*GetBridgeRequest)(nil), // 12: bridge.v1.GetBridgeRequest - (*GetClaimsRequest)(nil), // 13: bridge.v1.GetClaimsRequest - (*GetCoinPriceRequest)(nil), // 14: bridge.v1.GetCoinPriceRequest - (*GetMainCoinsRequest)(nil), // 15: bridge.v1.GetMainCoinsRequest - (*GetPendingTransactionsRequest)(nil), // 16: bridge.v1.GetPendingTransactionsRequest - (*GetAllTransactionsRequest)(nil), // 17: bridge.v1.GetAllTransactionsRequest - (*CheckAPIResponse)(nil), // 18: bridge.v1.CheckAPIResponse - (*GetBridgesResponse)(nil), // 19: bridge.v1.GetBridgesResponse - (*GetProofResponse)(nil), // 20: bridge.v1.GetProofResponse - (*GetTokenWrappedResponse)(nil), // 21: bridge.v1.GetTokenWrappedResponse - (*GetBridgeResponse)(nil), // 22: bridge.v1.GetBridgeResponse - (*GetClaimsResponse)(nil), // 23: bridge.v1.GetClaimsResponse - (*GetCoinPriceResponse)(nil), // 24: bridge.v1.GetCoinPriceResponse - (*GetMainCoinsResponse)(nil), // 25: bridge.v1.GetMainCoinsResponse - (*GetPendingTransactionsResponse)(nil), // 26: bridge.v1.GetPendingTransactionsResponse - (*GetAllTransactionsResponse)(nil), // 27: bridge.v1.GetAllTransactionsResponse - (*CommonTransactionsResponse)(nil), // 28: bridge.v1.CommonTransactionsResponse - (*CommonCoinsResponse)(nil), // 29: bridge.v1.CommonCoinsResponse - (*CommonCoinPricesResponse)(nil), // 30: bridge.v1.CommonCoinPricesResponse - (*TransactionDetail)(nil), // 31: bridge.v1.TransactionDetail - (*CommonProofResponse)(nil), // 32: bridge.v1.CommonProofResponse - (*ProofDetail)(nil), // 33: bridge.v1.ProofDetail - (*GetSmtProofRequest)(nil), // 34: bridge.v1.GetSmtProofRequest + (*MonitoredTx)(nil), // 8: bridge.v1.MonitoredTx + (*CheckAPIRequest)(nil), // 9: bridge.v1.CheckAPIRequest + (*GetBridgesRequest)(nil), // 10: bridge.v1.GetBridgesRequest + (*GetProofRequest)(nil), // 11: bridge.v1.GetProofRequest + (*GetTokenWrappedRequest)(nil), // 12: bridge.v1.GetTokenWrappedRequest + (*GetBridgeRequest)(nil), // 13: bridge.v1.GetBridgeRequest + (*GetClaimsRequest)(nil), // 14: bridge.v1.GetClaimsRequest + (*GetCoinPriceRequest)(nil), // 15: bridge.v1.GetCoinPriceRequest + (*GetMainCoinsRequest)(nil), // 16: bridge.v1.GetMainCoinsRequest + (*GetPendingTransactionsRequest)(nil), // 17: bridge.v1.GetPendingTransactionsRequest + (*GetAllTransactionsRequest)(nil), // 18: bridge.v1.GetAllTransactionsRequest + (*GetNotReadyTransactionsRequest)(nil), // 19: bridge.v1.GetNotReadyTransactionsRequest + (*GetMonitoredTxsByStatusRequest)(nil), // 20: bridge.v1.GetMonitoredTxsByStatusRequest + (*CheckAPIResponse)(nil), // 21: bridge.v1.CheckAPIResponse + (*GetBridgesResponse)(nil), // 22: bridge.v1.GetBridgesResponse + (*GetProofResponse)(nil), // 23: bridge.v1.GetProofResponse + (*GetTokenWrappedResponse)(nil), // 24: bridge.v1.GetTokenWrappedResponse + (*GetBridgeResponse)(nil), // 25: bridge.v1.GetBridgeResponse + (*GetClaimsResponse)(nil), // 26: bridge.v1.GetClaimsResponse + (*GetCoinPriceResponse)(nil), // 27: bridge.v1.GetCoinPriceResponse + (*GetMainCoinsResponse)(nil), // 28: bridge.v1.GetMainCoinsResponse + (*GetPendingTransactionsResponse)(nil), // 29: bridge.v1.GetPendingTransactionsResponse + (*GetAllTransactionsResponse)(nil), // 30: bridge.v1.GetAllTransactionsResponse + (*CommonTransactionsResponse)(nil), // 31: bridge.v1.CommonTransactionsResponse + (*CommonCoinsResponse)(nil), // 32: bridge.v1.CommonCoinsResponse + (*CommonCoinPricesResponse)(nil), // 33: bridge.v1.CommonCoinPricesResponse + (*TransactionDetail)(nil), // 34: bridge.v1.TransactionDetail + (*CommonProofResponse)(nil), // 35: bridge.v1.CommonProofResponse + (*ProofDetail)(nil), // 36: bridge.v1.ProofDetail + (*GetSmtProofRequest)(nil), // 37: bridge.v1.GetSmtProofRequest + (*CommonMonitoredTxsResponse)(nil), // 38: bridge.v1.CommonMonitoredTxsResponse + (*MonitoredTxsDetail)(nil), // 39: bridge.v1.MonitoredTxsDetail } var file_query_proto_depIdxs = []int32{ 4, // 0: bridge.v1.GetCoinPriceRequest.symbolInfos:type_name -> bridge.v1.SymbolInfo @@ -2837,38 +3289,44 @@ var file_query_proto_depIdxs = []int32{ 6, // 7: bridge.v1.GetMainCoinsResponse.coinInfos:type_name -> bridge.v1.CoinInfo 7, // 8: bridge.v1.GetPendingTransactionsResponse.transactions:type_name -> bridge.v1.Transaction 7, // 9: bridge.v1.GetAllTransactionsResponse.transactions:type_name -> bridge.v1.Transaction - 31, // 10: bridge.v1.CommonTransactionsResponse.data:type_name -> bridge.v1.TransactionDetail + 34, // 10: bridge.v1.CommonTransactionsResponse.data:type_name -> bridge.v1.TransactionDetail 6, // 11: bridge.v1.CommonCoinsResponse.data:type_name -> bridge.v1.CoinInfo 5, // 12: bridge.v1.CommonCoinPricesResponse.data:type_name -> bridge.v1.SymbolPrice 7, // 13: bridge.v1.TransactionDetail.transactions:type_name -> bridge.v1.Transaction - 33, // 14: bridge.v1.CommonProofResponse.data:type_name -> bridge.v1.ProofDetail - 8, // 15: bridge.v1.BridgeService.CheckAPI:input_type -> bridge.v1.CheckAPIRequest - 9, // 16: bridge.v1.BridgeService.GetBridges:input_type -> bridge.v1.GetBridgesRequest - 10, // 17: bridge.v1.BridgeService.GetProof:input_type -> bridge.v1.GetProofRequest - 12, // 18: bridge.v1.BridgeService.GetBridge:input_type -> bridge.v1.GetBridgeRequest - 13, // 19: bridge.v1.BridgeService.GetClaims:input_type -> bridge.v1.GetClaimsRequest - 11, // 20: bridge.v1.BridgeService.GetTokenWrapped:input_type -> bridge.v1.GetTokenWrappedRequest - 14, // 21: bridge.v1.BridgeService.GetCoinPrice:input_type -> bridge.v1.GetCoinPriceRequest - 15, // 22: bridge.v1.BridgeService.GetMainCoins:input_type -> bridge.v1.GetMainCoinsRequest - 16, // 23: bridge.v1.BridgeService.GetPendingTransactions:input_type -> bridge.v1.GetPendingTransactionsRequest - 17, // 24: bridge.v1.BridgeService.GetAllTransactions:input_type -> bridge.v1.GetAllTransactionsRequest - 34, // 25: bridge.v1.BridgeService.GetSmtProof:input_type -> bridge.v1.GetSmtProofRequest - 18, // 26: bridge.v1.BridgeService.CheckAPI:output_type -> bridge.v1.CheckAPIResponse - 19, // 27: bridge.v1.BridgeService.GetBridges:output_type -> bridge.v1.GetBridgesResponse - 20, // 28: bridge.v1.BridgeService.GetProof:output_type -> bridge.v1.GetProofResponse - 22, // 29: bridge.v1.BridgeService.GetBridge:output_type -> bridge.v1.GetBridgeResponse - 23, // 30: bridge.v1.BridgeService.GetClaims:output_type -> bridge.v1.GetClaimsResponse - 21, // 31: bridge.v1.BridgeService.GetTokenWrapped:output_type -> bridge.v1.GetTokenWrappedResponse - 30, // 32: bridge.v1.BridgeService.GetCoinPrice:output_type -> bridge.v1.CommonCoinPricesResponse - 29, // 33: bridge.v1.BridgeService.GetMainCoins:output_type -> bridge.v1.CommonCoinsResponse - 28, // 34: bridge.v1.BridgeService.GetPendingTransactions:output_type -> bridge.v1.CommonTransactionsResponse - 28, // 35: bridge.v1.BridgeService.GetAllTransactions:output_type -> bridge.v1.CommonTransactionsResponse - 32, // 36: bridge.v1.BridgeService.GetSmtProof:output_type -> bridge.v1.CommonProofResponse - 26, // [26:37] is the sub-list for method output_type - 15, // [15:26] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 36, // 14: bridge.v1.CommonProofResponse.data:type_name -> bridge.v1.ProofDetail + 39, // 15: bridge.v1.CommonMonitoredTxsResponse.data:type_name -> bridge.v1.MonitoredTxsDetail + 8, // 16: bridge.v1.MonitoredTxsDetail.transactions:type_name -> bridge.v1.MonitoredTx + 9, // 17: bridge.v1.BridgeService.CheckAPI:input_type -> bridge.v1.CheckAPIRequest + 10, // 18: bridge.v1.BridgeService.GetBridges:input_type -> bridge.v1.GetBridgesRequest + 11, // 19: bridge.v1.BridgeService.GetProof:input_type -> bridge.v1.GetProofRequest + 13, // 20: bridge.v1.BridgeService.GetBridge:input_type -> bridge.v1.GetBridgeRequest + 14, // 21: bridge.v1.BridgeService.GetClaims:input_type -> bridge.v1.GetClaimsRequest + 12, // 22: bridge.v1.BridgeService.GetTokenWrapped:input_type -> bridge.v1.GetTokenWrappedRequest + 15, // 23: bridge.v1.BridgeService.GetCoinPrice:input_type -> bridge.v1.GetCoinPriceRequest + 16, // 24: bridge.v1.BridgeService.GetMainCoins:input_type -> bridge.v1.GetMainCoinsRequest + 17, // 25: bridge.v1.BridgeService.GetPendingTransactions:input_type -> bridge.v1.GetPendingTransactionsRequest + 18, // 26: bridge.v1.BridgeService.GetAllTransactions:input_type -> bridge.v1.GetAllTransactionsRequest + 37, // 27: bridge.v1.BridgeService.GetSmtProof:input_type -> bridge.v1.GetSmtProofRequest + 19, // 28: bridge.v1.BridgeService.GetNotReadyTransactions:input_type -> bridge.v1.GetNotReadyTransactionsRequest + 20, // 29: bridge.v1.BridgeService.GetMonitoredTxsByStatus:input_type -> bridge.v1.GetMonitoredTxsByStatusRequest + 21, // 30: bridge.v1.BridgeService.CheckAPI:output_type -> bridge.v1.CheckAPIResponse + 22, // 31: bridge.v1.BridgeService.GetBridges:output_type -> bridge.v1.GetBridgesResponse + 23, // 32: bridge.v1.BridgeService.GetProof:output_type -> bridge.v1.GetProofResponse + 25, // 33: bridge.v1.BridgeService.GetBridge:output_type -> bridge.v1.GetBridgeResponse + 26, // 34: bridge.v1.BridgeService.GetClaims:output_type -> bridge.v1.GetClaimsResponse + 24, // 35: bridge.v1.BridgeService.GetTokenWrapped:output_type -> bridge.v1.GetTokenWrappedResponse + 33, // 36: bridge.v1.BridgeService.GetCoinPrice:output_type -> bridge.v1.CommonCoinPricesResponse + 32, // 37: bridge.v1.BridgeService.GetMainCoins:output_type -> bridge.v1.CommonCoinsResponse + 31, // 38: bridge.v1.BridgeService.GetPendingTransactions:output_type -> bridge.v1.CommonTransactionsResponse + 31, // 39: bridge.v1.BridgeService.GetAllTransactions:output_type -> bridge.v1.CommonTransactionsResponse + 35, // 40: bridge.v1.BridgeService.GetSmtProof:output_type -> bridge.v1.CommonProofResponse + 31, // 41: bridge.v1.BridgeService.GetNotReadyTransactions:output_type -> bridge.v1.CommonTransactionsResponse + 38, // 42: bridge.v1.BridgeService.GetMonitoredTxsByStatus:output_type -> bridge.v1.CommonMonitoredTxsResponse + 30, // [30:43] is the sub-list for method output_type + 17, // [17:30] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name } func init() { file_query_proto_init() } @@ -2974,7 +3432,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckAPIRequest); i { + switch v := v.(*MonitoredTx); i { case 0: return &v.state case 1: @@ -2986,7 +3444,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBridgesRequest); i { + switch v := v.(*CheckAPIRequest); i { case 0: return &v.state case 1: @@ -2998,7 +3456,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProofRequest); i { + switch v := v.(*GetBridgesRequest); i { case 0: return &v.state case 1: @@ -3010,7 +3468,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenWrappedRequest); i { + switch v := v.(*GetProofRequest); i { case 0: return &v.state case 1: @@ -3022,7 +3480,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBridgeRequest); i { + switch v := v.(*GetTokenWrappedRequest); i { case 0: return &v.state case 1: @@ -3034,7 +3492,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClaimsRequest); i { + switch v := v.(*GetBridgeRequest); i { case 0: return &v.state case 1: @@ -3046,7 +3504,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCoinPriceRequest); i { + switch v := v.(*GetClaimsRequest); i { case 0: return &v.state case 1: @@ -3058,7 +3516,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMainCoinsRequest); i { + switch v := v.(*GetCoinPriceRequest); i { case 0: return &v.state case 1: @@ -3070,7 +3528,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPendingTransactionsRequest); i { + switch v := v.(*GetMainCoinsRequest); i { case 0: return &v.state case 1: @@ -3082,7 +3540,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTransactionsRequest); i { + switch v := v.(*GetPendingTransactionsRequest); i { case 0: return &v.state case 1: @@ -3094,7 +3552,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckAPIResponse); i { + switch v := v.(*GetAllTransactionsRequest); i { case 0: return &v.state case 1: @@ -3106,7 +3564,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBridgesResponse); i { + switch v := v.(*GetNotReadyTransactionsRequest); i { case 0: return &v.state case 1: @@ -3118,7 +3576,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProofResponse); i { + switch v := v.(*GetMonitoredTxsByStatusRequest); i { case 0: return &v.state case 1: @@ -3130,7 +3588,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenWrappedResponse); i { + switch v := v.(*CheckAPIResponse); i { case 0: return &v.state case 1: @@ -3142,7 +3600,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBridgeResponse); i { + switch v := v.(*GetBridgesResponse); i { case 0: return &v.state case 1: @@ -3154,7 +3612,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClaimsResponse); i { + switch v := v.(*GetProofResponse); i { case 0: return &v.state case 1: @@ -3166,7 +3624,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCoinPriceResponse); i { + switch v := v.(*GetTokenWrappedResponse); i { case 0: return &v.state case 1: @@ -3178,7 +3636,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMainCoinsResponse); i { + switch v := v.(*GetBridgeResponse); i { case 0: return &v.state case 1: @@ -3190,7 +3648,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPendingTransactionsResponse); i { + switch v := v.(*GetClaimsResponse); i { case 0: return &v.state case 1: @@ -3202,7 +3660,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTransactionsResponse); i { + switch v := v.(*GetCoinPriceResponse); i { case 0: return &v.state case 1: @@ -3214,7 +3672,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommonTransactionsResponse); i { + switch v := v.(*GetMainCoinsResponse); i { case 0: return &v.state case 1: @@ -3226,7 +3684,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommonCoinsResponse); i { + switch v := v.(*GetPendingTransactionsResponse); i { case 0: return &v.state case 1: @@ -3238,7 +3696,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommonCoinPricesResponse); i { + switch v := v.(*GetAllTransactionsResponse); i { case 0: return &v.state case 1: @@ -3250,7 +3708,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionDetail); i { + switch v := v.(*CommonTransactionsResponse); i { case 0: return &v.state case 1: @@ -3262,7 +3720,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommonProofResponse); i { + switch v := v.(*CommonCoinsResponse); i { case 0: return &v.state case 1: @@ -3274,7 +3732,7 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProofDetail); i { + switch v := v.(*CommonCoinPricesResponse); i { case 0: return &v.state case 1: @@ -3286,6 +3744,42 @@ func file_query_proto_init() { } } file_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommonProofResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProofDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSmtProofRequest); i { case 0: return &v.state @@ -3297,6 +3791,30 @@ func file_query_proto_init() { return nil } } + file_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommonMonitoredTxsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MonitoredTxsDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -3304,7 +3822,7 @@ func file_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_query_proto_rawDesc, NumEnums: 0, - NumMessages: 35, + NumMessages: 40, NumExtensions: 0, NumServices: 1, }, diff --git a/bridgectrl/pb/query.pb.gw.go b/bridgectrl/pb/query.pb.gw.go index bf2cc80f..203a626d 100644 --- a/bridgectrl/pb/query.pb.gw.go +++ b/bridgectrl/pb/query.pb.gw.go @@ -49,24 +49,6 @@ func local_request_BridgeService_CheckAPI_0(ctx context.Context, marshaler runti } -func request_BridgeService_CheckAPI_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CheckAPIRequest - var metadata runtime.ServerMetadata - - msg, err := client.CheckAPI(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_CheckAPI_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CheckAPIRequest - var metadata runtime.ServerMetadata - - msg, err := server.CheckAPI(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_BridgeService_GetBridges_0 = &utilities.DoubleArray{Encoding: map[string]int{"dest_addr": 0, "destAddr": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) @@ -138,225 +120,219 @@ func local_request_BridgeService_GetBridges_0(ctx context.Context, marshaler run } var ( - filter_BridgeService_GetBridges_1 = &utilities.DoubleArray{Encoding: map[string]int{"dest_addr": 0, "destAddr": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_BridgeService_GetProof_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_BridgeService_GetBridges_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBridgesRequest +func request_BridgeService_GetProof_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProofRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["dest_addr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) - } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridges_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetProof_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetBridges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetBridges_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBridgesRequest +func local_request_BridgeService_GetProof_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProofRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["dest_addr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) - } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridges_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetProof_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetBridges(ctx, &protoReq) + msg, err := server.GetProof(ctx, &protoReq) return msg, metadata, err } var ( - filter_BridgeService_GetProof_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_BridgeService_GetBridge_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_BridgeService_GetProof_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetProofRequest +func request_BridgeService_GetBridge_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetBridgeRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetProof_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridge_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetProof_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetProofRequest +func local_request_BridgeService_GetBridge_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetBridgeRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetProof_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridge_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetProof(ctx, &protoReq) + msg, err := server.GetBridge(ctx, &protoReq) return msg, metadata, err } var ( - filter_BridgeService_GetProof_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_BridgeService_GetClaims_0 = &utilities.DoubleArray{Encoding: map[string]int{"dest_addr": 0, "destAddr": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) -func request_BridgeService_GetProof_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetProofRequest +func request_BridgeService_GetClaims_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetClaimsRequest var metadata runtime.ServerMetadata + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["dest_addr"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") + } + + protoReq.DestAddr, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) + } + if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetProof_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetClaims_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetClaims(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetProof_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetProofRequest +func local_request_BridgeService_GetClaims_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetClaimsRequest var metadata runtime.ServerMetadata + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["dest_addr"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") + } + + protoReq.DestAddr, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) + } + if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetProof_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetClaims_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetProof(ctx, &protoReq) + msg, err := server.GetClaims(ctx, &protoReq) return msg, metadata, err } var ( - filter_BridgeService_GetBridge_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_BridgeService_GetTokenWrapped_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_BridgeService_GetBridge_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBridgeRequest +func request_BridgeService_GetTokenWrapped_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetTokenWrappedRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridge_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetTokenWrapped_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetTokenWrapped(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetBridge_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBridgeRequest +func local_request_BridgeService_GetTokenWrapped_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetTokenWrappedRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridge_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetTokenWrapped_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetBridge(ctx, &protoReq) + msg, err := server.GetTokenWrapped(ctx, &protoReq) return msg, metadata, err } -var ( - filter_BridgeService_GetBridge_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_BridgeService_GetBridge_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBridgeRequest +func request_BridgeService_GetCoinPrice_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetCoinPriceRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridge_1); err != nil { + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetCoinPrice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetBridge_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBridgeRequest +func local_request_BridgeService_GetCoinPrice_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetCoinPriceRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetBridge_1); err != nil { + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetBridge(ctx, &protoReq) + msg, err := server.GetCoinPrice(ctx, &protoReq) return msg, metadata, err } -var ( - filter_BridgeService_GetClaims_0 = &utilities.DoubleArray{Encoding: map[string]int{"dest_addr": 0, "destAddr": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_BridgeService_GetClaims_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetClaimsRequest +func request_BridgeService_GetMainCoins_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetMainCoinsRequest var metadata runtime.ServerMetadata var ( @@ -366,30 +342,23 @@ func request_BridgeService_GetClaims_0(ctx context.Context, marshaler runtime.Ma _ = err ) - val, ok = pathParams["dest_addr"] + val, ok = pathParams["networkId"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "networkId") } - protoReq.DestAddr, err = runtime.String(val) + protoReq.NetworkId, err = runtime.Uint32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetClaims_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "networkId", err) } - msg, err := client.GetClaims(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetMainCoins(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetClaims_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetClaimsRequest +func local_request_BridgeService_GetMainCoins_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetMainCoinsRequest var metadata runtime.ServerMetadata var ( @@ -399,34 +368,27 @@ func local_request_BridgeService_GetClaims_0(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["dest_addr"] + val, ok = pathParams["networkId"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "networkId") } - protoReq.DestAddr, err = runtime.String(val) + protoReq.NetworkId, err = runtime.Uint32(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetClaims_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "networkId", err) } - msg, err := server.GetClaims(ctx, &protoReq) + msg, err := server.GetMainCoins(ctx, &protoReq) return msg, metadata, err } var ( - filter_BridgeService_GetClaims_1 = &utilities.DoubleArray{Encoding: map[string]int{"dest_addr": 0, "destAddr": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_BridgeService_GetPendingTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{"destAddr": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) -func request_BridgeService_GetClaims_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetClaimsRequest +func request_BridgeService_GetPendingTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetPendingTransactionsRequest var metadata runtime.ServerMetadata var ( @@ -436,30 +398,30 @@ func request_BridgeService_GetClaims_1(ctx context.Context, marshaler runtime.Ma _ = err ) - val, ok = pathParams["dest_addr"] + val, ok = pathParams["destAddr"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") } protoReq.DestAddr, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetClaims_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetPendingTransactions_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetClaims(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetPendingTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetClaims_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetClaimsRequest +func local_request_BridgeService_GetPendingTransactions_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetPendingTransactionsRequest var metadata runtime.ServerMetadata var ( @@ -469,418 +431,34 @@ func local_request_BridgeService_GetClaims_1(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["dest_addr"] + val, ok = pathParams["destAddr"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dest_addr") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") } protoReq.DestAddr, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dest_addr", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetClaims_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetPendingTransactions_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetClaims(ctx, &protoReq) + msg, err := server.GetPendingTransactions(ctx, &protoReq) return msg, metadata, err } var ( - filter_BridgeService_GetTokenWrapped_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_BridgeService_GetAllTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{"destAddr": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) -func request_BridgeService_GetTokenWrapped_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetTokenWrappedRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetTokenWrapped_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTokenWrapped(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetTokenWrapped_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetTokenWrappedRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetTokenWrapped_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTokenWrapped(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_BridgeService_GetTokenWrapped_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_BridgeService_GetTokenWrapped_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetTokenWrappedRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetTokenWrapped_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTokenWrapped(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetTokenWrapped_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetTokenWrappedRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetTokenWrapped_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTokenWrapped(ctx, &protoReq) - return msg, metadata, err - -} - -func request_BridgeService_GetCoinPrice_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCoinPriceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetCoinPrice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetCoinPrice_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCoinPriceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetCoinPrice(ctx, &protoReq) - return msg, metadata, err - -} - -func request_BridgeService_GetCoinPrice_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCoinPriceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetCoinPrice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetCoinPrice_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCoinPriceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetCoinPrice(ctx, &protoReq) - return msg, metadata, err - -} - -func request_BridgeService_GetMainCoins_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetMainCoinsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["networkId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "networkId") - } - - protoReq.NetworkId, err = runtime.Uint32(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "networkId", err) - } - - msg, err := client.GetMainCoins(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetMainCoins_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetMainCoinsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["networkId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "networkId") - } - - protoReq.NetworkId, err = runtime.Uint32(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "networkId", err) - } - - msg, err := server.GetMainCoins(ctx, &protoReq) - return msg, metadata, err - -} - -func request_BridgeService_GetMainCoins_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetMainCoinsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["networkId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "networkId") - } - - protoReq.NetworkId, err = runtime.Uint32(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "networkId", err) - } - - msg, err := client.GetMainCoins(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetMainCoins_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetMainCoinsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["networkId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "networkId") - } - - protoReq.NetworkId, err = runtime.Uint32(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "networkId", err) - } - - msg, err := server.GetMainCoins(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_BridgeService_GetPendingTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{"destAddr": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) - -func request_BridgeService_GetPendingTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPendingTransactionsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["destAddr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetPendingTransactions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetPendingTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetPendingTransactions_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPendingTransactionsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["destAddr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetPendingTransactions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetPendingTransactions(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_BridgeService_GetPendingTransactions_1 = &utilities.DoubleArray{Encoding: map[string]int{"destAddr": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) - -func request_BridgeService_GetPendingTransactions_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPendingTransactionsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["destAddr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetPendingTransactions_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetPendingTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetPendingTransactions_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPendingTransactionsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["destAddr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetPendingTransactions_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetPendingTransactions(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_BridgeService_GetAllTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{"destAddr": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) - -func request_BridgeService_GetAllTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAllTransactionsRequest +func request_BridgeService_GetAllTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAllTransactionsRequest var metadata runtime.ServerMetadata var ( @@ -945,76 +523,6 @@ func local_request_BridgeService_GetAllTransactions_0(ctx context.Context, marsh } -var ( - filter_BridgeService_GetAllTransactions_1 = &utilities.DoubleArray{Encoding: map[string]int{"destAddr": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) - -func request_BridgeService_GetAllTransactions_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAllTransactionsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["destAddr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetAllTransactions_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetAllTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_BridgeService_GetAllTransactions_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAllTransactionsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["destAddr"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "destAddr") - } - - protoReq.DestAddr, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "destAddr", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetAllTransactions_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetAllTransactions(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_BridgeService_GetSmtProof_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -1052,273 +560,118 @@ func local_request_BridgeService_GetSmtProof_0(ctx context.Context, marshaler ru } var ( - filter_BridgeService_GetSmtProof_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_BridgeService_GetNotReadyTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_BridgeService_GetSmtProof_1(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetSmtProofRequest +func request_BridgeService_GetNotReadyTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetNotReadyTransactionsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetSmtProof_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetNotReadyTransactions_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetSmtProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetNotReadyTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_BridgeService_GetSmtProof_1(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetSmtProofRequest +func local_request_BridgeService_GetNotReadyTransactions_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetNotReadyTransactionsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetSmtProof_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetNotReadyTransactions_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetSmtProof(ctx, &protoReq) + msg, err := server.GetNotReadyTransactions(ctx, &protoReq) return msg, metadata, err } -// RegisterBridgeServiceHandlerServer registers the http handlers for service BridgeService to "mux". -// UnaryRPC :call BridgeServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBridgeServiceHandlerFromEndpoint instead. -func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BridgeServiceServer) error { - - mux.Handle("GET", pattern_BridgeService_CheckAPI_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/CheckAPI", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/api")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_CheckAPI_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_CheckAPI_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_BridgeService_CheckAPI_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/CheckAPI", runtime.WithHTTPPathPattern("/api")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_CheckAPI_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_CheckAPI_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_BridgeService_GetBridges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridges", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/bridges/{dest_addr}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetBridges_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetBridges_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_BridgeService_GetBridges_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridges", runtime.WithHTTPPathPattern("/bridges/{dest_addr}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetBridges_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetBridges_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) +var ( + filter_BridgeService_GetMonitoredTxsByStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{"status": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) - mux.Handle("GET", pattern_BridgeService_GetProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetProof", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/merkle-proof")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetProof_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } +func request_BridgeService_GetMonitoredTxsByStatus_0(ctx context.Context, marshaler runtime.Marshaler, client BridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetMonitoredTxsByStatusRequest + var metadata runtime.ServerMetadata - forward_BridgeService_GetProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + var ( + val string + ok bool + err error + _ = err + ) - }) + val, ok = pathParams["status"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "status") + } - mux.Handle("GET", pattern_BridgeService_GetProof_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetProof", runtime.WithHTTPPathPattern("/merkle-proof")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetProof_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } + protoReq.Status, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "status", err) + } - forward_BridgeService_GetProof_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetMonitoredTxsByStatus_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } - }) + msg, err := client.GetMonitoredTxsByStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err - mux.Handle("GET", pattern_BridgeService_GetBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridge", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/bridge")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetBridge_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } +} - forward_BridgeService_GetBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) +func local_request_BridgeService_GetMonitoredTxsByStatus_0(ctx context.Context, marshaler runtime.Marshaler, server BridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetMonitoredTxsByStatusRequest + var metadata runtime.ServerMetadata - }) + var ( + val string + ok bool + err error + _ = err + ) - mux.Handle("GET", pattern_BridgeService_GetBridge_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridge", runtime.WithHTTPPathPattern("/bridge")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetBridge_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } + val, ok = pathParams["status"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "status") + } - forward_BridgeService_GetBridge_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + protoReq.Status, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "status", err) + } - }) + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgeService_GetMonitoredTxsByStatus_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } - mux.Handle("GET", pattern_BridgeService_GetClaims_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetClaims", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/claims/{dest_addr}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_BridgeService_GetClaims_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } + msg, err := server.GetMonitoredTxsByStatus(ctx, &protoReq) + return msg, metadata, err - forward_BridgeService_GetClaims_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) +} - }) +// RegisterBridgeServiceHandlerServer registers the http handlers for service BridgeService to "mux". +// UnaryRPC :call BridgeServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBridgeServiceHandlerFromEndpoint instead. +func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BridgeServiceServer) error { - mux.Handle("GET", pattern_BridgeService_GetClaims_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_CheckAPI_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1326,12 +679,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetClaims", runtime.WithHTTPPathPattern("/claims/{dest_addr}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/CheckAPI", runtime.WithHTTPPathPattern("/api")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetClaims_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_CheckAPI_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1339,11 +692,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetClaims_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_CheckAPI_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetTokenWrapped_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetBridges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1351,12 +704,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetTokenWrapped", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/tokenwrapped")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridges", runtime.WithHTTPPathPattern("/bridges/{dest_addr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetTokenWrapped_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetBridges_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1364,11 +717,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetTokenWrapped_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetBridges_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetTokenWrapped_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1376,12 +729,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetTokenWrapped", runtime.WithHTTPPathPattern("/tokenwrapped")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetProof", runtime.WithHTTPPathPattern("/merkle-proof")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetTokenWrapped_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetProof_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1389,11 +742,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetTokenWrapped_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_BridgeService_GetCoinPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1401,12 +754,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetCoinPrice", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/coin-price")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridge", runtime.WithHTTPPathPattern("/bridge")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetCoinPrice_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetBridge_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1414,11 +767,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetCoinPrice_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_BridgeService_GetCoinPrice_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetClaims_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1426,12 +779,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetCoinPrice", runtime.WithHTTPPathPattern("/coin-price")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetClaims", runtime.WithHTTPPathPattern("/claims/{dest_addr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetCoinPrice_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetClaims_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1439,11 +792,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetCoinPrice_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetClaims_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetMainCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetTokenWrapped_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1451,12 +804,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMainCoins", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/main-coins/{networkId}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetTokenWrapped", runtime.WithHTTPPathPattern("/bridge/tokenwrapped")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetMainCoins_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetTokenWrapped_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1464,11 +817,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetMainCoins_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetTokenWrapped_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetMainCoins_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_BridgeService_GetCoinPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1476,12 +829,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMainCoins", runtime.WithHTTPPathPattern("/main-coins/{networkId}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetCoinPrice", runtime.WithHTTPPathPattern("/coin-price")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetMainCoins_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetCoinPrice_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1489,11 +842,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetMainCoins_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetCoinPrice_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetPendingTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetMainCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1501,12 +854,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetPendingTransactions", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/pending/{destAddr}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMainCoins", runtime.WithHTTPPathPattern("/main-coins/{networkId}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetPendingTransactions_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetMainCoins_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1514,11 +867,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetPendingTransactions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetMainCoins_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetPendingTransactions_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetPendingTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1531,7 +884,7 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetPendingTransactions_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetPendingTransactions_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1539,7 +892,7 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetPendingTransactions_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetPendingTransactions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1551,7 +904,7 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetAllTransactions", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/all/{destAddr}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetAllTransactions", runtime.WithHTTPPathPattern("/all/{destAddr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1568,7 +921,7 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetAllTransactions_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetSmtProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1576,12 +929,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetAllTransactions", runtime.WithHTTPPathPattern("/all/{destAddr}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetSmtProof", runtime.WithHTTPPathPattern("/smt-proof")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetAllTransactions_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetSmtProof_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1589,11 +942,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetAllTransactions_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetSmtProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetSmtProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetNotReadyTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1601,12 +954,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetSmtProof", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/smt-proof")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetNotReadyTransactions", runtime.WithHTTPPathPattern("/not-ready")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetSmtProof_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetNotReadyTransactions_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1614,11 +967,11 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetSmtProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetNotReadyTransactions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetSmtProof_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetMonitoredTxsByStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1626,12 +979,12 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetSmtProof", runtime.WithHTTPPathPattern("/smt-proof")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMonitoredTxsByStatus", runtime.WithHTTPPathPattern("/monitored-txs/status/{status}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_BridgeService_GetSmtProof_1(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_BridgeService_GetMonitoredTxsByStatus_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1639,7 +992,7 @@ func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_BridgeService_GetSmtProof_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetMonitoredTxsByStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1690,7 +1043,7 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/CheckAPI", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/api")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/CheckAPI", runtime.WithHTTPPathPattern("/api")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1706,35 +1059,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_CheckAPI_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/CheckAPI", runtime.WithHTTPPathPattern("/api")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_CheckAPI_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_CheckAPI_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetBridges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridges", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/bridges/{dest_addr}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridges", runtime.WithHTTPPathPattern("/bridges/{dest_addr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1750,35 +1081,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetBridges_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridges", runtime.WithHTTPPathPattern("/bridges/{dest_addr}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetBridges_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetBridges_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetProof", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/merkle-proof")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetProof", runtime.WithHTTPPathPattern("/merkle-proof")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1794,35 +1103,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetProof_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetProof", runtime.WithHTTPPathPattern("/merkle-proof")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetProof_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetProof_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridge", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/bridge")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridge", runtime.WithHTTPPathPattern("/bridge")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1838,35 +1125,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetBridge_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetBridge", runtime.WithHTTPPathPattern("/bridge")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetBridge_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetBridge_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetClaims_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetClaims", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/claims/{dest_addr}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetClaims", runtime.WithHTTPPathPattern("/claims/{dest_addr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1882,35 +1147,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetClaims_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetClaims", runtime.WithHTTPPathPattern("/claims/{dest_addr}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetClaims_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetClaims_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetTokenWrapped_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetTokenWrapped", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/tokenwrapped")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetTokenWrapped", runtime.WithHTTPPathPattern("/bridge/tokenwrapped")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1926,35 +1169,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetTokenWrapped_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetTokenWrapped", runtime.WithHTTPPathPattern("/tokenwrapped")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetTokenWrapped_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetTokenWrapped_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("POST", pattern_BridgeService_GetCoinPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetCoinPrice", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/coin-price")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetCoinPrice", runtime.WithHTTPPathPattern("/coin-price")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1970,35 +1191,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("POST", pattern_BridgeService_GetCoinPrice_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetCoinPrice", runtime.WithHTTPPathPattern("/coin-price")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetCoinPrice_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetCoinPrice_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetMainCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMainCoins", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/main-coins/{networkId}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMainCoins", runtime.WithHTTPPathPattern("/main-coins/{networkId}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2014,35 +1213,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetMainCoins_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMainCoins", runtime.WithHTTPPathPattern("/main-coins/{networkId}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetMainCoins_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetMainCoins_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetPendingTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetPendingTransactions", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/pending/{destAddr}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetPendingTransactions", runtime.WithHTTPPathPattern("/pending/{destAddr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2058,35 +1235,13 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetPendingTransactions_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetPendingTransactions", runtime.WithHTTPPathPattern("/pending/{destAddr}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BridgeService_GetPendingTransactions_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_BridgeService_GetPendingTransactions_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_BridgeService_GetAllTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetAllTransactions", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/all/{destAddr}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetAllTransactions", runtime.WithHTTPPathPattern("/all/{destAddr}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2102,69 +1257,69 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_BridgeService_GetAllTransactions_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetSmtProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetAllTransactions", runtime.WithHTTPPathPattern("/all/{destAddr}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetSmtProof", runtime.WithHTTPPathPattern("/smt-proof")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_BridgeService_GetAllTransactions_1(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_BridgeService_GetSmtProof_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_BridgeService_GetAllTransactions_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetSmtProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetSmtProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetNotReadyTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetSmtProof", runtime.WithHTTPPathPattern("/priapi/v1/ob/bridge/smt-proof")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetNotReadyTransactions", runtime.WithHTTPPathPattern("/not-ready")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_BridgeService_GetSmtProof_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_BridgeService_GetNotReadyTransactions_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_BridgeService_GetSmtProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetNotReadyTransactions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_BridgeService_GetSmtProof_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_BridgeService_GetMonitoredTxsByStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetSmtProof", runtime.WithHTTPPathPattern("/smt-proof")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bridge.v1.BridgeService/GetMonitoredTxsByStatus", runtime.WithHTTPPathPattern("/monitored-txs/status/{status}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_BridgeService_GetSmtProof_1(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_BridgeService_GetMonitoredTxsByStatus_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_BridgeService_GetSmtProof_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_BridgeService_GetMonitoredTxsByStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2172,93 +1327,57 @@ func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeM } var ( - pattern_BridgeService_CheckAPI_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"priapi", "v1", "ob", "bridge", "api"}, "")) - - pattern_BridgeService_CheckAPI_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"api"}, "")) - - pattern_BridgeService_GetBridges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"priapi", "v1", "ob", "bridge", "bridges", "dest_addr"}, "")) - - pattern_BridgeService_GetBridges_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"bridges", "dest_addr"}, "")) - - pattern_BridgeService_GetProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"priapi", "v1", "ob", "bridge", "merkle-proof"}, "")) + pattern_BridgeService_CheckAPI_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"api"}, "")) - pattern_BridgeService_GetProof_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"merkle-proof"}, "")) + pattern_BridgeService_GetBridges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"bridges", "dest_addr"}, "")) - pattern_BridgeService_GetBridge_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 3}, []string{"priapi", "v1", "ob", "bridge"}, "")) + pattern_BridgeService_GetProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"merkle-proof"}, "")) - pattern_BridgeService_GetBridge_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"bridge"}, "")) + pattern_BridgeService_GetBridge_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"bridge"}, "")) - pattern_BridgeService_GetClaims_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"priapi", "v1", "ob", "bridge", "claims", "dest_addr"}, "")) + pattern_BridgeService_GetClaims_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"claims", "dest_addr"}, "")) - pattern_BridgeService_GetClaims_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"claims", "dest_addr"}, "")) + pattern_BridgeService_GetTokenWrapped_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"bridge", "tokenwrapped"}, "")) - pattern_BridgeService_GetTokenWrapped_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"priapi", "v1", "ob", "bridge", "tokenwrapped"}, "")) + pattern_BridgeService_GetCoinPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"coin-price"}, "")) - pattern_BridgeService_GetTokenWrapped_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tokenwrapped"}, "")) + pattern_BridgeService_GetMainCoins_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"main-coins", "networkId"}, "")) - pattern_BridgeService_GetCoinPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"priapi", "v1", "ob", "bridge", "coin-price"}, "")) + pattern_BridgeService_GetPendingTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"pending", "destAddr"}, "")) - pattern_BridgeService_GetCoinPrice_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"coin-price"}, "")) + pattern_BridgeService_GetAllTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"all", "destAddr"}, "")) - pattern_BridgeService_GetMainCoins_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"priapi", "v1", "ob", "bridge", "main-coins", "networkId"}, "")) + pattern_BridgeService_GetSmtProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"smt-proof"}, "")) - pattern_BridgeService_GetMainCoins_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"main-coins", "networkId"}, "")) + pattern_BridgeService_GetNotReadyTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"not-ready"}, "")) - pattern_BridgeService_GetPendingTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"priapi", "v1", "ob", "bridge", "pending", "destAddr"}, "")) - - pattern_BridgeService_GetPendingTransactions_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"pending", "destAddr"}, "")) - - pattern_BridgeService_GetAllTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"priapi", "v1", "ob", "bridge", "all", "destAddr"}, "")) - - pattern_BridgeService_GetAllTransactions_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"all", "destAddr"}, "")) - - pattern_BridgeService_GetSmtProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"priapi", "v1", "ob", "bridge", "smt-proof"}, "")) - - pattern_BridgeService_GetSmtProof_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"smt-proof"}, "")) + pattern_BridgeService_GetMonitoredTxsByStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 1}, []string{"monitored-txs", "status"}, "")) ) var ( forward_BridgeService_CheckAPI_0 = runtime.ForwardResponseMessage - forward_BridgeService_CheckAPI_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetBridges_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetBridges_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetProof_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetProof_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetBridge_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetBridge_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetClaims_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetClaims_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetTokenWrapped_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetTokenWrapped_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetCoinPrice_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetCoinPrice_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetMainCoins_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetMainCoins_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetPendingTransactions_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetPendingTransactions_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetAllTransactions_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetAllTransactions_1 = runtime.ForwardResponseMessage - forward_BridgeService_GetSmtProof_0 = runtime.ForwardResponseMessage - forward_BridgeService_GetSmtProof_1 = runtime.ForwardResponseMessage + forward_BridgeService_GetNotReadyTransactions_0 = runtime.ForwardResponseMessage + + forward_BridgeService_GetMonitoredTxsByStatus_0 = runtime.ForwardResponseMessage ) diff --git a/bridgectrl/pb/query_grpc.pb.go b/bridgectrl/pb/query_grpc.pb.go index 1bf8f2cd..45d98918 100644 --- a/bridgectrl/pb/query_grpc.pb.go +++ b/bridgectrl/pb/query_grpc.pb.go @@ -1,10 +1,7 @@ -//* -// Bridge service. - // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.13.0 +// - protoc-gen-go-grpc v1.2.0 +// - protoc v4.24.3 // source: query.proto package pb @@ -21,20 +18,6 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - BridgeService_CheckAPI_FullMethodName = "/bridge.v1.BridgeService/CheckAPI" - BridgeService_GetBridges_FullMethodName = "/bridge.v1.BridgeService/GetBridges" - BridgeService_GetProof_FullMethodName = "/bridge.v1.BridgeService/GetProof" - BridgeService_GetBridge_FullMethodName = "/bridge.v1.BridgeService/GetBridge" - BridgeService_GetClaims_FullMethodName = "/bridge.v1.BridgeService/GetClaims" - BridgeService_GetTokenWrapped_FullMethodName = "/bridge.v1.BridgeService/GetTokenWrapped" - BridgeService_GetCoinPrice_FullMethodName = "/bridge.v1.BridgeService/GetCoinPrice" - BridgeService_GetMainCoins_FullMethodName = "/bridge.v1.BridgeService/GetMainCoins" - BridgeService_GetPendingTransactions_FullMethodName = "/bridge.v1.BridgeService/GetPendingTransactions" - BridgeService_GetAllTransactions_FullMethodName = "/bridge.v1.BridgeService/GetAllTransactions" - BridgeService_GetSmtProof_FullMethodName = "/bridge.v1.BridgeService/GetSmtProof" -) - // BridgeServiceClient is the client API for BridgeService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -61,6 +44,10 @@ type BridgeServiceClient interface { // / Get all the transactions of an account. Similar to GetBridges but the field names are changed GetAllTransactions(ctx context.Context, in *GetAllTransactionsRequest, opts ...grpc.CallOption) (*CommonTransactionsResponse, error) GetSmtProof(ctx context.Context, in *GetSmtProofRequest, opts ...grpc.CallOption) (*CommonProofResponse, error) + // / Get all transactions with ready_for_claim = false + GetNotReadyTransactions(ctx context.Context, in *GetNotReadyTransactionsRequest, opts ...grpc.CallOption) (*CommonTransactionsResponse, error) + // / Get list of monitored transactions, filtered by status + GetMonitoredTxsByStatus(ctx context.Context, in *GetMonitoredTxsByStatusRequest, opts ...grpc.CallOption) (*CommonMonitoredTxsResponse, error) } type bridgeServiceClient struct { @@ -73,7 +60,7 @@ func NewBridgeServiceClient(cc grpc.ClientConnInterface) BridgeServiceClient { func (c *bridgeServiceClient) CheckAPI(ctx context.Context, in *CheckAPIRequest, opts ...grpc.CallOption) (*CheckAPIResponse, error) { out := new(CheckAPIResponse) - err := c.cc.Invoke(ctx, BridgeService_CheckAPI_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/CheckAPI", in, out, opts...) if err != nil { return nil, err } @@ -82,7 +69,7 @@ func (c *bridgeServiceClient) CheckAPI(ctx context.Context, in *CheckAPIRequest, func (c *bridgeServiceClient) GetBridges(ctx context.Context, in *GetBridgesRequest, opts ...grpc.CallOption) (*GetBridgesResponse, error) { out := new(GetBridgesResponse) - err := c.cc.Invoke(ctx, BridgeService_GetBridges_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetBridges", in, out, opts...) if err != nil { return nil, err } @@ -91,7 +78,7 @@ func (c *bridgeServiceClient) GetBridges(ctx context.Context, in *GetBridgesRequ func (c *bridgeServiceClient) GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error) { out := new(GetProofResponse) - err := c.cc.Invoke(ctx, BridgeService_GetProof_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetProof", in, out, opts...) if err != nil { return nil, err } @@ -100,7 +87,7 @@ func (c *bridgeServiceClient) GetProof(ctx context.Context, in *GetProofRequest, func (c *bridgeServiceClient) GetBridge(ctx context.Context, in *GetBridgeRequest, opts ...grpc.CallOption) (*GetBridgeResponse, error) { out := new(GetBridgeResponse) - err := c.cc.Invoke(ctx, BridgeService_GetBridge_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetBridge", in, out, opts...) if err != nil { return nil, err } @@ -109,7 +96,7 @@ func (c *bridgeServiceClient) GetBridge(ctx context.Context, in *GetBridgeReques func (c *bridgeServiceClient) GetClaims(ctx context.Context, in *GetClaimsRequest, opts ...grpc.CallOption) (*GetClaimsResponse, error) { out := new(GetClaimsResponse) - err := c.cc.Invoke(ctx, BridgeService_GetClaims_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetClaims", in, out, opts...) if err != nil { return nil, err } @@ -118,7 +105,7 @@ func (c *bridgeServiceClient) GetClaims(ctx context.Context, in *GetClaimsReques func (c *bridgeServiceClient) GetTokenWrapped(ctx context.Context, in *GetTokenWrappedRequest, opts ...grpc.CallOption) (*GetTokenWrappedResponse, error) { out := new(GetTokenWrappedResponse) - err := c.cc.Invoke(ctx, BridgeService_GetTokenWrapped_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetTokenWrapped", in, out, opts...) if err != nil { return nil, err } @@ -127,7 +114,7 @@ func (c *bridgeServiceClient) GetTokenWrapped(ctx context.Context, in *GetTokenW func (c *bridgeServiceClient) GetCoinPrice(ctx context.Context, in *GetCoinPriceRequest, opts ...grpc.CallOption) (*CommonCoinPricesResponse, error) { out := new(CommonCoinPricesResponse) - err := c.cc.Invoke(ctx, BridgeService_GetCoinPrice_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetCoinPrice", in, out, opts...) if err != nil { return nil, err } @@ -136,7 +123,7 @@ func (c *bridgeServiceClient) GetCoinPrice(ctx context.Context, in *GetCoinPrice func (c *bridgeServiceClient) GetMainCoins(ctx context.Context, in *GetMainCoinsRequest, opts ...grpc.CallOption) (*CommonCoinsResponse, error) { out := new(CommonCoinsResponse) - err := c.cc.Invoke(ctx, BridgeService_GetMainCoins_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetMainCoins", in, out, opts...) if err != nil { return nil, err } @@ -145,7 +132,7 @@ func (c *bridgeServiceClient) GetMainCoins(ctx context.Context, in *GetMainCoins func (c *bridgeServiceClient) GetPendingTransactions(ctx context.Context, in *GetPendingTransactionsRequest, opts ...grpc.CallOption) (*CommonTransactionsResponse, error) { out := new(CommonTransactionsResponse) - err := c.cc.Invoke(ctx, BridgeService_GetPendingTransactions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetPendingTransactions", in, out, opts...) if err != nil { return nil, err } @@ -154,7 +141,7 @@ func (c *bridgeServiceClient) GetPendingTransactions(ctx context.Context, in *Ge func (c *bridgeServiceClient) GetAllTransactions(ctx context.Context, in *GetAllTransactionsRequest, opts ...grpc.CallOption) (*CommonTransactionsResponse, error) { out := new(CommonTransactionsResponse) - err := c.cc.Invoke(ctx, BridgeService_GetAllTransactions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetAllTransactions", in, out, opts...) if err != nil { return nil, err } @@ -163,7 +150,25 @@ func (c *bridgeServiceClient) GetAllTransactions(ctx context.Context, in *GetAll func (c *bridgeServiceClient) GetSmtProof(ctx context.Context, in *GetSmtProofRequest, opts ...grpc.CallOption) (*CommonProofResponse, error) { out := new(CommonProofResponse) - err := c.cc.Invoke(ctx, BridgeService_GetSmtProof_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetSmtProof", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bridgeServiceClient) GetNotReadyTransactions(ctx context.Context, in *GetNotReadyTransactionsRequest, opts ...grpc.CallOption) (*CommonTransactionsResponse, error) { + out := new(CommonTransactionsResponse) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetNotReadyTransactions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bridgeServiceClient) GetMonitoredTxsByStatus(ctx context.Context, in *GetMonitoredTxsByStatusRequest, opts ...grpc.CallOption) (*CommonMonitoredTxsResponse, error) { + out := new(CommonMonitoredTxsResponse) + err := c.cc.Invoke(ctx, "/bridge.v1.BridgeService/GetMonitoredTxsByStatus", in, out, opts...) if err != nil { return nil, err } @@ -171,7 +176,7 @@ func (c *bridgeServiceClient) GetSmtProof(ctx context.Context, in *GetSmtProofRe } // BridgeServiceServer is the server API for BridgeService service. -// All implementations should embed UnimplementedBridgeServiceServer +// All implementations must embed UnimplementedBridgeServiceServer // for forward compatibility type BridgeServiceServer interface { // Getters @@ -196,9 +201,14 @@ type BridgeServiceServer interface { // / Get all the transactions of an account. Similar to GetBridges but the field names are changed GetAllTransactions(context.Context, *GetAllTransactionsRequest) (*CommonTransactionsResponse, error) GetSmtProof(context.Context, *GetSmtProofRequest) (*CommonProofResponse, error) + // / Get all transactions with ready_for_claim = false + GetNotReadyTransactions(context.Context, *GetNotReadyTransactionsRequest) (*CommonTransactionsResponse, error) + // / Get list of monitored transactions, filtered by status + GetMonitoredTxsByStatus(context.Context, *GetMonitoredTxsByStatusRequest) (*CommonMonitoredTxsResponse, error) + mustEmbedUnimplementedBridgeServiceServer() } -// UnimplementedBridgeServiceServer should be embedded to have forward compatible implementations. +// UnimplementedBridgeServiceServer must be embedded to have forward compatible implementations. type UnimplementedBridgeServiceServer struct { } @@ -235,6 +245,13 @@ func (UnimplementedBridgeServiceServer) GetAllTransactions(context.Context, *Get func (UnimplementedBridgeServiceServer) GetSmtProof(context.Context, *GetSmtProofRequest) (*CommonProofResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSmtProof not implemented") } +func (UnimplementedBridgeServiceServer) GetNotReadyTransactions(context.Context, *GetNotReadyTransactionsRequest) (*CommonTransactionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNotReadyTransactions not implemented") +} +func (UnimplementedBridgeServiceServer) GetMonitoredTxsByStatus(context.Context, *GetMonitoredTxsByStatusRequest) (*CommonMonitoredTxsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMonitoredTxsByStatus not implemented") +} +func (UnimplementedBridgeServiceServer) mustEmbedUnimplementedBridgeServiceServer() {} // UnsafeBridgeServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BridgeServiceServer will @@ -257,7 +274,7 @@ func _BridgeService_CheckAPI_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_CheckAPI_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/CheckAPI", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).CheckAPI(ctx, req.(*CheckAPIRequest)) @@ -275,7 +292,7 @@ func _BridgeService_GetBridges_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetBridges_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetBridges", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetBridges(ctx, req.(*GetBridgesRequest)) @@ -293,7 +310,7 @@ func _BridgeService_GetProof_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetProof_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetProof", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetProof(ctx, req.(*GetProofRequest)) @@ -311,7 +328,7 @@ func _BridgeService_GetBridge_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetBridge_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetBridge", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetBridge(ctx, req.(*GetBridgeRequest)) @@ -329,7 +346,7 @@ func _BridgeService_GetClaims_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetClaims_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetClaims", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetClaims(ctx, req.(*GetClaimsRequest)) @@ -347,7 +364,7 @@ func _BridgeService_GetTokenWrapped_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetTokenWrapped_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetTokenWrapped", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetTokenWrapped(ctx, req.(*GetTokenWrappedRequest)) @@ -365,7 +382,7 @@ func _BridgeService_GetCoinPrice_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetCoinPrice_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetCoinPrice", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetCoinPrice(ctx, req.(*GetCoinPriceRequest)) @@ -383,7 +400,7 @@ func _BridgeService_GetMainCoins_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetMainCoins_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetMainCoins", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetMainCoins(ctx, req.(*GetMainCoinsRequest)) @@ -401,7 +418,7 @@ func _BridgeService_GetPendingTransactions_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetPendingTransactions_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetPendingTransactions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetPendingTransactions(ctx, req.(*GetPendingTransactionsRequest)) @@ -419,7 +436,7 @@ func _BridgeService_GetAllTransactions_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetAllTransactions_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetAllTransactions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetAllTransactions(ctx, req.(*GetAllTransactionsRequest)) @@ -437,7 +454,7 @@ func _BridgeService_GetSmtProof_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: BridgeService_GetSmtProof_FullMethodName, + FullMethod: "/bridge.v1.BridgeService/GetSmtProof", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgeServiceServer).GetSmtProof(ctx, req.(*GetSmtProofRequest)) @@ -445,6 +462,42 @@ func _BridgeService_GetSmtProof_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _BridgeService_GetNotReadyTransactions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNotReadyTransactionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BridgeServiceServer).GetNotReadyTransactions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/bridge.v1.BridgeService/GetNotReadyTransactions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BridgeServiceServer).GetNotReadyTransactions(ctx, req.(*GetNotReadyTransactionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BridgeService_GetMonitoredTxsByStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMonitoredTxsByStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BridgeServiceServer).GetMonitoredTxsByStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/bridge.v1.BridgeService/GetMonitoredTxsByStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BridgeServiceServer).GetMonitoredTxsByStatus(ctx, req.(*GetMonitoredTxsByStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + // BridgeService_ServiceDesc is the grpc.ServiceDesc for BridgeService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -496,6 +549,14 @@ var BridgeService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetSmtProof", Handler: _BridgeService_GetSmtProof_Handler, }, + { + MethodName: "GetNotReadyTransactions", + Handler: _BridgeService_GetNotReadyTransactions_Handler, + }, + { + MethodName: "GetMonitoredTxsByStatus", + Handler: _BridgeService_GetMonitoredTxsByStatus_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "query.proto", diff --git a/claimtxman/claimtxman.go b/claimtxman/claimtxman.go index c14456ea..aa0f30be 100644 --- a/claimtxman/claimtxman.go +++ b/claimtxman/claimtxman.go @@ -40,14 +40,17 @@ type ClaimTxManager struct { bridgeService bridgeServiceInterface cfg Config chExitRootEvent chan *etherman.GlobalExitRoot + chSynced chan uint storage storageInterface auth *bind.TransactOpts nonceCache *lru.Cache[string, uint64] + synced bool } // NewClaimTxManager creates a new claim transaction manager. -func NewClaimTxManager(cfg Config, chExitRootEvent chan *etherman.GlobalExitRoot, l2NodeURL string, l2NetworkID uint, l2BridgeAddr common.Address, bridgeService bridgeServiceInterface, storage interface{}) (*ClaimTxManager, error) { - client, err := utils.NewClient(context.Background(), l2NodeURL, l2BridgeAddr) +func NewClaimTxManager(cfg Config, chExitRootEvent chan *etherman.GlobalExitRoot, chSynced chan uint, l2NodeURL string, l2NetworkID uint, l2BridgeAddr common.Address, bridgeService bridgeServiceInterface, storage interface{}) (*ClaimTxManager, error) { + ctx := context.Background() + client, err := utils.NewClient(ctx, l2NodeURL, l2BridgeAddr) if err != nil { return nil, err } @@ -55,7 +58,7 @@ func NewClaimTxManager(cfg Config, chExitRootEvent chan *etherman.GlobalExitRoot if err != nil { return nil, err } - ctx, cancel := context.WithCancel(context.Background()) + ctx, cancel := context.WithCancel(ctx) auth, err := client.GetSignerFromKeystore(ctx, cfg.PrivateKey) return &ClaimTxManager{ ctx: ctx, @@ -65,6 +68,7 @@ func NewClaimTxManager(cfg Config, chExitRootEvent chan *etherman.GlobalExitRoot bridgeService: bridgeService, cfg: cfg, chExitRootEvent: chExitRootEvent, + chSynced: chSynced, storage: storage.(storageInterface), auth: auth, nonceCache: cache, @@ -75,19 +79,30 @@ func NewClaimTxManager(cfg Config, chExitRootEvent chan *etherman.GlobalExitRoot // send then to the blockchain and keep monitoring them until they // get mined func (tm *ClaimTxManager) Start() { + ticker := time.NewTicker(tm.cfg.FrequencyToMonitorTxs.Duration) for { select { case <-tm.ctx.Done(): return + case netID := <-tm.chSynced: + if netID == tm.l2NetworkID && !tm.synced { + log.Info("NetworkID synced: ", netID) + tm.synced = true + } case ger := <-tm.chExitRootEvent: - go func() { - err := tm.updateDepositsStatus(ger) - if err != nil { - log.Errorf("failed to update deposits status: %v", err) - } - }() - case <-time.After(tm.cfg.FrequencyToMonitorTxs.Duration): - err := tm.monitorTxs(context.Background()) + if tm.synced { + log.Debug("UpdateDepositsStatus for ger: ", ger.GlobalExitRoot) + go func() { + err := tm.updateDepositsStatus(ger) + if err != nil { + log.Errorf("failed to update deposits status: %v", err) + } + }() + } else { + log.Infof("Waiting for networkID %d to be synced before processing deposits", tm.l2NetworkID) + } + case <-ticker.C: + err := tm.monitorTxs(tm.ctx) if err != nil { log.Errorf("failed to monitor txs: %v", err) } @@ -385,6 +400,12 @@ func (tm *ClaimTxManager) monitorTxs(ctx context.Context) error { statusesFilter := []ctmtypes.MonitoredTxStatus{ctmtypes.MonitoredTxStatusCreated} mTxs, err := tm.storage.GetClaimTxsByStatus(ctx, statusesFilter, dbTx) if err != nil { + log.Errorf("failed to get created monitored txs: %v", err) + rollbackErr := tm.storage.Rollback(tm.ctx, dbTx) + if rollbackErr != nil { + log.Errorf("claimtxman error rolling back state. RollbackErr: %s, err: %v", rollbackErr.Error(), err) + return rollbackErr + } return fmt.Errorf("failed to get created monitored txs: %v", err) } @@ -422,6 +443,7 @@ func (tm *ClaimTxManager) monitorTxs(ctx context.Context) error { mTxLog.Errorf("failed to get tx %s: %v", txHash.String(), err) continue } + log.Infof("tx: %s not mined yet", txHash.String()) allHistoryTxMined = false continue @@ -566,17 +588,19 @@ func (tm *ClaimTxManager) monitorTxs(ctx context.Context) error { mTxLog.Errorf("failed to update monitored tx: %v", err) continue } - mTxLog.Debugf("signed tx added to the monitored tx history") + mTxLog.Infof("signed tx %s added to the monitored tx history", signedTx.Hash().String()) } } err = tm.storage.Commit(tm.ctx, dbTx) if err != nil { + log.Errorf("UpdateClaimTx committing dbTx, err: %v", err) rollbackErr := tm.storage.Rollback(tm.ctx, dbTx) if rollbackErr != nil { - log.Fatalf("claimtxman error rolling back state. RollbackErr: %s, err: %s", rollbackErr.Error(), err.Error()) + log.Errorf("claimtxman error rolling back state. RollbackErr: %s, err: %v", rollbackErr.Error(), err) + return rollbackErr } - log.Fatalf("UpdateClaimTx committing dbTx, err: %s", err.Error()) + return err } return nil } diff --git a/cmd/run.go b/cmd/run.go index ed0eafaa..5b97764f 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -116,16 +116,17 @@ func startServer(ctx *cli.Context) error { log.Debug("trusted sequencer URL ", c.Etherman.L2URLs[0]) zkEVMClient := client.NewClient(c.Etherman.L2URLs[0]) chExitRootEvent := make(chan *etherman.GlobalExitRoot) - go runSynchronizer(c.NetworkConfig.GenBlockNumber, bridgeController, l1Etherman, c.Synchronizer, storage, zkEVMClient, chExitRootEvent) + chSynced := make(chan uint) + go runSynchronizer(c.NetworkConfig.GenBlockNumber, bridgeController, l1Etherman, c.Synchronizer, storage, zkEVMClient, chExitRootEvent, chSynced) for _, client := range l2Ethermans { - go runSynchronizer(0, bridgeController, client, c.Synchronizer, storage, zkEVMClient, chExitRootEvent) + go runSynchronizer(0, bridgeController, client, c.Synchronizer, storage, zkEVMClient, chExitRootEvent, chSynced) } if c.ClaimTxManager.Enabled { for i := 0; i < len(c.Etherman.L2URLs); i++ { // we should match the orders of L2URLs between etherman and claimtxman // since we are using the networkIDs in the same order - claimTxManager, err := claimtxman.NewClaimTxManager(c.ClaimTxManager, chExitRootEvent, c.Etherman.L2URLs[i], networkIDs[i+1], c.NetworkConfig.L2PolygonBridgeAddresses[i], bridgeService, storage) + claimTxManager, err := claimtxman.NewClaimTxManager(c.ClaimTxManager, chExitRootEvent, chSynced, c.Etherman.L2URLs[i], networkIDs[i+1], c.NetworkConfig.L2PolygonBridgeAddresses[i], bridgeService, storage) if err != nil { log.Fatalf("error creating claim tx manager for L2 %s. Error: %v", c.Etherman.L2URLs[i], err) } @@ -138,6 +139,8 @@ func startServer(ctx *cli.Context) error { select { case <-chExitRootEvent: log.Debug("New GER received") + case netID := <-chSynced: + log.Debug("NetworkID synced: ", netID) case <-ctx.Context.Done(): log.Debug("Stopping goroutine that listen new GER updates") return @@ -205,8 +208,8 @@ func newEthermans(c *config.Config) (*etherman.Client, []*etherman.Client, error return l1Etherman, l2Ethermans, nil } -func runSynchronizer(genBlockNumber uint64, brdigeCtrl *bridgectrl.BridgeController, etherman *etherman.Client, cfg synchronizer.Config, storage db.Storage, zkEVMClient *client.Client, chExitRootEvent chan *etherman.GlobalExitRoot) { - sy, err := synchronizer.NewSynchronizer(storage, brdigeCtrl, etherman, zkEVMClient, genBlockNumber, chExitRootEvent, cfg) +func runSynchronizer(genBlockNumber uint64, brdigeCtrl *bridgectrl.BridgeController, etherman *etherman.Client, cfg synchronizer.Config, storage db.Storage, zkEVMClient *client.Client, chExitRootEvent chan *etherman.GlobalExitRoot, chSynced chan uint) { + sy, err := synchronizer.NewSynchronizer(storage, brdigeCtrl, etherman, zkEVMClient, genBlockNumber, chExitRootEvent, chSynced, cfg) if err != nil { log.Fatal(err) } diff --git a/config/config.debug.toml b/config/config.debug.toml index 3c79ef21..8a1449a0 100644 --- a/config/config.debug.toml +++ b/config/config.debug.toml @@ -51,7 +51,8 @@ BridgeVersion = "v1" MaxConns = 20 TableSuffix = "" [BridgeServer.Redis] - Addr = "localhost:6379" + IsClusterMode = false + Addrs = ["localhost:6379"] Username = "" Password = "" DB = 0 diff --git a/config/config.local.toml b/config/config.local.toml index 4b374f30..9ac0d051 100644 --- a/config/config.local.toml +++ b/config/config.local.toml @@ -52,7 +52,8 @@ SentinelConfigFilePath = "/app/sentinel_config.json" MaxConns = 20 TableSuffix = "" [BridgeServer.Redis] - Addr = "xgon-bridge-redis:6379" + IsClusterMode = false + Addrs = ["xgon-bridge-redis:6379"] Username = "" Password = "" DB = 0 diff --git a/db/pgstorage/migrations/0008.sql b/db/pgstorage/migrations/0008.sql index 2a6e447c..17e9e7e6 100644 --- a/db/pgstorage/migrations/0008.sql +++ b/db/pgstorage/migrations/0008.sql @@ -12,4 +12,4 @@ CREATE UNIQUE INDEX IF NOT EXISTS deposit_test_uidx ON sync.deposit_test (networ CREATE INDEX IF NOT EXISTS deposit_dest_addr_idx ON sync.deposit (dest_addr); CREATE INDEX IF NOT EXISTS deposit_test_dest_addr_idx ON sync.deposit_test (dest_addr); CREATE INDEX IF NOT EXISTS claim_dest_addr_idx ON sync.claim (dest_addr); -CREATE INDEX IF NOT EXISTS claim_test_dest_addr_idx ON sync.claim (dest_addr); \ No newline at end of file +CREATE INDEX IF NOT EXISTS claim_test_dest_addr_idx ON sync.claim_test (dest_addr); \ No newline at end of file diff --git a/db/pgstorage/pgstorage.go b/db/pgstorage/pgstorage.go index 2ac9d92d..0f4080bb 100644 --- a/db/pgstorage/pgstorage.go +++ b/db/pgstorage/pgstorage.go @@ -493,6 +493,37 @@ func (p *PostgresStorage) GetPendingTransactions(ctx context.Context, destAddr s return deposits, nil } +// GetNotReadyTransactions returns all the deposit transactions with ready_for_claim = false +func (p *PostgresStorage) GetNotReadyTransactions(ctx context.Context, limit uint, offset uint, dbTx pgx.Tx) ([]*etherman.Deposit, error) { + getDepositsSQL := fmt.Sprintf(`SELECT d.id, leaf_type, orig_net, orig_addr, amount, dest_net, dest_addr, deposit_cnt, block_id, b.block_num, d.network_id, tx_hash, metadata, ready_for_claim, b.received_at + FROM sync.deposit%[1]v as d INNER JOIN sync.block%[1]v as b ON d.network_id = b.network_id AND d.block_id = b.id + WHERE ready_for_claim = false + ORDER BY d.block_id DESC, d.deposit_cnt DESC LIMIT $1 OFFSET $2`, p.tableSuffix) + + rows, err := p.getExecQuerier(dbTx).Query(ctx, getDepositsSQL, limit, offset) + if err != nil { + return nil, err + } + + deposits := make([]*etherman.Deposit, 0, len(rows.RawValues())) + + for rows.Next() { + var ( + deposit etherman.Deposit + amount string + ) + err = rows.Scan(&deposit.Id, &deposit.LeafType, &deposit.OriginalNetwork, &deposit.OriginalAddress, &amount, &deposit.DestinationNetwork, &deposit.DestinationAddress, + &deposit.DepositCount, &deposit.BlockID, &deposit.BlockNumber, &deposit.NetworkID, &deposit.TxHash, &deposit.Metadata, &deposit.ReadyForClaim, &deposit.Time) + if err != nil { + return nil, err + } + deposit.Amount, _ = new(big.Int).SetString(amount, 10) //nolint:gomnd + deposits = append(deposits, &deposit) + } + + return deposits, nil +} + // GetDepositCount gets the deposit count for the destination address. func (p *PostgresStorage) GetDepositCount(ctx context.Context, destAddr string, dbTx pgx.Tx) (uint64, error) { getDepositCountSQL := fmt.Sprintf("SELECT COUNT(*) FROM sync.deposit%[1]v WHERE dest_addr = $1", p.tableSuffix) @@ -606,6 +637,37 @@ func (p *PostgresStorage) GetClaimTxsByStatus(ctx context.Context, statuses []ct return mTxs, nil } +func (p *PostgresStorage) GetClaimTxsByStatusWithLimit(ctx context.Context, statuses []ctmtypes.MonitoredTxStatus, limit uint, offset uint, dbTx pgx.Tx) ([]ctmtypes.MonitoredTx, error) { + getMonitoredTxsSQL := fmt.Sprintf("SELECT * FROM sync.monitored_txs%[1]v WHERE status = ANY($1) ORDER BY created_at DESC LIMIT $2 OFFSET $3", p.tableSuffix) + rows, err := p.getExecQuerier(dbTx).Query(ctx, getMonitoredTxsSQL, pq.Array(statuses), limit, offset) + if errors.Is(err, pgx.ErrNoRows) { + return []ctmtypes.MonitoredTx{}, nil + } else if err != nil { + return nil, err + } + + mTxs := make([]ctmtypes.MonitoredTx, 0, len(rows.RawValues())) + for rows.Next() { + var ( + value string + history [][]byte + ) + mTx := ctmtypes.MonitoredTx{} + err = rows.Scan(&mTx.ID, &mTx.BlockID, &mTx.From, &mTx.To, &mTx.Nonce, &value, &mTx.Data, &mTx.Gas, &mTx.Status, pq.Array(&history), &mTx.CreatedAt, &mTx.UpdatedAt) + if err != nil { + return mTxs, err + } + mTx.Value, _ = new(big.Int).SetString(value, 10) //nolint:gomnd + mTx.History = make(map[common.Hash]bool) + for _, h := range history { + mTx.History[common.BytesToHash(h)] = true + } + mTxs = append(mTxs, mTx) + } + + return mTxs, nil +} + // GetClaimTxById gets the monitored transactions by id (depositCount) func (p *PostgresStorage) GetClaimTxById(ctx context.Context, id uint, dbTx pgx.Tx) (*ctmtypes.MonitoredTx, error) { getClaimSql := fmt.Sprintf("SELECT * FROM sync.monitored_txs%[1]v WHERE id = $1", p.tableSuffix) diff --git a/proto/src/proto/bridge/v1/query.proto b/proto/src/proto/bridge/v1/query.proto index 0329700d..67edd135 100644 --- a/proto/src/proto/bridge/v1/query.proto +++ b/proto/src/proto/bridge/v1/query.proto @@ -14,71 +14,49 @@ service BridgeService { /// Get api version rpc CheckAPI(CheckAPIRequest) returns (CheckAPIResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/api", - additional_bindings: { - get: "/api" - } + get: "/api", }; } /// Get bridges for the destination address both in L1 and L2 rpc GetBridges(GetBridgesRequest) returns (GetBridgesResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/bridges/{dest_addr}", - additional_bindings: { - get: "/bridges/{dest_addr}" - } + get: "/bridges/{dest_addr}", }; } /// Get the merkle proof for the specific deposit rpc GetProof(GetProofRequest) returns (GetProofResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/merkle-proof", - additional_bindings: { - get: "/merkle-proof" - } + get: "/merkle-proof", }; } /// Get the specific deposit rpc GetBridge(GetBridgeRequest) returns (GetBridgeResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/bridge", - additional_bindings: { - get: "/bridge" - } + get: "/bridge", }; } /// Get claims for the specific smart contract address both in L1 and L2 rpc GetClaims(GetClaimsRequest) returns (GetClaimsResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/claims/{dest_addr}", - additional_bindings: { - get: "/claims/{dest_addr}" - } + get: "/claims/{dest_addr}", }; } /// Get token wrapped for the specific smart contract address both in L1 and L2 rpc GetTokenWrapped(GetTokenWrappedRequest) returns (GetTokenWrappedResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/tokenwrapped", - additional_bindings: { - get: "/tokenwrapped" - } + get: "/bridge/tokenwrapped", }; } /// Get the latest price of the specified coins rpc GetCoinPrice(GetCoinPriceRequest) returns (CommonCoinPricesResponse) { option (google.api.http) = { - post: "/priapi/v1/ob/bridge/coin-price", - additional_bindings: { - post: "/coin-price", - body: "*", - }, + post: "/coin-price", body: "*", }; } @@ -86,39 +64,41 @@ service BridgeService { /// Get the list of all the main coins of a specified network rpc GetMainCoins(GetMainCoinsRequest) returns (CommonCoinsResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/main-coins/{networkId}", - additional_bindings: { - get: "/main-coins/{networkId}" - } + get: "/main-coins/{networkId}", }; } /// Get the pending (not claimed) transactions of an account rpc GetPendingTransactions(GetPendingTransactionsRequest) returns (CommonTransactionsResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/pending/{destAddr}", - additional_bindings: { - get: "/pending/{destAddr}" - } + get: "/pending/{destAddr}", }; } /// Get all the transactions of an account. Similar to GetBridges but the field names are changed rpc GetAllTransactions(GetAllTransactionsRequest) returns (CommonTransactionsResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/all/{destAddr}", - additional_bindings: { - get: "/all/{destAddr}" - } + get: "/all/{destAddr}", }; } rpc GetSmtProof(GetSmtProofRequest) returns (CommonProofResponse) { option (google.api.http) = { - get: "/priapi/v1/ob/bridge/smt-proof", - additional_bindings: { - get: "/smt-proof" - } + get: "/smt-proof", + }; + } + + /// Get all transactions with ready_for_claim = false + rpc GetNotReadyTransactions(GetNotReadyTransactionsRequest) returns (CommonTransactionsResponse) { + option (google.api.http) = { + get: "/not-ready", + }; + } + + /// Get list of monitored transactions, filtered by status + rpc GetMonitoredTxsByStatus(GetMonitoredTxsByStatusRequest) returns (CommonMonitoredTxsResponse) { + option (google.api.http) = { + get: "/monitored-txs/status/{status}", }; } } @@ -214,6 +194,23 @@ message Transaction { string metadata = 15; } +// Monitored tx +message MonitoredTx { + uint64 id = 1; + string from = 2; // Sender address of the tx + string to = 3; // Receiver address of the tx + uint64 nonce = 4; // Nonce used to create the tx + string value = 5; // Transaction value + string data = 6; // Transaction data + uint64 gas = 7; + string gasPrice = 8; + string status = 9; // created/confirmed/failed + uint64 blockId = 10; + repeated string history = 11; // List of all transaction hashes created from this tx and sent to the network. The order of transactions is NOT guaranteed. + uint64 createdAt = 12; // Unix timestamp ms + uint64 updatedAt = 13; // Unix timestamp ms +} + // Get requests message CheckAPIRequest {} @@ -265,6 +262,17 @@ message GetAllTransactionsRequest { uint32 limit = 3; } +message GetNotReadyTransactionsRequest { + uint64 offset = 1; + uint32 limit = 2; +} + +message GetMonitoredTxsByStatusRequest { + string status = 1; // created/failed/confirmed + uint64 offset = 2; + uint32 limit = 3; +} + // Get responses message CheckAPIResponse { @@ -359,4 +367,18 @@ message ProofDetail { message GetSmtProofRequest { uint32 index = 1; uint64 fromChain = 2; +} + +message CommonMonitoredTxsResponse { + uint32 code = 1; + string msg = 2; + string error_code = 3; + string error_message = 4; + string detailMsg = 5; + MonitoredTxsDetail data = 6; +} + +message MonitoredTxsDetail { + bool hasNext = 1; + repeated MonitoredTx transactions = 2; } \ No newline at end of file diff --git a/redisstorage/config.go b/redisstorage/config.go index 4b25338d..f99e72fa 100644 --- a/redisstorage/config.go +++ b/redisstorage/config.go @@ -2,8 +2,11 @@ package redisstorage // Config stores the redis connection configs type Config struct { + // If this is true, will use ClusterClient + IsClusterMode bool `mapstructure:"IsClusterMode"` + // Host:Port address - Addr string `mapstructure:"Addr"` + Addrs []string `mapstructure:"Addrs"` // Username for ACL Username string `mapstructure:"Username"` diff --git a/redisstorage/interfaces.go b/redisstorage/interfaces.go index b9d67290..58eb2f51 100644 --- a/redisstorage/interfaces.go +++ b/redisstorage/interfaces.go @@ -4,9 +4,16 @@ import ( "context" "github.com/0xPolygonHermez/zkevm-bridge-service/bridgectrl/pb" + "github.com/redis/go-redis/v9" ) type RedisStorage interface { SetCoinPrice(ctx context.Context, prices []*pb.SymbolPrice) error GetCoinPrice(ctx context.Context, symbols []*pb.SymbolInfo) ([]*pb.SymbolPrice, error) } + +type RedisClient interface { + Ping(ctx context.Context) *redis.StatusCmd + HSet(ctx context.Context, key string, values ...interface{}) *redis.IntCmd + HMGet(ctx context.Context, key string, fields ...string) *redis.SliceCmd +} diff --git a/redisstorage/redisstorage.go b/redisstorage/redisstorage.go index 9c99d752..6fb41e2a 100644 --- a/redisstorage/redisstorage.go +++ b/redisstorage/redisstorage.go @@ -20,20 +20,29 @@ const ( // redisStorageImpl implements RedisStorage interface type redisStorageImpl struct { - client *redis.Client + client RedisClient mockPrice bool } func NewRedisStorage(cfg Config) (RedisStorage, error) { - if cfg.Addr == "" { + if len(cfg.Addrs) == 0 { return nil, errors.New("redis address is empty") } - client := redis.NewClient(&redis.Options{ - Addr: cfg.Addr, - Username: cfg.Username, - Password: cfg.Password, - DB: cfg.DB, - }) + var client RedisClient + if cfg.IsClusterMode { + client = redis.NewClusterClient(&redis.ClusterOptions{ + Addrs: cfg.Addrs, + Username: cfg.Username, + Password: cfg.Password, + }) + } else { + client = redis.NewClient(&redis.Options{ + Addr: cfg.Addrs[0], + Username: cfg.Username, + Password: cfg.Password, + DB: cfg.DB, + }) + } res, err := client.Ping(context.Background()).Result() if err != nil { return nil, errors.Wrap(err, "cannot connect to redis server") diff --git a/sentinel/config.json b/sentinel/config.json index 3f56e40a..2b756b95 100644 --- a/sentinel/config.json +++ b/sentinel/config.json @@ -64,6 +64,18 @@ "controlBehavior": 1, "threshold": 50, "maxQueueingTimeMs": 3000 + }, + { + "resource": "/bridge.v1.BridgeService/GetNotReadyTransactions", + "controlBehavior": 1, + "threshold": 1, + "maxQueueingTimeMs": 3000 + }, + { + "resource": "/bridge.v1.BridgeService/GetMonitoredTxsByStatus", + "controlBehavior": 1, + "threshold": 1, + "maxQueueingTimeMs": 3000 } ] } \ No newline at end of file diff --git a/server/interfaces.go b/server/interfaces.go index 9464fb12..fe437abe 100644 --- a/server/interfaces.go +++ b/server/interfaces.go @@ -22,5 +22,7 @@ type BridgeServiceStorage interface { GetDepositCount(ctx context.Context, destAddr string, dbTx pgx.Tx) (uint64, error) GetTokenWrapped(ctx context.Context, originalNetwork uint, originalTokenAddress common.Address, dbTx pgx.Tx) (*etherman.TokenWrapped, error) GetPendingTransactions(ctx context.Context, destAddr string, limit uint, offset uint, dbTx pgx.Tx) ([]*etherman.Deposit, error) + GetNotReadyTransactions(ctx context.Context, limit uint, offset uint, dbTx pgx.Tx) ([]*etherman.Deposit, error) GetClaimTxById(ctx context.Context, id uint, dbTx pgx.Tx) (*ctmtypes.MonitoredTx, error) + GetClaimTxsByStatusWithLimit(ctx context.Context, statuses []ctmtypes.MonitoredTxStatus, limit uint, offset uint, dbTx pgx.Tx) ([]ctmtypes.MonitoredTx, error) } diff --git a/server/server.go b/server/server.go index f5ba8e3f..c8db28f8 100644 --- a/server/server.go +++ b/server/server.go @@ -21,6 +21,10 @@ import ( "google.golang.org/protobuf/encoding/protojson" ) +const ( + bridgeEndpointPath = "/priapi/v1/ob/bridge" +) + func RegisterNacos(cfg nacos.Config) { log.Info(fmt.Sprintf("nacos config NacosUrls %s NamespaceId %s ApplicationName %s ExternalListenAddr %s", cfg.NacosUrls, cfg.NamespaceId, cfg.ApplicationName, cfg.ExternalListenAddr)) if cfg.NacosUrls != "" { @@ -151,6 +155,10 @@ func runRestServer(ctx context.Context, grpcPort, httpPort string) error { }) mux := runtime.NewServeMux(muxJSONOpt, muxHealthOpt) + httpMux := http.NewServeMux() + httpMux.Handle(bridgeEndpointPath+"/", http.StripPrefix(bridgeEndpointPath, mux)) + httpMux.Handle("/", mux) + if err := pb.RegisterBridgeServiceHandler(ctx, mux, conn); err != nil { return err } @@ -158,7 +166,7 @@ func runRestServer(ctx context.Context, grpcPort, httpPort string) error { srv := &http.Server{ ReadTimeout: 1 * time.Second, //nolint:gomnd Addr: ":" + httpPort, - Handler: allowCORS(mux), + Handler: allowCORS(httpMux), } c := make(chan os.Signal, 1) diff --git a/server/service.go b/server/service.go index 2065d9a6..5949ae62 100644 --- a/server/service.go +++ b/server/service.go @@ -557,3 +557,107 @@ func (s *bridgeService) GetAllTransactions(ctx context.Context, req *pb.GetAllTr Data: &pb.TransactionDetail{HasNext: hasNext, Transactions: pbTransactions}, }, nil } + +// GetNotReadyTransactions returns all deposit transactions with ready_for_claim = false +func (s *bridgeService) GetNotReadyTransactions(ctx context.Context, req *pb.GetNotReadyTransactionsRequest) (*pb.CommonTransactionsResponse, error) { + limit := req.Limit + if limit == 0 { + limit = s.defaultPageLimit + } + if limit > s.maxPageLimit { + limit = s.maxPageLimit + } + + deposits, err := s.storage.GetNotReadyTransactions(ctx, uint(limit+1), uint(req.Offset), nil) + if err != nil { + return &pb.CommonTransactionsResponse{ + Code: defaultErrorCode, + Data: nil, + }, nil + } + + hasNext := len(deposits) > int(limit) + if hasNext { + deposits = deposits[0:limit] + } + + var pbTransactions []*pb.Transaction + for _, deposit := range deposits { + defaultTxEstimateTime := defaultL1TxEstimateTime + if deposit.NetworkID == 1 { + defaultTxEstimateTime = defaultL2TxEstimateTime + } + transaction := &pb.Transaction{ + FromChain: uint32(deposit.NetworkID), + ToChain: uint32(deposit.DestinationNetwork), + BridgeToken: deposit.OriginalAddress.Hex(), + TokenAmount: deposit.Amount.String(), + EstimateTime: uint32(defaultTxEstimateTime), + Status: 0, + Time: uint64(deposit.Time.UnixMilli()), + TxHash: deposit.TxHash.String(), + FromChainId: uint32(s.chainIDs[deposit.NetworkID]), + ToChainId: uint32(s.chainIDs[deposit.DestinationNetwork]), + Id: deposit.Id, + Index: uint64(deposit.DepositCount), + Metadata: "0x" + hex.EncodeToString(deposit.Metadata), + } + pbTransactions = append(pbTransactions, transaction) + } + + return &pb.CommonTransactionsResponse{ + Code: defaultSuccessCode, + Data: &pb.TransactionDetail{HasNext: hasNext, Transactions: pbTransactions}, + }, nil +} + +// GetMonitoredTxsByStatus returns list of monitored transactions, filtered by status +func (s *bridgeService) GetMonitoredTxsByStatus(ctx context.Context, req *pb.GetMonitoredTxsByStatusRequest) (*pb.CommonMonitoredTxsResponse, error) { + limit := req.Limit + if limit == 0 { + limit = s.defaultPageLimit + } + if limit > s.maxPageLimit { + limit = s.maxPageLimit + } + + mTxs, err := s.storage.GetClaimTxsByStatusWithLimit(ctx, []ctmtypes.MonitoredTxStatus{ctmtypes.MonitoredTxStatus(req.Status)}, uint(limit+1), uint(req.Offset), nil) + if err != nil { + return &pb.CommonMonitoredTxsResponse{ + Code: defaultErrorCode, + Data: nil, + }, nil + } + + hasNext := len(mTxs) > int(limit) + if hasNext { + mTxs = mTxs[0:limit] + } + + var pbTransactions []*pb.MonitoredTx + for _, mTx := range mTxs { + transaction := &pb.MonitoredTx{ + Id: uint64(mTx.ID), + From: "0x" + mTx.From.String(), + To: "0x" + mTx.To.String(), + Nonce: mTx.Nonce, + Value: mTx.Value.String(), + Data: "0x" + hex.EncodeToString(mTx.Data), + Gas: mTx.Gas, + GasPrice: mTx.GasPrice.String(), + Status: string(mTx.Status), + BlockId: mTx.BlockID, + CreatedAt: uint64(mTx.CreatedAt.UnixMilli()), + UpdatedAt: uint64(mTx.UpdatedAt.UnixMilli()), + } + for h := range mTx.History { + transaction.History = append(transaction.History, h.String()) + } + pbTransactions = append(pbTransactions, transaction) + } + + return &pb.CommonMonitoredTxsResponse{ + Code: defaultSuccessCode, + Data: &pb.MonitoredTxsDetail{HasNext: hasNext, Transactions: pbTransactions}, + }, nil +} diff --git a/synchronizer/synchronizer.go b/synchronizer/synchronizer.go index 9d8c208e..370f5b82 100644 --- a/synchronizer/synchronizer.go +++ b/synchronizer/synchronizer.go @@ -31,6 +31,7 @@ type ClientSynchronizer struct { cfg Config networkID uint chExitRootEvent chan *etherman.GlobalExitRoot + chSynced chan uint zkEVMClient zkEVMClientInterface synced bool l1RollupExitRoot common.Hash @@ -44,6 +45,7 @@ func NewSynchronizer( zkEVMClient zkEVMClientInterface, genBlockNumber uint64, chExitRootEvent chan *etherman.GlobalExitRoot, + chSynced chan uint, cfg Config) (Synchronizer, error) { ctx, cancel := context.WithCancel(context.Background()) networkID, err := ethMan.GetNetworkID(ctx) @@ -70,6 +72,7 @@ func NewSynchronizer( cfg: cfg, networkID: networkID, chExitRootEvent: chExitRootEvent, + chSynced: chSynced, zkEVMClient: zkEVMClient, l1RollupExitRoot: ger.ExitRoots[1], }, nil @@ -82,6 +85,7 @@ func NewSynchronizer( cancelCtx: cancel, genBlockNumber: genBlockNumber, cfg: cfg, + chSynced: chSynced, networkID: networkID, }, nil } @@ -115,12 +119,13 @@ func (s *ClientSynchronizer) Sync() error { log.Debug("synchronizer ctx done. NetworkID: ", s.networkID) return nil case <-time.After(waitDuration): + log.Debugf("NetworkID: %d, syncing...", s.networkID) //Sync L1Blocks if lastBlockSynced, err = s.syncBlocks(lastBlockSynced); err != nil { - log.Warn("error syncing blocks: ", err) + log.Warnf("networkID: %d, error syncing blocks: ", s.networkID, err) lastBlockSynced, err = s.storage.GetLastBlock(s.ctx, s.networkID, nil) if err != nil { - log.Fatal("error getting lastBlockSynced to resume the synchronization... Error: ", err) + log.Fatalf("networkID: %d, error getting lastBlockSynced to resume the synchronization... Error: ", s.networkID, err) } if s.ctx.Err() != nil { continue @@ -134,9 +139,11 @@ func (s *ClientSynchronizer) Sync() error { continue } lastKnownBlock := header.Number.Uint64() - if lastBlockSynced.BlockNumber == lastKnownBlock { + if lastBlockSynced.BlockNumber == lastKnownBlock && !s.synced { + log.Infof("NetworkID %d Synced!", s.networkID) waitDuration = s.cfg.SyncInterval.Duration s.synced = true + s.chSynced <- s.networkID } if lastBlockSynced.BlockNumber > lastKnownBlock { if s.networkID == 0 { @@ -253,8 +260,12 @@ func (s *ClientSynchronizer) syncBlocks(lastBlockSynced *etherman.Block) (*ether fromBlock = toBlock + 1 if lastKnownBlock.Cmp(new(big.Int).SetUint64(toBlock)) < 1 { - waitDuration = s.cfg.SyncInterval.Duration - s.synced = true + if !s.synced { + log.Infof("NetworkID %d Synced!", s.networkID) + waitDuration = s.cfg.SyncInterval.Duration + s.synced = true + s.chSynced <- s.networkID + } break } if len(blocks) == 0 { // If there is no events in the checked blocks range and lastKnownBlock > fromBlock. diff --git a/synchronizer/synchronizer_test.go b/synchronizer/synchronizer_test.go index 4c82bc48..2cc00ffd 100644 --- a/synchronizer/synchronizer_test.go +++ b/synchronizer/synchronizer_test.go @@ -35,7 +35,8 @@ func TestSyncGer(t *testing.T) { m.Etherman.On("GetNetworkID", ctx).Return(uint(0), nil) m.Storage.On("GetLatestL1SyncedExitRoot", context.Background(), nil).Return(ðerman.GlobalExitRoot{}, gerror.ErrStorageNotFound) chEvent := make(chan *etherman.GlobalExitRoot) - sync, err := NewSynchronizer(m.Storage, m.BridgeCtrl, m.Etherman, m.ZkEVMClient, genBlockNumber, chEvent, cfg) + chSynced := make(chan uint) + sync, err := NewSynchronizer(m.Storage, m.BridgeCtrl, m.Etherman, m.ZkEVMClient, genBlockNumber, chEvent, chSynced, cfg) require.NoError(t, err) go func() { @@ -43,7 +44,8 @@ func TestSyncGer(t *testing.T) { select { case <-chEvent: t.Log("New GER received") - return + case netID := <-chSynced: + t.Log("Synced networkID: ", netID) case <-context.Background().Done(): return }