ante

package
v0.13.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(options ante.HandlerOptions) (sdk.AnteHandler, error)

Types

type AdjustGasPriceDecorator

type AdjustGasPriceDecorator struct {
}

AdjustGasPriceDecorator is a custom decorator to reduce fee prices .

func NewAdjustGasPriceDecorator

func NewAdjustGasPriceDecorator() AdjustGasPriceDecorator

NewAdjustGasPriceDecorator create a new instance of AdjustGasPriceDecorator

func (AdjustGasPriceDecorator) AnteHandle

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

AnteHandle adjusts the gas price based on the tx type.

Jump to

Keyboard shortcuts

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