keeper

package
v0.0.0-...-3c679d0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

nolint:deadcode unused

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.

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, supplyKeeper types.SupplyKeeper, feeCollectorName string) Keeper

NewKeeper creates a new mint Keeper instance

func (Keeper) AddCollectedFees

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

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

func (Keeper) GetMinter

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

get the minter

func (Keeper) GetParams

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

GetParams returns the total set of minting parameters.

func (Keeper) GetUnfreezeAmountPerBlock

func (k Keeper) GetUnfreezeAmountPerBlock(ctx sdk.Context) int64

func (Keeper) GetUpdatedParams

func (k Keeper) GetUpdatedParams(ctx sdk.Context) (params types.UpdatedParams)

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) sdk.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.Minter)

set the minter

func (Keeper) SetParams

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

SetParams sets the total set of minting parameters.

func (Keeper) SetUnfreezeAmountPerBlock

func (k Keeper) SetUnfreezeAmountPerBlock(ctx sdk.Context, unfreezeAmount int64)

Jump to

Keyboard shortcuts

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