Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) BlockAddress(ctx sdk.Context, denom string, owner, blockedAddress sdk.AccAddress) error
- func (k Keeper) CreateNewAssetSupply(ctx sdk.Context, denom string) types.AssetSupply
- func (k Keeper) GetAllAssetSupplies(ctx sdk.Context) (supplies []types.AssetSupply)
- func (k Keeper) GetAsset(ctx sdk.Context, denom string) (types.Asset, bool)
- func (k Keeper) GetAssetSupply(ctx sdk.Context, denom string) (types.AssetSupply, bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPreviousBlockTime(ctx sdk.Context) (blockTime time.Time, found bool)
- func (k Keeper) GetRateLimit(ctx sdk.Context, denom string) (types.RateLimit, error)
- func (k Keeper) IncrementCurrentAssetSupply(ctx sdk.Context, coin sdk.Coin) error
- func (k Keeper) IssueTokens(ctx sdk.Context, tokens sdk.Coin, owner, receiver sdk.AccAddress) error
- func (k Keeper) IterateAssetSupplies(ctx sdk.Context, cb func(supply types.AssetSupply) (stop bool))
- func (k Keeper) RedeemTokens(ctx sdk.Context, tokens sdk.Coin, owner sdk.AccAddress) error
- func (k Keeper) SeizeCoinsForBlockableAssets(ctx sdk.Context) error
- func (k Keeper) SeizeCoinsFromBlockedAddresses(ctx sdk.Context, denom string) error
- func (k Keeper) SetAsset(ctx sdk.Context, asset types.Asset)
- func (k Keeper) SetAssetSupply(ctx sdk.Context, supply types.AssetSupply, denom string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPauseStatus(ctx sdk.Context, owner sdk.AccAddress, denom string, status bool) error
- func (k Keeper) SetPreviousBlockTime(ctx sdk.Context, blockTime time.Time)
- func (k Keeper) SynchronizeBlockList(ctx sdk.Context)
- func (k Keeper) UnblockAddress(ctx sdk.Context, denom string, owner, addr sdk.AccAddress) error
- func (k Keeper) UpdateTimeBasedSupplyLimits(ctx sdk.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶ added in v0.16.0
NewMsgServerImpl returns an implementation of the issuance MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier is the module level router for state queries
func NewQueryServerImpl ¶ added in v0.16.0
func NewQueryServerImpl(k Keeper) types.QueryServer
NewQueryServerImpl creates a new server for handling gRPC queries.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper keeper for the issuance module
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, key sdk.StoreKey, paramstore paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper) Keeper
NewKeeper returns a new keeper
func (Keeper) BlockAddress ¶
func (k Keeper) BlockAddress(ctx sdk.Context, denom string, owner, blockedAddress sdk.AccAddress) error
BlockAddress adds an address to the blocked list
func (Keeper) CreateNewAssetSupply ¶
CreateNewAssetSupply creates a new AssetSupply in the store for the input denom
func (Keeper) GetAllAssetSupplies ¶
func (k Keeper) GetAllAssetSupplies(ctx sdk.Context) (supplies []types.AssetSupply)
GetAllAssetSupplies returns all asset supplies from the store
func (Keeper) GetAsset ¶
GetAsset returns an asset from the params and a boolean for if it was found
func (Keeper) GetAssetSupply ¶
GetAssetSupply gets an asset's current supply from the store.
func (Keeper) GetPreviousBlockTime ¶
GetPreviousBlockTime get the blocktime for the previous block
func (Keeper) GetRateLimit ¶
GetRateLimit returns the rete-limit parameters for the input denom
func (Keeper) IncrementCurrentAssetSupply ¶
IncrementCurrentAssetSupply increments an asset's supply by the coin
func (Keeper) IssueTokens ¶
IssueTokens mints new tokens and sends them to the receiver address
func (Keeper) IterateAssetSupplies ¶
func (k Keeper) IterateAssetSupplies(ctx sdk.Context, cb func(supply types.AssetSupply) (stop bool))
IterateAssetSupplies provides an iterator over all stored AssetSupplies.
func (Keeper) RedeemTokens ¶
RedeemTokens sends tokens from the owner address to the module account and burns them
func (Keeper) SeizeCoinsForBlockableAssets ¶
SeizeCoinsForBlockableAssets seizes coins from blocked addresses for assets that have blocking enabled
func (Keeper) SeizeCoinsFromBlockedAddresses ¶
SeizeCoinsFromBlockedAddresses checks blocked addresses for coins of the input denom and transfers them to the owner account
func (Keeper) SetAssetSupply ¶
SetAssetSupply updates an asset's supply
func (Keeper) SetPauseStatus ¶
func (k Keeper) SetPauseStatus(ctx sdk.Context, owner sdk.AccAddress, denom string, status bool) error
SetPauseStatus pauses/un-pauses an asset
func (Keeper) SetPreviousBlockTime ¶
SetPreviousBlockTime set the time of the previous block
func (Keeper) SynchronizeBlockList ¶
SynchronizeBlockList resets the block list to empty for any asset that is not blockable - could happen if this value is changed via governance
func (Keeper) UnblockAddress ¶
UnblockAddress removes an address from the blocked list
func (Keeper) UpdateTimeBasedSupplyLimits ¶
UpdateTimeBasedSupplyLimits updates the time based supply for each asset, resetting it if the current time window has elapsed.