ante

package
v9.1.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error)

Types

type GovPreventSpamDecorator added in v9.0.1

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

func NewGovPreventSpamDecorator added in v9.0.1

func NewGovPreventSpamDecorator(cdc codec.BinaryCodec, govKeeper *govkeeper.Keeper) GovPreventSpamDecorator

func (GovPreventSpamDecorator) AnteHandle added in v9.0.1

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

func (GovPreventSpamDecorator) ValidateGovMsgs added in v9.0.1

func (g GovPreventSpamDecorator) ValidateGovMsgs(ctx sdk.Context, msgs []sdk.Msg) error

validateGovMsgs checks if the InitialDeposit amounts are greater than the minimum initial deposit amount

type HandlerOptions

type HandlerOptions struct {
	ante.HandlerOptions
	Codec                codec.BinaryCodec
	GovKeeper            *govkeeper.Keeper
	IBCkeeper            *ibckeeper.Keeper
	BypassMinFeeMsgTypes []string
	GlobalFeeSubspace    paramtypes.Subspace
	StakingSubspace      paramtypes.Subspace
}

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

Jump to

Keyboard shortcuts

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