@swapkit/api-sdk-typescript 2.1.0-nightly.20260806022614 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +50 -275
- package/dist/index.d.ts +50 -275
- package/package.json +1 -1
- package/src/types.ts +50 -275
package/src/types.ts
CHANGED
|
@@ -298,74 +298,29 @@ export type TrackTransactionResponse = {
|
|
|
298
298
|
affiliate?: string;
|
|
299
299
|
fees?: {
|
|
300
300
|
network?: {
|
|
301
|
-
|
|
302
|
-
symbol: string;
|
|
303
|
-
ticker: string;
|
|
304
|
-
decimal?: number;
|
|
305
|
-
address?: string;
|
|
306
|
-
isGasAsset: boolean;
|
|
307
|
-
isSynthetic: boolean;
|
|
308
|
-
tax?: {
|
|
309
|
-
buy: number;
|
|
310
|
-
sell: number;
|
|
311
|
-
};
|
|
301
|
+
identifier: string;
|
|
312
302
|
amount: string;
|
|
303
|
+
decimal?: number;
|
|
313
304
|
};
|
|
314
305
|
affiliate?: {
|
|
315
|
-
|
|
316
|
-
symbol: string;
|
|
317
|
-
ticker: string;
|
|
318
|
-
decimal?: number;
|
|
319
|
-
address?: string;
|
|
320
|
-
isGasAsset: boolean;
|
|
321
|
-
isSynthetic: boolean;
|
|
322
|
-
tax?: {
|
|
323
|
-
buy: number;
|
|
324
|
-
sell: number;
|
|
325
|
-
};
|
|
306
|
+
identifier: string;
|
|
326
307
|
amount: string;
|
|
308
|
+
decimal?: number;
|
|
327
309
|
};
|
|
328
310
|
liquidity?: {
|
|
329
|
-
|
|
330
|
-
symbol: string;
|
|
331
|
-
ticker: string;
|
|
332
|
-
decimal?: number;
|
|
333
|
-
address?: string;
|
|
334
|
-
isGasAsset: boolean;
|
|
335
|
-
isSynthetic: boolean;
|
|
336
|
-
tax?: {
|
|
337
|
-
buy: number;
|
|
338
|
-
sell: number;
|
|
339
|
-
};
|
|
311
|
+
identifier: string;
|
|
340
312
|
amount: string;
|
|
313
|
+
decimal?: number;
|
|
341
314
|
};
|
|
342
315
|
protocol?: {
|
|
343
|
-
|
|
344
|
-
symbol: string;
|
|
345
|
-
ticker: string;
|
|
346
|
-
decimal?: number;
|
|
347
|
-
address?: string;
|
|
348
|
-
isGasAsset: boolean;
|
|
349
|
-
isSynthetic: boolean;
|
|
350
|
-
tax?: {
|
|
351
|
-
buy: number;
|
|
352
|
-
sell: number;
|
|
353
|
-
};
|
|
316
|
+
identifier: string;
|
|
354
317
|
amount: string;
|
|
318
|
+
decimal?: number;
|
|
355
319
|
};
|
|
356
320
|
tax?: {
|
|
357
|
-
|
|
358
|
-
symbol: string;
|
|
359
|
-
ticker: string;
|
|
360
|
-
decimal?: number;
|
|
361
|
-
address?: string;
|
|
362
|
-
isGasAsset: boolean;
|
|
363
|
-
isSynthetic: boolean;
|
|
364
|
-
tax?: {
|
|
365
|
-
buy: number;
|
|
366
|
-
sell: number;
|
|
367
|
-
};
|
|
321
|
+
identifier: string;
|
|
368
322
|
amount: string;
|
|
323
|
+
decimal?: number;
|
|
369
324
|
};
|
|
370
325
|
};
|
|
371
326
|
provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
|
|
@@ -455,74 +410,29 @@ export type TrackTransactionResponse = {
|
|
|
455
410
|
affiliate?: string;
|
|
456
411
|
fees?: {
|
|
457
412
|
network?: {
|
|
458
|
-
|
|
459
|
-
symbol: string;
|
|
460
|
-
ticker: string;
|
|
461
|
-
decimal?: number;
|
|
462
|
-
address?: string;
|
|
463
|
-
isGasAsset: boolean;
|
|
464
|
-
isSynthetic: boolean;
|
|
465
|
-
tax?: {
|
|
466
|
-
buy: number;
|
|
467
|
-
sell: number;
|
|
468
|
-
};
|
|
413
|
+
identifier: string;
|
|
469
414
|
amount: string;
|
|
415
|
+
decimal?: number;
|
|
470
416
|
};
|
|
471
417
|
affiliate?: {
|
|
472
|
-
|
|
473
|
-
symbol: string;
|
|
474
|
-
ticker: string;
|
|
475
|
-
decimal?: number;
|
|
476
|
-
address?: string;
|
|
477
|
-
isGasAsset: boolean;
|
|
478
|
-
isSynthetic: boolean;
|
|
479
|
-
tax?: {
|
|
480
|
-
buy: number;
|
|
481
|
-
sell: number;
|
|
482
|
-
};
|
|
418
|
+
identifier: string;
|
|
483
419
|
amount: string;
|
|
420
|
+
decimal?: number;
|
|
484
421
|
};
|
|
485
422
|
liquidity?: {
|
|
486
|
-
|
|
487
|
-
symbol: string;
|
|
488
|
-
ticker: string;
|
|
489
|
-
decimal?: number;
|
|
490
|
-
address?: string;
|
|
491
|
-
isGasAsset: boolean;
|
|
492
|
-
isSynthetic: boolean;
|
|
493
|
-
tax?: {
|
|
494
|
-
buy: number;
|
|
495
|
-
sell: number;
|
|
496
|
-
};
|
|
423
|
+
identifier: string;
|
|
497
424
|
amount: string;
|
|
425
|
+
decimal?: number;
|
|
498
426
|
};
|
|
499
427
|
protocol?: {
|
|
500
|
-
|
|
501
|
-
symbol: string;
|
|
502
|
-
ticker: string;
|
|
503
|
-
decimal?: number;
|
|
504
|
-
address?: string;
|
|
505
|
-
isGasAsset: boolean;
|
|
506
|
-
isSynthetic: boolean;
|
|
507
|
-
tax?: {
|
|
508
|
-
buy: number;
|
|
509
|
-
sell: number;
|
|
510
|
-
};
|
|
428
|
+
identifier: string;
|
|
511
429
|
amount: string;
|
|
430
|
+
decimal?: number;
|
|
512
431
|
};
|
|
513
432
|
tax?: {
|
|
514
|
-
|
|
515
|
-
symbol: string;
|
|
516
|
-
ticker: string;
|
|
517
|
-
decimal?: number;
|
|
518
|
-
address?: string;
|
|
519
|
-
isGasAsset: boolean;
|
|
520
|
-
isSynthetic: boolean;
|
|
521
|
-
tax?: {
|
|
522
|
-
buy: number;
|
|
523
|
-
sell: number;
|
|
524
|
-
};
|
|
433
|
+
identifier: string;
|
|
525
434
|
amount: string;
|
|
435
|
+
decimal?: number;
|
|
526
436
|
};
|
|
527
437
|
};
|
|
528
438
|
provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
|
|
@@ -616,74 +526,29 @@ export type InsertTrackedTransactionRequest = {
|
|
|
616
526
|
affiliate?: string;
|
|
617
527
|
fees?: {
|
|
618
528
|
network?: {
|
|
619
|
-
|
|
620
|
-
symbol: string;
|
|
621
|
-
ticker: string;
|
|
622
|
-
decimal?: number;
|
|
623
|
-
address?: string;
|
|
624
|
-
isGasAsset: boolean;
|
|
625
|
-
isSynthetic: boolean;
|
|
626
|
-
tax?: {
|
|
627
|
-
buy: number;
|
|
628
|
-
sell: number;
|
|
629
|
-
};
|
|
529
|
+
identifier: string;
|
|
630
530
|
amount: string;
|
|
531
|
+
decimal?: number;
|
|
631
532
|
};
|
|
632
533
|
affiliate?: {
|
|
633
|
-
|
|
634
|
-
symbol: string;
|
|
635
|
-
ticker: string;
|
|
636
|
-
decimal?: number;
|
|
637
|
-
address?: string;
|
|
638
|
-
isGasAsset: boolean;
|
|
639
|
-
isSynthetic: boolean;
|
|
640
|
-
tax?: {
|
|
641
|
-
buy: number;
|
|
642
|
-
sell: number;
|
|
643
|
-
};
|
|
534
|
+
identifier: string;
|
|
644
535
|
amount: string;
|
|
536
|
+
decimal?: number;
|
|
645
537
|
};
|
|
646
538
|
liquidity?: {
|
|
647
|
-
|
|
648
|
-
symbol: string;
|
|
649
|
-
ticker: string;
|
|
650
|
-
decimal?: number;
|
|
651
|
-
address?: string;
|
|
652
|
-
isGasAsset: boolean;
|
|
653
|
-
isSynthetic: boolean;
|
|
654
|
-
tax?: {
|
|
655
|
-
buy: number;
|
|
656
|
-
sell: number;
|
|
657
|
-
};
|
|
539
|
+
identifier: string;
|
|
658
540
|
amount: string;
|
|
541
|
+
decimal?: number;
|
|
659
542
|
};
|
|
660
543
|
protocol?: {
|
|
661
|
-
|
|
662
|
-
symbol: string;
|
|
663
|
-
ticker: string;
|
|
664
|
-
decimal?: number;
|
|
665
|
-
address?: string;
|
|
666
|
-
isGasAsset: boolean;
|
|
667
|
-
isSynthetic: boolean;
|
|
668
|
-
tax?: {
|
|
669
|
-
buy: number;
|
|
670
|
-
sell: number;
|
|
671
|
-
};
|
|
544
|
+
identifier: string;
|
|
672
545
|
amount: string;
|
|
546
|
+
decimal?: number;
|
|
673
547
|
};
|
|
674
548
|
tax?: {
|
|
675
|
-
|
|
676
|
-
symbol: string;
|
|
677
|
-
ticker: string;
|
|
678
|
-
decimal?: number;
|
|
679
|
-
address?: string;
|
|
680
|
-
isGasAsset: boolean;
|
|
681
|
-
isSynthetic: boolean;
|
|
682
|
-
tax?: {
|
|
683
|
-
buy: number;
|
|
684
|
-
sell: number;
|
|
685
|
-
};
|
|
549
|
+
identifier: string;
|
|
686
550
|
amount: string;
|
|
551
|
+
decimal?: number;
|
|
687
552
|
};
|
|
688
553
|
};
|
|
689
554
|
provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
|
|
@@ -1968,74 +1833,29 @@ export type TrackTransactionResponses = {
|
|
|
1968
1833
|
affiliate?: string;
|
|
1969
1834
|
fees?: {
|
|
1970
1835
|
network?: {
|
|
1971
|
-
|
|
1972
|
-
symbol: string;
|
|
1973
|
-
ticker: string;
|
|
1974
|
-
decimal?: number;
|
|
1975
|
-
address?: string;
|
|
1976
|
-
isGasAsset: boolean;
|
|
1977
|
-
isSynthetic: boolean;
|
|
1978
|
-
tax?: {
|
|
1979
|
-
buy: number;
|
|
1980
|
-
sell: number;
|
|
1981
|
-
};
|
|
1836
|
+
identifier: string;
|
|
1982
1837
|
amount: string;
|
|
1838
|
+
decimal?: number;
|
|
1983
1839
|
};
|
|
1984
1840
|
affiliate?: {
|
|
1985
|
-
|
|
1986
|
-
symbol: string;
|
|
1987
|
-
ticker: string;
|
|
1988
|
-
decimal?: number;
|
|
1989
|
-
address?: string;
|
|
1990
|
-
isGasAsset: boolean;
|
|
1991
|
-
isSynthetic: boolean;
|
|
1992
|
-
tax?: {
|
|
1993
|
-
buy: number;
|
|
1994
|
-
sell: number;
|
|
1995
|
-
};
|
|
1841
|
+
identifier: string;
|
|
1996
1842
|
amount: string;
|
|
1843
|
+
decimal?: number;
|
|
1997
1844
|
};
|
|
1998
1845
|
liquidity?: {
|
|
1999
|
-
|
|
2000
|
-
symbol: string;
|
|
2001
|
-
ticker: string;
|
|
2002
|
-
decimal?: number;
|
|
2003
|
-
address?: string;
|
|
2004
|
-
isGasAsset: boolean;
|
|
2005
|
-
isSynthetic: boolean;
|
|
2006
|
-
tax?: {
|
|
2007
|
-
buy: number;
|
|
2008
|
-
sell: number;
|
|
2009
|
-
};
|
|
1846
|
+
identifier: string;
|
|
2010
1847
|
amount: string;
|
|
1848
|
+
decimal?: number;
|
|
2011
1849
|
};
|
|
2012
1850
|
protocol?: {
|
|
2013
|
-
|
|
2014
|
-
symbol: string;
|
|
2015
|
-
ticker: string;
|
|
2016
|
-
decimal?: number;
|
|
2017
|
-
address?: string;
|
|
2018
|
-
isGasAsset: boolean;
|
|
2019
|
-
isSynthetic: boolean;
|
|
2020
|
-
tax?: {
|
|
2021
|
-
buy: number;
|
|
2022
|
-
sell: number;
|
|
2023
|
-
};
|
|
1851
|
+
identifier: string;
|
|
2024
1852
|
amount: string;
|
|
1853
|
+
decimal?: number;
|
|
2025
1854
|
};
|
|
2026
1855
|
tax?: {
|
|
2027
|
-
|
|
2028
|
-
symbol: string;
|
|
2029
|
-
ticker: string;
|
|
2030
|
-
decimal?: number;
|
|
2031
|
-
address?: string;
|
|
2032
|
-
isGasAsset: boolean;
|
|
2033
|
-
isSynthetic: boolean;
|
|
2034
|
-
tax?: {
|
|
2035
|
-
buy: number;
|
|
2036
|
-
sell: number;
|
|
2037
|
-
};
|
|
1856
|
+
identifier: string;
|
|
2038
1857
|
amount: string;
|
|
1858
|
+
decimal?: number;
|
|
2039
1859
|
};
|
|
2040
1860
|
};
|
|
2041
1861
|
provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
|
|
@@ -2125,74 +1945,29 @@ export type TrackTransactionResponses = {
|
|
|
2125
1945
|
affiliate?: string;
|
|
2126
1946
|
fees?: {
|
|
2127
1947
|
network?: {
|
|
2128
|
-
|
|
2129
|
-
symbol: string;
|
|
2130
|
-
ticker: string;
|
|
2131
|
-
decimal?: number;
|
|
2132
|
-
address?: string;
|
|
2133
|
-
isGasAsset: boolean;
|
|
2134
|
-
isSynthetic: boolean;
|
|
2135
|
-
tax?: {
|
|
2136
|
-
buy: number;
|
|
2137
|
-
sell: number;
|
|
2138
|
-
};
|
|
1948
|
+
identifier: string;
|
|
2139
1949
|
amount: string;
|
|
1950
|
+
decimal?: number;
|
|
2140
1951
|
};
|
|
2141
1952
|
affiliate?: {
|
|
2142
|
-
|
|
2143
|
-
symbol: string;
|
|
2144
|
-
ticker: string;
|
|
2145
|
-
decimal?: number;
|
|
2146
|
-
address?: string;
|
|
2147
|
-
isGasAsset: boolean;
|
|
2148
|
-
isSynthetic: boolean;
|
|
2149
|
-
tax?: {
|
|
2150
|
-
buy: number;
|
|
2151
|
-
sell: number;
|
|
2152
|
-
};
|
|
1953
|
+
identifier: string;
|
|
2153
1954
|
amount: string;
|
|
1955
|
+
decimal?: number;
|
|
2154
1956
|
};
|
|
2155
1957
|
liquidity?: {
|
|
2156
|
-
|
|
2157
|
-
symbol: string;
|
|
2158
|
-
ticker: string;
|
|
2159
|
-
decimal?: number;
|
|
2160
|
-
address?: string;
|
|
2161
|
-
isGasAsset: boolean;
|
|
2162
|
-
isSynthetic: boolean;
|
|
2163
|
-
tax?: {
|
|
2164
|
-
buy: number;
|
|
2165
|
-
sell: number;
|
|
2166
|
-
};
|
|
1958
|
+
identifier: string;
|
|
2167
1959
|
amount: string;
|
|
1960
|
+
decimal?: number;
|
|
2168
1961
|
};
|
|
2169
1962
|
protocol?: {
|
|
2170
|
-
|
|
2171
|
-
symbol: string;
|
|
2172
|
-
ticker: string;
|
|
2173
|
-
decimal?: number;
|
|
2174
|
-
address?: string;
|
|
2175
|
-
isGasAsset: boolean;
|
|
2176
|
-
isSynthetic: boolean;
|
|
2177
|
-
tax?: {
|
|
2178
|
-
buy: number;
|
|
2179
|
-
sell: number;
|
|
2180
|
-
};
|
|
1963
|
+
identifier: string;
|
|
2181
1964
|
amount: string;
|
|
1965
|
+
decimal?: number;
|
|
2182
1966
|
};
|
|
2183
1967
|
tax?: {
|
|
2184
|
-
|
|
2185
|
-
symbol: string;
|
|
2186
|
-
ticker: string;
|
|
2187
|
-
decimal?: number;
|
|
2188
|
-
address?: string;
|
|
2189
|
-
isGasAsset: boolean;
|
|
2190
|
-
isSynthetic: boolean;
|
|
2191
|
-
tax?: {
|
|
2192
|
-
buy: number;
|
|
2193
|
-
sell: number;
|
|
2194
|
-
};
|
|
1968
|
+
identifier: string;
|
|
2195
1969
|
amount: string;
|
|
1970
|
+
decimal?: number;
|
|
2196
1971
|
};
|
|
2197
1972
|
};
|
|
2198
1973
|
provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
|