From eb4bf9f78aa2614097f40d003ef27cc3fc1119e1 Mon Sep 17 00:00:00 2001 From: Amit Yadav Date: Thu, 28 Nov 2024 23:41:49 +0530 Subject: [PATCH] [Commitment]: Remove legacy structure and code (#1003) * remove legacy structure and code * remove legacy keys --- api/elys/commitment/commitments.pulsar.go | 1764 +-------------------- api/elys/commitment/params.pulsar.go | 733 +-------- proto/elys/commitment/commitments.proto | 34 - proto/elys/commitment/params.proto | 9 - x/commitment/keeper/commitments.go | 36 - x/commitment/types/commitments.pb.go | 753 +-------- x/commitment/types/keys.go | 19 - x/commitment/types/params.go | 15 +- x/commitment/types/params.pb.go | 316 +--- 9 files changed, 122 insertions(+), 3557 deletions(-) diff --git a/api/elys/commitment/commitments.pulsar.go b/api/elys/commitment/commitments.pulsar.go index 5877d0ca6..e60aa3103 100644 --- a/api/elys/commitment/commitments.pulsar.go +++ b/api/elys/commitment/commitments.pulsar.go @@ -2634,1530 +2634,6 @@ func (x *fastReflection_VestingTokens) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_LegacyCommitments_2_list)(nil) - -type _LegacyCommitments_2_list struct { - list *[]*CommittedTokens -} - -func (x *_LegacyCommitments_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*CommittedTokens) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*CommittedTokens) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_2_list) AppendMutable() protoreflect.Value { - v := new(CommittedTokens) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_2_list) NewElement() protoreflect.Value { - v := new(CommittedTokens) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_3_list)(nil) - -type _LegacyCommitments_3_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyCommitments_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_3_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_3_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_4_list)(nil) - -type _LegacyCommitments_4_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyCommitments_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_4_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_4_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_5_list)(nil) - -type _LegacyCommitments_5_list struct { - list *[]*VestingTokens -} - -func (x *_LegacyCommitments_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*VestingTokens) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*VestingTokens) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_5_list) AppendMutable() protoreflect.Value { - v := new(VestingTokens) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_5_list) NewElement() protoreflect.Value { - v := new(VestingTokens) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_6_list)(nil) - -type _LegacyCommitments_6_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyCommitments_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_6_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_6_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_6_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_6_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_7_list)(nil) - -type _LegacyCommitments_7_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyCommitments_7_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_7_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_7_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_7_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_7_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_7_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_7_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_7_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_8_list)(nil) - -type _LegacyCommitments_8_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyCommitments_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_8_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_8_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_8_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_8_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyCommitments_9_list)(nil) - -type _LegacyCommitments_9_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyCommitments_9_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyCommitments_9_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyCommitments_9_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyCommitments_9_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyCommitments_9_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_9_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyCommitments_9_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyCommitments_9_list) IsValid() bool { - return x.list != nil -} - -var ( - md_LegacyCommitments protoreflect.MessageDescriptor - fd_LegacyCommitments_creator protoreflect.FieldDescriptor - fd_LegacyCommitments_committed_tokens protoreflect.FieldDescriptor - fd_LegacyCommitments_rewards_unclaimed protoreflect.FieldDescriptor - fd_LegacyCommitments_claimed protoreflect.FieldDescriptor - fd_LegacyCommitments_vesting_tokens protoreflect.FieldDescriptor - fd_LegacyCommitments_rewards_by_elys_unclaimed protoreflect.FieldDescriptor - fd_LegacyCommitments_rewards_by_eden_unclaimed protoreflect.FieldDescriptor - fd_LegacyCommitments_rewards_by_edenb_unclaimed protoreflect.FieldDescriptor - fd_LegacyCommitments_rewards_by_usdc_unclaimed protoreflect.FieldDescriptor -) - -func init() { - file_elys_commitment_commitments_proto_init() - md_LegacyCommitments = File_elys_commitment_commitments_proto.Messages().ByName("LegacyCommitments") - fd_LegacyCommitments_creator = md_LegacyCommitments.Fields().ByName("creator") - fd_LegacyCommitments_committed_tokens = md_LegacyCommitments.Fields().ByName("committed_tokens") - fd_LegacyCommitments_rewards_unclaimed = md_LegacyCommitments.Fields().ByName("rewards_unclaimed") - fd_LegacyCommitments_claimed = md_LegacyCommitments.Fields().ByName("claimed") - fd_LegacyCommitments_vesting_tokens = md_LegacyCommitments.Fields().ByName("vesting_tokens") - fd_LegacyCommitments_rewards_by_elys_unclaimed = md_LegacyCommitments.Fields().ByName("rewards_by_elys_unclaimed") - fd_LegacyCommitments_rewards_by_eden_unclaimed = md_LegacyCommitments.Fields().ByName("rewards_by_eden_unclaimed") - fd_LegacyCommitments_rewards_by_edenb_unclaimed = md_LegacyCommitments.Fields().ByName("rewards_by_edenb_unclaimed") - fd_LegacyCommitments_rewards_by_usdc_unclaimed = md_LegacyCommitments.Fields().ByName("rewards_by_usdc_unclaimed") -} - -var _ protoreflect.Message = (*fastReflection_LegacyCommitments)(nil) - -type fastReflection_LegacyCommitments LegacyCommitments - -func (x *LegacyCommitments) ProtoReflect() protoreflect.Message { - return (*fastReflection_LegacyCommitments)(x) -} - -func (x *LegacyCommitments) slowProtoReflect() protoreflect.Message { - mi := &file_elys_commitment_commitments_proto_msgTypes[4] - 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_LegacyCommitments_messageType fastReflection_LegacyCommitments_messageType -var _ protoreflect.MessageType = fastReflection_LegacyCommitments_messageType{} - -type fastReflection_LegacyCommitments_messageType struct{} - -func (x fastReflection_LegacyCommitments_messageType) Zero() protoreflect.Message { - return (*fastReflection_LegacyCommitments)(nil) -} -func (x fastReflection_LegacyCommitments_messageType) New() protoreflect.Message { - return new(fastReflection_LegacyCommitments) -} -func (x fastReflection_LegacyCommitments_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_LegacyCommitments -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_LegacyCommitments) Descriptor() protoreflect.MessageDescriptor { - return md_LegacyCommitments -} - -// 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_LegacyCommitments) Type() protoreflect.MessageType { - return _fastReflection_LegacyCommitments_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_LegacyCommitments) New() protoreflect.Message { - return new(fastReflection_LegacyCommitments) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_LegacyCommitments) Interface() protoreflect.ProtoMessage { - return (*LegacyCommitments)(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_LegacyCommitments) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_LegacyCommitments_creator, value) { - return - } - } - if len(x.CommittedTokens) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_2_list{list: &x.CommittedTokens}) - if !f(fd_LegacyCommitments_committed_tokens, value) { - return - } - } - if len(x.RewardsUnclaimed) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_3_list{list: &x.RewardsUnclaimed}) - if !f(fd_LegacyCommitments_rewards_unclaimed, value) { - return - } - } - if len(x.Claimed) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_4_list{list: &x.Claimed}) - if !f(fd_LegacyCommitments_claimed, value) { - return - } - } - if len(x.VestingTokens) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_5_list{list: &x.VestingTokens}) - if !f(fd_LegacyCommitments_vesting_tokens, value) { - return - } - } - if len(x.RewardsByElysUnclaimed) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_6_list{list: &x.RewardsByElysUnclaimed}) - if !f(fd_LegacyCommitments_rewards_by_elys_unclaimed, value) { - return - } - } - if len(x.RewardsByEdenUnclaimed) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_7_list{list: &x.RewardsByEdenUnclaimed}) - if !f(fd_LegacyCommitments_rewards_by_eden_unclaimed, value) { - return - } - } - if len(x.RewardsByEdenbUnclaimed) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_8_list{list: &x.RewardsByEdenbUnclaimed}) - if !f(fd_LegacyCommitments_rewards_by_edenb_unclaimed, value) { - return - } - } - if len(x.RewardsByUsdcUnclaimed) != 0 { - value := protoreflect.ValueOfList(&_LegacyCommitments_9_list{list: &x.RewardsByUsdcUnclaimed}) - if !f(fd_LegacyCommitments_rewards_by_usdc_unclaimed, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_LegacyCommitments) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "elys.commitment.LegacyCommitments.creator": - return x.Creator != "" - case "elys.commitment.LegacyCommitments.committed_tokens": - return len(x.CommittedTokens) != 0 - case "elys.commitment.LegacyCommitments.rewards_unclaimed": - return len(x.RewardsUnclaimed) != 0 - case "elys.commitment.LegacyCommitments.claimed": - return len(x.Claimed) != 0 - case "elys.commitment.LegacyCommitments.vesting_tokens": - return len(x.VestingTokens) != 0 - case "elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed": - return len(x.RewardsByElysUnclaimed) != 0 - case "elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed": - return len(x.RewardsByEdenUnclaimed) != 0 - case "elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed": - return len(x.RewardsByEdenbUnclaimed) != 0 - case "elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed": - return len(x.RewardsByUsdcUnclaimed) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyCommitments")) - } - panic(fmt.Errorf("message elys.commitment.LegacyCommitments 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_LegacyCommitments) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "elys.commitment.LegacyCommitments.creator": - x.Creator = "" - case "elys.commitment.LegacyCommitments.committed_tokens": - x.CommittedTokens = nil - case "elys.commitment.LegacyCommitments.rewards_unclaimed": - x.RewardsUnclaimed = nil - case "elys.commitment.LegacyCommitments.claimed": - x.Claimed = nil - case "elys.commitment.LegacyCommitments.vesting_tokens": - x.VestingTokens = nil - case "elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed": - x.RewardsByElysUnclaimed = nil - case "elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed": - x.RewardsByEdenUnclaimed = nil - case "elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed": - x.RewardsByEdenbUnclaimed = nil - case "elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed": - x.RewardsByUsdcUnclaimed = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyCommitments")) - } - panic(fmt.Errorf("message elys.commitment.LegacyCommitments 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_LegacyCommitments) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "elys.commitment.LegacyCommitments.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "elys.commitment.LegacyCommitments.committed_tokens": - if len(x.CommittedTokens) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_2_list{}) - } - listValue := &_LegacyCommitments_2_list{list: &x.CommittedTokens} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.rewards_unclaimed": - if len(x.RewardsUnclaimed) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_3_list{}) - } - listValue := &_LegacyCommitments_3_list{list: &x.RewardsUnclaimed} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.claimed": - if len(x.Claimed) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_4_list{}) - } - listValue := &_LegacyCommitments_4_list{list: &x.Claimed} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.vesting_tokens": - if len(x.VestingTokens) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_5_list{}) - } - listValue := &_LegacyCommitments_5_list{list: &x.VestingTokens} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed": - if len(x.RewardsByElysUnclaimed) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_6_list{}) - } - listValue := &_LegacyCommitments_6_list{list: &x.RewardsByElysUnclaimed} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed": - if len(x.RewardsByEdenUnclaimed) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_7_list{}) - } - listValue := &_LegacyCommitments_7_list{list: &x.RewardsByEdenUnclaimed} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed": - if len(x.RewardsByEdenbUnclaimed) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_8_list{}) - } - listValue := &_LegacyCommitments_8_list{list: &x.RewardsByEdenbUnclaimed} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed": - if len(x.RewardsByUsdcUnclaimed) == 0 { - return protoreflect.ValueOfList(&_LegacyCommitments_9_list{}) - } - listValue := &_LegacyCommitments_9_list{list: &x.RewardsByUsdcUnclaimed} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyCommitments")) - } - panic(fmt.Errorf("message elys.commitment.LegacyCommitments 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_LegacyCommitments) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "elys.commitment.LegacyCommitments.creator": - x.Creator = value.Interface().(string) - case "elys.commitment.LegacyCommitments.committed_tokens": - lv := value.List() - clv := lv.(*_LegacyCommitments_2_list) - x.CommittedTokens = *clv.list - case "elys.commitment.LegacyCommitments.rewards_unclaimed": - lv := value.List() - clv := lv.(*_LegacyCommitments_3_list) - x.RewardsUnclaimed = *clv.list - case "elys.commitment.LegacyCommitments.claimed": - lv := value.List() - clv := lv.(*_LegacyCommitments_4_list) - x.Claimed = *clv.list - case "elys.commitment.LegacyCommitments.vesting_tokens": - lv := value.List() - clv := lv.(*_LegacyCommitments_5_list) - x.VestingTokens = *clv.list - case "elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed": - lv := value.List() - clv := lv.(*_LegacyCommitments_6_list) - x.RewardsByElysUnclaimed = *clv.list - case "elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed": - lv := value.List() - clv := lv.(*_LegacyCommitments_7_list) - x.RewardsByEdenUnclaimed = *clv.list - case "elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed": - lv := value.List() - clv := lv.(*_LegacyCommitments_8_list) - x.RewardsByEdenbUnclaimed = *clv.list - case "elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed": - lv := value.List() - clv := lv.(*_LegacyCommitments_9_list) - x.RewardsByUsdcUnclaimed = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyCommitments")) - } - panic(fmt.Errorf("message elys.commitment.LegacyCommitments 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_LegacyCommitments) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "elys.commitment.LegacyCommitments.committed_tokens": - if x.CommittedTokens == nil { - x.CommittedTokens = []*CommittedTokens{} - } - value := &_LegacyCommitments_2_list{list: &x.CommittedTokens} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.rewards_unclaimed": - if x.RewardsUnclaimed == nil { - x.RewardsUnclaimed = []*v1beta1.Coin{} - } - value := &_LegacyCommitments_3_list{list: &x.RewardsUnclaimed} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.claimed": - if x.Claimed == nil { - x.Claimed = []*v1beta1.Coin{} - } - value := &_LegacyCommitments_4_list{list: &x.Claimed} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.vesting_tokens": - if x.VestingTokens == nil { - x.VestingTokens = []*VestingTokens{} - } - value := &_LegacyCommitments_5_list{list: &x.VestingTokens} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed": - if x.RewardsByElysUnclaimed == nil { - x.RewardsByElysUnclaimed = []*v1beta1.Coin{} - } - value := &_LegacyCommitments_6_list{list: &x.RewardsByElysUnclaimed} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed": - if x.RewardsByEdenUnclaimed == nil { - x.RewardsByEdenUnclaimed = []*v1beta1.Coin{} - } - value := &_LegacyCommitments_7_list{list: &x.RewardsByEdenUnclaimed} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed": - if x.RewardsByEdenbUnclaimed == nil { - x.RewardsByEdenbUnclaimed = []*v1beta1.Coin{} - } - value := &_LegacyCommitments_8_list{list: &x.RewardsByEdenbUnclaimed} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed": - if x.RewardsByUsdcUnclaimed == nil { - x.RewardsByUsdcUnclaimed = []*v1beta1.Coin{} - } - value := &_LegacyCommitments_9_list{list: &x.RewardsByUsdcUnclaimed} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyCommitments.creator": - panic(fmt.Errorf("field creator of message elys.commitment.LegacyCommitments is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyCommitments")) - } - panic(fmt.Errorf("message elys.commitment.LegacyCommitments 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_LegacyCommitments) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "elys.commitment.LegacyCommitments.creator": - return protoreflect.ValueOfString("") - case "elys.commitment.LegacyCommitments.committed_tokens": - list := []*CommittedTokens{} - return protoreflect.ValueOfList(&_LegacyCommitments_2_list{list: &list}) - case "elys.commitment.LegacyCommitments.rewards_unclaimed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyCommitments_3_list{list: &list}) - case "elys.commitment.LegacyCommitments.claimed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyCommitments_4_list{list: &list}) - case "elys.commitment.LegacyCommitments.vesting_tokens": - list := []*VestingTokens{} - return protoreflect.ValueOfList(&_LegacyCommitments_5_list{list: &list}) - case "elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyCommitments_6_list{list: &list}) - case "elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyCommitments_7_list{list: &list}) - case "elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyCommitments_8_list{list: &list}) - case "elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyCommitments_9_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyCommitments")) - } - panic(fmt.Errorf("message elys.commitment.LegacyCommitments 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_LegacyCommitments) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in elys.commitment.LegacyCommitments", 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_LegacyCommitments) 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_LegacyCommitments) 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_LegacyCommitments) 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_LegacyCommitments) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*LegacyCommitments) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.CommittedTokens) > 0 { - for _, e := range x.CommittedTokens { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RewardsUnclaimed) > 0 { - for _, e := range x.RewardsUnclaimed { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Claimed) > 0 { - for _, e := range x.Claimed { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.VestingTokens) > 0 { - for _, e := range x.VestingTokens { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RewardsByElysUnclaimed) > 0 { - for _, e := range x.RewardsByElysUnclaimed { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RewardsByEdenUnclaimed) > 0 { - for _, e := range x.RewardsByEdenUnclaimed { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RewardsByEdenbUnclaimed) > 0 { - for _, e := range x.RewardsByEdenbUnclaimed { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RewardsByUsdcUnclaimed) > 0 { - for _, e := range x.RewardsByUsdcUnclaimed { - l = options.Size(e) - 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().(*LegacyCommitments) - 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.RewardsByUsdcUnclaimed) > 0 { - for iNdEx := len(x.RewardsByUsdcUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.RewardsByUsdcUnclaimed[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x4a - } - } - if len(x.RewardsByEdenbUnclaimed) > 0 { - for iNdEx := len(x.RewardsByEdenbUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.RewardsByEdenbUnclaimed[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] = 0x42 - } - } - if len(x.RewardsByEdenUnclaimed) > 0 { - for iNdEx := len(x.RewardsByEdenUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.RewardsByEdenUnclaimed[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] = 0x3a - } - } - if len(x.RewardsByElysUnclaimed) > 0 { - for iNdEx := len(x.RewardsByElysUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.RewardsByElysUnclaimed[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] = 0x32 - } - } - if len(x.VestingTokens) > 0 { - for iNdEx := len(x.VestingTokens) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.VestingTokens[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] = 0x2a - } - } - if len(x.Claimed) > 0 { - for iNdEx := len(x.Claimed) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Claimed[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] = 0x22 - } - } - if len(x.RewardsUnclaimed) > 0 { - for iNdEx := len(x.RewardsUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.RewardsUnclaimed[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.CommittedTokens) > 0 { - for iNdEx := len(x.CommittedTokens) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CommittedTokens[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] = 0x12 - } - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*LegacyCommitments) - 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: LegacyCommitments: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LegacyCommitments: 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 Creator", 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.Creator = 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 CommittedTokens", 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.CommittedTokens = append(x.CommittedTokens, &CommittedTokens{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CommittedTokens[len(x.CommittedTokens)-1]); err != nil { - 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 RewardsUnclaimed", 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.RewardsUnclaimed = append(x.RewardsUnclaimed, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RewardsUnclaimed[len(x.RewardsUnclaimed)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Claimed", 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.Claimed = append(x.Claimed, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Claimed[len(x.Claimed)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VestingTokens", 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.VestingTokens = append(x.VestingTokens, &VestingTokens{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VestingTokens[len(x.VestingTokens)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardsByElysUnclaimed", 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.RewardsByElysUnclaimed = append(x.RewardsByElysUnclaimed, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RewardsByElysUnclaimed[len(x.RewardsByElysUnclaimed)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardsByEdenUnclaimed", 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.RewardsByEdenUnclaimed = append(x.RewardsByEdenUnclaimed, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RewardsByEdenUnclaimed[len(x.RewardsByEdenUnclaimed)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardsByEdenbUnclaimed", 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.RewardsByEdenbUnclaimed = append(x.RewardsByEdenbUnclaimed, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RewardsByEdenbUnclaimed[len(x.RewardsByEdenbUnclaimed)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardsByUsdcUnclaimed", 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.RewardsByUsdcUnclaimed = append(x.RewardsByUsdcUnclaimed, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RewardsByUsdcUnclaimed[len(x.RewardsByUsdcUnclaimed)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -4400,105 +2876,6 @@ func (x *VestingTokens) GetVestStartedTimestamp() int64 { return 0 } -type LegacyCommitments struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CommittedTokens []*CommittedTokens `protobuf:"bytes,2,rep,name=committed_tokens,json=committedTokens,proto3" json:"committed_tokens,omitempty"` - RewardsUnclaimed []*v1beta1.Coin `protobuf:"bytes,3,rep,name=rewards_unclaimed,json=rewardsUnclaimed,proto3" json:"rewards_unclaimed,omitempty"` - Claimed []*v1beta1.Coin `protobuf:"bytes,4,rep,name=claimed,proto3" json:"claimed,omitempty"` - VestingTokens []*VestingTokens `protobuf:"bytes,5,rep,name=vesting_tokens,json=vestingTokens,proto3" json:"vesting_tokens,omitempty"` - RewardsByElysUnclaimed []*v1beta1.Coin `protobuf:"bytes,6,rep,name=rewards_by_elys_unclaimed,json=rewardsByElysUnclaimed,proto3" json:"rewards_by_elys_unclaimed,omitempty"` - RewardsByEdenUnclaimed []*v1beta1.Coin `protobuf:"bytes,7,rep,name=rewards_by_eden_unclaimed,json=rewardsByEdenUnclaimed,proto3" json:"rewards_by_eden_unclaimed,omitempty"` - RewardsByEdenbUnclaimed []*v1beta1.Coin `protobuf:"bytes,8,rep,name=rewards_by_edenb_unclaimed,json=rewardsByEdenbUnclaimed,proto3" json:"rewards_by_edenb_unclaimed,omitempty"` - RewardsByUsdcUnclaimed []*v1beta1.Coin `protobuf:"bytes,9,rep,name=rewards_by_usdc_unclaimed,json=rewardsByUsdcUnclaimed,proto3" json:"rewards_by_usdc_unclaimed,omitempty"` -} - -func (x *LegacyCommitments) Reset() { - *x = LegacyCommitments{} - if protoimpl.UnsafeEnabled { - mi := &file_elys_commitment_commitments_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LegacyCommitments) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LegacyCommitments) ProtoMessage() {} - -// Deprecated: Use LegacyCommitments.ProtoReflect.Descriptor instead. -func (*LegacyCommitments) Descriptor() ([]byte, []int) { - return file_elys_commitment_commitments_proto_rawDescGZIP(), []int{4} -} - -func (x *LegacyCommitments) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *LegacyCommitments) GetCommittedTokens() []*CommittedTokens { - if x != nil { - return x.CommittedTokens - } - return nil -} - -func (x *LegacyCommitments) GetRewardsUnclaimed() []*v1beta1.Coin { - if x != nil { - return x.RewardsUnclaimed - } - return nil -} - -func (x *LegacyCommitments) GetClaimed() []*v1beta1.Coin { - if x != nil { - return x.Claimed - } - return nil -} - -func (x *LegacyCommitments) GetVestingTokens() []*VestingTokens { - if x != nil { - return x.VestingTokens - } - return nil -} - -func (x *LegacyCommitments) GetRewardsByElysUnclaimed() []*v1beta1.Coin { - if x != nil { - return x.RewardsByElysUnclaimed - } - return nil -} - -func (x *LegacyCommitments) GetRewardsByEdenUnclaimed() []*v1beta1.Coin { - if x != nil { - return x.RewardsByEdenUnclaimed - } - return nil -} - -func (x *LegacyCommitments) GetRewardsByEdenbUnclaimed() []*v1beta1.Coin { - if x != nil { - return x.RewardsByEdenbUnclaimed - } - return nil -} - -func (x *LegacyCommitments) GetRewardsByUsdcUnclaimed() []*v1beta1.Coin { - if x != nil { - return x.RewardsByUsdcUnclaimed - } - return nil -} - var File_elys_commitment_commitments_proto protoreflect.FileDescriptor var file_elys_commitment_commitments_proto_rawDesc = []byte{ @@ -4575,81 +2952,19 @@ var file_elys_commitment_commitments_proto_rawDesc = []byte{ 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x34, 0x0a, 0x16, 0x76, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x76, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xe2, 0x07, 0x0a, 0x11, 0x4c, - 0x65, 0x67, 0x61, 0x63, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 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, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, - 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, - 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x73, 0x12, 0x78, 0x0a, 0x11, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x5f, 0x75, 0x6e, 0x63, - 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, - 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x10, 0x72, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x73, 0x55, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x12, 0x65, 0x0a, 0x07, 0x63, - 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, - 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6c, 0x79, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x0d, 0x76, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x86, 0x01, 0x0a, 0x19, 0x72, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x65, 0x6c, 0x79, 0x73, 0x5f, 0x75, 0x6e, - 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, - 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x16, 0x72, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x6c, 0x79, 0x73, 0x55, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x65, 0x64, 0x12, 0x86, 0x01, 0x0a, 0x19, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x5f, 0x62, - 0x79, 0x5f, 0x65, 0x64, 0x65, 0x6e, 0x5f, 0x75, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, - 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x73, 0x52, 0x16, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x64, - 0x65, 0x6e, 0x55, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x12, 0x88, 0x01, 0x0a, 0x1a, - 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x65, 0x64, 0x65, 0x6e, 0x62, - 0x5f, 0x75, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, - 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x17, 0x72, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x42, 0x79, 0x45, 0x64, 0x65, 0x6e, 0x62, 0x55, 0x6e, 0x63, - 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x12, 0x86, 0x01, 0x0a, 0x19, 0x72, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x64, 0x63, 0x5f, 0x75, 0x6e, 0x63, 0x6c, 0x61, - 0x69, 0x6d, 0x65, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x16, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, - 0x42, 0x79, 0x55, 0x73, 0x64, 0x63, 0x55, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x42, - 0xb6, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6c, 0x79, 0x73, 0x2d, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x65, 0x6c, 0x79, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6c, - 0x79, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0xa2, 0x02, 0x03, - 0x45, 0x43, 0x58, 0xaa, 0x02, 0x0f, 0x45, 0x6c, 0x79, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0f, 0x45, 0x6c, 0x79, 0x73, 0x5c, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x1b, 0x45, 0x6c, 0x79, 0x73, 0x5c, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x45, 0x6c, 0x79, 0x73, 0x3a, 0x3a, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0xb6, 0x01, 0x0a, 0x13, 0x63, + 0x6f, 0x6d, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x42, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x65, 0x6c, 0x79, 0x73, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, + 0x65, 0x6c, 0x79, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6c, 0x79, 0x73, 0x2f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0xa2, 0x02, 0x03, 0x45, 0x43, 0x58, 0xaa, 0x02, + 0x0f, 0x45, 0x6c, 0x79, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0xca, 0x02, 0x0f, 0x45, 0x6c, 0x79, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0xe2, 0x02, 0x1b, 0x45, 0x6c, 0x79, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x10, 0x45, 0x6c, 0x79, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, + 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4664,33 +2979,24 @@ func file_elys_commitment_commitments_proto_rawDescGZIP() []byte { return file_elys_commitment_commitments_proto_rawDescData } -var file_elys_commitment_commitments_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_elys_commitment_commitments_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_elys_commitment_commitments_proto_goTypes = []interface{}{ - (*Commitments)(nil), // 0: elys.commitment.Commitments - (*Lockup)(nil), // 1: elys.commitment.Lockup - (*CommittedTokens)(nil), // 2: elys.commitment.CommittedTokens - (*VestingTokens)(nil), // 3: elys.commitment.VestingTokens - (*LegacyCommitments)(nil), // 4: elys.commitment.LegacyCommitments - (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin + (*Commitments)(nil), // 0: elys.commitment.Commitments + (*Lockup)(nil), // 1: elys.commitment.Lockup + (*CommittedTokens)(nil), // 2: elys.commitment.CommittedTokens + (*VestingTokens)(nil), // 3: elys.commitment.VestingTokens + (*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin } var file_elys_commitment_commitments_proto_depIdxs = []int32{ - 2, // 0: elys.commitment.Commitments.committed_tokens:type_name -> elys.commitment.CommittedTokens - 5, // 1: elys.commitment.Commitments.claimed:type_name -> cosmos.base.v1beta1.Coin - 3, // 2: elys.commitment.Commitments.vesting_tokens:type_name -> elys.commitment.VestingTokens - 1, // 3: elys.commitment.CommittedTokens.lockups:type_name -> elys.commitment.Lockup - 2, // 4: elys.commitment.LegacyCommitments.committed_tokens:type_name -> elys.commitment.CommittedTokens - 5, // 5: elys.commitment.LegacyCommitments.rewards_unclaimed:type_name -> cosmos.base.v1beta1.Coin - 5, // 6: elys.commitment.LegacyCommitments.claimed:type_name -> cosmos.base.v1beta1.Coin - 3, // 7: elys.commitment.LegacyCommitments.vesting_tokens:type_name -> elys.commitment.VestingTokens - 5, // 8: elys.commitment.LegacyCommitments.rewards_by_elys_unclaimed:type_name -> cosmos.base.v1beta1.Coin - 5, // 9: elys.commitment.LegacyCommitments.rewards_by_eden_unclaimed:type_name -> cosmos.base.v1beta1.Coin - 5, // 10: elys.commitment.LegacyCommitments.rewards_by_edenb_unclaimed:type_name -> cosmos.base.v1beta1.Coin - 5, // 11: elys.commitment.LegacyCommitments.rewards_by_usdc_unclaimed:type_name -> cosmos.base.v1beta1.Coin - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 2, // 0: elys.commitment.Commitments.committed_tokens:type_name -> elys.commitment.CommittedTokens + 4, // 1: elys.commitment.Commitments.claimed:type_name -> cosmos.base.v1beta1.Coin + 3, // 2: elys.commitment.Commitments.vesting_tokens:type_name -> elys.commitment.VestingTokens + 1, // 3: elys.commitment.CommittedTokens.lockups:type_name -> elys.commitment.Lockup + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_elys_commitment_commitments_proto_init() } @@ -4748,18 +3054,6 @@ func file_elys_commitment_commitments_proto_init() { return nil } } - file_elys_commitment_commitments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LegacyCommitments); 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{ @@ -4767,7 +3061,7 @@ func file_elys_commitment_commitments_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_elys_commitment_commitments_proto_rawDesc, NumEnums: 0, - NumMessages: 5, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, diff --git a/api/elys/commitment/params.pulsar.go b/api/elys/commitment/params.pulsar.go index ed7f2be29..4599ce108 100644 --- a/api/elys/commitment/params.pulsar.go +++ b/api/elys/commitment/params.pulsar.go @@ -695,638 +695,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_LegacyParams_1_list)(nil) - -type _LegacyParams_1_list struct { - list *[]*VestingInfo -} - -func (x *_LegacyParams_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyParams_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyParams_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*VestingInfo) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyParams_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*VestingInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyParams_1_list) AppendMutable() protoreflect.Value { - v := new(VestingInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyParams_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyParams_1_list) NewElement() protoreflect.Value { - v := new(VestingInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyParams_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_LegacyParams_2_list)(nil) - -type _LegacyParams_2_list struct { - list *[]*v1beta1.Coin -} - -func (x *_LegacyParams_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_LegacyParams_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_LegacyParams_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_LegacyParams_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_LegacyParams_2_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyParams_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_LegacyParams_2_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_LegacyParams_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_LegacyParams protoreflect.MessageDescriptor - fd_LegacyParams_vesting_infos protoreflect.FieldDescriptor - fd_LegacyParams_total_committed protoreflect.FieldDescriptor -) - -func init() { - file_elys_commitment_params_proto_init() - md_LegacyParams = File_elys_commitment_params_proto.Messages().ByName("LegacyParams") - fd_LegacyParams_vesting_infos = md_LegacyParams.Fields().ByName("vesting_infos") - fd_LegacyParams_total_committed = md_LegacyParams.Fields().ByName("total_committed") -} - -var _ protoreflect.Message = (*fastReflection_LegacyParams)(nil) - -type fastReflection_LegacyParams LegacyParams - -func (x *LegacyParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_LegacyParams)(x) -} - -func (x *LegacyParams) slowProtoReflect() protoreflect.Message { - mi := &file_elys_commitment_params_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_LegacyParams_messageType fastReflection_LegacyParams_messageType -var _ protoreflect.MessageType = fastReflection_LegacyParams_messageType{} - -type fastReflection_LegacyParams_messageType struct{} - -func (x fastReflection_LegacyParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_LegacyParams)(nil) -} -func (x fastReflection_LegacyParams_messageType) New() protoreflect.Message { - return new(fastReflection_LegacyParams) -} -func (x fastReflection_LegacyParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_LegacyParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_LegacyParams) Descriptor() protoreflect.MessageDescriptor { - return md_LegacyParams -} - -// 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_LegacyParams) Type() protoreflect.MessageType { - return _fastReflection_LegacyParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_LegacyParams) New() protoreflect.Message { - return new(fastReflection_LegacyParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_LegacyParams) Interface() protoreflect.ProtoMessage { - return (*LegacyParams)(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_LegacyParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.VestingInfos) != 0 { - value := protoreflect.ValueOfList(&_LegacyParams_1_list{list: &x.VestingInfos}) - if !f(fd_LegacyParams_vesting_infos, value) { - return - } - } - if len(x.TotalCommitted) != 0 { - value := protoreflect.ValueOfList(&_LegacyParams_2_list{list: &x.TotalCommitted}) - if !f(fd_LegacyParams_total_committed, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_LegacyParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "elys.commitment.LegacyParams.vesting_infos": - return len(x.VestingInfos) != 0 - case "elys.commitment.LegacyParams.total_committed": - return len(x.TotalCommitted) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyParams")) - } - panic(fmt.Errorf("message elys.commitment.LegacyParams 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_LegacyParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "elys.commitment.LegacyParams.vesting_infos": - x.VestingInfos = nil - case "elys.commitment.LegacyParams.total_committed": - x.TotalCommitted = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyParams")) - } - panic(fmt.Errorf("message elys.commitment.LegacyParams 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_LegacyParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "elys.commitment.LegacyParams.vesting_infos": - if len(x.VestingInfos) == 0 { - return protoreflect.ValueOfList(&_LegacyParams_1_list{}) - } - listValue := &_LegacyParams_1_list{list: &x.VestingInfos} - return protoreflect.ValueOfList(listValue) - case "elys.commitment.LegacyParams.total_committed": - if len(x.TotalCommitted) == 0 { - return protoreflect.ValueOfList(&_LegacyParams_2_list{}) - } - listValue := &_LegacyParams_2_list{list: &x.TotalCommitted} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyParams")) - } - panic(fmt.Errorf("message elys.commitment.LegacyParams 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_LegacyParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "elys.commitment.LegacyParams.vesting_infos": - lv := value.List() - clv := lv.(*_LegacyParams_1_list) - x.VestingInfos = *clv.list - case "elys.commitment.LegacyParams.total_committed": - lv := value.List() - clv := lv.(*_LegacyParams_2_list) - x.TotalCommitted = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyParams")) - } - panic(fmt.Errorf("message elys.commitment.LegacyParams 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_LegacyParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "elys.commitment.LegacyParams.vesting_infos": - if x.VestingInfos == nil { - x.VestingInfos = []*VestingInfo{} - } - value := &_LegacyParams_1_list{list: &x.VestingInfos} - return protoreflect.ValueOfList(value) - case "elys.commitment.LegacyParams.total_committed": - if x.TotalCommitted == nil { - x.TotalCommitted = []*v1beta1.Coin{} - } - value := &_LegacyParams_2_list{list: &x.TotalCommitted} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyParams")) - } - panic(fmt.Errorf("message elys.commitment.LegacyParams 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_LegacyParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "elys.commitment.LegacyParams.vesting_infos": - list := []*VestingInfo{} - return protoreflect.ValueOfList(&_LegacyParams_1_list{list: &list}) - case "elys.commitment.LegacyParams.total_committed": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_LegacyParams_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.LegacyParams")) - } - panic(fmt.Errorf("message elys.commitment.LegacyParams 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_LegacyParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in elys.commitment.LegacyParams", 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_LegacyParams) 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_LegacyParams) 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_LegacyParams) 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_LegacyParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*LegacyParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.VestingInfos) > 0 { - for _, e := range x.VestingInfos { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.TotalCommitted) > 0 { - for _, e := range x.TotalCommitted { - l = options.Size(e) - 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().(*LegacyParams) - 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.TotalCommitted) > 0 { - for iNdEx := len(x.TotalCommitted) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.TotalCommitted[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] = 0x12 - } - } - if len(x.VestingInfos) > 0 { - for iNdEx := len(x.VestingInfos) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.VestingInfos[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*LegacyParams) - 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: LegacyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LegacyParams: 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 VestingInfos", 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.VestingInfos = append(x.VestingInfos, &VestingInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VestingInfos[len(x.VestingInfos)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalCommitted", 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.TotalCommitted = append(x.TotalCommitted, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TotalCommitted[len(x.TotalCommitted)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var ( md_VestingInfo protoreflect.MessageDescriptor fd_VestingInfo_base_denom protoreflect.FieldDescriptor @@ -1355,7 +723,7 @@ func (x *VestingInfo) ProtoReflect() protoreflect.Message { } func (x *VestingInfo) slowProtoReflect() protoreflect.Message { - mi := &file_elys_commitment_params_proto_msgTypes[2] + mi := &file_elys_commitment_params_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2094,49 +1462,6 @@ func (x *Params) GetNumberOfCommitments() uint64 { return 0 } -type LegacyParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - VestingInfos []*VestingInfo `protobuf:"bytes,1,rep,name=vesting_infos,json=vestingInfos,proto3" json:"vesting_infos,omitempty"` - TotalCommitted []*v1beta1.Coin `protobuf:"bytes,2,rep,name=total_committed,json=totalCommitted,proto3" json:"total_committed,omitempty"` -} - -func (x *LegacyParams) Reset() { - *x = LegacyParams{} - if protoimpl.UnsafeEnabled { - mi := &file_elys_commitment_params_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LegacyParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LegacyParams) ProtoMessage() {} - -// Deprecated: Use LegacyParams.ProtoReflect.Descriptor instead. -func (*LegacyParams) Descriptor() ([]byte, []int) { - return file_elys_commitment_params_proto_rawDescGZIP(), []int{1} -} - -func (x *LegacyParams) GetVestingInfos() []*VestingInfo { - if x != nil { - return x.VestingInfos - } - return nil -} - -func (x *LegacyParams) GetTotalCommitted() []*v1beta1.Coin { - if x != nil { - return x.TotalCommitted - } - return nil -} - type VestingInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2152,7 +1477,7 @@ type VestingInfo struct { func (x *VestingInfo) Reset() { *x = VestingInfo{} if protoimpl.UnsafeEnabled { - mi := &file_elys_commitment_params_proto_msgTypes[2] + mi := &file_elys_commitment_params_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2166,7 +1491,7 @@ func (*VestingInfo) ProtoMessage() {} // Deprecated: Use VestingInfo.ProtoReflect.Descriptor instead. func (*VestingInfo) Descriptor() ([]byte, []int) { - return file_elys_commitment_params_proto_rawDescGZIP(), []int{2} + return file_elys_commitment_params_proto_rawDescGZIP(), []int{1} } func (x *VestingInfo) GetBaseDenom() string { @@ -2230,20 +1555,7 @@ var file_elys_commitment_params_proto_rawDesc = []byte{ 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x4f, 0x66, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xcd, - 0x01, 0x0a, 0x0c, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x41, 0x0a, 0x0d, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, - 0x6f, 0x73, 0x12, 0x74, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x22, 0xef, + 0x72, 0x4f, 0x66, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xef, 0x01, 0x0a, 0x0b, 0x56, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x23, 0x0a, @@ -2294,24 +1606,21 @@ func file_elys_commitment_params_proto_rawDescGZIP() []byte { } var file_elys_commitment_params_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_elys_commitment_params_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_elys_commitment_params_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_elys_commitment_params_proto_goTypes = []interface{}{ (EarnType)(0), // 0: elys.commitment.EarnType (*Params)(nil), // 1: elys.commitment.Params - (*LegacyParams)(nil), // 2: elys.commitment.LegacyParams - (*VestingInfo)(nil), // 3: elys.commitment.VestingInfo - (*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin + (*VestingInfo)(nil), // 2: elys.commitment.VestingInfo + (*v1beta1.Coin)(nil), // 3: cosmos.base.v1beta1.Coin } var file_elys_commitment_params_proto_depIdxs = []int32{ - 3, // 0: elys.commitment.Params.vesting_infos:type_name -> elys.commitment.VestingInfo - 4, // 1: elys.commitment.Params.total_committed:type_name -> cosmos.base.v1beta1.Coin - 3, // 2: elys.commitment.LegacyParams.vesting_infos:type_name -> elys.commitment.VestingInfo - 4, // 3: elys.commitment.LegacyParams.total_committed:type_name -> cosmos.base.v1beta1.Coin - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 2, // 0: elys.commitment.Params.vesting_infos:type_name -> elys.commitment.VestingInfo + 3, // 1: elys.commitment.Params.total_committed:type_name -> cosmos.base.v1beta1.Coin + 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 } func init() { file_elys_commitment_params_proto_init() } @@ -2333,18 +1642,6 @@ func file_elys_commitment_params_proto_init() { } } file_elys_commitment_params_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LegacyParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_elys_commitment_params_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VestingInfo); i { case 0: return &v.state @@ -2363,7 +1660,7 @@ func file_elys_commitment_params_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_elys_commitment_params_proto_rawDesc, NumEnums: 1, - NumMessages: 3, + NumMessages: 2, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/elys/commitment/commitments.proto b/proto/elys/commitment/commitments.proto index aa74e0b44..70471d88a 100644 --- a/proto/elys/commitment/commitments.proto +++ b/proto/elys/commitment/commitments.proto @@ -57,37 +57,3 @@ message VestingTokens { int64 start_block = 6; int64 vest_started_timestamp = 7; } - -message LegacyCommitments { - string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - repeated CommittedTokens committed_tokens = 2; - repeated cosmos.base.v1beta1.Coin rewards_unclaimed = 3 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - repeated cosmos.base.v1beta1.Coin claimed = 4 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - repeated VestingTokens vesting_tokens = 5; - - repeated cosmos.base.v1beta1.Coin rewards_by_elys_unclaimed = 6 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - - repeated cosmos.base.v1beta1.Coin rewards_by_eden_unclaimed = 7 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - - repeated cosmos.base.v1beta1.Coin rewards_by_edenb_unclaimed = 8 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - - repeated cosmos.base.v1beta1.Coin rewards_by_usdc_unclaimed = 9 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} diff --git a/proto/elys/commitment/params.proto b/proto/elys/commitment/params.proto index 6780b5a8c..59b9f8d9c 100644 --- a/proto/elys/commitment/params.proto +++ b/proto/elys/commitment/params.proto @@ -17,15 +17,6 @@ message Params { uint64 number_of_commitments = 3; } -message LegacyParams { - option (gogoproto.goproto_stringer) = false; - repeated VestingInfo vesting_infos = 1; - repeated cosmos.base.v1beta1.Coin total_committed = 2 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} - message VestingInfo { string base_denom = 1; string vesting_denom = 2; diff --git a/x/commitment/keeper/commitments.go b/x/commitment/keeper/commitments.go index 04292f815..bb19eb45d 100644 --- a/x/commitment/keeper/commitments.go +++ b/x/commitment/keeper/commitments.go @@ -71,24 +71,6 @@ func (k Keeper) GetAllCommitmentsWithPagination(ctx sdk.Context, pagination *que return listCommitments, pageRes, nil } -// remove after migration -func (k Keeper) GetAllLegacyCommitments(ctx sdk.Context) []*types.Commitments { - store := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), types.LegacyKeyPrefix(types.LegacyCommitmentsKeyPrefix)) - iterator := storetypes.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - - list := []*types.Commitments{} - - for ; iterator.Valid(); iterator.Next() { - var val types.Commitments - k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, &val) - } - - return list -} - // GetCommitments returns a commitments from its index func (k Keeper) GetCommitments(ctx sdk.Context, creator sdk.AccAddress) types.Commitments { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -114,13 +96,6 @@ func (k Keeper) HasCommitments(ctx sdk.Context, creator sdk.AccAddress) bool { return store.Has(key) } -// remove after migration -func (k Keeper) HasLegacyCommitments(ctx sdk.Context, creator string) bool { - store := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), types.LegacyKeyPrefix(types.LegacyCommitmentsKeyPrefix)) - b := store.Get(types.LegacyCommitmentsKey(creator)) - return b != nil -} - // RemoveCommitments removes a commitments from the store func (k Keeper) RemoveCommitments(ctx sdk.Context, creator sdk.AccAddress) { if k.HasCommitments(ctx, creator) { @@ -132,17 +107,6 @@ func (k Keeper) RemoveCommitments(ctx sdk.Context, creator sdk.AccAddress) { store.Delete(types.GetCommitmentsKey(creator)) } -// remove after migration -func (k Keeper) DeleteLegacyCommitments(ctx sdk.Context, creator string) { - if k.HasLegacyCommitments(ctx, creator) { - params := k.GetParams(ctx) - params.NumberOfCommitments-- - k.SetParams(ctx, params) - } - store := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), types.LegacyKeyPrefix(types.LegacyCommitmentsKeyPrefix)) - store.Delete(types.LegacyCommitmentsKey(creator)) -} - // IterateCommitments iterates over all Commitments and performs a // callback. func (k Keeper) IterateCommitments(ctx sdk.Context, handlerFn func(commitments types.Commitments) (stop bool)) { diff --git a/x/commitment/types/commitments.pb.go b/x/commitment/types/commitments.pb.go index 62e19987a..4e3ebcba9 100644 --- a/x/commitment/types/commitments.pb.go +++ b/x/commitment/types/commitments.pb.go @@ -267,172 +267,56 @@ func (m *VestingTokens) GetVestStartedTimestamp() int64 { return 0 } -type LegacyCommitments struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CommittedTokens []*CommittedTokens `protobuf:"bytes,2,rep,name=committed_tokens,json=committedTokens,proto3" json:"committed_tokens,omitempty"` - RewardsUnclaimed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=rewards_unclaimed,json=rewardsUnclaimed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards_unclaimed"` - Claimed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=claimed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"claimed"` - VestingTokens []*VestingTokens `protobuf:"bytes,5,rep,name=vesting_tokens,json=vestingTokens,proto3" json:"vesting_tokens,omitempty"` - RewardsByElysUnclaimed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=rewards_by_elys_unclaimed,json=rewardsByElysUnclaimed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards_by_elys_unclaimed"` - RewardsByEdenUnclaimed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=rewards_by_eden_unclaimed,json=rewardsByEdenUnclaimed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards_by_eden_unclaimed"` - RewardsByEdenbUnclaimed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=rewards_by_edenb_unclaimed,json=rewardsByEdenbUnclaimed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards_by_edenb_unclaimed"` - RewardsByUsdcUnclaimed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,9,rep,name=rewards_by_usdc_unclaimed,json=rewardsByUsdcUnclaimed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards_by_usdc_unclaimed"` -} - -func (m *LegacyCommitments) Reset() { *m = LegacyCommitments{} } -func (m *LegacyCommitments) String() string { return proto.CompactTextString(m) } -func (*LegacyCommitments) ProtoMessage() {} -func (*LegacyCommitments) Descriptor() ([]byte, []int) { - return fileDescriptor_47379c930fe66ed6, []int{4} -} -func (m *LegacyCommitments) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LegacyCommitments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LegacyCommitments.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 *LegacyCommitments) XXX_Merge(src proto.Message) { - xxx_messageInfo_LegacyCommitments.Merge(m, src) -} -func (m *LegacyCommitments) XXX_Size() int { - return m.Size() -} -func (m *LegacyCommitments) XXX_DiscardUnknown() { - xxx_messageInfo_LegacyCommitments.DiscardUnknown(m) -} - -var xxx_messageInfo_LegacyCommitments proto.InternalMessageInfo - -func (m *LegacyCommitments) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *LegacyCommitments) GetCommittedTokens() []*CommittedTokens { - if m != nil { - return m.CommittedTokens - } - return nil -} - -func (m *LegacyCommitments) GetRewardsUnclaimed() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.RewardsUnclaimed - } - return nil -} - -func (m *LegacyCommitments) GetClaimed() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Claimed - } - return nil -} - -func (m *LegacyCommitments) GetVestingTokens() []*VestingTokens { - if m != nil { - return m.VestingTokens - } - return nil -} - -func (m *LegacyCommitments) GetRewardsByElysUnclaimed() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.RewardsByElysUnclaimed - } - return nil -} - -func (m *LegacyCommitments) GetRewardsByEdenUnclaimed() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.RewardsByEdenUnclaimed - } - return nil -} - -func (m *LegacyCommitments) GetRewardsByEdenbUnclaimed() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.RewardsByEdenbUnclaimed - } - return nil -} - -func (m *LegacyCommitments) GetRewardsByUsdcUnclaimed() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.RewardsByUsdcUnclaimed - } - return nil -} - func init() { proto.RegisterType((*Commitments)(nil), "elys.commitment.Commitments") proto.RegisterType((*Lockup)(nil), "elys.commitment.Lockup") proto.RegisterType((*CommittedTokens)(nil), "elys.commitment.CommittedTokens") proto.RegisterType((*VestingTokens)(nil), "elys.commitment.VestingTokens") - proto.RegisterType((*LegacyCommitments)(nil), "elys.commitment.LegacyCommitments") } func init() { proto.RegisterFile("elys/commitment/commitments.proto", fileDescriptor_47379c930fe66ed6) } var fileDescriptor_47379c930fe66ed6 = []byte{ - // 734 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x95, 0xbf, 0x4f, 0xdb, 0x40, - 0x14, 0xc7, 0xe3, 0x24, 0x24, 0xe5, 0x52, 0x08, 0x58, 0x29, 0x04, 0xd4, 0x3a, 0x69, 0xa6, 0x54, - 0x55, 0xec, 0x42, 0x2b, 0x75, 0x26, 0x11, 0x03, 0x2a, 0xea, 0x60, 0xa0, 0x43, 0x17, 0xeb, 0x6c, - 0x5f, 0x8d, 0x95, 0xdc, 0x5d, 0xe4, 0x3b, 0x03, 0xf9, 0x07, 0xaa, 0x8e, 0xfd, 0x27, 0xba, 0x74, - 0x66, 0xac, 0xd4, 0x95, 0x11, 0x31, 0x55, 0x1d, 0x68, 0x15, 0xfe, 0x91, 0xca, 0x77, 0x67, 0x62, - 0x82, 0x18, 0x8a, 0xa0, 0xea, 0x92, 0xf8, 0xbd, 0x7b, 0x3f, 0x3e, 0xef, 0x7b, 0xbe, 0x33, 0x78, - 0x8a, 0x06, 0x23, 0x66, 0x79, 0x14, 0xe3, 0x90, 0x63, 0x44, 0x78, 0xe6, 0x91, 0x99, 0xc3, 0x88, - 0x72, 0xaa, 0x57, 0x93, 0x10, 0x73, 0xe2, 0x5f, 0x6d, 0x04, 0x94, 0x06, 0x03, 0x64, 0x89, 0x65, - 0x37, 0xfe, 0x60, 0xf1, 0x10, 0x23, 0xc6, 0x21, 0x1e, 0xca, 0x8c, 0x55, 0x63, 0x3a, 0xc0, 0x8f, - 0x23, 0xc8, 0x43, 0x4a, 0xd4, 0xfa, 0x8a, 0x47, 0x19, 0xa6, 0xcc, 0x11, 0x96, 0x25, 0x8d, 0x34, - 0x55, 0x5a, 0x96, 0x0b, 0x19, 0xb2, 0x0e, 0xd6, 0x5c, 0xc4, 0xe1, 0x9a, 0xe5, 0xd1, 0x30, 0x4d, - 0xad, 0x05, 0x34, 0xa0, 0x32, 0x2f, 0x79, 0x52, 0xde, 0xc7, 0xd3, 0x53, 0x0c, 0x61, 0x04, 0x71, - 0x5a, 0x73, 0x11, 0xe2, 0x90, 0x50, 0x4b, 0xfc, 0x4a, 0x57, 0xeb, 0x5b, 0x1e, 0x54, 0x7a, 0x93, - 0x49, 0xf5, 0x75, 0x50, 0xf6, 0x22, 0x04, 0x39, 0x8d, 0xea, 0x5a, 0x53, 0x6b, 0xcf, 0x76, 0xeb, - 0x67, 0xc7, 0x9d, 0x9a, 0x22, 0xdb, 0xf0, 0xfd, 0x08, 0x31, 0xb6, 0xc3, 0xa3, 0x90, 0x04, 0x76, - 0x1a, 0xa8, 0xbf, 0x01, 0x0b, 0xb2, 0x23, 0x47, 0xbe, 0xc3, 0x69, 0x1f, 0x11, 0x56, 0xcf, 0x37, - 0x0b, 0xed, 0xca, 0x7a, 0xd3, 0x9c, 0x92, 0xcc, 0xec, 0xa5, 0x81, 0xbb, 0x22, 0xce, 0xae, 0x7a, - 0x57, 0x1d, 0x3a, 0x02, 0x65, 0x6f, 0x00, 0x43, 0x8c, 0xfc, 0x7a, 0x41, 0xd4, 0x58, 0x31, 0x55, - 0xf7, 0x44, 0x09, 0x53, 0x29, 0x61, 0xf6, 0x68, 0x48, 0xba, 0x2f, 0x4e, 0xce, 0x1b, 0xb9, 0xaf, - 0xbf, 0x1a, 0xed, 0x20, 0xe4, 0xfb, 0xb1, 0x9b, 0xf4, 0x51, 0x22, 0xaa, 0xbf, 0x0e, 0xf3, 0xfb, - 0x16, 0x1f, 0x0d, 0x11, 0x13, 0x09, 0xcc, 0x4e, 0x6b, 0xeb, 0x9b, 0x60, 0xfe, 0x00, 0x31, 0x1e, - 0x92, 0x20, 0x25, 0x2e, 0x8a, 0x6e, 0xc6, 0x35, 0xe2, 0x77, 0x32, 0x4c, 0xf1, 0xce, 0x1d, 0x64, - 0xcd, 0xd6, 0x11, 0x28, 0x6d, 0x53, 0xaf, 0x1f, 0x0f, 0xf5, 0x1e, 0x28, 0x41, 0x4c, 0x63, 0xc2, - 0x95, 0x6e, 0xcf, 0x13, 0xb6, 0x9f, 0xe7, 0x8d, 0x47, 0x92, 0x84, 0xf9, 0x7d, 0x33, 0xa4, 0x16, - 0x86, 0x7c, 0xdf, 0xdc, 0x22, 0xfc, 0xec, 0xb8, 0x03, 0xd4, 0x58, 0x5b, 0x84, 0xdb, 0x2a, 0x55, - 0x7f, 0x06, 0x16, 0x62, 0x32, 0xa0, 0x5e, 0xdf, 0xb9, 0x7c, 0x93, 0xea, 0xf9, 0xa6, 0xd6, 0x2e, - 0xda, 0x55, 0xe9, 0xdf, 0x4d, 0xdd, 0xad, 0x2f, 0x1a, 0xa8, 0x4e, 0x89, 0xa9, 0xd7, 0xc0, 0x8c, - 0x8f, 0x08, 0xc5, 0x12, 0xc1, 0x96, 0x46, 0x86, 0x2c, 0x7f, 0x7b, 0xb2, 0xd7, 0xa0, 0x3c, 0x10, - 0x83, 0x32, 0xb5, 0x2d, 0xcb, 0xd7, 0x84, 0x92, 0x42, 0x74, 0x8b, 0x49, 0x79, 0x3b, 0x8d, 0x6e, - 0x7d, 0xcf, 0x83, 0xb9, 0x2b, 0x12, 0xde, 0x40, 0xf9, 0x16, 0x3c, 0xe4, 0x94, 0xc3, 0x81, 0x73, - 0x7b, 0xd6, 0x8a, 0x28, 0xb0, 0x21, 0x81, 0x6d, 0x30, 0xaf, 0xf6, 0x3a, 0xad, 0x58, 0xf8, 0xfb, - 0x8a, 0x73, 0xaa, 0x84, 0xaa, 0xf9, 0x04, 0x00, 0x12, 0x63, 0xc7, 0x4d, 0x66, 0x63, 0xf5, 0x99, - 0xa6, 0xd6, 0x2e, 0xd8, 0xb3, 0x24, 0xc6, 0x5d, 0xe1, 0xd0, 0x1b, 0xa0, 0xc2, 0x38, 0x8c, 0xb8, - 0x0c, 0xa8, 0x97, 0xc4, 0x3a, 0x10, 0x2e, 0x11, 0xa1, 0xbf, 0x02, 0x4b, 0xc9, 0xeb, 0xe3, 0x08, - 0x57, 0x72, 0x56, 0x2e, 0x37, 0xb9, 0x2c, 0x62, 0x6b, 0xc9, 0xea, 0x8e, 0x5c, 0x9c, 0xec, 0xf4, - 0xb8, 0x0c, 0x16, 0xb7, 0x51, 0x00, 0xbd, 0xd1, 0x7f, 0x75, 0x50, 0x8f, 0xc0, 0x62, 0x84, 0x0e, - 0x61, 0xe4, 0x33, 0x27, 0x26, 0xf7, 0x78, 0x64, 0x17, 0x54, 0x97, 0xbd, 0xb4, 0x49, 0xf6, 0x8a, - 0x28, 0xfe, 0xd3, 0x2b, 0x62, 0xe6, 0x16, 0x57, 0x84, 0xfe, 0x51, 0x03, 0x2b, 0xa9, 0x50, 0xee, - 0xc8, 0x49, 0x72, 0x33, 0x82, 0x95, 0xee, 0x7e, 0x80, 0x25, 0xd5, 0xad, 0x3b, 0xda, 0x1c, 0x8c, - 0x32, 0xb2, 0x4d, 0x83, 0xf8, 0x88, 0x64, 0x40, 0xca, 0xf7, 0x0a, 0xe2, 0x23, 0x32, 0x01, 0xf9, - 0xa4, 0x81, 0xd5, 0x29, 0x10, 0x37, 0x43, 0xf2, 0xe0, 0xee, 0x49, 0x96, 0xaf, 0x90, 0xb8, 0x37, - 0x6a, 0x12, 0x33, 0xdf, 0xcb, 0x90, 0xcc, 0xde, 0xa7, 0x26, 0x7b, 0xcc, 0xf7, 0x2e, 0x41, 0xba, - 0x5b, 0x27, 0x63, 0x43, 0x3b, 0x1d, 0x1b, 0xda, 0xef, 0xb1, 0xa1, 0x7d, 0xbe, 0x30, 0x72, 0xa7, - 0x17, 0x46, 0xee, 0xc7, 0x85, 0x91, 0x7b, 0x6f, 0x65, 0x6a, 0x27, 0x2f, 0x4f, 0x87, 0x20, 0x7e, - 0x48, 0xa3, 0xbe, 0x30, 0xac, 0xa3, 0xec, 0xc7, 0x5e, 0x34, 0x72, 0x4b, 0xe2, 0xcb, 0xfe, 0xf2, - 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xed, 0x71, 0xb0, 0x37, 0xd2, 0x08, 0x00, 0x00, + // 614 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0x8e, 0x93, 0x36, 0x51, 0x2f, 0xb4, 0x29, 0x56, 0x00, 0xb7, 0x02, 0x27, 0x64, 0x0a, 0x42, + 0xf1, 0xd1, 0x82, 0xc4, 0xdc, 0x44, 0x0c, 0x11, 0x88, 0xc1, 0xad, 0x18, 0x58, 0xac, 0xb3, 0x7d, + 0xb8, 0x96, 0x7d, 0x77, 0x91, 0xef, 0x1c, 0xda, 0x7f, 0xc1, 0x9f, 0x60, 0x61, 0xee, 0x88, 0xc4, + 0xda, 0xb1, 0xea, 0x84, 0x18, 0x0a, 0x4a, 0xfe, 0x08, 0xf2, 0xdd, 0x39, 0x4d, 0x53, 0x31, 0xd0, + 0xa5, 0xf5, 0x7b, 0xef, 0x7b, 0xdf, 0x7d, 0xef, 0x7b, 0x77, 0x01, 0x4f, 0x71, 0x7a, 0xca, 0x61, + 0xc0, 0x08, 0x89, 0x05, 0xc1, 0x54, 0x2c, 0x7d, 0x72, 0x67, 0x92, 0x31, 0xc1, 0xcc, 0x56, 0x01, + 0x71, 0xae, 0xf3, 0xbb, 0x9d, 0x88, 0xb1, 0x28, 0xc5, 0x50, 0x96, 0xfd, 0xfc, 0x13, 0x14, 0x31, + 0xc1, 0x5c, 0x20, 0x32, 0x51, 0x1d, 0xbb, 0xf6, 0x2a, 0x20, 0xcc, 0x33, 0x24, 0x62, 0x46, 0x75, + 0x7d, 0x27, 0x60, 0x9c, 0x30, 0xee, 0xc9, 0x08, 0xaa, 0xa0, 0x6c, 0x55, 0x11, 0xf4, 0x11, 0xc7, + 0x70, 0xba, 0xe7, 0x63, 0x81, 0xf6, 0x60, 0xc0, 0xe2, 0xb2, 0xb5, 0x1d, 0xb1, 0x88, 0xa9, 0xbe, + 0xe2, 0x4b, 0x67, 0x1f, 0xaf, 0x4e, 0x31, 0x41, 0x19, 0x22, 0x25, 0xe7, 0x7d, 0x44, 0x62, 0xca, + 0xa0, 0xfc, 0xab, 0x52, 0xbd, 0xef, 0x55, 0xd0, 0x1c, 0x5d, 0x4f, 0x6a, 0xee, 0x83, 0x46, 0x90, + 0x61, 0x24, 0x58, 0x66, 0x19, 0x5d, 0xa3, 0xbf, 0x31, 0xb4, 0x2e, 0xcf, 0x06, 0x6d, 0xad, 0xec, + 0x20, 0x0c, 0x33, 0xcc, 0xf9, 0xa1, 0xc8, 0x62, 0x1a, 0xb9, 0x25, 0xd0, 0x7c, 0x0b, 0xb6, 0xd5, + 0x89, 0x02, 0x87, 0x9e, 0x60, 0x09, 0xa6, 0xdc, 0xaa, 0x76, 0x6b, 0xfd, 0xe6, 0x7e, 0xd7, 0x59, + 0xb1, 0xcc, 0x19, 0x95, 0xc0, 0x23, 0x89, 0x73, 0x5b, 0xc1, 0xcd, 0x84, 0x89, 0x41, 0x23, 0x48, + 0x51, 0x4c, 0x70, 0x68, 0xd5, 0x24, 0xc7, 0x8e, 0xa3, 0x4f, 0x2f, 0x9c, 0x70, 0xb4, 0x13, 0xce, + 0x88, 0xc5, 0x74, 0xf8, 0xe2, 0xfc, 0xaa, 0x53, 0xf9, 0xf6, 0xbb, 0xd3, 0x8f, 0x62, 0x71, 0x9c, + 0xfb, 0xc5, 0x39, 0xda, 0x44, 0xfd, 0x6f, 0xc0, 0xc3, 0x04, 0x8a, 0xd3, 0x09, 0xe6, 0xb2, 0x81, + 0xbb, 0x25, 0xb7, 0xf9, 0x06, 0x6c, 0x4d, 0x31, 0x17, 0x31, 0x8d, 0x4a, 0xc5, 0x6b, 0xf2, 0x34, + 0xfb, 0x96, 0xe2, 0x0f, 0x0a, 0xa6, 0xf5, 0x6e, 0x4e, 0x97, 0xc3, 0xde, 0x09, 0xa8, 0xbf, 0x63, + 0x41, 0x92, 0x4f, 0xcc, 0x11, 0xa8, 0x23, 0xc2, 0x72, 0x2a, 0xb4, 0x6f, 0xcf, 0x0b, 0x6d, 0xbf, + 0xae, 0x3a, 0x0f, 0x94, 0x12, 0x1e, 0x26, 0x4e, 0xcc, 0x20, 0x41, 0xe2, 0xd8, 0x19, 0x53, 0x71, + 0x79, 0x36, 0x00, 0x7a, 0xac, 0x31, 0x15, 0xae, 0x6e, 0x35, 0x9f, 0x81, 0xed, 0x9c, 0xa6, 0x2c, + 0x48, 0xbc, 0xc5, 0x4d, 0xb2, 0xaa, 0x5d, 0xa3, 0xbf, 0xe6, 0xb6, 0x54, 0xfe, 0xa8, 0x4c, 0xf7, + 0xbe, 0x1a, 0xa0, 0xb5, 0x62, 0xa6, 0xd9, 0x06, 0xeb, 0x21, 0xa6, 0x8c, 0x28, 0x09, 0xae, 0x0a, + 0x96, 0x94, 0x55, 0xef, 0xae, 0xec, 0x35, 0x68, 0xa4, 0x72, 0x50, 0xae, 0xd7, 0xf2, 0xe8, 0x96, + 0x51, 0xca, 0x88, 0xe1, 0x5a, 0x41, 0xef, 0x96, 0xe8, 0xde, 0x8f, 0x2a, 0xd8, 0xbc, 0x61, 0xe1, + 0x3f, 0x54, 0xbe, 0x07, 0xf7, 0x04, 0x13, 0x28, 0xf5, 0xee, 0xae, 0xb5, 0x29, 0x09, 0x0e, 0x94, + 0x60, 0x17, 0x6c, 0xe9, 0x5d, 0x97, 0x8c, 0xb5, 0xff, 0x67, 0xdc, 0xd4, 0x14, 0x9a, 0xf3, 0x09, + 0x00, 0x34, 0x27, 0x9e, 0x5f, 0xcc, 0xc6, 0xad, 0xf5, 0xae, 0xd1, 0xaf, 0xb9, 0x1b, 0x34, 0x27, + 0x43, 0x99, 0x30, 0x3b, 0xa0, 0xc9, 0x05, 0xca, 0x84, 0x02, 0x58, 0x75, 0x59, 0x07, 0x32, 0x25, + 0x11, 0xe6, 0x2b, 0xf0, 0xb0, 0xb8, 0x3e, 0x9e, 0x4c, 0x15, 0x6f, 0x65, 0xb1, 0xe4, 0x86, 0xc4, + 0xb6, 0x8b, 0xea, 0xa1, 0x2a, 0x2e, 0x36, 0x3d, 0x1c, 0x9f, 0xcf, 0x6c, 0xe3, 0x62, 0x66, 0x1b, + 0x7f, 0x66, 0xb6, 0xf1, 0x65, 0x6e, 0x57, 0x2e, 0xe6, 0x76, 0xe5, 0xe7, 0xdc, 0xae, 0x7c, 0x84, + 0x4b, 0xf7, 0xbe, 0xd8, 0xc6, 0x80, 0x62, 0xf1, 0x99, 0x65, 0x89, 0x0c, 0xe0, 0xc9, 0xf2, 0xef, + 0x80, 0x7c, 0x04, 0x7e, 0x5d, 0x3e, 0xfa, 0x97, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xec, + 0xd1, 0x55, 0xed, 0x04, 0x00, 0x00, } func (m *Commitments) Marshal() (dAtA []byte, err error) { @@ -664,148 +548,6 @@ func (m *VestingTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *LegacyCommitments) 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 *LegacyCommitments) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LegacyCommitments) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RewardsByUsdcUnclaimed) > 0 { - for iNdEx := len(m.RewardsByUsdcUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewardsByUsdcUnclaimed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - if len(m.RewardsByEdenbUnclaimed) > 0 { - for iNdEx := len(m.RewardsByEdenbUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewardsByEdenbUnclaimed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - if len(m.RewardsByEdenUnclaimed) > 0 { - for iNdEx := len(m.RewardsByEdenUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewardsByEdenUnclaimed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.RewardsByElysUnclaimed) > 0 { - for iNdEx := len(m.RewardsByElysUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewardsByElysUnclaimed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.VestingTokens) > 0 { - for iNdEx := len(m.VestingTokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VestingTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Claimed) > 0 { - for iNdEx := len(m.Claimed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Claimed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.RewardsUnclaimed) > 0 { - for iNdEx := len(m.RewardsUnclaimed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewardsUnclaimed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.CommittedTokens) > 0 { - for iNdEx := len(m.CommittedTokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CommittedTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommitments(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintCommitments(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func encodeVarintCommitments(dAtA []byte, offset int, v uint64) int { offset -= sovCommitments(v) base := offset @@ -909,67 +651,6 @@ func (m *VestingTokens) Size() (n int) { return n } -func (m *LegacyCommitments) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovCommitments(uint64(l)) - } - if len(m.CommittedTokens) > 0 { - for _, e := range m.CommittedTokens { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.RewardsUnclaimed) > 0 { - for _, e := range m.RewardsUnclaimed { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.Claimed) > 0 { - for _, e := range m.Claimed { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.VestingTokens) > 0 { - for _, e := range m.VestingTokens { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.RewardsByElysUnclaimed) > 0 { - for _, e := range m.RewardsByElysUnclaimed { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.RewardsByEdenUnclaimed) > 0 { - for _, e := range m.RewardsByEdenUnclaimed { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.RewardsByEdenbUnclaimed) > 0 { - for _, e := range m.RewardsByEdenbUnclaimed { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - if len(m.RewardsByUsdcUnclaimed) > 0 { - for _, e := range m.RewardsByUsdcUnclaimed { - l = e.Size() - n += 1 + l + sovCommitments(uint64(l)) - } - } - return n -} - func sovCommitments(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1620,360 +1301,6 @@ func (m *VestingTokens) Unmarshal(dAtA []byte) error { } return nil } -func (m *LegacyCommitments) 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 ErrIntOverflowCommitments - } - 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: LegacyCommitments: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LegacyCommitments: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - 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 ErrInvalidLengthCommitments - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommittedTokens", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CommittedTokens = append(m.CommittedTokens, &CommittedTokens{}) - if err := m.CommittedTokens[len(m.CommittedTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsUnclaimed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RewardsUnclaimed = append(m.RewardsUnclaimed, types.Coin{}) - if err := m.RewardsUnclaimed[len(m.RewardsUnclaimed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Claimed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Claimed = append(m.Claimed, types.Coin{}) - if err := m.Claimed[len(m.Claimed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VestingTokens", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VestingTokens = append(m.VestingTokens, &VestingTokens{}) - if err := m.VestingTokens[len(m.VestingTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsByElysUnclaimed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RewardsByElysUnclaimed = append(m.RewardsByElysUnclaimed, types.Coin{}) - if err := m.RewardsByElysUnclaimed[len(m.RewardsByElysUnclaimed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsByEdenUnclaimed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RewardsByEdenUnclaimed = append(m.RewardsByEdenUnclaimed, types.Coin{}) - if err := m.RewardsByEdenUnclaimed[len(m.RewardsByEdenUnclaimed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsByEdenbUnclaimed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RewardsByEdenbUnclaimed = append(m.RewardsByEdenbUnclaimed, types.Coin{}) - if err := m.RewardsByEdenbUnclaimed[len(m.RewardsByEdenbUnclaimed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsByUsdcUnclaimed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommitments - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommitments - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommitments - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RewardsByUsdcUnclaimed = append(m.RewardsByUsdcUnclaimed, types.Coin{}) - if err := m.RewardsByUsdcUnclaimed[len(m.RewardsByUsdcUnclaimed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommitments(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommitments - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipCommitments(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/commitment/types/keys.go b/x/commitment/types/keys.go index a0af09043..6a17dff04 100644 --- a/x/commitment/types/keys.go +++ b/x/commitment/types/keys.go @@ -11,9 +11,6 @@ const ( // StoreKey defines the primary module store key StoreKey = ModuleName - - LegacyParamsKey = "Params/value/" - LegacyCommitmentsKeyPrefix = "Commitments/value/" ) const MaxPageLimit = 10000 @@ -23,22 +20,6 @@ var ( ParamsKey = []byte{0x02} ) -func LegacyKeyPrefix(p string) []byte { - return []byte(p) -} - -func LegacyCommitmentsKey( - creator string, -) []byte { - var key []byte - - creatorBytes := []byte(creator) - key = append(key, creatorBytes...) - key = append(key, []byte("/")...) - - return key -} - func GetCommitmentsKey(creator sdk.AccAddress) []byte { return append(CommitmentsKeyPrefix, address.MustLengthPrefix(creator)...) } diff --git a/x/commitment/types/params.go b/x/commitment/types/params.go index a125fc5e9..7ed654c9f 100644 --- a/x/commitment/types/params.go +++ b/x/commitment/types/params.go @@ -1,10 +1,10 @@ package types import ( - errorsmod "cosmossdk.io/errors" "fmt" + + errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "gopkg.in/yaml.v2" ) // DefaultParams returns a default set of parameters @@ -49,14 +49,3 @@ func (vestingInfo VestingInfo) Validate() error { } return nil } - -// Validate validates the set of params -func (p LegacyParams) Validate() error { - return nil -} - -// String implements the Stringer interface. -func (p LegacyParams) String() string { - out, _ := yaml.Marshal(p) - return string(out) -} diff --git a/x/commitment/types/params.pb.go b/x/commitment/types/params.pb.go index e9556a466..257974620 100644 --- a/x/commitment/types/params.pb.go +++ b/x/commitment/types/params.pb.go @@ -125,57 +125,6 @@ func (m *Params) GetNumberOfCommitments() uint64 { return 0 } -type LegacyParams struct { - VestingInfos []*VestingInfo `protobuf:"bytes,1,rep,name=vesting_infos,json=vestingInfos,proto3" json:"vesting_infos,omitempty"` - TotalCommitted github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=total_committed,json=totalCommitted,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_committed"` -} - -func (m *LegacyParams) Reset() { *m = LegacyParams{} } -func (*LegacyParams) ProtoMessage() {} -func (*LegacyParams) Descriptor() ([]byte, []int) { - return fileDescriptor_92e317feaf73ff7e, []int{1} -} -func (m *LegacyParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LegacyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LegacyParams.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 *LegacyParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_LegacyParams.Merge(m, src) -} -func (m *LegacyParams) XXX_Size() int { - return m.Size() -} -func (m *LegacyParams) XXX_DiscardUnknown() { - xxx_messageInfo_LegacyParams.DiscardUnknown(m) -} - -var xxx_messageInfo_LegacyParams proto.InternalMessageInfo - -func (m *LegacyParams) GetVestingInfos() []*VestingInfo { - if m != nil { - return m.VestingInfos - } - return nil -} - -func (m *LegacyParams) GetTotalCommitted() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.TotalCommitted - } - return nil -} - type VestingInfo struct { BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` VestingDenom string `protobuf:"bytes,2,opt,name=vesting_denom,json=vestingDenom,proto3" json:"vesting_denom,omitempty"` @@ -188,7 +137,7 @@ func (m *VestingInfo) Reset() { *m = VestingInfo{} } func (m *VestingInfo) String() string { return proto.CompactTextString(m) } func (*VestingInfo) ProtoMessage() {} func (*VestingInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_92e317feaf73ff7e, []int{2} + return fileDescriptor_92e317feaf73ff7e, []int{1} } func (m *VestingInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -248,50 +197,47 @@ func (m *VestingInfo) GetNumMaxVestings() int64 { func init() { proto.RegisterEnum("elys.commitment.EarnType", EarnType_name, EarnType_value) proto.RegisterType((*Params)(nil), "elys.commitment.Params") - proto.RegisterType((*LegacyParams)(nil), "elys.commitment.LegacyParams") proto.RegisterType((*VestingInfo)(nil), "elys.commitment.VestingInfo") } func init() { proto.RegisterFile("elys/commitment/params.proto", fileDescriptor_92e317feaf73ff7e) } var fileDescriptor_92e317feaf73ff7e = []byte{ - // 577 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xb5, 0x9b, 0xb4, 0xfa, 0x3a, 0xfd, 0x49, 0x3b, 0x1f, 0x95, 0xdc, 0xaa, 0x75, 0xaa, 0xb2, - 0x89, 0x40, 0xb5, 0x69, 0xd9, 0xb1, 0xab, 0xd3, 0x52, 0x59, 0x4a, 0xd2, 0xc8, 0x01, 0x24, 0xd8, - 0x8c, 0x6c, 0x67, 0x92, 0x5a, 0xc9, 0xcc, 0x44, 0x9e, 0xc9, 0x9f, 0x78, 0x09, 0x96, 0x2c, 0x59, - 0xb3, 0xe6, 0x21, 0xba, 0x41, 0xaa, 0x58, 0x21, 0x16, 0x05, 0x25, 0x0f, 0xc0, 0x03, 0xb0, 0x41, - 0x33, 0xe3, 0x26, 0x11, 0x4b, 0x56, 0xac, 0x92, 0x7b, 0xce, 0x9d, 0x7b, 0xce, 0xb9, 0xe3, 0x01, - 0xfb, 0xb8, 0x3b, 0xe6, 0x6e, 0xcc, 0x08, 0x49, 0x04, 0xc1, 0x54, 0xb8, 0xbd, 0x30, 0x0d, 0x09, - 0x77, 0x7a, 0x29, 0x13, 0x0c, 0x16, 0x24, 0xeb, 0xcc, 0xd9, 0xbd, 0x07, 0x6d, 0xd6, 0x66, 0x8a, - 0x73, 0xe5, 0x3f, 0xdd, 0xb6, 0xb7, 0x1b, 0x33, 0x4e, 0x18, 0x47, 0x9a, 0xd0, 0x45, 0x46, 0xd9, - 0xba, 0x72, 0xa3, 0x90, 0x63, 0x77, 0x70, 0x12, 0x61, 0x11, 0x9e, 0xb8, 0x31, 0x4b, 0xa8, 0xe6, - 0x8f, 0x7e, 0x99, 0x60, 0xa5, 0xae, 0x24, 0xe1, 0x25, 0xd8, 0x18, 0x60, 0x2e, 0x12, 0xda, 0x46, - 0x09, 0x6d, 0x31, 0x6e, 0x99, 0x87, 0xb9, 0xd2, 0xda, 0xe9, 0xbe, 0xf3, 0x87, 0x09, 0xe7, 0x95, - 0xee, 0xf2, 0x69, 0x8b, 0x79, 0xf9, 0x9b, 0xbb, 0xa2, 0x11, 0xac, 0x0f, 0xe6, 0x10, 0x87, 0x02, - 0x14, 0x04, 0x13, 0x61, 0x17, 0xe9, 0x33, 0x02, 0x37, 0xad, 0x25, 0x35, 0x6a, 0xd7, 0xc9, 0xbc, - 0x49, 0x37, 0x4e, 0xe6, 0xc6, 0x29, 0xb3, 0x84, 0x7a, 0x4f, 0xe4, 0x9c, 0x8f, 0xdf, 0x8b, 0xa5, - 0x76, 0x22, 0xae, 0xfb, 0x91, 0x94, 0xcb, 0x82, 0x64, 0x3f, 0xc7, 0xbc, 0xd9, 0x71, 0xc5, 0xb8, - 0x87, 0xb9, 0x3a, 0xc0, 0x83, 0x4d, 0xa5, 0x51, 0xbe, 0x97, 0x80, 0xa7, 0x60, 0x87, 0xf6, 0x49, - 0x84, 0x53, 0xc4, 0x5a, 0x68, 0xee, 0x96, 0x5b, 0xb9, 0x43, 0xb3, 0x94, 0x0f, 0xfe, 0xd7, 0xe4, - 0x55, 0xab, 0x3c, 0xa7, 0x8e, 0x3e, 0x9b, 0x60, 0xbd, 0x82, 0xdb, 0x61, 0x3c, 0xce, 0x76, 0x70, - 0xf6, 0x17, 0x3b, 0xf8, 0x17, 0xd2, 0x3f, 0xcb, 0xbf, 0xff, 0x50, 0x34, 0x8e, 0x7e, 0x9a, 0x60, - 0x6d, 0xc1, 0x19, 0x3c, 0x00, 0x40, 0x8a, 0xa1, 0x26, 0xa6, 0x8c, 0x58, 0xe6, 0xa1, 0x59, 0x5a, - 0x0d, 0x56, 0x25, 0x72, 0x2e, 0x01, 0xf8, 0x70, 0x9e, 0x56, 0x77, 0x2c, 0xa9, 0x8e, 0xfb, 0x3c, - 0xba, 0xe9, 0x00, 0x00, 0xda, 0x27, 0x28, 0xea, 0xb2, 0xb8, 0xa3, 0x97, 0x99, 0x0b, 0x56, 0x69, - 0x9f, 0x78, 0x0a, 0x80, 0x0d, 0x50, 0x90, 0xed, 0x88, 0xb2, 0x21, 0x6a, 0x85, 0xb1, 0x60, 0xa9, - 0x95, 0x97, 0x53, 0xbc, 0xc7, 0x32, 0xd3, 0xb7, 0xbb, 0xe2, 0x8e, 0x4e, 0xc0, 0x9b, 0x1d, 0x27, - 0x61, 0x2e, 0x09, 0xc5, 0xb5, 0xe3, 0x53, 0xf1, 0xe5, 0xd3, 0x31, 0xc8, 0xd6, 0xe1, 0x53, 0x11, - 0x28, 0x1f, 0x35, 0x36, 0x7c, 0xae, 0x26, 0xc0, 0x12, 0xd8, 0x92, 0x9a, 0x24, 0x1c, 0xa1, 0xcc, - 0x0b, 0xb7, 0x96, 0x95, 0xf2, 0x26, 0xed, 0x93, 0x6a, 0x38, 0xca, 0x42, 0xf2, 0x47, 0x6f, 0xc1, - 0x7f, 0x17, 0x61, 0x4a, 0x5f, 0x8c, 0x7b, 0x18, 0x16, 0xc0, 0xda, 0x59, 0xa5, 0x82, 0xea, 0xc1, - 0xd5, 0x65, 0x70, 0x56, 0xdd, 0x32, 0xe0, 0x16, 0x58, 0x7f, 0xd9, 0x38, 0x2f, 0xcf, 0x10, 0x53, - 0x22, 0x17, 0x95, 0xd7, 0x8d, 0x19, 0xb2, 0xa4, 0x90, 0xf3, 0x8b, 0xda, 0x0c, 0xc9, 0xc1, 0x6d, - 0xb0, 0x21, 0x11, 0x6f, 0x06, 0xe5, 0xe1, 0x0e, 0xd8, 0xae, 0xd4, 0x51, 0xd5, 0xaf, 0xf9, 0xb5, - 0xcb, 0x19, 0xbc, 0xec, 0xf9, 0x37, 0x13, 0xdb, 0xbc, 0x9d, 0xd8, 0xe6, 0x8f, 0x89, 0x6d, 0xbe, - 0x9b, 0xda, 0xc6, 0xed, 0xd4, 0x36, 0xbe, 0x4e, 0x6d, 0xe3, 0x8d, 0xbb, 0x70, 0x91, 0xf2, 0xd3, - 0x39, 0xa6, 0x58, 0x0c, 0x59, 0xda, 0x51, 0x85, 0x3b, 0x5a, 0x7c, 0xf0, 0xea, 0x56, 0xa3, 0x15, - 0xf5, 0x1c, 0x9f, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x90, 0x47, 0x6d, 0x75, 0x10, 0x04, 0x00, + // 545 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x93, 0xdf, 0x6e, 0xda, 0x30, + 0x14, 0xc6, 0x09, 0xd0, 0x6a, 0x98, 0xb6, 0x50, 0x6f, 0x48, 0x69, 0xd5, 0x06, 0xd4, 0xdd, 0xa0, + 0x4d, 0x24, 0x6b, 0xf7, 0x04, 0x0d, 0x30, 0x14, 0x09, 0x28, 0x0a, 0xdb, 0xa4, 0xed, 0xc6, 0x4a, + 0x20, 0xd0, 0x08, 0x6c, 0xa3, 0xd8, 0xfc, 0xd3, 0x5e, 0x62, 0xcf, 0xb1, 0xeb, 0x3d, 0x44, 0x2f, + 0xab, 0x5d, 0x4d, 0xbb, 0xe8, 0x26, 0x78, 0x80, 0x3d, 0xc0, 0x6e, 0x26, 0xdb, 0x29, 0xa0, 0x5e, + 0x25, 0xfe, 0x7d, 0xc7, 0xe7, 0xfb, 0x8e, 0xe3, 0x80, 0xb3, 0x60, 0xbc, 0x64, 0x56, 0x8f, 0x62, + 0x1c, 0x72, 0x1c, 0x10, 0x6e, 0x4d, 0xbc, 0xc8, 0xc3, 0xcc, 0x9c, 0x44, 0x94, 0x53, 0x98, 0x13, + 0xaa, 0xb9, 0x55, 0x4f, 0x5f, 0x0c, 0xe9, 0x90, 0x4a, 0xcd, 0x12, 0x6f, 0xaa, 0xec, 0xf4, 0xa4, + 0x47, 0x19, 0xa6, 0x0c, 0x29, 0x41, 0x2d, 0x62, 0xc9, 0x50, 0x2b, 0xcb, 0xf7, 0x58, 0x60, 0xcd, + 0x2e, 0xfd, 0x80, 0x7b, 0x97, 0x56, 0x8f, 0x86, 0x44, 0xe9, 0x17, 0xff, 0x34, 0xb0, 0xdf, 0x91, + 0x96, 0xb0, 0x01, 0x0e, 0x67, 0x01, 0xe3, 0x21, 0x19, 0xa2, 0x90, 0x0c, 0x28, 0xd3, 0xb5, 0x52, + 0xaa, 0x9c, 0xbd, 0x3a, 0x33, 0x9f, 0x84, 0x30, 0x3f, 0xaa, 0x2a, 0x87, 0x0c, 0xa8, 0x9d, 0xbe, + 0x7b, 0x28, 0x26, 0xdc, 0x83, 0xd9, 0x16, 0x31, 0xc8, 0x41, 0x8e, 0x53, 0xee, 0x8d, 0x91, 0xda, + 0xc3, 0x83, 0xbe, 0x9e, 0x94, 0xad, 0x4e, 0xcc, 0x38, 0x9b, 0x48, 0x63, 0xc6, 0x69, 0xcc, 0x2a, + 0x0d, 0x89, 0xfd, 0x46, 0xf4, 0xf9, 0xf6, 0xbb, 0x58, 0x1e, 0x86, 0xfc, 0x76, 0xea, 0x0b, 0xbb, + 0x78, 0x90, 0xf8, 0x51, 0x61, 0xfd, 0x91, 0xc5, 0x97, 0x93, 0x80, 0xc9, 0x0d, 0xcc, 0x3d, 0x92, + 0x1e, 0xd5, 0x47, 0x0b, 0x78, 0x05, 0x0a, 0x64, 0x8a, 0xfd, 0x20, 0x42, 0x74, 0x80, 0xb6, 0x69, + 0x99, 0x9e, 0x2a, 0x69, 0xe5, 0xb4, 0xfb, 0x5c, 0x89, 0x37, 0x83, 0xea, 0x56, 0xba, 0xf8, 0xab, + 0x81, 0xec, 0xce, 0x34, 0xf0, 0x1c, 0x00, 0x11, 0x0d, 0xf5, 0x03, 0x42, 0xb1, 0xae, 0x95, 0xb4, + 0x72, 0xc6, 0xcd, 0x08, 0x52, 0x13, 0x00, 0xbe, 0xdc, 0x9e, 0x90, 0xaa, 0x48, 0xca, 0x8a, 0xc7, + 0xe9, 0x55, 0xd1, 0x39, 0x00, 0x64, 0x8a, 0x91, 0x3f, 0xa6, 0xbd, 0x91, 0x32, 0x4f, 0xb9, 0x19, + 0x32, 0xc5, 0xb6, 0x04, 0xb0, 0x0b, 0x72, 0xa2, 0x1c, 0x11, 0x3a, 0x47, 0x03, 0xaf, 0xc7, 0x69, + 0xa4, 0xa7, 0x45, 0x17, 0xfb, 0xb5, 0x38, 0x81, 0x5f, 0x0f, 0xc5, 0x82, 0x9a, 0x97, 0xf5, 0x47, + 0x66, 0x48, 0x2d, 0xec, 0xf1, 0x5b, 0xd3, 0x21, 0xfc, 0xc7, 0xf7, 0x0a, 0x88, 0x0f, 0xcf, 0x21, + 0xdc, 0x95, 0x39, 0xda, 0x74, 0xfe, 0x4e, 0x76, 0x80, 0x65, 0x90, 0x17, 0x9e, 0xd8, 0x5b, 0xa0, + 0x38, 0x0b, 0xd3, 0xf7, 0xa4, 0xf3, 0x11, 0x99, 0xe2, 0x96, 0xb7, 0x88, 0x87, 0x64, 0xaf, 0xbe, + 0x80, 0x67, 0x75, 0x2f, 0x22, 0xef, 0x97, 0x93, 0x00, 0xe6, 0x40, 0xf6, 0xba, 0xd9, 0x44, 0x1d, + 0xf7, 0xa6, 0xe1, 0x5e, 0xb7, 0xf2, 0x09, 0x98, 0x07, 0x07, 0x1f, 0xba, 0xb5, 0xea, 0x86, 0x68, + 0x82, 0xd4, 0x9b, 0x9f, 0xba, 0x1b, 0x92, 0x94, 0xa4, 0x56, 0x6f, 0x6f, 0x48, 0x0a, 0x1e, 0x83, + 0x43, 0x41, 0xec, 0x0d, 0x4a, 0xc3, 0x02, 0x38, 0x6e, 0x76, 0x50, 0xcb, 0x69, 0x3b, 0xed, 0xc6, + 0x06, 0xef, 0xd9, 0xce, 0xdd, 0xca, 0xd0, 0xee, 0x57, 0x86, 0xf6, 0x67, 0x65, 0x68, 0x5f, 0xd7, + 0x46, 0xe2, 0x7e, 0x6d, 0x24, 0x7e, 0xae, 0x8d, 0xc4, 0x67, 0x6b, 0xe7, 0xb3, 0x8b, 0xeb, 0x56, + 0x21, 0x01, 0x9f, 0xd3, 0x68, 0x24, 0x17, 0xd6, 0x62, 0xf7, 0x07, 0x91, 0x77, 0xc0, 0xdf, 0x97, + 0xd7, 0xf7, 0xed, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0x60, 0x11, 0x80, 0x40, 0x03, 0x00, 0x00, } @@ -351,57 +297,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *LegacyParams) 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 *LegacyParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TotalCommitted) > 0 { - for iNdEx := len(m.TotalCommitted) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TotalCommitted[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.VestingInfos) > 0 { - for iNdEx := len(m.VestingInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VestingInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - func (m *VestingInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -494,27 +389,6 @@ func (m *Params) Size() (n int) { return n } -func (m *LegacyParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.VestingInfos) > 0 { - for _, e := range m.VestingInfos { - l = e.Size() - n += 1 + l + sovParams(uint64(l)) - } - } - if len(m.TotalCommitted) > 0 { - for _, e := range m.TotalCommitted { - l = e.Size() - n += 1 + l + sovParams(uint64(l)) - } - } - return n -} - func (m *VestingInfo) Size() (n int) { if m == nil { return 0 @@ -683,124 +557,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } -func (m *LegacyParams) 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 ErrIntOverflowParams - } - 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: LegacyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LegacyParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VestingInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VestingInfos = append(m.VestingInfos, &VestingInfo{}) - if err := m.VestingInfos[len(m.VestingInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalCommitted", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TotalCommitted = append(m.TotalCommitted, types.Coin{}) - if err := m.TotalCommitted[len(m.TotalCommitted)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *VestingInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0