keeper

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: GPL-3.0 Imports: 9 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, coinsDestoryerName 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, sender sdk.AccAddress, amt sdk.Coins) sdk.Error

func (Keeper) BurnTokenSupply

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

已燃烧

func (Keeper) DestoryCoins

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

func (Keeper) DestoryTokenSupply

func (k Keeper) DestoryTokenSupply(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) GetConversionRates

func (k Keeper) GetConversionRates(ctx sdk.Context, denom string) (rates sdk.Coin)

func (Keeper) GetDenomSupply

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

______________________________________________________________________ GetDenomSupply get supply of spec denom

func (Keeper) GetLastDistributeTime added in v0.6.2

func (k Keeper) GetLastDistributeTime(ctx sdk.Context) (lasttime time.Time)

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) GetPermissions added in v0.6.2

func (k Keeper) GetPermissions(ctx sdk.Context, address sdk.AccAddress, cmd string) (Status int)

func (Keeper) GetSysAddress added in v0.6.2

func (k Keeper) GetSysAddress(ctx sdk.Context, cmd string) (address sdk.AccAddress)

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) MintingCoinsIssueAddress added in v0.6.2

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

将已挖等待分配分配到指定地址

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

func (k Keeper) SetConversionRates(ctx sdk.Context, denom string, rates sdk.Coin)

func (Keeper) SetLastDistributeTime added in v0.6.2

func (k Keeper) SetLastDistributeTime(ctx sdk.Context, lasttime time.Time)

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) SetPermissions added in v0.6.2

func (k Keeper) SetPermissions(ctx sdk.Context, address sdk.AccAddress, cmd string, Status int)

func (Keeper) SetSysAddress added in v0.6.2

func (k Keeper) SetSysAddress(ctx sdk.Context, cmd string, address sdk.AccAddress)

func (Keeper) SupplementCoins added in v0.6.3

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

Jump to

Keyboard shortcuts

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