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.
func NewCosmosAnteHandler ¶
func NewCosmosAnteHandler(options HandlerOptions) sdk.AnteHandler
newCosmosAnteHandler creates the default ante handler for Cosmos transactions
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccountWithAddress(ctx context.Context, addr sdk.AccAddress) sdk.AccountI GetModuleAddress(moduleName string) sdk.AccAddress GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI SetAccount(ctx context.Context, account sdk.AccountI) RemoveAccount(ctx context.Context, account sdk.AccountI) GetParams(ctx context.Context) (params authtypes.Params) GetSequence(ctx context.Context, addr sdk.AccAddress) (uint64, error) AddressCodec() addresscodec.Codec }
type BankKeeper ¶
type BankKeeper interface { IsSendEnabledCoins(ctx context.Context, coins ...sdk.Coin) error SendCoins(ctx context.Context, from, to sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the contract needed for supply related APIs (noalias)
type HandlerOptions ¶
type HandlerOptions struct { Cdc codec.BinaryCodec AccountKeeper AccountKeeper BankKeeper BankKeeper FeegrantKeeper ante.FeegrantKeeper ExtensionOptionChecker ante.ExtensionOptionChecker SignModeHandler *txsigning.HandlerMap SigGasConsumer func(meter storetypes.GasMeter, sig signing.SignatureV2, params authtypes.Params) error TxFeeChecker ante.TxFeeChecker // safe to be nil // <spawntag:wasm WasmConfig *wasmtypes.WasmConfig WasmKeeper *wasmkeeper.Keeper TXCounterStoreService corestoretypes.KVStoreService // <spawntag:evm MaxTxGasWanted uint64 FeeMarketKeeper anteinterfaces.FeeMarketKeeper EvmKeeper anteinterfaces.EVMKeeper IBCKeeper *ibckeeper.Keeper CircuitKeeper *circuitkeeper.Keeper ConsumerKeeper ccvconsumerkeeper.Keeper }
HandlerOptions defines the list of module keepers required to run the EVM AnteHandler decorators.
func (HandlerOptions) Validate ¶
func (options HandlerOptions) Validate() error
Validate checks if the keepers are defined
Click to show internal directories.
Click to hide internal directories.