@proton/wrap-constants 0.2.94 → 0.2.96
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.ts +7 -6
- package/dist/index.js +79 -41
- package/dist/index.mjs +79 -41
- package/package.json +2 -2
- package/src/coins.ts +40 -1
- package/src/parsers/dex.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ interface Coin {
|
|
|
62
62
|
wallets: Wallet[];
|
|
63
63
|
image: string;
|
|
64
64
|
coingeckoId: string;
|
|
65
|
+
unifiedCryptoassetId: string;
|
|
65
66
|
balance?: Asset;
|
|
66
67
|
}
|
|
67
68
|
interface Wallet {
|
|
@@ -6529,19 +6530,19 @@ declare const getOpenOrdersParser: z.ZodObject<{
|
|
|
6529
6530
|
symbol: z.ZodOptional<z.ZodString>;
|
|
6530
6531
|
offset: z.ZodDefault<z.ZodString>;
|
|
6531
6532
|
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
|
|
6532
|
-
|
|
6533
|
+
ordinal_order_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6533
6534
|
}, "strip", z.ZodTypeAny, {
|
|
6534
6535
|
account: string;
|
|
6535
6536
|
limit: string;
|
|
6536
6537
|
offset: string;
|
|
6537
6538
|
symbol?: string | undefined;
|
|
6538
|
-
|
|
6539
|
+
ordinal_order_ids?: string[] | undefined;
|
|
6539
6540
|
}, {
|
|
6540
6541
|
account: string;
|
|
6541
6542
|
symbol?: string | undefined;
|
|
6542
6543
|
offset?: string | undefined;
|
|
6543
6544
|
limit?: string | undefined;
|
|
6544
|
-
|
|
6545
|
+
ordinal_order_ids?: string[] | undefined;
|
|
6545
6546
|
}>;
|
|
6546
6547
|
declare type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
|
|
6547
6548
|
declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
@@ -6668,23 +6669,23 @@ declare const getOrderHistoryParser: z.ZodObject<{
|
|
|
6668
6669
|
symbol: z.ZodOptional<z.ZodString>;
|
|
6669
6670
|
offset: z.ZodDefault<z.ZodString>;
|
|
6670
6671
|
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
|
|
6671
|
-
|
|
6672
|
+
ordinal_order_ids: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
6672
6673
|
trx_id: z.ZodOptional<z.ZodString>;
|
|
6673
6674
|
status: z.ZodOptional<z.ZodString>;
|
|
6674
6675
|
}, "strip", z.ZodTypeAny, {
|
|
6675
6676
|
account: string;
|
|
6676
6677
|
limit: string;
|
|
6677
6678
|
offset: string;
|
|
6679
|
+
ordinal_order_ids: (string | undefined)[];
|
|
6678
6680
|
symbol?: string | undefined;
|
|
6679
|
-
ordinal_order_id?: string | undefined;
|
|
6680
6681
|
trx_id?: string | undefined;
|
|
6681
6682
|
status?: string | undefined;
|
|
6682
6683
|
}, {
|
|
6683
6684
|
account: string;
|
|
6685
|
+
ordinal_order_ids: (string | undefined)[];
|
|
6684
6686
|
symbol?: string | undefined;
|
|
6685
6687
|
offset?: string | undefined;
|
|
6686
6688
|
limit?: string | undefined;
|
|
6687
|
-
ordinal_order_id?: string | undefined;
|
|
6688
6689
|
trx_id?: string | undefined;
|
|
6689
6690
|
status?: string | undefined;
|
|
6690
6691
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -258,7 +258,8 @@ var initializeCoins = (protonChain) => {
|
|
|
258
258
|
] : []
|
|
259
259
|
],
|
|
260
260
|
image: "https://www.proton.org/images/tokens/eosio-tokenXPR.png",
|
|
261
|
-
coingeckoId: "proton"
|
|
261
|
+
coingeckoId: "proton",
|
|
262
|
+
unifiedCryptoassetId: "5350"
|
|
262
263
|
},
|
|
263
264
|
{
|
|
264
265
|
allowSwap: true,
|
|
@@ -327,7 +328,8 @@ var initializeCoins = (protonChain) => {
|
|
|
327
328
|
] : []
|
|
328
329
|
],
|
|
329
330
|
image: "https://www.proton.org/images/tokens/xtokensXUSDC.png",
|
|
330
|
-
coingeckoId: "usd-coin"
|
|
331
|
+
coingeckoId: "usd-coin",
|
|
332
|
+
unifiedCryptoassetId: "3408"
|
|
331
333
|
},
|
|
332
334
|
{
|
|
333
335
|
allowSwap: true,
|
|
@@ -354,7 +356,8 @@ var initializeCoins = (protonChain) => {
|
|
|
354
356
|
] : []
|
|
355
357
|
],
|
|
356
358
|
image: "https://www.proton.org/images/tokens/xtokensXMT.png",
|
|
357
|
-
coingeckoId: "metal"
|
|
359
|
+
coingeckoId: "metal",
|
|
360
|
+
unifiedCryptoassetId: "1788"
|
|
358
361
|
},
|
|
359
362
|
{
|
|
360
363
|
allowSwap: true,
|
|
@@ -403,7 +406,8 @@ var initializeCoins = (protonChain) => {
|
|
|
403
406
|
] : []
|
|
404
407
|
],
|
|
405
408
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png",
|
|
406
|
-
coingeckoId: "metal-blockchain"
|
|
409
|
+
coingeckoId: "metal-blockchain",
|
|
410
|
+
unifiedCryptoassetId: "21769"
|
|
407
411
|
},
|
|
408
412
|
{
|
|
409
413
|
allowSwap: true,
|
|
@@ -442,7 +446,8 @@ var initializeCoins = (protonChain) => {
|
|
|
442
446
|
] : []
|
|
443
447
|
],
|
|
444
448
|
image: "https://www.proton.org/images/tokens/xtokensXBTC.png",
|
|
445
|
-
coingeckoId: "bitcoin"
|
|
449
|
+
coingeckoId: "bitcoin",
|
|
450
|
+
unifiedCryptoassetId: "1"
|
|
446
451
|
},
|
|
447
452
|
{
|
|
448
453
|
allowSwap: true,
|
|
@@ -481,7 +486,8 @@ var initializeCoins = (protonChain) => {
|
|
|
481
486
|
] : []
|
|
482
487
|
],
|
|
483
488
|
image: "https://www.proton.org/images/tokens/xtokensXETH.png",
|
|
484
|
-
coingeckoId: "ethereum"
|
|
489
|
+
coingeckoId: "ethereum",
|
|
490
|
+
unifiedCryptoassetId: "1027"
|
|
485
491
|
},
|
|
486
492
|
{
|
|
487
493
|
allowSwap: true,
|
|
@@ -495,7 +501,8 @@ var initializeCoins = (protonChain) => {
|
|
|
495
501
|
xtokenContract: "loan.token",
|
|
496
502
|
wallets: [],
|
|
497
503
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/loan.png",
|
|
498
|
-
coingeckoId: "proton-loan"
|
|
504
|
+
coingeckoId: "proton-loan",
|
|
505
|
+
unifiedCryptoassetId: "22071"
|
|
499
506
|
},
|
|
500
507
|
{
|
|
501
508
|
allowSwap: true,
|
|
@@ -546,7 +553,8 @@ var initializeCoins = (protonChain) => {
|
|
|
546
553
|
] : []
|
|
547
554
|
],
|
|
548
555
|
image: "https://www.proton.org/images/tokens/xtokensXUSDT.png",
|
|
549
|
-
coingeckoId: "tether"
|
|
556
|
+
coingeckoId: "tether",
|
|
557
|
+
unifiedCryptoassetId: "825"
|
|
550
558
|
},
|
|
551
559
|
{
|
|
552
560
|
allowSwap: false,
|
|
@@ -573,7 +581,8 @@ var initializeCoins = (protonChain) => {
|
|
|
573
581
|
] : []
|
|
574
582
|
],
|
|
575
583
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
576
|
-
coingeckoId: "true-usd"
|
|
584
|
+
coingeckoId: "true-usd",
|
|
585
|
+
unifiedCryptoassetId: "2563"
|
|
577
586
|
},
|
|
578
587
|
{
|
|
579
588
|
allowSwap: false,
|
|
@@ -600,7 +609,8 @@ var initializeCoins = (protonChain) => {
|
|
|
600
609
|
] : []
|
|
601
610
|
],
|
|
602
611
|
image: "https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420",
|
|
603
|
-
coingeckoId: "euro-coin"
|
|
612
|
+
coingeckoId: "euro-coin",
|
|
613
|
+
unifiedCryptoassetId: "20641"
|
|
604
614
|
},
|
|
605
615
|
{
|
|
606
616
|
allowSwap: false,
|
|
@@ -627,7 +637,8 @@ var initializeCoins = (protonChain) => {
|
|
|
627
637
|
] : []
|
|
628
638
|
],
|
|
629
639
|
image: "https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890",
|
|
630
|
-
coingeckoId: "xdce-crowd-sale"
|
|
640
|
+
coingeckoId: "xdce-crowd-sale",
|
|
641
|
+
unifiedCryptoassetId: "2634"
|
|
631
642
|
},
|
|
632
643
|
{
|
|
633
644
|
allowSwap: false,
|
|
@@ -654,7 +665,8 @@ var initializeCoins = (protonChain) => {
|
|
|
654
665
|
] : []
|
|
655
666
|
],
|
|
656
667
|
image: "https://www.proton.org/images/tokens/xtokensXPAX.png",
|
|
657
|
-
coingeckoId: "paxos-standard"
|
|
668
|
+
coingeckoId: "paxos-standard",
|
|
669
|
+
unifiedCryptoassetId: "3330"
|
|
658
670
|
},
|
|
659
671
|
{
|
|
660
672
|
allowSwap: false,
|
|
@@ -693,7 +705,8 @@ var initializeCoins = (protonChain) => {
|
|
|
693
705
|
] : []
|
|
694
706
|
],
|
|
695
707
|
image: "https://www.proton.org/images/tokens/xtokensXPAXG.png",
|
|
696
|
-
coingeckoId: "pax-gold"
|
|
708
|
+
coingeckoId: "pax-gold",
|
|
709
|
+
unifiedCryptoassetId: "4705"
|
|
697
710
|
},
|
|
698
711
|
{
|
|
699
712
|
allowSwap: IS_MAINNET,
|
|
@@ -707,7 +720,8 @@ var initializeCoins = (protonChain) => {
|
|
|
707
720
|
xtokenContract: "storex",
|
|
708
721
|
wallets: [],
|
|
709
722
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/strx.png",
|
|
710
|
-
coingeckoId: ""
|
|
723
|
+
coingeckoId: "",
|
|
724
|
+
unifiedCryptoassetId: ""
|
|
711
725
|
},
|
|
712
726
|
{
|
|
713
727
|
allowSwap: false,
|
|
@@ -721,7 +735,8 @@ var initializeCoins = (protonChain) => {
|
|
|
721
735
|
xtokenContract: "protonmint",
|
|
722
736
|
wallets: [],
|
|
723
737
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/PMLogo-04.png",
|
|
724
|
-
coingeckoId: ""
|
|
738
|
+
coingeckoId: "",
|
|
739
|
+
unifiedCryptoassetId: ""
|
|
725
740
|
},
|
|
726
741
|
{
|
|
727
742
|
allowSwap: IS_MAINNET,
|
|
@@ -735,7 +750,8 @@ var initializeCoins = (protonChain) => {
|
|
|
735
750
|
xtokenContract: "snipcoins",
|
|
736
751
|
wallets: [],
|
|
737
752
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/snips.png",
|
|
738
|
-
coingeckoId: ""
|
|
753
|
+
coingeckoId: "",
|
|
754
|
+
unifiedCryptoassetId: ""
|
|
739
755
|
},
|
|
740
756
|
{
|
|
741
757
|
allowSwap: IS_MAINNET,
|
|
@@ -774,7 +790,8 @@ var initializeCoins = (protonChain) => {
|
|
|
774
790
|
] : []
|
|
775
791
|
],
|
|
776
792
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
777
|
-
coingeckoId: "uniswap"
|
|
793
|
+
coingeckoId: "uniswap",
|
|
794
|
+
unifiedCryptoassetId: "7083"
|
|
778
795
|
},
|
|
779
796
|
{
|
|
780
797
|
allowSwap: false,
|
|
@@ -801,7 +818,8 @@ var initializeCoins = (protonChain) => {
|
|
|
801
818
|
] : []
|
|
802
819
|
],
|
|
803
820
|
image: "https://www.proton.org/images/tokens/xtokensXINCH.png",
|
|
804
|
-
coingeckoId: "1inch"
|
|
821
|
+
coingeckoId: "1inch",
|
|
822
|
+
unifiedCryptoassetId: "8104"
|
|
805
823
|
},
|
|
806
824
|
{
|
|
807
825
|
allowSwap: false,
|
|
@@ -828,7 +846,8 @@ var initializeCoins = (protonChain) => {
|
|
|
828
846
|
] : []
|
|
829
847
|
],
|
|
830
848
|
image: "https://www.proton.org/images/tokens/xtokensXLINK.png",
|
|
831
|
-
coingeckoId: "chainlink"
|
|
849
|
+
coingeckoId: "chainlink",
|
|
850
|
+
unifiedCryptoassetId: "1975"
|
|
832
851
|
},
|
|
833
852
|
{
|
|
834
853
|
allowSwap: IS_MAINNET,
|
|
@@ -867,7 +886,8 @@ var initializeCoins = (protonChain) => {
|
|
|
867
886
|
] : []
|
|
868
887
|
],
|
|
869
888
|
image: "https://www.proton.org/images/tokens/xtokensXLTC.png",
|
|
870
|
-
coingeckoId: "litecoin"
|
|
889
|
+
coingeckoId: "litecoin",
|
|
890
|
+
unifiedCryptoassetId: "2"
|
|
871
891
|
},
|
|
872
892
|
{
|
|
873
893
|
allowSwap: false,
|
|
@@ -906,7 +926,8 @@ var initializeCoins = (protonChain) => {
|
|
|
906
926
|
] : []
|
|
907
927
|
],
|
|
908
928
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
909
|
-
coingeckoId: "bitcoin-cash"
|
|
929
|
+
coingeckoId: "bitcoin-cash",
|
|
930
|
+
unifiedCryptoassetId: "1831"
|
|
910
931
|
},
|
|
911
932
|
{
|
|
912
933
|
allowSwap: true,
|
|
@@ -933,7 +954,8 @@ var initializeCoins = (protonChain) => {
|
|
|
933
954
|
] : []
|
|
934
955
|
],
|
|
935
956
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png",
|
|
936
|
-
coingeckoId: "lunr-token"
|
|
957
|
+
coingeckoId: "lunr-token",
|
|
958
|
+
unifiedCryptoassetId: "12971"
|
|
937
959
|
},
|
|
938
960
|
{
|
|
939
961
|
allowSwap: false,
|
|
@@ -972,7 +994,8 @@ var initializeCoins = (protonChain) => {
|
|
|
972
994
|
] : []
|
|
973
995
|
],
|
|
974
996
|
image: "https://www.proton.org/images/tokens/xtokensXXLM.png",
|
|
975
|
-
coingeckoId: "stellar"
|
|
997
|
+
coingeckoId: "stellar",
|
|
998
|
+
unifiedCryptoassetId: "512"
|
|
976
999
|
},
|
|
977
1000
|
{
|
|
978
1001
|
allowSwap: false,
|
|
@@ -986,7 +1009,8 @@ var initializeCoins = (protonChain) => {
|
|
|
986
1009
|
xtokenContract: "sense",
|
|
987
1010
|
wallets: [],
|
|
988
1011
|
image: "https://www.proton.org/images/tokens/senseXSENSE.png",
|
|
989
|
-
coingeckoId: "sense"
|
|
1012
|
+
coingeckoId: "sense",
|
|
1013
|
+
unifiedCryptoassetId: ""
|
|
990
1014
|
},
|
|
991
1015
|
{
|
|
992
1016
|
allowSwap: false,
|
|
@@ -1013,7 +1037,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1013
1037
|
] : []
|
|
1014
1038
|
],
|
|
1015
1039
|
image: "https://www.proton.org/images/tokens/xtokensXDOT.png",
|
|
1016
|
-
coingeckoId: "polkadot"
|
|
1040
|
+
coingeckoId: "polkadot",
|
|
1041
|
+
unifiedCryptoassetId: "6636"
|
|
1017
1042
|
},
|
|
1018
1043
|
{
|
|
1019
1044
|
allowSwap: true,
|
|
@@ -1040,7 +1065,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1040
1065
|
] : []
|
|
1041
1066
|
],
|
|
1042
1067
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
1043
|
-
coingeckoId: "binancecoin"
|
|
1068
|
+
coingeckoId: "binancecoin",
|
|
1069
|
+
unifiedCryptoassetId: "1839"
|
|
1044
1070
|
},
|
|
1045
1071
|
{
|
|
1046
1072
|
allowSwap: false,
|
|
@@ -1065,7 +1091,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1065
1091
|
// }]: [])
|
|
1066
1092
|
],
|
|
1067
1093
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png",
|
|
1068
|
-
coingeckoId: "binance-usd"
|
|
1094
|
+
coingeckoId: "binance-usd",
|
|
1095
|
+
unifiedCryptoassetId: "4687"
|
|
1069
1096
|
},
|
|
1070
1097
|
{
|
|
1071
1098
|
allowSwap: true,
|
|
@@ -1104,7 +1131,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1104
1131
|
] : []
|
|
1105
1132
|
],
|
|
1106
1133
|
image: "https://www.proton.org/images/tokens/xtokensXEOS.png",
|
|
1107
|
-
coingeckoId: "eos"
|
|
1134
|
+
coingeckoId: "eos",
|
|
1135
|
+
unifiedCryptoassetId: "1765"
|
|
1108
1136
|
},
|
|
1109
1137
|
{
|
|
1110
1138
|
allowSwap: IS_MAINNET,
|
|
@@ -1131,7 +1159,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1131
1159
|
] : []
|
|
1132
1160
|
],
|
|
1133
1161
|
image: "https://www.proton.org/images/tokens/xtokensXDOGE.png",
|
|
1134
|
-
coingeckoId: "dogecoin"
|
|
1162
|
+
coingeckoId: "dogecoin",
|
|
1163
|
+
unifiedCryptoassetId: "74"
|
|
1135
1164
|
},
|
|
1136
1165
|
{
|
|
1137
1166
|
allowSwap: IS_MAINNET,
|
|
@@ -1158,7 +1187,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1158
1187
|
] : []
|
|
1159
1188
|
],
|
|
1160
1189
|
image: "https://www.proton.org/images/tokens/xtokensXADA.png",
|
|
1161
|
-
coingeckoId: "cardano"
|
|
1190
|
+
coingeckoId: "cardano",
|
|
1191
|
+
unifiedCryptoassetId: "2010"
|
|
1162
1192
|
},
|
|
1163
1193
|
// Adding
|
|
1164
1194
|
{
|
|
@@ -1184,7 +1214,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1184
1214
|
// }]: [])
|
|
1185
1215
|
],
|
|
1186
1216
|
image: "https://www.proton.org/images/tokens/xtokensXLUNA.png",
|
|
1187
|
-
coingeckoId: "terra-luna"
|
|
1217
|
+
coingeckoId: "terra-luna",
|
|
1218
|
+
unifiedCryptoassetId: "4172"
|
|
1188
1219
|
},
|
|
1189
1220
|
{
|
|
1190
1221
|
allowSwap: false,
|
|
@@ -1211,7 +1242,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1211
1242
|
] : []
|
|
1212
1243
|
],
|
|
1213
1244
|
image: "https://www.proton.org/images/tokens/xtokensXUST.png",
|
|
1214
|
-
coingeckoId: "terrausd"
|
|
1245
|
+
coingeckoId: "terrausd",
|
|
1246
|
+
unifiedCryptoassetId: "7129"
|
|
1215
1247
|
},
|
|
1216
1248
|
{
|
|
1217
1249
|
allowSwap: false,
|
|
@@ -1238,7 +1270,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1238
1270
|
] : []
|
|
1239
1271
|
],
|
|
1240
1272
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png",
|
|
1241
|
-
coingeckoId: "solana"
|
|
1273
|
+
coingeckoId: "solana",
|
|
1274
|
+
unifiedCryptoassetId: "5426"
|
|
1242
1275
|
},
|
|
1243
1276
|
{
|
|
1244
1277
|
allowSwap: false,
|
|
@@ -1265,7 +1298,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1265
1298
|
] : []
|
|
1266
1299
|
],
|
|
1267
1300
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png",
|
|
1268
|
-
coingeckoId: "ripple"
|
|
1301
|
+
coingeckoId: "ripple",
|
|
1302
|
+
unifiedCryptoassetId: "52"
|
|
1269
1303
|
},
|
|
1270
1304
|
// Future
|
|
1271
1305
|
{
|
|
@@ -1293,7 +1327,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1293
1327
|
] : []
|
|
1294
1328
|
],
|
|
1295
1329
|
image: "https://www.proton.org/images/tokens/xtokensXAVAX.png",
|
|
1296
|
-
coingeckoId: "avalanche-2"
|
|
1330
|
+
coingeckoId: "avalanche-2",
|
|
1331
|
+
unifiedCryptoassetId: "5805"
|
|
1297
1332
|
},
|
|
1298
1333
|
{
|
|
1299
1334
|
allowSwap: false,
|
|
@@ -1320,7 +1355,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1320
1355
|
] : []
|
|
1321
1356
|
],
|
|
1322
1357
|
image: "https://www.proton.org/images/tokens/xtokensXMATIC.png",
|
|
1323
|
-
coingeckoId: "matic-network"
|
|
1358
|
+
coingeckoId: "matic-network",
|
|
1359
|
+
unifiedCryptoassetId: "3890"
|
|
1324
1360
|
},
|
|
1325
1361
|
{
|
|
1326
1362
|
allowSwap: true,
|
|
@@ -1334,14 +1370,15 @@ var initializeCoins = (protonChain) => {
|
|
|
1334
1370
|
xtokenContract: "xmd.token",
|
|
1335
1371
|
wallets: [],
|
|
1336
1372
|
image: "https://github.com/eoscafe/eos-airdrops/blob/master/logos/xmd.png?raw=true",
|
|
1337
|
-
coingeckoId: ""
|
|
1373
|
+
coingeckoId: "",
|
|
1374
|
+
unifiedCryptoassetId: ""
|
|
1338
1375
|
},
|
|
1339
1376
|
{
|
|
1340
1377
|
allowSwap: false,
|
|
1341
1378
|
allowBridge: IS_TESTNET,
|
|
1342
1379
|
allowLend: false,
|
|
1343
1380
|
allowBorrow: false,
|
|
1344
|
-
name: "
|
|
1381
|
+
name: "Hedera",
|
|
1345
1382
|
coin: "HBAR",
|
|
1346
1383
|
xtokenSymbol: "XHBAR",
|
|
1347
1384
|
xtokenPrecision: 6,
|
|
@@ -1361,7 +1398,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1361
1398
|
] : []
|
|
1362
1399
|
],
|
|
1363
1400
|
image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
|
|
1364
|
-
coingeckoId: "hedera-hashgraph"
|
|
1401
|
+
coingeckoId: "hedera-hashgraph",
|
|
1402
|
+
unifiedCryptoassetId: "4642"
|
|
1365
1403
|
}
|
|
1366
1404
|
];
|
|
1367
1405
|
const walletWithDuplicateChains = coins.find((coin) => {
|
|
@@ -1880,7 +1918,7 @@ var getOpenOrdersParser = z11.object({
|
|
|
1880
1918
|
symbol: z11.string().optional(),
|
|
1881
1919
|
offset: z11.string().default("0"),
|
|
1882
1920
|
limit: createLimit(100, 250),
|
|
1883
|
-
|
|
1921
|
+
ordinal_order_ids: z11.array(z11.string()).optional()
|
|
1884
1922
|
});
|
|
1885
1923
|
var getOpenOrdersResponseParser = z11.object({
|
|
1886
1924
|
sync: z11.number(),
|
|
@@ -1892,7 +1930,7 @@ var getOrderHistoryParser = z11.object({
|
|
|
1892
1930
|
symbol: z11.string().optional(),
|
|
1893
1931
|
offset: z11.string().default("0"),
|
|
1894
1932
|
limit: createLimit(100, 250),
|
|
1895
|
-
|
|
1933
|
+
ordinal_order_ids: z11.array(z11.string().optional()),
|
|
1896
1934
|
trx_id: z11.string().optional(),
|
|
1897
1935
|
status: z11.string().optional()
|
|
1898
1936
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -126,7 +126,8 @@ var initializeCoins = (protonChain) => {
|
|
|
126
126
|
] : []
|
|
127
127
|
],
|
|
128
128
|
image: "https://www.proton.org/images/tokens/eosio-tokenXPR.png",
|
|
129
|
-
coingeckoId: "proton"
|
|
129
|
+
coingeckoId: "proton",
|
|
130
|
+
unifiedCryptoassetId: "5350"
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
allowSwap: true,
|
|
@@ -195,7 +196,8 @@ var initializeCoins = (protonChain) => {
|
|
|
195
196
|
] : []
|
|
196
197
|
],
|
|
197
198
|
image: "https://www.proton.org/images/tokens/xtokensXUSDC.png",
|
|
198
|
-
coingeckoId: "usd-coin"
|
|
199
|
+
coingeckoId: "usd-coin",
|
|
200
|
+
unifiedCryptoassetId: "3408"
|
|
199
201
|
},
|
|
200
202
|
{
|
|
201
203
|
allowSwap: true,
|
|
@@ -222,7 +224,8 @@ var initializeCoins = (protonChain) => {
|
|
|
222
224
|
] : []
|
|
223
225
|
],
|
|
224
226
|
image: "https://www.proton.org/images/tokens/xtokensXMT.png",
|
|
225
|
-
coingeckoId: "metal"
|
|
227
|
+
coingeckoId: "metal",
|
|
228
|
+
unifiedCryptoassetId: "1788"
|
|
226
229
|
},
|
|
227
230
|
{
|
|
228
231
|
allowSwap: true,
|
|
@@ -271,7 +274,8 @@ var initializeCoins = (protonChain) => {
|
|
|
271
274
|
] : []
|
|
272
275
|
],
|
|
273
276
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png",
|
|
274
|
-
coingeckoId: "metal-blockchain"
|
|
277
|
+
coingeckoId: "metal-blockchain",
|
|
278
|
+
unifiedCryptoassetId: "21769"
|
|
275
279
|
},
|
|
276
280
|
{
|
|
277
281
|
allowSwap: true,
|
|
@@ -310,7 +314,8 @@ var initializeCoins = (protonChain) => {
|
|
|
310
314
|
] : []
|
|
311
315
|
],
|
|
312
316
|
image: "https://www.proton.org/images/tokens/xtokensXBTC.png",
|
|
313
|
-
coingeckoId: "bitcoin"
|
|
317
|
+
coingeckoId: "bitcoin",
|
|
318
|
+
unifiedCryptoassetId: "1"
|
|
314
319
|
},
|
|
315
320
|
{
|
|
316
321
|
allowSwap: true,
|
|
@@ -349,7 +354,8 @@ var initializeCoins = (protonChain) => {
|
|
|
349
354
|
] : []
|
|
350
355
|
],
|
|
351
356
|
image: "https://www.proton.org/images/tokens/xtokensXETH.png",
|
|
352
|
-
coingeckoId: "ethereum"
|
|
357
|
+
coingeckoId: "ethereum",
|
|
358
|
+
unifiedCryptoassetId: "1027"
|
|
353
359
|
},
|
|
354
360
|
{
|
|
355
361
|
allowSwap: true,
|
|
@@ -363,7 +369,8 @@ var initializeCoins = (protonChain) => {
|
|
|
363
369
|
xtokenContract: "loan.token",
|
|
364
370
|
wallets: [],
|
|
365
371
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/loan.png",
|
|
366
|
-
coingeckoId: "proton-loan"
|
|
372
|
+
coingeckoId: "proton-loan",
|
|
373
|
+
unifiedCryptoassetId: "22071"
|
|
367
374
|
},
|
|
368
375
|
{
|
|
369
376
|
allowSwap: true,
|
|
@@ -414,7 +421,8 @@ var initializeCoins = (protonChain) => {
|
|
|
414
421
|
] : []
|
|
415
422
|
],
|
|
416
423
|
image: "https://www.proton.org/images/tokens/xtokensXUSDT.png",
|
|
417
|
-
coingeckoId: "tether"
|
|
424
|
+
coingeckoId: "tether",
|
|
425
|
+
unifiedCryptoassetId: "825"
|
|
418
426
|
},
|
|
419
427
|
{
|
|
420
428
|
allowSwap: false,
|
|
@@ -441,7 +449,8 @@ var initializeCoins = (protonChain) => {
|
|
|
441
449
|
] : []
|
|
442
450
|
],
|
|
443
451
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
444
|
-
coingeckoId: "true-usd"
|
|
452
|
+
coingeckoId: "true-usd",
|
|
453
|
+
unifiedCryptoassetId: "2563"
|
|
445
454
|
},
|
|
446
455
|
{
|
|
447
456
|
allowSwap: false,
|
|
@@ -468,7 +477,8 @@ var initializeCoins = (protonChain) => {
|
|
|
468
477
|
] : []
|
|
469
478
|
],
|
|
470
479
|
image: "https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420",
|
|
471
|
-
coingeckoId: "euro-coin"
|
|
480
|
+
coingeckoId: "euro-coin",
|
|
481
|
+
unifiedCryptoassetId: "20641"
|
|
472
482
|
},
|
|
473
483
|
{
|
|
474
484
|
allowSwap: false,
|
|
@@ -495,7 +505,8 @@ var initializeCoins = (protonChain) => {
|
|
|
495
505
|
] : []
|
|
496
506
|
],
|
|
497
507
|
image: "https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890",
|
|
498
|
-
coingeckoId: "xdce-crowd-sale"
|
|
508
|
+
coingeckoId: "xdce-crowd-sale",
|
|
509
|
+
unifiedCryptoassetId: "2634"
|
|
499
510
|
},
|
|
500
511
|
{
|
|
501
512
|
allowSwap: false,
|
|
@@ -522,7 +533,8 @@ var initializeCoins = (protonChain) => {
|
|
|
522
533
|
] : []
|
|
523
534
|
],
|
|
524
535
|
image: "https://www.proton.org/images/tokens/xtokensXPAX.png",
|
|
525
|
-
coingeckoId: "paxos-standard"
|
|
536
|
+
coingeckoId: "paxos-standard",
|
|
537
|
+
unifiedCryptoassetId: "3330"
|
|
526
538
|
},
|
|
527
539
|
{
|
|
528
540
|
allowSwap: false,
|
|
@@ -561,7 +573,8 @@ var initializeCoins = (protonChain) => {
|
|
|
561
573
|
] : []
|
|
562
574
|
],
|
|
563
575
|
image: "https://www.proton.org/images/tokens/xtokensXPAXG.png",
|
|
564
|
-
coingeckoId: "pax-gold"
|
|
576
|
+
coingeckoId: "pax-gold",
|
|
577
|
+
unifiedCryptoassetId: "4705"
|
|
565
578
|
},
|
|
566
579
|
{
|
|
567
580
|
allowSwap: IS_MAINNET,
|
|
@@ -575,7 +588,8 @@ var initializeCoins = (protonChain) => {
|
|
|
575
588
|
xtokenContract: "storex",
|
|
576
589
|
wallets: [],
|
|
577
590
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/strx.png",
|
|
578
|
-
coingeckoId: ""
|
|
591
|
+
coingeckoId: "",
|
|
592
|
+
unifiedCryptoassetId: ""
|
|
579
593
|
},
|
|
580
594
|
{
|
|
581
595
|
allowSwap: false,
|
|
@@ -589,7 +603,8 @@ var initializeCoins = (protonChain) => {
|
|
|
589
603
|
xtokenContract: "protonmint",
|
|
590
604
|
wallets: [],
|
|
591
605
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/PMLogo-04.png",
|
|
592
|
-
coingeckoId: ""
|
|
606
|
+
coingeckoId: "",
|
|
607
|
+
unifiedCryptoassetId: ""
|
|
593
608
|
},
|
|
594
609
|
{
|
|
595
610
|
allowSwap: IS_MAINNET,
|
|
@@ -603,7 +618,8 @@ var initializeCoins = (protonChain) => {
|
|
|
603
618
|
xtokenContract: "snipcoins",
|
|
604
619
|
wallets: [],
|
|
605
620
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/snips.png",
|
|
606
|
-
coingeckoId: ""
|
|
621
|
+
coingeckoId: "",
|
|
622
|
+
unifiedCryptoassetId: ""
|
|
607
623
|
},
|
|
608
624
|
{
|
|
609
625
|
allowSwap: IS_MAINNET,
|
|
@@ -642,7 +658,8 @@ var initializeCoins = (protonChain) => {
|
|
|
642
658
|
] : []
|
|
643
659
|
],
|
|
644
660
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
645
|
-
coingeckoId: "uniswap"
|
|
661
|
+
coingeckoId: "uniswap",
|
|
662
|
+
unifiedCryptoassetId: "7083"
|
|
646
663
|
},
|
|
647
664
|
{
|
|
648
665
|
allowSwap: false,
|
|
@@ -669,7 +686,8 @@ var initializeCoins = (protonChain) => {
|
|
|
669
686
|
] : []
|
|
670
687
|
],
|
|
671
688
|
image: "https://www.proton.org/images/tokens/xtokensXINCH.png",
|
|
672
|
-
coingeckoId: "1inch"
|
|
689
|
+
coingeckoId: "1inch",
|
|
690
|
+
unifiedCryptoassetId: "8104"
|
|
673
691
|
},
|
|
674
692
|
{
|
|
675
693
|
allowSwap: false,
|
|
@@ -696,7 +714,8 @@ var initializeCoins = (protonChain) => {
|
|
|
696
714
|
] : []
|
|
697
715
|
],
|
|
698
716
|
image: "https://www.proton.org/images/tokens/xtokensXLINK.png",
|
|
699
|
-
coingeckoId: "chainlink"
|
|
717
|
+
coingeckoId: "chainlink",
|
|
718
|
+
unifiedCryptoassetId: "1975"
|
|
700
719
|
},
|
|
701
720
|
{
|
|
702
721
|
allowSwap: IS_MAINNET,
|
|
@@ -735,7 +754,8 @@ var initializeCoins = (protonChain) => {
|
|
|
735
754
|
] : []
|
|
736
755
|
],
|
|
737
756
|
image: "https://www.proton.org/images/tokens/xtokensXLTC.png",
|
|
738
|
-
coingeckoId: "litecoin"
|
|
757
|
+
coingeckoId: "litecoin",
|
|
758
|
+
unifiedCryptoassetId: "2"
|
|
739
759
|
},
|
|
740
760
|
{
|
|
741
761
|
allowSwap: false,
|
|
@@ -774,7 +794,8 @@ var initializeCoins = (protonChain) => {
|
|
|
774
794
|
] : []
|
|
775
795
|
],
|
|
776
796
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
777
|
-
coingeckoId: "bitcoin-cash"
|
|
797
|
+
coingeckoId: "bitcoin-cash",
|
|
798
|
+
unifiedCryptoassetId: "1831"
|
|
778
799
|
},
|
|
779
800
|
{
|
|
780
801
|
allowSwap: true,
|
|
@@ -801,7 +822,8 @@ var initializeCoins = (protonChain) => {
|
|
|
801
822
|
] : []
|
|
802
823
|
],
|
|
803
824
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png",
|
|
804
|
-
coingeckoId: "lunr-token"
|
|
825
|
+
coingeckoId: "lunr-token",
|
|
826
|
+
unifiedCryptoassetId: "12971"
|
|
805
827
|
},
|
|
806
828
|
{
|
|
807
829
|
allowSwap: false,
|
|
@@ -840,7 +862,8 @@ var initializeCoins = (protonChain) => {
|
|
|
840
862
|
] : []
|
|
841
863
|
],
|
|
842
864
|
image: "https://www.proton.org/images/tokens/xtokensXXLM.png",
|
|
843
|
-
coingeckoId: "stellar"
|
|
865
|
+
coingeckoId: "stellar",
|
|
866
|
+
unifiedCryptoassetId: "512"
|
|
844
867
|
},
|
|
845
868
|
{
|
|
846
869
|
allowSwap: false,
|
|
@@ -854,7 +877,8 @@ var initializeCoins = (protonChain) => {
|
|
|
854
877
|
xtokenContract: "sense",
|
|
855
878
|
wallets: [],
|
|
856
879
|
image: "https://www.proton.org/images/tokens/senseXSENSE.png",
|
|
857
|
-
coingeckoId: "sense"
|
|
880
|
+
coingeckoId: "sense",
|
|
881
|
+
unifiedCryptoassetId: ""
|
|
858
882
|
},
|
|
859
883
|
{
|
|
860
884
|
allowSwap: false,
|
|
@@ -881,7 +905,8 @@ var initializeCoins = (protonChain) => {
|
|
|
881
905
|
] : []
|
|
882
906
|
],
|
|
883
907
|
image: "https://www.proton.org/images/tokens/xtokensXDOT.png",
|
|
884
|
-
coingeckoId: "polkadot"
|
|
908
|
+
coingeckoId: "polkadot",
|
|
909
|
+
unifiedCryptoassetId: "6636"
|
|
885
910
|
},
|
|
886
911
|
{
|
|
887
912
|
allowSwap: true,
|
|
@@ -908,7 +933,8 @@ var initializeCoins = (protonChain) => {
|
|
|
908
933
|
] : []
|
|
909
934
|
],
|
|
910
935
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
911
|
-
coingeckoId: "binancecoin"
|
|
936
|
+
coingeckoId: "binancecoin",
|
|
937
|
+
unifiedCryptoassetId: "1839"
|
|
912
938
|
},
|
|
913
939
|
{
|
|
914
940
|
allowSwap: false,
|
|
@@ -933,7 +959,8 @@ var initializeCoins = (protonChain) => {
|
|
|
933
959
|
// }]: [])
|
|
934
960
|
],
|
|
935
961
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png",
|
|
936
|
-
coingeckoId: "binance-usd"
|
|
962
|
+
coingeckoId: "binance-usd",
|
|
963
|
+
unifiedCryptoassetId: "4687"
|
|
937
964
|
},
|
|
938
965
|
{
|
|
939
966
|
allowSwap: true,
|
|
@@ -972,7 +999,8 @@ var initializeCoins = (protonChain) => {
|
|
|
972
999
|
] : []
|
|
973
1000
|
],
|
|
974
1001
|
image: "https://www.proton.org/images/tokens/xtokensXEOS.png",
|
|
975
|
-
coingeckoId: "eos"
|
|
1002
|
+
coingeckoId: "eos",
|
|
1003
|
+
unifiedCryptoassetId: "1765"
|
|
976
1004
|
},
|
|
977
1005
|
{
|
|
978
1006
|
allowSwap: IS_MAINNET,
|
|
@@ -999,7 +1027,8 @@ var initializeCoins = (protonChain) => {
|
|
|
999
1027
|
] : []
|
|
1000
1028
|
],
|
|
1001
1029
|
image: "https://www.proton.org/images/tokens/xtokensXDOGE.png",
|
|
1002
|
-
coingeckoId: "dogecoin"
|
|
1030
|
+
coingeckoId: "dogecoin",
|
|
1031
|
+
unifiedCryptoassetId: "74"
|
|
1003
1032
|
},
|
|
1004
1033
|
{
|
|
1005
1034
|
allowSwap: IS_MAINNET,
|
|
@@ -1026,7 +1055,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1026
1055
|
] : []
|
|
1027
1056
|
],
|
|
1028
1057
|
image: "https://www.proton.org/images/tokens/xtokensXADA.png",
|
|
1029
|
-
coingeckoId: "cardano"
|
|
1058
|
+
coingeckoId: "cardano",
|
|
1059
|
+
unifiedCryptoassetId: "2010"
|
|
1030
1060
|
},
|
|
1031
1061
|
// Adding
|
|
1032
1062
|
{
|
|
@@ -1052,7 +1082,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1052
1082
|
// }]: [])
|
|
1053
1083
|
],
|
|
1054
1084
|
image: "https://www.proton.org/images/tokens/xtokensXLUNA.png",
|
|
1055
|
-
coingeckoId: "terra-luna"
|
|
1085
|
+
coingeckoId: "terra-luna",
|
|
1086
|
+
unifiedCryptoassetId: "4172"
|
|
1056
1087
|
},
|
|
1057
1088
|
{
|
|
1058
1089
|
allowSwap: false,
|
|
@@ -1079,7 +1110,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1079
1110
|
] : []
|
|
1080
1111
|
],
|
|
1081
1112
|
image: "https://www.proton.org/images/tokens/xtokensXUST.png",
|
|
1082
|
-
coingeckoId: "terrausd"
|
|
1113
|
+
coingeckoId: "terrausd",
|
|
1114
|
+
unifiedCryptoassetId: "7129"
|
|
1083
1115
|
},
|
|
1084
1116
|
{
|
|
1085
1117
|
allowSwap: false,
|
|
@@ -1106,7 +1138,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1106
1138
|
] : []
|
|
1107
1139
|
],
|
|
1108
1140
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png",
|
|
1109
|
-
coingeckoId: "solana"
|
|
1141
|
+
coingeckoId: "solana",
|
|
1142
|
+
unifiedCryptoassetId: "5426"
|
|
1110
1143
|
},
|
|
1111
1144
|
{
|
|
1112
1145
|
allowSwap: false,
|
|
@@ -1133,7 +1166,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1133
1166
|
] : []
|
|
1134
1167
|
],
|
|
1135
1168
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png",
|
|
1136
|
-
coingeckoId: "ripple"
|
|
1169
|
+
coingeckoId: "ripple",
|
|
1170
|
+
unifiedCryptoassetId: "52"
|
|
1137
1171
|
},
|
|
1138
1172
|
// Future
|
|
1139
1173
|
{
|
|
@@ -1161,7 +1195,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1161
1195
|
] : []
|
|
1162
1196
|
],
|
|
1163
1197
|
image: "https://www.proton.org/images/tokens/xtokensXAVAX.png",
|
|
1164
|
-
coingeckoId: "avalanche-2"
|
|
1198
|
+
coingeckoId: "avalanche-2",
|
|
1199
|
+
unifiedCryptoassetId: "5805"
|
|
1165
1200
|
},
|
|
1166
1201
|
{
|
|
1167
1202
|
allowSwap: false,
|
|
@@ -1188,7 +1223,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1188
1223
|
] : []
|
|
1189
1224
|
],
|
|
1190
1225
|
image: "https://www.proton.org/images/tokens/xtokensXMATIC.png",
|
|
1191
|
-
coingeckoId: "matic-network"
|
|
1226
|
+
coingeckoId: "matic-network",
|
|
1227
|
+
unifiedCryptoassetId: "3890"
|
|
1192
1228
|
},
|
|
1193
1229
|
{
|
|
1194
1230
|
allowSwap: true,
|
|
@@ -1202,14 +1238,15 @@ var initializeCoins = (protonChain) => {
|
|
|
1202
1238
|
xtokenContract: "xmd.token",
|
|
1203
1239
|
wallets: [],
|
|
1204
1240
|
image: "https://github.com/eoscafe/eos-airdrops/blob/master/logos/xmd.png?raw=true",
|
|
1205
|
-
coingeckoId: ""
|
|
1241
|
+
coingeckoId: "",
|
|
1242
|
+
unifiedCryptoassetId: ""
|
|
1206
1243
|
},
|
|
1207
1244
|
{
|
|
1208
1245
|
allowSwap: false,
|
|
1209
1246
|
allowBridge: IS_TESTNET,
|
|
1210
1247
|
allowLend: false,
|
|
1211
1248
|
allowBorrow: false,
|
|
1212
|
-
name: "
|
|
1249
|
+
name: "Hedera",
|
|
1213
1250
|
coin: "HBAR",
|
|
1214
1251
|
xtokenSymbol: "XHBAR",
|
|
1215
1252
|
xtokenPrecision: 6,
|
|
@@ -1229,7 +1266,8 @@ var initializeCoins = (protonChain) => {
|
|
|
1229
1266
|
] : []
|
|
1230
1267
|
],
|
|
1231
1268
|
image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
|
|
1232
|
-
coingeckoId: "hedera-hashgraph"
|
|
1269
|
+
coingeckoId: "hedera-hashgraph",
|
|
1270
|
+
unifiedCryptoassetId: "4642"
|
|
1233
1271
|
}
|
|
1234
1272
|
];
|
|
1235
1273
|
const walletWithDuplicateChains = coins.find((coin) => {
|
|
@@ -1748,7 +1786,7 @@ var getOpenOrdersParser = z11.object({
|
|
|
1748
1786
|
symbol: z11.string().optional(),
|
|
1749
1787
|
offset: z11.string().default("0"),
|
|
1750
1788
|
limit: createLimit(100, 250),
|
|
1751
|
-
|
|
1789
|
+
ordinal_order_ids: z11.array(z11.string()).optional()
|
|
1752
1790
|
});
|
|
1753
1791
|
var getOpenOrdersResponseParser = z11.object({
|
|
1754
1792
|
sync: z11.number(),
|
|
@@ -1760,7 +1798,7 @@ var getOrderHistoryParser = z11.object({
|
|
|
1760
1798
|
symbol: z11.string().optional(),
|
|
1761
1799
|
offset: z11.string().default("0"),
|
|
1762
1800
|
limit: createLimit(100, 250),
|
|
1763
|
-
|
|
1801
|
+
ordinal_order_ids: z11.array(z11.string().optional()),
|
|
1764
1802
|
trx_id: z11.string().optional(),
|
|
1765
1803
|
status: z11.string().optional()
|
|
1766
1804
|
});
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.96",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "70294a3adc57e4e4298ed2b596f7c7f56b2602de"
|
|
44
44
|
}
|
package/src/coins.ts
CHANGED
|
@@ -63,6 +63,7 @@ export interface Coin {
|
|
|
63
63
|
wallets: Wallet[];
|
|
64
64
|
image: string;
|
|
65
65
|
coingeckoId: string;
|
|
66
|
+
unifiedCryptoassetId: string;
|
|
66
67
|
balance?: Asset;
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -207,6 +208,7 @@ export const initializeCoins = (
|
|
|
207
208
|
],
|
|
208
209
|
image: "https://www.proton.org/images/tokens/eosio-tokenXPR.png",
|
|
209
210
|
coingeckoId: "proton",
|
|
211
|
+
unifiedCryptoassetId: "5350",
|
|
210
212
|
},
|
|
211
213
|
{
|
|
212
214
|
allowSwap: true,
|
|
@@ -280,6 +282,7 @@ export const initializeCoins = (
|
|
|
280
282
|
],
|
|
281
283
|
image: "https://www.proton.org/images/tokens/xtokensXUSDC.png",
|
|
282
284
|
coingeckoId: "usd-coin",
|
|
285
|
+
unifiedCryptoassetId: "3408",
|
|
283
286
|
},
|
|
284
287
|
{
|
|
285
288
|
allowSwap: true,
|
|
@@ -309,6 +312,7 @@ export const initializeCoins = (
|
|
|
309
312
|
],
|
|
310
313
|
image: "https://www.proton.org/images/tokens/xtokensXMT.png",
|
|
311
314
|
coingeckoId: "metal",
|
|
315
|
+
unifiedCryptoassetId: "1788",
|
|
312
316
|
},
|
|
313
317
|
{
|
|
314
318
|
allowSwap: true,
|
|
@@ -363,6 +367,7 @@ export const initializeCoins = (
|
|
|
363
367
|
image:
|
|
364
368
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png",
|
|
365
369
|
coingeckoId: "metal-blockchain",
|
|
370
|
+
unifiedCryptoassetId: "21769",
|
|
366
371
|
},
|
|
367
372
|
{
|
|
368
373
|
allowSwap: true,
|
|
@@ -406,6 +411,7 @@ export const initializeCoins = (
|
|
|
406
411
|
],
|
|
407
412
|
image: "https://www.proton.org/images/tokens/xtokensXBTC.png",
|
|
408
413
|
coingeckoId: "bitcoin",
|
|
414
|
+
unifiedCryptoassetId: "1",
|
|
409
415
|
},
|
|
410
416
|
{
|
|
411
417
|
allowSwap: true,
|
|
@@ -449,6 +455,7 @@ export const initializeCoins = (
|
|
|
449
455
|
],
|
|
450
456
|
image: "https://www.proton.org/images/tokens/xtokensXETH.png",
|
|
451
457
|
coingeckoId: "ethereum",
|
|
458
|
+
unifiedCryptoassetId: "1027",
|
|
452
459
|
},
|
|
453
460
|
{
|
|
454
461
|
allowSwap: true,
|
|
@@ -464,6 +471,7 @@ export const initializeCoins = (
|
|
|
464
471
|
image:
|
|
465
472
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/loan.png",
|
|
466
473
|
coingeckoId: "proton-loan",
|
|
474
|
+
unifiedCryptoassetId: "22071",
|
|
467
475
|
},
|
|
468
476
|
{
|
|
469
477
|
allowSwap: true,
|
|
@@ -521,6 +529,7 @@ export const initializeCoins = (
|
|
|
521
529
|
],
|
|
522
530
|
image: "https://www.proton.org/images/tokens/xtokensXUSDT.png",
|
|
523
531
|
coingeckoId: "tether",
|
|
532
|
+
unifiedCryptoassetId: "825",
|
|
524
533
|
},
|
|
525
534
|
{
|
|
526
535
|
allowSwap: false,
|
|
@@ -550,6 +559,7 @@ export const initializeCoins = (
|
|
|
550
559
|
],
|
|
551
560
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
552
561
|
coingeckoId: "true-usd",
|
|
562
|
+
unifiedCryptoassetId: "2563",
|
|
553
563
|
},
|
|
554
564
|
{
|
|
555
565
|
allowSwap: false,
|
|
@@ -580,6 +590,7 @@ export const initializeCoins = (
|
|
|
580
590
|
image:
|
|
581
591
|
"https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420",
|
|
582
592
|
coingeckoId: "euro-coin",
|
|
593
|
+
unifiedCryptoassetId: "20641",
|
|
583
594
|
},
|
|
584
595
|
{
|
|
585
596
|
allowSwap: false,
|
|
@@ -610,6 +621,7 @@ export const initializeCoins = (
|
|
|
610
621
|
image:
|
|
611
622
|
"https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890",
|
|
612
623
|
coingeckoId: "xdce-crowd-sale",
|
|
624
|
+
unifiedCryptoassetId: "2634",
|
|
613
625
|
},
|
|
614
626
|
{
|
|
615
627
|
allowSwap: false,
|
|
@@ -639,6 +651,7 @@ export const initializeCoins = (
|
|
|
639
651
|
],
|
|
640
652
|
image: "https://www.proton.org/images/tokens/xtokensXPAX.png",
|
|
641
653
|
coingeckoId: "paxos-standard",
|
|
654
|
+
unifiedCryptoassetId: "3330",
|
|
642
655
|
},
|
|
643
656
|
{
|
|
644
657
|
allowSwap: false,
|
|
@@ -682,6 +695,7 @@ export const initializeCoins = (
|
|
|
682
695
|
],
|
|
683
696
|
image: "https://www.proton.org/images/tokens/xtokensXPAXG.png",
|
|
684
697
|
coingeckoId: "pax-gold",
|
|
698
|
+
unifiedCryptoassetId: "4705",
|
|
685
699
|
},
|
|
686
700
|
{
|
|
687
701
|
allowSwap: IS_MAINNET,
|
|
@@ -697,6 +711,7 @@ export const initializeCoins = (
|
|
|
697
711
|
image:
|
|
698
712
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/strx.png",
|
|
699
713
|
coingeckoId: "",
|
|
714
|
+
unifiedCryptoassetId: "",
|
|
700
715
|
},
|
|
701
716
|
{
|
|
702
717
|
allowSwap: false,
|
|
@@ -712,6 +727,7 @@ export const initializeCoins = (
|
|
|
712
727
|
image:
|
|
713
728
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/PMLogo-04.png",
|
|
714
729
|
coingeckoId: "",
|
|
730
|
+
unifiedCryptoassetId: "",
|
|
715
731
|
},
|
|
716
732
|
{
|
|
717
733
|
allowSwap: IS_MAINNET,
|
|
@@ -727,6 +743,7 @@ export const initializeCoins = (
|
|
|
727
743
|
image:
|
|
728
744
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/snips.png",
|
|
729
745
|
coingeckoId: "",
|
|
746
|
+
unifiedCryptoassetId: "",
|
|
730
747
|
},
|
|
731
748
|
{
|
|
732
749
|
allowSwap: IS_MAINNET,
|
|
@@ -770,6 +787,7 @@ export const initializeCoins = (
|
|
|
770
787
|
],
|
|
771
788
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
772
789
|
coingeckoId: "uniswap",
|
|
790
|
+
unifiedCryptoassetId: "7083",
|
|
773
791
|
},
|
|
774
792
|
{
|
|
775
793
|
allowSwap: false,
|
|
@@ -799,6 +817,7 @@ export const initializeCoins = (
|
|
|
799
817
|
],
|
|
800
818
|
image: "https://www.proton.org/images/tokens/xtokensXINCH.png",
|
|
801
819
|
coingeckoId: "1inch",
|
|
820
|
+
unifiedCryptoassetId: "8104",
|
|
802
821
|
},
|
|
803
822
|
{
|
|
804
823
|
allowSwap: false,
|
|
@@ -828,6 +847,7 @@ export const initializeCoins = (
|
|
|
828
847
|
],
|
|
829
848
|
image: "https://www.proton.org/images/tokens/xtokensXLINK.png",
|
|
830
849
|
coingeckoId: "chainlink",
|
|
850
|
+
unifiedCryptoassetId: "1975",
|
|
831
851
|
},
|
|
832
852
|
{
|
|
833
853
|
allowSwap: IS_MAINNET,
|
|
@@ -871,6 +891,7 @@ export const initializeCoins = (
|
|
|
871
891
|
],
|
|
872
892
|
image: "https://www.proton.org/images/tokens/xtokensXLTC.png",
|
|
873
893
|
coingeckoId: "litecoin",
|
|
894
|
+
unifiedCryptoassetId: "2",
|
|
874
895
|
},
|
|
875
896
|
{
|
|
876
897
|
allowSwap: false,
|
|
@@ -914,6 +935,7 @@ export const initializeCoins = (
|
|
|
914
935
|
],
|
|
915
936
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
916
937
|
coingeckoId: "bitcoin-cash",
|
|
938
|
+
unifiedCryptoassetId: "1831",
|
|
917
939
|
},
|
|
918
940
|
{
|
|
919
941
|
allowSwap: true,
|
|
@@ -944,6 +966,7 @@ export const initializeCoins = (
|
|
|
944
966
|
image:
|
|
945
967
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png",
|
|
946
968
|
coingeckoId: "lunr-token",
|
|
969
|
+
unifiedCryptoassetId: "12971",
|
|
947
970
|
},
|
|
948
971
|
{
|
|
949
972
|
allowSwap: false,
|
|
@@ -987,6 +1010,7 @@ export const initializeCoins = (
|
|
|
987
1010
|
],
|
|
988
1011
|
image: "https://www.proton.org/images/tokens/xtokensXXLM.png",
|
|
989
1012
|
coingeckoId: "stellar",
|
|
1013
|
+
unifiedCryptoassetId: "512",
|
|
990
1014
|
},
|
|
991
1015
|
{
|
|
992
1016
|
allowSwap: false,
|
|
@@ -1001,6 +1025,7 @@ export const initializeCoins = (
|
|
|
1001
1025
|
wallets: [],
|
|
1002
1026
|
image: "https://www.proton.org/images/tokens/senseXSENSE.png",
|
|
1003
1027
|
coingeckoId: "sense",
|
|
1028
|
+
unifiedCryptoassetId: "",
|
|
1004
1029
|
},
|
|
1005
1030
|
{
|
|
1006
1031
|
allowSwap: false,
|
|
@@ -1030,6 +1055,7 @@ export const initializeCoins = (
|
|
|
1030
1055
|
],
|
|
1031
1056
|
image: "https://www.proton.org/images/tokens/xtokensXDOT.png",
|
|
1032
1057
|
coingeckoId: "polkadot",
|
|
1058
|
+
unifiedCryptoassetId: "6636",
|
|
1033
1059
|
},
|
|
1034
1060
|
{
|
|
1035
1061
|
allowSwap: true,
|
|
@@ -1059,6 +1085,7 @@ export const initializeCoins = (
|
|
|
1059
1085
|
],
|
|
1060
1086
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
1061
1087
|
coingeckoId: "binancecoin",
|
|
1088
|
+
unifiedCryptoassetId: "1839",
|
|
1062
1089
|
},
|
|
1063
1090
|
{
|
|
1064
1091
|
allowSwap: false,
|
|
@@ -1085,6 +1112,7 @@ export const initializeCoins = (
|
|
|
1085
1112
|
image:
|
|
1086
1113
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png",
|
|
1087
1114
|
coingeckoId: "binance-usd",
|
|
1115
|
+
unifiedCryptoassetId: "4687",
|
|
1088
1116
|
},
|
|
1089
1117
|
{
|
|
1090
1118
|
allowSwap: true,
|
|
@@ -1128,6 +1156,7 @@ export const initializeCoins = (
|
|
|
1128
1156
|
],
|
|
1129
1157
|
image: "https://www.proton.org/images/tokens/xtokensXEOS.png",
|
|
1130
1158
|
coingeckoId: "eos",
|
|
1159
|
+
unifiedCryptoassetId: "1765",
|
|
1131
1160
|
},
|
|
1132
1161
|
{
|
|
1133
1162
|
allowSwap: IS_MAINNET,
|
|
@@ -1157,6 +1186,7 @@ export const initializeCoins = (
|
|
|
1157
1186
|
],
|
|
1158
1187
|
image: "https://www.proton.org/images/tokens/xtokensXDOGE.png",
|
|
1159
1188
|
coingeckoId: "dogecoin",
|
|
1189
|
+
unifiedCryptoassetId: "74",
|
|
1160
1190
|
},
|
|
1161
1191
|
{
|
|
1162
1192
|
allowSwap: IS_MAINNET,
|
|
@@ -1186,6 +1216,7 @@ export const initializeCoins = (
|
|
|
1186
1216
|
],
|
|
1187
1217
|
image: "https://www.proton.org/images/tokens/xtokensXADA.png",
|
|
1188
1218
|
coingeckoId: "cardano",
|
|
1219
|
+
unifiedCryptoassetId: "2010",
|
|
1189
1220
|
},
|
|
1190
1221
|
|
|
1191
1222
|
// Adding
|
|
@@ -1213,6 +1244,7 @@ export const initializeCoins = (
|
|
|
1213
1244
|
],
|
|
1214
1245
|
image: "https://www.proton.org/images/tokens/xtokensXLUNA.png",
|
|
1215
1246
|
coingeckoId: "terra-luna",
|
|
1247
|
+
unifiedCryptoassetId: "4172",
|
|
1216
1248
|
},
|
|
1217
1249
|
{
|
|
1218
1250
|
allowSwap: false,
|
|
@@ -1242,6 +1274,7 @@ export const initializeCoins = (
|
|
|
1242
1274
|
],
|
|
1243
1275
|
image: "https://www.proton.org/images/tokens/xtokensXUST.png",
|
|
1244
1276
|
coingeckoId: "terrausd",
|
|
1277
|
+
unifiedCryptoassetId: "7129",
|
|
1245
1278
|
},
|
|
1246
1279
|
{
|
|
1247
1280
|
allowSwap: false,
|
|
@@ -1272,6 +1305,7 @@ export const initializeCoins = (
|
|
|
1272
1305
|
image:
|
|
1273
1306
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png",
|
|
1274
1307
|
coingeckoId: "solana",
|
|
1308
|
+
unifiedCryptoassetId: "5426",
|
|
1275
1309
|
},
|
|
1276
1310
|
{
|
|
1277
1311
|
allowSwap: false,
|
|
@@ -1302,6 +1336,7 @@ export const initializeCoins = (
|
|
|
1302
1336
|
image:
|
|
1303
1337
|
"https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png",
|
|
1304
1338
|
coingeckoId: "ripple",
|
|
1339
|
+
unifiedCryptoassetId: "52",
|
|
1305
1340
|
},
|
|
1306
1341
|
|
|
1307
1342
|
// Future
|
|
@@ -1333,6 +1368,7 @@ export const initializeCoins = (
|
|
|
1333
1368
|
],
|
|
1334
1369
|
image: "https://www.proton.org/images/tokens/xtokensXAVAX.png",
|
|
1335
1370
|
coingeckoId: "avalanche-2",
|
|
1371
|
+
unifiedCryptoassetId: "5805",
|
|
1336
1372
|
},
|
|
1337
1373
|
{
|
|
1338
1374
|
allowSwap: false,
|
|
@@ -1362,6 +1398,7 @@ export const initializeCoins = (
|
|
|
1362
1398
|
],
|
|
1363
1399
|
image: "https://www.proton.org/images/tokens/xtokensXMATIC.png",
|
|
1364
1400
|
coingeckoId: "matic-network",
|
|
1401
|
+
unifiedCryptoassetId: "3890",
|
|
1365
1402
|
},
|
|
1366
1403
|
{
|
|
1367
1404
|
allowSwap: true,
|
|
@@ -1377,13 +1414,14 @@ export const initializeCoins = (
|
|
|
1377
1414
|
image:
|
|
1378
1415
|
"https://github.com/eoscafe/eos-airdrops/blob/master/logos/xmd.png?raw=true",
|
|
1379
1416
|
coingeckoId: "",
|
|
1417
|
+
unifiedCryptoassetId: "",
|
|
1380
1418
|
},
|
|
1381
1419
|
{
|
|
1382
1420
|
allowSwap: false,
|
|
1383
1421
|
allowBridge: IS_TESTNET,
|
|
1384
1422
|
allowLend: false,
|
|
1385
1423
|
allowBorrow: false,
|
|
1386
|
-
name: "
|
|
1424
|
+
name: "Hedera",
|
|
1387
1425
|
coin: "HBAR",
|
|
1388
1426
|
xtokenSymbol: "XHBAR",
|
|
1389
1427
|
xtokenPrecision: 6,
|
|
@@ -1406,6 +1444,7 @@ export const initializeCoins = (
|
|
|
1406
1444
|
],
|
|
1407
1445
|
image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
|
|
1408
1446
|
coingeckoId: "hedera-hashgraph",
|
|
1447
|
+
unifiedCryptoassetId: "4642",
|
|
1409
1448
|
},
|
|
1410
1449
|
];
|
|
1411
1450
|
|
package/src/parsers/dex.ts
CHANGED
|
@@ -68,7 +68,7 @@ export const getOpenOrdersParser = z.object({
|
|
|
68
68
|
symbol: z.string().optional(),
|
|
69
69
|
offset: z.string().default("0"),
|
|
70
70
|
limit: createLimit(100, 250),
|
|
71
|
-
|
|
71
|
+
ordinal_order_ids: z.array(z.string()).optional(),
|
|
72
72
|
});
|
|
73
73
|
export type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
|
|
74
74
|
|
|
@@ -84,7 +84,7 @@ export const getOrderHistoryParser = z.object({
|
|
|
84
84
|
symbol: z.string().optional(),
|
|
85
85
|
offset: z.string().default("0"),
|
|
86
86
|
limit: createLimit(100, 250),
|
|
87
|
-
|
|
87
|
+
ordinal_order_ids: z.array(z.string().optional()),
|
|
88
88
|
trx_id: z.string().optional(),
|
|
89
89
|
status: z.string().optional(),
|
|
90
90
|
});
|