airdropv1

package
v0.6.7-testnet Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_nova_airdrop_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_nova_airdrop_v1_params_proto protoreflect.FileDescriptor
View Source
var File_nova_airdrop_v1_query_proto protoreflect.FileDescriptor
View Source
var File_nova_airdrop_v1_tx_proto protoreflect.FileDescriptor
View Source
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)

View Source
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

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 (*MsgMarkSocialQuestPerformedRequest) Reset

func (*MsgMarkSocialQuestPerformedRequest) 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 (*MsgMarkSocialQuestPerformedResponse) Reset

func (*MsgMarkSocialQuestPerformedResponse) 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 (*MsgMarkUserProvidedLiquidityRequest) Reset

func (*MsgMarkUserProvidedLiquidityRequest) 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 (*MsgMarkUserProvidedLiquidityResponse) Reset

func (*MsgMarkUserProvidedLiquidityResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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 (*QueryTotalAllocatedAirdropTokenRequest) ProtoMessage

func (*QueryTotalAllocatedAirdropTokenRequest) ProtoReflect

func (*QueryTotalAllocatedAirdropTokenRequest) Reset

func (*QueryTotalAllocatedAirdropTokenRequest) 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 (*QueryTotalAllocatedAirdropTokenResponse) ProtoMessage

func (*QueryTotalAllocatedAirdropTokenResponse) ProtoReflect

func (*QueryTotalAllocatedAirdropTokenResponse) Reset

func (*QueryTotalAllocatedAirdropTokenResponse) 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) Enum

func (x QuestStateType) Enum() *QuestStateType

func (QuestStateType) EnumDescriptor deprecated

func (QuestStateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QuestStateType.Descriptor instead.

func (QuestStateType) Number

func (QuestStateType) String

func (x QuestStateType) String() string

func (QuestStateType) Type

type QuestType

type QuestType int32
const (
	QuestType_QUEST_NOTHING_TO_DO     QuestType = 0
	QuestType_QUEST_SOCIAL            QuestType = 1
	QuestType_QUEST_SN_ASSET_CLAIM    QuestType = 2
	QuestType_QUEST_PROVIDE_LIQUIDITY QuestType = 3
	QuestType_QUEST_VOTE_ON_PROPOSALS QuestType = 4
)

func (QuestType) Descriptor

func (QuestType) Descriptor() protoreflect.EnumDescriptor

func (QuestType) Enum

func (x QuestType) Enum() *QuestType

func (QuestType) EnumDescriptor deprecated

func (QuestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QuestType.Descriptor instead.

func (QuestType) Number

func (x QuestType) Number() protoreflect.EnumNumber

func (QuestType) String

func (x QuestType) String() string

func (QuestType) Type

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

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) Descriptor() ([]byte, []int)

Deprecated: Use UserState.ProtoReflect.Descriptor instead.

func (*UserState) GetQuestStates

func (x *UserState) GetQuestStates() map[int32]*QuestState

func (*UserState) GetRecipient

func (x *UserState) GetRecipient() string

func (*UserState) GetTotalAmount

func (x *UserState) GetTotalAmount() string

func (*UserState) ProtoMessage

func (*UserState) ProtoMessage()

func (*UserState) ProtoReflect

func (x *UserState) ProtoReflect() protoreflect.Message

func (*UserState) Reset

func (x *UserState) Reset()

func (*UserState) String

func (x *UserState) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL