diff --git a/api/elys/commitment/params.pulsar.go b/api/elys/commitment/params.pulsar.go index 3aabe57bd..126eec42d 100644 --- a/api/elys/commitment/params.pulsar.go +++ b/api/elys/commitment/params.pulsar.go @@ -1236,21 +1236,15 @@ func (x *_Params_2_list) IsValid() bool { } var ( - md_Params protoreflect.MessageDescriptor - fd_Params_vesting_infos protoreflect.FieldDescriptor - fd_Params_total_committed protoreflect.FieldDescriptor - fd_Params_number_of_commitments protoreflect.FieldDescriptor - fd_Params_enable_vest_now protoreflect.FieldDescriptor - fd_Params_start_atom_stakers_height protoreflect.FieldDescriptor - fd_Params_end_atom_stakers_height protoreflect.FieldDescriptor - fd_Params_start_cadets_height protoreflect.FieldDescriptor - fd_Params_end_cadets_height protoreflect.FieldDescriptor - fd_Params_start_nft_holders_height protoreflect.FieldDescriptor - fd_Params_end_nft_holders_height protoreflect.FieldDescriptor - fd_Params_start_governors_height protoreflect.FieldDescriptor - fd_Params_end_governors_height protoreflect.FieldDescriptor - fd_Params_total_elys_claimed protoreflect.FieldDescriptor - fd_Params_total_eden_claimed protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor + fd_Params_vesting_infos protoreflect.FieldDescriptor + fd_Params_total_committed protoreflect.FieldDescriptor + fd_Params_number_of_commitments protoreflect.FieldDescriptor + fd_Params_enable_vest_now protoreflect.FieldDescriptor + fd_Params_start_airdrop_claim_height protoreflect.FieldDescriptor + fd_Params_end_airdrop_claim_height protoreflect.FieldDescriptor + fd_Params_total_elys_claimed protoreflect.FieldDescriptor + fd_Params_total_eden_claimed protoreflect.FieldDescriptor ) func init() { @@ -1260,14 +1254,8 @@ func init() { fd_Params_total_committed = md_Params.Fields().ByName("total_committed") fd_Params_number_of_commitments = md_Params.Fields().ByName("number_of_commitments") fd_Params_enable_vest_now = md_Params.Fields().ByName("enable_vest_now") - fd_Params_start_atom_stakers_height = md_Params.Fields().ByName("start_atom_stakers_height") - fd_Params_end_atom_stakers_height = md_Params.Fields().ByName("end_atom_stakers_height") - fd_Params_start_cadets_height = md_Params.Fields().ByName("start_cadets_height") - fd_Params_end_cadets_height = md_Params.Fields().ByName("end_cadets_height") - fd_Params_start_nft_holders_height = md_Params.Fields().ByName("start_nft_holders_height") - fd_Params_end_nft_holders_height = md_Params.Fields().ByName("end_nft_holders_height") - fd_Params_start_governors_height = md_Params.Fields().ByName("start_governors_height") - fd_Params_end_governors_height = md_Params.Fields().ByName("end_governors_height") + fd_Params_start_airdrop_claim_height = md_Params.Fields().ByName("start_airdrop_claim_height") + fd_Params_end_airdrop_claim_height = md_Params.Fields().ByName("end_airdrop_claim_height") fd_Params_total_elys_claimed = md_Params.Fields().ByName("total_elys_claimed") fd_Params_total_eden_claimed = md_Params.Fields().ByName("total_eden_claimed") } @@ -1361,51 +1349,15 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } - if x.StartAtomStakersHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.StartAtomStakersHeight) - if !f(fd_Params_start_atom_stakers_height, value) { - return - } - } - if x.EndAtomStakersHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.EndAtomStakersHeight) - if !f(fd_Params_end_atom_stakers_height, value) { - return - } - } - if x.StartCadetsHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.StartCadetsHeight) - if !f(fd_Params_start_cadets_height, value) { - return - } - } - if x.EndCadetsHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.EndCadetsHeight) - if !f(fd_Params_end_cadets_height, value) { - return - } - } - if x.StartNftHoldersHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.StartNftHoldersHeight) - if !f(fd_Params_start_nft_holders_height, value) { - return - } - } - if x.EndNftHoldersHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.EndNftHoldersHeight) - if !f(fd_Params_end_nft_holders_height, value) { + if x.StartAirdropClaimHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.StartAirdropClaimHeight) + if !f(fd_Params_start_airdrop_claim_height, value) { return } } - if x.StartGovernorsHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.StartGovernorsHeight) - if !f(fd_Params_start_governors_height, value) { - return - } - } - if x.EndGovernorsHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.EndGovernorsHeight) - if !f(fd_Params_end_governors_height, value) { + if x.EndAirdropClaimHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.EndAirdropClaimHeight) + if !f(fd_Params_end_airdrop_claim_height, value) { return } } @@ -1444,22 +1396,10 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { return x.NumberOfCommitments != uint64(0) case "elys.commitment.Params.enable_vest_now": return x.EnableVestNow != false - case "elys.commitment.Params.start_atom_stakers_height": - return x.StartAtomStakersHeight != uint64(0) - case "elys.commitment.Params.end_atom_stakers_height": - return x.EndAtomStakersHeight != uint64(0) - case "elys.commitment.Params.start_cadets_height": - return x.StartCadetsHeight != uint64(0) - case "elys.commitment.Params.end_cadets_height": - return x.EndCadetsHeight != uint64(0) - case "elys.commitment.Params.start_nft_holders_height": - return x.StartNftHoldersHeight != uint64(0) - case "elys.commitment.Params.end_nft_holders_height": - return x.EndNftHoldersHeight != uint64(0) - case "elys.commitment.Params.start_governors_height": - return x.StartGovernorsHeight != uint64(0) - case "elys.commitment.Params.end_governors_height": - return x.EndGovernorsHeight != uint64(0) + case "elys.commitment.Params.start_airdrop_claim_height": + return x.StartAirdropClaimHeight != uint64(0) + case "elys.commitment.Params.end_airdrop_claim_height": + return x.EndAirdropClaimHeight != uint64(0) case "elys.commitment.Params.total_elys_claimed": return x.TotalElysClaimed != "" case "elys.commitment.Params.total_eden_claimed": @@ -1488,22 +1428,10 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { x.NumberOfCommitments = uint64(0) case "elys.commitment.Params.enable_vest_now": x.EnableVestNow = false - case "elys.commitment.Params.start_atom_stakers_height": - x.StartAtomStakersHeight = uint64(0) - case "elys.commitment.Params.end_atom_stakers_height": - x.EndAtomStakersHeight = uint64(0) - case "elys.commitment.Params.start_cadets_height": - x.StartCadetsHeight = uint64(0) - case "elys.commitment.Params.end_cadets_height": - x.EndCadetsHeight = uint64(0) - case "elys.commitment.Params.start_nft_holders_height": - x.StartNftHoldersHeight = uint64(0) - case "elys.commitment.Params.end_nft_holders_height": - x.EndNftHoldersHeight = uint64(0) - case "elys.commitment.Params.start_governors_height": - x.StartGovernorsHeight = uint64(0) - case "elys.commitment.Params.end_governors_height": - x.EndGovernorsHeight = uint64(0) + case "elys.commitment.Params.start_airdrop_claim_height": + x.StartAirdropClaimHeight = uint64(0) + case "elys.commitment.Params.end_airdrop_claim_height": + x.EndAirdropClaimHeight = uint64(0) case "elys.commitment.Params.total_elys_claimed": x.TotalElysClaimed = "" case "elys.commitment.Params.total_eden_claimed": @@ -1542,29 +1470,11 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro case "elys.commitment.Params.enable_vest_now": value := x.EnableVestNow return protoreflect.ValueOfBool(value) - case "elys.commitment.Params.start_atom_stakers_height": - value := x.StartAtomStakersHeight - return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.end_atom_stakers_height": - value := x.EndAtomStakersHeight - return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.start_cadets_height": - value := x.StartCadetsHeight - return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.end_cadets_height": - value := x.EndCadetsHeight + case "elys.commitment.Params.start_airdrop_claim_height": + value := x.StartAirdropClaimHeight return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.start_nft_holders_height": - value := x.StartNftHoldersHeight - return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.end_nft_holders_height": - value := x.EndNftHoldersHeight - return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.start_governors_height": - value := x.StartGovernorsHeight - return protoreflect.ValueOfUint64(value) - case "elys.commitment.Params.end_governors_height": - value := x.EndGovernorsHeight + case "elys.commitment.Params.end_airdrop_claim_height": + value := x.EndAirdropClaimHeight return protoreflect.ValueOfUint64(value) case "elys.commitment.Params.total_elys_claimed": value := x.TotalElysClaimed @@ -1604,22 +1514,10 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto x.NumberOfCommitments = value.Uint() case "elys.commitment.Params.enable_vest_now": x.EnableVestNow = value.Bool() - case "elys.commitment.Params.start_atom_stakers_height": - x.StartAtomStakersHeight = value.Uint() - case "elys.commitment.Params.end_atom_stakers_height": - x.EndAtomStakersHeight = value.Uint() - case "elys.commitment.Params.start_cadets_height": - x.StartCadetsHeight = value.Uint() - case "elys.commitment.Params.end_cadets_height": - x.EndCadetsHeight = value.Uint() - case "elys.commitment.Params.start_nft_holders_height": - x.StartNftHoldersHeight = value.Uint() - case "elys.commitment.Params.end_nft_holders_height": - x.EndNftHoldersHeight = value.Uint() - case "elys.commitment.Params.start_governors_height": - x.StartGovernorsHeight = value.Uint() - case "elys.commitment.Params.end_governors_height": - x.EndGovernorsHeight = value.Uint() + case "elys.commitment.Params.start_airdrop_claim_height": + x.StartAirdropClaimHeight = value.Uint() + case "elys.commitment.Params.end_airdrop_claim_height": + x.EndAirdropClaimHeight = value.Uint() case "elys.commitment.Params.total_elys_claimed": x.TotalElysClaimed = value.Interface().(string) case "elys.commitment.Params.total_eden_claimed": @@ -1660,22 +1558,10 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore panic(fmt.Errorf("field number_of_commitments of message elys.commitment.Params is not mutable")) case "elys.commitment.Params.enable_vest_now": panic(fmt.Errorf("field enable_vest_now of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.start_atom_stakers_height": - panic(fmt.Errorf("field start_atom_stakers_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.end_atom_stakers_height": - panic(fmt.Errorf("field end_atom_stakers_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.start_cadets_height": - panic(fmt.Errorf("field start_cadets_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.end_cadets_height": - panic(fmt.Errorf("field end_cadets_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.start_nft_holders_height": - panic(fmt.Errorf("field start_nft_holders_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.end_nft_holders_height": - panic(fmt.Errorf("field end_nft_holders_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.start_governors_height": - panic(fmt.Errorf("field start_governors_height of message elys.commitment.Params is not mutable")) - case "elys.commitment.Params.end_governors_height": - panic(fmt.Errorf("field end_governors_height of message elys.commitment.Params is not mutable")) + case "elys.commitment.Params.start_airdrop_claim_height": + panic(fmt.Errorf("field start_airdrop_claim_height of message elys.commitment.Params is not mutable")) + case "elys.commitment.Params.end_airdrop_claim_height": + panic(fmt.Errorf("field end_airdrop_claim_height of message elys.commitment.Params is not mutable")) case "elys.commitment.Params.total_elys_claimed": panic(fmt.Errorf("field total_elys_claimed of message elys.commitment.Params is not mutable")) case "elys.commitment.Params.total_eden_claimed": @@ -1703,21 +1589,9 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor return protoreflect.ValueOfUint64(uint64(0)) case "elys.commitment.Params.enable_vest_now": return protoreflect.ValueOfBool(false) - case "elys.commitment.Params.start_atom_stakers_height": - return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.end_atom_stakers_height": - return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.start_cadets_height": - return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.end_cadets_height": - return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.start_nft_holders_height": + case "elys.commitment.Params.start_airdrop_claim_height": return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.end_nft_holders_height": - return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.start_governors_height": - return protoreflect.ValueOfUint64(uint64(0)) - case "elys.commitment.Params.end_governors_height": + case "elys.commitment.Params.end_airdrop_claim_height": return protoreflect.ValueOfUint64(uint64(0)) case "elys.commitment.Params.total_elys_claimed": return protoreflect.ValueOfString("") @@ -1810,29 +1684,11 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if x.EnableVestNow { n += 2 } - if x.StartAtomStakersHeight != 0 { - n += 1 + runtime.Sov(uint64(x.StartAtomStakersHeight)) - } - if x.EndAtomStakersHeight != 0 { - n += 1 + runtime.Sov(uint64(x.EndAtomStakersHeight)) - } - if x.StartCadetsHeight != 0 { - n += 1 + runtime.Sov(uint64(x.StartCadetsHeight)) - } - if x.EndCadetsHeight != 0 { - n += 1 + runtime.Sov(uint64(x.EndCadetsHeight)) - } - if x.StartNftHoldersHeight != 0 { - n += 1 + runtime.Sov(uint64(x.StartNftHoldersHeight)) - } - if x.EndNftHoldersHeight != 0 { - n += 1 + runtime.Sov(uint64(x.EndNftHoldersHeight)) - } - if x.StartGovernorsHeight != 0 { - n += 1 + runtime.Sov(uint64(x.StartGovernorsHeight)) + if x.StartAirdropClaimHeight != 0 { + n += 1 + runtime.Sov(uint64(x.StartAirdropClaimHeight)) } - if x.EndGovernorsHeight != 0 { - n += 1 + runtime.Sov(uint64(x.EndGovernorsHeight)) + if x.EndAirdropClaimHeight != 0 { + n += 1 + runtime.Sov(uint64(x.EndAirdropClaimHeight)) } l = len(x.TotalElysClaimed) if l > 0 { @@ -1876,52 +1732,22 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.TotalEdenClaimed) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalEdenClaimed))) i-- - dAtA[i] = 0x72 + dAtA[i] = 0x42 } if len(x.TotalElysClaimed) > 0 { i -= len(x.TotalElysClaimed) copy(dAtA[i:], x.TotalElysClaimed) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalElysClaimed))) i-- - dAtA[i] = 0x6a - } - if x.EndGovernorsHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EndGovernorsHeight)) - i-- - dAtA[i] = 0x60 - } - if x.StartGovernorsHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.StartGovernorsHeight)) - i-- - dAtA[i] = 0x58 - } - if x.EndNftHoldersHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EndNftHoldersHeight)) - i-- - dAtA[i] = 0x50 - } - if x.StartNftHoldersHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.StartNftHoldersHeight)) - i-- - dAtA[i] = 0x48 + dAtA[i] = 0x3a } - if x.EndCadetsHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EndCadetsHeight)) - i-- - dAtA[i] = 0x40 - } - if x.StartCadetsHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.StartCadetsHeight)) - i-- - dAtA[i] = 0x38 - } - if x.EndAtomStakersHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EndAtomStakersHeight)) + if x.EndAirdropClaimHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EndAirdropClaimHeight)) i-- dAtA[i] = 0x30 } - if x.StartAtomStakersHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.StartAtomStakersHeight)) + if x.StartAirdropClaimHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.StartAirdropClaimHeight)) i-- dAtA[i] = 0x28 } @@ -2130,9 +1956,9 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { x.EnableVestNow = bool(v != 0) case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartAtomStakersHeight", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartAirdropClaimHeight", wireType) } - x.StartAtomStakersHeight = 0 + x.StartAirdropClaimHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2142,16 +1968,16 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.StartAtomStakersHeight |= uint64(b&0x7F) << shift + x.StartAirdropClaimHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndAtomStakersHeight", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndAirdropClaimHeight", wireType) } - x.EndAtomStakersHeight = 0 + x.EndAirdropClaimHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2161,126 +1987,12 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.EndAtomStakersHeight |= uint64(b&0x7F) << shift + x.EndAirdropClaimHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartCadetsHeight", wireType) - } - x.StartCadetsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.StartCadetsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndCadetsHeight", wireType) - } - x.EndCadetsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EndCadetsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartNftHoldersHeight", wireType) - } - x.StartNftHoldersHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.StartNftHoldersHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndNftHoldersHeight", wireType) - } - x.EndNftHoldersHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EndNftHoldersHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartGovernorsHeight", wireType) - } - x.StartGovernorsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.StartGovernorsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EndGovernorsHeight", wireType) - } - x.EndGovernorsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EndGovernorsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalElysClaimed", wireType) } @@ -2312,7 +2024,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.TotalElysClaimed = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 14: + case 8: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalEdenClaimed", wireType) } @@ -3222,20 +2934,14 @@ type Params struct { 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"` - NumberOfCommitments uint64 `protobuf:"varint,3,opt,name=number_of_commitments,json=numberOfCommitments,proto3" json:"number_of_commitments,omitempty"` - EnableVestNow bool `protobuf:"varint,4,opt,name=enable_vest_now,json=enableVestNow,proto3" json:"enable_vest_now,omitempty"` - StartAtomStakersHeight uint64 `protobuf:"varint,5,opt,name=start_atom_stakers_height,json=startAtomStakersHeight,proto3" json:"start_atom_stakers_height,omitempty"` - EndAtomStakersHeight uint64 `protobuf:"varint,6,opt,name=end_atom_stakers_height,json=endAtomStakersHeight,proto3" json:"end_atom_stakers_height,omitempty"` - StartCadetsHeight uint64 `protobuf:"varint,7,opt,name=start_cadets_height,json=startCadetsHeight,proto3" json:"start_cadets_height,omitempty"` - EndCadetsHeight uint64 `protobuf:"varint,8,opt,name=end_cadets_height,json=endCadetsHeight,proto3" json:"end_cadets_height,omitempty"` - StartNftHoldersHeight uint64 `protobuf:"varint,9,opt,name=start_nft_holders_height,json=startNftHoldersHeight,proto3" json:"start_nft_holders_height,omitempty"` - EndNftHoldersHeight uint64 `protobuf:"varint,10,opt,name=end_nft_holders_height,json=endNftHoldersHeight,proto3" json:"end_nft_holders_height,omitempty"` - StartGovernorsHeight uint64 `protobuf:"varint,11,opt,name=start_governors_height,json=startGovernorsHeight,proto3" json:"start_governors_height,omitempty"` - EndGovernorsHeight uint64 `protobuf:"varint,12,opt,name=end_governors_height,json=endGovernorsHeight,proto3" json:"end_governors_height,omitempty"` - TotalElysClaimed string `protobuf:"bytes,13,opt,name=total_elys_claimed,json=totalElysClaimed,proto3" json:"total_elys_claimed,omitempty"` - TotalEdenClaimed string `protobuf:"bytes,14,opt,name=total_eden_claimed,json=totalEdenClaimed,proto3" json:"total_eden_claimed,omitempty"` + 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"` + NumberOfCommitments uint64 `protobuf:"varint,3,opt,name=number_of_commitments,json=numberOfCommitments,proto3" json:"number_of_commitments,omitempty"` + EnableVestNow bool `protobuf:"varint,4,opt,name=enable_vest_now,json=enableVestNow,proto3" json:"enable_vest_now,omitempty"` + StartAirdropClaimHeight uint64 `protobuf:"varint,5,opt,name=start_airdrop_claim_height,json=startAirdropClaimHeight,proto3" json:"start_airdrop_claim_height,omitempty"` + EndAirdropClaimHeight uint64 `protobuf:"varint,6,opt,name=end_airdrop_claim_height,json=endAirdropClaimHeight,proto3" json:"end_airdrop_claim_height,omitempty"` + TotalElysClaimed string `protobuf:"bytes,7,opt,name=total_elys_claimed,json=totalElysClaimed,proto3" json:"total_elys_claimed,omitempty"` + TotalEdenClaimed string `protobuf:"bytes,8,opt,name=total_eden_claimed,json=totalEdenClaimed,proto3" json:"total_eden_claimed,omitempty"` } func (x *Params) Reset() { @@ -3286,58 +2992,16 @@ func (x *Params) GetEnableVestNow() bool { return false } -func (x *Params) GetStartAtomStakersHeight() uint64 { +func (x *Params) GetStartAirdropClaimHeight() uint64 { if x != nil { - return x.StartAtomStakersHeight - } - return 0 -} - -func (x *Params) GetEndAtomStakersHeight() uint64 { - if x != nil { - return x.EndAtomStakersHeight - } - return 0 -} - -func (x *Params) GetStartCadetsHeight() uint64 { - if x != nil { - return x.StartCadetsHeight - } - return 0 -} - -func (x *Params) GetEndCadetsHeight() uint64 { - if x != nil { - return x.EndCadetsHeight + return x.StartAirdropClaimHeight } return 0 } -func (x *Params) GetStartNftHoldersHeight() uint64 { +func (x *Params) GetEndAirdropClaimHeight() uint64 { if x != nil { - return x.StartNftHoldersHeight - } - return 0 -} - -func (x *Params) GetEndNftHoldersHeight() uint64 { - if x != nil { - return x.EndNftHoldersHeight - } - return 0 -} - -func (x *Params) GetStartGovernorsHeight() uint64 { - if x != nil { - return x.StartGovernorsHeight - } - return 0 -} - -func (x *Params) GetEndGovernorsHeight() uint64 { - if x != nil { - return x.EndGovernorsHeight + return x.EndAirdropClaimHeight } return 0 } @@ -3479,7 +3143,7 @@ var file_elys_commitment_params_proto_rawDesc = []byte{ 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x5f, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6f, 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x22, 0xfd, 0x06, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x47, 0x0a, 0x0d, 0x76, + 0x22, 0xcf, 0x04, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x47, 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, @@ -3497,79 +3161,60 @@ var file_elys_commitment_params_proto_rawDesc = []byte{ 0x72, 0x4f, 0x66, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x56, - 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x77, 0x12, 0x39, 0x0a, 0x19, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x61, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x41, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x12, 0x35, 0x0a, 0x17, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x74, - 0x61, 0x6b, 0x65, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x14, 0x65, 0x6e, 0x64, 0x41, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x5f, 0x63, 0x61, 0x64, 0x65, 0x74, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x61, 0x64, 0x65, - 0x74, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x6e, 0x64, 0x5f, - 0x63, 0x61, 0x64, 0x65, 0x74, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x43, 0x61, 0x64, 0x65, 0x74, 0x73, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6e, 0x66, - 0x74, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x66, 0x74, - 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x33, 0x0a, - 0x16, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x66, 0x74, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x65, - 0x6e, 0x64, 0x4e, 0x66, 0x74, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x67, 0x6f, 0x76, 0x65, - 0x72, 0x6e, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6f, - 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x5f, - 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6f, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x47, 0x6f, 0x76, 0x65, 0x72, - 0x6e, 0x6f, 0x72, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x59, 0x0a, 0x12, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x6c, 0x79, 0x73, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, - 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x49, 0x6e, 0x74, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x6c, 0x79, 0x73, 0x43, 0x6c, - 0x61, 0x69, 0x6d, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, - 0x64, 0x65, 0x6e, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, - 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x10, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x64, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, - 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, 0x0d, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x44, - 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x5f, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x76, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x77, 0x5f, - 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x0d, 0x76, 0x65, 0x73, 0x74, 0x4e, - 0x6f, 0x77, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x5f, - 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x4d, 0x61, 0x78, 0x56, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x2a, 0x7b, 0x0a, 0x08, 0x45, 0x61, 0x72, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, - 0x0a, 0x0b, 0x41, 0x4c, 0x4c, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x00, 0x12, - 0x10, 0x0a, 0x0c, 0x55, 0x53, 0x44, 0x43, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, - 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4c, 0x59, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, - 0x4d, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x44, 0x45, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, - 0x52, 0x41, 0x4d, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x44, 0x45, 0x4e, 0x42, 0x5f, 0x50, - 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x50, 0x5f, 0x4d, - 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x05, 0x42, - 0xb1, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 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, + 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x77, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x69, 0x72, 0x64, 0x72, + 0x6f, 0x70, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x65, 0x6e, 0x64, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, + 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x59, 0x0a, 0x12, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x6c, 0x79, 0x73, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, + 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x6c, 0x79, 0x73, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x65, 0x64, 0x65, 0x6e, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x64, 0x65, 0x6e, 0x43, 0x6c, 0x61, 0x69, 0x6d, + 0x65, 0x64, 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, 0x0d, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x6e, + 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x67, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x5f, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x76, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x6f, + 0x77, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x0d, 0x76, 0x65, 0x73, + 0x74, 0x4e, 0x6f, 0x77, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x75, + 0x6d, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x4d, 0x61, 0x78, 0x56, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2a, 0x7b, 0x0a, 0x08, 0x45, 0x61, 0x72, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x4c, 0x4c, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, + 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x53, 0x44, 0x43, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, + 0x4d, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4c, 0x59, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x47, + 0x52, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x44, 0x45, 0x4e, 0x5f, 0x50, 0x52, + 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x44, 0x45, 0x4e, 0x42, + 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x50, + 0x5f, 0x4d, 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, + 0x05, 0x42, 0xb1, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, + 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 ( diff --git a/proto/elys/commitment/params.proto b/proto/elys/commitment/params.proto index 90875421e..1b6037a4c 100644 --- a/proto/elys/commitment/params.proto +++ b/proto/elys/commitment/params.proto @@ -35,20 +35,14 @@ message Params { uint64 number_of_commitments = 3; bool enable_vest_now = 4; - uint64 start_atom_stakers_height = 5; - uint64 end_atom_stakers_height = 6; - uint64 start_cadets_height = 7; - uint64 end_cadets_height = 8; - uint64 start_nft_holders_height = 9; - uint64 end_nft_holders_height = 10; - uint64 start_governors_height = 11; - uint64 end_governors_height = 12; - string total_elys_claimed = 13 [ + uint64 start_airdrop_claim_height = 5; + uint64 end_airdrop_claim_height = 6; + string total_elys_claimed = 7 [ (cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false ]; - string total_eden_claimed = 14 [ + string total_eden_claimed = 8 [ (cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false diff --git a/x/commitment/keeper/msg_server_claim_airdrop.go b/x/commitment/keeper/msg_server_claim_airdrop.go index 68cf6a599..484201c57 100644 --- a/x/commitment/keeper/msg_server_claim_airdrop.go +++ b/x/commitment/keeper/msg_server_claim_airdrop.go @@ -22,11 +22,11 @@ func (k msgServer) ClaimAirdrop(goCtx context.Context, msg *types.MsgClaimAirdro } currentHeight := uint64(ctx.BlockHeight()) - if currentHeight < params.StartAtomStakersHeight { + if currentHeight < params.StartAirdropClaimHeight { return nil, types.ErrAirdropNotStarted } - if currentHeight > params.EndAtomStakersHeight { + if currentHeight > params.EndAirdropClaimHeight { return nil, types.ErrAirdropEnded } diff --git a/x/commitment/migrations/v6_migration.go b/x/commitment/migrations/v6_migration.go index 6fe871259..3ea040a5a 100644 --- a/x/commitment/migrations/v6_migration.go +++ b/x/commitment/migrations/v6_migration.go @@ -2,26 +2,25 @@ package migrations import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/elys-network/elys/x/commitment/types" ) func (m Migrator) V6Migration(ctx sdk.Context) error { - legacy := m.keeper.GetLegacyParams(ctx) - newParams := types.Params{ - VestingInfos: legacy.VestingInfos, - TotalCommitted: legacy.TotalCommitted, - NumberOfCommitments: legacy.NumberOfCommitments, - EnableVestNow: legacy.EnableVestNow, - StartAtomStakersHeight: 0, - StartCadetsHeight: 0, - StartGovernorsHeight: 0, - StartNftHoldersHeight: 0, - EndAtomStakersHeight: 0, - EndCadetsHeight: 0, - EndGovernorsHeight: 0, - EndNftHoldersHeight: 0, - } - m.keeper.SetParams(ctx, newParams) + // legacy := m.keeper.GetLegacyParams(ctx) + // newParams := types.Params{ + // VestingInfos: legacy.VestingInfos, + // TotalCommitted: legacy.TotalCommitted, + // NumberOfCommitments: legacy.NumberOfCommitments, + // EnableVestNow: legacy.EnableVestNow, + // StartAtomStakersHeight: 0, + // StartCadetsHeight: 0, + // StartGovernorsHeight: 0, + // StartNftHoldersHeight: 0, + // EndAtomStakersHeight: 0, + // EndCadetsHeight: 0, + // EndGovernorsHeight: 0, + // EndNftHoldersHeight: 0, + // } + // m.keeper.SetParams(ctx, newParams) return nil } diff --git a/x/commitment/migrations/v7_migration.go b/x/commitment/migrations/v7_migration.go index 9aee88e03..13585123f 100644 --- a/x/commitment/migrations/v7_migration.go +++ b/x/commitment/migrations/v7_migration.go @@ -9,20 +9,14 @@ import ( func (m Migrator) V7Migration(ctx sdk.Context) error { legacy := m.keeper.GetLegacyParams(ctx) newParams := types.Params{ - VestingInfos: legacy.VestingInfos, - TotalCommitted: legacy.TotalCommitted, - NumberOfCommitments: legacy.NumberOfCommitments, - EnableVestNow: legacy.EnableVestNow, - StartAtomStakersHeight: legacy.StartAtomStakersHeight, - StartCadetsHeight: legacy.StartCadetsHeight, - StartGovernorsHeight: legacy.StartGovernorsHeight, - StartNftHoldersHeight: legacy.StartNftHoldersHeight, - EndAtomStakersHeight: legacy.EndAtomStakersHeight, - EndCadetsHeight: legacy.EndCadetsHeight, - EndGovernorsHeight: legacy.EndGovernorsHeight, - EndNftHoldersHeight: legacy.EndNftHoldersHeight, - TotalElysClaimed: math.ZeroInt(), - TotalEdenClaimed: math.ZeroInt(), + VestingInfos: legacy.VestingInfos, + TotalCommitted: legacy.TotalCommitted, + NumberOfCommitments: legacy.NumberOfCommitments, + EnableVestNow: legacy.EnableVestNow, + StartAirdropClaimHeight: legacy.StartAtomStakersHeight, + EndAirdropClaimHeight: legacy.EndAtomStakersHeight, + TotalElysClaimed: math.ZeroInt(), + TotalEdenClaimed: math.ZeroInt(), } m.keeper.SetParams(ctx, newParams) diff --git a/x/commitment/types/params.pb.go b/x/commitment/types/params.pb.go index 068a338eb..46cfe0793 100644 --- a/x/commitment/types/params.pb.go +++ b/x/commitment/types/params.pb.go @@ -197,20 +197,14 @@ func (m *LegacyParams) GetEndGovernorsHeight() uint64 { } type Params struct { - VestingInfos []VestingInfo `protobuf:"bytes,1,rep,name=vesting_infos,json=vestingInfos,proto3" json:"vesting_infos"` - 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"` - NumberOfCommitments uint64 `protobuf:"varint,3,opt,name=number_of_commitments,json=numberOfCommitments,proto3" json:"number_of_commitments,omitempty"` - EnableVestNow bool `protobuf:"varint,4,opt,name=enable_vest_now,json=enableVestNow,proto3" json:"enable_vest_now,omitempty"` - StartAtomStakersHeight uint64 `protobuf:"varint,5,opt,name=start_atom_stakers_height,json=startAtomStakersHeight,proto3" json:"start_atom_stakers_height,omitempty"` - EndAtomStakersHeight uint64 `protobuf:"varint,6,opt,name=end_atom_stakers_height,json=endAtomStakersHeight,proto3" json:"end_atom_stakers_height,omitempty"` - StartCadetsHeight uint64 `protobuf:"varint,7,opt,name=start_cadets_height,json=startCadetsHeight,proto3" json:"start_cadets_height,omitempty"` - EndCadetsHeight uint64 `protobuf:"varint,8,opt,name=end_cadets_height,json=endCadetsHeight,proto3" json:"end_cadets_height,omitempty"` - StartNftHoldersHeight uint64 `protobuf:"varint,9,opt,name=start_nft_holders_height,json=startNftHoldersHeight,proto3" json:"start_nft_holders_height,omitempty"` - EndNftHoldersHeight uint64 `protobuf:"varint,10,opt,name=end_nft_holders_height,json=endNftHoldersHeight,proto3" json:"end_nft_holders_height,omitempty"` - StartGovernorsHeight uint64 `protobuf:"varint,11,opt,name=start_governors_height,json=startGovernorsHeight,proto3" json:"start_governors_height,omitempty"` - EndGovernorsHeight uint64 `protobuf:"varint,12,opt,name=end_governors_height,json=endGovernorsHeight,proto3" json:"end_governors_height,omitempty"` - TotalElysClaimed cosmossdk_io_math.Int `protobuf:"bytes,13,opt,name=total_elys_claimed,json=totalElysClaimed,proto3,customtype=cosmossdk.io/math.Int" json:"total_elys_claimed"` - TotalEdenClaimed cosmossdk_io_math.Int `protobuf:"bytes,14,opt,name=total_eden_claimed,json=totalEdenClaimed,proto3,customtype=cosmossdk.io/math.Int" json:"total_eden_claimed"` + VestingInfos []VestingInfo `protobuf:"bytes,1,rep,name=vesting_infos,json=vestingInfos,proto3" json:"vesting_infos"` + 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"` + NumberOfCommitments uint64 `protobuf:"varint,3,opt,name=number_of_commitments,json=numberOfCommitments,proto3" json:"number_of_commitments,omitempty"` + EnableVestNow bool `protobuf:"varint,4,opt,name=enable_vest_now,json=enableVestNow,proto3" json:"enable_vest_now,omitempty"` + StartAirdropClaimHeight uint64 `protobuf:"varint,5,opt,name=start_airdrop_claim_height,json=startAirdropClaimHeight,proto3" json:"start_airdrop_claim_height,omitempty"` + EndAirdropClaimHeight uint64 `protobuf:"varint,6,opt,name=end_airdrop_claim_height,json=endAirdropClaimHeight,proto3" json:"end_airdrop_claim_height,omitempty"` + TotalElysClaimed cosmossdk_io_math.Int `protobuf:"bytes,7,opt,name=total_elys_claimed,json=totalElysClaimed,proto3,customtype=cosmossdk.io/math.Int" json:"total_elys_claimed"` + TotalEdenClaimed cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=total_eden_claimed,json=totalEdenClaimed,proto3,customtype=cosmossdk.io/math.Int" json:"total_eden_claimed"` } func (m *Params) Reset() { *m = Params{} } @@ -274,58 +268,16 @@ func (m *Params) GetEnableVestNow() bool { return false } -func (m *Params) GetStartAtomStakersHeight() uint64 { +func (m *Params) GetStartAirdropClaimHeight() uint64 { if m != nil { - return m.StartAtomStakersHeight + return m.StartAirdropClaimHeight } return 0 } -func (m *Params) GetEndAtomStakersHeight() uint64 { +func (m *Params) GetEndAirdropClaimHeight() uint64 { if m != nil { - return m.EndAtomStakersHeight - } - return 0 -} - -func (m *Params) GetStartCadetsHeight() uint64 { - if m != nil { - return m.StartCadetsHeight - } - return 0 -} - -func (m *Params) GetEndCadetsHeight() uint64 { - if m != nil { - return m.EndCadetsHeight - } - return 0 -} - -func (m *Params) GetStartNftHoldersHeight() uint64 { - if m != nil { - return m.StartNftHoldersHeight - } - return 0 -} - -func (m *Params) GetEndNftHoldersHeight() uint64 { - if m != nil { - return m.EndNftHoldersHeight - } - return 0 -} - -func (m *Params) GetStartGovernorsHeight() uint64 { - if m != nil { - return m.StartGovernorsHeight - } - return 0 -} - -func (m *Params) GetEndGovernorsHeight() uint64 { - if m != nil { - return m.EndGovernorsHeight + return m.EndAirdropClaimHeight } return 0 } @@ -409,57 +361,59 @@ func init() { func init() { proto.RegisterFile("elys/commitment/params.proto", fileDescriptor_92e317feaf73ff7e) } var fileDescriptor_92e317feaf73ff7e = []byte{ - // 799 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcb, 0x6e, 0x22, 0x47, - 0x14, 0xa5, 0x0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0xfa, 0x4e, 0x57, 0x35, 0x69, 0x8f, 0x55, - 0x13, 0x57, 0x37, 0xbb, 0x31, 0x27, 0x33, 0x5d, 0x41, 0x1c, 0x0a, 0x90, 0x13, 0x4c, 0xe0, 0x11, - 0xd2, 0x1a, 0x41, 0x3c, 0x73, 0x43, 0x59, 0xed, 0x58, 0xd1, 0x84, 0x72, 0x26, 0x2b, 0x9a, 0xc9, - 0xaa, 0x31, 0x9f, 0x56, 0xdf, 0x4b, 0x9f, 0x9f, 0xfe, 0xd8, 0xad, 0xf4, 0x7d, 0x31, 0x98, 0x74, - 0x65, 0xbb, 0x68, 0x9d, 0xe8, 0x67, 0x9f, 0x7b, 0x43, 0x5b, 0xcc, 0xc7, 0x84, 0x2b, 0x01, 0x77, - 0xb6, 0x55, 0x8f, 0xda, 0xa2, 0x05, 0x3c, 0x00, 0x45, 0x3a, 0x09, 0xba, 0x24, 0x44, 0xac, 0x87, - 0x56, 0xd3, 0x72, 0x33, 0x5e, 0x36, 0x2a, 0x09, 0xe7, 0x85, 0x26, 0xcf, 0x7a, 0xb5, 0x15, 0x05, - 0x3f, 0x05, 0x39, 0x42, 0x71, 0x77, 0x44, 0x90, 0x5c, 0x00, 0x51, 0x36, 0x33, 0x13, 0x65, 0xa3, - 0xb2, 0xe5, 0x64, 0x35, 0x2c, 0x37, 0x6d, 0xb3, 0x19, 0xfc, 0x0a, 0xec, 0x70, 0x81, 0x43, 0x81, - 0xb0, 0x60, 0x01, 0xe2, 0x02, 0x0f, 0x49, 0xc8, 0xd1, 0x80, 0xf8, 0xfd, 0x81, 0x30, 0x37, 0x95, - 0xff, 0x2b, 0x55, 0x70, 0x24, 0x58, 0xd0, 0xd1, 0xf4, 0x89, 0x62, 0xe1, 0x17, 0xe0, 0x63, 0x42, - 0xbd, 0x27, 0x85, 0x49, 0x25, 0x7c, 0x49, 0xa8, 0xf7, 0x58, 0x66, 0x81, 0x17, 0xba, 0xa3, 0x8b, - 0x3d, 0x22, 0x96, 0x92, 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, 0xb7, 0xbb, 0x52, 0xec, 0x7b, 0x7b, 0xed, 0xc5, 0x23, 0x13, 0xb4, 0x4f, 0x89, 0x98, - 0xb1, 0x70, 0xa8, 0x1e, 0xec, 0xcb, 0xf5, 0x4f, 0x0e, 0xf5, 0x16, 0xea, 0x26, 0xd5, 0x07, 0xc1, - 0xe1, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x11, 0x57, 0x70, 0x38, 0x92, 0x08, 0x00, 0x00, + // 821 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xdf, 0x4e, 0x2a, 0x47, + 0x1c, 0x66, 0x05, 0x2d, 0x0c, 0x78, 0x80, 0x39, 0x87, 0x23, 0x1a, 0x45, 0x63, 0x93, 0x86, 0xd8, + 0xb8, 0xeb, 0x9f, 0x36, 0x4d, 0xd3, 0x2b, 0x41, 0x8a, 0x24, 0x88, 0x66, 0x69, 0x9b, 0xd8, 0x9b, + 0xc9, 0xb0, 0x3b, 0xc0, 0x06, 0x76, 0x86, 0xec, 0x0c, 0x20, 0xe9, 0x4b, 0xf4, 0x39, 0x7a, 0xdd, + 0x87, 0xf0, 0xa6, 0xa9, 0xe9, 0x55, 0xd3, 0x0b, 0xdb, 0xe8, 0x03, 0xf4, 0x15, 0x9a, 0x99, 0x59, + 0xfe, 0x28, 0x26, 0x4d, 0x7b, 0x7d, 0xae, 0x60, 0xbf, 0xef, 0xf7, 0xfd, 0xfe, 0x7e, 0x9b, 0x05, + 0xdb, 0xa4, 0x3f, 0xe1, 0x96, 0xc3, 0x7c, 0xdf, 0x13, 0x3e, 0xa1, 0xc2, 0x1a, 0xe0, 0x00, 0xfb, + 0xdc, 0x1c, 0x04, 0x4c, 0x30, 0x98, 0x96, 0xac, 0x39, 0x67, 0xb7, 0xde, 0x75, 0x58, 0x87, 0x29, + 0xce, 0x92, 0xff, 0x74, 0xd8, 0xd6, 0xa6,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x97, 0xf8, 0x36, 0x1c, 0x92, 0x1f, 0xfc, + 0x00, 0xe2, 0x15, 0x1c, 0xd0, 0x6f, 0x26, 0x03, 0x02, 0xd3, 0x20, 0x79, 0x56, 0xaf, 0xa3, 0x6b, + 0xfb, 0xaa, 0x6a, 0x9f, 0x5d, 0x66, 0x22, 0x30, 0x03, 0x52, 0xdf, 0x36, 0xcf, 0xcb, 0x33, 0xc4, + 0x90, 0x48, 0xa5, 0x7e, 0xd3, 0x9c, 0x21, 0x2b, 0x0a, 0x39, 0xaf, 0x34, 0x66, 0x48, 0x14, 0x66, + 0xc1, 0xba, 0x44, 0x4a, 0x33, 0x28, 0x06, 0x73, 0x20, 0x5b, 0xbf, 0x46, 0x97, 0xb5, 0x46, 0xad, + 0x51, 0x9d, 0xc1, 0xab, 0xa5, 0xda, 0xdd, 0x63, 0xc1, 0xb8, 0x7f, 0x2c, 0x18, 0x7f, 0x3d, 0x16, + 0x8c, 0x1f, 0x9f, 0x0a, 0x91, 0xfb, 0xa7, 0x42, 0xe4, 0xf7, 0xa7, 0x42, 0xe4, 0x7b, 0x6b, 0xe1, + 0x55, 0x92, 0x0e, 0x3a, 0xa4, 0x44, 0x8c, 0x59, 0xd0, 0x53, 0x0f, 0xd6, 0xed, 0xe2, 0x47, 0x54, + 0xbd, 0x57, 0xad, 0x35, 0xf5, 0x89, 0x3b, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0x15, 0xf3, 0xb6, + 0xa8, 0x64, 0x07, 0x00, 0x00, } func (m *LegacyParams) Marshal() (dAtA []byte, err error) { @@ -597,7 +551,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintParams(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x72 + dAtA[i] = 0x42 { size := m.TotalElysClaimed.Size() i -= size @@ -607,44 +561,14 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintParams(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x6a - if m.EndGovernorsHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.EndGovernorsHeight)) - i-- - dAtA[i] = 0x60 - } - if m.StartGovernorsHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.StartGovernorsHeight)) - i-- - dAtA[i] = 0x58 - } - if m.EndNftHoldersHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.EndNftHoldersHeight)) - i-- - dAtA[i] = 0x50 - } - if m.StartNftHoldersHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.StartNftHoldersHeight)) - i-- - dAtA[i] = 0x48 - } - if m.EndCadetsHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.EndCadetsHeight)) - i-- - dAtA[i] = 0x40 - } - if m.StartCadetsHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.StartCadetsHeight)) - i-- - dAtA[i] = 0x38 - } - if m.EndAtomStakersHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.EndAtomStakersHeight)) + dAtA[i] = 0x3a + if m.EndAirdropClaimHeight != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.EndAirdropClaimHeight)) i-- dAtA[i] = 0x30 } - if m.StartAtomStakersHeight != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.StartAtomStakersHeight)) + if m.StartAirdropClaimHeight != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.StartAirdropClaimHeight)) i-- dAtA[i] = 0x28 } @@ -837,29 +761,11 @@ func (m *Params) Size() (n int) { if m.EnableVestNow { n += 2 } - if m.StartAtomStakersHeight != 0 { - n += 1 + sovParams(uint64(m.StartAtomStakersHeight)) - } - if m.EndAtomStakersHeight != 0 { - n += 1 + sovParams(uint64(m.EndAtomStakersHeight)) - } - if m.StartCadetsHeight != 0 { - n += 1 + sovParams(uint64(m.StartCadetsHeight)) - } - if m.EndCadetsHeight != 0 { - n += 1 + sovParams(uint64(m.EndCadetsHeight)) - } - if m.StartNftHoldersHeight != 0 { - n += 1 + sovParams(uint64(m.StartNftHoldersHeight)) - } - if m.EndNftHoldersHeight != 0 { - n += 1 + sovParams(uint64(m.EndNftHoldersHeight)) + if m.StartAirdropClaimHeight != 0 { + n += 1 + sovParams(uint64(m.StartAirdropClaimHeight)) } - if m.StartGovernorsHeight != 0 { - n += 1 + sovParams(uint64(m.StartGovernorsHeight)) - } - if m.EndGovernorsHeight != 0 { - n += 1 + sovParams(uint64(m.EndGovernorsHeight)) + if m.EndAirdropClaimHeight != 0 { + n += 1 + sovParams(uint64(m.EndAirdropClaimHeight)) } l = m.TotalElysClaimed.Size() n += 1 + l + sovParams(uint64(l)) @@ -1346,9 +1252,9 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.EnableVestNow = bool(v != 0) case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartAtomStakersHeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartAirdropClaimHeight", wireType) } - m.StartAtomStakersHeight = 0 + m.StartAirdropClaimHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowParams @@ -1358,16 +1264,16 @@ func (m *Params) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartAtomStakersHeight |= uint64(b&0x7F) << shift + m.StartAirdropClaimHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndAtomStakersHeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndAirdropClaimHeight", wireType) } - m.EndAtomStakersHeight = 0 + m.EndAirdropClaimHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowParams @@ -1377,126 +1283,12 @@ func (m *Params) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndAtomStakersHeight |= uint64(b&0x7F) << shift + m.EndAirdropClaimHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartCadetsHeight", wireType) - } - m.StartCadetsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartCadetsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndCadetsHeight", wireType) - } - m.EndCadetsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndCadetsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartNftHoldersHeight", wireType) - } - m.StartNftHoldersHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartNftHoldersHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndNftHoldersHeight", wireType) - } - m.EndNftHoldersHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndNftHoldersHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartGovernorsHeight", wireType) - } - m.StartGovernorsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartGovernorsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndGovernorsHeight", wireType) - } - m.EndGovernorsHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndGovernorsHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TotalElysClaimed", wireType) } @@ -1530,7 +1322,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 14: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TotalEdenClaimed", wireType) }