Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type AirdropInfo
- func (*AirdropInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AirdropInfo) GetAirdropDenom() string
- func (x *AirdropInfo) GetAirdropEndTimestamp() *timestamppb.Timestamp
- func (x *AirdropInfo) GetAirdropStartTimestamp() *timestamppb.Timestamp
- func (x *AirdropInfo) GetControllerAddress() string
- func (x *AirdropInfo) GetMaximumTokenAllocPerUser() string
- func (x *AirdropInfo) GetQuestsCount() int32
- func (x *AirdropInfo) GetSnapshotTimestamp() *timestamppb.Timestamp
- func (*AirdropInfo) ProtoMessage()
- func (x *AirdropInfo) ProtoReflect() protoreflect.Message
- func (x *AirdropInfo) Reset()
- func (x *AirdropInfo) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetAirdropInfo() *AirdropInfo
- func (x *GenesisState) GetStates() []*UserState
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClaimAirdropRequest
- func (*MsgClaimAirdropRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClaimAirdropRequest) GetQuestType() QuestType
- func (x *MsgClaimAirdropRequest) GetUserAddress() string
- func (*MsgClaimAirdropRequest) ProtoMessage()
- func (x *MsgClaimAirdropRequest) ProtoReflect() protoreflect.Message
- func (x *MsgClaimAirdropRequest) Reset()
- func (x *MsgClaimAirdropRequest) String() string
- type MsgClaimAirdropResponse
- type MsgClient
- type MsgMarkSocialQuestPerformedRequest
- func (*MsgMarkSocialQuestPerformedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MsgMarkSocialQuestPerformedRequest) GetControllerAddress() string
- func (x *MsgMarkSocialQuestPerformedRequest) GetUserAddresses() []string
- func (*MsgMarkSocialQuestPerformedRequest) ProtoMessage()
- func (x *MsgMarkSocialQuestPerformedRequest) ProtoReflect() protoreflect.Message
- func (x *MsgMarkSocialQuestPerformedRequest) Reset()
- func (x *MsgMarkSocialQuestPerformedRequest) String() string
- type MsgMarkSocialQuestPerformedResponse
- func (*MsgMarkSocialQuestPerformedResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgMarkSocialQuestPerformedResponse) ProtoMessage()
- func (x *MsgMarkSocialQuestPerformedResponse) ProtoReflect() protoreflect.Message
- func (x *MsgMarkSocialQuestPerformedResponse) Reset()
- func (x *MsgMarkSocialQuestPerformedResponse) String() string
- type MsgMarkUserProvidedLiquidityRequest
- func (*MsgMarkUserProvidedLiquidityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MsgMarkUserProvidedLiquidityRequest) GetControllerAddress() string
- func (x *MsgMarkUserProvidedLiquidityRequest) GetUserAddresses() []string
- func (*MsgMarkUserProvidedLiquidityRequest) ProtoMessage()
- func (x *MsgMarkUserProvidedLiquidityRequest) ProtoReflect() protoreflect.Message
- func (x *MsgMarkUserProvidedLiquidityRequest) Reset()
- func (x *MsgMarkUserProvidedLiquidityRequest) String() string
- type MsgMarkUserProvidedLiquidityResponse
- func (*MsgMarkUserProvidedLiquidityResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgMarkUserProvidedLiquidityResponse) ProtoMessage()
- func (x *MsgMarkUserProvidedLiquidityResponse) ProtoReflect() protoreflect.Message
- func (x *MsgMarkUserProvidedLiquidityResponse) Reset()
- func (x *MsgMarkUserProvidedLiquidityResponse) String() string
- type MsgServer
- type Params
- type QueryAirdropInfoRequest
- type QueryAirdropInfoResponse
- func (*QueryAirdropInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAirdropInfoResponse) GetAirdropInfo() *AirdropInfo
- func (*QueryAirdropInfoResponse) ProtoMessage()
- func (x *QueryAirdropInfoResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAirdropInfoResponse) Reset()
- func (x *QueryAirdropInfoResponse) String() string
- type QueryClient
- type QueryQuestStateRequest
- func (*QueryQuestStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryQuestStateRequest) GetAddress() string
- func (*QueryQuestStateRequest) ProtoMessage()
- func (x *QueryQuestStateRequest) ProtoReflect() protoreflect.Message
- func (x *QueryQuestStateRequest) Reset()
- func (x *QueryQuestStateRequest) String() string
- type QueryQuestStateResponse
- func (*QueryQuestStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryQuestStateResponse) GetQuestStates() map[int32]*QuestState
- func (*QueryQuestStateResponse) ProtoMessage()
- func (x *QueryQuestStateResponse) ProtoReflect() protoreflect.Message
- func (x *QueryQuestStateResponse) Reset()
- func (x *QueryQuestStateResponse) String() string
- type QueryServer
- type QueryTotalAllocatedAirdropTokenRequest
- func (*QueryTotalAllocatedAirdropTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTotalAllocatedAirdropTokenRequest) GetAddress() string
- func (*QueryTotalAllocatedAirdropTokenRequest) ProtoMessage()
- func (x *QueryTotalAllocatedAirdropTokenRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTotalAllocatedAirdropTokenRequest) Reset()
- func (x *QueryTotalAllocatedAirdropTokenRequest) String() string
- type QueryTotalAllocatedAirdropTokenResponse
- func (*QueryTotalAllocatedAirdropTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTotalAllocatedAirdropTokenResponse) GetTotalAssets() *v1beta1.Coin
- func (*QueryTotalAllocatedAirdropTokenResponse) ProtoMessage()
- func (x *QueryTotalAllocatedAirdropTokenResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTotalAllocatedAirdropTokenResponse) Reset()
- func (x *QueryTotalAllocatedAirdropTokenResponse) String() string
- type QuestState
- func (*QuestState) Descriptor() ([]byte, []int)deprecated
- func (x *QuestState) GetAchievedAt() *timestamppb.Timestamp
- func (x *QuestState) GetClaimedAmount() string
- func (x *QuestState) GetClaimedAt() *timestamppb.Timestamp
- func (x *QuestState) GetState() QuestStateType
- func (*QuestState) ProtoMessage()
- func (x *QuestState) ProtoReflect() protoreflect.Message
- func (x *QuestState) Reset()
- func (x *QuestState) String() string
- type QuestStateType
- func (QuestStateType) Descriptor() protoreflect.EnumDescriptor
- func (x QuestStateType) Enum() *QuestStateType
- func (QuestStateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x QuestStateType) Number() protoreflect.EnumNumber
- func (x QuestStateType) String() string
- func (QuestStateType) Type() protoreflect.EnumType
- type QuestType
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) ClaimAirdrop(context.Context, *MsgClaimAirdropRequest) (*MsgClaimAirdropResponse, error)
- func (UnimplementedMsgServer) MarkSocialQuestPerformed(context.Context, *MsgMarkSocialQuestPerformedRequest) (*MsgMarkSocialQuestPerformedResponse, error)
- func (UnimplementedMsgServer) MarkUserProvidedLiquidity(context.Context, *MsgMarkUserProvidedLiquidityRequest) (*MsgMarkUserProvidedLiquidityResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) AirdropInfo(context.Context, *QueryAirdropInfoRequest) (*QueryAirdropInfoResponse, error)
- func (UnimplementedQueryServer) QuestState(context.Context, *QueryQuestStateRequest) (*QueryQuestStateResponse, error)
- func (UnimplementedQueryServer) TotalAllocatedAirdropToken(context.Context, *QueryTotalAllocatedAirdropTokenRequest) (*QueryTotalAllocatedAirdropTokenResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type UserState
- func (*UserState) Descriptor() ([]byte, []int)deprecated
- func (x *UserState) GetQuestStates() map[int32]*QuestState
- func (x *UserState) GetRecipient() string
- func (x *UserState) GetTotalAmount() string
- func (*UserState) ProtoMessage()
- func (x *UserState) ProtoReflect() protoreflect.Message
- func (x *UserState) Reset()
- func (x *UserState) String() string
Constants ¶
This section is empty.
Variables ¶
var ( QuestType_name = map[int32]string{ 0: "QUEST_NOTHING_TO_DO", 1: "QUEST_SOCIAL", 2: "QUEST_SN_ASSET_CLAIM", 3: "QUEST_PROVIDE_LIQUIDITY", 4: "QUEST_VOTE_ON_PROPOSALS", } QuestType_value = map[string]int32{ "QUEST_NOTHING_TO_DO": 0, "QUEST_SOCIAL": 1, "QUEST_SN_ASSET_CLAIM": 2, "QUEST_PROVIDE_LIQUIDITY": 3, "QUEST_VOTE_ON_PROPOSALS": 4, } )
Enum value maps for QuestType.
var ( QuestStateType_name = map[int32]string{ 0: "QUEST_STATE_NOT_STARTED", 1: "QUEST_STATE_CLAIMABLE", 2: "QUEST_STATE_CLAIMED", } QuestStateType_value = map[string]int32{ "QUEST_STATE_NOT_STARTED": 0, "QUEST_STATE_CLAIMABLE": 1, "QUEST_STATE_CLAIMED": 2, } )
Enum value maps for QuestStateType.
var File_nova_airdrop_v1_genesis_proto protoreflect.FileDescriptor
var File_nova_airdrop_v1_params_proto protoreflect.FileDescriptor
var File_nova_airdrop_v1_query_proto protoreflect.FileDescriptor
var File_nova_airdrop_v1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nova.airdrop.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ClaimAirdrop", Handler: _Msg_ClaimAirdrop_Handler, }, { MethodName: "MarkSocialQuestPerformed", Handler: _Msg_MarkSocialQuestPerformed_Handler, }, { MethodName: "MarkUserProvidedLiquidity", Handler: _Msg_MarkUserProvidedLiquidity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nova/airdrop/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nova.airdrop.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AirdropInfo", Handler: _Query_AirdropInfo_Handler, }, { MethodName: "TotalAllocatedAirdropToken", Handler: _Query_TotalAllocatedAirdropToken_Handler, }, { MethodName: "QuestState", Handler: _Query_QuestState_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nova/airdrop/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type AirdropInfo ¶
type AirdropInfo struct { // 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 `` /* 126-byte string literal not displayed */ // 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"` // maximum token allocation for each user, an use cannot claim more than this amount; MaximumTokenAllocPerUser string `` /* 139-byte string literal not displayed */ // contains filtered or unexported fields }
AirdropInfo stores metadata related to airdrop. This includes airdrop start and end times, maximum acceptable quantity, etc.
func (*AirdropInfo) Descriptor
deprecated
func (*AirdropInfo) Descriptor() ([]byte, []int)
Deprecated: Use AirdropInfo.ProtoReflect.Descriptor instead.
func (*AirdropInfo) GetAirdropDenom ¶
func (x *AirdropInfo) GetAirdropDenom() string
func (*AirdropInfo) GetAirdropEndTimestamp ¶
func (x *AirdropInfo) GetAirdropEndTimestamp() *timestamppb.Timestamp
func (*AirdropInfo) GetAirdropStartTimestamp ¶
func (x *AirdropInfo) GetAirdropStartTimestamp() *timestamppb.Timestamp
func (*AirdropInfo) GetControllerAddress ¶
func (x *AirdropInfo) GetControllerAddress() string
func (*AirdropInfo) GetMaximumTokenAllocPerUser ¶
func (x *AirdropInfo) GetMaximumTokenAllocPerUser() string
func (*AirdropInfo) GetQuestsCount ¶
func (x *AirdropInfo) GetQuestsCount() int32
func (*AirdropInfo) GetSnapshotTimestamp ¶
func (x *AirdropInfo) GetSnapshotTimestamp() *timestamppb.Timestamp
func (*AirdropInfo) ProtoMessage ¶
func (*AirdropInfo) ProtoMessage()
func (*AirdropInfo) ProtoReflect ¶
func (x *AirdropInfo) ProtoReflect() protoreflect.Message
func (*AirdropInfo) Reset ¶
func (x *AirdropInfo) Reset()
func (*AirdropInfo) String ¶
func (x *AirdropInfo) String() string
type GenesisState ¶
type GenesisState struct { // states for the airdrop, how much coins are allocated for each address is must be pre-defined. States []*UserState `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"` // information for the airdrop AirdropInfo *AirdropInfo `protobuf:"bytes,3,opt,name=airdrop_info,json=airdropInfo,proto3" json:"airdrop_info,omitempty"` // contains filtered or unexported fields }
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetAirdropInfo ¶
func (x *GenesisState) GetAirdropInfo() *AirdropInfo
func (*GenesisState) GetStates ¶
func (x *GenesisState) GetStates() []*UserState
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgClaimAirdropRequest ¶
type MsgClaimAirdropRequest struct { // address of the airdrop recipient. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` // quest type of the airdrop to claim. QuestType QuestType `protobuf:"varint,2,opt,name=quest_type,json=questType,proto3,enum=nova.airdrop.v1.QuestType" json:"quest_type,omitempty"` // contains filtered or unexported fields }
MsgClaimAirdropRequest is an airdrop volume request message.
func (*MsgClaimAirdropRequest) Descriptor
deprecated
func (*MsgClaimAirdropRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimAirdropRequest.ProtoReflect.Descriptor instead.
func (*MsgClaimAirdropRequest) GetQuestType ¶
func (x *MsgClaimAirdropRequest) GetQuestType() QuestType
func (*MsgClaimAirdropRequest) GetUserAddress ¶
func (x *MsgClaimAirdropRequest) GetUserAddress() string
func (*MsgClaimAirdropRequest) ProtoMessage ¶
func (*MsgClaimAirdropRequest) ProtoMessage()
func (*MsgClaimAirdropRequest) ProtoReflect ¶
func (x *MsgClaimAirdropRequest) ProtoReflect() protoreflect.Message
func (*MsgClaimAirdropRequest) Reset ¶
func (x *MsgClaimAirdropRequest) Reset()
func (*MsgClaimAirdropRequest) String ¶
func (x *MsgClaimAirdropRequest) String() string
type MsgClaimAirdropResponse ¶
type MsgClaimAirdropResponse struct {
// contains filtered or unexported fields
}
MsgClaimAirdropResponse is a response message for MsgClaimAirdropRequest.
func (*MsgClaimAirdropResponse) Descriptor
deprecated
func (*MsgClaimAirdropResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimAirdropResponse.ProtoReflect.Descriptor instead.
func (*MsgClaimAirdropResponse) ProtoMessage ¶
func (*MsgClaimAirdropResponse) ProtoMessage()
func (*MsgClaimAirdropResponse) ProtoReflect ¶
func (x *MsgClaimAirdropResponse) ProtoReflect() protoreflect.Message
func (*MsgClaimAirdropResponse) Reset ¶
func (x *MsgClaimAirdropResponse) Reset()
func (*MsgClaimAirdropResponse) String ¶
func (x *MsgClaimAirdropResponse) String() string
type MsgClient ¶
type MsgClient interface { ClaimAirdrop(ctx context.Context, in *MsgClaimAirdropRequest, opts ...grpc.CallOption) (*MsgClaimAirdropResponse, error) MarkSocialQuestPerformed(ctx context.Context, in *MsgMarkSocialQuestPerformedRequest, opts ...grpc.CallOption) (*MsgMarkSocialQuestPerformedResponse, error) MarkUserProvidedLiquidity(ctx context.Context, in *MsgMarkUserProvidedLiquidityRequest, opts ...grpc.CallOption) (*MsgMarkUserProvidedLiquidityResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgMarkSocialQuestPerformedRequest ¶
type MsgMarkSocialQuestPerformedRequest struct { // controller address for the airdrop module. ControllerAddress string `protobuf:"bytes,1,opt,name=controller_address,json=controllerAddress,proto3" json:"controller_address,omitempty"` // the addresses of the users who performed the social quest. UserAddresses []string `protobuf:"bytes,2,rep,name=user_addresses,json=userAddresses,proto3" json:"user_addresses,omitempty"` // contains filtered or unexported fields }
MsgMarkSocialQuestPerformedRequest the controller marks social quest performed for the users.
func (*MsgMarkSocialQuestPerformedRequest) Descriptor
deprecated
func (*MsgMarkSocialQuestPerformedRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgMarkSocialQuestPerformedRequest.ProtoReflect.Descriptor instead.
func (*MsgMarkSocialQuestPerformedRequest) GetControllerAddress ¶
func (x *MsgMarkSocialQuestPerformedRequest) GetControllerAddress() string
func (*MsgMarkSocialQuestPerformedRequest) GetUserAddresses ¶
func (x *MsgMarkSocialQuestPerformedRequest) GetUserAddresses() []string
func (*MsgMarkSocialQuestPerformedRequest) ProtoMessage ¶
func (*MsgMarkSocialQuestPerformedRequest) ProtoMessage()
func (*MsgMarkSocialQuestPerformedRequest) ProtoReflect ¶
func (x *MsgMarkSocialQuestPerformedRequest) ProtoReflect() protoreflect.Message
func (*MsgMarkSocialQuestPerformedRequest) Reset ¶
func (x *MsgMarkSocialQuestPerformedRequest) Reset()
func (*MsgMarkSocialQuestPerformedRequest) String ¶
func (x *MsgMarkSocialQuestPerformedRequest) String() string
type MsgMarkSocialQuestPerformedResponse ¶
type MsgMarkSocialQuestPerformedResponse struct {
// contains filtered or unexported fields
}
MsgMarkSocialQuestPerformedResponse is a response message for MsgMarkSocialQuestPerformedRequest.
func (*MsgMarkSocialQuestPerformedResponse) Descriptor
deprecated
func (*MsgMarkSocialQuestPerformedResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgMarkSocialQuestPerformedResponse.ProtoReflect.Descriptor instead.
func (*MsgMarkSocialQuestPerformedResponse) ProtoMessage ¶
func (*MsgMarkSocialQuestPerformedResponse) ProtoMessage()
func (*MsgMarkSocialQuestPerformedResponse) ProtoReflect ¶
func (x *MsgMarkSocialQuestPerformedResponse) ProtoReflect() protoreflect.Message
func (*MsgMarkSocialQuestPerformedResponse) Reset ¶
func (x *MsgMarkSocialQuestPerformedResponse) Reset()
func (*MsgMarkSocialQuestPerformedResponse) String ¶
func (x *MsgMarkSocialQuestPerformedResponse) String() string
type MsgMarkUserProvidedLiquidityRequest ¶
type MsgMarkUserProvidedLiquidityRequest struct { // controller address for the airdrop module. ControllerAddress string `protobuf:"bytes,1,opt,name=controller_address,json=controllerAddress,proto3" json:"controller_address,omitempty"` // the addresses of the users who provided the liquidities. UserAddresses []string `protobuf:"bytes,2,rep,name=user_addresses,json=userAddresses,proto3" json:"user_addresses,omitempty"` // contains filtered or unexported fields }
MsgMarkUserProvidedLiquidityRequest is a message that marks a particular user as having provided liquidity to Supernova.
func (*MsgMarkUserProvidedLiquidityRequest) Descriptor
deprecated
func (*MsgMarkUserProvidedLiquidityRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgMarkUserProvidedLiquidityRequest.ProtoReflect.Descriptor instead.
func (*MsgMarkUserProvidedLiquidityRequest) GetControllerAddress ¶
func (x *MsgMarkUserProvidedLiquidityRequest) GetControllerAddress() string
func (*MsgMarkUserProvidedLiquidityRequest) GetUserAddresses ¶
func (x *MsgMarkUserProvidedLiquidityRequest) GetUserAddresses() []string
func (*MsgMarkUserProvidedLiquidityRequest) ProtoMessage ¶
func (*MsgMarkUserProvidedLiquidityRequest) ProtoMessage()
func (*MsgMarkUserProvidedLiquidityRequest) ProtoReflect ¶
func (x *MsgMarkUserProvidedLiquidityRequest) ProtoReflect() protoreflect.Message
func (*MsgMarkUserProvidedLiquidityRequest) Reset ¶
func (x *MsgMarkUserProvidedLiquidityRequest) Reset()
func (*MsgMarkUserProvidedLiquidityRequest) String ¶
func (x *MsgMarkUserProvidedLiquidityRequest) String() string
type MsgMarkUserProvidedLiquidityResponse ¶
type MsgMarkUserProvidedLiquidityResponse struct {
// contains filtered or unexported fields
}
MsgMarkUserProvidedLiquidityResponse is a response message for MsgMarkUserProvidedLiquidityRequest.
func (*MsgMarkUserProvidedLiquidityResponse) Descriptor
deprecated
func (*MsgMarkUserProvidedLiquidityResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgMarkUserProvidedLiquidityResponse.ProtoReflect.Descriptor instead.
func (*MsgMarkUserProvidedLiquidityResponse) ProtoMessage ¶
func (*MsgMarkUserProvidedLiquidityResponse) ProtoMessage()
func (*MsgMarkUserProvidedLiquidityResponse) ProtoReflect ¶
func (x *MsgMarkUserProvidedLiquidityResponse) ProtoReflect() protoreflect.Message
func (*MsgMarkUserProvidedLiquidityResponse) Reset ¶
func (x *MsgMarkUserProvidedLiquidityResponse) Reset()
func (*MsgMarkUserProvidedLiquidityResponse) String ¶
func (x *MsgMarkUserProvidedLiquidityResponse) String() string
type MsgServer ¶
type MsgServer interface { ClaimAirdrop(context.Context, *MsgClaimAirdropRequest) (*MsgClaimAirdropResponse, error) MarkSocialQuestPerformed(context.Context, *MsgMarkSocialQuestPerformedRequest) (*MsgMarkSocialQuestPerformedResponse, error) MarkUserProvidedLiquidity(context.Context, *MsgMarkUserProvidedLiquidityRequest) (*MsgMarkUserProvidedLiquidityResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryAirdropInfoRequest ¶
type QueryAirdropInfoRequest struct {
// contains filtered or unexported fields
}
func (*QueryAirdropInfoRequest) Descriptor
deprecated
func (*QueryAirdropInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAirdropInfoRequest.ProtoReflect.Descriptor instead.
func (*QueryAirdropInfoRequest) ProtoMessage ¶
func (*QueryAirdropInfoRequest) ProtoMessage()
func (*QueryAirdropInfoRequest) ProtoReflect ¶
func (x *QueryAirdropInfoRequest) ProtoReflect() protoreflect.Message
func (*QueryAirdropInfoRequest) Reset ¶
func (x *QueryAirdropInfoRequest) Reset()
func (*QueryAirdropInfoRequest) String ¶
func (x *QueryAirdropInfoRequest) String() string
type QueryAirdropInfoResponse ¶
type QueryAirdropInfoResponse struct { AirdropInfo *AirdropInfo `protobuf:"bytes,1,opt,name=airdrop_info,json=airdropInfo,proto3" json:"airdrop_info,omitempty"` // contains filtered or unexported fields }
func (*QueryAirdropInfoResponse) Descriptor
deprecated
func (*QueryAirdropInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAirdropInfoResponse.ProtoReflect.Descriptor instead.
func (*QueryAirdropInfoResponse) GetAirdropInfo ¶
func (x *QueryAirdropInfoResponse) GetAirdropInfo() *AirdropInfo
func (*QueryAirdropInfoResponse) ProtoMessage ¶
func (*QueryAirdropInfoResponse) ProtoMessage()
func (*QueryAirdropInfoResponse) ProtoReflect ¶
func (x *QueryAirdropInfoResponse) ProtoReflect() protoreflect.Message
func (*QueryAirdropInfoResponse) Reset ¶
func (x *QueryAirdropInfoResponse) Reset()
func (*QueryAirdropInfoResponse) String ¶
func (x *QueryAirdropInfoResponse) String() string
type QueryClient ¶
type QueryClient interface { // get airdrop info AirdropInfo(ctx context.Context, in *QueryAirdropInfoRequest, opts ...grpc.CallOption) (*QueryAirdropInfoResponse, error) // get total assets of the airdrop for a given address TotalAllocatedAirdropToken(ctx context.Context, in *QueryTotalAllocatedAirdropTokenRequest, opts ...grpc.CallOption) (*QueryTotalAllocatedAirdropTokenResponse, error) // query for state of quests QuestState(ctx context.Context, in *QueryQuestStateRequest, opts ...grpc.CallOption) (*QueryQuestStateResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryQuestStateRequest ¶
type QueryQuestStateRequest struct { // address of the airdrop recipient. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*QueryQuestStateRequest) Descriptor
deprecated
func (*QueryQuestStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryQuestStateRequest.ProtoReflect.Descriptor instead.
func (*QueryQuestStateRequest) GetAddress ¶
func (x *QueryQuestStateRequest) GetAddress() string
func (*QueryQuestStateRequest) ProtoMessage ¶
func (*QueryQuestStateRequest) ProtoMessage()
func (*QueryQuestStateRequest) ProtoReflect ¶
func (x *QueryQuestStateRequest) ProtoReflect() protoreflect.Message
func (*QueryQuestStateRequest) Reset ¶
func (x *QueryQuestStateRequest) Reset()
func (*QueryQuestStateRequest) String ¶
func (x *QueryQuestStateRequest) String() string
type QueryQuestStateResponse ¶
type QueryQuestStateResponse struct { QuestStates map[int32]*QuestState `` /* 183-byte string literal not displayed */ // contains filtered or unexported fields }
func (*QueryQuestStateResponse) Descriptor
deprecated
func (*QueryQuestStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryQuestStateResponse.ProtoReflect.Descriptor instead.
func (*QueryQuestStateResponse) GetQuestStates ¶
func (x *QueryQuestStateResponse) GetQuestStates() map[int32]*QuestState
func (*QueryQuestStateResponse) ProtoMessage ¶
func (*QueryQuestStateResponse) ProtoMessage()
func (*QueryQuestStateResponse) ProtoReflect ¶
func (x *QueryQuestStateResponse) ProtoReflect() protoreflect.Message
func (*QueryQuestStateResponse) Reset ¶
func (x *QueryQuestStateResponse) Reset()
func (*QueryQuestStateResponse) String ¶
func (x *QueryQuestStateResponse) String() string
type QueryServer ¶
type QueryServer interface { // get airdrop info AirdropInfo(context.Context, *QueryAirdropInfoRequest) (*QueryAirdropInfoResponse, error) // get total assets of the airdrop for a given address TotalAllocatedAirdropToken(context.Context, *QueryTotalAllocatedAirdropTokenRequest) (*QueryTotalAllocatedAirdropTokenResponse, error) // query for state of quests QuestState(context.Context, *QueryQuestStateRequest) (*QueryQuestStateResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QueryTotalAllocatedAirdropTokenRequest ¶
type QueryTotalAllocatedAirdropTokenRequest struct { // address of the airdrop recipient. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*QueryTotalAllocatedAirdropTokenRequest) Descriptor
deprecated
func (*QueryTotalAllocatedAirdropTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTotalAllocatedAirdropTokenRequest.ProtoReflect.Descriptor instead.
func (*QueryTotalAllocatedAirdropTokenRequest) GetAddress ¶
func (x *QueryTotalAllocatedAirdropTokenRequest) GetAddress() string
func (*QueryTotalAllocatedAirdropTokenRequest) ProtoMessage ¶
func (*QueryTotalAllocatedAirdropTokenRequest) ProtoMessage()
func (*QueryTotalAllocatedAirdropTokenRequest) ProtoReflect ¶
func (x *QueryTotalAllocatedAirdropTokenRequest) ProtoReflect() protoreflect.Message
func (*QueryTotalAllocatedAirdropTokenRequest) Reset ¶
func (x *QueryTotalAllocatedAirdropTokenRequest) Reset()
func (*QueryTotalAllocatedAirdropTokenRequest) String ¶
func (x *QueryTotalAllocatedAirdropTokenRequest) String() string
type QueryTotalAllocatedAirdropTokenResponse ¶
type QueryTotalAllocatedAirdropTokenResponse struct { // total_asset_for_airdrop is the total asset for airdrop. TotalAssets *v1beta1.Coin `protobuf:"bytes,1,opt,name=total_assets,json=totalAssets,proto3" json:"total_assets,omitempty"` // contains filtered or unexported fields }
func (*QueryTotalAllocatedAirdropTokenResponse) Descriptor
deprecated
func (*QueryTotalAllocatedAirdropTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTotalAllocatedAirdropTokenResponse.ProtoReflect.Descriptor instead.
func (*QueryTotalAllocatedAirdropTokenResponse) GetTotalAssets ¶
func (x *QueryTotalAllocatedAirdropTokenResponse) GetTotalAssets() *v1beta1.Coin
func (*QueryTotalAllocatedAirdropTokenResponse) ProtoMessage ¶
func (*QueryTotalAllocatedAirdropTokenResponse) ProtoMessage()
func (*QueryTotalAllocatedAirdropTokenResponse) ProtoReflect ¶
func (x *QueryTotalAllocatedAirdropTokenResponse) ProtoReflect() protoreflect.Message
func (*QueryTotalAllocatedAirdropTokenResponse) Reset ¶
func (x *QueryTotalAllocatedAirdropTokenResponse) Reset()
func (*QueryTotalAllocatedAirdropTokenResponse) String ¶
func (x *QueryTotalAllocatedAirdropTokenResponse) String() string
type QuestState ¶
type QuestState struct { // state to indicate that quest is not started, claimable or claimed. State QuestStateType `protobuf:"varint,1,opt,name=state,proto3,enum=nova.airdrop.v1.QuestStateType" json:"state,omitempty"` // achieve_timestamp is the timestamp when the quest is achieved. AchievedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=achieved_at,json=achievedAt,proto3" json:"achieved_at,omitempty"` // claim_timestamp is the timestamp when the user claimed the amount. ClaimedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=claimed_at,json=claimedAt,proto3" json:"claimed_at,omitempty"` // claimed amount, this field is empty if user not claimed for this quest yet ClaimedAmount string `protobuf:"bytes,4,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"` // contains filtered or unexported fields }
QuestState indicates the status of the quest that users perform.
func (*QuestState) Descriptor
deprecated
func (*QuestState) Descriptor() ([]byte, []int)
Deprecated: Use QuestState.ProtoReflect.Descriptor instead.
func (*QuestState) GetAchievedAt ¶
func (x *QuestState) GetAchievedAt() *timestamppb.Timestamp
func (*QuestState) GetClaimedAmount ¶
func (x *QuestState) GetClaimedAmount() string
func (*QuestState) GetClaimedAt ¶
func (x *QuestState) GetClaimedAt() *timestamppb.Timestamp
func (*QuestState) GetState ¶
func (x *QuestState) GetState() QuestStateType
func (*QuestState) ProtoMessage ¶
func (*QuestState) ProtoMessage()
func (*QuestState) ProtoReflect ¶
func (x *QuestState) ProtoReflect() protoreflect.Message
func (*QuestState) Reset ¶
func (x *QuestState) Reset()
func (*QuestState) String ¶
func (x *QuestState) String() string
type QuestStateType ¶
type QuestStateType int32
const ( // quest is not conducted by user yet QuestStateType_QUEST_STATE_NOT_STARTED QuestStateType = 0 // quest is done, now user can claim her/his airdrop reward. QuestStateType_QUEST_STATE_CLAIMABLE QuestStateType = 1 // quest is done, and user has claimed her/his airdrop reward. QuestStateType_QUEST_STATE_CLAIMED QuestStateType = 2 )
func (QuestStateType) Descriptor ¶
func (QuestStateType) Descriptor() protoreflect.EnumDescriptor
func (QuestStateType) Enum ¶
func (x QuestStateType) Enum() *QuestStateType
func (QuestStateType) EnumDescriptor
deprecated
func (QuestStateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use QuestStateType.Descriptor instead.
func (QuestStateType) Number ¶
func (x QuestStateType) Number() protoreflect.EnumNumber
func (QuestStateType) String ¶
func (x QuestStateType) String() string
func (QuestStateType) Type ¶
func (QuestStateType) Type() protoreflect.EnumType
type QuestType ¶
type QuestType int32
func (QuestType) Descriptor ¶
func (QuestType) Descriptor() protoreflect.EnumDescriptor
func (QuestType) EnumDescriptor
deprecated
func (QuestType) Number ¶
func (x QuestType) Number() protoreflect.EnumNumber
func (QuestType) Type ¶
func (QuestType) Type() protoreflect.EnumType
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) ClaimAirdrop ¶
func (UnimplementedMsgServer) ClaimAirdrop(context.Context, *MsgClaimAirdropRequest) (*MsgClaimAirdropResponse, error)
func (UnimplementedMsgServer) MarkSocialQuestPerformed ¶
func (UnimplementedMsgServer) MarkSocialQuestPerformed(context.Context, *MsgMarkSocialQuestPerformedRequest) (*MsgMarkSocialQuestPerformedResponse, error)
func (UnimplementedMsgServer) MarkUserProvidedLiquidity ¶
func (UnimplementedMsgServer) MarkUserProvidedLiquidity(context.Context, *MsgMarkUserProvidedLiquidityRequest) (*MsgMarkUserProvidedLiquidityResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) AirdropInfo ¶
func (UnimplementedQueryServer) AirdropInfo(context.Context, *QueryAirdropInfoRequest) (*QueryAirdropInfoResponse, error)
func (UnimplementedQueryServer) QuestState ¶
func (UnimplementedQueryServer) QuestState(context.Context, *QueryQuestStateRequest) (*QueryQuestStateResponse, error)
func (UnimplementedQueryServer) TotalAllocatedAirdropToken ¶
func (UnimplementedQueryServer) TotalAllocatedAirdropToken(context.Context, *QueryTotalAllocatedAirdropTokenRequest) (*QueryTotalAllocatedAirdropTokenResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type UserState ¶
type UserState struct { // address of the airdrop recipient. Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` // amount of coins to be allocated to the recipient. TotalAmount string `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` // claim histories QuestStates map[int32]*QuestState `` /* 183-byte string literal not displayed */ // contains filtered or unexported fields }
UserState indicates the status of the user performing the quest.
func (*UserState) Descriptor
deprecated
func (*UserState) GetQuestStates ¶
func (x *UserState) GetQuestStates() map[int32]*QuestState
func (*UserState) GetRecipient ¶
func (*UserState) GetTotalAmount ¶
func (*UserState) ProtoMessage ¶
func (*UserState) ProtoMessage()
func (*UserState) ProtoReflect ¶
func (x *UserState) ProtoReflect() protoreflect.Message