0xtrails
Version:
SDK for Trails
30 lines • 1.19 kB
TypeScript
import { default as React } from 'react';
import { Account, WalletClient } from 'viem';
import { TransactionState } from '../../transactions.js';
import { OnCompleteProps } from '../hooks/useSendForm.js';
import { CheckoutOnHandlers } from '../hooks/useCheckout.js';
interface SimpleSwapProps {
onBack?: () => void;
account: Account;
walletClient: WalletClient;
onTransactionStateChange: (transactionStates: TransactionState[]) => void;
onError: (error: Error | string | null) => void;
onWaitingForWalletConfirm: (props: any) => void;
onConfirm: () => void;
onComplete: (result: OnCompleteProps) => void;
onSend: (amount: string, recipient: string) => void;
paymasterUrls?: Array<{
chainId: number;
url: string;
}>;
gasless?: boolean;
setWalletConfirmRetryHandler: (handler: () => Promise<void>) => void;
quoteProvider?: string;
fundMethod?: string;
checkoutOnHandlers?: CheckoutOnHandlers;
showHeader?: boolean;
onTokenSelectorVisibilityChange?: (isVisible: boolean) => void;
}
export declare const SimpleSwap: React.FC<SimpleSwapProps>;
export default SimpleSwap;
//# sourceMappingURL=SimpleSwap.d.ts.map