ante

package
v1.4.0-dev1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSigVerificationGasConsumer

func DefaultSigVerificationGasConsumer(
	meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params,
) error

DefaultSigVerificationGasConsumer is the default implementation of SignatureVerificationGasConsumer. It consumes gas for signature verification based upon the public key type. The cost is fetched from the given params and is matched by the concrete type.

func NewAnteHandler

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

NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.

Types

type AccountKeeper

type AccountKeeper authante.AccountKeeper

type HandlerOptions

type HandlerOptions struct {
	AccountKeeper   authante.AccountKeeper
	SignModeHandler authsigning.SignModeHandler // ???
	SigGasConsumer  func(meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params) error
}

HandlerOptions are the options required for constructing a default SDK AnteHandler.

type InfiniteGasSetUpContextDecorator

type InfiniteGasSetUpContextDecorator struct{}

Sets Infinite Gas Meter instead of default one in SetUpContextDecorator.

func NewInfiniteGasSetUpContextDecorator

func NewInfiniteGasSetUpContextDecorator() InfiniteGasSetUpContextDecorator

func (InfiniteGasSetUpContextDecorator) AnteHandle

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

Jump to

Keyboard shortcuts

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