keeper

package
v0.29.19 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 17 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,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	commitmentKeeper *commitmentkeeper.Keeper,
	authority string,
) *Keeper

func (Keeper) AirdropAll

func (Keeper) GetAirdrop

func (k Keeper) GetAirdrop(ctx sdk.Context, intent string) (val types.Airdrop, found bool)

GetAirdrop returns a airdrop from its index

func (Keeper) GetAllAirdrop

func (k Keeper) GetAllAirdrop(ctx sdk.Context) (list []types.Airdrop)

GetAllAirdrop returns all airdrop

func (Keeper) GetAllTimeBasedInflation

func (k Keeper) GetAllTimeBasedInflation(ctx sdk.Context) (list []types.TimeBasedInflation)

GetAllTimeBasedInflation returns all timeBasedInflation

func (Keeper) GetGenesisInflation

func (k Keeper) GetGenesisInflation(ctx sdk.Context) (val types.GenesisInflation, found bool)

GetGenesisInflation returns genesisInflation

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetTimeBasedInflation

func (k Keeper) GetTimeBasedInflation(
	ctx sdk.Context,
	startBlockHeight uint64,
	endBlockHeight uint64,
) (val types.TimeBasedInflation, found bool)

GetTimeBasedInflation returns a timeBasedInflation from its index

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveAirdrop

func (k Keeper) RemoveAirdrop(ctx sdk.Context, intent string)

RemoveAirdrop removes a airdrop from the store

func (Keeper) RemoveGenesisInflation

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

RemoveGenesisInflation removes genesisInflation from the store

func (Keeper) RemoveTimeBasedInflation

func (k Keeper) RemoveTimeBasedInflation(
	ctx sdk.Context,
	startBlockHeight uint64,
	endBlockHeight uint64,
)

RemoveTimeBasedInflation removes a timeBasedInflation from the store

func (Keeper) SetAirdrop

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

SetAirdrop set a specific airdrop in the store from its index

func (Keeper) SetGenesisInflation

func (k Keeper) SetGenesisInflation(ctx sdk.Context, genesisInflation types.GenesisInflation)

SetGenesisInflation set genesisInflation in the store

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetTimeBasedInflation

func (k Keeper) SetTimeBasedInflation(ctx sdk.Context, timeBasedInflation types.TimeBasedInflation)

SetTimeBasedInflation set a specific timeBasedInflation in the store from its index

Jump to

Keyboard shortcuts

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