/****************************************************************************** * * (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 { NetworkModel } from '../main/transactions/interface'; import { Account } from '../schema/model'; export declare const isKlaytn: (chainId: number) => boolean; export declare const isMatic: (chainId: number) => boolean; export declare const isEthereumMainnet: (chainId: number) => boolean; export declare const isKlaytnMainnet: (chainId: number) => boolean; export declare const isEthereum: (chainId: number) => boolean; export declare const isBinance: (chainId: number) => boolean; export declare const isWebsocket: (rpcUrl: string) => boolean; export declare const isL2: (chainId: number) => { id: string; name: string; rpcUrl: string; chainId: number; target: string; isCustom: boolean; symbol: string; blockExplorerUrl: string; iconUrl: string; assetName: string; }; export declare const supportsEIP1559: (network: NetworkModel) => boolean; export declare const createNetwork: ({ rpcUrl, blockExplorerUrl, symbol, chainId, name }: { rpcUrl: any; blockExplorerUrl: any; symbol: any; chainId: any; name: any; }) => { id: string; rpcUrl: string; blockExplorerUrl: string; name: any; symbol: any; chainId: number; isCustom: boolean; target: string; iconUrl: string; }; export declare const updateNetworkUtil: ({ networks, blockExplorerUrl, rpcUrl, symbol, chainId, networkId, name }: { networks: any; blockExplorerUrl: any; rpcUrl: any; symbol: any; chainId: any; networkId: any; name: any; }) => any; export declare const getEtherscanApiUrl: (chainId: number) => any; export declare const getBlockExplorerUrlForTx: (blockExplorerUrl: string, hash: string) => string; export declare const getProviderNetworkState: (chainId?: number) => { chainId?: undefined; networkVersion?: undefined; } | { chainId: any; networkVersion: string | number; }; export declare const getApiKey: (chainId?: number) => string; export declare const makeFetchEtherscanTokenTxsParmas: ({ contractaddress, address, startblock, apikey }: { contractaddress: any; address: any; startblock: any; apikey: any; }) => { module: string; action: string; contractaddress: any; address: any; startblock: any; endBlock: number; page: number; offset: number; sort: string; apikey: any; }; export declare const makeFetchKlaytnTokenTxsConfig: ({ fromTimestamp, contractAddress, chainId }: { fromTimestamp: any; contractAddress: any; chainId: any; }) => { params: { range: any; kind: string; 'ca-filter': any; }; auth: { username: string; password: string; Authorization: string; }; headers: { 'x-chain-id': number; 'Content-Type': string; }; }; export declare const makeKlaytnApiServiceDefaultConfig: (chainId: number) => { auth: { username: string; password: string; Authorization: string; }; headers: { 'x-chain-id': number; 'Content-Type': string; }; }; export declare const showEip1559Gas: (network: NetworkModel, account: Account) => boolean; export declare const getCoingeckoNetworkName: (network: NetworkModel) => "klay-token" | "ethereum" | "matic-network" | "binancecoin";