@dzapio/sdk 2.0.49 → 2.0.51
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/dist/index.d.mts +92 -29
- package/dist/index.d.ts +92 -29
- package/dist/index.js +34 -1
- package/dist/index.mjs +33 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -155,6 +155,21 @@ declare const AllowanceTypes: {
|
|
|
155
155
|
};
|
|
156
156
|
type AllowanceType = (typeof AllowanceTypes)[keyof typeof AllowanceTypes];
|
|
157
157
|
|
|
158
|
+
declare const zapFeeType: {
|
|
159
|
+
readonly fee: "fee";
|
|
160
|
+
readonly ata: "ata";
|
|
161
|
+
readonly nftMint: "nft_mint";
|
|
162
|
+
readonly position: "position";
|
|
163
|
+
readonly protocolPosition: "protocol_position";
|
|
164
|
+
readonly tickArray: "tick_array";
|
|
165
|
+
readonly binArray: "bin_array";
|
|
166
|
+
readonly bitmapExtension: "bitmap_extension";
|
|
167
|
+
};
|
|
168
|
+
declare const zapRefundType: {
|
|
169
|
+
readonly dust: "dust";
|
|
170
|
+
readonly rent: "rent";
|
|
171
|
+
};
|
|
172
|
+
|
|
158
173
|
declare const zapPathAction: {
|
|
159
174
|
readonly swap: "swap";
|
|
160
175
|
readonly bridge: "bridge";
|
|
@@ -166,12 +181,9 @@ declare const zapPathAction: {
|
|
|
166
181
|
readonly harvest: "harvest";
|
|
167
182
|
};
|
|
168
183
|
|
|
169
|
-
type
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
asset: ZapPathAsset;
|
|
173
|
-
included: boolean;
|
|
174
|
-
refundable: boolean;
|
|
184
|
+
type ZapRefundType = (typeof zapRefundType)[keyof typeof zapRefundType];
|
|
185
|
+
type ZapRefund = ZapOutput & {
|
|
186
|
+
type: ZapRefundType;
|
|
175
187
|
};
|
|
176
188
|
|
|
177
189
|
type ZapPathAction = keyof typeof zapPathAction;
|
|
@@ -187,22 +199,29 @@ type ZapPathAsset = {
|
|
|
187
199
|
provider?: ProviderDetails;
|
|
188
200
|
underlyingTokens?: ZapUnderlyingToken[];
|
|
189
201
|
};
|
|
202
|
+
type ZapAsset = {
|
|
203
|
+
asset: ZapPathAsset;
|
|
204
|
+
amount: string;
|
|
205
|
+
amountUSD: string;
|
|
206
|
+
};
|
|
207
|
+
type ZapOutput = ZapAsset & {
|
|
208
|
+
minAmount: string;
|
|
209
|
+
};
|
|
190
210
|
type ZapPath = {
|
|
191
211
|
action: ZapPathAction;
|
|
192
212
|
protocol: ProviderDetails;
|
|
193
213
|
fee: ZapFee[];
|
|
214
|
+
refund: ZapRefund[];
|
|
194
215
|
estimatedDuration: number;
|
|
195
|
-
input:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
minAmount: string;
|
|
205
|
-
}[];
|
|
216
|
+
input: ZapAsset[];
|
|
217
|
+
output: ZapOutput[];
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
type ZapFeeType = (typeof zapFeeType)[keyof typeof zapFeeType];
|
|
221
|
+
type ZapFee = ZapAsset & {
|
|
222
|
+
included: boolean;
|
|
223
|
+
refundable: boolean;
|
|
224
|
+
type: ZapFeeType;
|
|
206
225
|
};
|
|
207
226
|
|
|
208
227
|
declare const chainTypes: {
|
|
@@ -274,8 +293,9 @@ type ZapBuildTxnResponse = {
|
|
|
274
293
|
approveTo: HexString;
|
|
275
294
|
amount: string;
|
|
276
295
|
}[];
|
|
277
|
-
|
|
278
|
-
|
|
296
|
+
refund: ZapRefund[];
|
|
297
|
+
fees: ZapFee[];
|
|
298
|
+
output: ZapOutput[];
|
|
279
299
|
steps: ZapStep[];
|
|
280
300
|
path: ZapPath[];
|
|
281
301
|
};
|
|
@@ -397,26 +417,21 @@ type ZapQuoteRequest = Omit<ZapBuildTxnRequest, 'refundee' | 'recipient' | 'acco
|
|
|
397
417
|
}>;
|
|
398
418
|
|
|
399
419
|
type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED' | 'REFUNDED';
|
|
400
|
-
type ZapStatusAsset = {
|
|
401
|
-
asset: ZapPathAsset;
|
|
402
|
-
amount: string;
|
|
403
|
-
amountUSD: string;
|
|
404
|
-
};
|
|
405
420
|
type ZapStatusStep = {
|
|
406
421
|
chainId: number;
|
|
407
422
|
hash?: string;
|
|
408
423
|
status: ZapStatus;
|
|
409
424
|
action: string;
|
|
410
425
|
protocol: ProviderDetails;
|
|
411
|
-
input:
|
|
412
|
-
output:
|
|
426
|
+
input: ZapAsset[];
|
|
427
|
+
output: ZapAsset[];
|
|
413
428
|
};
|
|
414
429
|
type ZapStatusResponse = {
|
|
415
430
|
status: ZapStatus;
|
|
416
431
|
account: string;
|
|
417
432
|
recipient: string;
|
|
418
|
-
input:
|
|
419
|
-
output:
|
|
433
|
+
input: ZapAsset[];
|
|
434
|
+
output: ZapAsset[];
|
|
420
435
|
steps: ZapStatusStep[];
|
|
421
436
|
timestamp: number;
|
|
422
437
|
completedAt: number;
|
|
@@ -481,6 +496,11 @@ declare const contractErrorActions: {
|
|
|
481
496
|
readonly TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE";
|
|
482
497
|
readonly INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE";
|
|
483
498
|
readonly INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE";
|
|
499
|
+
readonly INCREASE_AMOUNT: "INCREASE_AMOUNT";
|
|
500
|
+
readonly ADD_FUNDS: "ADD_FUNDS";
|
|
501
|
+
readonly RE_SIGN: "RE_SIGN";
|
|
502
|
+
readonly RETRY: "RETRY";
|
|
503
|
+
readonly CONTACT_SUPPORT: "CONTACT_SUPPORT";
|
|
484
504
|
};
|
|
485
505
|
type ContractErrorResponse = {
|
|
486
506
|
status: string;
|
|
@@ -644,6 +664,7 @@ type TradeQuote = {
|
|
|
644
664
|
gasless: boolean;
|
|
645
665
|
steps: TradeStep[];
|
|
646
666
|
path: TradePath[];
|
|
667
|
+
simulated?: boolean;
|
|
647
668
|
tags?: Tag[];
|
|
648
669
|
additionalInfo?: AdditionalInfo;
|
|
649
670
|
};
|
|
@@ -2106,13 +2127,16 @@ declare const arcTestnet: {
|
|
|
2106
2127
|
};
|
|
2107
2128
|
};
|
|
2108
2129
|
sourceId?: number | undefined | undefined;
|
|
2130
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2109
2131
|
testnet: true;
|
|
2110
2132
|
custom?: Record<string, unknown> | undefined;
|
|
2111
2133
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2112
2134
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2113
2135
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2136
|
+
client: viem.Client;
|
|
2114
2137
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2115
2138
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2139
|
+
client: viem.Client;
|
|
2116
2140
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2117
2141
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2118
2142
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2151,14 +2175,17 @@ declare const arthera: {
|
|
|
2151
2175
|
};
|
|
2152
2176
|
};
|
|
2153
2177
|
sourceId?: number | undefined | undefined;
|
|
2178
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2154
2179
|
testnet?: boolean | undefined | undefined;
|
|
2155
2180
|
custom?: Record<string, unknown> | undefined;
|
|
2156
2181
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2157
2182
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2158
2183
|
formatters?: undefined;
|
|
2159
2184
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2185
|
+
client: viem.Client;
|
|
2160
2186
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2161
2187
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2188
|
+
client: viem.Client;
|
|
2162
2189
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2163
2190
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2164
2191
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2196,14 +2223,17 @@ declare const astralisTestnet: {
|
|
|
2196
2223
|
};
|
|
2197
2224
|
};
|
|
2198
2225
|
sourceId?: number | undefined | undefined;
|
|
2226
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2199
2227
|
testnet?: boolean | undefined | undefined;
|
|
2200
2228
|
custom?: Record<string, unknown> | undefined;
|
|
2201
2229
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2202
2230
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2203
2231
|
formatters?: undefined;
|
|
2204
2232
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2233
|
+
client: viem.Client;
|
|
2205
2234
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2206
2235
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2236
|
+
client: viem.Client;
|
|
2207
2237
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2208
2238
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2209
2239
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2242,13 +2272,16 @@ declare const bitlayer: {
|
|
|
2242
2272
|
};
|
|
2243
2273
|
};
|
|
2244
2274
|
sourceId?: number | undefined | undefined;
|
|
2275
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2245
2276
|
testnet?: boolean | undefined | undefined;
|
|
2246
2277
|
custom?: Record<string, unknown> | undefined;
|
|
2247
2278
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2248
2279
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2249
2280
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2281
|
+
client: viem.Client;
|
|
2250
2282
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2251
2283
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2284
|
+
client: viem.Client;
|
|
2252
2285
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2253
2286
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2254
2287
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2312,13 +2345,16 @@ declare const citrea: {
|
|
|
2312
2345
|
};
|
|
2313
2346
|
};
|
|
2314
2347
|
sourceId?: number | undefined | undefined;
|
|
2348
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2315
2349
|
testnet: false;
|
|
2316
2350
|
custom?: Record<string, unknown> | undefined;
|
|
2317
2351
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2318
2352
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2319
2353
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2354
|
+
client: viem.Client;
|
|
2320
2355
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2321
2356
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2357
|
+
client: viem.Client;
|
|
2322
2358
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2323
2359
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2324
2360
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2357,14 +2393,17 @@ declare const fiveIre: {
|
|
|
2357
2393
|
};
|
|
2358
2394
|
};
|
|
2359
2395
|
sourceId?: number | undefined | undefined;
|
|
2396
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2360
2397
|
testnet?: boolean | undefined | undefined;
|
|
2361
2398
|
custom?: Record<string, unknown> | undefined;
|
|
2362
2399
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2363
2400
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2364
2401
|
formatters?: undefined;
|
|
2365
2402
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2403
|
+
client: viem.Client;
|
|
2366
2404
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2367
2405
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2406
|
+
client: viem.Client;
|
|
2368
2407
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2369
2408
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2370
2409
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2402,13 +2441,16 @@ declare const hemi: {
|
|
|
2402
2441
|
};
|
|
2403
2442
|
};
|
|
2404
2443
|
sourceId?: number | undefined | undefined;
|
|
2444
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2405
2445
|
testnet: false;
|
|
2406
2446
|
custom?: Record<string, unknown> | undefined;
|
|
2407
2447
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2408
2448
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2409
2449
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2450
|
+
client: viem.Client;
|
|
2410
2451
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2411
2452
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2453
|
+
client: viem.Client;
|
|
2412
2454
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2413
2455
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2414
2456
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2448,14 +2490,17 @@ declare const hyperEvm: {
|
|
|
2448
2490
|
};
|
|
2449
2491
|
};
|
|
2450
2492
|
sourceId?: number | undefined | undefined;
|
|
2493
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2451
2494
|
testnet?: boolean | undefined | undefined;
|
|
2452
2495
|
custom?: Record<string, unknown> | undefined;
|
|
2453
2496
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2454
2497
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2455
2498
|
formatters?: undefined;
|
|
2456
2499
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2500
|
+
client: viem.Client;
|
|
2457
2501
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2458
2502
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2503
|
+
client: viem.Client;
|
|
2459
2504
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2460
2505
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2461
2506
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2493,14 +2538,17 @@ declare const hyperliquid: {
|
|
|
2493
2538
|
};
|
|
2494
2539
|
};
|
|
2495
2540
|
sourceId?: number | undefined | undefined;
|
|
2541
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2496
2542
|
testnet?: boolean | undefined | undefined;
|
|
2497
2543
|
custom?: Record<string, unknown> | undefined;
|
|
2498
2544
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2499
2545
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2500
2546
|
formatters?: undefined;
|
|
2501
2547
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2548
|
+
client: viem.Client;
|
|
2502
2549
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2503
2550
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2551
|
+
client: viem.Client;
|
|
2504
2552
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2505
2553
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2506
2554
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2538,13 +2586,16 @@ declare const katana: {
|
|
|
2538
2586
|
};
|
|
2539
2587
|
};
|
|
2540
2588
|
sourceId?: number | undefined | undefined;
|
|
2589
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2541
2590
|
testnet: false;
|
|
2542
2591
|
custom?: Record<string, unknown> | undefined;
|
|
2543
2592
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2544
2593
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2545
2594
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2595
|
+
client: viem.Client;
|
|
2546
2596
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2547
2597
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2598
|
+
client: viem.Client;
|
|
2548
2599
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2549
2600
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2550
2601
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2585,13 +2636,16 @@ declare const merlin: {
|
|
|
2585
2636
|
};
|
|
2586
2637
|
};
|
|
2587
2638
|
sourceId?: number | undefined | undefined;
|
|
2639
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2588
2640
|
testnet?: boolean | undefined | undefined;
|
|
2589
2641
|
custom?: Record<string, unknown> | undefined;
|
|
2590
2642
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2591
2643
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2592
2644
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2645
|
+
client: viem.Client;
|
|
2593
2646
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2594
2647
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2648
|
+
client: viem.Client;
|
|
2595
2649
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2596
2650
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2597
2651
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2630,14 +2684,17 @@ declare const pushTestnet: {
|
|
|
2630
2684
|
};
|
|
2631
2685
|
};
|
|
2632
2686
|
sourceId?: number | undefined | undefined;
|
|
2687
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2633
2688
|
testnet?: boolean | undefined | undefined;
|
|
2634
2689
|
custom?: Record<string, unknown> | undefined;
|
|
2635
2690
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2636
2691
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2637
2692
|
formatters?: undefined;
|
|
2638
2693
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2694
|
+
client: viem.Client;
|
|
2639
2695
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2640
2696
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2697
|
+
client: viem.Client;
|
|
2641
2698
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2642
2699
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2643
2700
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2676,14 +2733,17 @@ declare const stableChain: {
|
|
|
2676
2733
|
};
|
|
2677
2734
|
};
|
|
2678
2735
|
sourceId?: number | undefined | undefined;
|
|
2736
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2679
2737
|
testnet?: boolean | undefined | undefined;
|
|
2680
2738
|
custom?: Record<string, unknown> | undefined;
|
|
2681
2739
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2682
2740
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2683
2741
|
formatters?: undefined;
|
|
2684
2742
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2743
|
+
client: viem.Client;
|
|
2685
2744
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2686
2745
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2746
|
+
client: viem.Client;
|
|
2687
2747
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2688
2748
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2689
2749
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2723,14 +2783,17 @@ declare const robinhood: {
|
|
|
2723
2783
|
};
|
|
2724
2784
|
};
|
|
2725
2785
|
sourceId?: number | undefined | undefined;
|
|
2786
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2726
2787
|
testnet?: boolean | undefined | undefined;
|
|
2727
2788
|
custom?: Record<string, unknown> | undefined;
|
|
2728
2789
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2729
2790
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2730
2791
|
formatters?: undefined;
|
|
2731
2792
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2793
|
+
client: viem.Client;
|
|
2732
2794
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2733
2795
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2796
|
+
client: viem.Client;
|
|
2734
2797
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2735
2798
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2736
2799
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2742,4 +2805,4 @@ declare const robinhood: {
|
|
|
2742
2805
|
declare const customViemChains: viemChains.Chain[];
|
|
2743
2806
|
declare const viemChainsById: Record<number, viemChains.Chain>;
|
|
2744
2807
|
|
|
2745
|
-
export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type
|
|
2808
|
+
export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapAsset, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapFeeType, type ZapIntegratorConfig, type ZapOutput, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRefund, type ZapRefundType, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapFeeType, zapPathAction, zapRefundType, zapStepAction };
|
package/dist/index.d.ts
CHANGED
|
@@ -155,6 +155,21 @@ declare const AllowanceTypes: {
|
|
|
155
155
|
};
|
|
156
156
|
type AllowanceType = (typeof AllowanceTypes)[keyof typeof AllowanceTypes];
|
|
157
157
|
|
|
158
|
+
declare const zapFeeType: {
|
|
159
|
+
readonly fee: "fee";
|
|
160
|
+
readonly ata: "ata";
|
|
161
|
+
readonly nftMint: "nft_mint";
|
|
162
|
+
readonly position: "position";
|
|
163
|
+
readonly protocolPosition: "protocol_position";
|
|
164
|
+
readonly tickArray: "tick_array";
|
|
165
|
+
readonly binArray: "bin_array";
|
|
166
|
+
readonly bitmapExtension: "bitmap_extension";
|
|
167
|
+
};
|
|
168
|
+
declare const zapRefundType: {
|
|
169
|
+
readonly dust: "dust";
|
|
170
|
+
readonly rent: "rent";
|
|
171
|
+
};
|
|
172
|
+
|
|
158
173
|
declare const zapPathAction: {
|
|
159
174
|
readonly swap: "swap";
|
|
160
175
|
readonly bridge: "bridge";
|
|
@@ -166,12 +181,9 @@ declare const zapPathAction: {
|
|
|
166
181
|
readonly harvest: "harvest";
|
|
167
182
|
};
|
|
168
183
|
|
|
169
|
-
type
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
asset: ZapPathAsset;
|
|
173
|
-
included: boolean;
|
|
174
|
-
refundable: boolean;
|
|
184
|
+
type ZapRefundType = (typeof zapRefundType)[keyof typeof zapRefundType];
|
|
185
|
+
type ZapRefund = ZapOutput & {
|
|
186
|
+
type: ZapRefundType;
|
|
175
187
|
};
|
|
176
188
|
|
|
177
189
|
type ZapPathAction = keyof typeof zapPathAction;
|
|
@@ -187,22 +199,29 @@ type ZapPathAsset = {
|
|
|
187
199
|
provider?: ProviderDetails;
|
|
188
200
|
underlyingTokens?: ZapUnderlyingToken[];
|
|
189
201
|
};
|
|
202
|
+
type ZapAsset = {
|
|
203
|
+
asset: ZapPathAsset;
|
|
204
|
+
amount: string;
|
|
205
|
+
amountUSD: string;
|
|
206
|
+
};
|
|
207
|
+
type ZapOutput = ZapAsset & {
|
|
208
|
+
minAmount: string;
|
|
209
|
+
};
|
|
190
210
|
type ZapPath = {
|
|
191
211
|
action: ZapPathAction;
|
|
192
212
|
protocol: ProviderDetails;
|
|
193
213
|
fee: ZapFee[];
|
|
214
|
+
refund: ZapRefund[];
|
|
194
215
|
estimatedDuration: number;
|
|
195
|
-
input:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
minAmount: string;
|
|
205
|
-
}[];
|
|
216
|
+
input: ZapAsset[];
|
|
217
|
+
output: ZapOutput[];
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
type ZapFeeType = (typeof zapFeeType)[keyof typeof zapFeeType];
|
|
221
|
+
type ZapFee = ZapAsset & {
|
|
222
|
+
included: boolean;
|
|
223
|
+
refundable: boolean;
|
|
224
|
+
type: ZapFeeType;
|
|
206
225
|
};
|
|
207
226
|
|
|
208
227
|
declare const chainTypes: {
|
|
@@ -274,8 +293,9 @@ type ZapBuildTxnResponse = {
|
|
|
274
293
|
approveTo: HexString;
|
|
275
294
|
amount: string;
|
|
276
295
|
}[];
|
|
277
|
-
|
|
278
|
-
|
|
296
|
+
refund: ZapRefund[];
|
|
297
|
+
fees: ZapFee[];
|
|
298
|
+
output: ZapOutput[];
|
|
279
299
|
steps: ZapStep[];
|
|
280
300
|
path: ZapPath[];
|
|
281
301
|
};
|
|
@@ -397,26 +417,21 @@ type ZapQuoteRequest = Omit<ZapBuildTxnRequest, 'refundee' | 'recipient' | 'acco
|
|
|
397
417
|
}>;
|
|
398
418
|
|
|
399
419
|
type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED' | 'REFUNDED';
|
|
400
|
-
type ZapStatusAsset = {
|
|
401
|
-
asset: ZapPathAsset;
|
|
402
|
-
amount: string;
|
|
403
|
-
amountUSD: string;
|
|
404
|
-
};
|
|
405
420
|
type ZapStatusStep = {
|
|
406
421
|
chainId: number;
|
|
407
422
|
hash?: string;
|
|
408
423
|
status: ZapStatus;
|
|
409
424
|
action: string;
|
|
410
425
|
protocol: ProviderDetails;
|
|
411
|
-
input:
|
|
412
|
-
output:
|
|
426
|
+
input: ZapAsset[];
|
|
427
|
+
output: ZapAsset[];
|
|
413
428
|
};
|
|
414
429
|
type ZapStatusResponse = {
|
|
415
430
|
status: ZapStatus;
|
|
416
431
|
account: string;
|
|
417
432
|
recipient: string;
|
|
418
|
-
input:
|
|
419
|
-
output:
|
|
433
|
+
input: ZapAsset[];
|
|
434
|
+
output: ZapAsset[];
|
|
420
435
|
steps: ZapStatusStep[];
|
|
421
436
|
timestamp: number;
|
|
422
437
|
completedAt: number;
|
|
@@ -481,6 +496,11 @@ declare const contractErrorActions: {
|
|
|
481
496
|
readonly TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE";
|
|
482
497
|
readonly INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE";
|
|
483
498
|
readonly INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE";
|
|
499
|
+
readonly INCREASE_AMOUNT: "INCREASE_AMOUNT";
|
|
500
|
+
readonly ADD_FUNDS: "ADD_FUNDS";
|
|
501
|
+
readonly RE_SIGN: "RE_SIGN";
|
|
502
|
+
readonly RETRY: "RETRY";
|
|
503
|
+
readonly CONTACT_SUPPORT: "CONTACT_SUPPORT";
|
|
484
504
|
};
|
|
485
505
|
type ContractErrorResponse = {
|
|
486
506
|
status: string;
|
|
@@ -644,6 +664,7 @@ type TradeQuote = {
|
|
|
644
664
|
gasless: boolean;
|
|
645
665
|
steps: TradeStep[];
|
|
646
666
|
path: TradePath[];
|
|
667
|
+
simulated?: boolean;
|
|
647
668
|
tags?: Tag[];
|
|
648
669
|
additionalInfo?: AdditionalInfo;
|
|
649
670
|
};
|
|
@@ -2106,13 +2127,16 @@ declare const arcTestnet: {
|
|
|
2106
2127
|
};
|
|
2107
2128
|
};
|
|
2108
2129
|
sourceId?: number | undefined | undefined;
|
|
2130
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2109
2131
|
testnet: true;
|
|
2110
2132
|
custom?: Record<string, unknown> | undefined;
|
|
2111
2133
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2112
2134
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2113
2135
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2136
|
+
client: viem.Client;
|
|
2114
2137
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2115
2138
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2139
|
+
client: viem.Client;
|
|
2116
2140
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2117
2141
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2118
2142
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2151,14 +2175,17 @@ declare const arthera: {
|
|
|
2151
2175
|
};
|
|
2152
2176
|
};
|
|
2153
2177
|
sourceId?: number | undefined | undefined;
|
|
2178
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2154
2179
|
testnet?: boolean | undefined | undefined;
|
|
2155
2180
|
custom?: Record<string, unknown> | undefined;
|
|
2156
2181
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2157
2182
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2158
2183
|
formatters?: undefined;
|
|
2159
2184
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2185
|
+
client: viem.Client;
|
|
2160
2186
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2161
2187
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2188
|
+
client: viem.Client;
|
|
2162
2189
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2163
2190
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2164
2191
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2196,14 +2223,17 @@ declare const astralisTestnet: {
|
|
|
2196
2223
|
};
|
|
2197
2224
|
};
|
|
2198
2225
|
sourceId?: number | undefined | undefined;
|
|
2226
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2199
2227
|
testnet?: boolean | undefined | undefined;
|
|
2200
2228
|
custom?: Record<string, unknown> | undefined;
|
|
2201
2229
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2202
2230
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2203
2231
|
formatters?: undefined;
|
|
2204
2232
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2233
|
+
client: viem.Client;
|
|
2205
2234
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2206
2235
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2236
|
+
client: viem.Client;
|
|
2207
2237
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2208
2238
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2209
2239
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2242,13 +2272,16 @@ declare const bitlayer: {
|
|
|
2242
2272
|
};
|
|
2243
2273
|
};
|
|
2244
2274
|
sourceId?: number | undefined | undefined;
|
|
2275
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2245
2276
|
testnet?: boolean | undefined | undefined;
|
|
2246
2277
|
custom?: Record<string, unknown> | undefined;
|
|
2247
2278
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2248
2279
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2249
2280
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2281
|
+
client: viem.Client;
|
|
2250
2282
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2251
2283
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2284
|
+
client: viem.Client;
|
|
2252
2285
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2253
2286
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2254
2287
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2312,13 +2345,16 @@ declare const citrea: {
|
|
|
2312
2345
|
};
|
|
2313
2346
|
};
|
|
2314
2347
|
sourceId?: number | undefined | undefined;
|
|
2348
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2315
2349
|
testnet: false;
|
|
2316
2350
|
custom?: Record<string, unknown> | undefined;
|
|
2317
2351
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2318
2352
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2319
2353
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2354
|
+
client: viem.Client;
|
|
2320
2355
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2321
2356
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2357
|
+
client: viem.Client;
|
|
2322
2358
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2323
2359
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2324
2360
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2357,14 +2393,17 @@ declare const fiveIre: {
|
|
|
2357
2393
|
};
|
|
2358
2394
|
};
|
|
2359
2395
|
sourceId?: number | undefined | undefined;
|
|
2396
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2360
2397
|
testnet?: boolean | undefined | undefined;
|
|
2361
2398
|
custom?: Record<string, unknown> | undefined;
|
|
2362
2399
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2363
2400
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2364
2401
|
formatters?: undefined;
|
|
2365
2402
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2403
|
+
client: viem.Client;
|
|
2366
2404
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2367
2405
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2406
|
+
client: viem.Client;
|
|
2368
2407
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2369
2408
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2370
2409
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2402,13 +2441,16 @@ declare const hemi: {
|
|
|
2402
2441
|
};
|
|
2403
2442
|
};
|
|
2404
2443
|
sourceId?: number | undefined | undefined;
|
|
2444
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2405
2445
|
testnet: false;
|
|
2406
2446
|
custom?: Record<string, unknown> | undefined;
|
|
2407
2447
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2408
2448
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2409
2449
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2450
|
+
client: viem.Client;
|
|
2410
2451
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2411
2452
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2453
|
+
client: viem.Client;
|
|
2412
2454
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2413
2455
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2414
2456
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2448,14 +2490,17 @@ declare const hyperEvm: {
|
|
|
2448
2490
|
};
|
|
2449
2491
|
};
|
|
2450
2492
|
sourceId?: number | undefined | undefined;
|
|
2493
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2451
2494
|
testnet?: boolean | undefined | undefined;
|
|
2452
2495
|
custom?: Record<string, unknown> | undefined;
|
|
2453
2496
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2454
2497
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2455
2498
|
formatters?: undefined;
|
|
2456
2499
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2500
|
+
client: viem.Client;
|
|
2457
2501
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2458
2502
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2503
|
+
client: viem.Client;
|
|
2459
2504
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2460
2505
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2461
2506
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2493,14 +2538,17 @@ declare const hyperliquid: {
|
|
|
2493
2538
|
};
|
|
2494
2539
|
};
|
|
2495
2540
|
sourceId?: number | undefined | undefined;
|
|
2541
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2496
2542
|
testnet?: boolean | undefined | undefined;
|
|
2497
2543
|
custom?: Record<string, unknown> | undefined;
|
|
2498
2544
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2499
2545
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2500
2546
|
formatters?: undefined;
|
|
2501
2547
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2548
|
+
client: viem.Client;
|
|
2502
2549
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2503
2550
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2551
|
+
client: viem.Client;
|
|
2504
2552
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2505
2553
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2506
2554
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2538,13 +2586,16 @@ declare const katana: {
|
|
|
2538
2586
|
};
|
|
2539
2587
|
};
|
|
2540
2588
|
sourceId?: number | undefined | undefined;
|
|
2589
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2541
2590
|
testnet: false;
|
|
2542
2591
|
custom?: Record<string, unknown> | undefined;
|
|
2543
2592
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2544
2593
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2545
2594
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2595
|
+
client: viem.Client;
|
|
2546
2596
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2547
2597
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2598
|
+
client: viem.Client;
|
|
2548
2599
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2549
2600
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2550
2601
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2585,13 +2636,16 @@ declare const merlin: {
|
|
|
2585
2636
|
};
|
|
2586
2637
|
};
|
|
2587
2638
|
sourceId?: number | undefined | undefined;
|
|
2639
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2588
2640
|
testnet?: boolean | undefined | undefined;
|
|
2589
2641
|
custom?: Record<string, unknown> | undefined;
|
|
2590
2642
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2591
2643
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2592
2644
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2645
|
+
client: viem.Client;
|
|
2593
2646
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2594
2647
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2648
|
+
client: viem.Client;
|
|
2595
2649
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2596
2650
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2597
2651
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2630,14 +2684,17 @@ declare const pushTestnet: {
|
|
|
2630
2684
|
};
|
|
2631
2685
|
};
|
|
2632
2686
|
sourceId?: number | undefined | undefined;
|
|
2687
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2633
2688
|
testnet?: boolean | undefined | undefined;
|
|
2634
2689
|
custom?: Record<string, unknown> | undefined;
|
|
2635
2690
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2636
2691
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2637
2692
|
formatters?: undefined;
|
|
2638
2693
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2694
|
+
client: viem.Client;
|
|
2639
2695
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2640
2696
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2697
|
+
client: viem.Client;
|
|
2641
2698
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2642
2699
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2643
2700
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2676,14 +2733,17 @@ declare const stableChain: {
|
|
|
2676
2733
|
};
|
|
2677
2734
|
};
|
|
2678
2735
|
sourceId?: number | undefined | undefined;
|
|
2736
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2679
2737
|
testnet?: boolean | undefined | undefined;
|
|
2680
2738
|
custom?: Record<string, unknown> | undefined;
|
|
2681
2739
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2682
2740
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2683
2741
|
formatters?: undefined;
|
|
2684
2742
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2743
|
+
client: viem.Client;
|
|
2685
2744
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2686
2745
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2746
|
+
client: viem.Client;
|
|
2687
2747
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2688
2748
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2689
2749
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2723,14 +2783,17 @@ declare const robinhood: {
|
|
|
2723
2783
|
};
|
|
2724
2784
|
};
|
|
2725
2785
|
sourceId?: number | undefined | undefined;
|
|
2786
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2726
2787
|
testnet?: boolean | undefined | undefined;
|
|
2727
2788
|
custom?: Record<string, unknown> | undefined;
|
|
2728
2789
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2729
2790
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2730
2791
|
formatters?: undefined;
|
|
2731
2792
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2793
|
+
client: viem.Client;
|
|
2732
2794
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2733
2795
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2796
|
+
client: viem.Client;
|
|
2734
2797
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2735
2798
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2736
2799
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2742,4 +2805,4 @@ declare const robinhood: {
|
|
|
2742
2805
|
declare const customViemChains: viemChains.Chain[];
|
|
2743
2806
|
declare const viemChainsById: Record<number, viemChains.Chain>;
|
|
2744
2807
|
|
|
2745
|
-
export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type
|
|
2808
|
+
export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapAsset, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapFeeType, type ZapIntegratorConfig, type ZapOutput, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRefund, type ZapRefundType, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapFeeType, zapPathAction, zapRefundType, zapStepAction };
|
package/dist/index.js
CHANGED
|
@@ -16557,7 +16557,12 @@ var dZapClient_default = DZapClient;
|
|
|
16557
16557
|
var contractErrorActions = {
|
|
16558
16558
|
TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE",
|
|
16559
16559
|
INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE",
|
|
16560
|
-
INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE"
|
|
16560
|
+
INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE",
|
|
16561
|
+
INCREASE_AMOUNT: "INCREASE_AMOUNT",
|
|
16562
|
+
ADD_FUNDS: "ADD_FUNDS",
|
|
16563
|
+
RE_SIGN: "RE_SIGN",
|
|
16564
|
+
RETRY: "RETRY",
|
|
16565
|
+
CONTACT_SUPPORT: "CONTACT_SUPPORT"
|
|
16561
16566
|
};
|
|
16562
16567
|
var APTOS_DEFAULT_RPC = "https://fullnode.mainnet.aptoslabs.com";
|
|
16563
16568
|
var aptosAccountRegex = /^0x[a-fA-F0-9]{1,64}$/;
|
|
@@ -17098,6 +17103,32 @@ var zapPathAction = {
|
|
|
17098
17103
|
harvest: "harvest"
|
|
17099
17104
|
};
|
|
17100
17105
|
|
|
17106
|
+
// src/zap/constants/fee.ts
|
|
17107
|
+
var zapFeeType = {
|
|
17108
|
+
/** protocol or integrator fee taken out of the traded amount */
|
|
17109
|
+
fee: "fee",
|
|
17110
|
+
/** Associated Token Account — holds the user's balance for one mint. Created once per (wallet, mint); reused after that. */
|
|
17111
|
+
ata: "ata",
|
|
17112
|
+
/** NFT Mint — on-chain identity of a CLMM LP position. Burned and its rent recovered when the position closes. */
|
|
17113
|
+
nftMint: "nft_mint",
|
|
17114
|
+
/** Personal Position PDA — the user's LP state. Always created on open; rent refunded on close. */
|
|
17115
|
+
position: "position",
|
|
17116
|
+
/** Protocol Position PDA — pool-level tick range state, shared across every LP in that range. Rent is not refundable. */
|
|
17117
|
+
protocolPosition: "protocol_position",
|
|
17118
|
+
/** Tick Array PDA — tick data for a chunk of ticks, shared across the pool. Rent is not refundable. */
|
|
17119
|
+
tickArray: "tick_array",
|
|
17120
|
+
/** Bin Array PDA — bin data for a chunk of bins, shared across the pool. Rent is not refundable. */
|
|
17121
|
+
binArray: "bin_array",
|
|
17122
|
+
/** Bin Array Bitmap Extension PDA — bitmap state for bins outside the default range. Rent is not refundable. */
|
|
17123
|
+
bitmapExtension: "bitmap_extension"
|
|
17124
|
+
};
|
|
17125
|
+
var zapRefundType = {
|
|
17126
|
+
/** extra tokens the route ended up with because slippage came out in the user's favour */
|
|
17127
|
+
dust: "dust",
|
|
17128
|
+
/** account rent returned to the payer, e.g. when a position is closed */
|
|
17129
|
+
rent: "rent"
|
|
17130
|
+
};
|
|
17131
|
+
|
|
17101
17132
|
Object.defineProperty(exports, "bitcoin", {
|
|
17102
17133
|
enumerable: true,
|
|
17103
17134
|
get: function () { return core.bitcoin; }
|
|
@@ -17140,5 +17171,7 @@ exports.robinhood = robinhood;
|
|
|
17140
17171
|
exports.stableChain = stableChain;
|
|
17141
17172
|
exports.tempo = tempo;
|
|
17142
17173
|
exports.viemChainsById = viemChainsById;
|
|
17174
|
+
exports.zapFeeType = zapFeeType;
|
|
17143
17175
|
exports.zapPathAction = zapPathAction;
|
|
17176
|
+
exports.zapRefundType = zapRefundType;
|
|
17144
17177
|
exports.zapStepAction = zapStepAction;
|
package/dist/index.mjs
CHANGED
|
@@ -16532,7 +16532,12 @@ var dZapClient_default = DZapClient;
|
|
|
16532
16532
|
var contractErrorActions = {
|
|
16533
16533
|
TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE",
|
|
16534
16534
|
INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE",
|
|
16535
|
-
INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE"
|
|
16535
|
+
INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE",
|
|
16536
|
+
INCREASE_AMOUNT: "INCREASE_AMOUNT",
|
|
16537
|
+
ADD_FUNDS: "ADD_FUNDS",
|
|
16538
|
+
RE_SIGN: "RE_SIGN",
|
|
16539
|
+
RETRY: "RETRY",
|
|
16540
|
+
CONTACT_SUPPORT: "CONTACT_SUPPORT"
|
|
16536
16541
|
};
|
|
16537
16542
|
var APTOS_DEFAULT_RPC = "https://fullnode.mainnet.aptoslabs.com";
|
|
16538
16543
|
var aptosAccountRegex = /^0x[a-fA-F0-9]{1,64}$/;
|
|
@@ -17073,4 +17078,30 @@ var zapPathAction = {
|
|
|
17073
17078
|
harvest: "harvest"
|
|
17074
17079
|
};
|
|
17075
17080
|
|
|
17076
|
-
|
|
17081
|
+
// src/zap/constants/fee.ts
|
|
17082
|
+
var zapFeeType = {
|
|
17083
|
+
/** protocol or integrator fee taken out of the traded amount */
|
|
17084
|
+
fee: "fee",
|
|
17085
|
+
/** Associated Token Account — holds the user's balance for one mint. Created once per (wallet, mint); reused after that. */
|
|
17086
|
+
ata: "ata",
|
|
17087
|
+
/** NFT Mint — on-chain identity of a CLMM LP position. Burned and its rent recovered when the position closes. */
|
|
17088
|
+
nftMint: "nft_mint",
|
|
17089
|
+
/** Personal Position PDA — the user's LP state. Always created on open; rent refunded on close. */
|
|
17090
|
+
position: "position",
|
|
17091
|
+
/** Protocol Position PDA — pool-level tick range state, shared across every LP in that range. Rent is not refundable. */
|
|
17092
|
+
protocolPosition: "protocol_position",
|
|
17093
|
+
/** Tick Array PDA — tick data for a chunk of ticks, shared across the pool. Rent is not refundable. */
|
|
17094
|
+
tickArray: "tick_array",
|
|
17095
|
+
/** Bin Array PDA — bin data for a chunk of bins, shared across the pool. Rent is not refundable. */
|
|
17096
|
+
binArray: "bin_array",
|
|
17097
|
+
/** Bin Array Bitmap Extension PDA — bitmap state for bins outside the default range. Rent is not refundable. */
|
|
17098
|
+
bitmapExtension: "bitmap_extension"
|
|
17099
|
+
};
|
|
17100
|
+
var zapRefundType = {
|
|
17101
|
+
/** extra tokens the route ended up with because slippage came out in the user's favour */
|
|
17102
|
+
dust: "dust",
|
|
17103
|
+
/** account rent returned to the payer, e.g. when a position is closed */
|
|
17104
|
+
rent: "rent"
|
|
17105
|
+
};
|
|
17106
|
+
|
|
17107
|
+
export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapFeeType, zapPathAction, zapRefundType, zapStepAction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.51",
|
|
4
4
|
"description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"ethers": "5.7.2",
|
|
113
113
|
"node-cache": "^5.1.2",
|
|
114
114
|
"tonweb": "^0.0.66",
|
|
115
|
-
"viem": "2.
|
|
115
|
+
"viem": "2.56.5"
|
|
116
116
|
},
|
|
117
117
|
"repository": {
|
|
118
118
|
"type": "git",
|