UNPKG

@kanalabs/kana-widget-v2

Version:

Kana Widget for cross-chain bridging and swap.

65 lines (64 loc) 2.06 kB
import { NetworkId } from "@kanalabs/aggregator"; import { RefObject } from "react"; interface SourceInfo { chainId: NetworkId; chainName: string; chainImg: string; tokenSymbol: string; tokenImg: string; tokenAmount: string; tokenAddress: string; tokenBalance: number; tokenDollarPrice: number; } interface TargetInfo { chainId: NetworkId; chainName: string; chainImg: string; tokenSymbol: string; tokenImg: string; tokenAmount: string; tokenAddress: string; tokenBalance: number; tokenDollarPrice: number; } interface chainAndTokenListVisibility { visibility: boolean; clickedFrom: string; } interface TokenListProps { sourcePair: NetworkId[]; } interface TokenListProps { isRoutesVisible: boolean; chainAndTokenListVisibility: chainAndTokenListVisibility; setChainAndTokenListVisibility: React.Dispatch<React.SetStateAction<chainAndTokenListVisibility>>; tokenSearchText: string; setTokenSearchText: React.Dispatch<React.SetStateAction<string>>; sourceInfo: SourceInfo; targetInfo: TargetInfo; setTokenListLoading: React.Dispatch<React.SetStateAction<boolean>>; setSourceInfo: React.Dispatch<React.SetStateAction<any>>; setTargetInfo: React.Dispatch<React.SetStateAction<any>>; setRoutesVisibility: React.Dispatch<React.SetStateAction<boolean>>; isTokenListLoading: boolean; copyHash: (hash: any) => Promise<void>; sourcePair: NetworkId[]; targetPair: NetworkId[]; ref2: RefObject<HTMLDivElement>; ref3: RefObject<HTMLDivElement>; ref6: RefObject<HTMLDivElement>; ref7: RefObject<HTMLDivElement>; sourceTokenList: any; targetTokenList: any; props: any; tokenConfig: any; crosschaintokenConfig: any; observer: any; fetchError: string | null; } interface TokenListRef { selectChain: (chainId: number) => void; } declare const TokenList: import("react").ForwardRefExoticComponent<TokenListProps & import("react").RefAttributes<TokenListRef>>; export default TokenList;