Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetMintAccount(ctx sdk.Context) exported.ModuleAccountI
- func (k Keeper) GetMintPool(ctx sdk.Context) (mintPool types.MintPool)
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) IsEligibleAccount(ctx sdk.Context, acc sdk.AccAddress) bool
- func (k Keeper) LimitExceeded(ctx sdk.Context, amt sdk.Coins) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) SetMintAccount(ctx sdk.Context, moduleAcc exported.ModuleAccountI)
- func (k Keeper) SetMintPool(ctx sdk.Context, mintPool types.MintPool)
- func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) StakingTokenSupply(ctx sdk.Context) sdk.Int
- func (k Keeper) WithdrawCoinsToAccFromTreasury(ctx sdk.Context, receiver sdk.AccAddress, amt sdk.Coins) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
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, feeCollectorName string, ) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) AddCollectedFees ¶
AddCollectedFees implements an alias call to the underlying supply keeper's AddCollectedFees to be used in BeginBlocker.
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.
func (Keeper) GetMintAccount ¶
func (k Keeper) GetMintAccount(ctx sdk.Context) exported.ModuleAccountI
GetMintAccount returns the mint ModuleAccount
func (Keeper) GetMintPool ¶
GetMintPool returns the mint pool info
func (Keeper) IsEligibleAccount ¶
IsEligibleAccount checks if acc is eligible to mint
func (Keeper) LimitExceeded ¶
LimitExceeded checks if withdrawal amount exceeds the limit
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying supply keeper's MintCoins to be used in BeginBlocker.
func (Keeper) SetMintAccount ¶
func (k Keeper) SetMintAccount(ctx sdk.Context, moduleAcc exported.ModuleAccountI)
SetMintAccount sets the module account
func (Keeper) SetMintPool ¶
SetMintPool sets mint pool to the store
func (Keeper) StakingTokenSupply ¶
StakingTokenSupply implements an alias call to the underlying staking keeper's StakingTokenSupply to be used in BeginBlocker.
func (Keeper) WithdrawCoinsToAccFromTreasury ¶
func (k Keeper) WithdrawCoinsToAccFromTreasury(ctx sdk.Context, receiver sdk.AccAddress, amt sdk.Coins) error
WithdrawCoinsToAccFromTreasury withdraws coins from module to account