@owlprotocol/contracts-account-abstraction
Version:
ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.
11 lines (10 loc) • 735 B
TypeScript
import { GasOverheads } from "../models/GasOverheads.js";
import { PackedUserOperation } from "../models/PackedUserOperation.js";
/**
* calculate the preVerificationGas of the given UserOperation
* preVerificationGas (by definition) is the cost overhead that can't be calculated on-chain.
* it is based on parameters that are defined by the Ethereum protocol for external transactions.
* @param userOp filled userOp to calculate. The only possible missing fields can be the signature and preVerificationGas itself
* @param overheads gas overheads to use, to override the default values
*/
export declare function calcDefaultPreVerificationGas(packedUserOperation: PackedUserOperation, overheads?: Partial<GasOverheads>): bigint;