ante

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

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

Types

type BankKeeper added in v1.5.1

type BankKeeper interface {
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, address sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, address sdk.AccAddress) sdk.Coins
}

BankKeeper is a modified version of the default found in Cosmos SDK x/auth/types/expected_keepers.go and adds the GetAllBalances and SpendableCoins methods required by the beacon and wrkchain modules' ante handlers

type FreezerDecorator added in v1.9.0

type FreezerDecorator struct{}

func NewFreezerDecorator added in v1.9.0

func NewFreezerDecorator() FreezerDecorator

func (FreezerDecorator) AnteHandle added in v1.9.0

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

type HandlerOptions added in v1.8.0

type HandlerOptions struct {
	authante.HandlerOptions

	BK               BankKeeper
	BeaconKeeper     beaconante.BeaconKeeper
	EnterpriseKeeper entante.EnterpriseKeeper
	IBCKeeper        *ibckeeper.Keeper
	WrkchainKeeper   wrkante.WrkchainKeeper
}

Jump to

Keyboard shortcuts

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