ante

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTxSubspaceID

func GetTxSubspaceID(tx sdk.Tx) (uint64, bool)

GetTxSubspaceID returns the valid subspace id, returns false if it is invalid

Types

type DeductFeeDecorator

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

DeductFeeDecorator represents the decorator used to deduct fee

func NewDeductFeeDecorator

func NewDeductFeeDecorator(
	authDeductFeeDecorator antetypes.AuthDeductFeeDecorator,
	ak antetypes.AccountKeeper,
	bk antetypes.BankKeeper,
	sk antetypes.SubspacesKeeper,
	txFeeChecker ante.TxFeeChecker,
) DeductFeeDecorator

NewDeductFeeDecorator returns a new DeductFeeDecorator instance

func (DeductFeeDecorator) AnteHandle

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

AnteHandle implements AnteDecorator

Directories

Path Synopsis
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.

Jump to

Keyboard shortcuts

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