UNPKG

@wdk-safe-global/relay-kit

Version:

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

26 lines 1.42 kB
import { EstimateGasData } from '@safe-global/types-kit'; import { EstimateFeeFunctionProps, IFeeEstimator } from '../../../../packs/safe-4337/types'; type Eip1193Provider = { request: (args: { method: string; params?: unknown[]; }) => Promise<unknown>; }; /** * 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; provider: string | Eip1193Provider; chainId: string; gasMultiplier: number; defaultVerificationGasLimitOverhead?: bigint; constructor(provider: string | Eip1193Provider, 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>; } export {}; //# sourceMappingURL=GenericFeeEstimator.d.ts.map