@proton/wrap-constants 0.0.33 → 0.0.37

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.
@@ -113,7 +113,8 @@ var initializeCoins = function initializeCoins(protonChain) {
113
113
  contract: '0x5DE3939B2F811A61D830E6F52D13B066881412AB',
114
114
  hasWithdrawMemo: false
115
115
  }] : []),
116
- image: '/img/tokens/xpr.png'
116
+ image: '/img/tokens/xpr.png',
117
+ coingeckoId: 'proton'
117
118
  }, {
118
119
  allowSwap: true,
119
120
  allowBridge: true,
@@ -157,7 +158,8 @@ var initializeCoins = function initializeCoins(protonChain) {
157
158
  contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
158
159
  hasWithdrawMemo: false
159
160
  }] : []),
160
- image: '/img/tokens/xusdc.png'
161
+ image: '/img/tokens/xusdc.png',
162
+ coingeckoId: 'usd-coin'
161
163
  }, {
162
164
  allowSwap: true,
163
165
  allowBridge: IS_MAINNET,
@@ -177,7 +179,8 @@ var initializeCoins = function initializeCoins(protonChain) {
177
179
  contract: '0xF433089366899D83A9F26A773D59EC7ECF30355E',
178
180
  hasWithdrawMemo: false
179
181
  }] : []),
180
- image: '/img/tokens/xmt.png'
182
+ image: '/img/tokens/xmt.png',
183
+ coingeckoId: 'metal'
181
184
  }, {
182
185
  allowSwap: true,
183
186
  allowBridge: true,
@@ -205,7 +208,8 @@ var initializeCoins = function initializeCoins(protonChain) {
205
208
  contract: undefined,
206
209
  hasWithdrawMemo: false
207
210
  }] : []),
208
- image: '/img/tokens/xbtc.png'
211
+ image: '/img/tokens/xbtc.png',
212
+ coingeckoId: 'bitcoin'
209
213
  }, {
210
214
  allowSwap: true,
211
215
  allowBridge: true,
@@ -233,7 +237,8 @@ var initializeCoins = function initializeCoins(protonChain) {
233
237
  contract: '0x0000000000000000000000000000000000000000',
234
238
  hasWithdrawMemo: false
235
239
  }] : []),
236
- image: '/img/tokens/xeth.png'
240
+ image: '/img/tokens/xeth.png',
241
+ coingeckoId: 'ethereum'
237
242
  }, {
238
243
  allowSwap: IS_MAINNET,
239
244
  allowBridge: true,
@@ -261,7 +266,8 @@ var initializeCoins = function initializeCoins(protonChain) {
261
266
  contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
262
267
  hasWithdrawMemo: false
263
268
  }] : []),
264
- image: '/img/tokens/xusdt.png'
269
+ image: '/img/tokens/xusdt.png',
270
+ coingeckoId: 'tether'
265
271
  }, {
266
272
  allowSwap: false,
267
273
  allowBridge: IS_MAINNET,
@@ -281,7 +287,8 @@ var initializeCoins = function initializeCoins(protonChain) {
281
287
  contract: '0x0000000000085D4780B73119B644AE5ECD22B376',
282
288
  hasWithdrawMemo: false
283
289
  }] : []),
284
- image: '/img/tokens/xtusd.png'
290
+ image: '/img/tokens/xtusd.png',
291
+ coingeckoId: 'true-usd'
285
292
  }, {
286
293
  allowSwap: false,
287
294
  allowBridge: IS_MAINNET,
@@ -301,7 +308,8 @@ var initializeCoins = function initializeCoins(protonChain) {
301
308
  contract: '0x8E870D67F660D95D5BE530380D0EC0BD388289E1',
302
309
  hasWithdrawMemo: false
303
310
  }] : []),
304
- image: '/img/tokens/xpax.png'
311
+ image: '/img/tokens/xpax.png',
312
+ coingeckoId: 'usdp'
305
313
  }, {
306
314
  allowSwap: false,
307
315
  allowBridge: true,
@@ -329,7 +337,8 @@ var initializeCoins = function initializeCoins(protonChain) {
329
337
  contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
330
338
  hasWithdrawMemo: false
331
339
  }] : []),
332
- image: '/img/tokens/xpaxg.png'
340
+ image: '/img/tokens/xpaxg.png',
341
+ coingeckoId: 'pax-gold'
333
342
  }, {
334
343
  allowSwap: IS_MAINNET,
335
344
  allowBridge: true,
@@ -357,7 +366,8 @@ var initializeCoins = function initializeCoins(protonChain) {
357
366
  contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
358
367
  hasWithdrawMemo: false
359
368
  }] : []),
360
- image: '/img/tokens/xuni.png'
369
+ image: '/img/tokens/xuni.png',
370
+ coingeckoId: 'uniswap'
361
371
  }, {
362
372
  allowSwap: false,
363
373
  allowBridge: false,
@@ -377,7 +387,8 @@ var initializeCoins = function initializeCoins(protonChain) {
377
387
  contract: '0x111111111117DC0AA78B770FA6A738034120C302',
378
388
  hasWithdrawMemo: false
379
389
  }] : []),
380
- image: '/img/tokens/xinch.png'
390
+ image: '/img/tokens/xinch.png',
391
+ coingeckoId: '1inch'
381
392
  }, {
382
393
  allowSwap: false,
383
394
  allowBridge: false,
@@ -397,7 +408,8 @@ var initializeCoins = function initializeCoins(protonChain) {
397
408
  contract: '0x514910771AF9CA656AF840DFF83E8264ECF986CA',
398
409
  hasWithdrawMemo: false
399
410
  }] : []),
400
- image: '/img/tokens/xlink.png'
411
+ image: '/img/tokens/xlink.png',
412
+ coingeckoId: 'chainlink'
401
413
  }, {
402
414
  allowSwap: IS_MAINNET,
403
415
  allowBridge: true,
@@ -425,7 +437,8 @@ var initializeCoins = function initializeCoins(protonChain) {
425
437
  contract: undefined,
426
438
  hasWithdrawMemo: false
427
439
  }] : []),
428
- image: '/img/tokens/xltc.png'
440
+ image: '/img/tokens/xltc.png',
441
+ coingeckoId: 'litecoin'
429
442
  }, {
430
443
  allowSwap: IS_MAINNET,
431
444
  allowBridge: true,
@@ -453,7 +466,8 @@ var initializeCoins = function initializeCoins(protonChain) {
453
466
  contract: undefined,
454
467
  hasWithdrawMemo: false
455
468
  }] : []),
456
- image: '/img/tokens/xbch.png'
469
+ image: '/img/tokens/xbch.png',
470
+ coingeckoId: 'bitcoin-cash'
457
471
  }, {
458
472
  allowSwap: false,
459
473
  allowBridge: false,
@@ -481,7 +495,8 @@ var initializeCoins = function initializeCoins(protonChain) {
481
495
  contract: undefined,
482
496
  hasWithdrawMemo: true
483
497
  }] : []),
484
- image: '/img/tokens/xxlm.png'
498
+ image: '/img/tokens/xxlm.png',
499
+ coingeckoId: 'stellar'
485
500
  }, {
486
501
  allowSwap: IS_MAINNET,
487
502
  allowBridge: false,
@@ -493,7 +508,8 @@ var initializeCoins = function initializeCoins(protonChain) {
493
508
  xtokenPrecision: 4,
494
509
  xtokenContract: 'sense',
495
510
  wallets: [],
496
- image: '/img/tokens/xsense.png'
511
+ image: '/img/tokens/xsense.png',
512
+ coingeckoId: 'sense'
497
513
  }, {
498
514
  allowSwap: false,
499
515
  allowBridge: false,
@@ -513,7 +529,8 @@ var initializeCoins = function initializeCoins(protonChain) {
513
529
  contract: undefined,
514
530
  hasWithdrawMemo: false
515
531
  }] : []),
516
- image: '/img/tokens/xdot.png'
532
+ image: '/img/tokens/xdot.png',
533
+ coingeckoId: 'polkadot'
517
534
  }, {
518
535
  allowSwap: true,
519
536
  allowBridge: IS_MAINNET,
@@ -533,7 +550,8 @@ var initializeCoins = function initializeCoins(protonChain) {
533
550
  contract: undefined,
534
551
  hasWithdrawMemo: false
535
552
  }] : []),
536
- image: '/img/tokens/xbnb.png'
553
+ image: '/img/tokens/xbnb.png',
554
+ coingeckoId: 'binancecoin'
537
555
  }, {
538
556
  allowSwap: true,
539
557
  allowBridge: true,
@@ -561,7 +579,8 @@ var initializeCoins = function initializeCoins(protonChain) {
561
579
  contract: undefined,
562
580
  hasWithdrawMemo: true
563
581
  }] : []),
564
- image: '/img/tokens/xeos.png'
582
+ image: '/img/tokens/xeos.png',
583
+ coingeckoId: 'eos'
565
584
  }, {
566
585
  allowSwap: false,
567
586
  allowBridge: IS_TESTNET,
@@ -581,7 +600,8 @@ var initializeCoins = function initializeCoins(protonChain) {
581
600
  contract: undefined,
582
601
  hasWithdrawMemo: false
583
602
  }] : []),
584
- image: '/img/tokens/xhbar.png'
603
+ image: '/img/tokens/xhbar.png',
604
+ coingeckoId: 'hedera-hashgraph'
585
605
  }, // Synthethic
586
606
  {
587
607
  allowSwap: IS_MAINNET,
@@ -602,7 +622,8 @@ var initializeCoins = function initializeCoins(protonChain) {
602
622
  contract: undefined,
603
623
  hasWithdrawMemo: false
604
624
  }] : []),
605
- image: '/img/tokens/xdoge.png'
625
+ image: '/img/tokens/xdoge.png',
626
+ coingeckoId: 'dogecoin'
606
627
  }, {
607
628
  allowSwap: IS_MAINNET,
608
629
  allowBridge: IS_MAINNET,
@@ -622,7 +643,8 @@ var initializeCoins = function initializeCoins(protonChain) {
622
643
  contract: undefined,
623
644
  hasWithdrawMemo: false
624
645
  }] : []),
625
- image: '/img/tokens/xada.png'
646
+ image: '/img/tokens/xada.png',
647
+ coingeckoId: 'cardano'
626
648
  }, {
627
649
  allowSwap: false,
628
650
  allowBridge: false,
@@ -634,7 +656,8 @@ var initializeCoins = function initializeCoins(protonChain) {
634
656
  xtokenPrecision: 6,
635
657
  xtokenContract: 'xtokens',
636
658
  wallets: [],
637
- image: '/img/tokens/xtheta.png'
659
+ image: '/img/tokens/xtheta.png',
660
+ coingeckoId: 'theta-token'
638
661
  }, {
639
662
  allowSwap: false,
640
663
  allowBridge: false,
@@ -646,7 +669,8 @@ var initializeCoins = function initializeCoins(protonChain) {
646
669
  xtokenPrecision: 6,
647
670
  xtokenContract: 'xtokens',
648
671
  wallets: [],
649
- image: '/img/tokens/xfil.png'
672
+ image: '/img/tokens/xfil.png',
673
+ coingeckoId: 'filecoin'
650
674
  }, {
651
675
  allowSwap: false,
652
676
  allowBridge: false,
@@ -658,7 +682,8 @@ var initializeCoins = function initializeCoins(protonChain) {
658
682
  xtokenPrecision: 6,
659
683
  xtokenContract: 'xtokens',
660
684
  wallets: [],
661
- image: '/img/tokens/xtrx.png'
685
+ image: '/img/tokens/xtrx.png',
686
+ coingeckoId: 'tron'
662
687
  }]; // Validation
663
688
 
664
689
  var walletWithDuplicateChains = coins.find(function (coin) {
@@ -716,15 +741,19 @@ var rawTransactionParser = /*#__PURE__*/z.object({
716
741
  context_free_actions: /*#__PURE__*/z.array( /*#__PURE__*/z.any()),
717
742
  transaction_extensions: /*#__PURE__*/z.array( /*#__PURE__*/z.any())
718
743
  });
719
- var baseActionParser = function baseActionParser(contract, action, data, isSerialized) {
720
- if (isSerialized === void 0) {
721
- isSerialized = false;
722
- }
723
-
744
+ var baseActionParser = function baseActionParser(contract, action, data) {
745
+ return z.object({
746
+ account: contract === '*' ? accountParser : z.literal(contract),
747
+ name: z.literal(action),
748
+ data: z.object(data),
749
+ authorization: authorizationsParser
750
+ });
751
+ };
752
+ var baseActionSerializedParser = function baseActionSerializedParser(contract, action, data) {
724
753
  return z.object({
725
754
  account: contract === '*' ? accountParser : z.literal(contract),
726
755
  name: z.literal(action),
727
- data: isSerialized ? z.string().or(z.object(data)) : z.object(data),
756
+ data: z.string().or(z.object(data)),
728
757
  authorization: authorizationsParser
729
758
  });
730
759
  };
@@ -750,7 +779,7 @@ var webauthActionParser = function webauthActionParser(contract, action, data) {
750
779
  signature: z.string()
751
780
  }),
752
781
  trx: rawTransactionParser.merge(z.object({
753
- actions: z.array(baseActionParser(contract, action, data, true)).length(1)
782
+ actions: z.array(baseActionSerializedParser(contract, action, data)).length(1)
754
783
  }))
755
784
  }),
756
785
  authorization: authorizationsParser
@@ -1060,6 +1089,7 @@ exports.addressParser = addressParser;
1060
1089
  exports.authorizationParser = authorizationParser;
1061
1090
  exports.authorizationsParser = authorizationsParser;
1062
1091
  exports.baseActionParser = baseActionParser;
1092
+ exports.baseActionSerializedParser = baseActionSerializedParser;
1063
1093
  exports.createAbstractAuthParser = createAbstractAuthParser;
1064
1094
  exports.depositBodyParser = depositBodyParser;
1065
1095
  exports.exchangeRateParser = exchangeRateParser;