@swapkit/api-sdk-typescript 2.0.2 → 3.0.0-nightly.20260806033321
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 -250
- package/dist/index.d.ts +50 -250
- package/package.json +1 -1
- package/src/types.ts +50 -250
package/dist/index.d.ts
CHANGED
|
@@ -608,69 +608,29 @@ type TrackTransactionResponse = {
|
|
|
608
608
|
affiliate?: string;
|
|
609
609
|
fees?: {
|
|
610
610
|
network?: {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
ticker: string;
|
|
611
|
+
identifier: string;
|
|
612
|
+
amount: string;
|
|
614
613
|
decimal?: number;
|
|
615
|
-
address?: string;
|
|
616
|
-
isGasAsset: boolean;
|
|
617
|
-
isSynthetic: boolean;
|
|
618
|
-
tax?: {
|
|
619
|
-
buy: number;
|
|
620
|
-
sell: number;
|
|
621
|
-
};
|
|
622
614
|
};
|
|
623
615
|
affiliate?: {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
ticker: string;
|
|
616
|
+
identifier: string;
|
|
617
|
+
amount: string;
|
|
627
618
|
decimal?: number;
|
|
628
|
-
address?: string;
|
|
629
|
-
isGasAsset: boolean;
|
|
630
|
-
isSynthetic: boolean;
|
|
631
|
-
tax?: {
|
|
632
|
-
buy: number;
|
|
633
|
-
sell: number;
|
|
634
|
-
};
|
|
635
619
|
};
|
|
636
620
|
liquidity?: {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
ticker: string;
|
|
621
|
+
identifier: string;
|
|
622
|
+
amount: string;
|
|
640
623
|
decimal?: number;
|
|
641
|
-
address?: string;
|
|
642
|
-
isGasAsset: boolean;
|
|
643
|
-
isSynthetic: boolean;
|
|
644
|
-
tax?: {
|
|
645
|
-
buy: number;
|
|
646
|
-
sell: number;
|
|
647
|
-
};
|
|
648
624
|
};
|
|
649
625
|
protocol?: {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
ticker: string;
|
|
626
|
+
identifier: string;
|
|
627
|
+
amount: string;
|
|
653
628
|
decimal?: number;
|
|
654
|
-
address?: string;
|
|
655
|
-
isGasAsset: boolean;
|
|
656
|
-
isSynthetic: boolean;
|
|
657
|
-
tax?: {
|
|
658
|
-
buy: number;
|
|
659
|
-
sell: number;
|
|
660
|
-
};
|
|
661
629
|
};
|
|
662
630
|
tax?: {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
ticker: string;
|
|
631
|
+
identifier: string;
|
|
632
|
+
amount: string;
|
|
666
633
|
decimal?: number;
|
|
667
|
-
address?: string;
|
|
668
|
-
isGasAsset: boolean;
|
|
669
|
-
isSynthetic: boolean;
|
|
670
|
-
tax?: {
|
|
671
|
-
buy: number;
|
|
672
|
-
sell: number;
|
|
673
|
-
};
|
|
674
634
|
};
|
|
675
635
|
};
|
|
676
636
|
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';
|
|
@@ -760,69 +720,29 @@ type TrackTransactionResponse = {
|
|
|
760
720
|
affiliate?: string;
|
|
761
721
|
fees?: {
|
|
762
722
|
network?: {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
ticker: string;
|
|
723
|
+
identifier: string;
|
|
724
|
+
amount: string;
|
|
766
725
|
decimal?: number;
|
|
767
|
-
address?: string;
|
|
768
|
-
isGasAsset: boolean;
|
|
769
|
-
isSynthetic: boolean;
|
|
770
|
-
tax?: {
|
|
771
|
-
buy: number;
|
|
772
|
-
sell: number;
|
|
773
|
-
};
|
|
774
726
|
};
|
|
775
727
|
affiliate?: {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
ticker: string;
|
|
728
|
+
identifier: string;
|
|
729
|
+
amount: string;
|
|
779
730
|
decimal?: number;
|
|
780
|
-
address?: string;
|
|
781
|
-
isGasAsset: boolean;
|
|
782
|
-
isSynthetic: boolean;
|
|
783
|
-
tax?: {
|
|
784
|
-
buy: number;
|
|
785
|
-
sell: number;
|
|
786
|
-
};
|
|
787
731
|
};
|
|
788
732
|
liquidity?: {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
ticker: string;
|
|
733
|
+
identifier: string;
|
|
734
|
+
amount: string;
|
|
792
735
|
decimal?: number;
|
|
793
|
-
address?: string;
|
|
794
|
-
isGasAsset: boolean;
|
|
795
|
-
isSynthetic: boolean;
|
|
796
|
-
tax?: {
|
|
797
|
-
buy: number;
|
|
798
|
-
sell: number;
|
|
799
|
-
};
|
|
800
736
|
};
|
|
801
737
|
protocol?: {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
ticker: string;
|
|
738
|
+
identifier: string;
|
|
739
|
+
amount: string;
|
|
805
740
|
decimal?: number;
|
|
806
|
-
address?: string;
|
|
807
|
-
isGasAsset: boolean;
|
|
808
|
-
isSynthetic: boolean;
|
|
809
|
-
tax?: {
|
|
810
|
-
buy: number;
|
|
811
|
-
sell: number;
|
|
812
|
-
};
|
|
813
741
|
};
|
|
814
742
|
tax?: {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
ticker: string;
|
|
743
|
+
identifier: string;
|
|
744
|
+
amount: string;
|
|
818
745
|
decimal?: number;
|
|
819
|
-
address?: string;
|
|
820
|
-
isGasAsset: boolean;
|
|
821
|
-
isSynthetic: boolean;
|
|
822
|
-
tax?: {
|
|
823
|
-
buy: number;
|
|
824
|
-
sell: number;
|
|
825
|
-
};
|
|
826
746
|
};
|
|
827
747
|
};
|
|
828
748
|
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';
|
|
@@ -915,69 +835,29 @@ type InsertTrackedTransactionRequest = {
|
|
|
915
835
|
affiliate?: string;
|
|
916
836
|
fees?: {
|
|
917
837
|
network?: {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
ticker: string;
|
|
838
|
+
identifier: string;
|
|
839
|
+
amount: string;
|
|
921
840
|
decimal?: number;
|
|
922
|
-
address?: string;
|
|
923
|
-
isGasAsset: boolean;
|
|
924
|
-
isSynthetic: boolean;
|
|
925
|
-
tax?: {
|
|
926
|
-
buy: number;
|
|
927
|
-
sell: number;
|
|
928
|
-
};
|
|
929
841
|
};
|
|
930
842
|
affiliate?: {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
ticker: string;
|
|
843
|
+
identifier: string;
|
|
844
|
+
amount: string;
|
|
934
845
|
decimal?: number;
|
|
935
|
-
address?: string;
|
|
936
|
-
isGasAsset: boolean;
|
|
937
|
-
isSynthetic: boolean;
|
|
938
|
-
tax?: {
|
|
939
|
-
buy: number;
|
|
940
|
-
sell: number;
|
|
941
|
-
};
|
|
942
846
|
};
|
|
943
847
|
liquidity?: {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
ticker: string;
|
|
848
|
+
identifier: string;
|
|
849
|
+
amount: string;
|
|
947
850
|
decimal?: number;
|
|
948
|
-
address?: string;
|
|
949
|
-
isGasAsset: boolean;
|
|
950
|
-
isSynthetic: boolean;
|
|
951
|
-
tax?: {
|
|
952
|
-
buy: number;
|
|
953
|
-
sell: number;
|
|
954
|
-
};
|
|
955
851
|
};
|
|
956
852
|
protocol?: {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
ticker: string;
|
|
853
|
+
identifier: string;
|
|
854
|
+
amount: string;
|
|
960
855
|
decimal?: number;
|
|
961
|
-
address?: string;
|
|
962
|
-
isGasAsset: boolean;
|
|
963
|
-
isSynthetic: boolean;
|
|
964
|
-
tax?: {
|
|
965
|
-
buy: number;
|
|
966
|
-
sell: number;
|
|
967
|
-
};
|
|
968
856
|
};
|
|
969
857
|
tax?: {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
ticker: string;
|
|
858
|
+
identifier: string;
|
|
859
|
+
amount: string;
|
|
973
860
|
decimal?: number;
|
|
974
|
-
address?: string;
|
|
975
|
-
isGasAsset: boolean;
|
|
976
|
-
isSynthetic: boolean;
|
|
977
|
-
tax?: {
|
|
978
|
-
buy: number;
|
|
979
|
-
sell: number;
|
|
980
|
-
};
|
|
981
861
|
};
|
|
982
862
|
};
|
|
983
863
|
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';
|
|
@@ -2215,69 +2095,29 @@ type TrackTransactionResponses = {
|
|
|
2215
2095
|
affiliate?: string;
|
|
2216
2096
|
fees?: {
|
|
2217
2097
|
network?: {
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
ticker: string;
|
|
2098
|
+
identifier: string;
|
|
2099
|
+
amount: string;
|
|
2221
2100
|
decimal?: number;
|
|
2222
|
-
address?: string;
|
|
2223
|
-
isGasAsset: boolean;
|
|
2224
|
-
isSynthetic: boolean;
|
|
2225
|
-
tax?: {
|
|
2226
|
-
buy: number;
|
|
2227
|
-
sell: number;
|
|
2228
|
-
};
|
|
2229
2101
|
};
|
|
2230
2102
|
affiliate?: {
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
ticker: string;
|
|
2103
|
+
identifier: string;
|
|
2104
|
+
amount: string;
|
|
2234
2105
|
decimal?: number;
|
|
2235
|
-
address?: string;
|
|
2236
|
-
isGasAsset: boolean;
|
|
2237
|
-
isSynthetic: boolean;
|
|
2238
|
-
tax?: {
|
|
2239
|
-
buy: number;
|
|
2240
|
-
sell: number;
|
|
2241
|
-
};
|
|
2242
2106
|
};
|
|
2243
2107
|
liquidity?: {
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
ticker: string;
|
|
2108
|
+
identifier: string;
|
|
2109
|
+
amount: string;
|
|
2247
2110
|
decimal?: number;
|
|
2248
|
-
address?: string;
|
|
2249
|
-
isGasAsset: boolean;
|
|
2250
|
-
isSynthetic: boolean;
|
|
2251
|
-
tax?: {
|
|
2252
|
-
buy: number;
|
|
2253
|
-
sell: number;
|
|
2254
|
-
};
|
|
2255
2111
|
};
|
|
2256
2112
|
protocol?: {
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
ticker: string;
|
|
2113
|
+
identifier: string;
|
|
2114
|
+
amount: string;
|
|
2260
2115
|
decimal?: number;
|
|
2261
|
-
address?: string;
|
|
2262
|
-
isGasAsset: boolean;
|
|
2263
|
-
isSynthetic: boolean;
|
|
2264
|
-
tax?: {
|
|
2265
|
-
buy: number;
|
|
2266
|
-
sell: number;
|
|
2267
|
-
};
|
|
2268
2116
|
};
|
|
2269
2117
|
tax?: {
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
ticker: string;
|
|
2118
|
+
identifier: string;
|
|
2119
|
+
amount: string;
|
|
2273
2120
|
decimal?: number;
|
|
2274
|
-
address?: string;
|
|
2275
|
-
isGasAsset: boolean;
|
|
2276
|
-
isSynthetic: boolean;
|
|
2277
|
-
tax?: {
|
|
2278
|
-
buy: number;
|
|
2279
|
-
sell: number;
|
|
2280
|
-
};
|
|
2281
2121
|
};
|
|
2282
2122
|
};
|
|
2283
2123
|
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';
|
|
@@ -2367,69 +2207,29 @@ type TrackTransactionResponses = {
|
|
|
2367
2207
|
affiliate?: string;
|
|
2368
2208
|
fees?: {
|
|
2369
2209
|
network?: {
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
ticker: string;
|
|
2210
|
+
identifier: string;
|
|
2211
|
+
amount: string;
|
|
2373
2212
|
decimal?: number;
|
|
2374
|
-
address?: string;
|
|
2375
|
-
isGasAsset: boolean;
|
|
2376
|
-
isSynthetic: boolean;
|
|
2377
|
-
tax?: {
|
|
2378
|
-
buy: number;
|
|
2379
|
-
sell: number;
|
|
2380
|
-
};
|
|
2381
2213
|
};
|
|
2382
2214
|
affiliate?: {
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
ticker: string;
|
|
2215
|
+
identifier: string;
|
|
2216
|
+
amount: string;
|
|
2386
2217
|
decimal?: number;
|
|
2387
|
-
address?: string;
|
|
2388
|
-
isGasAsset: boolean;
|
|
2389
|
-
isSynthetic: boolean;
|
|
2390
|
-
tax?: {
|
|
2391
|
-
buy: number;
|
|
2392
|
-
sell: number;
|
|
2393
|
-
};
|
|
2394
2218
|
};
|
|
2395
2219
|
liquidity?: {
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
ticker: string;
|
|
2220
|
+
identifier: string;
|
|
2221
|
+
amount: string;
|
|
2399
2222
|
decimal?: number;
|
|
2400
|
-
address?: string;
|
|
2401
|
-
isGasAsset: boolean;
|
|
2402
|
-
isSynthetic: boolean;
|
|
2403
|
-
tax?: {
|
|
2404
|
-
buy: number;
|
|
2405
|
-
sell: number;
|
|
2406
|
-
};
|
|
2407
2223
|
};
|
|
2408
2224
|
protocol?: {
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
ticker: string;
|
|
2225
|
+
identifier: string;
|
|
2226
|
+
amount: string;
|
|
2412
2227
|
decimal?: number;
|
|
2413
|
-
address?: string;
|
|
2414
|
-
isGasAsset: boolean;
|
|
2415
|
-
isSynthetic: boolean;
|
|
2416
|
-
tax?: {
|
|
2417
|
-
buy: number;
|
|
2418
|
-
sell: number;
|
|
2419
|
-
};
|
|
2420
2228
|
};
|
|
2421
2229
|
tax?: {
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
ticker: string;
|
|
2230
|
+
identifier: string;
|
|
2231
|
+
amount: string;
|
|
2425
2232
|
decimal?: number;
|
|
2426
|
-
address?: string;
|
|
2427
|
-
isGasAsset: boolean;
|
|
2428
|
-
isSynthetic: boolean;
|
|
2429
|
-
tax?: {
|
|
2430
|
-
buy: number;
|
|
2431
|
-
sell: number;
|
|
2432
|
-
};
|
|
2433
2233
|
};
|
|
2434
2234
|
};
|
|
2435
2235
|
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';
|