@yoroi/swap
Version:
The Swap package of Yoroi SDK
55 lines • 2.01 kB
TypeScript
import { FetchData } from '@yoroi/common';
import { z } from 'zod';
type SwapConfig = z.infer<typeof SwapConfigResponseSchema>;
type Options = {
request: FetchData;
};
export declare const getSwapConfigApiMaker: ({ request }?: Options) => () => Promise<SwapConfig>;
declare const SwapConfigResponseSchema: z.ZodObject<{
initialPair: z.ZodOptional<z.ZodObject<{
tokenIn: z.ZodEffects<z.ZodString, `${string}.${string}`, string>;
tokenOut: z.ZodEffects<z.ZodString, `${string}.${string}`, string>;
}, "strip", z.ZodTypeAny, {
tokenIn: `${string}.${string}`;
tokenOut: `${string}.${string}`;
}, {
tokenIn: string;
tokenOut: string;
}>>;
verifiedTokens: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `${string}.${string}`, string>, "many">>;
excludedTokens: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `${string}.${string}`, string>, "many">>;
partners: z.ZodOptional<z.ZodObject<{
dexhunter: z.ZodOptional<z.ZodString>;
muesliswap: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
dexhunter?: string | undefined;
muesliswap?: string | undefined;
}, {
dexhunter?: string | undefined;
muesliswap?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
partners?: {
dexhunter?: string | undefined;
muesliswap?: string | undefined;
} | undefined;
initialPair?: {
tokenIn: `${string}.${string}`;
tokenOut: `${string}.${string}`;
} | undefined;
verifiedTokens?: `${string}.${string}`[] | undefined;
excludedTokens?: `${string}.${string}`[] | undefined;
}, {
partners?: {
dexhunter?: string | undefined;
muesliswap?: string | undefined;
} | undefined;
initialPair?: {
tokenIn: string;
tokenOut: string;
} | undefined;
verifiedTokens?: string[] | undefined;
excludedTokens?: string[] | undefined;
}>;
export {};
//# sourceMappingURL=getSwapConfig.d.ts.map