keeper

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl added in v0.5.0

func NewMsgServerImpl(k Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the x/mint MsgServer interface.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the mint store.

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec, storeService store.KVStoreService,
	ak types.AccountKeeper, bk types.BankKeeper,
	feeCollectorName string, authority string,
) Keeper

NewKeeper creates a new mint Keeper instance.

func (Keeper) AddCollectedFees

func (k Keeper) AddCollectedFees(ctx context.Context, fees sdk.Coins) error

AddCollectedFees implements an alias call to the underlying supply keeper's AddCollectedFees to be used in BeginBlocker.

func (Keeper) AnnualInflation added in v0.1.42

AnnualInflation returns minter.Inflation of the mint module.

func (Keeper) GetAuthority added in v0.5.0

func (k Keeper) GetAuthority() string

GetAuthority returns the x/mint module's authority.

func (Keeper) GetMinter

func (k Keeper) GetMinter(ctx context.Context) types.Minter

GetMinter get the minter.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) types.Params

GetParams returns the current x/mint module parameters.

func (Keeper) Logger

func (k Keeper) Logger(ctx context.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) MintCoins

func (k Keeper) MintCoins(ctx context.Context, newCoins sdk.Coins) error

MintCoins implements an alias call to the underlying supply keeper's MintCoins to be used in BeginBlocker.

func (Keeper) MintState

MintState returns the state minter of the mint module.

func (Keeper) Params

Params returns params of the mint module.

func (Keeper) SetMinter

func (k Keeper) SetMinter(ctx context.Context, minter types.Minter) error

SetMinter set the minter.

func (Keeper) SetParams

func (k Keeper) SetParams(ctx context.Context, p types.Params) error

SetParams sets the x/mint module parameters.

type Migrator added in v0.5.0

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place state migrations.

func NewMigrator added in v0.5.0

func NewMigrator(k Keeper, ss exported.Subspace) Migrator

func (Migrator) Migrate1to2 added in v0.5.0

func (m Migrator) Migrate1to2(ctx sdk.Context) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL