posthandler

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostHandler

func NewPostHandler(options HandlerOptions) (sdk.AnteHandler, error)

NewPostHandler returns a default post handler

Types

type HandlerOptions

type HandlerOptions struct {
	AccountKeeper  ante.AccountKeeper
	BankKeeper     cheqdante.BankKeeper
	FeegrantKeeper ante.FeegrantKeeper
	DidKeeper      cheqdante.DidKeeper
	ResourceKeeper cheqdante.ResourceKeeper
}

HandlerOptions are the options required for constructing a default post handler

type TaxDecorator added in v1.1.0

type TaxDecorator struct {
	// contains filtered or unexported fields
}

TaxDecorator will handle tax for all taxable messages

func NewTaxDecorator

NewTaxDecorator returns a new taxDecorator

func (TaxDecorator) AnteHandle added in v1.1.0

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

AnteHandle handles tax for all taxable messages

Jump to

Keyboard shortcuts

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