Documentation ¶
Index ¶
- Constants
- func ConsumeMultisignatureVerificationGas(meter cosmos.GasMeter, sig *signing.MultiSignatureData, pubkey multisig.PubKey, ...) error
- func NewAnteHandler(app *baseapp.BaseApp, options AnteDecorators) cosmos.AnteHandler
- func SigVerificationGasConsumer(meter cosmos.GasMeter, sig signing.SignatureV2, params authmodule.Params) error
- type AnteDecorators
Constants ¶
const (
Secp256k1VerifyCost uint64 = 21000
)
Variables ¶
This section is empty.
Functions ¶
func ConsumeMultisignatureVerificationGas ¶
func ConsumeMultisignatureVerificationGas( meter cosmos.GasMeter, sig *signing.MultiSignatureData, pubkey multisig.PubKey, params authmodule.Params, accSeq uint64, ) error
ConsumeMultisignatureVerificationGas consumes gas from a GasMeter for verifying a multisig pubkey signature
func NewAnteHandler ¶
func NewAnteHandler(app *baseapp.BaseApp, options AnteDecorators) cosmos.AnteHandler
NewAnteHandler returns an ante handler responsible for attempting to route an Ethereum or SDK transaction to an internal ante handler for performing transaction-level processing (e.g. fee payment, signature verification) before being passed onto it's respective handler.
func SigVerificationGasConsumer ¶
func SigVerificationGasConsumer( meter cosmos.GasMeter, sig signing.SignatureV2, params authmodule.Params, ) error
SigVerificationGasConsumer is the Artela 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. The types of keys supported are:
- ethsecp256k1 (Ethereum keys)
- ed25519 (Validators)
- multisig (Cosmos SDK multisigs)
Types ¶
type AnteDecorators ¶
type AnteDecorators struct { Cdc codec.BinaryCodec AccountKeeper evmmodule.AccountKeeper BankKeeper evmmodule.BankKeeper DistributionKeeper anteutils.DistributionKeeper IBCKeeper *ibckeeper.Keeper // StakingKeeper vestingtypes.StakingKeeper FeeKeeper interfaces.FeeKeeper EvmKeeper interfaces.EVMKeeper FeegrantKeeper ante.FeegrantKeeper ExtensionOptionChecker ante.ExtensionOptionChecker SignModeHandler authsigning.SignModeHandler SigGasConsumer func(meter cosmos.GasMeter, sig signing.SignatureV2, params authmodule.Params) error MaxTxGasWanted uint64 TxFeeChecker anteutils.TxFeeChecker }
AnteDecorators defines the list of module keepers required to run the Artela AnteHandler decorators.
func (AnteDecorators) Validate ¶
func (options AnteDecorators) Validate() error
Validate checks if the keepers are defined