ante

package
v0.1.2-0...-bccb0d0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 8 Imported by: 0

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 (DelegatedDeductFeeDecorator) AnteHandle

func (dfd DelegatedDeductFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)

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

Jump to

Keyboard shortcuts

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