ante

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx).

During CheckTx, the transaction is passed through a series of pre-message execution validation checks such as signature and account verification in addition to minimum fees being checked. Otherwise, during DeliverTx, the transaction is simply passed to the EVM which will also perform the same series of checks. The distinction is made in CheckTx to prevent spam and DoS attacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(options HandlerOptions) sdk.AnteHandler

NewAnteHandler returns an ante handler responsible for attempting to route an Ethereum or SDK transaction to an internal ante handler for performing transaction-level processing (e.g. fee payment, signature verification) before being passed onto it's respective handler.

Types

type HandlerOptions

type HandlerOptions struct {
	AccountKeeper     evmtypes.AccountKeeper
	BankKeeper        evmtypes.BankKeeper
	FeegrantKeeper    ante.FeegrantKeeper
	SignModeHandler   authsigning.SignModeHandler
	SigGasConsumer    func(meter sdk.GasMeter, sig signing.SignatureV2, params types.Params) error
	IBCKeeper         *ibckeeper.Keeper
	EvmKeeper         ethante.EVMKeeper
	FeeMarketKeeper   evmtypes.FeeMarketKeeper
	TxCounterStoreKey sdk.StoreKey
	MaxTxGasWanted    uint64
	WasmConfig        wasmTypes.WasmConfig
	Cdc               codec.BinaryCodec
}

HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.

func (HandlerOptions) Validate

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

Jump to

Keyboard shortcuts

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