import SolanaRpc from '../apis/rpc/solana-rpc'; import { Connection } from '@solana/web3.js'; import CommonApi from '../apis/common-api'; import { UserAddressInfo } from '../types'; import { ImportTokenInfo, IquoteParams } from '../apis/data/index'; export default class SolanaService { wallet: any; web3: any; provider: any; projectId: string; clientKey: string; commonApi: CommonApi; rpc: SolanaRpc; rpcUrl: string; chainName: string; chainId: string; chainType: string; currency: string; constructor(provider: any); request(options?: any): Promise; setCurrency(currency: string): void; getConnection(): Connection; getBalance(): Promise; getNftMetadata(uri: string, useCache?: boolean): Promise; getTokensAndNFTs(useCache?: boolean, tokenAddressList?: string[], isRequest?: boolean): Promise<{ nfts: any; tokens: any; totalPrice: number; exchangeRateData: any; }>; getAddress(): Promise; getPrice(addressList: string[], useCache?: boolean): Promise; getAllToken(): Promise; cancelTransaction(params: any): Promise; speedupTransaction(params: any): Promise; serializeTransaction(type: string, data: {}): Promise; withdraw(): Promise; sendTransaction(mintAddress: string, to?: string, amount?: number): Promise; sendTokenTransaction(mintAddress: string, to: string, amount: number): Promise; sendNftTransaction(mintAddress: string, toAddress: string, tokenId?: string, amount?: number): Promise; getTransactionsListByMint(address?: string, useCache?: boolean): 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; getDecimalsByAddress(address: string): Promise; removeImportTokenData(data: any): Promise; getQuote(params: IquoteParams): Promise; getSymbolByAddress(address: string): Promise; getTokenIconByAddress(address: string, defailtIcon?: boolean): Promise; getSwapTransactions(routeData: any): Promise; tokenSwap(params: IquoteParams): Promise; getNetworkFees(): Promise; }