Documentation ¶
Index ¶
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func Recover(logger tmlog.Logger, err *error)
- type AccountKeeper
- type ActivateAfterDecorator
- type AddressFetcher
- type AuthenticatedMempoolDecorator
- type AuthzLimiterDecorator
- type ConvertEthAccounts
- type EVMKeeper
- type EvmMinGasFilter
- type HandlerOptions
- type VestingAccountDecorator
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 will run actions before a tx is sent to a module's handler.
Types ¶
type AccountKeeper ¶ added in v0.17.4
type AccountKeeper interface { authante.AccountKeeper }
type ActivateAfterDecorator ¶ added in v0.17.4
type ActivateAfterDecorator struct { WrappedDecorator sdk.AnteDecorator // contains filtered or unexported fields }
ActivateAfterDecorator wraps a ante decorator, disabling it before a block height. It can be used to modify the antehandler in asynchronous chain upgrades.
func ActivateAfter ¶ added in v0.17.4
func ActivateAfter(decorator sdk.AnteDecorator, upgradeHeight int64) ActivateAfterDecorator
func (ActivateAfterDecorator) AnteHandle ¶ added in v0.17.4
type AddressFetcher ¶
type AddressFetcher func(sdk.Context) []sdk.AccAddress
AddressFetcher is a type signature for functions used by the AuthenticatedMempoolDecorator to get authorized addresses.
type AuthenticatedMempoolDecorator ¶
type AuthenticatedMempoolDecorator struct {
// contains filtered or unexported fields
}
AuthenticatedMempoolDecorator blocks all txs from reaching the mempool unless they're signed by one of the authorzed addresses. It only runs before entry to mempool (CheckTx), and not in consensus (DeliverTx)
func NewAuthenticatedMempoolDecorator ¶
func NewAuthenticatedMempoolDecorator(fetchers ...AddressFetcher) AuthenticatedMempoolDecorator
func (AuthenticatedMempoolDecorator) AnteHandle ¶
type AuthzLimiterDecorator ¶ added in v0.17.0
type AuthzLimiterDecorator struct {
// contains filtered or unexported fields
}
AuthzLimiterDecorator blocks certain msg types from being granted or executed within authz.
func NewAuthzLimiterDecorator ¶ added in v0.17.0
func NewAuthzLimiterDecorator(disabledMsgTypes ...string) AuthzLimiterDecorator
NewAuthzLimiterDecorator creates a decorator to block certain msg types from being granted or executed within authz.
func (AuthzLimiterDecorator) AnteHandle ¶ added in v0.17.0
type ConvertEthAccounts ¶ added in v0.17.4
type ConvertEthAccounts struct {
// contains filtered or unexported fields
}
ConvertEthAccounts converts non contract eth accounts to base accounts, and calls the next ante handle with an updated context. This should run after signature verification to ensure only owners can convert accounts.
func NewConvertEthAccounts ¶ added in v0.17.4
func NewConvertEthAccounts(ak AccountKeeper) ConvertEthAccounts
func (ConvertEthAccounts) AnteHandle ¶ added in v0.17.4
type EvmMinGasFilter ¶ added in v0.17.1
type EvmMinGasFilter struct {
// contains filtered or unexported fields
}
EvmMinGasFilter filters out the EvmDenom min gas price and calls the next ante handle with an updated context
func NewEvmMinGasFilter ¶ added in v0.17.1
func NewEvmMinGasFilter(evmKeeper EVMKeeper) EvmMinGasFilter
NewEvmMinGasFilter takes an EVMKeeper and returns a new min gas filter for it's EvmDenom
func (EvmMinGasFilter) AnteHandle ¶ added in v0.17.1
func (emgf EvmMinGasFilter) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle checks the EvmDenom from the evmKeeper and filters out the EvmDenom from the ctx
type HandlerOptions ¶ added in v0.17.0
type HandlerOptions struct { AccountKeeper evmtypes.AccountKeeper BankKeeper evmtypes.BankKeeper IBCKeeper *ibckeeper.Keeper EvmKeeper evmante.EVMKeeper FeegrantKeeper authante.FeegrantKeeper SignModeHandler authsigning.SignModeHandler SigGasConsumer authante.SignatureVerificationGasConsumer FeeMarketKeeper evmtypes.FeeMarketKeeper MaxTxGasWanted uint64 AddressFetchers []AddressFetcher UpgradeHeight int64 }
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper, EVM Keeper and Fee Market Keeper.
func (HandlerOptions) Validate ¶ added in v0.17.0
func (options HandlerOptions) Validate() error
type VestingAccountDecorator ¶ added in v0.16.0
type VestingAccountDecorator struct{}
VestingAccountDecorator blocks MsgCreateVestingAccount from reaching the mempool
func NewVestingAccountDecorator ¶ added in v0.16.0
func NewVestingAccountDecorator() VestingAccountDecorator