cosmos-sdk: github.com/cosmos/cosmos-sdk/x/mint/keeper Index | Files

package keeper

import "github.com/cosmos/cosmos-sdk/x/mint/keeper"

Index

Package Files

grpc_query.go keeper.go querier.go

func NewQuerier Uses

func NewQuerier(k Keeper, legacyQuerierCdc codec.JSONMarshaler) sdk.Querier

NewQuerier returns a minting Querier handler.

type Keeper Uses

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

Keeper of the mint store

func NewKeeper Uses

func NewKeeper(
    cdc codec.BinaryMarshaler, key sdk.StoreKey, paramSpace paramtypes.Subspace,
    sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper,
    feeCollectorName string,
) Keeper

NewKeeper creates a new mint Keeper instance

func (Keeper) AddCollectedFees Uses

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) AnnualProvisions Uses

func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error)

AnnualProvisions returns minter.AnnualProvisions of the mint module.

func (Keeper) BondedRatio Uses

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 Uses

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

get the minter

func (Keeper) GetParams Uses

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

GetParams returns the total set of minting parameters.

func (Keeper) Inflation Uses

func (k Keeper) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, error)

Inflation returns minter.Inflation of the mint module.

func (Keeper) Logger Uses

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

Logger returns a module-specific logger.

func (Keeper) MintCoins Uses

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) Params Uses

func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)

Params returns params of the mint module.

func (Keeper) SetMinter Uses

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

set the minter

func (Keeper) SetParams Uses

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

SetParams sets the total set of minting parameters.

func (Keeper) StakingTokenSupply Uses

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

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

Package keeper imports 9 packages (graph) and is imported by 2 packages. Updated 2020-07-26. Refresh now. Tools for package owners.