feechecker

package
v3.0.0-...-6ddf7be Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedGasPricesRequirement

func CombinedGasPricesRequirement(globalMinGasPrices, minGasPrices sdk.DecCoins) sdk.DecCoins

CombinedGasPricesRequirement will combine the global min_gas_prices and min_gas_prices. Both globalMinGasPrices and minGasPrices must be valid

Types

type FeeChecker

type FeeChecker struct {
	AuthzKeeper     *authzkeeper.Keeper
	OracleKeeper    *oraclekeeper.Keeper
	GlobalfeeKeeper *keeper.Keeper
	StakingKeeper   *stakingkeeper.Keeper
	TSSKeeper       *tsskeeper.Keeper
	BandtssKeeper   *bandtsskeeper.Keeper
	FeedsKeeper     *feedskeeper.Keeper

	TSSMsgServer   tsstypes.MsgServer
	FeedsMsgServer feedstypes.MsgServer
	// contains filtered or unexported fields
}

func NewFeeChecker

func NewFeeChecker(
	cdc codec.Codec,
	authzKeeper *authzkeeper.Keeper,
	oracleKeeper *oraclekeeper.Keeper,
	globalfeeKeeper *keeper.Keeper,
	stakingKeeper *stakingkeeper.Keeper,
	tssKeeper *tsskeeper.Keeper,
	bandtssKeeper *bandtsskeeper.Keeper,
	feedsKeeper *feedskeeper.Keeper,
) FeeChecker

func (FeeChecker) CheckTxFee

func (fc FeeChecker) CheckTxFee(
	ctx sdk.Context,
	tx sdk.Tx,
) (sdk.Coins, int64, error)

CheckTxFee is responsible for verifying whether a transaction contains the necessary fee.

func (FeeChecker) DefaultZeroGlobalFee

func (fc FeeChecker) DefaultZeroGlobalFee(ctx sdk.Context) ([]sdk.DecCoin, error)

DefaultZeroGlobalFee returns a zero coin with the staking module bond denom

func (FeeChecker) GetGlobalMinGasPrices

func (fc FeeChecker) GetGlobalMinGasPrices(ctx sdk.Context) (sdk.DecCoins, error)

GetGlobalMinGasPrices returns global min gas prices

func (FeeChecker) IsBypassMinFeeMsg

func (fc FeeChecker) IsBypassMinFeeMsg(ctx sdk.Context, msg sdk.Msg) bool

IsBypassMinFeeMsg checks whether msg is min fee bypassable.

func (FeeChecker) IsBypassMinFeeTx

func (fc FeeChecker) IsBypassMinFeeTx(ctx sdk.Context, tx sdk.Tx) bool

IsBypassMinFeeTx checks whether tx is min fee bypassable.

Jump to

Keyboard shortcuts

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