antewrapper

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(
	ak authKeeper.AccountKeeper,
	bankKeeper authTypes.BankKeeper,
	sigGasConsumer ante.SignatureVerificationGasConsumer,
	signModeHandler signing.SignModeHandler,
	additionalDecorators ...sdk.AnteDecorator,
) sdk.AnteHandler

func NewTracingMeterWrapper

func NewTracingMeterWrapper(logger log.Logger, baseMeter sdkgas.GasMeter) sdkgas.GasMeter

NewTracingMeterWrapper returns a reference to a new tracing gas meter that will track calls to the base gas meter

Types

type GasTracerContextDecorator

type GasTracerContextDecorator struct{}

GasTracerContextDecorator is an AnteDecorator that wraps the current context gas meter with one that outputs debug logging and telemetry whenever gas is consumed on the meter.

func NewGasTracerContextDecorator

func NewGasTracerContextDecorator() GasTracerContextDecorator

NewGasTracerContextDecorator creates a new GasTracerContextDecorator

func (GasTracerContextDecorator) AnteHandle

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

AnteHandle implements the AnteDecorator.AnteHandle method

Jump to

Keyboard shortcuts

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