keeper

package
v0.0.0-...-607fb14 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 7 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.

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, coinsCollectorName, coinsDistributorName, coinsBurnerName string) Keeper

NewKeeper creates a new mint Keeper instance

func (Keeper) AddMintingCoins

func (k Keeper) AddMintingCoins(ctx sdk.Context, amt sdk.Coins) sdk.Error

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

func (Keeper) BondDenom

func (k Keeper) BondDenom(ctx sdk.Context) string

func (Keeper) BurnCoins

func (k Keeper) BurnCoins(ctx sdk.Context, fromAddr sdk.AccAddress, amt sdk.Coins) sdk.Error

func (Keeper) BurnTokenSupply

func (k Keeper) BurnTokenSupply(ctx sdk.Context) sdk.Coins

已销毁

func (Keeper) DistrTokenSupply

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

已挖等待分配

func (Keeper) GetBalance

func (k Keeper) GetBalance(ctx sdk.Context, acc sdk.AccAddress) sdk.Coins

func (Keeper) GetBonus

func (k Keeper) GetBonus(ctx sdk.Context, height string) (coin sdk.Coin)

func (Keeper) GetDenomSupply

func (k Keeper) GetDenomSupply(ctx sdk.Context, denom string) sdk.Int

______________________________________________________________________ GetDenomSupply get supply of spec denom

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) IssueCoins

func (k Keeper) IssueCoins(ctx sdk.Context, toAddress sdk.AccAddress, amt sdk.Coins) sdk.Error

IssueCoins

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) MintedTokenSupply

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

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

func (Keeper) MintingTokenSupply

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

已挖不可分配

func (Keeper) SetBonus

func (k Keeper) SetBonus(ctx sdk.Context, height int64, coin sdk.Coin)

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.

Jump to

Keyboard shortcuts

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