/****************************************************************************** * * (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 { EventEmitter } from 'events'; import { ProviderService } from '../provider'; export declare class NetworkService extends EventEmitter { private providerService; constructor(providerService: ProviderService); validateNetwork: (dto: { rpcUrl: string; existingRpcUrl?: string; chainId: number; }) => Promise<{ success: boolean; errors?: any; }>; /** * Method to check if the block header contains fields that indicate EIP 1559 * support (baseFeePerGas) AND update db accordingly. * @returns {Promise} true if current network supports EIP 1559 */ setEIP1559Compatibility: (latestBlock: any) => boolean; }