keeper

package
v4.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 8 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
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, paramSpace paramstypes.Subspace) Keeper

func (Keeper) CheckFees

func (k Keeper) CheckFees(ctx sdk.Context, msgs []sdk.Msg, fees sdk.Coins) error

CheckFees checks whether the given fees are sufficient to pay for all the given messages. The check is performed considering the minimum fee amount specified inside the module parameters for each message and by summing them up.

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis returns the GenesisState associated with the given context

func (Keeper) GetParams

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

GetParams returns the module parameters

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)

InitGenesis initializes the chain state based on the given GenesisState

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Params

Params implements the Query/Params gRPC method

func (Keeper) SetParams

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

SetParams sets module parameters

type MinFeeDecorator

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

func NewMinFeeDecorator

func NewMinFeeDecorator(feesKeeper Keeper) MinFeeDecorator

func (MinFeeDecorator) AnteHandle

func (mfd MinFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)

Jump to

Keyboard shortcuts

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