diff --git a/api/elys/commitment/genesis.pulsar.go b/api/elys/commitment/genesis.pulsar.go index 707bbb66a..33ddb3ae8 100644 --- a/api/elys/commitment/genesis.pulsar.go +++ b/api/elys/commitment/genesis.pulsar.go @@ -268,6 +268,57 @@ func (x *_GenesisState_6_list) IsValid() bool { return x.list != nil } +var _ protoreflect.List = (*_GenesisState_7_list)(nil) + +type _GenesisState_7_list struct { + list *[]*KolList +} + +func (x *_GenesisState_7_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_7_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_7_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*KolList) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_7_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*KolList) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_7_list) AppendMutable() protoreflect.Value { + v := new(KolList) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_7_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_7_list) NewElement() protoreflect.Value { + v := new(KolList) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_7_list) IsValid() bool { + return x.list != nil +} + var ( md_GenesisState protoreflect.MessageDescriptor fd_GenesisState_params protoreflect.FieldDescriptor @@ -276,6 +327,7 @@ var ( fd_GenesisState_nft_holders protoreflect.FieldDescriptor fd_GenesisState_cadets protoreflect.FieldDescriptor fd_GenesisState_governors protoreflect.FieldDescriptor + fd_GenesisState_kol_list protoreflect.FieldDescriptor ) func init() { @@ -287,6 +339,7 @@ func init() { fd_GenesisState_nft_holders = md_GenesisState.Fields().ByName("nft_holders") fd_GenesisState_cadets = md_GenesisState.Fields().ByName("cadets") fd_GenesisState_governors = md_GenesisState.Fields().ByName("governors") + fd_GenesisState_kol_list = md_GenesisState.Fields().ByName("kol_list") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -390,6 +443,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if len(x.KolList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.KolList}) + if !f(fd_GenesisState_kol_list, value) { + return + } + } } // Has reports whether a field is populated. @@ -417,6 +476,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.Cadets) != 0 case "elys.commitment.GenesisState.governors": return len(x.Governors) != 0 + case "elys.commitment.GenesisState.kol_list": + return len(x.KolList) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.GenesisState")) @@ -445,6 +506,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Cadets = nil case "elys.commitment.GenesisState.governors": x.Governors = nil + case "elys.commitment.GenesisState.kol_list": + x.KolList = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.GenesisState")) @@ -494,6 +557,12 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_6_list{list: &x.Governors} return protoreflect.ValueOfList(listValue) + case "elys.commitment.GenesisState.kol_list": + if len(x.KolList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_7_list{}) + } + listValue := &_GenesisState_7_list{list: &x.KolList} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.GenesisState")) @@ -536,6 +605,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_6_list) x.Governors = *clv.list + case "elys.commitment.GenesisState.kol_list": + lv := value.List() + clv := lv.(*_GenesisState_7_list) + x.KolList = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.GenesisState")) @@ -591,6 +664,12 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_6_list{list: &x.Governors} return protoreflect.ValueOfList(value) + case "elys.commitment.GenesisState.kol_list": + if x.KolList == nil { + x.KolList = []*KolList{} + } + value := &_GenesisState_7_list{list: &x.KolList} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.GenesisState")) @@ -622,6 +701,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "elys.commitment.GenesisState.governors": list := []*Governor{} return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) + case "elys.commitment.GenesisState.kol_list": + list := []*KolList{} + return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: elys.commitment.GenesisState")) @@ -725,6 +807,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if len(x.KolList) > 0 { + for _, e := range x.KolList { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -754,6 +842,22 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.KolList) > 0 { + for iNdEx := len(x.KolList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.KolList[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.Governors) > 0 { for iNdEx := len(x.Governors) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Governors[iNdEx]) @@ -1103,6 +1207,40 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { 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 KolList", 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.KolList = append(x.KolList, &KolList{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KolList[len(x.KolList)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1163,6 +1301,7 @@ type GenesisState struct { NftHolders []*NftHolder `protobuf:"bytes,4,rep,name=nft_holders,json=nftHolders,proto3" json:"nft_holders,omitempty"` Cadets []*Cadet `protobuf:"bytes,5,rep,name=cadets,proto3" json:"cadets,omitempty"` Governors []*Governor `protobuf:"bytes,6,rep,name=governors,proto3" json:"governors,omitempty"` + KolList []*KolList `protobuf:"bytes,7,rep,name=kol_list,json=kolList,proto3" json:"kol_list,omitempty"` } func (x *GenesisState) Reset() { @@ -1227,6 +1366,13 @@ func (x *GenesisState) GetGovernors() []*Governor { return nil } +func (x *GenesisState) GetKolList() []*KolList { + if x != nil { + return x.KolList + } + return nil +} + var File_elys_commitment_genesis_proto protoreflect.FileDescriptor var file_elys_commitment_genesis_proto_rawDesc = []byte{ @@ -1240,7 +1386,7 @@ var file_elys_commitment_genesis_proto_rawDesc = []byte{ 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x65, 0x6c, 0x79, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x02, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x03, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, @@ -1263,19 +1409,22 @@ var file_elys_commitment_genesis_proto_rawDesc = []byte{ 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6f, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6f, 0x72, 0x52, 0x09, 0x67, 0x6f, 0x76, 0x65, 0x72, - 0x6e, 0x6f, 0x72, 0x73, 0x42, 0xb2, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6c, 0x79, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x47, 0x65, - 0x6e, 0x65, 0x73, 0x69, 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, + 0x6e, 0x6f, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x08, 0x6b, 0x6f, 0x6c, 0x5f, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4b, 0x6f, 0x6c, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x07, 0x6b, 0x6f, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb2, 0x01, 0x0a, 0x13, 0x63, 0x6f, + 0x6d, 0x2e, 0x65, 0x6c, 0x79, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 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 ( @@ -1299,6 +1448,7 @@ var file_elys_commitment_genesis_proto_goTypes = []interface{}{ (*NftHolder)(nil), // 4: elys.commitment.NftHolder (*Cadet)(nil), // 5: elys.commitment.Cadet (*Governor)(nil), // 6: elys.commitment.Governor + (*KolList)(nil), // 7: elys.commitment.KolList } var file_elys_commitment_genesis_proto_depIdxs = []int32{ 1, // 0: elys.commitment.GenesisState.params:type_name -> elys.commitment.Params @@ -1307,11 +1457,12 @@ var file_elys_commitment_genesis_proto_depIdxs = []int32{ 4, // 3: elys.commitment.GenesisState.nft_holders:type_name -> elys.commitment.NftHolder 5, // 4: elys.commitment.GenesisState.cadets:type_name -> elys.commitment.Cadet 6, // 5: elys.commitment.GenesisState.governors:type_name -> elys.commitment.Governor - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 7, // 6: elys.commitment.GenesisState.kol_list:type_name -> elys.commitment.KolList + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_elys_commitment_genesis_proto_init() } diff --git a/proto/elys/commitment/genesis.proto b/proto/elys/commitment/genesis.proto index c649f2a59..4a0635fc1 100644 --- a/proto/elys/commitment/genesis.proto +++ b/proto/elys/commitment/genesis.proto @@ -17,4 +17,5 @@ message GenesisState { repeated NftHolder nft_holders = 4; repeated Cadet cadets = 5; repeated Governor governors = 6; + repeated KolList kol_list = 7; } diff --git a/x/commitment/genesis.go b/x/commitment/genesis.go index 7361bbf96..97f281ab9 100644 --- a/x/commitment/genesis.go +++ b/x/commitment/genesis.go @@ -27,7 +27,9 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) for _, val := range genState.Cadets { k.SetCadet(ctx, *val) } - + for _, val := range genState.KolList { + k.SetKol(ctx, *val) + } } // ExportGenesis returns the module's exported genesis @@ -41,6 +43,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.Cadets = k.GetAllCadets(ctx) genesis.Governors = k.GetAllGovernors(ctx) genesis.NftHolders = k.GetAllNFTHolders(ctx) + genesis.KolList = k.GetAllKol(ctx) // this line is used by starport scaffolding # genesis/module/export diff --git a/x/commitment/types/codec.go b/x/commitment/types/codec.go index 7965df8cc..ffbbaa8e7 100644 --- a/x/commitment/types/codec.go +++ b/x/commitment/types/codec.go @@ -17,8 +17,12 @@ func RegisterCodec(cdc *codec.LegacyAmino) { legacy.RegisterAminoMsg(cdc, &MsgVestNow{}, "commitment/MsgVestNow") legacy.RegisterAminoMsg(cdc, &MsgUpdateVestingInfo{}, "commitment/MsgUpdateVestingInfo") legacy.RegisterAminoMsg(cdc, &MsgVestLiquid{}, "commitment/MsgVestLiquid") + legacy.RegisterAminoMsg(cdc, &MsgUpdateEnableVestNow{}, "commitment/MsgUpdateEnableVestNow") + legacy.RegisterAminoMsg(cdc, &MsgUpdateAirdropParams{}, "commitment/MsgUpdateAirdropParams") legacy.RegisterAminoMsg(cdc, &MsgStake{}, "commitment/MsgStake") legacy.RegisterAminoMsg(cdc, &MsgUnstake{}, "commitment/MsgUnstake") + legacy.RegisterAminoMsg(cdc, &MsgClaimAirdrop{}, "commitment/MsgClaimAirdrop") + legacy.RegisterAminoMsg(cdc, &MsgClaimKol{}, "commitment/MsgClaimKol") // this line is used by starport scaffolding # 2 } @@ -32,8 +36,12 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgVestNow{}, &MsgUpdateVestingInfo{}, &MsgVestLiquid{}, + &MsgUpdateEnableVestNow{}, + &MsgUpdateAirdropParams{}, &MsgStake{}, &MsgUnstake{}, + &MsgClaimAirdrop{}, + &MsgClaimKol{}, ) // this line is used by starport scaffolding # 3 diff --git a/x/commitment/types/genesis.pb.go b/x/commitment/types/genesis.pb.go index 772d631a1..99c5779c8 100644 --- a/x/commitment/types/genesis.pb.go +++ b/x/commitment/types/genesis.pb.go @@ -31,6 +31,7 @@ type GenesisState struct { NftHolders []*NftHolder `protobuf:"bytes,4,rep,name=nft_holders,json=nftHolders,proto3" json:"nft_holders,omitempty"` Cadets []*Cadet `protobuf:"bytes,5,rep,name=cadets,proto3" json:"cadets,omitempty"` Governors []*Governor `protobuf:"bytes,6,rep,name=governors,proto3" json:"governors,omitempty"` + KolList []*KolList `protobuf:"bytes,7,rep,name=kol_list,json=kolList,proto3" json:"kol_list,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -108,6 +109,13 @@ func (m *GenesisState) GetGovernors() []*Governor { return nil } +func (m *GenesisState) GetKolList() []*KolList { + if m != nil { + return m.KolList + } + return nil +} + func init() { proto.RegisterType((*GenesisState)(nil), "elys.commitment.GenesisState") } @@ -115,29 +123,31 @@ func init() { func init() { proto.RegisterFile("elys/commitment/genesis.proto", fileDescriptor_5600d7581efecfbc) } var fileDescriptor_5600d7581efecfbc = []byte{ - // 346 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xcd, 0x4a, 0xf3, 0x40, - 0x14, 0x86, 0x93, 0xb6, 0x5f, 0xe0, 0x9b, 0x14, 0x84, 0x41, 0x34, 0xc6, 0x1a, 0xab, 0xab, 0x6e, - 0x4c, 0xa0, 0x22, 0x2e, 0x84, 0x82, 0x75, 0x51, 0xdd, 0x88, 0xa4, 0x3b, 0x37, 0x65, 0xda, 0x4e, - 0xd3, 0xd0, 0x26, 0x13, 0x66, 0x8e, 0x3f, 0xbd, 0x0b, 0x2f, 0xab, 0xcb, 0x2e, 0x5d, 0x89, 0xb4, - 0x4b, 0x6f, 0x42, 0x32, 0x49, 0x4d, 0xc9, 0xec, 0xce, 0xf0, 0x3e, 0xcf, 0x3b, 0x07, 0x0e, 0x3a, - 0xa1, 0xf3, 0x85, 0xf0, 0x46, 0x2c, 0x8a, 0x42, 0x88, 0x68, 0x0c, 0x5e, 0x40, 0x63, 0x2a, 0x42, - 0xe1, 0x26, 0x9c, 0x01, 0xc3, 0x7b, 0x69, 0xec, 0x16, 0xb1, 0xbd, 0x1f, 0xb0, 0x80, 0xc9, 0xcc, - 0x4b, 0xa7, 0x0c, 0xb3, 0x1b, 0xe5, 0x96, 0x84, 0x70, 0x12, 0xe5, 0x25, 0xf6, 0x59, 0x39, 0x2d, - 0xc6, 0x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, 0xd3, 0x45, 0x4c, 0xe1, 0x8d, 0xf1, 0x99, 0x7c, - 0x78, 0xef, 0xbb, 0x07, 0x84, 0x45, 0x42, 0xc5, 0xd0, 0x90, 0xf7, 0xbb, 0xfc, 0x0d, 0x00, 0x00, - 0xff, 0xff, 0xb4, 0xe3, 0xf8, 0x22, 0x67, 0x02, 0x00, 0x00, + // 373 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4d, 0x4b, 0xe3, 0x40, + 0x1c, 0xc6, 0x93, 0x6d, 0x37, 0xdd, 0x9d, 0x14, 0x16, 0x86, 0x65, 0x37, 0xc6, 0x1a, 0xab, 0xa7, + 0x5e, 0x4c, 0xa0, 0x45, 0x3c, 0x08, 0x05, 0xeb, 0xa1, 0x8a, 0x22, 0x92, 0xde, 0xbc, 0x94, 0x69, + 0x3b, 0x4d, 0x43, 0x5e, 0x26, 0xcc, 0xfc, 0x7d, 0xe9, 0xb7, 0xf0, 0x23, 0xf8, 0x71, 0x7a, 0xec, + 0xd1, 0x93, 0x48, 0xfb, 0x45, 0x24, 0x93, 0xd4, 0x94, 0xe6, 0xf6, 0x84, 0xe7, 0xf7, 0x7b, 0xf2, + 0x87, 0x41, 0x07, 0x34, 0x9c, 0x0b, 0x67, 0xcc, 0xa2, 0xc8, 0x87, 0x88, 0xc6, 0xe0, 0x78, 0x34, + 0xa6, 0xc2, 0x17, 0x76, 0xc2, 0x19, 0x30, 0xfc, 0x27, 0xad, 0xed, 0xa2, 0x36, 0xff, 0x7a, 0xcc, + 0x63, 0xb2, 0x73, 0xd2, 0x94, 0x61, 0x66, 0x63, 0x77, 0x25, 0x21, 0x9c, 0x44, 0xf9, 0x88, 0x79, + 0xb4, 0xdb, 0x16, 0x71, 0x83, 0x94, 0xce, 0x20, 0x3e, 0x9f, 0x70, 0x96, 0x64, 0xf5, 0xf1, 0x5b, + 0x05, 0xd5, 0xfb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1e, 0x1c, 0xcf, 0x87, 0xd9, 0xe3, 0x28, + 0xb5, 0x9d, 0x74, 0xe6, 0x24, 0xa6, 0xf0, 0xcc, 0x78, 0x20, 0x3f, 0x9c, 0x97, 0xed, 0x57, 0x87, + 0x79, 0x42, 0xc5, 0x48, 0x93, 0x8f, 0xde, 0xf9, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x57, 0xd2, 0x57, + 0xaa, 0x9c, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -160,6 +170,20 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.KolList) > 0 { + for iNdEx := len(m.KolList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.KolList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } if len(m.Governors) > 0 { for iNdEx := len(m.Governors) - 1; iNdEx >= 0; iNdEx-- { { @@ -292,6 +316,12 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.KolList) > 0 { + for _, e := range m.KolList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -533,6 +563,40 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KolList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KolList = append(m.KolList, &KolList{}) + if err := m.KolList[len(m.KolList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/commitment/types/query.pb.go b/x/commitment/types/query.pb.go index 81f450f28..42fce780f 100644 --- a/x/commitment/types/query.pb.go +++ b/x/commitment/types/query.pb.go @@ -1201,6 +1201,7 @@ func _Query_Kol_Handler(srv interface{}, ctx context.Context, dec func(interface return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.commitment.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/commitment/types/tx.pb.go b/x/commitment/types/tx.pb.go index 8a4b1af66..c04b97bfd 100644 --- a/x/commitment/types/tx.pb.go +++ b/x/commitment/types/tx.pb.go @@ -2008,6 +2008,7 @@ func _Msg_ClaimKol_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.commitment.Msg", HandlerType: (*MsgServer)(nil),