UNPKG

@wdk-safe-global/relay-kit

Version:

SDK for Safe Smart Accounts with support for ERC-4337 and Relay

19 lines 1.24 kB
import { EstimateGasData } from '@safe-global/types-kit'; import { EstimateFeeFunctionProps, IFeeEstimator } from '../../../../packs/safe-4337/types'; /** * GenericFeeEstimator is a class that implements the IFeeEstimator interface. You can implement three optional methods that will be called during the estimation process: * - preEstimateUserOperationGas: Setup the userOperation before calling the eth_estimateUserOperation gas method. * - postEstimateUserOperationGas: Adjust the userOperation values returned after calling the eth_estimateUserOperation method. */ export declare class GenericFeeEstimator implements IFeeEstimator { #private; nodeUrl: string; chainId: string; gasMultiplier: number; defaultVerificationGasLimitOverhead?: bigint; constructor(nodeUrl: string, chainId: string, gasMultiplier?: number); preEstimateUserOperationGas({ bundlerUrl, // eslint-disable-line @typescript-eslint/no-unused-vars userOperation, entryPoint, paymasterOptions }: EstimateFeeFunctionProps): Promise<EstimateGasData>; postEstimateUserOperationGas({ userOperation, entryPoint, paymasterOptions }: EstimateFeeFunctionProps): Promise<EstimateGasData>; } //# sourceMappingURL=GenericFeeEstimator.d.ts.map