@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
22 lines (21 loc) • 708 B
TypeScript
import type { FunAddress } from '@funkit/api-base';
export type FeeValue = {
label: string;
value: number;
};
interface UseTokenTransferResult {
/** where money goes to first */
depositAddress: FunAddress | undefined;
depositAddressTooltip: string;
/** the final destination of the money */
recipientAddr: string;
minTransferUsd: number;
minTransferUsdPerChain: {
[chainId: string]: number;
};
showOriginalRecipient: boolean;
estPriceImpact: FeeValue | undefined;
maxSlippage: FeeValue | undefined;
}
export declare const useTokenTransfer: (selectedChainId: number, selectedToken: string, chainIds?: number[]) => UseTokenTransferResult;
export {};