keeper

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

Keeper of the coinomics store

func NewKeeper

func NewKeeper(
	storeKey storetypes.StoreKey,
	cdc codec.BinaryCodec,
	ps paramtypes.Subspace,
	ak types.AccountKeeper,
	bk types.BankKeeper,
	dk types.DistrKeeper,
	sk types.StakingKeeper,
	feeCollectorName string,
) Keeper

NewKeeper creates a new mint Keeper instance

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) GetMaxSupply

func (k Keeper) GetMaxSupply(ctx sdk.Context) sdk.Coin

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of coinomics parameters.

func (Keeper) GetPrevBlockTS added in v1.6.4

func (k Keeper) GetPrevBlockTS(ctx sdk.Context) sdkmath.Int

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) MintAndAllocate added in v1.6.4

func (k Keeper) MintAndAllocate(ctx sdk.Context) error

func (Keeper) MintCoins

func (k Keeper) MintCoins(ctx sdk.Context, coin sdk.Coin) error

func (Keeper) Params

Params returns params of the mint module.

func (Keeper) RewardCoefficient added in v1.6.4

func (Keeper) SetMaxSupply

func (k Keeper) SetMaxSupply(ctx sdk.Context, maxSupply sdk.Coin)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the coinomics parameters to the param space.

func (Keeper) SetPrevBlockTS added in v1.6.4

func (k Keeper) SetPrevBlockTS(ctx sdk.Context, prevBlockTS sdkmath.Int)

func (Keeper) TokenSupply

func (k Keeper) TokenSupply(ctx sdk.Context, denom string) sdkmath.Int

type Migrator

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

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

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

Jump to

Keyboard shortcuts

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