Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckAirdropSupply(airdropSupply sdk.Coin, missionMap map[uint64]Mission, ...) error
- func ClaimRecordKey(index string) []byte
- func GetMissionIDBytes(id uint64) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type ClaimRecord
- func (m ClaimRecord) ClaimableFromMission(mission Mission) sdkmath.Int
- func (*ClaimRecord) Descriptor() ([]byte, []int)
- func (m *ClaimRecord) GetAddress() string
- func (m *ClaimRecord) GetClaimedMissions() []uint64
- func (m *ClaimRecord) GetCompletedMissions() []uint64
- func (m ClaimRecord) IsMissionClaimed(missionID uint64) bool
- func (m ClaimRecord) IsMissionCompleted(missionID uint64) bool
- func (m *ClaimRecord) Marshal() (dAtA []byte, err error)
- func (m *ClaimRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimRecord) ProtoMessage()
- func (m *ClaimRecord) Reset()
- func (m *ClaimRecord) Size() (n int)
- func (m *ClaimRecord) String() string
- func (m *ClaimRecord) Unmarshal(dAtA []byte) error
- func (m ClaimRecord) Validate() error
- func (m *ClaimRecord) XXX_DiscardUnknown()
- func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimRecord) XXX_Merge(src proto.Message)
- func (m *ClaimRecord) XXX_Size() int
- func (m *ClaimRecord) XXX_Unmarshal(b []byte) error
- type DecayInformation
- func (m DecayInformation) ApplyDecayFactor(coins sdk.Coins, currentTime time.Time) sdk.Coins
- func (*DecayInformation) Descriptor() ([]byte, []int)
- func (m *DecayInformation) GetDecayEnd() time.Time
- func (m *DecayInformation) GetDecayStart() time.Time
- func (m *DecayInformation) GetEnabled() bool
- func (m *DecayInformation) Marshal() (dAtA []byte, err error)
- func (m *DecayInformation) MarshalTo(dAtA []byte) (int, error)
- func (m *DecayInformation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DecayInformation) ProtoMessage()
- func (m *DecayInformation) Reset()
- func (m *DecayInformation) Size() (n int)
- func (m *DecayInformation) String() string
- func (m *DecayInformation) Unmarshal(dAtA []byte) error
- func (m DecayInformation) Validate() error
- func (m *DecayInformation) XXX_DiscardUnknown()
- func (m *DecayInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecayInformation) XXX_Merge(src proto.Message)
- func (m *DecayInformation) XXX_Size() int
- func (m *DecayInformation) XXX_Unmarshal(b []byte) error
- type DistrKeeper
- type EventMissionClaimed
- func (*EventMissionClaimed) Descriptor() ([]byte, []int)
- func (m *EventMissionClaimed) GetClaimer() string
- func (m *EventMissionClaimed) GetMissionID() uint64
- func (m *EventMissionClaimed) Marshal() (dAtA []byte, err error)
- func (m *EventMissionClaimed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMissionClaimed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMissionClaimed) ProtoMessage()
- func (m *EventMissionClaimed) Reset()
- func (m *EventMissionClaimed) Size() (n int)
- func (m *EventMissionClaimed) String() string
- func (m *EventMissionClaimed) Unmarshal(dAtA []byte) error
- func (m *EventMissionClaimed) XXX_DiscardUnknown()
- func (m *EventMissionClaimed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMissionClaimed) XXX_Merge(src proto.Message)
- func (m *EventMissionClaimed) XXX_Size() int
- func (m *EventMissionClaimed) XXX_Unmarshal(b []byte) error
- type EventMissionCompleted
- func (*EventMissionCompleted) Descriptor() ([]byte, []int)
- func (m *EventMissionCompleted) GetAddress() string
- func (m *EventMissionCompleted) GetMissionID() uint64
- func (m *EventMissionCompleted) Marshal() (dAtA []byte, err error)
- func (m *EventMissionCompleted) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMissionCompleted) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMissionCompleted) ProtoMessage()
- func (m *EventMissionCompleted) Reset()
- func (m *EventMissionCompleted) Size() (n int)
- func (m *EventMissionCompleted) String() string
- func (m *EventMissionCompleted) Unmarshal(dAtA []byte) error
- func (m *EventMissionCompleted) XXX_DiscardUnknown()
- func (m *EventMissionCompleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMissionCompleted) XXX_Merge(src proto.Message)
- func (m *EventMissionCompleted) XXX_Size() int
- func (m *EventMissionCompleted) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAirdropSupply() types.Coin
- func (m *GenesisState) GetClaimRecords() []ClaimRecord
- func (m *GenesisState) GetInitialClaim() InitialClaim
- func (m *GenesisState) GetMissions() []Mission
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type InitialClaim
- func (*InitialClaim) Descriptor() ([]byte, []int)
- func (m *InitialClaim) GetEnabled() bool
- func (m *InitialClaim) GetMissionID() uint64
- func (m *InitialClaim) Marshal() (dAtA []byte, err error)
- func (m *InitialClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *InitialClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InitialClaim) ProtoMessage()
- func (m *InitialClaim) Reset()
- func (m *InitialClaim) Size() (n int)
- func (m *InitialClaim) String() string
- func (m *InitialClaim) Unmarshal(dAtA []byte) error
- func (m *InitialClaim) XXX_DiscardUnknown()
- func (m *InitialClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitialClaim) XXX_Merge(src proto.Message)
- func (m *InitialClaim) XXX_Size() int
- func (m *InitialClaim) XXX_Unmarshal(b []byte) error
- type Mission
- func (*Mission) Descriptor() ([]byte, []int)
- func (m *Mission) GetDescription() string
- func (m *Mission) GetMissionID() uint64
- func (m *Mission) Marshal() (dAtA []byte, err error)
- func (m *Mission) MarshalTo(dAtA []byte) (int, error)
- func (m *Mission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Mission) ProtoMessage()
- func (m *Mission) Reset()
- func (m *Mission) Size() (n int)
- func (m *Mission) String() string
- func (m *Mission) Unmarshal(dAtA []byte) error
- func (m Mission) Validate() error
- func (m *Mission) XXX_DiscardUnknown()
- func (m *Mission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mission) XXX_Merge(src proto.Message)
- func (m *Mission) XXX_Size() int
- func (m *Mission) XXX_Unmarshal(b []byte) error
- type MsgClaim
- func (*MsgClaim) Descriptor() ([]byte, []int)
- func (m *MsgClaim) GetClaimer() string
- func (m *MsgClaim) GetMissionID() uint64
- func (msg *MsgClaim) GetSignBytes() []byte
- func (msg *MsgClaim) GetSigners() []sdk.AccAddress
- func (m *MsgClaim) Marshal() (dAtA []byte, err error)
- func (m *MsgClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaim) ProtoMessage()
- func (m *MsgClaim) Reset()
- func (msg *MsgClaim) Route() string
- func (m *MsgClaim) Size() (n int)
- func (m *MsgClaim) String() string
- func (msg *MsgClaim) Type() string
- func (m *MsgClaim) Unmarshal(dAtA []byte) error
- func (msg *MsgClaim) ValidateBasic() error
- func (m *MsgClaim) XXX_DiscardUnknown()
- func (m *MsgClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaim) XXX_Merge(src proto.Message)
- func (m *MsgClaim) XXX_Size() int
- func (m *MsgClaim) XXX_Unmarshal(b []byte) error
- type MsgClaimResponse
- func (*MsgClaimResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimResponse) ProtoMessage()
- func (m *MsgClaimResponse) Reset()
- func (m *MsgClaimResponse) Size() (n int)
- func (m *MsgClaimResponse) String() string
- func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimResponse) XXX_DiscardUnknown()
- func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimResponse) XXX_Size() int
- func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAirdropStart() time.Time
- func (m *Params) GetDecayInformation() DecayInformation
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllClaimRecordRequest
- func (*QueryAllClaimRecordRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllClaimRecordRequest) GetPagination() *query.PageRequest
- func (m *QueryAllClaimRecordRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllClaimRecordRequest) ProtoMessage()
- func (m *QueryAllClaimRecordRequest) Reset()
- func (m *QueryAllClaimRecordRequest) Size() (n int)
- func (m *QueryAllClaimRecordRequest) String() string
- func (m *QueryAllClaimRecordRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllClaimRecordRequest) XXX_DiscardUnknown()
- func (m *QueryAllClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllClaimRecordRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllClaimRecordRequest) XXX_Size() int
- func (m *QueryAllClaimRecordRequest) XXX_Unmarshal(b []byte) error
- type QueryAllClaimRecordResponse
- func (*QueryAllClaimRecordResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllClaimRecordResponse) GetClaimRecord() []ClaimRecord
- func (m *QueryAllClaimRecordResponse) GetPagination() *query.PageResponse
- func (m *QueryAllClaimRecordResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllClaimRecordResponse) ProtoMessage()
- func (m *QueryAllClaimRecordResponse) Reset()
- func (m *QueryAllClaimRecordResponse) Size() (n int)
- func (m *QueryAllClaimRecordResponse) String() string
- func (m *QueryAllClaimRecordResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllClaimRecordResponse) XXX_DiscardUnknown()
- func (m *QueryAllClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllClaimRecordResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllClaimRecordResponse) XXX_Size() int
- func (m *QueryAllClaimRecordResponse) XXX_Unmarshal(b []byte) error
- type QueryAllMissionRequest
- func (*QueryAllMissionRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllMissionRequest) GetPagination() *query.PageRequest
- func (m *QueryAllMissionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMissionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMissionRequest) ProtoMessage()
- func (m *QueryAllMissionRequest) Reset()
- func (m *QueryAllMissionRequest) Size() (n int)
- func (m *QueryAllMissionRequest) String() string
- func (m *QueryAllMissionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllMissionRequest) XXX_DiscardUnknown()
- func (m *QueryAllMissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMissionRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllMissionRequest) XXX_Size() int
- func (m *QueryAllMissionRequest) XXX_Unmarshal(b []byte) error
- type QueryAllMissionResponse
- func (*QueryAllMissionResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllMissionResponse) GetMission() []Mission
- func (m *QueryAllMissionResponse) GetPagination() *query.PageResponse
- func (m *QueryAllMissionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMissionResponse) ProtoMessage()
- func (m *QueryAllMissionResponse) Reset()
- func (m *QueryAllMissionResponse) Size() (n int)
- func (m *QueryAllMissionResponse) String() string
- func (m *QueryAllMissionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllMissionResponse) XXX_DiscardUnknown()
- func (m *QueryAllMissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMissionResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllMissionResponse) XXX_Size() int
- func (m *QueryAllMissionResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetAirdropSupplyRequest
- func (*QueryGetAirdropSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetAirdropSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAirdropSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAirdropSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAirdropSupplyRequest) ProtoMessage()
- func (m *QueryGetAirdropSupplyRequest) Reset()
- func (m *QueryGetAirdropSupplyRequest) Size() (n int)
- func (m *QueryGetAirdropSupplyRequest) String() string
- func (m *QueryGetAirdropSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetAirdropSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryGetAirdropSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAirdropSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetAirdropSupplyRequest) XXX_Size() int
- func (m *QueryGetAirdropSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryGetAirdropSupplyResponse
- func (*QueryGetAirdropSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetAirdropSupplyResponse) GetAirdropSupply() types.Coin
- func (m *QueryGetAirdropSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAirdropSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAirdropSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAirdropSupplyResponse) ProtoMessage()
- func (m *QueryGetAirdropSupplyResponse) Reset()
- func (m *QueryGetAirdropSupplyResponse) Size() (n int)
- func (m *QueryGetAirdropSupplyResponse) String() string
- func (m *QueryGetAirdropSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetAirdropSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryGetAirdropSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAirdropSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetAirdropSupplyResponse) XXX_Size() int
- func (m *QueryGetAirdropSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryGetClaimRecordRequest
- func (*QueryGetClaimRecordRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetClaimRecordRequest) GetAddress() string
- func (m *QueryGetClaimRecordRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetClaimRecordRequest) ProtoMessage()
- func (m *QueryGetClaimRecordRequest) Reset()
- func (m *QueryGetClaimRecordRequest) Size() (n int)
- func (m *QueryGetClaimRecordRequest) String() string
- func (m *QueryGetClaimRecordRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetClaimRecordRequest) XXX_DiscardUnknown()
- func (m *QueryGetClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetClaimRecordRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetClaimRecordRequest) XXX_Size() int
- func (m *QueryGetClaimRecordRequest) XXX_Unmarshal(b []byte) error
- type QueryGetClaimRecordResponse
- func (*QueryGetClaimRecordResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetClaimRecordResponse) GetClaimRecord() ClaimRecord
- func (m *QueryGetClaimRecordResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetClaimRecordResponse) ProtoMessage()
- func (m *QueryGetClaimRecordResponse) Reset()
- func (m *QueryGetClaimRecordResponse) Size() (n int)
- func (m *QueryGetClaimRecordResponse) String() string
- func (m *QueryGetClaimRecordResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetClaimRecordResponse) XXX_DiscardUnknown()
- func (m *QueryGetClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetClaimRecordResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetClaimRecordResponse) XXX_Size() int
- func (m *QueryGetClaimRecordResponse) XXX_Unmarshal(b []byte) error
- type QueryGetInitialClaimRequest
- func (*QueryGetInitialClaimRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetInitialClaimRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetInitialClaimRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetInitialClaimRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetInitialClaimRequest) ProtoMessage()
- func (m *QueryGetInitialClaimRequest) Reset()
- func (m *QueryGetInitialClaimRequest) Size() (n int)
- func (m *QueryGetInitialClaimRequest) String() string
- func (m *QueryGetInitialClaimRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetInitialClaimRequest) XXX_DiscardUnknown()
- func (m *QueryGetInitialClaimRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetInitialClaimRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetInitialClaimRequest) XXX_Size() int
- func (m *QueryGetInitialClaimRequest) XXX_Unmarshal(b []byte) error
- type QueryGetInitialClaimResponse
- func (*QueryGetInitialClaimResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetInitialClaimResponse) GetInitialClaim() InitialClaim
- func (m *QueryGetInitialClaimResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetInitialClaimResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetInitialClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetInitialClaimResponse) ProtoMessage()
- func (m *QueryGetInitialClaimResponse) Reset()
- func (m *QueryGetInitialClaimResponse) Size() (n int)
- func (m *QueryGetInitialClaimResponse) String() string
- func (m *QueryGetInitialClaimResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetInitialClaimResponse) XXX_DiscardUnknown()
- func (m *QueryGetInitialClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetInitialClaimResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetInitialClaimResponse) XXX_Size() int
- func (m *QueryGetInitialClaimResponse) XXX_Unmarshal(b []byte) error
- type QueryGetMissionRequest
- func (*QueryGetMissionRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetMissionRequest) GetMissionID() uint64
- func (m *QueryGetMissionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetMissionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetMissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetMissionRequest) ProtoMessage()
- func (m *QueryGetMissionRequest) Reset()
- func (m *QueryGetMissionRequest) Size() (n int)
- func (m *QueryGetMissionRequest) String() string
- func (m *QueryGetMissionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetMissionRequest) XXX_DiscardUnknown()
- func (m *QueryGetMissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetMissionRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetMissionRequest) XXX_Size() int
- func (m *QueryGetMissionRequest) XXX_Unmarshal(b []byte) error
- type QueryGetMissionResponse
- func (*QueryGetMissionResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetMissionResponse) GetMission() Mission
- func (m *QueryGetMissionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetMissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetMissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetMissionResponse) ProtoMessage()
- func (m *QueryGetMissionResponse) Reset()
- func (m *QueryGetMissionResponse) Size() (n int)
- func (m *QueryGetMissionResponse) String() string
- func (m *QueryGetMissionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetMissionResponse) XXX_DiscardUnknown()
- func (m *QueryGetMissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetMissionResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetMissionResponse) XXX_Size() int
- func (m *QueryGetMissionResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AirdropSupply(ctx context.Context, req *QueryGetAirdropSupplyRequest) (*QueryGetAirdropSupplyResponse, error)
- func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryGetClaimRecordRequest) (*QueryGetClaimRecordResponse, error)
- func (*UnimplementedQueryServer) ClaimRecordAll(ctx context.Context, req *QueryAllClaimRecordRequest) (*QueryAllClaimRecordResponse, error)
- func (*UnimplementedQueryServer) InitialClaim(ctx context.Context, req *QueryGetInitialClaimRequest) (*QueryGetInitialClaimResponse, error)
- func (*UnimplementedQueryServer) Mission(ctx context.Context, req *QueryGetMissionRequest) (*QueryGetMissionResponse, error)
- func (*UnimplementedQueryServer) MissionAll(ctx context.Context, req *QueryAllMissionRequest) (*QueryAllMissionResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
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" )
const (
AirdropSupplyKey = "AirdropSupply-value-"
)
const (
// ClaimRecordKeyPrefix is the prefix to retrieve all ClaimRecord
ClaimRecordKeyPrefix = "ClaimRecord/value/"
)
const (
InitialClaimKey = "InitialClaim-value-"
)
const (
MissionKey = "Mission-value-"
)
const TypeMsgClaim = "claim"
Variables ¶
var ( ErrInvalidLengthClaimRecord = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClaimRecord = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClaimRecord = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
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
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthInitialClaim = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInitialClaim = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInitialClaim = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMission = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMission = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMission = fmt.Errorf("proto: unexpected end of group") )
var ( KeyDecayInformation = []byte("DecayInformation") KeyAirdropStart = []byte("AirdropStart") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func CheckAirdropSupply ¶
func ClaimRecordKey ¶
ClaimRecordKey returns the store key to retrieve a ClaimRecord from the index fields
func GetMissionIDBytes ¶
GetMissionIDBytes returns the byte representation of the ID
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 RegisterQueryHandler ¶
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) 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 ¶
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) 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) 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) 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) GetDescription ¶
func (*Mission) GetMissionID ¶
func (*Mission) MarshalToSizedBuffer ¶
func (*Mission) ProtoMessage ¶
func (*Mission) ProtoMessage()
func (*Mission) XXX_DiscardUnknown ¶
func (m *Mission) XXX_DiscardUnknown()
func (*Mission) XXX_Marshal ¶
func (*Mission) XXX_Unmarshal ¶
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 (*MsgClaim) Descriptor ¶
func (*MsgClaim) GetClaimer ¶
func (*MsgClaim) GetMissionID ¶
func (*MsgClaim) GetSignBytes ¶
func (*MsgClaim) GetSigners ¶
func (msg *MsgClaim) GetSigners() []sdk.AccAddress
func (*MsgClaim) MarshalToSizedBuffer ¶
func (*MsgClaim) ProtoMessage ¶
func (*MsgClaim) ProtoMessage()
func (*MsgClaim) ValidateBasic ¶
func (*MsgClaim) XXX_DiscardUnknown ¶
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶
func (*MsgClaim) XXX_Unmarshal ¶
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) 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 NewParams ¶
func NewParams(di DecayInformation, airdropStart time.Time) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetAirdropStart ¶
func (*Params) GetDecayInformation ¶
func (m *Params) GetDecayInformation() DecayInformation
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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 (m *QueryGetAirdropSupplyRequest) String() 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 (m *QueryGetAirdropSupplyResponse) String() 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 (m *QueryGetInitialClaimResponse) String() 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 ¶
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AirdropSupply ¶
func (*UnimplementedQueryServer) AirdropSupply(ctx context.Context, req *QueryGetAirdropSupplyRequest) (*QueryGetAirdropSupplyResponse, error)
func (*UnimplementedQueryServer) ClaimRecord ¶
func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryGetClaimRecordRequest) (*QueryGetClaimRecordResponse, error)
func (*UnimplementedQueryServer) ClaimRecordAll ¶
func (*UnimplementedQueryServer) ClaimRecordAll(ctx context.Context, req *QueryAllClaimRecordRequest) (*QueryAllClaimRecordResponse, error)
func (*UnimplementedQueryServer) InitialClaim ¶
func (*UnimplementedQueryServer) InitialClaim(ctx context.Context, req *QueryGetInitialClaimRequest) (*QueryGetInitialClaimResponse, error)
func (*UnimplementedQueryServer) Mission ¶
func (*UnimplementedQueryServer) Mission(ctx context.Context, req *QueryGetMissionRequest) (*QueryGetMissionResponse, error)
func (*UnimplementedQueryServer) MissionAll ¶
func (*UnimplementedQueryServer) MissionAll(ctx context.Context, req *QueryAllMissionRequest) (*QueryAllMissionResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)