Versions in this module Expand all Collapse all v0 v0.0.2 Aug 28, 2023 v0.0.1 Jul 5, 2023 Changes in this version + func AirdropSupplyInvariant(k Keeper) sdk.Invariant + func AllInvariants(k Keeper) sdk.Invariant + func ClaimRecordInvariant(k Keeper) sdk.Invariant + func ClaimRecordMissionInvariant(k Keeper) sdk.Invariant + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ...) *Keeper + func (k Keeper) AirdropStart(ctx sdk.Context) (airdropStart time.Time) + func (k Keeper) AirdropSupply(c context.Context, req *types.QueryGetAirdropSupplyRequest) (*types.QueryGetAirdropSupplyResponse, error) + func (k Keeper) ClaimMission(ctx sdk.Context, claimRecord types.ClaimRecord, missionID uint64) (claimed math.Int, err error) + func (k Keeper) ClaimRecord(c context.Context, req *types.QueryGetClaimRecordRequest) (*types.QueryGetClaimRecordResponse, error) + func (k Keeper) ClaimRecordAll(c context.Context, req *types.QueryAllClaimRecordRequest) (*types.QueryAllClaimRecordResponse, error) + func (k Keeper) CompleteMission(ctx sdk.Context, missionID uint64, address string) (claimed math.Int, err error) + func (k Keeper) DecayInformation(ctx sdk.Context) (totalSupplyRange types.DecayInformation) + func (k Keeper) EndAirdrop(ctx sdk.Context) error + func (k Keeper) GetAirdropSupply(ctx sdk.Context) (val sdk.Coin, found bool) + func (k Keeper) GetAllClaimRecord(ctx sdk.Context) (list []types.ClaimRecord) + func (k Keeper) GetAllMission(ctx sdk.Context) (list []types.Mission) + func (k Keeper) GetClaimRecord(ctx sdk.Context, address string) (val types.ClaimRecord, found bool) + func (k Keeper) GetInitialClaim(ctx sdk.Context) (val types.InitialClaim, found bool) + func (k Keeper) GetMission(ctx sdk.Context, id uint64) (val types.Mission, found bool) + func (k Keeper) GetParams(ctx sdk.Context) types.Params + func (k Keeper) InitialClaim(c context.Context, req *types.QueryGetInitialClaimRequest) (*types.QueryGetInitialClaimResponse, error) + func (k Keeper) InitializeAirdropSupply(ctx sdk.Context, airdropSupply sdk.Coin) error + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) Mission(c context.Context, req *types.QueryGetMissionRequest) (*types.QueryGetMissionResponse, error) + func (k Keeper) MissionAll(c context.Context, req *types.QueryAllMissionRequest) (*types.QueryAllMissionResponse, error) + func (k Keeper) NewMissionDelegationHooks(missionID uint64) MissionDelegationHooks + func (k Keeper) NewMissionVoteHooks(missionID uint64) MissionVoteHooks + func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) RemoveAirdropSupply(ctx sdk.Context) + func (k Keeper) RemoveClaimRecord(ctx sdk.Context, address string) + func (k Keeper) RemoveInitialClaim(ctx sdk.Context) + func (k Keeper) RemoveMission(ctx sdk.Context, id uint64) + func (k Keeper) SetAirdropSupply(ctx sdk.Context, airdropSupply sdk.Coin) + func (k Keeper) SetClaimRecord(ctx sdk.Context, claimRecord types.ClaimRecord) + func (k Keeper) SetInitialClaim(ctx sdk.Context, initialClaim types.InitialClaim) + func (k Keeper) SetMission(ctx sdk.Context, mission types.Mission) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + type MissionDelegationHooks struct + func (h MissionDelegationHooks) AfterDelegationModified(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) AfterUnbondingInitiated(sdk.Context, uint64) error + func (h MissionDelegationHooks) AfterValidatorBeginUnbonding(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) AfterValidatorBonded(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) AfterValidatorCreated(_ sdk.Context, _ sdk.ValAddress) error + func (h MissionDelegationHooks) AfterValidatorRemoved(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) BeforeDelegationSharesModified(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h MissionDelegationHooks) BeforeValidatorModified(_ sdk.Context, _ sdk.ValAddress) error + func (h MissionDelegationHooks) BeforeValidatorSlashed(_ sdk.Context, _ sdk.ValAddress, _ sdk.Dec) error + type MissionVoteHooks struct + func (h MissionVoteHooks) AfterProposalDeposit(_ sdk.Context, _ uint64, _ sdk.AccAddress) + func (h MissionVoteHooks) AfterProposalFailedMinDeposit(_ sdk.Context, _ uint64) + func (h MissionVoteHooks) AfterProposalSubmission(_ sdk.Context, _ uint64) + func (h MissionVoteHooks) AfterProposalVote(ctx sdk.Context, _ uint64, voterAddr sdk.AccAddress) + func (h MissionVoteHooks) AfterProposalVotingPeriodEnded(_ sdk.Context, _ uint64)