ante

package
v0.0.1-gridfury Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

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 {
	ante.HandlerOptions
	BankKeeper           bankkeeper.Keeper
	AccountKeeper        authkeeper.AccountKeeper
	TokenKeeper          tokenkeeper.Keeper
	OracleKeeper         oraclekeeper.Keeper
	GuardianKeeper       guardiankeeper.Keeper
	EvmKeeper            ethante.EVMKeeper
	FeeMarketKeeper      ethante.FeeMarketKeeper
	BypassMinFeeMsgTypes []string
	MaxTxGasWanted       uint64
}

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

type ValidateServiceDecorator

type ValidateServiceDecorator struct{}

ValidateServiceDecorator is responsible for checking the permission to execute MsgCallService

func NewValidateServiceDecorator

func NewValidateServiceDecorator() ValidateServiceDecorator

NewValidateServiceDecorator returns an instance of ServiceAuthDecorator

func (ValidateServiceDecorator) AnteHandle

func (vsd ValidateServiceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle checks the transaction

type ValidateTokenDecorator

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

ValidateTokenDecorator is responsible for restricting the token participation of the swap prefix

func NewValidateTokenDecorator

func NewValidateTokenDecorator(tk tokenkeeper.Keeper) ValidateTokenDecorator

NewValidateTokenDecorator returns an instance of ValidateTokenDecorator

func (ValidateTokenDecorator) AnteHandle

func (vtd ValidateTokenDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle checks the transaction

Jump to

Keyboard shortcuts

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