diff --git a/api/sourcehub/tier/v1beta1/genesis.pulsar.go b/api/sourcehub/tier/v1beta1/genesis.pulsar.go index c39dec19..a1a01ee7 100644 --- a/api/sourcehub/tier/v1beta1/genesis.pulsar.go +++ b/api/sourcehub/tier/v1beta1/genesis.pulsar.go @@ -65,10 +65,62 @@ func (x *_GenesisState_2_list) IsValid() bool { return x.list != nil } +var _ protoreflect.List = (*_GenesisState_3_list)(nil) + +type _GenesisState_3_list struct { + list *[]*UnlockingLockup +} + +func (x *_GenesisState_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*UnlockingLockup) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*UnlockingLockup) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { + v := new(UnlockingLockup) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_3_list) NewElement() protoreflect.Value { + v := new(UnlockingLockup) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_3_list) IsValid() bool { + return x.list != nil +} + var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_lockups protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_lockups protoreflect.FieldDescriptor + fd_GenesisState_unlockingLockups protoreflect.FieldDescriptor ) func init() { @@ -76,6 +128,7 @@ func init() { md_GenesisState = File_sourcehub_tier_v1beta1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_lockups = md_GenesisState.Fields().ByName("lockups") + fd_GenesisState_unlockingLockups = md_GenesisState.Fields().ByName("unlockingLockups") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -155,6 +208,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if len(x.UnlockingLockups) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.UnlockingLockups}) + if !f(fd_GenesisState_unlockingLockups, value) { + return + } + } } // Has reports whether a field is populated. @@ -174,6 +233,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.Params != nil case "sourcehub.tier.v1beta1.GenesisState.lockups": return len(x.Lockups) != 0 + case "sourcehub.tier.v1beta1.GenesisState.unlockingLockups": + return len(x.UnlockingLockups) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.GenesisState")) @@ -194,6 +255,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Params = nil case "sourcehub.tier.v1beta1.GenesisState.lockups": x.Lockups = nil + case "sourcehub.tier.v1beta1.GenesisState.unlockingLockups": + x.UnlockingLockups = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.GenesisState")) @@ -219,6 +282,12 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_2_list{list: &x.Lockups} return protoreflect.ValueOfList(listValue) + case "sourcehub.tier.v1beta1.GenesisState.unlockingLockups": + if len(x.UnlockingLockups) == 0 { + return protoreflect.ValueOfList(&_GenesisState_3_list{}) + } + listValue := &_GenesisState_3_list{list: &x.UnlockingLockups} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.GenesisState")) @@ -245,6 +314,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_2_list) x.Lockups = *clv.list + case "sourcehub.tier.v1beta1.GenesisState.unlockingLockups": + lv := value.List() + clv := lv.(*_GenesisState_3_list) + x.UnlockingLockups = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.GenesisState")) @@ -276,6 +349,12 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_2_list{list: &x.Lockups} return protoreflect.ValueOfList(value) + case "sourcehub.tier.v1beta1.GenesisState.unlockingLockups": + if x.UnlockingLockups == nil { + x.UnlockingLockups = []*UnlockingLockup{} + } + value := &_GenesisState_3_list{list: &x.UnlockingLockups} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.GenesisState")) @@ -295,6 +374,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "sourcehub.tier.v1beta1.GenesisState.lockups": list := []*Lockup{} return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) + case "sourcehub.tier.v1beta1.GenesisState.unlockingLockups": + list := []*UnlockingLockup{} + return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.GenesisState")) @@ -374,6 +456,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if len(x.UnlockingLockups) > 0 { + for _, e := range x.UnlockingLockups { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -403,6 +491,22 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.UnlockingLockups) > 0 { + for iNdEx := len(x.UnlockingLockups) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UnlockingLockups[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] = 0x1a + } + } if len(x.Lockups) > 0 { for iNdEx := len(x.Lockups) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Lockups[iNdEx]) @@ -552,6 +656,40 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnlockingLockups", 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.UnlockingLockups = append(x.UnlockingLockups, &UnlockingLockup{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnlockingLockups[len(x.UnlockingLockups)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -607,8 +745,9 @@ type GenesisState struct { unknownFields protoimpl.UnknownFields // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - Lockups []*Lockup `protobuf:"bytes,2,rep,name=lockups,proto3" json:"lockups,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + Lockups []*Lockup `protobuf:"bytes,2,rep,name=lockups,proto3" json:"lockups,omitempty"` + UnlockingLockups []*UnlockingLockup `protobuf:"bytes,3,rep,name=unlockingLockups,proto3" json:"unlockingLockups,omitempty"` } func (x *GenesisState) Reset() { @@ -645,6 +784,13 @@ func (x *GenesisState) GetLockups() []*Lockup { return nil } +func (x *GenesisState) GetUnlockingLockups() []*UnlockingLockup { + if x != nil { + return x.UnlockingLockups + } + return nil +} + var File_sourcehub_tier_v1beta1_genesis_proto protoreflect.FileDescriptor var file_sourcehub_tier_v1beta1_genesis_proto_rawDesc = []byte{ @@ -659,7 +805,7 @@ var file_sourcehub_tier_v1beta1_genesis_proto_rawDesc = []byte{ 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x96, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, + 0x6f, 0x22, 0xf6, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, @@ -668,7 +814,13 @@ var file_sourcehub_tier_v1beta1_genesis_proto_rawDesc = []byte{ 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, - 0x01, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x42, 0xd9, 0x01, 0x0a, 0x1a, 0x63, + 0x01, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x5e, 0x0a, 0x10, 0x75, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, + 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x09, 0xc8, + 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, + 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x42, 0xd9, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, @@ -699,18 +851,20 @@ func file_sourcehub_tier_v1beta1_genesis_proto_rawDescGZIP() []byte { var file_sourcehub_tier_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_sourcehub_tier_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: sourcehub.tier.v1beta1.GenesisState - (*Params)(nil), // 1: sourcehub.tier.v1beta1.Params - (*Lockup)(nil), // 2: sourcehub.tier.v1beta1.Lockup + (*GenesisState)(nil), // 0: sourcehub.tier.v1beta1.GenesisState + (*Params)(nil), // 1: sourcehub.tier.v1beta1.Params + (*Lockup)(nil), // 2: sourcehub.tier.v1beta1.Lockup + (*UnlockingLockup)(nil), // 3: sourcehub.tier.v1beta1.UnlockingLockup } var file_sourcehub_tier_v1beta1_genesis_proto_depIdxs = []int32{ 1, // 0: sourcehub.tier.v1beta1.GenesisState.params:type_name -> sourcehub.tier.v1beta1.Params 2, // 1: sourcehub.tier.v1beta1.GenesisState.lockups:type_name -> sourcehub.tier.v1beta1.Lockup - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] 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 + 3, // 2: sourcehub.tier.v1beta1.GenesisState.unlockingLockups:type_name -> sourcehub.tier.v1beta1.UnlockingLockup + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] 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 } func init() { file_sourcehub_tier_v1beta1_genesis_proto_init() } diff --git a/api/sourcehub/tier/v1beta1/lockup.pulsar.go b/api/sourcehub/tier/v1beta1/lockup.pulsar.go index faa6994c..1e118588 100644 --- a/api/sourcehub/tier/v1beta1/lockup.pulsar.go +++ b/api/sourcehub/tier/v1beta1/lockup.pulsar.go @@ -2,6 +2,7 @@ package tierv1beta1 import ( + _ "cosmossdk.io/api/amino" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -20,9 +21,6 @@ var ( fd_Lockup_delegator_address protoreflect.FieldDescriptor fd_Lockup_validator_address protoreflect.FieldDescriptor fd_Lockup_amount protoreflect.FieldDescriptor - fd_Lockup_creation_height protoreflect.FieldDescriptor - fd_Lockup_unbond_time protoreflect.FieldDescriptor - fd_Lockup_unlock_time protoreflect.FieldDescriptor ) func init() { @@ -31,9 +29,6 @@ func init() { fd_Lockup_delegator_address = md_Lockup.Fields().ByName("delegator_address") fd_Lockup_validator_address = md_Lockup.Fields().ByName("validator_address") fd_Lockup_amount = md_Lockup.Fields().ByName("amount") - fd_Lockup_creation_height = md_Lockup.Fields().ByName("creation_height") - fd_Lockup_unbond_time = md_Lockup.Fields().ByName("unbond_time") - fd_Lockup_unlock_time = md_Lockup.Fields().ByName("unlock_time") } var _ protoreflect.Message = (*fastReflection_Lockup)(nil) @@ -119,21 +114,575 @@ func (x *fastReflection_Lockup) Range(f func(protoreflect.FieldDescriptor, proto 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_Lockup) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "sourcehub.tier.v1beta1.Lockup.delegator_address": + return x.DelegatorAddress != "" + case "sourcehub.tier.v1beta1.Lockup.validator_address": + return x.ValidatorAddress != "" + case "sourcehub.tier.v1beta1.Lockup.amount": + return x.Amount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + } + panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup 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_Lockup) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "sourcehub.tier.v1beta1.Lockup.delegator_address": + x.DelegatorAddress = "" + case "sourcehub.tier.v1beta1.Lockup.validator_address": + x.ValidatorAddress = "" + case "sourcehub.tier.v1beta1.Lockup.amount": + x.Amount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + } + panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup 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_Lockup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "sourcehub.tier.v1beta1.Lockup.delegator_address": + value := x.DelegatorAddress + return protoreflect.ValueOfString(value) + case "sourcehub.tier.v1beta1.Lockup.validator_address": + value := x.ValidatorAddress + return protoreflect.ValueOfString(value) + case "sourcehub.tier.v1beta1.Lockup.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + } + panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup 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_Lockup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "sourcehub.tier.v1beta1.Lockup.delegator_address": + x.DelegatorAddress = value.Interface().(string) + case "sourcehub.tier.v1beta1.Lockup.validator_address": + x.ValidatorAddress = value.Interface().(string) + case "sourcehub.tier.v1beta1.Lockup.amount": + x.Amount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + } + panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup 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_Lockup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "sourcehub.tier.v1beta1.Lockup.delegator_address": + panic(fmt.Errorf("field delegator_address of message sourcehub.tier.v1beta1.Lockup is not mutable")) + case "sourcehub.tier.v1beta1.Lockup.validator_address": + panic(fmt.Errorf("field validator_address of message sourcehub.tier.v1beta1.Lockup is not mutable")) + case "sourcehub.tier.v1beta1.Lockup.amount": + panic(fmt.Errorf("field amount of message sourcehub.tier.v1beta1.Lockup is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + } + panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup 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_Lockup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "sourcehub.tier.v1beta1.Lockup.delegator_address": + return protoreflect.ValueOfString("") + case "sourcehub.tier.v1beta1.Lockup.validator_address": + return protoreflect.ValueOfString("") + case "sourcehub.tier.v1beta1.Lockup.amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + } + panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup 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_Lockup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in sourcehub.tier.v1beta1.Lockup", 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_Lockup) 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_Lockup) 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_Lockup) 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_Lockup) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Lockup) + 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.DelegatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ValidatorAddress) + if l > 0 { + 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) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Lockup) + 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 len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(x.ValidatorAddress) > 0 { + i -= len(x.ValidatorAddress) + copy(dAtA[i:], x.ValidatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValidatorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.DelegatorAddress) > 0 { + i -= len(x.DelegatorAddress) + copy(dAtA[i:], x.DelegatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) + 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().(*Lockup) + 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: Lockup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Lockup: 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 DelegatorAddress", 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.DelegatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", 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.ValidatorAddress = 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 Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + 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_UnlockingLockup protoreflect.MessageDescriptor + fd_UnlockingLockup_delegator_address protoreflect.FieldDescriptor + fd_UnlockingLockup_validator_address protoreflect.FieldDescriptor + fd_UnlockingLockup_creation_height protoreflect.FieldDescriptor + fd_UnlockingLockup_amount protoreflect.FieldDescriptor + fd_UnlockingLockup_completion_time protoreflect.FieldDescriptor + fd_UnlockingLockup_unlock_time protoreflect.FieldDescriptor +) + +func init() { + file_sourcehub_tier_v1beta1_lockup_proto_init() + md_UnlockingLockup = File_sourcehub_tier_v1beta1_lockup_proto.Messages().ByName("UnlockingLockup") + fd_UnlockingLockup_delegator_address = md_UnlockingLockup.Fields().ByName("delegator_address") + fd_UnlockingLockup_validator_address = md_UnlockingLockup.Fields().ByName("validator_address") + fd_UnlockingLockup_creation_height = md_UnlockingLockup.Fields().ByName("creation_height") + fd_UnlockingLockup_amount = md_UnlockingLockup.Fields().ByName("amount") + fd_UnlockingLockup_completion_time = md_UnlockingLockup.Fields().ByName("completion_time") + fd_UnlockingLockup_unlock_time = md_UnlockingLockup.Fields().ByName("unlock_time") +} + +var _ protoreflect.Message = (*fastReflection_UnlockingLockup)(nil) + +type fastReflection_UnlockingLockup UnlockingLockup + +func (x *UnlockingLockup) ProtoReflect() protoreflect.Message { + return (*fastReflection_UnlockingLockup)(x) +} + +func (x *UnlockingLockup) slowProtoReflect() protoreflect.Message { + mi := &file_sourcehub_tier_v1beta1_lockup_proto_msgTypes[1] + 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_UnlockingLockup_messageType fastReflection_UnlockingLockup_messageType +var _ protoreflect.MessageType = fastReflection_UnlockingLockup_messageType{} + +type fastReflection_UnlockingLockup_messageType struct{} + +func (x fastReflection_UnlockingLockup_messageType) Zero() protoreflect.Message { + return (*fastReflection_UnlockingLockup)(nil) +} +func (x fastReflection_UnlockingLockup_messageType) New() protoreflect.Message { + return new(fastReflection_UnlockingLockup) +} +func (x fastReflection_UnlockingLockup_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_UnlockingLockup +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_UnlockingLockup) Descriptor() protoreflect.MessageDescriptor { + return md_UnlockingLockup +} + +// 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_UnlockingLockup) Type() protoreflect.MessageType { + return _fastReflection_UnlockingLockup_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_UnlockingLockup) New() protoreflect.Message { + return new(fastReflection_UnlockingLockup) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_UnlockingLockup) Interface() protoreflect.ProtoMessage { + return (*UnlockingLockup)(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_UnlockingLockup) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddress != "" { + value := protoreflect.ValueOfString(x.DelegatorAddress) + if !f(fd_UnlockingLockup_delegator_address, value) { + return + } + } + if x.ValidatorAddress != "" { + value := protoreflect.ValueOfString(x.ValidatorAddress) + if !f(fd_UnlockingLockup_validator_address, value) { + return + } + } if x.CreationHeight != int64(0) { value := protoreflect.ValueOfInt64(x.CreationHeight) - if !f(fd_Lockup_creation_height, value) { + if !f(fd_UnlockingLockup_creation_height, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_UnlockingLockup_amount, value) { return } } - if x.UnbondTime != nil { - value := protoreflect.ValueOfMessage(x.UnbondTime.ProtoReflect()) - if !f(fd_Lockup_unbond_time, value) { + if x.CompletionTime != nil { + value := protoreflect.ValueOfMessage(x.CompletionTime.ProtoReflect()) + if !f(fd_UnlockingLockup_completion_time, value) { return } } if x.UnlockTime != nil { value := protoreflect.ValueOfMessage(x.UnlockTime.ProtoReflect()) - if !f(fd_Lockup_unlock_time, value) { + if !f(fd_UnlockingLockup_unlock_time, value) { return } } @@ -150,25 +699,25 @@ func (x *fastReflection_Lockup) Range(f func(protoreflect.FieldDescriptor, proto // 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_Lockup) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_UnlockingLockup) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "sourcehub.tier.v1beta1.Lockup.delegator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.delegator_address": return x.DelegatorAddress != "" - case "sourcehub.tier.v1beta1.Lockup.validator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.validator_address": return x.ValidatorAddress != "" - case "sourcehub.tier.v1beta1.Lockup.amount": - return x.Amount != "" - case "sourcehub.tier.v1beta1.Lockup.creation_height": + case "sourcehub.tier.v1beta1.UnlockingLockup.creation_height": return x.CreationHeight != int64(0) - case "sourcehub.tier.v1beta1.Lockup.unbond_time": - return x.UnbondTime != nil - case "sourcehub.tier.v1beta1.Lockup.unlock_time": + case "sourcehub.tier.v1beta1.UnlockingLockup.amount": + return x.Amount != "" + case "sourcehub.tier.v1beta1.UnlockingLockup.completion_time": + return x.CompletionTime != nil + case "sourcehub.tier.v1beta1.UnlockingLockup.unlock_time": return x.UnlockTime != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockup")) } - panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message sourcehub.tier.v1beta1.UnlockingLockup does not contain field %s", fd.FullName())) } } @@ -178,25 +727,25 @@ func (x *fastReflection_Lockup) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Lockup) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_UnlockingLockup) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.Lockup.delegator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.delegator_address": x.DelegatorAddress = "" - case "sourcehub.tier.v1beta1.Lockup.validator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.validator_address": x.ValidatorAddress = "" - case "sourcehub.tier.v1beta1.Lockup.amount": - x.Amount = "" - case "sourcehub.tier.v1beta1.Lockup.creation_height": + case "sourcehub.tier.v1beta1.UnlockingLockup.creation_height": x.CreationHeight = int64(0) - case "sourcehub.tier.v1beta1.Lockup.unbond_time": - x.UnbondTime = nil - case "sourcehub.tier.v1beta1.Lockup.unlock_time": + case "sourcehub.tier.v1beta1.UnlockingLockup.amount": + x.Amount = "" + case "sourcehub.tier.v1beta1.UnlockingLockup.completion_time": + x.CompletionTime = nil + case "sourcehub.tier.v1beta1.UnlockingLockup.unlock_time": x.UnlockTime = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockup")) } - panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message sourcehub.tier.v1beta1.UnlockingLockup does not contain field %s", fd.FullName())) } } @@ -206,31 +755,31 @@ func (x *fastReflection_Lockup) 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_Lockup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_UnlockingLockup) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "sourcehub.tier.v1beta1.Lockup.delegator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.delegator_address": value := x.DelegatorAddress return protoreflect.ValueOfString(value) - case "sourcehub.tier.v1beta1.Lockup.validator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.validator_address": value := x.ValidatorAddress return protoreflect.ValueOfString(value) - case "sourcehub.tier.v1beta1.Lockup.amount": - value := x.Amount - return protoreflect.ValueOfString(value) - case "sourcehub.tier.v1beta1.Lockup.creation_height": + case "sourcehub.tier.v1beta1.UnlockingLockup.creation_height": value := x.CreationHeight return protoreflect.ValueOfInt64(value) - case "sourcehub.tier.v1beta1.Lockup.unbond_time": - value := x.UnbondTime + case "sourcehub.tier.v1beta1.UnlockingLockup.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "sourcehub.tier.v1beta1.UnlockingLockup.completion_time": + value := x.CompletionTime return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "sourcehub.tier.v1beta1.Lockup.unlock_time": + case "sourcehub.tier.v1beta1.UnlockingLockup.unlock_time": value := x.UnlockTime return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockup")) } - panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message sourcehub.tier.v1beta1.UnlockingLockup does not contain field %s", descriptor.FullName())) } } @@ -244,25 +793,25 @@ func (x *fastReflection_Lockup) Get(descriptor protoreflect.FieldDescriptor) pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Lockup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_UnlockingLockup) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.Lockup.delegator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.delegator_address": x.DelegatorAddress = value.Interface().(string) - case "sourcehub.tier.v1beta1.Lockup.validator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.validator_address": x.ValidatorAddress = value.Interface().(string) - case "sourcehub.tier.v1beta1.Lockup.amount": - x.Amount = value.Interface().(string) - case "sourcehub.tier.v1beta1.Lockup.creation_height": + case "sourcehub.tier.v1beta1.UnlockingLockup.creation_height": x.CreationHeight = value.Int() - case "sourcehub.tier.v1beta1.Lockup.unbond_time": - x.UnbondTime = value.Message().Interface().(*timestamppb.Timestamp) - case "sourcehub.tier.v1beta1.Lockup.unlock_time": + case "sourcehub.tier.v1beta1.UnlockingLockup.amount": + x.Amount = value.Interface().(string) + case "sourcehub.tier.v1beta1.UnlockingLockup.completion_time": + x.CompletionTime = value.Message().Interface().(*timestamppb.Timestamp) + case "sourcehub.tier.v1beta1.UnlockingLockup.unlock_time": x.UnlockTime = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockup")) } - panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message sourcehub.tier.v1beta1.UnlockingLockup does not contain field %s", fd.FullName())) } } @@ -276,68 +825,68 @@ func (x *fastReflection_Lockup) Set(fd protoreflect.FieldDescriptor, value proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Lockup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_UnlockingLockup) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.Lockup.unbond_time": - if x.UnbondTime == nil { - x.UnbondTime = new(timestamppb.Timestamp) + case "sourcehub.tier.v1beta1.UnlockingLockup.completion_time": + if x.CompletionTime == nil { + x.CompletionTime = new(timestamppb.Timestamp) } - return protoreflect.ValueOfMessage(x.UnbondTime.ProtoReflect()) - case "sourcehub.tier.v1beta1.Lockup.unlock_time": + return protoreflect.ValueOfMessage(x.CompletionTime.ProtoReflect()) + case "sourcehub.tier.v1beta1.UnlockingLockup.unlock_time": if x.UnlockTime == nil { x.UnlockTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.UnlockTime.ProtoReflect()) - case "sourcehub.tier.v1beta1.Lockup.delegator_address": - panic(fmt.Errorf("field delegator_address of message sourcehub.tier.v1beta1.Lockup is not mutable")) - case "sourcehub.tier.v1beta1.Lockup.validator_address": - panic(fmt.Errorf("field validator_address of message sourcehub.tier.v1beta1.Lockup is not mutable")) - case "sourcehub.tier.v1beta1.Lockup.amount": - panic(fmt.Errorf("field amount of message sourcehub.tier.v1beta1.Lockup is not mutable")) - case "sourcehub.tier.v1beta1.Lockup.creation_height": - panic(fmt.Errorf("field creation_height of message sourcehub.tier.v1beta1.Lockup is not mutable")) + case "sourcehub.tier.v1beta1.UnlockingLockup.delegator_address": + panic(fmt.Errorf("field delegator_address of message sourcehub.tier.v1beta1.UnlockingLockup is not mutable")) + case "sourcehub.tier.v1beta1.UnlockingLockup.validator_address": + panic(fmt.Errorf("field validator_address of message sourcehub.tier.v1beta1.UnlockingLockup is not mutable")) + case "sourcehub.tier.v1beta1.UnlockingLockup.creation_height": + panic(fmt.Errorf("field creation_height of message sourcehub.tier.v1beta1.UnlockingLockup is not mutable")) + case "sourcehub.tier.v1beta1.UnlockingLockup.amount": + panic(fmt.Errorf("field amount of message sourcehub.tier.v1beta1.UnlockingLockup is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockup")) } - panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message sourcehub.tier.v1beta1.UnlockingLockup 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_Lockup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_UnlockingLockup) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.Lockup.delegator_address": - return protoreflect.ValueOfString("") - case "sourcehub.tier.v1beta1.Lockup.validator_address": + case "sourcehub.tier.v1beta1.UnlockingLockup.delegator_address": return protoreflect.ValueOfString("") - case "sourcehub.tier.v1beta1.Lockup.amount": + case "sourcehub.tier.v1beta1.UnlockingLockup.validator_address": return protoreflect.ValueOfString("") - case "sourcehub.tier.v1beta1.Lockup.creation_height": + case "sourcehub.tier.v1beta1.UnlockingLockup.creation_height": return protoreflect.ValueOfInt64(int64(0)) - case "sourcehub.tier.v1beta1.Lockup.unbond_time": + case "sourcehub.tier.v1beta1.UnlockingLockup.amount": + return protoreflect.ValueOfString("") + case "sourcehub.tier.v1beta1.UnlockingLockup.completion_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "sourcehub.tier.v1beta1.Lockup.unlock_time": + case "sourcehub.tier.v1beta1.UnlockingLockup.unlock_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.Lockup")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockup")) } - panic(fmt.Errorf("message sourcehub.tier.v1beta1.Lockup does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message sourcehub.tier.v1beta1.UnlockingLockup 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_Lockup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_UnlockingLockup) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in sourcehub.tier.v1beta1.Lockup", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in sourcehub.tier.v1beta1.UnlockingLockup", d.FullName())) } panic("unreachable") } @@ -345,7 +894,7 @@ func (x *fastReflection_Lockup) WhichOneof(d protoreflect.OneofDescriptor) proto // 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_Lockup) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_UnlockingLockup) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -356,7 +905,7 @@ func (x *fastReflection_Lockup) 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_Lockup) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_UnlockingLockup) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -368,7 +917,7 @@ func (x *fastReflection_Lockup) 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_Lockup) IsValid() bool { +func (x *fastReflection_UnlockingLockup) IsValid() bool { return x != nil } @@ -378,9 +927,9 @@ func (x *fastReflection_Lockup) 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_Lockup) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_UnlockingLockup) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Lockup) + x := input.Message.Interface().(*UnlockingLockup) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -400,15 +949,15 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.CreationHeight != 0 { + n += 1 + runtime.Sov(uint64(x.CreationHeight)) + } l = len(x.Amount) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.CreationHeight != 0 { - n += 1 + runtime.Sov(uint64(x.CreationHeight)) - } - if x.UnbondTime != nil { - l = options.Size(x.UnbondTime) + if x.CompletionTime != nil { + l = options.Size(x.CompletionTime) n += 1 + l + runtime.Sov(uint64(l)) } if x.UnlockTime != nil { @@ -425,7 +974,7 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Lockup) + x := input.Message.Interface().(*UnlockingLockup) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -458,8 +1007,8 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x32 } - if x.UnbondTime != nil { - encoded, err := options.Marshal(x.UnbondTime) + if x.CompletionTime != nil { + encoded, err := options.Marshal(x.CompletionTime) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -472,17 +1021,17 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x2a } - if x.CreationHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CreationHeight)) - i-- - dAtA[i] = 0x20 - } if len(x.Amount) > 0 { i -= len(x.Amount) copy(dAtA[i:], x.Amount) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 + } + if x.CreationHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CreationHeight)) + i-- + dAtA[i] = 0x18 } if len(x.ValidatorAddress) > 0 { i -= len(x.ValidatorAddress) @@ -509,7 +1058,7 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Lockup) + x := input.Message.Interface().(*UnlockingLockup) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -541,10 +1090,10 @@ func (x *fastReflection_Lockup) 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: Lockup: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UnlockingLockup: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Lockup: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UnlockingLockup: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -612,6 +1161,25 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { x.ValidatorAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreationHeight", wireType) + } + x.CreationHeight = 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.CreationHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } @@ -643,28 +1211,9 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { } x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreationHeight", wireType) - } - x.CreationHeight = 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.CreationHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnbondTime", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -691,10 +1240,10 @@ func (x *fastReflection_Lockup) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.UnbondTime == nil { - x.UnbondTime = ×tamppb.Timestamp{} + if x.CompletionTime == nil { + x.CompletionTime = ×tamppb.Timestamp{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnbondTime); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CompletionTime); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -782,7 +1331,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Lockup tracks the locked and unlocking stake of a delegator. +// Lockup tracks the locked stake of a delegator. type Lockup struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -791,14 +1340,6 @@ type Lockup struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` - // The following fields are only used for unlocking lockups. - // - // The height at which the lockup was created. - CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` - // The time at which the stake undelegation will be completed. - UnbondTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=unbond_time,json=unbondTime,proto3" json:"unbond_time,omitempty"` - // The time at which the stake unlocking will be completed. - UnlockTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"` } func (x *Lockup) Reset() { @@ -842,21 +1383,78 @@ func (x *Lockup) GetAmount() string { return "" } -func (x *Lockup) GetCreationHeight() int64 { +// UnlockingLockup tracks the unlocking stake of a delegator. +type UnlockingLockup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + CreationHeight int64 `protobuf:"varint,3,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + // The time at which the stake undelegation will be completed. + CompletionTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` + // The time after which the unlocking lockup can be completed. + UnlockTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"` +} + +func (x *UnlockingLockup) Reset() { + *x = UnlockingLockup{} + if protoimpl.UnsafeEnabled { + mi := &file_sourcehub_tier_v1beta1_lockup_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnlockingLockup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnlockingLockup) ProtoMessage() {} + +// Deprecated: Use UnlockingLockup.ProtoReflect.Descriptor instead. +func (*UnlockingLockup) Descriptor() ([]byte, []int) { + return file_sourcehub_tier_v1beta1_lockup_proto_rawDescGZIP(), []int{1} +} + +func (x *UnlockingLockup) GetDelegatorAddress() string { + if x != nil { + return x.DelegatorAddress + } + return "" +} + +func (x *UnlockingLockup) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *UnlockingLockup) GetCreationHeight() int64 { if x != nil { return x.CreationHeight } return 0 } -func (x *Lockup) GetUnbondTime() *timestamppb.Timestamp { +func (x *UnlockingLockup) GetAmount() string { if x != nil { - return x.UnbondTime + return x.Amount + } + return "" +} + +func (x *UnlockingLockup) GetCompletionTime() *timestamppb.Timestamp { + if x != nil { + return x.CompletionTime } return nil } -func (x *Lockup) GetUnlockTime() *timestamppb.Timestamp { +func (x *UnlockingLockup) GetUnlockTime() *timestamppb.Timestamp { if x != nil { return x.UnlockTime } @@ -869,52 +1467,70 @@ var file_sourcehub_tier_v1beta1_lockup_proto_rawDesc = []byte{ 0x0a, 0x23, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x93, 0x03, 0x0a, 0x06, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 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, - 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, - 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x43, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, - 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, - 0x41, 0x0a, 0x0b, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, - 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x42, 0xd8, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, - 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x69, 0x65, - 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, - 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x2e, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xe2, 0x02, 0x22, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, - 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, - 0x62, 0x3a, 0x3a, 0x54, 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x11, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, + 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xe4, 0x01, 0x0a, 0x06, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x45, 0x0a, + 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 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, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb6, 0x03, 0x0a, 0x0f, 0x55, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x45, 0x0a, + 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 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, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x43, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, + 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, + 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, + 0x6d, 0x65, 0x42, 0xd8, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x42, 0x0b, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x69, 0x65, 0x72, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x16, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, + 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x18, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x3a, 0x3a, + 0x54, 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -929,14 +1545,15 @@ func file_sourcehub_tier_v1beta1_lockup_proto_rawDescGZIP() []byte { return file_sourcehub_tier_v1beta1_lockup_proto_rawDescData } -var file_sourcehub_tier_v1beta1_lockup_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_sourcehub_tier_v1beta1_lockup_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_sourcehub_tier_v1beta1_lockup_proto_goTypes = []interface{}{ (*Lockup)(nil), // 0: sourcehub.tier.v1beta1.Lockup - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*UnlockingLockup)(nil), // 1: sourcehub.tier.v1beta1.UnlockingLockup + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_sourcehub_tier_v1beta1_lockup_proto_depIdxs = []int32{ - 1, // 0: sourcehub.tier.v1beta1.Lockup.unbond_time:type_name -> google.protobuf.Timestamp - 1, // 1: sourcehub.tier.v1beta1.Lockup.unlock_time:type_name -> google.protobuf.Timestamp + 2, // 0: sourcehub.tier.v1beta1.UnlockingLockup.completion_time:type_name -> google.protobuf.Timestamp + 2, // 1: sourcehub.tier.v1beta1.UnlockingLockup.unlock_time:type_name -> google.protobuf.Timestamp 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -962,6 +1579,18 @@ func file_sourcehub_tier_v1beta1_lockup_proto_init() { return nil } } + file_sourcehub_tier_v1beta1_lockup_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnlockingLockup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -969,7 +1598,7 @@ func file_sourcehub_tier_v1beta1_lockup_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sourcehub_tier_v1beta1_lockup_proto_rawDesc, NumEnums: 0, - NumMessages: 1, + NumMessages: 2, NumExtensions: 0, NumServices: 0, }, diff --git a/api/sourcehub/tier/v1beta1/query.pulsar.go b/api/sourcehub/tier/v1beta1/query.pulsar.go index 977803df..1649030c 100644 --- a/api/sourcehub/tier/v1beta1/query.pulsar.go +++ b/api/sourcehub/tier/v1beta1/query.pulsar.go @@ -2278,14 +2278,14 @@ func (x *_LockupsResponse_1_list) IsValid() bool { var ( md_LockupsResponse protoreflect.MessageDescriptor - fd_LockupsResponse_lockup protoreflect.FieldDescriptor + fd_LockupsResponse_lockups protoreflect.FieldDescriptor fd_LockupsResponse_pagination protoreflect.FieldDescriptor ) func init() { file_sourcehub_tier_v1beta1_query_proto_init() md_LockupsResponse = File_sourcehub_tier_v1beta1_query_proto.Messages().ByName("LockupsResponse") - fd_LockupsResponse_lockup = md_LockupsResponse.Fields().ByName("lockup") + fd_LockupsResponse_lockups = md_LockupsResponse.Fields().ByName("lockups") fd_LockupsResponse_pagination = md_LockupsResponse.Fields().ByName("pagination") } @@ -2354,9 +2354,9 @@ func (x *fastReflection_LockupsResponse) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_LockupsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Lockup) != 0 { - value := protoreflect.ValueOfList(&_LockupsResponse_1_list{list: &x.Lockup}) - if !f(fd_LockupsResponse_lockup, value) { + if len(x.Lockups) != 0 { + value := protoreflect.ValueOfList(&_LockupsResponse_1_list{list: &x.Lockups}) + if !f(fd_LockupsResponse_lockups, value) { return } } @@ -2381,8 +2381,8 @@ func (x *fastReflection_LockupsResponse) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_LockupsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "sourcehub.tier.v1beta1.LockupsResponse.lockup": - return len(x.Lockup) != 0 + case "sourcehub.tier.v1beta1.LockupsResponse.lockups": + return len(x.Lockups) != 0 case "sourcehub.tier.v1beta1.LockupsResponse.pagination": return x.Pagination != nil default: @@ -2401,8 +2401,8 @@ func (x *fastReflection_LockupsResponse) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LockupsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.LockupsResponse.lockup": - x.Lockup = nil + case "sourcehub.tier.v1beta1.LockupsResponse.lockups": + x.Lockups = nil case "sourcehub.tier.v1beta1.LockupsResponse.pagination": x.Pagination = nil default: @@ -2421,11 +2421,11 @@ func (x *fastReflection_LockupsResponse) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_LockupsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "sourcehub.tier.v1beta1.LockupsResponse.lockup": - if len(x.Lockup) == 0 { + case "sourcehub.tier.v1beta1.LockupsResponse.lockups": + if len(x.Lockups) == 0 { return protoreflect.ValueOfList(&_LockupsResponse_1_list{}) } - listValue := &_LockupsResponse_1_list{list: &x.Lockup} + listValue := &_LockupsResponse_1_list{list: &x.Lockups} return protoreflect.ValueOfList(listValue) case "sourcehub.tier.v1beta1.LockupsResponse.pagination": value := x.Pagination @@ -2450,10 +2450,10 @@ func (x *fastReflection_LockupsResponse) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LockupsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.LockupsResponse.lockup": + case "sourcehub.tier.v1beta1.LockupsResponse.lockups": lv := value.List() clv := lv.(*_LockupsResponse_1_list) - x.Lockup = *clv.list + x.Lockups = *clv.list case "sourcehub.tier.v1beta1.LockupsResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: @@ -2476,11 +2476,11 @@ func (x *fastReflection_LockupsResponse) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_LockupsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.LockupsResponse.lockup": - if x.Lockup == nil { - x.Lockup = []*Lockup{} + case "sourcehub.tier.v1beta1.LockupsResponse.lockups": + if x.Lockups == nil { + x.Lockups = []*Lockup{} } - value := &_LockupsResponse_1_list{list: &x.Lockup} + value := &_LockupsResponse_1_list{list: &x.Lockups} return protoreflect.ValueOfList(value) case "sourcehub.tier.v1beta1.LockupsResponse.pagination": if x.Pagination == nil { @@ -2500,7 +2500,7 @@ func (x *fastReflection_LockupsResponse) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_LockupsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.LockupsResponse.lockup": + case "sourcehub.tier.v1beta1.LockupsResponse.lockups": list := []*Lockup{} return protoreflect.ValueOfList(&_LockupsResponse_1_list{list: &list}) case "sourcehub.tier.v1beta1.LockupsResponse.pagination": @@ -2575,8 +2575,8 @@ func (x *fastReflection_LockupsResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if len(x.Lockup) > 0 { - for _, e := range x.Lockup { + if len(x.Lockups) > 0 { + for _, e := range x.Lockups { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -2628,9 +2628,9 @@ func (x *fastReflection_LockupsResponse) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x12 } - if len(x.Lockup) > 0 { - for iNdEx := len(x.Lockup) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Lockup[iNdEx]) + if len(x.Lockups) > 0 { + for iNdEx := len(x.Lockups) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Lockups[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2695,7 +2695,7 @@ func (x *fastReflection_LockupsResponse) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lockup", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lockups", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2722,8 +2722,8 @@ func (x *fastReflection_LockupsResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Lockup = append(x.Lockup, &Lockup{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Lockup[len(x.Lockup)-1]); err != nil { + x.Lockups = append(x.Lockups, &Lockup{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Lockups[len(x.Lockups)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -3331,14 +3331,14 @@ func (x *fastReflection_UnlockingLockupRequest) ProtoMethods() *protoiface.Metho } var ( - md_UnlockingLockupResponse protoreflect.MessageDescriptor - fd_UnlockingLockupResponse_lockup protoreflect.FieldDescriptor + md_UnlockingLockupResponse protoreflect.MessageDescriptor + fd_UnlockingLockupResponse_unlockingLockup protoreflect.FieldDescriptor ) func init() { file_sourcehub_tier_v1beta1_query_proto_init() md_UnlockingLockupResponse = File_sourcehub_tier_v1beta1_query_proto.Messages().ByName("UnlockingLockupResponse") - fd_UnlockingLockupResponse_lockup = md_UnlockingLockupResponse.Fields().ByName("lockup") + fd_UnlockingLockupResponse_unlockingLockup = md_UnlockingLockupResponse.Fields().ByName("unlockingLockup") } var _ protoreflect.Message = (*fastReflection_UnlockingLockupResponse)(nil) @@ -3406,9 +3406,9 @@ func (x *fastReflection_UnlockingLockupResponse) Interface() protoreflect.ProtoM // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_UnlockingLockupResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Lockup != nil { - value := protoreflect.ValueOfMessage(x.Lockup.ProtoReflect()) - if !f(fd_UnlockingLockupResponse_lockup, value) { + if x.UnlockingLockup != nil { + value := protoreflect.ValueOfMessage(x.UnlockingLockup.ProtoReflect()) + if !f(fd_UnlockingLockupResponse_unlockingLockup, value) { return } } @@ -3427,8 +3427,8 @@ func (x *fastReflection_UnlockingLockupResponse) Range(f func(protoreflect.Field // a repeated field is populated if it is non-empty. func (x *fastReflection_UnlockingLockupResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup": - return x.Lockup != nil + case "sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup": + return x.UnlockingLockup != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockupResponse")) @@ -3445,8 +3445,8 @@ func (x *fastReflection_UnlockingLockupResponse) Has(fd protoreflect.FieldDescri // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_UnlockingLockupResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup": - x.Lockup = nil + case "sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup": + x.UnlockingLockup = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockupResponse")) @@ -3463,8 +3463,8 @@ func (x *fastReflection_UnlockingLockupResponse) Clear(fd protoreflect.FieldDesc // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_UnlockingLockupResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup": - value := x.Lockup + case "sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup": + value := x.UnlockingLockup return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { @@ -3486,8 +3486,8 @@ func (x *fastReflection_UnlockingLockupResponse) Get(descriptor protoreflect.Fie // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_UnlockingLockupResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup": - x.Lockup = value.Message().Interface().(*Lockup) + case "sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup": + x.UnlockingLockup = value.Message().Interface().(*UnlockingLockup) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockupResponse")) @@ -3508,11 +3508,11 @@ func (x *fastReflection_UnlockingLockupResponse) Set(fd protoreflect.FieldDescri // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_UnlockingLockupResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup": - if x.Lockup == nil { - x.Lockup = new(Lockup) + case "sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup": + if x.UnlockingLockup == nil { + x.UnlockingLockup = new(UnlockingLockup) } - return protoreflect.ValueOfMessage(x.Lockup.ProtoReflect()) + return protoreflect.ValueOfMessage(x.UnlockingLockup.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.UnlockingLockupResponse")) @@ -3526,8 +3526,8 @@ func (x *fastReflection_UnlockingLockupResponse) Mutable(fd protoreflect.FieldDe // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_UnlockingLockupResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup": - m := new(Lockup) + case "sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup": + m := new(UnlockingLockup) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -3598,8 +3598,8 @@ func (x *fastReflection_UnlockingLockupResponse) ProtoMethods() *protoiface.Meth var n int var l int _ = l - if x.Lockup != nil { - l = options.Size(x.Lockup) + if x.UnlockingLockup != nil { + l = options.Size(x.UnlockingLockup) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -3631,8 +3631,8 @@ func (x *fastReflection_UnlockingLockupResponse) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Lockup != nil { - encoded, err := options.Marshal(x.Lockup) + if x.UnlockingLockup != nil { + encoded, err := options.Marshal(x.UnlockingLockup) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3696,7 +3696,7 @@ func (x *fastReflection_UnlockingLockupResponse) ProtoMethods() *protoiface.Meth switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lockup", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnlockingLockup", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3723,10 +3723,10 @@ func (x *fastReflection_UnlockingLockupResponse) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Lockup == nil { - x.Lockup = &Lockup{} + if x.UnlockingLockup == nil { + x.UnlockingLockup = &UnlockingLockup{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Lockup); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnlockingLockup); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -4267,7 +4267,7 @@ func (x *fastReflection_UnlockingLockupsRequest) ProtoMethods() *protoiface.Meth var _ protoreflect.List = (*_UnlockingLockupsResponse_1_list)(nil) type _UnlockingLockupsResponse_1_list struct { - list *[]*Lockup + list *[]*UnlockingLockup } func (x *_UnlockingLockupsResponse_1_list) Len() int { @@ -4283,18 +4283,18 @@ func (x *_UnlockingLockupsResponse_1_list) Get(i int) protoreflect.Value { func (x *_UnlockingLockupsResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Lockup) + concreteValue := valueUnwrapped.Interface().(*UnlockingLockup) (*x.list)[i] = concreteValue } func (x *_UnlockingLockupsResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Lockup) + concreteValue := valueUnwrapped.Interface().(*UnlockingLockup) *x.list = append(*x.list, concreteValue) } func (x *_UnlockingLockupsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Lockup) + v := new(UnlockingLockup) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -4307,7 +4307,7 @@ func (x *_UnlockingLockupsResponse_1_list) Truncate(n int) { } func (x *_UnlockingLockupsResponse_1_list) NewElement() protoreflect.Value { - v := new(Lockup) + v := new(UnlockingLockup) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -4316,15 +4316,15 @@ func (x *_UnlockingLockupsResponse_1_list) IsValid() bool { } var ( - md_UnlockingLockupsResponse protoreflect.MessageDescriptor - fd_UnlockingLockupsResponse_lockup protoreflect.FieldDescriptor - fd_UnlockingLockupsResponse_pagination protoreflect.FieldDescriptor + md_UnlockingLockupsResponse protoreflect.MessageDescriptor + fd_UnlockingLockupsResponse_unlockingLockups protoreflect.FieldDescriptor + fd_UnlockingLockupsResponse_pagination protoreflect.FieldDescriptor ) func init() { file_sourcehub_tier_v1beta1_query_proto_init() md_UnlockingLockupsResponse = File_sourcehub_tier_v1beta1_query_proto.Messages().ByName("UnlockingLockupsResponse") - fd_UnlockingLockupsResponse_lockup = md_UnlockingLockupsResponse.Fields().ByName("lockup") + fd_UnlockingLockupsResponse_unlockingLockups = md_UnlockingLockupsResponse.Fields().ByName("unlockingLockups") fd_UnlockingLockupsResponse_pagination = md_UnlockingLockupsResponse.Fields().ByName("pagination") } @@ -4393,9 +4393,9 @@ func (x *fastReflection_UnlockingLockupsResponse) Interface() protoreflect.Proto // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_UnlockingLockupsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Lockup) != 0 { - value := protoreflect.ValueOfList(&_UnlockingLockupsResponse_1_list{list: &x.Lockup}) - if !f(fd_UnlockingLockupsResponse_lockup, value) { + if len(x.UnlockingLockups) != 0 { + value := protoreflect.ValueOfList(&_UnlockingLockupsResponse_1_list{list: &x.UnlockingLockups}) + if !f(fd_UnlockingLockupsResponse_unlockingLockups, value) { return } } @@ -4420,8 +4420,8 @@ func (x *fastReflection_UnlockingLockupsResponse) Range(f func(protoreflect.Fiel // a repeated field is populated if it is non-empty. func (x *fastReflection_UnlockingLockupsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup": - return len(x.Lockup) != 0 + case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups": + return len(x.UnlockingLockups) != 0 case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination": return x.Pagination != nil default: @@ -4440,8 +4440,8 @@ func (x *fastReflection_UnlockingLockupsResponse) Has(fd protoreflect.FieldDescr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_UnlockingLockupsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup": - x.Lockup = nil + case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups": + x.UnlockingLockups = nil case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination": x.Pagination = nil default: @@ -4460,11 +4460,11 @@ func (x *fastReflection_UnlockingLockupsResponse) Clear(fd protoreflect.FieldDes // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_UnlockingLockupsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup": - if len(x.Lockup) == 0 { + case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups": + if len(x.UnlockingLockups) == 0 { return protoreflect.ValueOfList(&_UnlockingLockupsResponse_1_list{}) } - listValue := &_UnlockingLockupsResponse_1_list{list: &x.Lockup} + listValue := &_UnlockingLockupsResponse_1_list{list: &x.UnlockingLockups} return protoreflect.ValueOfList(listValue) case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination": value := x.Pagination @@ -4489,10 +4489,10 @@ func (x *fastReflection_UnlockingLockupsResponse) Get(descriptor protoreflect.Fi // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_UnlockingLockupsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup": + case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups": lv := value.List() clv := lv.(*_UnlockingLockupsResponse_1_list) - x.Lockup = *clv.list + x.UnlockingLockups = *clv.list case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: @@ -4515,11 +4515,11 @@ func (x *fastReflection_UnlockingLockupsResponse) Set(fd protoreflect.FieldDescr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_UnlockingLockupsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup": - if x.Lockup == nil { - x.Lockup = []*Lockup{} + case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups": + if x.UnlockingLockups == nil { + x.UnlockingLockups = []*UnlockingLockup{} } - value := &_UnlockingLockupsResponse_1_list{list: &x.Lockup} + value := &_UnlockingLockupsResponse_1_list{list: &x.UnlockingLockups} return protoreflect.ValueOfList(value) case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination": if x.Pagination == nil { @@ -4539,8 +4539,8 @@ func (x *fastReflection_UnlockingLockupsResponse) Mutable(fd protoreflect.FieldD // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_UnlockingLockupsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup": - list := []*Lockup{} + case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups": + list := []*UnlockingLockup{} return protoreflect.ValueOfList(&_UnlockingLockupsResponse_1_list{list: &list}) case "sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination": m := new(v1beta1.PageResponse) @@ -4614,8 +4614,8 @@ func (x *fastReflection_UnlockingLockupsResponse) ProtoMethods() *protoiface.Met var n int var l int _ = l - if len(x.Lockup) > 0 { - for _, e := range x.Lockup { + if len(x.UnlockingLockups) > 0 { + for _, e := range x.UnlockingLockups { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -4667,9 +4667,9 @@ func (x *fastReflection_UnlockingLockupsResponse) ProtoMethods() *protoiface.Met i-- dAtA[i] = 0x12 } - if len(x.Lockup) > 0 { - for iNdEx := len(x.Lockup) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Lockup[iNdEx]) + if len(x.UnlockingLockups) > 0 { + for iNdEx := len(x.UnlockingLockups) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UnlockingLockups[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4734,7 +4734,7 @@ func (x *fastReflection_UnlockingLockupsResponse) ProtoMethods() *protoiface.Met switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Lockup", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnlockingLockups", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4761,8 +4761,8 @@ func (x *fastReflection_UnlockingLockupsResponse) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Lockup = append(x.Lockup, &Lockup{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Lockup[len(x.Lockup)-1]); err != nil { + x.UnlockingLockups = append(x.UnlockingLockups, &UnlockingLockup{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnlockingLockups[len(x.UnlockingLockups)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -5044,7 +5044,7 @@ type LockupsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Lockup []*Lockup `protobuf:"bytes,1,rep,name=lockup,proto3" json:"lockup,omitempty"` + Lockups []*Lockup `protobuf:"bytes,1,rep,name=lockups,proto3" json:"lockups,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -5068,9 +5068,9 @@ func (*LockupsResponse) Descriptor() ([]byte, []int) { return file_sourcehub_tier_v1beta1_query_proto_rawDescGZIP(), []int{5} } -func (x *LockupsResponse) GetLockup() []*Lockup { +func (x *LockupsResponse) GetLockups() []*Lockup { if x != nil { - return x.Lockup + return x.Lockups } return nil } @@ -5140,7 +5140,7 @@ type UnlockingLockupResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Lockup *Lockup `protobuf:"bytes,1,opt,name=lockup,proto3" json:"lockup,omitempty"` + UnlockingLockup *UnlockingLockup `protobuf:"bytes,1,opt,name=unlockingLockup,proto3" json:"unlockingLockup,omitempty"` } func (x *UnlockingLockupResponse) Reset() { @@ -5163,9 +5163,9 @@ func (*UnlockingLockupResponse) Descriptor() ([]byte, []int) { return file_sourcehub_tier_v1beta1_query_proto_rawDescGZIP(), []int{7} } -func (x *UnlockingLockupResponse) GetLockup() *Lockup { +func (x *UnlockingLockupResponse) GetUnlockingLockup() *UnlockingLockup { if x != nil { - return x.Lockup + return x.UnlockingLockup } return nil } @@ -5220,8 +5220,8 @@ type UnlockingLockupsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Lockup []*Lockup `protobuf:"bytes,1,rep,name=lockup,proto3" json:"lockup,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + UnlockingLockups []*UnlockingLockup `protobuf:"bytes,1,rep,name=unlockingLockups,proto3" json:"unlockingLockups,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *UnlockingLockupsResponse) Reset() { @@ -5244,9 +5244,9 @@ func (*UnlockingLockupsResponse) Descriptor() ([]byte, []int) { return file_sourcehub_tier_v1beta1_query_proto_rawDescGZIP(), []int{9} } -func (x *UnlockingLockupsResponse) GetLockup() []*Lockup { +func (x *UnlockingLockupsResponse) GetUnlockingLockups() []*UnlockingLockup { if x != nil { - return x.Lockup + return x.UnlockingLockups } return nil } @@ -5303,119 +5303,123 @@ var file_sourcehub_tier_v1beta1_query_proto_rawDesc = []byte{ 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, 0x98, 0x01, 0x0a, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x0f, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3c, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 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, 0x9b, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x6c, 0x6f, - 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x57, 0x0a, 0x17, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, - 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3c, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x8e, - 0x01, 0x0a, 0x17, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, - 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 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, - 0xa1, 0x01, 0x0a, 0x18, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, - 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x06, - 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 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, 0x32, 0xd5, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x89, 0x01, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa7, 0x01, 0x0a, 0x06, 0x4c, 0x6f, - 0x63, 0x6b, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, - 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x6f, + 0x12, 0x3e, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, + 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 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, 0x9b, 0x01, 0x0a, 0x16, 0x55, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, + 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x72, 0x0a, 0x17, 0x55, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, + 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x2f, 0x7b, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, - 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x7d, 0x12, 0x96, 0x01, 0x0a, 0x07, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, - 0x26, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xc5, 0x01, 0x0a, - 0x0f, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, - 0x12, 0x2e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, - 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2f, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, - 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, - 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x10, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, - 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x6f, 0x75, 0x72, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, + 0x63, 0x6b, 0x75, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x6c, 0x6f, + 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x8e, 0x01, 0x0a, 0x17, + 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 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, 0xbe, 0x01, 0x0a, + 0x18, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x10, 0x75, 0x6e, 0x6c, + 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, + 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, + 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x10, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, + 0x6b, 0x75, 0x70, 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, 0x32, 0xd5, 0x06, + 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x89, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, + 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, + 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, + 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0xa7, 0x01, 0x0a, 0x06, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x25, + 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, + 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, + 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, + 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, + 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x96, 0x01, + 0x0a, 0x07, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x26, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, - 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x6f, 0x75, + 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x75, + 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x34, 0x12, 0x32, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, + 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x0f, 0x55, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x2e, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, - 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x75, 0x6e, - 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, - 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x42, 0xd7, 0x01, 0x0a, 0x1a, - 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x3b, 0x74, 0x69, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x53, 0x54, 0x58, 0xaa, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, - 0x54, 0x69, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, - 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x3a, 0x3a, 0x54, 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, + 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, + 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x75, 0x6e, 0x6c, + 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xb4, + 0x01, 0x0a, 0x10, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, + 0x75, 0x70, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, + 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6c, + 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, + 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, + 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, + 0x67, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x7d, 0x42, 0xd7, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, + 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x69, 0x65, 0x72, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x16, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x2e, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, + 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, + 0x02, 0x22, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, + 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, + 0x3a, 0x3a, 0x54, 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -5446,16 +5450,17 @@ var file_sourcehub_tier_v1beta1_query_proto_goTypes = []interface{}{ (*Lockup)(nil), // 11: sourcehub.tier.v1beta1.Lockup (*v1beta1.PageRequest)(nil), // 12: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 13: cosmos.base.query.v1beta1.PageResponse + (*UnlockingLockup)(nil), // 14: sourcehub.tier.v1beta1.UnlockingLockup } var file_sourcehub_tier_v1beta1_query_proto_depIdxs = []int32{ 10, // 0: sourcehub.tier.v1beta1.QueryParamsResponse.params:type_name -> sourcehub.tier.v1beta1.Params 11, // 1: sourcehub.tier.v1beta1.LockupResponse.lockup:type_name -> sourcehub.tier.v1beta1.Lockup 12, // 2: sourcehub.tier.v1beta1.LockupsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 11, // 3: sourcehub.tier.v1beta1.LockupsResponse.lockup:type_name -> sourcehub.tier.v1beta1.Lockup + 11, // 3: sourcehub.tier.v1beta1.LockupsResponse.lockups:type_name -> sourcehub.tier.v1beta1.Lockup 13, // 4: sourcehub.tier.v1beta1.LockupsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 11, // 5: sourcehub.tier.v1beta1.UnlockingLockupResponse.lockup:type_name -> sourcehub.tier.v1beta1.Lockup + 14, // 5: sourcehub.tier.v1beta1.UnlockingLockupResponse.unlockingLockup:type_name -> sourcehub.tier.v1beta1.UnlockingLockup 12, // 6: sourcehub.tier.v1beta1.UnlockingLockupsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 11, // 7: sourcehub.tier.v1beta1.UnlockingLockupsResponse.lockup:type_name -> sourcehub.tier.v1beta1.Lockup + 14, // 7: sourcehub.tier.v1beta1.UnlockingLockupsResponse.unlockingLockups:type_name -> sourcehub.tier.v1beta1.UnlockingLockup 13, // 8: sourcehub.tier.v1beta1.UnlockingLockupsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 0, // 9: sourcehub.tier.v1beta1.Query.Params:input_type -> sourcehub.tier.v1beta1.QueryParamsRequest 2, // 10: sourcehub.tier.v1beta1.Query.Lockup:input_type -> sourcehub.tier.v1beta1.LockupRequest diff --git a/api/sourcehub/tier/v1beta1/tx.pulsar.go b/api/sourcehub/tier/v1beta1/tx.pulsar.go index ae357569..b38c7fce 100644 --- a/api/sourcehub/tier/v1beta1/tx.pulsar.go +++ b/api/sourcehub/tier/v1beta1/tx.pulsar.go @@ -2357,13 +2357,17 @@ func (x *fastReflection_MsgUnlock) ProtoMethods() *protoiface.Methods { var ( md_MsgUnlockResponse protoreflect.MessageDescriptor + fd_MsgUnlockResponse_creation_height protoreflect.FieldDescriptor fd_MsgUnlockResponse_completion_time protoreflect.FieldDescriptor + fd_MsgUnlockResponse_unlock_time protoreflect.FieldDescriptor ) func init() { file_sourcehub_tier_v1beta1_tx_proto_init() md_MsgUnlockResponse = File_sourcehub_tier_v1beta1_tx_proto.Messages().ByName("MsgUnlockResponse") + fd_MsgUnlockResponse_creation_height = md_MsgUnlockResponse.Fields().ByName("creation_height") fd_MsgUnlockResponse_completion_time = md_MsgUnlockResponse.Fields().ByName("completion_time") + fd_MsgUnlockResponse_unlock_time = md_MsgUnlockResponse.Fields().ByName("unlock_time") } var _ protoreflect.Message = (*fastReflection_MsgUnlockResponse)(nil) @@ -2431,12 +2435,24 @@ func (x *fastReflection_MsgUnlockResponse) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgUnlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CreationHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.CreationHeight) + if !f(fd_MsgUnlockResponse_creation_height, value) { + return + } + } if x.CompletionTime != nil { value := protoreflect.ValueOfMessage(x.CompletionTime.ProtoReflect()) if !f(fd_MsgUnlockResponse_completion_time, value) { return } } + if x.UnlockTime != nil { + value := protoreflect.ValueOfMessage(x.UnlockTime.ProtoReflect()) + if !f(fd_MsgUnlockResponse_unlock_time, value) { + return + } + } } // Has reports whether a field is populated. @@ -2452,8 +2468,12 @@ func (x *fastReflection_MsgUnlockResponse) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUnlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "sourcehub.tier.v1beta1.MsgUnlockResponse.creation_height": + return x.CreationHeight != int64(0) case "sourcehub.tier.v1beta1.MsgUnlockResponse.completion_time": return x.CompletionTime != nil + case "sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time": + return x.UnlockTime != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.MsgUnlockResponse")) @@ -2470,8 +2490,12 @@ func (x *fastReflection_MsgUnlockResponse) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUnlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "sourcehub.tier.v1beta1.MsgUnlockResponse.creation_height": + x.CreationHeight = int64(0) case "sourcehub.tier.v1beta1.MsgUnlockResponse.completion_time": x.CompletionTime = nil + case "sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time": + x.UnlockTime = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.MsgUnlockResponse")) @@ -2488,9 +2512,15 @@ func (x *fastReflection_MsgUnlockResponse) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUnlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "sourcehub.tier.v1beta1.MsgUnlockResponse.creation_height": + value := x.CreationHeight + return protoreflect.ValueOfInt64(value) case "sourcehub.tier.v1beta1.MsgUnlockResponse.completion_time": value := x.CompletionTime return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time": + value := x.UnlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.MsgUnlockResponse")) @@ -2511,8 +2541,12 @@ func (x *fastReflection_MsgUnlockResponse) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUnlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "sourcehub.tier.v1beta1.MsgUnlockResponse.creation_height": + x.CreationHeight = value.Int() case "sourcehub.tier.v1beta1.MsgUnlockResponse.completion_time": x.CompletionTime = value.Message().Interface().(*timestamppb.Timestamp) + case "sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time": + x.UnlockTime = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.MsgUnlockResponse")) @@ -2538,6 +2572,13 @@ func (x *fastReflection_MsgUnlockResponse) Mutable(fd protoreflect.FieldDescript x.CompletionTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.CompletionTime.ProtoReflect()) + case "sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time": + if x.UnlockTime == nil { + x.UnlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.UnlockTime.ProtoReflect()) + case "sourcehub.tier.v1beta1.MsgUnlockResponse.creation_height": + panic(fmt.Errorf("field creation_height of message sourcehub.tier.v1beta1.MsgUnlockResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.MsgUnlockResponse")) @@ -2551,9 +2592,14 @@ func (x *fastReflection_MsgUnlockResponse) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUnlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "sourcehub.tier.v1beta1.MsgUnlockResponse.creation_height": + return protoreflect.ValueOfInt64(int64(0)) case "sourcehub.tier.v1beta1.MsgUnlockResponse.completion_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: sourcehub.tier.v1beta1.MsgUnlockResponse")) @@ -2623,10 +2669,17 @@ func (x *fastReflection_MsgUnlockResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + if x.CreationHeight != 0 { + n += 1 + runtime.Sov(uint64(x.CreationHeight)) + } if x.CompletionTime != nil { l = options.Size(x.CompletionTime) n += 1 + l + runtime.Sov(uint64(l)) } + if x.UnlockTime != nil { + l = options.Size(x.UnlockTime) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2656,6 +2709,20 @@ func (x *fastReflection_MsgUnlockResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.UnlockTime != nil { + encoded, err := options.Marshal(x.UnlockTime) + 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.CompletionTime != nil { encoded, err := options.Marshal(x.CompletionTime) if err != nil { @@ -2668,7 +2735,12 @@ func (x *fastReflection_MsgUnlockResponse) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if x.CreationHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CreationHeight)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -2720,6 +2792,25 @@ func (x *fastReflection_MsgUnlockResponse) ProtoMethods() *protoiface.Methods { } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreationHeight", wireType) + } + x.CreationHeight = 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.CreationHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) } @@ -2755,6 +2846,42 @@ func (x *fastReflection_MsgUnlockResponse) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnlockTime", 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.UnlockTime == nil { + x.UnlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnlockTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5043,7 +5170,9 @@ type MsgUnlockResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CompletionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` + CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` + CompletionTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` + UnlockTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"` } func (x *MsgUnlockResponse) Reset() { @@ -5066,6 +5195,13 @@ func (*MsgUnlockResponse) Descriptor() ([]byte, []int) { return file_sourcehub_tier_v1beta1_tx_proto_rawDescGZIP(), []int{5} } +func (x *MsgUnlockResponse) GetCreationHeight() int64 { + if x != nil { + return x.CreationHeight + } + return 0 +} + func (x *MsgUnlockResponse) GetCompletionTime() *timestamppb.Timestamp { if x != nil { return x.CompletionTime @@ -5073,6 +5209,13 @@ func (x *MsgUnlockResponse) GetCompletionTime() *timestamppb.Timestamp { return nil } +func (x *MsgUnlockResponse) GetUnlockTime() *timestamppb.Timestamp { + if x != nil { + return x.UnlockTime + } + return nil +} + // MsgRedelegate is the Msg/Redelegate request type. type MsgRedelegate struct { state protoimpl.MessageState @@ -5322,108 +5465,116 @@ var file_sourcehub_tier_v1beta1_tx_proto_rawDesc = []byte{ 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x3a, 0x16, 0x82, 0xe7, 0xb0, 0x2a, 0x11, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x67, - 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, - 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xd8, 0x02, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 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, 0x10, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x55, 0x0a, 0x15, 0x73, 0x72, 0x63, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x13, 0x73, 0x72, 0x63, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x64, 0x73, 0x74, 0x5f, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x64, 0x73, 0x74, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x04, 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, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x3a, 0x16, 0x82, 0xe7, 0xb0, 0x2a, - 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x22, 0x6b, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x63, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, - 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, - 0xa3, 0x02, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, - 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 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, 0x10, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, - 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x03, 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, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, - 0x74, 0x61, 0x6b, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x16, 0x82, - 0xe7, 0xb0, 0x2a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xf7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x68, 0x0a, 0x0c, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2f, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x04, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x1f, 0x2e, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x1a, 0x27, - 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x06, 0x55, 0x6e, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x21, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, - 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x29, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x62, 0x0a, 0x0a, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x25, 0x2e, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x1a, 0x2d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, + 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xdc, + 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x52, 0x0a, + 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xd8, 0x02, + 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, + 0x45, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 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, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x15, 0x73, 0x72, 0x63, 0x5f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x73, 0x72, 0x63, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, + 0x15, 0x64, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, + 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x13, 0x64, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x04, 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, 0x09, + 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, + 0x3a, 0x16, 0x82, 0xe7, 0xb0, 0x2a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6b, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xa3, 0x02, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x45, 0x0a, 0x11, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 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, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, + 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x03, 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, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x3a, 0x16, 0x82, 0xe7, 0xb0, 0x2a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, + 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf7, 0x03, 0x0a, 0x03, 0x4d, 0x73, + 0x67, 0x12, 0x68, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2f, 0x2e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x04, 0x4c, + 0x6f, 0x63, 0x6b, 0x12, 0x1f, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, + 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x4c, 0x6f, 0x63, 0x6b, 0x1a, 0x27, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, - 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, - 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, - 0x6e, 0x67, 0x1a, 0x32, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, - 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xd4, 0x01, - 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, - 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x3b, 0x74, 0x69, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x53, - 0x54, 0x58, 0xaa, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x54, - 0x69, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, - 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x68, 0x75, 0x62, 0x3a, 0x3a, 0x54, 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, + 0x06, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x29, 0x2e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0a, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x12, 0x25, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, + 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x1a, 0x2d, 0x2e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0f, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x2e, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, + 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x1a, 0x32, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, + 0xb0, 0x2a, 0x01, 0x42, 0xd4, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x69, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x68, 0x75, 0x62, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0xca, 0x02, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, + 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x5c, 0x54, 0x69, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x18, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x68, 0x75, 0x62, 0x3a, 0x3a, 0x54, 0x69, 0x65, + 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -5459,24 +5610,25 @@ var file_sourcehub_tier_v1beta1_tx_proto_depIdxs = []int32{ 11, // 1: sourcehub.tier.v1beta1.MsgLock.stake:type_name -> cosmos.base.v1beta1.Coin 11, // 2: sourcehub.tier.v1beta1.MsgUnlock.stake:type_name -> cosmos.base.v1beta1.Coin 12, // 3: sourcehub.tier.v1beta1.MsgUnlockResponse.completion_time:type_name -> google.protobuf.Timestamp - 11, // 4: sourcehub.tier.v1beta1.MsgRedelegate.stake:type_name -> cosmos.base.v1beta1.Coin - 12, // 5: sourcehub.tier.v1beta1.MsgRedelegateResponse.completion_time:type_name -> google.protobuf.Timestamp - 11, // 6: sourcehub.tier.v1beta1.MsgCancelUnlocking.stake:type_name -> cosmos.base.v1beta1.Coin - 0, // 7: sourcehub.tier.v1beta1.Msg.UpdateParams:input_type -> sourcehub.tier.v1beta1.MsgUpdateParams - 2, // 8: sourcehub.tier.v1beta1.Msg.Lock:input_type -> sourcehub.tier.v1beta1.MsgLock - 4, // 9: sourcehub.tier.v1beta1.Msg.Unlock:input_type -> sourcehub.tier.v1beta1.MsgUnlock - 6, // 10: sourcehub.tier.v1beta1.Msg.Redelegate:input_type -> sourcehub.tier.v1beta1.MsgRedelegate - 8, // 11: sourcehub.tier.v1beta1.Msg.CancelUnlocking:input_type -> sourcehub.tier.v1beta1.MsgCancelUnlocking - 1, // 12: sourcehub.tier.v1beta1.Msg.UpdateParams:output_type -> sourcehub.tier.v1beta1.MsgUpdateParamsResponse - 3, // 13: sourcehub.tier.v1beta1.Msg.Lock:output_type -> sourcehub.tier.v1beta1.MsgLockResponse - 5, // 14: sourcehub.tier.v1beta1.Msg.Unlock:output_type -> sourcehub.tier.v1beta1.MsgUnlockResponse - 7, // 15: sourcehub.tier.v1beta1.Msg.Redelegate:output_type -> sourcehub.tier.v1beta1.MsgRedelegateResponse - 9, // 16: sourcehub.tier.v1beta1.Msg.CancelUnlocking:output_type -> sourcehub.tier.v1beta1.MsgCancelUnlockingResponse - 12, // [12:17] is the sub-list for method output_type - 7, // [7:12] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 12, // 4: sourcehub.tier.v1beta1.MsgUnlockResponse.unlock_time:type_name -> google.protobuf.Timestamp + 11, // 5: sourcehub.tier.v1beta1.MsgRedelegate.stake:type_name -> cosmos.base.v1beta1.Coin + 12, // 6: sourcehub.tier.v1beta1.MsgRedelegateResponse.completion_time:type_name -> google.protobuf.Timestamp + 11, // 7: sourcehub.tier.v1beta1.MsgCancelUnlocking.stake:type_name -> cosmos.base.v1beta1.Coin + 0, // 8: sourcehub.tier.v1beta1.Msg.UpdateParams:input_type -> sourcehub.tier.v1beta1.MsgUpdateParams + 2, // 9: sourcehub.tier.v1beta1.Msg.Lock:input_type -> sourcehub.tier.v1beta1.MsgLock + 4, // 10: sourcehub.tier.v1beta1.Msg.Unlock:input_type -> sourcehub.tier.v1beta1.MsgUnlock + 6, // 11: sourcehub.tier.v1beta1.Msg.Redelegate:input_type -> sourcehub.tier.v1beta1.MsgRedelegate + 8, // 12: sourcehub.tier.v1beta1.Msg.CancelUnlocking:input_type -> sourcehub.tier.v1beta1.MsgCancelUnlocking + 1, // 13: sourcehub.tier.v1beta1.Msg.UpdateParams:output_type -> sourcehub.tier.v1beta1.MsgUpdateParamsResponse + 3, // 14: sourcehub.tier.v1beta1.Msg.Lock:output_type -> sourcehub.tier.v1beta1.MsgLockResponse + 5, // 15: sourcehub.tier.v1beta1.Msg.Unlock:output_type -> sourcehub.tier.v1beta1.MsgUnlockResponse + 7, // 16: sourcehub.tier.v1beta1.Msg.Redelegate:output_type -> sourcehub.tier.v1beta1.MsgRedelegateResponse + 9, // 17: sourcehub.tier.v1beta1.Msg.CancelUnlocking:output_type -> sourcehub.tier.v1beta1.MsgCancelUnlockingResponse + 13, // [13:18] is the sub-list for method output_type + 8, // [8:13] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_sourcehub_tier_v1beta1_tx_proto_init() } diff --git a/proto/sourcehub/tier/v1beta1/genesis.proto b/proto/sourcehub/tier/v1beta1/genesis.proto index f49ca1e7..e91aa729 100644 --- a/proto/sourcehub/tier/v1beta1/genesis.proto +++ b/proto/sourcehub/tier/v1beta1/genesis.proto @@ -19,4 +19,8 @@ message GenesisState { (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + repeated UnlockingLockup unlockingLockups = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } diff --git a/proto/sourcehub/tier/v1beta1/lockup.proto b/proto/sourcehub/tier/v1beta1/lockup.proto index 9e0c188c..880e38de 100644 --- a/proto/sourcehub/tier/v1beta1/lockup.proto +++ b/proto/sourcehub/tier/v1beta1/lockup.proto @@ -1,13 +1,14 @@ syntax = "proto3"; package sourcehub.tier.v1beta1; +import "amino/amino.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/sourcenetwork/sourcehub/x/tier/types"; -// Lockup tracks the locked and unlocking stake of a delegator. +// Lockup tracks the locked stake of a delegator. message Lockup { string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; @@ -16,15 +17,31 @@ message Lockup { (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false ]; +} - // The following fields are only used for unlocking lockups. - // - // The height at which the lockup was created. - int64 creation_height = 4; +// UnlockingLockup tracks the unlocking stake of a delegator. +message UnlockingLockup { + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + int64 creation_height = 3; + + string amount = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; // The time at which the stake undelegation will be completed. - google.protobuf.Timestamp unbond_time = 5 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp completion_time = 5 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.stdtime) = true + ]; - // The time at which the stake unlocking will be completed. - google.protobuf.Timestamp unlock_time = 6 [(gogoproto.stdtime) = true]; + // The time after which the unlocking lockup can be completed. + google.protobuf.Timestamp unlock_time = 6 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.stdtime) = true + ]; } diff --git a/proto/sourcehub/tier/v1beta1/query.proto b/proto/sourcehub/tier/v1beta1/query.proto index 6b0752ee..9bab5540 100644 --- a/proto/sourcehub/tier/v1beta1/query.proto +++ b/proto/sourcehub/tier/v1beta1/query.proto @@ -69,7 +69,7 @@ message LockupsRequest { // LockupsResponse is the response type for the Query/Lockups RPC method. message LockupsResponse { - repeated Lockup lockup = 1 [(gogoproto.nullable) = false]; + repeated Lockup lockups = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -82,7 +82,7 @@ message UnlockingLockupRequest { // UnlockingLockupResponse is the response type for the Query/UnlockingLockup RPC method. message UnlockingLockupResponse { - Lockup lockup = 1 [(gogoproto.nullable) = false]; + UnlockingLockup unlockingLockup = 1 [(gogoproto.nullable) = false]; } // UnlockingLockupsRequest is the request type for the Query/UnlockingLockups RPC method. @@ -93,6 +93,6 @@ message UnlockingLockupsRequest { // UnlockingLockupsResponse is the response type for the Query/UnlockingLockups RPC method. message UnlockingLockupsResponse { - repeated Lockup lockup = 1 [(gogoproto.nullable) = false]; + repeated UnlockingLockup unlockingLockups = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/sourcehub/tier/v1beta1/tx.proto b/proto/sourcehub/tier/v1beta1/tx.proto index c85bf595..6e1de68a 100644 --- a/proto/sourcehub/tier/v1beta1/tx.proto +++ b/proto/sourcehub/tier/v1beta1/tx.proto @@ -80,7 +80,13 @@ message MsgUnlock { // MsgUnlockResponse defines the response structure for executing a MsgUnlock message. message MsgUnlockResponse { - google.protobuf.Timestamp completion_time = 1 [ + int64 creation_height = 1; + google.protobuf.Timestamp completion_time = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.stdtime) = true + ]; + google.protobuf.Timestamp unlock_time = 3 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true diff --git a/x/tier/types/genesis.pb.go b/x/tier/types/genesis.pb.go index 511770ae..7515eafe 100644 --- a/x/tier/types/genesis.pb.go +++ b/x/tier/types/genesis.pb.go @@ -27,8 +27,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the tier module's genesis state. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - Lockups []Lockup `protobuf:"bytes,2,rep,name=lockups,proto3" json:"lockups"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + Lockups []Lockup `protobuf:"bytes,2,rep,name=lockups,proto3" json:"lockups"` + UnlockingLockups []UnlockingLockup `protobuf:"bytes,3,rep,name=unlockingLockups,proto3" json:"unlockingLockups"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -78,6 +79,13 @@ func (m *GenesisState) GetLockups() []Lockup { return nil } +func (m *GenesisState) GetUnlockingLockups() []UnlockingLockup { + if m != nil { + return m.UnlockingLockups + } + return nil +} + func init() { proto.RegisterType((*GenesisState)(nil), "sourcehub.tier.v1beta1.GenesisState") } @@ -87,23 +95,25 @@ func init() { } var fileDescriptor_6b6509b08f7a16c3 = []byte{ - // 250 bytes of a gzipped FileDescriptorProto + // 278 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0xcd, 0x28, 0x4d, 0xd2, 0x2f, 0xc9, 0x4c, 0x2d, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x83, 0xab, 0xd2, 0x03, 0xa9, 0xd2, 0x83, 0xaa, 0x92, 0x12, 0x4c, 0xcc, 0xcd, 0xcc, 0xcb, 0xd7, 0x07, 0x93, 0x10, 0xa5, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0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x01, 0x00, 0x00, + 0x0a, 0xcc, 0xf8, 0xcc, 0xf0, 0x01, 0x2b, 0x43, 0x36, 0x03, 0xa6, 0x53, 0x28, 0x8e, 0x4b, 0xa0, + 0x34, 0x0f, 0xc4, 0xc9, 0xcc, 0x4b, 0xf7, 0x81, 0x9a, 0xc6, 0x0c, 0x36, 0x4d, 0x1d, 0x97, 0x69, + 0xa1, 0xa8, 0xea, 0x91, 0x8d, 0xc5, 0x30, 0xcb, 0xc9, 0xf3, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, + 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, + 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, 0x40, 0x66, 0x27, 0xe7, 0xe7, 0xea, 0x43, 0x6c, + 0xca, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x47, 0x04, 0x68, 0x05, 0x24, 0x48, 0x4b, 0x2a, + 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x41, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x69, 0xfe, + 0x47, 0x7c, 0xfd, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -126,6 +136,20 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.UnlockingLockups) > 0 { + for iNdEx := len(m.UnlockingLockups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnlockingLockups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } if len(m.Lockups) > 0 { for iNdEx := len(m.Lockups) - 1; iNdEx >= 0; iNdEx-- { { @@ -178,6 +202,12 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.UnlockingLockups) > 0 { + for _, e := range m.UnlockingLockups { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -283,6 +313,40 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnlockingLockups", 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.UnlockingLockups = append(m.UnlockingLockups, UnlockingLockup{}) + if err := m.UnlockingLockups[len(m.UnlockingLockups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/tier/types/lockup.pb.go b/x/tier/types/lockup.pb.go index 5bce5bff..d37a910d 100644 --- a/x/tier/types/lockup.pb.go +++ b/x/tier/types/lockup.pb.go @@ -7,6 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" _ "github.com/cosmos/gogoproto/types" @@ -29,19 +30,11 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// Lockup tracks the locked and unlocking stake of a delegator. +// Lockup tracks the locked stake of a delegator. type Lockup struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` - // The following fields are only used for unlocking lockups. - // - // The height at which the lockup was created. - CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` - // The time at which the stake undelegation will be completed. - UnbondTime *time.Time `protobuf:"bytes,5,opt,name=unbond_time,json=unbondTime,proto3,stdtime" json:"unbond_time,omitempty"` - // The time at which the stake unlocking will be completed. - UnlockTime *time.Time `protobuf:"bytes,6,opt,name=unlock_time,json=unlockTime,proto3,stdtime" json:"unlock_time,omitempty"` } func (m *Lockup) Reset() { *m = Lockup{} } @@ -91,29 +84,89 @@ func (m *Lockup) GetValidatorAddress() string { return "" } -func (m *Lockup) GetCreationHeight() int64 { +// UnlockingLockup tracks the unlocking stake of a delegator. +type UnlockingLockup struct { + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + CreationHeight int64 `protobuf:"varint,3,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // The time at which the stake undelegation will be completed. + CompletionTime time.Time `protobuf:"bytes,5,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` + // The time after which the unlocking lockup can be completed. + UnlockTime time.Time `protobuf:"bytes,6,opt,name=unlock_time,json=unlockTime,proto3,stdtime" json:"unlock_time"` +} + +func (m *UnlockingLockup) Reset() { *m = UnlockingLockup{} } +func (m *UnlockingLockup) String() string { return proto.CompactTextString(m) } +func (*UnlockingLockup) ProtoMessage() {} +func (*UnlockingLockup) Descriptor() ([]byte, []int) { + return fileDescriptor_2e0e6f58f533fc52, []int{1} +} +func (m *UnlockingLockup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnlockingLockup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UnlockingLockup.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 *UnlockingLockup) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnlockingLockup.Merge(m, src) +} +func (m *UnlockingLockup) XXX_Size() int { + return m.Size() +} +func (m *UnlockingLockup) XXX_DiscardUnknown() { + xxx_messageInfo_UnlockingLockup.DiscardUnknown(m) +} + +var xxx_messageInfo_UnlockingLockup proto.InternalMessageInfo + +func (m *UnlockingLockup) GetDelegatorAddress() string { + if m != nil { + return m.DelegatorAddress + } + return "" +} + +func (m *UnlockingLockup) GetValidatorAddress() string { + if m != nil { + return m.ValidatorAddress + } + return "" +} + +func (m *UnlockingLockup) GetCreationHeight() int64 { if m != nil { return m.CreationHeight } return 0 } -func (m *Lockup) GetUnbondTime() *time.Time { +func (m *UnlockingLockup) GetCompletionTime() time.Time { if m != nil { - return m.UnbondTime + return m.CompletionTime } - return nil + return time.Time{} } -func (m *Lockup) GetUnlockTime() *time.Time { +func (m *UnlockingLockup) GetUnlockTime() time.Time { if m != nil { return m.UnlockTime } - return nil + return time.Time{} } func init() { proto.RegisterType((*Lockup)(nil), "sourcehub.tier.v1beta1.Lockup") + proto.RegisterType((*UnlockingLockup)(nil), "sourcehub.tier.v1beta1.UnlockingLockup") } func init() { @@ -121,33 +174,36 @@ func init() { } var fileDescriptor_2e0e6f58f533fc52 = []byte{ - // 407 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0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, 0xc4, 0xaf, 0x60, 0xe7, 0xfc, 0xdf, 0x5d, 0x7d, 0x0b, 0x97, - 0x85, 0xdf, 0x97, 0xd2, 0xe5, 0x9d, 0xa6, 0xf0, 0xd5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, - 0x59, 0x99, 0xc1, 0x78, 0x02, 0x00, 0x00, + // 451 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x53, 0xcd, 0x8a, 0x13, 0x41, + 0x10, 0x4e, 0x1b, 0x0d, 0xd8, 0x8b, 0x1b, 0x33, 0xac, 0x12, 0x03, 0x4e, 0xd6, 0xf5, 0xe0, 0xa2, + 0x64, 0x9a, 0xd5, 0x27, 0x30, 0x22, 0x18, 0x11, 0x0f, 0xe3, 0xcf, 0xc1, 0x4b, 0xe8, 0xcc, 0xb4, + 0x9d, 0x26, 0x33, 0x5d, 0xa1, 0xbb, 0x27, 0xea, 0x5b, 0xec, 0x63, 0x78, 0xf4, 0x10, 0x7c, 0x86, + 0x3d, 0x2e, 0x39, 0x89, 0x87, 0x55, 0x12, 0xc1, 0xd7, 0x90, 0xfe, 0x99, 0x5d, 0xdd, 0x9b, 0x9e, + 0xbc, 0x0c, 0x53, 0x5f, 0x7d, 0xf5, 0x7d, 0x5d, 0x45, 0x15, 0xbe, 0xad, 0xa1, 0x52, 0x19, 0x9b, + 0x56, 0x13, 0x62, 0x04, 0x53, 0x64, 0x71, 0x30, 0x61, 0x86, 0x1e, 0x90, 0x02, 0xb2, 0x59, 0x35, + 0x4f, 0xe6, 0x0a, 0x0c, 0x44, 0xd7, 0x4f, 0x49, 0x89, 0x25, 0x25, 0x81, 0xd4, 0xeb, 0xd0, 0x52, + 0x48, 0x20, 0xee, 0xeb, 0xa9, 0xbd, 0x1b, 0x19, 0xe8, 0x12, 0xf4, 0xd8, 0x45, 0xc4, 0x07, 0x21, + 0xb5, 0xc3, 0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79, 0xc1, 0x9c, 0x9f, 0xdd, 0x8e, 0xee, 0xa5, + 0x5d, 0xb4, 0xbf, 0x75, 0xbf, 0x97, 0xf8, 0xd5, 0x49, 0xea, 0xd5, 0x49, 0x5e, 0xd6, 0xab, 0x33, + 0xbc, 0x62, 0x9d, 0x0e, 0xbf, 0xf5, 0xd1, 0xc7, 0x9f, 0x9f, 0xee, 0xa2, 0x74, 0xfb, 0x4c, 0xc1, + 0x72, 0xa2, 0xa7, 0x78, 0xab, 0x72, 0xb3, 0xf6, 0x7a, 0xad, 0xbf, 0xd5, 0xc3, 0xbe, 0xda, 0xe6, + 0x87, 0xa3, 0xa3, 0x75, 0x8c, 0x8e, 0xd7, 0x31, 0xfa, 0xbe, 0x8e, 0xd1, 0xe1, 0x26, 0x6e, 0x1c, + 0x6f, 0xe2, 0xc6, 0x97, 0x4d, 0xdc, 0x78, 0x43, 0xb8, 0x30, 0xf6, 0x66, 0x32, 0x28, 0x89, 0xbf, + 0x20, 0xc9, 0xcc, 0x3b, 0x50, 0x33, 0x72, 0x76, 0x74, 0xef, 0xfd, 0xd9, 0x99, 0x0f, 0x73, 0xa6, + 0x27, 0x2d, 0xe7, 0xfc, 0xe0, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0xb5, 0xd7, 0x34, 0x95, + 0x03, 0x00, 0x00, } func (m *Lockup) Marshal() (dAtA []byte, err error) { @@ -170,31 +226,69 @@ func (m *Lockup) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.UnlockTime != nil { - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.UnlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.UnlockTime):]) - if err1 != nil { - return 0, err1 + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err } - i -= n1 - i = encodeVarintLockup(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x32 + i = encodeVarintLockup(dAtA, i, uint64(size)) } - if m.UnbondTime != nil { - n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.UnbondTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.UnbondTime):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintLockup(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x1a + if len(m.ValidatorAddress) > 0 { + i -= len(m.ValidatorAddress) + copy(dAtA[i:], m.ValidatorAddress) + i = encodeVarintLockup(dAtA, i, uint64(len(m.ValidatorAddress))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x12 } - if m.CreationHeight != 0 { - i = encodeVarintLockup(dAtA, i, uint64(m.CreationHeight)) + if len(m.DelegatorAddress) > 0 { + i -= len(m.DelegatorAddress) + copy(dAtA[i:], m.DelegatorAddress) + i = encodeVarintLockup(dAtA, i, uint64(len(m.DelegatorAddress))) i-- - dAtA[i] = 0x20 + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnlockingLockup) 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 *UnlockingLockup) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UnlockingLockup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.UnlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UnlockTime):]) + if err1 != nil { + return 0, err1 } + i -= n1 + i = encodeVarintLockup(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x32 + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintLockup(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x2a { size := m.Amount.Size() i -= size @@ -204,7 +298,12 @@ func (m *Lockup) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintLockup(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 + if m.CreationHeight != 0 { + i = encodeVarintLockup(dAtA, i, uint64(m.CreationHeight)) + i-- + dAtA[i] = 0x18 + } if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) @@ -249,17 +348,32 @@ func (m *Lockup) Size() (n int) { } l = m.Amount.Size() n += 1 + l + sovLockup(uint64(l)) - if m.CreationHeight != 0 { - n += 1 + sovLockup(uint64(m.CreationHeight)) + return n +} + +func (m *UnlockingLockup) Size() (n int) { + if m == nil { + return 0 } - if m.UnbondTime != nil { - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.UnbondTime) + var l int + _ = l + l = len(m.DelegatorAddress) + if l > 0 { n += 1 + l + sovLockup(uint64(l)) } - if m.UnlockTime != nil { - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.UnlockTime) + l = len(m.ValidatorAddress) + if l > 0 { n += 1 + l + sovLockup(uint64(l)) } + if m.CreationHeight != 0 { + n += 1 + sovLockup(uint64(m.CreationHeight)) + } + l = m.Amount.Size() + n += 1 + l + sovLockup(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime) + n += 1 + l + sovLockup(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UnlockTime) + n += 1 + l + sovLockup(uint64(l)) return n } @@ -396,7 +510,121 @@ func (m *Lockup) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := skipLockup(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLockup + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnlockingLockup) 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 ErrIntOverflowLockup + } + 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: UnlockingLockup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnlockingLockup: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLockup + } + 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 ErrInvalidLengthLockup + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLockup + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLockup + } + 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 ErrInvalidLengthLockup + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLockup + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CreationHeight", wireType) } @@ -415,9 +643,43 @@ func (m *Lockup) Unmarshal(dAtA []byte) error { break } } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLockup + } + 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 ErrInvalidLengthLockup + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLockup + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -444,10 +706,7 @@ func (m *Lockup) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UnbondTime == nil { - m.UnbondTime = new(time.Time) - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.UnbondTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CompletionTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -480,10 +739,7 @@ func (m *Lockup) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UnlockTime == nil { - m.UnlockTime = new(time.Time) - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.UnlockTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.UnlockTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/tier/types/query.pb.go b/x/tier/types/query.pb.go index b4ec9355..5362e0c1 100644 --- a/x/tier/types/query.pb.go +++ b/x/tier/types/query.pb.go @@ -267,7 +267,7 @@ func (m *LockupsRequest) GetPagination() *query.PageRequest { // LockupsResponse is the response type for the Query/Lockups RPC method. type LockupsResponse struct { - Lockup []Lockup `protobuf:"bytes,1,rep,name=lockup,proto3" json:"lockup"` + Lockups []Lockup `protobuf:"bytes,1,rep,name=lockups,proto3" json:"lockups"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -304,9 +304,9 @@ func (m *LockupsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_LockupsResponse proto.InternalMessageInfo -func (m *LockupsResponse) GetLockup() []Lockup { +func (m *LockupsResponse) GetLockups() []Lockup { if m != nil { - return m.Lockup + return m.Lockups } return nil } @@ -381,7 +381,7 @@ func (m *UnlockingLockupRequest) GetCreationHeight() int64 { // UnlockingLockupResponse is the response type for the Query/UnlockingLockup RPC method. type UnlockingLockupResponse struct { - Lockup Lockup `protobuf:"bytes,1,opt,name=lockup,proto3" json:"lockup"` + UnlockingLockup UnlockingLockup `protobuf:"bytes,1,opt,name=unlockingLockup,proto3" json:"unlockingLockup"` } func (m *UnlockingLockupResponse) Reset() { *m = UnlockingLockupResponse{} } @@ -417,11 +417,11 @@ func (m *UnlockingLockupResponse) XXX_DiscardUnknown() { var xxx_messageInfo_UnlockingLockupResponse proto.InternalMessageInfo -func (m *UnlockingLockupResponse) GetLockup() Lockup { +func (m *UnlockingLockupResponse) GetUnlockingLockup() UnlockingLockup { if m != nil { - return m.Lockup + return m.UnlockingLockup } - return Lockup{} + return UnlockingLockup{} } // UnlockingLockupsRequest is the request type for the Query/UnlockingLockups RPC method. @@ -479,8 +479,8 @@ func (m *UnlockingLockupsRequest) GetPagination() *query.PageRequest { // UnlockingLockupsResponse is the response type for the Query/UnlockingLockups RPC method. type UnlockingLockupsResponse struct { - Lockup []Lockup `protobuf:"bytes,1,rep,name=lockup,proto3" json:"lockup"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + UnlockingLockups []UnlockingLockup `protobuf:"bytes,1,rep,name=unlockingLockups,proto3" json:"unlockingLockups"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *UnlockingLockupsResponse) Reset() { *m = UnlockingLockupsResponse{} } @@ -516,9 +516,9 @@ func (m *UnlockingLockupsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_UnlockingLockupsResponse proto.InternalMessageInfo -func (m *UnlockingLockupsResponse) GetLockup() []Lockup { +func (m *UnlockingLockupsResponse) GetUnlockingLockups() []UnlockingLockup { if m != nil { - return m.Lockup + return m.UnlockingLockups } return nil } @@ -548,49 +548,51 @@ func init() { } var fileDescriptor_f694a74eba313686 = []byte{ - // 668 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0x4f, 0x6b, 0x13, 0x4f, - 0x18, 0xc7, 0x33, 0xcd, 0xef, 0xb7, 0xd2, 0x29, 0x36, 0xed, 0x58, 0x6a, 0x08, 0xb2, 0x86, 0x15, - 0x93, 0x92, 0xc2, 0x8e, 0x8d, 0x8a, 0x20, 0x7a, 0x68, 0x0e, 0xb5, 0x45, 0x29, 0x76, 0x41, 0x14, - 0x2f, 0x65, 0x92, 0x0c, 0x9b, 0xa5, 0xc9, 0xce, 0x76, 0xff, 0x54, 0x4b, 0xe9, 0x45, 0xf0, 0xe0, - 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15, 0x7c, 0x6f, 0xab, 0xe0, 0x45, 0x47, 0x4d, 0xed, 0x77, 0xd4, 0xd4, 0xd7, 0x8e, 0x9a, - 0x7a, 0x88, 0x4d, 0xcb, 0x0f, 0x31, 0x6a, 0xac, 0x25, 0x43, 0xdb, 0xd4, 0x7f, 0xc4, 0xdc, 0x8d, - 0x43, 0x89, 0x1e, 0x8b, 0x54, 0xfe, 0xb6, 0x43, 0xbd, 0xaa, 0xc2, 0xff, 0x23, 0x5c, 0xfe, 0x15, - 0x00, 0x00, 0xff, 0xff, 0x26, 0xd9, 0xd5, 0x05, 0x1e, 0x09, 0x00, 0x00, + // 704 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0x5f, 0x4b, 0x14, 0x5f, + 0x18, 0xc7, 0xf7, 0xe8, 0xef, 0xb7, 0xe2, 0x23, 0xb9, 0x7a, 0x12, 0x13, 0x89, 0x49, 0x26, 0x72, + 0x45, 0x61, 0x4e, 0x6e, 0x45, 0x10, 0x15, 0xe8, 0x85, 0x29, 0x85, 0xe4, 0x40, 0xf4, 0xe7, 0x46, + 0xce, 0xee, 0x1e, 0xc6, 0xc1, 0xdd, 0x39, 0xe3, 0xfc, 0xb1, 0x44, 0xbc, 0x09, 0xba, 0xe8, 0x26, + 0x82, 0xa0, 0x8b, 0x7a, 0x01, 0x75, 0xd9, 0x45, 0xd7, 0xdd, 0x05, 0x5e, 0x0a, 0x11, 0x74, 0x15, + 0xa1, 0x41, 0x6f, 0x23, 0xe6, 0x9c, 0x33, 0xa3, 0xbb, 0xe3, 0x3a, 0xa3, 0x44, 0xdd, 0x2c, 0xc3, + 0x73, 0xbe, 0xcf, 0xf3, 0x7c, 0x9e, 0x67, 0xbe, 0x73, 0x58, 0xd0, 0x7d, 0x1e, 0x7a, 0x35, 0xb6, + 0x12, 0x56, 0x49, 0x60, 0x33, 0x8f, 0xac, 0x4f, 0x57,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x18, 0x35, 0xde, 0x54, 0xa5, 0x1d, 0x16, + 0x3c, 0xe6, 0xde, 0xea, 0x81, 0x46, 0x4f, 0x64, 0xab, 0x60, 0xc3, 0x65, 0x7e, 0xb5, 0x28, 0xfe, + 0x5d, 0x5c, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x25, 0x4c, 0x36, 0xd9, 0x58, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1027,10 +1029,10 @@ func (m *LockupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Lockup) > 0 { - for iNdEx := len(m.Lockup) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Lockups) > 0 { + for iNdEx := len(m.Lockups) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Lockup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Lockups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1107,7 +1109,7 @@ func (m *UnlockingLockupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) var l int _ = l { - size, err := m.Lockup.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.UnlockingLockup.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1193,10 +1195,10 @@ func (m *UnlockingLockupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if len(m.Lockup) > 0 { - for iNdEx := len(m.Lockup) - 1; iNdEx >= 0; iNdEx-- { + if len(m.UnlockingLockups) > 0 { + for iNdEx := len(m.UnlockingLockups) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Lockup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.UnlockingLockups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1292,8 +1294,8 @@ func (m *LockupsResponse) Size() (n int) { } var l int _ = l - if len(m.Lockup) > 0 { - for _, e := range m.Lockup { + if len(m.Lockups) > 0 { + for _, e := range m.Lockups { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -1331,7 +1333,7 @@ func (m *UnlockingLockupResponse) Size() (n int) { } var l int _ = l - l = m.Lockup.Size() + l = m.UnlockingLockup.Size() n += 1 + l + sovQuery(uint64(l)) return n } @@ -1359,8 +1361,8 @@ func (m *UnlockingLockupsResponse) Size() (n int) { } var l int _ = l - if len(m.Lockup) > 0 { - for _, e := range m.Lockup { + if len(m.UnlockingLockups) > 0 { + for _, e := range m.UnlockingLockups { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -1857,7 +1859,7 @@ func (m *LockupsResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lockup", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lockups", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1884,8 +1886,8 @@ func (m *LockupsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Lockup = append(m.Lockup, Lockup{}) - if err := m.Lockup[len(m.Lockup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Lockups = append(m.Lockups, Lockup{}) + if err := m.Lockups[len(m.Lockups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2110,7 +2112,7 @@ func (m *UnlockingLockupResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lockup", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnlockingLockup", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2137,7 +2139,7 @@ func (m *UnlockingLockupResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Lockup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.UnlockingLockup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2311,7 +2313,7 @@ func (m *UnlockingLockupsResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lockup", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnlockingLockups", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2338,8 +2340,8 @@ func (m *UnlockingLockupsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Lockup = append(m.Lockup, Lockup{}) - if err := m.Lockup[len(m.Lockup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.UnlockingLockups = append(m.UnlockingLockups, UnlockingLockup{}) + if err := m.UnlockingLockups[len(m.UnlockingLockups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/tier/types/tx.pb.go b/x/tier/types/tx.pb.go index 301c0e1a..5c10c648 100644 --- a/x/tier/types/tx.pb.go +++ b/x/tier/types/tx.pb.go @@ -290,7 +290,9 @@ func (m *MsgUnlock) GetStake() types.Coin { // MsgUnlockResponse defines the response structure for executing a MsgUnlock message. type MsgUnlockResponse struct { - CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` + CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` + CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` + UnlockTime time.Time `protobuf:"bytes,3,opt,name=unlock_time,json=unlockTime,proto3,stdtime" json:"unlock_time"` } func (m *MsgUnlockResponse) Reset() { *m = MsgUnlockResponse{} } @@ -326,6 +328,13 @@ func (m *MsgUnlockResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUnlockResponse proto.InternalMessageInfo +func (m *MsgUnlockResponse) GetCreationHeight() int64 { + if m != nil { + return m.CreationHeight + } + return 0 +} + func (m *MsgUnlockResponse) GetCompletionTime() time.Time { if m != nil { return m.CompletionTime @@ -333,6 +342,13 @@ func (m *MsgUnlockResponse) GetCompletionTime() time.Time { return time.Time{} } +func (m *MsgUnlockResponse) GetUnlockTime() time.Time { + if m != nil { + return m.UnlockTime + } + return time.Time{} +} + // MsgRedelegate is the Msg/Redelegate request type. type MsgRedelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` @@ -571,54 +587,56 @@ func init() { func init() { proto.RegisterFile("sourcehub/tier/v1beta1/tx.proto", fileDescriptor_a120ff6388a0dc08) } var fileDescriptor_a120ff6388a0dc08 = []byte{ - // 749 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0x3d, 0x4f, 0x1b, 0x4b, - 0x14, 0xf5, 0xda, 0xc0, 0x93, 0x87, 0x07, 0x7e, 0xde, 0xc7, 0x87, 0x59, 0xbd, 0xb7, 0x06, 0x47, - 0x11, 0xc4, 0x12, 0xbb, 0xc2, 0x28, 0x29, 0xe8, 0x30, 0x8a, 0x94, 0x48, 0x71, 0x84, 0x9c, 0x40, - 0x91, 0xc6, 0x1a, 0xaf, 0x27, 0xe3, 0x95, 0xbd, 0x3b, 0x9b, 0x9d, 0xb1, 0x03, 0x5d, 0x94, 0x32, - 0x15, 0xff, 0x21, 0x4d, 0x4a, 0x0a, 0xfe, 0x40, 0x3a, 0x4a, 0x44, 0x45, 0x95, 0x44, 0x50, 0xf0, - 0x07, 0xa2, 0xa4, 0x8d, 0x66, 0x76, 0x76, 0x0d, 0x0b, 0x36, 0x96, 0x42, 0xa4, 0x48, 0x69, 0xec, - 0x9d, 0x7b, 0xcf, 0x9c, 0x99, 0x73, 0xee, 0xdc, 0x19, 0x90, 0xa7, 0xa4, 0xe3, 0x5b, 0xa8, 0xd9, - 0xa9, 0x9b, 0xcc, 0x46, 0xbe, 0xd9, 0x5d, 0xa9, 0x23, 0x06, 0x57, 0x4c, 0xb6, 0x63, 0x78, 0x3e, - 0x61, 0x44, 0x9d, 0x89, 0x00, 0x06, 0x07, 0x18, 0x12, 0xa0, 0x65, 0xa1, 0x63, 0xbb, 0xc4, 0x14, - 0xbf, 0x01, 0x54, 0xd3, 0x2d, 0x42, 0x1d, 0x42, 0xcd, 0x3a, 0xa4, 0x28, 0x22, 0xb2, 0x88, 0xed, - 0xca, 0xfc, 0xac, 0xcc, 0x3b, 0x14, 0x9b, 0xdd, 0x15, 0xfe, 0x27, 0x13, 0x73, 0x41, 0xa2, 0x26, - 0x46, 0x66, 0x30, 0x90, 0xa9, 0x29, 0x4c, 0x30, 0x09, 0xe2, 0xfc, 0x4b, 0x46, 0xf3, 0x98, 0x10, - 0xdc, 0x46, 0xa6, 0x18, 0xd5, 0x3b, 0x2f, 0x4d, 0x66, 0x3b, 0x88, 0x32, 0xe8, 0x78, 0x12, 0x70, - 0xa7, 0x8f, 0x2c, 0x0f, 0xfa, 0xd0, 0x91, 0xdc, 0x85, 0x8f, 0x0a, 0xc8, 0x54, 0x28, 0xde, 0xf2, - 0x1a, 0x90, 0xa1, 0x4d, 0x91, 0x51, 0x1f, 0x80, 0x34, 0xec, 0xb0, 0x26, 0xf1, 0x6d, 0xb6, 0x9b, - 0x53, 0xe6, 0x95, 0xa5, 0x74, 0x39, 0x77, 0x7c, 0xb0, 0x3c, 0x25, 0x37, 0xb5, 0xde, 0x68, 0xf8, - 0x88, 0xd2, 0x67, 0xcc, 0xb7, 0x5d, 0x5c, 0xed, 0x41, 0xd5, 0x75, 0x30, 0x16, 0x70, 0xe7, 0x92, - 0xf3, 0xca, 0xd2, 0x78, 0x49, 0x37, 0xae, 0xf7, 0xcd, 0x08, 0xd6, 0x29, 0xa7, 0x0f, 0x3f, 0xe5, - 0x13, 0x1f, 0xce, 0xf7, 0x8b, 0x4a, 0x55, 0x4e, 0x5c,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 0xe1, 0x24, 0x09, 0x26, 0x2a, 0x14, 0x57, 0x91, 0xdc, 0x03, 0xba, 0x2d, 0x97, 0xb7, 0xc0, 0x34, - 0xf5, 0xad, 0xda, 0x4f, 0x38, 0xfd, 0x2f, 0xf5, 0xad, 0x78, 0x8a, 0xd3, 0x36, 0x28, 0xbb, 0x86, - 0x36, 0x35, 0x34, 0x6d, 0x83, 0xb2, 0xed, 0xbe, 0x35, 0x1c, 0xb9, 0xbd, 0x1a, 0xb6, 0xc0, 0xf4, - 0x25, 0x67, 0x7f, 0x69, 0x1d, 0xdf, 0x27, 0x81, 0x5a, 0xa1, 0x78, 0x03, 0xba, 0x16, 0x6a, 0x07, - 0xe7, 0xc6, 0x76, 0xf1, 0xef, 0xda, 0x32, 0xf7, 0x87, 0x6e, 0x99, 0x11, 0x2e, 0x5b, 0x3a, 0xad, - 0x2e, 0x82, 0x8c, 0xe5, 0x23, 0x28, 0x6c, 0x6b, 0x22, 0x1b, 0x37, 0x99, 0xa8, 0x57, 0xaa, 0x3a, - 0x19, 0x86, 0x1f, 0x89, 0x68, 0xdf, 0x92, 0xfc, 0x07, 0xb4, 0xab, 0x26, 0x85, 0x75, 0x29, 0x7d, - 0x4f, 0x81, 0x54, 0x85, 0x62, 0xb5, 0x09, 0xfe, 0xbe, 0xf4, 0xb4, 0x2c, 0xf6, 0x7b, 0x12, 0x62, - 0x17, 0xb8, 0x66, 0x0e, 0x09, 0x8c, 0x4e, 0xc2, 0x26, 0x18, 0x11, 0xb7, 0x7c, 0x7e, 0xc0, 0x44, - 0x0e, 0xd0, 0x16, 0x6f, 0x00, 0x44, 0x8c, 0xdb, 0x60, 0x4c, 0xde, 0x96, 0x0b, 0x83, 0x36, 0x23, - 0x20, 0xda, 0xbd, 0x1b, 0x21, 0x11, 0x6f, 0x1d, 0x80, 0x0b, 0x77, 0xc4, 0xdd, 0x01, 0x13, 0x7b, - 0x30, 0x6d, 0x79, 0x28, 0x58, 0xb4, 0xc6, 0x2b, 0x90, 0x89, 0x9f, 0xdf, 0xe2, 0x00, 0x86, 0x18, - 0x56, 0x2b, 0x0d, 0x8f, 0x0d, 0x97, 0xd4, 0x46, 0xdf, 0xf0, 0x6e, 0x2a, 0x3f, 0x3e, 0x3c, 0xd5, - 0x95, 0xa3, 0x53, 0x5d, 0xf9, 0x72, 0xaa, 0x2b, 0x7b, 0x67, 0x7a, 0xe2, 0xe8, 0x4c, 0x4f, 0x9c, - 0x9c, 0xe9, 0x89, 0x17, 0x26, 0xb6, 0x19, 0x27, 0xb4, 0x88, 0x63, 0x06, 0xf4, 0x2e, 0x62, 0xaf, - 0x89, 0xdf, 0x32, 0xaf, 0xbc, 0xf0, 0x6c, 0xd7, 0x43, 0xb4, 0x3e, 0x26, 0x7a, 0x77, 0xf5, 0x47, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x7e, 0xbd, 0x9a, 0xa0, 0x09, 0x00, 0x00, + // 774 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xcf, 0x4f, 0x13, 0x41, + 0x14, 0xee, 0xb6, 0x05, 0xd3, 0x41, 0xa8, 0x5d, 0xf9, 0x51, 0x36, 0xba, 0x85, 0x1a, 0x03, 0x36, + 0x61, 0x37, 0x40, 0xf4, 0xc0, 0x8d, 0x12, 0x13, 0x35, 0xd6, 0x90, 0x2a, 0x1c, 0xbc, 0x34, 0xdb, + 0xed, 0x38, 0xdd, 0xb4, 0xbb, 0x53, 0x77, 0xa6, 0x15, 0x6e, 0xc6, 0xa3, 0x27, 0xfe, 0x07, 0x2f, + 0x1e, 0x39, 0xf0, 0x0f, 0x78, 0xe3, 0x48, 0x38, 0x71, 0x30, 0x6a, 0xe0, 0xc0, 0x3f, 0x60, 0xf4, + 0x6a, 0xe6, 0x47, 0xb7, 0xb0, 0xb4, 0xa5, 0x06, 0x0e, 0x26, 0x5e, 0xda, 0xee, 0x7b, 0x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0xbb, 0x25, 0xd3, 0x67, 0x21, 0x03, 0x68, 0x73, 0x97, 0x00, 0x02, 0xc6, + 0x4d, 0x30, 0x2c, 0xdf, 0xd1, 0xb3, 0xfd, 0x8a, 0xe1, 0x10, 0xed, 0xc1, 0xa5, 0x90, 0x80, 0xb7, + 0x0c, 0xc0, 0x99, 0x77, 0xc4, 0xfd, 0x3e, 0x0b, 0x3b, 0x30, 0x6d, 0x61, 0x20, 0x58, 0xb0, 0xc7, + 0x5b, 0x90, 0x0c, 0xf7, 0x6f, 0xae, 0x0f, 0x43, 0x08, 0xab, 0x2d, 0x0d, 0x8e, 0x6d, 0x6f, 0xa9, + 0x0d, 0xbd, 0x67, 0xd3, 0x94, 0x7f, 0xba, 0x7f, 0xac, 0x2b, 0x07, 0xc7, 0xba, 0xf2, 0xe3, 0x58, + 0x57, 0x76, 0x4e, 0xf4, 0xc8, 0xc1, 0x89, 0x1e, 0x39, 0x3a, 0xd1, 0x23, 0xaf, 0x4d, 0xe4, 0x50, + 0x46, 0x68, 0x63, 0xd7, 0x14, 0xf4, 0x1e, 0xa4, 0xef, 0xb0, 0x5f, 0x33, 0x2f, 0xfc, 0xaf, 0xa0, + 0xdb, 0x0d, 0x48, 0xca, 0xc3, 0x7c, 0x76, 0x97, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x36, 0xc1, + 0x75, 0xae, 0x16, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1057,14 +1075,27 @@ func (m *MsgUnlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):]) + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.UnlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UnlockTime):]) if err4 != nil { return 0, err4 } i -= n4 i = encodeVarintTx(dAtA, i, uint64(n4)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):]) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintTx(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x12 + if m.CreationHeight != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CreationHeight)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -1142,12 +1173,12 @@ func (m *MsgRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):]) - if err6 != nil { - return 0, err6 + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime):]) + if err7 != nil { + return 0, err7 } - i -= n6 - i = encodeVarintTx(dAtA, i, uint64(n6)) + i -= n7 + i = encodeVarintTx(dAtA, i, uint64(n7)) i-- dAtA[i] = 0xa return len(dAtA) - i, nil @@ -1316,8 +1347,13 @@ func (m *MsgUnlockResponse) Size() (n int) { } var l int _ = l + if m.CreationHeight != 0 { + n += 1 + sovTx(uint64(m.CreationHeight)) + } l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CompletionTime) n += 1 + l + sovTx(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UnlockTime) + n += 1 + l + sovTx(uint64(l)) return n } @@ -1931,6 +1967,25 @@ func (m *MsgUnlockResponse) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreationHeight", wireType) + } + m.CreationHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreationHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) } @@ -1963,6 +2018,39 @@ func (m *MsgUnlockResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnlockTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.UnlockTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])