@proton/wrap-constants 0.0.35 → 0.0.36
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/withdraw.d.ts +56 -24
- package/dist/wrap-constants.cjs.development.js +50 -25
- 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 +50 -25
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +51 -25
package/dist/coins.d.ts
CHANGED
|
@@ -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<
|
|
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
|
-
|
|
72
|
-
|
|
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
|
-
|
|
90
|
-
|
|
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<
|
|
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
|
-
|
|
161
|
-
|
|
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
|
-
|
|
179
|
-
|
|
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
|
-
|
|
204
|
-
|
|
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
|
-
|
|
248
|
-
|
|
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
|
-
|
|
305
|
-
|
|
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
|
-
|
|
337
|
-
|
|
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
|
-
|
|
380
|
-
|
|
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
|
-
|
|
420
|
-
|
|
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
|
-
|
|
463
|
-
|
|
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,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) {
|