@dzapio/sdk 2.0.50 → 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 +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -496,6 +496,11 @@ declare const contractErrorActions: {
|
|
|
496
496
|
readonly TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE";
|
|
497
497
|
readonly INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE";
|
|
498
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";
|
|
499
504
|
};
|
|
500
505
|
type ContractErrorResponse = {
|
|
501
506
|
status: string;
|
|
@@ -2122,13 +2127,16 @@ declare const arcTestnet: {
|
|
|
2122
2127
|
};
|
|
2123
2128
|
};
|
|
2124
2129
|
sourceId?: number | undefined | undefined;
|
|
2130
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2125
2131
|
testnet: true;
|
|
2126
2132
|
custom?: Record<string, unknown> | undefined;
|
|
2127
2133
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2128
2134
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2129
2135
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2136
|
+
client: viem.Client;
|
|
2130
2137
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2131
2138
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2139
|
+
client: viem.Client;
|
|
2132
2140
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2133
2141
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2134
2142
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2167,14 +2175,17 @@ declare const arthera: {
|
|
|
2167
2175
|
};
|
|
2168
2176
|
};
|
|
2169
2177
|
sourceId?: number | undefined | undefined;
|
|
2178
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2170
2179
|
testnet?: boolean | undefined | undefined;
|
|
2171
2180
|
custom?: Record<string, unknown> | undefined;
|
|
2172
2181
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2173
2182
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2174
2183
|
formatters?: undefined;
|
|
2175
2184
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2185
|
+
client: viem.Client;
|
|
2176
2186
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2177
2187
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2188
|
+
client: viem.Client;
|
|
2178
2189
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2179
2190
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2180
2191
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2212,14 +2223,17 @@ declare const astralisTestnet: {
|
|
|
2212
2223
|
};
|
|
2213
2224
|
};
|
|
2214
2225
|
sourceId?: number | undefined | undefined;
|
|
2226
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2215
2227
|
testnet?: boolean | undefined | undefined;
|
|
2216
2228
|
custom?: Record<string, unknown> | undefined;
|
|
2217
2229
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2218
2230
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2219
2231
|
formatters?: undefined;
|
|
2220
2232
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2233
|
+
client: viem.Client;
|
|
2221
2234
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2222
2235
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2236
|
+
client: viem.Client;
|
|
2223
2237
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2224
2238
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2225
2239
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2258,13 +2272,16 @@ declare const bitlayer: {
|
|
|
2258
2272
|
};
|
|
2259
2273
|
};
|
|
2260
2274
|
sourceId?: number | undefined | undefined;
|
|
2275
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2261
2276
|
testnet?: boolean | undefined | undefined;
|
|
2262
2277
|
custom?: Record<string, unknown> | undefined;
|
|
2263
2278
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2264
2279
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2265
2280
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2281
|
+
client: viem.Client;
|
|
2266
2282
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2267
2283
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2284
|
+
client: viem.Client;
|
|
2268
2285
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2269
2286
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2270
2287
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2328,13 +2345,16 @@ declare const citrea: {
|
|
|
2328
2345
|
};
|
|
2329
2346
|
};
|
|
2330
2347
|
sourceId?: number | undefined | undefined;
|
|
2348
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2331
2349
|
testnet: false;
|
|
2332
2350
|
custom?: Record<string, unknown> | undefined;
|
|
2333
2351
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2334
2352
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2335
2353
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2354
|
+
client: viem.Client;
|
|
2336
2355
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2337
2356
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2357
|
+
client: viem.Client;
|
|
2338
2358
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2339
2359
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2340
2360
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2373,14 +2393,17 @@ declare const fiveIre: {
|
|
|
2373
2393
|
};
|
|
2374
2394
|
};
|
|
2375
2395
|
sourceId?: number | undefined | undefined;
|
|
2396
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2376
2397
|
testnet?: boolean | undefined | undefined;
|
|
2377
2398
|
custom?: Record<string, unknown> | undefined;
|
|
2378
2399
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2379
2400
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2380
2401
|
formatters?: undefined;
|
|
2381
2402
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2403
|
+
client: viem.Client;
|
|
2382
2404
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2383
2405
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2406
|
+
client: viem.Client;
|
|
2384
2407
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2385
2408
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2386
2409
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2418,13 +2441,16 @@ declare const hemi: {
|
|
|
2418
2441
|
};
|
|
2419
2442
|
};
|
|
2420
2443
|
sourceId?: number | undefined | undefined;
|
|
2444
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2421
2445
|
testnet: false;
|
|
2422
2446
|
custom?: Record<string, unknown> | undefined;
|
|
2423
2447
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2424
2448
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2425
2449
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2450
|
+
client: viem.Client;
|
|
2426
2451
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2427
2452
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2453
|
+
client: viem.Client;
|
|
2428
2454
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2429
2455
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2430
2456
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2464,14 +2490,17 @@ declare const hyperEvm: {
|
|
|
2464
2490
|
};
|
|
2465
2491
|
};
|
|
2466
2492
|
sourceId?: number | undefined | undefined;
|
|
2493
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2467
2494
|
testnet?: boolean | undefined | undefined;
|
|
2468
2495
|
custom?: Record<string, unknown> | undefined;
|
|
2469
2496
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2470
2497
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2471
2498
|
formatters?: undefined;
|
|
2472
2499
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2500
|
+
client: viem.Client;
|
|
2473
2501
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2474
2502
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2503
|
+
client: viem.Client;
|
|
2475
2504
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2476
2505
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2477
2506
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2509,14 +2538,17 @@ declare const hyperliquid: {
|
|
|
2509
2538
|
};
|
|
2510
2539
|
};
|
|
2511
2540
|
sourceId?: number | undefined | undefined;
|
|
2541
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2512
2542
|
testnet?: boolean | undefined | undefined;
|
|
2513
2543
|
custom?: Record<string, unknown> | undefined;
|
|
2514
2544
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2515
2545
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2516
2546
|
formatters?: undefined;
|
|
2517
2547
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2548
|
+
client: viem.Client;
|
|
2518
2549
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2519
2550
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2551
|
+
client: viem.Client;
|
|
2520
2552
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2521
2553
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2522
2554
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2554,13 +2586,16 @@ declare const katana: {
|
|
|
2554
2586
|
};
|
|
2555
2587
|
};
|
|
2556
2588
|
sourceId?: number | undefined | undefined;
|
|
2589
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2557
2590
|
testnet: false;
|
|
2558
2591
|
custom?: Record<string, unknown> | undefined;
|
|
2559
2592
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2560
2593
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2561
2594
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2595
|
+
client: viem.Client;
|
|
2562
2596
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2563
2597
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2598
|
+
client: viem.Client;
|
|
2564
2599
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2565
2600
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2566
2601
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2601,13 +2636,16 @@ declare const merlin: {
|
|
|
2601
2636
|
};
|
|
2602
2637
|
};
|
|
2603
2638
|
sourceId?: number | undefined | undefined;
|
|
2639
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2604
2640
|
testnet?: boolean | undefined | undefined;
|
|
2605
2641
|
custom?: Record<string, unknown> | undefined;
|
|
2606
2642
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2607
2643
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2608
2644
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2645
|
+
client: viem.Client;
|
|
2609
2646
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2610
2647
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2648
|
+
client: viem.Client;
|
|
2611
2649
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2612
2650
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2613
2651
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2646,14 +2684,17 @@ declare const pushTestnet: {
|
|
|
2646
2684
|
};
|
|
2647
2685
|
};
|
|
2648
2686
|
sourceId?: number | undefined | undefined;
|
|
2687
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2649
2688
|
testnet?: boolean | undefined | undefined;
|
|
2650
2689
|
custom?: Record<string, unknown> | undefined;
|
|
2651
2690
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2652
2691
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2653
2692
|
formatters?: undefined;
|
|
2654
2693
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2694
|
+
client: viem.Client;
|
|
2655
2695
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2656
2696
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2697
|
+
client: viem.Client;
|
|
2657
2698
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2658
2699
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2659
2700
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2692,14 +2733,17 @@ declare const stableChain: {
|
|
|
2692
2733
|
};
|
|
2693
2734
|
};
|
|
2694
2735
|
sourceId?: number | undefined | undefined;
|
|
2736
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2695
2737
|
testnet?: boolean | undefined | undefined;
|
|
2696
2738
|
custom?: Record<string, unknown> | undefined;
|
|
2697
2739
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2698
2740
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2699
2741
|
formatters?: undefined;
|
|
2700
2742
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2743
|
+
client: viem.Client;
|
|
2701
2744
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2702
2745
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2746
|
+
client: viem.Client;
|
|
2703
2747
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2704
2748
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2705
2749
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2739,14 +2783,17 @@ declare const robinhood: {
|
|
|
2739
2783
|
};
|
|
2740
2784
|
};
|
|
2741
2785
|
sourceId?: number | undefined | undefined;
|
|
2786
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2742
2787
|
testnet?: boolean | undefined | undefined;
|
|
2743
2788
|
custom?: Record<string, unknown> | undefined;
|
|
2744
2789
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2745
2790
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2746
2791
|
formatters?: undefined;
|
|
2747
2792
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2793
|
+
client: viem.Client;
|
|
2748
2794
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2749
2795
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2796
|
+
client: viem.Client;
|
|
2750
2797
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2751
2798
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2752
2799
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
package/dist/index.d.ts
CHANGED
|
@@ -496,6 +496,11 @@ declare const contractErrorActions: {
|
|
|
496
496
|
readonly TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE";
|
|
497
497
|
readonly INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE";
|
|
498
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";
|
|
499
504
|
};
|
|
500
505
|
type ContractErrorResponse = {
|
|
501
506
|
status: string;
|
|
@@ -2122,13 +2127,16 @@ declare const arcTestnet: {
|
|
|
2122
2127
|
};
|
|
2123
2128
|
};
|
|
2124
2129
|
sourceId?: number | undefined | undefined;
|
|
2130
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2125
2131
|
testnet: true;
|
|
2126
2132
|
custom?: Record<string, unknown> | undefined;
|
|
2127
2133
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2128
2134
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2129
2135
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2136
|
+
client: viem.Client;
|
|
2130
2137
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2131
2138
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2139
|
+
client: viem.Client;
|
|
2132
2140
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2133
2141
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2134
2142
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2167,14 +2175,17 @@ declare const arthera: {
|
|
|
2167
2175
|
};
|
|
2168
2176
|
};
|
|
2169
2177
|
sourceId?: number | undefined | undefined;
|
|
2178
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2170
2179
|
testnet?: boolean | undefined | undefined;
|
|
2171
2180
|
custom?: Record<string, unknown> | undefined;
|
|
2172
2181
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2173
2182
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2174
2183
|
formatters?: undefined;
|
|
2175
2184
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2185
|
+
client: viem.Client;
|
|
2176
2186
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2177
2187
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2188
|
+
client: viem.Client;
|
|
2178
2189
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2179
2190
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2180
2191
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2212,14 +2223,17 @@ declare const astralisTestnet: {
|
|
|
2212
2223
|
};
|
|
2213
2224
|
};
|
|
2214
2225
|
sourceId?: number | undefined | undefined;
|
|
2226
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2215
2227
|
testnet?: boolean | undefined | undefined;
|
|
2216
2228
|
custom?: Record<string, unknown> | undefined;
|
|
2217
2229
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2218
2230
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2219
2231
|
formatters?: undefined;
|
|
2220
2232
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2233
|
+
client: viem.Client;
|
|
2221
2234
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2222
2235
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2236
|
+
client: viem.Client;
|
|
2223
2237
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2224
2238
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2225
2239
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2258,13 +2272,16 @@ declare const bitlayer: {
|
|
|
2258
2272
|
};
|
|
2259
2273
|
};
|
|
2260
2274
|
sourceId?: number | undefined | undefined;
|
|
2275
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2261
2276
|
testnet?: boolean | undefined | undefined;
|
|
2262
2277
|
custom?: Record<string, unknown> | undefined;
|
|
2263
2278
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2264
2279
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2265
2280
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2281
|
+
client: viem.Client;
|
|
2266
2282
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2267
2283
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2284
|
+
client: viem.Client;
|
|
2268
2285
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2269
2286
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2270
2287
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2328,13 +2345,16 @@ declare const citrea: {
|
|
|
2328
2345
|
};
|
|
2329
2346
|
};
|
|
2330
2347
|
sourceId?: number | undefined | undefined;
|
|
2348
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2331
2349
|
testnet: false;
|
|
2332
2350
|
custom?: Record<string, unknown> | undefined;
|
|
2333
2351
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2334
2352
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2335
2353
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2354
|
+
client: viem.Client;
|
|
2336
2355
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2337
2356
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2357
|
+
client: viem.Client;
|
|
2338
2358
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2339
2359
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2340
2360
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2373,14 +2393,17 @@ declare const fiveIre: {
|
|
|
2373
2393
|
};
|
|
2374
2394
|
};
|
|
2375
2395
|
sourceId?: number | undefined | undefined;
|
|
2396
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2376
2397
|
testnet?: boolean | undefined | undefined;
|
|
2377
2398
|
custom?: Record<string, unknown> | undefined;
|
|
2378
2399
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2379
2400
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2380
2401
|
formatters?: undefined;
|
|
2381
2402
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2403
|
+
client: viem.Client;
|
|
2382
2404
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2383
2405
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2406
|
+
client: viem.Client;
|
|
2384
2407
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2385
2408
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2386
2409
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2418,13 +2441,16 @@ declare const hemi: {
|
|
|
2418
2441
|
};
|
|
2419
2442
|
};
|
|
2420
2443
|
sourceId?: number | undefined | undefined;
|
|
2444
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2421
2445
|
testnet: false;
|
|
2422
2446
|
custom?: Record<string, unknown> | undefined;
|
|
2423
2447
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2424
2448
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2425
2449
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2450
|
+
client: viem.Client;
|
|
2426
2451
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2427
2452
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2453
|
+
client: viem.Client;
|
|
2428
2454
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2429
2455
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2430
2456
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2464,14 +2490,17 @@ declare const hyperEvm: {
|
|
|
2464
2490
|
};
|
|
2465
2491
|
};
|
|
2466
2492
|
sourceId?: number | undefined | undefined;
|
|
2493
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2467
2494
|
testnet?: boolean | undefined | undefined;
|
|
2468
2495
|
custom?: Record<string, unknown> | undefined;
|
|
2469
2496
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2470
2497
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2471
2498
|
formatters?: undefined;
|
|
2472
2499
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2500
|
+
client: viem.Client;
|
|
2473
2501
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2474
2502
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2503
|
+
client: viem.Client;
|
|
2475
2504
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2476
2505
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2477
2506
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2509,14 +2538,17 @@ declare const hyperliquid: {
|
|
|
2509
2538
|
};
|
|
2510
2539
|
};
|
|
2511
2540
|
sourceId?: number | undefined | undefined;
|
|
2541
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2512
2542
|
testnet?: boolean | undefined | undefined;
|
|
2513
2543
|
custom?: Record<string, unknown> | undefined;
|
|
2514
2544
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2515
2545
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2516
2546
|
formatters?: undefined;
|
|
2517
2547
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2548
|
+
client: viem.Client;
|
|
2518
2549
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2519
2550
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2551
|
+
client: viem.Client;
|
|
2520
2552
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2521
2553
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2522
2554
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2554,13 +2586,16 @@ declare const katana: {
|
|
|
2554
2586
|
};
|
|
2555
2587
|
};
|
|
2556
2588
|
sourceId?: number | undefined | undefined;
|
|
2589
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2557
2590
|
testnet: false;
|
|
2558
2591
|
custom?: Record<string, unknown> | undefined;
|
|
2559
2592
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2560
2593
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2561
2594
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2595
|
+
client: viem.Client;
|
|
2562
2596
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2563
2597
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2598
|
+
client: viem.Client;
|
|
2564
2599
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2565
2600
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2566
2601
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2601,13 +2636,16 @@ declare const merlin: {
|
|
|
2601
2636
|
};
|
|
2602
2637
|
};
|
|
2603
2638
|
sourceId?: number | undefined | undefined;
|
|
2639
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2604
2640
|
testnet?: boolean | undefined | undefined;
|
|
2605
2641
|
custom?: Record<string, unknown> | undefined;
|
|
2606
2642
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2607
2643
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2608
2644
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2645
|
+
client: viem.Client;
|
|
2609
2646
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2610
2647
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2648
|
+
client: viem.Client;
|
|
2611
2649
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2612
2650
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2613
2651
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2646,14 +2684,17 @@ declare const pushTestnet: {
|
|
|
2646
2684
|
};
|
|
2647
2685
|
};
|
|
2648
2686
|
sourceId?: number | undefined | undefined;
|
|
2687
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2649
2688
|
testnet?: boolean | undefined | undefined;
|
|
2650
2689
|
custom?: Record<string, unknown> | undefined;
|
|
2651
2690
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2652
2691
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2653
2692
|
formatters?: undefined;
|
|
2654
2693
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2694
|
+
client: viem.Client;
|
|
2655
2695
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2656
2696
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2697
|
+
client: viem.Client;
|
|
2657
2698
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2658
2699
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2659
2700
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2692,14 +2733,17 @@ declare const stableChain: {
|
|
|
2692
2733
|
};
|
|
2693
2734
|
};
|
|
2694
2735
|
sourceId?: number | undefined | undefined;
|
|
2736
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2695
2737
|
testnet?: boolean | undefined | undefined;
|
|
2696
2738
|
custom?: Record<string, unknown> | undefined;
|
|
2697
2739
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2698
2740
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2699
2741
|
formatters?: undefined;
|
|
2700
2742
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2743
|
+
client: viem.Client;
|
|
2701
2744
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2702
2745
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2746
|
+
client: viem.Client;
|
|
2703
2747
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2704
2748
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2705
2749
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -2739,14 +2783,17 @@ declare const robinhood: {
|
|
|
2739
2783
|
};
|
|
2740
2784
|
};
|
|
2741
2785
|
sourceId?: number | undefined | undefined;
|
|
2786
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
2742
2787
|
testnet?: boolean | undefined | undefined;
|
|
2743
2788
|
custom?: Record<string, unknown> | undefined;
|
|
2744
2789
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2745
2790
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2746
2791
|
formatters?: undefined;
|
|
2747
2792
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2793
|
+
client: viem.Client;
|
|
2748
2794
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2749
2795
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2796
|
+
client: viem.Client;
|
|
2750
2797
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2751
2798
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2752
2799
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
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}$/;
|
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}$/;
|
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",
|