keeper

package
v0.0.0-...-e846f10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey sdk.StoreKey,
	ps paramtypes.Subspace,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	distrKeeper types.DistributionKeeper,
	veKeeper types.VeKeeper,
	feeCollectorName string,
) *Keeper

NewKeeper creates a new vesting Keeper instance

func (Keeper) AllocateAtGenesis

func (k Keeper) AllocateAtGenesis(ctx sdk.Context, genState types.GenesisState)

func (Keeper) ClaimVested

func (k Keeper) ClaimVested(ctx sdk.Context)

func (Keeper) DeleteAirdrop

func (k Keeper) DeleteAirdrop(ctx sdk.Context, acc sdk.AccAddress)

DeleteAirdrop deletes airdrop target

func (Keeper) GetAirdrop

func (k Keeper) GetAirdrop(ctx sdk.Context, acc sdk.AccAddress) types.Airdrop

GetAirdrop gets airdrop target

func (Keeper) GetAirdropCompleted

func (k Keeper) GetAirdropCompleted(ctx sdk.Context, acc sdk.AccAddress) types.Airdrop

GetAirdropCompleted gets completed airdrop target

func (Keeper) GetAirdropTotalAmount

func (k Keeper) GetAirdropTotalAmount(ctx sdk.Context) sdk.Int

GetAirdropTotalAmount gets airdrop total amount

func (Keeper) GetAllocationAddresses

func (k Keeper) GetAllocationAddresses(ctx sdk.Context) types.AllocationAddresses

GetAllocationAddresses gets allocation target addresses

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) IterateAirdrops

func (k Keeper) IterateAirdrops(ctx sdk.Context, handler func(airdrop types.Airdrop) (stop bool))

IterateAirdrops iterates airdrop targets

func (Keeper) IterateAirdropsCompleted

func (k Keeper) IterateAirdropsCompleted(ctx sdk.Context, handler func(airdrop types.Airdrop) (stop bool))

IterateAirdropsCompleted iterates completed airdrop targets

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SetAirdrop

func (k Keeper) SetAirdrop(ctx sdk.Context, acc sdk.AccAddress, airdrop types.Airdrop)

SetAirdrop sets airdrop target

func (Keeper) SetAirdropCompleted

func (k Keeper) SetAirdropCompleted(ctx sdk.Context, acc sdk.AccAddress, airdrop types.Airdrop)

SetAirdropCompleted sets completed airdrop target

func (Keeper) SetAirdropTotalAmount

func (k Keeper) SetAirdropTotalAmount(ctx sdk.Context, total sdk.Int)

SetAirdropTotalAmount sets airdrop total amount

func (Keeper) SetAllocationAddresses

func (k Keeper) SetAllocationAddresses(ctx sdk.Context, addresses types.AllocationAddresses)

SetAllocationAddresses sets allocation target addresses

func (Keeper) SetParams

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

SetParams set the params

Jump to

Keyboard shortcuts

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