ante

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 8 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 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