Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ClaimCoinsForAction(ctx sdk.Context, addr sdk.AccAddress, action int32) (sdk.Coin, error)
- func (k Keeper) ClaimRecord(goCtx context.Context, req *types.QueryClaimRecordRequest) (*types.QueryClaimRecordResponse, error)
- func (k Keeper) ClaimableForAction(goCtx context.Context, req *types.QueryClaimableForActionRequest) (*types.QueryClaimableForActionResponse, error)
- func (k Keeper) CreateModuleAccount(ctx sdk.Context, amount sdk.Coin)
- func (k Keeper) EndAirdrop(ctx sdk.Context) error
- func (k Keeper) GetClaimRecord(ctx sdk.Context, addr sdk.AccAddress) (types.ClaimRecord, error)
- func (k Keeper) GetClaimRecords(ctx sdk.Context) []types.ClaimRecord
- func (k Keeper) GetClaimableAmountForAction(ctx sdk.Context, addr sdk.AccAddress, action int32) (sdk.Coin, error)
- func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetModuleAccountBalance(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetUserTotalClaimable(ctx sdk.Context, addr sdk.AccAddress) (sdk.Coins, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ModuleAccountBalance(c context.Context, _ *types.QueryModuleAccountBalanceRequest) (*types.QueryModuleAccountBalanceResponse, error)
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetClaimRecord(ctx sdk.Context, claimRecord types.ClaimRecord) error
- func (k Keeper) SetClaimRecords(ctx sdk.Context, claimRecords []types.ClaimRecord) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) TotalClaimable(goCtx context.Context, req *types.QueryTotalClaimableRequest) (*types.QueryTotalClaimableResponse, error)
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper struct
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, sk types.StakingKeeper, dk distrkeeper.Keeper, ps paramtypes.Subspace) Keeper
NewKeeper returns keeper
func (Keeper) ClaimCoinsForAction ¶
func (k Keeper) ClaimCoinsForAction(ctx sdk.Context, addr sdk.AccAddress, action int32) (sdk.Coin, error)
ClaimCoinsForAction remove claimable amount entry and transfer it to user's account
func (Keeper) ClaimRecord ¶
func (k Keeper) ClaimRecord(goCtx context.Context, req *types.QueryClaimRecordRequest) (*types.QueryClaimRecordResponse, error)
func (Keeper) ClaimableForAction ¶
func (k Keeper) ClaimableForAction(goCtx context.Context, req *types.QueryClaimableForActionRequest) (*types.QueryClaimableForActionResponse, error)
func (Keeper) CreateModuleAccount ¶
CreateModuleAccount creates the module account with amount
func (Keeper) GetClaimRecord ¶
func (k Keeper) GetClaimRecord(ctx sdk.Context, addr sdk.AccAddress) (types.ClaimRecord, error)
GetClaimRecord returns the claim record for a specific address
func (Keeper) GetClaimRecords ¶
func (k Keeper) GetClaimRecords(ctx sdk.Context) []types.ClaimRecord
GetClaimRecords get claimables for genesis export
func (Keeper) GetClaimableAmountForAction ¶
func (k Keeper) GetClaimableAmountForAction(ctx sdk.Context, addr sdk.AccAddress, action int32) (sdk.Coin, error)
GetClaimableAmountForAction returns claimable amount for a specific action done by an address
func (Keeper) GetModuleAccountAddress ¶
func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
GetModuleAccountAddress gets module account address of claim module
func (Keeper) GetModuleAccountBalance ¶
GetModuleAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetUserTotalClaimable ¶
GetUserTotalClaimable returns total claimable amount of an address
func (Keeper) ModuleAccountBalance ¶
func (k Keeper) ModuleAccountBalance(c context.Context, _ *types.QueryModuleAccountBalanceRequest) (*types.QueryModuleAccountBalanceResponse, error)
ModuleAccountBalance returns claim module account balance.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the claim module.
func (Keeper) SetClaimRecord ¶
SetClaimRecord sets a claim record for an address in store
func (Keeper) SetClaimRecords ¶
SetClaimRecords set claimable amount from balances object
func (Keeper) TotalClaimable ¶
func (k Keeper) TotalClaimable(goCtx context.Context, req *types.QueryTotalClaimableRequest) (*types.QueryTotalClaimableResponse, error)