0xtrails
Version:
SDK for Trails
41 lines • 1.53 kB
TypeScript
import { default as React } from 'react';
import { Account, WalletClient } from 'viem';
import { TransactionState } from '../../transactions.js';
import { OnCompleteProps, Token } from '../hooks/useSendForm.js';
import { CheckoutOnHandlers } from '../hooks/useCheckout.js';
import { PrepareSendQuote } from '../../prepareSend.js';
interface FundSendFormProps {
selectedToken: Token;
onSend: (amount: string, recipient: string) => void;
onBack?: () => void;
onConfirm: () => void;
onComplete: (result: OnCompleteProps) => void;
account: Account;
toRecipient?: string;
toAmount?: string;
toChainId?: number;
toToken?: string;
toCalldata?: string;
walletClient: WalletClient;
onTransactionStateChange: (transactionStates: TransactionState[]) => void;
onError: (error: Error | string | null) => void;
onWaitingForWalletConfirm: (props: PrepareSendQuote) => void;
paymasterUrls?: Array<{
chainId: number;
url: string;
}>;
gasless?: boolean;
setWalletConfirmRetryHandler: (handler: () => Promise<void>) => void;
quoteProvider?: string;
fundMethod?: string;
onNavigateToMeshConnect?: (props: {
toTokenSymbol: string;
toTokenAmount: string;
toChainId: number;
toRecipientAddress: string;
}, quote?: PrepareSendQuote | null) => void;
checkoutOnHandlers?: CheckoutOnHandlers;
}
export declare const FundSendForm: React.FC<FundSendFormProps>;
export {};
//# sourceMappingURL=FundSendForm.d.ts.map