@swapkit/helpers 6.2.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/api/index.js +1 -1
- package/dist/chunk-8wabqp6d.js +5 -0
- package/dist/index.js +1 -1
- package/dist/types/api/index.d.ts +257 -0
- package/dist/types/api/swapkitApi/endpoints.d.ts +258 -1
- package/dist/types/api/swapkitApi/types.d.ts +585 -57
- package/dist/types/modules/assetValue.d.ts +1 -1
- package/dist/types/modules/swapKitConfig.d.ts +11 -1
- package/dist/types/modules/swapKitError.d.ts +16 -0
- package/dist/types/types/wallet.d.ts +9 -0
- package/dist/types/utils/chains.d.ts +3 -1
- package/dist/types/utils/wallets.d.ts +2 -1
- package/package.json +3 -3
- package/dist/chunk-d8rmhscp.js +0 -5
|
@@ -1236,10 +1236,10 @@ export declare const RouteLegSchema: z.ZodObject<{
|
|
|
1236
1236
|
export type RouteLeg = z.infer<typeof RouteLegSchema>;
|
|
1237
1237
|
export declare const RouteLegWithoutAddressesSchema: z.ZodObject<{
|
|
1238
1238
|
affiliate: z.ZodOptional<z.ZodString>;
|
|
1239
|
-
affiliateFee: z.ZodOptional<z.ZodNumber>;
|
|
1240
1239
|
buyAsset: z.ZodString;
|
|
1241
|
-
sellAsset: z.ZodString;
|
|
1242
1240
|
provider: z.ZodEnum<typeof ProviderName>;
|
|
1241
|
+
sellAsset: z.ZodString;
|
|
1242
|
+
affiliateFee: z.ZodOptional<z.ZodNumber>;
|
|
1243
1243
|
estimatedTime: z.ZodOptional<z.ZodObject<{
|
|
1244
1244
|
inbound: z.ZodOptional<z.ZodNumber>;
|
|
1245
1245
|
outbound: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1907,10 +1907,12 @@ declare const QuoteV3NextActionSchema: z.ZodObject<{
|
|
|
1907
1907
|
url: z.ZodString;
|
|
1908
1908
|
}, z.core.$strip>;
|
|
1909
1909
|
declare const QuoteRouteV3ResponseSchema: z.ZodObject<{
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1910
|
+
routeId: z.ZodString;
|
|
1911
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
1912
|
+
code: z.ZodEnum<typeof WarningCodeEnum>;
|
|
1913
|
+
display: z.ZodString;
|
|
1914
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
1915
|
+
}, z.core.$strip>>;
|
|
1914
1916
|
fees: z.ZodArray<z.ZodObject<{
|
|
1915
1917
|
amount: z.ZodString;
|
|
1916
1918
|
asset: z.ZodString;
|
|
@@ -1918,11 +1920,11 @@ declare const QuoteRouteV3ResponseSchema: z.ZodObject<{
|
|
|
1918
1920
|
protocol: z.ZodEnum<typeof ProviderName>;
|
|
1919
1921
|
type: z.ZodEnum<typeof FeeTypeEnum>;
|
|
1920
1922
|
}, z.core.$strip>>;
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1923
|
+
buyAmount: z.ZodOptional<z.ZodString>;
|
|
1924
|
+
buyAsset: z.ZodString;
|
|
1925
|
+
sellAmount: z.ZodString;
|
|
1926
|
+
sellAsset: z.ZodString;
|
|
1927
|
+
providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
|
|
1926
1928
|
estimatedTime: z.ZodOptional<z.ZodObject<{
|
|
1927
1929
|
inbound: z.ZodOptional<z.ZodNumber>;
|
|
1928
1930
|
outbound: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1949,9 +1951,7 @@ declare const QuoteRouteV3ResponseSchema: z.ZodObject<{
|
|
|
1949
1951
|
sellAmount: z.ZodString;
|
|
1950
1952
|
sellAsset: z.ZodString;
|
|
1951
1953
|
}, z.core.$strip>>;
|
|
1952
|
-
buyAmount: z.ZodOptional<z.ZodString>;
|
|
1953
1954
|
buyAmountMaxSlippage: z.ZodOptional<z.ZodString>;
|
|
1954
|
-
routeId: z.ZodString;
|
|
1955
1955
|
totalSlippageBps: z.ZodNumber;
|
|
1956
1956
|
meta: z.ZodObject<{
|
|
1957
1957
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1979,10 +1979,12 @@ export declare const QuoteV3ResponseSchema: z.ZodObject<{
|
|
|
1979
1979
|
}, z.core.$strip>>>;
|
|
1980
1980
|
quoteId: z.ZodString;
|
|
1981
1981
|
routes: z.ZodArray<z.ZodObject<{
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1982
|
+
routeId: z.ZodString;
|
|
1983
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
1984
|
+
code: z.ZodEnum<typeof WarningCodeEnum>;
|
|
1985
|
+
display: z.ZodString;
|
|
1986
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
}, z.core.$strip>>;
|
|
1986
1988
|
fees: z.ZodArray<z.ZodObject<{
|
|
1987
1989
|
amount: z.ZodString;
|
|
1988
1990
|
asset: z.ZodString;
|
|
@@ -1990,11 +1992,11 @@ export declare const QuoteV3ResponseSchema: z.ZodObject<{
|
|
|
1990
1992
|
protocol: z.ZodEnum<typeof ProviderName>;
|
|
1991
1993
|
type: z.ZodEnum<typeof FeeTypeEnum>;
|
|
1992
1994
|
}, z.core.$strip>>;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1995
|
+
buyAmount: z.ZodOptional<z.ZodString>;
|
|
1996
|
+
buyAsset: z.ZodString;
|
|
1997
|
+
sellAmount: z.ZodString;
|
|
1998
|
+
sellAsset: z.ZodString;
|
|
1999
|
+
providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
|
|
1998
2000
|
estimatedTime: z.ZodOptional<z.ZodObject<{
|
|
1999
2001
|
inbound: z.ZodOptional<z.ZodNumber>;
|
|
2000
2002
|
outbound: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2021,9 +2023,7 @@ export declare const QuoteV3ResponseSchema: z.ZodObject<{
|
|
|
2021
2023
|
sellAmount: z.ZodString;
|
|
2022
2024
|
sellAsset: z.ZodString;
|
|
2023
2025
|
}, z.core.$strip>>;
|
|
2024
|
-
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2025
2026
|
buyAmountMaxSlippage: z.ZodOptional<z.ZodString>;
|
|
2026
|
-
routeId: z.ZodString;
|
|
2027
2027
|
totalSlippageBps: z.ZodNumber;
|
|
2028
2028
|
meta: z.ZodObject<{
|
|
2029
2029
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2071,10 +2071,12 @@ export declare const SwapToResponseSchema: z.ZodObject<{
|
|
|
2071
2071
|
}, z.core.$strip>;
|
|
2072
2072
|
export type SwapToResponse = z.infer<typeof SwapToResponseSchema>;
|
|
2073
2073
|
export declare const QuoteRouteV2Response: z.ZodObject<{
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2074
|
+
routeId: z.ZodString;
|
|
2075
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
2076
|
+
code: z.ZodEnum<typeof WarningCodeEnum>;
|
|
2077
|
+
display: z.ZodString;
|
|
2078
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
}, z.core.$strip>>;
|
|
2078
2080
|
fees: z.ZodArray<z.ZodObject<{
|
|
2079
2081
|
amount: z.ZodString;
|
|
2080
2082
|
asset: z.ZodString;
|
|
@@ -2082,11 +2084,11 @@ export declare const QuoteRouteV2Response: z.ZodObject<{
|
|
|
2082
2084
|
protocol: z.ZodEnum<typeof ProviderName>;
|
|
2083
2085
|
type: z.ZodEnum<typeof FeeTypeEnum>;
|
|
2084
2086
|
}, z.core.$strip>>;
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2087
|
+
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2088
|
+
buyAsset: z.ZodString;
|
|
2089
|
+
sellAmount: z.ZodString;
|
|
2090
|
+
sellAsset: z.ZodString;
|
|
2091
|
+
providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
|
|
2090
2092
|
estimatedTime: z.ZodOptional<z.ZodObject<{
|
|
2091
2093
|
inbound: z.ZodOptional<z.ZodNumber>;
|
|
2092
2094
|
outbound: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2113,9 +2115,7 @@ export declare const QuoteRouteV2Response: z.ZodObject<{
|
|
|
2113
2115
|
sellAmount: z.ZodString;
|
|
2114
2116
|
sellAsset: z.ZodString;
|
|
2115
2117
|
}, z.core.$strip>>;
|
|
2116
|
-
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2117
2118
|
buyAmountMaxSlippage: z.ZodOptional<z.ZodString>;
|
|
2118
|
-
routeId: z.ZodString;
|
|
2119
2119
|
totalSlippageBps: z.ZodNumber;
|
|
2120
2120
|
destinationAddress: z.ZodString;
|
|
2121
2121
|
inboundAddress: z.ZodOptional<z.ZodString>;
|
|
@@ -2295,10 +2295,12 @@ export declare const QuoteV2ResponseSchema: z.ZodObject<{
|
|
|
2295
2295
|
}, z.core.$strip>>>;
|
|
2296
2296
|
quoteId: z.ZodString;
|
|
2297
2297
|
routes: z.ZodArray<z.ZodObject<{
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2298
|
+
routeId: z.ZodString;
|
|
2299
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
2300
|
+
code: z.ZodEnum<typeof WarningCodeEnum>;
|
|
2301
|
+
display: z.ZodString;
|
|
2302
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
2303
|
+
}, z.core.$strip>>;
|
|
2302
2304
|
fees: z.ZodArray<z.ZodObject<{
|
|
2303
2305
|
amount: z.ZodString;
|
|
2304
2306
|
asset: z.ZodString;
|
|
@@ -2306,11 +2308,11 @@ export declare const QuoteV2ResponseSchema: z.ZodObject<{
|
|
|
2306
2308
|
protocol: z.ZodEnum<typeof ProviderName>;
|
|
2307
2309
|
type: z.ZodEnum<typeof FeeTypeEnum>;
|
|
2308
2310
|
}, z.core.$strip>>;
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2311
|
+
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2312
|
+
buyAsset: z.ZodString;
|
|
2313
|
+
sellAmount: z.ZodString;
|
|
2314
|
+
sellAsset: z.ZodString;
|
|
2315
|
+
providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
|
|
2314
2316
|
estimatedTime: z.ZodOptional<z.ZodObject<{
|
|
2315
2317
|
inbound: z.ZodOptional<z.ZodNumber>;
|
|
2316
2318
|
outbound: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2337,9 +2339,7 @@ export declare const QuoteV2ResponseSchema: z.ZodObject<{
|
|
|
2337
2339
|
sellAmount: z.ZodString;
|
|
2338
2340
|
sellAsset: z.ZodString;
|
|
2339
2341
|
}, z.core.$strip>>;
|
|
2340
|
-
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2341
2342
|
buyAmountMaxSlippage: z.ZodOptional<z.ZodString>;
|
|
2342
|
-
routeId: z.ZodString;
|
|
2343
2343
|
totalSlippageBps: z.ZodNumber;
|
|
2344
2344
|
destinationAddress: z.ZodString;
|
|
2345
2345
|
inboundAddress: z.ZodOptional<z.ZodString>;
|
|
@@ -2506,10 +2506,12 @@ export declare const QuoteV2ResponseSchema: z.ZodObject<{
|
|
|
2506
2506
|
export type QuoteV2Response = z.infer<typeof QuoteV2ResponseSchema>;
|
|
2507
2507
|
export type QuoteRouteV2Response = z.infer<typeof QuoteRouteV2Response>;
|
|
2508
2508
|
export declare const SwapRouteV2ResponseSchema: z.ZodObject<{
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2509
|
+
routeId: z.ZodString;
|
|
2510
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
2511
|
+
code: z.ZodEnum<typeof WarningCodeEnum>;
|
|
2512
|
+
display: z.ZodString;
|
|
2513
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
2514
|
+
}, z.core.$strip>>;
|
|
2513
2515
|
fees: z.ZodArray<z.ZodObject<{
|
|
2514
2516
|
amount: z.ZodString;
|
|
2515
2517
|
asset: z.ZodString;
|
|
@@ -2517,11 +2519,11 @@ export declare const SwapRouteV2ResponseSchema: z.ZodObject<{
|
|
|
2517
2519
|
protocol: z.ZodEnum<typeof ProviderName>;
|
|
2518
2520
|
type: z.ZodEnum<typeof FeeTypeEnum>;
|
|
2519
2521
|
}, z.core.$strip>>;
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2522
|
+
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2523
|
+
buyAsset: z.ZodString;
|
|
2524
|
+
sellAmount: z.ZodString;
|
|
2525
|
+
sellAsset: z.ZodString;
|
|
2526
|
+
providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
|
|
2525
2527
|
estimatedTime: z.ZodOptional<z.ZodObject<{
|
|
2526
2528
|
inbound: z.ZodOptional<z.ZodNumber>;
|
|
2527
2529
|
outbound: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2548,9 +2550,7 @@ export declare const SwapRouteV2ResponseSchema: z.ZodObject<{
|
|
|
2548
2550
|
sellAmount: z.ZodString;
|
|
2549
2551
|
sellAsset: z.ZodString;
|
|
2550
2552
|
}, z.core.$strip>>;
|
|
2551
|
-
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2552
2553
|
buyAmountMaxSlippage: z.ZodOptional<z.ZodString>;
|
|
2553
|
-
routeId: z.ZodString;
|
|
2554
2554
|
totalSlippageBps: z.ZodNumber;
|
|
2555
2555
|
destinationAddress: z.ZodString;
|
|
2556
2556
|
inboundAddress: z.ZodOptional<z.ZodString>;
|
|
@@ -2731,4 +2731,532 @@ export declare const SwapRouteV2ResponseSchema: z.ZodObject<{
|
|
|
2731
2731
|
swapId: z.ZodString;
|
|
2732
2732
|
}, z.core.$strip>;
|
|
2733
2733
|
export type SwapRouteV2Response = z.infer<typeof SwapRouteV2ResponseSchema>;
|
|
2734
|
+
export declare const LimitOrderStatus: {
|
|
2735
|
+
readonly CANCELLED: "CANCELLED";
|
|
2736
|
+
readonly EXPIRED: "EXPIRED";
|
|
2737
|
+
readonly FAILED: "FAILED";
|
|
2738
|
+
readonly FILLED: "FILLED";
|
|
2739
|
+
readonly OPEN: "OPEN";
|
|
2740
|
+
readonly PARTIAL: "PARTIAL";
|
|
2741
|
+
readonly PENDING: "PENDING";
|
|
2742
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
2743
|
+
};
|
|
2744
|
+
export type LimitOrderStatus = (typeof LimitOrderStatus)[keyof typeof LimitOrderStatus];
|
|
2745
|
+
export declare const LimitOrderTxType: {
|
|
2746
|
+
readonly Cardano: "cardano";
|
|
2747
|
+
readonly Evm: "evm";
|
|
2748
|
+
readonly Near: "near";
|
|
2749
|
+
readonly Psbt: "psbt";
|
|
2750
|
+
readonly Ripple: "ripple";
|
|
2751
|
+
readonly Solana: "solana";
|
|
2752
|
+
readonly Starknet: "starknet";
|
|
2753
|
+
readonly Stellar: "stellar";
|
|
2754
|
+
readonly Sui: "sui";
|
|
2755
|
+
readonly Ton: "ton";
|
|
2756
|
+
readonly Tron: "tron";
|
|
2757
|
+
};
|
|
2758
|
+
export type LimitOrderTxType = (typeof LimitOrderTxType)[keyof typeof LimitOrderTxType];
|
|
2759
|
+
export declare const LimitOrderTokensResponseSchema: z.ZodObject<{
|
|
2760
|
+
crossChain: z.ZodArray<z.ZodObject<{
|
|
2761
|
+
assets: z.ZodArray<z.ZodString>;
|
|
2762
|
+
chainIds: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>>;
|
|
2763
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2764
|
+
}, z.core.$strip>>;
|
|
2765
|
+
singleChain: z.ZodArray<z.ZodObject<{
|
|
2766
|
+
assets: z.ZodArray<z.ZodString>;
|
|
2767
|
+
chainId: z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2768
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2769
|
+
}, z.core.$strip>>;
|
|
2770
|
+
}, z.core.$strip>;
|
|
2771
|
+
export type LimitOrderTokensResponse = z.infer<typeof LimitOrderTokensResponseSchema>;
|
|
2772
|
+
export declare const LimitOrderQuoteRequestSchema: z.ZodObject<{
|
|
2773
|
+
affiliateFee: z.ZodOptional<z.ZodNumber>;
|
|
2774
|
+
buyAmount: z.ZodOptional<z.ZodString>;
|
|
2775
|
+
buyAsset: z.ZodString;
|
|
2776
|
+
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
2777
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
2778
|
+
limitPrice: z.ZodOptional<z.ZodString>;
|
|
2779
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof ProviderName>>>;
|
|
2780
|
+
sellAmount: z.ZodOptional<z.ZodString>;
|
|
2781
|
+
sellAsset: z.ZodString;
|
|
2782
|
+
sourceAddress: z.ZodOptional<z.ZodString>;
|
|
2783
|
+
}, z.core.$strip>;
|
|
2784
|
+
export type LimitOrderQuoteRequest = z.infer<typeof LimitOrderQuoteRequestSchema>;
|
|
2785
|
+
export declare const LimitOrderQuoteRouteSchema: z.ZodObject<{
|
|
2786
|
+
buyAmount: z.ZodString;
|
|
2787
|
+
buyAsset: z.ZodString;
|
|
2788
|
+
effectiveFillPrice: z.ZodString;
|
|
2789
|
+
fees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2790
|
+
amount: z.ZodString;
|
|
2791
|
+
amountBps: z.ZodOptional<z.ZodNumber>;
|
|
2792
|
+
asset: z.ZodString;
|
|
2793
|
+
chain: z.ZodString;
|
|
2794
|
+
protocol: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2795
|
+
type: z.ZodUnion<readonly [z.ZodEnum<typeof FeeTypeEnum>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2796
|
+
}, z.core.$strip>>>;
|
|
2797
|
+
integratorFeeBps: z.ZodNumber;
|
|
2798
|
+
limitPrice: z.ZodString;
|
|
2799
|
+
maxExpirationSeconds: z.ZodNumber;
|
|
2800
|
+
minExpirationSeconds: z.ZodNumber;
|
|
2801
|
+
nextActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2802
|
+
method: z.ZodString;
|
|
2803
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
2804
|
+
url: z.ZodString;
|
|
2805
|
+
}, z.core.$strip>>>;
|
|
2806
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2807
|
+
routeId: z.ZodString;
|
|
2808
|
+
sellAmount: z.ZodString;
|
|
2809
|
+
sellAsset: z.ZodString;
|
|
2810
|
+
spotPrice: z.ZodString;
|
|
2811
|
+
spotPriceDeviationBps: z.ZodNumber;
|
|
2812
|
+
takerFeeBps: z.ZodNumber;
|
|
2813
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2814
|
+
code: z.ZodString;
|
|
2815
|
+
display: z.ZodString;
|
|
2816
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
2817
|
+
}, z.core.$strip>>>;
|
|
2818
|
+
}, z.core.$strip>;
|
|
2819
|
+
export type LimitOrderQuoteRoute = z.infer<typeof LimitOrderQuoteRouteSchema>;
|
|
2820
|
+
export declare const LimitOrderQuoteResponseSchema: z.ZodObject<{
|
|
2821
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2822
|
+
providerErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2823
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
2824
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2825
|
+
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>>;
|
|
2826
|
+
}, z.core.$strip>>>;
|
|
2827
|
+
quoteId: z.ZodString;
|
|
2828
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
2829
|
+
buyAmount: z.ZodString;
|
|
2830
|
+
buyAsset: z.ZodString;
|
|
2831
|
+
effectiveFillPrice: z.ZodString;
|
|
2832
|
+
fees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2833
|
+
amount: z.ZodString;
|
|
2834
|
+
amountBps: z.ZodOptional<z.ZodNumber>;
|
|
2835
|
+
asset: z.ZodString;
|
|
2836
|
+
chain: z.ZodString;
|
|
2837
|
+
protocol: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2838
|
+
type: z.ZodUnion<readonly [z.ZodEnum<typeof FeeTypeEnum>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2839
|
+
}, z.core.$strip>>>;
|
|
2840
|
+
integratorFeeBps: z.ZodNumber;
|
|
2841
|
+
limitPrice: z.ZodString;
|
|
2842
|
+
maxExpirationSeconds: z.ZodNumber;
|
|
2843
|
+
minExpirationSeconds: z.ZodNumber;
|
|
2844
|
+
nextActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2845
|
+
method: z.ZodString;
|
|
2846
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
2847
|
+
url: z.ZodString;
|
|
2848
|
+
}, z.core.$strip>>>;
|
|
2849
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
2850
|
+
routeId: z.ZodString;
|
|
2851
|
+
sellAmount: z.ZodString;
|
|
2852
|
+
sellAsset: z.ZodString;
|
|
2853
|
+
spotPrice: z.ZodString;
|
|
2854
|
+
spotPriceDeviationBps: z.ZodNumber;
|
|
2855
|
+
takerFeeBps: z.ZodNumber;
|
|
2856
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2857
|
+
code: z.ZodString;
|
|
2858
|
+
display: z.ZodString;
|
|
2859
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
2860
|
+
}, z.core.$strip>>>;
|
|
2861
|
+
}, z.core.$strip>>;
|
|
2862
|
+
}, z.core.$strip>;
|
|
2863
|
+
export type LimitOrderQuoteResponse = z.infer<typeof LimitOrderQuoteResponseSchema>;
|
|
2864
|
+
export declare const LimitOrderBuildRequestSchema: z.ZodObject<{
|
|
2865
|
+
allowMultipleFills: z.ZodOptional<z.ZodBoolean>;
|
|
2866
|
+
allowPartialFill: z.ZodOptional<z.ZodBoolean>;
|
|
2867
|
+
destinationAddress: z.ZodString;
|
|
2868
|
+
expiresAt: z.ZodNumber;
|
|
2869
|
+
routeId: z.ZodString;
|
|
2870
|
+
sourceAddress: z.ZodString;
|
|
2871
|
+
}, z.core.$strip>;
|
|
2872
|
+
export type LimitOrderBuildRequest = z.infer<typeof LimitOrderBuildRequestSchema>;
|
|
2873
|
+
export declare const LimitOrderTypedDataSchema: z.ZodObject<{
|
|
2874
|
+
domain: z.ZodObject<{
|
|
2875
|
+
chainId: z.ZodNumber;
|
|
2876
|
+
name: z.ZodString;
|
|
2877
|
+
verifyingContract: z.ZodString;
|
|
2878
|
+
version: z.ZodString;
|
|
2879
|
+
}, z.core.$loose>;
|
|
2880
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2881
|
+
primaryType: z.ZodString;
|
|
2882
|
+
types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2883
|
+
name: z.ZodString;
|
|
2884
|
+
type: z.ZodString;
|
|
2885
|
+
}, z.core.$strip>>>;
|
|
2886
|
+
}, z.core.$strip>;
|
|
2887
|
+
export type LimitOrderTypedData = z.infer<typeof LimitOrderTypedDataSchema>;
|
|
2888
|
+
export declare const LimitOrderEVMTransactionSchema: z.ZodObject<{
|
|
2889
|
+
data: z.ZodString;
|
|
2890
|
+
from: z.ZodOptional<z.ZodString>;
|
|
2891
|
+
gas: z.ZodOptional<z.ZodString>;
|
|
2892
|
+
gasPrice: z.ZodOptional<z.ZodString>;
|
|
2893
|
+
maxFeePerGas: z.ZodOptional<z.ZodString>;
|
|
2894
|
+
maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
|
|
2895
|
+
to: z.ZodString;
|
|
2896
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2897
|
+
value: z.ZodString;
|
|
2898
|
+
}, z.core.$strict>;
|
|
2899
|
+
export type LimitOrderEVMTransaction = z.infer<typeof LimitOrderEVMTransactionSchema>;
|
|
2900
|
+
export declare const LimitOrderTxMetaSchema: z.ZodObject<{
|
|
2901
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
2902
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
2903
|
+
txType: z.ZodEnum<{
|
|
2904
|
+
readonly Cardano: "cardano";
|
|
2905
|
+
readonly Evm: "evm";
|
|
2906
|
+
readonly Near: "near";
|
|
2907
|
+
readonly Psbt: "psbt";
|
|
2908
|
+
readonly Ripple: "ripple";
|
|
2909
|
+
readonly Solana: "solana";
|
|
2910
|
+
readonly Starknet: "starknet";
|
|
2911
|
+
readonly Stellar: "stellar";
|
|
2912
|
+
readonly Sui: "sui";
|
|
2913
|
+
readonly Ton: "ton";
|
|
2914
|
+
readonly Tron: "tron";
|
|
2915
|
+
}>;
|
|
2916
|
+
}, z.core.$strip>;
|
|
2917
|
+
export type LimitOrderTxMeta = z.infer<typeof LimitOrderTxMetaSchema>;
|
|
2918
|
+
export declare const LimitOrderApprovalTxSchema: z.ZodObject<{
|
|
2919
|
+
data: z.ZodString;
|
|
2920
|
+
from: z.ZodString;
|
|
2921
|
+
gasLimit: z.ZodOptional<z.ZodString>;
|
|
2922
|
+
gasPrice: z.ZodOptional<z.ZodString>;
|
|
2923
|
+
to: z.ZodString;
|
|
2924
|
+
value: z.ZodString;
|
|
2925
|
+
}, z.core.$strip>;
|
|
2926
|
+
export declare const LimitOrderBuildResponseSchema: z.ZodObject<{
|
|
2927
|
+
approvalTx: z.ZodOptional<z.ZodObject<{
|
|
2928
|
+
data: z.ZodString;
|
|
2929
|
+
from: z.ZodString;
|
|
2930
|
+
gasLimit: z.ZodOptional<z.ZodString>;
|
|
2931
|
+
gasPrice: z.ZodOptional<z.ZodString>;
|
|
2932
|
+
to: z.ZodString;
|
|
2933
|
+
value: z.ZodString;
|
|
2934
|
+
}, z.core.$strip>>;
|
|
2935
|
+
depositAddress: z.ZodOptional<z.ZodString>;
|
|
2936
|
+
depositAmount: z.ZodOptional<z.ZodString>;
|
|
2937
|
+
depositMemo: z.ZodOptional<z.ZodString>;
|
|
2938
|
+
isApproved: z.ZodOptional<z.ZodBoolean>;
|
|
2939
|
+
nextActions: z.ZodArray<z.ZodObject<{
|
|
2940
|
+
method: z.ZodString;
|
|
2941
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
2942
|
+
url: z.ZodString;
|
|
2943
|
+
}, z.core.$strip>>;
|
|
2944
|
+
orderHash: z.ZodString;
|
|
2945
|
+
orderId: z.ZodString;
|
|
2946
|
+
tx: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2947
|
+
data: z.ZodString;
|
|
2948
|
+
from: z.ZodOptional<z.ZodString>;
|
|
2949
|
+
gas: z.ZodOptional<z.ZodString>;
|
|
2950
|
+
gasPrice: z.ZodOptional<z.ZodString>;
|
|
2951
|
+
maxFeePerGas: z.ZodOptional<z.ZodString>;
|
|
2952
|
+
maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
|
|
2953
|
+
to: z.ZodString;
|
|
2954
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2955
|
+
value: z.ZodString;
|
|
2956
|
+
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
|
|
2957
|
+
txMeta: z.ZodNullable<z.ZodObject<{
|
|
2958
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
2959
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
2960
|
+
txType: z.ZodEnum<{
|
|
2961
|
+
readonly Cardano: "cardano";
|
|
2962
|
+
readonly Evm: "evm";
|
|
2963
|
+
readonly Near: "near";
|
|
2964
|
+
readonly Psbt: "psbt";
|
|
2965
|
+
readonly Ripple: "ripple";
|
|
2966
|
+
readonly Solana: "solana";
|
|
2967
|
+
readonly Starknet: "starknet";
|
|
2968
|
+
readonly Stellar: "stellar";
|
|
2969
|
+
readonly Sui: "sui";
|
|
2970
|
+
readonly Ton: "ton";
|
|
2971
|
+
readonly Tron: "tron";
|
|
2972
|
+
}>;
|
|
2973
|
+
}, z.core.$strip>>;
|
|
2974
|
+
typedData: z.ZodNullable<z.ZodObject<{
|
|
2975
|
+
domain: z.ZodObject<{
|
|
2976
|
+
chainId: z.ZodNumber;
|
|
2977
|
+
name: z.ZodString;
|
|
2978
|
+
verifyingContract: z.ZodString;
|
|
2979
|
+
version: z.ZodString;
|
|
2980
|
+
}, z.core.$loose>;
|
|
2981
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2982
|
+
primaryType: z.ZodString;
|
|
2983
|
+
types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2984
|
+
name: z.ZodString;
|
|
2985
|
+
type: z.ZodString;
|
|
2986
|
+
}, z.core.$strip>>>;
|
|
2987
|
+
}, z.core.$strip>>;
|
|
2988
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2989
|
+
code: z.ZodString;
|
|
2990
|
+
display: z.ZodString;
|
|
2991
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
2992
|
+
}, z.core.$strip>>>;
|
|
2993
|
+
}, z.core.$strip>;
|
|
2994
|
+
export type LimitOrderBuildResponse = z.infer<typeof LimitOrderBuildResponseSchema>;
|
|
2995
|
+
export type LimitOrderSubmitRequest = {
|
|
2996
|
+
orderId: string;
|
|
2997
|
+
signature: string;
|
|
2998
|
+
depositTxHash?: never;
|
|
2999
|
+
} | {
|
|
3000
|
+
orderId: string;
|
|
3001
|
+
depositTxHash: string;
|
|
3002
|
+
signature?: never;
|
|
3003
|
+
};
|
|
3004
|
+
export declare const LimitOrderSubmitResponseSchema: z.ZodObject<{
|
|
3005
|
+
createdAt: z.ZodString;
|
|
3006
|
+
orderHash: z.ZodString;
|
|
3007
|
+
orderId: z.ZodString;
|
|
3008
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3009
|
+
readonly CANCELLED: "CANCELLED";
|
|
3010
|
+
readonly EXPIRED: "EXPIRED";
|
|
3011
|
+
readonly FAILED: "FAILED";
|
|
3012
|
+
readonly FILLED: "FILLED";
|
|
3013
|
+
readonly OPEN: "OPEN";
|
|
3014
|
+
readonly PARTIAL: "PARTIAL";
|
|
3015
|
+
readonly PENDING: "PENDING";
|
|
3016
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
3017
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3018
|
+
}, z.core.$strip>;
|
|
3019
|
+
export type LimitOrderSubmitResponse = z.infer<typeof LimitOrderSubmitResponseSchema>;
|
|
3020
|
+
export declare const LimitOrderTxHashSchema: z.ZodObject<{
|
|
3021
|
+
blockNumber: z.ZodOptional<z.ZodNumber>;
|
|
3022
|
+
chainId: z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3023
|
+
txHash: z.ZodString;
|
|
3024
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3025
|
+
fill: "fill";
|
|
3026
|
+
cancel: "cancel";
|
|
3027
|
+
deposit: "deposit";
|
|
3028
|
+
withdraw: "withdraw";
|
|
3029
|
+
refund: "refund";
|
|
3030
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3031
|
+
}, z.core.$strip>;
|
|
3032
|
+
export declare const LimitOrderSchema: z.ZodObject<{
|
|
3033
|
+
buyAmount: z.ZodString;
|
|
3034
|
+
buyAsset: z.ZodString;
|
|
3035
|
+
cancelRequestedAt: z.ZodOptional<z.ZodString>;
|
|
3036
|
+
chainId: z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3037
|
+
createdAt: z.ZodString;
|
|
3038
|
+
depositHash: z.ZodOptional<z.ZodString>;
|
|
3039
|
+
expiresAt: z.ZodString;
|
|
3040
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
3041
|
+
amount: z.ZodString;
|
|
3042
|
+
amountBps: z.ZodOptional<z.ZodNumber>;
|
|
3043
|
+
asset: z.ZodString;
|
|
3044
|
+
chain: z.ZodString;
|
|
3045
|
+
protocol: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3046
|
+
type: z.ZodUnion<readonly [z.ZodEnum<typeof FeeTypeEnum>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3047
|
+
}, z.core.$strip>>;
|
|
3048
|
+
filledBuyAmount: z.ZodString;
|
|
3049
|
+
filledSellAmount: z.ZodString;
|
|
3050
|
+
limitPrice: z.ZodString;
|
|
3051
|
+
maker: z.ZodString;
|
|
3052
|
+
orderHash: z.ZodString;
|
|
3053
|
+
orderId: z.ZodString;
|
|
3054
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3055
|
+
receiver: z.ZodNullable<z.ZodString>;
|
|
3056
|
+
sellAmount: z.ZodString;
|
|
3057
|
+
sellAsset: z.ZodString;
|
|
3058
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3059
|
+
readonly CANCELLED: "CANCELLED";
|
|
3060
|
+
readonly EXPIRED: "EXPIRED";
|
|
3061
|
+
readonly FAILED: "FAILED";
|
|
3062
|
+
readonly FILLED: "FILLED";
|
|
3063
|
+
readonly OPEN: "OPEN";
|
|
3064
|
+
readonly PARTIAL: "PARTIAL";
|
|
3065
|
+
readonly PENDING: "PENDING";
|
|
3066
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
3067
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3068
|
+
txHashes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3069
|
+
blockNumber: z.ZodOptional<z.ZodNumber>;
|
|
3070
|
+
chainId: z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3071
|
+
txHash: z.ZodString;
|
|
3072
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3073
|
+
fill: "fill";
|
|
3074
|
+
cancel: "cancel";
|
|
3075
|
+
deposit: "deposit";
|
|
3076
|
+
withdraw: "withdraw";
|
|
3077
|
+
refund: "refund";
|
|
3078
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3079
|
+
}, z.core.$strip>>>;
|
|
3080
|
+
updatedAt: z.ZodString;
|
|
3081
|
+
usdValueClose: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3082
|
+
usdValueOpen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3083
|
+
withdrawHash: z.ZodOptional<z.ZodString>;
|
|
3084
|
+
}, z.core.$strip>;
|
|
3085
|
+
export type LimitOrder = z.infer<typeof LimitOrderSchema>;
|
|
3086
|
+
export type LimitOrderListQuery = {
|
|
3087
|
+
cursor?: string;
|
|
3088
|
+
destinationAddress?: string;
|
|
3089
|
+
destinationChain?: ChainId;
|
|
3090
|
+
joinType?: "fullOuter" | "inner";
|
|
3091
|
+
limit?: number;
|
|
3092
|
+
sourceAddress?: string;
|
|
3093
|
+
sourceChain?: ChainId;
|
|
3094
|
+
status?: LimitOrderStatus | LimitOrderStatus[];
|
|
3095
|
+
};
|
|
3096
|
+
export declare const LimitOrderListResponseSchema: z.ZodObject<{
|
|
3097
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
3098
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
3099
|
+
buyAmount: z.ZodString;
|
|
3100
|
+
buyAsset: z.ZodString;
|
|
3101
|
+
cancelRequestedAt: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
chainId: z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3103
|
+
createdAt: z.ZodString;
|
|
3104
|
+
depositHash: z.ZodOptional<z.ZodString>;
|
|
3105
|
+
expiresAt: z.ZodString;
|
|
3106
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
3107
|
+
amount: z.ZodString;
|
|
3108
|
+
amountBps: z.ZodOptional<z.ZodNumber>;
|
|
3109
|
+
asset: z.ZodString;
|
|
3110
|
+
chain: z.ZodString;
|
|
3111
|
+
protocol: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3112
|
+
type: z.ZodUnion<readonly [z.ZodEnum<typeof FeeTypeEnum>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3113
|
+
}, z.core.$strip>>;
|
|
3114
|
+
filledBuyAmount: z.ZodString;
|
|
3115
|
+
filledSellAmount: z.ZodString;
|
|
3116
|
+
limitPrice: z.ZodString;
|
|
3117
|
+
maker: z.ZodString;
|
|
3118
|
+
orderHash: z.ZodString;
|
|
3119
|
+
orderId: z.ZodString;
|
|
3120
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<typeof ProviderName>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3121
|
+
receiver: z.ZodNullable<z.ZodString>;
|
|
3122
|
+
sellAmount: z.ZodString;
|
|
3123
|
+
sellAsset: z.ZodString;
|
|
3124
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3125
|
+
readonly CANCELLED: "CANCELLED";
|
|
3126
|
+
readonly EXPIRED: "EXPIRED";
|
|
3127
|
+
readonly FAILED: "FAILED";
|
|
3128
|
+
readonly FILLED: "FILLED";
|
|
3129
|
+
readonly OPEN: "OPEN";
|
|
3130
|
+
readonly PARTIAL: "PARTIAL";
|
|
3131
|
+
readonly PENDING: "PENDING";
|
|
3132
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
3133
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3134
|
+
txHashes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3135
|
+
blockNumber: z.ZodOptional<z.ZodNumber>;
|
|
3136
|
+
chainId: z.ZodUnion<readonly [z.ZodEnum<typeof ChainId>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3137
|
+
txHash: z.ZodString;
|
|
3138
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3139
|
+
fill: "fill";
|
|
3140
|
+
cancel: "cancel";
|
|
3141
|
+
deposit: "deposit";
|
|
3142
|
+
withdraw: "withdraw";
|
|
3143
|
+
refund: "refund";
|
|
3144
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3145
|
+
}, z.core.$strip>>>;
|
|
3146
|
+
updatedAt: z.ZodString;
|
|
3147
|
+
usdValueClose: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3148
|
+
usdValueOpen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3149
|
+
withdrawHash: z.ZodOptional<z.ZodString>;
|
|
3150
|
+
}, z.core.$strip>>;
|
|
3151
|
+
}, z.core.$strip>;
|
|
3152
|
+
export type LimitOrderListResponse = z.infer<typeof LimitOrderListResponseSchema>;
|
|
3153
|
+
export declare const LimitOrderCancelTypedDataSchema: z.ZodObject<{
|
|
3154
|
+
domain: z.ZodObject<{
|
|
3155
|
+
name: z.ZodString;
|
|
3156
|
+
version: z.ZodString;
|
|
3157
|
+
}, z.core.$loose>;
|
|
3158
|
+
message: z.ZodObject<{
|
|
3159
|
+
action: z.ZodLiteral<"cancel_and_withdraw">;
|
|
3160
|
+
chain: z.ZodString;
|
|
3161
|
+
expiry: z.ZodNumber;
|
|
3162
|
+
l1Address: z.ZodString;
|
|
3163
|
+
nonce: z.ZodNumber;
|
|
3164
|
+
payload: z.ZodObject<{
|
|
3165
|
+
orderId: z.ZodString;
|
|
3166
|
+
}, z.core.$loose>;
|
|
3167
|
+
}, z.core.$loose>;
|
|
3168
|
+
primaryType: z.ZodLiteral<"CancelAndWithdraw">;
|
|
3169
|
+
types: z.ZodObject<{
|
|
3170
|
+
CancelAndWithdraw: z.ZodArray<z.ZodObject<{
|
|
3171
|
+
name: z.ZodString;
|
|
3172
|
+
type: z.ZodString;
|
|
3173
|
+
}, z.core.$strip>>;
|
|
3174
|
+
CancelAndWithdrawPayload: z.ZodArray<z.ZodObject<{
|
|
3175
|
+
name: z.ZodString;
|
|
3176
|
+
type: z.ZodString;
|
|
3177
|
+
}, z.core.$strip>>;
|
|
3178
|
+
EIP712Domain: z.ZodArray<z.ZodObject<{
|
|
3179
|
+
name: z.ZodString;
|
|
3180
|
+
type: z.ZodString;
|
|
3181
|
+
}, z.core.$strip>>;
|
|
3182
|
+
}, z.core.$loose>;
|
|
3183
|
+
}, z.core.$strip>;
|
|
3184
|
+
export type LimitOrderCancelTypedData = z.infer<typeof LimitOrderCancelTypedDataSchema>;
|
|
3185
|
+
export declare const LimitOrderCancelTxSchema: z.ZodObject<{
|
|
3186
|
+
chainId: z.ZodNumber;
|
|
3187
|
+
data: z.ZodString;
|
|
3188
|
+
from: z.ZodString;
|
|
3189
|
+
to: z.ZodString;
|
|
3190
|
+
value: z.ZodString;
|
|
3191
|
+
}, z.core.$strict>;
|
|
3192
|
+
export declare const LimitOrderCancelBuildResponseSchema: z.ZodObject<{
|
|
3193
|
+
btcSignaturePreimage: z.ZodNullable<z.ZodString>;
|
|
3194
|
+
cancelTx: z.ZodNullable<z.ZodObject<{
|
|
3195
|
+
chainId: z.ZodNumber;
|
|
3196
|
+
data: z.ZodString;
|
|
3197
|
+
from: z.ZodString;
|
|
3198
|
+
to: z.ZodString;
|
|
3199
|
+
value: z.ZodString;
|
|
3200
|
+
}, z.core.$strict>>;
|
|
3201
|
+
nextActions: z.ZodArray<z.ZodObject<{
|
|
3202
|
+
method: z.ZodString;
|
|
3203
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
3204
|
+
url: z.ZodString;
|
|
3205
|
+
}, z.core.$strip>>;
|
|
3206
|
+
orderId: z.ZodString;
|
|
3207
|
+
typedData: z.ZodNullable<z.ZodObject<{
|
|
3208
|
+
domain: z.ZodObject<{
|
|
3209
|
+
name: z.ZodString;
|
|
3210
|
+
version: z.ZodString;
|
|
3211
|
+
}, z.core.$loose>;
|
|
3212
|
+
message: z.ZodObject<{
|
|
3213
|
+
action: z.ZodLiteral<"cancel_and_withdraw">;
|
|
3214
|
+
chain: z.ZodString;
|
|
3215
|
+
expiry: z.ZodNumber;
|
|
3216
|
+
l1Address: z.ZodString;
|
|
3217
|
+
nonce: z.ZodNumber;
|
|
3218
|
+
payload: z.ZodObject<{
|
|
3219
|
+
orderId: z.ZodString;
|
|
3220
|
+
}, z.core.$loose>;
|
|
3221
|
+
}, z.core.$loose>;
|
|
3222
|
+
primaryType: z.ZodLiteral<"CancelAndWithdraw">;
|
|
3223
|
+
types: z.ZodObject<{
|
|
3224
|
+
CancelAndWithdraw: z.ZodArray<z.ZodObject<{
|
|
3225
|
+
name: z.ZodString;
|
|
3226
|
+
type: z.ZodString;
|
|
3227
|
+
}, z.core.$strip>>;
|
|
3228
|
+
CancelAndWithdrawPayload: z.ZodArray<z.ZodObject<{
|
|
3229
|
+
name: z.ZodString;
|
|
3230
|
+
type: z.ZodString;
|
|
3231
|
+
}, z.core.$strip>>;
|
|
3232
|
+
EIP712Domain: z.ZodArray<z.ZodObject<{
|
|
3233
|
+
name: z.ZodString;
|
|
3234
|
+
type: z.ZodString;
|
|
3235
|
+
}, z.core.$strip>>;
|
|
3236
|
+
}, z.core.$loose>;
|
|
3237
|
+
}, z.core.$strip>>;
|
|
3238
|
+
}, z.core.$strip>;
|
|
3239
|
+
export type LimitOrderCancelBuildResponse = z.infer<typeof LimitOrderCancelBuildResponseSchema>;
|
|
3240
|
+
export type LimitOrderCancelSubmitRequest = {
|
|
3241
|
+
orderId: string;
|
|
3242
|
+
signature?: string;
|
|
3243
|
+
txHash?: string;
|
|
3244
|
+
};
|
|
3245
|
+
export declare const LimitOrderCancelSubmitResponseSchema: z.ZodObject<{
|
|
3246
|
+
cancelRequestedAt: z.ZodOptional<z.ZodString>;
|
|
3247
|
+
orderId: z.ZodString;
|
|
3248
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3249
|
+
readonly CANCELLED: "CANCELLED";
|
|
3250
|
+
readonly EXPIRED: "EXPIRED";
|
|
3251
|
+
readonly FAILED: "FAILED";
|
|
3252
|
+
readonly FILLED: "FILLED";
|
|
3253
|
+
readonly OPEN: "OPEN";
|
|
3254
|
+
readonly PARTIAL: "PARTIAL";
|
|
3255
|
+
readonly PENDING: "PENDING";
|
|
3256
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
3257
|
+
}>, ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
3258
|
+
txHash: z.ZodOptional<z.ZodString>;
|
|
3259
|
+
withdrawId: z.ZodOptional<z.ZodString>;
|
|
3260
|
+
}, z.core.$strip>;
|
|
3261
|
+
export type LimitOrderCancelSubmitResponse = z.infer<typeof LimitOrderCancelSubmitResponseSchema>;
|
|
2734
3262
|
export {};
|