likefeegrant

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FeeTxKey contextKey = "fee-tx-key"

Variables

This section is empty.

Functions

func DeductFeePerByte

func DeductFeePerByte(
	ctx sdk.Context,
	accountKeeper AccountKeeper, bankKeeper authtypes.BankKeeper, feegrantKeeper ante.FeegrantKeeper,
	msgSender sdk.AccAddress, fees sdk.Coins, msg sdk.Msg,
) error

func GetFeeTx

func GetFeeTx(ctx sdk.Context) sdk.FeeTx

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

type FeeTxContextDecorator

type FeeTxContextDecorator struct{}

func NewFeeTxContextDecorator

func NewFeeTxContextDecorator() FeeTxContextDecorator

func (FeeTxContextDecorator) AnteHandle

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

Jump to

Keyboard shortcuts

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