ante

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)

NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.

Types

type HandlerOptions added in v0.0.5

type HandlerOptions struct {
	AccountKeeper          ante.AccountKeeper
	BankKeeper             authtypes.BankKeeper
	ExtensionOptionChecker ante.ExtensionOptionChecker
	FeegrantKeeper         ante.FeegrantKeeper
	SignModeHandler        authsigning.SignModeHandler
	TxFeeChecker           ante.TxFeeChecker
	GashubKeeper           ante.GashubKeeper
}

HandlerOptions are the options required for constructing a greenfield AnteHandler.

type SignModeDecorator

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

SignModeDecorator only allow EIP712 tx to be executed

func NewSignModeDecorator

func NewSignModeDecorator(signModeHandler authsigning.SignModeHandler) SignModeDecorator

func (SignModeDecorator) AnteHandle

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

AnteHandle rejects txs that includes more than one msgs

Jump to

Keyboard shortcuts

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