Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDelegatedDeductFeeAnteHandler ¶
func NewDelegatedDeductFeeAnteHandler(ak authKeeper.AccountKeeper, supplyKeeper authTypes.SupplyKeeper, dk keeper.DataNodeKeeper, sigGasConsumer authAnte.SignatureVerificationGasConsumer) sdk.AnteHandler
NewDelegatedDeductFeeAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from deducted wallet or the first signer.
Types ¶
type DelegatedDeductFeeDecorator ¶
type DelegatedDeductFeeDecorator struct {
// contains filtered or unexported fields
}
DelegatedDeductFeeDecorator deducts fees from the delegated account or the first signer of the tx If the fee payer 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 DelegatedDeductFeeDecorator
func NewDelegatedDeductFeeDecorator ¶
func NewDelegatedDeductFeeDecorator(ak authKeeper.AccountKeeper, sk authTypes.SupplyKeeper, dk keeper.DataNodeKeeper) DelegatedDeductFeeDecorator
func (DelegatedDeductFeeDecorator) AnteHandle ¶
type DelegatedFeeTx ¶
type DelegatedFeeTx interface { sdk.Tx GetGas() uint64 GetFee() sdk.Coins GetSigners() []sdk.AccAddress }
DelegatedFeeTx defines the interface to be implemented by Tx to use the FeeDecorators
Click to show internal directories.
Click to hide internal directories.