Documentation ¶
Index ¶
- Constants
- type Keeper
- func (k Keeper) Burn(ctx sdk.Context, payer sdk.AccAddress, coin sdk.Coin) (err sdk.Error)
- func (k Keeper) ChangeIssuance(ctx sdk.Context, denom string, delta sdk.Int) (err sdk.Error)
- func (k Keeper) GetIssuance(ctx sdk.Context, denom string, day sdk.Int) (issuance sdk.Int)
- func (k Keeper) Mint(ctx sdk.Context, recipient sdk.AccAddress, coin sdk.Coin) (err sdk.Error)
- func (k Keeper) PeekEpochSeigniorage(ctx sdk.Context, epoch sdk.Int) (epochSeigniorage sdk.Int)
Constants ¶
const StoreKey = "mint"
StoreKey is string representation of the store key for mint
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is an instance of the Mint keeper module. Adds / subtracts balances from accounts and maintains a global state of issuance of currencies on the Terra network.
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, sk staking.Keeper, bk bank.Keeper, ak auth.AccountKeeper) Keeper
NewKeeper creates a new instance of the mint module.
func (Keeper) Burn ¶
Burn deducts {coin} from the {payer} account, and reflects the decrease in issuance
func (Keeper) ChangeIssuance ¶ added in v0.2.0
ChangeIssuance updates the issuance to reflect
func (Keeper) GetIssuance ¶
GetIssuance fetches the total issuance count of the coin matching {denom}. If the {day} applies to a previous period, fetches the last stored snapshot issuance of the coin. For virgin calls, iterates through the accountkeeper and computes the genesis issuance.