Documentation ¶
Index ¶
- func ExportGenesis(ctx sdk.Context, keeper Keeper) *minttypes.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, data *minttypes.GenesisState)
- func NewMsgServerImpl(keeper Keeper) minttypes.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) AnnualProvisions(c context.Context, _ *minttypes.QueryAnnualProvisionsRequest) (*minttypes.QueryAnnualProvisionsResponse, error)
- func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) CurrentMintVolume(c context.Context, _ *minttypes.QueryCurrentMintVolumeRequest) (*minttypes.QueryCurrentMintVolumeResponse, error)
- func (k Keeper) GetMintAccount(ctx sdk.Context) authtypes.ModuleAccountI
- func (k Keeper) GetMintModuleCoinsAccount(ctx sdk.Context) (account sdk.AccAddress)
- func (k Keeper) GetMintPool(ctx sdk.Context) (mintPool minttypes.MintPool)
- func (k Keeper) GetMinter(ctx sdk.Context) (minter minttypes.Minter)
- func (k Keeper) GetParams(ctx sdk.Context) (params minttypes.Params)
- func (k Keeper) Inflation(c context.Context, _ *minttypes.QueryInflationRequest) (*minttypes.QueryInflationResponse, error)
- func (k Keeper) IntegrationAddress(c context.Context, req *minttypes.QueryIntegrationAddressRequest) (*minttypes.QueryIntegrationAddressResponse, error)
- func (k Keeper) IsAllowedMintDenom(ctx sdk.Context, coin sdk.Coin) bool
- func (k Keeper) IsAllowedMinter(ctx sdk.Context, addr string) bool
- func (k Keeper) IsEligibleAccount(ctx sdk.Context, addr string) 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) MintNewCoins(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) MintVolumeExceeded(ctx sdk.Context, amt sdk.Coins) bool
- func (k Keeper) Params(c context.Context, _ *minttypes.QueryParamsRequest) (*minttypes.QueryParamsResponse, error)
- func (k Keeper) SetMintAccount(ctx sdk.Context, moduleAcc authtypes.ModuleAccountI)
- func (k Keeper) SetMintModuleCoinsAccount(ctx sdk.Context, account sdk.AccAddress)
- func (k Keeper) SetMintPool(ctx sdk.Context, mintPool minttypes.MintPool)
- func (k Keeper) SetMinter(ctx sdk.Context, minter minttypes.Minter)
- func (k Keeper) SetParams(ctx sdk.Context, params minttypes.Params)
- func (k Keeper) StakingTokenSupply(ctx sdk.Context) sdk.Int
- func (k Keeper) TreasuryPool(c context.Context, _ *minttypes.QueryTreasuryPoolRequest) (*minttypes.QueryTreasuryPoolResponse, error)
- func (k Keeper) WithdrawCoinsFromTreasury(ctx sdk.Context, receiver sdk.AccAddress, amount sdk.Coins) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) *minttypes.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data *minttypes.GenesisState)
InitGenesis new mint genesis
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the mint MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) 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.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, sk minttypes.StakingKeeper, ak minttypes.AccountKeeper, bk minttypes.BankKeeper, 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) AnnualProvisions ¶
func (k Keeper) AnnualProvisions( c context.Context, _ *minttypes.QueryAnnualProvisionsRequest, ) (*minttypes.QueryAnnualProvisionsResponse, error)
AnnualProvisions returns minter.AnnualProvisions of the mint module.
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.
func (Keeper) CurrentMintVolume ¶
func (k Keeper) CurrentMintVolume( c context.Context, _ *minttypes.QueryCurrentMintVolumeRequest, ) (*minttypes.QueryCurrentMintVolumeResponse, error)
CurrentMintVolume returns current mint volume
func (Keeper) GetMintAccount ¶
func (k Keeper) GetMintAccount(ctx sdk.Context) authtypes.ModuleAccountI
GetMintAccount returns the mint ModuleAccount
func (Keeper) GetMintModuleCoinsAccount ¶
func (k Keeper) GetMintModuleCoinsAccount(ctx sdk.Context) (account sdk.AccAddress)
get the module coins account
func (Keeper) GetMintPool ¶
GetMintPool returns the mint pool info
func (Keeper) Inflation ¶
func (k Keeper) Inflation( c context.Context, _ *minttypes.QueryInflationRequest, ) (*minttypes.QueryInflationResponse, error)
Inflation returns minter.Inflation of the mint module.
func (Keeper) IntegrationAddress ¶
func (k Keeper) IntegrationAddress( c context.Context, req *minttypes.QueryIntegrationAddressRequest, ) (*minttypes.QueryIntegrationAddressResponse, error)
IntegrationAddress returns ethereum integration address
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) Params ¶
func (k Keeper) Params(c context.Context, _ *minttypes.QueryParamsRequest) (*minttypes.QueryParamsResponse, error)
Params returns params of the mint module.
func (Keeper) SetMintAccount ¶
func (k Keeper) SetMintAccount(ctx sdk.Context, moduleAcc authtypes.ModuleAccountI)
SetMintAccount sets the module account
func (Keeper) SetMintModuleCoinsAccount ¶
func (k Keeper) SetMintModuleCoinsAccount(ctx sdk.Context, account sdk.AccAddress)
set the module coins 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) TreasuryPool ¶
func (k Keeper) TreasuryPool( c context.Context, _ *minttypes.QueryTreasuryPoolRequest, ) (*minttypes.QueryTreasuryPoolResponse, error)
TreasuryPool returns current treasury pool
func (Keeper) WithdrawCoinsFromTreasury ¶
func (k Keeper) WithdrawCoinsFromTreasury(ctx sdk.Context, receiver sdk.AccAddress, amount sdk.Coins) error
WithdrawCoinsFromTreasury transfers coins from treasury pool to receiver account