Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeductFeeDecorator ¶
type DeductFeeDecorator struct {
// contains filtered or unexported fields
}
DeductFeeDecorator deducts fees from the first signer of the tx If the first signer does not have the funds to pay for the fees, return with InsufficientFunds error Call next AnteHandler if fees successfully deducted CONTRACT: Tx must implement FeeTx interface to use DeductFeeDecorator
Additionally, the Deduct Fee ante is a fork of the SDK's DeductFeeDecorator. This decorator looks for single message transactions with no provided fee. If they correspond to a registered FeePay Contract, the FeePay module will cover the cost of the fee (if the balance permits).
func NewDeductFeeDecorator ¶
func NewDeductFeeDecorator(fpk feepaykeeper.Keeper, gfk globalfeekeeper.Keeper, ak ante.AccountKeeper, bk bankkeeper.Keeper, fgk ante.FeegrantKeeper, bondDenom string) DeductFeeDecorator
func (DeductFeeDecorator) AnteHandle ¶
Click to show internal directories.
Click to hide internal directories.