/****************************************************************************** * * (C) 2022 AhnLab Blockchain Company, Inc. All rights reserved. * Any part of this source code can not be copied with any method without * prior written permission from the author or authorized person. * ******************************************************************************/ import { ProviderConnectionManager } from '../provider/connectionManager'; import { NetworkService } from '../network'; import { GasFeeService } from './gasFee'; export declare class GasService { private providerConnManager; gasNowData: any; isGasnowConnected: boolean; constructor(providerConnManager: ProviderConnectionManager); makeAutoconfirmGasData: ({ networkService, gasFeeService, latestBlock, }: { networkService: NetworkService; gasFeeService: GasFeeService; latestBlock: { baseFeePerGas: string; }; }) => Promise<{ gasPrice: any; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; } | { maxFeePerGas: string; maxPriorityFeePerGas: string; gasPrice?: undefined; }>; getGasLimit({ contractAddress, to, from, latestBlock, value, }: { contractAddress?: string; to: string; from: string; latestBlock: any; value: string; }): Promise; analyzeGasUsage: (txMeta: any, block: any) => Promise<{ blockGasLimit: any; estimatedGasHex: any; simulationFails: any; }>; getGasPrice(): Promise; }