UNPKG

@multiversx/sdk-dapp-swap

Version:

A library to hold the main logic for swapping between tokens on the MultiversX blockchain

20 lines 1.09 kB
import React from 'react'; import { FactoryType, UserEsdtType, SwapRouteType, SelectOptionType } from 'types'; export interface SwapFormType { tokens: UserEsdtType[]; firstAmount: string; secondAmount: string; firstToken?: SelectOptionType; secondToken?: SelectOptionType; activeRoute?: SwapRouteType; swapConfig?: FactoryType; handleOnSubmit?: () => void; handleSwitchTokens: () => void; handleOnFirstMaxBtnChange: () => void; handleOnChangeFirstAmount: (amount: string) => void; handleOnChangeSecondAmount: (amount: string) => void; handleOnChangeFirstSelect: (option?: SelectOptionType) => void; handleOnChangeSecondSelect: (option?: SelectOptionType) => void; } export declare const SwapForm: ({ tokens, swapConfig, firstToken, firstAmount, secondToken, secondAmount, activeRoute, handleOnChangeFirstAmount, handleOnChangeSecondAmount, handleOnChangeFirstSelect, handleOnChangeSecondSelect, handleOnFirstMaxBtnChange, handleSwitchTokens, handleOnSubmit }: SwapFormType) => React.JSX.Element; //# sourceMappingURL=SwapForm.d.ts.map