@proton/wrap-constants 0.0.34 → 0.0.38
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/actions.d.ts +365 -107
- package/dist/parsers/address.d.ts +5 -15
- package/dist/parsers/auth.d.ts +19 -41
- package/dist/parsers/index.d.ts +1 -0
- package/dist/parsers/pool.d.ts +21 -0
- package/dist/parsers/withdraw.d.ts +73 -47
- 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/src/parsers/actions.ts +4 -4
- package/src/parsers/index.ts +1 -0
- package/src/parsers/pool.ts +21 -0
|
@@ -47,12 +47,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
47
47
|
}, {
|
|
48
48
|
[x: string]: any;
|
|
49
49
|
[x: number]: any;
|
|
50
|
-
}
|
|
51
|
-
strict: true;
|
|
52
|
-
}, {
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
[x: number]: any;
|
|
55
|
-
}>]>;
|
|
50
|
+
}>;
|
|
56
51
|
authorization: z.ZodArray<z.ZodObject<{
|
|
57
52
|
actor: z.ZodString;
|
|
58
53
|
permission: z.ZodString;
|
|
@@ -67,7 +62,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
67
62
|
}, {
|
|
68
63
|
account: string;
|
|
69
64
|
name: string;
|
|
70
|
-
data:
|
|
65
|
+
data: {
|
|
71
66
|
[x: string]: any;
|
|
72
67
|
[x: number]: any;
|
|
73
68
|
};
|
|
@@ -136,12 +131,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
136
131
|
actions: z.ZodArray<z.ZodObject<{
|
|
137
132
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
138
133
|
name: z.ZodLiteral<string>;
|
|
139
|
-
data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
140
|
-
strict: true;
|
|
141
|
-
}, {
|
|
142
|
-
[x: string]: any;
|
|
143
|
-
[x: number]: any;
|
|
144
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
134
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
145
135
|
strict: true;
|
|
146
136
|
}, {
|
|
147
137
|
[x: string]: any;
|
|
@@ -319,7 +309,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
319
309
|
actions: ({
|
|
320
310
|
account: string;
|
|
321
311
|
name: string;
|
|
322
|
-
data:
|
|
312
|
+
data: {
|
|
323
313
|
[x: string]: any;
|
|
324
314
|
[x: number]: any;
|
|
325
315
|
};
|
|
@@ -401,7 +391,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
401
391
|
actions: ({
|
|
402
392
|
account: string;
|
|
403
393
|
name: string;
|
|
404
|
-
data:
|
|
394
|
+
data: {
|
|
405
395
|
[x: string]: any;
|
|
406
396
|
[x: number]: any;
|
|
407
397
|
};
|
package/dist/parsers/auth.d.ts
CHANGED
|
@@ -29,12 +29,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
29
29
|
}, {
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
[x: number]: any;
|
|
32
|
-
}
|
|
33
|
-
strict: true;
|
|
34
|
-
}, {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
[x: number]: any;
|
|
37
|
-
}>]>;
|
|
32
|
+
}>;
|
|
38
33
|
authorization: z.ZodArray<z.ZodObject<{
|
|
39
34
|
actor: z.ZodString;
|
|
40
35
|
permission: z.ZodString;
|
|
@@ -49,7 +44,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
49
44
|
}, {
|
|
50
45
|
account: string;
|
|
51
46
|
name: string;
|
|
52
|
-
data:
|
|
47
|
+
data: {
|
|
53
48
|
[x: string]: any;
|
|
54
49
|
[x: number]: any;
|
|
55
50
|
};
|
|
@@ -118,12 +113,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
118
113
|
actions: z.ZodArray<z.ZodObject<{
|
|
119
114
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
120
115
|
name: z.ZodLiteral<string>;
|
|
121
|
-
data: z.ZodObject<ZodRawShape, {
|
|
122
|
-
strict: true;
|
|
123
|
-
}, {
|
|
124
|
-
[x: string]: any;
|
|
125
|
-
[x: number]: any;
|
|
126
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
116
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
127
117
|
strict: true;
|
|
128
118
|
}, {
|
|
129
119
|
[x: string]: any;
|
|
@@ -301,7 +291,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
301
291
|
actions: ({
|
|
302
292
|
account: string;
|
|
303
293
|
name: string;
|
|
304
|
-
data:
|
|
294
|
+
data: {
|
|
305
295
|
[x: string]: any;
|
|
306
296
|
[x: number]: any;
|
|
307
297
|
};
|
|
@@ -381,7 +371,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
381
371
|
actions: ({
|
|
382
372
|
account: string;
|
|
383
373
|
name: string;
|
|
384
|
-
data:
|
|
374
|
+
data: {
|
|
385
375
|
[x: string]: any;
|
|
386
376
|
[x: number]: any;
|
|
387
377
|
};
|
|
@@ -445,17 +435,15 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
445
435
|
declare const generateAuthActionsBaseParser: z.ZodObject<{
|
|
446
436
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
447
437
|
name: z.ZodLiteral<string>;
|
|
448
|
-
data: z.ZodObject<
|
|
449
|
-
|
|
438
|
+
data: z.ZodObject<{
|
|
439
|
+
time: z.ZodString;
|
|
440
|
+
protonAccount: z.ZodString;
|
|
450
441
|
}, {
|
|
451
|
-
[x: string]: any;
|
|
452
|
-
[x: number]: any;
|
|
453
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
454
442
|
strict: true;
|
|
455
443
|
}, {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
444
|
+
time: string;
|
|
445
|
+
protonAccount: string;
|
|
446
|
+
}>;
|
|
459
447
|
authorization: z.ZodArray<z.ZodObject<{
|
|
460
448
|
actor: z.ZodString;
|
|
461
449
|
permission: z.ZodString;
|
|
@@ -470,9 +458,9 @@ declare const generateAuthActionsBaseParser: z.ZodObject<{
|
|
|
470
458
|
}, {
|
|
471
459
|
account: string;
|
|
472
460
|
name: string;
|
|
473
|
-
data:
|
|
474
|
-
|
|
475
|
-
|
|
461
|
+
data: {
|
|
462
|
+
time: string;
|
|
463
|
+
protonAccount: string;
|
|
476
464
|
};
|
|
477
465
|
authorization: {
|
|
478
466
|
actor: string;
|
|
@@ -509,12 +497,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
509
497
|
}, {
|
|
510
498
|
[x: string]: any;
|
|
511
499
|
[x: number]: any;
|
|
512
|
-
}
|
|
513
|
-
strict: true;
|
|
514
|
-
}, {
|
|
515
|
-
[x: string]: any;
|
|
516
|
-
[x: number]: any;
|
|
517
|
-
}>]>;
|
|
500
|
+
}>;
|
|
518
501
|
authorization: z.ZodArray<z.ZodObject<{
|
|
519
502
|
actor: z.ZodString;
|
|
520
503
|
permission: z.ZodString;
|
|
@@ -529,7 +512,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
529
512
|
}, {
|
|
530
513
|
account: string;
|
|
531
514
|
name: string;
|
|
532
|
-
data:
|
|
515
|
+
data: {
|
|
533
516
|
[x: string]: any;
|
|
534
517
|
[x: number]: any;
|
|
535
518
|
};
|
|
@@ -598,12 +581,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
598
581
|
actions: z.ZodArray<z.ZodObject<{
|
|
599
582
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
600
583
|
name: z.ZodLiteral<string>;
|
|
601
|
-
data: z.ZodObject<ZodRawShape, {
|
|
602
|
-
strict: true;
|
|
603
|
-
}, {
|
|
604
|
-
[x: string]: any;
|
|
605
|
-
[x: number]: any;
|
|
606
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
584
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
607
585
|
strict: true;
|
|
608
586
|
}, {
|
|
609
587
|
[x: string]: any;
|
|
@@ -781,7 +759,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
781
759
|
actions: ({
|
|
782
760
|
account: string;
|
|
783
761
|
name: string;
|
|
784
|
-
data:
|
|
762
|
+
data: {
|
|
785
763
|
[x: string]: any;
|
|
786
764
|
[x: number]: any;
|
|
787
765
|
};
|
|
@@ -861,7 +839,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
861
839
|
actions: ({
|
|
862
840
|
account: string;
|
|
863
841
|
name: string;
|
|
864
|
-
data:
|
|
842
|
+
data: {
|
|
865
843
|
[x: string]: any;
|
|
866
844
|
[x: number]: any;
|
|
867
845
|
};
|
package/dist/parsers/index.d.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
|
+
}
|
|
@@ -2,17 +2,19 @@ import * as z from 'zod';
|
|
|
2
2
|
declare const withdrawBodyBaseAction: z.ZodObject<{
|
|
3
3
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
4
4
|
name: z.ZodLiteral<string>;
|
|
5
|
-
data: z.ZodObject<
|
|
6
|
-
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
from: z.ZodString;
|
|
7
|
+
to: z.ZodLiteral<"proton.wrap">;
|
|
8
|
+
quantity: z.ZodString;
|
|
9
|
+
memo: z.ZodString;
|
|
7
10
|
}, {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
[x: number]: any;
|
|
10
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
11
11
|
strict: true;
|
|
12
12
|
}, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
from: string;
|
|
14
|
+
to: "proton.wrap";
|
|
15
|
+
quantity: string;
|
|
16
|
+
memo: string;
|
|
17
|
+
}>;
|
|
16
18
|
authorization: z.ZodArray<z.ZodObject<{
|
|
17
19
|
actor: z.ZodString;
|
|
18
20
|
permission: z.ZodString;
|
|
@@ -27,9 +29,11 @@ declare const withdrawBodyBaseAction: z.ZodObject<{
|
|
|
27
29
|
}, {
|
|
28
30
|
account: string;
|
|
29
31
|
name: string;
|
|
30
|
-
data:
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
data: {
|
|
33
|
+
from: string;
|
|
34
|
+
to: "proton.wrap";
|
|
35
|
+
quantity: string;
|
|
36
|
+
memo: string;
|
|
33
37
|
};
|
|
34
38
|
authorization: {
|
|
35
39
|
actor: string;
|
|
@@ -61,17 +65,19 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
61
65
|
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
62
66
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
63
67
|
name: z.ZodLiteral<string>;
|
|
64
|
-
data: z.ZodObject<
|
|
65
|
-
|
|
68
|
+
data: z.ZodObject<{
|
|
69
|
+
from: z.ZodString;
|
|
70
|
+
to: z.ZodLiteral<"proton.wrap">;
|
|
71
|
+
quantity: z.ZodString;
|
|
72
|
+
memo: z.ZodString;
|
|
66
73
|
}, {
|
|
67
|
-
[x: string]: any;
|
|
68
|
-
[x: number]: any;
|
|
69
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
70
74
|
strict: true;
|
|
71
75
|
}, {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
from: string;
|
|
77
|
+
to: "proton.wrap";
|
|
78
|
+
quantity: string;
|
|
79
|
+
memo: string;
|
|
80
|
+
}>;
|
|
75
81
|
authorization: z.ZodArray<z.ZodObject<{
|
|
76
82
|
actor: z.ZodString;
|
|
77
83
|
permission: z.ZodString;
|
|
@@ -86,9 +92,11 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
86
92
|
}, {
|
|
87
93
|
account: string;
|
|
88
94
|
name: string;
|
|
89
|
-
data:
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
data: {
|
|
96
|
+
from: string;
|
|
97
|
+
to: "proton.wrap";
|
|
98
|
+
quantity: string;
|
|
99
|
+
memo: string;
|
|
92
100
|
};
|
|
93
101
|
authorization: {
|
|
94
102
|
actor: string;
|
|
@@ -155,16 +163,18 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
155
163
|
actions: z.ZodArray<z.ZodObject<{
|
|
156
164
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
157
165
|
name: z.ZodLiteral<string>;
|
|
158
|
-
data: z.
|
|
159
|
-
|
|
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;
|
|
160
171
|
}, {
|
|
161
|
-
[x: string]: any;
|
|
162
|
-
[x: number]: any;
|
|
163
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
164
172
|
strict: true;
|
|
165
173
|
}, {
|
|
166
|
-
|
|
167
|
-
|
|
174
|
+
from: string;
|
|
175
|
+
to: "proton.wrap";
|
|
176
|
+
quantity: string;
|
|
177
|
+
memo: string;
|
|
168
178
|
}>]>;
|
|
169
179
|
authorization: z.ZodArray<z.ZodObject<{
|
|
170
180
|
actor: z.ZodString;
|
|
@@ -181,8 +191,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
181
191
|
account: string;
|
|
182
192
|
name: string;
|
|
183
193
|
data: string | {
|
|
184
|
-
|
|
185
|
-
|
|
194
|
+
from: string;
|
|
195
|
+
to: "proton.wrap";
|
|
196
|
+
quantity: string;
|
|
197
|
+
memo: string;
|
|
186
198
|
};
|
|
187
199
|
authorization: {
|
|
188
200
|
actor: string;
|
|
@@ -206,8 +218,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
206
218
|
account: string;
|
|
207
219
|
name: string;
|
|
208
220
|
data: string | {
|
|
209
|
-
|
|
210
|
-
|
|
221
|
+
from: string;
|
|
222
|
+
to: "proton.wrap";
|
|
223
|
+
quantity: string;
|
|
224
|
+
memo: string;
|
|
211
225
|
};
|
|
212
226
|
authorization: {
|
|
213
227
|
actor: string;
|
|
@@ -250,8 +264,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
250
264
|
account: string;
|
|
251
265
|
name: string;
|
|
252
266
|
data: string | {
|
|
253
|
-
|
|
254
|
-
|
|
267
|
+
from: string;
|
|
268
|
+
to: "proton.wrap";
|
|
269
|
+
quantity: string;
|
|
270
|
+
memo: string;
|
|
255
271
|
};
|
|
256
272
|
authorization: {
|
|
257
273
|
actor: string;
|
|
@@ -307,8 +323,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
307
323
|
account: string;
|
|
308
324
|
name: string;
|
|
309
325
|
data: string | {
|
|
310
|
-
|
|
311
|
-
|
|
326
|
+
from: string;
|
|
327
|
+
to: "proton.wrap";
|
|
328
|
+
quantity: string;
|
|
329
|
+
memo: string;
|
|
312
330
|
};
|
|
313
331
|
authorization: {
|
|
314
332
|
actor: string;
|
|
@@ -338,9 +356,11 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
338
356
|
actions: ({
|
|
339
357
|
account: string;
|
|
340
358
|
name: string;
|
|
341
|
-
data:
|
|
342
|
-
|
|
343
|
-
|
|
359
|
+
data: {
|
|
360
|
+
from: string;
|
|
361
|
+
to: "proton.wrap";
|
|
362
|
+
quantity: string;
|
|
363
|
+
memo: string;
|
|
344
364
|
};
|
|
345
365
|
authorization: {
|
|
346
366
|
actor: string;
|
|
@@ -382,8 +402,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
382
402
|
account: string;
|
|
383
403
|
name: string;
|
|
384
404
|
data: string | {
|
|
385
|
-
|
|
386
|
-
|
|
405
|
+
from: string;
|
|
406
|
+
to: "proton.wrap";
|
|
407
|
+
quantity: string;
|
|
408
|
+
memo: string;
|
|
387
409
|
};
|
|
388
410
|
authorization: {
|
|
389
411
|
actor: string;
|
|
@@ -421,9 +443,11 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
421
443
|
actions: ({
|
|
422
444
|
account: string;
|
|
423
445
|
name: string;
|
|
424
|
-
data:
|
|
425
|
-
|
|
426
|
-
|
|
446
|
+
data: {
|
|
447
|
+
from: string;
|
|
448
|
+
to: "proton.wrap";
|
|
449
|
+
quantity: string;
|
|
450
|
+
memo: string;
|
|
427
451
|
};
|
|
428
452
|
authorization: {
|
|
429
453
|
actor: string;
|
|
@@ -465,8 +489,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
465
489
|
account: string;
|
|
466
490
|
name: string;
|
|
467
491
|
data: string | {
|
|
468
|
-
|
|
469
|
-
|
|
492
|
+
from: string;
|
|
493
|
+
to: "proton.wrap";
|
|
494
|
+
quantity: string;
|
|
495
|
+
memo: string;
|
|
470
496
|
};
|
|
471
497
|
authorization: {
|
|
472
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) {
|