keeper

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier returns a minting Querier handler.

func ValidateOriginalMintedPerBlock

func ValidateOriginalMintedPerBlock(originalMintedPerBlock sdk.Dec) error

ValidateMinterCustom validate minter

Types

type Keeper

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

Keeper of the mint store

func NewKeeper

func NewKeeper(
	cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace,
	sk types.StakingKeeper, supplyKeeper types.SupplyKeeper, feeCollectorName, farmModule string,
) Keeper

NewKeeper creates a new mint Keeper instance

func (Keeper) AddCollectedFees

func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error

AddCollectedFees implements an alias call to the underlying supply keeper's AddCollectedFees to be used in BeginBlocker.

func (Keeper) AddYieldFarming

func (k Keeper) AddYieldFarming(ctx sdk.Context, yieldAmt sdk.Coins) error

func (Keeper) BondedRatio

func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec

BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.

func (Keeper) GetMinter

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

get the minter

func (Keeper) GetMinterCustom

func (k Keeper) GetMinterCustom(ctx sdk.Context) (minter types.MinterCustom)

get the minter custom

func (Keeper) GetOriginalMintedPerBlock

func (k Keeper) GetOriginalMintedPerBlock() sdk.Dec

GetOriginalMintedPerBlock returns the init tokens per block.

func (Keeper) GetParams

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

GetParams returns the total set of minting parameters.

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 supply keeper's MintCoins to be used in BeginBlocker.

func (Keeper) SetMinter

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

set the minter

func (Keeper) SetMinterCustom

func (k Keeper) SetMinterCustom(ctx sdk.Context, minter types.MinterCustom)

set the minter custom

func (Keeper) SetOriginalMintedPerBlock

func (k Keeper) SetOriginalMintedPerBlock(originalMintedPerBlock sdk.Dec)

SetOriginalMintedPerBlock sets the init tokens per block.

func (Keeper) SetParams

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

SetParams sets the total set of minting parameters.

func (Keeper) StakingTokenSupply

func (k Keeper) StakingTokenSupply(ctx sdk.Context) sdk.Dec

StakingTokenSupply implements an alias call to the underlying staking keeper's StakingTokenSupply to be used in BeginBlocker.

func (Keeper) UpdateMinterCustom

func (k Keeper) UpdateMinterCustom(ctx sdk.Context, minter *types.MinterCustom, params types.Params)

Jump to

Keyboard shortcuts

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