keeper

package
v0.0.0-...-6e12e82 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpectedKeepers

type ExpectedKeepers struct {
	StakingKeeper types.StakingKeeper
	BankKeeper    types.BankKeeper
}

ExpectedKeepers contains expected keepers parameter needed by NewKeeper

type Keeper

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

Keeper is the type for module properties

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey sdk.StoreKey,
	ps paramtypes.Subspace,
	ak types.AccountKeeper,
	expectedKeepers ExpectedKeepers,
	feeCollectorName string,
) *Keeper

NewKeeper creates new keeper object

func (Keeper) AddCollectedFees

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

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

func (Keeper) BondedRatio

func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec

BondedRatio implements an alias call to the underlying staking keeper's to be used in BeginBlocker.

func (Keeper) EndPhaseStatus

EndPhaseStatus returns end phase status.

func (Keeper) GetMinter

func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)

GetMinter returns the minter

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) Inflation

Inflation returns current inflation.

func (Keeper) Logger

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

Logger returns the logger of the keeper

func (Keeper) MintCoins

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

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

func (Keeper) Params

Params returns the params of the module

func (Keeper) PhaseProvisions

PhaseProvisions returns current phase provision.

func (Keeper) PhaseStep

PhaseStep returns phase step.

func (Keeper) SetMinter

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

SetMinter sets the minter

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) StakingTokenSupply

func (k Keeper) StakingTokenSupply(ctx sdk.Context) sdk.Int

StakingTokenSupply implements an alias call to the underlying staking keeper's to be used in BeginBlocker.

func (Keeper) TokenSupply

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

TokenSupply implements an alias call to the underlying bank keeper's to be used in BeginBlocker.

Jump to

Keyboard shortcuts

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