@multiversx/sdk-dapp-swap
Version:
A library to hold the main logic for swapping between tokens on the MultiversX blockchain
14 lines • 1.13 kB
TypeScript
import { TokenOptionType } from 'types/form.types';
import { Shape } from 'types/yupShape.types';
import { SwapFormType } from 'validation/types/swapForm.types';
import { RuleType } from '../types';
declare type UseSwapValidationSchemaProps = {
firstToken?: TokenOptionType;
firstTokenValidations?: RuleType<string | undefined>[];
minAcceptedAmount?: number;
secondToken?: TokenOptionType;
secondTokenValidations?: RuleType<string | undefined>[];
};
export declare const useSwapValidationSchema: ({ firstToken, secondToken, minAcceptedAmount, firstTokenValidations, secondTokenValidations }: UseSwapValidationSchemaProps) => import("yup").ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, Shape<SwapFormType>>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, Shape<SwapFormType>>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, Shape<SwapFormType>>>>;
export {};
//# sourceMappingURL=useSwapValidationSchema.d.ts.map