ante

package
v0.42.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzLimiterDecorator

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

AuthzLimiterDecorator blocks certain msg types from being granted or executed within authz.

func NewAuthzLimiterDecorator

func NewAuthzLimiterDecorator(disabledMsgTypes ...string) AuthzLimiterDecorator

NewAuthzLimiterDecorator creates a decorator to block certain msg types from being granted or executed within authz.

func (AuthzLimiterDecorator) AnteHandle

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

type EVMKeeper

type EVMKeeper interface {
	GetParams(ctx sdk.Context) evmtypes.Params
}

EVMKeeper specifies the interface that EvmMinGasFilter requires

type EvmMinGasFilter

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

func NewEvmMinGasFilter(evmKeeper EVMKeeper) EvmMinGasFilter

NewEvmMinGasFilter takes an EVMKeeper and returns a new min gas filter for it's EvmDenom

func (EvmMinGasFilter) AnteHandle

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 MinCommissionDecorator

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

func NewMinCommissionDecorator

func NewMinCommissionDecorator(cdc codec.BinaryCodec) MinCommissionDecorator

func (MinCommissionDecorator) AnteHandle

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

type VestingAccountDecorator

type VestingAccountDecorator struct{}

VestingAccountDecorator blocks MsgCreateVestingAccount from reaching the mempool

func NewVestingAccountDecorator

func NewVestingAccountDecorator() VestingAccountDecorator

func (VestingAccountDecorator) AnteHandle

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

Jump to

Keyboard shortcuts

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