keeper

package
v3.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

Keeper of the mint store

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	stakingKeeper types.StakingKeeper,
	ak types.AccountKeeper,
	bankKeeper types.BankKeeper,
	feeCollectorName string,
) Keeper

NewKeeper creates a new mint Keeper instance.

func (Keeper) AnnualProvisions

AnnualProvisions returns minter.AnnualProvisions of the mint module.

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis returns a x/mint GenesisState for the given context.

func (Keeper) GenesisTime

GenesisTime returns the GensisTime of the mint module.

func (Keeper) GetGenesisTime

func (k Keeper) GetGenesisTime(ctx sdk.Context) (gt types.GenesisTime)

GetGenesisTime returns the genesis time.

func (Keeper) GetMinter

func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)

GetMinter returns the minter.

func (Keeper) InflationRate

InflationRate returns minter.InflationRate of the mint module.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState)

InitGenesis initializes the x/mint store with data from the genesis state.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) MintCoins

func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error

MintCoins implements an alias call to the underlying bank keeper's MintCoins.

func (Keeper) SendCoinsToFeeCollector

func (k Keeper) SendCoinsToFeeCollector(ctx sdk.Context, coins sdk.Coins) error

SendCoinsToFeeCollector sends newly minted coins from the x/mint module to the x/auth fee collector module account.

func (Keeper) SetGenesisTime

func (k Keeper) SetGenesisTime(ctx sdk.Context, gt types.GenesisTime)

SetGenesisTime sets the genesis time.

func (Keeper) SetMinter

func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)

SetMinter sets the minter.

func (Keeper) StakingTokenSupply

func (k Keeper) StakingTokenSupply(ctx sdk.Context) math.Int

StakingTokenSupply implements an alias call to the underlying staking keeper's StakingTokenSupply.

Jump to

Keyboard shortcuts

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