diff --git a/api/nova/airdrop/v1/genesis.pulsar.go b/api/nova/airdrop/v1/genesis.pulsar.go index 0f78445c..d55ca16c 100644 --- a/api/nova/airdrop/v1/genesis.pulsar.go +++ b/api/nova/airdrop/v1/genesis.pulsar.go @@ -68,9 +68,10 @@ func (x *_GenesisState_2_list) IsValid() bool { } var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_states protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_states protoreflect.FieldDescriptor + fd_GenesisState_airdropInfo protoreflect.FieldDescriptor ) func init() { @@ -78,6 +79,7 @@ func init() { md_GenesisState = File_nova_airdrop_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_states = md_GenesisState.Fields().ByName("states") + fd_GenesisState_airdropInfo = md_GenesisState.Fields().ByName("airdropInfo") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -157,6 +159,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if x.AirdropInfo != nil { + value := protoreflect.ValueOfMessage(x.AirdropInfo.ProtoReflect()) + if !f(fd_GenesisState_airdropInfo, value) { + return + } + } } // Has reports whether a field is populated. @@ -176,6 +184,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.Params != nil case "nova.airdrop.v1.GenesisState.states": return len(x.States) != 0 + case "nova.airdrop.v1.GenesisState.airdropInfo": + return x.AirdropInfo != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.GenesisState")) @@ -196,6 +206,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Params = nil case "nova.airdrop.v1.GenesisState.states": x.States = nil + case "nova.airdrop.v1.GenesisState.airdropInfo": + x.AirdropInfo = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.GenesisState")) @@ -221,6 +233,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_2_list{list: &x.States} return protoreflect.ValueOfList(listValue) + case "nova.airdrop.v1.GenesisState.airdropInfo": + value := x.AirdropInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.GenesisState")) @@ -247,6 +262,8 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_2_list) x.States = *clv.list + case "nova.airdrop.v1.GenesisState.airdropInfo": + x.AirdropInfo = value.Message().Interface().(*AirdropInfo) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.GenesisState")) @@ -278,6 +295,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_2_list{list: &x.States} return protoreflect.ValueOfList(value) + case "nova.airdrop.v1.GenesisState.airdropInfo": + if x.AirdropInfo == nil { + x.AirdropInfo = new(AirdropInfo) + } + return protoreflect.ValueOfMessage(x.AirdropInfo.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.GenesisState")) @@ -297,6 +319,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "nova.airdrop.v1.GenesisState.states": list := []*AirdropState{} return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) + case "nova.airdrop.v1.GenesisState.airdropInfo": + m := new(AirdropInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.GenesisState")) @@ -319,7 +344,665 @@ func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.States) > 0 { + for _, e := range x.States { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.AirdropInfo != nil { + l = options.Size(x.AirdropInfo) + 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().(*GenesisState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.AirdropInfo != nil { + encoded, err := options.Marshal(x.AirdropInfo) + 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.States) > 0 { + for iNdEx := len(x.States) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.States[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 x.Params != nil { + encoded, err := options.Marshal(x.Params) + 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().(*GenesisState) + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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 States", 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.States = append(x.States, &AirdropState{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.States[len(x.States)-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 AirdropInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.AirdropInfo == nil { + x.AirdropInfo = &AirdropInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AirdropInfo); 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_AirdropInfo protoreflect.MessageDescriptor + fd_AirdropInfo_snapshot_timestamp protoreflect.FieldDescriptor + fd_AirdropInfo_airdrop_start_timestamp protoreflect.FieldDescriptor + fd_AirdropInfo_airdrop_end_timestamp protoreflect.FieldDescriptor + fd_AirdropInfo_airdrop_denom protoreflect.FieldDescriptor + fd_AirdropInfo_quests_count protoreflect.FieldDescriptor + fd_AirdropInfo_controller_address protoreflect.FieldDescriptor +) + +func init() { + file_nova_airdrop_v1_genesis_proto_init() + md_AirdropInfo = File_nova_airdrop_v1_genesis_proto.Messages().ByName("AirdropInfo") + fd_AirdropInfo_snapshot_timestamp = md_AirdropInfo.Fields().ByName("snapshot_timestamp") + fd_AirdropInfo_airdrop_start_timestamp = md_AirdropInfo.Fields().ByName("airdrop_start_timestamp") + fd_AirdropInfo_airdrop_end_timestamp = md_AirdropInfo.Fields().ByName("airdrop_end_timestamp") + fd_AirdropInfo_airdrop_denom = md_AirdropInfo.Fields().ByName("airdrop_denom") + fd_AirdropInfo_quests_count = md_AirdropInfo.Fields().ByName("quests_count") + fd_AirdropInfo_controller_address = md_AirdropInfo.Fields().ByName("controller_address") +} + +var _ protoreflect.Message = (*fastReflection_AirdropInfo)(nil) + +type fastReflection_AirdropInfo AirdropInfo + +func (x *AirdropInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_AirdropInfo)(x) +} + +func (x *AirdropInfo) slowProtoReflect() protoreflect.Message { + mi := &file_nova_airdrop_v1_genesis_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_AirdropInfo_messageType fastReflection_AirdropInfo_messageType +var _ protoreflect.MessageType = fastReflection_AirdropInfo_messageType{} + +type fastReflection_AirdropInfo_messageType struct{} + +func (x fastReflection_AirdropInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_AirdropInfo)(nil) +} +func (x fastReflection_AirdropInfo_messageType) New() protoreflect.Message { + return new(fastReflection_AirdropInfo) +} +func (x fastReflection_AirdropInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_AirdropInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_AirdropInfo) Descriptor() protoreflect.MessageDescriptor { + return md_AirdropInfo +} + +// 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_AirdropInfo) Type() protoreflect.MessageType { + return _fastReflection_AirdropInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_AirdropInfo) New() protoreflect.Message { + return new(fastReflection_AirdropInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_AirdropInfo) Interface() protoreflect.ProtoMessage { + return (*AirdropInfo)(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_AirdropInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SnapshotTimestamp != nil { + value := protoreflect.ValueOfMessage(x.SnapshotTimestamp.ProtoReflect()) + if !f(fd_AirdropInfo_snapshot_timestamp, value) { + return + } + } + if x.AirdropStartTimestamp != nil { + value := protoreflect.ValueOfMessage(x.AirdropStartTimestamp.ProtoReflect()) + if !f(fd_AirdropInfo_airdrop_start_timestamp, value) { + return + } + } + if x.AirdropEndTimestamp != nil { + value := protoreflect.ValueOfMessage(x.AirdropEndTimestamp.ProtoReflect()) + if !f(fd_AirdropInfo_airdrop_end_timestamp, value) { + return + } + } + if x.AirdropDenom != "" { + value := protoreflect.ValueOfString(x.AirdropDenom) + if !f(fd_AirdropInfo_airdrop_denom, value) { + return + } + } + if x.QuestsCount != int32(0) { + value := protoreflect.ValueOfInt32(x.QuestsCount) + if !f(fd_AirdropInfo_quests_count, value) { + return + } + } + if x.ControllerAddress != "" { + value := protoreflect.ValueOfString(x.ControllerAddress) + if !f(fd_AirdropInfo_controller_address, 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_AirdropInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "nova.airdrop.v1.AirdropInfo.snapshot_timestamp": + return x.SnapshotTimestamp != nil + case "nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp": + return x.AirdropStartTimestamp != nil + case "nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp": + return x.AirdropEndTimestamp != nil + case "nova.airdrop.v1.AirdropInfo.airdrop_denom": + return x.AirdropDenom != "" + case "nova.airdrop.v1.AirdropInfo.quests_count": + return x.QuestsCount != int32(0) + case "nova.airdrop.v1.AirdropInfo.controller_address": + return x.ControllerAddress != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.AirdropInfo")) + } + panic(fmt.Errorf("message nova.airdrop.v1.AirdropInfo 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_AirdropInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "nova.airdrop.v1.AirdropInfo.snapshot_timestamp": + x.SnapshotTimestamp = nil + case "nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp": + x.AirdropStartTimestamp = nil + case "nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp": + x.AirdropEndTimestamp = nil + case "nova.airdrop.v1.AirdropInfo.airdrop_denom": + x.AirdropDenom = "" + case "nova.airdrop.v1.AirdropInfo.quests_count": + x.QuestsCount = int32(0) + case "nova.airdrop.v1.AirdropInfo.controller_address": + x.ControllerAddress = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.AirdropInfo")) + } + panic(fmt.Errorf("message nova.airdrop.v1.AirdropInfo 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_AirdropInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "nova.airdrop.v1.AirdropInfo.snapshot_timestamp": + value := x.SnapshotTimestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp": + value := x.AirdropStartTimestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp": + value := x.AirdropEndTimestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_denom": + value := x.AirdropDenom + return protoreflect.ValueOfString(value) + case "nova.airdrop.v1.AirdropInfo.quests_count": + value := x.QuestsCount + return protoreflect.ValueOfInt32(value) + case "nova.airdrop.v1.AirdropInfo.controller_address": + value := x.ControllerAddress + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.AirdropInfo")) + } + panic(fmt.Errorf("message nova.airdrop.v1.AirdropInfo 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_AirdropInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "nova.airdrop.v1.AirdropInfo.snapshot_timestamp": + x.SnapshotTimestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp": + x.AirdropStartTimestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp": + x.AirdropEndTimestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "nova.airdrop.v1.AirdropInfo.airdrop_denom": + x.AirdropDenom = value.Interface().(string) + case "nova.airdrop.v1.AirdropInfo.quests_count": + x.QuestsCount = int32(value.Int()) + case "nova.airdrop.v1.AirdropInfo.controller_address": + x.ControllerAddress = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.AirdropInfo")) + } + panic(fmt.Errorf("message nova.airdrop.v1.AirdropInfo 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_AirdropInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "nova.airdrop.v1.AirdropInfo.snapshot_timestamp": + if x.SnapshotTimestamp == nil { + x.SnapshotTimestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.SnapshotTimestamp.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp": + if x.AirdropStartTimestamp == nil { + x.AirdropStartTimestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.AirdropStartTimestamp.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp": + if x.AirdropEndTimestamp == nil { + x.AirdropEndTimestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.AirdropEndTimestamp.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_denom": + panic(fmt.Errorf("field airdrop_denom of message nova.airdrop.v1.AirdropInfo is not mutable")) + case "nova.airdrop.v1.AirdropInfo.quests_count": + panic(fmt.Errorf("field quests_count of message nova.airdrop.v1.AirdropInfo is not mutable")) + case "nova.airdrop.v1.AirdropInfo.controller_address": + panic(fmt.Errorf("field controller_address of message nova.airdrop.v1.AirdropInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.AirdropInfo")) + } + panic(fmt.Errorf("message nova.airdrop.v1.AirdropInfo 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_AirdropInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "nova.airdrop.v1.AirdropInfo.snapshot_timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "nova.airdrop.v1.AirdropInfo.airdrop_denom": + return protoreflect.ValueOfString("") + case "nova.airdrop.v1.AirdropInfo.quests_count": + return protoreflect.ValueOfInt32(int32(0)) + case "nova.airdrop.v1.AirdropInfo.controller_address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.AirdropInfo")) + } + panic(fmt.Errorf("message nova.airdrop.v1.AirdropInfo 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_AirdropInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in nova.airdrop.v1.AirdropInfo", 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_AirdropInfo) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -330,7 +1013,7 @@ func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_AirdropInfo) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -342,7 +1025,7 @@ func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { +func (x *fastReflection_AirdropInfo) IsValid() bool { return x != nil } @@ -352,9 +1035,9 @@ func (x *fastReflection_GenesisState) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_AirdropInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) + x := input.Message.Interface().(*AirdropInfo) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -366,15 +1049,28 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Params != nil { - l = options.Size(x.Params) + if x.SnapshotTimestamp != nil { + l = options.Size(x.SnapshotTimestamp) n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.States) > 0 { - for _, e := range x.States { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.AirdropStartTimestamp != nil { + l = options.Size(x.AirdropStartTimestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.AirdropEndTimestamp != nil { + l = options.Size(x.AirdropEndTimestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AirdropDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.QuestsCount != 0 { + n += 1 + runtime.Sov(uint64(x.QuestsCount)) + } + l = len(x.ControllerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -386,7 +1082,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) + x := input.Message.Interface().(*AirdropInfo) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -405,24 +1101,55 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.States) > 0 { - for iNdEx := len(x.States) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.States[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.ControllerAddress) > 0 { + i -= len(x.ControllerAddress) + copy(dAtA[i:], x.ControllerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ControllerAddress))) + i-- + dAtA[i] = 0x32 + } + if x.QuestsCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.QuestsCount)) + i-- + dAtA[i] = 0x28 + } + if len(x.AirdropDenom) > 0 { + i -= len(x.AirdropDenom) + copy(dAtA[i:], x.AirdropDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AirdropDenom))) + i-- + dAtA[i] = 0x22 + } + if x.AirdropEndTimestamp != nil { + encoded, err := options.Marshal(x.AirdropEndTimestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) + if x.AirdropStartTimestamp != nil { + encoded, err := options.Marshal(x.AirdropStartTimestamp) + 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 x.SnapshotTimestamp != nil { + encoded, err := options.Marshal(x.SnapshotTimestamp) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -446,7 +1173,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) + x := input.Message.Interface().(*AirdropInfo) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -478,15 +1205,15 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AirdropInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AirdropInfo: 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 Params", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SnapshotTimestamp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -513,16 +1240,16 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Params == nil { - x.Params = &Params{} + if x.SnapshotTimestamp == nil { + x.SnapshotTimestamp = ×tamppb.Timestamp{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SnapshotTimestamp); 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 States", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTimestamp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -549,11 +1276,132 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.States = append(x.States, &AirdropState{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.States[len(x.States)-1]); err != nil { + if x.AirdropStartTimestamp == nil { + x.AirdropStartTimestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AirdropStartTimestamp); 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 AirdropEndTimestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.AirdropEndTimestamp == nil { + x.AirdropEndTimestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AirdropEndTimestamp); 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 AirdropDenom", 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.AirdropDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QuestsCount", wireType) + } + x.QuestsCount = 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.QuestsCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ControllerAddress", 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.ControllerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -703,7 +1551,7 @@ func (x *AirdropState) ProtoReflect() protoreflect.Message { } func (x *AirdropState) slowProtoReflect() protoreflect.Message { - mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[1] + mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +2257,7 @@ func (x *QuestState) ProtoReflect() protoreflect.Message { } func (x *QuestState) slowProtoReflect() protoreflect.Message { - mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[2] + mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2076,6 +2924,8 @@ type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // states for the airdrop, how much coins are allocated for each address is must be pre-defined. States []*AirdropState `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"` + // information for the airdrop + AirdropInfo *AirdropInfo `protobuf:"bytes,3,opt,name=airdropInfo,proto3" json:"airdropInfo,omitempty"` } func (x *GenesisState) Reset() { @@ -2112,6 +2962,94 @@ func (x *GenesisState) GetStates() []*AirdropState { return nil } +func (x *GenesisState) GetAirdropInfo() *AirdropInfo { + if x != nil { + return x.AirdropInfo + } + return nil +} + +type AirdropInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The snapshot date based for the distribution of the airdrop. + SnapshotTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=snapshot_timestamp,json=snapshotTimestamp,proto3" json:"snapshot_timestamp,omitempty"` + // THe time when you can claim your airdrop nova tokens. + AirdropStartTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=airdrop_start_timestamp,json=airdropStartTimestamp,proto3" json:"airdrop_start_timestamp,omitempty"` + // THe time when the user no longer can claim the airdrop tokens. + AirdropEndTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=airdrop_end_timestamp,json=airdropEndTimestamp,proto3" json:"airdrop_end_timestamp,omitempty"` + // The denom for the airdrop coin. + AirdropDenom string `protobuf:"bytes,4,opt,name=airdrop_denom,json=airdropDenom,proto3" json:"airdrop_denom,omitempty"` + // the number of quests user to do + QuestsCount int32 `protobuf:"varint,5,opt,name=quests_count,json=questsCount,proto3" json:"quests_count,omitempty"` + // controller address is responsible to check the user has performed the social quest (e.g. twitter, facebook or etc) + ControllerAddress string `protobuf:"bytes,6,opt,name=controller_address,json=controllerAddress,proto3" json:"controller_address,omitempty"` +} + +func (x *AirdropInfo) Reset() { + *x = AirdropInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AirdropInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AirdropInfo) ProtoMessage() {} + +// Deprecated: Use AirdropInfo.ProtoReflect.Descriptor instead. +func (*AirdropInfo) Descriptor() ([]byte, []int) { + return file_nova_airdrop_v1_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *AirdropInfo) GetSnapshotTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.SnapshotTimestamp + } + return nil +} + +func (x *AirdropInfo) GetAirdropStartTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.AirdropStartTimestamp + } + return nil +} + +func (x *AirdropInfo) GetAirdropEndTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.AirdropEndTimestamp + } + return nil +} + +func (x *AirdropInfo) GetAirdropDenom() string { + if x != nil { + return x.AirdropDenom + } + return "" +} + +func (x *AirdropInfo) GetQuestsCount() int32 { + if x != nil { + return x.QuestsCount + } + return 0 +} + +func (x *AirdropInfo) GetControllerAddress() string { + if x != nil { + return x.ControllerAddress + } + return "" +} + type AirdropState struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2128,7 +3066,7 @@ type AirdropState struct { func (x *AirdropState) Reset() { *x = AirdropState{} if protoimpl.UnsafeEnabled { - mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[1] + mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2142,7 +3080,7 @@ func (*AirdropState) ProtoMessage() {} // Deprecated: Use AirdropState.ProtoReflect.Descriptor instead. func (*AirdropState) Descriptor() ([]byte, []int) { - return file_nova_airdrop_v1_genesis_proto_rawDescGZIP(), []int{1} + return file_nova_airdrop_v1_genesis_proto_rawDescGZIP(), []int{2} } func (x *AirdropState) GetRecipient() string { @@ -2182,7 +3120,7 @@ type QuestState struct { func (x *QuestState) Reset() { *x = QuestState{} if protoimpl.UnsafeEnabled { - mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[2] + mi := &file_nova_airdrop_v1_genesis_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2196,7 +3134,7 @@ func (*QuestState) ProtoMessage() {} // Deprecated: Use QuestState.ProtoReflect.Descriptor instead. func (*QuestState) Descriptor() ([]byte, []int) { - return file_nova_airdrop_v1_genesis_proto_rawDescGZIP(), []int{2} + return file_nova_airdrop_v1_genesis_proto_rawDescGZIP(), []int{3} } func (x *QuestState) GetState() QuestStateType { @@ -2233,71 +3171,100 @@ var file_nova_airdrop_v1_genesis_proto_rawDesc = []byte{ 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, - 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, - 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0xff, 0x01, - 0x0a, 0x0c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, - 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x51, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, - 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x73, 0x1a, 0x5b, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, - 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0xcf, 0x01, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, - 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, + 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, + 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, + 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 0x3e, + 0x0a, 0x0b, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, + 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x0b, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x91, + 0x03, 0x0a, 0x0b, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x53, + 0x0a, 0x12, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, - 0x52, 0x0a, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x64, 0x41, 0x74, 0x12, 0x43, 0x0a, 0x0a, - 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x52, 0x11, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x12, 0x5c, 0x0a, 0x17, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x15, 0x61, 0x69, 0x72, 0x64, + 0x72, 0x6f, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x12, 0x58, 0x0a, 0x15, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x65, 0x6e, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, - 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x41, - 0x74, 0x2a, 0x8a, 0x01, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x17, 0x0a, 0x13, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x48, 0x49, 0x4e, 0x47, - 0x5f, 0x54, 0x4f, 0x5f, 0x44, 0x4f, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x51, 0x55, - 0x45, 0x53, 0x54, 0x5f, 0x53, 0x4e, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x43, 0x4c, 0x41, - 0x49, 0x4d, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x50, 0x52, - 0x4f, 0x56, 0x49, 0x44, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, - 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x56, 0x4f, 0x54, 0x45, 0x5f, - 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x53, 0x10, 0x04, 0x2a, 0x61, - 0x0a, 0x0e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, - 0x15, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4c, 0x41, - 0x49, 0x4d, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x45, 0x44, 0x10, - 0x02, 0x42, 0xbc, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, - 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x72, 0x69, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, - 0x73, 0x2f, 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x76, 0x61, 0x2f, - 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x72, 0x64, 0x72, - 0x6f, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x0f, 0x4e, 0x6f, 0x76, - 0x61, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4e, - 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x1b, 0x4e, 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4e, - 0x6f, 0x76, 0x61, 0x3a, 0x3a, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x13, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x45, + 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x61, + 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x6e, 0x6f, 0x6d, + 0x12, 0x21, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x22, 0xff, 0x01, 0x0a, 0x0c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, + 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x6f, 0x76, + 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x69, 0x72, + 0x64, 0x72, 0x6f, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x1a, 0x5b, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x73, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, + 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcf, 0x01, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x61, 0x63, + 0x68, 0x69, 0x65, 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x63, 0x6c, 0x61, + 0x69, 0x6d, 0x65, 0x64, 0x41, 0x74, 0x2a, 0x8a, 0x01, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x73, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x4e, 0x4f, + 0x54, 0x48, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x4f, 0x5f, 0x44, 0x4f, 0x10, 0x00, 0x12, 0x10, 0x0a, + 0x0c, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, 0x4c, 0x10, 0x01, 0x12, + 0x18, 0x0a, 0x14, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x4e, 0x5f, 0x41, 0x53, 0x53, 0x45, + 0x54, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, + 0x53, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, + 0x44, 0x49, 0x54, 0x59, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, + 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, + 0x53, 0x10, 0x04, 0x2a, 0x61, 0x0a, 0x0e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, + 0x13, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4c, 0x41, + 0x49, 0x4d, 0x45, 0x44, 0x10, 0x02, 0x42, 0xbc, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, + 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, + 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x72, 0x69, 0x6e, + 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2f, 0x76, 0x31, 0x3b, + 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, + 0x02, 0x0f, 0x4e, 0x6f, 0x76, 0x61, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x0f, 0x4e, 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4e, 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, + 0x6f, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x11, 0x4e, 0x6f, 0x76, 0x61, 0x3a, 0x3a, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, + 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2313,30 +3280,35 @@ func file_nova_airdrop_v1_genesis_proto_rawDescGZIP() []byte { } var file_nova_airdrop_v1_genesis_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_nova_airdrop_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_nova_airdrop_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_nova_airdrop_v1_genesis_proto_goTypes = []interface{}{ (QuestType)(0), // 0: nova.airdrop.v1.QuestType (QuestStateType)(0), // 1: nova.airdrop.v1.QuestStateType (*GenesisState)(nil), // 2: nova.airdrop.v1.GenesisState - (*AirdropState)(nil), // 3: nova.airdrop.v1.AirdropState - (*QuestState)(nil), // 4: nova.airdrop.v1.QuestState - nil, // 5: nova.airdrop.v1.AirdropState.QuestStatesEntry - (*Params)(nil), // 6: nova.airdrop.v1.Params - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*AirdropInfo)(nil), // 3: nova.airdrop.v1.AirdropInfo + (*AirdropState)(nil), // 4: nova.airdrop.v1.AirdropState + (*QuestState)(nil), // 5: nova.airdrop.v1.QuestState + nil, // 6: nova.airdrop.v1.AirdropState.QuestStatesEntry + (*Params)(nil), // 7: nova.airdrop.v1.Params + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp } var file_nova_airdrop_v1_genesis_proto_depIdxs = []int32{ - 6, // 0: nova.airdrop.v1.GenesisState.params:type_name -> nova.airdrop.v1.Params - 3, // 1: nova.airdrop.v1.GenesisState.states:type_name -> nova.airdrop.v1.AirdropState - 5, // 2: nova.airdrop.v1.AirdropState.quest_states:type_name -> nova.airdrop.v1.AirdropState.QuestStatesEntry - 1, // 3: nova.airdrop.v1.QuestState.state:type_name -> nova.airdrop.v1.QuestStateType - 7, // 4: nova.airdrop.v1.QuestState.achieved_at:type_name -> google.protobuf.Timestamp - 7, // 5: nova.airdrop.v1.QuestState.claimed_at:type_name -> google.protobuf.Timestamp - 4, // 6: nova.airdrop.v1.AirdropState.QuestStatesEntry.value:type_name -> nova.airdrop.v1.QuestState - 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 + 7, // 0: nova.airdrop.v1.GenesisState.params:type_name -> nova.airdrop.v1.Params + 4, // 1: nova.airdrop.v1.GenesisState.states:type_name -> nova.airdrop.v1.AirdropState + 3, // 2: nova.airdrop.v1.GenesisState.airdropInfo:type_name -> nova.airdrop.v1.AirdropInfo + 8, // 3: nova.airdrop.v1.AirdropInfo.snapshot_timestamp:type_name -> google.protobuf.Timestamp + 8, // 4: nova.airdrop.v1.AirdropInfo.airdrop_start_timestamp:type_name -> google.protobuf.Timestamp + 8, // 5: nova.airdrop.v1.AirdropInfo.airdrop_end_timestamp:type_name -> google.protobuf.Timestamp + 6, // 6: nova.airdrop.v1.AirdropState.quest_states:type_name -> nova.airdrop.v1.AirdropState.QuestStatesEntry + 1, // 7: nova.airdrop.v1.QuestState.state:type_name -> nova.airdrop.v1.QuestStateType + 8, // 8: nova.airdrop.v1.QuestState.achieved_at:type_name -> google.protobuf.Timestamp + 8, // 9: nova.airdrop.v1.QuestState.claimed_at:type_name -> google.protobuf.Timestamp + 5, // 10: nova.airdrop.v1.AirdropState.QuestStatesEntry.value:type_name -> nova.airdrop.v1.QuestState + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_nova_airdrop_v1_genesis_proto_init() } @@ -2359,7 +3331,7 @@ func file_nova_airdrop_v1_genesis_proto_init() { } } file_nova_airdrop_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AirdropState); i { + switch v := v.(*AirdropInfo); i { case 0: return &v.state case 1: @@ -2371,6 +3343,18 @@ func file_nova_airdrop_v1_genesis_proto_init() { } } file_nova_airdrop_v1_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AirdropState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_nova_airdrop_v1_genesis_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QuestState); i { case 0: return &v.state @@ -2389,7 +3373,7 @@ func file_nova_airdrop_v1_genesis_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_nova_airdrop_v1_genesis_proto_rawDesc, NumEnums: 2, - NumMessages: 4, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/api/nova/airdrop/v1/params.pulsar.go b/api/nova/airdrop/v1/params.pulsar.go index a981700a..8e0e1be8 100644 --- a/api/nova/airdrop/v1/params.pulsar.go +++ b/api/nova/airdrop/v1/params.pulsar.go @@ -8,31 +8,19 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" + _ "google.golang.org/protobuf/types/known/timestamppb" io "io" reflect "reflect" sync "sync" ) var ( - md_Params protoreflect.MessageDescriptor - fd_Params_snapshot_timestamp protoreflect.FieldDescriptor - fd_Params_claimable_timestamp protoreflect.FieldDescriptor - fd_Params_airdrop_end_timestamp protoreflect.FieldDescriptor - fd_Params_airdrop_denom protoreflect.FieldDescriptor - fd_Params_quests_count protoreflect.FieldDescriptor - fd_Params_controller_address protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor ) func init() { file_nova_airdrop_v1_params_proto_init() md_Params = File_nova_airdrop_v1_params_proto.Messages().ByName("Params") - fd_Params_snapshot_timestamp = md_Params.Fields().ByName("snapshot_timestamp") - fd_Params_claimable_timestamp = md_Params.Fields().ByName("claimable_timestamp") - fd_Params_airdrop_end_timestamp = md_Params.Fields().ByName("airdrop_end_timestamp") - fd_Params_airdrop_denom = md_Params.Fields().ByName("airdrop_denom") - fd_Params_quests_count = md_Params.Fields().ByName("quests_count") - fd_Params_controller_address = md_Params.Fields().ByName("controller_address") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -100,42 +88,6 @@ func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SnapshotTimestamp != nil { - value := protoreflect.ValueOfMessage(x.SnapshotTimestamp.ProtoReflect()) - if !f(fd_Params_snapshot_timestamp, value) { - return - } - } - if x.ClaimableTimestamp != nil { - value := protoreflect.ValueOfMessage(x.ClaimableTimestamp.ProtoReflect()) - if !f(fd_Params_claimable_timestamp, value) { - return - } - } - if x.AirdropEndTimestamp != nil { - value := protoreflect.ValueOfMessage(x.AirdropEndTimestamp.ProtoReflect()) - if !f(fd_Params_airdrop_end_timestamp, value) { - return - } - } - if x.AirdropDenom != "" { - value := protoreflect.ValueOfString(x.AirdropDenom) - if !f(fd_Params_airdrop_denom, value) { - return - } - } - if x.QuestsCount != int32(0) { - value := protoreflect.ValueOfInt32(x.QuestsCount) - if !f(fd_Params_quests_count, value) { - return - } - } - if x.ControllerAddress != "" { - value := protoreflect.ValueOfString(x.ControllerAddress) - if !f(fd_Params_controller_address, value) { - return - } - } } // Has reports whether a field is populated. @@ -151,18 +103,6 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "nova.airdrop.v1.Params.snapshot_timestamp": - return x.SnapshotTimestamp != nil - case "nova.airdrop.v1.Params.claimable_timestamp": - return x.ClaimableTimestamp != nil - case "nova.airdrop.v1.Params.airdrop_end_timestamp": - return x.AirdropEndTimestamp != nil - case "nova.airdrop.v1.Params.airdrop_denom": - return x.AirdropDenom != "" - case "nova.airdrop.v1.Params.quests_count": - return x.QuestsCount != int32(0) - case "nova.airdrop.v1.Params.controller_address": - return x.ControllerAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.Params")) @@ -179,18 +119,6 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "nova.airdrop.v1.Params.snapshot_timestamp": - x.SnapshotTimestamp = nil - case "nova.airdrop.v1.Params.claimable_timestamp": - x.ClaimableTimestamp = nil - case "nova.airdrop.v1.Params.airdrop_end_timestamp": - x.AirdropEndTimestamp = nil - case "nova.airdrop.v1.Params.airdrop_denom": - x.AirdropDenom = "" - case "nova.airdrop.v1.Params.quests_count": - x.QuestsCount = int32(0) - case "nova.airdrop.v1.Params.controller_address": - x.ControllerAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.Params")) @@ -207,24 +135,6 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "nova.airdrop.v1.Params.snapshot_timestamp": - value := x.SnapshotTimestamp - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "nova.airdrop.v1.Params.claimable_timestamp": - value := x.ClaimableTimestamp - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "nova.airdrop.v1.Params.airdrop_end_timestamp": - value := x.AirdropEndTimestamp - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "nova.airdrop.v1.Params.airdrop_denom": - value := x.AirdropDenom - return protoreflect.ValueOfString(value) - case "nova.airdrop.v1.Params.quests_count": - value := x.QuestsCount - return protoreflect.ValueOfInt32(value) - case "nova.airdrop.v1.Params.controller_address": - value := x.ControllerAddress - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.Params")) @@ -245,18 +155,6 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "nova.airdrop.v1.Params.snapshot_timestamp": - x.SnapshotTimestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "nova.airdrop.v1.Params.claimable_timestamp": - x.ClaimableTimestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "nova.airdrop.v1.Params.airdrop_end_timestamp": - x.AirdropEndTimestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "nova.airdrop.v1.Params.airdrop_denom": - x.AirdropDenom = value.Interface().(string) - case "nova.airdrop.v1.Params.quests_count": - x.QuestsCount = int32(value.Int()) - case "nova.airdrop.v1.Params.controller_address": - x.ControllerAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.Params")) @@ -277,27 +175,6 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "nova.airdrop.v1.Params.snapshot_timestamp": - if x.SnapshotTimestamp == nil { - x.SnapshotTimestamp = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.SnapshotTimestamp.ProtoReflect()) - case "nova.airdrop.v1.Params.claimable_timestamp": - if x.ClaimableTimestamp == nil { - x.ClaimableTimestamp = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.ClaimableTimestamp.ProtoReflect()) - case "nova.airdrop.v1.Params.airdrop_end_timestamp": - if x.AirdropEndTimestamp == nil { - x.AirdropEndTimestamp = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.AirdropEndTimestamp.ProtoReflect()) - case "nova.airdrop.v1.Params.airdrop_denom": - panic(fmt.Errorf("field airdrop_denom of message nova.airdrop.v1.Params is not mutable")) - case "nova.airdrop.v1.Params.quests_count": - panic(fmt.Errorf("field quests_count of message nova.airdrop.v1.Params is not mutable")) - case "nova.airdrop.v1.Params.controller_address": - panic(fmt.Errorf("field controller_address of message nova.airdrop.v1.Params is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.Params")) @@ -311,21 +188,6 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "nova.airdrop.v1.Params.snapshot_timestamp": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "nova.airdrop.v1.Params.claimable_timestamp": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "nova.airdrop.v1.Params.airdrop_end_timestamp": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "nova.airdrop.v1.Params.airdrop_denom": - return protoreflect.ValueOfString("") - case "nova.airdrop.v1.Params.quests_count": - return protoreflect.ValueOfInt32(int32(0)) - case "nova.airdrop.v1.Params.controller_address": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: nova.airdrop.v1.Params")) @@ -395,29 +257,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.SnapshotTimestamp != nil { - l = options.Size(x.SnapshotTimestamp) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ClaimableTimestamp != nil { - l = options.Size(x.ClaimableTimestamp) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.AirdropEndTimestamp != nil { - l = options.Size(x.AirdropEndTimestamp) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.AirdropDenom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.QuestsCount != 0 { - n += 1 + runtime.Sov(uint64(x.QuestsCount)) - } - l = len(x.ControllerAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -447,67 +286,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ControllerAddress) > 0 { - i -= len(x.ControllerAddress) - copy(dAtA[i:], x.ControllerAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ControllerAddress))) - i-- - dAtA[i] = 0x32 - } - if x.QuestsCount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.QuestsCount)) - i-- - dAtA[i] = 0x28 - } - if len(x.AirdropDenom) > 0 { - i -= len(x.AirdropDenom) - copy(dAtA[i:], x.AirdropDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AirdropDenom))) - i-- - dAtA[i] = 0x22 - } - if x.AirdropEndTimestamp != nil { - encoded, err := options.Marshal(x.AirdropEndTimestamp) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.ClaimableTimestamp != nil { - encoded, err := options.Marshal(x.ClaimableTimestamp) - 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 x.SnapshotTimestamp != nil { - encoded, err := options.Marshal(x.SnapshotTimestamp) - 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 { @@ -557,197 +335,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 SnapshotTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SnapshotTimestamp == nil { - x.SnapshotTimestamp = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SnapshotTimestamp); 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 ClaimableTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.ClaimableTimestamp == nil { - x.ClaimableTimestamp = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ClaimableTimestamp); 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 AirdropEndTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.AirdropEndTimestamp == nil { - x.AirdropEndTimestamp = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AirdropEndTimestamp); 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 AirdropDenom", 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.AirdropDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QuestsCount", wireType) - } - x.QuestsCount = 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.QuestsCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ControllerAddress", 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.ControllerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -800,19 +387,6 @@ type Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // The snapshot date based for the distribution of the airdrop. - SnapshotTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=snapshot_timestamp,json=snapshotTimestamp,proto3" json:"snapshot_timestamp,omitempty"` - // THe time when you can claim your airdrop nova tokens. - ClaimableTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=claimable_timestamp,json=claimableTimestamp,proto3" json:"claimable_timestamp,omitempty"` - // THe time when the user no longer can claim the airdrop tokens. - AirdropEndTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=airdrop_end_timestamp,json=airdropEndTimestamp,proto3" json:"airdrop_end_timestamp,omitempty"` - // The denom for the airdrop coin. - AirdropDenom string `protobuf:"bytes,4,opt,name=airdrop_denom,json=airdropDenom,proto3" json:"airdrop_denom,omitempty"` - // the number of quests user to do - QuestsCount int32 `protobuf:"varint,5,opt,name=quests_count,json=questsCount,proto3" json:"quests_count,omitempty"` - // controller address is responsible to check the user has performed the social quest (e.g. twitter, facebook or etc) - ControllerAddress string `protobuf:"bytes,6,opt,name=controller_address,json=controllerAddress,proto3" json:"controller_address,omitempty"` } func (x *Params) Reset() { @@ -835,48 +409,6 @@ func (*Params) Descriptor() ([]byte, []int) { return file_nova_airdrop_v1_params_proto_rawDescGZIP(), []int{0} } -func (x *Params) GetSnapshotTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.SnapshotTimestamp - } - return nil -} - -func (x *Params) GetClaimableTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.ClaimableTimestamp - } - return nil -} - -func (x *Params) GetAirdropEndTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.AirdropEndTimestamp - } - return nil -} - -func (x *Params) GetAirdropDenom() string { - if x != nil { - return x.AirdropDenom - } - return "" -} - -func (x *Params) GetQuestsCount() int32 { - if x != nil { - return x.QuestsCount - } - return 0 -} - -func (x *Params) GetControllerAddress() string { - if x != nil { - return x.ControllerAddress - } - return "" -} - var File_nova_airdrop_v1_params_proto protoreflect.FileDescriptor var file_nova_airdrop_v1_params_proto_rawDesc = []byte{ @@ -886,44 +418,20 @@ var file_nova_airdrop_v1_params_proto_rawDesc = []byte{ 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x53, 0x0a, 0x12, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, - 0xdf, 0x1f, 0x01, 0x52, 0x11, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x55, 0x0a, 0x13, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, - 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x12, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x58, 0x0a, - 0x15, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, - 0x1f, 0x01, 0x52, 0x13, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x45, 0x6e, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x69, 0x72, 0x64, 0x72, - 0x6f, 0x70, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x0a, 0x0c, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x04, - 0x98, 0xa0, 0x1f, 0x00, 0x42, 0xbb, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x76, - 0x61, 0x2e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x72, 0x69, 0x6e, 0x61, 0x2d, 0x6c, - 0x61, 0x62, 0x73, 0x2f, 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x76, - 0x61, 0x2f, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x72, - 0x64, 0x72, 0x6f, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x0f, 0x4e, - 0x6f, 0x76, 0x61, 0x2e, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0f, 0x4e, 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x1b, 0x4e, 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x4e, 0x6f, 0x76, 0x61, 0x3a, 0x3a, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x08, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x42, 0xbb, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x76, 0x61, 0x2e, 0x61, 0x69, + 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x72, 0x69, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, + 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x61, 0x69, + 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x41, 0x58, 0xaa, 0x02, 0x0f, 0x4e, 0x6f, 0x76, 0x61, 0x2e, + 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4e, 0x6f, 0x76, + 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4e, + 0x6f, 0x76, 0x61, 0x5c, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4e, 0x6f, 0x76, + 0x61, 0x3a, 0x3a, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -940,18 +448,14 @@ func file_nova_airdrop_v1_params_proto_rawDescGZIP() []byte { var file_nova_airdrop_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_nova_airdrop_v1_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: nova.airdrop.v1.Params - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*Params)(nil), // 0: nova.airdrop.v1.Params } var file_nova_airdrop_v1_params_proto_depIdxs = []int32{ - 1, // 0: nova.airdrop.v1.Params.snapshot_timestamp:type_name -> google.protobuf.Timestamp - 1, // 1: nova.airdrop.v1.Params.claimable_timestamp:type_name -> google.protobuf.Timestamp - 1, // 2: nova.airdrop.v1.Params.airdrop_end_timestamp:type_name -> google.protobuf.Timestamp - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } func init() { file_nova_airdrop_v1_params_proto_init() } diff --git a/proto/nova/airdrop/v1/genesis.proto b/proto/nova/airdrop/v1/genesis.proto index 3d46dee4..aae30eef 100644 --- a/proto/nova/airdrop/v1/genesis.proto +++ b/proto/nova/airdrop/v1/genesis.proto @@ -15,6 +15,38 @@ message GenesisState { // states for the airdrop, how much coins are allocated for each address is must be pre-defined. repeated AirdropState states = 2; + + // information for the airdrop + AirdropInfo airdropInfo = 3; +} + +message AirdropInfo { + // The snapshot date based for the distribution of the airdrop. + google.protobuf.Timestamp snapshot_timestamp = 1 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false + ]; + + // THe time when you can claim your airdrop nova tokens. + google.protobuf.Timestamp airdrop_start_timestamp = 2 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false + ]; + + // THe time when the user no longer can claim the airdrop tokens. + google.protobuf.Timestamp airdrop_end_timestamp = 3 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false + ]; + + // The denom for the airdrop coin. + string airdrop_denom = 4; + + // the number of quests user to do + int32 quests_count = 5; + + // controller address is responsible to check the user has performed the social quest (e.g. twitter, facebook or etc) + string controller_address = 6; } enum QuestType { diff --git a/proto/nova/airdrop/v1/params.proto b/proto/nova/airdrop/v1/params.proto index 74216e29..ec935c8f 100644 --- a/proto/nova/airdrop/v1/params.proto +++ b/proto/nova/airdrop/v1/params.proto @@ -7,32 +7,5 @@ import "google/protobuf/timestamp.proto"; option go_package = "github.com/Carina-labs/nova/x/airdrop/types"; message Params { - option (gogoproto.goproto_stringer) = false; - // The snapshot date based for the distribution of the airdrop. - google.protobuf.Timestamp snapshot_timestamp = 1 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false - ]; - - // THe time when you can claim your airdrop nova tokens. - google.protobuf.Timestamp claimable_timestamp = 2 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false - ]; - - // THe time when the user no longer can claim the airdrop tokens. - google.protobuf.Timestamp airdrop_end_timestamp = 3 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false - ]; - - // The denom for the airdrop coin. - string airdrop_denom = 4; - - // the number of quests user to do - int32 quests_count = 5; - - // controller address is responsible to check the user has performed the social quest (e.g. twitter, facebook or etc) - string controller_address = 6; } \ No newline at end of file diff --git a/x/airdrop/types/genesis.pb.go b/x/airdrop/types/genesis.pb.go index 09d4dd33..93315bb7 100644 --- a/x/airdrop/types/genesis.pb.go +++ b/x/airdrop/types/genesis.pb.go @@ -98,6 +98,8 @@ type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // states for the airdrop, how much coins are allocated for each address is must be pre-defined. States []*AirdropState `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"` + // information for the airdrop + AirdropInfo *AirdropInfo `protobuf:"bytes,3,opt,name=airdropInfo,proto3" json:"airdropInfo,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -147,6 +149,103 @@ func (m *GenesisState) GetStates() []*AirdropState { return nil } +func (m *GenesisState) GetAirdropInfo() *AirdropInfo { + if m != nil { + return m.AirdropInfo + } + return nil +} + +type AirdropInfo struct { + // The snapshot date based for the distribution of the airdrop. + SnapshotTimestamp time.Time `protobuf:"bytes,1,opt,name=snapshot_timestamp,json=snapshotTimestamp,proto3,stdtime" json:"snapshot_timestamp"` + // THe time when you can claim your airdrop nova tokens. + AirdropStartTimestamp time.Time `protobuf:"bytes,2,opt,name=airdrop_start_timestamp,json=airdropStartTimestamp,proto3,stdtime" json:"airdrop_start_timestamp"` + // THe time when the user no longer can claim the airdrop tokens. + AirdropEndTimestamp time.Time `protobuf:"bytes,3,opt,name=airdrop_end_timestamp,json=airdropEndTimestamp,proto3,stdtime" json:"airdrop_end_timestamp"` + // The denom for the airdrop coin. + AirdropDenom string `protobuf:"bytes,4,opt,name=airdrop_denom,json=airdropDenom,proto3" json:"airdrop_denom,omitempty"` + // the number of quests user to do + QuestsCount int32 `protobuf:"varint,5,opt,name=quests_count,json=questsCount,proto3" json:"quests_count,omitempty"` + // controller address is responsible to check the user has performed the social quest (e.g. twitter, facebook or etc) + ControllerAddress string `protobuf:"bytes,6,opt,name=controller_address,json=controllerAddress,proto3" json:"controller_address,omitempty"` +} + +func (m *AirdropInfo) Reset() { *m = AirdropInfo{} } +func (m *AirdropInfo) String() string { return proto.CompactTextString(m) } +func (*AirdropInfo) ProtoMessage() {} +func (*AirdropInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_aac0a958a67617af, []int{1} +} +func (m *AirdropInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AirdropInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AirdropInfo.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 *AirdropInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_AirdropInfo.Merge(m, src) +} +func (m *AirdropInfo) XXX_Size() int { + return m.Size() +} +func (m *AirdropInfo) XXX_DiscardUnknown() { + xxx_messageInfo_AirdropInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_AirdropInfo proto.InternalMessageInfo + +func (m *AirdropInfo) GetSnapshotTimestamp() time.Time { + if m != nil { + return m.SnapshotTimestamp + } + return time.Time{} +} + +func (m *AirdropInfo) GetAirdropStartTimestamp() time.Time { + if m != nil { + return m.AirdropStartTimestamp + } + return time.Time{} +} + +func (m *AirdropInfo) GetAirdropEndTimestamp() time.Time { + if m != nil { + return m.AirdropEndTimestamp + } + return time.Time{} +} + +func (m *AirdropInfo) GetAirdropDenom() string { + if m != nil { + return m.AirdropDenom + } + return "" +} + +func (m *AirdropInfo) GetQuestsCount() int32 { + if m != nil { + return m.QuestsCount + } + return 0 +} + +func (m *AirdropInfo) GetControllerAddress() string { + if m != nil { + return m.ControllerAddress + } + return "" +} + type AirdropState struct { // address of the airdrop recipient. Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` @@ -160,7 +259,7 @@ func (m *AirdropState) Reset() { *m = AirdropState{} } func (m *AirdropState) String() string { return proto.CompactTextString(m) } func (*AirdropState) ProtoMessage() {} func (*AirdropState) Descriptor() ([]byte, []int) { - return fileDescriptor_aac0a958a67617af, []int{1} + return fileDescriptor_aac0a958a67617af, []int{2} } func (m *AirdropState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -223,7 +322,7 @@ func (m *QuestState) Reset() { *m = QuestState{} } func (m *QuestState) String() string { return proto.CompactTextString(m) } func (*QuestState) ProtoMessage() {} func (*QuestState) Descriptor() ([]byte, []int) { - return fileDescriptor_aac0a958a67617af, []int{2} + return fileDescriptor_aac0a958a67617af, []int{3} } func (m *QuestState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,6 +376,7 @@ func init() { proto.RegisterEnum("nova.airdrop.v1.QuestType", QuestType_name, QuestType_value) proto.RegisterEnum("nova.airdrop.v1.QuestStateType", QuestStateType_name, QuestStateType_value) proto.RegisterType((*GenesisState)(nil), "nova.airdrop.v1.GenesisState") + proto.RegisterType((*AirdropInfo)(nil), "nova.airdrop.v1.AirdropInfo") proto.RegisterType((*AirdropState)(nil), "nova.airdrop.v1.AirdropState") proto.RegisterMapType((map[int32]*QuestState)(nil), "nova.airdrop.v1.AirdropState.QuestStatesEntry") proto.RegisterType((*QuestState)(nil), "nova.airdrop.v1.QuestState") @@ -285,46 +385,55 @@ func init() { func init() { proto.RegisterFile("nova/airdrop/v1/genesis.proto", fileDescriptor_aac0a958a67617af) } var fileDescriptor_aac0a958a67617af = []byte{ - // 610 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x4e, 0xdb, 0x4c, - 0x14, 0x85, 0xe3, 0xe4, 0x07, 0xfd, 0xb9, 0x89, 0xa8, 0x35, 0xa5, 0x22, 0x0d, 0xe0, 0x50, 0x56, - 0x88, 0xaa, 0xb6, 0x92, 0x0a, 0xa9, 0xea, 0xce, 0x24, 0x16, 0xb5, 0x94, 0xc6, 0xc4, 0x36, 0x48, - 0x6d, 0x17, 0xd6, 0x24, 0x4c, 0x8d, 0xd5, 0xd8, 0x63, 0x3c, 0x13, 0xab, 0x79, 0x85, 0xae, 0x78, - 0x2c, 0x76, 0x65, 0xd9, 0x55, 0x5b, 0xc1, 0x83, 0xb4, 0xf2, 0xd8, 0xd4, 0x14, 0x24, 0xa4, 0xee, - 0xae, 0xef, 0x39, 0xf7, 0xdc, 0xcf, 0x33, 0x1a, 0xd8, 0x8c, 0x68, 0x8a, 0x35, 0x1c, 0x24, 0x27, - 0x09, 0x8d, 0xb5, 0xb4, 0xab, 0xf9, 0x24, 0x22, 0x2c, 0x60, 0x6a, 0x9c, 0x50, 0x4e, 0xd1, 0xa3, - 0x4c, 0x56, 0x0b, 0x59, 0x4d, 0xbb, 0xed, 0x8d, 0xbb, 0xfe, 0x18, 0x27, 0x38, 0x2c, 0xec, 0x6d, - 0x65, 0x4a, 0x59, 0x48, 0x99, 0x36, 0xc1, 0x8c, 0x68, 0x69, 0x77, 0x42, 0x38, 0xee, 0x6a, 0x53, - 0x1a, 0x44, 0x85, 0xbe, 0xea, 0x53, 0x9f, 0x8a, 0x52, 0xcb, 0xaa, 0xa2, 0xdb, 0xf1, 0x29, 0xf5, - 0x67, 0x44, 0x13, 0x5f, 0x93, 0xf9, 0x47, 0x8d, 0x07, 0x21, 0x61, 0x1c, 0x87, 0x71, 0x6e, 0xd8, - 0x4e, 0xa1, 0x79, 0x90, 0x63, 0x39, 0x1c, 0x73, 0x82, 0x34, 0x58, 0xce, 0xd7, 0xb6, 0xa4, 0x2d, - 0x69, 0xa7, 0xd1, 0x5b, 0x53, 0xef, 0x60, 0xaa, 0x87, 0x42, 0xb6, 0x0b, 0x1b, 0xda, 0x83, 0x65, - 0x96, 0x4d, 0xb2, 0x56, 0x75, 0xab, 0xb6, 0xd3, 0xe8, 0x6d, 0xde, 0x1b, 0xd0, 0xf3, 0x52, 0xe4, - 0xdb, 0x85, 0x79, 0xfb, 0x97, 0x04, 0xcd, 0xdb, 0x02, 0xda, 0x80, 0x7a, 0x42, 0xa6, 0x41, 0x1c, - 0x90, 0x88, 0x8b, 0xdd, 0x75, 0xbb, 0x6c, 0xa0, 0x67, 0xd0, 0xe4, 0x94, 0xe3, 0x99, 0x87, 0x43, - 0x3a, 0x8f, 0x78, 0xab, 0x2a, 0x0c, 0x0d, 0xd1, 0xd3, 0x45, 0x0b, 0x8d, 0xa1, 0x79, 0x36, 0x27, - 0x8c, 0x7b, 0x05, 0x4e, 0x4d, 0xe0, 0xa8, 0x0f, 0xe2, 0xa8, 0xe3, 0x6c, 0x42, 0x94, 0xcc, 0x88, - 0x78, 0xb2, 0xb0, 0x1b, 0x67, 0x65, 0xa7, 0xfd, 0x01, 0xe4, 0xbb, 0x06, 0x24, 0x43, 0xed, 0x13, - 0x59, 0x08, 0xc2, 0x25, 0x3b, 0x2b, 0x51, 0x17, 0x96, 0x52, 0x3c, 0x9b, 0x13, 0x01, 0xd5, 0xe8, - 0xad, 0xdf, 0xdb, 0x58, 0x66, 0xd8, 0xb9, 0xf3, 0x75, 0xf5, 0x95, 0xb4, 0xfd, 0x55, 0x02, 0x28, - 0x15, 0xb4, 0x07, 0x4b, 0x02, 0x5c, 0x24, 0xaf, 0xf4, 0x3a, 0x0f, 0xa4, 0xb8, 0x8b, 0x98, 0xd8, - 0xb9, 0x1b, 0x19, 0xd0, 0xc0, 0xd3, 0xd3, 0x80, 0xa4, 0xe4, 0xc4, 0xc3, 0xbc, 0x40, 0x68, 0xab, - 0xf9, 0xb5, 0xab, 0x37, 0xd7, 0xae, 0xba, 0x37, 0xd7, 0xbe, 0xff, 0xff, 0xc5, 0xf7, 0x4e, 0xe5, - 0xfc, 0x47, 0x47, 0xb2, 0xe1, 0x66, 0x50, 0xe7, 0xa8, 0x0f, 0x30, 0x9d, 0xe1, 0x20, 0xcc, 0x53, - 0x6a, 0xff, 0x90, 0x52, 0x2f, 0xe6, 0x74, 0xbe, 0xfb, 0x45, 0x82, 0xba, 0xa0, 0xcc, 0x00, 0xd1, - 0x1a, 0x3c, 0x1e, 0x1f, 0x19, 0x8e, 0xeb, 0x8d, 0x2c, 0xf7, 0x8d, 0x39, 0x3a, 0xf0, 0x5c, 0xcb, - 0x1b, 0x58, 0x72, 0x05, 0xc9, 0xd0, 0xcc, 0x05, 0xc7, 0xea, 0x9b, 0xfa, 0x50, 0x96, 0x50, 0x0b, - 0x56, 0x8b, 0xce, 0xc8, 0xd3, 0x1d, 0xc7, 0x70, 0xbd, 0xfe, 0x50, 0x37, 0xdf, 0xca, 0x55, 0xb4, - 0x0e, 0x6b, 0xb9, 0x72, 0x68, 0x5b, 0xc7, 0xe6, 0xc0, 0xf0, 0x86, 0xe6, 0xf8, 0xc8, 0x1c, 0x98, - 0xee, 0x3b, 0xb9, 0x56, 0x8a, 0xc7, 0x96, 0x6b, 0x78, 0xd6, 0x28, 0x33, 0x1d, 0x5a, 0x8e, 0x3e, - 0x74, 0xe4, 0xff, 0x76, 0x31, 0xac, 0xfc, 0x7d, 0x62, 0xa5, 0xdd, 0x71, 0x75, 0xd7, 0xc8, 0xb0, - 0xb2, 0xca, 0x76, 0x8d, 0x81, 0x5c, 0x41, 0x4f, 0xe1, 0xc9, 0x6d, 0x51, 0xec, 0xd7, 0xf7, 0x87, - 0x86, 0x2c, 0x95, 0x3f, 0x72, 0x4b, 0x32, 0x06, 0x72, 0x75, 0xdf, 0xb8, 0xb8, 0x52, 0xa4, 0xcb, - 0x2b, 0x45, 0xfa, 0x79, 0xa5, 0x48, 0xe7, 0xd7, 0x4a, 0xe5, 0xf2, 0x5a, 0xa9, 0x7c, 0xbb, 0x56, - 0x2a, 0xef, 0x9f, 0xfb, 0x01, 0x3f, 0x9d, 0x4f, 0xd4, 0x29, 0x0d, 0xb5, 0x3e, 0x4e, 0x82, 0x08, - 0xbf, 0x98, 0xe1, 0x09, 0xd3, 0xc4, 0x0b, 0xff, 0xfc, 0xe7, 0x8d, 0xf3, 0x45, 0x4c, 0xd8, 0x64, - 0x59, 0x9c, 0xef, 0xcb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x6c, 0x46, 0x0f, 0x30, 0x04, - 0x00, 0x00, + // 762 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdd, 0x6e, 0xe2, 0x46, + 0x18, 0xc5, 0xb0, 0xa0, 0x32, 0xd0, 0xad, 0x77, 0x76, 0x57, 0x50, 0x36, 0x0b, 0x94, 0xde, 0xa0, + 0xad, 0x62, 0x8b, 0x54, 0x91, 0xaa, 0x5e, 0x54, 0x72, 0xc0, 0x4a, 0x2d, 0x51, 0x1c, 0x6c, 0x27, + 0xea, 0x9f, 0x64, 0x0d, 0x66, 0x42, 0xac, 0x62, 0x8f, 0xeb, 0x19, 0x50, 0x79, 0x85, 0x5e, 0xa5, + 0x2f, 0xd3, 0x67, 0xc8, 0x5d, 0x73, 0xd9, 0xab, 0xb6, 0x4a, 0x1e, 0xa4, 0x95, 0xc7, 0x03, 0x76, + 0x13, 0x6d, 0x24, 0xee, 0x3e, 0x9f, 0x73, 0xbe, 0x33, 0x67, 0xbe, 0xf9, 0x64, 0xf0, 0x36, 0x24, + 0x6b, 0xa4, 0x22, 0x3f, 0x9e, 0xc7, 0x24, 0x52, 0xd7, 0x03, 0x75, 0x81, 0x43, 0x4c, 0x7d, 0xaa, + 0x44, 0x31, 0x61, 0x04, 0x7e, 0x94, 0xd0, 0x8a, 0xa0, 0x95, 0xf5, 0xa0, 0x75, 0xf0, 0x50, 0x1f, + 0xa1, 0x18, 0x05, 0x42, 0xde, 0x6a, 0x7b, 0x84, 0x06, 0x84, 0xaa, 0x33, 0x44, 0xb1, 0xba, 0x1e, + 0xcc, 0x30, 0x43, 0x03, 0xd5, 0x23, 0x7e, 0x28, 0xf8, 0x57, 0x0b, 0xb2, 0x20, 0xbc, 0x54, 0x93, + 0x4a, 0xa0, 0x9d, 0x05, 0x21, 0x8b, 0x25, 0x56, 0xf9, 0xd7, 0x6c, 0x75, 0xa9, 0x32, 0x3f, 0xc0, + 0x94, 0xa1, 0x20, 0x4a, 0x05, 0xbd, 0xdf, 0x25, 0x50, 0x3f, 0x4d, 0x73, 0xd9, 0x0c, 0x31, 0x0c, + 0x55, 0x50, 0x49, 0xcf, 0x6d, 0x4a, 0x5d, 0xa9, 0x5f, 0x3b, 0x6a, 0x28, 0x0f, 0x72, 0x2a, 0x67, + 0x9c, 0xb6, 0x84, 0x0c, 0x1e, 0x83, 0x0a, 0x4d, 0x3a, 0x69, 0xb3, 0xd8, 0x2d, 0xf5, 0x6b, 0x47, + 0x6f, 0x1f, 0x35, 0x68, 0x69, 0xc9, 0xfd, 0x2d, 0x21, 0x86, 0x5f, 0x81, 0x9a, 0x90, 0x18, 0xe1, + 0x25, 0x69, 0x96, 0xf8, 0x61, 0x07, 0xef, 0xeb, 0x4d, 0x34, 0x56, 0xbe, 0xa1, 0xf7, 0x5b, 0x09, + 0xd4, 0x72, 0x24, 0xb4, 0x01, 0xa4, 0x21, 0x8a, 0xe8, 0x15, 0x61, 0xee, 0xee, 0x92, 0xe2, 0x0e, + 0x2d, 0x25, 0x1d, 0x83, 0xb2, 0x1d, 0x83, 0xe2, 0x6c, 0x15, 0x27, 0x1f, 0xdc, 0xfc, 0xd5, 0x29, + 0x5c, 0xff, 0xdd, 0x91, 0xac, 0x17, 0xdb, 0xfe, 0x1d, 0x09, 0x7f, 0x04, 0x0d, 0x71, 0xa6, 0x4b, + 0x19, 0x8a, 0xf3, 0xce, 0xc5, 0x3d, 0x9c, 0x5f, 0xa3, 0xdd, 0x04, 0xe2, 0x9c, 0xfb, 0xb7, 0x60, + 0x4b, 0xb8, 0x38, 0x9c, 0xe7, 0xbc, 0x4b, 0x7b, 0x78, 0xbf, 0x14, 0x16, 0x7a, 0x38, 0xcf, 0x9c, + 0x3f, 0x05, 0x1f, 0x6e, 0x9d, 0xe7, 0x38, 0x24, 0x41, 0xf3, 0x59, 0x57, 0xea, 0x57, 0xad, 0xba, + 0x00, 0x47, 0x09, 0x06, 0x3f, 0x01, 0xf5, 0x9f, 0x57, 0x98, 0x32, 0xea, 0x7a, 0x64, 0x15, 0xb2, + 0x66, 0xb9, 0x2b, 0xf5, 0xcb, 0x56, 0x2d, 0xc5, 0x86, 0x09, 0x04, 0x0f, 0x01, 0xf4, 0x48, 0xc8, + 0x62, 0xb2, 0x5c, 0xe2, 0xd8, 0x45, 0xf3, 0x79, 0x8c, 0x29, 0x6d, 0x56, 0xb8, 0xd9, 0x8b, 0x8c, + 0xd1, 0x52, 0xa2, 0xf7, 0xaf, 0x04, 0xea, 0xf9, 0xc7, 0x86, 0x07, 0xa0, 0x1a, 0x63, 0xcf, 0x8f, + 0x7c, 0x1c, 0x32, 0xfe, 0x16, 0x55, 0x2b, 0x03, 0x92, 0x00, 0x8c, 0x30, 0xb4, 0x74, 0x51, 0xc0, + 0x03, 0x14, 0xb9, 0xa0, 0xc6, 0x31, 0x8d, 0x43, 0x70, 0x2a, 0x32, 0xba, 0x62, 0xc5, 0x4a, 0x7c, + 0xc5, 0x94, 0x27, 0x57, 0x4c, 0x99, 0x26, 0x1d, 0xbc, 0xa4, 0x7a, 0xc8, 0xe2, 0x8d, 0xb8, 0x53, + 0x8a, 0xb4, 0x7e, 0x00, 0xf2, 0x43, 0x01, 0x94, 0x41, 0xe9, 0x27, 0xbc, 0xe1, 0x09, 0xcb, 0x56, + 0x52, 0xc2, 0x01, 0x28, 0xaf, 0xd1, 0x72, 0x85, 0xc5, 0x3b, 0xbf, 0x79, 0x74, 0x62, 0xe6, 0x61, + 0xa5, 0xca, 0x2f, 0x8b, 0x5f, 0x48, 0xbd, 0x3f, 0x24, 0x00, 0x32, 0x06, 0x1e, 0x83, 0x32, 0x0f, + 0xce, 0x9d, 0x9f, 0x1f, 0x75, 0x9e, 0x70, 0x71, 0x36, 0x11, 0xb6, 0x52, 0x35, 0xd4, 0x41, 0x0d, + 0x79, 0x57, 0x3e, 0x5e, 0xe3, 0xb9, 0x8b, 0xd8, 0x5e, 0xab, 0x06, 0xb6, 0x8d, 0x1a, 0x83, 0x43, + 0x00, 0xbc, 0x25, 0xf2, 0x83, 0xd4, 0x65, 0x9f, 0xa5, 0xaa, 0x8a, 0x3e, 0x8d, 0xbd, 0xfb, 0x55, + 0x02, 0x55, 0x9e, 0x32, 0x09, 0x08, 0x1b, 0xe0, 0xe5, 0xf4, 0x5c, 0xb7, 0x1d, 0x77, 0x62, 0x3a, + 0x5f, 0x1b, 0x93, 0x53, 0xd7, 0x31, 0xdd, 0x91, 0x29, 0x17, 0xa0, 0x0c, 0xea, 0x29, 0x61, 0x9b, + 0x43, 0x43, 0x1b, 0xcb, 0x12, 0x6c, 0x82, 0x57, 0x02, 0x99, 0xb8, 0x9a, 0x6d, 0xeb, 0x8e, 0x3b, + 0x1c, 0x6b, 0xc6, 0x37, 0x72, 0x11, 0xbe, 0x01, 0x8d, 0x94, 0x39, 0xb3, 0xcc, 0x0b, 0x63, 0xa4, + 0xbb, 0x63, 0x63, 0x7a, 0x6e, 0x8c, 0x0c, 0xe7, 0x3b, 0xb9, 0x94, 0x91, 0x17, 0xa6, 0xa3, 0xbb, + 0xe6, 0x24, 0x11, 0x9d, 0x99, 0xb6, 0x36, 0xb6, 0xe5, 0x67, 0xef, 0x10, 0x78, 0xfe, 0xff, 0x89, + 0x65, 0x72, 0xdb, 0xd1, 0x1c, 0x3d, 0x89, 0x95, 0x54, 0x96, 0xa3, 0x8f, 0xe4, 0x02, 0xfc, 0x18, + 0xbc, 0xce, 0x93, 0xfc, 0x7c, 0xed, 0x64, 0xac, 0xcb, 0x52, 0x76, 0x91, 0x1c, 0xa5, 0x8f, 0xe4, + 0xe2, 0x89, 0x7e, 0x73, 0xd7, 0x96, 0x6e, 0xef, 0xda, 0xd2, 0x3f, 0x77, 0x6d, 0xe9, 0xfa, 0xbe, + 0x5d, 0xb8, 0xbd, 0x6f, 0x17, 0xfe, 0xbc, 0x6f, 0x17, 0xbe, 0xff, 0x6c, 0xe1, 0xb3, 0xab, 0xd5, + 0x4c, 0xf1, 0x48, 0xa0, 0x0e, 0x51, 0xec, 0x87, 0xe8, 0x70, 0x89, 0x66, 0x54, 0xe5, 0xbf, 0xed, + 0x5f, 0x76, 0x3f, 0x6e, 0xb6, 0x89, 0x30, 0x9d, 0x55, 0xf8, 0x7c, 0x3f, 0xff, 0x2f, 0x00, 0x00, + 0xff, 0xff, 0x6d, 0x22, 0x95, 0x18, 0x05, 0x06, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -347,6 +456,18 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.AirdropInfo != nil { + { + size, err := m.AirdropInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } if len(m.States) > 0 { for iNdEx := len(m.States) - 1; iNdEx >= 0; iNdEx-- { { @@ -376,6 +497,72 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *AirdropInfo) 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 *AirdropInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AirdropInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ControllerAddress) > 0 { + i -= len(m.ControllerAddress) + copy(dAtA[i:], m.ControllerAddress) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ControllerAddress))) + i-- + dAtA[i] = 0x32 + } + if m.QuestsCount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.QuestsCount)) + i-- + dAtA[i] = 0x28 + } + if len(m.AirdropDenom) > 0 { + i -= len(m.AirdropDenom) + copy(dAtA[i:], m.AirdropDenom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.AirdropDenom))) + i-- + dAtA[i] = 0x22 + } + n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropEndTimestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropEndTimestamp):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintGenesis(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x1a + n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropStartTimestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTimestamp):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintGenesis(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x12 + n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SnapshotTimestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SnapshotTimestamp):]) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintGenesis(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *AirdropState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -457,20 +644,20 @@ func (m *QuestState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ClaimedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ClaimedAt):]) - if err3 != nil { - return 0, err3 + n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ClaimedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ClaimedAt):]) + if err7 != nil { + return 0, err7 } - i -= n3 - i = encodeVarintGenesis(dAtA, i, uint64(n3)) + i -= n7 + i = encodeVarintGenesis(dAtA, i, uint64(n7)) i-- dAtA[i] = 0x1a - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AchievedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AchievedAt):]) - if err4 != nil { - return 0, err4 + n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AchievedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AchievedAt):]) + if err8 != nil { + return 0, err8 } - i -= n4 - i = encodeVarintGenesis(dAtA, i, uint64(n4)) + i -= n8 + i = encodeVarintGenesis(dAtA, i, uint64(n8)) i-- dAtA[i] = 0x12 if m.State != 0 { @@ -508,6 +695,36 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if m.AirdropInfo != nil { + l = m.AirdropInfo.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *AirdropInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.SnapshotTimestamp) + n += 1 + l + sovGenesis(uint64(l)) + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTimestamp) + n += 1 + l + sovGenesis(uint64(l)) + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropEndTimestamp) + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.AirdropDenom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.QuestsCount != 0 { + n += 1 + sovGenesis(uint64(m.QuestsCount)) + } + l = len(m.ControllerAddress) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } return n } @@ -662,6 +879,274 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropInfo", 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 + } + if m.AirdropInfo == nil { + m.AirdropInfo = &AirdropInfo{} + } + if err := m.AirdropInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AirdropInfo) 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 ErrIntOverflowGenesis + } + 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: AirdropInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AirdropInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTimestamp", 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 + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.SnapshotTimestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTimestamp", 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 + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropStartTimestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropEndTimestamp", 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 + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropEndTimestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QuestsCount", wireType) + } + m.QuestsCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QuestsCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControllerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ControllerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/airdrop/types/params.pb.go b/x/airdrop/types/params.pb.go index d244f440..a7e2c9b1 100644 --- a/x/airdrop/types/params.pb.go +++ b/x/airdrop/types/params.pb.go @@ -7,19 +7,16 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" - time "time" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -var _ = time.Kitchen // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -28,22 +25,11 @@ var _ = time.Kitchen const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Params struct { - // The snapshot date based for the distribution of the airdrop. - SnapshotTimestamp time.Time `protobuf:"bytes,1,opt,name=snapshot_timestamp,json=snapshotTimestamp,proto3,stdtime" json:"snapshot_timestamp"` - // THe time when you can claim your airdrop nova tokens. - ClaimableTimestamp time.Time `protobuf:"bytes,2,opt,name=claimable_timestamp,json=claimableTimestamp,proto3,stdtime" json:"claimable_timestamp"` - // THe time when the user no longer can claim the airdrop tokens. - AirdropEndTimestamp time.Time `protobuf:"bytes,3,opt,name=airdrop_end_timestamp,json=airdropEndTimestamp,proto3,stdtime" json:"airdrop_end_timestamp"` - // The denom for the airdrop coin. - AirdropDenom string `protobuf:"bytes,4,opt,name=airdrop_denom,json=airdropDenom,proto3" json:"airdrop_denom,omitempty"` - // the number of quests user to do - QuestsCount int32 `protobuf:"varint,5,opt,name=quests_count,json=questsCount,proto3" json:"quests_count,omitempty"` - // controller address is responsible to check the user has performed the social quest (e.g. twitter, facebook or etc) - ControllerAddress string `protobuf:"bytes,6,opt,name=controller_address,json=controllerAddress,proto3" json:"controller_address,omitempty"` } -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_3606a1093e1fd3a2, []int{0} } @@ -74,48 +60,6 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo -func (m *Params) GetSnapshotTimestamp() time.Time { - if m != nil { - return m.SnapshotTimestamp - } - return time.Time{} -} - -func (m *Params) GetClaimableTimestamp() time.Time { - if m != nil { - return m.ClaimableTimestamp - } - return time.Time{} -} - -func (m *Params) GetAirdropEndTimestamp() time.Time { - if m != nil { - return m.AirdropEndTimestamp - } - return time.Time{} -} - -func (m *Params) GetAirdropDenom() string { - if m != nil { - return m.AirdropDenom - } - return "" -} - -func (m *Params) GetQuestsCount() int32 { - if m != nil { - return m.QuestsCount - } - return 0 -} - -func (m *Params) GetControllerAddress() string { - if m != nil { - return m.ControllerAddress - } - return "" -} - func init() { proto.RegisterType((*Params)(nil), "nova.airdrop.v1.Params") } @@ -123,30 +67,19 @@ func init() { func init() { proto.RegisterFile("nova/airdrop/v1/params.proto", fileDescriptor_3606a1093e1fd3a2) } var fileDescriptor_3606a1093e1fd3a2 = []byte{ - // 357 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd2, 0xbf, 0x6a, 0xe3, 0x30, - 0x00, 0x06, 0x70, 0xeb, 0xf2, 0x87, 0x3b, 0x25, 0xc7, 0x11, 0xe5, 0x0e, 0x4c, 0x38, 0xec, 0xdc, - 0x75, 0x09, 0x94, 0x58, 0xa4, 0xdd, 0xba, 0x35, 0x69, 0xf6, 0x92, 0xb6, 0x50, 0xba, 0x18, 0xd9, - 0x56, 0x1d, 0x83, 0x2d, 0xb9, 0x92, 0x1c, 0xda, 0x67, 0xe8, 0x92, 0xb1, 0x63, 0x1f, 0x27, 0x63, - 0xc6, 0x4e, 0x6d, 0x49, 0x5e, 0xa4, 0xf8, 0x6f, 0xb2, 0x66, 0xb3, 0xbf, 0xef, 0xd3, 0x0f, 0x04, - 0x82, 0x7f, 0x19, 0x5f, 0x10, 0x4c, 0x02, 0xe1, 0x09, 0x1e, 0xe3, 0xc5, 0x08, 0xc7, 0x44, 0x90, - 0x48, 0x5a, 0xb1, 0xe0, 0x8a, 0xa3, 0x5f, 0x69, 0x6b, 0x15, 0xad, 0xb5, 0x18, 0xf5, 0x7e, 0xfb, - 0xdc, 0xe7, 0x59, 0x87, 0xd3, 0xaf, 0x7c, 0xd6, 0x33, 0x7d, 0xce, 0xfd, 0x90, 0xe2, 0xec, 0xcf, - 0x49, 0xee, 0xb1, 0x0a, 0x22, 0x2a, 0x15, 0x89, 0xe2, 0x7c, 0xf0, 0xff, 0xb9, 0x06, 0x9b, 0x97, - 0x19, 0x8c, 0xae, 0x20, 0x92, 0x8c, 0xc4, 0x72, 0xce, 0x95, 0x5d, 0xcd, 0x74, 0xd0, 0x07, 0x83, - 0xd6, 0x49, 0xcf, 0xca, 0x21, 0xab, 0x84, 0xac, 0xeb, 0x72, 0x31, 0xfe, 0xbe, 0x7a, 0x37, 0xb5, - 0xe5, 0x87, 0x09, 0x66, 0x9d, 0xf2, 0x7c, 0x55, 0xa2, 0x1b, 0xd8, 0x75, 0x43, 0x12, 0x44, 0xc4, - 0x09, 0xe9, 0x9e, 0xfa, 0xed, 0x00, 0x15, 0x55, 0xc0, 0x8e, 0xbd, 0x85, 0x7f, 0x8a, 0xbb, 0xdb, - 0x94, 0x79, 0x7b, 0x70, 0xed, 0x00, 0xb8, 0x5b, 0x10, 0x53, 0xe6, 0xed, 0xe4, 0x23, 0xf8, 0xb3, - 0x94, 0x3d, 0xca, 0x78, 0xa4, 0xd7, 0xfb, 0x60, 0xf0, 0x63, 0xd6, 0x2e, 0xc2, 0x8b, 0x34, 0x43, - 0xff, 0x60, 0xfb, 0x21, 0xa1, 0x52, 0x49, 0xdb, 0xe5, 0x09, 0x53, 0x7a, 0xa3, 0x0f, 0x06, 0x8d, - 0x59, 0x2b, 0xcf, 0x26, 0x69, 0x84, 0x86, 0x10, 0xb9, 0x9c, 0x29, 0xc1, 0xc3, 0x90, 0x0a, 0x9b, - 0x78, 0x9e, 0xa0, 0x52, 0xea, 0xcd, 0x0c, 0xeb, 0xec, 0x9a, 0xf3, 0xbc, 0x38, 0xab, 0xbf, 0xbc, - 0x9a, 0xda, 0x78, 0xba, 0xda, 0x18, 0x60, 0xbd, 0x31, 0xc0, 0xe7, 0xc6, 0x00, 0xcb, 0xad, 0xa1, - 0xad, 0xb7, 0x86, 0xf6, 0xb6, 0x35, 0xb4, 0xbb, 0x63, 0x3f, 0x50, 0xf3, 0xc4, 0xb1, 0x5c, 0x1e, - 0xe1, 0x09, 0x11, 0x01, 0x23, 0xc3, 0x90, 0x38, 0x12, 0x67, 0x8f, 0xe4, 0xb1, 0x7a, 0x26, 0xea, - 0x29, 0xa6, 0xd2, 0x69, 0x66, 0xd7, 0x3e, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xae, 0xe3, - 0xae, 0x43, 0x02, 0x00, 0x00, + // 177 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0xcb, 0x2f, 0x4b, + 0xd4, 0x4f, 0xcc, 0x2c, 0x4a, 0x29, 0xca, 0x2f, 0xd0, 0x2f, 0x33, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, + 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x07, 0xc9, 0xea, 0x41, 0x65, 0xf5, + 0xca, 0x0c, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x72, 0xfa, 0x20, 0x16, 0x44, 0x99, 0x94, + 0x7c, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x3e, 0x98, 0x97, 0x54, 0x9a, 0xa6, 0x5f, 0x92, 0x99, + 0x9b, 0x5a, 0x5c, 0x92, 0x98, 0x5b, 0x00, 0x51, 0xa0, 0xc4, 0xc1, 0xc5, 0x16, 0x00, 0x36, 0xd7, + 0xc9, 0xf5, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, + 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xb4, 0xd3, 0x33, 0x4b, + 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x9d, 0x13, 0x8b, 0x32, 0xf3, 0x12, 0x75, 0x73, + 0x12, 0x93, 0x8a, 0xf5, 0xc1, 0x0e, 0xac, 0x80, 0x3b, 0xb1, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, + 0x0d, 0x6c, 0xae, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x34, 0x7d, 0x19, 0x83, 0xbf, 0x00, 0x00, + 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -169,49 +102,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.ControllerAddress) > 0 { - i -= len(m.ControllerAddress) - copy(dAtA[i:], m.ControllerAddress) - i = encodeVarintParams(dAtA, i, uint64(len(m.ControllerAddress))) - i-- - dAtA[i] = 0x32 - } - if m.QuestsCount != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.QuestsCount)) - i-- - dAtA[i] = 0x28 - } - if len(m.AirdropDenom) > 0 { - i -= len(m.AirdropDenom) - copy(dAtA[i:], m.AirdropDenom) - i = encodeVarintParams(dAtA, i, uint64(len(m.AirdropDenom))) - i-- - dAtA[i] = 0x22 - } - n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropEndTimestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropEndTimestamp):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintParams(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x1a - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ClaimableTimestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ClaimableTimestamp):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintParams(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x12 - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SnapshotTimestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SnapshotTimestamp):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintParams(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -232,23 +122,6 @@ func (m *Params) Size() (n int) { } var l int _ = l - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.SnapshotTimestamp) - n += 1 + l + sovParams(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ClaimableTimestamp) - n += 1 + l + sovParams(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropEndTimestamp) - n += 1 + l + sovParams(uint64(l)) - l = len(m.AirdropDenom) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - if m.QuestsCount != 0 { - n += 1 + sovParams(uint64(m.QuestsCount)) - } - l = len(m.ControllerAddress) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } return n } @@ -287,188 +160,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTimestamp", 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 - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.SnapshotTimestamp, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimableTimestamp", 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 - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ClaimableTimestamp, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropEndTimestamp", 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 - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropEndTimestamp, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QuestsCount", wireType) - } - m.QuestsCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QuestsCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControllerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ControllerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:])