Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) minttypes.MsgServer
- func NewQueryServerImpl(k Keeper) minttypes.QueryServer
- type Keeper
- func (k Keeper) AddCollectedFees(ctx context.Context, fees sdk.Coins) error
- func (k Keeper) BondedRatio(ctx context.Context) (math.LegacyDec, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *minttypes.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetMintPool(ctx context.Context) (minttypes.MintPool, error)
- func (k Keeper) GetMinter(ctx context.Context) (minttypes.Minter, error)
- func (k Keeper) GetParams(ctx context.Context) (minttypes.Params, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, ak minttypes.AccountKeeper, data *minttypes.GenesisState)
- func (k Keeper) IsAllowedMintDenom(ctx context.Context, coin sdk.Coin) (bool, error)
- func (k Keeper) IsAllowedMinter(ctx context.Context, addr string) (bool, error)
- func (k Keeper) IsEligibleAccount(ctx context.Context, addr string) (bool, error)
- func (k Keeper) LimitExceeded(ctx context.Context, amt sdk.Coins) (bool, error)
- func (k Keeper) Logger(ctx context.Context) log.Logger
- func (k Keeper) MintCoins(ctx context.Context, newCoins sdk.Coins) error
- func (k Keeper) MintNewCoins(ctx context.Context, amount sdk.Coins) error
- func (k Keeper) MintVolumeExceeded(ctx context.Context, amt sdk.Coins) (bool, error)
- func (k Keeper) SetMintPool(ctx context.Context, mintPool minttypes.MintPool) error
- func (k Keeper) SetMinter(ctx context.Context, minter minttypes.Minter) error
- func (k Keeper) SetParams(ctx context.Context, params minttypes.Params) error
- func (k Keeper) StakingTokenSupply(ctx context.Context) (math.Int, error)
- func (k Keeper) WithdrawCoinsFromTreasury(ctx context.Context, receiver sdk.AccAddress, amount sdk.Coins) error
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the mint MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶ added in v0.8.0
func NewQueryServerImpl(k Keeper) minttypes.QueryServer
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Params collections.Item[minttypes.Params] Minter collections.Item[minttypes.Minter] MintPool collections.Item[minttypes.MintPool] // contains filtered or unexported fields }
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService storetypes.KVStoreService, sk minttypes.StakingKeeper, ak minttypes.AccountKeeper, bk minttypes.BankKeeper, feeCollectorName string, authority 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) ExportGenesis ¶ added in v0.7.5
func (k Keeper) ExportGenesis(ctx sdk.Context) *minttypes.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func (Keeper) GetAuthority ¶ added in v0.7.5
GetAuthority returns the x/mint module's authority.
func (Keeper) GetMintPool ¶
GetMintPool returns the mint pool info
func (Keeper) InitGenesis ¶ added in v0.7.5
func (k Keeper) InitGenesis(ctx sdk.Context, ak minttypes.AccountKeeper, data *minttypes.GenesisState)
InitGenesis new mint genesis
func (Keeper) IsAllowedMintDenom ¶
IsAllowedMintDenom checks if denom exists in the allowed mint denoms list
func (Keeper) IsAllowedMinter ¶
IsAllowedMinter checks if address exists in the allowed minters list
func (Keeper) IsEligibleAccount ¶
IsEligibleAccount checks if addr exists in the eligible to withdraw account pool
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) MintNewCoins ¶
MintNewCoins issue new coins
func (Keeper) MintVolumeExceeded ¶
MintVolumeExceeded checks if minting volume exceeds the limit
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) WithdrawCoinsFromTreasury ¶
func (k Keeper) WithdrawCoinsFromTreasury(ctx context.Context, receiver sdk.AccAddress, amount sdk.Coins) error
WithdrawCoinsFromTreasury transfers coins from treasury pool to receiver account
type Migrator ¶ added in v0.7.5
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place state migrations.
func NewMigrator ¶ added in v0.7.5
NewMigrator returns Migrator instance for the state migration.
func (Migrator) Migrate1to2 ¶ added in v0.7.5
Migrate1to2 migrates the x/mint module state from the consensus version 1 to version 2. Specifically, it takes the parameters that are currently stored and managed by the x/params modules and stores them directly into the x/mint module state.