diff --git a/gen/api/api.pb.go b/gen/api/api.pb.go index 7f5f678..5575a05 100644 --- a/gen/api/api.pb.go +++ b/gen/api/api.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: api/api.proto @@ -226,11 +226,9 @@ type Return struct { func (x *Return) Reset() { *x = Return{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Return) String() string { @@ -241,7 +239,7 @@ func (*Return) ProtoMessage() {} func (x *Return) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,11 +286,9 @@ type BlockReference struct { func (x *BlockReference) Reset() { *x = BlockReference{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockReference) String() string { @@ -303,7 +299,7 @@ func (*BlockReference) ProtoMessage() {} func (x *BlockReference) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -342,11 +338,9 @@ type WitnessList struct { func (x *WitnessList) Reset() { *x = WitnessList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WitnessList) String() string { @@ -357,7 +351,7 @@ func (*WitnessList) ProtoMessage() {} func (x *WitnessList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -389,11 +383,9 @@ type ProposalList struct { func (x *ProposalList) Reset() { *x = ProposalList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProposalList) String() string { @@ -404,7 +396,7 @@ func (*ProposalList) ProtoMessage() {} func (x *ProposalList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -436,11 +428,9 @@ type ExchangeList struct { func (x *ExchangeList) Reset() { *x = ExchangeList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExchangeList) String() string { @@ -451,7 +441,7 @@ func (*ExchangeList) ProtoMessage() {} func (x *ExchangeList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -483,11 +473,9 @@ type AssetIssueList struct { func (x *AssetIssueList) Reset() { *x = AssetIssueList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetIssueList) String() string { @@ -498,7 +486,7 @@ func (*AssetIssueList) ProtoMessage() {} func (x *AssetIssueList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -530,11 +518,9 @@ type BlockList struct { func (x *BlockList) Reset() { *x = BlockList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockList) String() string { @@ -545,7 +531,7 @@ func (*BlockList) ProtoMessage() {} func (x *BlockList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -577,11 +563,9 @@ type TransactionList struct { func (x *TransactionList) Reset() { *x = TransactionList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionList) String() string { @@ -592,7 +576,7 @@ func (*TransactionList) ProtoMessage() {} func (x *TransactionList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -624,11 +608,9 @@ type TransactionIdList struct { func (x *TransactionIdList) Reset() { *x = TransactionIdList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionIdList) String() string { @@ -639,7 +621,7 @@ func (*TransactionIdList) ProtoMessage() {} func (x *TransactionIdList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -672,11 +654,9 @@ type DelegatedResourceMessage struct { func (x *DelegatedResourceMessage) Reset() { *x = DelegatedResourceMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelegatedResourceMessage) String() string { @@ -687,7 +667,7 @@ func (*DelegatedResourceMessage) ProtoMessage() {} func (x *DelegatedResourceMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -726,11 +706,9 @@ type DelegatedResourceList struct { func (x *DelegatedResourceList) Reset() { *x = DelegatedResourceList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelegatedResourceList) String() string { @@ -741,7 +719,7 @@ func (*DelegatedResourceList) ProtoMessage() {} func (x *DelegatedResourceList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -773,11 +751,9 @@ type GetAvailableUnfreezeCountRequestMessage struct { func (x *GetAvailableUnfreezeCountRequestMessage) Reset() { *x = GetAvailableUnfreezeCountRequestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAvailableUnfreezeCountRequestMessage) String() string { @@ -788,7 +764,7 @@ func (*GetAvailableUnfreezeCountRequestMessage) ProtoMessage() {} func (x *GetAvailableUnfreezeCountRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -820,11 +796,9 @@ type GetAvailableUnfreezeCountResponseMessage struct { func (x *GetAvailableUnfreezeCountResponseMessage) Reset() { *x = GetAvailableUnfreezeCountResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAvailableUnfreezeCountResponseMessage) String() string { @@ -835,7 +809,7 @@ func (*GetAvailableUnfreezeCountResponseMessage) ProtoMessage() {} func (x *GetAvailableUnfreezeCountResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -868,11 +842,9 @@ type CanDelegatedMaxSizeRequestMessage struct { func (x *CanDelegatedMaxSizeRequestMessage) Reset() { *x = CanDelegatedMaxSizeRequestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanDelegatedMaxSizeRequestMessage) String() string { @@ -883,7 +855,7 @@ func (*CanDelegatedMaxSizeRequestMessage) ProtoMessage() {} func (x *CanDelegatedMaxSizeRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -922,11 +894,9 @@ type CanDelegatedMaxSizeResponseMessage struct { func (x *CanDelegatedMaxSizeResponseMessage) Reset() { *x = CanDelegatedMaxSizeResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanDelegatedMaxSizeResponseMessage) String() string { @@ -937,7 +907,7 @@ func (*CanDelegatedMaxSizeResponseMessage) ProtoMessage() {} func (x *CanDelegatedMaxSizeResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -970,11 +940,9 @@ type CanWithdrawUnfreezeAmountRequestMessage struct { func (x *CanWithdrawUnfreezeAmountRequestMessage) Reset() { *x = CanWithdrawUnfreezeAmountRequestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanWithdrawUnfreezeAmountRequestMessage) String() string { @@ -985,7 +953,7 @@ func (*CanWithdrawUnfreezeAmountRequestMessage) ProtoMessage() {} func (x *CanWithdrawUnfreezeAmountRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1024,11 +992,9 @@ type CanWithdrawUnfreezeAmountResponseMessage struct { func (x *CanWithdrawUnfreezeAmountResponseMessage) Reset() { *x = CanWithdrawUnfreezeAmountResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanWithdrawUnfreezeAmountResponseMessage) String() string { @@ -1039,7 +1005,7 @@ func (*CanWithdrawUnfreezeAmountResponseMessage) ProtoMessage() {} func (x *CanWithdrawUnfreezeAmountResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1071,11 +1037,9 @@ type PricesResponseMessage struct { func (x *PricesResponseMessage) Reset() { *x = PricesResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PricesResponseMessage) String() string { @@ -1086,7 +1050,7 @@ func (*PricesResponseMessage) ProtoMessage() {} func (x *PricesResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1119,11 +1083,9 @@ type NodeList struct { func (x *NodeList) Reset() { *x = NodeList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeList) String() string { @@ -1134,7 +1096,7 @@ func (*NodeList) ProtoMessage() {} func (x *NodeList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1167,11 +1129,9 @@ type Node struct { func (x *Node) Reset() { *x = Node{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Node) String() string { @@ -1182,7 +1142,7 @@ func (*Node) ProtoMessage() {} func (x *Node) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1216,11 +1176,9 @@ type Address struct { func (x *Address) Reset() { *x = Address{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Address) String() string { @@ -1231,7 +1189,7 @@ func (*Address) ProtoMessage() {} func (x *Address) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1268,11 +1226,9 @@ type EmptyMessage struct { func (x *EmptyMessage) Reset() { *x = EmptyMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmptyMessage) String() string { @@ -1283,7 +1239,7 @@ func (*EmptyMessage) ProtoMessage() {} func (x *EmptyMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1308,11 +1264,9 @@ type NumberMessage struct { func (x *NumberMessage) Reset() { *x = NumberMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NumberMessage) String() string { @@ -1323,7 +1277,7 @@ func (*NumberMessage) ProtoMessage() {} func (x *NumberMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1355,11 +1309,9 @@ type BytesMessage struct { func (x *BytesMessage) Reset() { *x = BytesMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BytesMessage) String() string { @@ -1370,7 +1322,7 @@ func (*BytesMessage) ProtoMessage() {} func (x *BytesMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1403,11 +1355,9 @@ type TimeMessage struct { func (x *TimeMessage) Reset() { *x = TimeMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TimeMessage) String() string { @@ -1418,7 +1368,7 @@ func (*TimeMessage) ProtoMessage() {} func (x *TimeMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1458,11 +1408,9 @@ type BlockReq struct { func (x *BlockReq) Reset() { *x = BlockReq{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockReq) String() string { @@ -1473,7 +1421,7 @@ func (*BlockReq) ProtoMessage() {} func (x *BlockReq) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1513,11 +1461,9 @@ type BlockLimit struct { func (x *BlockLimit) Reset() { *x = BlockLimit{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockLimit) String() string { @@ -1528,7 +1474,7 @@ func (*BlockLimit) ProtoMessage() {} func (x *BlockLimit) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1568,11 +1514,9 @@ type TransactionLimit struct { func (x *TransactionLimit) Reset() { *x = TransactionLimit{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionLimit) String() string { @@ -1583,7 +1527,7 @@ func (*TransactionLimit) ProtoMessage() {} func (x *TransactionLimit) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1624,11 +1568,9 @@ type AccountPaginated struct { func (x *AccountPaginated) Reset() { *x = AccountPaginated{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountPaginated) String() string { @@ -1639,7 +1581,7 @@ func (*AccountPaginated) ProtoMessage() {} func (x *AccountPaginated) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1687,11 +1629,9 @@ type TimePaginatedMessage struct { func (x *TimePaginatedMessage) Reset() { *x = TimePaginatedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TimePaginatedMessage) String() string { @@ -1702,7 +1642,7 @@ func (*TimePaginatedMessage) ProtoMessage() {} func (x *TimePaginatedMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1756,11 +1696,9 @@ type AccountNetMessage struct { func (x *AccountNetMessage) Reset() { *x = AccountNetMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountNetMessage) String() string { @@ -1771,7 +1709,7 @@ func (*AccountNetMessage) ProtoMessage() {} func (x *AccountNetMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1868,11 +1806,9 @@ type AccountResourceMessage struct { func (x *AccountResourceMessage) Reset() { *x = AccountResourceMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountResourceMessage) String() string { @@ -1883,7 +1819,7 @@ func (*AccountResourceMessage) ProtoMessage() {} func (x *AccountResourceMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2028,11 +1964,9 @@ type PaginatedMessage struct { func (x *PaginatedMessage) Reset() { *x = PaginatedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PaginatedMessage) String() string { @@ -2043,7 +1977,7 @@ func (*PaginatedMessage) ProtoMessage() {} func (x *PaginatedMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2089,11 +2023,9 @@ type TransactionExtention struct { func (x *TransactionExtention) Reset() { *x = TransactionExtention{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionExtention) String() string { @@ -2104,7 +2036,7 @@ func (*TransactionExtention) ProtoMessage() {} func (x *TransactionExtention) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2186,11 +2118,9 @@ type EstimateEnergyMessage struct { func (x *EstimateEnergyMessage) Reset() { *x = EstimateEnergyMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EstimateEnergyMessage) String() string { @@ -2201,7 +2131,7 @@ func (*EstimateEnergyMessage) ProtoMessage() {} func (x *EstimateEnergyMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2242,11 +2172,9 @@ type BlockExtention struct { func (x *BlockExtention) Reset() { *x = BlockExtention{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockExtention) String() string { @@ -2257,7 +2185,7 @@ func (*BlockExtention) ProtoMessage() {} func (x *BlockExtention) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2303,11 +2231,9 @@ type BlockListExtention struct { func (x *BlockListExtention) Reset() { *x = BlockListExtention{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockListExtention) String() string { @@ -2318,7 +2244,7 @@ func (*BlockListExtention) ProtoMessage() {} func (x *BlockListExtention) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2350,11 +2276,9 @@ type TransactionListExtention struct { func (x *TransactionListExtention) Reset() { *x = TransactionListExtention{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionListExtention) String() string { @@ -2365,7 +2289,7 @@ func (*TransactionListExtention) ProtoMessage() {} func (x *TransactionListExtention) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2398,11 +2322,9 @@ type BlockIncrementalMerkleTree struct { func (x *BlockIncrementalMerkleTree) Reset() { *x = BlockIncrementalMerkleTree{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockIncrementalMerkleTree) String() string { @@ -2413,7 +2335,7 @@ func (*BlockIncrementalMerkleTree) ProtoMessage() {} func (x *BlockIncrementalMerkleTree) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2456,11 +2378,9 @@ type TransactionSignWeight struct { func (x *TransactionSignWeight) Reset() { *x = TransactionSignWeight{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionSignWeight) String() string { @@ -2471,7 +2391,7 @@ func (*TransactionSignWeight) ProtoMessage() {} func (x *TransactionSignWeight) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2533,11 +2453,9 @@ type TransactionApprovedList struct { func (x *TransactionApprovedList) Reset() { *x = TransactionApprovedList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionApprovedList) String() string { @@ -2548,7 +2466,7 @@ func (*TransactionApprovedList) ProtoMessage() {} func (x *TransactionApprovedList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2596,11 +2514,9 @@ type IvkDecryptParameters struct { func (x *IvkDecryptParameters) Reset() { *x = IvkDecryptParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IvkDecryptParameters) String() string { @@ -2611,7 +2527,7 @@ func (*IvkDecryptParameters) ProtoMessage() {} func (x *IvkDecryptParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2661,11 +2577,9 @@ type IvkDecryptAndMarkParameters struct { func (x *IvkDecryptAndMarkParameters) Reset() { *x = IvkDecryptAndMarkParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IvkDecryptAndMarkParameters) String() string { @@ -2676,7 +2590,7 @@ func (*IvkDecryptAndMarkParameters) ProtoMessage() {} func (x *IvkDecryptAndMarkParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2738,11 +2652,9 @@ type OvkDecryptParameters struct { func (x *OvkDecryptParameters) Reset() { *x = OvkDecryptParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OvkDecryptParameters) String() string { @@ -2753,7 +2665,7 @@ func (*OvkDecryptParameters) ProtoMessage() {} func (x *OvkDecryptParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2799,11 +2711,9 @@ type DecryptNotes struct { func (x *DecryptNotes) Reset() { *x = DecryptNotes{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptNotes) String() string { @@ -2814,7 +2724,7 @@ func (*DecryptNotes) ProtoMessage() {} func (x *DecryptNotes) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2846,11 +2756,9 @@ type DecryptNotesMarked struct { func (x *DecryptNotesMarked) Reset() { *x = DecryptNotesMarked{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptNotesMarked) String() string { @@ -2861,7 +2769,7 @@ func (*DecryptNotesMarked) ProtoMessage() {} func (x *DecryptNotesMarked) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2896,11 +2804,9 @@ type Note struct { func (x *Note) Reset() { *x = Note{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Note) String() string { @@ -2911,7 +2817,7 @@ func (*Note) ProtoMessage() {} func (x *Note) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2967,11 +2873,9 @@ type SpendNote struct { func (x *SpendNote) Reset() { *x = SpendNote{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpendNote) String() string { @@ -2982,7 +2886,7 @@ func (*SpendNote) ProtoMessage() {} func (x *SpendNote) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3035,11 +2939,9 @@ type ReceiveNote struct { func (x *ReceiveNote) Reset() { *x = ReceiveNote{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReceiveNote) String() string { @@ -3050,7 +2952,7 @@ func (*ReceiveNote) ProtoMessage() {} func (x *ReceiveNote) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3091,11 +2993,9 @@ type PrivateParameters struct { func (x *PrivateParameters) Reset() { *x = PrivateParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivateParameters) String() string { @@ -3106,7 +3006,7 @@ func (*PrivateParameters) ProtoMessage() {} func (x *PrivateParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3210,11 +3110,9 @@ type PrivateParametersWithoutAsk struct { func (x *PrivateParametersWithoutAsk) Reset() { *x = PrivateParametersWithoutAsk{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivateParametersWithoutAsk) String() string { @@ -3225,7 +3123,7 @@ func (*PrivateParametersWithoutAsk) ProtoMessage() {} func (x *PrivateParametersWithoutAsk) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3322,11 +3220,9 @@ type SpendAuthSigParameters struct { func (x *SpendAuthSigParameters) Reset() { *x = SpendAuthSigParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpendAuthSigParameters) String() string { @@ -3337,7 +3233,7 @@ func (*SpendAuthSigParameters) ProtoMessage() {} func (x *SpendAuthSigParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3386,11 +3282,9 @@ type NfParameters struct { func (x *NfParameters) Reset() { *x = NfParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NfParameters) String() string { @@ -3401,7 +3295,7 @@ func (*NfParameters) ProtoMessage() {} func (x *NfParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3456,11 +3350,9 @@ type ExpandedSpendingKeyMessage struct { func (x *ExpandedSpendingKeyMessage) Reset() { *x = ExpandedSpendingKeyMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExpandedSpendingKeyMessage) String() string { @@ -3471,7 +3363,7 @@ func (*ExpandedSpendingKeyMessage) ProtoMessage() {} func (x *ExpandedSpendingKeyMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3518,11 +3410,9 @@ type ViewingKeyMessage struct { func (x *ViewingKeyMessage) Reset() { *x = ViewingKeyMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ViewingKeyMessage) String() string { @@ -3533,7 +3423,7 @@ func (*ViewingKeyMessage) ProtoMessage() {} func (x *ViewingKeyMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3572,11 +3462,9 @@ type IncomingViewingKeyMessage struct { func (x *IncomingViewingKeyMessage) Reset() { *x = IncomingViewingKeyMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IncomingViewingKeyMessage) String() string { @@ -3587,7 +3475,7 @@ func (*IncomingViewingKeyMessage) ProtoMessage() {} func (x *IncomingViewingKeyMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3619,11 +3507,9 @@ type DiversifierMessage struct { func (x *DiversifierMessage) Reset() { *x = DiversifierMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DiversifierMessage) String() string { @@ -3634,7 +3520,7 @@ func (*DiversifierMessage) ProtoMessage() {} func (x *DiversifierMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3667,11 +3553,9 @@ type IncomingViewingKeyDiversifierMessage struct { func (x *IncomingViewingKeyDiversifierMessage) Reset() { *x = IncomingViewingKeyDiversifierMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IncomingViewingKeyDiversifierMessage) String() string { @@ -3682,7 +3566,7 @@ func (*IncomingViewingKeyDiversifierMessage) ProtoMessage() {} func (x *IncomingViewingKeyDiversifierMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3723,11 +3607,9 @@ type PaymentAddressMessage struct { func (x *PaymentAddressMessage) Reset() { *x = PaymentAddressMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PaymentAddressMessage) String() string { @@ -3738,7 +3620,7 @@ func (*PaymentAddressMessage) ProtoMessage() {} func (x *PaymentAddressMessage) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3793,11 +3675,9 @@ type ShieldedAddressInfo struct { func (x *ShieldedAddressInfo) Reset() { *x = ShieldedAddressInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShieldedAddressInfo) String() string { @@ -3808,7 +3688,7 @@ func (*ShieldedAddressInfo) ProtoMessage() {} func (x *ShieldedAddressInfo) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3907,11 +3787,9 @@ type NoteParameters struct { func (x *NoteParameters) Reset() { *x = NoteParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NoteParameters) String() string { @@ -3922,7 +3800,7 @@ func (*NoteParameters) ProtoMessage() {} func (x *NoteParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3983,11 +3861,9 @@ type SpendResult struct { func (x *SpendResult) Reset() { *x = SpendResult{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpendResult) String() string { @@ -3998,7 +3874,7 @@ func (*SpendResult) ProtoMessage() {} func (x *SpendResult) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4037,11 +3913,9 @@ type TransactionInfoList struct { func (x *TransactionInfoList) Reset() { *x = TransactionInfoList{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionInfoList) String() string { @@ -4052,7 +3926,7 @@ func (*TransactionInfoList) ProtoMessage() {} func (x *TransactionInfoList) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4088,11 +3962,9 @@ type SpendNoteTRC20 struct { func (x *SpendNoteTRC20) Reset() { *x = SpendNoteTRC20{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpendNoteTRC20) String() string { @@ -4103,7 +3975,7 @@ func (*SpendNoteTRC20) ProtoMessage() {} func (x *SpendNoteTRC20) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4171,11 +4043,9 @@ type PrivateShieldedTRC20Parameters struct { func (x *PrivateShieldedTRC20Parameters) Reset() { *x = PrivateShieldedTRC20Parameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivateShieldedTRC20Parameters) String() string { @@ -4186,7 +4056,7 @@ func (*PrivateShieldedTRC20Parameters) ProtoMessage() {} func (x *PrivateShieldedTRC20Parameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4282,11 +4152,9 @@ type PrivateShieldedTRC20ParametersWithoutAsk struct { func (x *PrivateShieldedTRC20ParametersWithoutAsk) Reset() { *x = PrivateShieldedTRC20ParametersWithoutAsk{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivateShieldedTRC20ParametersWithoutAsk) String() string { @@ -4297,7 +4165,7 @@ func (*PrivateShieldedTRC20ParametersWithoutAsk) ProtoMessage() {} func (x *PrivateShieldedTRC20ParametersWithoutAsk) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4390,11 +4258,9 @@ type ShieldedTRC20Parameters struct { func (x *ShieldedTRC20Parameters) Reset() { *x = ShieldedTRC20Parameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShieldedTRC20Parameters) String() string { @@ -4405,7 +4271,7 @@ func (*ShieldedTRC20Parameters) ProtoMessage() {} func (x *ShieldedTRC20Parameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4478,11 +4344,9 @@ type IvkDecryptTRC20Parameters struct { func (x *IvkDecryptTRC20Parameters) Reset() { *x = IvkDecryptTRC20Parameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IvkDecryptTRC20Parameters) String() string { @@ -4493,7 +4357,7 @@ func (*IvkDecryptTRC20Parameters) ProtoMessage() {} func (x *IvkDecryptTRC20Parameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4571,11 +4435,9 @@ type OvkDecryptTRC20Parameters struct { func (x *OvkDecryptTRC20Parameters) Reset() { *x = OvkDecryptTRC20Parameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OvkDecryptTRC20Parameters) String() string { @@ -4586,7 +4448,7 @@ func (*OvkDecryptTRC20Parameters) ProtoMessage() {} func (x *OvkDecryptTRC20Parameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4646,11 +4508,9 @@ type DecryptNotesTRC20 struct { func (x *DecryptNotesTRC20) Reset() { *x = DecryptNotesTRC20{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptNotesTRC20) String() string { @@ -4661,7 +4521,7 @@ func (*DecryptNotesTRC20) ProtoMessage() {} func (x *DecryptNotesTRC20) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4697,11 +4557,9 @@ type NfTRC20Parameters struct { func (x *NfTRC20Parameters) Reset() { *x = NfTRC20Parameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NfTRC20Parameters) String() string { @@ -4712,7 +4570,7 @@ func (*NfTRC20Parameters) ProtoMessage() {} func (x *NfTRC20Parameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4772,11 +4630,9 @@ type NullifierResult struct { func (x *NullifierResult) Reset() { *x = NullifierResult{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NullifierResult) String() string { @@ -4787,7 +4643,7 @@ func (*NullifierResult) ProtoMessage() {} func (x *NullifierResult) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4822,11 +4678,9 @@ type ShieldedTRC20TriggerContractParameters struct { func (x *ShieldedTRC20TriggerContractParameters) Reset() { *x = ShieldedTRC20TriggerContractParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShieldedTRC20TriggerContractParameters) String() string { @@ -4837,7 +4691,7 @@ func (*ShieldedTRC20TriggerContractParameters) ProtoMessage() {} func (x *ShieldedTRC20TriggerContractParameters) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4891,11 +4745,9 @@ type TransactionSignWeight_Result struct { func (x *TransactionSignWeight_Result) Reset() { *x = TransactionSignWeight_Result{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionSignWeight_Result) String() string { @@ -4906,7 +4758,7 @@ func (*TransactionSignWeight_Result) ProtoMessage() {} func (x *TransactionSignWeight_Result) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4946,11 +4798,9 @@ type TransactionApprovedList_Result struct { func (x *TransactionApprovedList_Result) Reset() { *x = TransactionApprovedList_Result{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionApprovedList_Result) String() string { @@ -4961,7 +4811,7 @@ func (*TransactionApprovedList_Result) ProtoMessage() {} func (x *TransactionApprovedList_Result) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5002,11 +4852,9 @@ type DecryptNotes_NoteTx struct { func (x *DecryptNotes_NoteTx) Reset() { *x = DecryptNotes_NoteTx{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptNotes_NoteTx) String() string { @@ -5017,7 +4865,7 @@ func (*DecryptNotes_NoteTx) ProtoMessage() {} func (x *DecryptNotes_NoteTx) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5066,11 +4914,9 @@ type DecryptNotesMarked_NoteTx struct { func (x *DecryptNotesMarked_NoteTx) Reset() { *x = DecryptNotesMarked_NoteTx{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptNotesMarked_NoteTx) String() string { @@ -5081,7 +4927,7 @@ func (*DecryptNotesMarked_NoteTx) ProtoMessage() {} func (x *DecryptNotesMarked_NoteTx) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5140,11 +4986,9 @@ type DecryptNotesTRC20_NoteTx struct { func (x *DecryptNotesTRC20_NoteTx) Reset() { *x = DecryptNotesTRC20_NoteTx{} - if protoimpl.UnsafeEnabled { - mi := &file_api_api_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_api_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptNotesTRC20_NoteTx) String() string { @@ -5155,7 +4999,7 @@ func (*DecryptNotesTRC20_NoteTx) ProtoMessage() {} func (x *DecryptNotesTRC20_NoteTx) ProtoReflect() protoreflect.Message { mi := &file_api_api_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7278,7 +7122,7 @@ func file_api_api_proto_rawDescGZIP() []byte { var file_api_api_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_api_api_proto_msgTypes = make([]protoimpl.MessageInfo, 82) -var file_api_api_proto_goTypes = []interface{}{ +var file_api_api_proto_goTypes = []any{ (ReturnResponseCode)(0), // 0: protocol.Return.response_code (TransactionSignWeight_ResultResponseCode)(0), // 1: protocol.TransactionSignWeight.Result.response_code (TransactionApprovedList_ResultResponseCode)(0), // 2: protocol.TransactionApprovedList.Result.response_code @@ -7917,944 +7761,6 @@ func file_api_api_proto_init() { if File_api_api_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Return); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WitnessList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProposalList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetIssueList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionIdList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelegatedResourceMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelegatedResourceList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAvailableUnfreezeCountRequestMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAvailableUnfreezeCountResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanDelegatedMaxSizeRequestMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanDelegatedMaxSizeResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanWithdrawUnfreezeAmountRequestMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanWithdrawUnfreezeAmountResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PricesResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Node); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Address); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NumberMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BytesMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockLimit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionLimit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountPaginated); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimePaginatedMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountNetMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountResourceMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaginatedMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionExtention); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateEnergyMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockExtention); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockListExtention); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionListExtention); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockIncrementalMerkleTree); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionSignWeight); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionApprovedList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IvkDecryptParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IvkDecryptAndMarkParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OvkDecryptParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptNotes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptNotesMarked); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Note); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpendNote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceiveNote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrivateParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrivateParametersWithoutAsk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpendAuthSigParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NfParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExpandedSpendingKeyMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ViewingKeyMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IncomingViewingKeyMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiversifierMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IncomingViewingKeyDiversifierMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaymentAddressMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShieldedAddressInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NoteParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpendResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionInfoList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpendNoteTRC20); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrivateShieldedTRC20Parameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrivateShieldedTRC20ParametersWithoutAsk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShieldedTRC20Parameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IvkDecryptTRC20Parameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OvkDecryptTRC20Parameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptNotesTRC20); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NfTRC20Parameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NullifierResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShieldedTRC20TriggerContractParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionSignWeight_Result); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionApprovedList_Result); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptNotes_NoteTx); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptNotesMarked_NoteTx); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_api_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptNotesTRC20_NoteTx); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/api/api_grpc.pb.go b/gen/api/api_grpc.pb.go index a9552d0..a6d9e00 100644 --- a/gen/api/api_grpc.pb.go +++ b/gen/api/api_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v5.28.0 // source: api/api.proto @@ -16,8 +16,157 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Wallet_GetAccount_FullMethodName = "/protocol.Wallet/GetAccount" + Wallet_GetAccountById_FullMethodName = "/protocol.Wallet/GetAccountById" + Wallet_GetAccountBalance_FullMethodName = "/protocol.Wallet/GetAccountBalance" + Wallet_GetBlockBalanceTrace_FullMethodName = "/protocol.Wallet/GetBlockBalanceTrace" + Wallet_CreateTransaction_FullMethodName = "/protocol.Wallet/CreateTransaction" + Wallet_CreateTransaction2_FullMethodName = "/protocol.Wallet/CreateTransaction2" + Wallet_BroadcastTransaction_FullMethodName = "/protocol.Wallet/BroadcastTransaction" + Wallet_UpdateAccount_FullMethodName = "/protocol.Wallet/UpdateAccount" + Wallet_SetAccountId_FullMethodName = "/protocol.Wallet/SetAccountId" + Wallet_UpdateAccount2_FullMethodName = "/protocol.Wallet/UpdateAccount2" + Wallet_VoteWitnessAccount_FullMethodName = "/protocol.Wallet/VoteWitnessAccount" + Wallet_UpdateSetting_FullMethodName = "/protocol.Wallet/UpdateSetting" + Wallet_UpdateEnergyLimit_FullMethodName = "/protocol.Wallet/UpdateEnergyLimit" + Wallet_VoteWitnessAccount2_FullMethodName = "/protocol.Wallet/VoteWitnessAccount2" + Wallet_CreateAssetIssue_FullMethodName = "/protocol.Wallet/CreateAssetIssue" + Wallet_CreateAssetIssue2_FullMethodName = "/protocol.Wallet/CreateAssetIssue2" + Wallet_UpdateWitness_FullMethodName = "/protocol.Wallet/UpdateWitness" + Wallet_UpdateWitness2_FullMethodName = "/protocol.Wallet/UpdateWitness2" + Wallet_CreateAccount_FullMethodName = "/protocol.Wallet/CreateAccount" + Wallet_CreateAccount2_FullMethodName = "/protocol.Wallet/CreateAccount2" + Wallet_CreateWitness_FullMethodName = "/protocol.Wallet/CreateWitness" + Wallet_CreateWitness2_FullMethodName = "/protocol.Wallet/CreateWitness2" + Wallet_TransferAsset_FullMethodName = "/protocol.Wallet/TransferAsset" + Wallet_TransferAsset2_FullMethodName = "/protocol.Wallet/TransferAsset2" + Wallet_ParticipateAssetIssue_FullMethodName = "/protocol.Wallet/ParticipateAssetIssue" + Wallet_ParticipateAssetIssue2_FullMethodName = "/protocol.Wallet/ParticipateAssetIssue2" + Wallet_FreezeBalance_FullMethodName = "/protocol.Wallet/FreezeBalance" + Wallet_FreezeBalance2_FullMethodName = "/protocol.Wallet/FreezeBalance2" + Wallet_FreezeBalanceV2_FullMethodName = "/protocol.Wallet/FreezeBalanceV2" + Wallet_UnfreezeBalance_FullMethodName = "/protocol.Wallet/UnfreezeBalance" + Wallet_UnfreezeBalance2_FullMethodName = "/protocol.Wallet/UnfreezeBalance2" + Wallet_UnfreezeBalanceV2_FullMethodName = "/protocol.Wallet/UnfreezeBalanceV2" + Wallet_UnfreezeAsset_FullMethodName = "/protocol.Wallet/UnfreezeAsset" + Wallet_UnfreezeAsset2_FullMethodName = "/protocol.Wallet/UnfreezeAsset2" + Wallet_WithdrawBalance_FullMethodName = "/protocol.Wallet/WithdrawBalance" + Wallet_WithdrawBalance2_FullMethodName = "/protocol.Wallet/WithdrawBalance2" + Wallet_WithdrawExpireUnfreeze_FullMethodName = "/protocol.Wallet/WithdrawExpireUnfreeze" + Wallet_DelegateResource_FullMethodName = "/protocol.Wallet/DelegateResource" + Wallet_UnDelegateResource_FullMethodName = "/protocol.Wallet/UnDelegateResource" + Wallet_CancelAllUnfreezeV2_FullMethodName = "/protocol.Wallet/CancelAllUnfreezeV2" + Wallet_UpdateAsset_FullMethodName = "/protocol.Wallet/UpdateAsset" + Wallet_UpdateAsset2_FullMethodName = "/protocol.Wallet/UpdateAsset2" + Wallet_ProposalCreate_FullMethodName = "/protocol.Wallet/ProposalCreate" + Wallet_ProposalApprove_FullMethodName = "/protocol.Wallet/ProposalApprove" + Wallet_ProposalDelete_FullMethodName = "/protocol.Wallet/ProposalDelete" + Wallet_BuyStorage_FullMethodName = "/protocol.Wallet/BuyStorage" + Wallet_BuyStorageBytes_FullMethodName = "/protocol.Wallet/BuyStorageBytes" + Wallet_SellStorage_FullMethodName = "/protocol.Wallet/SellStorage" + Wallet_ExchangeCreate_FullMethodName = "/protocol.Wallet/ExchangeCreate" + Wallet_ExchangeInject_FullMethodName = "/protocol.Wallet/ExchangeInject" + Wallet_ExchangeWithdraw_FullMethodName = "/protocol.Wallet/ExchangeWithdraw" + Wallet_ExchangeTransaction_FullMethodName = "/protocol.Wallet/ExchangeTransaction" + Wallet_MarketSellAsset_FullMethodName = "/protocol.Wallet/MarketSellAsset" + Wallet_MarketCancelOrder_FullMethodName = "/protocol.Wallet/MarketCancelOrder" + Wallet_GetMarketOrderById_FullMethodName = "/protocol.Wallet/GetMarketOrderById" + Wallet_GetMarketOrderByAccount_FullMethodName = "/protocol.Wallet/GetMarketOrderByAccount" + Wallet_GetMarketPriceByPair_FullMethodName = "/protocol.Wallet/GetMarketPriceByPair" + Wallet_GetMarketOrderListByPair_FullMethodName = "/protocol.Wallet/GetMarketOrderListByPair" + Wallet_GetMarketPairList_FullMethodName = "/protocol.Wallet/GetMarketPairList" + Wallet_ListNodes_FullMethodName = "/protocol.Wallet/ListNodes" + Wallet_GetAssetIssueByAccount_FullMethodName = "/protocol.Wallet/GetAssetIssueByAccount" + Wallet_GetAccountNet_FullMethodName = "/protocol.Wallet/GetAccountNet" + Wallet_GetAccountResource_FullMethodName = "/protocol.Wallet/GetAccountResource" + Wallet_GetAssetIssueByName_FullMethodName = "/protocol.Wallet/GetAssetIssueByName" + Wallet_GetAssetIssueListByName_FullMethodName = "/protocol.Wallet/GetAssetIssueListByName" + Wallet_GetAssetIssueById_FullMethodName = "/protocol.Wallet/GetAssetIssueById" + Wallet_GetNowBlock_FullMethodName = "/protocol.Wallet/GetNowBlock" + Wallet_GetNowBlock2_FullMethodName = "/protocol.Wallet/GetNowBlock2" + Wallet_GetBlockByNum_FullMethodName = "/protocol.Wallet/GetBlockByNum" + Wallet_GetBlockByNum2_FullMethodName = "/protocol.Wallet/GetBlockByNum2" + Wallet_GetTransactionCountByBlockNum_FullMethodName = "/protocol.Wallet/GetTransactionCountByBlockNum" + Wallet_GetBlockById_FullMethodName = "/protocol.Wallet/GetBlockById" + Wallet_GetBlockByLimitNext_FullMethodName = "/protocol.Wallet/GetBlockByLimitNext" + Wallet_GetBlockByLimitNext2_FullMethodName = "/protocol.Wallet/GetBlockByLimitNext2" + Wallet_GetBlockByLatestNum_FullMethodName = "/protocol.Wallet/GetBlockByLatestNum" + Wallet_GetBlockByLatestNum2_FullMethodName = "/protocol.Wallet/GetBlockByLatestNum2" + Wallet_GetTransactionById_FullMethodName = "/protocol.Wallet/GetTransactionById" + Wallet_DeployContract_FullMethodName = "/protocol.Wallet/DeployContract" + Wallet_GetContract_FullMethodName = "/protocol.Wallet/GetContract" + Wallet_GetContractInfo_FullMethodName = "/protocol.Wallet/GetContractInfo" + Wallet_TriggerContract_FullMethodName = "/protocol.Wallet/TriggerContract" + Wallet_TriggerConstantContract_FullMethodName = "/protocol.Wallet/TriggerConstantContract" + Wallet_EstimateEnergy_FullMethodName = "/protocol.Wallet/EstimateEnergy" + Wallet_ClearContractABI_FullMethodName = "/protocol.Wallet/ClearContractABI" + Wallet_ListWitnesses_FullMethodName = "/protocol.Wallet/ListWitnesses" + Wallet_GetDelegatedResource_FullMethodName = "/protocol.Wallet/GetDelegatedResource" + Wallet_GetDelegatedResourceV2_FullMethodName = "/protocol.Wallet/GetDelegatedResourceV2" + Wallet_GetDelegatedResourceAccountIndex_FullMethodName = "/protocol.Wallet/GetDelegatedResourceAccountIndex" + Wallet_GetDelegatedResourceAccountIndexV2_FullMethodName = "/protocol.Wallet/GetDelegatedResourceAccountIndexV2" + Wallet_GetCanDelegatedMaxSize_FullMethodName = "/protocol.Wallet/GetCanDelegatedMaxSize" + Wallet_GetAvailableUnfreezeCount_FullMethodName = "/protocol.Wallet/GetAvailableUnfreezeCount" + Wallet_GetCanWithdrawUnfreezeAmount_FullMethodName = "/protocol.Wallet/GetCanWithdrawUnfreezeAmount" + Wallet_ListProposals_FullMethodName = "/protocol.Wallet/ListProposals" + Wallet_GetPaginatedProposalList_FullMethodName = "/protocol.Wallet/GetPaginatedProposalList" + Wallet_GetProposalById_FullMethodName = "/protocol.Wallet/GetProposalById" + Wallet_ListExchanges_FullMethodName = "/protocol.Wallet/ListExchanges" + Wallet_GetPaginatedExchangeList_FullMethodName = "/protocol.Wallet/GetPaginatedExchangeList" + Wallet_GetExchangeById_FullMethodName = "/protocol.Wallet/GetExchangeById" + Wallet_GetChainParameters_FullMethodName = "/protocol.Wallet/GetChainParameters" + Wallet_GetAssetIssueList_FullMethodName = "/protocol.Wallet/GetAssetIssueList" + Wallet_GetPaginatedAssetIssueList_FullMethodName = "/protocol.Wallet/GetPaginatedAssetIssueList" + Wallet_TotalTransaction_FullMethodName = "/protocol.Wallet/TotalTransaction" + Wallet_GetNextMaintenanceTime_FullMethodName = "/protocol.Wallet/GetNextMaintenanceTime" + Wallet_GetTransactionInfoById_FullMethodName = "/protocol.Wallet/GetTransactionInfoById" + Wallet_AccountPermissionUpdate_FullMethodName = "/protocol.Wallet/AccountPermissionUpdate" + Wallet_GetTransactionSignWeight_FullMethodName = "/protocol.Wallet/GetTransactionSignWeight" + Wallet_GetTransactionApprovedList_FullMethodName = "/protocol.Wallet/GetTransactionApprovedList" + Wallet_GetNodeInfo_FullMethodName = "/protocol.Wallet/GetNodeInfo" + Wallet_GetRewardInfo_FullMethodName = "/protocol.Wallet/GetRewardInfo" + Wallet_GetBrokerageInfo_FullMethodName = "/protocol.Wallet/GetBrokerageInfo" + Wallet_UpdateBrokerage_FullMethodName = "/protocol.Wallet/UpdateBrokerage" + Wallet_CreateShieldedTransaction_FullMethodName = "/protocol.Wallet/CreateShieldedTransaction" + Wallet_GetMerkleTreeVoucherInfo_FullMethodName = "/protocol.Wallet/GetMerkleTreeVoucherInfo" + Wallet_ScanNoteByIvk_FullMethodName = "/protocol.Wallet/ScanNoteByIvk" + Wallet_ScanAndMarkNoteByIvk_FullMethodName = "/protocol.Wallet/ScanAndMarkNoteByIvk" + Wallet_ScanNoteByOvk_FullMethodName = "/protocol.Wallet/ScanNoteByOvk" + Wallet_GetSpendingKey_FullMethodName = "/protocol.Wallet/GetSpendingKey" + Wallet_GetExpandedSpendingKey_FullMethodName = "/protocol.Wallet/GetExpandedSpendingKey" + Wallet_GetAkFromAsk_FullMethodName = "/protocol.Wallet/GetAkFromAsk" + Wallet_GetNkFromNsk_FullMethodName = "/protocol.Wallet/GetNkFromNsk" + Wallet_GetIncomingViewingKey_FullMethodName = "/protocol.Wallet/GetIncomingViewingKey" + Wallet_GetDiversifier_FullMethodName = "/protocol.Wallet/GetDiversifier" + Wallet_GetNewShieldedAddress_FullMethodName = "/protocol.Wallet/GetNewShieldedAddress" + Wallet_GetZenPaymentAddress_FullMethodName = "/protocol.Wallet/GetZenPaymentAddress" + Wallet_GetRcm_FullMethodName = "/protocol.Wallet/GetRcm" + Wallet_IsSpend_FullMethodName = "/protocol.Wallet/IsSpend" + Wallet_CreateShieldedTransactionWithoutSpendAuthSig_FullMethodName = "/protocol.Wallet/CreateShieldedTransactionWithoutSpendAuthSig" + Wallet_GetShieldTransactionHash_FullMethodName = "/protocol.Wallet/GetShieldTransactionHash" + Wallet_CreateSpendAuthSig_FullMethodName = "/protocol.Wallet/CreateSpendAuthSig" + Wallet_CreateShieldNullifier_FullMethodName = "/protocol.Wallet/CreateShieldNullifier" + Wallet_CreateShieldedContractParameters_FullMethodName = "/protocol.Wallet/CreateShieldedContractParameters" + Wallet_CreateShieldedContractParametersWithoutAsk_FullMethodName = "/protocol.Wallet/CreateShieldedContractParametersWithoutAsk" + Wallet_ScanShieldedTRC20NotesByIvk_FullMethodName = "/protocol.Wallet/ScanShieldedTRC20NotesByIvk" + Wallet_ScanShieldedTRC20NotesByOvk_FullMethodName = "/protocol.Wallet/ScanShieldedTRC20NotesByOvk" + Wallet_IsShieldedTRC20ContractNoteSpent_FullMethodName = "/protocol.Wallet/IsShieldedTRC20ContractNoteSpent" + Wallet_GetTriggerInputForShieldedTRC20Contract_FullMethodName = "/protocol.Wallet/GetTriggerInputForShieldedTRC20Contract" + Wallet_CreateCommonTransaction_FullMethodName = "/protocol.Wallet/CreateCommonTransaction" + Wallet_GetTransactionInfoByBlockNum_FullMethodName = "/protocol.Wallet/GetTransactionInfoByBlockNum" + Wallet_GetBurnTrx_FullMethodName = "/protocol.Wallet/GetBurnTrx" + Wallet_GetTransactionFromPending_FullMethodName = "/protocol.Wallet/GetTransactionFromPending" + Wallet_GetTransactionListFromPending_FullMethodName = "/protocol.Wallet/GetTransactionListFromPending" + Wallet_GetPendingSize_FullMethodName = "/protocol.Wallet/GetPendingSize" + Wallet_GetBlock_FullMethodName = "/protocol.Wallet/GetBlock" + Wallet_GetBandwidthPrices_FullMethodName = "/protocol.Wallet/GetBandwidthPrices" + Wallet_GetEnergyPrices_FullMethodName = "/protocol.Wallet/GetEnergyPrices" + Wallet_GetMemoFee_FullMethodName = "/protocol.Wallet/GetMemoFee" +) // WalletClient is the client API for Wallet service. // @@ -222,8 +371,9 @@ func NewWalletClient(cc grpc.ClientConnInterface) WalletClient { } func (c *walletClient) GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Account) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -231,8 +381,9 @@ func (c *walletClient) GetAccount(ctx context.Context, in *core.Account, opts .. } func (c *walletClient) GetAccountById(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Account) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccountById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAccountById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -240,8 +391,9 @@ func (c *walletClient) GetAccountById(ctx context.Context, in *core.Account, opt } func (c *walletClient) GetAccountBalance(ctx context.Context, in *core.AccountBalanceRequest, opts ...grpc.CallOption) (*core.AccountBalanceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.AccountBalanceResponse) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccountBalance", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAccountBalance_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -249,8 +401,9 @@ func (c *walletClient) GetAccountBalance(ctx context.Context, in *core.AccountBa } func (c *walletClient) GetBlockBalanceTrace(ctx context.Context, in *core.BlockBalanceTrace_BlockIdentifier, opts ...grpc.CallOption) (*core.BlockBalanceTrace, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.BlockBalanceTrace) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockBalanceTrace", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockBalanceTrace_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -258,8 +411,9 @@ func (c *walletClient) GetBlockBalanceTrace(ctx context.Context, in *core.BlockB } func (c *walletClient) CreateTransaction(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -267,8 +421,9 @@ func (c *walletClient) CreateTransaction(ctx context.Context, in *core.TransferC } func (c *walletClient) CreateTransaction2(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateTransaction2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateTransaction2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -276,8 +431,9 @@ func (c *walletClient) CreateTransaction2(ctx context.Context, in *core.Transfer } func (c *walletClient) BroadcastTransaction(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*Return, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Return) - err := c.cc.Invoke(ctx, "/protocol.Wallet/BroadcastTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_BroadcastTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -285,8 +441,9 @@ func (c *walletClient) BroadcastTransaction(ctx context.Context, in *core.Transa } func (c *walletClient) UpdateAccount(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -294,8 +451,9 @@ func (c *walletClient) UpdateAccount(ctx context.Context, in *core.AccountUpdate } func (c *walletClient) SetAccountId(ctx context.Context, in *core.SetAccountIdContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/SetAccountId", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_SetAccountId_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -303,8 +461,9 @@ func (c *walletClient) SetAccountId(ctx context.Context, in *core.SetAccountIdCo } func (c *walletClient) UpdateAccount2(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateAccount2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateAccount2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -312,8 +471,9 @@ func (c *walletClient) UpdateAccount2(ctx context.Context, in *core.AccountUpdat } func (c *walletClient) VoteWitnessAccount(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/VoteWitnessAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_VoteWitnessAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -321,8 +481,9 @@ func (c *walletClient) VoteWitnessAccount(ctx context.Context, in *core.VoteWitn } func (c *walletClient) UpdateSetting(ctx context.Context, in *core.UpdateSettingContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateSetting", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateSetting_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -330,8 +491,9 @@ func (c *walletClient) UpdateSetting(ctx context.Context, in *core.UpdateSetting } func (c *walletClient) UpdateEnergyLimit(ctx context.Context, in *core.UpdateEnergyLimitContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateEnergyLimit", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateEnergyLimit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -339,8 +501,9 @@ func (c *walletClient) UpdateEnergyLimit(ctx context.Context, in *core.UpdateEne } func (c *walletClient) VoteWitnessAccount2(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/VoteWitnessAccount2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_VoteWitnessAccount2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -348,8 +511,9 @@ func (c *walletClient) VoteWitnessAccount2(ctx context.Context, in *core.VoteWit } func (c *walletClient) CreateAssetIssue(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAssetIssue", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateAssetIssue_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -357,8 +521,9 @@ func (c *walletClient) CreateAssetIssue(ctx context.Context, in *core.AssetIssue } func (c *walletClient) CreateAssetIssue2(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAssetIssue2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateAssetIssue2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -366,8 +531,9 @@ func (c *walletClient) CreateAssetIssue2(ctx context.Context, in *core.AssetIssu } func (c *walletClient) UpdateWitness(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateWitness", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateWitness_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -375,8 +541,9 @@ func (c *walletClient) UpdateWitness(ctx context.Context, in *core.WitnessUpdate } func (c *walletClient) UpdateWitness2(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateWitness2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateWitness2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -384,8 +551,9 @@ func (c *walletClient) UpdateWitness2(ctx context.Context, in *core.WitnessUpdat } func (c *walletClient) CreateAccount(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -393,8 +561,9 @@ func (c *walletClient) CreateAccount(ctx context.Context, in *core.AccountCreate } func (c *walletClient) CreateAccount2(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAccount2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateAccount2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -402,8 +571,9 @@ func (c *walletClient) CreateAccount2(ctx context.Context, in *core.AccountCreat } func (c *walletClient) CreateWitness(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateWitness", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateWitness_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -411,8 +581,9 @@ func (c *walletClient) CreateWitness(ctx context.Context, in *core.WitnessCreate } func (c *walletClient) CreateWitness2(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateWitness2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateWitness2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -420,8 +591,9 @@ func (c *walletClient) CreateWitness2(ctx context.Context, in *core.WitnessCreat } func (c *walletClient) TransferAsset(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/TransferAsset", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_TransferAsset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -429,8 +601,9 @@ func (c *walletClient) TransferAsset(ctx context.Context, in *core.TransferAsset } func (c *walletClient) TransferAsset2(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/TransferAsset2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_TransferAsset2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -438,8 +611,9 @@ func (c *walletClient) TransferAsset2(ctx context.Context, in *core.TransferAsse } func (c *walletClient) ParticipateAssetIssue(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ParticipateAssetIssue", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ParticipateAssetIssue_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -447,8 +621,9 @@ func (c *walletClient) ParticipateAssetIssue(ctx context.Context, in *core.Parti } func (c *walletClient) ParticipateAssetIssue2(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ParticipateAssetIssue2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ParticipateAssetIssue2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -456,8 +631,9 @@ func (c *walletClient) ParticipateAssetIssue2(ctx context.Context, in *core.Part } func (c *walletClient) FreezeBalance(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/FreezeBalance", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_FreezeBalance_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -465,8 +641,9 @@ func (c *walletClient) FreezeBalance(ctx context.Context, in *core.FreezeBalance } func (c *walletClient) FreezeBalance2(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/FreezeBalance2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_FreezeBalance2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -474,8 +651,9 @@ func (c *walletClient) FreezeBalance2(ctx context.Context, in *core.FreezeBalanc } func (c *walletClient) FreezeBalanceV2(ctx context.Context, in *core.FreezeBalanceV2Contract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/FreezeBalanceV2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_FreezeBalanceV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -483,8 +661,9 @@ func (c *walletClient) FreezeBalanceV2(ctx context.Context, in *core.FreezeBalan } func (c *walletClient) UnfreezeBalance(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeBalance", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UnfreezeBalance_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -492,8 +671,9 @@ func (c *walletClient) UnfreezeBalance(ctx context.Context, in *core.UnfreezeBal } func (c *walletClient) UnfreezeBalance2(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeBalance2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UnfreezeBalance2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -501,8 +681,9 @@ func (c *walletClient) UnfreezeBalance2(ctx context.Context, in *core.UnfreezeBa } func (c *walletClient) UnfreezeBalanceV2(ctx context.Context, in *core.UnfreezeBalanceV2Contract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeBalanceV2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UnfreezeBalanceV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -510,8 +691,9 @@ func (c *walletClient) UnfreezeBalanceV2(ctx context.Context, in *core.UnfreezeB } func (c *walletClient) UnfreezeAsset(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeAsset", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UnfreezeAsset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -519,8 +701,9 @@ func (c *walletClient) UnfreezeAsset(ctx context.Context, in *core.UnfreezeAsset } func (c *walletClient) UnfreezeAsset2(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeAsset2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UnfreezeAsset2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -528,8 +711,9 @@ func (c *walletClient) UnfreezeAsset2(ctx context.Context, in *core.UnfreezeAsse } func (c *walletClient) WithdrawBalance(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/WithdrawBalance", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_WithdrawBalance_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -537,8 +721,9 @@ func (c *walletClient) WithdrawBalance(ctx context.Context, in *core.WithdrawBal } func (c *walletClient) WithdrawBalance2(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/WithdrawBalance2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_WithdrawBalance2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -546,8 +731,9 @@ func (c *walletClient) WithdrawBalance2(ctx context.Context, in *core.WithdrawBa } func (c *walletClient) WithdrawExpireUnfreeze(ctx context.Context, in *core.WithdrawExpireUnfreezeContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/WithdrawExpireUnfreeze", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_WithdrawExpireUnfreeze_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -555,8 +741,9 @@ func (c *walletClient) WithdrawExpireUnfreeze(ctx context.Context, in *core.With } func (c *walletClient) DelegateResource(ctx context.Context, in *core.DelegateResourceContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/DelegateResource", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_DelegateResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -564,8 +751,9 @@ func (c *walletClient) DelegateResource(ctx context.Context, in *core.DelegateRe } func (c *walletClient) UnDelegateResource(ctx context.Context, in *core.UnDelegateResourceContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UnDelegateResource", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UnDelegateResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -573,8 +761,9 @@ func (c *walletClient) UnDelegateResource(ctx context.Context, in *core.UnDelega } func (c *walletClient) CancelAllUnfreezeV2(ctx context.Context, in *core.CancelAllUnfreezeV2Contract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CancelAllUnfreezeV2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CancelAllUnfreezeV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -582,8 +771,9 @@ func (c *walletClient) CancelAllUnfreezeV2(ctx context.Context, in *core.CancelA } func (c *walletClient) UpdateAsset(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateAsset", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateAsset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -591,8 +781,9 @@ func (c *walletClient) UpdateAsset(ctx context.Context, in *core.UpdateAssetCont } func (c *walletClient) UpdateAsset2(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateAsset2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateAsset2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -600,8 +791,9 @@ func (c *walletClient) UpdateAsset2(ctx context.Context, in *core.UpdateAssetCon } func (c *walletClient) ProposalCreate(ctx context.Context, in *core.ProposalCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ProposalCreate", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ProposalCreate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -609,8 +801,9 @@ func (c *walletClient) ProposalCreate(ctx context.Context, in *core.ProposalCrea } func (c *walletClient) ProposalApprove(ctx context.Context, in *core.ProposalApproveContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ProposalApprove", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ProposalApprove_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -618,8 +811,9 @@ func (c *walletClient) ProposalApprove(ctx context.Context, in *core.ProposalApp } func (c *walletClient) ProposalDelete(ctx context.Context, in *core.ProposalDeleteContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ProposalDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ProposalDelete_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -627,8 +821,9 @@ func (c *walletClient) ProposalDelete(ctx context.Context, in *core.ProposalDele } func (c *walletClient) BuyStorage(ctx context.Context, in *core.BuyStorageContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/BuyStorage", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_BuyStorage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -636,8 +831,9 @@ func (c *walletClient) BuyStorage(ctx context.Context, in *core.BuyStorageContra } func (c *walletClient) BuyStorageBytes(ctx context.Context, in *core.BuyStorageBytesContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/BuyStorageBytes", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_BuyStorageBytes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -645,8 +841,9 @@ func (c *walletClient) BuyStorageBytes(ctx context.Context, in *core.BuyStorageB } func (c *walletClient) SellStorage(ctx context.Context, in *core.SellStorageContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/SellStorage", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_SellStorage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -654,8 +851,9 @@ func (c *walletClient) SellStorage(ctx context.Context, in *core.SellStorageCont } func (c *walletClient) ExchangeCreate(ctx context.Context, in *core.ExchangeCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ExchangeCreate", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ExchangeCreate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -663,8 +861,9 @@ func (c *walletClient) ExchangeCreate(ctx context.Context, in *core.ExchangeCrea } func (c *walletClient) ExchangeInject(ctx context.Context, in *core.ExchangeInjectContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ExchangeInject", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ExchangeInject_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -672,8 +871,9 @@ func (c *walletClient) ExchangeInject(ctx context.Context, in *core.ExchangeInje } func (c *walletClient) ExchangeWithdraw(ctx context.Context, in *core.ExchangeWithdrawContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ExchangeWithdraw", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ExchangeWithdraw_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -681,8 +881,9 @@ func (c *walletClient) ExchangeWithdraw(ctx context.Context, in *core.ExchangeWi } func (c *walletClient) ExchangeTransaction(ctx context.Context, in *core.ExchangeTransactionContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ExchangeTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ExchangeTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -690,8 +891,9 @@ func (c *walletClient) ExchangeTransaction(ctx context.Context, in *core.Exchang } func (c *walletClient) MarketSellAsset(ctx context.Context, in *core.MarketSellAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/MarketSellAsset", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_MarketSellAsset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -699,8 +901,9 @@ func (c *walletClient) MarketSellAsset(ctx context.Context, in *core.MarketSellA } func (c *walletClient) MarketCancelOrder(ctx context.Context, in *core.MarketCancelOrderContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/MarketCancelOrder", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_MarketCancelOrder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -708,8 +911,9 @@ func (c *walletClient) MarketCancelOrder(ctx context.Context, in *core.MarketCan } func (c *walletClient) GetMarketOrderById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.MarketOrder, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrder) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMarketOrderById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMarketOrderById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -717,8 +921,9 @@ func (c *walletClient) GetMarketOrderById(ctx context.Context, in *BytesMessage, } func (c *walletClient) GetMarketOrderByAccount(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.MarketOrderList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrderList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMarketOrderByAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMarketOrderByAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -726,8 +931,9 @@ func (c *walletClient) GetMarketOrderByAccount(ctx context.Context, in *BytesMes } func (c *walletClient) GetMarketPriceByPair(ctx context.Context, in *core.MarketOrderPair, opts ...grpc.CallOption) (*core.MarketPriceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketPriceList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMarketPriceByPair", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMarketPriceByPair_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -735,8 +941,9 @@ func (c *walletClient) GetMarketPriceByPair(ctx context.Context, in *core.Market } func (c *walletClient) GetMarketOrderListByPair(ctx context.Context, in *core.MarketOrderPair, opts ...grpc.CallOption) (*core.MarketOrderList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrderList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMarketOrderListByPair", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMarketOrderListByPair_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -744,8 +951,9 @@ func (c *walletClient) GetMarketOrderListByPair(ctx context.Context, in *core.Ma } func (c *walletClient) GetMarketPairList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.MarketOrderPairList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrderPairList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMarketPairList", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMarketPairList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -753,8 +961,9 @@ func (c *walletClient) GetMarketPairList(ctx context.Context, in *EmptyMessage, } func (c *walletClient) ListNodes(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NodeList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NodeList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ListNodes", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ListNodes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -762,8 +971,9 @@ func (c *walletClient) ListNodes(ctx context.Context, in *EmptyMessage, opts ... } func (c *walletClient) GetAssetIssueByAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueByAccount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAssetIssueByAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -771,8 +981,9 @@ func (c *walletClient) GetAssetIssueByAccount(ctx context.Context, in *core.Acco } func (c *walletClient) GetAccountNet(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountNetMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountNetMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccountNet", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAccountNet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -780,8 +991,9 @@ func (c *walletClient) GetAccountNet(ctx context.Context, in *core.Account, opts } func (c *walletClient) GetAccountResource(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountResourceMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountResourceMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccountResource", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAccountResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -789,8 +1001,9 @@ func (c *walletClient) GetAccountResource(ctx context.Context, in *core.Account, } func (c *walletClient) GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.AssetIssueContract) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueByName", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAssetIssueByName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -798,8 +1011,9 @@ func (c *walletClient) GetAssetIssueByName(ctx context.Context, in *BytesMessage } func (c *walletClient) GetAssetIssueListByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueListByName", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAssetIssueListByName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -807,8 +1021,9 @@ func (c *walletClient) GetAssetIssueListByName(ctx context.Context, in *BytesMes } func (c *walletClient) GetAssetIssueById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.AssetIssueContract) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAssetIssueById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -816,8 +1031,9 @@ func (c *walletClient) GetAssetIssueById(ctx context.Context, in *BytesMessage, } func (c *walletClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNowBlock", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetNowBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -825,8 +1041,9 @@ func (c *walletClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts . } func (c *walletClient) GetNowBlock2(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNowBlock2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetNowBlock2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -834,8 +1051,9 @@ func (c *walletClient) GetNowBlock2(ctx context.Context, in *EmptyMessage, opts } func (c *walletClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByNum", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockByNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -843,8 +1061,9 @@ func (c *walletClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opt } func (c *walletClient) GetBlockByNum2(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByNum2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockByNum2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -852,8 +1071,9 @@ func (c *walletClient) GetBlockByNum2(ctx context.Context, in *NumberMessage, op } func (c *walletClient) GetTransactionCountByBlockNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionCountByBlockNum", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionCountByBlockNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -861,8 +1081,9 @@ func (c *walletClient) GetTransactionCountByBlockNum(ctx context.Context, in *Nu } func (c *walletClient) GetBlockById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -870,8 +1091,9 @@ func (c *walletClient) GetBlockById(ctx context.Context, in *BytesMessage, opts } func (c *walletClient) GetBlockByLimitNext(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByLimitNext", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockByLimitNext_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -879,8 +1101,9 @@ func (c *walletClient) GetBlockByLimitNext(ctx context.Context, in *BlockLimit, } func (c *walletClient) GetBlockByLimitNext2(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockListExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockListExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByLimitNext2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockByLimitNext2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -888,8 +1111,9 @@ func (c *walletClient) GetBlockByLimitNext2(ctx context.Context, in *BlockLimit, } func (c *walletClient) GetBlockByLatestNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByLatestNum", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockByLatestNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -897,8 +1121,9 @@ func (c *walletClient) GetBlockByLatestNum(ctx context.Context, in *NumberMessag } func (c *walletClient) GetBlockByLatestNum2(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockListExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockListExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByLatestNum2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlockByLatestNum2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -906,8 +1131,9 @@ func (c *walletClient) GetBlockByLatestNum2(ctx context.Context, in *NumberMessa } func (c *walletClient) GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -915,8 +1141,9 @@ func (c *walletClient) GetTransactionById(ctx context.Context, in *BytesMessage, } func (c *walletClient) DeployContract(ctx context.Context, in *core.CreateSmartContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/DeployContract", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_DeployContract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -924,8 +1151,9 @@ func (c *walletClient) DeployContract(ctx context.Context, in *core.CreateSmartC } func (c *walletClient) GetContract(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.SmartContract, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.SmartContract) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetContract", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetContract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -933,8 +1161,9 @@ func (c *walletClient) GetContract(ctx context.Context, in *BytesMessage, opts . } func (c *walletClient) GetContractInfo(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.SmartContractDataWrapper, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.SmartContractDataWrapper) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetContractInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetContractInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -942,8 +1171,9 @@ func (c *walletClient) GetContractInfo(ctx context.Context, in *BytesMessage, op } func (c *walletClient) TriggerContract(ctx context.Context, in *core.TriggerSmartContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/TriggerContract", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_TriggerContract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -951,8 +1181,9 @@ func (c *walletClient) TriggerContract(ctx context.Context, in *core.TriggerSmar } func (c *walletClient) TriggerConstantContract(ctx context.Context, in *core.TriggerSmartContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/TriggerConstantContract", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_TriggerConstantContract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -960,8 +1191,9 @@ func (c *walletClient) TriggerConstantContract(ctx context.Context, in *core.Tri } func (c *walletClient) EstimateEnergy(ctx context.Context, in *core.TriggerSmartContract, opts ...grpc.CallOption) (*EstimateEnergyMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EstimateEnergyMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/EstimateEnergy", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_EstimateEnergy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -969,8 +1201,9 @@ func (c *walletClient) EstimateEnergy(ctx context.Context, in *core.TriggerSmart } func (c *walletClient) ClearContractABI(ctx context.Context, in *core.ClearABIContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ClearContractABI", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ClearContractABI_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -978,8 +1211,9 @@ func (c *walletClient) ClearContractABI(ctx context.Context, in *core.ClearABICo } func (c *walletClient) ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WitnessList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ListWitnesses", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ListWitnesses_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -987,8 +1221,9 @@ func (c *walletClient) ListWitnesses(ctx context.Context, in *EmptyMessage, opts } func (c *walletClient) GetDelegatedResource(ctx context.Context, in *DelegatedResourceMessage, opts ...grpc.CallOption) (*DelegatedResourceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DelegatedResourceList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetDelegatedResource", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetDelegatedResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -996,8 +1231,9 @@ func (c *walletClient) GetDelegatedResource(ctx context.Context, in *DelegatedRe } func (c *walletClient) GetDelegatedResourceV2(ctx context.Context, in *DelegatedResourceMessage, opts ...grpc.CallOption) (*DelegatedResourceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DelegatedResourceList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetDelegatedResourceV2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetDelegatedResourceV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1005,8 +1241,9 @@ func (c *walletClient) GetDelegatedResourceV2(ctx context.Context, in *Delegated } func (c *walletClient) GetDelegatedResourceAccountIndex(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.DelegatedResourceAccountIndex, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.DelegatedResourceAccountIndex) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetDelegatedResourceAccountIndex", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetDelegatedResourceAccountIndex_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1014,8 +1251,9 @@ func (c *walletClient) GetDelegatedResourceAccountIndex(ctx context.Context, in } func (c *walletClient) GetDelegatedResourceAccountIndexV2(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.DelegatedResourceAccountIndex, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.DelegatedResourceAccountIndex) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetDelegatedResourceAccountIndexV2", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetDelegatedResourceAccountIndexV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1023,8 +1261,9 @@ func (c *walletClient) GetDelegatedResourceAccountIndexV2(ctx context.Context, i } func (c *walletClient) GetCanDelegatedMaxSize(ctx context.Context, in *CanDelegatedMaxSizeRequestMessage, opts ...grpc.CallOption) (*CanDelegatedMaxSizeResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CanDelegatedMaxSizeResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetCanDelegatedMaxSize", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetCanDelegatedMaxSize_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1032,8 +1271,9 @@ func (c *walletClient) GetCanDelegatedMaxSize(ctx context.Context, in *CanDelega } func (c *walletClient) GetAvailableUnfreezeCount(ctx context.Context, in *GetAvailableUnfreezeCountRequestMessage, opts ...grpc.CallOption) (*GetAvailableUnfreezeCountResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAvailableUnfreezeCountResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAvailableUnfreezeCount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAvailableUnfreezeCount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1041,8 +1281,9 @@ func (c *walletClient) GetAvailableUnfreezeCount(ctx context.Context, in *GetAva } func (c *walletClient) GetCanWithdrawUnfreezeAmount(ctx context.Context, in *CanWithdrawUnfreezeAmountRequestMessage, opts ...grpc.CallOption) (*CanWithdrawUnfreezeAmountResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CanWithdrawUnfreezeAmountResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetCanWithdrawUnfreezeAmount", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetCanWithdrawUnfreezeAmount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1050,8 +1291,9 @@ func (c *walletClient) GetCanWithdrawUnfreezeAmount(ctx context.Context, in *Can } func (c *walletClient) ListProposals(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ProposalList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProposalList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ListProposals", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ListProposals_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1059,8 +1301,9 @@ func (c *walletClient) ListProposals(ctx context.Context, in *EmptyMessage, opts } func (c *walletClient) GetPaginatedProposalList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*ProposalList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProposalList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetPaginatedProposalList", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetPaginatedProposalList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1068,8 +1311,9 @@ func (c *walletClient) GetPaginatedProposalList(ctx context.Context, in *Paginat } func (c *walletClient) GetProposalById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Proposal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Proposal) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetProposalById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetProposalById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1077,8 +1321,9 @@ func (c *walletClient) GetProposalById(ctx context.Context, in *BytesMessage, op } func (c *walletClient) ListExchanges(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExchangeList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExchangeList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ListExchanges", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ListExchanges_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1086,8 +1331,9 @@ func (c *walletClient) ListExchanges(ctx context.Context, in *EmptyMessage, opts } func (c *walletClient) GetPaginatedExchangeList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*ExchangeList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExchangeList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetPaginatedExchangeList", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetPaginatedExchangeList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1095,8 +1341,9 @@ func (c *walletClient) GetPaginatedExchangeList(ctx context.Context, in *Paginat } func (c *walletClient) GetExchangeById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Exchange, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Exchange) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetExchangeById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetExchangeById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1104,8 +1351,9 @@ func (c *walletClient) GetExchangeById(ctx context.Context, in *BytesMessage, op } func (c *walletClient) GetChainParameters(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.ChainParameters, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.ChainParameters) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetChainParameters", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetChainParameters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1113,8 +1361,9 @@ func (c *walletClient) GetChainParameters(ctx context.Context, in *EmptyMessage, } func (c *walletClient) GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueList", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAssetIssueList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1122,8 +1371,9 @@ func (c *walletClient) GetAssetIssueList(ctx context.Context, in *EmptyMessage, } func (c *walletClient) GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetPaginatedAssetIssueList", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetPaginatedAssetIssueList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1131,8 +1381,9 @@ func (c *walletClient) GetPaginatedAssetIssueList(ctx context.Context, in *Pagin } func (c *walletClient) TotalTransaction(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/TotalTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_TotalTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1140,8 +1391,9 @@ func (c *walletClient) TotalTransaction(ctx context.Context, in *EmptyMessage, o } func (c *walletClient) GetNextMaintenanceTime(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNextMaintenanceTime", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetNextMaintenanceTime_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1149,8 +1401,9 @@ func (c *walletClient) GetNextMaintenanceTime(ctx context.Context, in *EmptyMess } func (c *walletClient) GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.TransactionInfo) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionInfoById", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionInfoById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1158,8 +1411,9 @@ func (c *walletClient) GetTransactionInfoById(ctx context.Context, in *BytesMess } func (c *walletClient) AccountPermissionUpdate(ctx context.Context, in *core.AccountPermissionUpdateContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/AccountPermissionUpdate", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_AccountPermissionUpdate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1167,8 +1421,9 @@ func (c *walletClient) AccountPermissionUpdate(ctx context.Context, in *core.Acc } func (c *walletClient) GetTransactionSignWeight(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*TransactionSignWeight, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionSignWeight) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionSignWeight", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionSignWeight_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1176,8 +1431,9 @@ func (c *walletClient) GetTransactionSignWeight(ctx context.Context, in *core.Tr } func (c *walletClient) GetTransactionApprovedList(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*TransactionApprovedList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionApprovedList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionApprovedList", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionApprovedList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1185,8 +1441,9 @@ func (c *walletClient) GetTransactionApprovedList(ctx context.Context, in *core. } func (c *walletClient) GetNodeInfo(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.NodeInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.NodeInfo) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNodeInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetNodeInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1194,8 +1451,9 @@ func (c *walletClient) GetNodeInfo(ctx context.Context, in *EmptyMessage, opts . } func (c *walletClient) GetRewardInfo(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetRewardInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetRewardInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1203,8 +1461,9 @@ func (c *walletClient) GetRewardInfo(ctx context.Context, in *BytesMessage, opts } func (c *walletClient) GetBrokerageInfo(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBrokerageInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBrokerageInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1212,8 +1471,9 @@ func (c *walletClient) GetBrokerageInfo(ctx context.Context, in *BytesMessage, o } func (c *walletClient) UpdateBrokerage(ctx context.Context, in *core.UpdateBrokerageContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateBrokerage", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_UpdateBrokerage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1221,8 +1481,9 @@ func (c *walletClient) UpdateBrokerage(ctx context.Context, in *core.UpdateBroke } func (c *walletClient) CreateShieldedTransaction(ctx context.Context, in *PrivateParameters, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateShieldedTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateShieldedTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1230,8 +1491,9 @@ func (c *walletClient) CreateShieldedTransaction(ctx context.Context, in *Privat } func (c *walletClient) GetMerkleTreeVoucherInfo(ctx context.Context, in *core.OutputPointInfo, opts ...grpc.CallOption) (*core.IncrementalMerkleVoucherInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.IncrementalMerkleVoucherInfo) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMerkleTreeVoucherInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMerkleTreeVoucherInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1239,8 +1501,9 @@ func (c *walletClient) GetMerkleTreeVoucherInfo(ctx context.Context, in *core.Ou } func (c *walletClient) ScanNoteByIvk(ctx context.Context, in *IvkDecryptParameters, opts ...grpc.CallOption) (*DecryptNotes, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotes) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ScanNoteByIvk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ScanNoteByIvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1248,8 +1511,9 @@ func (c *walletClient) ScanNoteByIvk(ctx context.Context, in *IvkDecryptParamete } func (c *walletClient) ScanAndMarkNoteByIvk(ctx context.Context, in *IvkDecryptAndMarkParameters, opts ...grpc.CallOption) (*DecryptNotesMarked, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotesMarked) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ScanAndMarkNoteByIvk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ScanAndMarkNoteByIvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1257,8 +1521,9 @@ func (c *walletClient) ScanAndMarkNoteByIvk(ctx context.Context, in *IvkDecryptA } func (c *walletClient) ScanNoteByOvk(ctx context.Context, in *OvkDecryptParameters, opts ...grpc.CallOption) (*DecryptNotes, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotes) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ScanNoteByOvk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ScanNoteByOvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1266,8 +1531,9 @@ func (c *walletClient) ScanNoteByOvk(ctx context.Context, in *OvkDecryptParamete } func (c *walletClient) GetSpendingKey(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetSpendingKey", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetSpendingKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1275,8 +1541,9 @@ func (c *walletClient) GetSpendingKey(ctx context.Context, in *EmptyMessage, opt } func (c *walletClient) GetExpandedSpendingKey(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*ExpandedSpendingKeyMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExpandedSpendingKeyMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetExpandedSpendingKey", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetExpandedSpendingKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1284,8 +1551,9 @@ func (c *walletClient) GetExpandedSpendingKey(ctx context.Context, in *BytesMess } func (c *walletClient) GetAkFromAsk(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAkFromAsk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetAkFromAsk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1293,8 +1561,9 @@ func (c *walletClient) GetAkFromAsk(ctx context.Context, in *BytesMessage, opts } func (c *walletClient) GetNkFromNsk(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNkFromNsk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetNkFromNsk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1302,8 +1571,9 @@ func (c *walletClient) GetNkFromNsk(ctx context.Context, in *BytesMessage, opts } func (c *walletClient) GetIncomingViewingKey(ctx context.Context, in *ViewingKeyMessage, opts ...grpc.CallOption) (*IncomingViewingKeyMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IncomingViewingKeyMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetIncomingViewingKey", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetIncomingViewingKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1311,8 +1581,9 @@ func (c *walletClient) GetIncomingViewingKey(ctx context.Context, in *ViewingKey } func (c *walletClient) GetDiversifier(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*DiversifierMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DiversifierMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetDiversifier", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetDiversifier_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1320,8 +1591,9 @@ func (c *walletClient) GetDiversifier(ctx context.Context, in *EmptyMessage, opt } func (c *walletClient) GetNewShieldedAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ShieldedAddressInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShieldedAddressInfo) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNewShieldedAddress", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetNewShieldedAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1329,8 +1601,9 @@ func (c *walletClient) GetNewShieldedAddress(ctx context.Context, in *EmptyMessa } func (c *walletClient) GetZenPaymentAddress(ctx context.Context, in *IncomingViewingKeyDiversifierMessage, opts ...grpc.CallOption) (*PaymentAddressMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PaymentAddressMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetZenPaymentAddress", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetZenPaymentAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1338,8 +1611,9 @@ func (c *walletClient) GetZenPaymentAddress(ctx context.Context, in *IncomingVie } func (c *walletClient) GetRcm(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetRcm", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetRcm_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1347,8 +1621,9 @@ func (c *walletClient) GetRcm(ctx context.Context, in *EmptyMessage, opts ...grp } func (c *walletClient) IsSpend(ctx context.Context, in *NoteParameters, opts ...grpc.CallOption) (*SpendResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SpendResult) - err := c.cc.Invoke(ctx, "/protocol.Wallet/IsSpend", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_IsSpend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1356,8 +1631,9 @@ func (c *walletClient) IsSpend(ctx context.Context, in *NoteParameters, opts ... } func (c *walletClient) CreateShieldedTransactionWithoutSpendAuthSig(ctx context.Context, in *PrivateParametersWithoutAsk, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateShieldedTransactionWithoutSpendAuthSig", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateShieldedTransactionWithoutSpendAuthSig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1365,8 +1641,9 @@ func (c *walletClient) CreateShieldedTransactionWithoutSpendAuthSig(ctx context. } func (c *walletClient) GetShieldTransactionHash(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetShieldTransactionHash", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetShieldTransactionHash_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1374,8 +1651,9 @@ func (c *walletClient) GetShieldTransactionHash(ctx context.Context, in *core.Tr } func (c *walletClient) CreateSpendAuthSig(ctx context.Context, in *SpendAuthSigParameters, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateSpendAuthSig", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateSpendAuthSig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1383,8 +1661,9 @@ func (c *walletClient) CreateSpendAuthSig(ctx context.Context, in *SpendAuthSigP } func (c *walletClient) CreateShieldNullifier(ctx context.Context, in *NfParameters, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateShieldNullifier", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateShieldNullifier_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1392,8 +1671,9 @@ func (c *walletClient) CreateShieldNullifier(ctx context.Context, in *NfParamete } func (c *walletClient) CreateShieldedContractParameters(ctx context.Context, in *PrivateShieldedTRC20Parameters, opts ...grpc.CallOption) (*ShieldedTRC20Parameters, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShieldedTRC20Parameters) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateShieldedContractParameters", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateShieldedContractParameters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1401,8 +1681,9 @@ func (c *walletClient) CreateShieldedContractParameters(ctx context.Context, in } func (c *walletClient) CreateShieldedContractParametersWithoutAsk(ctx context.Context, in *PrivateShieldedTRC20ParametersWithoutAsk, opts ...grpc.CallOption) (*ShieldedTRC20Parameters, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShieldedTRC20Parameters) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateShieldedContractParametersWithoutAsk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateShieldedContractParametersWithoutAsk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1410,8 +1691,9 @@ func (c *walletClient) CreateShieldedContractParametersWithoutAsk(ctx context.Co } func (c *walletClient) ScanShieldedTRC20NotesByIvk(ctx context.Context, in *IvkDecryptTRC20Parameters, opts ...grpc.CallOption) (*DecryptNotesTRC20, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotesTRC20) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ScanShieldedTRC20NotesByIvk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ScanShieldedTRC20NotesByIvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1419,8 +1701,9 @@ func (c *walletClient) ScanShieldedTRC20NotesByIvk(ctx context.Context, in *IvkD } func (c *walletClient) ScanShieldedTRC20NotesByOvk(ctx context.Context, in *OvkDecryptTRC20Parameters, opts ...grpc.CallOption) (*DecryptNotesTRC20, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotesTRC20) - err := c.cc.Invoke(ctx, "/protocol.Wallet/ScanShieldedTRC20NotesByOvk", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_ScanShieldedTRC20NotesByOvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1428,8 +1711,9 @@ func (c *walletClient) ScanShieldedTRC20NotesByOvk(ctx context.Context, in *OvkD } func (c *walletClient) IsShieldedTRC20ContractNoteSpent(ctx context.Context, in *NfTRC20Parameters, opts ...grpc.CallOption) (*NullifierResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NullifierResult) - err := c.cc.Invoke(ctx, "/protocol.Wallet/IsShieldedTRC20ContractNoteSpent", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_IsShieldedTRC20ContractNoteSpent_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1437,8 +1721,9 @@ func (c *walletClient) IsShieldedTRC20ContractNoteSpent(ctx context.Context, in } func (c *walletClient) GetTriggerInputForShieldedTRC20Contract(ctx context.Context, in *ShieldedTRC20TriggerContractParameters, opts ...grpc.CallOption) (*BytesMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BytesMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTriggerInputForShieldedTRC20Contract", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTriggerInputForShieldedTRC20Contract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1446,8 +1731,9 @@ func (c *walletClient) GetTriggerInputForShieldedTRC20Contract(ctx context.Conte } func (c *walletClient) CreateCommonTransaction(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateCommonTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_CreateCommonTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1455,8 +1741,9 @@ func (c *walletClient) CreateCommonTransaction(ctx context.Context, in *core.Tra } func (c *walletClient) GetTransactionInfoByBlockNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*TransactionInfoList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionInfoList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionInfoByBlockNum", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionInfoByBlockNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1464,8 +1751,9 @@ func (c *walletClient) GetTransactionInfoByBlockNum(ctx context.Context, in *Num } func (c *walletClient) GetBurnTrx(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBurnTrx", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBurnTrx_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1473,8 +1761,9 @@ func (c *walletClient) GetBurnTrx(ctx context.Context, in *EmptyMessage, opts .. } func (c *walletClient) GetTransactionFromPending(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionFromPending", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionFromPending_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1482,8 +1771,9 @@ func (c *walletClient) GetTransactionFromPending(ctx context.Context, in *BytesM } func (c *walletClient) GetTransactionListFromPending(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*TransactionIdList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionIdList) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionListFromPending", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetTransactionListFromPending_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1491,8 +1781,9 @@ func (c *walletClient) GetTransactionListFromPending(ctx context.Context, in *Em } func (c *walletClient) GetPendingSize(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetPendingSize", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetPendingSize_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1500,8 +1791,9 @@ func (c *walletClient) GetPendingSize(ctx context.Context, in *EmptyMessage, opt } func (c *walletClient) GetBlock(ctx context.Context, in *BlockReq, opts ...grpc.CallOption) (*BlockExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockExtention) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlock", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1509,8 +1801,9 @@ func (c *walletClient) GetBlock(ctx context.Context, in *BlockReq, opts ...grpc. } func (c *walletClient) GetBandwidthPrices(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*PricesResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PricesResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBandwidthPrices", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetBandwidthPrices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1518,8 +1811,9 @@ func (c *walletClient) GetBandwidthPrices(ctx context.Context, in *EmptyMessage, } func (c *walletClient) GetEnergyPrices(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*PricesResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PricesResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetEnergyPrices", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetEnergyPrices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1527,8 +1821,9 @@ func (c *walletClient) GetEnergyPrices(ctx context.Context, in *EmptyMessage, op } func (c *walletClient) GetMemoFee(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*PricesResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PricesResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.Wallet/GetMemoFee", in, out, opts...) + err := c.cc.Invoke(ctx, Wallet_GetMemoFee_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1537,7 +1832,7 @@ func (c *walletClient) GetMemoFee(ctx context.Context, in *EmptyMessage, opts .. // WalletServer is the server API for Wallet service. // All implementations must embed UnimplementedWalletServer -// for forward compatibility +// for forward compatibility. type WalletServer interface { GetAccount(context.Context, *core.Account) (*core.Account, error) GetAccountById(context.Context, *core.Account) (*core.Account, error) @@ -1730,9 +2025,12 @@ type WalletServer interface { mustEmbedUnimplementedWalletServer() } -// UnimplementedWalletServer must be embedded to have forward compatible implementations. -type UnimplementedWalletServer struct { -} +// UnimplementedWalletServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWalletServer struct{} func (UnimplementedWalletServer) GetAccount(context.Context, *core.Account) (*core.Account, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") @@ -2173,6 +2471,7 @@ func (UnimplementedWalletServer) GetMemoFee(context.Context, *EmptyMessage) (*Pr return nil, status.Errorf(codes.Unimplemented, "method GetMemoFee not implemented") } func (UnimplementedWalletServer) mustEmbedUnimplementedWalletServer() {} +func (UnimplementedWalletServer) testEmbeddedByValue() {} // UnsafeWalletServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletServer will @@ -2182,6 +2481,13 @@ type UnsafeWalletServer interface { } func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer) { + // If the following call pancis, it indicates UnimplementedWalletServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Wallet_ServiceDesc, srv) } @@ -2195,7 +2501,7 @@ func _Wallet_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAccount", + FullMethod: Wallet_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAccount(ctx, req.(*core.Account)) @@ -2213,7 +2519,7 @@ func _Wallet_GetAccountById_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAccountById", + FullMethod: Wallet_GetAccountById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAccountById(ctx, req.(*core.Account)) @@ -2231,7 +2537,7 @@ func _Wallet_GetAccountBalance_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAccountBalance", + FullMethod: Wallet_GetAccountBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAccountBalance(ctx, req.(*core.AccountBalanceRequest)) @@ -2249,7 +2555,7 @@ func _Wallet_GetBlockBalanceTrace_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockBalanceTrace", + FullMethod: Wallet_GetBlockBalanceTrace_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockBalanceTrace(ctx, req.(*core.BlockBalanceTrace_BlockIdentifier)) @@ -2267,7 +2573,7 @@ func _Wallet_CreateTransaction_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateTransaction", + FullMethod: Wallet_CreateTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateTransaction(ctx, req.(*core.TransferContract)) @@ -2285,7 +2591,7 @@ func _Wallet_CreateTransaction2_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateTransaction2", + FullMethod: Wallet_CreateTransaction2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateTransaction2(ctx, req.(*core.TransferContract)) @@ -2303,7 +2609,7 @@ func _Wallet_BroadcastTransaction_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/BroadcastTransaction", + FullMethod: Wallet_BroadcastTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).BroadcastTransaction(ctx, req.(*core.Transaction)) @@ -2321,7 +2627,7 @@ func _Wallet_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateAccount", + FullMethod: Wallet_UpdateAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateAccount(ctx, req.(*core.AccountUpdateContract)) @@ -2339,7 +2645,7 @@ func _Wallet_SetAccountId_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/SetAccountId", + FullMethod: Wallet_SetAccountId_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).SetAccountId(ctx, req.(*core.SetAccountIdContract)) @@ -2357,7 +2663,7 @@ func _Wallet_UpdateAccount2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateAccount2", + FullMethod: Wallet_UpdateAccount2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateAccount2(ctx, req.(*core.AccountUpdateContract)) @@ -2375,7 +2681,7 @@ func _Wallet_VoteWitnessAccount_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/VoteWitnessAccount", + FullMethod: Wallet_VoteWitnessAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).VoteWitnessAccount(ctx, req.(*core.VoteWitnessContract)) @@ -2393,7 +2699,7 @@ func _Wallet_UpdateSetting_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateSetting", + FullMethod: Wallet_UpdateSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateSetting(ctx, req.(*core.UpdateSettingContract)) @@ -2411,7 +2717,7 @@ func _Wallet_UpdateEnergyLimit_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateEnergyLimit", + FullMethod: Wallet_UpdateEnergyLimit_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateEnergyLimit(ctx, req.(*core.UpdateEnergyLimitContract)) @@ -2429,7 +2735,7 @@ func _Wallet_VoteWitnessAccount2_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/VoteWitnessAccount2", + FullMethod: Wallet_VoteWitnessAccount2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).VoteWitnessAccount2(ctx, req.(*core.VoteWitnessContract)) @@ -2447,7 +2753,7 @@ func _Wallet_CreateAssetIssue_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateAssetIssue", + FullMethod: Wallet_CreateAssetIssue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateAssetIssue(ctx, req.(*core.AssetIssueContract)) @@ -2465,7 +2771,7 @@ func _Wallet_CreateAssetIssue2_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateAssetIssue2", + FullMethod: Wallet_CreateAssetIssue2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateAssetIssue2(ctx, req.(*core.AssetIssueContract)) @@ -2483,7 +2789,7 @@ func _Wallet_UpdateWitness_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateWitness", + FullMethod: Wallet_UpdateWitness_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateWitness(ctx, req.(*core.WitnessUpdateContract)) @@ -2501,7 +2807,7 @@ func _Wallet_UpdateWitness2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateWitness2", + FullMethod: Wallet_UpdateWitness2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateWitness2(ctx, req.(*core.WitnessUpdateContract)) @@ -2519,7 +2825,7 @@ func _Wallet_CreateAccount_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateAccount", + FullMethod: Wallet_CreateAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateAccount(ctx, req.(*core.AccountCreateContract)) @@ -2537,7 +2843,7 @@ func _Wallet_CreateAccount2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateAccount2", + FullMethod: Wallet_CreateAccount2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateAccount2(ctx, req.(*core.AccountCreateContract)) @@ -2555,7 +2861,7 @@ func _Wallet_CreateWitness_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateWitness", + FullMethod: Wallet_CreateWitness_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateWitness(ctx, req.(*core.WitnessCreateContract)) @@ -2573,7 +2879,7 @@ func _Wallet_CreateWitness2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateWitness2", + FullMethod: Wallet_CreateWitness2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateWitness2(ctx, req.(*core.WitnessCreateContract)) @@ -2591,7 +2897,7 @@ func _Wallet_TransferAsset_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/TransferAsset", + FullMethod: Wallet_TransferAsset_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).TransferAsset(ctx, req.(*core.TransferAssetContract)) @@ -2609,7 +2915,7 @@ func _Wallet_TransferAsset2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/TransferAsset2", + FullMethod: Wallet_TransferAsset2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).TransferAsset2(ctx, req.(*core.TransferAssetContract)) @@ -2627,7 +2933,7 @@ func _Wallet_ParticipateAssetIssue_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ParticipateAssetIssue", + FullMethod: Wallet_ParticipateAssetIssue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ParticipateAssetIssue(ctx, req.(*core.ParticipateAssetIssueContract)) @@ -2645,7 +2951,7 @@ func _Wallet_ParticipateAssetIssue2_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ParticipateAssetIssue2", + FullMethod: Wallet_ParticipateAssetIssue2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ParticipateAssetIssue2(ctx, req.(*core.ParticipateAssetIssueContract)) @@ -2663,7 +2969,7 @@ func _Wallet_FreezeBalance_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/FreezeBalance", + FullMethod: Wallet_FreezeBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).FreezeBalance(ctx, req.(*core.FreezeBalanceContract)) @@ -2681,7 +2987,7 @@ func _Wallet_FreezeBalance2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/FreezeBalance2", + FullMethod: Wallet_FreezeBalance2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).FreezeBalance2(ctx, req.(*core.FreezeBalanceContract)) @@ -2699,7 +3005,7 @@ func _Wallet_FreezeBalanceV2_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/FreezeBalanceV2", + FullMethod: Wallet_FreezeBalanceV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).FreezeBalanceV2(ctx, req.(*core.FreezeBalanceV2Contract)) @@ -2717,7 +3023,7 @@ func _Wallet_UnfreezeBalance_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UnfreezeBalance", + FullMethod: Wallet_UnfreezeBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UnfreezeBalance(ctx, req.(*core.UnfreezeBalanceContract)) @@ -2735,7 +3041,7 @@ func _Wallet_UnfreezeBalance2_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UnfreezeBalance2", + FullMethod: Wallet_UnfreezeBalance2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UnfreezeBalance2(ctx, req.(*core.UnfreezeBalanceContract)) @@ -2753,7 +3059,7 @@ func _Wallet_UnfreezeBalanceV2_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UnfreezeBalanceV2", + FullMethod: Wallet_UnfreezeBalanceV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UnfreezeBalanceV2(ctx, req.(*core.UnfreezeBalanceV2Contract)) @@ -2771,7 +3077,7 @@ func _Wallet_UnfreezeAsset_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UnfreezeAsset", + FullMethod: Wallet_UnfreezeAsset_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UnfreezeAsset(ctx, req.(*core.UnfreezeAssetContract)) @@ -2789,7 +3095,7 @@ func _Wallet_UnfreezeAsset2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UnfreezeAsset2", + FullMethod: Wallet_UnfreezeAsset2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UnfreezeAsset2(ctx, req.(*core.UnfreezeAssetContract)) @@ -2807,7 +3113,7 @@ func _Wallet_WithdrawBalance_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/WithdrawBalance", + FullMethod: Wallet_WithdrawBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).WithdrawBalance(ctx, req.(*core.WithdrawBalanceContract)) @@ -2825,7 +3131,7 @@ func _Wallet_WithdrawBalance2_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/WithdrawBalance2", + FullMethod: Wallet_WithdrawBalance2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).WithdrawBalance2(ctx, req.(*core.WithdrawBalanceContract)) @@ -2843,7 +3149,7 @@ func _Wallet_WithdrawExpireUnfreeze_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/WithdrawExpireUnfreeze", + FullMethod: Wallet_WithdrawExpireUnfreeze_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).WithdrawExpireUnfreeze(ctx, req.(*core.WithdrawExpireUnfreezeContract)) @@ -2861,7 +3167,7 @@ func _Wallet_DelegateResource_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/DelegateResource", + FullMethod: Wallet_DelegateResource_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).DelegateResource(ctx, req.(*core.DelegateResourceContract)) @@ -2879,7 +3185,7 @@ func _Wallet_UnDelegateResource_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UnDelegateResource", + FullMethod: Wallet_UnDelegateResource_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UnDelegateResource(ctx, req.(*core.UnDelegateResourceContract)) @@ -2897,7 +3203,7 @@ func _Wallet_CancelAllUnfreezeV2_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CancelAllUnfreezeV2", + FullMethod: Wallet_CancelAllUnfreezeV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CancelAllUnfreezeV2(ctx, req.(*core.CancelAllUnfreezeV2Contract)) @@ -2915,7 +3221,7 @@ func _Wallet_UpdateAsset_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateAsset", + FullMethod: Wallet_UpdateAsset_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateAsset(ctx, req.(*core.UpdateAssetContract)) @@ -2933,7 +3239,7 @@ func _Wallet_UpdateAsset2_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateAsset2", + FullMethod: Wallet_UpdateAsset2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateAsset2(ctx, req.(*core.UpdateAssetContract)) @@ -2951,7 +3257,7 @@ func _Wallet_ProposalCreate_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ProposalCreate", + FullMethod: Wallet_ProposalCreate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ProposalCreate(ctx, req.(*core.ProposalCreateContract)) @@ -2969,7 +3275,7 @@ func _Wallet_ProposalApprove_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ProposalApprove", + FullMethod: Wallet_ProposalApprove_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ProposalApprove(ctx, req.(*core.ProposalApproveContract)) @@ -2987,7 +3293,7 @@ func _Wallet_ProposalDelete_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ProposalDelete", + FullMethod: Wallet_ProposalDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ProposalDelete(ctx, req.(*core.ProposalDeleteContract)) @@ -3005,7 +3311,7 @@ func _Wallet_BuyStorage_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/BuyStorage", + FullMethod: Wallet_BuyStorage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).BuyStorage(ctx, req.(*core.BuyStorageContract)) @@ -3023,7 +3329,7 @@ func _Wallet_BuyStorageBytes_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/BuyStorageBytes", + FullMethod: Wallet_BuyStorageBytes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).BuyStorageBytes(ctx, req.(*core.BuyStorageBytesContract)) @@ -3041,7 +3347,7 @@ func _Wallet_SellStorage_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/SellStorage", + FullMethod: Wallet_SellStorage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).SellStorage(ctx, req.(*core.SellStorageContract)) @@ -3059,7 +3365,7 @@ func _Wallet_ExchangeCreate_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ExchangeCreate", + FullMethod: Wallet_ExchangeCreate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ExchangeCreate(ctx, req.(*core.ExchangeCreateContract)) @@ -3077,7 +3383,7 @@ func _Wallet_ExchangeInject_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ExchangeInject", + FullMethod: Wallet_ExchangeInject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ExchangeInject(ctx, req.(*core.ExchangeInjectContract)) @@ -3095,7 +3401,7 @@ func _Wallet_ExchangeWithdraw_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ExchangeWithdraw", + FullMethod: Wallet_ExchangeWithdraw_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ExchangeWithdraw(ctx, req.(*core.ExchangeWithdrawContract)) @@ -3113,7 +3419,7 @@ func _Wallet_ExchangeTransaction_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ExchangeTransaction", + FullMethod: Wallet_ExchangeTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ExchangeTransaction(ctx, req.(*core.ExchangeTransactionContract)) @@ -3131,7 +3437,7 @@ func _Wallet_MarketSellAsset_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/MarketSellAsset", + FullMethod: Wallet_MarketSellAsset_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).MarketSellAsset(ctx, req.(*core.MarketSellAssetContract)) @@ -3149,7 +3455,7 @@ func _Wallet_MarketCancelOrder_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/MarketCancelOrder", + FullMethod: Wallet_MarketCancelOrder_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).MarketCancelOrder(ctx, req.(*core.MarketCancelOrderContract)) @@ -3167,7 +3473,7 @@ func _Wallet_GetMarketOrderById_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMarketOrderById", + FullMethod: Wallet_GetMarketOrderById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMarketOrderById(ctx, req.(*BytesMessage)) @@ -3185,7 +3491,7 @@ func _Wallet_GetMarketOrderByAccount_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMarketOrderByAccount", + FullMethod: Wallet_GetMarketOrderByAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMarketOrderByAccount(ctx, req.(*BytesMessage)) @@ -3203,7 +3509,7 @@ func _Wallet_GetMarketPriceByPair_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMarketPriceByPair", + FullMethod: Wallet_GetMarketPriceByPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMarketPriceByPair(ctx, req.(*core.MarketOrderPair)) @@ -3221,7 +3527,7 @@ func _Wallet_GetMarketOrderListByPair_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMarketOrderListByPair", + FullMethod: Wallet_GetMarketOrderListByPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMarketOrderListByPair(ctx, req.(*core.MarketOrderPair)) @@ -3239,7 +3545,7 @@ func _Wallet_GetMarketPairList_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMarketPairList", + FullMethod: Wallet_GetMarketPairList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMarketPairList(ctx, req.(*EmptyMessage)) @@ -3257,7 +3563,7 @@ func _Wallet_ListNodes_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ListNodes", + FullMethod: Wallet_ListNodes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ListNodes(ctx, req.(*EmptyMessage)) @@ -3275,7 +3581,7 @@ func _Wallet_GetAssetIssueByAccount_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAssetIssueByAccount", + FullMethod: Wallet_GetAssetIssueByAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAssetIssueByAccount(ctx, req.(*core.Account)) @@ -3293,7 +3599,7 @@ func _Wallet_GetAccountNet_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAccountNet", + FullMethod: Wallet_GetAccountNet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAccountNet(ctx, req.(*core.Account)) @@ -3311,7 +3617,7 @@ func _Wallet_GetAccountResource_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAccountResource", + FullMethod: Wallet_GetAccountResource_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAccountResource(ctx, req.(*core.Account)) @@ -3329,7 +3635,7 @@ func _Wallet_GetAssetIssueByName_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAssetIssueByName", + FullMethod: Wallet_GetAssetIssueByName_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAssetIssueByName(ctx, req.(*BytesMessage)) @@ -3347,7 +3653,7 @@ func _Wallet_GetAssetIssueListByName_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAssetIssueListByName", + FullMethod: Wallet_GetAssetIssueListByName_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAssetIssueListByName(ctx, req.(*BytesMessage)) @@ -3365,7 +3671,7 @@ func _Wallet_GetAssetIssueById_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAssetIssueById", + FullMethod: Wallet_GetAssetIssueById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAssetIssueById(ctx, req.(*BytesMessage)) @@ -3383,7 +3689,7 @@ func _Wallet_GetNowBlock_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetNowBlock", + FullMethod: Wallet_GetNowBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetNowBlock(ctx, req.(*EmptyMessage)) @@ -3401,7 +3707,7 @@ func _Wallet_GetNowBlock2_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetNowBlock2", + FullMethod: Wallet_GetNowBlock2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetNowBlock2(ctx, req.(*EmptyMessage)) @@ -3419,7 +3725,7 @@ func _Wallet_GetBlockByNum_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockByNum", + FullMethod: Wallet_GetBlockByNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockByNum(ctx, req.(*NumberMessage)) @@ -3437,7 +3743,7 @@ func _Wallet_GetBlockByNum2_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockByNum2", + FullMethod: Wallet_GetBlockByNum2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockByNum2(ctx, req.(*NumberMessage)) @@ -3455,7 +3761,7 @@ func _Wallet_GetTransactionCountByBlockNum_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionCountByBlockNum", + FullMethod: Wallet_GetTransactionCountByBlockNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionCountByBlockNum(ctx, req.(*NumberMessage)) @@ -3473,7 +3779,7 @@ func _Wallet_GetBlockById_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockById", + FullMethod: Wallet_GetBlockById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockById(ctx, req.(*BytesMessage)) @@ -3491,7 +3797,7 @@ func _Wallet_GetBlockByLimitNext_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockByLimitNext", + FullMethod: Wallet_GetBlockByLimitNext_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockByLimitNext(ctx, req.(*BlockLimit)) @@ -3509,7 +3815,7 @@ func _Wallet_GetBlockByLimitNext2_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockByLimitNext2", + FullMethod: Wallet_GetBlockByLimitNext2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockByLimitNext2(ctx, req.(*BlockLimit)) @@ -3527,7 +3833,7 @@ func _Wallet_GetBlockByLatestNum_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockByLatestNum", + FullMethod: Wallet_GetBlockByLatestNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockByLatestNum(ctx, req.(*NumberMessage)) @@ -3545,7 +3851,7 @@ func _Wallet_GetBlockByLatestNum2_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlockByLatestNum2", + FullMethod: Wallet_GetBlockByLatestNum2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlockByLatestNum2(ctx, req.(*NumberMessage)) @@ -3563,7 +3869,7 @@ func _Wallet_GetTransactionById_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionById", + FullMethod: Wallet_GetTransactionById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionById(ctx, req.(*BytesMessage)) @@ -3581,7 +3887,7 @@ func _Wallet_DeployContract_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/DeployContract", + FullMethod: Wallet_DeployContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).DeployContract(ctx, req.(*core.CreateSmartContract)) @@ -3599,7 +3905,7 @@ func _Wallet_GetContract_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetContract", + FullMethod: Wallet_GetContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetContract(ctx, req.(*BytesMessage)) @@ -3617,7 +3923,7 @@ func _Wallet_GetContractInfo_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetContractInfo", + FullMethod: Wallet_GetContractInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetContractInfo(ctx, req.(*BytesMessage)) @@ -3635,7 +3941,7 @@ func _Wallet_TriggerContract_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/TriggerContract", + FullMethod: Wallet_TriggerContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).TriggerContract(ctx, req.(*core.TriggerSmartContract)) @@ -3653,7 +3959,7 @@ func _Wallet_TriggerConstantContract_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/TriggerConstantContract", + FullMethod: Wallet_TriggerConstantContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).TriggerConstantContract(ctx, req.(*core.TriggerSmartContract)) @@ -3671,7 +3977,7 @@ func _Wallet_EstimateEnergy_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/EstimateEnergy", + FullMethod: Wallet_EstimateEnergy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).EstimateEnergy(ctx, req.(*core.TriggerSmartContract)) @@ -3689,7 +3995,7 @@ func _Wallet_ClearContractABI_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ClearContractABI", + FullMethod: Wallet_ClearContractABI_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ClearContractABI(ctx, req.(*core.ClearABIContract)) @@ -3707,7 +4013,7 @@ func _Wallet_ListWitnesses_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ListWitnesses", + FullMethod: Wallet_ListWitnesses_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ListWitnesses(ctx, req.(*EmptyMessage)) @@ -3725,7 +4031,7 @@ func _Wallet_GetDelegatedResource_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetDelegatedResource", + FullMethod: Wallet_GetDelegatedResource_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetDelegatedResource(ctx, req.(*DelegatedResourceMessage)) @@ -3743,7 +4049,7 @@ func _Wallet_GetDelegatedResourceV2_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetDelegatedResourceV2", + FullMethod: Wallet_GetDelegatedResourceV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetDelegatedResourceV2(ctx, req.(*DelegatedResourceMessage)) @@ -3761,7 +4067,7 @@ func _Wallet_GetDelegatedResourceAccountIndex_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetDelegatedResourceAccountIndex", + FullMethod: Wallet_GetDelegatedResourceAccountIndex_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetDelegatedResourceAccountIndex(ctx, req.(*BytesMessage)) @@ -3779,7 +4085,7 @@ func _Wallet_GetDelegatedResourceAccountIndexV2_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetDelegatedResourceAccountIndexV2", + FullMethod: Wallet_GetDelegatedResourceAccountIndexV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetDelegatedResourceAccountIndexV2(ctx, req.(*BytesMessage)) @@ -3797,7 +4103,7 @@ func _Wallet_GetCanDelegatedMaxSize_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetCanDelegatedMaxSize", + FullMethod: Wallet_GetCanDelegatedMaxSize_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetCanDelegatedMaxSize(ctx, req.(*CanDelegatedMaxSizeRequestMessage)) @@ -3815,7 +4121,7 @@ func _Wallet_GetAvailableUnfreezeCount_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAvailableUnfreezeCount", + FullMethod: Wallet_GetAvailableUnfreezeCount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAvailableUnfreezeCount(ctx, req.(*GetAvailableUnfreezeCountRequestMessage)) @@ -3833,7 +4139,7 @@ func _Wallet_GetCanWithdrawUnfreezeAmount_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetCanWithdrawUnfreezeAmount", + FullMethod: Wallet_GetCanWithdrawUnfreezeAmount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetCanWithdrawUnfreezeAmount(ctx, req.(*CanWithdrawUnfreezeAmountRequestMessage)) @@ -3851,7 +4157,7 @@ func _Wallet_ListProposals_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ListProposals", + FullMethod: Wallet_ListProposals_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ListProposals(ctx, req.(*EmptyMessage)) @@ -3869,7 +4175,7 @@ func _Wallet_GetPaginatedProposalList_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetPaginatedProposalList", + FullMethod: Wallet_GetPaginatedProposalList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetPaginatedProposalList(ctx, req.(*PaginatedMessage)) @@ -3887,7 +4193,7 @@ func _Wallet_GetProposalById_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetProposalById", + FullMethod: Wallet_GetProposalById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetProposalById(ctx, req.(*BytesMessage)) @@ -3905,7 +4211,7 @@ func _Wallet_ListExchanges_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ListExchanges", + FullMethod: Wallet_ListExchanges_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ListExchanges(ctx, req.(*EmptyMessage)) @@ -3923,7 +4229,7 @@ func _Wallet_GetPaginatedExchangeList_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetPaginatedExchangeList", + FullMethod: Wallet_GetPaginatedExchangeList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetPaginatedExchangeList(ctx, req.(*PaginatedMessage)) @@ -3941,7 +4247,7 @@ func _Wallet_GetExchangeById_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetExchangeById", + FullMethod: Wallet_GetExchangeById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetExchangeById(ctx, req.(*BytesMessage)) @@ -3959,7 +4265,7 @@ func _Wallet_GetChainParameters_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetChainParameters", + FullMethod: Wallet_GetChainParameters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetChainParameters(ctx, req.(*EmptyMessage)) @@ -3977,7 +4283,7 @@ func _Wallet_GetAssetIssueList_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAssetIssueList", + FullMethod: Wallet_GetAssetIssueList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAssetIssueList(ctx, req.(*EmptyMessage)) @@ -3995,7 +4301,7 @@ func _Wallet_GetPaginatedAssetIssueList_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetPaginatedAssetIssueList", + FullMethod: Wallet_GetPaginatedAssetIssueList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetPaginatedAssetIssueList(ctx, req.(*PaginatedMessage)) @@ -4013,7 +4319,7 @@ func _Wallet_TotalTransaction_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/TotalTransaction", + FullMethod: Wallet_TotalTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).TotalTransaction(ctx, req.(*EmptyMessage)) @@ -4031,7 +4337,7 @@ func _Wallet_GetNextMaintenanceTime_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetNextMaintenanceTime", + FullMethod: Wallet_GetNextMaintenanceTime_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetNextMaintenanceTime(ctx, req.(*EmptyMessage)) @@ -4049,7 +4355,7 @@ func _Wallet_GetTransactionInfoById_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionInfoById", + FullMethod: Wallet_GetTransactionInfoById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionInfoById(ctx, req.(*BytesMessage)) @@ -4067,7 +4373,7 @@ func _Wallet_AccountPermissionUpdate_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/AccountPermissionUpdate", + FullMethod: Wallet_AccountPermissionUpdate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).AccountPermissionUpdate(ctx, req.(*core.AccountPermissionUpdateContract)) @@ -4085,7 +4391,7 @@ func _Wallet_GetTransactionSignWeight_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionSignWeight", + FullMethod: Wallet_GetTransactionSignWeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionSignWeight(ctx, req.(*core.Transaction)) @@ -4103,7 +4409,7 @@ func _Wallet_GetTransactionApprovedList_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionApprovedList", + FullMethod: Wallet_GetTransactionApprovedList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionApprovedList(ctx, req.(*core.Transaction)) @@ -4121,7 +4427,7 @@ func _Wallet_GetNodeInfo_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetNodeInfo", + FullMethod: Wallet_GetNodeInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetNodeInfo(ctx, req.(*EmptyMessage)) @@ -4139,7 +4445,7 @@ func _Wallet_GetRewardInfo_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetRewardInfo", + FullMethod: Wallet_GetRewardInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetRewardInfo(ctx, req.(*BytesMessage)) @@ -4157,7 +4463,7 @@ func _Wallet_GetBrokerageInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBrokerageInfo", + FullMethod: Wallet_GetBrokerageInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBrokerageInfo(ctx, req.(*BytesMessage)) @@ -4175,7 +4481,7 @@ func _Wallet_UpdateBrokerage_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/UpdateBrokerage", + FullMethod: Wallet_UpdateBrokerage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).UpdateBrokerage(ctx, req.(*core.UpdateBrokerageContract)) @@ -4193,7 +4499,7 @@ func _Wallet_CreateShieldedTransaction_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateShieldedTransaction", + FullMethod: Wallet_CreateShieldedTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateShieldedTransaction(ctx, req.(*PrivateParameters)) @@ -4211,7 +4517,7 @@ func _Wallet_GetMerkleTreeVoucherInfo_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMerkleTreeVoucherInfo", + FullMethod: Wallet_GetMerkleTreeVoucherInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMerkleTreeVoucherInfo(ctx, req.(*core.OutputPointInfo)) @@ -4229,7 +4535,7 @@ func _Wallet_ScanNoteByIvk_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ScanNoteByIvk", + FullMethod: Wallet_ScanNoteByIvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ScanNoteByIvk(ctx, req.(*IvkDecryptParameters)) @@ -4247,7 +4553,7 @@ func _Wallet_ScanAndMarkNoteByIvk_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ScanAndMarkNoteByIvk", + FullMethod: Wallet_ScanAndMarkNoteByIvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ScanAndMarkNoteByIvk(ctx, req.(*IvkDecryptAndMarkParameters)) @@ -4265,7 +4571,7 @@ func _Wallet_ScanNoteByOvk_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ScanNoteByOvk", + FullMethod: Wallet_ScanNoteByOvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ScanNoteByOvk(ctx, req.(*OvkDecryptParameters)) @@ -4283,7 +4589,7 @@ func _Wallet_GetSpendingKey_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetSpendingKey", + FullMethod: Wallet_GetSpendingKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetSpendingKey(ctx, req.(*EmptyMessage)) @@ -4301,7 +4607,7 @@ func _Wallet_GetExpandedSpendingKey_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetExpandedSpendingKey", + FullMethod: Wallet_GetExpandedSpendingKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetExpandedSpendingKey(ctx, req.(*BytesMessage)) @@ -4319,7 +4625,7 @@ func _Wallet_GetAkFromAsk_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetAkFromAsk", + FullMethod: Wallet_GetAkFromAsk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAkFromAsk(ctx, req.(*BytesMessage)) @@ -4337,7 +4643,7 @@ func _Wallet_GetNkFromNsk_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetNkFromNsk", + FullMethod: Wallet_GetNkFromNsk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetNkFromNsk(ctx, req.(*BytesMessage)) @@ -4355,7 +4661,7 @@ func _Wallet_GetIncomingViewingKey_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetIncomingViewingKey", + FullMethod: Wallet_GetIncomingViewingKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetIncomingViewingKey(ctx, req.(*ViewingKeyMessage)) @@ -4373,7 +4679,7 @@ func _Wallet_GetDiversifier_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetDiversifier", + FullMethod: Wallet_GetDiversifier_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetDiversifier(ctx, req.(*EmptyMessage)) @@ -4391,7 +4697,7 @@ func _Wallet_GetNewShieldedAddress_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetNewShieldedAddress", + FullMethod: Wallet_GetNewShieldedAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetNewShieldedAddress(ctx, req.(*EmptyMessage)) @@ -4409,7 +4715,7 @@ func _Wallet_GetZenPaymentAddress_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetZenPaymentAddress", + FullMethod: Wallet_GetZenPaymentAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetZenPaymentAddress(ctx, req.(*IncomingViewingKeyDiversifierMessage)) @@ -4427,7 +4733,7 @@ func _Wallet_GetRcm_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetRcm", + FullMethod: Wallet_GetRcm_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetRcm(ctx, req.(*EmptyMessage)) @@ -4445,7 +4751,7 @@ func _Wallet_IsSpend_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/IsSpend", + FullMethod: Wallet_IsSpend_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).IsSpend(ctx, req.(*NoteParameters)) @@ -4463,7 +4769,7 @@ func _Wallet_CreateShieldedTransactionWithoutSpendAuthSig_Handler(srv interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateShieldedTransactionWithoutSpendAuthSig", + FullMethod: Wallet_CreateShieldedTransactionWithoutSpendAuthSig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateShieldedTransactionWithoutSpendAuthSig(ctx, req.(*PrivateParametersWithoutAsk)) @@ -4481,7 +4787,7 @@ func _Wallet_GetShieldTransactionHash_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetShieldTransactionHash", + FullMethod: Wallet_GetShieldTransactionHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetShieldTransactionHash(ctx, req.(*core.Transaction)) @@ -4499,7 +4805,7 @@ func _Wallet_CreateSpendAuthSig_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateSpendAuthSig", + FullMethod: Wallet_CreateSpendAuthSig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateSpendAuthSig(ctx, req.(*SpendAuthSigParameters)) @@ -4517,7 +4823,7 @@ func _Wallet_CreateShieldNullifier_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateShieldNullifier", + FullMethod: Wallet_CreateShieldNullifier_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateShieldNullifier(ctx, req.(*NfParameters)) @@ -4535,7 +4841,7 @@ func _Wallet_CreateShieldedContractParameters_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateShieldedContractParameters", + FullMethod: Wallet_CreateShieldedContractParameters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateShieldedContractParameters(ctx, req.(*PrivateShieldedTRC20Parameters)) @@ -4553,7 +4859,7 @@ func _Wallet_CreateShieldedContractParametersWithoutAsk_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateShieldedContractParametersWithoutAsk", + FullMethod: Wallet_CreateShieldedContractParametersWithoutAsk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateShieldedContractParametersWithoutAsk(ctx, req.(*PrivateShieldedTRC20ParametersWithoutAsk)) @@ -4571,7 +4877,7 @@ func _Wallet_ScanShieldedTRC20NotesByIvk_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ScanShieldedTRC20NotesByIvk", + FullMethod: Wallet_ScanShieldedTRC20NotesByIvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ScanShieldedTRC20NotesByIvk(ctx, req.(*IvkDecryptTRC20Parameters)) @@ -4589,7 +4895,7 @@ func _Wallet_ScanShieldedTRC20NotesByOvk_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/ScanShieldedTRC20NotesByOvk", + FullMethod: Wallet_ScanShieldedTRC20NotesByOvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).ScanShieldedTRC20NotesByOvk(ctx, req.(*OvkDecryptTRC20Parameters)) @@ -4607,7 +4913,7 @@ func _Wallet_IsShieldedTRC20ContractNoteSpent_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/IsShieldedTRC20ContractNoteSpent", + FullMethod: Wallet_IsShieldedTRC20ContractNoteSpent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).IsShieldedTRC20ContractNoteSpent(ctx, req.(*NfTRC20Parameters)) @@ -4625,7 +4931,7 @@ func _Wallet_GetTriggerInputForShieldedTRC20Contract_Handler(srv interface{}, ct } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTriggerInputForShieldedTRC20Contract", + FullMethod: Wallet_GetTriggerInputForShieldedTRC20Contract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTriggerInputForShieldedTRC20Contract(ctx, req.(*ShieldedTRC20TriggerContractParameters)) @@ -4643,7 +4949,7 @@ func _Wallet_CreateCommonTransaction_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/CreateCommonTransaction", + FullMethod: Wallet_CreateCommonTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).CreateCommonTransaction(ctx, req.(*core.Transaction)) @@ -4661,7 +4967,7 @@ func _Wallet_GetTransactionInfoByBlockNum_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionInfoByBlockNum", + FullMethod: Wallet_GetTransactionInfoByBlockNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionInfoByBlockNum(ctx, req.(*NumberMessage)) @@ -4679,7 +4985,7 @@ func _Wallet_GetBurnTrx_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBurnTrx", + FullMethod: Wallet_GetBurnTrx_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBurnTrx(ctx, req.(*EmptyMessage)) @@ -4697,7 +5003,7 @@ func _Wallet_GetTransactionFromPending_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionFromPending", + FullMethod: Wallet_GetTransactionFromPending_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionFromPending(ctx, req.(*BytesMessage)) @@ -4715,7 +5021,7 @@ func _Wallet_GetTransactionListFromPending_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetTransactionListFromPending", + FullMethod: Wallet_GetTransactionListFromPending_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetTransactionListFromPending(ctx, req.(*EmptyMessage)) @@ -4733,7 +5039,7 @@ func _Wallet_GetPendingSize_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetPendingSize", + FullMethod: Wallet_GetPendingSize_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetPendingSize(ctx, req.(*EmptyMessage)) @@ -4751,7 +5057,7 @@ func _Wallet_GetBlock_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBlock", + FullMethod: Wallet_GetBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBlock(ctx, req.(*BlockReq)) @@ -4769,7 +5075,7 @@ func _Wallet_GetBandwidthPrices_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetBandwidthPrices", + FullMethod: Wallet_GetBandwidthPrices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetBandwidthPrices(ctx, req.(*EmptyMessage)) @@ -4787,7 +5093,7 @@ func _Wallet_GetEnergyPrices_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetEnergyPrices", + FullMethod: Wallet_GetEnergyPrices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetEnergyPrices(ctx, req.(*EmptyMessage)) @@ -4805,7 +5111,7 @@ func _Wallet_GetMemoFee_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Wallet/GetMemoFee", + FullMethod: Wallet_GetMemoFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetMemoFee(ctx, req.(*EmptyMessage)) @@ -5409,6 +5715,55 @@ var Wallet_ServiceDesc = grpc.ServiceDesc{ Metadata: "api/api.proto", } +const ( + WalletSolidity_GetAccount_FullMethodName = "/protocol.WalletSolidity/GetAccount" + WalletSolidity_GetAccountById_FullMethodName = "/protocol.WalletSolidity/GetAccountById" + WalletSolidity_ListWitnesses_FullMethodName = "/protocol.WalletSolidity/ListWitnesses" + WalletSolidity_GetAssetIssueList_FullMethodName = "/protocol.WalletSolidity/GetAssetIssueList" + WalletSolidity_GetPaginatedAssetIssueList_FullMethodName = "/protocol.WalletSolidity/GetPaginatedAssetIssueList" + WalletSolidity_GetAssetIssueByName_FullMethodName = "/protocol.WalletSolidity/GetAssetIssueByName" + WalletSolidity_GetAssetIssueListByName_FullMethodName = "/protocol.WalletSolidity/GetAssetIssueListByName" + WalletSolidity_GetAssetIssueById_FullMethodName = "/protocol.WalletSolidity/GetAssetIssueById" + WalletSolidity_GetNowBlock_FullMethodName = "/protocol.WalletSolidity/GetNowBlock" + WalletSolidity_GetNowBlock2_FullMethodName = "/protocol.WalletSolidity/GetNowBlock2" + WalletSolidity_GetBlockByNum_FullMethodName = "/protocol.WalletSolidity/GetBlockByNum" + WalletSolidity_GetBlockByNum2_FullMethodName = "/protocol.WalletSolidity/GetBlockByNum2" + WalletSolidity_GetTransactionCountByBlockNum_FullMethodName = "/protocol.WalletSolidity/GetTransactionCountByBlockNum" + WalletSolidity_GetDelegatedResource_FullMethodName = "/protocol.WalletSolidity/GetDelegatedResource" + WalletSolidity_GetDelegatedResourceV2_FullMethodName = "/protocol.WalletSolidity/GetDelegatedResourceV2" + WalletSolidity_GetDelegatedResourceAccountIndex_FullMethodName = "/protocol.WalletSolidity/GetDelegatedResourceAccountIndex" + WalletSolidity_GetDelegatedResourceAccountIndexV2_FullMethodName = "/protocol.WalletSolidity/GetDelegatedResourceAccountIndexV2" + WalletSolidity_GetCanDelegatedMaxSize_FullMethodName = "/protocol.WalletSolidity/GetCanDelegatedMaxSize" + WalletSolidity_GetAvailableUnfreezeCount_FullMethodName = "/protocol.WalletSolidity/GetAvailableUnfreezeCount" + WalletSolidity_GetCanWithdrawUnfreezeAmount_FullMethodName = "/protocol.WalletSolidity/GetCanWithdrawUnfreezeAmount" + WalletSolidity_GetExchangeById_FullMethodName = "/protocol.WalletSolidity/GetExchangeById" + WalletSolidity_ListExchanges_FullMethodName = "/protocol.WalletSolidity/ListExchanges" + WalletSolidity_GetTransactionById_FullMethodName = "/protocol.WalletSolidity/GetTransactionById" + WalletSolidity_GetTransactionInfoById_FullMethodName = "/protocol.WalletSolidity/GetTransactionInfoById" + WalletSolidity_GetMerkleTreeVoucherInfo_FullMethodName = "/protocol.WalletSolidity/GetMerkleTreeVoucherInfo" + WalletSolidity_ScanNoteByIvk_FullMethodName = "/protocol.WalletSolidity/ScanNoteByIvk" + WalletSolidity_ScanAndMarkNoteByIvk_FullMethodName = "/protocol.WalletSolidity/ScanAndMarkNoteByIvk" + WalletSolidity_ScanNoteByOvk_FullMethodName = "/protocol.WalletSolidity/ScanNoteByOvk" + WalletSolidity_IsSpend_FullMethodName = "/protocol.WalletSolidity/IsSpend" + WalletSolidity_ScanShieldedTRC20NotesByIvk_FullMethodName = "/protocol.WalletSolidity/ScanShieldedTRC20NotesByIvk" + WalletSolidity_ScanShieldedTRC20NotesByOvk_FullMethodName = "/protocol.WalletSolidity/ScanShieldedTRC20NotesByOvk" + WalletSolidity_IsShieldedTRC20ContractNoteSpent_FullMethodName = "/protocol.WalletSolidity/IsShieldedTRC20ContractNoteSpent" + WalletSolidity_GetRewardInfo_FullMethodName = "/protocol.WalletSolidity/GetRewardInfo" + WalletSolidity_GetBrokerageInfo_FullMethodName = "/protocol.WalletSolidity/GetBrokerageInfo" + WalletSolidity_TriggerConstantContract_FullMethodName = "/protocol.WalletSolidity/TriggerConstantContract" + WalletSolidity_EstimateEnergy_FullMethodName = "/protocol.WalletSolidity/EstimateEnergy" + WalletSolidity_GetTransactionInfoByBlockNum_FullMethodName = "/protocol.WalletSolidity/GetTransactionInfoByBlockNum" + WalletSolidity_GetMarketOrderById_FullMethodName = "/protocol.WalletSolidity/GetMarketOrderById" + WalletSolidity_GetMarketOrderByAccount_FullMethodName = "/protocol.WalletSolidity/GetMarketOrderByAccount" + WalletSolidity_GetMarketPriceByPair_FullMethodName = "/protocol.WalletSolidity/GetMarketPriceByPair" + WalletSolidity_GetMarketOrderListByPair_FullMethodName = "/protocol.WalletSolidity/GetMarketOrderListByPair" + WalletSolidity_GetMarketPairList_FullMethodName = "/protocol.WalletSolidity/GetMarketPairList" + WalletSolidity_GetBurnTrx_FullMethodName = "/protocol.WalletSolidity/GetBurnTrx" + WalletSolidity_GetBlock_FullMethodName = "/protocol.WalletSolidity/GetBlock" + WalletSolidity_GetBandwidthPrices_FullMethodName = "/protocol.WalletSolidity/GetBandwidthPrices" + WalletSolidity_GetEnergyPrices_FullMethodName = "/protocol.WalletSolidity/GetEnergyPrices" +) + // WalletSolidityClient is the client API for WalletSolidity 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. @@ -5474,8 +5829,9 @@ func NewWalletSolidityClient(cc grpc.ClientConnInterface) WalletSolidityClient { } func (c *walletSolidityClient) GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Account) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5483,8 +5839,9 @@ func (c *walletSolidityClient) GetAccount(ctx context.Context, in *core.Account, } func (c *walletSolidityClient) GetAccountById(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Account) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAccountById", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAccountById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5492,8 +5849,9 @@ func (c *walletSolidityClient) GetAccountById(ctx context.Context, in *core.Acco } func (c *walletSolidityClient) ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WitnessList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ListWitnesses", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ListWitnesses_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5501,8 +5859,9 @@ func (c *walletSolidityClient) ListWitnesses(ctx context.Context, in *EmptyMessa } func (c *walletSolidityClient) GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAssetIssueList", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAssetIssueList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5510,8 +5869,9 @@ func (c *walletSolidityClient) GetAssetIssueList(ctx context.Context, in *EmptyM } func (c *walletSolidityClient) GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetPaginatedAssetIssueList", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetPaginatedAssetIssueList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5519,8 +5879,9 @@ func (c *walletSolidityClient) GetPaginatedAssetIssueList(ctx context.Context, i } func (c *walletSolidityClient) GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.AssetIssueContract) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAssetIssueByName", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAssetIssueByName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5528,8 +5889,9 @@ func (c *walletSolidityClient) GetAssetIssueByName(ctx context.Context, in *Byte } func (c *walletSolidityClient) GetAssetIssueListByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*AssetIssueList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetIssueList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAssetIssueListByName", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAssetIssueListByName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5537,8 +5899,9 @@ func (c *walletSolidityClient) GetAssetIssueListByName(ctx context.Context, in * } func (c *walletSolidityClient) GetAssetIssueById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.AssetIssueContract) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAssetIssueById", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAssetIssueById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5546,8 +5909,9 @@ func (c *walletSolidityClient) GetAssetIssueById(ctx context.Context, in *BytesM } func (c *walletSolidityClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetNowBlock", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetNowBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5555,8 +5919,9 @@ func (c *walletSolidityClient) GetNowBlock(ctx context.Context, in *EmptyMessage } func (c *walletSolidityClient) GetNowBlock2(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockExtention) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetNowBlock2", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetNowBlock2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5564,8 +5929,9 @@ func (c *walletSolidityClient) GetNowBlock2(ctx context.Context, in *EmptyMessag } func (c *walletSolidityClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBlockByNum", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetBlockByNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5573,8 +5939,9 @@ func (c *walletSolidityClient) GetBlockByNum(ctx context.Context, in *NumberMess } func (c *walletSolidityClient) GetBlockByNum2(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockExtention) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBlockByNum2", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetBlockByNum2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5582,8 +5949,9 @@ func (c *walletSolidityClient) GetBlockByNum2(ctx context.Context, in *NumberMes } func (c *walletSolidityClient) GetTransactionCountByBlockNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetTransactionCountByBlockNum", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetTransactionCountByBlockNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5591,8 +5959,9 @@ func (c *walletSolidityClient) GetTransactionCountByBlockNum(ctx context.Context } func (c *walletSolidityClient) GetDelegatedResource(ctx context.Context, in *DelegatedResourceMessage, opts ...grpc.CallOption) (*DelegatedResourceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DelegatedResourceList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetDelegatedResource", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetDelegatedResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5600,8 +5969,9 @@ func (c *walletSolidityClient) GetDelegatedResource(ctx context.Context, in *Del } func (c *walletSolidityClient) GetDelegatedResourceV2(ctx context.Context, in *DelegatedResourceMessage, opts ...grpc.CallOption) (*DelegatedResourceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DelegatedResourceList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetDelegatedResourceV2", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetDelegatedResourceV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5609,8 +5979,9 @@ func (c *walletSolidityClient) GetDelegatedResourceV2(ctx context.Context, in *D } func (c *walletSolidityClient) GetDelegatedResourceAccountIndex(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.DelegatedResourceAccountIndex, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.DelegatedResourceAccountIndex) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetDelegatedResourceAccountIndex", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetDelegatedResourceAccountIndex_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5618,8 +5989,9 @@ func (c *walletSolidityClient) GetDelegatedResourceAccountIndex(ctx context.Cont } func (c *walletSolidityClient) GetDelegatedResourceAccountIndexV2(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.DelegatedResourceAccountIndex, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.DelegatedResourceAccountIndex) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetDelegatedResourceAccountIndexV2", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetDelegatedResourceAccountIndexV2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5627,8 +5999,9 @@ func (c *walletSolidityClient) GetDelegatedResourceAccountIndexV2(ctx context.Co } func (c *walletSolidityClient) GetCanDelegatedMaxSize(ctx context.Context, in *CanDelegatedMaxSizeRequestMessage, opts ...grpc.CallOption) (*CanDelegatedMaxSizeResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CanDelegatedMaxSizeResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetCanDelegatedMaxSize", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetCanDelegatedMaxSize_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5636,8 +6009,9 @@ func (c *walletSolidityClient) GetCanDelegatedMaxSize(ctx context.Context, in *C } func (c *walletSolidityClient) GetAvailableUnfreezeCount(ctx context.Context, in *GetAvailableUnfreezeCountRequestMessage, opts ...grpc.CallOption) (*GetAvailableUnfreezeCountResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAvailableUnfreezeCountResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAvailableUnfreezeCount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetAvailableUnfreezeCount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5645,8 +6019,9 @@ func (c *walletSolidityClient) GetAvailableUnfreezeCount(ctx context.Context, in } func (c *walletSolidityClient) GetCanWithdrawUnfreezeAmount(ctx context.Context, in *CanWithdrawUnfreezeAmountRequestMessage, opts ...grpc.CallOption) (*CanWithdrawUnfreezeAmountResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CanWithdrawUnfreezeAmountResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetCanWithdrawUnfreezeAmount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetCanWithdrawUnfreezeAmount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5654,8 +6029,9 @@ func (c *walletSolidityClient) GetCanWithdrawUnfreezeAmount(ctx context.Context, } func (c *walletSolidityClient) GetExchangeById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Exchange, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Exchange) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetExchangeById", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetExchangeById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5663,8 +6039,9 @@ func (c *walletSolidityClient) GetExchangeById(ctx context.Context, in *BytesMes } func (c *walletSolidityClient) ListExchanges(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExchangeList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExchangeList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ListExchanges", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ListExchanges_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5672,8 +6049,9 @@ func (c *walletSolidityClient) ListExchanges(ctx context.Context, in *EmptyMessa } func (c *walletSolidityClient) GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Transaction) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetTransactionById", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetTransactionById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5681,8 +6059,9 @@ func (c *walletSolidityClient) GetTransactionById(ctx context.Context, in *Bytes } func (c *walletSolidityClient) GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.TransactionInfo) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetTransactionInfoById", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetTransactionInfoById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5690,8 +6069,9 @@ func (c *walletSolidityClient) GetTransactionInfoById(ctx context.Context, in *B } func (c *walletSolidityClient) GetMerkleTreeVoucherInfo(ctx context.Context, in *core.OutputPointInfo, opts ...grpc.CallOption) (*core.IncrementalMerkleVoucherInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.IncrementalMerkleVoucherInfo) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetMerkleTreeVoucherInfo", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetMerkleTreeVoucherInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5699,8 +6079,9 @@ func (c *walletSolidityClient) GetMerkleTreeVoucherInfo(ctx context.Context, in } func (c *walletSolidityClient) ScanNoteByIvk(ctx context.Context, in *IvkDecryptParameters, opts ...grpc.CallOption) (*DecryptNotes, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotes) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ScanNoteByIvk", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ScanNoteByIvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5708,8 +6089,9 @@ func (c *walletSolidityClient) ScanNoteByIvk(ctx context.Context, in *IvkDecrypt } func (c *walletSolidityClient) ScanAndMarkNoteByIvk(ctx context.Context, in *IvkDecryptAndMarkParameters, opts ...grpc.CallOption) (*DecryptNotesMarked, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotesMarked) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ScanAndMarkNoteByIvk", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ScanAndMarkNoteByIvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5717,8 +6099,9 @@ func (c *walletSolidityClient) ScanAndMarkNoteByIvk(ctx context.Context, in *Ivk } func (c *walletSolidityClient) ScanNoteByOvk(ctx context.Context, in *OvkDecryptParameters, opts ...grpc.CallOption) (*DecryptNotes, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotes) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ScanNoteByOvk", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ScanNoteByOvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5726,8 +6109,9 @@ func (c *walletSolidityClient) ScanNoteByOvk(ctx context.Context, in *OvkDecrypt } func (c *walletSolidityClient) IsSpend(ctx context.Context, in *NoteParameters, opts ...grpc.CallOption) (*SpendResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SpendResult) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/IsSpend", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_IsSpend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5735,8 +6119,9 @@ func (c *walletSolidityClient) IsSpend(ctx context.Context, in *NoteParameters, } func (c *walletSolidityClient) ScanShieldedTRC20NotesByIvk(ctx context.Context, in *IvkDecryptTRC20Parameters, opts ...grpc.CallOption) (*DecryptNotesTRC20, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotesTRC20) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ScanShieldedTRC20NotesByIvk", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ScanShieldedTRC20NotesByIvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5744,8 +6129,9 @@ func (c *walletSolidityClient) ScanShieldedTRC20NotesByIvk(ctx context.Context, } func (c *walletSolidityClient) ScanShieldedTRC20NotesByOvk(ctx context.Context, in *OvkDecryptTRC20Parameters, opts ...grpc.CallOption) (*DecryptNotesTRC20, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecryptNotesTRC20) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ScanShieldedTRC20NotesByOvk", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_ScanShieldedTRC20NotesByOvk_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5753,8 +6139,9 @@ func (c *walletSolidityClient) ScanShieldedTRC20NotesByOvk(ctx context.Context, } func (c *walletSolidityClient) IsShieldedTRC20ContractNoteSpent(ctx context.Context, in *NfTRC20Parameters, opts ...grpc.CallOption) (*NullifierResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NullifierResult) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/IsShieldedTRC20ContractNoteSpent", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_IsShieldedTRC20ContractNoteSpent_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5762,8 +6149,9 @@ func (c *walletSolidityClient) IsShieldedTRC20ContractNoteSpent(ctx context.Cont } func (c *walletSolidityClient) GetRewardInfo(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetRewardInfo", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetRewardInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5771,8 +6159,9 @@ func (c *walletSolidityClient) GetRewardInfo(ctx context.Context, in *BytesMessa } func (c *walletSolidityClient) GetBrokerageInfo(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBrokerageInfo", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetBrokerageInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5780,8 +6169,9 @@ func (c *walletSolidityClient) GetBrokerageInfo(ctx context.Context, in *BytesMe } func (c *walletSolidityClient) TriggerConstantContract(ctx context.Context, in *core.TriggerSmartContract, opts ...grpc.CallOption) (*TransactionExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionExtention) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/TriggerConstantContract", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_TriggerConstantContract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5789,8 +6179,9 @@ func (c *walletSolidityClient) TriggerConstantContract(ctx context.Context, in * } func (c *walletSolidityClient) EstimateEnergy(ctx context.Context, in *core.TriggerSmartContract, opts ...grpc.CallOption) (*EstimateEnergyMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EstimateEnergyMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/EstimateEnergy", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_EstimateEnergy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5798,8 +6189,9 @@ func (c *walletSolidityClient) EstimateEnergy(ctx context.Context, in *core.Trig } func (c *walletSolidityClient) GetTransactionInfoByBlockNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*TransactionInfoList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionInfoList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetTransactionInfoByBlockNum", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetTransactionInfoByBlockNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5807,8 +6199,9 @@ func (c *walletSolidityClient) GetTransactionInfoByBlockNum(ctx context.Context, } func (c *walletSolidityClient) GetMarketOrderById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.MarketOrder, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrder) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetMarketOrderById", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetMarketOrderById_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5816,8 +6209,9 @@ func (c *walletSolidityClient) GetMarketOrderById(ctx context.Context, in *Bytes } func (c *walletSolidityClient) GetMarketOrderByAccount(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.MarketOrderList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrderList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetMarketOrderByAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetMarketOrderByAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5825,8 +6219,9 @@ func (c *walletSolidityClient) GetMarketOrderByAccount(ctx context.Context, in * } func (c *walletSolidityClient) GetMarketPriceByPair(ctx context.Context, in *core.MarketOrderPair, opts ...grpc.CallOption) (*core.MarketPriceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketPriceList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetMarketPriceByPair", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetMarketPriceByPair_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5834,8 +6229,9 @@ func (c *walletSolidityClient) GetMarketPriceByPair(ctx context.Context, in *cor } func (c *walletSolidityClient) GetMarketOrderListByPair(ctx context.Context, in *core.MarketOrderPair, opts ...grpc.CallOption) (*core.MarketOrderList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrderList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetMarketOrderListByPair", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetMarketOrderListByPair_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5843,8 +6239,9 @@ func (c *walletSolidityClient) GetMarketOrderListByPair(ctx context.Context, in } func (c *walletSolidityClient) GetMarketPairList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.MarketOrderPairList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MarketOrderPairList) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetMarketPairList", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetMarketPairList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5852,8 +6249,9 @@ func (c *walletSolidityClient) GetMarketPairList(ctx context.Context, in *EmptyM } func (c *walletSolidityClient) GetBurnTrx(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NumberMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBurnTrx", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetBurnTrx_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5861,8 +6259,9 @@ func (c *walletSolidityClient) GetBurnTrx(ctx context.Context, in *EmptyMessage, } func (c *walletSolidityClient) GetBlock(ctx context.Context, in *BlockReq, opts ...grpc.CallOption) (*BlockExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockExtention) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBlock", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5870,8 +6269,9 @@ func (c *walletSolidityClient) GetBlock(ctx context.Context, in *BlockReq, opts } func (c *walletSolidityClient) GetBandwidthPrices(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*PricesResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PricesResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBandwidthPrices", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetBandwidthPrices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5879,8 +6279,9 @@ func (c *walletSolidityClient) GetBandwidthPrices(ctx context.Context, in *Empty } func (c *walletSolidityClient) GetEnergyPrices(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*PricesResponseMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PricesResponseMessage) - err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetEnergyPrices", in, out, opts...) + err := c.cc.Invoke(ctx, WalletSolidity_GetEnergyPrices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -5889,7 +6290,7 @@ func (c *walletSolidityClient) GetEnergyPrices(ctx context.Context, in *EmptyMes // WalletSolidityServer is the server API for WalletSolidity service. // All implementations must embed UnimplementedWalletSolidityServer -// for forward compatibility +// for forward compatibility. type WalletSolidityServer interface { GetAccount(context.Context, *core.Account) (*core.Account, error) GetAccountById(context.Context, *core.Account) (*core.Account, error) @@ -5944,9 +6345,12 @@ type WalletSolidityServer interface { mustEmbedUnimplementedWalletSolidityServer() } -// UnimplementedWalletSolidityServer must be embedded to have forward compatible implementations. -type UnimplementedWalletSolidityServer struct { -} +// UnimplementedWalletSolidityServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWalletSolidityServer struct{} func (UnimplementedWalletSolidityServer) GetAccount(context.Context, *core.Account) (*core.Account, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") @@ -6087,6 +6491,7 @@ func (UnimplementedWalletSolidityServer) GetEnergyPrices(context.Context, *Empty return nil, status.Errorf(codes.Unimplemented, "method GetEnergyPrices not implemented") } func (UnimplementedWalletSolidityServer) mustEmbedUnimplementedWalletSolidityServer() {} +func (UnimplementedWalletSolidityServer) testEmbeddedByValue() {} // UnsafeWalletSolidityServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletSolidityServer will @@ -6096,6 +6501,13 @@ type UnsafeWalletSolidityServer interface { } func RegisterWalletSolidityServer(s grpc.ServiceRegistrar, srv WalletSolidityServer) { + // If the following call pancis, it indicates UnimplementedWalletSolidityServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&WalletSolidity_ServiceDesc, srv) } @@ -6109,7 +6521,7 @@ func _WalletSolidity_GetAccount_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAccount", + FullMethod: WalletSolidity_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAccount(ctx, req.(*core.Account)) @@ -6127,7 +6539,7 @@ func _WalletSolidity_GetAccountById_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAccountById", + FullMethod: WalletSolidity_GetAccountById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAccountById(ctx, req.(*core.Account)) @@ -6145,7 +6557,7 @@ func _WalletSolidity_ListWitnesses_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ListWitnesses", + FullMethod: WalletSolidity_ListWitnesses_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ListWitnesses(ctx, req.(*EmptyMessage)) @@ -6163,7 +6575,7 @@ func _WalletSolidity_GetAssetIssueList_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAssetIssueList", + FullMethod: WalletSolidity_GetAssetIssueList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAssetIssueList(ctx, req.(*EmptyMessage)) @@ -6181,7 +6593,7 @@ func _WalletSolidity_GetPaginatedAssetIssueList_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetPaginatedAssetIssueList", + FullMethod: WalletSolidity_GetPaginatedAssetIssueList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetPaginatedAssetIssueList(ctx, req.(*PaginatedMessage)) @@ -6199,7 +6611,7 @@ func _WalletSolidity_GetAssetIssueByName_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAssetIssueByName", + FullMethod: WalletSolidity_GetAssetIssueByName_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAssetIssueByName(ctx, req.(*BytesMessage)) @@ -6217,7 +6629,7 @@ func _WalletSolidity_GetAssetIssueListByName_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAssetIssueListByName", + FullMethod: WalletSolidity_GetAssetIssueListByName_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAssetIssueListByName(ctx, req.(*BytesMessage)) @@ -6235,7 +6647,7 @@ func _WalletSolidity_GetAssetIssueById_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAssetIssueById", + FullMethod: WalletSolidity_GetAssetIssueById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAssetIssueById(ctx, req.(*BytesMessage)) @@ -6253,7 +6665,7 @@ func _WalletSolidity_GetNowBlock_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetNowBlock", + FullMethod: WalletSolidity_GetNowBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetNowBlock(ctx, req.(*EmptyMessage)) @@ -6271,7 +6683,7 @@ func _WalletSolidity_GetNowBlock2_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetNowBlock2", + FullMethod: WalletSolidity_GetNowBlock2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetNowBlock2(ctx, req.(*EmptyMessage)) @@ -6289,7 +6701,7 @@ func _WalletSolidity_GetBlockByNum_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetBlockByNum", + FullMethod: WalletSolidity_GetBlockByNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetBlockByNum(ctx, req.(*NumberMessage)) @@ -6307,7 +6719,7 @@ func _WalletSolidity_GetBlockByNum2_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetBlockByNum2", + FullMethod: WalletSolidity_GetBlockByNum2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetBlockByNum2(ctx, req.(*NumberMessage)) @@ -6325,7 +6737,7 @@ func _WalletSolidity_GetTransactionCountByBlockNum_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetTransactionCountByBlockNum", + FullMethod: WalletSolidity_GetTransactionCountByBlockNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetTransactionCountByBlockNum(ctx, req.(*NumberMessage)) @@ -6343,7 +6755,7 @@ func _WalletSolidity_GetDelegatedResource_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetDelegatedResource", + FullMethod: WalletSolidity_GetDelegatedResource_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetDelegatedResource(ctx, req.(*DelegatedResourceMessage)) @@ -6361,7 +6773,7 @@ func _WalletSolidity_GetDelegatedResourceV2_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetDelegatedResourceV2", + FullMethod: WalletSolidity_GetDelegatedResourceV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetDelegatedResourceV2(ctx, req.(*DelegatedResourceMessage)) @@ -6379,7 +6791,7 @@ func _WalletSolidity_GetDelegatedResourceAccountIndex_Handler(srv interface{}, c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetDelegatedResourceAccountIndex", + FullMethod: WalletSolidity_GetDelegatedResourceAccountIndex_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetDelegatedResourceAccountIndex(ctx, req.(*BytesMessage)) @@ -6397,7 +6809,7 @@ func _WalletSolidity_GetDelegatedResourceAccountIndexV2_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetDelegatedResourceAccountIndexV2", + FullMethod: WalletSolidity_GetDelegatedResourceAccountIndexV2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetDelegatedResourceAccountIndexV2(ctx, req.(*BytesMessage)) @@ -6415,7 +6827,7 @@ func _WalletSolidity_GetCanDelegatedMaxSize_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetCanDelegatedMaxSize", + FullMethod: WalletSolidity_GetCanDelegatedMaxSize_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetCanDelegatedMaxSize(ctx, req.(*CanDelegatedMaxSizeRequestMessage)) @@ -6433,7 +6845,7 @@ func _WalletSolidity_GetAvailableUnfreezeCount_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetAvailableUnfreezeCount", + FullMethod: WalletSolidity_GetAvailableUnfreezeCount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetAvailableUnfreezeCount(ctx, req.(*GetAvailableUnfreezeCountRequestMessage)) @@ -6451,7 +6863,7 @@ func _WalletSolidity_GetCanWithdrawUnfreezeAmount_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetCanWithdrawUnfreezeAmount", + FullMethod: WalletSolidity_GetCanWithdrawUnfreezeAmount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetCanWithdrawUnfreezeAmount(ctx, req.(*CanWithdrawUnfreezeAmountRequestMessage)) @@ -6469,7 +6881,7 @@ func _WalletSolidity_GetExchangeById_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetExchangeById", + FullMethod: WalletSolidity_GetExchangeById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetExchangeById(ctx, req.(*BytesMessage)) @@ -6487,7 +6899,7 @@ func _WalletSolidity_ListExchanges_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ListExchanges", + FullMethod: WalletSolidity_ListExchanges_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ListExchanges(ctx, req.(*EmptyMessage)) @@ -6505,7 +6917,7 @@ func _WalletSolidity_GetTransactionById_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetTransactionById", + FullMethod: WalletSolidity_GetTransactionById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetTransactionById(ctx, req.(*BytesMessage)) @@ -6523,7 +6935,7 @@ func _WalletSolidity_GetTransactionInfoById_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetTransactionInfoById", + FullMethod: WalletSolidity_GetTransactionInfoById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetTransactionInfoById(ctx, req.(*BytesMessage)) @@ -6541,7 +6953,7 @@ func _WalletSolidity_GetMerkleTreeVoucherInfo_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetMerkleTreeVoucherInfo", + FullMethod: WalletSolidity_GetMerkleTreeVoucherInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetMerkleTreeVoucherInfo(ctx, req.(*core.OutputPointInfo)) @@ -6559,7 +6971,7 @@ func _WalletSolidity_ScanNoteByIvk_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ScanNoteByIvk", + FullMethod: WalletSolidity_ScanNoteByIvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ScanNoteByIvk(ctx, req.(*IvkDecryptParameters)) @@ -6577,7 +6989,7 @@ func _WalletSolidity_ScanAndMarkNoteByIvk_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ScanAndMarkNoteByIvk", + FullMethod: WalletSolidity_ScanAndMarkNoteByIvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ScanAndMarkNoteByIvk(ctx, req.(*IvkDecryptAndMarkParameters)) @@ -6595,7 +7007,7 @@ func _WalletSolidity_ScanNoteByOvk_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ScanNoteByOvk", + FullMethod: WalletSolidity_ScanNoteByOvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ScanNoteByOvk(ctx, req.(*OvkDecryptParameters)) @@ -6613,7 +7025,7 @@ func _WalletSolidity_IsSpend_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/IsSpend", + FullMethod: WalletSolidity_IsSpend_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).IsSpend(ctx, req.(*NoteParameters)) @@ -6631,7 +7043,7 @@ func _WalletSolidity_ScanShieldedTRC20NotesByIvk_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ScanShieldedTRC20NotesByIvk", + FullMethod: WalletSolidity_ScanShieldedTRC20NotesByIvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ScanShieldedTRC20NotesByIvk(ctx, req.(*IvkDecryptTRC20Parameters)) @@ -6649,7 +7061,7 @@ func _WalletSolidity_ScanShieldedTRC20NotesByOvk_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/ScanShieldedTRC20NotesByOvk", + FullMethod: WalletSolidity_ScanShieldedTRC20NotesByOvk_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).ScanShieldedTRC20NotesByOvk(ctx, req.(*OvkDecryptTRC20Parameters)) @@ -6667,7 +7079,7 @@ func _WalletSolidity_IsShieldedTRC20ContractNoteSpent_Handler(srv interface{}, c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/IsShieldedTRC20ContractNoteSpent", + FullMethod: WalletSolidity_IsShieldedTRC20ContractNoteSpent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).IsShieldedTRC20ContractNoteSpent(ctx, req.(*NfTRC20Parameters)) @@ -6685,7 +7097,7 @@ func _WalletSolidity_GetRewardInfo_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetRewardInfo", + FullMethod: WalletSolidity_GetRewardInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetRewardInfo(ctx, req.(*BytesMessage)) @@ -6703,7 +7115,7 @@ func _WalletSolidity_GetBrokerageInfo_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetBrokerageInfo", + FullMethod: WalletSolidity_GetBrokerageInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetBrokerageInfo(ctx, req.(*BytesMessage)) @@ -6721,7 +7133,7 @@ func _WalletSolidity_TriggerConstantContract_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/TriggerConstantContract", + FullMethod: WalletSolidity_TriggerConstantContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).TriggerConstantContract(ctx, req.(*core.TriggerSmartContract)) @@ -6739,7 +7151,7 @@ func _WalletSolidity_EstimateEnergy_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/EstimateEnergy", + FullMethod: WalletSolidity_EstimateEnergy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).EstimateEnergy(ctx, req.(*core.TriggerSmartContract)) @@ -6757,7 +7169,7 @@ func _WalletSolidity_GetTransactionInfoByBlockNum_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetTransactionInfoByBlockNum", + FullMethod: WalletSolidity_GetTransactionInfoByBlockNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetTransactionInfoByBlockNum(ctx, req.(*NumberMessage)) @@ -6775,7 +7187,7 @@ func _WalletSolidity_GetMarketOrderById_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetMarketOrderById", + FullMethod: WalletSolidity_GetMarketOrderById_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetMarketOrderById(ctx, req.(*BytesMessage)) @@ -6793,7 +7205,7 @@ func _WalletSolidity_GetMarketOrderByAccount_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetMarketOrderByAccount", + FullMethod: WalletSolidity_GetMarketOrderByAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetMarketOrderByAccount(ctx, req.(*BytesMessage)) @@ -6811,7 +7223,7 @@ func _WalletSolidity_GetMarketPriceByPair_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetMarketPriceByPair", + FullMethod: WalletSolidity_GetMarketPriceByPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetMarketPriceByPair(ctx, req.(*core.MarketOrderPair)) @@ -6829,7 +7241,7 @@ func _WalletSolidity_GetMarketOrderListByPair_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetMarketOrderListByPair", + FullMethod: WalletSolidity_GetMarketOrderListByPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetMarketOrderListByPair(ctx, req.(*core.MarketOrderPair)) @@ -6847,7 +7259,7 @@ func _WalletSolidity_GetMarketPairList_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetMarketPairList", + FullMethod: WalletSolidity_GetMarketPairList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetMarketPairList(ctx, req.(*EmptyMessage)) @@ -6865,7 +7277,7 @@ func _WalletSolidity_GetBurnTrx_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetBurnTrx", + FullMethod: WalletSolidity_GetBurnTrx_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetBurnTrx(ctx, req.(*EmptyMessage)) @@ -6883,7 +7295,7 @@ func _WalletSolidity_GetBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetBlock", + FullMethod: WalletSolidity_GetBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetBlock(ctx, req.(*BlockReq)) @@ -6901,7 +7313,7 @@ func _WalletSolidity_GetBandwidthPrices_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetBandwidthPrices", + FullMethod: WalletSolidity_GetBandwidthPrices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetBandwidthPrices(ctx, req.(*EmptyMessage)) @@ -6919,7 +7331,7 @@ func _WalletSolidity_GetEnergyPrices_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletSolidity/GetEnergyPrices", + FullMethod: WalletSolidity_GetEnergyPrices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletSolidityServer).GetEnergyPrices(ctx, req.(*EmptyMessage)) @@ -7123,6 +7535,13 @@ var WalletSolidity_ServiceDesc = grpc.ServiceDesc{ Metadata: "api/api.proto", } +const ( + WalletExtension_GetTransactionsFromThis_FullMethodName = "/protocol.WalletExtension/GetTransactionsFromThis" + WalletExtension_GetTransactionsFromThis2_FullMethodName = "/protocol.WalletExtension/GetTransactionsFromThis2" + WalletExtension_GetTransactionsToThis_FullMethodName = "/protocol.WalletExtension/GetTransactionsToThis" + WalletExtension_GetTransactionsToThis2_FullMethodName = "/protocol.WalletExtension/GetTransactionsToThis2" +) + // WalletExtensionClient is the client API for WalletExtension 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. @@ -7146,8 +7565,9 @@ func NewWalletExtensionClient(cc grpc.ClientConnInterface) WalletExtensionClient } func (c *walletExtensionClient) GetTransactionsFromThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionList) - err := c.cc.Invoke(ctx, "/protocol.WalletExtension/GetTransactionsFromThis", in, out, opts...) + err := c.cc.Invoke(ctx, WalletExtension_GetTransactionsFromThis_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7155,8 +7575,9 @@ func (c *walletExtensionClient) GetTransactionsFromThis(ctx context.Context, in } func (c *walletExtensionClient) GetTransactionsFromThis2(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionListExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionListExtention) - err := c.cc.Invoke(ctx, "/protocol.WalletExtension/GetTransactionsFromThis2", in, out, opts...) + err := c.cc.Invoke(ctx, WalletExtension_GetTransactionsFromThis2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7164,8 +7585,9 @@ func (c *walletExtensionClient) GetTransactionsFromThis2(ctx context.Context, in } func (c *walletExtensionClient) GetTransactionsToThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionList) - err := c.cc.Invoke(ctx, "/protocol.WalletExtension/GetTransactionsToThis", in, out, opts...) + err := c.cc.Invoke(ctx, WalletExtension_GetTransactionsToThis_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7173,8 +7595,9 @@ func (c *walletExtensionClient) GetTransactionsToThis(ctx context.Context, in *A } func (c *walletExtensionClient) GetTransactionsToThis2(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionListExtention, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionListExtention) - err := c.cc.Invoke(ctx, "/protocol.WalletExtension/GetTransactionsToThis2", in, out, opts...) + err := c.cc.Invoke(ctx, WalletExtension_GetTransactionsToThis2_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7183,7 +7606,7 @@ func (c *walletExtensionClient) GetTransactionsToThis2(ctx context.Context, in * // WalletExtensionServer is the server API for WalletExtension service. // All implementations must embed UnimplementedWalletExtensionServer -// for forward compatibility +// for forward compatibility. type WalletExtensionServer interface { // Please use GetTransactionsFromThis2 instead of this function. GetTransactionsFromThis(context.Context, *AccountPaginated) (*TransactionList, error) @@ -7196,9 +7619,12 @@ type WalletExtensionServer interface { mustEmbedUnimplementedWalletExtensionServer() } -// UnimplementedWalletExtensionServer must be embedded to have forward compatible implementations. -type UnimplementedWalletExtensionServer struct { -} +// UnimplementedWalletExtensionServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWalletExtensionServer struct{} func (UnimplementedWalletExtensionServer) GetTransactionsFromThis(context.Context, *AccountPaginated) (*TransactionList, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTransactionsFromThis not implemented") @@ -7213,6 +7639,7 @@ func (UnimplementedWalletExtensionServer) GetTransactionsToThis2(context.Context return nil, status.Errorf(codes.Unimplemented, "method GetTransactionsToThis2 not implemented") } func (UnimplementedWalletExtensionServer) mustEmbedUnimplementedWalletExtensionServer() {} +func (UnimplementedWalletExtensionServer) testEmbeddedByValue() {} // UnsafeWalletExtensionServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletExtensionServer will @@ -7222,6 +7649,13 @@ type UnsafeWalletExtensionServer interface { } func RegisterWalletExtensionServer(s grpc.ServiceRegistrar, srv WalletExtensionServer) { + // If the following call pancis, it indicates UnimplementedWalletExtensionServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&WalletExtension_ServiceDesc, srv) } @@ -7235,7 +7669,7 @@ func _WalletExtension_GetTransactionsFromThis_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletExtension/GetTransactionsFromThis", + FullMethod: WalletExtension_GetTransactionsFromThis_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletExtensionServer).GetTransactionsFromThis(ctx, req.(*AccountPaginated)) @@ -7253,7 +7687,7 @@ func _WalletExtension_GetTransactionsFromThis2_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletExtension/GetTransactionsFromThis2", + FullMethod: WalletExtension_GetTransactionsFromThis2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletExtensionServer).GetTransactionsFromThis2(ctx, req.(*AccountPaginated)) @@ -7271,7 +7705,7 @@ func _WalletExtension_GetTransactionsToThis_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletExtension/GetTransactionsToThis", + FullMethod: WalletExtension_GetTransactionsToThis_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletExtensionServer).GetTransactionsToThis(ctx, req.(*AccountPaginated)) @@ -7289,7 +7723,7 @@ func _WalletExtension_GetTransactionsToThis2_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.WalletExtension/GetTransactionsToThis2", + FullMethod: WalletExtension_GetTransactionsToThis2_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletExtensionServer).GetTransactionsToThis2(ctx, req.(*AccountPaginated)) @@ -7325,9 +7759,18 @@ var WalletExtension_ServiceDesc = grpc.ServiceDesc{ Metadata: "api/api.proto", } +const ( + Database_GetBlockReference_FullMethodName = "/protocol.Database/getBlockReference" + Database_GetDynamicProperties_FullMethodName = "/protocol.Database/GetDynamicProperties" + Database_GetNowBlock_FullMethodName = "/protocol.Database/GetNowBlock" + Database_GetBlockByNum_FullMethodName = "/protocol.Database/GetBlockByNum" +) + // DatabaseClient is the client API for Database 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. +// +// the api of tron's db type DatabaseClient interface { // for tapos GetBlockReference(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockReference, error) @@ -7345,8 +7788,9 @@ func NewDatabaseClient(cc grpc.ClientConnInterface) DatabaseClient { } func (c *databaseClient) GetBlockReference(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockReference, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockReference) - err := c.cc.Invoke(ctx, "/protocol.Database/getBlockReference", in, out, opts...) + err := c.cc.Invoke(ctx, Database_GetBlockReference_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7354,8 +7798,9 @@ func (c *databaseClient) GetBlockReference(ctx context.Context, in *EmptyMessage } func (c *databaseClient) GetDynamicProperties(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.DynamicProperties, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.DynamicProperties) - err := c.cc.Invoke(ctx, "/protocol.Database/GetDynamicProperties", in, out, opts...) + err := c.cc.Invoke(ctx, Database_GetDynamicProperties_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7363,8 +7808,9 @@ func (c *databaseClient) GetDynamicProperties(ctx context.Context, in *EmptyMess } func (c *databaseClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.Database/GetNowBlock", in, out, opts...) + err := c.cc.Invoke(ctx, Database_GetNowBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7372,8 +7818,9 @@ func (c *databaseClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts } func (c *databaseClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.Block) - err := c.cc.Invoke(ctx, "/protocol.Database/GetBlockByNum", in, out, opts...) + err := c.cc.Invoke(ctx, Database_GetBlockByNum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7382,7 +7829,9 @@ func (c *databaseClient) GetBlockByNum(ctx context.Context, in *NumberMessage, o // DatabaseServer is the server API for Database service. // All implementations must embed UnimplementedDatabaseServer -// for forward compatibility +// for forward compatibility. +// +// the api of tron's db type DatabaseServer interface { // for tapos GetBlockReference(context.Context, *EmptyMessage) (*BlockReference, error) @@ -7392,9 +7841,12 @@ type DatabaseServer interface { mustEmbedUnimplementedDatabaseServer() } -// UnimplementedDatabaseServer must be embedded to have forward compatible implementations. -type UnimplementedDatabaseServer struct { -} +// UnimplementedDatabaseServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDatabaseServer struct{} func (UnimplementedDatabaseServer) GetBlockReference(context.Context, *EmptyMessage) (*BlockReference, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBlockReference not implemented") @@ -7409,6 +7861,7 @@ func (UnimplementedDatabaseServer) GetBlockByNum(context.Context, *NumberMessage return nil, status.Errorf(codes.Unimplemented, "method GetBlockByNum not implemented") } func (UnimplementedDatabaseServer) mustEmbedUnimplementedDatabaseServer() {} +func (UnimplementedDatabaseServer) testEmbeddedByValue() {} // UnsafeDatabaseServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DatabaseServer will @@ -7418,6 +7871,13 @@ type UnsafeDatabaseServer interface { } func RegisterDatabaseServer(s grpc.ServiceRegistrar, srv DatabaseServer) { + // If the following call pancis, it indicates UnimplementedDatabaseServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Database_ServiceDesc, srv) } @@ -7431,7 +7891,7 @@ func _Database_GetBlockReference_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Database/getBlockReference", + FullMethod: Database_GetBlockReference_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).GetBlockReference(ctx, req.(*EmptyMessage)) @@ -7449,7 +7909,7 @@ func _Database_GetDynamicProperties_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Database/GetDynamicProperties", + FullMethod: Database_GetDynamicProperties_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).GetDynamicProperties(ctx, req.(*EmptyMessage)) @@ -7467,7 +7927,7 @@ func _Database_GetNowBlock_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Database/GetNowBlock", + FullMethod: Database_GetNowBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).GetNowBlock(ctx, req.(*EmptyMessage)) @@ -7485,7 +7945,7 @@ func _Database_GetBlockByNum_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Database/GetBlockByNum", + FullMethod: Database_GetBlockByNum_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).GetBlockByNum(ctx, req.(*NumberMessage)) @@ -7521,6 +7981,10 @@ var Database_ServiceDesc = grpc.ServiceDesc{ Metadata: "api/api.proto", } +const ( + Monitor_GetStatsInfo_FullMethodName = "/protocol.Monitor/GetStatsInfo" +) + // MonitorClient is the client API for Monitor 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. @@ -7537,8 +8001,9 @@ func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient { } func (c *monitorClient) GetStatsInfo(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.MetricsInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(core.MetricsInfo) - err := c.cc.Invoke(ctx, "/protocol.Monitor/GetStatsInfo", in, out, opts...) + err := c.cc.Invoke(ctx, Monitor_GetStatsInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -7547,20 +8012,24 @@ func (c *monitorClient) GetStatsInfo(ctx context.Context, in *EmptyMessage, opts // MonitorServer is the server API for Monitor service. // All implementations must embed UnimplementedMonitorServer -// for forward compatibility +// for forward compatibility. type MonitorServer interface { GetStatsInfo(context.Context, *EmptyMessage) (*core.MetricsInfo, error) mustEmbedUnimplementedMonitorServer() } -// UnimplementedMonitorServer must be embedded to have forward compatible implementations. -type UnimplementedMonitorServer struct { -} +// UnimplementedMonitorServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMonitorServer struct{} func (UnimplementedMonitorServer) GetStatsInfo(context.Context, *EmptyMessage) (*core.MetricsInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStatsInfo not implemented") } func (UnimplementedMonitorServer) mustEmbedUnimplementedMonitorServer() {} +func (UnimplementedMonitorServer) testEmbeddedByValue() {} // UnsafeMonitorServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MonitorServer will @@ -7570,6 +8039,13 @@ type UnsafeMonitorServer interface { } func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer) { + // If the following call pancis, it indicates UnimplementedMonitorServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Monitor_ServiceDesc, srv) } @@ -7583,7 +8059,7 @@ func _Monitor_GetStatsInfo_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.Monitor/GetStatsInfo", + FullMethod: Monitor_GetStatsInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MonitorServer).GetStatsInfo(ctx, req.(*EmptyMessage)) @@ -7610,6 +8086,8 @@ var Monitor_ServiceDesc = grpc.ServiceDesc{ // NetworkClient is the client API for Network 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. +// +// the api of tron's network such as node list. type NetworkClient interface { } @@ -7623,16 +8101,22 @@ func NewNetworkClient(cc grpc.ClientConnInterface) NetworkClient { // NetworkServer is the server API for Network service. // All implementations must embed UnimplementedNetworkServer -// for forward compatibility +// for forward compatibility. +// +// the api of tron's network such as node list. type NetworkServer interface { mustEmbedUnimplementedNetworkServer() } -// UnimplementedNetworkServer must be embedded to have forward compatible implementations. -type UnimplementedNetworkServer struct { -} +// UnimplementedNetworkServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedNetworkServer struct{} func (UnimplementedNetworkServer) mustEmbedUnimplementedNetworkServer() {} +func (UnimplementedNetworkServer) testEmbeddedByValue() {} // UnsafeNetworkServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to NetworkServer will @@ -7642,6 +8126,13 @@ type UnsafeNetworkServer interface { } func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer) { + // If the following call pancis, it indicates UnimplementedNetworkServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Network_ServiceDesc, srv) } diff --git a/gen/api/zksnark.pb.go b/gen/api/zksnark.pb.go index e46a5a2..a147319 100644 --- a/gen/api/zksnark.pb.go +++ b/gen/api/zksnark.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: api/zksnark.proto @@ -80,11 +80,9 @@ type ZksnarkRequest struct { func (x *ZksnarkRequest) Reset() { *x = ZksnarkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_zksnark_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_zksnark_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ZksnarkRequest) String() string { @@ -95,7 +93,7 @@ func (*ZksnarkRequest) ProtoMessage() {} func (x *ZksnarkRequest) ProtoReflect() protoreflect.Message { mi := &file_api_zksnark_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -148,11 +146,9 @@ type ZksnarkResponse struct { func (x *ZksnarkResponse) Reset() { *x = ZksnarkResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_zksnark_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_zksnark_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ZksnarkResponse) String() string { @@ -163,7 +159,7 @@ func (*ZksnarkResponse) ProtoMessage() {} func (x *ZksnarkResponse) ProtoReflect() protoreflect.Message { mi := &file_api_zksnark_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -235,7 +231,7 @@ func file_api_zksnark_proto_rawDescGZIP() []byte { var file_api_zksnark_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_zksnark_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_api_zksnark_proto_goTypes = []interface{}{ +var file_api_zksnark_proto_goTypes = []any{ (ZksnarkResponse_Code)(0), // 0: protocol.ZksnarkResponse.Code (*ZksnarkRequest)(nil), // 1: protocol.ZksnarkRequest (*ZksnarkResponse)(nil), // 2: protocol.ZksnarkResponse @@ -258,32 +254,6 @@ func file_api_zksnark_proto_init() { if File_api_zksnark_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_zksnark_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ZksnarkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_zksnark_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ZksnarkResponse); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/api/zksnark_grpc.pb.go b/gen/api/zksnark_grpc.pb.go index 367121b..b01e45a 100644 --- a/gen/api/zksnark_grpc.pb.go +++ b/gen/api/zksnark_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v5.28.0 // source: api/zksnark.proto @@ -15,8 +15,12 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + TronZksnark_CheckZksnarkProof_FullMethodName = "/protocol.TronZksnark/CheckZksnarkProof" +) // TronZksnarkClient is the client API for TronZksnark service. // @@ -34,8 +38,9 @@ func NewTronZksnarkClient(cc grpc.ClientConnInterface) TronZksnarkClient { } func (c *tronZksnarkClient) CheckZksnarkProof(ctx context.Context, in *ZksnarkRequest, opts ...grpc.CallOption) (*ZksnarkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ZksnarkResponse) - err := c.cc.Invoke(ctx, "/protocol.TronZksnark/CheckZksnarkProof", in, out, opts...) + err := c.cc.Invoke(ctx, TronZksnark_CheckZksnarkProof_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -44,20 +49,24 @@ func (c *tronZksnarkClient) CheckZksnarkProof(ctx context.Context, in *ZksnarkRe // TronZksnarkServer is the server API for TronZksnark service. // All implementations must embed UnimplementedTronZksnarkServer -// for forward compatibility +// for forward compatibility. type TronZksnarkServer interface { CheckZksnarkProof(context.Context, *ZksnarkRequest) (*ZksnarkResponse, error) mustEmbedUnimplementedTronZksnarkServer() } -// UnimplementedTronZksnarkServer must be embedded to have forward compatible implementations. -type UnimplementedTronZksnarkServer struct { -} +// UnimplementedTronZksnarkServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTronZksnarkServer struct{} func (UnimplementedTronZksnarkServer) CheckZksnarkProof(context.Context, *ZksnarkRequest) (*ZksnarkResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckZksnarkProof not implemented") } func (UnimplementedTronZksnarkServer) mustEmbedUnimplementedTronZksnarkServer() {} +func (UnimplementedTronZksnarkServer) testEmbeddedByValue() {} // UnsafeTronZksnarkServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TronZksnarkServer will @@ -67,6 +76,13 @@ type UnsafeTronZksnarkServer interface { } func RegisterTronZksnarkServer(s grpc.ServiceRegistrar, srv TronZksnarkServer) { + // If the following call pancis, it indicates UnimplementedTronZksnarkServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TronZksnark_ServiceDesc, srv) } @@ -80,7 +96,7 @@ func _TronZksnark_CheckZksnarkProof_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/protocol.TronZksnark/CheckZksnarkProof", + FullMethod: TronZksnark_CheckZksnarkProof_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TronZksnarkServer).CheckZksnarkProof(ctx, req.(*ZksnarkRequest)) diff --git a/gen/core/Discover.pb.go b/gen/core/Discover.pb.go index 817b117..3ec7d66 100644 --- a/gen/core/Discover.pb.go +++ b/gen/core/Discover.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/Discover.proto @@ -32,11 +32,9 @@ type Endpoint struct { func (x *Endpoint) Reset() { *x = Endpoint{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Discover_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Discover_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Endpoint) String() string { @@ -47,7 +45,7 @@ func (*Endpoint) ProtoMessage() {} func (x *Endpoint) ProtoReflect() protoreflect.Message { mi := &file_core_Discover_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -96,11 +94,9 @@ type PingMessage struct { func (x *PingMessage) Reset() { *x = PingMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Discover_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Discover_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PingMessage) String() string { @@ -111,7 +107,7 @@ func (*PingMessage) ProtoMessage() {} func (x *PingMessage) ProtoReflect() protoreflect.Message { mi := &file_core_Discover_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -166,11 +162,9 @@ type PongMessage struct { func (x *PongMessage) Reset() { *x = PongMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Discover_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Discover_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PongMessage) String() string { @@ -181,7 +175,7 @@ func (*PongMessage) ProtoMessage() {} func (x *PongMessage) ProtoReflect() protoreflect.Message { mi := &file_core_Discover_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -229,11 +223,9 @@ type FindNeighbours struct { func (x *FindNeighbours) Reset() { *x = FindNeighbours{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Discover_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Discover_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindNeighbours) String() string { @@ -244,7 +236,7 @@ func (*FindNeighbours) ProtoMessage() {} func (x *FindNeighbours) ProtoReflect() protoreflect.Message { mi := &file_core_Discover_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -292,11 +284,9 @@ type Neighbours struct { func (x *Neighbours) Reset() { *x = Neighbours{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Discover_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Discover_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Neighbours) String() string { @@ -307,7 +297,7 @@ func (*Neighbours) ProtoMessage() {} func (x *Neighbours) ProtoReflect() protoreflect.Message { mi := &file_core_Discover_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -354,11 +344,9 @@ type BackupMessage struct { func (x *BackupMessage) Reset() { *x = BackupMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Discover_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Discover_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BackupMessage) String() string { @@ -369,7 +357,7 @@ func (*BackupMessage) ProtoMessage() {} func (x *BackupMessage) ProtoReflect() protoreflect.Message { mi := &file_core_Discover_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -464,7 +452,7 @@ func file_core_Discover_proto_rawDescGZIP() []byte { } var file_core_Discover_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_core_Discover_proto_goTypes = []interface{}{ +var file_core_Discover_proto_goTypes = []any{ (*Endpoint)(nil), // 0: protocol.Endpoint (*PingMessage)(nil), // 1: protocol.PingMessage (*PongMessage)(nil), // 2: protocol.PongMessage @@ -491,80 +479,6 @@ func file_core_Discover_proto_init() { if File_core_Discover_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_Discover_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Endpoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Discover_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Discover_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PongMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Discover_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindNeighbours); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Discover_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Neighbours); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Discover_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BackupMessage); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/Tron.pb.go b/gen/core/Tron.pb.go index 3a84185..e073c98 100644 --- a/gen/core/Tron.pb.go +++ b/gen/core/Tron.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/Tron.proto @@ -947,11 +947,9 @@ type AccountId struct { func (x *AccountId) Reset() { *x = AccountId{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountId) String() string { @@ -962,7 +960,7 @@ func (*AccountId) ProtoMessage() {} func (x *AccountId) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1005,11 +1003,9 @@ type Vote struct { func (x *Vote) Reset() { *x = Vote{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Vote) String() string { @@ -1020,7 +1016,7 @@ func (*Vote) ProtoMessage() {} func (x *Vote) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1066,11 +1062,9 @@ type Proposal struct { func (x *Proposal) Reset() { *x = Proposal{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Proposal) String() string { @@ -1081,7 +1075,7 @@ func (*Proposal) ProtoMessage() {} func (x *Proposal) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1162,11 +1156,9 @@ type Exchange struct { func (x *Exchange) Reset() { *x = Exchange{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Exchange) String() string { @@ -1177,7 +1169,7 @@ func (*Exchange) ProtoMessage() {} func (x *Exchange) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1265,11 +1257,9 @@ type MarketOrder struct { func (x *MarketOrder) Reset() { *x = MarketOrder{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketOrder) String() string { @@ -1280,7 +1270,7 @@ func (*MarketOrder) ProtoMessage() {} func (x *MarketOrder) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1389,11 +1379,9 @@ type MarketOrderList struct { func (x *MarketOrderList) Reset() { *x = MarketOrderList{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketOrderList) String() string { @@ -1404,7 +1392,7 @@ func (*MarketOrderList) ProtoMessage() {} func (x *MarketOrderList) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1436,11 +1424,9 @@ type MarketOrderPairList struct { func (x *MarketOrderPairList) Reset() { *x = MarketOrderPairList{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketOrderPairList) String() string { @@ -1451,7 +1437,7 @@ func (*MarketOrderPairList) ProtoMessage() {} func (x *MarketOrderPairList) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1484,11 +1470,9 @@ type MarketOrderPair struct { func (x *MarketOrderPair) Reset() { *x = MarketOrderPair{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketOrderPair) String() string { @@ -1499,7 +1483,7 @@ func (*MarketOrderPair) ProtoMessage() {} func (x *MarketOrderPair) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1541,11 +1525,9 @@ type MarketAccountOrder struct { func (x *MarketAccountOrder) Reset() { *x = MarketAccountOrder{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketAccountOrder) String() string { @@ -1556,7 +1538,7 @@ func (*MarketAccountOrder) ProtoMessage() {} func (x *MarketAccountOrder) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1610,11 +1592,9 @@ type MarketPrice struct { func (x *MarketPrice) Reset() { *x = MarketPrice{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketPrice) String() string { @@ -1625,7 +1605,7 @@ func (*MarketPrice) ProtoMessage() {} func (x *MarketPrice) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1666,11 +1646,9 @@ type MarketPriceList struct { func (x *MarketPriceList) Reset() { *x = MarketPriceList{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketPriceList) String() string { @@ -1681,7 +1659,7 @@ func (*MarketPriceList) ProtoMessage() {} func (x *MarketPriceList) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1728,11 +1706,9 @@ type MarketOrderIdList struct { func (x *MarketOrderIdList) Reset() { *x = MarketOrderIdList{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketOrderIdList) String() string { @@ -1743,7 +1719,7 @@ func (*MarketOrderIdList) ProtoMessage() {} func (x *MarketOrderIdList) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1782,11 +1758,9 @@ type ChainParameters struct { func (x *ChainParameters) Reset() { *x = ChainParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainParameters) String() string { @@ -1797,7 +1771,7 @@ func (*ChainParameters) ProtoMessage() {} func (x *ChainParameters) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1890,11 +1864,9 @@ type Account struct { func (x *Account) Reset() { *x = Account{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Account) String() string { @@ -1905,7 +1877,7 @@ func (*Account) ProtoMessage() {} func (x *Account) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2232,11 +2204,9 @@ type Key struct { func (x *Key) Reset() { *x = Key{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Key) String() string { @@ -2247,7 +2217,7 @@ func (*Key) ProtoMessage() {} func (x *Key) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2291,11 +2261,9 @@ type DelegatedResource struct { func (x *DelegatedResource) Reset() { *x = DelegatedResource{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelegatedResource) String() string { @@ -2306,7 +2274,7 @@ func (*DelegatedResource) ProtoMessage() {} func (x *DelegatedResource) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2374,11 +2342,9 @@ type Authority struct { func (x *Authority) Reset() { *x = Authority{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Authority) String() string { @@ -2389,7 +2355,7 @@ func (*Authority) ProtoMessage() {} func (x *Authority) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2434,11 +2400,9 @@ type Permission struct { func (x *Permission) Reset() { *x = Permission{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Permission) String() string { @@ -2449,7 +2413,7 @@ func (*Permission) ProtoMessage() {} func (x *Permission) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2532,11 +2496,9 @@ type Witness struct { func (x *Witness) Reset() { *x = Witness{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Witness) String() string { @@ -2547,7 +2509,7 @@ func (*Witness) ProtoMessage() {} func (x *Witness) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2638,11 +2600,9 @@ type Votes struct { func (x *Votes) Reset() { *x = Votes{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Votes) String() string { @@ -2653,7 +2613,7 @@ func (*Votes) ProtoMessage() {} func (x *Votes) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2700,11 +2660,9 @@ type TXOutput struct { func (x *TXOutput) Reset() { *x = TXOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TXOutput) String() string { @@ -2715,7 +2673,7 @@ func (*TXOutput) ProtoMessage() {} func (x *TXOutput) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2755,11 +2713,9 @@ type TXInput struct { func (x *TXInput) Reset() { *x = TXInput{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TXInput) String() string { @@ -2770,7 +2726,7 @@ func (*TXInput) ProtoMessage() {} func (x *TXInput) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2809,11 +2765,9 @@ type TXOutputs struct { func (x *TXOutputs) Reset() { *x = TXOutputs{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TXOutputs) String() string { @@ -2824,7 +2778,7 @@ func (*TXOutputs) ProtoMessage() {} func (x *TXOutputs) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2863,11 +2817,9 @@ type ResourceReceipt struct { func (x *ResourceReceipt) Reset() { *x = ResourceReceipt{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResourceReceipt) String() string { @@ -2878,7 +2830,7 @@ func (*ResourceReceipt) ProtoMessage() {} func (x *ResourceReceipt) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2962,11 +2914,9 @@ type MarketOrderDetail struct { func (x *MarketOrderDetail) Reset() { *x = MarketOrderDetail{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketOrderDetail) String() string { @@ -2977,7 +2927,7 @@ func (*MarketOrderDetail) ProtoMessage() {} func (x *MarketOrderDetail) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3033,11 +2983,9 @@ type Transaction struct { func (x *Transaction) Reset() { *x = Transaction{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transaction) String() string { @@ -3048,7 +2996,7 @@ func (*Transaction) ProtoMessage() {} func (x *Transaction) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3117,11 +3065,9 @@ type TransactionInfo struct { func (x *TransactionInfo) Reset() { *x = TransactionInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionInfo) String() string { @@ -3132,7 +3078,7 @@ func (*TransactionInfo) ProtoMessage() {} func (x *TransactionInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3327,11 +3273,9 @@ type TransactionRet struct { func (x *TransactionRet) Reset() { *x = TransactionRet{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionRet) String() string { @@ -3342,7 +3286,7 @@ func (*TransactionRet) ProtoMessage() {} func (x *TransactionRet) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3388,11 +3332,9 @@ type Transactions struct { func (x *Transactions) Reset() { *x = Transactions{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transactions) String() string { @@ -3403,7 +3345,7 @@ func (*Transactions) ProtoMessage() {} func (x *Transactions) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3436,11 +3378,9 @@ type BlockHeader struct { func (x *BlockHeader) Reset() { *x = BlockHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockHeader) String() string { @@ -3451,7 +3391,7 @@ func (*BlockHeader) ProtoMessage() {} func (x *BlockHeader) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3492,11 +3432,9 @@ type Block struct { func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -3507,7 +3445,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3547,11 +3485,9 @@ type ChainInventory struct { func (x *ChainInventory) Reset() { *x = ChainInventory{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainInventory) String() string { @@ -3562,7 +3498,7 @@ func (*ChainInventory) ProtoMessage() {} func (x *ChainInventory) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3603,11 +3539,9 @@ type BlockInventory struct { func (x *BlockInventory) Reset() { *x = BlockInventory{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockInventory) String() string { @@ -3618,7 +3552,7 @@ func (*BlockInventory) ProtoMessage() {} func (x *BlockInventory) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3658,11 +3592,9 @@ type Inventory struct { func (x *Inventory) Reset() { *x = Inventory{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Inventory) String() string { @@ -3673,7 +3605,7 @@ func (*Inventory) ProtoMessage() {} func (x *Inventory) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3715,11 +3647,9 @@ type Items struct { func (x *Items) Reset() { *x = Items{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Items) String() string { @@ -3730,7 +3660,7 @@ func (*Items) ProtoMessage() {} func (x *Items) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3784,11 +3714,9 @@ type DynamicProperties struct { func (x *DynamicProperties) Reset() { *x = DynamicProperties{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DynamicProperties) String() string { @@ -3799,7 +3727,7 @@ func (*DynamicProperties) ProtoMessage() {} func (x *DynamicProperties) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3831,11 +3759,9 @@ type DisconnectMessage struct { func (x *DisconnectMessage) Reset() { *x = DisconnectMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DisconnectMessage) String() string { @@ -3846,7 +3772,7 @@ func (*DisconnectMessage) ProtoMessage() {} func (x *DisconnectMessage) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3888,11 +3814,9 @@ type HelloMessage struct { func (x *HelloMessage) Reset() { *x = HelloMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloMessage) String() string { @@ -3903,7 +3827,7 @@ func (*HelloMessage) ProtoMessage() {} func (x *HelloMessage) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4015,11 +3939,9 @@ type InternalTransaction struct { func (x *InternalTransaction) Reset() { *x = InternalTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InternalTransaction) String() string { @@ -4030,7 +3952,7 @@ func (*InternalTransaction) ProtoMessage() {} func (x *InternalTransaction) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4107,11 +4029,9 @@ type DelegatedResourceAccountIndex struct { func (x *DelegatedResourceAccountIndex) Reset() { *x = DelegatedResourceAccountIndex{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelegatedResourceAccountIndex) String() string { @@ -4122,7 +4042,7 @@ func (*DelegatedResourceAccountIndex) ProtoMessage() {} func (x *DelegatedResourceAccountIndex) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4186,11 +4106,9 @@ type NodeInfo struct { func (x *NodeInfo) Reset() { *x = NodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo) String() string { @@ -4201,7 +4119,7 @@ func (*NodeInfo) ProtoMessage() {} func (x *NodeInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4306,11 +4224,9 @@ type MetricsInfo struct { func (x *MetricsInfo) Reset() { *x = MetricsInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo) String() string { @@ -4321,7 +4237,7 @@ func (*MetricsInfo) ProtoMessage() {} func (x *MetricsInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4375,11 +4291,9 @@ type PBFTMessage struct { func (x *PBFTMessage) Reset() { *x = PBFTMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PBFTMessage) String() string { @@ -4390,7 +4304,7 @@ func (*PBFTMessage) ProtoMessage() {} func (x *PBFTMessage) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4430,11 +4344,9 @@ type PBFTCommitResult struct { func (x *PBFTCommitResult) Reset() { *x = PBFTCommitResult{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PBFTCommitResult) String() string { @@ -4445,7 +4357,7 @@ func (*PBFTCommitResult) ProtoMessage() {} func (x *PBFTCommitResult) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4484,11 +4396,9 @@ type SRL struct { func (x *SRL) Reset() { *x = SRL{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SRL) String() string { @@ -4499,7 +4409,7 @@ func (*SRL) ProtoMessage() {} func (x *SRL) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4532,11 +4442,9 @@ type ChainParameters_ChainParameter struct { func (x *ChainParameters_ChainParameter) Reset() { *x = ChainParameters_ChainParameter{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainParameters_ChainParameter) String() string { @@ -4547,7 +4455,7 @@ func (*ChainParameters_ChainParameter) ProtoMessage() {} func (x *ChainParameters_ChainParameter) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4588,11 +4496,9 @@ type Account_Frozen struct { func (x *Account_Frozen) Reset() { *x = Account_Frozen{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Account_Frozen) String() string { @@ -4603,7 +4509,7 @@ func (*Account_Frozen) ProtoMessage() {} func (x *Account_Frozen) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4658,11 +4564,9 @@ type Account_AccountResource struct { func (x *Account_AccountResource) Reset() { *x = Account_AccountResource{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Account_AccountResource) String() string { @@ -4673,7 +4577,7 @@ func (*Account_AccountResource) ProtoMessage() {} func (x *Account_AccountResource) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4783,11 +4687,9 @@ type Account_FreezeV2 struct { func (x *Account_FreezeV2) Reset() { *x = Account_FreezeV2{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Account_FreezeV2) String() string { @@ -4798,7 +4700,7 @@ func (*Account_FreezeV2) ProtoMessage() {} func (x *Account_FreezeV2) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4839,11 +4741,9 @@ type Account_UnFreezeV2 struct { func (x *Account_UnFreezeV2) Reset() { *x = Account_UnFreezeV2{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Account_UnFreezeV2) String() string { @@ -4854,7 +4754,7 @@ func (*Account_UnFreezeV2) ProtoMessage() {} func (x *Account_UnFreezeV2) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4902,11 +4802,9 @@ type TXInputRaw struct { func (x *TXInputRaw) Reset() { *x = TXInputRaw{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TXInputRaw) String() string { @@ -4917,7 +4815,7 @@ func (*TXInputRaw) ProtoMessage() {} func (x *TXInputRaw) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4967,11 +4865,9 @@ type Transaction_Contract struct { func (x *Transaction_Contract) Reset() { *x = Transaction_Contract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transaction_Contract) String() string { @@ -4982,7 +4878,7 @@ func (*Transaction_Contract) ProtoMessage() {} func (x *Transaction_Contract) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5056,11 +4952,9 @@ type Transaction_Result struct { func (x *Transaction_Result) Reset() { *x = Transaction_Result{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transaction_Result) String() string { @@ -5071,7 +4965,7 @@ func (*Transaction_Result) ProtoMessage() {} func (x *Transaction_Result) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5213,11 +5107,9 @@ type TransactionRaw struct { func (x *TransactionRaw) Reset() { *x = TransactionRaw{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionRaw) String() string { @@ -5228,7 +5120,7 @@ func (*TransactionRaw) ProtoMessage() {} func (x *TransactionRaw) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5325,11 +5217,9 @@ type TransactionInfo_Log struct { func (x *TransactionInfo_Log) Reset() { *x = TransactionInfo_Log{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionInfo_Log) String() string { @@ -5340,7 +5230,7 @@ func (*TransactionInfo_Log) ProtoMessage() {} func (x *TransactionInfo_Log) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5395,11 +5285,9 @@ type BlockHeaderRaw struct { func (x *BlockHeaderRaw) Reset() { *x = BlockHeaderRaw{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockHeaderRaw) String() string { @@ -5410,7 +5298,7 @@ func (*BlockHeaderRaw) ProtoMessage() {} func (x *BlockHeaderRaw) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5492,11 +5380,9 @@ type ChainInventory_BlockId struct { func (x *ChainInventory_BlockId) Reset() { *x = ChainInventory_BlockId{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainInventory_BlockId) String() string { @@ -5507,7 +5393,7 @@ func (*ChainInventory_BlockId) ProtoMessage() {} func (x *ChainInventory_BlockId) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5547,11 +5433,9 @@ type BlockInventory_BlockId struct { func (x *BlockInventory_BlockId) Reset() { *x = BlockInventory_BlockId{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockInventory_BlockId) String() string { @@ -5562,7 +5446,7 @@ func (*BlockInventory_BlockId) ProtoMessage() {} func (x *BlockInventory_BlockId) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5602,11 +5486,9 @@ type HelloMessage_BlockId struct { func (x *HelloMessage_BlockId) Reset() { *x = HelloMessage_BlockId{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloMessage_BlockId) String() string { @@ -5617,7 +5499,7 @@ func (*HelloMessage_BlockId) ProtoMessage() {} func (x *HelloMessage_BlockId) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5659,11 +5541,9 @@ type InternalTransaction_CallValueInfo struct { func (x *InternalTransaction_CallValueInfo) Reset() { *x = InternalTransaction_CallValueInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InternalTransaction_CallValueInfo) String() string { @@ -5674,7 +5554,7 @@ func (*InternalTransaction_CallValueInfo) ProtoMessage() {} func (x *InternalTransaction_CallValueInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5737,11 +5617,9 @@ type NodeInfo_PeerInfo struct { func (x *NodeInfo_PeerInfo) Reset() { *x = NodeInfo_PeerInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_PeerInfo) String() string { @@ -5752,7 +5630,7 @@ func (*NodeInfo_PeerInfo) ProtoMessage() {} func (x *NodeInfo_PeerInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5970,11 +5848,9 @@ type NodeInfo_ConfigNodeInfo struct { func (x *NodeInfo_ConfigNodeInfo) Reset() { *x = NodeInfo_ConfigNodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_ConfigNodeInfo) String() string { @@ -5985,7 +5861,7 @@ func (*NodeInfo_ConfigNodeInfo) ProtoMessage() {} func (x *NodeInfo_ConfigNodeInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6155,11 +6031,9 @@ type NodeInfo_MachineInfo struct { func (x *NodeInfo_MachineInfo) Reset() { *x = NodeInfo_MachineInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_MachineInfo) String() string { @@ -6170,7 +6044,7 @@ func (*NodeInfo_MachineInfo) ProtoMessage() {} func (x *NodeInfo_MachineInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6290,11 +6164,9 @@ type NodeInfo_MachineInfo_MemoryDescInfo struct { func (x *NodeInfo_MachineInfo_MemoryDescInfo) Reset() { *x = NodeInfo_MachineInfo_MemoryDescInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_MachineInfo_MemoryDescInfo) String() string { @@ -6305,7 +6177,7 @@ func (*NodeInfo_MachineInfo_MemoryDescInfo) ProtoMessage() {} func (x *NodeInfo_MachineInfo_MemoryDescInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6371,11 +6243,9 @@ type NodeInfo_MachineInfo_DeadLockThreadInfo struct { func (x *NodeInfo_MachineInfo_DeadLockThreadInfo) Reset() { *x = NodeInfo_MachineInfo_DeadLockThreadInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_MachineInfo_DeadLockThreadInfo) String() string { @@ -6386,7 +6256,7 @@ func (*NodeInfo_MachineInfo_DeadLockThreadInfo) ProtoMessage() {} func (x *NodeInfo_MachineInfo_DeadLockThreadInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6463,11 +6333,9 @@ type MetricsInfo_NodeInfo struct { func (x *MetricsInfo_NodeInfo) Reset() { *x = MetricsInfo_NodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NodeInfo) String() string { @@ -6478,7 +6346,7 @@ func (*MetricsInfo_NodeInfo) ProtoMessage() {} func (x *MetricsInfo_NodeInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6543,11 +6411,9 @@ type MetricsInfo_BlockChainInfo struct { func (x *MetricsInfo_BlockChainInfo) Reset() { *x = MetricsInfo_BlockChainInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_BlockChainInfo) String() string { @@ -6558,7 +6424,7 @@ func (*MetricsInfo_BlockChainInfo) ProtoMessage() {} func (x *MetricsInfo_BlockChainInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6678,11 +6544,9 @@ type MetricsInfo_RateInfo struct { func (x *MetricsInfo_RateInfo) Reset() { *x = MetricsInfo_RateInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_RateInfo) String() string { @@ -6693,7 +6557,7 @@ func (*MetricsInfo_RateInfo) ProtoMessage() {} func (x *MetricsInfo_RateInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6763,11 +6627,9 @@ type MetricsInfo_NetInfo struct { func (x *MetricsInfo_NetInfo) Reset() { *x = MetricsInfo_NetInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NetInfo) String() string { @@ -6778,7 +6640,7 @@ func (*MetricsInfo_NetInfo) ProtoMessage() {} func (x *MetricsInfo_NetInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6881,11 +6743,9 @@ type MetricsInfo_BlockChainInfo_Witness struct { func (x *MetricsInfo_BlockChainInfo_Witness) Reset() { *x = MetricsInfo_BlockChainInfo_Witness{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_BlockChainInfo_Witness) String() string { @@ -6896,7 +6756,7 @@ func (*MetricsInfo_BlockChainInfo_Witness) ProtoMessage() {} func (x *MetricsInfo_BlockChainInfo_Witness) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6937,11 +6797,9 @@ type MetricsInfo_BlockChainInfo_DupWitness struct { func (x *MetricsInfo_BlockChainInfo_DupWitness) Reset() { *x = MetricsInfo_BlockChainInfo_DupWitness{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_BlockChainInfo_DupWitness) String() string { @@ -6952,7 +6810,7 @@ func (*MetricsInfo_BlockChainInfo_DupWitness) ProtoMessage() {} func (x *MetricsInfo_BlockChainInfo_DupWitness) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7001,11 +6859,9 @@ type MetricsInfo_NetInfo_ApiInfo struct { func (x *MetricsInfo_NetInfo_ApiInfo) Reset() { *x = MetricsInfo_NetInfo_ApiInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NetInfo_ApiInfo) String() string { @@ -7016,7 +6872,7 @@ func (*MetricsInfo_NetInfo_ApiInfo) ProtoMessage() {} func (x *MetricsInfo_NetInfo_ApiInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7070,11 +6926,9 @@ type MetricsInfo_NetInfo_DisconnectionDetailInfo struct { func (x *MetricsInfo_NetInfo_DisconnectionDetailInfo) Reset() { *x = MetricsInfo_NetInfo_DisconnectionDetailInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NetInfo_DisconnectionDetailInfo) String() string { @@ -7085,7 +6939,7 @@ func (*MetricsInfo_NetInfo_DisconnectionDetailInfo) ProtoMessage() {} func (x *MetricsInfo_NetInfo_DisconnectionDetailInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7131,11 +6985,9 @@ type MetricsInfo_NetInfo_LatencyInfo struct { func (x *MetricsInfo_NetInfo_LatencyInfo) Reset() { *x = MetricsInfo_NetInfo_LatencyInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NetInfo_LatencyInfo) String() string { @@ -7146,7 +6998,7 @@ func (*MetricsInfo_NetInfo_LatencyInfo) ProtoMessage() {} func (x *MetricsInfo_NetInfo_LatencyInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7230,11 +7082,9 @@ type MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo struct { func (x *MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo) Reset() { *x = MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo) String() string { @@ -7245,7 +7095,7 @@ func (*MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo) ProtoMessage() {} func (x *MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7305,11 +7155,9 @@ type MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo struct { func (x *MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo) Reset() { *x = MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo) String() string { @@ -7320,7 +7168,7 @@ func (*MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo) ProtoMessage() {} func (x *MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[85] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7405,11 +7253,9 @@ type PBFTMessage_Raw struct { func (x *PBFTMessage_Raw) Reset() { *x = PBFTMessage_Raw{} - if protoimpl.UnsafeEnabled { - mi := &file_core_Tron_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_Tron_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PBFTMessage_Raw) String() string { @@ -7420,7 +7266,7 @@ func (*PBFTMessage_Raw) ProtoMessage() {} func (x *PBFTMessage_Raw) ProtoReflect() protoreflect.Message { mi := &file_core_Tron_proto_msgTypes[86] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8941,7 +8787,7 @@ func file_core_Tron_proto_rawDescGZIP() []byte { var file_core_Tron_proto_enumTypes = make([]protoimpl.EnumInfo, 14) var file_core_Tron_proto_msgTypes = make([]protoimpl.MessageInfo, 87) -var file_core_Tron_proto_goTypes = []interface{}{ +var file_core_Tron_proto_goTypes = []any{ (AccountType)(0), // 0: protocol.AccountType (ReasonCode)(0), // 1: protocol.ReasonCode (Proposal_State)(0), // 2: protocol.Proposal.State @@ -9164,932 +9010,6 @@ func file_core_Tron_proto_init() { } file_core_Discover_proto_init() file_core_contract_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_core_Tron_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Vote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Proposal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Exchange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketOrder); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketOrderList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketOrderPairList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketOrderPair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketAccountOrder); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketPrice); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketPriceList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketOrderIdList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChainParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Account); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Key); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelegatedResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Authority); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Permission); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Witness); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Votes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TXOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TXInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TXOutputs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceReceipt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketOrderDetail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionRet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transactions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChainInventory); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockInventory); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Inventory); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Items); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicProperties); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DisconnectMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HelloMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InternalTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelegatedResourceAccountIndex); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PBFTMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PBFTCommitResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SRL); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChainParameters_ChainParameter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Account_Frozen); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Account_AccountResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Account_FreezeV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Account_UnFreezeV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TXInputRaw); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transaction_Contract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transaction_Result); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionRaw); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionInfo_Log); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockHeaderRaw); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChainInventory_BlockId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockInventory_BlockId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HelloMessage_BlockId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InternalTransaction_CallValueInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeInfo_PeerInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeInfo_ConfigNodeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeInfo_MachineInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeInfo_MachineInfo_MemoryDescInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeInfo_MachineInfo_DeadLockThreadInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NodeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_BlockChainInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_RateInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NetInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_BlockChainInfo_Witness); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_BlockChainInfo_DupWitness); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NetInfo_ApiInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NetInfo_DisconnectionDetailInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NetInfo_LatencyInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NetInfo_ApiInfo_ApiDetailInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricsInfo_NetInfo_LatencyInfo_LatencyDetailInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_Tron_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PBFTMessage_Raw); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/TronInventoryItems.pb.go b/gen/core/TronInventoryItems.pb.go index dba1143..6b5a310 100644 --- a/gen/core/TronInventoryItems.pb.go +++ b/gen/core/TronInventoryItems.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/TronInventoryItems.proto @@ -31,11 +31,9 @@ type InventoryItems struct { func (x *InventoryItems) Reset() { *x = InventoryItems{} - if protoimpl.UnsafeEnabled { - mi := &file_core_TronInventoryItems_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_TronInventoryItems_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InventoryItems) String() string { @@ -46,7 +44,7 @@ func (*InventoryItems) ProtoMessage() {} func (x *InventoryItems) ProtoReflect() protoreflect.Message { mi := &file_core_TronInventoryItems_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,7 +103,7 @@ func file_core_TronInventoryItems_proto_rawDescGZIP() []byte { } var file_core_TronInventoryItems_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_core_TronInventoryItems_proto_goTypes = []interface{}{ +var file_core_TronInventoryItems_proto_goTypes = []any{ (*InventoryItems)(nil), // 0: protocol.InventoryItems } var file_core_TronInventoryItems_proto_depIdxs = []int32{ @@ -121,20 +119,6 @@ func file_core_TronInventoryItems_proto_init() { if File_core_TronInventoryItems_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_TronInventoryItems_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InventoryItems); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/account_contract.pb.go b/gen/core/account_contract.pb.go index 9c94d9e..76e0251 100644 --- a/gen/core/account_contract.pb.go +++ b/gen/core/account_contract.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/account_contract.proto @@ -46,11 +46,9 @@ type AccountCreateContract struct { func (x *AccountCreateContract) Reset() { *x = AccountCreateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_account_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_account_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountCreateContract) String() string { @@ -61,7 +59,7 @@ func (*AccountCreateContract) ProtoMessage() {} func (x *AccountCreateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_account_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -109,11 +107,9 @@ type AccountUpdateContract struct { func (x *AccountUpdateContract) Reset() { *x = AccountUpdateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_account_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_account_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountUpdateContract) String() string { @@ -124,7 +120,7 @@ func (*AccountUpdateContract) ProtoMessage() {} func (x *AccountUpdateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_account_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -165,11 +161,9 @@ type SetAccountIdContract struct { func (x *SetAccountIdContract) Reset() { *x = SetAccountIdContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_account_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_account_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetAccountIdContract) String() string { @@ -180,7 +174,7 @@ func (*SetAccountIdContract) ProtoMessage() {} func (x *SetAccountIdContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_account_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -222,11 +216,9 @@ type AccountPermissionUpdateContract struct { func (x *AccountPermissionUpdateContract) Reset() { *x = AccountPermissionUpdateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_account_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_account_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountPermissionUpdateContract) String() string { @@ -237,7 +229,7 @@ func (*AccountPermissionUpdateContract) ProtoMessage() {} func (x *AccountPermissionUpdateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_account_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -342,7 +334,7 @@ func file_core_contract_account_contract_proto_rawDescGZIP() []byte { } var file_core_contract_account_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_core_contract_account_contract_proto_goTypes = []interface{}{ +var file_core_contract_account_contract_proto_goTypes = []any{ (*AccountCreateContract)(nil), // 0: protocol.AccountCreateContract (*AccountUpdateContract)(nil), // 1: protocol.AccountUpdateContract (*SetAccountIdContract)(nil), // 2: protocol.SetAccountIdContract @@ -368,56 +360,6 @@ func file_core_contract_account_contract_proto_init() { return } file_core_Tron_proto_init() - if !protoimpl.UnsafeEnabled { - file_core_contract_account_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountCreateContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_account_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountUpdateContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_account_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetAccountIdContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_account_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountPermissionUpdateContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/asset_issue_contract.pb.go b/gen/core/asset_issue_contract.pb.go index 2e2ff42..2cd39f4 100644 --- a/gen/core/asset_issue_contract.pb.go +++ b/gen/core/asset_issue_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/asset_issue_contract.proto @@ -48,11 +48,9 @@ type AssetIssueContract struct { func (x *AssetIssueContract) Reset() { *x = AssetIssueContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_asset_issue_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_asset_issue_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetIssueContract) String() string { @@ -63,7 +61,7 @@ func (*AssetIssueContract) ProtoMessage() {} func (x *AssetIssueContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_asset_issue_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -224,11 +222,9 @@ type TransferAssetContract struct { func (x *TransferAssetContract) Reset() { *x = TransferAssetContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_asset_issue_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_asset_issue_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransferAssetContract) String() string { @@ -239,7 +235,7 @@ func (*TransferAssetContract) ProtoMessage() {} func (x *TransferAssetContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_asset_issue_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -292,11 +288,9 @@ type UnfreezeAssetContract struct { func (x *UnfreezeAssetContract) Reset() { *x = UnfreezeAssetContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_asset_issue_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_asset_issue_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnfreezeAssetContract) String() string { @@ -307,7 +301,7 @@ func (*UnfreezeAssetContract) ProtoMessage() {} func (x *UnfreezeAssetContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_asset_issue_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -343,11 +337,9 @@ type UpdateAssetContract struct { func (x *UpdateAssetContract) Reset() { *x = UpdateAssetContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_asset_issue_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_asset_issue_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateAssetContract) String() string { @@ -358,7 +350,7 @@ func (*UpdateAssetContract) ProtoMessage() {} func (x *UpdateAssetContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_asset_issue_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -421,11 +413,9 @@ type ParticipateAssetIssueContract struct { func (x *ParticipateAssetIssueContract) Reset() { *x = ParticipateAssetIssueContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_asset_issue_contract_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_asset_issue_contract_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParticipateAssetIssueContract) String() string { @@ -436,7 +426,7 @@ func (*ParticipateAssetIssueContract) ProtoMessage() {} func (x *ParticipateAssetIssueContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_asset_issue_contract_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -490,11 +480,9 @@ type AssetIssueContract_FrozenSupply struct { func (x *AssetIssueContract_FrozenSupply) Reset() { *x = AssetIssueContract_FrozenSupply{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_asset_issue_contract_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_asset_issue_contract_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetIssueContract_FrozenSupply) String() string { @@ -505,7 +493,7 @@ func (*AssetIssueContract_FrozenSupply) ProtoMessage() {} func (x *AssetIssueContract_FrozenSupply) ProtoReflect() protoreflect.Message { mi := &file_core_contract_asset_issue_contract_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -644,7 +632,7 @@ func file_core_contract_asset_issue_contract_proto_rawDescGZIP() []byte { } var file_core_contract_asset_issue_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_core_contract_asset_issue_contract_proto_goTypes = []interface{}{ +var file_core_contract_asset_issue_contract_proto_goTypes = []any{ (*AssetIssueContract)(nil), // 0: protocol.AssetIssueContract (*TransferAssetContract)(nil), // 1: protocol.TransferAssetContract (*UnfreezeAssetContract)(nil), // 2: protocol.UnfreezeAssetContract @@ -666,80 +654,6 @@ func file_core_contract_asset_issue_contract_proto_init() { if File_core_contract_asset_issue_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_asset_issue_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetIssueContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_asset_issue_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferAssetContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_asset_issue_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfreezeAssetContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_asset_issue_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateAssetContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_asset_issue_contract_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipateAssetIssueContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_asset_issue_contract_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetIssueContract_FrozenSupply); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/balance_contract.pb.go b/gen/core/balance_contract.pb.go index 023e7bd..99223ac 100644 --- a/gen/core/balance_contract.pb.go +++ b/gen/core/balance_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/balance_contract.proto @@ -34,11 +34,9 @@ type FreezeBalanceContract struct { func (x *FreezeBalanceContract) Reset() { *x = FreezeBalanceContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FreezeBalanceContract) String() string { @@ -49,7 +47,7 @@ func (*FreezeBalanceContract) ProtoMessage() {} func (x *FreezeBalanceContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -111,11 +109,9 @@ type UnfreezeBalanceContract struct { func (x *UnfreezeBalanceContract) Reset() { *x = UnfreezeBalanceContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnfreezeBalanceContract) String() string { @@ -126,7 +122,7 @@ func (*UnfreezeBalanceContract) ProtoMessage() {} func (x *UnfreezeBalanceContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,11 +168,9 @@ type WithdrawBalanceContract struct { func (x *WithdrawBalanceContract) Reset() { *x = WithdrawBalanceContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WithdrawBalanceContract) String() string { @@ -187,7 +181,7 @@ func (*WithdrawBalanceContract) ProtoMessage() {} func (x *WithdrawBalanceContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -221,11 +215,9 @@ type TransferContract struct { func (x *TransferContract) Reset() { *x = TransferContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransferContract) String() string { @@ -236,7 +228,7 @@ func (*TransferContract) ProtoMessage() {} func (x *TransferContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -285,11 +277,9 @@ type TransactionBalanceTrace struct { func (x *TransactionBalanceTrace) Reset() { *x = TransactionBalanceTrace{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionBalanceTrace) String() string { @@ -300,7 +290,7 @@ func (*TransactionBalanceTrace) ProtoMessage() {} func (x *TransactionBalanceTrace) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -355,11 +345,9 @@ type BlockBalanceTrace struct { func (x *BlockBalanceTrace) Reset() { *x = BlockBalanceTrace{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockBalanceTrace) String() string { @@ -370,7 +358,7 @@ func (*BlockBalanceTrace) ProtoMessage() {} func (x *BlockBalanceTrace) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -417,11 +405,9 @@ type AccountTrace struct { func (x *AccountTrace) Reset() { *x = AccountTrace{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountTrace) String() string { @@ -432,7 +418,7 @@ func (*AccountTrace) ProtoMessage() {} func (x *AccountTrace) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -471,11 +457,9 @@ type AccountIdentifier struct { func (x *AccountIdentifier) Reset() { *x = AccountIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountIdentifier) String() string { @@ -486,7 +470,7 @@ func (*AccountIdentifier) ProtoMessage() {} func (x *AccountIdentifier) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -519,11 +503,9 @@ type AccountBalanceRequest struct { func (x *AccountBalanceRequest) Reset() { *x = AccountBalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountBalanceRequest) String() string { @@ -534,7 +516,7 @@ func (*AccountBalanceRequest) ProtoMessage() {} func (x *AccountBalanceRequest) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -574,11 +556,9 @@ type AccountBalanceResponse struct { func (x *AccountBalanceResponse) Reset() { *x = AccountBalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountBalanceResponse) String() string { @@ -589,7 +569,7 @@ func (*AccountBalanceResponse) ProtoMessage() {} func (x *AccountBalanceResponse) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -630,11 +610,9 @@ type FreezeBalanceV2Contract struct { func (x *FreezeBalanceV2Contract) Reset() { *x = FreezeBalanceV2Contract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FreezeBalanceV2Contract) String() string { @@ -645,7 +623,7 @@ func (*FreezeBalanceV2Contract) ProtoMessage() {} func (x *FreezeBalanceV2Contract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -693,11 +671,9 @@ type UnfreezeBalanceV2Contract struct { func (x *UnfreezeBalanceV2Contract) Reset() { *x = UnfreezeBalanceV2Contract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnfreezeBalanceV2Contract) String() string { @@ -708,7 +684,7 @@ func (*UnfreezeBalanceV2Contract) ProtoMessage() {} func (x *UnfreezeBalanceV2Contract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -754,11 +730,9 @@ type WithdrawExpireUnfreezeContract struct { func (x *WithdrawExpireUnfreezeContract) Reset() { *x = WithdrawExpireUnfreezeContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WithdrawExpireUnfreezeContract) String() string { @@ -769,7 +743,7 @@ func (*WithdrawExpireUnfreezeContract) ProtoMessage() {} func (x *WithdrawExpireUnfreezeContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -806,11 +780,9 @@ type DelegateResourceContract struct { func (x *DelegateResourceContract) Reset() { *x = DelegateResourceContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelegateResourceContract) String() string { @@ -821,7 +793,7 @@ func (*DelegateResourceContract) ProtoMessage() {} func (x *DelegateResourceContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -891,11 +863,9 @@ type UnDelegateResourceContract struct { func (x *UnDelegateResourceContract) Reset() { *x = UnDelegateResourceContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnDelegateResourceContract) String() string { @@ -906,7 +876,7 @@ func (*UnDelegateResourceContract) ProtoMessage() {} func (x *UnDelegateResourceContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -959,11 +929,9 @@ type CancelAllUnfreezeV2Contract struct { func (x *CancelAllUnfreezeV2Contract) Reset() { *x = CancelAllUnfreezeV2Contract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CancelAllUnfreezeV2Contract) String() string { @@ -974,7 +942,7 @@ func (*CancelAllUnfreezeV2Contract) ProtoMessage() {} func (x *CancelAllUnfreezeV2Contract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1008,11 +976,9 @@ type TransactionBalanceTrace_Operation struct { func (x *TransactionBalanceTrace_Operation) Reset() { *x = TransactionBalanceTrace_Operation{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionBalanceTrace_Operation) String() string { @@ -1023,7 +989,7 @@ func (*TransactionBalanceTrace_Operation) ProtoMessage() {} func (x *TransactionBalanceTrace_Operation) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1070,11 +1036,9 @@ type BlockBalanceTrace_BlockIdentifier struct { func (x *BlockBalanceTrace_BlockIdentifier) Reset() { *x = BlockBalanceTrace_BlockIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_balance_contract_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_balance_contract_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockBalanceTrace_BlockIdentifier) String() string { @@ -1085,7 +1049,7 @@ func (*BlockBalanceTrace_BlockIdentifier) ProtoMessage() {} func (x *BlockBalanceTrace_BlockIdentifier) ProtoReflect() protoreflect.Message { mi := &file_core_contract_balance_contract_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1300,7 +1264,7 @@ func file_core_contract_balance_contract_proto_rawDescGZIP() []byte { } var file_core_contract_balance_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_core_contract_balance_contract_proto_goTypes = []interface{}{ +var file_core_contract_balance_contract_proto_goTypes = []any{ (*FreezeBalanceContract)(nil), // 0: protocol.FreezeBalanceContract (*UnfreezeBalanceContract)(nil), // 1: protocol.UnfreezeBalanceContract (*WithdrawBalanceContract)(nil), // 2: protocol.WithdrawBalanceContract @@ -1347,224 +1311,6 @@ func file_core_contract_balance_contract_proto_init() { return } file_core_contract_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_core_contract_balance_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FreezeBalanceContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfreezeBalanceContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawBalanceContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionBalanceTrace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockBalanceTrace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountTrace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountIdentifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountBalanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountBalanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FreezeBalanceV2Contract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfreezeBalanceV2Contract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawExpireUnfreezeContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelegateResourceContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnDelegateResourceContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelAllUnfreezeV2Contract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionBalanceTrace_Operation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_balance_contract_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockBalanceTrace_BlockIdentifier); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/common.pb.go b/gen/core/common.pb.go index fb451dc..65b6d02 100644 --- a/gen/core/common.pb.go +++ b/gen/core/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/common.proto @@ -98,7 +98,7 @@ func file_core_contract_common_proto_rawDescGZIP() []byte { } var file_core_contract_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_core_contract_common_proto_goTypes = []interface{}{ +var file_core_contract_common_proto_goTypes = []any{ (ResourceCode)(0), // 0: protocol.ResourceCode } var file_core_contract_common_proto_depIdxs = []int32{ diff --git a/gen/core/exchange_contract.pb.go b/gen/core/exchange_contract.pb.go index 5f5c59c..e611edf 100644 --- a/gen/core/exchange_contract.pb.go +++ b/gen/core/exchange_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/exchange_contract.proto @@ -34,11 +34,9 @@ type ExchangeCreateContract struct { func (x *ExchangeCreateContract) Reset() { *x = ExchangeCreateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_exchange_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_exchange_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExchangeCreateContract) String() string { @@ -49,7 +47,7 @@ func (*ExchangeCreateContract) ProtoMessage() {} func (x *ExchangeCreateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_exchange_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -112,11 +110,9 @@ type ExchangeInjectContract struct { func (x *ExchangeInjectContract) Reset() { *x = ExchangeInjectContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_exchange_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_exchange_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExchangeInjectContract) String() string { @@ -127,7 +123,7 @@ func (*ExchangeInjectContract) ProtoMessage() {} func (x *ExchangeInjectContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_exchange_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -183,11 +179,9 @@ type ExchangeWithdrawContract struct { func (x *ExchangeWithdrawContract) Reset() { *x = ExchangeWithdrawContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_exchange_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_exchange_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExchangeWithdrawContract) String() string { @@ -198,7 +192,7 @@ func (*ExchangeWithdrawContract) ProtoMessage() {} func (x *ExchangeWithdrawContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_exchange_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -255,11 +249,9 @@ type ExchangeTransactionContract struct { func (x *ExchangeTransactionContract) Reset() { *x = ExchangeTransactionContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_exchange_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_exchange_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExchangeTransactionContract) String() string { @@ -270,7 +262,7 @@ func (*ExchangeTransactionContract) ProtoMessage() {} func (x *ExchangeTransactionContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_exchange_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -391,7 +383,7 @@ func file_core_contract_exchange_contract_proto_rawDescGZIP() []byte { } var file_core_contract_exchange_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_core_contract_exchange_contract_proto_goTypes = []interface{}{ +var file_core_contract_exchange_contract_proto_goTypes = []any{ (*ExchangeCreateContract)(nil), // 0: protocol.ExchangeCreateContract (*ExchangeInjectContract)(nil), // 1: protocol.ExchangeInjectContract (*ExchangeWithdrawContract)(nil), // 2: protocol.ExchangeWithdrawContract @@ -410,56 +402,6 @@ func file_core_contract_exchange_contract_proto_init() { if File_core_contract_exchange_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_exchange_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeCreateContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_exchange_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeInjectContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_exchange_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeWithdrawContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_exchange_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeTransactionContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/market_contract.pb.go b/gen/core/market_contract.pb.go index 8aa5e9a..c7f65b7 100644 --- a/gen/core/market_contract.pb.go +++ b/gen/core/market_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/market_contract.proto @@ -34,11 +34,9 @@ type MarketSellAssetContract struct { func (x *MarketSellAssetContract) Reset() { *x = MarketSellAssetContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_market_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_market_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketSellAssetContract) String() string { @@ -49,7 +47,7 @@ func (*MarketSellAssetContract) ProtoMessage() {} func (x *MarketSellAssetContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_market_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -110,11 +108,9 @@ type MarketCancelOrderContract struct { func (x *MarketCancelOrderContract) Reset() { *x = MarketCancelOrderContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_market_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_market_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MarketCancelOrderContract) String() string { @@ -125,7 +121,7 @@ func (*MarketCancelOrderContract) ProtoMessage() {} func (x *MarketCancelOrderContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_market_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -200,7 +196,7 @@ func file_core_contract_market_contract_proto_rawDescGZIP() []byte { } var file_core_contract_market_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_core_contract_market_contract_proto_goTypes = []interface{}{ +var file_core_contract_market_contract_proto_goTypes = []any{ (*MarketSellAssetContract)(nil), // 0: protocol.MarketSellAssetContract (*MarketCancelOrderContract)(nil), // 1: protocol.MarketCancelOrderContract } @@ -217,32 +213,6 @@ func file_core_contract_market_contract_proto_init() { if File_core_contract_market_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_market_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketSellAssetContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_market_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketCancelOrderContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/proposal_contract.pb.go b/gen/core/proposal_contract.pb.go index 94b6ac2..fc386d5 100644 --- a/gen/core/proposal_contract.pb.go +++ b/gen/core/proposal_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/proposal_contract.proto @@ -32,11 +32,9 @@ type ProposalApproveContract struct { func (x *ProposalApproveContract) Reset() { *x = ProposalApproveContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_proposal_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_proposal_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProposalApproveContract) String() string { @@ -47,7 +45,7 @@ func (*ProposalApproveContract) ProtoMessage() {} func (x *ProposalApproveContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_proposal_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -94,11 +92,9 @@ type ProposalCreateContract struct { func (x *ProposalCreateContract) Reset() { *x = ProposalCreateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_proposal_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_proposal_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProposalCreateContract) String() string { @@ -109,7 +105,7 @@ func (*ProposalCreateContract) ProtoMessage() {} func (x *ProposalCreateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_proposal_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -149,11 +145,9 @@ type ProposalDeleteContract struct { func (x *ProposalDeleteContract) Reset() { *x = ProposalDeleteContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_proposal_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_proposal_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProposalDeleteContract) String() string { @@ -164,7 +158,7 @@ func (*ProposalDeleteContract) ProtoMessage() {} func (x *ProposalDeleteContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_proposal_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -247,7 +241,7 @@ func file_core_contract_proposal_contract_proto_rawDescGZIP() []byte { } var file_core_contract_proposal_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_core_contract_proposal_contract_proto_goTypes = []interface{}{ +var file_core_contract_proposal_contract_proto_goTypes = []any{ (*ProposalApproveContract)(nil), // 0: protocol.ProposalApproveContract (*ProposalCreateContract)(nil), // 1: protocol.ProposalCreateContract (*ProposalDeleteContract)(nil), // 2: protocol.ProposalDeleteContract @@ -267,44 +261,6 @@ func file_core_contract_proposal_contract_proto_init() { if File_core_contract_proposal_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_proposal_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProposalApproveContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_proposal_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProposalCreateContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_proposal_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProposalDeleteContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/shield_contract.pb.go b/gen/core/shield_contract.pb.go index 3b57214..1f2c912 100644 --- a/gen/core/shield_contract.pb.go +++ b/gen/core/shield_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/shield_contract.proto @@ -30,11 +30,9 @@ type AuthenticationPath struct { func (x *AuthenticationPath) Reset() { *x = AuthenticationPath{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthenticationPath) String() string { @@ -45,7 +43,7 @@ func (*AuthenticationPath) ProtoMessage() {} func (x *AuthenticationPath) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,11 +77,9 @@ type MerklePath struct { func (x *MerklePath) Reset() { *x = MerklePath{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MerklePath) String() string { @@ -94,7 +90,7 @@ func (*MerklePath) ProtoMessage() {} func (x *MerklePath) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -141,11 +137,9 @@ type OutputPoint struct { func (x *OutputPoint) Reset() { *x = OutputPoint{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OutputPoint) String() string { @@ -156,7 +150,7 @@ func (*OutputPoint) ProtoMessage() {} func (x *OutputPoint) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -196,11 +190,9 @@ type OutputPointInfo struct { func (x *OutputPointInfo) Reset() { *x = OutputPointInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OutputPointInfo) String() string { @@ -211,7 +203,7 @@ func (*OutputPointInfo) ProtoMessage() {} func (x *OutputPointInfo) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -250,11 +242,9 @@ type PedersenHash struct { func (x *PedersenHash) Reset() { *x = PedersenHash{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PedersenHash) String() string { @@ -265,7 +255,7 @@ func (*PedersenHash) ProtoMessage() {} func (x *PedersenHash) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -299,11 +289,9 @@ type IncrementalMerkleTree struct { func (x *IncrementalMerkleTree) Reset() { *x = IncrementalMerkleTree{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IncrementalMerkleTree) String() string { @@ -314,7 +302,7 @@ func (*IncrementalMerkleTree) ProtoMessage() {} func (x *IncrementalMerkleTree) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -365,11 +353,9 @@ type IncrementalMerkleVoucher struct { func (x *IncrementalMerkleVoucher) Reset() { *x = IncrementalMerkleVoucher{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IncrementalMerkleVoucher) String() string { @@ -380,7 +366,7 @@ func (*IncrementalMerkleVoucher) ProtoMessage() {} func (x *IncrementalMerkleVoucher) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -448,11 +434,9 @@ type IncrementalMerkleVoucherInfo struct { func (x *IncrementalMerkleVoucherInfo) Reset() { *x = IncrementalMerkleVoucherInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IncrementalMerkleVoucherInfo) String() string { @@ -463,7 +447,7 @@ func (*IncrementalMerkleVoucherInfo) ProtoMessage() {} func (x *IncrementalMerkleVoucherInfo) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -507,11 +491,9 @@ type SpendDescription struct { func (x *SpendDescription) Reset() { *x = SpendDescription{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpendDescription) String() string { @@ -522,7 +504,7 @@ func (*SpendDescription) ProtoMessage() {} func (x *SpendDescription) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -594,11 +576,9 @@ type ReceiveDescription struct { func (x *ReceiveDescription) Reset() { *x = ReceiveDescription{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReceiveDescription) String() string { @@ -609,7 +589,7 @@ func (*ReceiveDescription) ProtoMessage() {} func (x *ReceiveDescription) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -682,11 +662,9 @@ type ShieldedTransferContract struct { func (x *ShieldedTransferContract) Reset() { *x = ShieldedTransferContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_shield_contract_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_shield_contract_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShieldedTransferContract) String() string { @@ -697,7 +675,7 @@ func (*ShieldedTransferContract) ProtoMessage() {} func (x *ShieldedTransferContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_shield_contract_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -898,7 +876,7 @@ func file_core_contract_shield_contract_proto_rawDescGZIP() []byte { } var file_core_contract_shield_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_core_contract_shield_contract_proto_goTypes = []interface{}{ +var file_core_contract_shield_contract_proto_goTypes = []any{ (*AuthenticationPath)(nil), // 0: protocol.AuthenticationPath (*MerklePath)(nil), // 1: protocol.MerklePath (*OutputPoint)(nil), // 2: protocol.OutputPoint @@ -936,140 +914,6 @@ func file_core_contract_shield_contract_proto_init() { if File_core_contract_shield_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_shield_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthenticationPath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerklePath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutputPoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutputPointInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PedersenHash); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IncrementalMerkleTree); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IncrementalMerkleVoucher); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IncrementalMerkleVoucherInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpendDescription); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceiveDescription); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_shield_contract_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShieldedTransferContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/smart_contract.pb.go b/gen/core/smart_contract.pb.go index cc65475..62a350d 100644 --- a/gen/core/smart_contract.pb.go +++ b/gen/core/smart_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/smart_contract.proto @@ -156,11 +156,9 @@ type SmartContract struct { func (x *SmartContract) Reset() { *x = SmartContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SmartContract) String() string { @@ -171,7 +169,7 @@ func (*SmartContract) ProtoMessage() {} func (x *SmartContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -275,11 +273,9 @@ type ContractState struct { func (x *ContractState) Reset() { *x = ContractState{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContractState) String() string { @@ -290,7 +286,7 @@ func (*ContractState) ProtoMessage() {} func (x *ContractState) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -339,11 +335,9 @@ type CreateSmartContract struct { func (x *CreateSmartContract) Reset() { *x = CreateSmartContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateSmartContract) String() string { @@ -354,7 +348,7 @@ func (*CreateSmartContract) ProtoMessage() {} func (x *CreateSmartContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -412,11 +406,9 @@ type TriggerSmartContract struct { func (x *TriggerSmartContract) Reset() { *x = TriggerSmartContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TriggerSmartContract) String() string { @@ -427,7 +419,7 @@ func (*TriggerSmartContract) ProtoMessage() {} func (x *TriggerSmartContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -495,11 +487,9 @@ type ClearABIContract struct { func (x *ClearABIContract) Reset() { *x = ClearABIContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClearABIContract) String() string { @@ -510,7 +500,7 @@ func (*ClearABIContract) ProtoMessage() {} func (x *ClearABIContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -551,11 +541,9 @@ type UpdateSettingContract struct { func (x *UpdateSettingContract) Reset() { *x = UpdateSettingContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateSettingContract) String() string { @@ -566,7 +554,7 @@ func (*UpdateSettingContract) ProtoMessage() {} func (x *UpdateSettingContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -614,11 +602,9 @@ type UpdateEnergyLimitContract struct { func (x *UpdateEnergyLimitContract) Reset() { *x = UpdateEnergyLimitContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateEnergyLimitContract) String() string { @@ -629,7 +615,7 @@ func (*UpdateEnergyLimitContract) ProtoMessage() {} func (x *UpdateEnergyLimitContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -677,11 +663,9 @@ type SmartContractDataWrapper struct { func (x *SmartContractDataWrapper) Reset() { *x = SmartContractDataWrapper{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SmartContractDataWrapper) String() string { @@ -692,7 +676,7 @@ func (*SmartContractDataWrapper) ProtoMessage() {} func (x *SmartContractDataWrapper) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -738,11 +722,9 @@ type SmartContract_ABI struct { func (x *SmartContract_ABI) Reset() { *x = SmartContract_ABI{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SmartContract_ABI) String() string { @@ -753,7 +735,7 @@ func (*SmartContract_ABI) ProtoMessage() {} func (x *SmartContract_ABI) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -792,11 +774,9 @@ type SmartContract_ABI_Entry struct { func (x *SmartContract_ABI_Entry) Reset() { *x = SmartContract_ABI_Entry{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SmartContract_ABI_Entry) String() string { @@ -807,7 +787,7 @@ func (*SmartContract_ABI_Entry) ProtoMessage() {} func (x *SmartContract_ABI_Entry) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -890,11 +870,9 @@ type SmartContract_ABI_Entry_Param struct { func (x *SmartContract_ABI_Entry_Param) Reset() { *x = SmartContract_ABI_Entry_Param{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_smart_contract_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_smart_contract_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SmartContract_ABI_Entry_Param) String() string { @@ -905,7 +883,7 @@ func (*SmartContract_ABI_Entry_Param) ProtoMessage() {} func (x *SmartContract_ABI_Entry_Param) ProtoReflect() protoreflect.Message { mi := &file_core_contract_smart_contract_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1116,7 +1094,7 @@ func file_core_contract_smart_contract_proto_rawDescGZIP() []byte { var file_core_contract_smart_contract_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_core_contract_smart_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_core_contract_smart_contract_proto_goTypes = []interface{}{ +var file_core_contract_smart_contract_proto_goTypes = []any{ (SmartContract_ABI_Entry_EntryType)(0), // 0: protocol.SmartContract.ABI.Entry.EntryType (SmartContract_ABI_Entry_StateMutabilityType)(0), // 1: protocol.SmartContract.ABI.Entry.StateMutabilityType (*SmartContract)(nil), // 2: protocol.SmartContract @@ -1154,140 +1132,6 @@ func file_core_contract_smart_contract_proto_init() { return } file_core_Tron_proto_init() - if !protoimpl.UnsafeEnabled { - file_core_contract_smart_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SmartContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateSmartContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerSmartContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearABIContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateSettingContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateEnergyLimitContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SmartContractDataWrapper); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SmartContract_ABI); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SmartContract_ABI_Entry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_smart_contract_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SmartContract_ABI_Entry_Param); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/storage_contract.pb.go b/gen/core/storage_contract.pb.go index 357d40f..4581282 100644 --- a/gen/core/storage_contract.pb.go +++ b/gen/core/storage_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/storage_contract.proto @@ -31,11 +31,9 @@ type BuyStorageBytesContract struct { func (x *BuyStorageBytesContract) Reset() { *x = BuyStorageBytesContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_storage_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_storage_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuyStorageBytesContract) String() string { @@ -46,7 +44,7 @@ func (*BuyStorageBytesContract) ProtoMessage() {} func (x *BuyStorageBytesContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_storage_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -86,11 +84,9 @@ type BuyStorageContract struct { func (x *BuyStorageContract) Reset() { *x = BuyStorageContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_storage_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_storage_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuyStorageContract) String() string { @@ -101,7 +97,7 @@ func (*BuyStorageContract) ProtoMessage() {} func (x *BuyStorageContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_storage_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -141,11 +137,9 @@ type SellStorageContract struct { func (x *SellStorageContract) Reset() { *x = SellStorageContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_storage_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_storage_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SellStorageContract) String() string { @@ -156,7 +150,7 @@ func (*SellStorageContract) ProtoMessage() {} func (x *SellStorageContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_storage_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -196,11 +190,9 @@ type UpdateBrokerageContract struct { func (x *UpdateBrokerageContract) Reset() { *x = UpdateBrokerageContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_storage_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_storage_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateBrokerageContract) String() string { @@ -211,7 +203,7 @@ func (*UpdateBrokerageContract) ProtoMessage() {} func (x *UpdateBrokerageContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_storage_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -289,7 +281,7 @@ func file_core_contract_storage_contract_proto_rawDescGZIP() []byte { } var file_core_contract_storage_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_core_contract_storage_contract_proto_goTypes = []interface{}{ +var file_core_contract_storage_contract_proto_goTypes = []any{ (*BuyStorageBytesContract)(nil), // 0: protocol.BuyStorageBytesContract (*BuyStorageContract)(nil), // 1: protocol.BuyStorageContract (*SellStorageContract)(nil), // 2: protocol.SellStorageContract @@ -308,56 +300,6 @@ func file_core_contract_storage_contract_proto_init() { if File_core_contract_storage_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_storage_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuyStorageBytesContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_storage_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuyStorageContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_storage_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SellStorageContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_storage_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateBrokerageContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/vote_asset_contract.pb.go b/gen/core/vote_asset_contract.pb.go index f2aab7a..c4e6f44 100644 --- a/gen/core/vote_asset_contract.pb.go +++ b/gen/core/vote_asset_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/vote_asset_contract.proto @@ -33,11 +33,9 @@ type VoteAssetContract struct { func (x *VoteAssetContract) Reset() { *x = VoteAssetContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_vote_asset_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_vote_asset_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VoteAssetContract) String() string { @@ -48,7 +46,7 @@ func (*VoteAssetContract) ProtoMessage() {} func (x *VoteAssetContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_vote_asset_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -126,7 +124,7 @@ func file_core_contract_vote_asset_contract_proto_rawDescGZIP() []byte { } var file_core_contract_vote_asset_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_core_contract_vote_asset_contract_proto_goTypes = []interface{}{ +var file_core_contract_vote_asset_contract_proto_goTypes = []any{ (*VoteAssetContract)(nil), // 0: protocol.VoteAssetContract } var file_core_contract_vote_asset_contract_proto_depIdxs = []int32{ @@ -142,20 +140,6 @@ func file_core_contract_vote_asset_contract_proto_init() { if File_core_contract_vote_asset_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_vote_asset_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VoteAssetContract); 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{ File: protoimpl.DescBuilder{ diff --git a/gen/core/witness_contract.pb.go b/gen/core/witness_contract.pb.go index 04e2376..c110a85 100644 --- a/gen/core/witness_contract.pb.go +++ b/gen/core/witness_contract.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc v5.28.0 // source: core/contract/witness_contract.proto @@ -31,11 +31,9 @@ type WitnessCreateContract struct { func (x *WitnessCreateContract) Reset() { *x = WitnessCreateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_witness_contract_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_witness_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WitnessCreateContract) String() string { @@ -46,7 +44,7 @@ func (*WitnessCreateContract) ProtoMessage() {} func (x *WitnessCreateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_witness_contract_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -86,11 +84,9 @@ type WitnessUpdateContract struct { func (x *WitnessUpdateContract) Reset() { *x = WitnessUpdateContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_witness_contract_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_witness_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WitnessUpdateContract) String() string { @@ -101,7 +97,7 @@ func (*WitnessUpdateContract) ProtoMessage() {} func (x *WitnessUpdateContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_witness_contract_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -142,11 +138,9 @@ type VoteWitnessContract struct { func (x *VoteWitnessContract) Reset() { *x = VoteWitnessContract{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_witness_contract_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_witness_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VoteWitnessContract) String() string { @@ -157,7 +151,7 @@ func (*VoteWitnessContract) ProtoMessage() {} func (x *VoteWitnessContract) ProtoReflect() protoreflect.Message { mi := &file_core_contract_witness_contract_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -204,11 +198,9 @@ type VoteWitnessContract_Vote struct { func (x *VoteWitnessContract_Vote) Reset() { *x = VoteWitnessContract_Vote{} - if protoimpl.UnsafeEnabled { - mi := &file_core_contract_witness_contract_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_core_contract_witness_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VoteWitnessContract_Vote) String() string { @@ -219,7 +211,7 @@ func (*VoteWitnessContract_Vote) ProtoMessage() {} func (x *VoteWitnessContract_Vote) ProtoReflect() protoreflect.Message { mi := &file_core_contract_witness_contract_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -299,7 +291,7 @@ func file_core_contract_witness_contract_proto_rawDescGZIP() []byte { } var file_core_contract_witness_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_core_contract_witness_contract_proto_goTypes = []interface{}{ +var file_core_contract_witness_contract_proto_goTypes = []any{ (*WitnessCreateContract)(nil), // 0: protocol.WitnessCreateContract (*WitnessUpdateContract)(nil), // 1: protocol.WitnessUpdateContract (*VoteWitnessContract)(nil), // 2: protocol.VoteWitnessContract @@ -319,56 +311,6 @@ func file_core_contract_witness_contract_proto_init() { if File_core_contract_witness_contract_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_core_contract_witness_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WitnessCreateContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_witness_contract_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WitnessUpdateContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_witness_contract_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VoteWitnessContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_core_contract_witness_contract_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VoteWitnessContract_Vote); 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{ File: protoimpl.DescBuilder{