ante

package
v2.2.0-testnet Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(
	ak authante.AccountKeeper,
	bankKeeper types.BankKeeper,
	sigGasConsumer authante.SignatureVerificationGasConsumer,
	feesKeeper feeskeeper.Keeper,
	feegrantKeeper authante.FeegrantKeeper,
	signModeHandler signing.SignModeHandler,
) sdk.AnteHandler

NewAnteHandler returns a custom AnteHandler that, besides all the default checks (sequence number increment, signature and account number checks, fee deduction), makes sure that each transaction has a minimum fee based on the contained messages.

Types

type MinFeeDecorator

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

func NewMinFeeDecorator

func NewMinFeeDecorator(feesKeeper 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