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 ¶
Click to show internal directories.
Click to hide internal directories.