UNPKG

dop-stick

Version:

Source control tooling for versionable-upgradeable smart contracts

36 lines 1.03 kB
import { BigNumber } from 'ethers'; export declare class GasUtils { /** * Gets current network gas price with optional priority fee */ static getCurrentGasPrice(): Promise<{ gasPrice: BigNumber; maxPriorityFeePerGas?: BigNumber; }>; /** * Helper method to safely convert null to undefined for fee data */ private static nullToUndefined; /** * Helper method to safely get fee data with proper types */ private static getSafeFeeData; /** * Checks if the current network has zero gas price */ static isGasPriceZero(): Promise<boolean>; /** * Gets detailed gas price information */ static getGasPriceInfo(): Promise<{ isZero: boolean; gasPrice: string; baseFee?: string; priorityFee?: string; }>; /** * Calculates safe gas limit with buffer */ static calculateSafeGasLimit(baseLimit: BigNumber, bufferPercentage?: number): BigNumber; } //# sourceMappingURL=gasUtils.d.ts.map