import CommonApi from '../apis/common-api'; import EvmRpc from '../apis/rpc/evm-rpc'; import { UserAddressInfo } from '../types'; import { ImportTokenInfo, IquoteParams } from '../apis/data/index'; export default class EvmService { wallet: any; web3: any; provider: any; projectId: string; clientKey: string; commonApi: CommonApi; rpc: EvmRpc; rpcUrl: string; chainType: string; chainName: string; chainId: string; transactionChainType: string; currency: string; constructor(provider: any); request(options?: any): Promise; setCurrency(currency: string): void; getBalance(): Promise; getTokensAndNFTs(useCache?: boolean, tokenAddressList?: string[], isRequest?: boolean): Promise; getAddress(): Promise; getPrice(addressList: string[]): Promise; getAllToken(): Promise; getNetworkFees(from: string, to: string, amount: number): Promise; private nativeTransactionParams; private erc20TransactionParams; private erc721TransactionParams; sendNftTransaction(nftAddress: string, toAddress: string, tokenId: string, amount?: number): Promise; sendTransaction(from: string, to?: string, amount?: number): Promise; private getTransactionChainType; private getSpeedupAndCancelMaxFeePerGasParams; cancelTransaction(params: any): Promise; speedupTransaction(params: any): Promise; getTransactionsList(address?: string, useCache?: boolean): Promise; getTokensByTokenAddresses(tokenAddressList: string[]): Promise; getEstimateGas(params: any): Promise; getSuggestedGasFees(): Promise; addUserAddress(params: UserAddressInfo): Promise; getUserAddress(params?: any): Promise; deleteUserAddress(id: string): Promise; addCustomToken(params: any): Promise; updateCustomTokenByAddress(address: string, type: string): Promise; addCustomTokenList(params: any): Promise; getCustomTokenList(): Promise; addImportTokenData(params: ImportTokenInfo): Promise; getImpoertTokenList(params: any): Promise; withdraw(): Promise; getDecimalsByAddress(address: string): Promise; removeImportTokenData(data: any): Promise; getTokenIconByAddress(address: string): Promise; getQuote(params: IquoteParams): Promise; getSwapTransactions(routeData: any): Promise; getTransactionReceipt(params: any): Promise; tokenSwap(params: IquoteParams): Promise<{ txId: unknown; }[]>; getSymbolByAddress(address: string): Promise; }