UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

21 lines (20 loc) 798 B
import { Dispatch, FC, SetStateAction } from 'react'; import { TokenBalance } from '@dynamic-labs/sdk-api-core'; import { IUITransaction } from '@dynamic-labs/types'; export type SendBalanceFormValues = { amount: string; recipient: string; }; export type Props = { initialValues?: SendBalanceFormValues; onSubmit: (formValues: SendBalanceFormValues) => void; decimals?: number; validateAddress?: (address: string | undefined) => boolean; validateAmount?: (amount: string | undefined) => boolean; currentToken: TokenBalance | undefined; tokenBalances: TokenBalance[] | undefined; setCurrentToken: Dispatch<SetStateAction<TokenBalance | undefined>>; isLoading?: boolean; transaction: IUITransaction; }; export declare const SendBalanceForm: FC<Props>;