keeper

package
v1.7.0-browser Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 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 - crisis keeper

func NewKeeper

func NewKeeper(
	paramSpace params.Subspace, invCheckPeriod uint, supplyKeeper types.SupplyKeeper,
	feeCollectorName string,
) Keeper

NewKeeper creates a new Keeper object

func (Keeper) AssertInvariants

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

AssertInvariants asserts all registered invariants. If any invariant fails, the method panics.

func (Keeper) GetConstantFee

func (k Keeper) GetConstantFee(ctx sdk.Context) (constantFee sdk.Coin)

GetConstantFee get's the constant fee from the paramSpace

func (Keeper) InvCheckPeriod

func (k Keeper) InvCheckPeriod() uint

InvCheckPeriod returns the invariant checks period.

func (Keeper) Invariants

func (k Keeper) Invariants() []sdk.Invariant

Invariants returns all the registered Crisis keeper invariants.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (*Keeper) RegisterRoute

func (k *Keeper) RegisterRoute(moduleName, route string, invar sdk.Invariant)

RegisterRoute register the routes for each of the invariants

func (Keeper) Routes

func (k Keeper) Routes() []types.InvarRoute

Routes - return the keeper's invariant routes

func (Keeper) SendCoinsFromAccountToFeeCollector

func (k Keeper) SendCoinsFromAccountToFeeCollector(ctx sdk.Context, senderAddr sdk.AccAddress, amt sdk.Coins) error

SendCoinsFromAccountToFeeCollector transfers amt to the fee collector account.

func (Keeper) SetConstantFee

func (k Keeper) SetConstantFee(ctx sdk.Context, constantFee sdk.Coin)

GetConstantFee set's the constant fee in the paramSpace

Jump to

Keyboard shortcuts

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