@proton/wrap-constants 0.2.72 → 0.2.74
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 +5 -1
- package/dist/index.js +455 -373
- package/dist/index.mjs +455 -373
- package/package.json +5 -3
- package/src/coins.ts +1407 -1199
- package/src/constants.ts +6 -1
package/dist/index.mjs
CHANGED
|
@@ -208,16 +208,18 @@ var initializeCoins = (protonChain) => {
|
|
|
208
208
|
xtokenPrecision: 8,
|
|
209
209
|
xtokenContract: "xtokens",
|
|
210
210
|
wallets: [
|
|
211
|
-
...IS_MAINNET ? [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
211
|
+
...IS_MAINNET ? [
|
|
212
|
+
{
|
|
213
|
+
wallet: "MTL",
|
|
214
|
+
symbol: "MTL",
|
|
215
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
216
|
+
network: "erc20" /* ERC20 */,
|
|
217
|
+
precision: 8,
|
|
218
|
+
contract: "0xF433089366899D83A9F26A773D59EC7ECF30355E",
|
|
219
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
220
|
+
hasWithdrawMemo: false
|
|
221
|
+
}
|
|
222
|
+
] : []
|
|
221
223
|
],
|
|
222
224
|
image: "https://www.proton.org/images/tokens/xtokensXMT.png",
|
|
223
225
|
coingeckoId: "metal"
|
|
@@ -233,16 +235,18 @@ var initializeCoins = (protonChain) => {
|
|
|
233
235
|
xtokenPrecision: 8,
|
|
234
236
|
xtokenContract: "xtokens",
|
|
235
237
|
wallets: [
|
|
236
|
-
...IS_TESTNET ? [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
238
|
+
...IS_TESTNET ? [
|
|
239
|
+
{
|
|
240
|
+
wallet: "METAL",
|
|
241
|
+
symbol: "METAL",
|
|
242
|
+
chain: "Metal C-Chain (Testnet)" /* MetalCTestnet */,
|
|
243
|
+
network: "evm" /* EVM */,
|
|
244
|
+
precision: 18,
|
|
245
|
+
contract: "",
|
|
246
|
+
provider: "metal" /* METAL */,
|
|
247
|
+
hasWithdrawMemo: false
|
|
248
|
+
}
|
|
249
|
+
] : [],
|
|
246
250
|
...IS_MAINNET ? [
|
|
247
251
|
{
|
|
248
252
|
wallet: "METAL",
|
|
@@ -280,26 +284,30 @@ var initializeCoins = (protonChain) => {
|
|
|
280
284
|
xtokenPrecision: 8,
|
|
281
285
|
xtokenContract: "xtokens",
|
|
282
286
|
wallets: [
|
|
283
|
-
...IS_MAINNET ? [
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
287
|
+
...IS_MAINNET ? [
|
|
288
|
+
{
|
|
289
|
+
wallet: "BTC",
|
|
290
|
+
symbol: "BTC",
|
|
291
|
+
chain: "Bitcoin" /* BitcoinMainnet */,
|
|
292
|
+
network: "mainnet" /* Mainnet */,
|
|
293
|
+
precision: 8,
|
|
294
|
+
contract: void 0,
|
|
295
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
296
|
+
hasWithdrawMemo: false
|
|
297
|
+
}
|
|
298
|
+
] : [],
|
|
299
|
+
...IS_TESTNET ? [
|
|
300
|
+
{
|
|
301
|
+
wallet: "BTC",
|
|
302
|
+
symbol: "BTC",
|
|
303
|
+
chain: "Bitcoin (Testnet)" /* BitcoinTestnet */,
|
|
304
|
+
network: "testnet" /* Testnet */,
|
|
305
|
+
precision: 8,
|
|
306
|
+
contract: void 0,
|
|
307
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
308
|
+
hasWithdrawMemo: false
|
|
309
|
+
}
|
|
310
|
+
] : []
|
|
303
311
|
],
|
|
304
312
|
image: "https://www.proton.org/images/tokens/xtokensXBTC.png",
|
|
305
313
|
coingeckoId: "bitcoin"
|
|
@@ -315,26 +323,30 @@ var initializeCoins = (protonChain) => {
|
|
|
315
323
|
xtokenPrecision: 8,
|
|
316
324
|
xtokenContract: "xtokens",
|
|
317
325
|
wallets: [
|
|
318
|
-
...IS_MAINNET ? [
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
326
|
+
...IS_MAINNET ? [
|
|
327
|
+
{
|
|
328
|
+
wallet: "ETH",
|
|
329
|
+
symbol: "ETH",
|
|
330
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
331
|
+
network: "mainnet" /* Mainnet */,
|
|
332
|
+
precision: 18,
|
|
333
|
+
contract: "0x0000000000000000000000000000000000000000",
|
|
334
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
335
|
+
hasWithdrawMemo: false
|
|
336
|
+
}
|
|
337
|
+
] : [],
|
|
338
|
+
...IS_TESTNET ? [
|
|
339
|
+
{
|
|
340
|
+
wallet: "ETH",
|
|
341
|
+
symbol: "ETH",
|
|
342
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
343
|
+
network: "ropsten" /* Ropsten */,
|
|
344
|
+
precision: 18,
|
|
345
|
+
contract: "0x0000000000000000000000000000000000000000",
|
|
346
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
347
|
+
hasWithdrawMemo: false
|
|
348
|
+
}
|
|
349
|
+
] : []
|
|
338
350
|
],
|
|
339
351
|
image: "https://www.proton.org/images/tokens/xtokensXETH.png",
|
|
340
352
|
coingeckoId: "ethereum"
|
|
@@ -364,36 +376,42 @@ var initializeCoins = (protonChain) => {
|
|
|
364
376
|
xtokenPrecision: 6,
|
|
365
377
|
xtokenContract: "xtokens",
|
|
366
378
|
wallets: [
|
|
367
|
-
...IS_MAINNET ? [
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
379
|
+
...IS_MAINNET ? [
|
|
380
|
+
{
|
|
381
|
+
wallet: "USDT",
|
|
382
|
+
symbol: "USDT",
|
|
383
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
384
|
+
network: "erc20" /* ERC20 */,
|
|
385
|
+
precision: 6,
|
|
386
|
+
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
387
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
388
|
+
hasWithdrawMemo: false
|
|
389
|
+
}
|
|
390
|
+
] : [],
|
|
391
|
+
...IS_MAINNET ? [
|
|
392
|
+
{
|
|
393
|
+
wallet: "USDT-BEP20",
|
|
394
|
+
symbol: "USDT",
|
|
395
|
+
chain: "Binance (BEP20)" /* BinanceBEP20 */,
|
|
396
|
+
network: "bep20" /* BEP20 */,
|
|
397
|
+
precision: 18,
|
|
398
|
+
contract: "0x55d398326f99059fF775485246999027B3197955",
|
|
399
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
400
|
+
hasWithdrawMemo: false
|
|
401
|
+
}
|
|
402
|
+
] : [],
|
|
403
|
+
...IS_TESTNET ? [
|
|
404
|
+
{
|
|
405
|
+
wallet: "USDT",
|
|
406
|
+
symbol: "USDT",
|
|
407
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
408
|
+
network: "ropsten" /* Ropsten */,
|
|
409
|
+
precision: 6,
|
|
410
|
+
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
411
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
412
|
+
hasWithdrawMemo: false
|
|
413
|
+
}
|
|
414
|
+
] : []
|
|
397
415
|
],
|
|
398
416
|
image: "https://www.proton.org/images/tokens/xtokensXUSDT.png",
|
|
399
417
|
coingeckoId: "tether"
|
|
@@ -409,16 +427,18 @@ var initializeCoins = (protonChain) => {
|
|
|
409
427
|
xtokenPrecision: 6,
|
|
410
428
|
xtokenContract: "xtokens",
|
|
411
429
|
wallets: [
|
|
412
|
-
...IS_MAINNET ? [
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
430
|
+
...IS_MAINNET ? [
|
|
431
|
+
{
|
|
432
|
+
wallet: "TUSD",
|
|
433
|
+
symbol: "TUSD",
|
|
434
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
435
|
+
network: "erc20" /* ERC20 */,
|
|
436
|
+
precision: 18,
|
|
437
|
+
contract: "0x0000000000085D4780B73119B644AE5ECD22B376",
|
|
438
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
439
|
+
hasWithdrawMemo: false
|
|
440
|
+
}
|
|
441
|
+
] : []
|
|
422
442
|
],
|
|
423
443
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
424
444
|
coingeckoId: "true-usd"
|
|
@@ -434,16 +454,18 @@ var initializeCoins = (protonChain) => {
|
|
|
434
454
|
xtokenPrecision: 6,
|
|
435
455
|
xtokenContract: "xtokens",
|
|
436
456
|
wallets: [
|
|
437
|
-
...IS_MAINNET ? [
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
457
|
+
...IS_MAINNET ? [
|
|
458
|
+
{
|
|
459
|
+
wallet: "EUROC",
|
|
460
|
+
symbol: "EUROC-ERC20",
|
|
461
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
462
|
+
network: "erc20" /* ERC20 */,
|
|
463
|
+
precision: 6,
|
|
464
|
+
contract: "0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",
|
|
465
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
466
|
+
hasWithdrawMemo: false
|
|
467
|
+
}
|
|
468
|
+
] : []
|
|
447
469
|
],
|
|
448
470
|
image: "https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420",
|
|
449
471
|
coingeckoId: "euro-coin"
|
|
@@ -459,16 +481,18 @@ var initializeCoins = (protonChain) => {
|
|
|
459
481
|
xtokenPrecision: 4,
|
|
460
482
|
xtokenContract: "xtokens",
|
|
461
483
|
wallets: [
|
|
462
|
-
...IS_MAINNET ? [
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
484
|
+
...IS_MAINNET ? [
|
|
485
|
+
{
|
|
486
|
+
wallet: "XDC",
|
|
487
|
+
symbol: "XDC",
|
|
488
|
+
chain: "XDC Network" /* XDCMainnet */,
|
|
489
|
+
network: "mainnet" /* Mainnet */,
|
|
490
|
+
precision: 18,
|
|
491
|
+
contract: "",
|
|
492
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
493
|
+
hasWithdrawMemo: false
|
|
494
|
+
}
|
|
495
|
+
] : []
|
|
472
496
|
],
|
|
473
497
|
image: "https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890",
|
|
474
498
|
coingeckoId: "xdce-crowd-sale"
|
|
@@ -484,16 +508,18 @@ var initializeCoins = (protonChain) => {
|
|
|
484
508
|
xtokenPrecision: 6,
|
|
485
509
|
xtokenContract: "xtokens",
|
|
486
510
|
wallets: [
|
|
487
|
-
...IS_MAINNET ? [
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
511
|
+
...IS_MAINNET ? [
|
|
512
|
+
{
|
|
513
|
+
wallet: "PAX",
|
|
514
|
+
symbol: "PAX",
|
|
515
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
516
|
+
network: "erc20" /* ERC20 */,
|
|
517
|
+
precision: 18,
|
|
518
|
+
contract: "0x8E870D67F660D95D5BE530380D0EC0BD388289E1",
|
|
519
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
520
|
+
hasWithdrawMemo: false
|
|
521
|
+
}
|
|
522
|
+
] : []
|
|
497
523
|
],
|
|
498
524
|
image: "https://www.proton.org/images/tokens/xtokensXPAX.png",
|
|
499
525
|
coingeckoId: "paxos-standard"
|
|
@@ -509,26 +535,30 @@ var initializeCoins = (protonChain) => {
|
|
|
509
535
|
xtokenPrecision: 8,
|
|
510
536
|
xtokenContract: "xtokens",
|
|
511
537
|
wallets: [
|
|
512
|
-
...IS_MAINNET ? [
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
538
|
+
...IS_MAINNET ? [
|
|
539
|
+
{
|
|
540
|
+
wallet: "PAXG",
|
|
541
|
+
symbol: "PAXG",
|
|
542
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
543
|
+
network: "erc20" /* ERC20 */,
|
|
544
|
+
precision: 18,
|
|
545
|
+
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
546
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
547
|
+
hasWithdrawMemo: false
|
|
548
|
+
}
|
|
549
|
+
] : [],
|
|
550
|
+
...IS_TESTNET ? [
|
|
551
|
+
{
|
|
552
|
+
wallet: "PAXG",
|
|
553
|
+
symbol: "PAXG",
|
|
554
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
555
|
+
network: "ropsten" /* Ropsten */,
|
|
556
|
+
precision: 18,
|
|
557
|
+
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
558
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
559
|
+
hasWithdrawMemo: false
|
|
560
|
+
}
|
|
561
|
+
] : []
|
|
532
562
|
],
|
|
533
563
|
image: "https://www.proton.org/images/tokens/xtokensXPAXG.png",
|
|
534
564
|
coingeckoId: "pax-gold"
|
|
@@ -548,7 +578,7 @@ var initializeCoins = (protonChain) => {
|
|
|
548
578
|
coingeckoId: ""
|
|
549
579
|
},
|
|
550
580
|
{
|
|
551
|
-
allowSwap:
|
|
581
|
+
allowSwap: false,
|
|
552
582
|
allowBridge: false,
|
|
553
583
|
allowLend: false,
|
|
554
584
|
allowBorrow: false,
|
|
@@ -586,26 +616,30 @@ var initializeCoins = (protonChain) => {
|
|
|
586
616
|
xtokenPrecision: 6,
|
|
587
617
|
xtokenContract: "xtokens",
|
|
588
618
|
wallets: [
|
|
589
|
-
...IS_MAINNET ? [
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
619
|
+
...IS_MAINNET ? [
|
|
620
|
+
{
|
|
621
|
+
wallet: "UNI",
|
|
622
|
+
symbol: "UNI",
|
|
623
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
624
|
+
network: "erc20" /* ERC20 */,
|
|
625
|
+
precision: 18,
|
|
626
|
+
contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
627
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
628
|
+
hasWithdrawMemo: false
|
|
629
|
+
}
|
|
630
|
+
] : [],
|
|
631
|
+
...IS_TESTNET ? [
|
|
632
|
+
{
|
|
633
|
+
wallet: "UNI",
|
|
634
|
+
symbol: "UNI",
|
|
635
|
+
chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
|
|
636
|
+
network: "ropsten" /* Ropsten */,
|
|
637
|
+
precision: 18,
|
|
638
|
+
contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
639
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
640
|
+
hasWithdrawMemo: false
|
|
641
|
+
}
|
|
642
|
+
] : []
|
|
609
643
|
],
|
|
610
644
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
611
645
|
coingeckoId: "uniswap"
|
|
@@ -621,16 +655,18 @@ var initializeCoins = (protonChain) => {
|
|
|
621
655
|
xtokenPrecision: 6,
|
|
622
656
|
xtokenContract: "xtokens",
|
|
623
657
|
wallets: [
|
|
624
|
-
...IS_MAINNET ? [
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
658
|
+
...IS_MAINNET ? [
|
|
659
|
+
{
|
|
660
|
+
wallet: "1INCH",
|
|
661
|
+
symbol: "1INCH",
|
|
662
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
663
|
+
network: "erc20" /* ERC20 */,
|
|
664
|
+
precision: 18,
|
|
665
|
+
contract: "0x111111111117DC0AA78B770FA6A738034120C302",
|
|
666
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
667
|
+
hasWithdrawMemo: false
|
|
668
|
+
}
|
|
669
|
+
] : []
|
|
634
670
|
],
|
|
635
671
|
image: "https://www.proton.org/images/tokens/xtokensXINCH.png",
|
|
636
672
|
coingeckoId: "1inch"
|
|
@@ -646,16 +682,18 @@ var initializeCoins = (protonChain) => {
|
|
|
646
682
|
xtokenPrecision: 6,
|
|
647
683
|
xtokenContract: "xtokens",
|
|
648
684
|
wallets: [
|
|
649
|
-
...IS_MAINNET ? [
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
685
|
+
...IS_MAINNET ? [
|
|
686
|
+
{
|
|
687
|
+
wallet: "LINK",
|
|
688
|
+
symbol: "LINK",
|
|
689
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
690
|
+
network: "erc20" /* ERC20 */,
|
|
691
|
+
precision: 18,
|
|
692
|
+
contract: "0x514910771AF9CA656AF840DFF83E8264ECF986CA",
|
|
693
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
694
|
+
hasWithdrawMemo: false
|
|
695
|
+
}
|
|
696
|
+
] : []
|
|
659
697
|
],
|
|
660
698
|
image: "https://www.proton.org/images/tokens/xtokensXLINK.png",
|
|
661
699
|
coingeckoId: "chainlink"
|
|
@@ -671,26 +709,30 @@ var initializeCoins = (protonChain) => {
|
|
|
671
709
|
xtokenPrecision: 8,
|
|
672
710
|
xtokenContract: "xtokens",
|
|
673
711
|
wallets: [
|
|
674
|
-
...IS_MAINNET ? [
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
712
|
+
...IS_MAINNET ? [
|
|
713
|
+
{
|
|
714
|
+
wallet: "LTC",
|
|
715
|
+
symbol: "LTC",
|
|
716
|
+
chain: "Litecoin" /* LitecoinMainnet */,
|
|
717
|
+
network: "mainnet" /* Mainnet */,
|
|
718
|
+
precision: 8,
|
|
719
|
+
contract: void 0,
|
|
720
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
721
|
+
hasWithdrawMemo: false
|
|
722
|
+
}
|
|
723
|
+
] : [],
|
|
724
|
+
...IS_TESTNET ? [
|
|
725
|
+
{
|
|
726
|
+
wallet: "LTC",
|
|
727
|
+
symbol: "LTC",
|
|
728
|
+
chain: "Litecoin (Testnet)" /* LitecoinTestnet */,
|
|
729
|
+
network: "testnet" /* Testnet */,
|
|
730
|
+
precision: 8,
|
|
731
|
+
contract: void 0,
|
|
732
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
733
|
+
hasWithdrawMemo: false
|
|
734
|
+
}
|
|
735
|
+
] : []
|
|
694
736
|
],
|
|
695
737
|
image: "https://www.proton.org/images/tokens/xtokensXLTC.png",
|
|
696
738
|
coingeckoId: "litecoin"
|
|
@@ -706,26 +748,30 @@ var initializeCoins = (protonChain) => {
|
|
|
706
748
|
xtokenPrecision: 8,
|
|
707
749
|
xtokenContract: "xtokens",
|
|
708
750
|
wallets: [
|
|
709
|
-
...IS_MAINNET ? [
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
751
|
+
...IS_MAINNET ? [
|
|
752
|
+
{
|
|
753
|
+
wallet: "BCH",
|
|
754
|
+
symbol: "BCH",
|
|
755
|
+
chain: "Bitcoin Cash" /* BitcoinCashMainnet */,
|
|
756
|
+
network: "mainnet" /* Mainnet */,
|
|
757
|
+
precision: 8,
|
|
758
|
+
contract: void 0,
|
|
759
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
760
|
+
hasWithdrawMemo: false
|
|
761
|
+
}
|
|
762
|
+
] : [],
|
|
763
|
+
...IS_TESTNET ? [
|
|
764
|
+
{
|
|
765
|
+
wallet: "BCH",
|
|
766
|
+
symbol: "BCH",
|
|
767
|
+
chain: "Bitcoin Cash (Testnet)" /* BitcoinCashTestnet */,
|
|
768
|
+
network: "testnet" /* Testnet */,
|
|
769
|
+
precision: 8,
|
|
770
|
+
contract: void 0,
|
|
771
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
772
|
+
hasWithdrawMemo: false
|
|
773
|
+
}
|
|
774
|
+
] : []
|
|
729
775
|
],
|
|
730
776
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
731
777
|
coingeckoId: "bitcoin-cash"
|
|
@@ -741,16 +787,18 @@ var initializeCoins = (protonChain) => {
|
|
|
741
787
|
xtokenPrecision: 4,
|
|
742
788
|
xtokenContract: "xtokens",
|
|
743
789
|
wallets: [
|
|
744
|
-
...IS_MAINNET ? [
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
790
|
+
...IS_MAINNET ? [
|
|
791
|
+
{
|
|
792
|
+
wallet: "LUNR",
|
|
793
|
+
symbol: "LUNR",
|
|
794
|
+
chain: "Ethereum" /* EthereumMainnet */,
|
|
795
|
+
network: "erc20" /* ERC20 */,
|
|
796
|
+
precision: 4,
|
|
797
|
+
contract: void 0,
|
|
798
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
799
|
+
hasWithdrawMemo: false
|
|
800
|
+
}
|
|
801
|
+
] : []
|
|
754
802
|
],
|
|
755
803
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png",
|
|
756
804
|
coingeckoId: "lunr-token"
|
|
@@ -766,26 +814,30 @@ var initializeCoins = (protonChain) => {
|
|
|
766
814
|
xtokenPrecision: 6,
|
|
767
815
|
xtokenContract: "xtokens",
|
|
768
816
|
wallets: [
|
|
769
|
-
...IS_MAINNET ? [
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
817
|
+
...IS_MAINNET ? [
|
|
818
|
+
{
|
|
819
|
+
wallet: "XLM",
|
|
820
|
+
symbol: "XLM",
|
|
821
|
+
chain: "Stellar" /* StellarMainnet */,
|
|
822
|
+
network: "mainnet" /* Mainnet */,
|
|
823
|
+
precision: 7,
|
|
824
|
+
contract: void 0,
|
|
825
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
826
|
+
hasWithdrawMemo: true
|
|
827
|
+
}
|
|
828
|
+
] : [],
|
|
829
|
+
...IS_TESTNET ? [
|
|
830
|
+
{
|
|
831
|
+
wallet: "XLM",
|
|
832
|
+
symbol: "XLM",
|
|
833
|
+
chain: "Stellar (Testnet)" /* StellarTestnet */,
|
|
834
|
+
network: "testnet" /* Testnet */,
|
|
835
|
+
precision: 7,
|
|
836
|
+
contract: void 0,
|
|
837
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
838
|
+
hasWithdrawMemo: true
|
|
839
|
+
}
|
|
840
|
+
] : []
|
|
789
841
|
],
|
|
790
842
|
image: "https://www.proton.org/images/tokens/xtokensXXLM.png",
|
|
791
843
|
coingeckoId: "stellar"
|
|
@@ -815,16 +867,18 @@ var initializeCoins = (protonChain) => {
|
|
|
815
867
|
xtokenPrecision: 8,
|
|
816
868
|
xtokenContract: "xtokens",
|
|
817
869
|
wallets: [
|
|
818
|
-
...IS_MAINNET ? [
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
870
|
+
...IS_MAINNET ? [
|
|
871
|
+
{
|
|
872
|
+
wallet: "DOT",
|
|
873
|
+
symbol: "DOT",
|
|
874
|
+
chain: "Polkadot" /* PolkadotMainnet */,
|
|
875
|
+
network: "mainnet" /* Mainnet */,
|
|
876
|
+
precision: 10,
|
|
877
|
+
contract: void 0,
|
|
878
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
879
|
+
hasWithdrawMemo: false
|
|
880
|
+
}
|
|
881
|
+
] : []
|
|
828
882
|
],
|
|
829
883
|
image: "https://www.proton.org/images/tokens/xtokensXDOT.png",
|
|
830
884
|
coingeckoId: "polkadot"
|
|
@@ -840,16 +894,18 @@ var initializeCoins = (protonChain) => {
|
|
|
840
894
|
xtokenPrecision: 8,
|
|
841
895
|
xtokenContract: "xtokens",
|
|
842
896
|
wallets: [
|
|
843
|
-
...IS_MAINNET ? [
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
897
|
+
...IS_MAINNET ? [
|
|
898
|
+
{
|
|
899
|
+
wallet: "BNB",
|
|
900
|
+
symbol: "BNB",
|
|
901
|
+
chain: "Binance (BEP20)" /* BinanceBEP20 */,
|
|
902
|
+
network: "bep20" /* BEP20 */,
|
|
903
|
+
precision: 18,
|
|
904
|
+
contract: void 0,
|
|
905
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
906
|
+
hasWithdrawMemo: false
|
|
907
|
+
}
|
|
908
|
+
] : []
|
|
853
909
|
],
|
|
854
910
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
855
911
|
coingeckoId: "binancecoin"
|
|
@@ -890,26 +946,30 @@ var initializeCoins = (protonChain) => {
|
|
|
890
946
|
xtokenPrecision: 4,
|
|
891
947
|
xtokenContract: "xtokens",
|
|
892
948
|
wallets: [
|
|
893
|
-
...IS_MAINNET ? [
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
949
|
+
...IS_MAINNET ? [
|
|
950
|
+
{
|
|
951
|
+
wallet: "EOS",
|
|
952
|
+
symbol: "EOS",
|
|
953
|
+
chain: "EOS" /* EosMainnet */,
|
|
954
|
+
network: "mainnet" /* Mainnet */,
|
|
955
|
+
precision: 4,
|
|
956
|
+
contract: void 0,
|
|
957
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
958
|
+
hasWithdrawMemo: true
|
|
959
|
+
}
|
|
960
|
+
] : [],
|
|
961
|
+
...IS_TESTNET ? [
|
|
962
|
+
{
|
|
963
|
+
wallet: "EOS",
|
|
964
|
+
symbol: "EOS",
|
|
965
|
+
chain: "EOS (Jungle Testnet)" /* EosTestnet */,
|
|
966
|
+
network: "testnet" /* Testnet */,
|
|
967
|
+
precision: 4,
|
|
968
|
+
contract: void 0,
|
|
969
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
970
|
+
hasWithdrawMemo: true
|
|
971
|
+
}
|
|
972
|
+
] : []
|
|
913
973
|
],
|
|
914
974
|
image: "https://www.proton.org/images/tokens/xtokensXEOS.png",
|
|
915
975
|
coingeckoId: "eos"
|
|
@@ -925,16 +985,18 @@ var initializeCoins = (protonChain) => {
|
|
|
925
985
|
xtokenPrecision: 6,
|
|
926
986
|
xtokenContract: "xtokens",
|
|
927
987
|
wallets: [
|
|
928
|
-
...IS_MAINNET ? [
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
988
|
+
...IS_MAINNET ? [
|
|
989
|
+
{
|
|
990
|
+
wallet: "DOGE",
|
|
991
|
+
symbol: "DOGE",
|
|
992
|
+
chain: "Dogecoin" /* DogeMainnet */,
|
|
993
|
+
network: "mainnet" /* Mainnet */,
|
|
994
|
+
precision: 8,
|
|
995
|
+
contract: void 0,
|
|
996
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
997
|
+
hasWithdrawMemo: false
|
|
998
|
+
}
|
|
999
|
+
] : []
|
|
938
1000
|
],
|
|
939
1001
|
image: "https://www.proton.org/images/tokens/xtokensXDOGE.png",
|
|
940
1002
|
coingeckoId: "dogecoin"
|
|
@@ -950,16 +1012,18 @@ var initializeCoins = (protonChain) => {
|
|
|
950
1012
|
xtokenPrecision: 6,
|
|
951
1013
|
xtokenContract: "xtokens",
|
|
952
1014
|
wallets: [
|
|
953
|
-
...IS_MAINNET ? [
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
1015
|
+
...IS_MAINNET ? [
|
|
1016
|
+
{
|
|
1017
|
+
wallet: "ADA",
|
|
1018
|
+
symbol: "ADA",
|
|
1019
|
+
chain: "Cardano" /* CardanoMainnet */,
|
|
1020
|
+
network: "mainnet" /* Mainnet */,
|
|
1021
|
+
precision: 6,
|
|
1022
|
+
contract: void 0,
|
|
1023
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1024
|
+
hasWithdrawMemo: false
|
|
1025
|
+
}
|
|
1026
|
+
] : []
|
|
963
1027
|
],
|
|
964
1028
|
image: "https://www.proton.org/images/tokens/xtokensXADA.png",
|
|
965
1029
|
coingeckoId: "cardano"
|
|
@@ -1001,16 +1065,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1001
1065
|
xtokenPrecision: 6,
|
|
1002
1066
|
xtokenContract: "xtokens",
|
|
1003
1067
|
wallets: [
|
|
1004
|
-
...IS_MAINNET ? [
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1068
|
+
...IS_MAINNET ? [
|
|
1069
|
+
{
|
|
1070
|
+
wallet: "UST",
|
|
1071
|
+
symbol: "UST",
|
|
1072
|
+
chain: "Terra" /* TerraMainnet */,
|
|
1073
|
+
network: "mainnet" /* Mainnet */,
|
|
1074
|
+
precision: 6,
|
|
1075
|
+
contract: void 0,
|
|
1076
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1077
|
+
hasWithdrawMemo: true
|
|
1078
|
+
}
|
|
1079
|
+
] : []
|
|
1014
1080
|
],
|
|
1015
1081
|
image: "https://www.proton.org/images/tokens/xtokensXUST.png",
|
|
1016
1082
|
coingeckoId: "terrausd"
|
|
@@ -1026,16 +1092,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1026
1092
|
xtokenPrecision: 6,
|
|
1027
1093
|
xtokenContract: "xtokens",
|
|
1028
1094
|
wallets: [
|
|
1029
|
-
...IS_MAINNET ? [
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1095
|
+
...IS_MAINNET ? [
|
|
1096
|
+
{
|
|
1097
|
+
wallet: "SOL",
|
|
1098
|
+
symbol: "SOL",
|
|
1099
|
+
chain: "Solana" /* SolanaMainnet */,
|
|
1100
|
+
network: "mainnet" /* Mainnet */,
|
|
1101
|
+
precision: 9,
|
|
1102
|
+
contract: void 0,
|
|
1103
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1104
|
+
hasWithdrawMemo: false
|
|
1105
|
+
}
|
|
1106
|
+
] : []
|
|
1039
1107
|
],
|
|
1040
1108
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png",
|
|
1041
1109
|
coingeckoId: "solana"
|
|
@@ -1051,16 +1119,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1051
1119
|
xtokenPrecision: 6,
|
|
1052
1120
|
xtokenContract: "xtokens",
|
|
1053
1121
|
wallets: [
|
|
1054
|
-
...IS_MAINNET ? [
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1122
|
+
...IS_MAINNET ? [
|
|
1123
|
+
{
|
|
1124
|
+
wallet: "XRP",
|
|
1125
|
+
symbol: "XRP",
|
|
1126
|
+
chain: "Ripple" /* RippleMainnet */,
|
|
1127
|
+
network: "mainnet" /* Mainnet */,
|
|
1128
|
+
precision: 6,
|
|
1129
|
+
contract: void 0,
|
|
1130
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1131
|
+
hasWithdrawMemo: true
|
|
1132
|
+
}
|
|
1133
|
+
] : []
|
|
1064
1134
|
],
|
|
1065
1135
|
image: "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png",
|
|
1066
1136
|
coingeckoId: "ripple"
|
|
@@ -1104,16 +1174,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1104
1174
|
xtokenPrecision: 8,
|
|
1105
1175
|
xtokenContract: "xtokens",
|
|
1106
1176
|
wallets: [
|
|
1107
|
-
...IS_MAINNET ? [
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1177
|
+
...IS_MAINNET ? [
|
|
1178
|
+
{
|
|
1179
|
+
wallet: "MATIC",
|
|
1180
|
+
symbol: "MATIC",
|
|
1181
|
+
chain: "Polygon" /* PolygonMainnet */,
|
|
1182
|
+
network: "mainnet" /* Mainnet */,
|
|
1183
|
+
precision: 18,
|
|
1184
|
+
contract: "0x0000000000000000000000000000000000000000",
|
|
1185
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1186
|
+
hasWithdrawMemo: false
|
|
1187
|
+
}
|
|
1188
|
+
] : []
|
|
1117
1189
|
],
|
|
1118
1190
|
image: "https://www.proton.org/images/tokens/xtokensXMATIC.png",
|
|
1119
1191
|
coingeckoId: "matic-network"
|
|
@@ -1143,16 +1215,18 @@ var initializeCoins = (protonChain) => {
|
|
|
1143
1215
|
xtokenPrecision: 6,
|
|
1144
1216
|
xtokenContract: "xtokens",
|
|
1145
1217
|
wallets: [
|
|
1146
|
-
...IS_TESTNET ? [
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1218
|
+
...IS_TESTNET ? [
|
|
1219
|
+
{
|
|
1220
|
+
wallet: "HBAR",
|
|
1221
|
+
symbol: "HBAR",
|
|
1222
|
+
chain: "Hedera (Testnet)" /* HederaTestnet */,
|
|
1223
|
+
network: "testnet" /* Testnet */,
|
|
1224
|
+
precision: 8,
|
|
1225
|
+
contract: void 0,
|
|
1226
|
+
provider: "fireblocks" /* FIREBLOCKS */,
|
|
1227
|
+
hasWithdrawMemo: true
|
|
1228
|
+
}
|
|
1229
|
+
] : []
|
|
1156
1230
|
],
|
|
1157
1231
|
image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
|
|
1158
1232
|
coingeckoId: "hedera-hashgraph"
|
|
@@ -1163,7 +1237,9 @@ var initializeCoins = (protonChain) => {
|
|
|
1163
1237
|
return new Set(chains).size !== chains.length;
|
|
1164
1238
|
});
|
|
1165
1239
|
if (walletWithDuplicateChains) {
|
|
1166
|
-
throw new Error(
|
|
1240
|
+
throw new Error(
|
|
1241
|
+
`Coin ${walletWithDuplicateChains.coin} has duplicate chains in wallet`
|
|
1242
|
+
);
|
|
1167
1243
|
}
|
|
1168
1244
|
return {
|
|
1169
1245
|
allCoins: coins,
|
|
@@ -1172,7 +1248,9 @@ var initializeCoins = (protonChain) => {
|
|
|
1172
1248
|
lendCoins: coins.filter((coin) => coin.allowLend),
|
|
1173
1249
|
borrowCoins: coins.filter((coin) => coin.allowBorrow),
|
|
1174
1250
|
loanCoins: coins.filter((coin) => coin.allowLend || coin.allowBorrow),
|
|
1175
|
-
allEnabledCoins: coins.filter(
|
|
1251
|
+
allEnabledCoins: coins.filter(
|
|
1252
|
+
(coin) => coin.allowSwap || coin.allowBridge || coin.xtokenSymbol === "XMD"
|
|
1253
|
+
)
|
|
1176
1254
|
};
|
|
1177
1255
|
};
|
|
1178
1256
|
|
|
@@ -1333,6 +1411,10 @@ var initializeConstants = (chain) => {
|
|
|
1333
1411
|
BORROW_COINS: borrowCoins,
|
|
1334
1412
|
LOAN_COINS: loanCoins,
|
|
1335
1413
|
ALL_COINS: allCoins,
|
|
1414
|
+
XMD_CONTRACT: "xmd.treasury",
|
|
1415
|
+
XMD_TOKEN_CONTRACT: "xmd.token",
|
|
1416
|
+
XMD_SYMBOL_CODE: "XMD",
|
|
1417
|
+
XMD_DECIMALS: 6,
|
|
1336
1418
|
findBridgeCoinWalletByXtokenAndChain(xtokenSymbol, chain2) {
|
|
1337
1419
|
const bridgeCoin = constants.BRIDGE_COINS.find((bridgeCoin2) => bridgeCoin2.xtokenSymbol === xtokenSymbol);
|
|
1338
1420
|
if (!bridgeCoin)
|