@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 CHANGED
@@ -46,6 +46,7 @@ export interface Coin {
46
46
  xtokenContract: string;
47
47
  wallets: Wallet[];
48
48
  image: string;
49
+ coingeckoId: string;
49
50
  balance?: Asset;
50
51
  }
51
52
  export interface Wallet {
@@ -5,6 +5,7 @@ export * from './base';
5
5
  export * from './currency';
6
6
  export * from './deposit';
7
7
  export * from './otc';
8
+ export * from './pool';
8
9
  export * from './withdraw';
9
10
  export * from './withdrawalHistory';
10
11
  export * from './wrap';
@@ -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
+ }
@@ -65,11 +65,18 @@ export declare const withdrawBodyParser: z.ZodObject<{
65
65
  actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
66
66
  account: z.ZodString | z.ZodLiteral<string>;
67
67
  name: z.ZodLiteral<string>;
68
- data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
68
+ data: z.ZodObject<{
69
+ from: z.ZodString;
70
+ to: z.ZodLiteral<"proton.wrap">;
71
+ quantity: z.ZodString;
72
+ memo: z.ZodString;
73
+ }, {
69
74
  strict: true;
70
75
  }, {
71
- [x: string]: any;
72
- [x: number]: any;
76
+ from: string;
77
+ to: "proton.wrap";
78
+ quantity: string;
79
+ memo: string;
73
80
  }>;
74
81
  authorization: z.ZodArray<z.ZodObject<{
75
82
  actor: z.ZodString;
@@ -86,8 +93,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
86
93
  account: string;
87
94
  name: string;
88
95
  data: {
89
- [x: string]: any;
90
- [x: number]: any;
96
+ from: string;
97
+ to: "proton.wrap";
98
+ quantity: string;
99
+ memo: string;
91
100
  };
92
101
  authorization: {
93
102
  actor: string;
@@ -154,11 +163,18 @@ export declare const withdrawBodyParser: z.ZodObject<{
154
163
  actions: z.ZodArray<z.ZodObject<{
155
164
  account: z.ZodString | z.ZodLiteral<string>;
156
165
  name: z.ZodLiteral<string>;
157
- data: z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
166
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<{
167
+ from: z.ZodString;
168
+ to: z.ZodLiteral<"proton.wrap">;
169
+ quantity: z.ZodString;
170
+ memo: z.ZodString;
171
+ }, {
158
172
  strict: true;
159
173
  }, {
160
- [x: string]: any;
161
- [x: number]: any;
174
+ from: string;
175
+ to: "proton.wrap";
176
+ quantity: string;
177
+ memo: string;
162
178
  }>]>;
163
179
  authorization: z.ZodArray<z.ZodObject<{
164
180
  actor: z.ZodString;
@@ -175,8 +191,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
175
191
  account: string;
176
192
  name: string;
177
193
  data: string | {
178
- [x: string]: any;
179
- [x: number]: any;
194
+ from: string;
195
+ to: "proton.wrap";
196
+ quantity: string;
197
+ memo: string;
180
198
  };
181
199
  authorization: {
182
200
  actor: string;
@@ -200,8 +218,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
200
218
  account: string;
201
219
  name: string;
202
220
  data: string | {
203
- [x: string]: any;
204
- [x: number]: any;
221
+ from: string;
222
+ to: "proton.wrap";
223
+ quantity: string;
224
+ memo: string;
205
225
  };
206
226
  authorization: {
207
227
  actor: string;
@@ -244,8 +264,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
244
264
  account: string;
245
265
  name: string;
246
266
  data: string | {
247
- [x: string]: any;
248
- [x: number]: any;
267
+ from: string;
268
+ to: "proton.wrap";
269
+ quantity: string;
270
+ memo: string;
249
271
  };
250
272
  authorization: {
251
273
  actor: string;
@@ -301,8 +323,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
301
323
  account: string;
302
324
  name: string;
303
325
  data: string | {
304
- [x: string]: any;
305
- [x: number]: any;
326
+ from: string;
327
+ to: "proton.wrap";
328
+ quantity: string;
329
+ memo: string;
306
330
  };
307
331
  authorization: {
308
332
  actor: string;
@@ -333,8 +357,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
333
357
  account: string;
334
358
  name: string;
335
359
  data: {
336
- [x: string]: any;
337
- [x: number]: any;
360
+ from: string;
361
+ to: "proton.wrap";
362
+ quantity: string;
363
+ memo: string;
338
364
  };
339
365
  authorization: {
340
366
  actor: string;
@@ -376,8 +402,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
376
402
  account: string;
377
403
  name: string;
378
404
  data: string | {
379
- [x: string]: any;
380
- [x: number]: any;
405
+ from: string;
406
+ to: "proton.wrap";
407
+ quantity: string;
408
+ memo: string;
381
409
  };
382
410
  authorization: {
383
411
  actor: string;
@@ -416,8 +444,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
416
444
  account: string;
417
445
  name: string;
418
446
  data: {
419
- [x: string]: any;
420
- [x: number]: any;
447
+ from: string;
448
+ to: "proton.wrap";
449
+ quantity: string;
450
+ memo: string;
421
451
  };
422
452
  authorization: {
423
453
  actor: string;
@@ -459,8 +489,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
459
489
  account: string;
460
490
  name: string;
461
491
  data: string | {
462
- [x: string]: any;
463
- [x: number]: any;
492
+ from: string;
493
+ to: "proton.wrap";
494
+ quantity: string;
495
+ memo: string;
464
496
  };
465
497
  authorization: {
466
498
  actor: string;
@@ -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,21 @@ 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'
242
+ }, {
243
+ allowSwap: IS_MAINNET,
244
+ allowBridge: false,
245
+ allowLend: false,
246
+ allowBorrow: true,
247
+ name: 'Proton Loan',
248
+ coin: 'LOAN',
249
+ xtokenSymbol: 'LOAN',
250
+ xtokenPrecision: 4,
251
+ xtokenContract: 'loan.token',
252
+ wallets: [],
253
+ image: '/img/tokens/loan.png',
254
+ coingeckoId: ''
237
255
  }, {
238
256
  allowSwap: IS_MAINNET,
239
257
  allowBridge: true,
@@ -261,7 +279,8 @@ var initializeCoins = function initializeCoins(protonChain) {
261
279
  contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
262
280
  hasWithdrawMemo: false
263
281
  }] : []),
264
- image: '/img/tokens/xusdt.png'
282
+ image: '/img/tokens/xusdt.png',
283
+ coingeckoId: 'tether'
265
284
  }, {
266
285
  allowSwap: false,
267
286
  allowBridge: IS_MAINNET,
@@ -281,7 +300,8 @@ var initializeCoins = function initializeCoins(protonChain) {
281
300
  contract: '0x0000000000085D4780B73119B644AE5ECD22B376',
282
301
  hasWithdrawMemo: false
283
302
  }] : []),
284
- image: '/img/tokens/xtusd.png'
303
+ image: '/img/tokens/xtusd.png',
304
+ coingeckoId: 'true-usd'
285
305
  }, {
286
306
  allowSwap: false,
287
307
  allowBridge: IS_MAINNET,
@@ -301,7 +321,8 @@ var initializeCoins = function initializeCoins(protonChain) {
301
321
  contract: '0x8E870D67F660D95D5BE530380D0EC0BD388289E1',
302
322
  hasWithdrawMemo: false
303
323
  }] : []),
304
- image: '/img/tokens/xpax.png'
324
+ image: '/img/tokens/xpax.png',
325
+ coingeckoId: 'usdp'
305
326
  }, {
306
327
  allowSwap: false,
307
328
  allowBridge: true,
@@ -329,7 +350,8 @@ var initializeCoins = function initializeCoins(protonChain) {
329
350
  contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
330
351
  hasWithdrawMemo: false
331
352
  }] : []),
332
- image: '/img/tokens/xpaxg.png'
353
+ image: '/img/tokens/xpaxg.png',
354
+ coingeckoId: 'pax-gold'
333
355
  }, {
334
356
  allowSwap: IS_MAINNET,
335
357
  allowBridge: true,
@@ -357,7 +379,8 @@ var initializeCoins = function initializeCoins(protonChain) {
357
379
  contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
358
380
  hasWithdrawMemo: false
359
381
  }] : []),
360
- image: '/img/tokens/xuni.png'
382
+ image: '/img/tokens/xuni.png',
383
+ coingeckoId: 'uniswap'
361
384
  }, {
362
385
  allowSwap: false,
363
386
  allowBridge: false,
@@ -377,7 +400,8 @@ var initializeCoins = function initializeCoins(protonChain) {
377
400
  contract: '0x111111111117DC0AA78B770FA6A738034120C302',
378
401
  hasWithdrawMemo: false
379
402
  }] : []),
380
- image: '/img/tokens/xinch.png'
403
+ image: '/img/tokens/xinch.png',
404
+ coingeckoId: '1inch'
381
405
  }, {
382
406
  allowSwap: false,
383
407
  allowBridge: false,
@@ -397,7 +421,8 @@ var initializeCoins = function initializeCoins(protonChain) {
397
421
  contract: '0x514910771AF9CA656AF840DFF83E8264ECF986CA',
398
422
  hasWithdrawMemo: false
399
423
  }] : []),
400
- image: '/img/tokens/xlink.png'
424
+ image: '/img/tokens/xlink.png',
425
+ coingeckoId: 'chainlink'
401
426
  }, {
402
427
  allowSwap: IS_MAINNET,
403
428
  allowBridge: true,
@@ -425,7 +450,8 @@ var initializeCoins = function initializeCoins(protonChain) {
425
450
  contract: undefined,
426
451
  hasWithdrawMemo: false
427
452
  }] : []),
428
- image: '/img/tokens/xltc.png'
453
+ image: '/img/tokens/xltc.png',
454
+ coingeckoId: 'litecoin'
429
455
  }, {
430
456
  allowSwap: IS_MAINNET,
431
457
  allowBridge: true,
@@ -453,7 +479,8 @@ var initializeCoins = function initializeCoins(protonChain) {
453
479
  contract: undefined,
454
480
  hasWithdrawMemo: false
455
481
  }] : []),
456
- image: '/img/tokens/xbch.png'
482
+ image: '/img/tokens/xbch.png',
483
+ coingeckoId: 'bitcoin-cash'
457
484
  }, {
458
485
  allowSwap: false,
459
486
  allowBridge: false,
@@ -481,7 +508,8 @@ var initializeCoins = function initializeCoins(protonChain) {
481
508
  contract: undefined,
482
509
  hasWithdrawMemo: true
483
510
  }] : []),
484
- image: '/img/tokens/xxlm.png'
511
+ image: '/img/tokens/xxlm.png',
512
+ coingeckoId: 'stellar'
485
513
  }, {
486
514
  allowSwap: IS_MAINNET,
487
515
  allowBridge: false,
@@ -493,7 +521,8 @@ var initializeCoins = function initializeCoins(protonChain) {
493
521
  xtokenPrecision: 4,
494
522
  xtokenContract: 'sense',
495
523
  wallets: [],
496
- image: '/img/tokens/xsense.png'
524
+ image: '/img/tokens/xsense.png',
525
+ coingeckoId: 'sense'
497
526
  }, {
498
527
  allowSwap: false,
499
528
  allowBridge: false,
@@ -513,7 +542,8 @@ var initializeCoins = function initializeCoins(protonChain) {
513
542
  contract: undefined,
514
543
  hasWithdrawMemo: false
515
544
  }] : []),
516
- image: '/img/tokens/xdot.png'
545
+ image: '/img/tokens/xdot.png',
546
+ coingeckoId: 'polkadot'
517
547
  }, {
518
548
  allowSwap: true,
519
549
  allowBridge: IS_MAINNET,
@@ -533,7 +563,8 @@ var initializeCoins = function initializeCoins(protonChain) {
533
563
  contract: undefined,
534
564
  hasWithdrawMemo: false
535
565
  }] : []),
536
- image: '/img/tokens/xbnb.png'
566
+ image: '/img/tokens/xbnb.png',
567
+ coingeckoId: 'binancecoin'
537
568
  }, {
538
569
  allowSwap: true,
539
570
  allowBridge: true,
@@ -561,32 +592,12 @@ var initializeCoins = function initializeCoins(protonChain) {
561
592
  contract: undefined,
562
593
  hasWithdrawMemo: true
563
594
  }] : []),
564
- image: '/img/tokens/xeos.png'
595
+ image: '/img/tokens/xeos.png',
596
+ coingeckoId: 'eos'
565
597
  }, {
566
- allowSwap: false,
567
- allowBridge: IS_TESTNET,
568
- allowLend: false,
569
- allowBorrow: false,
570
- name: 'HBAR',
571
- coin: 'HBAR',
572
- xtokenSymbol: 'XHBAR',
573
- xtokenPrecision: 6,
574
- xtokenContract: 'xtokens',
575
- wallets: [].concat(IS_TESTNET ? [{
576
- wallet: 'HBAR',
577
- symbol: 'HBAR',
578
- chain: exports.Chains.HederaTestnet,
579
- network: exports.Networks.Testnet,
580
- precision: 8,
581
- contract: undefined,
582
- hasWithdrawMemo: false
583
- }] : []),
584
- image: '/img/tokens/xhbar.png'
585
- }, // Synthethic
586
- {
587
598
  allowSwap: IS_MAINNET,
588
599
  allowBridge: IS_MAINNET,
589
- allowLend: false,
600
+ allowLend: true,
590
601
  allowBorrow: false,
591
602
  name: 'Dogecoin',
592
603
  coin: 'DOGE',
@@ -602,7 +613,8 @@ var initializeCoins = function initializeCoins(protonChain) {
602
613
  contract: undefined,
603
614
  hasWithdrawMemo: false
604
615
  }] : []),
605
- image: '/img/tokens/xdoge.png'
616
+ image: '/img/tokens/xdoge.png',
617
+ coingeckoId: 'dogecoin'
606
618
  }, {
607
619
  allowSwap: IS_MAINNET,
608
620
  allowBridge: IS_MAINNET,
@@ -622,7 +634,30 @@ var initializeCoins = function initializeCoins(protonChain) {
622
634
  contract: undefined,
623
635
  hasWithdrawMemo: false
624
636
  }] : []),
625
- image: '/img/tokens/xada.png'
637
+ image: '/img/tokens/xada.png',
638
+ coingeckoId: 'cardano'
639
+ }, // Synthethic
640
+ {
641
+ allowSwap: false,
642
+ allowBridge: IS_TESTNET,
643
+ allowLend: false,
644
+ allowBorrow: false,
645
+ name: 'HBAR',
646
+ coin: 'HBAR',
647
+ xtokenSymbol: 'XHBAR',
648
+ xtokenPrecision: 6,
649
+ xtokenContract: 'xtokens',
650
+ wallets: [].concat(IS_TESTNET ? [{
651
+ wallet: 'HBAR',
652
+ symbol: 'HBAR',
653
+ chain: exports.Chains.HederaTestnet,
654
+ network: exports.Networks.Testnet,
655
+ precision: 8,
656
+ contract: undefined,
657
+ hasWithdrawMemo: false
658
+ }] : []),
659
+ image: '/img/tokens/xhbar.png',
660
+ coingeckoId: 'hedera-hashgraph'
626
661
  }, {
627
662
  allowSwap: false,
628
663
  allowBridge: false,
@@ -634,7 +669,8 @@ var initializeCoins = function initializeCoins(protonChain) {
634
669
  xtokenPrecision: 6,
635
670
  xtokenContract: 'xtokens',
636
671
  wallets: [],
637
- image: '/img/tokens/xtheta.png'
672
+ image: '/img/tokens/xtheta.png',
673
+ coingeckoId: 'theta-token'
638
674
  }, {
639
675
  allowSwap: false,
640
676
  allowBridge: false,
@@ -646,7 +682,8 @@ var initializeCoins = function initializeCoins(protonChain) {
646
682
  xtokenPrecision: 6,
647
683
  xtokenContract: 'xtokens',
648
684
  wallets: [],
649
- image: '/img/tokens/xfil.png'
685
+ image: '/img/tokens/xfil.png',
686
+ coingeckoId: 'filecoin'
650
687
  }, {
651
688
  allowSwap: false,
652
689
  allowBridge: false,
@@ -658,7 +695,8 @@ var initializeCoins = function initializeCoins(protonChain) {
658
695
  xtokenPrecision: 6,
659
696
  xtokenContract: 'xtokens',
660
697
  wallets: [],
661
- image: '/img/tokens/xtrx.png'
698
+ image: '/img/tokens/xtrx.png',
699
+ coingeckoId: 'tron'
662
700
  }]; // Validation
663
701
 
664
702
  var walletWithDuplicateChains = coins.find(function (coin) {