keeper

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

NewQuerier returns a new sdk.Keeper instance.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	key sdk.StoreKey,
	ak types.AccountKeeper,
	bk types.BankKeeper,
	dk types.DistrKeeper,
	paramSpace paramstypes.Subspace,
) Keeper

func (Keeper) DeductCreationFee

func (k Keeper) DeductCreationFee(ctx sdk.Context, owner sdk.AccAddress) error

DeductCreationFee performs fee handling for merkledrop creation

func (Keeper) DeleteMerkledropByID

func (k Keeper) DeleteMerkledropByID(ctx sdk.Context, id uint64) error

func (Keeper) GetAllIndexes

func (k Keeper) GetAllIndexes(ctx sdk.Context) []*types.Indexes

func (Keeper) GetAllIndexesByMerkledropID

func (k Keeper) GetAllIndexesByMerkledropID(ctx sdk.Context, id uint64) []uint64

func (Keeper) GetAllMerkleDrops

func (k Keeper) GetAllMerkleDrops(ctx sdk.Context) []types.Merkledrop

func (Keeper) GetLastMerkleDropId

func (k Keeper) GetLastMerkleDropId(ctx sdk.Context) uint64

func (Keeper) GetMerkleDropsIDByEndHeight

func (k Keeper) GetMerkleDropsIDByEndHeight(ctx sdk.Context, endHeight int64) []uint64

func (Keeper) GetParamSet

func (k Keeper) GetParamSet(ctx sdk.Context) types.Params

GetParamSet returns token params from the global param store

func (Keeper) IsClaimed

func (k Keeper) IsClaimed(ctx sdk.Context, mdId, index uint64) bool

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) Params

Params return the all the parameter in fantoken module

func (Keeper) SetClaimed

func (k Keeper) SetClaimed(ctx sdk.Context, mdId, index uint64)

func (Keeper) SetLastMerkleDropId

func (k Keeper) SetLastMerkleDropId(ctx sdk.Context, id uint64)

func (Keeper) SetMerkleDrop

func (k Keeper) SetMerkleDrop(ctx sdk.Context, merkledrop types.Merkledrop) error

func (Keeper) SetParamSet

func (k Keeper) SetParamSet(ctx sdk.Context, params types.Params)

SetParamSet sets token params to the global param store

func (Keeper) Withdraw

func (k Keeper) Withdraw(ctx sdk.Context, merkledropID uint64) error

Jump to

Keyboard shortcuts

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