UNPKG

@edgex-web/components

Version:

EdgeX Universal UI Components Library - Reusable React components for deposit, withdraw and other common UI patterns

41 lines (40 loc) 1.2 kB
import { default as React } from 'react'; import { ChainInfo } from '../../../../types'; interface WithdrawViewProps { chains: ChainInfo[]; spotChains?: ChainInfo[]; defaultChainId?: number; defaultTokenAddress?: string; defaultAmount?: string; defaultAccountType?: 'perpetual' | 'spot'; walletType: 'mpc' | 'evm'; currentEquity?: number; platformBalance?: string; balances?: { spot?: Record<string, string>; perpetual?: Record<string, string>; }; fee?: string; isLoading?: boolean; wagmiHooks?: { useBalance: any; useReadContract: any; useAccount: any; }; onWithdraw?: (withdrawInfo: { amount: string; chainId: number; tokenAddress: string; tokenSymbol: string; accountType: 'spot' | 'perpetual'; coinId?: string; receiverAddress?: string; }) => void; onClose: () => void; onChainChange?: (chainId: number) => void; onTokenChange?: (tokenSymbol: string) => void; onAmountChanged?: (amount: string) => void; } export declare const WithdrawView: React.FC<WithdrawViewProps>; export {}; //# sourceMappingURL=index.d.ts.map