diff --git a/api/stratos/evm/v1/evm.pulsar.go b/api/stratos/evm/v1/evm.pulsar.go index 4923fa02..7628a78f 100644 --- a/api/stratos/evm/v1/evm.pulsar.go +++ b/api/stratos/evm/v1/evm.pulsar.go @@ -7219,7 +7219,7 @@ func (x *Params) GetFeeMarketParams() *FeeMarketParams { return nil } -// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values +// ChainConfig defines the Ethereum ChainConfig parameters using *sdkmath.Int values // instead of *big.Int. type ChainConfig struct { state protoimpl.MessageState diff --git a/api/stratos/pot/v1/query.pulsar.go b/api/stratos/pot/v1/query.pulsar.go index 41dcf699..00f0a4ad 100644 --- a/api/stratos/pot/v1/query.pulsar.go +++ b/api/stratos/pot/v1/query.pulsar.go @@ -423,14 +423,12 @@ func (x *fastReflection_QueryVolumeReportRequest) ProtoMethods() *protoiface.Met var ( md_QueryVolumeReportResponse protoreflect.MessageDescriptor fd_QueryVolumeReportResponse_report_info protoreflect.FieldDescriptor - fd_QueryVolumeReportResponse_height protoreflect.FieldDescriptor ) func init() { file_stratos_pot_v1_query_proto_init() md_QueryVolumeReportResponse = File_stratos_pot_v1_query_proto.Messages().ByName("QueryVolumeReportResponse") fd_QueryVolumeReportResponse_report_info = md_QueryVolumeReportResponse.Fields().ByName("report_info") - fd_QueryVolumeReportResponse_height = md_QueryVolumeReportResponse.Fields().ByName("height") } var _ protoreflect.Message = (*fastReflection_QueryVolumeReportResponse)(nil) @@ -504,12 +502,6 @@ func (x *fastReflection_QueryVolumeReportResponse) Range(f func(protoreflect.Fie return } } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_QueryVolumeReportResponse_height, value) { - return - } - } } // Has reports whether a field is populated. @@ -527,8 +519,6 @@ func (x *fastReflection_QueryVolumeReportResponse) Has(fd protoreflect.FieldDesc switch fd.FullName() { case "stratos.pot.v1.QueryVolumeReportResponse.report_info": return x.ReportInfo != nil - case "stratos.pot.v1.QueryVolumeReportResponse.height": - return x.Height != int64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryVolumeReportResponse")) @@ -547,8 +537,6 @@ func (x *fastReflection_QueryVolumeReportResponse) Clear(fd protoreflect.FieldDe switch fd.FullName() { case "stratos.pot.v1.QueryVolumeReportResponse.report_info": x.ReportInfo = nil - case "stratos.pot.v1.QueryVolumeReportResponse.height": - x.Height = int64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryVolumeReportResponse")) @@ -568,9 +556,6 @@ func (x *fastReflection_QueryVolumeReportResponse) Get(descriptor protoreflect.F case "stratos.pot.v1.QueryVolumeReportResponse.report_info": value := x.ReportInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "stratos.pot.v1.QueryVolumeReportResponse.height": - value := x.Height - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryVolumeReportResponse")) @@ -593,8 +578,6 @@ func (x *fastReflection_QueryVolumeReportResponse) Set(fd protoreflect.FieldDesc switch fd.FullName() { case "stratos.pot.v1.QueryVolumeReportResponse.report_info": x.ReportInfo = value.Message().Interface().(*ReportInfo) - case "stratos.pot.v1.QueryVolumeReportResponse.height": - x.Height = value.Int() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryVolumeReportResponse")) @@ -620,8 +603,6 @@ func (x *fastReflection_QueryVolumeReportResponse) Mutable(fd protoreflect.Field x.ReportInfo = new(ReportInfo) } return protoreflect.ValueOfMessage(x.ReportInfo.ProtoReflect()) - case "stratos.pot.v1.QueryVolumeReportResponse.height": - panic(fmt.Errorf("field height of message stratos.pot.v1.QueryVolumeReportResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryVolumeReportResponse")) @@ -638,8 +619,6 @@ func (x *fastReflection_QueryVolumeReportResponse) NewField(fd protoreflect.Fiel case "stratos.pot.v1.QueryVolumeReportResponse.report_info": m := new(ReportInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.pot.v1.QueryVolumeReportResponse.height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryVolumeReportResponse")) @@ -713,9 +692,6 @@ func (x *fastReflection_QueryVolumeReportResponse) ProtoMethods() *protoiface.Me l = options.Size(x.ReportInfo) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -745,11 +721,6 @@ func (x *fastReflection_QueryVolumeReportResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x10 - } if x.ReportInfo != nil { encoded, err := options.Marshal(x.ReportInfo) if err != nil { @@ -849,25 +820,6 @@ func (x *fastReflection_QueryVolumeReportResponse) ProtoMethods() *protoiface.Me return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2291,17 +2243,15 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryRewardsByEpochRequest protoreflect.MessageDescriptor - fd_QueryRewardsByEpochRequest_epoch protoreflect.FieldDescriptor - fd_QueryRewardsByEpochRequest_wallet_address protoreflect.FieldDescriptor - fd_QueryRewardsByEpochRequest_pagination protoreflect.FieldDescriptor + md_QueryRewardsByEpochRequest protoreflect.MessageDescriptor + fd_QueryRewardsByEpochRequest_epoch protoreflect.FieldDescriptor + fd_QueryRewardsByEpochRequest_pagination protoreflect.FieldDescriptor ) func init() { file_stratos_pot_v1_query_proto_init() md_QueryRewardsByEpochRequest = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByEpochRequest") fd_QueryRewardsByEpochRequest_epoch = md_QueryRewardsByEpochRequest.Fields().ByName("epoch") - fd_QueryRewardsByEpochRequest_wallet_address = md_QueryRewardsByEpochRequest.Fields().ByName("wallet_address") fd_QueryRewardsByEpochRequest_pagination = md_QueryRewardsByEpochRequest.Fields().ByName("pagination") } @@ -2376,12 +2326,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) Range(f func(protoreflect.Fi return } } - if x.WalletAddress != "" { - value := protoreflect.ValueOfString(x.WalletAddress) - if !f(fd_QueryRewardsByEpochRequest_wallet_address, value) { - return - } - } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) if !f(fd_QueryRewardsByEpochRequest_pagination, value) { @@ -2405,8 +2349,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) Has(fd protoreflect.FieldDes switch fd.FullName() { case "stratos.pot.v1.QueryRewardsByEpochRequest.epoch": return x.Epoch != int64(0) - case "stratos.pot.v1.QueryRewardsByEpochRequest.wallet_address": - return x.WalletAddress != "" case "stratos.pot.v1.QueryRewardsByEpochRequest.pagination": return x.Pagination != nil default: @@ -2427,8 +2369,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) Clear(fd protoreflect.FieldD switch fd.FullName() { case "stratos.pot.v1.QueryRewardsByEpochRequest.epoch": x.Epoch = int64(0) - case "stratos.pot.v1.QueryRewardsByEpochRequest.wallet_address": - x.WalletAddress = "" case "stratos.pot.v1.QueryRewardsByEpochRequest.pagination": x.Pagination = nil default: @@ -2450,9 +2390,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) Get(descriptor protoreflect. case "stratos.pot.v1.QueryRewardsByEpochRequest.epoch": value := x.Epoch return protoreflect.ValueOfInt64(value) - case "stratos.pot.v1.QueryRewardsByEpochRequest.wallet_address": - value := x.WalletAddress - return protoreflect.ValueOfString(value) case "stratos.pot.v1.QueryRewardsByEpochRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -2478,8 +2415,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) Set(fd protoreflect.FieldDes switch fd.FullName() { case "stratos.pot.v1.QueryRewardsByEpochRequest.epoch": x.Epoch = value.Int() - case "stratos.pot.v1.QueryRewardsByEpochRequest.wallet_address": - x.WalletAddress = value.Interface().(string) case "stratos.pot.v1.QueryRewardsByEpochRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: @@ -2509,8 +2444,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) Mutable(fd protoreflect.Fiel return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) case "stratos.pot.v1.QueryRewardsByEpochRequest.epoch": panic(fmt.Errorf("field epoch of message stratos.pot.v1.QueryRewardsByEpochRequest is not mutable")) - case "stratos.pot.v1.QueryRewardsByEpochRequest.wallet_address": - panic(fmt.Errorf("field wallet_address of message stratos.pot.v1.QueryRewardsByEpochRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByEpochRequest")) @@ -2526,8 +2459,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) NewField(fd protoreflect.Fie switch fd.FullName() { case "stratos.pot.v1.QueryRewardsByEpochRequest.epoch": return protoreflect.ValueOfInt64(int64(0)) - case "stratos.pot.v1.QueryRewardsByEpochRequest.wallet_address": - return protoreflect.ValueOfString("") case "stratos.pot.v1.QueryRewardsByEpochRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) @@ -2603,10 +2534,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) ProtoMethods() *protoiface.M if x.Epoch != 0 { n += 1 + runtime.Sov(uint64(x.Epoch)) } - l = len(x.WalletAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.Pagination != nil { l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) @@ -2652,13 +2579,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) ProtoMethods() *protoiface.M copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a - } - if len(x.WalletAddress) > 0 { - i -= len(x.WalletAddress) - copy(dAtA[i:], x.WalletAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletAddress))) - i-- dAtA[i] = 0x12 } if x.Epoch != 0 { @@ -2735,38 +2655,6 @@ func (x *fastReflection_QueryRewardsByEpochRequest) ProtoMethods() *protoiface.M } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.WalletAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } @@ -2891,7 +2779,6 @@ func (x *_QueryRewardsByEpochResponse_1_list) IsValid() bool { var ( md_QueryRewardsByEpochResponse protoreflect.MessageDescriptor fd_QueryRewardsByEpochResponse_rewards protoreflect.FieldDescriptor - fd_QueryRewardsByEpochResponse_height protoreflect.FieldDescriptor fd_QueryRewardsByEpochResponse_pagination protoreflect.FieldDescriptor ) @@ -2899,7 +2786,6 @@ func init() { file_stratos_pot_v1_query_proto_init() md_QueryRewardsByEpochResponse = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByEpochResponse") fd_QueryRewardsByEpochResponse_rewards = md_QueryRewardsByEpochResponse.Fields().ByName("rewards") - fd_QueryRewardsByEpochResponse_height = md_QueryRewardsByEpochResponse.Fields().ByName("height") fd_QueryRewardsByEpochResponse_pagination = md_QueryRewardsByEpochResponse.Fields().ByName("pagination") } @@ -2974,12 +2860,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) Range(f func(protoreflect.F return } } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_QueryRewardsByEpochResponse_height, value) { - return - } - } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) if !f(fd_QueryRewardsByEpochResponse_pagination, value) { @@ -3003,8 +2883,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) Has(fd protoreflect.FieldDe switch fd.FullName() { case "stratos.pot.v1.QueryRewardsByEpochResponse.rewards": return len(x.Rewards) != 0 - case "stratos.pot.v1.QueryRewardsByEpochResponse.height": - return x.Height != int64(0) case "stratos.pot.v1.QueryRewardsByEpochResponse.pagination": return x.Pagination != nil default: @@ -3025,8 +2903,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) Clear(fd protoreflect.Field switch fd.FullName() { case "stratos.pot.v1.QueryRewardsByEpochResponse.rewards": x.Rewards = nil - case "stratos.pot.v1.QueryRewardsByEpochResponse.height": - x.Height = int64(0) case "stratos.pot.v1.QueryRewardsByEpochResponse.pagination": x.Pagination = nil default: @@ -3051,9 +2927,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) Get(descriptor protoreflect } listValue := &_QueryRewardsByEpochResponse_1_list{list: &x.Rewards} return protoreflect.ValueOfList(listValue) - case "stratos.pot.v1.QueryRewardsByEpochResponse.height": - value := x.Height - return protoreflect.ValueOfInt64(value) case "stratos.pot.v1.QueryRewardsByEpochResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) @@ -3081,8 +2954,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) Set(fd protoreflect.FieldDe lv := value.List() clv := lv.(*_QueryRewardsByEpochResponse_1_list) x.Rewards = *clv.list - case "stratos.pot.v1.QueryRewardsByEpochResponse.height": - x.Height = value.Int() case "stratos.pot.v1.QueryRewardsByEpochResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: @@ -3116,8 +2987,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) Mutable(fd protoreflect.Fie x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "stratos.pot.v1.QueryRewardsByEpochResponse.height": - panic(fmt.Errorf("field height of message stratos.pot.v1.QueryRewardsByEpochResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByEpochResponse")) @@ -3134,8 +3003,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) NewField(fd protoreflect.Fi case "stratos.pot.v1.QueryRewardsByEpochResponse.rewards": list := []*Reward{} return protoreflect.ValueOfList(&_QueryRewardsByEpochResponse_1_list{list: &list}) - case "stratos.pot.v1.QueryRewardsByEpochResponse.height": - return protoreflect.ValueOfInt64(int64(0)) case "stratos.pot.v1.QueryRewardsByEpochResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) @@ -3214,9 +3081,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) ProtoMethods() *protoiface. n += 1 + l + runtime.Sov(uint64(l)) } } - if x.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } if x.Pagination != nil { l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) @@ -3262,12 +3126,7 @@ func (x *fastReflection_QueryRewardsByEpochResponse) ProtoMethods() *protoiface. copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a - } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if len(x.Rewards) > 0 { for iNdEx := len(x.Rewards) - 1; iNdEx >= 0; iNdEx-- { @@ -3369,25 +3228,6 @@ func (x *fastReflection_QueryRewardsByEpochResponse) ProtoMethods() *protoiface. } iNdEx = postIndex case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } @@ -3459,25 +3299,25 @@ func (x *fastReflection_QueryRewardsByEpochResponse) ProtoMethods() *protoiface. } var ( - md_QueryRewardsByOwnerRequest protoreflect.MessageDescriptor - fd_QueryRewardsByOwnerRequest_wallet_address protoreflect.FieldDescriptor + md_QueryRewardsByWalletRequest protoreflect.MessageDescriptor + fd_QueryRewardsByWalletRequest_wallet_address protoreflect.FieldDescriptor ) func init() { file_stratos_pot_v1_query_proto_init() - md_QueryRewardsByOwnerRequest = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByOwnerRequest") - fd_QueryRewardsByOwnerRequest_wallet_address = md_QueryRewardsByOwnerRequest.Fields().ByName("wallet_address") + md_QueryRewardsByWalletRequest = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByWalletRequest") + fd_QueryRewardsByWalletRequest_wallet_address = md_QueryRewardsByWalletRequest.Fields().ByName("wallet_address") } -var _ protoreflect.Message = (*fastReflection_QueryRewardsByOwnerRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryRewardsByWalletRequest)(nil) -type fastReflection_QueryRewardsByOwnerRequest QueryRewardsByOwnerRequest +type fastReflection_QueryRewardsByWalletRequest QueryRewardsByWalletRequest -func (x *QueryRewardsByOwnerRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRewardsByOwnerRequest)(x) +func (x *QueryRewardsByWalletRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletRequest)(x) } -func (x *QueryRewardsByOwnerRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryRewardsByWalletRequest) slowProtoReflect() protoreflect.Message { mi := &file_stratos_pot_v1_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3489,43 +3329,43 @@ func (x *QueryRewardsByOwnerRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRewardsByOwnerRequest_messageType fastReflection_QueryRewardsByOwnerRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRewardsByOwnerRequest_messageType{} +var _fastReflection_QueryRewardsByWalletRequest_messageType fastReflection_QueryRewardsByWalletRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRewardsByWalletRequest_messageType{} -type fastReflection_QueryRewardsByOwnerRequest_messageType struct{} +type fastReflection_QueryRewardsByWalletRequest_messageType struct{} -func (x fastReflection_QueryRewardsByOwnerRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRewardsByOwnerRequest)(nil) +func (x fastReflection_QueryRewardsByWalletRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletRequest)(nil) } -func (x fastReflection_QueryRewardsByOwnerRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRewardsByOwnerRequest) +func (x fastReflection_QueryRewardsByWalletRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletRequest) } -func (x fastReflection_QueryRewardsByOwnerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardsByOwnerRequest +func (x fastReflection_QueryRewardsByWalletRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRewardsByOwnerRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardsByOwnerRequest +func (x *fastReflection_QueryRewardsByWalletRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRewardsByOwnerRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRewardsByOwnerRequest_messageType +func (x *fastReflection_QueryRewardsByWalletRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRewardsByWalletRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRewardsByOwnerRequest) New() protoreflect.Message { - return new(fastReflection_QueryRewardsByOwnerRequest) +func (x *fastReflection_QueryRewardsByWalletRequest) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRewardsByOwnerRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRewardsByOwnerRequest)(x) +func (x *fastReflection_QueryRewardsByWalletRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRewardsByWalletRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3533,10 +3373,10 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRewardsByOwnerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryRewardsByWalletRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.WalletAddress != "" { value := protoreflect.ValueOfString(x.WalletAddress) - if !f(fd_QueryRewardsByOwnerRequest_wallet_address, value) { + if !f(fd_QueryRewardsByWalletRequest_wallet_address, value) { return } } @@ -3553,15 +3393,15 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRewardsByOwnerRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryRewardsByWalletRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerRequest.wallet_address": + case "stratos.pot.v1.QueryRewardsByWalletRequest.wallet_address": return x.WalletAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletRequest")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletRequest does not contain field %s", fd.FullName())) } } @@ -3571,15 +3411,15 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryRewardsByWalletRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerRequest.wallet_address": + case "stratos.pot.v1.QueryRewardsByWalletRequest.wallet_address": x.WalletAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletRequest")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletRequest does not contain field %s", fd.FullName())) } } @@ -3589,16 +3429,16 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRewardsByOwnerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardsByWalletRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerRequest.wallet_address": + case "stratos.pot.v1.QueryRewardsByWalletRequest.wallet_address": value := x.WalletAddress return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletRequest")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletRequest does not contain field %s", descriptor.FullName())) } } @@ -3612,15 +3452,15 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryRewardsByWalletRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerRequest.wallet_address": + case "stratos.pot.v1.QueryRewardsByWalletRequest.wallet_address": x.WalletAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletRequest")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletRequest does not contain field %s", fd.FullName())) } } @@ -3634,40 +3474,40 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardsByWalletRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerRequest.wallet_address": - panic(fmt.Errorf("field wallet_address of message stratos.pot.v1.QueryRewardsByOwnerRequest is not mutable")) + case "stratos.pot.v1.QueryRewardsByWalletRequest.wallet_address": + panic(fmt.Errorf("field wallet_address of message stratos.pot.v1.QueryRewardsByWalletRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletRequest")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRewardsByOwnerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardsByWalletRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerRequest.wallet_address": + case "stratos.pot.v1.QueryRewardsByWalletRequest.wallet_address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletRequest")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRewardsByOwnerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryRewardsByWalletRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.QueryRewardsByOwnerRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.QueryRewardsByWalletRequest", d.FullName())) } panic("unreachable") } @@ -3675,7 +3515,7 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRewardsByOwnerRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryRewardsByWalletRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3686,7 +3526,7 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryRewardsByWalletRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3698,7 +3538,7 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRewardsByOwnerRequest) IsValid() bool { +func (x *fastReflection_QueryRewardsByWalletRequest) IsValid() bool { return x != nil } @@ -3708,9 +3548,9 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRewardsByOwnerRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryRewardsByWalletRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRewardsByOwnerRequest) + x := input.Message.Interface().(*QueryRewardsByWalletRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3736,7 +3576,7 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardsByOwnerRequest) + x := input.Message.Interface().(*QueryRewardsByWalletRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3773,7 +3613,7 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardsByOwnerRequest) + x := input.Message.Interface().(*QueryRewardsByWalletRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3805,10 +3645,10 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByOwnerRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3879,27 +3719,25 @@ func (x *fastReflection_QueryRewardsByOwnerRequest) ProtoMethods() *protoiface.M } var ( - md_QueryRewardsByOwnerResponse protoreflect.MessageDescriptor - fd_QueryRewardsByOwnerResponse_rewards protoreflect.FieldDescriptor - fd_QueryRewardsByOwnerResponse_height protoreflect.FieldDescriptor + md_QueryRewardsByWalletResponse protoreflect.MessageDescriptor + fd_QueryRewardsByWalletResponse_rewards protoreflect.FieldDescriptor ) func init() { file_stratos_pot_v1_query_proto_init() - md_QueryRewardsByOwnerResponse = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByOwnerResponse") - fd_QueryRewardsByOwnerResponse_rewards = md_QueryRewardsByOwnerResponse.Fields().ByName("rewards") - fd_QueryRewardsByOwnerResponse_height = md_QueryRewardsByOwnerResponse.Fields().ByName("height") + md_QueryRewardsByWalletResponse = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByWalletResponse") + fd_QueryRewardsByWalletResponse_rewards = md_QueryRewardsByWalletResponse.Fields().ByName("rewards") } -var _ protoreflect.Message = (*fastReflection_QueryRewardsByOwnerResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryRewardsByWalletResponse)(nil) -type fastReflection_QueryRewardsByOwnerResponse QueryRewardsByOwnerResponse +type fastReflection_QueryRewardsByWalletResponse QueryRewardsByWalletResponse -func (x *QueryRewardsByOwnerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRewardsByOwnerResponse)(x) +func (x *QueryRewardsByWalletResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletResponse)(x) } -func (x *QueryRewardsByOwnerResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryRewardsByWalletResponse) slowProtoReflect() protoreflect.Message { mi := &file_stratos_pot_v1_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3911,43 +3749,43 @@ func (x *QueryRewardsByOwnerResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRewardsByOwnerResponse_messageType fastReflection_QueryRewardsByOwnerResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryRewardsByOwnerResponse_messageType{} +var _fastReflection_QueryRewardsByWalletResponse_messageType fastReflection_QueryRewardsByWalletResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRewardsByWalletResponse_messageType{} -type fastReflection_QueryRewardsByOwnerResponse_messageType struct{} +type fastReflection_QueryRewardsByWalletResponse_messageType struct{} -func (x fastReflection_QueryRewardsByOwnerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRewardsByOwnerResponse)(nil) +func (x fastReflection_QueryRewardsByWalletResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletResponse)(nil) } -func (x fastReflection_QueryRewardsByOwnerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRewardsByOwnerResponse) +func (x fastReflection_QueryRewardsByWalletResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletResponse) } -func (x fastReflection_QueryRewardsByOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardsByOwnerResponse +func (x fastReflection_QueryRewardsByWalletResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRewardsByOwnerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardsByOwnerResponse +func (x *fastReflection_QueryRewardsByWalletResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRewardsByOwnerResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryRewardsByOwnerResponse_messageType +func (x *fastReflection_QueryRewardsByWalletResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRewardsByWalletResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRewardsByOwnerResponse) New() protoreflect.Message { - return new(fastReflection_QueryRewardsByOwnerResponse) +func (x *fastReflection_QueryRewardsByWalletResponse) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRewardsByOwnerResponse) Interface() protoreflect.ProtoMessage { - return (*QueryRewardsByOwnerResponse)(x) +func (x *fastReflection_QueryRewardsByWalletResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRewardsByWalletResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3955,16 +3793,10 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRewardsByOwnerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryRewardsByWalletResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Rewards != nil { value := protoreflect.ValueOfMessage(x.Rewards.ProtoReflect()) - if !f(fd_QueryRewardsByOwnerResponse_rewards, value) { - return - } - } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_QueryRewardsByOwnerResponse_height, value) { + if !f(fd_QueryRewardsByWalletResponse_rewards, value) { return } } @@ -3981,17 +3813,15 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRewardsByOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryRewardsByWalletResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerResponse.rewards": + case "stratos.pot.v1.QueryRewardsByWalletResponse.rewards": return x.Rewards != nil - case "stratos.pot.v1.QueryRewardsByOwnerResponse.height": - return x.Height != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletResponse")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletResponse does not contain field %s", fd.FullName())) } } @@ -4001,17 +3831,15 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryRewardsByWalletResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerResponse.rewards": + case "stratos.pot.v1.QueryRewardsByWalletResponse.rewards": x.Rewards = nil - case "stratos.pot.v1.QueryRewardsByOwnerResponse.height": - x.Height = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletResponse")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletResponse does not contain field %s", fd.FullName())) } } @@ -4021,19 +3849,16 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRewardsByOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardsByWalletResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerResponse.rewards": + case "stratos.pot.v1.QueryRewardsByWalletResponse.rewards": value := x.Rewards return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "stratos.pot.v1.QueryRewardsByOwnerResponse.height": - value := x.Height - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletResponse")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletResponse does not contain field %s", descriptor.FullName())) } } @@ -4047,17 +3872,15 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryRewardsByWalletResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerResponse.rewards": - x.Rewards = value.Message().Interface().(*RewardByOwner) - case "stratos.pot.v1.QueryRewardsByOwnerResponse.height": - x.Height = value.Int() + case "stratos.pot.v1.QueryRewardsByWalletResponse.rewards": + x.Rewards = value.Message().Interface().(*RewardByWallet) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletResponse")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletResponse does not contain field %s", fd.FullName())) } } @@ -4071,48 +3894,44 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardsByWalletResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerResponse.rewards": + case "stratos.pot.v1.QueryRewardsByWalletResponse.rewards": if x.Rewards == nil { - x.Rewards = new(RewardByOwner) + x.Rewards = new(RewardByWallet) } return protoreflect.ValueOfMessage(x.Rewards.ProtoReflect()) - case "stratos.pot.v1.QueryRewardsByOwnerResponse.height": - panic(fmt.Errorf("field height of message stratos.pot.v1.QueryRewardsByOwnerResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletResponse")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRewardsByOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardsByWalletResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "stratos.pot.v1.QueryRewardsByOwnerResponse.rewards": - m := new(RewardByOwner) + case "stratos.pot.v1.QueryRewardsByWalletResponse.rewards": + m := new(RewardByWallet) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.pot.v1.QueryRewardsByOwnerResponse.height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByOwnerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletResponse")) } - panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByOwnerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRewardsByOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryRewardsByWalletResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.QueryRewardsByOwnerResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.QueryRewardsByWalletResponse", d.FullName())) } panic("unreachable") } @@ -4120,7 +3939,7 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRewardsByOwnerResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryRewardsByWalletResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4131,7 +3950,7 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardsByOwnerResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryRewardsByWalletResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4143,7 +3962,7 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRewardsByOwnerResponse) IsValid() bool { +func (x *fastReflection_QueryRewardsByWalletResponse) IsValid() bool { return x != nil } @@ -4153,9 +3972,9 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryRewardsByWalletResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRewardsByOwnerResponse) + x := input.Message.Interface().(*QueryRewardsByWalletResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4171,9 +3990,6 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. l = options.Size(x.Rewards) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4184,7 +4000,7 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardsByOwnerResponse) + x := input.Message.Interface().(*QueryRewardsByWalletResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4203,11 +4019,6 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x10 - } if x.Rewards != nil { encoded, err := options.Marshal(x.Rewards) if err != nil { @@ -4233,7 +4044,1093 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardsByOwnerResponse) + x := input.Message.Interface().(*QueryRewardsByWalletResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Rewards == nil { + x.Rewards = &RewardByWallet{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rewards); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryRewardsByWalletAndEpochRequest protoreflect.MessageDescriptor + fd_QueryRewardsByWalletAndEpochRequest_wallet_address protoreflect.FieldDescriptor + fd_QueryRewardsByWalletAndEpochRequest_epoch protoreflect.FieldDescriptor + fd_QueryRewardsByWalletAndEpochRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_stratos_pot_v1_query_proto_init() + md_QueryRewardsByWalletAndEpochRequest = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByWalletAndEpochRequest") + fd_QueryRewardsByWalletAndEpochRequest_wallet_address = md_QueryRewardsByWalletAndEpochRequest.Fields().ByName("wallet_address") + fd_QueryRewardsByWalletAndEpochRequest_epoch = md_QueryRewardsByWalletAndEpochRequest.Fields().ByName("epoch") + fd_QueryRewardsByWalletAndEpochRequest_pagination = md_QueryRewardsByWalletAndEpochRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRewardsByWalletAndEpochRequest)(nil) + +type fastReflection_QueryRewardsByWalletAndEpochRequest QueryRewardsByWalletAndEpochRequest + +func (x *QueryRewardsByWalletAndEpochRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletAndEpochRequest)(x) +} + +func (x *QueryRewardsByWalletAndEpochRequest) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_pot_v1_query_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryRewardsByWalletAndEpochRequest_messageType fastReflection_QueryRewardsByWalletAndEpochRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRewardsByWalletAndEpochRequest_messageType{} + +type fastReflection_QueryRewardsByWalletAndEpochRequest_messageType struct{} + +func (x fastReflection_QueryRewardsByWalletAndEpochRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletAndEpochRequest)(nil) +} +func (x fastReflection_QueryRewardsByWalletAndEpochRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletAndEpochRequest) +} +func (x fastReflection_QueryRewardsByWalletAndEpochRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletAndEpochRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletAndEpochRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRewardsByWalletAndEpochRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletAndEpochRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRewardsByWalletAndEpochRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.WalletAddress != "" { + value := protoreflect.ValueOfString(x.WalletAddress) + if !f(fd_QueryRewardsByWalletAndEpochRequest_wallet_address, value) { + return + } + } + if x.Epoch != int64(0) { + value := protoreflect.ValueOfInt64(x.Epoch) + if !f(fd_QueryRewardsByWalletAndEpochRequest_epoch, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRewardsByWalletAndEpochRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.wallet_address": + return x.WalletAddress != "" + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.epoch": + return x.Epoch != int64(0) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.wallet_address": + x.WalletAddress = "" + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.epoch": + x.Epoch = int64(0) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.wallet_address": + value := x.WalletAddress + return protoreflect.ValueOfString(value) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.epoch": + value := x.Epoch + return protoreflect.ValueOfInt64(value) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.wallet_address": + x.WalletAddress = value.Interface().(string) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.epoch": + x.Epoch = value.Int() + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.wallet_address": + panic(fmt.Errorf("field wallet_address of message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest is not mutable")) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.epoch": + panic(fmt.Errorf("field epoch of message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.wallet_address": + return protoreflect.ValueOfString("") + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.epoch": + return protoreflect.ValueOfInt64(int64(0)) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.QueryRewardsByWalletAndEpochRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryRewardsByWalletAndEpochRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRewardsByWalletAndEpochRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.WalletAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Epoch != 0 { + n += 1 + runtime.Sov(uint64(x.Epoch)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryRewardsByWalletAndEpochRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.Epoch != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Epoch)) + i-- + dAtA[i] = 0x10 + } + if len(x.WalletAddress) > 0 { + i -= len(x.WalletAddress) + copy(dAtA[i:], x.WalletAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletAddress))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryRewardsByWalletAndEpochRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletAndEpochRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletAndEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.WalletAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + x.Epoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Epoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryRewardsByWalletAndEpochResponse_1_list)(nil) + +type _QueryRewardsByWalletAndEpochResponse_1_list struct { + list *[]*Reward +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Reward) + (*x.list)[i] = concreteValue +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Reward) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Reward) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) NewElement() protoreflect.Value { + v := new(Reward) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRewardsByWalletAndEpochResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryRewardsByWalletAndEpochResponse protoreflect.MessageDescriptor + fd_QueryRewardsByWalletAndEpochResponse_rewards protoreflect.FieldDescriptor + fd_QueryRewardsByWalletAndEpochResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_stratos_pot_v1_query_proto_init() + md_QueryRewardsByWalletAndEpochResponse = File_stratos_pot_v1_query_proto.Messages().ByName("QueryRewardsByWalletAndEpochResponse") + fd_QueryRewardsByWalletAndEpochResponse_rewards = md_QueryRewardsByWalletAndEpochResponse.Fields().ByName("rewards") + fd_QueryRewardsByWalletAndEpochResponse_pagination = md_QueryRewardsByWalletAndEpochResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRewardsByWalletAndEpochResponse)(nil) + +type fastReflection_QueryRewardsByWalletAndEpochResponse QueryRewardsByWalletAndEpochResponse + +func (x *QueryRewardsByWalletAndEpochResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletAndEpochResponse)(x) +} + +func (x *QueryRewardsByWalletAndEpochResponse) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_pot_v1_query_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryRewardsByWalletAndEpochResponse_messageType fastReflection_QueryRewardsByWalletAndEpochResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRewardsByWalletAndEpochResponse_messageType{} + +type fastReflection_QueryRewardsByWalletAndEpochResponse_messageType struct{} + +func (x fastReflection_QueryRewardsByWalletAndEpochResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRewardsByWalletAndEpochResponse)(nil) +} +func (x fastReflection_QueryRewardsByWalletAndEpochResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletAndEpochResponse) +} +func (x fastReflection_QueryRewardsByWalletAndEpochResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletAndEpochResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardsByWalletAndEpochResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRewardsByWalletAndEpochResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) New() protoreflect.Message { + return new(fastReflection_QueryRewardsByWalletAndEpochResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRewardsByWalletAndEpochResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Rewards) != 0 { + value := protoreflect.ValueOfList(&_QueryRewardsByWalletAndEpochResponse_1_list{list: &x.Rewards}) + if !f(fd_QueryRewardsByWalletAndEpochResponse_rewards, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRewardsByWalletAndEpochResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards": + return len(x.Rewards) != 0 + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards": + x.Rewards = nil + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards": + if len(x.Rewards) == 0 { + return protoreflect.ValueOfList(&_QueryRewardsByWalletAndEpochResponse_1_list{}) + } + listValue := &_QueryRewardsByWalletAndEpochResponse_1_list{list: &x.Rewards} + return protoreflect.ValueOfList(listValue) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards": + lv := value.List() + clv := lv.(*_QueryRewardsByWalletAndEpochResponse_1_list) + x.Rewards = *clv.list + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards": + if x.Rewards == nil { + x.Rewards = []*Reward{} + } + value := &_QueryRewardsByWalletAndEpochResponse_1_list{list: &x.Rewards} + return protoreflect.ValueOfList(value) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards": + list := []*Reward{} + return protoreflect.ValueOfList(&_QueryRewardsByWalletAndEpochResponse_1_list{list: &list}) + case "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse")) + } + panic(fmt.Errorf("message stratos.pot.v1.QueryRewardsByWalletAndEpochResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.QueryRewardsByWalletAndEpochResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryRewardsByWalletAndEpochResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRewardsByWalletAndEpochResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Rewards) > 0 { + for _, e := range x.Rewards { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryRewardsByWalletAndEpochResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Rewards) > 0 { + for iNdEx := len(x.Rewards) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Rewards[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryRewardsByWalletAndEpochResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4265,10 +5162,10 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByOwnerResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletAndEpochResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardsByWalletAndEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4300,18 +5197,16 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Rewards == nil { - x.Rewards = &RewardByOwner{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rewards); err != nil { + x.Rewards = append(x.Rewards, &Reward{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rewards[len(x.Rewards)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - x.Height = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4321,11 +5216,28 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - x.Height |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4361,133 +5273,133 @@ func (x *fastReflection_QueryRewardsByOwnerResponse) ProtoMethods() *protoiface. } } -var _ protoreflect.List = (*_RewardByOwner_2_list)(nil) +var _ protoreflect.List = (*_RewardByWallet_2_list)(nil) -type _RewardByOwner_2_list struct { +type _RewardByWallet_2_list struct { list *[]*v1beta11.Coin } -func (x *_RewardByOwner_2_list) Len() int { +func (x *_RewardByWallet_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_RewardByOwner_2_list) Get(i int) protoreflect.Value { +func (x *_RewardByWallet_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_RewardByOwner_2_list) Set(i int, value protoreflect.Value) { +func (x *_RewardByWallet_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin) (*x.list)[i] = concreteValue } -func (x *_RewardByOwner_2_list) Append(value protoreflect.Value) { +func (x *_RewardByWallet_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin) *x.list = append(*x.list, concreteValue) } -func (x *_RewardByOwner_2_list) AppendMutable() protoreflect.Value { +func (x *_RewardByWallet_2_list) AppendMutable() protoreflect.Value { v := new(v1beta11.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_RewardByOwner_2_list) Truncate(n int) { +func (x *_RewardByWallet_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_RewardByOwner_2_list) NewElement() protoreflect.Value { +func (x *_RewardByWallet_2_list) NewElement() protoreflect.Value { v := new(v1beta11.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_RewardByOwner_2_list) IsValid() bool { +func (x *_RewardByWallet_2_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_RewardByOwner_3_list)(nil) +var _ protoreflect.List = (*_RewardByWallet_3_list)(nil) -type _RewardByOwner_3_list struct { +type _RewardByWallet_3_list struct { list *[]*v1beta11.Coin } -func (x *_RewardByOwner_3_list) Len() int { +func (x *_RewardByWallet_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_RewardByOwner_3_list) Get(i int) protoreflect.Value { +func (x *_RewardByWallet_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_RewardByOwner_3_list) Set(i int, value protoreflect.Value) { +func (x *_RewardByWallet_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin) (*x.list)[i] = concreteValue } -func (x *_RewardByOwner_3_list) Append(value protoreflect.Value) { +func (x *_RewardByWallet_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin) *x.list = append(*x.list, concreteValue) } -func (x *_RewardByOwner_3_list) AppendMutable() protoreflect.Value { +func (x *_RewardByWallet_3_list) AppendMutable() protoreflect.Value { v := new(v1beta11.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_RewardByOwner_3_list) Truncate(n int) { +func (x *_RewardByWallet_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_RewardByOwner_3_list) NewElement() protoreflect.Value { +func (x *_RewardByWallet_3_list) NewElement() protoreflect.Value { v := new(v1beta11.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_RewardByOwner_3_list) IsValid() bool { +func (x *_RewardByWallet_3_list) IsValid() bool { return x.list != nil } var ( - md_RewardByOwner protoreflect.MessageDescriptor - fd_RewardByOwner_wallet_address protoreflect.FieldDescriptor - fd_RewardByOwner_mature_total_reward protoreflect.FieldDescriptor - fd_RewardByOwner_immature_total_reward protoreflect.FieldDescriptor + md_RewardByWallet protoreflect.MessageDescriptor + fd_RewardByWallet_wallet_address protoreflect.FieldDescriptor + fd_RewardByWallet_mature_total_reward protoreflect.FieldDescriptor + fd_RewardByWallet_immature_total_reward protoreflect.FieldDescriptor ) func init() { file_stratos_pot_v1_query_proto_init() - md_RewardByOwner = File_stratos_pot_v1_query_proto.Messages().ByName("RewardByOwner") - fd_RewardByOwner_wallet_address = md_RewardByOwner.Fields().ByName("wallet_address") - fd_RewardByOwner_mature_total_reward = md_RewardByOwner.Fields().ByName("mature_total_reward") - fd_RewardByOwner_immature_total_reward = md_RewardByOwner.Fields().ByName("immature_total_reward") + md_RewardByWallet = File_stratos_pot_v1_query_proto.Messages().ByName("RewardByWallet") + fd_RewardByWallet_wallet_address = md_RewardByWallet.Fields().ByName("wallet_address") + fd_RewardByWallet_mature_total_reward = md_RewardByWallet.Fields().ByName("mature_total_reward") + fd_RewardByWallet_immature_total_reward = md_RewardByWallet.Fields().ByName("immature_total_reward") } -var _ protoreflect.Message = (*fastReflection_RewardByOwner)(nil) +var _ protoreflect.Message = (*fastReflection_RewardByWallet)(nil) -type fastReflection_RewardByOwner RewardByOwner +type fastReflection_RewardByWallet RewardByWallet -func (x *RewardByOwner) ProtoReflect() protoreflect.Message { - return (*fastReflection_RewardByOwner)(x) +func (x *RewardByWallet) ProtoReflect() protoreflect.Message { + return (*fastReflection_RewardByWallet)(x) } -func (x *RewardByOwner) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[9] +func (x *RewardByWallet) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_pot_v1_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4498,43 +5410,43 @@ func (x *RewardByOwner) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_RewardByOwner_messageType fastReflection_RewardByOwner_messageType -var _ protoreflect.MessageType = fastReflection_RewardByOwner_messageType{} +var _fastReflection_RewardByWallet_messageType fastReflection_RewardByWallet_messageType +var _ protoreflect.MessageType = fastReflection_RewardByWallet_messageType{} -type fastReflection_RewardByOwner_messageType struct{} +type fastReflection_RewardByWallet_messageType struct{} -func (x fastReflection_RewardByOwner_messageType) Zero() protoreflect.Message { - return (*fastReflection_RewardByOwner)(nil) +func (x fastReflection_RewardByWallet_messageType) Zero() protoreflect.Message { + return (*fastReflection_RewardByWallet)(nil) } -func (x fastReflection_RewardByOwner_messageType) New() protoreflect.Message { - return new(fastReflection_RewardByOwner) +func (x fastReflection_RewardByWallet_messageType) New() protoreflect.Message { + return new(fastReflection_RewardByWallet) } -func (x fastReflection_RewardByOwner_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RewardByOwner +func (x fastReflection_RewardByWallet_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RewardByWallet } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RewardByOwner) Descriptor() protoreflect.MessageDescriptor { - return md_RewardByOwner +func (x *fastReflection_RewardByWallet) Descriptor() protoreflect.MessageDescriptor { + return md_RewardByWallet } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RewardByOwner) Type() protoreflect.MessageType { - return _fastReflection_RewardByOwner_messageType +func (x *fastReflection_RewardByWallet) Type() protoreflect.MessageType { + return _fastReflection_RewardByWallet_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RewardByOwner) New() protoreflect.Message { - return new(fastReflection_RewardByOwner) +func (x *fastReflection_RewardByWallet) New() protoreflect.Message { + return new(fastReflection_RewardByWallet) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RewardByOwner) Interface() protoreflect.ProtoMessage { - return (*RewardByOwner)(x) +func (x *fastReflection_RewardByWallet) Interface() protoreflect.ProtoMessage { + return (*RewardByWallet)(x) } // Range iterates over every populated field in an undefined order, @@ -4542,22 +5454,22 @@ func (x *fastReflection_RewardByOwner) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RewardByOwner) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RewardByWallet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.WalletAddress != "" { value := protoreflect.ValueOfString(x.WalletAddress) - if !f(fd_RewardByOwner_wallet_address, value) { + if !f(fd_RewardByWallet_wallet_address, value) { return } } if len(x.MatureTotalReward) != 0 { - value := protoreflect.ValueOfList(&_RewardByOwner_2_list{list: &x.MatureTotalReward}) - if !f(fd_RewardByOwner_mature_total_reward, value) { + value := protoreflect.ValueOfList(&_RewardByWallet_2_list{list: &x.MatureTotalReward}) + if !f(fd_RewardByWallet_mature_total_reward, value) { return } } if len(x.ImmatureTotalReward) != 0 { - value := protoreflect.ValueOfList(&_RewardByOwner_3_list{list: &x.ImmatureTotalReward}) - if !f(fd_RewardByOwner_immature_total_reward, value) { + value := protoreflect.ValueOfList(&_RewardByWallet_3_list{list: &x.ImmatureTotalReward}) + if !f(fd_RewardByWallet_immature_total_reward, value) { return } } @@ -4574,19 +5486,19 @@ func (x *fastReflection_RewardByOwner) Range(f func(protoreflect.FieldDescriptor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RewardByOwner) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RewardByWallet) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "stratos.pot.v1.RewardByOwner.wallet_address": + case "stratos.pot.v1.RewardByWallet.wallet_address": return x.WalletAddress != "" - case "stratos.pot.v1.RewardByOwner.mature_total_reward": + case "stratos.pot.v1.RewardByWallet.mature_total_reward": return len(x.MatureTotalReward) != 0 - case "stratos.pot.v1.RewardByOwner.immature_total_reward": + case "stratos.pot.v1.RewardByWallet.immature_total_reward": return len(x.ImmatureTotalReward) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByOwner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByWallet")) } - panic(fmt.Errorf("message stratos.pot.v1.RewardByOwner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.RewardByWallet does not contain field %s", fd.FullName())) } } @@ -4596,19 +5508,19 @@ func (x *fastReflection_RewardByOwner) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RewardByOwner) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RewardByWallet) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "stratos.pot.v1.RewardByOwner.wallet_address": + case "stratos.pot.v1.RewardByWallet.wallet_address": x.WalletAddress = "" - case "stratos.pot.v1.RewardByOwner.mature_total_reward": + case "stratos.pot.v1.RewardByWallet.mature_total_reward": x.MatureTotalReward = nil - case "stratos.pot.v1.RewardByOwner.immature_total_reward": + case "stratos.pot.v1.RewardByWallet.immature_total_reward": x.ImmatureTotalReward = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByOwner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByWallet")) } - panic(fmt.Errorf("message stratos.pot.v1.RewardByOwner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.RewardByWallet does not contain field %s", fd.FullName())) } } @@ -4618,28 +5530,28 @@ func (x *fastReflection_RewardByOwner) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RewardByOwner) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RewardByWallet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "stratos.pot.v1.RewardByOwner.wallet_address": + case "stratos.pot.v1.RewardByWallet.wallet_address": value := x.WalletAddress return protoreflect.ValueOfString(value) - case "stratos.pot.v1.RewardByOwner.mature_total_reward": + case "stratos.pot.v1.RewardByWallet.mature_total_reward": if len(x.MatureTotalReward) == 0 { - return protoreflect.ValueOfList(&_RewardByOwner_2_list{}) + return protoreflect.ValueOfList(&_RewardByWallet_2_list{}) } - listValue := &_RewardByOwner_2_list{list: &x.MatureTotalReward} + listValue := &_RewardByWallet_2_list{list: &x.MatureTotalReward} return protoreflect.ValueOfList(listValue) - case "stratos.pot.v1.RewardByOwner.immature_total_reward": + case "stratos.pot.v1.RewardByWallet.immature_total_reward": if len(x.ImmatureTotalReward) == 0 { - return protoreflect.ValueOfList(&_RewardByOwner_3_list{}) + return protoreflect.ValueOfList(&_RewardByWallet_3_list{}) } - listValue := &_RewardByOwner_3_list{list: &x.ImmatureTotalReward} + listValue := &_RewardByWallet_3_list{list: &x.ImmatureTotalReward} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByOwner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByWallet")) } - panic(fmt.Errorf("message stratos.pot.v1.RewardByOwner does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.RewardByWallet does not contain field %s", descriptor.FullName())) } } @@ -4653,23 +5565,23 @@ func (x *fastReflection_RewardByOwner) Get(descriptor protoreflect.FieldDescript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RewardByOwner) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RewardByWallet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "stratos.pot.v1.RewardByOwner.wallet_address": + case "stratos.pot.v1.RewardByWallet.wallet_address": x.WalletAddress = value.Interface().(string) - case "stratos.pot.v1.RewardByOwner.mature_total_reward": + case "stratos.pot.v1.RewardByWallet.mature_total_reward": lv := value.List() - clv := lv.(*_RewardByOwner_2_list) + clv := lv.(*_RewardByWallet_2_list) x.MatureTotalReward = *clv.list - case "stratos.pot.v1.RewardByOwner.immature_total_reward": + case "stratos.pot.v1.RewardByWallet.immature_total_reward": lv := value.List() - clv := lv.(*_RewardByOwner_3_list) + clv := lv.(*_RewardByWallet_3_list) x.ImmatureTotalReward = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByOwner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByWallet")) } - panic(fmt.Errorf("message stratos.pot.v1.RewardByOwner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.RewardByWallet does not contain field %s", fd.FullName())) } } @@ -4683,58 +5595,58 @@ func (x *fastReflection_RewardByOwner) Set(fd protoreflect.FieldDescriptor, valu // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RewardByOwner) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RewardByWallet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "stratos.pot.v1.RewardByOwner.mature_total_reward": + case "stratos.pot.v1.RewardByWallet.mature_total_reward": if x.MatureTotalReward == nil { x.MatureTotalReward = []*v1beta11.Coin{} } - value := &_RewardByOwner_2_list{list: &x.MatureTotalReward} + value := &_RewardByWallet_2_list{list: &x.MatureTotalReward} return protoreflect.ValueOfList(value) - case "stratos.pot.v1.RewardByOwner.immature_total_reward": + case "stratos.pot.v1.RewardByWallet.immature_total_reward": if x.ImmatureTotalReward == nil { x.ImmatureTotalReward = []*v1beta11.Coin{} } - value := &_RewardByOwner_3_list{list: &x.ImmatureTotalReward} + value := &_RewardByWallet_3_list{list: &x.ImmatureTotalReward} return protoreflect.ValueOfList(value) - case "stratos.pot.v1.RewardByOwner.wallet_address": - panic(fmt.Errorf("field wallet_address of message stratos.pot.v1.RewardByOwner is not mutable")) + case "stratos.pot.v1.RewardByWallet.wallet_address": + panic(fmt.Errorf("field wallet_address of message stratos.pot.v1.RewardByWallet is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByOwner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByWallet")) } - panic(fmt.Errorf("message stratos.pot.v1.RewardByOwner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.RewardByWallet does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RewardByOwner) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RewardByWallet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "stratos.pot.v1.RewardByOwner.wallet_address": + case "stratos.pot.v1.RewardByWallet.wallet_address": return protoreflect.ValueOfString("") - case "stratos.pot.v1.RewardByOwner.mature_total_reward": + case "stratos.pot.v1.RewardByWallet.mature_total_reward": list := []*v1beta11.Coin{} - return protoreflect.ValueOfList(&_RewardByOwner_2_list{list: &list}) - case "stratos.pot.v1.RewardByOwner.immature_total_reward": + return protoreflect.ValueOfList(&_RewardByWallet_2_list{list: &list}) + case "stratos.pot.v1.RewardByWallet.immature_total_reward": list := []*v1beta11.Coin{} - return protoreflect.ValueOfList(&_RewardByOwner_3_list{list: &list}) + return protoreflect.ValueOfList(&_RewardByWallet_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByOwner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.RewardByWallet")) } - panic(fmt.Errorf("message stratos.pot.v1.RewardByOwner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message stratos.pot.v1.RewardByWallet does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RewardByOwner) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RewardByWallet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.RewardByOwner", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in stratos.pot.v1.RewardByWallet", d.FullName())) } panic("unreachable") } @@ -4742,7 +5654,7 @@ func (x *fastReflection_RewardByOwner) WhichOneof(d protoreflect.OneofDescriptor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RewardByOwner) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RewardByWallet) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4753,7 +5665,7 @@ func (x *fastReflection_RewardByOwner) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RewardByOwner) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RewardByWallet) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4765,7 +5677,7 @@ func (x *fastReflection_RewardByOwner) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RewardByOwner) IsValid() bool { +func (x *fastReflection_RewardByWallet) IsValid() bool { return x != nil } @@ -4775,9 +5687,9 @@ func (x *fastReflection_RewardByOwner) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RewardByOwner) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RewardByWallet) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RewardByOwner) + x := input.Message.Interface().(*RewardByWallet) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4815,7 +5727,7 @@ func (x *fastReflection_RewardByOwner) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RewardByOwner) + x := input.Message.Interface().(*RewardByWallet) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4884,7 +5796,7 @@ func (x *fastReflection_RewardByOwner) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RewardByOwner) + x := input.Message.Interface().(*RewardByWallet) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4916,10 +5828,10 @@ func (x *fastReflection_RewardByOwner) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RewardByOwner: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RewardByWallet: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RewardByOwner: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RewardByWallet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5077,7 +5989,7 @@ func (x *QuerySlashingByOwnerRequest) ProtoReflect() protoreflect.Message { } func (x *QuerySlashingByOwnerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[10] + mi := &file_stratos_pot_v1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5480,14 +6392,12 @@ func (x *fastReflection_QuerySlashingByOwnerRequest) ProtoMethods() *protoiface. var ( md_QuerySlashingByOwnerResponse protoreflect.MessageDescriptor fd_QuerySlashingByOwnerResponse_slashing protoreflect.FieldDescriptor - fd_QuerySlashingByOwnerResponse_height protoreflect.FieldDescriptor ) func init() { file_stratos_pot_v1_query_proto_init() md_QuerySlashingByOwnerResponse = File_stratos_pot_v1_query_proto.Messages().ByName("QuerySlashingByOwnerResponse") fd_QuerySlashingByOwnerResponse_slashing = md_QuerySlashingByOwnerResponse.Fields().ByName("slashing") - fd_QuerySlashingByOwnerResponse_height = md_QuerySlashingByOwnerResponse.Fields().ByName("height") } var _ protoreflect.Message = (*fastReflection_QuerySlashingByOwnerResponse)(nil) @@ -5499,7 +6409,7 @@ func (x *QuerySlashingByOwnerResponse) ProtoReflect() protoreflect.Message { } func (x *QuerySlashingByOwnerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[11] + mi := &file_stratos_pot_v1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5561,12 +6471,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) Range(f func(protoreflect. return } } - if x.Height != int64(0) { - value := protoreflect.ValueOfInt64(x.Height) - if !f(fd_QuerySlashingByOwnerResponse_height, value) { - return - } - } } // Has reports whether a field is populated. @@ -5584,8 +6488,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) Has(fd protoreflect.FieldD switch fd.FullName() { case "stratos.pot.v1.QuerySlashingByOwnerResponse.slashing": return x.Slashing != "" - case "stratos.pot.v1.QuerySlashingByOwnerResponse.height": - return x.Height != int64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QuerySlashingByOwnerResponse")) @@ -5604,8 +6506,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) Clear(fd protoreflect.Fiel switch fd.FullName() { case "stratos.pot.v1.QuerySlashingByOwnerResponse.slashing": x.Slashing = "" - case "stratos.pot.v1.QuerySlashingByOwnerResponse.height": - x.Height = int64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QuerySlashingByOwnerResponse")) @@ -5625,9 +6525,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) Get(descriptor protoreflec case "stratos.pot.v1.QuerySlashingByOwnerResponse.slashing": value := x.Slashing return protoreflect.ValueOfString(value) - case "stratos.pot.v1.QuerySlashingByOwnerResponse.height": - value := x.Height - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QuerySlashingByOwnerResponse")) @@ -5650,8 +6547,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) Set(fd protoreflect.FieldD switch fd.FullName() { case "stratos.pot.v1.QuerySlashingByOwnerResponse.slashing": x.Slashing = value.Interface().(string) - case "stratos.pot.v1.QuerySlashingByOwnerResponse.height": - x.Height = value.Int() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QuerySlashingByOwnerResponse")) @@ -5674,8 +6569,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) Mutable(fd protoreflect.Fi switch fd.FullName() { case "stratos.pot.v1.QuerySlashingByOwnerResponse.slashing": panic(fmt.Errorf("field slashing of message stratos.pot.v1.QuerySlashingByOwnerResponse is not mutable")) - case "stratos.pot.v1.QuerySlashingByOwnerResponse.height": - panic(fmt.Errorf("field height of message stratos.pot.v1.QuerySlashingByOwnerResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QuerySlashingByOwnerResponse")) @@ -5691,8 +6584,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) NewField(fd protoreflect.F switch fd.FullName() { case "stratos.pot.v1.QuerySlashingByOwnerResponse.slashing": return protoreflect.ValueOfString("") - case "stratos.pot.v1.QuerySlashingByOwnerResponse.height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.pot.v1.QuerySlashingByOwnerResponse")) @@ -5766,9 +6657,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) ProtoMethods() *protoiface if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Height != 0 { - n += 1 + runtime.Sov(uint64(x.Height)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5798,11 +6686,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Height != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Height)) - i-- - dAtA[i] = 0x10 - } if len(x.Slashing) > 0 { i -= len(x.Slashing) copy(dAtA[i:], x.Slashing) @@ -5891,25 +6774,6 @@ func (x *fastReflection_QuerySlashingByOwnerResponse) ProtoMethods() *protoiface } x.Slashing = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - x.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5963,7 +6827,7 @@ func (x *QueryTotalMinedTokenRequest) ProtoReflect() protoreflect.Message { } func (x *QueryTotalMinedTokenRequest) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[12] + mi := &file_stratos_pot_v1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6321,7 +7185,7 @@ func (x *QueryTotalMinedTokenResponse) ProtoReflect() protoreflect.Message { } func (x *QueryTotalMinedTokenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[13] + mi := &file_stratos_pot_v1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6754,7 +7618,7 @@ func (x *QueryCirculationSupplyRequest) ProtoReflect() protoreflect.Message { } func (x *QueryCirculationSupplyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[14] + mi := &file_stratos_pot_v1_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7163,7 +8027,7 @@ func (x *QueryCirculationSupplyResponse) ProtoReflect() protoreflect.Message { } func (x *QueryCirculationSupplyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[15] + mi := &file_stratos_pot_v1_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7606,7 +8470,7 @@ func (x *QueryTotalRewardByEpochRequest) ProtoReflect() protoreflect.Message { } func (x *QueryTotalRewardByEpochRequest) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[16] + mi := &file_stratos_pot_v1_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8012,7 +8876,7 @@ func (x *QueryTotalRewardByEpochResponse) ProtoReflect() protoreflect.Message { } func (x *QueryTotalRewardByEpochResponse) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[17] + mi := &file_stratos_pot_v1_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8497,7 +9361,7 @@ func (x *QueryMetricsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryMetricsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[18] + mi := &file_stratos_pot_v1_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8855,7 +9719,7 @@ func (x *QueryMetricsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryMetricsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_stratos_pot_v1_query_proto_msgTypes[19] + mi := &file_stratos_pot_v1_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9328,7 +10192,6 @@ type QueryVolumeReportResponse struct { // node defines the the volumeReport info. ReportInfo *ReportInfo `protobuf:"bytes,1,opt,name=report_info,json=reportInfo,proto3" json:"report_info,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (x *QueryVolumeReportResponse) Reset() { @@ -9358,13 +10221,6 @@ func (x *QueryVolumeReportResponse) GetReportInfo() *ReportInfo { return nil } -func (x *QueryVolumeReportResponse) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - type ReportInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9494,9 +10350,8 @@ type QueryRewardsByEpochRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` - Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryRewardsByEpochRequest) Reset() { @@ -9526,13 +10381,6 @@ func (x *QueryRewardsByEpochRequest) GetEpoch() int64 { return 0 } -func (x *QueryRewardsByEpochRequest) GetWalletAddress() string { - if x != nil { - return x.WalletAddress - } - return "" -} - func (x *QueryRewardsByEpochRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination @@ -9547,8 +10395,7 @@ type QueryRewardsByEpochResponse struct { unknownFields protoimpl.UnknownFields Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryRewardsByEpochResponse) Reset() { @@ -9578,13 +10425,6 @@ func (x *QueryRewardsByEpochResponse) GetRewards() []*Reward { return nil } -func (x *QueryRewardsByEpochResponse) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - func (x *QueryRewardsByEpochResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination @@ -9593,7 +10433,7 @@ func (x *QueryRewardsByEpochResponse) GetPagination() *v1beta1.PageResponse { } // QueryRewardsByOwnerRequest is request type for the Query/RewardsByOwner by a given owner RPC method -type QueryRewardsByOwnerRequest struct { +type QueryRewardsByWalletRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9601,8 +10441,8 @@ type QueryRewardsByOwnerRequest struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` } -func (x *QueryRewardsByOwnerRequest) Reset() { - *x = QueryRewardsByOwnerRequest{} +func (x *QueryRewardsByWalletRequest) Reset() { + *x = QueryRewardsByWalletRequest{} if protoimpl.UnsafeEnabled { mi := &file_stratos_pot_v1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9610,18 +10450,18 @@ func (x *QueryRewardsByOwnerRequest) Reset() { } } -func (x *QueryRewardsByOwnerRequest) String() string { +func (x *QueryRewardsByWalletRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRewardsByOwnerRequest) ProtoMessage() {} +func (*QueryRewardsByWalletRequest) ProtoMessage() {} -// Deprecated: Use QueryRewardsByOwnerRequest.ProtoReflect.Descriptor instead. -func (*QueryRewardsByOwnerRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryRewardsByWalletRequest.ProtoReflect.Descriptor instead. +func (*QueryRewardsByWalletRequest) Descriptor() ([]byte, []int) { return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{7} } -func (x *QueryRewardsByOwnerRequest) GetWalletAddress() string { +func (x *QueryRewardsByWalletRequest) GetWalletAddress() string { if x != nil { return x.WalletAddress } @@ -9629,17 +10469,16 @@ func (x *QueryRewardsByOwnerRequest) GetWalletAddress() string { } // QueryRewardsByOwnerResponse is response type for the Query/RewardsByOwner RPC method -type QueryRewardsByOwnerResponse struct { +type QueryRewardsByWalletResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Rewards *RewardByOwner `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Rewards *RewardByWallet `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` } -func (x *QueryRewardsByOwnerResponse) Reset() { - *x = QueryRewardsByOwnerResponse{} +func (x *QueryRewardsByWalletResponse) Reset() { + *x = QueryRewardsByWalletResponse{} if protoimpl.UnsafeEnabled { mi := &file_stratos_pot_v1_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9647,32 +10486,119 @@ func (x *QueryRewardsByOwnerResponse) Reset() { } } -func (x *QueryRewardsByOwnerResponse) String() string { +func (x *QueryRewardsByWalletResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRewardsByOwnerResponse) ProtoMessage() {} +func (*QueryRewardsByWalletResponse) ProtoMessage() {} -// Deprecated: Use QueryRewardsByOwnerResponse.ProtoReflect.Descriptor instead. -func (*QueryRewardsByOwnerResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryRewardsByWalletResponse.ProtoReflect.Descriptor instead. +func (*QueryRewardsByWalletResponse) Descriptor() ([]byte, []int) { return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{8} } -func (x *QueryRewardsByOwnerResponse) GetRewards() *RewardByOwner { +func (x *QueryRewardsByWalletResponse) GetRewards() *RewardByWallet { if x != nil { return x.Rewards } return nil } -func (x *QueryRewardsByOwnerResponse) GetHeight() int64 { +type QueryRewardsByWalletAndEpochRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` + Epoch int64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRewardsByWalletAndEpochRequest) Reset() { + *x = QueryRewardsByWalletAndEpochRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_pot_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRewardsByWalletAndEpochRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRewardsByWalletAndEpochRequest) ProtoMessage() {} + +// Deprecated: Use QueryRewardsByWalletAndEpochRequest.ProtoReflect.Descriptor instead. +func (*QueryRewardsByWalletAndEpochRequest) Descriptor() ([]byte, []int) { + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryRewardsByWalletAndEpochRequest) GetWalletAddress() string { + if x != nil { + return x.WalletAddress + } + return "" +} + +func (x *QueryRewardsByWalletAndEpochRequest) GetEpoch() int64 { if x != nil { - return x.Height + return x.Epoch } return 0 } -type RewardByOwner struct { +func (x *QueryRewardsByWalletAndEpochRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type QueryRewardsByWalletAndEpochResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRewardsByWalletAndEpochResponse) Reset() { + *x = QueryRewardsByWalletAndEpochResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_pot_v1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRewardsByWalletAndEpochResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRewardsByWalletAndEpochResponse) ProtoMessage() {} + +// Deprecated: Use QueryRewardsByWalletAndEpochResponse.ProtoReflect.Descriptor instead. +func (*QueryRewardsByWalletAndEpochResponse) Descriptor() ([]byte, []int) { + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryRewardsByWalletAndEpochResponse) GetRewards() []*Reward { + if x != nil { + return x.Rewards + } + return nil +} + +func (x *QueryRewardsByWalletAndEpochResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +type RewardByWallet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9682,41 +10608,41 @@ type RewardByOwner struct { ImmatureTotalReward []*v1beta11.Coin `protobuf:"bytes,3,rep,name=immature_total_reward,json=immatureTotalReward,proto3" json:"immature_total_reward,omitempty"` } -func (x *RewardByOwner) Reset() { - *x = RewardByOwner{} +func (x *RewardByWallet) Reset() { + *x = RewardByWallet{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[9] + mi := &file_stratos_pot_v1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *RewardByOwner) String() string { +func (x *RewardByWallet) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RewardByOwner) ProtoMessage() {} +func (*RewardByWallet) ProtoMessage() {} -// Deprecated: Use RewardByOwner.ProtoReflect.Descriptor instead. -func (*RewardByOwner) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{9} +// Deprecated: Use RewardByWallet.ProtoReflect.Descriptor instead. +func (*RewardByWallet) Descriptor() ([]byte, []int) { + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{11} } -func (x *RewardByOwner) GetWalletAddress() string { +func (x *RewardByWallet) GetWalletAddress() string { if x != nil { return x.WalletAddress } return "" } -func (x *RewardByOwner) GetMatureTotalReward() []*v1beta11.Coin { +func (x *RewardByWallet) GetMatureTotalReward() []*v1beta11.Coin { if x != nil { return x.MatureTotalReward } return nil } -func (x *RewardByOwner) GetImmatureTotalReward() []*v1beta11.Coin { +func (x *RewardByWallet) GetImmatureTotalReward() []*v1beta11.Coin { if x != nil { return x.ImmatureTotalReward } @@ -9735,7 +10661,7 @@ type QuerySlashingByOwnerRequest struct { func (x *QuerySlashingByOwnerRequest) Reset() { *x = QuerySlashingByOwnerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[10] + mi := &file_stratos_pot_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9749,7 +10675,7 @@ func (*QuerySlashingByOwnerRequest) ProtoMessage() {} // Deprecated: Use QuerySlashingByOwnerRequest.ProtoReflect.Descriptor instead. func (*QuerySlashingByOwnerRequest) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{10} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{12} } func (x *QuerySlashingByOwnerRequest) GetWalletAddress() string { @@ -9766,13 +10692,12 @@ type QuerySlashingByOwnerResponse struct { unknownFields protoimpl.UnknownFields Slashing string `protobuf:"bytes,1,opt,name=slashing,proto3" json:"slashing,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (x *QuerySlashingByOwnerResponse) Reset() { *x = QuerySlashingByOwnerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[11] + mi := &file_stratos_pot_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9786,7 +10711,7 @@ func (*QuerySlashingByOwnerResponse) ProtoMessage() {} // Deprecated: Use QuerySlashingByOwnerResponse.ProtoReflect.Descriptor instead. func (*QuerySlashingByOwnerResponse) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{11} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{13} } func (x *QuerySlashingByOwnerResponse) GetSlashing() string { @@ -9796,13 +10721,6 @@ func (x *QuerySlashingByOwnerResponse) GetSlashing() string { return "" } -func (x *QuerySlashingByOwnerResponse) GetHeight() int64 { - if x != nil { - return x.Height - } - return 0 -} - type QueryTotalMinedTokenRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9812,7 +10730,7 @@ type QueryTotalMinedTokenRequest struct { func (x *QueryTotalMinedTokenRequest) Reset() { *x = QueryTotalMinedTokenRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[12] + mi := &file_stratos_pot_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9826,7 +10744,7 @@ func (*QueryTotalMinedTokenRequest) ProtoMessage() {} // Deprecated: Use QueryTotalMinedTokenRequest.ProtoReflect.Descriptor instead. func (*QueryTotalMinedTokenRequest) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{12} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{14} } type QueryTotalMinedTokenResponse struct { @@ -9840,7 +10758,7 @@ type QueryTotalMinedTokenResponse struct { func (x *QueryTotalMinedTokenResponse) Reset() { *x = QueryTotalMinedTokenResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[13] + mi := &file_stratos_pot_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9854,7 +10772,7 @@ func (*QueryTotalMinedTokenResponse) ProtoMessage() {} // Deprecated: Use QueryTotalMinedTokenResponse.ProtoReflect.Descriptor instead. func (*QueryTotalMinedTokenResponse) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{13} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{15} } func (x *QueryTotalMinedTokenResponse) GetTotalMinedToken() *v1beta11.Coin { @@ -9873,7 +10791,7 @@ type QueryCirculationSupplyRequest struct { func (x *QueryCirculationSupplyRequest) Reset() { *x = QueryCirculationSupplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[14] + mi := &file_stratos_pot_v1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9887,7 +10805,7 @@ func (*QueryCirculationSupplyRequest) ProtoMessage() {} // Deprecated: Use QueryCirculationSupplyRequest.ProtoReflect.Descriptor instead. func (*QueryCirculationSupplyRequest) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{14} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{16} } type QueryCirculationSupplyResponse struct { @@ -9901,7 +10819,7 @@ type QueryCirculationSupplyResponse struct { func (x *QueryCirculationSupplyResponse) Reset() { *x = QueryCirculationSupplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[15] + mi := &file_stratos_pot_v1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9915,7 +10833,7 @@ func (*QueryCirculationSupplyResponse) ProtoMessage() {} // Deprecated: Use QueryCirculationSupplyResponse.ProtoReflect.Descriptor instead. func (*QueryCirculationSupplyResponse) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{15} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{17} } func (x *QueryCirculationSupplyResponse) GetCirculationSupply() []*v1beta11.Coin { @@ -9936,7 +10854,7 @@ type QueryTotalRewardByEpochRequest struct { func (x *QueryTotalRewardByEpochRequest) Reset() { *x = QueryTotalRewardByEpochRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[16] + mi := &file_stratos_pot_v1_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9950,7 +10868,7 @@ func (*QueryTotalRewardByEpochRequest) ProtoMessage() {} // Deprecated: Use QueryTotalRewardByEpochRequest.ProtoReflect.Descriptor instead. func (*QueryTotalRewardByEpochRequest) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{16} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{18} } func (x *QueryTotalRewardByEpochRequest) GetEpoch() int64 { @@ -9972,7 +10890,7 @@ type QueryTotalRewardByEpochResponse struct { func (x *QueryTotalRewardByEpochResponse) Reset() { *x = QueryTotalRewardByEpochResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[17] + mi := &file_stratos_pot_v1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9986,7 +10904,7 @@ func (*QueryTotalRewardByEpochResponse) ProtoMessage() {} // Deprecated: Use QueryTotalRewardByEpochResponse.ProtoReflect.Descriptor instead. func (*QueryTotalRewardByEpochResponse) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{17} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{19} } func (x *QueryTotalRewardByEpochResponse) GetTotalReward() *TotalReward { @@ -10012,7 +10930,7 @@ type QueryMetricsRequest struct { func (x *QueryMetricsRequest) Reset() { *x = QueryMetricsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[18] + mi := &file_stratos_pot_v1_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10026,7 +10944,7 @@ func (*QueryMetricsRequest) ProtoMessage() {} // Deprecated: Use QueryMetricsRequest.ProtoReflect.Descriptor instead. func (*QueryMetricsRequest) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{18} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{20} } type QueryMetricsResponse struct { @@ -10040,7 +10958,7 @@ type QueryMetricsResponse struct { func (x *QueryMetricsResponse) Reset() { *x = QueryMetricsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stratos_pot_v1_query_proto_msgTypes[19] + mi := &file_stratos_pot_v1_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10054,7 +10972,7 @@ func (*QueryMetricsResponse) ProtoMessage() {} // Deprecated: Use QueryMetricsResponse.ProtoReflect.Descriptor instead. func (*QueryMetricsResponse) Descriptor() ([]byte, []int) { - return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{19} + return file_stratos_pot_v1_query_proto_rawDescGZIP(), []int{21} } func (x *QueryMetricsResponse) GetMetrics() *Metrics { @@ -10082,232 +11000,257 @@ var file_stratos_pot_v1_query_proto_rawDesc = []byte{ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x70, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, + 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x58, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x75, 0x0a, 0x0a, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1c, - 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, - 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, - 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xa1, - 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, - 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x61, 0x6c, - 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x66, 0x6f, 0x22, 0x75, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, + 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x45, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x7a, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0xb0, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, + 0x6f, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x47, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x43, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x61, 0x6c, - 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6e, 0x0a, 0x1b, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x72, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x07, 0x72, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xb4, 0x02, 0x0a, 0x0d, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, + 0x61, 0x72, 0x64, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x44, 0x0a, + 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x7b, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, - 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x11, 0x6d, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x12, 0x7f, 0x0a, 0x15, 0x69, 0x6d, 0x6d, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, - 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x13, 0x69, 0x6d, - 0x6d, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x22, 0x44, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, - 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x52, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6c, 0x61, 0x73, 0x68, - 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6c, 0x61, 0x73, 0x68, - 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x1d, 0x0a, 0x1b, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9c, 0x01, 0x0a, 0x1c, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x65, 0x73, 0x73, 0x22, 0x58, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, + 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x57, 0x61, + 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x07, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x22, 0xaa, 0x01, + 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, + 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x01, 0x0a, 0x24, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, 0x61, 0x6c, + 0x6c, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, + 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb5, + 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, + 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x61, 0x6c, 0x6c, 0x65, + 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x7b, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, + 0x6e, 0x73, 0x52, 0x11, 0x6d, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, + 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x7f, 0x0a, 0x15, 0x69, 0x6d, 0x6d, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, + 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, + 0x73, 0x52, 0x13, 0x69, 0x6d, 0x6d, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x44, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, + 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3a, 0x0a, 0x1c, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x22, 0x1d, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9c, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x35, + 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x69, + 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0xf2, 0xde, 0x1f, 0x18, 0x79, 0x61, 0x6d, + 0x6c, 0x3a, 0x22, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, + 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x1f, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9c, 0x01, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, 0x70, + 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x12, 0x63, 0x69, + 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x42, 0x35, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0xf2, 0xde, 0x1f, 0x18, - 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x65, - 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, - 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x1f, 0x0a, 0x1d, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, - 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9c, 0x01, 0x0a, 0x1e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, - 0x12, 0x63, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x75, 0x70, - 0x70, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x11, 0x63, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x22, 0x36, 0x0a, 0x1e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x45, - 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x22, 0xce, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, - 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x74, - 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, - 0x1f, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0xf2, 0xde, - 0x1f, 0x13, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x22, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x12, 0x3e, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x69, 0x73, 0x5f, 0x6c, 0x65, - 0x67, 0x61, 0x63, 0x79, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x69, 0x73, - 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x22, 0x52, 0x08, 0x69, 0x73, 0x4c, 0x65, 0x67, 0x61, - 0x63, 0x79, 0x22, 0x15, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x14, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x32, 0xc9, 0x0a, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, - 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x27, 0x12, 0x25, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2d, 0x72, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x0e, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2a, 0x2e, 0x73, + 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, + 0x69, 0x6e, 0x73, 0x52, 0x11, 0x63, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x22, 0x36, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, + 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0xce, + 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, + 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0c, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0xf2, 0xde, 0x1f, 0x13, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x22, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, + 0x3e, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x69, 0x73, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, + 0x79, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x69, 0x73, 0x5f, 0x6c, 0x65, + 0x67, 0x61, 0x63, 0x79, 0x22, 0x52, 0x08, 0x69, 0x73, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x22, + 0x15, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, + 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x32, 0x9a, 0x0c, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x72, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x2f, 0x7b, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, - 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x73, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, + 0x25, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x7b, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, + 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x73, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, + 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, + 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x53, 0x6c, - 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2b, 0x2e, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xcb, 0x01, 0x0a, 0x17, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x6e, 0x64, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x33, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, + 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, - 0x12, 0x29, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, - 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x71, 0x0a, 0x06, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, - 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, - 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x97, - 0x01, 0x0a, 0x0f, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, - 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, - 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x2d, 0x6d, 0x69, 0x6e, - 0x65, 0x64, 0x2d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x9e, 0x01, 0x0a, 0x11, 0x43, 0x69, 0x72, - 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x2d, + 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x41, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x2f, + 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x7d, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x53, 0x6c, 0x61, 0x73, + 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, + 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, + 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, + 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, + 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x97, 0x01, 0x0a, + 0x0f, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, + 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x64, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x9e, 0x01, 0x0a, 0x11, 0x43, 0x69, 0x72, 0x63, 0x75, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x2d, 0x2e, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, + 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, + 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xa3, 0x01, 0x0a, 0x12, 0x54, 0x6f, 0x74, 0x61, + 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, + 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, + 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, + 0x65, 0x77, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x7d, 0x12, 0x75, 0x0a, + 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, - 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2d, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0xa3, 0x01, 0x0a, 0x12, 0x54, 0x6f, - 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, - 0x12, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2f, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x42, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x2d, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x7d, 0x12, - 0x75, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0xa1, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x6f, 0x74, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, - 0x6f, 0x73, 0x2e, 0x50, 0x6f, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x53, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x73, 0x5c, 0x50, 0x6f, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x53, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x50, 0x6f, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x3a, 0x3a, 0x50, 0x6f, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x42, 0xa1, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x6f, 0x74, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2e, 0x50, 0x6f, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, + 0x73, 0x5c, 0x50, 0x6f, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x53, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x5c, 0x50, 0x6f, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, + 0x3a, 0x50, 0x6f, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10322,72 +11265,79 @@ func file_stratos_pot_v1_query_proto_rawDescGZIP() []byte { return file_stratos_pot_v1_query_proto_rawDescData } -var file_stratos_pot_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_stratos_pot_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_stratos_pot_v1_query_proto_goTypes = []interface{}{ - (*QueryVolumeReportRequest)(nil), // 0: stratos.pot.v1.QueryVolumeReportRequest - (*QueryVolumeReportResponse)(nil), // 1: stratos.pot.v1.QueryVolumeReportResponse - (*ReportInfo)(nil), // 2: stratos.pot.v1.ReportInfo - (*QueryParamsRequest)(nil), // 3: stratos.pot.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 4: stratos.pot.v1.QueryParamsResponse - (*QueryRewardsByEpochRequest)(nil), // 5: stratos.pot.v1.QueryRewardsByEpochRequest - (*QueryRewardsByEpochResponse)(nil), // 6: stratos.pot.v1.QueryRewardsByEpochResponse - (*QueryRewardsByOwnerRequest)(nil), // 7: stratos.pot.v1.QueryRewardsByOwnerRequest - (*QueryRewardsByOwnerResponse)(nil), // 8: stratos.pot.v1.QueryRewardsByOwnerResponse - (*RewardByOwner)(nil), // 9: stratos.pot.v1.RewardByOwner - (*QuerySlashingByOwnerRequest)(nil), // 10: stratos.pot.v1.QuerySlashingByOwnerRequest - (*QuerySlashingByOwnerResponse)(nil), // 11: stratos.pot.v1.QuerySlashingByOwnerResponse - (*QueryTotalMinedTokenRequest)(nil), // 12: stratos.pot.v1.QueryTotalMinedTokenRequest - (*QueryTotalMinedTokenResponse)(nil), // 13: stratos.pot.v1.QueryTotalMinedTokenResponse - (*QueryCirculationSupplyRequest)(nil), // 14: stratos.pot.v1.QueryCirculationSupplyRequest - (*QueryCirculationSupplyResponse)(nil), // 15: stratos.pot.v1.QueryCirculationSupplyResponse - (*QueryTotalRewardByEpochRequest)(nil), // 16: stratos.pot.v1.QueryTotalRewardByEpochRequest - (*QueryTotalRewardByEpochResponse)(nil), // 17: stratos.pot.v1.QueryTotalRewardByEpochResponse - (*QueryMetricsRequest)(nil), // 18: stratos.pot.v1.QueryMetricsRequest - (*QueryMetricsResponse)(nil), // 19: stratos.pot.v1.QueryMetricsResponse - (*Params)(nil), // 20: stratos.pot.v1.Params - (*v1beta1.PageRequest)(nil), // 21: cosmos.base.query.v1beta1.PageRequest - (*Reward)(nil), // 22: stratos.pot.v1.Reward - (*v1beta1.PageResponse)(nil), // 23: cosmos.base.query.v1beta1.PageResponse - (*v1beta11.Coin)(nil), // 24: cosmos.base.v1beta1.Coin - (*TotalReward)(nil), // 25: stratos.pot.v1.TotalReward - (*Metrics)(nil), // 26: stratos.pot.v1.Metrics + (*QueryVolumeReportRequest)(nil), // 0: stratos.pot.v1.QueryVolumeReportRequest + (*QueryVolumeReportResponse)(nil), // 1: stratos.pot.v1.QueryVolumeReportResponse + (*ReportInfo)(nil), // 2: stratos.pot.v1.ReportInfo + (*QueryParamsRequest)(nil), // 3: stratos.pot.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 4: stratos.pot.v1.QueryParamsResponse + (*QueryRewardsByEpochRequest)(nil), // 5: stratos.pot.v1.QueryRewardsByEpochRequest + (*QueryRewardsByEpochResponse)(nil), // 6: stratos.pot.v1.QueryRewardsByEpochResponse + (*QueryRewardsByWalletRequest)(nil), // 7: stratos.pot.v1.QueryRewardsByWalletRequest + (*QueryRewardsByWalletResponse)(nil), // 8: stratos.pot.v1.QueryRewardsByWalletResponse + (*QueryRewardsByWalletAndEpochRequest)(nil), // 9: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest + (*QueryRewardsByWalletAndEpochResponse)(nil), // 10: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse + (*RewardByWallet)(nil), // 11: stratos.pot.v1.RewardByWallet + (*QuerySlashingByOwnerRequest)(nil), // 12: stratos.pot.v1.QuerySlashingByOwnerRequest + (*QuerySlashingByOwnerResponse)(nil), // 13: stratos.pot.v1.QuerySlashingByOwnerResponse + (*QueryTotalMinedTokenRequest)(nil), // 14: stratos.pot.v1.QueryTotalMinedTokenRequest + (*QueryTotalMinedTokenResponse)(nil), // 15: stratos.pot.v1.QueryTotalMinedTokenResponse + (*QueryCirculationSupplyRequest)(nil), // 16: stratos.pot.v1.QueryCirculationSupplyRequest + (*QueryCirculationSupplyResponse)(nil), // 17: stratos.pot.v1.QueryCirculationSupplyResponse + (*QueryTotalRewardByEpochRequest)(nil), // 18: stratos.pot.v1.QueryTotalRewardByEpochRequest + (*QueryTotalRewardByEpochResponse)(nil), // 19: stratos.pot.v1.QueryTotalRewardByEpochResponse + (*QueryMetricsRequest)(nil), // 20: stratos.pot.v1.QueryMetricsRequest + (*QueryMetricsResponse)(nil), // 21: stratos.pot.v1.QueryMetricsResponse + (*Params)(nil), // 22: stratos.pot.v1.Params + (*v1beta1.PageRequest)(nil), // 23: cosmos.base.query.v1beta1.PageRequest + (*Reward)(nil), // 24: stratos.pot.v1.Reward + (*v1beta1.PageResponse)(nil), // 25: cosmos.base.query.v1beta1.PageResponse + (*v1beta11.Coin)(nil), // 26: cosmos.base.v1beta1.Coin + (*TotalReward)(nil), // 27: stratos.pot.v1.TotalReward + (*Metrics)(nil), // 28: stratos.pot.v1.Metrics } var file_stratos_pot_v1_query_proto_depIdxs = []int32{ 2, // 0: stratos.pot.v1.QueryVolumeReportResponse.report_info:type_name -> stratos.pot.v1.ReportInfo - 20, // 1: stratos.pot.v1.QueryParamsResponse.params:type_name -> stratos.pot.v1.Params - 21, // 2: stratos.pot.v1.QueryRewardsByEpochRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 22, // 3: stratos.pot.v1.QueryRewardsByEpochResponse.rewards:type_name -> stratos.pot.v1.Reward - 23, // 4: stratos.pot.v1.QueryRewardsByEpochResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 9, // 5: stratos.pot.v1.QueryRewardsByOwnerResponse.rewards:type_name -> stratos.pot.v1.RewardByOwner - 24, // 6: stratos.pot.v1.RewardByOwner.mature_total_reward:type_name -> cosmos.base.v1beta1.Coin - 24, // 7: stratos.pot.v1.RewardByOwner.immature_total_reward:type_name -> cosmos.base.v1beta1.Coin - 24, // 8: stratos.pot.v1.QueryTotalMinedTokenResponse.total_mined_token:type_name -> cosmos.base.v1beta1.Coin - 24, // 9: stratos.pot.v1.QueryCirculationSupplyResponse.circulation_supply:type_name -> cosmos.base.v1beta1.Coin - 25, // 10: stratos.pot.v1.QueryTotalRewardByEpochResponse.total_reward:type_name -> stratos.pot.v1.TotalReward - 26, // 11: stratos.pot.v1.QueryMetricsResponse.metrics:type_name -> stratos.pot.v1.Metrics - 0, // 12: stratos.pot.v1.Query.VolumeReport:input_type -> stratos.pot.v1.QueryVolumeReportRequest - 5, // 13: stratos.pot.v1.Query.RewardsByEpoch:input_type -> stratos.pot.v1.QueryRewardsByEpochRequest - 7, // 14: stratos.pot.v1.Query.RewardsByOwner:input_type -> stratos.pot.v1.QueryRewardsByOwnerRequest - 10, // 15: stratos.pot.v1.Query.SlashingByOwner:input_type -> stratos.pot.v1.QuerySlashingByOwnerRequest - 3, // 16: stratos.pot.v1.Query.Params:input_type -> stratos.pot.v1.QueryParamsRequest - 12, // 17: stratos.pot.v1.Query.TotalMinedToken:input_type -> stratos.pot.v1.QueryTotalMinedTokenRequest - 14, // 18: stratos.pot.v1.Query.CirculationSupply:input_type -> stratos.pot.v1.QueryCirculationSupplyRequest - 16, // 19: stratos.pot.v1.Query.TotalRewardByEpoch:input_type -> stratos.pot.v1.QueryTotalRewardByEpochRequest - 18, // 20: stratos.pot.v1.Query.Metrics:input_type -> stratos.pot.v1.QueryMetricsRequest - 1, // 21: stratos.pot.v1.Query.VolumeReport:output_type -> stratos.pot.v1.QueryVolumeReportResponse - 6, // 22: stratos.pot.v1.Query.RewardsByEpoch:output_type -> stratos.pot.v1.QueryRewardsByEpochResponse - 8, // 23: stratos.pot.v1.Query.RewardsByOwner:output_type -> stratos.pot.v1.QueryRewardsByOwnerResponse - 11, // 24: stratos.pot.v1.Query.SlashingByOwner:output_type -> stratos.pot.v1.QuerySlashingByOwnerResponse - 4, // 25: stratos.pot.v1.Query.Params:output_type -> stratos.pot.v1.QueryParamsResponse - 13, // 26: stratos.pot.v1.Query.TotalMinedToken:output_type -> stratos.pot.v1.QueryTotalMinedTokenResponse - 15, // 27: stratos.pot.v1.Query.CirculationSupply:output_type -> stratos.pot.v1.QueryCirculationSupplyResponse - 17, // 28: stratos.pot.v1.Query.TotalRewardByEpoch:output_type -> stratos.pot.v1.QueryTotalRewardByEpochResponse - 19, // 29: stratos.pot.v1.Query.Metrics:output_type -> stratos.pot.v1.QueryMetricsResponse - 21, // [21:30] is the sub-list for method output_type - 12, // [12:21] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 22, // 1: stratos.pot.v1.QueryParamsResponse.params:type_name -> stratos.pot.v1.Params + 23, // 2: stratos.pot.v1.QueryRewardsByEpochRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 24, // 3: stratos.pot.v1.QueryRewardsByEpochResponse.rewards:type_name -> stratos.pot.v1.Reward + 25, // 4: stratos.pot.v1.QueryRewardsByEpochResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 11, // 5: stratos.pot.v1.QueryRewardsByWalletResponse.rewards:type_name -> stratos.pot.v1.RewardByWallet + 23, // 6: stratos.pot.v1.QueryRewardsByWalletAndEpochRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 24, // 7: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.rewards:type_name -> stratos.pot.v1.Reward + 25, // 8: stratos.pot.v1.QueryRewardsByWalletAndEpochResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 26, // 9: stratos.pot.v1.RewardByWallet.mature_total_reward:type_name -> cosmos.base.v1beta1.Coin + 26, // 10: stratos.pot.v1.RewardByWallet.immature_total_reward:type_name -> cosmos.base.v1beta1.Coin + 26, // 11: stratos.pot.v1.QueryTotalMinedTokenResponse.total_mined_token:type_name -> cosmos.base.v1beta1.Coin + 26, // 12: stratos.pot.v1.QueryCirculationSupplyResponse.circulation_supply:type_name -> cosmos.base.v1beta1.Coin + 27, // 13: stratos.pot.v1.QueryTotalRewardByEpochResponse.total_reward:type_name -> stratos.pot.v1.TotalReward + 28, // 14: stratos.pot.v1.QueryMetricsResponse.metrics:type_name -> stratos.pot.v1.Metrics + 0, // 15: stratos.pot.v1.Query.VolumeReport:input_type -> stratos.pot.v1.QueryVolumeReportRequest + 5, // 16: stratos.pot.v1.Query.RewardsByEpoch:input_type -> stratos.pot.v1.QueryRewardsByEpochRequest + 7, // 17: stratos.pot.v1.Query.RewardsByWallet:input_type -> stratos.pot.v1.QueryRewardsByWalletRequest + 9, // 18: stratos.pot.v1.Query.RewardsByWalletAndEpoch:input_type -> stratos.pot.v1.QueryRewardsByWalletAndEpochRequest + 12, // 19: stratos.pot.v1.Query.SlashingByOwner:input_type -> stratos.pot.v1.QuerySlashingByOwnerRequest + 3, // 20: stratos.pot.v1.Query.Params:input_type -> stratos.pot.v1.QueryParamsRequest + 14, // 21: stratos.pot.v1.Query.TotalMinedToken:input_type -> stratos.pot.v1.QueryTotalMinedTokenRequest + 16, // 22: stratos.pot.v1.Query.CirculationSupply:input_type -> stratos.pot.v1.QueryCirculationSupplyRequest + 18, // 23: stratos.pot.v1.Query.TotalRewardByEpoch:input_type -> stratos.pot.v1.QueryTotalRewardByEpochRequest + 20, // 24: stratos.pot.v1.Query.Metrics:input_type -> stratos.pot.v1.QueryMetricsRequest + 1, // 25: stratos.pot.v1.Query.VolumeReport:output_type -> stratos.pot.v1.QueryVolumeReportResponse + 6, // 26: stratos.pot.v1.Query.RewardsByEpoch:output_type -> stratos.pot.v1.QueryRewardsByEpochResponse + 8, // 27: stratos.pot.v1.Query.RewardsByWallet:output_type -> stratos.pot.v1.QueryRewardsByWalletResponse + 10, // 28: stratos.pot.v1.Query.RewardsByWalletAndEpoch:output_type -> stratos.pot.v1.QueryRewardsByWalletAndEpochResponse + 13, // 29: stratos.pot.v1.Query.SlashingByOwner:output_type -> stratos.pot.v1.QuerySlashingByOwnerResponse + 4, // 30: stratos.pot.v1.Query.Params:output_type -> stratos.pot.v1.QueryParamsResponse + 15, // 31: stratos.pot.v1.Query.TotalMinedToken:output_type -> stratos.pot.v1.QueryTotalMinedTokenResponse + 17, // 32: stratos.pot.v1.Query.CirculationSupply:output_type -> stratos.pot.v1.QueryCirculationSupplyResponse + 19, // 33: stratos.pot.v1.Query.TotalRewardByEpoch:output_type -> stratos.pot.v1.QueryTotalRewardByEpochResponse + 21, // 34: stratos.pot.v1.Query.Metrics:output_type -> stratos.pot.v1.QueryMetricsResponse + 25, // [25:35] is the sub-list for method output_type + 15, // [15:25] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name } func init() { file_stratos_pot_v1_query_proto_init() } @@ -10482,7 +11432,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRewardsByOwnerRequest); i { + switch v := v.(*QueryRewardsByWalletRequest); i { case 0: return &v.state case 1: @@ -10494,7 +11444,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRewardsByOwnerResponse); i { + switch v := v.(*QueryRewardsByWalletResponse); i { case 0: return &v.state case 1: @@ -10506,7 +11456,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RewardByOwner); i { + switch v := v.(*QueryRewardsByWalletAndEpochRequest); i { case 0: return &v.state case 1: @@ -10518,7 +11468,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySlashingByOwnerRequest); i { + switch v := v.(*QueryRewardsByWalletAndEpochResponse); i { case 0: return &v.state case 1: @@ -10530,7 +11480,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySlashingByOwnerResponse); i { + switch v := v.(*RewardByWallet); i { case 0: return &v.state case 1: @@ -10542,7 +11492,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTotalMinedTokenRequest); i { + switch v := v.(*QuerySlashingByOwnerRequest); i { case 0: return &v.state case 1: @@ -10554,7 +11504,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTotalMinedTokenResponse); i { + switch v := v.(*QuerySlashingByOwnerResponse); i { case 0: return &v.state case 1: @@ -10566,7 +11516,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCirculationSupplyRequest); i { + switch v := v.(*QueryTotalMinedTokenRequest); i { case 0: return &v.state case 1: @@ -10578,7 +11528,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCirculationSupplyResponse); i { + switch v := v.(*QueryTotalMinedTokenResponse); i { case 0: return &v.state case 1: @@ -10590,7 +11540,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTotalRewardByEpochRequest); i { + switch v := v.(*QueryCirculationSupplyRequest); i { case 0: return &v.state case 1: @@ -10602,7 +11552,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTotalRewardByEpochResponse); i { + switch v := v.(*QueryCirculationSupplyResponse); i { case 0: return &v.state case 1: @@ -10614,7 +11564,7 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMetricsRequest); i { + switch v := v.(*QueryTotalRewardByEpochRequest); i { case 0: return &v.state case 1: @@ -10626,6 +11576,30 @@ func file_stratos_pot_v1_query_proto_init() { } } file_stratos_pot_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTotalRewardByEpochResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stratos_pot_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryMetricsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stratos_pot_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryMetricsResponse); i { case 0: return &v.state @@ -10644,7 +11618,7 @@ func file_stratos_pot_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_stratos_pot_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 20, + NumMessages: 22, NumExtensions: 0, NumServices: 1, }, diff --git a/api/stratos/pot/v1/query_grpc.pb.go b/api/stratos/pot/v1/query_grpc.pb.go index d84c1a86..9fecdf35 100644 --- a/api/stratos/pot/v1/query_grpc.pb.go +++ b/api/stratos/pot/v1/query_grpc.pb.go @@ -19,15 +19,16 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_VolumeReport_FullMethodName = "/stratos.pot.v1.Query/VolumeReport" - Query_RewardsByEpoch_FullMethodName = "/stratos.pot.v1.Query/RewardsByEpoch" - Query_RewardsByOwner_FullMethodName = "/stratos.pot.v1.Query/RewardsByOwner" - Query_SlashingByOwner_FullMethodName = "/stratos.pot.v1.Query/SlashingByOwner" - Query_Params_FullMethodName = "/stratos.pot.v1.Query/Params" - Query_TotalMinedToken_FullMethodName = "/stratos.pot.v1.Query/TotalMinedToken" - Query_CirculationSupply_FullMethodName = "/stratos.pot.v1.Query/CirculationSupply" - Query_TotalRewardByEpoch_FullMethodName = "/stratos.pot.v1.Query/TotalRewardByEpoch" - Query_Metrics_FullMethodName = "/stratos.pot.v1.Query/Metrics" + Query_VolumeReport_FullMethodName = "/stratos.pot.v1.Query/VolumeReport" + Query_RewardsByEpoch_FullMethodName = "/stratos.pot.v1.Query/RewardsByEpoch" + Query_RewardsByWallet_FullMethodName = "/stratos.pot.v1.Query/RewardsByWallet" + Query_RewardsByWalletAndEpoch_FullMethodName = "/stratos.pot.v1.Query/RewardsByWalletAndEpoch" + Query_SlashingByOwner_FullMethodName = "/stratos.pot.v1.Query/SlashingByOwner" + Query_Params_FullMethodName = "/stratos.pot.v1.Query/Params" + Query_TotalMinedToken_FullMethodName = "/stratos.pot.v1.Query/TotalMinedToken" + Query_CirculationSupply_FullMethodName = "/stratos.pot.v1.Query/CirculationSupply" + Query_TotalRewardByEpoch_FullMethodName = "/stratos.pot.v1.Query/TotalRewardByEpoch" + Query_Metrics_FullMethodName = "/stratos.pot.v1.Query/Metrics" ) // QueryClient is the client API for Query service. @@ -38,8 +39,10 @@ type QueryClient interface { VolumeReport(ctx context.Context, in *QueryVolumeReportRequest, opts ...grpc.CallOption) (*QueryVolumeReportResponse, error) // RewardsByEpoch queries Pot rewards by a given epoch. RewardsByEpoch(ctx context.Context, in *QueryRewardsByEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByEpochResponse, error) - // RewardsByOwner queries Pot rewards by a given owner wallet address. - RewardsByOwner(ctx context.Context, in *QueryRewardsByOwnerRequest, opts ...grpc.CallOption) (*QueryRewardsByOwnerResponse, error) + // RewardsByOwner queries Pot rewards by a given beneficiary address. + RewardsByWallet(ctx context.Context, in *QueryRewardsByWalletRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletResponse, error) + // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. + RewardsByWalletAndEpoch(ctx context.Context, in *QueryRewardsByWalletAndEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletAndEpochResponse, error) // SlashingByOwner queries Pot slashing by owner wallet address. SlashingByOwner(ctx context.Context, in *QuerySlashingByOwnerRequest, opts ...grpc.CallOption) (*QuerySlashingByOwnerResponse, error) // Params queries POT module Params info. @@ -76,9 +79,18 @@ func (c *queryClient) RewardsByEpoch(ctx context.Context, in *QueryRewardsByEpoc return out, nil } -func (c *queryClient) RewardsByOwner(ctx context.Context, in *QueryRewardsByOwnerRequest, opts ...grpc.CallOption) (*QueryRewardsByOwnerResponse, error) { - out := new(QueryRewardsByOwnerResponse) - err := c.cc.Invoke(ctx, Query_RewardsByOwner_FullMethodName, in, out, opts...) +func (c *queryClient) RewardsByWallet(ctx context.Context, in *QueryRewardsByWalletRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletResponse, error) { + out := new(QueryRewardsByWalletResponse) + err := c.cc.Invoke(ctx, Query_RewardsByWallet_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RewardsByWalletAndEpoch(ctx context.Context, in *QueryRewardsByWalletAndEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletAndEpochResponse, error) { + out := new(QueryRewardsByWalletAndEpochResponse) + err := c.cc.Invoke(ctx, Query_RewardsByWalletAndEpoch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -147,8 +159,10 @@ type QueryServer interface { VolumeReport(context.Context, *QueryVolumeReportRequest) (*QueryVolumeReportResponse, error) // RewardsByEpoch queries Pot rewards by a given epoch. RewardsByEpoch(context.Context, *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error) - // RewardsByOwner queries Pot rewards by a given owner wallet address. - RewardsByOwner(context.Context, *QueryRewardsByOwnerRequest) (*QueryRewardsByOwnerResponse, error) + // RewardsByOwner queries Pot rewards by a given beneficiary address. + RewardsByWallet(context.Context, *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error) + // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. + RewardsByWalletAndEpoch(context.Context, *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error) // SlashingByOwner queries Pot slashing by owner wallet address. SlashingByOwner(context.Context, *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error) // Params queries POT module Params info. @@ -170,8 +184,11 @@ func (UnimplementedQueryServer) VolumeReport(context.Context, *QueryVolumeReport func (UnimplementedQueryServer) RewardsByEpoch(context.Context, *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RewardsByEpoch not implemented") } -func (UnimplementedQueryServer) RewardsByOwner(context.Context, *QueryRewardsByOwnerRequest) (*QueryRewardsByOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RewardsByOwner not implemented") +func (UnimplementedQueryServer) RewardsByWallet(context.Context, *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RewardsByWallet not implemented") +} +func (UnimplementedQueryServer) RewardsByWalletAndEpoch(context.Context, *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RewardsByWalletAndEpoch not implemented") } func (UnimplementedQueryServer) SlashingByOwner(context.Context, *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SlashingByOwner not implemented") @@ -240,20 +257,38 @@ func _Query_RewardsByEpoch_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_RewardsByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRewardsByOwnerRequest) +func _Query_RewardsByWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRewardsByWalletRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RewardsByWallet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RewardsByWallet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RewardsByWallet(ctx, req.(*QueryRewardsByWalletRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RewardsByWalletAndEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRewardsByWalletAndEpochRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).RewardsByOwner(ctx, in) + return srv.(QueryServer).RewardsByWalletAndEpoch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_RewardsByOwner_FullMethodName, + FullMethod: Query_RewardsByWalletAndEpoch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RewardsByOwner(ctx, req.(*QueryRewardsByOwnerRequest)) + return srv.(QueryServer).RewardsByWalletAndEpoch(ctx, req.(*QueryRewardsByWalletAndEpochRequest)) } return interceptor(ctx, in, info, handler) } @@ -382,8 +417,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_RewardsByEpoch_Handler, }, { - MethodName: "RewardsByOwner", - Handler: _Query_RewardsByOwner_Handler, + MethodName: "RewardsByWallet", + Handler: _Query_RewardsByWallet_Handler, + }, + { + MethodName: "RewardsByWalletAndEpoch", + Handler: _Query_RewardsByWalletAndEpoch_Handler, }, { MethodName: "SlashingByOwner", diff --git a/api/stratos/register/v1/genesis.pulsar.go b/api/stratos/register/v1/genesis.pulsar.go index 51a1c180..35afce7d 100644 --- a/api/stratos/register/v1/genesis.pulsar.go +++ b/api/stratos/register/v1/genesis.pulsar.go @@ -273,16 +273,68 @@ func (x *_GenesisState_8_list) IsValid() bool { return x.list != nil } +var _ protoreflect.List = (*_GenesisState_9_list)(nil) + +type _GenesisState_9_list struct { + list *[]*KickMetaNodeVotePool +} + +func (x *_GenesisState_9_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_9_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_9_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*KickMetaNodeVotePool) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_9_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*KickMetaNodeVotePool) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_9_list) AppendMutable() protoreflect.Value { + v := new(KickMetaNodeVotePool) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_9_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_9_list) NewElement() protoreflect.Value { + v := new(KickMetaNodeVotePool) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_9_list) IsValid() bool { + return x.list != nil +} + var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_resource_nodes protoreflect.FieldDescriptor - fd_GenesisState_meta_nodes protoreflect.FieldDescriptor - fd_GenesisState_remaining_noz_limit protoreflect.FieldDescriptor - fd_GenesisState_slashing protoreflect.FieldDescriptor - fd_GenesisState_deposit_noz_rate protoreflect.FieldDescriptor - fd_GenesisState_meta_node_reg_vote_pool protoreflect.FieldDescriptor - fd_GenesisState_unbonding_nodes protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_resource_nodes protoreflect.FieldDescriptor + fd_GenesisState_meta_nodes protoreflect.FieldDescriptor + fd_GenesisState_remaining_noz_limit protoreflect.FieldDescriptor + fd_GenesisState_slashing protoreflect.FieldDescriptor + fd_GenesisState_deposit_noz_rate protoreflect.FieldDescriptor + fd_GenesisState_meta_node_reg_vote_pool protoreflect.FieldDescriptor + fd_GenesisState_unbonding_nodes protoreflect.FieldDescriptor + fd_GenesisState_kick_meta_node_vote_pool protoreflect.FieldDescriptor ) func init() { @@ -296,6 +348,7 @@ func init() { fd_GenesisState_deposit_noz_rate = md_GenesisState.Fields().ByName("deposit_noz_rate") fd_GenesisState_meta_node_reg_vote_pool = md_GenesisState.Fields().ByName("meta_node_reg_vote_pool") fd_GenesisState_unbonding_nodes = md_GenesisState.Fields().ByName("unbonding_nodes") + fd_GenesisState_kick_meta_node_vote_pool = md_GenesisState.Fields().ByName("kick_meta_node_vote_pool") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -411,6 +464,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if len(x.KickMetaNodeVotePool) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_9_list{list: &x.KickMetaNodeVotePool}) + if !f(fd_GenesisState_kick_meta_node_vote_pool, value) { + return + } + } } // Has reports whether a field is populated. @@ -442,6 +501,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.MetaNodeRegVotePool) != 0 case "stratos.register.v1.GenesisState.unbonding_nodes": return len(x.UnbondingNodes) != 0 + case "stratos.register.v1.GenesisState.kick_meta_node_vote_pool": + return len(x.KickMetaNodeVotePool) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.GenesisState")) @@ -474,6 +535,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.MetaNodeRegVotePool = nil case "stratos.register.v1.GenesisState.unbonding_nodes": x.UnbondingNodes = nil + case "stratos.register.v1.GenesisState.kick_meta_node_vote_pool": + x.KickMetaNodeVotePool = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.GenesisState")) @@ -529,6 +592,12 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_8_list{list: &x.UnbondingNodes} return protoreflect.ValueOfList(listValue) + case "stratos.register.v1.GenesisState.kick_meta_node_vote_pool": + if len(x.KickMetaNodeVotePool) == 0 { + return protoreflect.ValueOfList(&_GenesisState_9_list{}) + } + listValue := &_GenesisState_9_list{list: &x.KickMetaNodeVotePool} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.GenesisState")) @@ -575,6 +644,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_8_list) x.UnbondingNodes = *clv.list + case "stratos.register.v1.GenesisState.kick_meta_node_vote_pool": + lv := value.List() + clv := lv.(*_GenesisState_9_list) + x.KickMetaNodeVotePool = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.GenesisState")) @@ -630,6 +703,12 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_8_list{list: &x.UnbondingNodes} return protoreflect.ValueOfList(value) + case "stratos.register.v1.GenesisState.kick_meta_node_vote_pool": + if x.KickMetaNodeVotePool == nil { + x.KickMetaNodeVotePool = []*KickMetaNodeVotePool{} + } + value := &_GenesisState_9_list{list: &x.KickMetaNodeVotePool} + return protoreflect.ValueOfList(value) case "stratos.register.v1.GenesisState.remaining_noz_limit": panic(fmt.Errorf("field remaining_noz_limit of message stratos.register.v1.GenesisState is not mutable")) case "stratos.register.v1.GenesisState.deposit_noz_rate": @@ -669,6 +748,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "stratos.register.v1.GenesisState.unbonding_nodes": list := []*UnbondingNode{} return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) + case "stratos.register.v1.GenesisState.kick_meta_node_vote_pool": + list := []*KickMetaNodeVotePool{} + return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.GenesisState")) @@ -780,6 +862,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if len(x.KickMetaNodeVotePool) > 0 { + for _, e := range x.KickMetaNodeVotePool { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -809,6 +897,22 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.KickMetaNodeVotePool) > 0 { + for iNdEx := len(x.KickMetaNodeVotePool) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.KickMetaNodeVotePool[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + } if len(x.UnbondingNodes) > 0 { for iNdEx := len(x.UnbondingNodes) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.UnbondingNodes[iNdEx]) @@ -1236,6 +1340,40 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KickMetaNodeVotePool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.KickMetaNodeVotePool = append(x.KickMetaNodeVotePool, &KickMetaNodeVotePool{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KickMetaNodeVotePool[len(x.KickMetaNodeVotePool)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2645,14 +2783,15 @@ type GenesisState struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - ResourceNodes []*ResourceNode `protobuf:"bytes,2,rep,name=resource_nodes,json=resourceNodes,proto3" json:"resource_nodes,omitempty"` - MetaNodes []*MetaNode `protobuf:"bytes,3,rep,name=meta_nodes,json=metaNodes,proto3" json:"meta_nodes,omitempty"` - RemainingNozLimit string `protobuf:"bytes,4,opt,name=remaining_noz_limit,json=remainingNozLimit,proto3" json:"remaining_noz_limit,omitempty"` // remaining noz limit - Slashing []*Slashing `protobuf:"bytes,5,rep,name=slashing,proto3" json:"slashing,omitempty"` - DepositNozRate string `protobuf:"bytes,6,opt,name=deposit_noz_rate,json=depositNozRate,proto3" json:"deposit_noz_rate,omitempty"` //fixed rate of deposit over noz - MetaNodeRegVotePool []*MetaNodeRegistrationVotePool `protobuf:"bytes,7,rep,name=meta_node_reg_vote_pool,json=metaNodeRegVotePool,proto3" json:"meta_node_reg_vote_pool,omitempty"` - UnbondingNodes []*UnbondingNode `protobuf:"bytes,8,rep,name=unbonding_nodes,json=unbondingNodes,proto3" json:"unbonding_nodes,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + ResourceNodes []*ResourceNode `protobuf:"bytes,2,rep,name=resource_nodes,json=resourceNodes,proto3" json:"resource_nodes,omitempty"` + MetaNodes []*MetaNode `protobuf:"bytes,3,rep,name=meta_nodes,json=metaNodes,proto3" json:"meta_nodes,omitempty"` + RemainingNozLimit string `protobuf:"bytes,4,opt,name=remaining_noz_limit,json=remainingNozLimit,proto3" json:"remaining_noz_limit,omitempty"` // remaining noz limit + Slashing []*Slashing `protobuf:"bytes,5,rep,name=slashing,proto3" json:"slashing,omitempty"` + DepositNozRate string `protobuf:"bytes,6,opt,name=deposit_noz_rate,json=depositNozRate,proto3" json:"deposit_noz_rate,omitempty"` //fixed rate of deposit over noz + MetaNodeRegVotePool []*MetaNodeRegistrationVotePool `protobuf:"bytes,7,rep,name=meta_node_reg_vote_pool,json=metaNodeRegVotePool,proto3" json:"meta_node_reg_vote_pool,omitempty"` + UnbondingNodes []*UnbondingNode `protobuf:"bytes,8,rep,name=unbonding_nodes,json=unbondingNodes,proto3" json:"unbonding_nodes,omitempty"` + KickMetaNodeVotePool []*KickMetaNodeVotePool `protobuf:"bytes,9,rep,name=kick_meta_node_vote_pool,json=kickMetaNodeVotePool,proto3" json:"kick_meta_node_vote_pool,omitempty"` } func (x *GenesisState) Reset() { @@ -2731,6 +2870,13 @@ func (x *GenesisState) GetUnbondingNodes() []*UnbondingNode { return nil } +func (x *GenesisState) GetKickMetaNodeVotePool() []*KickMetaNodeVotePool { + if x != nil { + return x.KickMetaNodeVotePool + } + return nil +} + type GenesisMetaNode struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2884,7 +3030,7 @@ var file_stratos_register_v1_genesis_proto_rawDesc = []byte{ 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xdc, 0x08, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, + 0x6f, 0x22, 0x8a, 0x0a, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, @@ -2954,80 +3100,91 @@ var file_stratos_register_v1_genesis_proto_rawDesc = []byte{ 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x73, - 0x22, 0x93, 0x06, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x4d, 0x65, 0x74, 0x61, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, - 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x61, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x33, 0xea, 0xde, 0x1f, 0x06, - 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, - 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0xca, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, - 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x75, 0x73, 0x70, 0x65, - 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x1d, 0xea, 0xde, 0x1f, 0x07, 0x73, 0x75, - 0x73, 0x70, 0x65, 0x6e, 0x64, 0xf2, 0xde, 0x1f, 0x0e, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, - 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x22, 0x52, 0x07, 0x73, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, - 0x12, 0x57, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x42, 0x1b, 0xea, 0xde, 0x1f, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x22, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x57, 0x0a, 0x06, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x24, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x06, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x73, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x73, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, - 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x13, 0x62, 0x65, - 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, - 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x52, 0x12, - 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, - 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, - 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x01, 0x0a, 0x08, 0x53, 0x6c, 0x61, 0x73, 0x68, - 0x69, 0x6e, 0x67, 0x12, 0x6a, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xea, 0xde, 0x1f, - 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, - 0xde, 0x1f, 0x15, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x0d, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x19, - 0xea, 0xde, 0x1f, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0xf2, 0xde, 0x1f, 0x0c, 0x79, 0x61, 0x6d, - 0x6c, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0xca, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, - 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, - 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x53, 0x52, 0x58, 0xaa, 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1f, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x15, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0xa8, 0xe2, 0x1e, 0x01, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0xab, 0x01, 0x0a, 0x18, 0x6b, 0x69, 0x63, 0x6b, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x09, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x69, 0x63, 0x6b, 0x4d, 0x65, + 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x48, + 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x18, 0x6b, 0x69, 0x63, 0x6b, 0x5f, 0x6d, 0x65, 0x74, + 0x61, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0xf2, 0xde, 0x1f, 0x1f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6b, 0x69, 0x63, 0x6b, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, + 0x6f, 0x6c, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x6b, 0x69, 0x63, 0x6b, 0x4d, 0x65, + 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x22, 0x93, + 0x06, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, + 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x61, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x33, 0xea, 0xde, 0x1f, 0x06, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x22, 0xca, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x70, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x1d, 0xea, 0xde, 0x1f, 0x07, 0x73, 0x75, 0x73, 0x70, + 0x65, 0x6e, 0x64, 0xf2, 0xde, 0x1f, 0x0e, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x75, 0x73, + 0x70, 0x65, 0x6e, 0x64, 0x22, 0x52, 0x07, 0x73, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x57, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x42, 0x1b, 0xea, 0xde, 0x1f, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0xf2, 0xde, + 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x57, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, + 0x69, 0x6e, 0x42, 0x24, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x06, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, + 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, + 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, + 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, + 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x52, 0x12, 0x62, 0x65, + 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, + 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x01, 0x0a, 0x08, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, + 0x67, 0x12, 0x6a, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xea, 0xde, 0x1f, 0x0e, 0x77, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, + 0x15, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0d, + 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x19, 0xea, 0xde, + 0x1f, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0xf2, 0xde, 0x1f, 0x0c, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xca, + 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, + 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x52, + 0x58, 0xaa, 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, + 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x15, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0xa8, 0xe2, 0x1e, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -3052,10 +3209,11 @@ var file_stratos_register_v1_genesis_proto_goTypes = []interface{}{ (*MetaNode)(nil), // 5: stratos.register.v1.MetaNode (*MetaNodeRegistrationVotePool)(nil), // 6: stratos.register.v1.MetaNodeRegistrationVotePool (*UnbondingNode)(nil), // 7: stratos.register.v1.UnbondingNode - (*anypb.Any)(nil), // 8: google.protobuf.Any - (v1beta1.BondStatus)(0), // 9: cosmos.staking.v1beta1.BondStatus - (*v1beta11.Coin)(nil), // 10: cosmos.base.v1beta1.Coin - (*Description)(nil), // 11: stratos.register.v1.Description + (*KickMetaNodeVotePool)(nil), // 8: stratos.register.v1.KickMetaNodeVotePool + (*anypb.Any)(nil), // 9: google.protobuf.Any + (v1beta1.BondStatus)(0), // 10: cosmos.staking.v1beta1.BondStatus + (*v1beta11.Coin)(nil), // 11: cosmos.base.v1beta1.Coin + (*Description)(nil), // 12: stratos.register.v1.Description } var file_stratos_register_v1_genesis_proto_depIdxs = []int32{ 3, // 0: stratos.register.v1.GenesisState.params:type_name -> stratos.register.v1.Params @@ -3064,15 +3222,16 @@ var file_stratos_register_v1_genesis_proto_depIdxs = []int32{ 2, // 3: stratos.register.v1.GenesisState.slashing:type_name -> stratos.register.v1.Slashing 6, // 4: stratos.register.v1.GenesisState.meta_node_reg_vote_pool:type_name -> stratos.register.v1.MetaNodeRegistrationVotePool 7, // 5: stratos.register.v1.GenesisState.unbonding_nodes:type_name -> stratos.register.v1.UnbondingNode - 8, // 6: stratos.register.v1.GenesisMetaNode.pubkey:type_name -> google.protobuf.Any - 9, // 7: stratos.register.v1.GenesisMetaNode.status:type_name -> cosmos.staking.v1beta1.BondStatus - 10, // 8: stratos.register.v1.GenesisMetaNode.tokens:type_name -> cosmos.base.v1beta1.Coin - 11, // 9: stratos.register.v1.GenesisMetaNode.description:type_name -> stratos.register.v1.Description - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 8, // 6: stratos.register.v1.GenesisState.kick_meta_node_vote_pool:type_name -> stratos.register.v1.KickMetaNodeVotePool + 9, // 7: stratos.register.v1.GenesisMetaNode.pubkey:type_name -> google.protobuf.Any + 10, // 8: stratos.register.v1.GenesisMetaNode.status:type_name -> cosmos.staking.v1beta1.BondStatus + 11, // 9: stratos.register.v1.GenesisMetaNode.tokens:type_name -> cosmos.base.v1beta1.Coin + 12, // 10: stratos.register.v1.GenesisMetaNode.description:type_name -> stratos.register.v1.Description + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_stratos_register_v1_genesis_proto_init() } diff --git a/api/stratos/register/v1/query.pulsar.go b/api/stratos/register/v1/query.pulsar.go index d9707de0..145a7a71 100644 --- a/api/stratos/register/v1/query.pulsar.go +++ b/api/stratos/register/v1/query.pulsar.go @@ -10088,115 +10088,116 @@ var file_stratos_register_v1_query_proto_rawDesc = []byte{ 0x69, 0x74, 0xf2, 0xde, 0x1f, 0x18, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x75, 0x6e, 0x5f, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x22, 0x52, 0x0f, 0x75, 0x6e, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x32, - 0xfc, 0x0b, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xa9, 0x01, 0x0a, 0x0c, 0x52, 0x65, + 0x8a, 0x0c, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xa8, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x34, 0x12, 0x32, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x33, 0x12, 0x31, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, - 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x30, 0x12, 0x2e, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2d, 0x6e, 0x6f, 0x64, - 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0xba, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x42, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, - 0x40, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x7d, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4f, - 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, + 0x64, 0x64, 0x72, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, + 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, + 0x12, 0x2d, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, + 0x80, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0xba, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, + 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, - 0x32, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x62, 0x79, - 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, - 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x7d, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x12, + 0xaf, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, - 0x31, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, - 0xb6, 0x01, 0x0a, 0x17, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x38, 0x2e, 0x73, 0x74, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x6f, 0x74, + 0x61, 0x6c, 0x12, 0x2d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, + 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0xc0, 0x01, + 0x0a, 0x17, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x38, 0x2e, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, + 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, + 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0xb0, 0x01, 0x0a, 0x13, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x4e, + 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, + 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, + 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0xb6, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, + 0x67, 0x4f, 0x7a, 0x6f, 0x6e, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, - 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x70, - 0x70, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0xaa, 0x01, 0x0a, 0x13, 0x42, 0x6f, 0x6e, - 0x64, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x34, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x6f, 0x6e, 0x64, - 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x5f, 0x6e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0xb6, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, - 0x69, 0x6e, 0x67, 0x4f, 0x7a, 0x6f, 0x6e, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x34, 0x2e, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, - 0x6e, 0x67, 0x4f, 0x7a, 0x6f, 0x6e, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4f, 0x7a, 0x6f, 0x6e, 0x65, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, - 0x6e, 0x67, 0x5f, 0x6f, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0xc4, - 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x52, 0x58, 0xaa, - 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x53, 0x74, - 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, - 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, + 0x4f, 0x7a, 0x6f, 0x6e, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x35, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, + 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4f, 0x7a, 0x6f, 0x6e, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, + 0x12, 0x2a, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, + 0x5f, 0x6f, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0xc4, 0x01, 0x0a, + 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x52, 0x58, 0xaa, 0x02, 0x13, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x53, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/stratos/sds/v1/query.pulsar.go b/api/stratos/sds/v1/query.pulsar.go index 4f58d2e9..170807af 100644 --- a/api/stratos/sds/v1/query.pulsar.go +++ b/api/stratos/sds/v1/query.pulsar.go @@ -2,7 +2,7 @@ package sdsv1 import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + _ "cosmossdk.io/api/cosmos/base/v1beta1" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -871,57 +871,6 @@ func (x *fastReflection_QueryFileUploadResponse) ProtoMethods() *protoiface.Meth } } -var _ protoreflect.List = (*_QuerySimPrepayRequest_1_list)(nil) - -type _QuerySimPrepayRequest_1_list struct { - list *[]*v1beta1.Coin -} - -func (x *_QuerySimPrepayRequest_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySimPrepayRequest_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QuerySimPrepayRequest_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_QuerySimPrepayRequest_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySimPrepayRequest_1_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QuerySimPrepayRequest_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QuerySimPrepayRequest_1_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QuerySimPrepayRequest_1_list) IsValid() bool { - return x.list != nil -} - var ( md_QuerySimPrepayRequest protoreflect.MessageDescriptor fd_QuerySimPrepayRequest_amount protoreflect.FieldDescriptor @@ -998,8 +947,8 @@ func (x *fastReflection_QuerySimPrepayRequest) Interface() protoreflect.ProtoMes // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QuerySimPrepayRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_QuerySimPrepayRequest_1_list{list: &x.Amount}) + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) if !f(fd_QuerySimPrepayRequest_amount, value) { return } @@ -1020,7 +969,7 @@ func (x *fastReflection_QuerySimPrepayRequest) Range(f func(protoreflect.FieldDe func (x *fastReflection_QuerySimPrepayRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "stratos.sds.v1.QuerySimPrepayRequest.amount": - return len(x.Amount) != 0 + return x.Amount != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.sds.v1.QuerySimPrepayRequest")) @@ -1038,7 +987,7 @@ func (x *fastReflection_QuerySimPrepayRequest) Has(fd protoreflect.FieldDescript func (x *fastReflection_QuerySimPrepayRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "stratos.sds.v1.QuerySimPrepayRequest.amount": - x.Amount = nil + x.Amount = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.sds.v1.QuerySimPrepayRequest")) @@ -1056,11 +1005,8 @@ func (x *fastReflection_QuerySimPrepayRequest) Clear(fd protoreflect.FieldDescri func (x *fastReflection_QuerySimPrepayRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "stratos.sds.v1.QuerySimPrepayRequest.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_QuerySimPrepayRequest_1_list{}) - } - listValue := &_QuerySimPrepayRequest_1_list{list: &x.Amount} - return protoreflect.ValueOfList(listValue) + value := x.Amount + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.sds.v1.QuerySimPrepayRequest")) @@ -1082,9 +1028,7 @@ func (x *fastReflection_QuerySimPrepayRequest) Get(descriptor protoreflect.Field func (x *fastReflection_QuerySimPrepayRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "stratos.sds.v1.QuerySimPrepayRequest.amount": - lv := value.List() - clv := lv.(*_QuerySimPrepayRequest_1_list) - x.Amount = *clv.list + x.Amount = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.sds.v1.QuerySimPrepayRequest")) @@ -1106,11 +1050,7 @@ func (x *fastReflection_QuerySimPrepayRequest) Set(fd protoreflect.FieldDescript func (x *fastReflection_QuerySimPrepayRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "stratos.sds.v1.QuerySimPrepayRequest.amount": - if x.Amount == nil { - x.Amount = []*v1beta1.Coin{} - } - value := &_QuerySimPrepayRequest_1_list{list: &x.Amount} - return protoreflect.ValueOfList(value) + panic(fmt.Errorf("field amount of message stratos.sds.v1.QuerySimPrepayRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.sds.v1.QuerySimPrepayRequest")) @@ -1125,8 +1065,7 @@ func (x *fastReflection_QuerySimPrepayRequest) Mutable(fd protoreflect.FieldDesc func (x *fastReflection_QuerySimPrepayRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "stratos.sds.v1.QuerySimPrepayRequest.amount": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_QuerySimPrepayRequest_1_list{list: &list}) + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.sds.v1.QuerySimPrepayRequest")) @@ -1196,11 +1135,9 @@ func (x *fastReflection_QuerySimPrepayRequest) ProtoMethods() *protoiface.Method var n int var l int _ = l - if len(x.Amount) > 0 { - for _, e := range x.Amount { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -1232,20 +1169,11 @@ func (x *fastReflection_QuerySimPrepayRequest) ProtoMethods() *protoiface.Method copy(dAtA[i:], x.unknownFields) } if len(x.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -1300,7 +1228,7 @@ func (x *fastReflection_QuerySimPrepayRequest) ProtoMethods() *protoiface.Method if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1310,25 +1238,23 @@ func (x *fastReflection_QuerySimPrepayRequest) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = append(x.Amount, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4283,7 +4209,7 @@ type QuerySimPrepayRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` } func (x *QuerySimPrepayRequest) Reset() { @@ -4306,11 +4232,11 @@ func (*QuerySimPrepayRequest) Descriptor() ([]byte, []int) { return file_stratos_sds_v1_query_proto_rawDescGZIP(), []int{2} } -func (x *QuerySimPrepayRequest) GetAmount() []*v1beta1.Coin { +func (x *QuerySimPrepayRequest) GetAmount() string { if x != nil { return x.Amount } - return nil + return "" } type QuerySimPrepayResponse struct { @@ -4564,110 +4490,104 @@ var file_stratos_sds_v1_query_proto_rawDesc = []byte{ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x97, - 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, - 0x6f, 0x69, 0x6e, 0x42, 0x4b, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x22, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, - 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x63, 0x0a, 0x03, 0x6e, 0x6f, 0x7a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x51, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2f, + 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0x7d, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x03, 0x6e, 0x6f, 0x7a, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x51, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x03, 0x6e, 0x6f, 0x7a, 0xf2, 0xde, 0x1f, + 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x7a, 0x22, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x03, 0x6e, 0x6f, 0x7a, 0x22, 0x16, + 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6b, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x55, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xea, - 0xde, 0x1f, 0x03, 0x6e, 0x6f, 0x7a, 0xf2, 0xde, 0x1f, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, - 0x6e, 0x6f, 0x7a, 0x22, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, - 0x6e, 0x74, 0x52, 0x03, 0x6e, 0x6f, 0x7a, 0x22, 0x16, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x84, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x05, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x55, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, - 0x1f, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xea, 0xde, 0x1f, 0x05, 0x70, 0x72, 0x69, 0x63, - 0x65, 0xf2, 0xde, 0x1f, 0x0c, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x22, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, - 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, - 0x6f, 0x7a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x82, 0x02, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x53, 0x75, 0x70, 0x70, - 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x09, 0x72, 0x65, - 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x5d, 0xc8, + 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xea, + 0xde, 0x1f, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0xf2, 0xde, 0x1f, 0x0c, 0x79, 0x61, 0x6d, 0x6c, + 0x3a, 0x22, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x17, 0x0a, + 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x82, 0x02, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x6f, 0x7a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7b, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x5d, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, + 0x67, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x6d, 0x61, 0x69, + 0x6e, 0x69, 0x6e, 0x67, 0x22, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x6b, + 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x55, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, - 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, - 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0xd2, 0xb4, - 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, - 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x6b, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x55, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xea, 0xde, 0x1f, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0xf2, - 0xde, 0x1f, 0x0c, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xd2, - 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x05, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x32, 0x87, 0x05, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x8e, 0x01, 0x0a, 0x0a, - 0x46, 0x69, 0x6c, 0x65, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x26, 0x2e, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x2f, 0x7b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x7d, 0x12, 0x7e, 0x0a, 0x09, - 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x12, 0x25, 0x2e, 0x73, 0x74, 0x72, 0x61, + 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0xf2, 0xde, 0x1f, 0x0c, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x14, 0x0a, 0x12, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x45, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x91, 0x05, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x8e, 0x01, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x75, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x12, 0x26, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x7b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x68, 0x61, + 0x73, 0x68, 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x09, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, + 0x79, 0x12, 0x25, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, + 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x69, 0x6d, 0x5f, 0x70, 0x72, + 0x65, 0x70, 0x61, 0x79, 0x2f, 0x7b, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x12, 0x7a, 0x0a, + 0x08, 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x26, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, - 0x12, 0x1a, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x73, 0x69, 0x6d, 0x5f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x12, 0x7a, 0x0a, 0x08, - 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, - 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, - 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, + 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, + 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x6e, 0x6f, 0x7a, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x09, 0x4e, 0x6f, 0x7a, + 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x25, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, + 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, - 0x6f, 0x7a, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x09, 0x4e, 0x6f, 0x7a, 0x53, - 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x25, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, - 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x53, - 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x7a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, - 0x7a, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, - 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa1, 0x01, 0x0a, 0x12, - 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, - 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, 0x76, - 0x31, 0x3b, 0x73, 0x64, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58, 0xaa, 0x02, 0x0e, - 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x64, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x53, 0x64, 0x73, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1a, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x53, 0x64, 0x73, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, - 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x7a, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, + 0x73, 0x2e, 0x73, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, + 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa1, 0x01, 0x0a, + 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x73, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x64, 0x73, 0x2f, + 0x76, 0x31, 0x3b, 0x73, 0x64, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58, 0xaa, 0x02, + 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x64, 0x73, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x53, 0x64, 0x73, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1a, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x53, 0x64, 0x73, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4695,28 +4615,26 @@ var file_stratos_sds_v1_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 8: stratos.sds.v1.QueryParamsRequest (*QueryParamsResponse)(nil), // 9: stratos.sds.v1.QueryParamsResponse (*FileInfo)(nil), // 10: stratos.sds.v1.FileInfo - (*v1beta1.Coin)(nil), // 11: cosmos.base.v1beta1.Coin - (*Params)(nil), // 12: stratos.sds.v1.Params + (*Params)(nil), // 11: stratos.sds.v1.Params } var file_stratos_sds_v1_query_proto_depIdxs = []int32{ 10, // 0: stratos.sds.v1.QueryFileUploadResponse.file_info:type_name -> stratos.sds.v1.FileInfo - 11, // 1: stratos.sds.v1.QuerySimPrepayRequest.amount:type_name -> cosmos.base.v1beta1.Coin - 12, // 2: stratos.sds.v1.QueryParamsResponse.params:type_name -> stratos.sds.v1.Params - 0, // 3: stratos.sds.v1.Query.Fileupload:input_type -> stratos.sds.v1.QueryFileUploadRequest - 2, // 4: stratos.sds.v1.Query.SimPrepay:input_type -> stratos.sds.v1.QuerySimPrepayRequest - 4, // 5: stratos.sds.v1.Query.NozPrice:input_type -> stratos.sds.v1.QueryNozPriceRequest - 6, // 6: stratos.sds.v1.Query.NozSupply:input_type -> stratos.sds.v1.QueryNozSupplyRequest - 8, // 7: stratos.sds.v1.Query.Params:input_type -> stratos.sds.v1.QueryParamsRequest - 1, // 8: stratos.sds.v1.Query.Fileupload:output_type -> stratos.sds.v1.QueryFileUploadResponse - 3, // 9: stratos.sds.v1.Query.SimPrepay:output_type -> stratos.sds.v1.QuerySimPrepayResponse - 5, // 10: stratos.sds.v1.Query.NozPrice:output_type -> stratos.sds.v1.QueryNozPriceResponse - 7, // 11: stratos.sds.v1.Query.NozSupply:output_type -> stratos.sds.v1.QueryNozSupplyResponse - 9, // 12: stratos.sds.v1.Query.Params:output_type -> stratos.sds.v1.QueryParamsResponse - 8, // [8:13] is the sub-list for method output_type - 3, // [3:8] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 11, // 1: stratos.sds.v1.QueryParamsResponse.params:type_name -> stratos.sds.v1.Params + 0, // 2: stratos.sds.v1.Query.Fileupload:input_type -> stratos.sds.v1.QueryFileUploadRequest + 2, // 3: stratos.sds.v1.Query.SimPrepay:input_type -> stratos.sds.v1.QuerySimPrepayRequest + 4, // 4: stratos.sds.v1.Query.NozPrice:input_type -> stratos.sds.v1.QueryNozPriceRequest + 6, // 5: stratos.sds.v1.Query.NozSupply:input_type -> stratos.sds.v1.QueryNozSupplyRequest + 8, // 6: stratos.sds.v1.Query.Params:input_type -> stratos.sds.v1.QueryParamsRequest + 1, // 7: stratos.sds.v1.Query.Fileupload:output_type -> stratos.sds.v1.QueryFileUploadResponse + 3, // 8: stratos.sds.v1.Query.SimPrepay:output_type -> stratos.sds.v1.QuerySimPrepayResponse + 5, // 9: stratos.sds.v1.Query.NozPrice:output_type -> stratos.sds.v1.QueryNozPriceResponse + 7, // 10: stratos.sds.v1.Query.NozSupply:output_type -> stratos.sds.v1.QueryNozSupplyResponse + 9, // 11: stratos.sds.v1.Query.Params:output_type -> stratos.sds.v1.QueryParamsResponse + 7, // [7:12] is the sub-list for method output_type + 2, // [2:7] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_stratos_sds_v1_query_proto_init() } diff --git a/proto/stratos/evm/v1/evm.proto b/proto/stratos/evm/v1/evm.proto index 78b2f6c3..c35b830e 100644 --- a/proto/stratos/evm/v1/evm.proto +++ b/proto/stratos/evm/v1/evm.proto @@ -37,7 +37,7 @@ message Params { ]; } -// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values +// ChainConfig defines the Ethereum ChainConfig parameters using *sdkmath.Int values // instead of *big.Int. message ChainConfig { // chainId identifies the current chain and is used for replay protection diff --git a/proto/stratos/pot/v1/query.proto b/proto/stratos/pot/v1/query.proto index af648126..7ce22ac9 100644 --- a/proto/stratos/pot/v1/query.proto +++ b/proto/stratos/pot/v1/query.proto @@ -13,7 +13,7 @@ option go_package = "github.com/stratosnet/stratos-chain/x/pot/types"; service Query { // VolumeReport queries VolumeReport info for given epoch. rpc VolumeReport(QueryVolumeReportRequest) returns (QueryVolumeReportResponse) { - option (google.api.http).get = "/stratos/pot/v1/volume-report/{epoch}"; + option (google.api.http).get = "/stratos/pot/v1/volume_report/{epoch}"; } // RewardsByEpoch queries Pot rewards by a given epoch. @@ -21,11 +21,16 @@ service Query { option (google.api.http).get = "/stratos/pot/v1/rewards/epoch/{epoch}"; } - // RewardsByOwner queries Pot rewards by a given owner wallet address. - rpc RewardsByOwner(QueryRewardsByOwnerRequest) returns (QueryRewardsByOwnerResponse) { + // RewardsByOwner queries Pot rewards by a given beneficiary address. + rpc RewardsByWallet(QueryRewardsByWalletRequest) returns (QueryRewardsByWalletResponse) { option (google.api.http).get = "/stratos/pot/v1/rewards/wallet/{wallet_address}"; } + // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. + rpc RewardsByWalletAndEpoch(QueryRewardsByWalletAndEpochRequest) returns (QueryRewardsByWalletAndEpochResponse) { + option (google.api.http).get = "/stratos/pot/v1/rewards/wallet/{wallet_address}/epoch/{epoch}"; + } + // SlashingByOwner queries Pot slashing by owner wallet address. rpc SlashingByOwner(QuerySlashingByOwnerRequest) returns (QuerySlashingByOwnerResponse) { option (google.api.http).get = "/stratos/pot/v1/slashing/{wallet_address}"; @@ -37,15 +42,15 @@ service Query { } rpc TotalMinedToken(QueryTotalMinedTokenRequest) returns (QueryTotalMinedTokenResponse) { - option (google.api.http).get = "/stratos/pot/v1/total-mined-token"; + option (google.api.http).get = "/stratos/pot/v1/total_mined_token"; } rpc CirculationSupply(QueryCirculationSupplyRequest) returns (QueryCirculationSupplyResponse) { - option (google.api.http).get = "/stratos/pot/v1/circulation-supply"; + option (google.api.http).get = "/stratos/pot/v1/circulation_supply"; } rpc TotalRewardByEpoch(QueryTotalRewardByEpochRequest) returns (QueryTotalRewardByEpochResponse) { - option (google.api.http).get = "/stratos/pot/v1/total-reward/{epoch}"; + option (google.api.http).get = "/stratos/pot/v1/total_reward/{epoch}"; } rpc Metrics(QueryMetricsRequest) returns (QueryMetricsResponse) { @@ -63,7 +68,6 @@ message QueryVolumeReportRequest { message QueryVolumeReportResponse { // node defines the the volumeReport info. ReportInfo report_info = 1; - int64 height = 2; } message ReportInfo { @@ -86,29 +90,37 @@ message QueryParamsResponse { // QueryRewardsByEpochRequest is request type for the Query/RewardsByEpoch by a given epoch RPC method message QueryRewardsByEpochRequest { int64 epoch = 1; - string wallet_address = 2; - cosmos.base.query.v1beta1.PageRequest pagination = 3; + cosmos.base.query.v1beta1.PageRequest pagination = 2; } // QueryRewardsByEpochResponse is response type for the Query/RewardsByEpoch RPC method message QueryRewardsByEpochResponse { repeated Reward rewards = 1; - int64 height = 2; - cosmos.base.query.v1beta1.PageResponse pagination = 3; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryRewardsByOwnerRequest is request type for the Query/RewardsByOwner by a given owner RPC method -message QueryRewardsByOwnerRequest { +message QueryRewardsByWalletRequest { string wallet_address = 1; } // QueryRewardsByOwnerResponse is response type for the Query/RewardsByOwner RPC method -message QueryRewardsByOwnerResponse { - RewardByOwner rewards = 1; - int64 height = 2; +message QueryRewardsByWalletResponse { + RewardByWallet rewards = 1; +} + +message QueryRewardsByWalletAndEpochRequest { + string wallet_address = 1; + int64 epoch = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +message QueryRewardsByWalletAndEpochResponse { + repeated Reward rewards = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message RewardByOwner { +message RewardByWallet { string wallet_address = 1; repeated cosmos.base.v1beta1.Coin mature_total_reward = 2 [ (gogoproto.nullable) = false, @@ -128,7 +140,6 @@ message QuerySlashingByOwnerRequest { // QuerySlashingByOwnerResponse is response type for the Query/Slashing RPC method message QuerySlashingByOwnerResponse { string slashing = 1; - int64 height = 2; } message QueryTotalMinedTokenRequest{} diff --git a/proto/stratos/register/v1/genesis.proto b/proto/stratos/register/v1/genesis.proto index 98c80f1b..4ee2274d 100644 --- a/proto/stratos/register/v1/genesis.proto +++ b/proto/stratos/register/v1/genesis.proto @@ -68,6 +68,12 @@ message GenesisState { (gogoproto.jsontag) = "unbonding_nodes", (gogoproto.moretags) = "yaml:\"unbonding_nodes\"" ]; + repeated KickMetaNodeVotePool kick_meta_node_vote_pool = 9 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "kick_meta_node_vote_pool", + (gogoproto.moretags) = "yaml:\"kick_meta_node_vote_pool\"" + ]; } message GenesisMetaNode { diff --git a/proto/stratos/register/v1/query.proto b/proto/stratos/register/v1/query.proto index 307906ee..a6f4ccec 100644 --- a/proto/stratos/register/v1/query.proto +++ b/proto/stratos/register/v1/query.proto @@ -18,12 +18,12 @@ option go_package = "github.com/stratosnet/stratos-chain/x/register/types"; service Query { // ResourceNode queries ResourceNode info for given ResourceNode address. rpc ResourceNode(QueryResourceNodeRequest) returns (QueryResourceNodeResponse) { - option (google.api.http).get = "/stratos/register/v1/resource-nodes/{network_addr}"; + option (google.api.http).get = "/stratos/register/v1/resource_node/{network_addr}"; } // MetaNode queries MetaNode info for given MetaNode address. rpc MetaNode(QueryMetaNodeRequest) returns (QueryMetaNodeResponse) { - option (google.api.http).get = "/stratos/register/v1/meta-nodes/{network_addr}"; + option (google.api.http).get = "/stratos/register/v1/meta_node/{network_addr}"; } // Params queries Register module Params info. @@ -48,12 +48,12 @@ service Query { // BondedResourceNodeCount queries total number of ResourceNodes. rpc BondedResourceNodeCount(QueryBondedResourceNodeCountRequest) returns (QueryBondedResourceNodeCountResponse) { - option (google.api.http).get = "/stratos/register/v1/pp_number"; + option (google.api.http).get = "/stratos/register/v1/resource_node_count"; } // BondedMetaNodeCount queries total number of MetaNodes. rpc BondedMetaNodeCount(QueryBondedMetaNodeCountRequest) returns (QueryBondedMetaNodeCountResponse) { - option (google.api.http).get = "/stratos/register/v1/sp_number"; + option (google.api.http).get = "/stratos/register/v1/meta_node_count"; } // RemainingOzoneLimit returns the current remaining ozone limit. diff --git a/proto/stratos/sds/v1/query.proto b/proto/stratos/sds/v1/query.proto index 65b4c210..9bd79380 100644 --- a/proto/stratos/sds/v1/query.proto +++ b/proto/stratos/sds/v1/query.proto @@ -17,7 +17,7 @@ service Query { } rpc SimPrepay(QuerySimPrepayRequest) returns (QuerySimPrepayResponse){ - option (google.api.http).get = "/stratos/sds/v1/sim_prepay"; + option (google.api.http).get = "/stratos/sds/v1/sim_prepay/{amount}"; } rpc NozPrice(QueryNozPriceRequest) returns (QueryNozPriceResponse) { @@ -46,12 +46,7 @@ message QueryFileUploadResponse { } message QuerySimPrepayRequest { - repeated cosmos.base.v1beta1.Coin amount = 1 [ - (gogoproto.jsontag) = "amount", - (gogoproto.moretags) = "yaml:\"amount\"", - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; + string amount = 1; } message QuerySimPrepayResponse { diff --git a/x/evm/keeper/proposal.go b/x/evm/keeper/proposal.go index 269d4fd0..b1f207d4 100644 --- a/x/evm/keeper/proposal.go +++ b/x/evm/keeper/proposal.go @@ -7,6 +7,7 @@ import ( "math/big" errorsmod "cosmossdk.io/errors" + sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" @@ -224,7 +225,7 @@ func (pc *ProposalCounsil) Migrate1to2() error { } } - value := sdk.NewInt(0) + value := sdkmath.NewInt(0) c := types.NewUpdateImplmentationProposal( proxyAddr.Hex(), implAddr.Hex(), diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 937b76a0..bd657241 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -6,7 +6,7 @@ import ( "sync" tmtypes "github.com/cometbft/cometbft/types" - proto "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/gogoproto/proto" "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" @@ -143,7 +143,7 @@ func (k *Keeper) PrepayFn(ctx sdk.Context) vm.PrepayFunc { accFrom := sdk.AccAddress(from.Bytes()) accBeneficiary := sdk.AccAddress(beneficiary.Bytes()) - purchased, remaining, err := k.KeeCalculatePrepayPurchaseAmount(evm.StateDB, sdk.NewIntFromBigInt(amount)) + purchased, remaining, err := k.KeeCalculatePrepayPurchaseAmount(evm.StateDB, sdkmath.NewIntFromBigInt(amount)) if err != nil { evm.StateDB.RevertToKeeSnapshot(kSnapshot) @@ -164,7 +164,7 @@ func (k *Keeper) PrepayFn(ctx sdk.Context) vm.PrepayFunc { tevs[0] = (proto.Message)(&sdstypes.EventPrePay{ Sender: accFrom.String(), Beneficiary: accBeneficiary.String(), - Amount: sdk.NewIntFromBigInt(amount).String(), + Amount: sdkmath.NewIntFromBigInt(amount).String(), PurchasedNoz: purchased.String(), }) k.AddTypedEvents(tevs) diff --git a/x/evm/types/evm.pb.go b/x/evm/types/evm.pb.go index 89c8e811..141662f3 100644 --- a/x/evm/types/evm.pb.go +++ b/x/evm/types/evm.pb.go @@ -118,7 +118,7 @@ func (m *Params) GetFeeMarketParams() FeeMarketParams { return FeeMarketParams{} } -// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values +// ChainConfig defines the Ethereum ChainConfig parameters using *sdkmath.Int values // instead of *big.Int. type ChainConfig struct { // chainId identifies the current chain and is used for replay protection diff --git a/x/evm/types/interfaces.go b/x/evm/types/interfaces.go index 423439b6..ef12d364 100644 --- a/x/evm/types/interfaces.go +++ b/x/evm/types/interfaces.go @@ -1,6 +1,7 @@ package types import ( + sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" @@ -49,14 +50,14 @@ type PotKeeper interface { // RegisterKeeper defines functionality related for meta and resource node type RegisterKeeper interface { - KeeGetEffectiveTotalDeposit(kdb *keestatedb.KeestateDB) sdk.Int - KeeGetRemainingOzoneLimit(kdb *keestatedb.KeestateDB) sdk.Int - KeeSetRemainingOzoneLimit(kdb *keestatedb.KeestateDB, value sdk.Int) + KeeGetEffectiveTotalDeposit(kdb *keestatedb.KeestateDB) sdkmath.Int + KeeGetRemainingOzoneLimit(kdb *keestatedb.KeestateDB) sdkmath.Int + KeeSetRemainingOzoneLimit(kdb *keestatedb.KeestateDB, value sdkmath.Int) } // SdsKeper defines functionality related for ozone purchase type SdsKeeper interface { - Prepay(ctx sdk.Context, sender sdk.AccAddress, coins sdk.Coins) (sdk.Int, error) + Prepay(ctx sdk.Context, sender sdk.AccAddress, coins sdk.Coins) (sdkmath.Int, error) } // Event Hooks diff --git a/x/pot/keeper/grpc_query.go b/x/pot/keeper/grpc_query.go index 12e739c2..d872d295 100644 --- a/x/pot/keeper/grpc_query.go +++ b/x/pot/keeper/grpc_query.go @@ -48,7 +48,6 @@ func (q Querier) VolumeReport(c context.Context, req *types.QueryVolumeReportReq epoch = q.GetLastDistributedEpoch(ctx) } - height := ctx.BlockHeight() volumeReport := q.GetVolumeReport(ctx, epoch) return &types.QueryVolumeReportResponse{ @@ -58,7 +57,6 @@ func (q Querier) VolumeReport(c context.Context, req *types.QueryVolumeReportReq Reporter: volumeReport.Reporter, TxHash: volumeReport.TxHash, }, - Height: height, }, nil } @@ -73,19 +71,13 @@ func (q Querier) RewardsByEpoch(c context.Context, req *types.QueryRewardsByEpoc return &types.QueryRewardsByEpochResponse{}, status.Error(codes.InvalidArgument, "epoch cannot be equal to or lower than 0") } - walletAddr, err := sdk.AccAddressFromBech32(req.GetWalletAddress()) - if err != nil { - return &types.QueryRewardsByEpochResponse{}, status.Error(codes.Internal, err.Error()) - } - ctx := sdk.UnwrapSDKContext(c) matureEpoch := queryEpoch.Add(sdkmath.NewInt(q.MatureEpoch(ctx))) var res []*types.Reward store := ctx.KVStore(q.storeKey) - //RewardStore := prefix.NewStore(store, types.GetIndividualRewardIteratorKey(matureEpoch)) - RewardStore := prefix.NewStore(store, types.GetIndividualRewardKey(walletAddr, matureEpoch)) + RewardStore := prefix.NewStore(store, types.GetIndividualRewardIteratorKey(matureEpoch)) rewardsPageRes, err := FilteredPaginate(q.cdc, RewardStore, req.Pagination, func(key []byte, value []byte, accumulate bool) (bool, error) { val, err := UnmarshalIndividualReward(q.cdc, value) @@ -102,9 +94,8 @@ func (q Querier) RewardsByEpoch(c context.Context, req *types.QueryRewardsByEpoc if err != nil { return &types.QueryRewardsByEpochResponse{}, status.Error(codes.Internal, err.Error()) } - height := ctx.BlockHeight() - return &types.QueryRewardsByEpochResponse{Rewards: res, Height: height, Pagination: rewardsPageRes}, nil + return &types.QueryRewardsByEpochResponse{Rewards: res, Pagination: rewardsPageRes}, nil } func UnmarshalIndividualReward(cdc codec.Codec, value []byte) (v types.Reward, err error) { @@ -230,27 +221,72 @@ func FilteredPaginate(cdc codec.Codec, return res, nil } -func (q Querier) RewardsByOwner(c context.Context, req *types.QueryRewardsByOwnerRequest) (*types.QueryRewardsByOwnerResponse, error) { +func (q Querier) RewardsByWallet(c context.Context, req *types.QueryRewardsByWalletRequest) (*types.QueryRewardsByWalletResponse, error) { if req == nil { - return &types.QueryRewardsByOwnerResponse{}, status.Errorf(codes.InvalidArgument, "empty request") + return &types.QueryRewardsByWalletResponse{}, status.Errorf(codes.InvalidArgument, "empty request") } if req.GetWalletAddress() == "" { - return &types.QueryRewardsByOwnerResponse{}, status.Error(codes.InvalidArgument, "wallet address cannot be empty") + return &types.QueryRewardsByWalletResponse{}, status.Error(codes.InvalidArgument, "wallet address cannot be empty") } + ctx := sdk.UnwrapSDKContext(c) - height := ctx.BlockHeight() walletAddr, err := sdk.AccAddressFromBech32(req.GetWalletAddress()) if err != nil { - return &types.QueryRewardsByOwnerResponse{}, err + return &types.QueryRewardsByWalletResponse{}, err } immatureTotalReward := q.GetImmatureTotalReward(ctx, walletAddr) matureTotalReward := q.GetMatureTotalReward(ctx, walletAddr) - reward := types.NewRewardInfo(walletAddr, matureTotalReward, immatureTotalReward) - return &types.QueryRewardsByOwnerResponse{Rewards: &reward, Height: height}, nil + reward := types.NewRewardByWallet(walletAddr, matureTotalReward, immatureTotalReward) + return &types.QueryRewardsByWalletResponse{Rewards: reward}, nil +} + +func (q Querier) RewardsByWalletAndEpoch(c context.Context, req *types.QueryRewardsByWalletAndEpochRequest) (*types.QueryRewardsByWalletAndEpochResponse, error) { + if req == nil { + return &types.QueryRewardsByWalletAndEpochResponse{}, status.Errorf(codes.InvalidArgument, "empty request") + } + + queryEpoch := sdkmath.NewInt(req.GetEpoch()) + if queryEpoch.LTE(sdkmath.ZeroInt()) { + return &types.QueryRewardsByWalletAndEpochResponse{}, status.Error(codes.InvalidArgument, "epoch cannot be equal to or lower than 0") + } + + if req.GetWalletAddress() == "" { + return &types.QueryRewardsByWalletAndEpochResponse{}, status.Error(codes.InvalidArgument, "wallet address cannot be empty") + } + + walletAddr, err := sdk.AccAddressFromBech32(req.GetWalletAddress()) + if err != nil { + return &types.QueryRewardsByWalletAndEpochResponse{}, err + } + + ctx := sdk.UnwrapSDKContext(c) + matureEpoch := queryEpoch.Add(sdkmath.NewInt(q.MatureEpoch(ctx))) + + var res []*types.Reward + + store := ctx.KVStore(q.storeKey) + individualRewardStore := prefix.NewStore(store, types.GetIndividualRewardKey(walletAddr, matureEpoch)) + + rewardsPageRes, err := FilteredPaginate(q.cdc, individualRewardStore, req.Pagination, func(key []byte, value []byte, accumulate bool) (bool, error) { + val, err := UnmarshalIndividualReward(q.cdc, value) + if err != nil { + return false, err + } + + if accumulate { + res = append(res, &val) + } + + return true, nil + }) + if err != nil { + return &types.QueryRewardsByWalletAndEpochResponse{}, status.Error(codes.Internal, err.Error()) + } + return &types.QueryRewardsByWalletAndEpochResponse{Rewards: res, Pagination: rewardsPageRes}, nil } func (q Querier) SlashingByOwner(c context.Context, req *types.QuerySlashingByOwnerRequest) (*types.QuerySlashingByOwnerResponse, error) { @@ -262,7 +298,6 @@ func (q Querier) SlashingByOwner(c context.Context, req *types.QuerySlashingByOw return &types.QuerySlashingByOwnerResponse{}, status.Error(codes.InvalidArgument, "wallet address cannot be empty") } ctx := sdk.UnwrapSDKContext(c) - height := ctx.BlockHeight() walletAddr, err := sdk.AccAddressFromBech32(req.GetWalletAddress()) if err != nil { @@ -270,7 +305,7 @@ func (q Querier) SlashingByOwner(c context.Context, req *types.QuerySlashingByOw } slashing := q.registerKeeper.GetSlashing(ctx, walletAddr).String() - return &types.QuerySlashingByOwnerResponse{Slashing: slashing, Height: height}, nil + return &types.QuerySlashingByOwnerResponse{Slashing: slashing}, nil } diff --git a/x/pot/keeper/store.go b/x/pot/keeper/store.go index d7ed5ed2..9cf1a854 100644 --- a/x/pot/keeper/store.go +++ b/x/pot/keeper/store.go @@ -225,7 +225,7 @@ func (k Keeper) IteratorTotalReward(ctx sdk.Context, handler func(epoch sdkmath. defer iter.Close() for ; iter.Valid(); iter.Next() { epochBytes := iter.Key()[len(types.TotalRewardKeyPrefix):] - epoch, _ := sdk.NewIntFromString(string(epochBytes)) + epoch, _ := sdkmath.NewIntFromString(string(epochBytes)) var totalReward types.TotalReward k.cdc.MustUnmarshalLengthPrefixed(iter.Value(), &totalReward) if handler(epoch, totalReward) { diff --git a/x/pot/types/query.go b/x/pot/types/query.go index d5048b8b..8dbcc25f 100644 --- a/x/pot/types/query.go +++ b/x/pot/types/query.go @@ -8,13 +8,13 @@ const ( QueryDefaultLimit = 100 ) -// NewRewardInfo creates a new instance of PotRewardInfo -func NewRewardInfo( +// NewRewardByWallet creates a new instance of RewardByWallet +func NewRewardByWallet( walletAddress sdk.AccAddress, matureTotal sdk.Coins, immatureTotal sdk.Coins, -) RewardByOwner { - return RewardByOwner{ +) *RewardByWallet { + return &RewardByWallet{ WalletAddress: walletAddress.String(), MatureTotalReward: matureTotal, ImmatureTotalReward: immatureTotal, diff --git a/x/pot/types/query.pb.go b/x/pot/types/query.pb.go index f20656e1..c6703cac 100644 --- a/x/pot/types/query.pb.go +++ b/x/pot/types/query.pb.go @@ -82,7 +82,6 @@ func (m *QueryVolumeReportRequest) GetEpoch() int64 { type QueryVolumeReportResponse struct { // node defines the the volumeReport info. ReportInfo *ReportInfo `protobuf:"bytes,1,opt,name=report_info,json=reportInfo,proto3" json:"report_info,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QueryVolumeReportResponse) Reset() { *m = QueryVolumeReportResponse{} } @@ -125,13 +124,6 @@ func (m *QueryVolumeReportResponse) GetReportInfo() *ReportInfo { return nil } -func (m *QueryVolumeReportResponse) GetHeight() int64 { - if m != nil { - return m.Height - } - return 0 -} - type ReportInfo struct { Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` @@ -285,9 +277,8 @@ func (m *QueryParamsResponse) GetParams() *Params { // QueryRewardsByEpochRequest is request type for the Query/RewardsByEpoch by a given epoch RPC method type QueryRewardsByEpochRequest struct { - Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryRewardsByEpochRequest) Reset() { *m = QueryRewardsByEpochRequest{} } @@ -330,13 +321,6 @@ func (m *QueryRewardsByEpochRequest) GetEpoch() int64 { return 0 } -func (m *QueryRewardsByEpochRequest) GetWalletAddress() string { - if m != nil { - return m.WalletAddress - } - return "" -} - func (m *QueryRewardsByEpochRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination @@ -347,8 +331,7 @@ func (m *QueryRewardsByEpochRequest) GetPagination() *query.PageRequest { // QueryRewardsByEpochResponse is response type for the Query/RewardsByEpoch RPC method type QueryRewardsByEpochResponse struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryRewardsByEpochResponse) Reset() { *m = QueryRewardsByEpochResponse{} } @@ -391,13 +374,6 @@ func (m *QueryRewardsByEpochResponse) GetRewards() []*Reward { return nil } -func (m *QueryRewardsByEpochResponse) GetHeight() int64 { - if m != nil { - return m.Height - } - return 0 -} - func (m *QueryRewardsByEpochResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination @@ -406,22 +382,22 @@ func (m *QueryRewardsByEpochResponse) GetPagination() *query.PageResponse { } // QueryRewardsByOwnerRequest is request type for the Query/RewardsByOwner by a given owner RPC method -type QueryRewardsByOwnerRequest struct { +type QueryRewardsByWalletRequest struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` } -func (m *QueryRewardsByOwnerRequest) Reset() { *m = QueryRewardsByOwnerRequest{} } -func (m *QueryRewardsByOwnerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRewardsByOwnerRequest) ProtoMessage() {} -func (*QueryRewardsByOwnerRequest) Descriptor() ([]byte, []int) { +func (m *QueryRewardsByWalletRequest) Reset() { *m = QueryRewardsByWalletRequest{} } +func (m *QueryRewardsByWalletRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRewardsByWalletRequest) ProtoMessage() {} +func (*QueryRewardsByWalletRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c09bd09df76a68e0, []int{7} } -func (m *QueryRewardsByOwnerRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryRewardsByWalletRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRewardsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryRewardsByWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRewardsByOwnerRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryRewardsByWalletRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -431,19 +407,19 @@ func (m *QueryRewardsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryRewardsByOwnerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRewardsByOwnerRequest.Merge(m, src) +func (m *QueryRewardsByWalletRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRewardsByWalletRequest.Merge(m, src) } -func (m *QueryRewardsByOwnerRequest) XXX_Size() int { +func (m *QueryRewardsByWalletRequest) XXX_Size() int { return m.Size() } -func (m *QueryRewardsByOwnerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRewardsByOwnerRequest.DiscardUnknown(m) +func (m *QueryRewardsByWalletRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRewardsByWalletRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryRewardsByOwnerRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryRewardsByWalletRequest proto.InternalMessageInfo -func (m *QueryRewardsByOwnerRequest) GetWalletAddress() string { +func (m *QueryRewardsByWalletRequest) GetWalletAddress() string { if m != nil { return m.WalletAddress } @@ -451,23 +427,22 @@ func (m *QueryRewardsByOwnerRequest) GetWalletAddress() string { } // QueryRewardsByOwnerResponse is response type for the Query/RewardsByOwner RPC method -type QueryRewardsByOwnerResponse struct { - Rewards *RewardByOwner `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` +type QueryRewardsByWalletResponse struct { + Rewards *RewardByWallet `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` } -func (m *QueryRewardsByOwnerResponse) Reset() { *m = QueryRewardsByOwnerResponse{} } -func (m *QueryRewardsByOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRewardsByOwnerResponse) ProtoMessage() {} -func (*QueryRewardsByOwnerResponse) Descriptor() ([]byte, []int) { +func (m *QueryRewardsByWalletResponse) Reset() { *m = QueryRewardsByWalletResponse{} } +func (m *QueryRewardsByWalletResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRewardsByWalletResponse) ProtoMessage() {} +func (*QueryRewardsByWalletResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c09bd09df76a68e0, []int{8} } -func (m *QueryRewardsByOwnerResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryRewardsByWalletResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryRewardsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryRewardsByWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryRewardsByOwnerResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryRewardsByWalletResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -477,50 +452,155 @@ func (m *QueryRewardsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryRewardsByOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRewardsByOwnerResponse.Merge(m, src) +func (m *QueryRewardsByWalletResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRewardsByWalletResponse.Merge(m, src) } -func (m *QueryRewardsByOwnerResponse) XXX_Size() int { +func (m *QueryRewardsByWalletResponse) XXX_Size() int { return m.Size() } -func (m *QueryRewardsByOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRewardsByOwnerResponse.DiscardUnknown(m) +func (m *QueryRewardsByWalletResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRewardsByWalletResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryRewardsByOwnerResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryRewardsByWalletResponse proto.InternalMessageInfo -func (m *QueryRewardsByOwnerResponse) GetRewards() *RewardByOwner { +func (m *QueryRewardsByWalletResponse) GetRewards() *RewardByWallet { if m != nil { return m.Rewards } return nil } -func (m *QueryRewardsByOwnerResponse) GetHeight() int64 { +type QueryRewardsByWalletAndEpochRequest struct { + WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` + Epoch int64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryRewardsByWalletAndEpochRequest) Reset() { *m = QueryRewardsByWalletAndEpochRequest{} } +func (m *QueryRewardsByWalletAndEpochRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRewardsByWalletAndEpochRequest) ProtoMessage() {} +func (*QueryRewardsByWalletAndEpochRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c09bd09df76a68e0, []int{9} +} +func (m *QueryRewardsByWalletAndEpochRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRewardsByWalletAndEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRewardsByWalletAndEpochRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRewardsByWalletAndEpochRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRewardsByWalletAndEpochRequest.Merge(m, src) +} +func (m *QueryRewardsByWalletAndEpochRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRewardsByWalletAndEpochRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRewardsByWalletAndEpochRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRewardsByWalletAndEpochRequest proto.InternalMessageInfo + +func (m *QueryRewardsByWalletAndEpochRequest) GetWalletAddress() string { + if m != nil { + return m.WalletAddress + } + return "" +} + +func (m *QueryRewardsByWalletAndEpochRequest) GetEpoch() int64 { if m != nil { - return m.Height + return m.Epoch } return 0 } -type RewardByOwner struct { +func (m *QueryRewardsByWalletAndEpochRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryRewardsByWalletAndEpochResponse struct { + Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryRewardsByWalletAndEpochResponse) Reset() { *m = QueryRewardsByWalletAndEpochResponse{} } +func (m *QueryRewardsByWalletAndEpochResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRewardsByWalletAndEpochResponse) ProtoMessage() {} +func (*QueryRewardsByWalletAndEpochResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c09bd09df76a68e0, []int{10} +} +func (m *QueryRewardsByWalletAndEpochResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRewardsByWalletAndEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRewardsByWalletAndEpochResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRewardsByWalletAndEpochResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRewardsByWalletAndEpochResponse.Merge(m, src) +} +func (m *QueryRewardsByWalletAndEpochResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRewardsByWalletAndEpochResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRewardsByWalletAndEpochResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRewardsByWalletAndEpochResponse proto.InternalMessageInfo + +func (m *QueryRewardsByWalletAndEpochResponse) GetRewards() []*Reward { + if m != nil { + return m.Rewards + } + return nil +} + +func (m *QueryRewardsByWalletAndEpochResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type RewardByWallet struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` MatureTotalReward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=mature_total_reward,json=matureTotalReward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"mature_total_reward"` ImmatureTotalReward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=immature_total_reward,json=immatureTotalReward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"immature_total_reward"` } -func (m *RewardByOwner) Reset() { *m = RewardByOwner{} } -func (m *RewardByOwner) String() string { return proto.CompactTextString(m) } -func (*RewardByOwner) ProtoMessage() {} -func (*RewardByOwner) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{9} +func (m *RewardByWallet) Reset() { *m = RewardByWallet{} } +func (m *RewardByWallet) String() string { return proto.CompactTextString(m) } +func (*RewardByWallet) ProtoMessage() {} +func (*RewardByWallet) Descriptor() ([]byte, []int) { + return fileDescriptor_c09bd09df76a68e0, []int{11} } -func (m *RewardByOwner) XXX_Unmarshal(b []byte) error { +func (m *RewardByWallet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RewardByOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RewardByWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RewardByOwner.Marshal(b, m, deterministic) + return xxx_messageInfo_RewardByWallet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -530,33 +610,33 @@ func (m *RewardByOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *RewardByOwner) XXX_Merge(src proto.Message) { - xxx_messageInfo_RewardByOwner.Merge(m, src) +func (m *RewardByWallet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RewardByWallet.Merge(m, src) } -func (m *RewardByOwner) XXX_Size() int { +func (m *RewardByWallet) XXX_Size() int { return m.Size() } -func (m *RewardByOwner) XXX_DiscardUnknown() { - xxx_messageInfo_RewardByOwner.DiscardUnknown(m) +func (m *RewardByWallet) XXX_DiscardUnknown() { + xxx_messageInfo_RewardByWallet.DiscardUnknown(m) } -var xxx_messageInfo_RewardByOwner proto.InternalMessageInfo +var xxx_messageInfo_RewardByWallet proto.InternalMessageInfo -func (m *RewardByOwner) GetWalletAddress() string { +func (m *RewardByWallet) GetWalletAddress() string { if m != nil { return m.WalletAddress } return "" } -func (m *RewardByOwner) GetMatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *RewardByWallet) GetMatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.MatureTotalReward } return nil } -func (m *RewardByOwner) GetImmatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *RewardByWallet) GetImmatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.ImmatureTotalReward } @@ -572,7 +652,7 @@ func (m *QuerySlashingByOwnerRequest) Reset() { *m = QuerySlashingByOwne func (m *QuerySlashingByOwnerRequest) String() string { return proto.CompactTextString(m) } func (*QuerySlashingByOwnerRequest) ProtoMessage() {} func (*QuerySlashingByOwnerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{10} + return fileDescriptor_c09bd09df76a68e0, []int{12} } func (m *QuerySlashingByOwnerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -611,14 +691,13 @@ func (m *QuerySlashingByOwnerRequest) GetWalletAddress() string { // QuerySlashingByOwnerResponse is response type for the Query/Slashing RPC method type QuerySlashingByOwnerResponse struct { Slashing string `protobuf:"bytes,1,opt,name=slashing,proto3" json:"slashing,omitempty"` - Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *QuerySlashingByOwnerResponse) Reset() { *m = QuerySlashingByOwnerResponse{} } func (m *QuerySlashingByOwnerResponse) String() string { return proto.CompactTextString(m) } func (*QuerySlashingByOwnerResponse) ProtoMessage() {} func (*QuerySlashingByOwnerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{11} + return fileDescriptor_c09bd09df76a68e0, []int{13} } func (m *QuerySlashingByOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -654,13 +733,6 @@ func (m *QuerySlashingByOwnerResponse) GetSlashing() string { return "" } -func (m *QuerySlashingByOwnerResponse) GetHeight() int64 { - if m != nil { - return m.Height - } - return 0 -} - type QueryTotalMinedTokenRequest struct { } @@ -668,7 +740,7 @@ func (m *QueryTotalMinedTokenRequest) Reset() { *m = QueryTotalMinedToke func (m *QueryTotalMinedTokenRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalMinedTokenRequest) ProtoMessage() {} func (*QueryTotalMinedTokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{12} + return fileDescriptor_c09bd09df76a68e0, []int{14} } func (m *QueryTotalMinedTokenRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -705,7 +777,7 @@ func (m *QueryTotalMinedTokenResponse) Reset() { *m = QueryTotalMinedTok func (m *QueryTotalMinedTokenResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalMinedTokenResponse) ProtoMessage() {} func (*QueryTotalMinedTokenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{13} + return fileDescriptor_c09bd09df76a68e0, []int{15} } func (m *QueryTotalMinedTokenResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -748,7 +820,7 @@ func (m *QueryCirculationSupplyRequest) Reset() { *m = QueryCirculationS func (m *QueryCirculationSupplyRequest) String() string { return proto.CompactTextString(m) } func (*QueryCirculationSupplyRequest) ProtoMessage() {} func (*QueryCirculationSupplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{14} + return fileDescriptor_c09bd09df76a68e0, []int{16} } func (m *QueryCirculationSupplyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -785,7 +857,7 @@ func (m *QueryCirculationSupplyResponse) Reset() { *m = QueryCirculation func (m *QueryCirculationSupplyResponse) String() string { return proto.CompactTextString(m) } func (*QueryCirculationSupplyResponse) ProtoMessage() {} func (*QueryCirculationSupplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{15} + return fileDescriptor_c09bd09df76a68e0, []int{17} } func (m *QueryCirculationSupplyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -829,7 +901,7 @@ func (m *QueryTotalRewardByEpochRequest) Reset() { *m = QueryTotalReward func (m *QueryTotalRewardByEpochRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalRewardByEpochRequest) ProtoMessage() {} func (*QueryTotalRewardByEpochRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{16} + return fileDescriptor_c09bd09df76a68e0, []int{18} } func (m *QueryTotalRewardByEpochRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -874,7 +946,7 @@ func (m *QueryTotalRewardByEpochResponse) Reset() { *m = QueryTotalRewar func (m *QueryTotalRewardByEpochResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalRewardByEpochResponse) ProtoMessage() {} func (*QueryTotalRewardByEpochResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{17} + return fileDescriptor_c09bd09df76a68e0, []int{19} } func (m *QueryTotalRewardByEpochResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -924,7 +996,7 @@ func (m *QueryMetricsRequest) Reset() { *m = QueryMetricsRequest{} } func (m *QueryMetricsRequest) String() string { return proto.CompactTextString(m) } func (*QueryMetricsRequest) ProtoMessage() {} func (*QueryMetricsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{18} + return fileDescriptor_c09bd09df76a68e0, []int{20} } func (m *QueryMetricsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -961,7 +1033,7 @@ func (m *QueryMetricsResponse) Reset() { *m = QueryMetricsResponse{} } func (m *QueryMetricsResponse) String() string { return proto.CompactTextString(m) } func (*QueryMetricsResponse) ProtoMessage() {} func (*QueryMetricsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c09bd09df76a68e0, []int{19} + return fileDescriptor_c09bd09df76a68e0, []int{21} } func (m *QueryMetricsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1005,9 +1077,11 @@ func init() { proto.RegisterType((*QueryParamsResponse)(nil), "stratos.pot.v1.QueryParamsResponse") proto.RegisterType((*QueryRewardsByEpochRequest)(nil), "stratos.pot.v1.QueryRewardsByEpochRequest") proto.RegisterType((*QueryRewardsByEpochResponse)(nil), "stratos.pot.v1.QueryRewardsByEpochResponse") - proto.RegisterType((*QueryRewardsByOwnerRequest)(nil), "stratos.pot.v1.QueryRewardsByOwnerRequest") - proto.RegisterType((*QueryRewardsByOwnerResponse)(nil), "stratos.pot.v1.QueryRewardsByOwnerResponse") - proto.RegisterType((*RewardByOwner)(nil), "stratos.pot.v1.RewardByOwner") + proto.RegisterType((*QueryRewardsByWalletRequest)(nil), "stratos.pot.v1.QueryRewardsByWalletRequest") + proto.RegisterType((*QueryRewardsByWalletResponse)(nil), "stratos.pot.v1.QueryRewardsByWalletResponse") + proto.RegisterType((*QueryRewardsByWalletAndEpochRequest)(nil), "stratos.pot.v1.QueryRewardsByWalletAndEpochRequest") + proto.RegisterType((*QueryRewardsByWalletAndEpochResponse)(nil), "stratos.pot.v1.QueryRewardsByWalletAndEpochResponse") + proto.RegisterType((*RewardByWallet)(nil), "stratos.pot.v1.RewardByWallet") proto.RegisterType((*QuerySlashingByOwnerRequest)(nil), "stratos.pot.v1.QuerySlashingByOwnerRequest") proto.RegisterType((*QuerySlashingByOwnerResponse)(nil), "stratos.pot.v1.QuerySlashingByOwnerResponse") proto.RegisterType((*QueryTotalMinedTokenRequest)(nil), "stratos.pot.v1.QueryTotalMinedTokenRequest") @@ -1023,83 +1097,85 @@ func init() { func init() { proto.RegisterFile("stratos/pot/v1/query.proto", fileDescriptor_c09bd09df76a68e0) } var fileDescriptor_c09bd09df76a68e0 = []byte{ - // 1207 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0x4f, 0x6f, 0x1b, 0xc5, - 0x1b, 0xc7, 0xb3, 0x49, 0x9b, 0x26, 0x4f, 0xda, 0xe4, 0x97, 0x49, 0x9a, 0x38, 0xdb, 0xc4, 0x6e, - 0xa7, 0x69, 0x9b, 0x3f, 0xf5, 0x6e, 0x9c, 0x9f, 0xa0, 0x12, 0x48, 0x48, 0x24, 0x14, 0xa8, 0x44, - 0xd5, 0xb2, 0xad, 0x38, 0x70, 0xb1, 0x36, 0x9b, 0x89, 0xbd, 0x8a, 0xbd, 0xb3, 0xd9, 0x19, 0x27, - 0x31, 0xa1, 0x42, 0xe2, 0x15, 0x20, 0x38, 0xc0, 0x01, 0x81, 0x80, 0x1b, 0x27, 0x0e, 0xbc, 0x88, - 0x72, 0x41, 0x95, 0xb8, 0x70, 0x32, 0x28, 0xe1, 0xd4, 0x63, 0x5e, 0x01, 0xda, 0x99, 0xb1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 0x76, 0xa8, 0x05, 0x41, 0xe7, 0x19, 0xcd, 0xc0, 0x70, 0x95, 0xb8, - 0x95, 0x2a, 0xcf, 0x0d, 0x8a, 0x84, 0xea, 0x0d, 0x37, 0x00, 0xba, 0x11, 0xe9, 0x54, 0x68, 0x1e, - 0x46, 0x03, 0xb2, 0x43, 0x02, 0xe2, 0x39, 0x44, 0x84, 0x8f, 0x5a, 0xdd, 0x01, 0x34, 0x0b, 0x97, - 0xf8, 0x61, 0xb9, 0x6a, 0xb3, 0x6a, 0x6e, 0x48, 0xd8, 0x86, 0xf9, 0xe1, 0xbb, 0x36, 0xab, 0x22, - 0x1d, 0x46, 0x24, 0x00, 0x09, 0x72, 0x17, 0x84, 0xa5, 0xf3, 0x8e, 0xa7, 0x01, 0x89, 0x42, 0x1f, - 0xdb, 0x81, 0x5d, 0x67, 0xaa, 0x29, 0xf8, 0x3e, 0x4c, 0xc5, 0x46, 0x55, 0xe1, 0x06, 0x0c, 0xfb, - 0x62, 0x44, 0xd5, 0x3c, 0x93, 0xac, 0x59, 0xf9, 0x2b, 0x2f, 0xfc, 0x9d, 0x06, 0xba, 0x98, 0xc7, - 0x22, 0x07, 0x76, 0xb0, 0xcd, 0x36, 0x9a, 0xf7, 0xc3, 0x3a, 0xce, 0x6c, 0x3d, 0xba, 0x05, 0xe3, - 0x07, 0x76, 0xad, 0x46, 0x78, 0xd9, 0xde, 0xde, 0x0e, 0x08, 0x63, 0xaa, 0xd2, 0x2b, 0x72, 0xf4, - 0x4d, 0x39, 0x88, 0xde, 0x06, 0xe8, 0xee, 0x00, 0x51, 0xf0, 0xd8, 0xfa, 0x6d, 0x43, 0x6e, 0x17, - 0x23, 0xdc, 0x2e, 0x86, 0xdc, 0xab, 0x6a, 0xbb, 0x18, 0x8f, 0xed, 0x0a, 0x51, 0x89, 0xad, 0x48, - 0x24, 0xfe, 0x49, 0x83, 0x6b, 0xa9, 0x8c, 0xaa, 0xe6, 0x35, 0xb8, 0x14, 0x48, 0x4b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, 0xf1, 0x0f, 0xef, 0xff, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x0c, - 0x15, 0xe8, 0x3d, 0xa9, 0x0e, 0x00, 0x00, + // 1246 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x97, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xc0, 0xb3, 0x49, 0x9b, 0x8f, 0x97, 0x92, 0x90, 0x49, 0xda, 0x38, 0xdb, 0xd4, 0x4e, 0x27, + 0x69, 0x9b, 0x8f, 0x66, 0x37, 0x4e, 0x81, 0xa2, 0x22, 0x40, 0x75, 0x09, 0x50, 0x89, 0xaa, 0x65, + 0x5b, 0x41, 0xc5, 0xc5, 0xda, 0xd8, 0x13, 0x7b, 0x15, 0x7b, 0x67, 0xb3, 0x33, 0x4e, 0xe2, 0x86, + 0x0a, 0x89, 0xbf, 0x00, 0xc1, 0x81, 0x0a, 0x21, 0x10, 0x42, 0x5c, 0x7a, 0xe7, 0x7f, 0xa8, 0x84, + 0x84, 0x2a, 0x71, 0xe1, 0x64, 0x50, 0xc2, 0xa9, 0xc7, 0xfc, 0x05, 0xc8, 0x33, 0xe3, 0x8f, 0x5d, + 0xef, 0x26, 0x0e, 0x02, 0x71, 0xca, 0x7a, 0xde, 0xd7, 0xef, 0xbd, 0x37, 0x33, 0x6f, 0x02, 0x3a, + 0xe3, 0xbe, 0xcd, 0x29, 0x33, 0x3d, 0xca, 0xcd, 0xed, 0xb4, 0xb9, 0x55, 0x21, 0x7e, 0xd5, 0xf0, + 0x7c, 0xca, 0x29, 0x1a, 0x51, 0x32, 0xc3, 0xa3, 0xdc, 0xd8, 0x4e, 0xeb, 0x13, 0x05, 0x5a, 0xa0, + 0x42, 0x64, 0xd6, 0xbf, 0xa4, 0x96, 0x3e, 0x5d, 0xa0, 0xb4, 0x50, 0x22, 0xa6, 0xed, 0x39, 0xa6, + 0xed, 0x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x3c, 0x8a, 0x29, 0x4a, 0xf4, 0x54, 0x8b, 0x29, 0x4a, 0xcc, 0x88, 0xc3, 0x0b, 0x02, + 0x67, 0x16, 0x5d, 0x0c, 0xe3, 0x74, 0x4c, 0x28, 0xf4, 0x9d, 0x06, 0x63, 0x1d, 0x93, 0x06, 0x2d, + 0x47, 0x86, 0x8b, 0x9b, 0x59, 0xba, 0xd1, 0xad, 0xba, 0xe2, 0x5b, 0x14, 0x7c, 0x73, 0x08, 0x87, + 0xf9, 0x3a, 0xc7, 0x1a, 0xfa, 0x51, 0x03, 0xd4, 0x39, 0x33, 0x90, 0x11, 0x5f, 0x90, 0xa8, 0xa9, + 0xa4, 0x9b, 0x5d, 0xeb, 0x2b, 0xc6, 0xab, 0x82, 0xf1, 0x32, 0x9a, 0x8b, 0xae, 0xa1, 0x3c, 0x14, + 0xcd, 0x5d, 0x5f, 0x81, 0x01, 0x75, 0x7f, 0xa3, 0xe8, 0x0d, 0x13, 0x1c, 0x13, 0xfa, 0xdc, 0xd1, + 0x4a, 0x8a, 0x21, 0x25, 0x18, 0xa6, 0xd0, 0x64, 0x98, 0x41, 0x0d, 0x87, 0xcc, 0xed, 0x67, 0xfb, + 0x49, 0xed, 0xf9, 0x7e, 0x52, 0xfb, 0x73, 0x3f, 0xa9, 0x7d, 0x71, 0x90, 0xec, 0x79, 0x7e, 0x90, + 0xec, 0xf9, 0xfd, 0x20, 0xd9, 0xf3, 0x89, 0xd9, 0x36, 0xe4, 0x95, 0xb1, 0x4b, 0x78, 0xe3, 0x73, + 0x39, 0x57, 0xb4, 0x1d, 0xd7, 0xdc, 0x15, 0xfe, 0xc4, 0xc4, 0x5f, 0xef, 0x17, 0xff, 0x7f, 0x5f, + 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xc2, 0x09, 0xa3, 0x47, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1118,8 +1194,10 @@ type QueryClient interface { VolumeReport(ctx context.Context, in *QueryVolumeReportRequest, opts ...grpc.CallOption) (*QueryVolumeReportResponse, error) // RewardsByEpoch queries Pot rewards by a given epoch. RewardsByEpoch(ctx context.Context, in *QueryRewardsByEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByEpochResponse, error) - // RewardsByOwner queries Pot rewards by a given owner wallet address. - RewardsByOwner(ctx context.Context, in *QueryRewardsByOwnerRequest, opts ...grpc.CallOption) (*QueryRewardsByOwnerResponse, error) + // RewardsByOwner queries Pot rewards by a given beneficiary address. + RewardsByWallet(ctx context.Context, in *QueryRewardsByWalletRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletResponse, error) + // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. + RewardsByWalletAndEpoch(ctx context.Context, in *QueryRewardsByWalletAndEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletAndEpochResponse, error) // SlashingByOwner queries Pot slashing by owner wallet address. SlashingByOwner(ctx context.Context, in *QuerySlashingByOwnerRequest, opts ...grpc.CallOption) (*QuerySlashingByOwnerResponse, error) // Params queries POT module Params info. @@ -1156,9 +1234,18 @@ func (c *queryClient) RewardsByEpoch(ctx context.Context, in *QueryRewardsByEpoc return out, nil } -func (c *queryClient) RewardsByOwner(ctx context.Context, in *QueryRewardsByOwnerRequest, opts ...grpc.CallOption) (*QueryRewardsByOwnerResponse, error) { - out := new(QueryRewardsByOwnerResponse) - err := c.cc.Invoke(ctx, "/stratos.pot.v1.Query/RewardsByOwner", in, out, opts...) +func (c *queryClient) RewardsByWallet(ctx context.Context, in *QueryRewardsByWalletRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletResponse, error) { + out := new(QueryRewardsByWalletResponse) + err := c.cc.Invoke(ctx, "/stratos.pot.v1.Query/RewardsByWallet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RewardsByWalletAndEpoch(ctx context.Context, in *QueryRewardsByWalletAndEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletAndEpochResponse, error) { + out := new(QueryRewardsByWalletAndEpochResponse) + err := c.cc.Invoke(ctx, "/stratos.pot.v1.Query/RewardsByWalletAndEpoch", in, out, opts...) if err != nil { return nil, err } @@ -1225,8 +1312,10 @@ type QueryServer interface { VolumeReport(context.Context, *QueryVolumeReportRequest) (*QueryVolumeReportResponse, error) // RewardsByEpoch queries Pot rewards by a given epoch. RewardsByEpoch(context.Context, *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error) - // RewardsByOwner queries Pot rewards by a given owner wallet address. - RewardsByOwner(context.Context, *QueryRewardsByOwnerRequest) (*QueryRewardsByOwnerResponse, error) + // RewardsByOwner queries Pot rewards by a given beneficiary address. + RewardsByWallet(context.Context, *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error) + // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. + RewardsByWalletAndEpoch(context.Context, *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error) // SlashingByOwner queries Pot slashing by owner wallet address. SlashingByOwner(context.Context, *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error) // Params queries POT module Params info. @@ -1247,8 +1336,11 @@ func (*UnimplementedQueryServer) VolumeReport(ctx context.Context, req *QueryVol func (*UnimplementedQueryServer) RewardsByEpoch(ctx context.Context, req *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RewardsByEpoch not implemented") } -func (*UnimplementedQueryServer) RewardsByOwner(ctx context.Context, req *QueryRewardsByOwnerRequest) (*QueryRewardsByOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RewardsByOwner not implemented") +func (*UnimplementedQueryServer) RewardsByWallet(ctx context.Context, req *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RewardsByWallet not implemented") +} +func (*UnimplementedQueryServer) RewardsByWalletAndEpoch(ctx context.Context, req *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RewardsByWalletAndEpoch not implemented") } func (*UnimplementedQueryServer) SlashingByOwner(ctx context.Context, req *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SlashingByOwner not implemented") @@ -1309,20 +1401,38 @@ func _Query_RewardsByEpoch_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_RewardsByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRewardsByOwnerRequest) +func _Query_RewardsByWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRewardsByWalletRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RewardsByWallet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stratos.pot.v1.Query/RewardsByWallet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RewardsByWallet(ctx, req.(*QueryRewardsByWalletRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RewardsByWalletAndEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRewardsByWalletAndEpochRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).RewardsByOwner(ctx, in) + return srv.(QueryServer).RewardsByWalletAndEpoch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/stratos.pot.v1.Query/RewardsByOwner", + FullMethod: "/stratos.pot.v1.Query/RewardsByWalletAndEpoch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RewardsByOwner(ctx, req.(*QueryRewardsByOwnerRequest)) + return srv.(QueryServer).RewardsByWalletAndEpoch(ctx, req.(*QueryRewardsByWalletAndEpochRequest)) } return interceptor(ctx, in, info, handler) } @@ -1448,8 +1558,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_RewardsByEpoch_Handler, }, { - MethodName: "RewardsByOwner", - Handler: _Query_RewardsByOwner_Handler, + MethodName: "RewardsByWallet", + Handler: _Query_RewardsByWallet_Handler, + }, + { + MethodName: "RewardsByWalletAndEpoch", + Handler: _Query_RewardsByWalletAndEpoch_Handler, }, { MethodName: "SlashingByOwner", @@ -1528,11 +1642,6 @@ func (m *QueryVolumeReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l - if m.Height != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x10 - } if m.ReportInfo != nil { { size, err := m.ReportInfo.MarshalToSizedBuffer(dAtA[:i]) @@ -1685,13 +1794,6 @@ func (m *QueryRewardsByEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - if len(m.WalletAddress) > 0 { - i -= len(m.WalletAddress) - copy(dAtA[i:], m.WalletAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.WalletAddress))) - i-- dAtA[i] = 0x12 } if m.Epoch != 0 { @@ -1732,12 +1834,7 @@ func (m *QueryRewardsByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, er i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - if m.Height != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if len(m.Rewards) > 0 { for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- { @@ -1756,7 +1853,7 @@ func (m *QueryRewardsByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryRewardsByOwnerRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryRewardsByWalletRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1766,12 +1863,12 @@ func (m *QueryRewardsByOwnerRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRewardsByOwnerRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryRewardsByWalletRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRewardsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryRewardsByWalletRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1786,7 +1883,7 @@ func (m *QueryRewardsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *QueryRewardsByOwnerResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryRewardsByWalletResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1796,21 +1893,16 @@ func (m *QueryRewardsByOwnerResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryRewardsByOwnerResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryRewardsByWalletResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryRewardsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryRewardsByWalletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Height != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x10 - } if m.Rewards != nil { { size, err := m.Rewards.MarshalToSizedBuffer(dAtA[:i]) @@ -1826,7 +1918,103 @@ func (m *QueryRewardsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *RewardByOwner) Marshal() (dAtA []byte, err error) { +func (m *QueryRewardsByWalletAndEpochRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRewardsByWalletAndEpochRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRewardsByWalletAndEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Epoch != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Epoch)) + i-- + dAtA[i] = 0x10 + } + if len(m.WalletAddress) > 0 { + i -= len(m.WalletAddress) + copy(dAtA[i:], m.WalletAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.WalletAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRewardsByWalletAndEpochResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRewardsByWalletAndEpochResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRewardsByWalletAndEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Rewards) > 0 { + for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rewards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RewardByWallet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1836,12 +2024,12 @@ func (m *RewardByOwner) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RewardByOwner) MarshalTo(dAtA []byte) (int, error) { +func (m *RewardByWallet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RewardByOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RewardByWallet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1934,11 +2122,6 @@ func (m *QuerySlashingByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, e _ = i var l int _ = l - if m.Height != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x10 - } if len(m.Slashing) > 0 { i -= len(m.Slashing) copy(dAtA[i:], m.Slashing) @@ -2225,9 +2408,6 @@ func (m *QueryVolumeReportResponse) Size() (n int) { l = m.ReportInfo.Size() n += 1 + l + sovQuery(uint64(l)) } - if m.Height != 0 { - n += 1 + sovQuery(uint64(m.Height)) - } return n } @@ -2286,10 +2466,6 @@ func (m *QueryRewardsByEpochRequest) Size() (n int) { if m.Epoch != 0 { n += 1 + sovQuery(uint64(m.Epoch)) } - l = len(m.WalletAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) @@ -2309,9 +2485,6 @@ func (m *QueryRewardsByEpochResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) } } - if m.Height != 0 { - n += 1 + sovQuery(uint64(m.Height)) - } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) @@ -2319,7 +2492,7 @@ func (m *QueryRewardsByEpochResponse) Size() (n int) { return n } -func (m *QueryRewardsByOwnerRequest) Size() (n int) { +func (m *QueryRewardsByWalletRequest) Size() (n int) { if m == nil { return 0 } @@ -2332,7 +2505,7 @@ func (m *QueryRewardsByOwnerRequest) Size() (n int) { return n } -func (m *QueryRewardsByOwnerResponse) Size() (n int) { +func (m *QueryRewardsByWalletResponse) Size() (n int) { if m == nil { return 0 } @@ -2342,13 +2515,10 @@ func (m *QueryRewardsByOwnerResponse) Size() (n int) { l = m.Rewards.Size() n += 1 + l + sovQuery(uint64(l)) } - if m.Height != 0 { - n += 1 + sovQuery(uint64(m.Height)) - } return n } -func (m *RewardByOwner) Size() (n int) { +func (m *QueryRewardsByWalletAndEpochRequest) Size() (n int) { if m == nil { return 0 } @@ -2358,9 +2528,48 @@ func (m *RewardByOwner) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if len(m.MatureTotalReward) > 0 { - for _, e := range m.MatureTotalReward { - l = e.Size() + if m.Epoch != 0 { + n += 1 + sovQuery(uint64(m.Epoch)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRewardsByWalletAndEpochResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Rewards) > 0 { + for _, e := range m.Rewards { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *RewardByWallet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.WalletAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.MatureTotalReward) > 0 { + for _, e := range m.MatureTotalReward { + l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } @@ -2396,9 +2605,6 @@ func (m *QuerySlashingByOwnerResponse) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.Height != 0 { - n += 1 + sovQuery(uint64(m.Height)) - } return n } @@ -2632,25 +2838,6 @@ func (m *QueryVolumeReportResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3022,38 +3209,6 @@ func (m *QueryRewardsByEpochRequest) Unmarshal(dAtA []byte) error { } } case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WalletAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WalletAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } @@ -3174,10 +3329,10 @@ func (m *QueryRewardsByEpochResponse) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - m.Height = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3187,14 +3342,163 @@ func (m *QueryRewardsByEpochResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Height |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRewardsByWalletRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryRewardsByWalletRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRewardsByWalletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WalletAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WalletAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRewardsByWalletResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryRewardsByWalletResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRewardsByWalletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3221,10 +3525,10 @@ func (m *QueryRewardsByEpochResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} + if m.Rewards == nil { + m.Rewards = &RewardByWallet{} } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Rewards.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3249,7 +3553,7 @@ func (m *QueryRewardsByEpochResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRewardsByOwnerRequest) Unmarshal(dAtA []byte) error { +func (m *QueryRewardsByWalletAndEpochRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3272,10 +3576,10 @@ func (m *QueryRewardsByOwnerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRewardsByOwnerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryRewardsByWalletAndEpochRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRewardsByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryRewardsByWalletAndEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3310,6 +3614,61 @@ func (m *QueryRewardsByOwnerRequest) Unmarshal(dAtA []byte) error { } m.WalletAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + m.Epoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Epoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3331,7 +3690,7 @@ func (m *QueryRewardsByOwnerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRewardsByOwnerResponse) Unmarshal(dAtA []byte) error { +func (m *QueryRewardsByWalletAndEpochResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3354,10 +3713,10 @@ func (m *QueryRewardsByOwnerResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRewardsByOwnerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryRewardsByWalletAndEpochResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRewardsByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryRewardsByWalletAndEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3389,18 +3748,16 @@ func (m *QueryRewardsByOwnerResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Rewards == nil { - m.Rewards = &RewardByOwner{} - } - if err := m.Rewards.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Rewards = append(m.Rewards, &Reward{}) + if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - m.Height = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3410,11 +3767,28 @@ func (m *QueryRewardsByOwnerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Height |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3436,7 +3810,7 @@ func (m *QueryRewardsByOwnerResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RewardByOwner) Unmarshal(dAtA []byte) error { +func (m *RewardByWallet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3459,10 +3833,10 @@ func (m *RewardByOwner) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RewardByOwner: wiretype end group for non-group") + return fmt.Errorf("proto: RewardByWallet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RewardByOwner: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RewardByWallet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3729,25 +4103,6 @@ func (m *QuerySlashingByOwnerResponse) Unmarshal(dAtA []byte) error { } m.Slashing = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/pot/types/query.pb.gw.go b/x/pot/types/query.pb.gw.go index e1a2bae4..52e167ad 100644 --- a/x/pot/types/query.pb.gw.go +++ b/x/pot/types/query.pb.gw.go @@ -159,8 +159,8 @@ func local_request_Query_RewardsByEpoch_0(ctx context.Context, marshaler runtime } -func request_Query_RewardsByOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRewardsByOwnerRequest +func request_Query_RewardsByWallet_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRewardsByWalletRequest var metadata runtime.ServerMetadata var ( @@ -181,13 +181,13 @@ func request_Query_RewardsByOwner_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_address", err) } - msg, err := client.RewardsByOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.RewardsByWallet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_RewardsByOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryRewardsByOwnerRequest +func local_request_Query_RewardsByWallet_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRewardsByWalletRequest var metadata runtime.ServerMetadata var ( @@ -208,7 +208,101 @@ func local_request_Query_RewardsByOwner_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_address", err) } - msg, err := server.RewardsByOwner(ctx, &protoReq) + msg, err := server.RewardsByWallet(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_RewardsByWalletAndEpoch_0 = &utilities.DoubleArray{Encoding: map[string]int{"wallet_address": 0, "epoch": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_RewardsByWalletAndEpoch_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRewardsByWalletAndEpochRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["wallet_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "wallet_address") + } + + protoReq.WalletAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_address", err) + } + + val, ok = pathParams["epoch"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "epoch") + } + + protoReq.Epoch, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "epoch", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RewardsByWalletAndEpoch_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RewardsByWalletAndEpoch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_RewardsByWalletAndEpoch_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRewardsByWalletAndEpochRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["wallet_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "wallet_address") + } + + protoReq.WalletAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_address", err) + } + + val, ok = pathParams["epoch"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "epoch") + } + + protoReq.Epoch, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "epoch", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RewardsByWalletAndEpoch_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RewardsByWalletAndEpoch(ctx, &protoReq) return msg, metadata, err } @@ -445,7 +539,30 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_RewardsByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_RewardsByWallet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_RewardsByWallet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RewardsByWallet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RewardsByWalletAndEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -456,7 +573,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_RewardsByOwner_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_RewardsByWalletAndEpoch_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -464,7 +581,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_RewardsByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_RewardsByWalletAndEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -687,7 +804,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_RewardsByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_RewardsByWallet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -696,14 +813,34 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_RewardsByOwner_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_RewardsByWallet_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_RewardsByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_RewardsByWallet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RewardsByWalletAndEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_RewardsByWalletAndEpoch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RewardsByWalletAndEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -831,21 +968,23 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_VolumeReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "pot", "v1", "volume-report", "epoch"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_VolumeReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "pot", "v1", "volume_report", "epoch"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_RewardsByEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 4}, []string{"stratos", "pot", "v1", "rewards", "epoch"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RewardsByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"stratos", "pot", "v1", "rewards", "wallet", "wallet_address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_RewardsByWallet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"stratos", "pot", "v1", "rewards", "wallet", "wallet_address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_RewardsByWalletAndEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6, 1, 0, 4, 1, 5, 6}, []string{"stratos", "pot", "v1", "rewards", "wallet", "wallet_address", "epoch"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_SlashingByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "pot", "v1", "slashing", "wallet_address"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "pot", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalMinedToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "pot", "v1", "total-mined-token"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TotalMinedToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "pot", "v1", "total_mined_token"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CirculationSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "pot", "v1", "circulation-supply"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_CirculationSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "pot", "v1", "circulation_supply"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalRewardByEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "pot", "v1", "total-reward", "epoch"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TotalRewardByEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "pot", "v1", "total_reward", "epoch"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Metrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "pot", "v1", "metrics"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -855,7 +994,9 @@ var ( forward_Query_RewardsByEpoch_0 = runtime.ForwardResponseMessage - forward_Query_RewardsByOwner_0 = runtime.ForwardResponseMessage + forward_Query_RewardsByWallet_0 = runtime.ForwardResponseMessage + + forward_Query_RewardsByWalletAndEpoch_0 = runtime.ForwardResponseMessage forward_Query_SlashingByOwner_0 = runtime.ForwardResponseMessage diff --git a/x/register/keeper/genesis.go b/x/register/keeper/genesis.go index 9eac8d10..d2a6bc8f 100644 --- a/x/register/keeper/genesis.go +++ b/x/register/keeper/genesis.go @@ -157,6 +157,10 @@ func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState) { } } + for _, kickMetaNodeVoteInfo := range data.GetKickMetaNodeVotePool() { + k.SetKickMetaNodeVotePool(ctx, kickMetaNodeVoteInfo) + } + return } @@ -182,6 +186,8 @@ func (k Keeper) ExportGenesis(ctx sdk.Context) (data *types.GenesisState) { return false }) + kickMetaNodeVotePool := k.GetAllKickMetaNodeVotePool(ctx) + return types.NewGenesisState(params, resourceNodes, metaNodes, remainingNozLimit, slashingInfo, depositNozRate, - metaNodeRegVotePool, unbondingNodes) + metaNodeRegVotePool, unbondingNodes, kickMetaNodeVotePool) } diff --git a/x/register/keeper/grpc_query.go b/x/register/keeper/grpc_query.go index 39137b6d..1416ce99 100644 --- a/x/register/keeper/grpc_query.go +++ b/x/register/keeper/grpc_query.go @@ -174,19 +174,24 @@ func (q Querier) DepositByOwner(c context.Context, req *types.QueryDepositByOwne } ctx := sdk.UnwrapSDKContext(c) + // if the PageRequest is nil, use default PageRequest + if req.GetPagination() == nil { + req.Pagination = &query.PageRequest{} + } + ownerAddr, er := sdk.AccAddressFromBech32(req.GetOwnerAddr()) if er != nil { return &types.QueryDepositByOwnerResponse{}, er } store := ctx.KVStore(q.storeKey) - var depositInfoResponses []*types.DepositInfo + depositInfoResponses := make([]*types.DepositInfo, 0) // get resource nodes var resourceNodes types.ResourceNodes resourceNodeStore := prefix.NewStore(store, types.ResourceNodeKey) - resourceNodesPageRes, err := FilteredPaginate(q.cdc, resourceNodeStore, ownerAddr, req.Pagination, func(key []byte, value []byte, accumulate bool) (bool, error) { + resourceNodesPageRes, err := FilteredPaginate(q.cdc, resourceNodeStore, 1, ownerAddr, req.Pagination, func(key []byte, value []byte, accumulate bool) (bool, error) { val, err := types.UnmarshalResourceNode(q.cdc, value) if err != nil { return true, err @@ -202,7 +207,9 @@ func (q Querier) DepositByOwner(c context.Context, req *types.QueryDepositByOwne if err != nil { return &types.QueryDepositByOwnerResponse{}, status.Error(codes.Internal, err.Error()) } - depositInfoResponses, err = GetDepositInfosByResourceNodes(ctx, q.Keeper, resourceNodes) + + resourceNodesDepositInfoResponses, err := q.GetDepositInfosByResourceNodes(ctx, resourceNodes) + depositInfoResponses = append(depositInfoResponses, resourceNodesDepositInfoResponses...) if err != nil { return nil, status.Error(codes.Internal, err.Error()) } @@ -220,12 +227,12 @@ func (q Querier) DepositByOwner(c context.Context, req *types.QueryDepositByOwne if req.Pagination.Offset > resourceNodesPageRes.Total { metaNodesPageOffset = req.Pagination.Offset - resourceNodesPageRes.Total } - metaNodesPageRequest := query.PageRequest{Offset: metaNodesPageOffset, Limit: metaNodesPageLimit, CountTotal: req.Pagination.CountTotal, Reverse: req.Pagination.CountTotal} + metaNodesPageRequest := &query.PageRequest{Offset: metaNodesPageOffset, Limit: metaNodesPageLimit, CountTotal: req.Pagination.CountTotal, Reverse: req.Pagination.Reverse} var metaNodes types.MetaNodes metaNodeStore := prefix.NewStore(store, types.MetaNodeKey) - _, err = FilteredPaginate(q.cdc, metaNodeStore, ownerAddr, &metaNodesPageRequest, func(key []byte, value []byte, accumulate bool) (bool, error) { + _, err = FilteredPaginate(q.cdc, metaNodeStore, 0, ownerAddr, metaNodesPageRequest, func(key []byte, value []byte, accumulate bool) (bool, error) { val, err := types.UnmarshalMetaNode(q.cdc, value) if err != nil { return true, err @@ -242,7 +249,7 @@ func (q Querier) DepositByOwner(c context.Context, req *types.QueryDepositByOwne return &types.QueryDepositByOwnerResponse{}, status.Error(codes.Internal, err.Error()) } - metaNodesDepositInfoResponses, err := GetDepositInfosByMetaNodes(ctx, q.Keeper, metaNodes) + metaNodesDepositInfoResponses, err := q.GetDepositInfosByMetaNodes(ctx, metaNodes) if err != nil { return nil, status.Error(codes.Internal, err.Error()) } diff --git a/x/register/keeper/querier.go b/x/register/keeper/querier.go index 5052254b..ffcda969 100644 --- a/x/register/keeper/querier.go +++ b/x/register/keeper/querier.go @@ -56,8 +56,10 @@ func GetIterator(prefixStore storetypes.KVStore, start []byte, reverse bool) db. return prefixStore.Iterator(start, nil) } +// storeType : 0-metaNode, 1-resourceNode func FilteredPaginate(cdc codec.Codec, prefixStore storetypes.KVStore, + storeType int, queryOwnerAddr sdk.AccAddress, pageRequest *pagiquery.PageRequest, onResult func(key []byte, value []byte, accumulate bool) (bool, error), @@ -103,7 +105,8 @@ func FilteredPaginate(cdc codec.Codec, return nil, iterator.Error() } - if prefixStore.Has(types.MetaNodeKey) { + switch storeType { + case 0: metaNode, err := types.UnmarshalMetaNode(cdc, iterator.Value()) if err != nil { continue @@ -113,7 +116,7 @@ func FilteredPaginate(cdc codec.Codec, if err != nil { continue } - } else { + case 1: resourceNode, err := types.UnmarshalResourceNode(cdc, iterator.Value()) if err != nil { continue @@ -158,7 +161,8 @@ func FilteredPaginate(cdc codec.Codec, return nil, iterator.Error() } - if prefixStore.Has(types.MetaNodeKey) { + switch storeType { + case 0: metaNode, err := types.UnmarshalMetaNode(cdc, iterator.Value()) if err != nil { continue @@ -168,7 +172,7 @@ func FilteredPaginate(cdc codec.Codec, if err != nil { continue } - } else { + case 1: resourceNode, err := types.UnmarshalResourceNode(cdc, iterator.Value()) if err != nil { continue @@ -211,13 +215,13 @@ func FilteredPaginate(cdc codec.Codec, } // GetDepositInfosByResourceNodes Iteration for querying DepositInfos of resource nodes by owner(grpc) -func GetDepositInfosByResourceNodes( - ctx sdk.Context, k Keeper, resourceNodes types.ResourceNodes, +func (k Keeper) GetDepositInfosByResourceNodes( + ctx sdk.Context, resourceNodes types.ResourceNodes, ) ([]*types.DepositInfo, error) { resp := make([]*types.DepositInfo, len(resourceNodes)) for i, resourceNode := range resourceNodes { - depositInfo, err := GetDepositInfoByResourceNode(ctx, k, resourceNode) + depositInfo, err := k.GetDepositInfoByResourceNode(ctx, resourceNode) if err != nil { return nil, err } @@ -229,14 +233,14 @@ func GetDepositInfosByResourceNodes( } // GetDepositInfosByMetaNodes Iteration for querying DepositInfos of meta nodes by owner(grpc) -func GetDepositInfosByMetaNodes( - ctx sdk.Context, k Keeper, metaNodes types.MetaNodes, +func (k Keeper) GetDepositInfosByMetaNodes( + ctx sdk.Context, metaNodes types.MetaNodes, ) ([]*types.DepositInfo, error) { resp := make([]*types.DepositInfo, len(metaNodes)) for i, metaNode := range metaNodes { - depositInfo, err := GetDepositInfoByMetaNode(ctx, k, metaNode) + depositInfo, err := k.GetDepositInfoByMetaNode(ctx, metaNode) if err != nil { return nil, err } @@ -248,7 +252,7 @@ func GetDepositInfosByMetaNodes( return resp, nil } -func GetDepositInfoByResourceNode(ctx sdk.Context, k Keeper, node types.ResourceNode) (types.DepositInfo, error) { +func (k Keeper) GetDepositInfoByResourceNode(ctx sdk.Context, node types.ResourceNode) (types.DepositInfo, error) { networkAddr, _ := stratos.SdsAddressFromBech32(node.GetNetworkAddress()) depositInfo := types.DepositInfo{} unBondingDeposit, unBondedDeposit, bondedDeposit, er := k.getNodeDeposit( @@ -273,7 +277,7 @@ func GetDepositInfoByResourceNode(ctx sdk.Context, k Keeper, node types.Resource return depositInfo, nil } -func GetDepositInfoByMetaNode(ctx sdk.Context, k Keeper, node types.MetaNode) (types.DepositInfo, error) { +func (k Keeper) GetDepositInfoByMetaNode(ctx sdk.Context, node types.MetaNode) (types.DepositInfo, error) { networkAddr, _ := stratos.SdsAddressFromBech32(node.GetNetworkAddress()) depositInfo := types.DepositInfo{} unBondingDeposit, unBondedDeposit, bondedDeposit, er := k.getNodeDeposit( diff --git a/x/register/keeper/store.go b/x/register/keeper/store.go index 85c8c4db..23aa6c4d 100644 --- a/x/register/keeper/store.go +++ b/x/register/keeper/store.go @@ -66,7 +66,7 @@ func (k *Keeper) CalculatePurchaseAmount(ctx sdk.Context, amount sdkmath.Int) (s Add(amount)).ToLegacyDec()). TruncateInt() if purchase.GT(Lt) { - return sdk.NewInt(0), sdk.NewInt(0), fmt.Errorf("not enough remaining ozone limit to complete prepay") + return sdkmath.NewInt(0), sdkmath.NewInt(0), fmt.Errorf("not enough remaining ozone limit to complete prepay") } remaining := Lt.Sub(purchase) @@ -241,6 +241,19 @@ func (k Keeper) GetKickMetaNodeVotePool(ctx sdk.Context, targetNetworkAddr strat return votePool, true } +func (k Keeper) GetAllKickMetaNodeVotePool(ctx sdk.Context) (votePools []types.KickMetaNodeVotePool) { + store := ctx.KVStore(k.storeKey) + iterator := sdk.KVStorePrefixIterator(store, types.KickMetaNodeVotesKey) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + voteInfo := types.KickMetaNodeVotePool{} + k.cdc.MustUnmarshalLengthPrefixed(iterator.Value(), &voteInfo) + votePools = append(votePools, voteInfo) + } + return +} + func (k Keeper) GetAllExpiredKickMetaNodeVotePool(ctx sdk.Context) (votePools []types.KickMetaNodeVotePool) { store := ctx.KVStore(k.storeKey) iterator := sdk.KVStorePrefixIterator(store, types.KickMetaNodeVotesKey) diff --git a/x/register/keeper/store_new.go b/x/register/keeper/store_new.go index 36dd812b..67db268e 100644 --- a/x/register/keeper/store_new.go +++ b/x/register/keeper/store_new.go @@ -1,16 +1,16 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" "github.com/stratosnet/stratos-chain/core/statedb" stratos "github.com/stratosnet/stratos-chain/types" "github.com/stratosnet/stratos-chain/x/register/types" ) -func (k *Keeper) KeeGetEffectiveTotalDeposit(kstatedb *statedb.KeestateDB) (stake sdk.Int) { +func (k *Keeper) KeeGetEffectiveTotalDeposit(kstatedb *statedb.KeestateDB) (stake sdkmath.Int) { bz := kstatedb.GetState(k.storeKey, types.EffectiveGenesisDepositTotalKey) if bz == nil { - return sdk.ZeroInt() + return sdkmath.ZeroInt() } intValue := stratos.Int{} k.cdc.MustUnmarshalLengthPrefixed(bz, &intValue) @@ -18,10 +18,10 @@ func (k *Keeper) KeeGetEffectiveTotalDeposit(kstatedb *statedb.KeestateDB) (stak return } -func (k *Keeper) KeeGetRemainingOzoneLimit(kstatedb *statedb.KeestateDB) (value sdk.Int) { +func (k *Keeper) KeeGetRemainingOzoneLimit(kstatedb *statedb.KeestateDB) (value sdkmath.Int) { bz := kstatedb.GetState(k.storeKey, types.UpperBoundOfTotalOzoneKey) if bz == nil { - return sdk.ZeroInt() + return sdkmath.ZeroInt() } intVal := stratos.Int{} k.cdc.MustUnmarshalLengthPrefixed(bz, &intVal) @@ -29,7 +29,7 @@ func (k *Keeper) KeeGetRemainingOzoneLimit(kstatedb *statedb.KeestateDB) (value return } -func (k *Keeper) KeeSetRemainingOzoneLimit(kstatedb *statedb.KeestateDB, value sdk.Int) { +func (k *Keeper) KeeSetRemainingOzoneLimit(kstatedb *statedb.KeestateDB, value sdkmath.Int) { bz := k.cdc.MustMarshalLengthPrefixed(&stratos.Int{Value: &value}) kstatedb.SetState(k.storeKey, types.UpperBoundOfTotalOzoneKey, bz) } diff --git a/x/register/types/genesis.go b/x/register/types/genesis.go index bdc67cf1..1adc3102 100644 --- a/x/register/types/genesis.go +++ b/x/register/types/genesis.go @@ -21,30 +21,33 @@ func NewGenesisState(params Params, depositNozRate sdkmath.LegacyDec, metaNodeRegVotePool []MetaNodeRegistrationVotePool, unbondingNodes []UnbondingNode, + kickMetaNodeVotePool []KickMetaNodeVotePool, ) *GenesisState { return &GenesisState{ - Params: params, - ResourceNodes: resourceNodes, - MetaNodes: metaNodes, - RemainingNozLimit: remainingNozLimit, - Slashing: slashingInfo, - DepositNozRate: depositNozRate, - MetaNodeRegVotePool: metaNodeRegVotePool, - UnbondingNodes: unbondingNodes, + Params: params, + ResourceNodes: resourceNodes, + MetaNodes: metaNodes, + RemainingNozLimit: remainingNozLimit, + Slashing: slashingInfo, + DepositNozRate: depositNozRate, + MetaNodeRegVotePool: metaNodeRegVotePool, + UnbondingNodes: unbondingNodes, + KickMetaNodeVotePool: kickMetaNodeVotePool, } } // DefaultGenesisState - default GenesisState used by Cosmos Hub func DefaultGenesisState() *GenesisState { return &GenesisState{ - Params: DefaultParams(), - ResourceNodes: ResourceNodes{}, - MetaNodes: MetaNodes{}, - RemainingNozLimit: DefaultRemainingNozLimit, - Slashing: make([]Slashing, 0), - DepositNozRate: DefaultDepositNozRate, - MetaNodeRegVotePool: make([]MetaNodeRegistrationVotePool, 0), - UnbondingNodes: make([]UnbondingNode, 0), + Params: DefaultParams(), + ResourceNodes: ResourceNodes{}, + MetaNodes: MetaNodes{}, + RemainingNozLimit: DefaultRemainingNozLimit, + Slashing: make([]Slashing, 0), + DepositNozRate: DefaultDepositNozRate, + MetaNodeRegVotePool: make([]MetaNodeRegistrationVotePool, 0), + UnbondingNodes: make([]UnbondingNode, 0), + KickMetaNodeVotePool: make([]KickMetaNodeVotePool, 0), } } diff --git a/x/register/types/genesis.pb.go b/x/register/types/genesis.pb.go index c4a2d664..463eccd1 100644 --- a/x/register/types/genesis.pb.go +++ b/x/register/types/genesis.pb.go @@ -31,14 +31,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the register module's genesis state. type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` - ResourceNodes ResourceNodes `protobuf:"bytes,2,rep,name=resource_nodes,json=resourceNodes,proto3,castrepeated=ResourceNodes" json:"resource_nodes" yaml:"resource_nodes"` - MetaNodes MetaNodes `protobuf:"bytes,3,rep,name=meta_nodes,json=metaNodes,proto3,castrepeated=MetaNodes" json:"meta_nodes" yaml:"meta_nodes"` - RemainingNozLimit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=remaining_noz_limit,json=remainingNozLimit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"remaining_noz_limit" yaml:"remaining_noz_limit"` - Slashing []Slashing `protobuf:"bytes,5,rep,name=slashing,proto3" json:"slashing" yaml:"slashing_info"` - DepositNozRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=deposit_noz_rate,json=depositNozRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"deposit_noz_rate" yaml:"deposit_noz_rate"` - MetaNodeRegVotePool []MetaNodeRegistrationVotePool `protobuf:"bytes,7,rep,name=meta_node_reg_vote_pool,json=metaNodeRegVotePool,proto3" json:"meta_node_reg_vote_pool" yaml:"meta_node_reg_vote_pool"` - UnbondingNodes []UnbondingNode `protobuf:"bytes,8,rep,name=unbonding_nodes,json=unbondingNodes,proto3" json:"unbonding_nodes" yaml:"unbonding_nodes"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` + ResourceNodes ResourceNodes `protobuf:"bytes,2,rep,name=resource_nodes,json=resourceNodes,proto3,castrepeated=ResourceNodes" json:"resource_nodes" yaml:"resource_nodes"` + MetaNodes MetaNodes `protobuf:"bytes,3,rep,name=meta_nodes,json=metaNodes,proto3,castrepeated=MetaNodes" json:"meta_nodes" yaml:"meta_nodes"` + RemainingNozLimit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=remaining_noz_limit,json=remainingNozLimit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"remaining_noz_limit" yaml:"remaining_noz_limit"` + Slashing []Slashing `protobuf:"bytes,5,rep,name=slashing,proto3" json:"slashing" yaml:"slashing_info"` + DepositNozRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=deposit_noz_rate,json=depositNozRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"deposit_noz_rate" yaml:"deposit_noz_rate"` + MetaNodeRegVotePool []MetaNodeRegistrationVotePool `protobuf:"bytes,7,rep,name=meta_node_reg_vote_pool,json=metaNodeRegVotePool,proto3" json:"meta_node_reg_vote_pool" yaml:"meta_node_reg_vote_pool"` + UnbondingNodes []UnbondingNode `protobuf:"bytes,8,rep,name=unbonding_nodes,json=unbondingNodes,proto3" json:"unbonding_nodes" yaml:"unbonding_nodes"` + KickMetaNodeVotePool []KickMetaNodeVotePool `protobuf:"bytes,9,rep,name=kick_meta_node_vote_pool,json=kickMetaNodeVotePool,proto3" json:"kick_meta_node_vote_pool" yaml:"kick_meta_node_vote_pool"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -116,6 +117,13 @@ func (m *GenesisState) GetUnbondingNodes() []UnbondingNode { return nil } +func (m *GenesisState) GetKickMetaNodeVotePool() []KickMetaNodeVotePool { + if m != nil { + return m.KickMetaNodeVotePool + } + return nil +} + type GenesisMetaNode struct { NetworkAddress string `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` @@ -277,74 +285,77 @@ func init() { func init() { proto.RegisterFile("stratos/register/v1/genesis.proto", fileDescriptor_5bdab54ebea9e48e) } var fileDescriptor_5bdab54ebea9e48e = []byte{ - // 1065 bytes of a gzipped FileDescriptorProto + // 1111 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0x36, 0xc4, 0x71, 0x26, 0x89, 0x43, 0x36, 0x81, 0x3a, 0xa9, 0xea, 0x49, 0x57, 0x15, - 0x8a, 0x90, 0xb2, 0xab, 0xa4, 0xfc, 0x11, 0xdc, 0xb2, 0x4d, 0x41, 0x15, 0x10, 0x45, 0x1b, 0x01, - 0x82, 0x8b, 0x35, 0xb6, 0x27, 0x9b, 0xc1, 0xf6, 0x8c, 0x35, 0x33, 0x76, 0x70, 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 0xea, 0xf4, 0xb1, 0x7c, + 0x09, 0xb3, 0xfe, 0xe6, 0x28, 0x81, 0xca, 0x90, 0x26, 0x70, 0x59, 0x45, 0x96, 0x4b, 0x27, 0x50, + 0x66, 0x3f, 0x78, 0x7c, 0x59, 0xb7, 0x9e, 0x5c, 0xd6, 0xad, 0xa7, 0x97, 0x75, 0xeb, 0xdf, 0xcb, + 0xba, 0xf5, 0xdd, 0x55, 0x7d, 0xe6, 0xe9, 0x55, 0x7d, 0xe6, 0xaf, 0xab, 0xfa, 0xcc, 0x17, 0x6f, + 0x8e, 0x4d, 0x0f, 0x2d, 0x18, 0xc5, 0xc2, 0x7c, 0xee, 0x86, 0x67, 0x88, 0x50, 0xef, 0xab, 0xe2, + 0xc7, 0x92, 0x9c, 0x27, 0xcd, 0x8a, 0x7c, 0x77, 0xf7, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xb4, + 0xf9, 0xf9, 0x78, 0x2a, 0x0a, 0x00, 0x00, } func (this *GenesisState) Equal(that interface{}) bool { @@ -415,6 +426,14 @@ func (this *GenesisState) Equal(that interface{}) bool { return false } } + if len(this.KickMetaNodeVotePool) != len(that1.KickMetaNodeVotePool) { + return false + } + for i := range this.KickMetaNodeVotePool { + if !this.KickMetaNodeVotePool[i].Equal(&that1.KickMetaNodeVotePool[i]) { + return false + } + } return true } func (this *GenesisMetaNode) Equal(that interface{}) bool { @@ -509,6 +528,20 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.KickMetaNodeVotePool) > 0 { + for iNdEx := len(m.KickMetaNodeVotePool) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.KickMetaNodeVotePool[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } if len(m.UnbondingNodes) > 0 { for iNdEx := len(m.UnbondingNodes) - 1; iNdEx >= 0; iNdEx-- { { @@ -791,6 +824,12 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.KickMetaNodeVotePool) > 0 { + for _, e := range m.KickMetaNodeVotePool { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -1151,6 +1190,40 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KickMetaNodeVotePool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KickMetaNodeVotePool = append(m.KickMetaNodeVotePool, KickMetaNodeVotePool{}) + if err := m.KickMetaNodeVotePool[len(m.KickMetaNodeVotePool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/register/types/query.pb.go b/x/register/types/query.pb.go index 974aabe3..bcd6a961 100644 --- a/x/register/types/query.pb.go +++ b/x/register/types/query.pb.go @@ -1021,105 +1021,106 @@ func init() { func init() { proto.RegisterFile("stratos/register/v1/query.proto", fileDescriptor_59a612d1da8c0670) } var fileDescriptor_59a612d1da8c0670 = []byte{ - // 1566 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6f, 0x13, 0xc7, - 0x16, 0xcf, 0xf2, 0x61, 0x92, 0xb1, 0x13, 0xb8, 0x93, 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x85, 0x10, 0x5f, 0x97, 0xa8, 0x3d, 0x6e, - 0x48, 0xcf, 0xe2, 0x7c, 0xc4, 0x54, 0x45, 0x75, 0x99, 0xaa, 0x35, 0x71, 0x60, 0x03, 0x73, 0x94, - 0x09, 0xf8, 0x3a, 0x65, 0x42, 0x5e, 0xc2, 0x89, 0xe2, 0xad, 0x2d, 0x9f, 0x26, 0xc4, 0x77, 0x53, - 0xa8, 0x35, 0xf9, 0xf9, 0xe9, 0x0a, 0x02, 0x92, 0x17, 0x59, 0xe0, 0x80, 0x1b, 0xbe, 0x82, 0x26, - 0xbb, 0xaf, 0x54, 0x74, 0x76, 0x19, 0x99, 0xf7, 0xd8, 0x66, 0x68, 0x26, 0x37, 0xda, 0xa1, 0x39, - 0x03, 0x9d, 0xa1, 0x9b, 0x89, 0x93, 0xeb, 0xbc, 0x69, 0xd1, 0xa9, 0xd5, 0x51, 0xb6, 0x4a, 0x45, - 0xc5, 0xf7, 0x1a, 0xf2, 0xa1, 0xd8, 0x35, 0xf0, 0x61, 0xed, 0xf8, 0x15, 0x8f, 0x45, 0x75, 0x46, - 0xbd, 0xa8, 0x05, 0x77, 0x7b, 0x51, 0x33, 0x12, 0x47, 0x77, 0xc1, 0x3e, 0x9a, 0xac, 0xf8, 0x54, - 0xbe, 0x2c, 0xa5, 0x48, 0x4a, 0xce, 0x8e, 0xcb, 0x84, 0xf9, 0xd7, 0x7a, 0xe5, 0x66, 0xac, 0x33, - 0x8b, 0xab, 0x90, 0x2a, 0x19, 0xd8, 0x2d, 0x2f, 0x61, 0x26, 0x4f, 0x7e, 0x37, 0x0d, 0x27, 0x17, - 0xdb, 0x22, 0x14, 0x7c, 0x0e, 0x4d, 0x44, 0xcf, 0x84, 0x12, 0x1e, 0x13, 0x91, 0xf0, 0x28, 0x2e, - 0x6d, 0x86, 0x66, 0xd7, 0xd8, 0x0e, 0xcd, 0x3d, 0xd0, 0xe4, 0xb1, 0x89, 0x38, 0xe3, 0xd1, 0xff, - 0x91, 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 0x92, - 0xec, 0x7f, 0xf0, 0x72, 0x9f, 0x81, 0x0a, 0x91, 0x25, 0x4d, 0xc0, 0x16, 0xaf, 0x3c, 0x7f, 0x59, - 0x30, 0x5e, 0xbc, 0x2c, 0x18, 0x7f, 0xbc, 0x2c, 0x18, 0x4f, 0x5e, 0x15, 0xc6, 0x5e, 0xbc, 0x2a, - 0x8c, 0xfd, 0xfa, 0xaa, 0x30, 0x76, 0xfb, 0xa4, 0x26, 0xac, 0x00, 0x8f, 0xd1, 0x20, 0xfe, 0x77, - 0xa5, 0x72, 0xd7, 0xf5, 0x98, 0xfd, 0x71, 0x37, 0x85, 0x94, 0x5a, 0xe5, 0x8c, 0xd4, 0x15, 0x27, - 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x72, 0x2b, 0xbc, 0x36, 0x13, 0x00, 0x00, + // 1573 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x6f, 0x13, 0x47, + 0x14, 0xcf, 0xf2, 0x61, 0x92, 0xb1, 0x13, 0xe8, 0x24, 0x40, 0xe2, 0x90, 0x6c, 0x32, 0xa4, 0x10, + 0x22, 0xb2, 0x4b, 0x12, 0x22, 0x0a, 0x52, 0x51, 0x31, 0xfd, 0x02, 0x5a, 0x3e, 0x16, 0x5a, 0x24, + 0xa4, 0xca, 0x5a, 0xdb, 0x83, 0x59, 0x25, 0x9e, 0x31, 0x3b, 0xbb, 0x50, 0x97, 0x22, 0xa1, 0xf6, + 0xd6, 0x13, 0x52, 0x2f, 0xf4, 0x3f, 0xe8, 0xa5, 0x6a, 0x55, 0xa1, 0x1e, 0xaa, 0x1e, 0x7a, 0x44, + 0x3d, 0xa1, 0xf6, 0x52, 0xf5, 0xb0, 0xad, 0xa0, 0xa7, 0x1c, 0xfd, 0x17, 0x54, 0x3b, 0xf3, 0xd6, + 0xde, 0x35, 0xeb, 0x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x79, 0x94, 0x63, 0xd4, 0xbb, 0xcf, 0xdd, + 0x8d, 0xa2, 0x5d, 0xa9, 0xb8, 0x93, 0xda, 0x9c, 0xb6, 0x38, 0x62, 0x65, 0xc1, 0x76, 0xae, 0x52, + 0x71, 0x89, 0x85, 0xa6, 0x52, 0xc2, 0x45, 0x9d, 0x33, 0x41, 0xf1, 0x3a, 0xda, 0xc5, 0x78, 0x85, + 0xca, 0xb8, 0xec, 0xea, 0xbc, 0x91, 0x72, 0x40, 0x46, 0x22, 0x50, 0xba, 0x93, 0xd3, 0x68, 0x42, + 0x62, 0x7e, 0x48, 0x3d, 0x7b, 0x9b, 0x74, 0x2e, 0xa2, 0xfd, 0x1d, 0xa1, 0x40, 0x65, 0x25, 0x41, + 0x65, 0x26, 0x95, 0x4a, 0x2b, 0x48, 0xd1, 0xf8, 0x04, 0x96, 0xf6, 0x36, 0xad, 0x73, 0xe1, 0x78, + 0x85, 0xc6, 0xf6, 0xb8, 0xe0, 0x19, 0x84, 0xe4, 0x29, 0x17, 0xbd, 0x46, 0x9d, 0x4e, 0xee, 0x98, + 0xd3, 0x16, 0x47, 0xad, 0x11, 0x69, 0xb9, 0xd1, 0xa8, 0x53, 0x62, 0xa3, 0x7c, 0x1a, 0x3c, 0xf0, + 0x3d, 0x8f, 0x72, 0x15, 0x35, 0x51, 0x74, 0xd8, 0x6d, 0x0e, 0xbc, 0xe7, 0x52, 0x79, 0x03, 0xc2, + 0x05, 0x76, 0x9b, 0x5b, 0xd9, 0x4a, 0x7b, 0x40, 0xbe, 0xd4, 0x3a, 0x73, 0x5c, 0xb9, 0xcf, 0xa8, + 0x1b, 0xad, 0x61, 0x06, 0x21, 0x1e, 0x8e, 0xe3, 0x2b, 0x18, 0x91, 0x16, 0xc9, 0xff, 0x5d, 0x84, + 0xda, 0x75, 0x29, 0xf9, 0x67, 0x57, 0x8f, 0x18, 0x50, 0xd2, 0x61, 0x61, 0x1a, 0xea, 0xf6, 0x41, + 0xed, 0x19, 0x57, 0xed, 0x6a, 0xb4, 0x3d, 0x56, 0x2c, 0x92, 0x7c, 0xa7, 0xa1, 0xe9, 0x54, 0x16, + 0xb0, 0xd4, 0x77, 0xd0, 0x68, 0x7c, 0xa9, 0x62, 0x52, 0x9b, 0xdb, 0x39, 0xd0, 0x5a, 0x73, 0xb1, + 0xb5, 0x0a, 0xfc, 0x5e, 0x0a, 0xdd, 0xa3, 0x7d, 0xe9, 0x2a, 0x0e, 0x09, 0xbe, 0x79, 0xb8, 0x11, + 0x90, 0xea, 0x06, 0xf7, 0xec, 0x4d, 0x58, 0x17, 0xf9, 0x65, 0x67, 0xb2, 0x28, 0x60, 0x12, 0x56, + 0x72, 0x0b, 0x1d, 0x72, 0xa1, 0x9c, 0x8b, 0x61, 0x09, 0x89, 0xa2, 0x17, 0xce, 0x17, 0x81, 0x27, + 0x1c, 0xe2, 0x54, 0x82, 0x54, 0x44, 0xe7, 0x3c, 0x77, 0x98, 0x35, 0xe5, 0xc6, 0x6e, 0x83, 0x90, + 0xe0, 0x90, 0x08, 0x5b, 0x68, 0xb2, 0x46, 0x3d, 0x3b, 0x15, 0x77, 0x47, 0x3f, 0xdc, 0xfd, 0x35, + 0x28, 0xed, 0x24, 0xe6, 0x25, 0x34, 0xa1, 0x80, 0x4a, 0x9c, 0x55, 0x68, 0xa5, 0x85, 0xb7, 0xb3, + 0x1f, 0x1e, 0x96, 0x61, 0x05, 0x19, 0x15, 0x81, 0x5d, 0x41, 0x07, 0x14, 0x98, 0xcf, 0x3a, 0xe0, + 0x76, 0xf5, 0x83, 0x53, 0x2c, 0x3e, 0x82, 0xb8, 0x08, 0xf0, 0x1a, 0x3a, 0x18, 0x07, 0x74, 0x58, + 0xb5, 0x85, 0xb8, 0xbb, 0xef, 0x82, 0x63, 0x88, 0x0e, 0xab, 0x02, 0x24, 0x99, 0x40, 0x58, 0x9e, + 0xde, 0x55, 0xdb, 0xb5, 0x6b, 0x22, 0x3a, 0xd4, 0x8b, 0x68, 0x3c, 0x61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 0x01, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x73, 0x9c, + 0xb5, 0x44, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/register/types/query.pb.gw.go b/x/register/types/query.pb.gw.go index b1ebfb3c..9088333d 100644 --- a/x/register/types/query.pb.gw.go +++ b/x/register/types/query.pb.gw.go @@ -817,9 +817,9 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_ResourceNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "register", "v1", "resource-nodes", "network_addr"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ResourceNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "register", "v1", "resource_node", "network_addr"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MetaNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "register", "v1", "meta-nodes", "network_addr"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_MetaNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "register", "v1", "meta_node", "network_addr"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) @@ -829,9 +829,9 @@ var ( pattern_Query_DepositTotal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "deposit_total"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BondedResourceNodeCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "pp_number"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BondedResourceNodeCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "resource_node_count"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BondedMetaNodeCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "sp_number"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BondedMetaNodeCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "meta_node_count"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_RemainingOzoneLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "register", "v1", "remaining_ozone_limit"}, "", runtime.AssumeColonVerbOpt(false))) ) diff --git a/x/sds/keeper/grpc_query.go b/x/sds/keeper/grpc_query.go index 87d511d6..a9e570d5 100644 --- a/x/sds/keeper/grpc_query.go +++ b/x/sds/keeper/grpc_query.go @@ -48,11 +48,16 @@ func (q Querier) SimPrepay(c context.Context, request *types.QuerySimPrepayReque if request == nil { return &types.QuerySimPrepayResponse{}, status.Error(codes.InvalidArgument, "empty request") } - if request.GetAmount() == nil { + if request.GetAmount() == "" { return &types.QuerySimPrepayResponse{}, status.Error(codes.InvalidArgument, "Amount cannot be empty") } + amount, err := sdk.ParseCoinNormalized(request.GetAmount()) + if err != nil { + return &types.QuerySimPrepayResponse{}, status.Error(codes.InvalidArgument, "Amount invalid") + } ctx := sdk.UnwrapSDKContext(c) - noz := q.simulatePurchaseNoz(ctx, request.GetAmount()) + + noz := q.simulatePurchaseNoz(ctx, sdk.NewCoins(amount)) return &types.QuerySimPrepayResponse{Noz: noz}, nil } diff --git a/x/sds/types/query.pb.go b/x/sds/types/query.pb.go index 3a82f103..c568cea0 100644 --- a/x/sds/types/query.pb.go +++ b/x/sds/types/query.pb.go @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -124,7 +124,7 @@ func (m *QueryFileUploadResponse) GetFileInfo() *FileInfo { } type QuerySimPrepayRequest struct { - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` } func (m *QuerySimPrepayRequest) Reset() { *m = QuerySimPrepayRequest{} } @@ -160,11 +160,11 @@ func (m *QuerySimPrepayRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QuerySimPrepayRequest proto.InternalMessageInfo -func (m *QuerySimPrepayRequest) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *QuerySimPrepayRequest) GetAmount() string { if m != nil { return m.Amount } - return nil + return "" } type QuerySimPrepayResponse struct { @@ -450,56 +450,53 @@ func init() { func init() { proto.RegisterFile("stratos/sds/v1/query.proto", fileDescriptor_5b213ac8f144321e) } var fileDescriptor_5b213ac8f144321e = []byte{ - // 771 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4d, 0x4f, 0xdb,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0x84, 0x5f, 0xc7, 0x8e, - 0x68, 0xee, 0xc6, 0x0e, 0x50, 0x12, 0x09, 0xed, 0xb8, 0xef, 0xdf, 0xad, 0x03, 0xbd, 0x5c, 0x81, - 0xf0, 0x92, 0x00, 0xb8, 0x59, 0x30, 0x2b, 0xe9, 0x1f, 0xd3, 0x4e, 0xb1, 0x19, 0xf8, 0x58, 0xdb, - 0xe2, 0x3e, 0xef, 0x19, 0x36, 0x28, 0x68, 0x59, 0x07, 0x60, 0x2a, 0x12, 0x07, 0x5a, 0xd8, 0xde, - 0x3d, 0x84, 0x6d, 0x63, 0xff, 0x3a, 0x76, 0x54, 0x7b, 0x37, 0x76, 0x7e, 0x52, 0xd2, 0xe4, 0xeb, - 0xb0, 0xb8, 0x6d, 0xec, 0x97, 0x14, 0xc8, 0x9d, 0x1b, 0xa8, 0xd8, 0x6d, 0x45, 0x51, 0xa3, 0xf7, - 0x6f, 0x73, 0xcf, 0x26, 0xb4, 0x6f, 0x43, 0x15, 0x2d, 0xf0, 0x18, 0x64, 0x9a, 0x38, 0x44, 0x01, - 0x09, 0x48, 0x4d, 0x8b, 0x7c, 0x7a, 0x6f, 0xf7, 0x06, 0x23, 0xba, 0xb1, 0xf3, 0xab, 0x12, 0xda, - 0x3f, 0x4a, 0x3a, 0x39, 0x00, 0x0b, 0x77, 0x38, 0xe5, 0xa8, 0x91, 0x9b, 0xb8, 0xb7, 0x3b, 0x8a, - 0x58, 0xb5, 0x0f, 0xdc, 0x91, 0xaf, 0x49, 0x42, 0x05, 0x72, 0x67, 0x81, 0x29, 0x3d, 0x28, 0xa2, - 0x26, 0x0a, 0x59, 0xcf, 0x9a, 0xff, 0xc1, 0x6f, 0x23, 0xa7, 0xda, 0x16, 0x0f, 0xa4, 0x23, 0x79, - 0xa2, 0x63, 0x93, 0x4d, 0xc6, 0x46, 0xe3, 0x35, 0x6a, 0xe3, 0xc5, 0x14, 0x98, 0x92, 0x73, 0xcc, - 0x97, 0x06, 0x00, 0x22, 0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3e, 0x93, 0xe3, 0x64, 0xc6, 0x2a, - 0x69, 0xf9, 0xbb, 0xf4, 0xcf, 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0xc7, 0x0d, 0x78, 0x4e, - 0x07, 0x00, 0x00, + // 729 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xcf, 0x4f, 0x13, 0x41, + 0x14, 0xc7, 0xbb, 0x18, 0x1a, 0x3a, 0x1a, 0x63, 0x46, 0x2c, 0x65, 0x21, 0x5b, 0x1d, 0x04, 0x34, + 0x86, 0x9d, 0x14, 0xc3, 0xc5, 0x23, 0x41, 0x63, 0x2f, 0xa6, 0x94, 0x70, 0x31, 0x31, 0xcd, 0x74, + 0x3b, 0xb4, 0x1b, 0xba, 0x33, 0x4b, 0x67, 0x4a, 0x6c, 0x09, 0x1e, 0x88, 0x89, 0x37, 0xa3, 0xf1, + 0x5f, 0xf1, 0x8f, 0xe0, 0x48, 0xf4, 0x62, 0x3c, 0x6c, 0x0c, 0x78, 0xe2, 0xc8, 0x5f, 0x60, 0x76, + 0x66, 0xfa, 0x6b, 0x29, 0x12, 0x4e, 0xcc, 0xcc, 0xfb, 0xbe, 0xf7, 0x3e, 0xfb, 0x78, 0xdf, 0x14, + 0xd8, 0x42, 0xb6, 0x88, 0xe4, 0x02, 0x8b, 0x9a, 0xc0, 0xfb, 0x05, 0xbc, 0xd7, 0xa6, 0xad, 0x8e, + 0x1b, 0xb6, 0xb8, 0xe4, 0xf0, 0xae, 0x89, 0xb9, 0xa2, 0x26, 0xdc, 0xfd, 0x82, 0x3d, 0x5d, 0xe7, + 0x75, 0xae, 0x42, 0x38, 0x3e, 0x69, 0x95, 0x3d, 0xeb, 0x71, 0x11, 0x70, 0x51, 0xd1, 0x01, 0x7d, + 0x31, 0xa1, 0xf9, 0x3a, 0xe7, 0xf5, 0x26, 0xc5, 0x24, 0xf4, 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35, 0x88, 0xcf, + 0xf0, 0x7b, 0x55, 0x4e, 0xb9, 0xad, 0x9a, 0x56, 0x3f, 0x1c, 0xcf, 0xff, 0x05, 0x00, 0x00, 0xff, + 0xff, 0xab, 0x48, 0x83, 0x61, 0xef, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -816,18 +813,11 @@ func (m *QuerySimPrepayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1088,11 +1078,9 @@ func (m *QuerySimPrepayRequest) Size() (n int) { } var l int _ = l - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } @@ -1379,7 +1367,7 @@ func (m *QuerySimPrepayRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1389,25 +1377,23 @@ func (m *QuerySimPrepayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = append(m.Amount, types.Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/sds/types/query.pb.gw.go b/x/sds/types/query.pb.gw.go index 1144aec2..a65e0077 100644 --- a/x/sds/types/query.pb.gw.go +++ b/x/sds/types/query.pb.gw.go @@ -87,19 +87,26 @@ func local_request_Query_Fileupload_0(ctx context.Context, marshaler runtime.Mar } -var ( - filter_Query_SimPrepay_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - func request_Query_SimPrepay_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QuerySimPrepayRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["amount"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "amount") } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimPrepay_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + + protoReq.Amount, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "amount", err) } msg, err := client.SimPrepay(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -111,11 +118,22 @@ func local_request_Query_SimPrepay_0(ctx context.Context, marshaler runtime.Mars var protoReq QuerySimPrepayRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["amount"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "amount") } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimPrepay_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + + protoReq.Amount, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "amount", err) } msg, err := server.SimPrepay(ctx, &protoReq) @@ -445,7 +463,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Fileupload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "sds", "v1", "file_upload", "file_hash"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SimPrepay_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "sds", "v1", "sim_prepay"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_SimPrepay_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"stratos", "sds", "v1", "sim_prepay", "amount"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_NozPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"stratos", "sds", "v1", "noz_price"}, "", runtime.AssumeColonVerbOpt(false)))