types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 35 Imported by: 8

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "claim"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_claim"
)
View Source
const (
	AirdropSupplyKey = "AirdropSupply-value-"
)
View Source
const (
	// ClaimRecordKeyPrefix is the prefix to retrieve all ClaimRecord
	ClaimRecordKeyPrefix = "ClaimRecord/value/"
)
View Source
const (
	InitialClaimKey = "InitialClaim-value-"
)
View Source
const (
	MissionKey = "Mission-value-"
)
View Source
const TypeMsgClaim = "claim"

Variables

View Source
var (
	ErrInvalidLengthClaimRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClaimRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClaimRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrMissionNotFound        = errors.Register(ModuleName, 2, "mission not found")
	ErrClaimRecordNotFound    = errors.Register(ModuleName, 3, "claim record not found")
	ErrMissionCompleted       = errors.Register(ModuleName, 4, "mission already completed")
	ErrAirdropSupplyNotFound  = errors.Register(ModuleName, 5, "airdrop supply not found")
	ErrInitialClaimNotFound   = errors.Register(ModuleName, 6, "initial claim information not found")
	ErrInitialClaimNotEnabled = errors.Register(ModuleName, 7, "initial claim not enabled")
	ErrMissionCompleteFailure = errors.Register(ModuleName, 8, "mission failed to complete")
	ErrNoClaimable            = errors.Register(ModuleName, 9, "no amount to be claimed")
	ErrMissionNotCompleted    = errors.Register(ModuleName, 10, "mission not completed yet")
	ErrMissionAlreadyClaimed  = errors.Register(ModuleName, 11, "mission already claimed")
	ErrAirdropStartNotReached = errors.Register(ModuleName, 12, "airdrop start has not been reached yet")
)

x/claim module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthInitialClaim        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInitialClaim          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupInitialClaim = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMission        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMission          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMission = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyDecayInformation = []byte("DecayInformation")
	KeyAirdropStart     = []byte("AirdropStart")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func CheckAirdropSupply

func CheckAirdropSupply(airdropSupply sdk.Coin, missionMap map[uint64]Mission, claimRecords []ClaimRecord) error

func ClaimRecordKey

func ClaimRecordKey(
	index string,
) []byte

ClaimRecordKey returns the store key to retrieve a ClaimRecord from the index fields

func GetMissionIDBytes

func GetMissionIDBytes(id uint64) []byte

GetMissionIDBytes returns the byte representation of the ID

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ClaimRecord

type ClaimRecord struct {
	Address           string                                 `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Claimable         github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=claimable,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimable"`
	CompletedMissions []uint64                               `protobuf:"varint,3,rep,packed,name=completedMissions,proto3" json:"completedMissions,omitempty"`
	ClaimedMissions   []uint64                               `protobuf:"varint,4,rep,packed,name=claimedMissions,proto3" json:"claimedMissions,omitempty"`
}

func (ClaimRecord) ClaimableFromMission

func (m ClaimRecord) ClaimableFromMission(mission Mission) sdkmath.Int

ClaimableFromMission returns the amount claimable for this claim record from the provided mission completion

func (*ClaimRecord) Descriptor

func (*ClaimRecord) Descriptor() ([]byte, []int)

func (*ClaimRecord) GetAddress

func (m *ClaimRecord) GetAddress() string

func (*ClaimRecord) GetClaimedMissions

func (m *ClaimRecord) GetClaimedMissions() []uint64

func (*ClaimRecord) GetCompletedMissions

func (m *ClaimRecord) GetCompletedMissions() []uint64

func (ClaimRecord) IsMissionClaimed

func (m ClaimRecord) IsMissionClaimed(missionID uint64) bool

IsMissionClaimed checks if the specified mission ID is claimed for the claim record

func (ClaimRecord) IsMissionCompleted

func (m ClaimRecord) IsMissionCompleted(missionID uint64) bool

IsMissionCompleted checks if the specified mission ID is completed for the claim record

func (*ClaimRecord) Marshal

func (m *ClaimRecord) Marshal() (dAtA []byte, err error)

func (*ClaimRecord) MarshalTo

func (m *ClaimRecord) MarshalTo(dAtA []byte) (int, error)

func (*ClaimRecord) MarshalToSizedBuffer

func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClaimRecord) ProtoMessage

func (*ClaimRecord) ProtoMessage()

func (*ClaimRecord) Reset

func (m *ClaimRecord) Reset()

func (*ClaimRecord) Size

func (m *ClaimRecord) Size() (n int)

func (*ClaimRecord) String

func (m *ClaimRecord) String() string

func (*ClaimRecord) Unmarshal

func (m *ClaimRecord) Unmarshal(dAtA []byte) error

func (ClaimRecord) Validate

func (m ClaimRecord) Validate() error

Validate checks the claimRecord is valid

func (*ClaimRecord) XXX_DiscardUnknown

func (m *ClaimRecord) XXX_DiscardUnknown()

func (*ClaimRecord) XXX_Marshal

func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClaimRecord) XXX_Merge

func (m *ClaimRecord) XXX_Merge(src proto.Message)

func (*ClaimRecord) XXX_Size

func (m *ClaimRecord) XXX_Size() int

func (*ClaimRecord) XXX_Unmarshal

func (m *ClaimRecord) XXX_Unmarshal(b []byte) error

type DecayInformation

type DecayInformation struct {
	Enabled    bool      `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	DecayStart time.Time `protobuf:"bytes,2,opt,name=decayStart,proto3,stdtime" json:"decayStart"`
	DecayEnd   time.Time `protobuf:"bytes,3,opt,name=decayEnd,proto3,stdtime" json:"decayEnd"`
}

DecayInformation defines the information about decay for the airdrop when claimable airdrop amount starts to decrease and when it ends

func NewDisabledDecay

func NewDisabledDecay() DecayInformation

NewDisabledDecay returns decay information with disabled decay

func NewEnabledDecay

func NewEnabledDecay(start, end time.Time) DecayInformation

NewEnabledDecay returns decay information with a decay start and end

func (DecayInformation) ApplyDecayFactor

func (m DecayInformation) ApplyDecayFactor(coins sdk.Coins, currentTime time.Time) sdk.Coins

ApplyDecayFactor reduces the coins depending on the decay factor from decay information coins decrease from decay start to zero at decay end

func (*DecayInformation) Descriptor

func (*DecayInformation) Descriptor() ([]byte, []int)

func (*DecayInformation) GetDecayEnd

func (m *DecayInformation) GetDecayEnd() time.Time

func (*DecayInformation) GetDecayStart

func (m *DecayInformation) GetDecayStart() time.Time

func (*DecayInformation) GetEnabled

func (m *DecayInformation) GetEnabled() bool

func (*DecayInformation) Marshal

func (m *DecayInformation) Marshal() (dAtA []byte, err error)

func (*DecayInformation) MarshalTo

func (m *DecayInformation) MarshalTo(dAtA []byte) (int, error)

func (*DecayInformation) MarshalToSizedBuffer

func (m *DecayInformation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecayInformation) ProtoMessage

func (*DecayInformation) ProtoMessage()

func (*DecayInformation) Reset

func (m *DecayInformation) Reset()

func (*DecayInformation) Size

func (m *DecayInformation) Size() (n int)

func (*DecayInformation) String

func (m *DecayInformation) String() string

func (*DecayInformation) Unmarshal

func (m *DecayInformation) Unmarshal(dAtA []byte) error

func (DecayInformation) Validate

func (m DecayInformation) Validate() error

Validate validates the decay information

func (*DecayInformation) XXX_DiscardUnknown

func (m *DecayInformation) XXX_DiscardUnknown()

func (*DecayInformation) XXX_Marshal

func (m *DecayInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecayInformation) XXX_Merge

func (m *DecayInformation) XXX_Merge(src proto.Message)

func (*DecayInformation) XXX_Size

func (m *DecayInformation) XXX_Size() int

func (*DecayInformation) XXX_Unmarshal

func (m *DecayInformation) XXX_Unmarshal(b []byte) error

type DistrKeeper

type DistrKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

DistrKeeper defines the contract needed to be fulfilled for distribution keeper.

type EventMissionClaimed

type EventMissionClaimed struct {
	MissionID uint64 `protobuf:"varint,1,opt,name=missionID,proto3" json:"missionID,omitempty"`
	Claimer   string `protobuf:"bytes,2,opt,name=claimer,proto3" json:"claimer,omitempty"`
}

func (*EventMissionClaimed) Descriptor

func (*EventMissionClaimed) Descriptor() ([]byte, []int)

func (*EventMissionClaimed) GetClaimer

func (m *EventMissionClaimed) GetClaimer() string

func (*EventMissionClaimed) GetMissionID

func (m *EventMissionClaimed) GetMissionID() uint64

func (*EventMissionClaimed) Marshal

func (m *EventMissionClaimed) Marshal() (dAtA []byte, err error)

func (*EventMissionClaimed) MarshalTo

func (m *EventMissionClaimed) MarshalTo(dAtA []byte) (int, error)

func (*EventMissionClaimed) MarshalToSizedBuffer

func (m *EventMissionClaimed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMissionClaimed) ProtoMessage

func (*EventMissionClaimed) ProtoMessage()

func (*EventMissionClaimed) Reset

func (m *EventMissionClaimed) Reset()

func (*EventMissionClaimed) Size

func (m *EventMissionClaimed) Size() (n int)

func (*EventMissionClaimed) String

func (m *EventMissionClaimed) String() string

func (*EventMissionClaimed) Unmarshal

func (m *EventMissionClaimed) Unmarshal(dAtA []byte) error

func (*EventMissionClaimed) XXX_DiscardUnknown

func (m *EventMissionClaimed) XXX_DiscardUnknown()

func (*EventMissionClaimed) XXX_Marshal

func (m *EventMissionClaimed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMissionClaimed) XXX_Merge

func (m *EventMissionClaimed) XXX_Merge(src proto.Message)

func (*EventMissionClaimed) XXX_Size

func (m *EventMissionClaimed) XXX_Size() int

func (*EventMissionClaimed) XXX_Unmarshal

func (m *EventMissionClaimed) XXX_Unmarshal(b []byte) error

type EventMissionCompleted

type EventMissionCompleted struct {
	MissionID uint64 `protobuf:"varint,1,opt,name=missionID,proto3" json:"missionID,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*EventMissionCompleted) Descriptor

func (*EventMissionCompleted) Descriptor() ([]byte, []int)

func (*EventMissionCompleted) GetAddress

func (m *EventMissionCompleted) GetAddress() string

func (*EventMissionCompleted) GetMissionID

func (m *EventMissionCompleted) GetMissionID() uint64

func (*EventMissionCompleted) Marshal

func (m *EventMissionCompleted) Marshal() (dAtA []byte, err error)

func (*EventMissionCompleted) MarshalTo

func (m *EventMissionCompleted) MarshalTo(dAtA []byte) (int, error)

func (*EventMissionCompleted) MarshalToSizedBuffer

func (m *EventMissionCompleted) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMissionCompleted) ProtoMessage

func (*EventMissionCompleted) ProtoMessage()

func (*EventMissionCompleted) Reset

func (m *EventMissionCompleted) Reset()

func (*EventMissionCompleted) Size

func (m *EventMissionCompleted) Size() (n int)

func (*EventMissionCompleted) String

func (m *EventMissionCompleted) String() string

func (*EventMissionCompleted) Unmarshal

func (m *EventMissionCompleted) Unmarshal(dAtA []byte) error

func (*EventMissionCompleted) XXX_DiscardUnknown

func (m *EventMissionCompleted) XXX_DiscardUnknown()

func (*EventMissionCompleted) XXX_Marshal

func (m *EventMissionCompleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMissionCompleted) XXX_Merge

func (m *EventMissionCompleted) XXX_Merge(src proto.Message)

func (*EventMissionCompleted) XXX_Size

func (m *EventMissionCompleted) XXX_Size() int

func (*EventMissionCompleted) XXX_Unmarshal

func (m *EventMissionCompleted) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	AirdropSupply types.Coin    `protobuf:"bytes,1,opt,name=airdropSupply,proto3" json:"airdropSupply"`
	ClaimRecords  []ClaimRecord `protobuf:"bytes,2,rep,name=claimRecords,proto3" json:"claimRecords"`
	Missions      []Mission     `protobuf:"bytes,3,rep,name=missions,proto3" json:"missions"`
	InitialClaim  InitialClaim  `protobuf:"bytes,4,opt,name=initialClaim,proto3" json:"initialClaim"`
	Params        Params        `protobuf:"bytes,5,opt,name=params,proto3" json:"params"`
}

GenesisState defines the claim module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default claim genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetAirdropSupply

func (m *GenesisState) GetAirdropSupply() types.Coin

func (*GenesisState) GetClaimRecords

func (m *GenesisState) GetClaimRecords() []ClaimRecord

func (*GenesisState) GetInitialClaim

func (m *GenesisState) GetInitialClaim() InitialClaim

func (*GenesisState) GetMissions

func (m *GenesisState) GetMissions() []Mission

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type InitialClaim

type InitialClaim struct {
	Enabled   bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	MissionID uint64 `protobuf:"varint,2,opt,name=missionID,proto3" json:"missionID,omitempty"`
}

func (*InitialClaim) Descriptor

func (*InitialClaim) Descriptor() ([]byte, []int)

func (*InitialClaim) GetEnabled

func (m *InitialClaim) GetEnabled() bool

func (*InitialClaim) GetMissionID

func (m *InitialClaim) GetMissionID() uint64

func (*InitialClaim) Marshal

func (m *InitialClaim) Marshal() (dAtA []byte, err error)

func (*InitialClaim) MarshalTo

func (m *InitialClaim) MarshalTo(dAtA []byte) (int, error)

func (*InitialClaim) MarshalToSizedBuffer

func (m *InitialClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InitialClaim) ProtoMessage

func (*InitialClaim) ProtoMessage()

func (*InitialClaim) Reset

func (m *InitialClaim) Reset()

func (*InitialClaim) Size

func (m *InitialClaim) Size() (n int)

func (*InitialClaim) String

func (m *InitialClaim) String() string

func (*InitialClaim) Unmarshal

func (m *InitialClaim) Unmarshal(dAtA []byte) error

func (*InitialClaim) XXX_DiscardUnknown

func (m *InitialClaim) XXX_DiscardUnknown()

func (*InitialClaim) XXX_Marshal

func (m *InitialClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitialClaim) XXX_Merge

func (m *InitialClaim) XXX_Merge(src proto.Message)

func (*InitialClaim) XXX_Size

func (m *InitialClaim) XXX_Size() int

func (*InitialClaim) XXX_Unmarshal

func (m *InitialClaim) XXX_Unmarshal(b []byte) error

type Mission

type Mission struct {
	MissionID   uint64                                 `protobuf:"varint,1,opt,name=missionID,proto3" json:"missionID,omitempty"`
	Description string                                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Weight      github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight"`
}

func (*Mission) Descriptor

func (*Mission) Descriptor() ([]byte, []int)

func (*Mission) GetDescription

func (m *Mission) GetDescription() string

func (*Mission) GetMissionID

func (m *Mission) GetMissionID() uint64

func (*Mission) Marshal

func (m *Mission) Marshal() (dAtA []byte, err error)

func (*Mission) MarshalTo

func (m *Mission) MarshalTo(dAtA []byte) (int, error)

func (*Mission) MarshalToSizedBuffer

func (m *Mission) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Mission) ProtoMessage

func (*Mission) ProtoMessage()

func (*Mission) Reset

func (m *Mission) Reset()

func (*Mission) Size

func (m *Mission) Size() (n int)

func (*Mission) String

func (m *Mission) String() string

func (*Mission) Unmarshal

func (m *Mission) Unmarshal(dAtA []byte) error

func (Mission) Validate

func (m Mission) Validate() error

Validate checks the mission is valid

func (*Mission) XXX_DiscardUnknown

func (m *Mission) XXX_DiscardUnknown()

func (*Mission) XXX_Marshal

func (m *Mission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Mission) XXX_Merge

func (m *Mission) XXX_Merge(src proto.Message)

func (*Mission) XXX_Size

func (m *Mission) XXX_Size() int

func (*Mission) XXX_Unmarshal

func (m *Mission) XXX_Unmarshal(b []byte) error

type MsgClaim

type MsgClaim struct {
	Claimer   string `protobuf:"bytes,1,opt,name=claimer,proto3" json:"claimer,omitempty"`
	MissionID uint64 `protobuf:"varint,2,opt,name=missionID,proto3" json:"missionID,omitempty"`
}

func NewMsgClaim

func NewMsgClaim(creator string, missionID uint64) *MsgClaim

func (*MsgClaim) Descriptor

func (*MsgClaim) Descriptor() ([]byte, []int)

func (*MsgClaim) GetClaimer

func (m *MsgClaim) GetClaimer() string

func (*MsgClaim) GetMissionID

func (m *MsgClaim) GetMissionID() uint64

func (*MsgClaim) GetSignBytes

func (msg *MsgClaim) GetSignBytes() []byte

func (*MsgClaim) GetSigners

func (msg *MsgClaim) GetSigners() []sdk.AccAddress

func (*MsgClaim) Marshal

func (m *MsgClaim) Marshal() (dAtA []byte, err error)

func (*MsgClaim) MarshalTo

func (m *MsgClaim) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaim) MarshalToSizedBuffer

func (m *MsgClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaim) ProtoMessage

func (*MsgClaim) ProtoMessage()

func (*MsgClaim) Reset

func (m *MsgClaim) Reset()

func (*MsgClaim) Route

func (msg *MsgClaim) Route() string

func (*MsgClaim) Size

func (m *MsgClaim) Size() (n int)

func (*MsgClaim) String

func (m *MsgClaim) String() string

func (*MsgClaim) Type

func (msg *MsgClaim) Type() string

func (*MsgClaim) Unmarshal

func (m *MsgClaim) Unmarshal(dAtA []byte) error

func (*MsgClaim) ValidateBasic

func (msg *MsgClaim) ValidateBasic() error

func (*MsgClaim) XXX_DiscardUnknown

func (m *MsgClaim) XXX_DiscardUnknown()

func (*MsgClaim) XXX_Marshal

func (m *MsgClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaim) XXX_Merge

func (m *MsgClaim) XXX_Merge(src proto.Message)

func (*MsgClaim) XXX_Size

func (m *MsgClaim) XXX_Size() int

func (*MsgClaim) XXX_Unmarshal

func (m *MsgClaim) XXX_Unmarshal(b []byte) error

type MsgClaimResponse

type MsgClaimResponse struct {
	Claimed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=claimed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimed"`
}

func (*MsgClaimResponse) Descriptor

func (*MsgClaimResponse) Descriptor() ([]byte, []int)

func (*MsgClaimResponse) Marshal

func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)

func (*MsgClaimResponse) MarshalTo

func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimResponse) MarshalToSizedBuffer

func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimResponse) ProtoMessage

func (*MsgClaimResponse) ProtoMessage()

func (*MsgClaimResponse) Reset

func (m *MsgClaimResponse) Reset()

func (*MsgClaimResponse) Size

func (m *MsgClaimResponse) Size() (n int)

func (*MsgClaimResponse) String

func (m *MsgClaimResponse) String() string

func (*MsgClaimResponse) Unmarshal

func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error

func (*MsgClaimResponse) XXX_DiscardUnknown

func (m *MsgClaimResponse) XXX_DiscardUnknown()

func (*MsgClaimResponse) XXX_Marshal

func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimResponse) XXX_Merge

func (m *MsgClaimResponse) XXX_Merge(src proto.Message)

func (*MsgClaimResponse) XXX_Size

func (m *MsgClaimResponse) XXX_Size() int

func (*MsgClaimResponse) XXX_Unmarshal

func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	DecayInformation DecayInformation `protobuf:"bytes,1,opt,name=decayInformation,proto3" json:"decayInformation"`
	AirdropStart     time.Time        `protobuf:"bytes,2,opt,name=airdropStart,proto3,stdtime" json:"airdropStart"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(di DecayInformation, airdropStart time.Time) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetAirdropStart

func (m *Params) GetAirdropStart() time.Time

func (*Params) GetDecayInformation

func (m *Params) GetDecayInformation() DecayInformation

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAllClaimRecordRequest

type QueryAllClaimRecordRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllClaimRecordRequest) Descriptor

func (*QueryAllClaimRecordRequest) Descriptor() ([]byte, []int)

func (*QueryAllClaimRecordRequest) GetPagination

func (m *QueryAllClaimRecordRequest) GetPagination() *query.PageRequest

func (*QueryAllClaimRecordRequest) Marshal

func (m *QueryAllClaimRecordRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllClaimRecordRequest) MarshalTo

func (m *QueryAllClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllClaimRecordRequest) MarshalToSizedBuffer

func (m *QueryAllClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllClaimRecordRequest) ProtoMessage

func (*QueryAllClaimRecordRequest) ProtoMessage()

func (*QueryAllClaimRecordRequest) Reset

func (m *QueryAllClaimRecordRequest) Reset()

func (*QueryAllClaimRecordRequest) Size

func (m *QueryAllClaimRecordRequest) Size() (n int)

func (*QueryAllClaimRecordRequest) String

func (m *QueryAllClaimRecordRequest) String() string

func (*QueryAllClaimRecordRequest) Unmarshal

func (m *QueryAllClaimRecordRequest) Unmarshal(dAtA []byte) error

func (*QueryAllClaimRecordRequest) XXX_DiscardUnknown

func (m *QueryAllClaimRecordRequest) XXX_DiscardUnknown()

func (*QueryAllClaimRecordRequest) XXX_Marshal

func (m *QueryAllClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllClaimRecordRequest) XXX_Merge

func (m *QueryAllClaimRecordRequest) XXX_Merge(src proto.Message)

func (*QueryAllClaimRecordRequest) XXX_Size

func (m *QueryAllClaimRecordRequest) XXX_Size() int

func (*QueryAllClaimRecordRequest) XXX_Unmarshal

func (m *QueryAllClaimRecordRequest) XXX_Unmarshal(b []byte) error

type QueryAllClaimRecordResponse

type QueryAllClaimRecordResponse struct {
	ClaimRecord []ClaimRecord       `protobuf:"bytes,1,rep,name=claimRecord,proto3" json:"claimRecord"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllClaimRecordResponse) Descriptor

func (*QueryAllClaimRecordResponse) Descriptor() ([]byte, []int)

func (*QueryAllClaimRecordResponse) GetClaimRecord

func (m *QueryAllClaimRecordResponse) GetClaimRecord() []ClaimRecord

func (*QueryAllClaimRecordResponse) GetPagination

func (m *QueryAllClaimRecordResponse) GetPagination() *query.PageResponse

func (*QueryAllClaimRecordResponse) Marshal

func (m *QueryAllClaimRecordResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllClaimRecordResponse) MarshalTo

func (m *QueryAllClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllClaimRecordResponse) MarshalToSizedBuffer

func (m *QueryAllClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllClaimRecordResponse) ProtoMessage

func (*QueryAllClaimRecordResponse) ProtoMessage()

func (*QueryAllClaimRecordResponse) Reset

func (m *QueryAllClaimRecordResponse) Reset()

func (*QueryAllClaimRecordResponse) Size

func (m *QueryAllClaimRecordResponse) Size() (n int)

func (*QueryAllClaimRecordResponse) String

func (m *QueryAllClaimRecordResponse) String() string

func (*QueryAllClaimRecordResponse) Unmarshal

func (m *QueryAllClaimRecordResponse) Unmarshal(dAtA []byte) error

func (*QueryAllClaimRecordResponse) XXX_DiscardUnknown

func (m *QueryAllClaimRecordResponse) XXX_DiscardUnknown()

func (*QueryAllClaimRecordResponse) XXX_Marshal

func (m *QueryAllClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllClaimRecordResponse) XXX_Merge

func (m *QueryAllClaimRecordResponse) XXX_Merge(src proto.Message)

func (*QueryAllClaimRecordResponse) XXX_Size

func (m *QueryAllClaimRecordResponse) XXX_Size() int

func (*QueryAllClaimRecordResponse) XXX_Unmarshal

func (m *QueryAllClaimRecordResponse) XXX_Unmarshal(b []byte) error

type QueryAllMissionRequest

type QueryAllMissionRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllMissionRequest) Descriptor

func (*QueryAllMissionRequest) Descriptor() ([]byte, []int)

func (*QueryAllMissionRequest) GetPagination

func (m *QueryAllMissionRequest) GetPagination() *query.PageRequest

func (*QueryAllMissionRequest) Marshal

func (m *QueryAllMissionRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllMissionRequest) MarshalTo

func (m *QueryAllMissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllMissionRequest) MarshalToSizedBuffer

func (m *QueryAllMissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllMissionRequest) ProtoMessage

func (*QueryAllMissionRequest) ProtoMessage()

func (*QueryAllMissionRequest) Reset

func (m *QueryAllMissionRequest) Reset()

func (*QueryAllMissionRequest) Size

func (m *QueryAllMissionRequest) Size() (n int)

func (*QueryAllMissionRequest) String

func (m *QueryAllMissionRequest) String() string

func (*QueryAllMissionRequest) Unmarshal

func (m *QueryAllMissionRequest) Unmarshal(dAtA []byte) error

func (*QueryAllMissionRequest) XXX_DiscardUnknown

func (m *QueryAllMissionRequest) XXX_DiscardUnknown()

func (*QueryAllMissionRequest) XXX_Marshal

func (m *QueryAllMissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllMissionRequest) XXX_Merge

func (m *QueryAllMissionRequest) XXX_Merge(src proto.Message)

func (*QueryAllMissionRequest) XXX_Size

func (m *QueryAllMissionRequest) XXX_Size() int

func (*QueryAllMissionRequest) XXX_Unmarshal

func (m *QueryAllMissionRequest) XXX_Unmarshal(b []byte) error

type QueryAllMissionResponse

type QueryAllMissionResponse struct {
	Mission    []Mission           `protobuf:"bytes,1,rep,name=Mission,proto3" json:"Mission"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllMissionResponse) Descriptor

func (*QueryAllMissionResponse) Descriptor() ([]byte, []int)

func (*QueryAllMissionResponse) GetMission

func (m *QueryAllMissionResponse) GetMission() []Mission

func (*QueryAllMissionResponse) GetPagination

func (m *QueryAllMissionResponse) GetPagination() *query.PageResponse

func (*QueryAllMissionResponse) Marshal

func (m *QueryAllMissionResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllMissionResponse) MarshalTo

func (m *QueryAllMissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllMissionResponse) MarshalToSizedBuffer

func (m *QueryAllMissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllMissionResponse) ProtoMessage

func (*QueryAllMissionResponse) ProtoMessage()

func (*QueryAllMissionResponse) Reset

func (m *QueryAllMissionResponse) Reset()

func (*QueryAllMissionResponse) Size

func (m *QueryAllMissionResponse) Size() (n int)

func (*QueryAllMissionResponse) String

func (m *QueryAllMissionResponse) String() string

func (*QueryAllMissionResponse) Unmarshal

func (m *QueryAllMissionResponse) Unmarshal(dAtA []byte) error

func (*QueryAllMissionResponse) XXX_DiscardUnknown

func (m *QueryAllMissionResponse) XXX_DiscardUnknown()

func (*QueryAllMissionResponse) XXX_Marshal

func (m *QueryAllMissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllMissionResponse) XXX_Merge

func (m *QueryAllMissionResponse) XXX_Merge(src proto.Message)

func (*QueryAllMissionResponse) XXX_Size

func (m *QueryAllMissionResponse) XXX_Size() int

func (*QueryAllMissionResponse) XXX_Unmarshal

func (m *QueryAllMissionResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a ClaimRecord by address.
	ClaimRecord(ctx context.Context, in *QueryGetClaimRecordRequest, opts ...grpc.CallOption) (*QueryGetClaimRecordResponse, error)
	// Queries a list of ClaimRecord items.
	ClaimRecordAll(ctx context.Context, in *QueryAllClaimRecordRequest, opts ...grpc.CallOption) (*QueryAllClaimRecordResponse, error)
	// Queries a Mission by ID.
	Mission(ctx context.Context, in *QueryGetMissionRequest, opts ...grpc.CallOption) (*QueryGetMissionResponse, error)
	// Queries a list of Mission items.
	MissionAll(ctx context.Context, in *QueryAllMissionRequest, opts ...grpc.CallOption) (*QueryAllMissionResponse, error)
	// Queries a AirdropSupply by index.
	AirdropSupply(ctx context.Context, in *QueryGetAirdropSupplyRequest, opts ...grpc.CallOption) (*QueryGetAirdropSupplyResponse, error)
	// Queries a InitialClaim by index.
	InitialClaim(ctx context.Context, in *QueryGetInitialClaimRequest, opts ...grpc.CallOption) (*QueryGetInitialClaimResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetAirdropSupplyRequest

type QueryGetAirdropSupplyRequest struct {
}

func (*QueryGetAirdropSupplyRequest) Descriptor

func (*QueryGetAirdropSupplyRequest) Descriptor() ([]byte, []int)

func (*QueryGetAirdropSupplyRequest) Marshal

func (m *QueryGetAirdropSupplyRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetAirdropSupplyRequest) MarshalTo

func (m *QueryGetAirdropSupplyRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetAirdropSupplyRequest) MarshalToSizedBuffer

func (m *QueryGetAirdropSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetAirdropSupplyRequest) ProtoMessage

func (*QueryGetAirdropSupplyRequest) ProtoMessage()

func (*QueryGetAirdropSupplyRequest) Reset

func (m *QueryGetAirdropSupplyRequest) Reset()

func (*QueryGetAirdropSupplyRequest) Size

func (m *QueryGetAirdropSupplyRequest) Size() (n int)

func (*QueryGetAirdropSupplyRequest) String

func (*QueryGetAirdropSupplyRequest) Unmarshal

func (m *QueryGetAirdropSupplyRequest) Unmarshal(dAtA []byte) error

func (*QueryGetAirdropSupplyRequest) XXX_DiscardUnknown

func (m *QueryGetAirdropSupplyRequest) XXX_DiscardUnknown()

func (*QueryGetAirdropSupplyRequest) XXX_Marshal

func (m *QueryGetAirdropSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetAirdropSupplyRequest) XXX_Merge

func (m *QueryGetAirdropSupplyRequest) XXX_Merge(src proto.Message)

func (*QueryGetAirdropSupplyRequest) XXX_Size

func (m *QueryGetAirdropSupplyRequest) XXX_Size() int

func (*QueryGetAirdropSupplyRequest) XXX_Unmarshal

func (m *QueryGetAirdropSupplyRequest) XXX_Unmarshal(b []byte) error

type QueryGetAirdropSupplyResponse

type QueryGetAirdropSupplyResponse struct {
	AirdropSupply types.Coin `protobuf:"bytes,1,opt,name=AirdropSupply,proto3" json:"AirdropSupply"`
}

func (*QueryGetAirdropSupplyResponse) Descriptor

func (*QueryGetAirdropSupplyResponse) Descriptor() ([]byte, []int)

func (*QueryGetAirdropSupplyResponse) GetAirdropSupply

func (m *QueryGetAirdropSupplyResponse) GetAirdropSupply() types.Coin

func (*QueryGetAirdropSupplyResponse) Marshal

func (m *QueryGetAirdropSupplyResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetAirdropSupplyResponse) MarshalTo

func (m *QueryGetAirdropSupplyResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetAirdropSupplyResponse) MarshalToSizedBuffer

func (m *QueryGetAirdropSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetAirdropSupplyResponse) ProtoMessage

func (*QueryGetAirdropSupplyResponse) ProtoMessage()

func (*QueryGetAirdropSupplyResponse) Reset

func (m *QueryGetAirdropSupplyResponse) Reset()

func (*QueryGetAirdropSupplyResponse) Size

func (m *QueryGetAirdropSupplyResponse) Size() (n int)

func (*QueryGetAirdropSupplyResponse) String

func (*QueryGetAirdropSupplyResponse) Unmarshal

func (m *QueryGetAirdropSupplyResponse) Unmarshal(dAtA []byte) error

func (*QueryGetAirdropSupplyResponse) XXX_DiscardUnknown

func (m *QueryGetAirdropSupplyResponse) XXX_DiscardUnknown()

func (*QueryGetAirdropSupplyResponse) XXX_Marshal

func (m *QueryGetAirdropSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetAirdropSupplyResponse) XXX_Merge

func (m *QueryGetAirdropSupplyResponse) XXX_Merge(src proto.Message)

func (*QueryGetAirdropSupplyResponse) XXX_Size

func (m *QueryGetAirdropSupplyResponse) XXX_Size() int

func (*QueryGetAirdropSupplyResponse) XXX_Unmarshal

func (m *QueryGetAirdropSupplyResponse) XXX_Unmarshal(b []byte) error

type QueryGetClaimRecordRequest

type QueryGetClaimRecordRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetClaimRecordRequest) Descriptor

func (*QueryGetClaimRecordRequest) Descriptor() ([]byte, []int)

func (*QueryGetClaimRecordRequest) GetAddress

func (m *QueryGetClaimRecordRequest) GetAddress() string

func (*QueryGetClaimRecordRequest) Marshal

func (m *QueryGetClaimRecordRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetClaimRecordRequest) MarshalTo

func (m *QueryGetClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetClaimRecordRequest) MarshalToSizedBuffer

func (m *QueryGetClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetClaimRecordRequest) ProtoMessage

func (*QueryGetClaimRecordRequest) ProtoMessage()

func (*QueryGetClaimRecordRequest) Reset

func (m *QueryGetClaimRecordRequest) Reset()

func (*QueryGetClaimRecordRequest) Size

func (m *QueryGetClaimRecordRequest) Size() (n int)

func (*QueryGetClaimRecordRequest) String

func (m *QueryGetClaimRecordRequest) String() string

func (*QueryGetClaimRecordRequest) Unmarshal

func (m *QueryGetClaimRecordRequest) Unmarshal(dAtA []byte) error

func (*QueryGetClaimRecordRequest) XXX_DiscardUnknown

func (m *QueryGetClaimRecordRequest) XXX_DiscardUnknown()

func (*QueryGetClaimRecordRequest) XXX_Marshal

func (m *QueryGetClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetClaimRecordRequest) XXX_Merge

func (m *QueryGetClaimRecordRequest) XXX_Merge(src proto.Message)

func (*QueryGetClaimRecordRequest) XXX_Size

func (m *QueryGetClaimRecordRequest) XXX_Size() int

func (*QueryGetClaimRecordRequest) XXX_Unmarshal

func (m *QueryGetClaimRecordRequest) XXX_Unmarshal(b []byte) error

type QueryGetClaimRecordResponse

type QueryGetClaimRecordResponse struct {
	ClaimRecord ClaimRecord `protobuf:"bytes,1,opt,name=claimRecord,proto3" json:"claimRecord"`
}

func (*QueryGetClaimRecordResponse) Descriptor

func (*QueryGetClaimRecordResponse) Descriptor() ([]byte, []int)

func (*QueryGetClaimRecordResponse) GetClaimRecord

func (m *QueryGetClaimRecordResponse) GetClaimRecord() ClaimRecord

func (*QueryGetClaimRecordResponse) Marshal

func (m *QueryGetClaimRecordResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetClaimRecordResponse) MarshalTo

func (m *QueryGetClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetClaimRecordResponse) MarshalToSizedBuffer

func (m *QueryGetClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetClaimRecordResponse) ProtoMessage

func (*QueryGetClaimRecordResponse) ProtoMessage()

func (*QueryGetClaimRecordResponse) Reset

func (m *QueryGetClaimRecordResponse) Reset()

func (*QueryGetClaimRecordResponse) Size

func (m *QueryGetClaimRecordResponse) Size() (n int)

func (*QueryGetClaimRecordResponse) String

func (m *QueryGetClaimRecordResponse) String() string

func (*QueryGetClaimRecordResponse) Unmarshal

func (m *QueryGetClaimRecordResponse) Unmarshal(dAtA []byte) error

func (*QueryGetClaimRecordResponse) XXX_DiscardUnknown

func (m *QueryGetClaimRecordResponse) XXX_DiscardUnknown()

func (*QueryGetClaimRecordResponse) XXX_Marshal

func (m *QueryGetClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetClaimRecordResponse) XXX_Merge

func (m *QueryGetClaimRecordResponse) XXX_Merge(src proto.Message)

func (*QueryGetClaimRecordResponse) XXX_Size

func (m *QueryGetClaimRecordResponse) XXX_Size() int

func (*QueryGetClaimRecordResponse) XXX_Unmarshal

func (m *QueryGetClaimRecordResponse) XXX_Unmarshal(b []byte) error

type QueryGetInitialClaimRequest

type QueryGetInitialClaimRequest struct {
}

func (*QueryGetInitialClaimRequest) Descriptor

func (*QueryGetInitialClaimRequest) Descriptor() ([]byte, []int)

func (*QueryGetInitialClaimRequest) Marshal

func (m *QueryGetInitialClaimRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetInitialClaimRequest) MarshalTo

func (m *QueryGetInitialClaimRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetInitialClaimRequest) MarshalToSizedBuffer

func (m *QueryGetInitialClaimRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetInitialClaimRequest) ProtoMessage

func (*QueryGetInitialClaimRequest) ProtoMessage()

func (*QueryGetInitialClaimRequest) Reset

func (m *QueryGetInitialClaimRequest) Reset()

func (*QueryGetInitialClaimRequest) Size

func (m *QueryGetInitialClaimRequest) Size() (n int)

func (*QueryGetInitialClaimRequest) String

func (m *QueryGetInitialClaimRequest) String() string

func (*QueryGetInitialClaimRequest) Unmarshal

func (m *QueryGetInitialClaimRequest) Unmarshal(dAtA []byte) error

func (*QueryGetInitialClaimRequest) XXX_DiscardUnknown

func (m *QueryGetInitialClaimRequest) XXX_DiscardUnknown()

func (*QueryGetInitialClaimRequest) XXX_Marshal

func (m *QueryGetInitialClaimRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetInitialClaimRequest) XXX_Merge

func (m *QueryGetInitialClaimRequest) XXX_Merge(src proto.Message)

func (*QueryGetInitialClaimRequest) XXX_Size

func (m *QueryGetInitialClaimRequest) XXX_Size() int

func (*QueryGetInitialClaimRequest) XXX_Unmarshal

func (m *QueryGetInitialClaimRequest) XXX_Unmarshal(b []byte) error

type QueryGetInitialClaimResponse

type QueryGetInitialClaimResponse struct {
	InitialClaim InitialClaim `protobuf:"bytes,1,opt,name=InitialClaim,proto3" json:"InitialClaim"`
}

func (*QueryGetInitialClaimResponse) Descriptor

func (*QueryGetInitialClaimResponse) Descriptor() ([]byte, []int)

func (*QueryGetInitialClaimResponse) GetInitialClaim

func (m *QueryGetInitialClaimResponse) GetInitialClaim() InitialClaim

func (*QueryGetInitialClaimResponse) Marshal

func (m *QueryGetInitialClaimResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetInitialClaimResponse) MarshalTo

func (m *QueryGetInitialClaimResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetInitialClaimResponse) MarshalToSizedBuffer

func (m *QueryGetInitialClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetInitialClaimResponse) ProtoMessage

func (*QueryGetInitialClaimResponse) ProtoMessage()

func (*QueryGetInitialClaimResponse) Reset

func (m *QueryGetInitialClaimResponse) Reset()

func (*QueryGetInitialClaimResponse) Size

func (m *QueryGetInitialClaimResponse) Size() (n int)

func (*QueryGetInitialClaimResponse) String

func (*QueryGetInitialClaimResponse) Unmarshal

func (m *QueryGetInitialClaimResponse) Unmarshal(dAtA []byte) error

func (*QueryGetInitialClaimResponse) XXX_DiscardUnknown

func (m *QueryGetInitialClaimResponse) XXX_DiscardUnknown()

func (*QueryGetInitialClaimResponse) XXX_Marshal

func (m *QueryGetInitialClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetInitialClaimResponse) XXX_Merge

func (m *QueryGetInitialClaimResponse) XXX_Merge(src proto.Message)

func (*QueryGetInitialClaimResponse) XXX_Size

func (m *QueryGetInitialClaimResponse) XXX_Size() int

func (*QueryGetInitialClaimResponse) XXX_Unmarshal

func (m *QueryGetInitialClaimResponse) XXX_Unmarshal(b []byte) error

type QueryGetMissionRequest

type QueryGetMissionRequest struct {
	MissionID uint64 `protobuf:"varint,1,opt,name=missionID,proto3" json:"missionID,omitempty"`
}

func (*QueryGetMissionRequest) Descriptor

func (*QueryGetMissionRequest) Descriptor() ([]byte, []int)

func (*QueryGetMissionRequest) GetMissionID

func (m *QueryGetMissionRequest) GetMissionID() uint64

func (*QueryGetMissionRequest) Marshal

func (m *QueryGetMissionRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetMissionRequest) MarshalTo

func (m *QueryGetMissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetMissionRequest) MarshalToSizedBuffer

func (m *QueryGetMissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetMissionRequest) ProtoMessage

func (*QueryGetMissionRequest) ProtoMessage()

func (*QueryGetMissionRequest) Reset

func (m *QueryGetMissionRequest) Reset()

func (*QueryGetMissionRequest) Size

func (m *QueryGetMissionRequest) Size() (n int)

func (*QueryGetMissionRequest) String

func (m *QueryGetMissionRequest) String() string

func (*QueryGetMissionRequest) Unmarshal

func (m *QueryGetMissionRequest) Unmarshal(dAtA []byte) error

func (*QueryGetMissionRequest) XXX_DiscardUnknown

func (m *QueryGetMissionRequest) XXX_DiscardUnknown()

func (*QueryGetMissionRequest) XXX_Marshal

func (m *QueryGetMissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetMissionRequest) XXX_Merge

func (m *QueryGetMissionRequest) XXX_Merge(src proto.Message)

func (*QueryGetMissionRequest) XXX_Size

func (m *QueryGetMissionRequest) XXX_Size() int

func (*QueryGetMissionRequest) XXX_Unmarshal

func (m *QueryGetMissionRequest) XXX_Unmarshal(b []byte) error

type QueryGetMissionResponse

type QueryGetMissionResponse struct {
	Mission Mission `protobuf:"bytes,1,opt,name=Mission,proto3" json:"Mission"`
}

func (*QueryGetMissionResponse) Descriptor

func (*QueryGetMissionResponse) Descriptor() ([]byte, []int)

func (*QueryGetMissionResponse) GetMission

func (m *QueryGetMissionResponse) GetMission() Mission

func (*QueryGetMissionResponse) Marshal

func (m *QueryGetMissionResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetMissionResponse) MarshalTo

func (m *QueryGetMissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetMissionResponse) MarshalToSizedBuffer

func (m *QueryGetMissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetMissionResponse) ProtoMessage

func (*QueryGetMissionResponse) ProtoMessage()

func (*QueryGetMissionResponse) Reset

func (m *QueryGetMissionResponse) Reset()

func (*QueryGetMissionResponse) Size

func (m *QueryGetMissionResponse) Size() (n int)

func (*QueryGetMissionResponse) String

func (m *QueryGetMissionResponse) String() string

func (*QueryGetMissionResponse) Unmarshal

func (m *QueryGetMissionResponse) Unmarshal(dAtA []byte) error

func (*QueryGetMissionResponse) XXX_DiscardUnknown

func (m *QueryGetMissionResponse) XXX_DiscardUnknown()

func (*QueryGetMissionResponse) XXX_Marshal

func (m *QueryGetMissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetMissionResponse) XXX_Merge

func (m *QueryGetMissionResponse) XXX_Merge(src proto.Message)

func (*QueryGetMissionResponse) XXX_Size

func (m *QueryGetMissionResponse) XXX_Size() int

func (*QueryGetMissionResponse) XXX_Unmarshal

func (m *QueryGetMissionResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a ClaimRecord by address.
	ClaimRecord(context.Context, *QueryGetClaimRecordRequest) (*QueryGetClaimRecordResponse, error)
	// Queries a list of ClaimRecord items.
	ClaimRecordAll(context.Context, *QueryAllClaimRecordRequest) (*QueryAllClaimRecordResponse, error)
	// Queries a Mission by ID.
	Mission(context.Context, *QueryGetMissionRequest) (*QueryGetMissionResponse, error)
	// Queries a list of Mission items.
	MissionAll(context.Context, *QueryAllMissionRequest) (*QueryAllMissionResponse, error)
	// Queries a AirdropSupply by index.
	AirdropSupply(context.Context, *QueryGetAirdropSupplyRequest) (*QueryGetAirdropSupplyResponse, error)
	// Queries a InitialClaim by index.
	InitialClaim(context.Context, *QueryGetInitialClaimRequest) (*QueryGetInitialClaimResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Claim

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AirdropSupply

func (*UnimplementedQueryServer) ClaimRecord

func (*UnimplementedQueryServer) ClaimRecordAll

func (*UnimplementedQueryServer) InitialClaim

func (*UnimplementedQueryServer) Mission

func (*UnimplementedQueryServer) MissionAll

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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