@proton/wrap-constants 0.0.35 → 0.0.39
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/coins.d.ts +1 -0
- package/dist/parsers/index.d.ts +1 -0
- package/dist/parsers/pool.d.ts +21 -0
- package/dist/parsers/withdraw.d.ts +56 -24
- package/dist/wrap-constants.cjs.development.js +84 -46
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +84 -46
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +92 -50
- package/src/parsers/index.ts +1 -0
- package/src/parsers/pool.ts +21 -0
package/src/coins.ts
CHANGED
|
@@ -50,6 +50,7 @@ export interface Coin {
|
|
|
50
50
|
xtokenContract : string;
|
|
51
51
|
wallets : Wallet[];
|
|
52
52
|
image : string;
|
|
53
|
+
coingeckoId : string;
|
|
53
54
|
balance? : Asset;
|
|
54
55
|
}
|
|
55
56
|
|
|
@@ -134,7 +135,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
134
135
|
}
|
|
135
136
|
]: []),
|
|
136
137
|
],
|
|
137
|
-
image: '/img/tokens/xpr.png'
|
|
138
|
+
image: '/img/tokens/xpr.png',
|
|
139
|
+
coingeckoId: 'proton'
|
|
138
140
|
},
|
|
139
141
|
{
|
|
140
142
|
allowSwap: true,
|
|
@@ -186,7 +188,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
186
188
|
hasWithdrawMemo: false
|
|
187
189
|
}]: [])
|
|
188
190
|
],
|
|
189
|
-
image: '/img/tokens/xusdc.png'
|
|
191
|
+
image: '/img/tokens/xusdc.png',
|
|
192
|
+
coingeckoId: 'usd-coin'
|
|
190
193
|
},
|
|
191
194
|
{
|
|
192
195
|
allowSwap: true,
|
|
@@ -209,7 +212,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
209
212
|
hasWithdrawMemo: false
|
|
210
213
|
}]: [])
|
|
211
214
|
],
|
|
212
|
-
image: '/img/tokens/xmt.png'
|
|
215
|
+
image: '/img/tokens/xmt.png',
|
|
216
|
+
coingeckoId: 'metal'
|
|
213
217
|
},
|
|
214
218
|
{
|
|
215
219
|
allowSwap: true,
|
|
@@ -241,7 +245,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
241
245
|
hasWithdrawMemo: false
|
|
242
246
|
}]: [])
|
|
243
247
|
],
|
|
244
|
-
image: '/img/tokens/xbtc.png'
|
|
248
|
+
image: '/img/tokens/xbtc.png',
|
|
249
|
+
coingeckoId: 'bitcoin'
|
|
245
250
|
},
|
|
246
251
|
{
|
|
247
252
|
allowSwap: true,
|
|
@@ -273,8 +278,24 @@ export const initializeCoins = (protonChain: string): {
|
|
|
273
278
|
hasWithdrawMemo: false
|
|
274
279
|
}]: [])
|
|
275
280
|
],
|
|
276
|
-
image: '/img/tokens/xeth.png'
|
|
281
|
+
image: '/img/tokens/xeth.png',
|
|
282
|
+
coingeckoId: 'ethereum'
|
|
277
283
|
},
|
|
284
|
+
{
|
|
285
|
+
allowSwap: IS_MAINNET,
|
|
286
|
+
allowBridge: false,
|
|
287
|
+
allowLend: false,
|
|
288
|
+
allowBorrow: true,
|
|
289
|
+
name: 'Proton Loan',
|
|
290
|
+
coin: 'LOAN',
|
|
291
|
+
xtokenSymbol: 'LOAN',
|
|
292
|
+
xtokenPrecision: 4,
|
|
293
|
+
xtokenContract: 'loan.token',
|
|
294
|
+
wallets: [],
|
|
295
|
+
image: '/img/tokens/loan.png',
|
|
296
|
+
coingeckoId: ''
|
|
297
|
+
},
|
|
298
|
+
|
|
278
299
|
{
|
|
279
300
|
allowSwap: IS_MAINNET,
|
|
280
301
|
allowBridge: true,
|
|
@@ -305,7 +326,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
305
326
|
hasWithdrawMemo: false
|
|
306
327
|
}]: [])
|
|
307
328
|
],
|
|
308
|
-
image: '/img/tokens/xusdt.png'
|
|
329
|
+
image: '/img/tokens/xusdt.png',
|
|
330
|
+
coingeckoId: 'tether'
|
|
309
331
|
},
|
|
310
332
|
{
|
|
311
333
|
allowSwap: false,
|
|
@@ -328,7 +350,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
328
350
|
hasWithdrawMemo: false
|
|
329
351
|
}]: [])
|
|
330
352
|
],
|
|
331
|
-
image: '/img/tokens/xtusd.png'
|
|
353
|
+
image: '/img/tokens/xtusd.png',
|
|
354
|
+
coingeckoId: 'true-usd'
|
|
332
355
|
},
|
|
333
356
|
{
|
|
334
357
|
allowSwap: false,
|
|
@@ -351,7 +374,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
351
374
|
hasWithdrawMemo: false
|
|
352
375
|
}]: [])
|
|
353
376
|
],
|
|
354
|
-
image: '/img/tokens/xpax.png'
|
|
377
|
+
image: '/img/tokens/xpax.png',
|
|
378
|
+
coingeckoId: 'usdp'
|
|
355
379
|
},
|
|
356
380
|
{
|
|
357
381
|
allowSwap: false,
|
|
@@ -383,7 +407,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
383
407
|
hasWithdrawMemo: false
|
|
384
408
|
}]: [])
|
|
385
409
|
],
|
|
386
|
-
image: '/img/tokens/xpaxg.png'
|
|
410
|
+
image: '/img/tokens/xpaxg.png',
|
|
411
|
+
coingeckoId: 'pax-gold'
|
|
387
412
|
},
|
|
388
413
|
{
|
|
389
414
|
allowSwap: IS_MAINNET,
|
|
@@ -415,7 +440,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
415
440
|
hasWithdrawMemo: false
|
|
416
441
|
}]: [])
|
|
417
442
|
],
|
|
418
|
-
image: '/img/tokens/xuni.png'
|
|
443
|
+
image: '/img/tokens/xuni.png',
|
|
444
|
+
coingeckoId: 'uniswap'
|
|
419
445
|
},
|
|
420
446
|
{
|
|
421
447
|
allowSwap: false,
|
|
@@ -438,7 +464,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
438
464
|
hasWithdrawMemo: false
|
|
439
465
|
}]: [])
|
|
440
466
|
],
|
|
441
|
-
image: '/img/tokens/xinch.png'
|
|
467
|
+
image: '/img/tokens/xinch.png',
|
|
468
|
+
coingeckoId: '1inch'
|
|
442
469
|
},
|
|
443
470
|
{
|
|
444
471
|
allowSwap: false,
|
|
@@ -461,7 +488,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
461
488
|
hasWithdrawMemo: false
|
|
462
489
|
}]: [])
|
|
463
490
|
],
|
|
464
|
-
image: '/img/tokens/xlink.png'
|
|
491
|
+
image: '/img/tokens/xlink.png',
|
|
492
|
+
coingeckoId: 'chainlink'
|
|
465
493
|
},
|
|
466
494
|
{
|
|
467
495
|
allowSwap: IS_MAINNET,
|
|
@@ -493,7 +521,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
493
521
|
hasWithdrawMemo: false
|
|
494
522
|
}]: [])
|
|
495
523
|
],
|
|
496
|
-
image: '/img/tokens/xltc.png'
|
|
524
|
+
image: '/img/tokens/xltc.png',
|
|
525
|
+
coingeckoId: 'litecoin'
|
|
497
526
|
},
|
|
498
527
|
{
|
|
499
528
|
allowSwap: IS_MAINNET,
|
|
@@ -525,7 +554,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
525
554
|
hasWithdrawMemo: false
|
|
526
555
|
}]: [])
|
|
527
556
|
],
|
|
528
|
-
image: '/img/tokens/xbch.png'
|
|
557
|
+
image: '/img/tokens/xbch.png',
|
|
558
|
+
coingeckoId: 'bitcoin-cash'
|
|
529
559
|
},
|
|
530
560
|
{
|
|
531
561
|
allowSwap: false,
|
|
@@ -557,7 +587,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
557
587
|
hasWithdrawMemo: true
|
|
558
588
|
}]: [])
|
|
559
589
|
],
|
|
560
|
-
image: '/img/tokens/xxlm.png'
|
|
590
|
+
image: '/img/tokens/xxlm.png',
|
|
591
|
+
coingeckoId: 'stellar'
|
|
561
592
|
},
|
|
562
593
|
{
|
|
563
594
|
allowSwap: IS_MAINNET,
|
|
@@ -570,7 +601,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
570
601
|
xtokenPrecision: 4,
|
|
571
602
|
xtokenContract: 'sense',
|
|
572
603
|
wallets: [],
|
|
573
|
-
image: '/img/tokens/xsense.png'
|
|
604
|
+
image: '/img/tokens/xsense.png',
|
|
605
|
+
coingeckoId: 'sense'
|
|
574
606
|
},
|
|
575
607
|
{
|
|
576
608
|
allowSwap: false,
|
|
@@ -593,7 +625,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
593
625
|
hasWithdrawMemo: false
|
|
594
626
|
}]: [])
|
|
595
627
|
],
|
|
596
|
-
image: '/img/tokens/xdot.png'
|
|
628
|
+
image: '/img/tokens/xdot.png',
|
|
629
|
+
coingeckoId: 'polkadot'
|
|
597
630
|
},
|
|
598
631
|
{
|
|
599
632
|
allowSwap: true,
|
|
@@ -616,7 +649,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
616
649
|
hasWithdrawMemo: false
|
|
617
650
|
}]: [])
|
|
618
651
|
],
|
|
619
|
-
image: '/img/tokens/xbnb.png'
|
|
652
|
+
image: '/img/tokens/xbnb.png',
|
|
653
|
+
coingeckoId: 'binancecoin'
|
|
620
654
|
},
|
|
621
655
|
{
|
|
622
656
|
allowSwap: true,
|
|
@@ -648,37 +682,13 @@ export const initializeCoins = (protonChain: string): {
|
|
|
648
682
|
hasWithdrawMemo: true
|
|
649
683
|
}]: [])
|
|
650
684
|
],
|
|
651
|
-
image: '/img/tokens/xeos.png'
|
|
652
|
-
|
|
653
|
-
{
|
|
654
|
-
allowSwap: false,
|
|
655
|
-
allowBridge: IS_TESTNET,
|
|
656
|
-
allowLend: false,
|
|
657
|
-
allowBorrow: false,
|
|
658
|
-
name: 'HBAR',
|
|
659
|
-
coin: 'HBAR',
|
|
660
|
-
xtokenSymbol: 'XHBAR',
|
|
661
|
-
xtokenPrecision: 6,
|
|
662
|
-
xtokenContract: 'xtokens',
|
|
663
|
-
wallets: [
|
|
664
|
-
...(IS_TESTNET ? [{
|
|
665
|
-
wallet: 'HBAR',
|
|
666
|
-
symbol: 'HBAR',
|
|
667
|
-
chain: Chains.HederaTestnet,
|
|
668
|
-
network: Networks.Testnet,
|
|
669
|
-
precision: 8,
|
|
670
|
-
contract: undefined,
|
|
671
|
-
hasWithdrawMemo: false
|
|
672
|
-
}]: [])
|
|
673
|
-
],
|
|
674
|
-
image: '/img/tokens/xhbar.png'
|
|
685
|
+
image: '/img/tokens/xeos.png',
|
|
686
|
+
coingeckoId: 'eos'
|
|
675
687
|
},
|
|
676
|
-
|
|
677
|
-
// Synthethic
|
|
678
688
|
{
|
|
679
689
|
allowSwap: IS_MAINNET,
|
|
680
690
|
allowBridge: IS_MAINNET,
|
|
681
|
-
allowLend:
|
|
691
|
+
allowLend: true,
|
|
682
692
|
allowBorrow: false,
|
|
683
693
|
name: 'Dogecoin',
|
|
684
694
|
coin: 'DOGE',
|
|
@@ -696,7 +706,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
696
706
|
hasWithdrawMemo: false
|
|
697
707
|
}]: []),
|
|
698
708
|
],
|
|
699
|
-
image: '/img/tokens/xdoge.png'
|
|
709
|
+
image: '/img/tokens/xdoge.png',
|
|
710
|
+
coingeckoId: 'dogecoin'
|
|
700
711
|
},
|
|
701
712
|
{
|
|
702
713
|
allowSwap: IS_MAINNET,
|
|
@@ -719,8 +730,36 @@ export const initializeCoins = (protonChain: string): {
|
|
|
719
730
|
hasWithdrawMemo: false
|
|
720
731
|
}]: [])
|
|
721
732
|
],
|
|
722
|
-
image: '/img/tokens/xada.png'
|
|
733
|
+
image: '/img/tokens/xada.png',
|
|
734
|
+
coingeckoId: 'cardano'
|
|
735
|
+
},
|
|
736
|
+
|
|
737
|
+
// Synthethic
|
|
738
|
+
{
|
|
739
|
+
allowSwap: false,
|
|
740
|
+
allowBridge: IS_TESTNET,
|
|
741
|
+
allowLend: false,
|
|
742
|
+
allowBorrow: false,
|
|
743
|
+
name: 'HBAR',
|
|
744
|
+
coin: 'HBAR',
|
|
745
|
+
xtokenSymbol: 'XHBAR',
|
|
746
|
+
xtokenPrecision: 6,
|
|
747
|
+
xtokenContract: 'xtokens',
|
|
748
|
+
wallets: [
|
|
749
|
+
...(IS_TESTNET ? [{
|
|
750
|
+
wallet: 'HBAR',
|
|
751
|
+
symbol: 'HBAR',
|
|
752
|
+
chain: Chains.HederaTestnet,
|
|
753
|
+
network: Networks.Testnet,
|
|
754
|
+
precision: 8,
|
|
755
|
+
contract: undefined,
|
|
756
|
+
hasWithdrawMemo: false
|
|
757
|
+
}]: [])
|
|
758
|
+
],
|
|
759
|
+
image: '/img/tokens/xhbar.png',
|
|
760
|
+
coingeckoId: 'hedera-hashgraph'
|
|
723
761
|
},
|
|
762
|
+
|
|
724
763
|
{
|
|
725
764
|
allowSwap: false,
|
|
726
765
|
allowBridge: false,
|
|
@@ -732,7 +771,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
732
771
|
xtokenPrecision: 6,
|
|
733
772
|
xtokenContract: 'xtokens',
|
|
734
773
|
wallets: [],
|
|
735
|
-
image: '/img/tokens/xtheta.png'
|
|
774
|
+
image: '/img/tokens/xtheta.png',
|
|
775
|
+
coingeckoId: 'theta-token'
|
|
736
776
|
},
|
|
737
777
|
{
|
|
738
778
|
allowSwap: false,
|
|
@@ -745,7 +785,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
745
785
|
xtokenPrecision: 6,
|
|
746
786
|
xtokenContract: 'xtokens',
|
|
747
787
|
wallets: [],
|
|
748
|
-
image: '/img/tokens/xfil.png'
|
|
788
|
+
image: '/img/tokens/xfil.png',
|
|
789
|
+
coingeckoId: 'filecoin'
|
|
749
790
|
},
|
|
750
791
|
{
|
|
751
792
|
allowSwap: false,
|
|
@@ -758,7 +799,8 @@ export const initializeCoins = (protonChain: string): {
|
|
|
758
799
|
xtokenPrecision: 6,
|
|
759
800
|
xtokenContract: 'xtokens',
|
|
760
801
|
wallets: [],
|
|
761
|
-
image: '/img/tokens/xtrx.png'
|
|
802
|
+
image: '/img/tokens/xtrx.png',
|
|
803
|
+
coingeckoId: 'tron'
|
|
762
804
|
},
|
|
763
805
|
// End synthetic
|
|
764
806
|
]
|
package/src/parsers/index.ts
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface RawPool {
|
|
2
|
+
lt_symbol: string;
|
|
3
|
+
creator: string;
|
|
4
|
+
memo: string;
|
|
5
|
+
pool1: {
|
|
6
|
+
quantity: string;
|
|
7
|
+
contract: string;
|
|
8
|
+
};
|
|
9
|
+
pool2: {
|
|
10
|
+
quantity: string;
|
|
11
|
+
contract: string;
|
|
12
|
+
};
|
|
13
|
+
hash: string;
|
|
14
|
+
fee: {
|
|
15
|
+
exchange_fee: number;
|
|
16
|
+
add_liquidity_fee: number;
|
|
17
|
+
remove_liquidity_fee: number;
|
|
18
|
+
};
|
|
19
|
+
active: boolean;
|
|
20
|
+
reserved?: any;
|
|
21
|
+
}
|