UNPKG

@kanalabs/kana-widget-v2

Version:

Kana Widget for cross-chain bridging and swap.

45 lines (44 loc) 1.31 kB
import { NetworkId } from "@kanalabs/aggregator"; import { AptosWalletFilter, ChainType } from "types"; import { RefObject } from "react"; interface WalletConnectVisibility { visibility: boolean; clickedFrom: string; } 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; } export interface WalletConnectViewProps { isRoutesVisible: boolean; walletConnectVisibility: WalletConnectVisibility; sourceInfo: SourceInfo; targetInfo: TargetInfo; aptosWallets: AptosWalletFilter[]; setWalletConnectVisibility: React.Dispatch<React.SetStateAction<WalletConnectVisibility>>; ref4: RefObject<HTMLElement | null>; ref9: RefObject<HTMLElement | null>; paymasterApikey: string; googleClientId: string; isChainType: ChainType; } declare const WalletConnectView: React.FC<WalletConnectViewProps>; export default WalletConnectView;