keeper

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k MinterKeeper) sdk.Querier

func QueryInflation

func QueryInflation(ctx sdk.Context, k MinterKeeper) ([]byte, error)

func QueryParams

func QueryParams(ctx sdk.Context, k MinterKeeper) ([]byte, error)

Types

type MinterKeeper

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

func NewMinterKeeper

func NewMinterKeeper(
	cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace,
	sk sk.StakingKeeper, supplyKeeper supply.Keeper, feeCollectorName string,
) MinterKeeper

func (MinterKeeper) AddCollectedFees

func (k MinterKeeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coin) error

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

func (MinterKeeper) AllBonded

func (k MinterKeeper) AllBonded(ctx sdk.Context) sdk.Coin

func (MinterKeeper) BondedRatio

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

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

func (MinterKeeper) GetLatestMintedCoin

func (k MinterKeeper) GetLatestMintedCoin(ctx sdk.Context) sdk.Coin

func (MinterKeeper) GetMinter

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

get the minter

func (MinterKeeper) GetParams

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

GetParams returns the total set of minting parameters.

func (MinterKeeper) MintCoins

func (k MinterKeeper) 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 (MinterKeeper) SetLatestMintedCoin

func (k MinterKeeper) SetLatestMintedCoin(ctx sdk.Context, fees sdk.Coin)

func (MinterKeeper) SetMinter

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

set the minter

func (MinterKeeper) SetParams

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

SetParams sets the total set of minting parameters.

func (MinterKeeper) StakingTokenSupply

func (k MinterKeeper) StakingTokenSupply(ctx sdk.Context) sdk.Int

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

Jump to

Keyboard shortcuts

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