ante

package
v6.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTxFeeWithSubspaceMinPrices

func CheckTxFeeWithSubspaceMinPrices(txFeeChecker ante.TxFeeChecker, sk antetypes.SubspacesKeeper) ante.TxFeeChecker

CheckTxFeeWithSubspaceMinPrices returns the tx checker that including the subspace allowed tokens into minimum prices list

func GetTxSubspaceID

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

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

func MergeMinPrices

func MergeMinPrices(original sdk.DecCoins, other sdk.DecCoins) sdk.DecCoins

MergeMinPrices adds the other coins to the original if it does not exist inside the original

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