everest-npm-features 0.0.20 → 0.0.21
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/components/Wallet/Sell/confirmTransaction.js +1 -1
- package/dist/components/Wallet/Sell/form.js +1 -1
- package/dist/components/Wallet/Sell/index.js +1 -1
- package/dist/components/Wallet/Swap/index.js +52 -52
- package/dist/{index-CTglGXWu.js → index-DHrWPN34.js} +276 -273
- package/dist/main.js +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ import "../../../styles.module-BFHktEw2.js";
|
|
|
6
6
|
import "../Shared/appButton.js";
|
|
7
7
|
import "../../../constants-CdVZO8DH.js";
|
|
8
8
|
import "../../../order-DNSedxgT.js";
|
|
9
|
-
import { a as g } from "../../../index-
|
|
9
|
+
import { a as g } from "../../../index-DHrWPN34.js";
|
|
10
10
|
import "../../../hooks/useDialog/index.js";
|
|
11
11
|
import "../../../util/constants.js";
|
|
12
12
|
import "../../../Typography-Ds4fpvK8.js";
|
|
@@ -9,7 +9,7 @@ import "../../../index-f15o1nhn.js";
|
|
|
9
9
|
import "../../../order-DNSedxgT.js";
|
|
10
10
|
import "../../../tooltip-CwdohO6q.js";
|
|
11
11
|
import "../../../util/functions.js";
|
|
12
|
-
import { S as D } from "../../../index-
|
|
12
|
+
import { S as D } from "../../../index-DHrWPN34.js";
|
|
13
13
|
import "../../../styles.module-BFHktEw2.js";
|
|
14
14
|
import "../Shared/TokenModal/index.js";
|
|
15
15
|
import "../Shared/appButton.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { C as e, F as f, M as O, i as d } from "../../../index-
|
|
4
|
+
import { C as e, F as f, M as O, i as d } from "../../../index-DHrWPN34.js";
|
|
5
5
|
import "../../../react-redux-C7I9-1M6.js";
|
|
6
6
|
import "../../../constants-CdVZO8DH.js";
|
|
7
7
|
import "../../../fiatAssets-yeCL6wA9.js";
|
|
@@ -4,9 +4,9 @@ import { u as P, a as Ee } from "../../../react-redux-C7I9-1M6.js";
|
|
|
4
4
|
import { P as Le } from "../../../PlayArrow-1Y66tCVx.js";
|
|
5
5
|
import { I as We } from "../../../Info-83BXSu73.js";
|
|
6
6
|
import { G as $e } from "../../../generic-token-B_ptO5yb.js";
|
|
7
|
-
import { getCentralLedgetNetwork as B, getNetworkBackGround as
|
|
8
|
-
import
|
|
9
|
-
import { formatNumberWithoutRounding as
|
|
7
|
+
import { getCentralLedgetNetwork as B, getNetworkBackGround as le, getCurrencySymbol as Pe } from "../../../util/functions.js";
|
|
8
|
+
import ce from "../Shared/TokenModal/index.js";
|
|
9
|
+
import { formatNumberWithoutRounding as me } from "../../../util/conversions.js";
|
|
10
10
|
import { F as Be } from "../../../constants-CdVZO8DH.js";
|
|
11
11
|
import { u as De } from "../../../index-f15o1nhn.js";
|
|
12
12
|
import { f as ze, a as Ue, b as qe } from "../../../cryptoAssets-awZZ9HTs.js";
|
|
@@ -35,37 +35,37 @@ import { G as n } from "../../../Grid-BaaKMDwM.js";
|
|
|
35
35
|
import { T as l } from "../../../Typography-Ds4fpvK8.js";
|
|
36
36
|
import { F as N } from "../../../FormControl-Cc-02KHW.js";
|
|
37
37
|
import { F as A } from "../../../FilledInput-n9W_V8GV.js";
|
|
38
|
-
import { F as
|
|
38
|
+
import { F as de, I as z } from "../../../TextField-Cm9apaOp.js";
|
|
39
39
|
import { C as f } from "../../../CircularProgress-fePUtoaj.js";
|
|
40
40
|
import { S as U } from "../../../Select-DpKw-a6h.js";
|
|
41
41
|
import { M as g } from "../../../MenuItem-BkJ_C9Xs.js";
|
|
42
|
-
import { L as
|
|
43
|
-
import { I as
|
|
42
|
+
import { L as ue } from "../../../ListItemIcon-DIz-ZmJ0.js";
|
|
43
|
+
import { I as pe } from "../../../IconButton-8B2ygvr4.js";
|
|
44
44
|
import { B as ot } from "../../../Button-DCBtFwk3.js";
|
|
45
45
|
const at = ({ partnerKey: I, navigate: q }) => {
|
|
46
|
-
var
|
|
47
|
-
const G = Re(null), { openDialog:
|
|
46
|
+
var se, ie;
|
|
47
|
+
const G = Re(null), { openDialog: fe, ConfirmDialog: he } = rt(), { showAlertMessage: m } = tt(), k = P((t) => t.order), b = P(
|
|
48
48
|
(t) => t.cryptoAssets
|
|
49
|
-
), Y = P(De),
|
|
50
|
-
let
|
|
51
|
-
const
|
|
52
|
-
for (let t = 0; t <
|
|
53
|
-
const i =
|
|
54
|
-
i.name === "ev_fee" ?
|
|
49
|
+
), Y = P(De), xe = Y.data, { loader: ge } = Y, M = b.featureTokens.swap.inputList, r = b.featureTokens.swap.inputDefault, w = b.featureTokens.swap.outputList, o = b.featureTokens.swap.outputDefault, _ = b.loader, O = k.error, j = k.create.order_id, S = k.loader, c = k.estimate, C = c.output_token.amount, H = c.conversion_price, be = c.total_fee, F = Number((se = c == null ? void 0 : c.input_token) == null ? void 0 : se.fiat_amount), K = Number((ie = c == null ? void 0 : c.output_token) == null ? void 0 : ie.fiat_amount);
|
|
50
|
+
let X = 0, V = 0;
|
|
51
|
+
const J = c.fee_breakdown;
|
|
52
|
+
for (let t = 0; t < J.length; t++) {
|
|
53
|
+
const i = J[t];
|
|
54
|
+
i.name === "ev_fee" ? X = Number(i.value) : i.name === "network_fee" && (V = Number(i.value));
|
|
55
55
|
}
|
|
56
|
-
const [h, R] = u("50"), [E, we] = u(!1), [ve,
|
|
56
|
+
const [h, R] = u("50"), [E, we] = u(!1), [ve, Q] = u(!1), [ye, Z] = u(!1), [ee, Ne] = u(!1), [L, te] = u(!1), [p, ke] = u(""), [W, nt] = u(50), [_e, st] = u(1e4), [re, Se] = u(""), Ce = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, $ = Pe("USD"), d = Ee(), Fe = (t) => {
|
|
57
57
|
d(Ue(t));
|
|
58
|
-
},
|
|
58
|
+
}, oe = (t) => {
|
|
59
59
|
d(qe(t));
|
|
60
60
|
};
|
|
61
61
|
v(() => {
|
|
62
|
-
j && L &&
|
|
62
|
+
j && L && fe({
|
|
63
63
|
icon: Ke,
|
|
64
64
|
title: "Swap Success",
|
|
65
65
|
message: "Your transaction was successful for more details on the transaction, please view your transaction history.",
|
|
66
66
|
cancelButtonText: "Swap again",
|
|
67
67
|
onCancel: () => {
|
|
68
|
-
d(D()),
|
|
68
|
+
d(D()), te(!1);
|
|
69
69
|
},
|
|
70
70
|
confirmButtonText: "Track Order",
|
|
71
71
|
onConfirm: () => {
|
|
@@ -116,14 +116,14 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
116
116
|
ke(t);
|
|
117
117
|
}, Ie = (t) => {
|
|
118
118
|
const i = t.target.value;
|
|
119
|
-
i ? /^([0-9.]+)$/.test(i) && R(
|
|
120
|
-
},
|
|
119
|
+
i ? /^([0-9.]+)$/.test(i) && R(me(i, 8)) : R("");
|
|
120
|
+
}, ae = (t) => {
|
|
121
121
|
if (w) {
|
|
122
122
|
const i = w.find((T) => T.symbol === t);
|
|
123
|
-
|
|
123
|
+
oe(i);
|
|
124
124
|
}
|
|
125
|
-
},
|
|
126
|
-
|
|
125
|
+
}, ne = (t) => {
|
|
126
|
+
oe({ symbol: "" });
|
|
127
127
|
const i = M.find((T) => T.symbol === t);
|
|
128
128
|
Fe(i);
|
|
129
129
|
}, Me = () => {
|
|
@@ -159,7 +159,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
159
159
|
}), !1;
|
|
160
160
|
if (L)
|
|
161
161
|
return !1;
|
|
162
|
-
|
|
162
|
+
te(!0), d(
|
|
163
163
|
He({
|
|
164
164
|
apiKey: I,
|
|
165
165
|
quoteId: c.quote_id,
|
|
@@ -167,11 +167,11 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
167
167
|
})
|
|
168
168
|
);
|
|
169
169
|
}, Oe = () => {
|
|
170
|
-
r && R(
|
|
170
|
+
r && R(me(r.fmt_balance + "", 8));
|
|
171
171
|
};
|
|
172
172
|
return /* @__PURE__ */ a(et, { addPadding: !0, children: [
|
|
173
173
|
/* @__PURE__ */ a(y, { children: [
|
|
174
|
-
/* @__PURE__ */ e(
|
|
174
|
+
/* @__PURE__ */ e(he, {}),
|
|
175
175
|
/* @__PURE__ */ a(n, { container: !0, children: [
|
|
176
176
|
/* @__PURE__ */ e(n, { item: !0, xs: 2.5, children: /* @__PURE__ */ e(
|
|
177
177
|
l,
|
|
@@ -219,7 +219,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
219
219
|
fullWidth: !0
|
|
220
220
|
}
|
|
221
221
|
),
|
|
222
|
-
/* @__PURE__ */ e(
|
|
222
|
+
/* @__PURE__ */ e(de, { className: s["amount-symbol"], children: F > 0 ? "$" + (F * 1).toFixed(2) : /* @__PURE__ */ e(x, { children: " " }) })
|
|
223
223
|
]
|
|
224
224
|
}
|
|
225
225
|
) }),
|
|
@@ -233,7 +233,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
233
233
|
(r == null ? void 0 : r.network) && /* @__PURE__ */ e(
|
|
234
234
|
z,
|
|
235
235
|
{
|
|
236
|
-
className: `${s["network-label"]} ${s[
|
|
236
|
+
className: `${s["network-label"]} ${s[le(r == null ? void 0 : r.network.name)]}`,
|
|
237
237
|
children: B(r == null ? void 0 : r.network.name)
|
|
238
238
|
}
|
|
239
239
|
),
|
|
@@ -265,9 +265,9 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
265
265
|
variant: "filled",
|
|
266
266
|
value: r && r.symbol,
|
|
267
267
|
displayEmpty: !0,
|
|
268
|
-
onChange: (t) =>
|
|
268
|
+
onChange: (t) => ne(t.target.value),
|
|
269
269
|
onOpen: (t) => {
|
|
270
|
-
|
|
270
|
+
Z(!0), t.preventDefault();
|
|
271
271
|
},
|
|
272
272
|
defaultOpen: !1,
|
|
273
273
|
open: !1,
|
|
@@ -275,7 +275,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
275
275
|
children: [
|
|
276
276
|
/* @__PURE__ */ e(g, { value: "", children: "Please select input" }),
|
|
277
277
|
M.map((t) => /* @__PURE__ */ a(g, { value: t.symbol, children: [
|
|
278
|
-
/* @__PURE__ */ e(
|
|
278
|
+
/* @__PURE__ */ e(ue, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
279
279
|
"img",
|
|
280
280
|
{
|
|
281
281
|
src: t.icon_uri,
|
|
@@ -292,7 +292,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
292
292
|
]
|
|
293
293
|
}
|
|
294
294
|
) }),
|
|
295
|
-
|
|
295
|
+
re && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: re }) })
|
|
296
296
|
] }),
|
|
297
297
|
/* @__PURE__ */ a(n, { mt: 4, container: !0, children: [
|
|
298
298
|
/* @__PURE__ */ e(n, { item: !0, xs: 4, children: /* @__PURE__ */ e(
|
|
@@ -332,7 +332,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
332
332
|
fullWidth: !0
|
|
333
333
|
}
|
|
334
334
|
),
|
|
335
|
-
/* @__PURE__ */ e(
|
|
335
|
+
/* @__PURE__ */ e(de, { className: s["amount-symbol"], children: K > 0 ? "$" + (K * 1).toFixed(2) : /* @__PURE__ */ e(x, { children: " " }) })
|
|
336
336
|
]
|
|
337
337
|
}
|
|
338
338
|
) }),
|
|
@@ -352,7 +352,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
352
352
|
(o == null ? void 0 : o.network) && /* @__PURE__ */ e(
|
|
353
353
|
z,
|
|
354
354
|
{
|
|
355
|
-
className: `${s["network-label"]} ${s[
|
|
355
|
+
className: `${s["network-label"]} ${s[le(o == null ? void 0 : o.network.name)]}`,
|
|
356
356
|
children: o == null ? void 0 : o.network.name
|
|
357
357
|
}
|
|
358
358
|
),
|
|
@@ -384,16 +384,16 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
384
384
|
variant: "filled",
|
|
385
385
|
value: o && o.symbol,
|
|
386
386
|
displayEmpty: !0,
|
|
387
|
-
onChange: (t) =>
|
|
387
|
+
onChange: (t) => ae(t.target.value),
|
|
388
388
|
onOpen: (t) => {
|
|
389
|
-
|
|
389
|
+
Q(!0), t.preventDefault();
|
|
390
390
|
},
|
|
391
391
|
defaultOpen: !1,
|
|
392
392
|
open: !1,
|
|
393
393
|
children: [
|
|
394
394
|
/* @__PURE__ */ e(g, { value: "", children: "Please select output" }),
|
|
395
395
|
w && w.map((t) => /* @__PURE__ */ a(g, { value: t.symbol, children: [
|
|
396
|
-
/* @__PURE__ */ e(
|
|
396
|
+
/* @__PURE__ */ e(ue, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
397
397
|
"img",
|
|
398
398
|
{
|
|
399
399
|
src: t.icon_uri,
|
|
@@ -416,7 +416,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
416
416
|
] }),
|
|
417
417
|
/* @__PURE__ */ e(y, { mt: 2.5, className: s["fee-area"], children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
418
418
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 12, children: /* @__PURE__ */ a(
|
|
419
|
-
|
|
419
|
+
pe,
|
|
420
420
|
{
|
|
421
421
|
sx: { padding: "0" },
|
|
422
422
|
onClick: () => Ne((t) => !t),
|
|
@@ -428,7 +428,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
428
428
|
Le,
|
|
429
429
|
{
|
|
430
430
|
sx: {
|
|
431
|
-
transform: `rotate(${
|
|
431
|
+
transform: `rotate(${ee ? "90" : "0"}deg)`,
|
|
432
432
|
fontSize: "15px"
|
|
433
433
|
}
|
|
434
434
|
}
|
|
@@ -436,7 +436,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
438
|
) }),
|
|
439
|
-
|
|
439
|
+
ee && /* @__PURE__ */ a(x, { children: [
|
|
440
440
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
|
|
441
441
|
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
442
442
|
$,
|
|
@@ -446,7 +446,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
446
446
|
sx: { ml: 1 },
|
|
447
447
|
size: 15
|
|
448
448
|
}
|
|
449
|
-
) :
|
|
449
|
+
) : X.toFixed(2)
|
|
450
450
|
] }) }),
|
|
451
451
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
|
|
452
452
|
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
@@ -457,7 +457,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
457
457
|
sx: { ml: 1 },
|
|
458
458
|
size: 15
|
|
459
459
|
}
|
|
460
|
-
) :
|
|
460
|
+
) : V.toFixed(2)
|
|
461
461
|
] }) })
|
|
462
462
|
] }),
|
|
463
463
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
|
|
@@ -476,7 +476,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
476
476
|
"1 ",
|
|
477
477
|
r == null ? void 0 : r.symbol,
|
|
478
478
|
" ",
|
|
479
|
-
/* @__PURE__ */ e(Qe, { title: Je, placement: "right", children: /* @__PURE__ */ e(
|
|
479
|
+
/* @__PURE__ */ e(Qe, { title: Je, placement: "right", children: /* @__PURE__ */ e(pe, { className: s["info-fee-icon"], children: /* @__PURE__ */ e(We, { sx: { fontSize: "14px" } }) }) })
|
|
480
480
|
] }) }),
|
|
481
481
|
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: S ? /* @__PURE__ */ e(
|
|
482
482
|
f,
|
|
@@ -484,10 +484,10 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
484
484
|
sx: { ml: 1 },
|
|
485
485
|
size: 15
|
|
486
486
|
}
|
|
487
|
-
) : parseFloat(
|
|
487
|
+
) : H && parseFloat(H).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
|
|
488
488
|
] })
|
|
489
489
|
] }) }),
|
|
490
|
-
/* @__PURE__ */ e(y, { sx: { alignItems: "left", width: "100%" }, children:
|
|
490
|
+
/* @__PURE__ */ e(y, { sx: { alignItems: "left", width: "100%" }, children: ge ? /* @__PURE__ */ e(y, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(f, {}) }) : /* @__PURE__ */ e(x, { children: /* @__PURE__ */ a(
|
|
491
491
|
N,
|
|
492
492
|
{
|
|
493
493
|
variant: "filled",
|
|
@@ -501,7 +501,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
501
501
|
onChange: (t) => Ae(t.target.value),
|
|
502
502
|
children: [
|
|
503
503
|
/* @__PURE__ */ e(g, { value: "", children: /* @__PURE__ */ e("em", { children: "None" }) }),
|
|
504
|
-
|
|
504
|
+
xe.map((t, i) => /* @__PURE__ */ e(g, { value: t.address, children: t.name + "(" + t.address + ")" }, i))
|
|
505
505
|
]
|
|
506
506
|
}
|
|
507
507
|
)
|
|
@@ -524,23 +524,23 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
524
524
|
) })
|
|
525
525
|
] }),
|
|
526
526
|
/* @__PURE__ */ e(
|
|
527
|
-
|
|
527
|
+
ce,
|
|
528
528
|
{
|
|
529
529
|
open: ye,
|
|
530
|
-
setModal:
|
|
530
|
+
setModal: Z,
|
|
531
531
|
loader: _,
|
|
532
532
|
tokenList: M,
|
|
533
|
-
tokenSelect:
|
|
533
|
+
tokenSelect: ne
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
536
|
/* @__PURE__ */ e(
|
|
537
|
-
|
|
537
|
+
ce,
|
|
538
538
|
{
|
|
539
539
|
open: ve,
|
|
540
|
-
setModal:
|
|
540
|
+
setModal: Q,
|
|
541
541
|
loader: _,
|
|
542
542
|
tokenList: w ?? [],
|
|
543
|
-
tokenSelect:
|
|
543
|
+
tokenSelect: ae,
|
|
544
544
|
showBalance: !1
|
|
545
545
|
}
|
|
546
546
|
)
|
|
@@ -1,134 +1,138 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import { P as
|
|
5
|
-
import { I as
|
|
6
|
-
import { G as
|
|
7
|
-
import { TOKEN_TO_FIAT as Z, ESTIMATE_TOOLTIP_TEXT as
|
|
8
|
-
import { aa as
|
|
9
|
-
import { u as
|
|
10
|
-
import { a as
|
|
11
|
-
import { M as
|
|
12
|
-
import { getCurrencySymbol as
|
|
13
|
-
import
|
|
1
|
+
import { jsxs as r, Fragment as _, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as x } from "react";
|
|
3
|
+
import Ue from "./hoc/withThemeProvider.js";
|
|
4
|
+
import { P as qe } from "./PlayArrow-1Y66tCVx.js";
|
|
5
|
+
import { I as Ye } from "./Info-83BXSu73.js";
|
|
6
|
+
import { G as xe } from "./generic-token-B_ptO5yb.js";
|
|
7
|
+
import { TOKEN_TO_FIAT as Z, ESTIMATE_TOOLTIP_TEXT as Ge, SELL_WITHDRAW_ICON as Ke, DIALOG_SUCCESS_ICON as He } from "./util/constants.js";
|
|
8
|
+
import { aa as De } from "./constants-CdVZO8DH.js";
|
|
9
|
+
import { u as je } from "./index-f15o1nhn.js";
|
|
10
|
+
import { a as Xe, b as ve, o as ee, c as Ve, f as Je } from "./order-DNSedxgT.js";
|
|
11
|
+
import { M as Qe } from "./tooltip-CwdohO6q.js";
|
|
12
|
+
import { getCurrencySymbol as Ne, getNetworkBackGround as Ze } from "./util/functions.js";
|
|
13
|
+
import et from "./components/Wallet/Shared/backBtn.js";
|
|
14
14
|
import { s as l } from "./styles.module-BFHktEw2.js";
|
|
15
15
|
import K from "./components/Wallet/Shared/appButton.js";
|
|
16
|
-
import { useDialog as
|
|
16
|
+
import { useDialog as Ce } from "./hooks/useDialog/index.js";
|
|
17
17
|
import { T as s } from "./Typography-Ds4fpvK8.js";
|
|
18
18
|
import { B as I } from "./Box-Be0E_-eR.js";
|
|
19
19
|
import { G as o } from "./Grid2-DX2sucnU.js";
|
|
20
|
-
import { C } from "./CircularProgress-fePUtoaj.js";
|
|
21
|
-
import { u as W, a as
|
|
22
|
-
import { f as
|
|
23
|
-
import { f as
|
|
24
|
-
import { u as
|
|
25
|
-
import { useSnackBarContext as
|
|
26
|
-
import { AuthContainer as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { formatNumberWithoutRounding as
|
|
20
|
+
import { C as S } from "./CircularProgress-fePUtoaj.js";
|
|
21
|
+
import { u as W, a as tt } from "./react-redux-C7I9-1M6.js";
|
|
22
|
+
import { f as nt } from "./fiatAssets-yeCL6wA9.js";
|
|
23
|
+
import { f as rt } from "./cryptoAssets-awZZ9HTs.js";
|
|
24
|
+
import { u as ot } from "./wallet-D76D_QSY.js";
|
|
25
|
+
import { useSnackBarContext as it } from "./context/snackBarContext.js";
|
|
26
|
+
import { AuthContainer as at } from "./components/Wallet/Shared/Container/index.js";
|
|
27
|
+
import st from "./components/Shared/MinimalKyc/index.js";
|
|
28
|
+
import lt from "./components/Wallet/Shared/Input/index.js";
|
|
29
|
+
import ct from "./components/Wallet/Shared/TokenModal/index.js";
|
|
30
|
+
import { formatNumberWithoutRounding as mt } from "./util/conversions.js";
|
|
31
31
|
import { F as A } from "./FormControl-Cc-02KHW.js";
|
|
32
|
-
import { F as
|
|
33
|
-
import { F as
|
|
32
|
+
import { F as Y } from "./FilledInput-n9W_V8GV.js";
|
|
33
|
+
import { F as ye, I as be } from "./TextField-Cm9apaOp.js";
|
|
34
34
|
import { S as Q } from "./Select-DpKw-a6h.js";
|
|
35
35
|
import { M as G } from "./MenuItem-BkJ_C9Xs.js";
|
|
36
|
-
import { L as
|
|
37
|
-
import { I as
|
|
38
|
-
const
|
|
39
|
-
setScreen:
|
|
40
|
-
orderData:
|
|
36
|
+
import { L as ge } from "./ListItemIcon-DIz-ZmJ0.js";
|
|
37
|
+
import { I as _e } from "./IconButton-8B2ygvr4.js";
|
|
38
|
+
const dt = ({
|
|
39
|
+
setScreen: v,
|
|
40
|
+
orderData: f,
|
|
41
41
|
dispatch: c,
|
|
42
|
-
fiatAssets:
|
|
43
|
-
cryptoAssets:
|
|
44
|
-
getCryptoAssets:
|
|
45
|
-
showAlertMessage:
|
|
46
|
-
partnerKey:
|
|
47
|
-
walletAddress:
|
|
48
|
-
setWalletAddress:
|
|
49
|
-
navigate:
|
|
42
|
+
fiatAssets: d,
|
|
43
|
+
cryptoAssets: h,
|
|
44
|
+
getCryptoAssets: F,
|
|
45
|
+
showAlertMessage: N,
|
|
46
|
+
partnerKey: R,
|
|
47
|
+
walletAddress: n,
|
|
48
|
+
setWalletAddress: b,
|
|
49
|
+
navigate: w
|
|
50
50
|
}) => {
|
|
51
|
-
var
|
|
52
|
-
const { openDialog:
|
|
53
|
-
let
|
|
54
|
-
const ie =
|
|
51
|
+
var pe, fe, he;
|
|
52
|
+
const { openDialog: g, ConfirmDialog: O } = Ce(), H = W((t) => t.app.features).withdraw, L = W(je), D = L.data, { loader: Se } = L, B = d.fiats, Fe = d.loader, P = h.featureTokens.sell.list, $ = h.featureTokens.sell.default, ne = h.loader, U = f.loader, m = f.estimate, C = m.fiat_out_amount, we = m.conversion_price, Ee = m.total_fee;
|
|
53
|
+
let re = 0, oe = 0;
|
|
54
|
+
const ie = m.fee_breakdown;
|
|
55
55
|
for (let t = 0; t < ie.length; t++) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const a = ie[t];
|
|
57
|
+
a.name === "ev_fee" ? re = Number(a.value) : a.name === "network_fee" && (oe = Number(a.value));
|
|
58
58
|
}
|
|
59
|
-
const [
|
|
59
|
+
const [i, ae] = p({
|
|
60
60
|
symbol: ""
|
|
61
|
-
}), [j, X] =
|
|
61
|
+
}), [j, X] = p(!1), [E, Ie] = p(2), [Te, ze] = p([]), [se, Re] = p(!1), [q, Me] = p(50), [le, Ae] = p(3e3), [ce, V] = p(""), [T, J] = p(m.crypto_amount || "0.5"), [We, me] = p(!1), de = Number((pe = m == null ? void 0 : m.input_token) == null ? void 0 : pe.fiat_amount), z = B.find((t) => t.id === E), k = Ne(z == null ? void 0 : z.symbol);
|
|
62
62
|
x(() => {
|
|
63
63
|
const t = [];
|
|
64
|
-
for (let
|
|
65
|
-
const
|
|
66
|
-
|
|
64
|
+
for (let a = 0; a < B.length; a++) {
|
|
65
|
+
const u = {}, M = B[a];
|
|
66
|
+
M.symbol === "EUR" && (u.id = M.id, u.name = M.name, u.icon_uri = M.icon_uri, u.symbol = M.symbol, u.payment_options = [], t.push(u));
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
ze(t);
|
|
69
69
|
}, [B]), x(() => {
|
|
70
70
|
$ && $.id && ae($);
|
|
71
71
|
}, [$]), x(() => {
|
|
72
|
-
|
|
73
|
-
`Minimum value should be greater than ${
|
|
74
|
-
), X(!0)), le < +
|
|
75
|
-
`Maximum value should be less than ${
|
|
72
|
+
C && (q > +C * 1 && (V(
|
|
73
|
+
`Minimum value should be greater than ${k + q}`
|
|
74
|
+
), X(!0)), le < +C * 1 && (V(
|
|
75
|
+
`Maximum value should be less than ${k + le}`
|
|
76
76
|
), X(!0)));
|
|
77
|
-
}, [
|
|
78
|
-
E &&
|
|
79
|
-
}, [E,
|
|
80
|
-
if (
|
|
81
|
-
c(
|
|
77
|
+
}, [C]), x(() => {
|
|
78
|
+
E && F && F(E);
|
|
79
|
+
}, [E, n]), x(() => {
|
|
80
|
+
if (i && i.id && T && E) {
|
|
81
|
+
c(Xe()), X(!1), V("");
|
|
82
82
|
const t = setTimeout(() => {
|
|
83
|
-
|
|
83
|
+
Oe();
|
|
84
84
|
}, 1e3);
|
|
85
85
|
return () => clearTimeout(t);
|
|
86
86
|
}
|
|
87
|
-
}, [
|
|
88
|
-
const
|
|
87
|
+
}, [i, T, P, E]);
|
|
88
|
+
const Oe = () => {
|
|
89
89
|
var t;
|
|
90
90
|
c(
|
|
91
|
-
|
|
92
|
-
apiKey:
|
|
91
|
+
ve({
|
|
92
|
+
apiKey: R,
|
|
93
93
|
transaction_type: Z,
|
|
94
|
-
coin_amount:
|
|
95
|
-
exchange:
|
|
96
|
-
fiat_ccy:
|
|
97
|
-
crypto_ccy:
|
|
98
|
-
network: (t =
|
|
94
|
+
coin_amount: T,
|
|
95
|
+
exchange: i.exchange,
|
|
96
|
+
fiat_ccy: z == null ? void 0 : z.symbol,
|
|
97
|
+
crypto_ccy: i.symbol,
|
|
98
|
+
network: (t = i.network) == null ? void 0 : t.name
|
|
99
99
|
})
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
x(() => {
|
|
103
|
-
const t =
|
|
103
|
+
const t = f.types.length;
|
|
104
104
|
if (t > 0)
|
|
105
|
-
for (let
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
|
|
105
|
+
for (let a = 0; a < t; a++) {
|
|
106
|
+
const u = f.types[a];
|
|
107
|
+
if (u.type === Z) {
|
|
108
|
+
Me(parseFloat(u.min_deposit_amount)), Ae(parseFloat(u.max_deposit_amount));
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
}, [
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
const
|
|
118
|
-
ae(
|
|
119
|
-
},
|
|
120
|
-
if (!
|
|
121
|
-
return
|
|
122
|
-
if (!
|
|
123
|
-
return
|
|
124
|
-
if (!
|
|
125
|
-
return
|
|
112
|
+
}, [f.types]);
|
|
113
|
+
const Le = (t) => {
|
|
114
|
+
const a = t.target.value;
|
|
115
|
+
a ? /^([0-9.]+)$/.test(a) && J(a) : J("");
|
|
116
|
+
}, ue = (t) => {
|
|
117
|
+
const a = P.find((u) => u.symbol === t);
|
|
118
|
+
ae(a);
|
|
119
|
+
}, Be = () => {
|
|
120
|
+
if (!i.id)
|
|
121
|
+
return N({ message: "Please select token" }), !1;
|
|
122
|
+
if (!T)
|
|
123
|
+
return N({ message: "Please enter amount" }), !1;
|
|
124
|
+
if (!C)
|
|
125
|
+
return N({
|
|
126
126
|
message: "Please wait for the estimate to be calculated and then press next"
|
|
127
127
|
}), !1;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
if (i.fmt_balance && +T > parseFloat(i.fmt_balance))
|
|
129
|
+
return N({
|
|
130
|
+
message: "Insufficient Funds. Please provide amount less or equal to available balance"
|
|
131
|
+
}), !1;
|
|
132
|
+
v(ke);
|
|
133
|
+
}, Pe = () => {
|
|
134
|
+
g({
|
|
135
|
+
icon: Ke,
|
|
132
136
|
title: "Sell & Withdraw",
|
|
133
137
|
message: `When you sell your token you receive fiat tokens into your account. You can re-invest that fiat directly into other tokens, or if you would like, you can withdraw those funds to your bank account.<br /><br />
|
|
134
138
|
<p style="text-align: left; padding-left: 25%">1. Go to the Sell screen<br />
|
|
@@ -141,14 +145,14 @@ const ct = ({
|
|
|
141
145
|
confirmButtonText: "Ok",
|
|
142
146
|
cancelButtonShow: !1
|
|
143
147
|
});
|
|
144
|
-
},
|
|
145
|
-
|
|
148
|
+
}, $e = () => {
|
|
149
|
+
i && J(mt(i.fmt_balance + "", 8));
|
|
146
150
|
};
|
|
147
|
-
return /* @__PURE__ */
|
|
151
|
+
return /* @__PURE__ */ r(_, { children: [
|
|
148
152
|
/* @__PURE__ */ e(O, {}),
|
|
149
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ r(o, { container: !0, children: [
|
|
150
154
|
/* @__PURE__ */ e(o, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(s, { className: l.label, variant: "caption", component: "p", children: "You Pay" }) }),
|
|
151
|
-
/* @__PURE__ */ e(o, { size: { xs: 9.5 }, children:
|
|
155
|
+
/* @__PURE__ */ e(o, { size: { xs: 9.5 }, children: n && i && /* @__PURE__ */ r(
|
|
152
156
|
s,
|
|
153
157
|
{
|
|
154
158
|
className: l["balance-label"],
|
|
@@ -156,17 +160,17 @@ const ct = ({
|
|
|
156
160
|
component: "p",
|
|
157
161
|
children: [
|
|
158
162
|
"You Have: ",
|
|
159
|
-
|
|
163
|
+
i.fmt_balance,
|
|
160
164
|
" ",
|
|
161
|
-
|
|
165
|
+
i.symbol,
|
|
162
166
|
" ",
|
|
163
|
-
/* @__PURE__ */ e("span", { className: l["max-btn"], onClick:
|
|
167
|
+
/* @__PURE__ */ e("span", { className: l["max-btn"], onClick: $e, children: "MAX" })
|
|
164
168
|
]
|
|
165
169
|
}
|
|
166
170
|
) })
|
|
167
171
|
] }),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ r(o, { mt: 0.5, spacing: 0, container: !0, children: [
|
|
173
|
+
/* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ r(
|
|
170
174
|
A,
|
|
171
175
|
{
|
|
172
176
|
variant: "filled",
|
|
@@ -174,40 +178,40 @@ const ct = ({
|
|
|
174
178
|
fullWidth: !0,
|
|
175
179
|
children: [
|
|
176
180
|
/* @__PURE__ */ e(
|
|
177
|
-
|
|
181
|
+
Y,
|
|
178
182
|
{
|
|
179
|
-
value:
|
|
180
|
-
onChange:
|
|
183
|
+
value: T,
|
|
184
|
+
onChange: Le,
|
|
181
185
|
type: "text",
|
|
182
|
-
placeholder: `${
|
|
186
|
+
placeholder: `${q > 0 ? k + q + " minimum value" : ""}`,
|
|
183
187
|
error: j,
|
|
184
188
|
disableUnderline: !0,
|
|
185
189
|
required: !0,
|
|
186
190
|
fullWidth: !0
|
|
187
191
|
}
|
|
188
192
|
),
|
|
189
|
-
/* @__PURE__ */ e(
|
|
193
|
+
/* @__PURE__ */ e(ye, { className: l["amount-symbol"], children: de > 0 ? "$" + (de * 1).toFixed(2) : /* @__PURE__ */ e(_, { children: " " }) })
|
|
190
194
|
]
|
|
191
195
|
}
|
|
192
196
|
) }),
|
|
193
|
-
/* @__PURE__ */ e(o, { size: { xs: 6 }, className: "content-center", children:
|
|
197
|
+
/* @__PURE__ */ e(o, { size: { xs: 6 }, className: "content-center", children: ne ? /* @__PURE__ */ e(S, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ r(
|
|
194
198
|
A,
|
|
195
199
|
{
|
|
196
200
|
variant: "filled",
|
|
197
201
|
className: `text-left ${l["crypto-picker"]}`,
|
|
198
202
|
fullWidth: !0,
|
|
199
203
|
children: [
|
|
200
|
-
(
|
|
201
|
-
|
|
204
|
+
(i == null ? void 0 : i.network) && /* @__PURE__ */ e(
|
|
205
|
+
be,
|
|
202
206
|
{
|
|
203
|
-
className: `${l["network-label"]} ${l[
|
|
204
|
-
children:
|
|
207
|
+
className: `${l["network-label"]} ${l[Ze(i == null ? void 0 : i.network.name)]}`,
|
|
208
|
+
children: i == null ? void 0 : i.network.name
|
|
205
209
|
}
|
|
206
210
|
),
|
|
207
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ r(
|
|
208
212
|
Q,
|
|
209
213
|
{
|
|
210
|
-
input: /* @__PURE__ */ e(
|
|
214
|
+
input: /* @__PURE__ */ e(Y, { disableUnderline: !0 }),
|
|
211
215
|
sx: {
|
|
212
216
|
borderTopLeftRadius: 0,
|
|
213
217
|
"&::before": {
|
|
@@ -229,9 +233,9 @@ const ct = ({
|
|
|
229
233
|
},
|
|
230
234
|
className: "buy-select-dd",
|
|
231
235
|
variant: "filled",
|
|
232
|
-
value:
|
|
236
|
+
value: i.symbol,
|
|
233
237
|
displayEmpty: !0,
|
|
234
|
-
onChange: (t) =>
|
|
238
|
+
onChange: (t) => ue(t.target.value),
|
|
235
239
|
onOpen: (t) => {
|
|
236
240
|
me(!0), t.preventDefault();
|
|
237
241
|
},
|
|
@@ -239,13 +243,13 @@ const ct = ({
|
|
|
239
243
|
open: !1,
|
|
240
244
|
children: [
|
|
241
245
|
/* @__PURE__ */ e(G, { value: "", children: "Please select" }),
|
|
242
|
-
P.map((t) => /* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */ e(
|
|
246
|
+
P.map((t) => /* @__PURE__ */ r(G, { value: t.symbol, children: [
|
|
247
|
+
/* @__PURE__ */ e(ge, { className: l["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
244
248
|
"img",
|
|
245
249
|
{
|
|
246
250
|
src: t.icon_uri,
|
|
247
|
-
onError: ({ currentTarget:
|
|
248
|
-
|
|
251
|
+
onError: ({ currentTarget: a }) => {
|
|
252
|
+
a.onerror = null, a.src = xe;
|
|
249
253
|
},
|
|
250
254
|
alt: "tokenImg",
|
|
251
255
|
width: "40",
|
|
@@ -263,29 +267,29 @@ const ct = ({
|
|
|
263
267
|
ce && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ce }) })
|
|
264
268
|
] }),
|
|
265
269
|
/* @__PURE__ */ e(o, { mt: 4, container: !0, children: /* @__PURE__ */ e(o, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: l.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ r(o, { mt: 0.5, container: !0, children: [
|
|
271
|
+
/* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ r(
|
|
268
272
|
A,
|
|
269
273
|
{
|
|
270
274
|
className: `${l.amount} ${l["fiat-field"]}`,
|
|
271
275
|
fullWidth: !0,
|
|
272
276
|
children: [
|
|
273
277
|
/* @__PURE__ */ e(
|
|
274
|
-
|
|
278
|
+
Y,
|
|
275
279
|
{
|
|
276
280
|
disableUnderline: !0,
|
|
277
|
-
value:
|
|
281
|
+
value: C && parseFloat((+C * 1).toFixed(5)),
|
|
278
282
|
type: "text",
|
|
279
283
|
readOnly: !0,
|
|
280
284
|
fullWidth: !0
|
|
281
285
|
}
|
|
282
286
|
),
|
|
283
|
-
/* @__PURE__ */ e(
|
|
287
|
+
/* @__PURE__ */ e(ye, { className: l["amount-symbol"], children: +((fe = m == null ? void 0 : m.output_token) == null ? void 0 : fe.fiat_amount) * 1 > 0 ? k + (+((he = m == null ? void 0 : m.output_token) == null ? void 0 : he.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(_, { children: " " }) })
|
|
284
288
|
]
|
|
285
289
|
}
|
|
286
290
|
) }),
|
|
287
|
-
/* @__PURE__ */ e(o, { size: { xs: 6 }, className: "content-center", children:
|
|
288
|
-
|
|
291
|
+
/* @__PURE__ */ e(o, { size: { xs: 6 }, className: "content-center", children: Fe ? /* @__PURE__ */ e(
|
|
292
|
+
S,
|
|
289
293
|
{
|
|
290
294
|
sx: { ml: 1 },
|
|
291
295
|
size: 30
|
|
@@ -299,7 +303,7 @@ const ct = ({
|
|
|
299
303
|
children: /* @__PURE__ */ e(
|
|
300
304
|
Q,
|
|
301
305
|
{
|
|
302
|
-
input: /* @__PURE__ */ e(
|
|
306
|
+
input: /* @__PURE__ */ e(Y, { disableUnderline: !0 }),
|
|
303
307
|
sx: {
|
|
304
308
|
borderTopLeftRadius: 0,
|
|
305
309
|
"&::before": {
|
|
@@ -322,15 +326,15 @@ const ct = ({
|
|
|
322
326
|
value: E,
|
|
323
327
|
variant: "filled",
|
|
324
328
|
displayEmpty: !0,
|
|
325
|
-
onChange: (t) =>
|
|
329
|
+
onChange: (t) => Ie(t.target.value),
|
|
326
330
|
error: j,
|
|
327
|
-
children:
|
|
328
|
-
/* @__PURE__ */ e(
|
|
331
|
+
children: Te.map((t) => /* @__PURE__ */ r(G, { value: t.id, children: [
|
|
332
|
+
/* @__PURE__ */ e(ge, { className: l["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
329
333
|
"img",
|
|
330
334
|
{
|
|
331
335
|
src: t.icon_uri,
|
|
332
|
-
onError: ({ currentTarget:
|
|
333
|
-
|
|
336
|
+
onError: ({ currentTarget: a }) => {
|
|
337
|
+
a.onerror = null, a.src = xe;
|
|
334
338
|
},
|
|
335
339
|
alt: "tokenImg",
|
|
336
340
|
width: "40",
|
|
@@ -344,18 +348,18 @@ const ct = ({
|
|
|
344
348
|
}
|
|
345
349
|
) })
|
|
346
350
|
] }),
|
|
347
|
-
/* @__PURE__ */ e(I, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */
|
|
348
|
-
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */
|
|
349
|
-
|
|
351
|
+
/* @__PURE__ */ e(I, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ r(o, { container: !0, children: [
|
|
352
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ r(
|
|
353
|
+
_e,
|
|
350
354
|
{
|
|
351
355
|
sx: { padding: "0" },
|
|
352
|
-
onClick: () =>
|
|
356
|
+
onClick: () => Re((t) => !t),
|
|
353
357
|
disableFocusRipple: !0,
|
|
354
358
|
disableRipple: !0,
|
|
355
359
|
children: [
|
|
356
360
|
/* @__PURE__ */ e(s, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
|
|
357
361
|
/* @__PURE__ */ e(
|
|
358
|
-
|
|
362
|
+
qe,
|
|
359
363
|
{
|
|
360
364
|
sx: {
|
|
361
365
|
transform: `rotate(${se ? "90" : "0"}deg)`,
|
|
@@ -366,17 +370,17 @@ const ct = ({
|
|
|
366
370
|
]
|
|
367
371
|
}
|
|
368
372
|
) }),
|
|
369
|
-
se && /* @__PURE__ */
|
|
373
|
+
se && /* @__PURE__ */ r(_, { children: [
|
|
370
374
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
371
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
372
|
-
|
|
373
|
-
U ? /* @__PURE__ */ e(
|
|
375
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
376
|
+
k,
|
|
377
|
+
U ? /* @__PURE__ */ e(S, { size: 30, color: "primary" }) : re.toFixed(2)
|
|
374
378
|
] }) }),
|
|
375
379
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
|
|
376
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
377
|
-
|
|
380
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
381
|
+
k,
|
|
378
382
|
U ? /* @__PURE__ */ e(
|
|
379
|
-
|
|
383
|
+
S,
|
|
380
384
|
{
|
|
381
385
|
sx: { ml: 1 },
|
|
382
386
|
size: 15,
|
|
@@ -386,22 +390,22 @@ const ct = ({
|
|
|
386
390
|
] }) })
|
|
387
391
|
] }),
|
|
388
392
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
389
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
390
|
-
|
|
391
|
-
U ? /* @__PURE__ */ e(
|
|
393
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
394
|
+
k,
|
|
395
|
+
U ? /* @__PURE__ */ e(S, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Ee).toFixed(2)
|
|
392
396
|
] }) }),
|
|
393
|
-
|
|
394
|
-
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */
|
|
397
|
+
i && /* @__PURE__ */ r(_, { children: [
|
|
398
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
395
399
|
"1 ",
|
|
396
|
-
|
|
400
|
+
i.symbol,
|
|
397
401
|
" ",
|
|
398
402
|
/* @__PURE__ */ e(
|
|
399
|
-
|
|
403
|
+
Qe,
|
|
400
404
|
{
|
|
401
|
-
title:
|
|
405
|
+
title: Ge,
|
|
402
406
|
placement: "right",
|
|
403
|
-
children: /* @__PURE__ */ e(
|
|
404
|
-
|
|
407
|
+
children: /* @__PURE__ */ e(_e, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
408
|
+
Ye,
|
|
405
409
|
{
|
|
406
410
|
sx: {
|
|
407
411
|
fontSize: "14px"
|
|
@@ -411,41 +415,41 @@ const ct = ({
|
|
|
411
415
|
}
|
|
412
416
|
)
|
|
413
417
|
] }) }),
|
|
414
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
415
|
-
|
|
418
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
419
|
+
k,
|
|
416
420
|
U ? /* @__PURE__ */ e(
|
|
417
|
-
|
|
421
|
+
S,
|
|
418
422
|
{
|
|
419
423
|
sx: { ml: 1 },
|
|
420
424
|
size: 15,
|
|
421
425
|
color: "primary"
|
|
422
426
|
}
|
|
423
|
-
) : Number(
|
|
427
|
+
) : Number(we).toFixed(2)
|
|
424
428
|
] }) })
|
|
425
429
|
] })
|
|
426
430
|
] }) }),
|
|
427
|
-
/* @__PURE__ */ e(I, { sx: { alignItems: "left", width: "100%" }, children:
|
|
428
|
-
!
|
|
431
|
+
/* @__PURE__ */ e(I, { sx: { alignItems: "left", width: "100%" }, children: Se ? /* @__PURE__ */ e(I, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(S, {}) }) : /* @__PURE__ */ e(_, { children: /* @__PURE__ */ r(A, { variant: "filled", fullWidth: !0, children: [
|
|
432
|
+
!n && /* @__PURE__ */ e(be, { children: "Select wallet address" }),
|
|
429
433
|
/* @__PURE__ */ e(
|
|
430
434
|
Q,
|
|
431
435
|
{
|
|
432
|
-
value:
|
|
433
|
-
onChange: (t) =>
|
|
434
|
-
children:
|
|
436
|
+
value: n,
|
|
437
|
+
onChange: (t) => b && b(t.target.value),
|
|
438
|
+
children: D.map((t, a) => /* @__PURE__ */ e(G, { value: t.address, children: t.name + "(" + t.address + ")" }, a))
|
|
435
439
|
}
|
|
436
440
|
)
|
|
437
441
|
] }) }) }),
|
|
438
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ r(I, { mt: 4, children: [
|
|
439
443
|
/* @__PURE__ */ e(
|
|
440
444
|
K,
|
|
441
445
|
{
|
|
442
|
-
onClick:
|
|
443
|
-
disabled: j || !
|
|
446
|
+
onClick: Be,
|
|
447
|
+
disabled: j || !C,
|
|
444
448
|
fullWidth: !0,
|
|
445
449
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
446
450
|
}
|
|
447
451
|
),
|
|
448
|
-
|
|
452
|
+
H && /* @__PURE__ */ r(_, { children: [
|
|
449
453
|
/* @__PURE__ */ e(
|
|
450
454
|
K,
|
|
451
455
|
{
|
|
@@ -453,7 +457,7 @@ const ct = ({
|
|
|
453
457
|
sx: { mt: 3 },
|
|
454
458
|
fullWidth: !0,
|
|
455
459
|
variant: "contained",
|
|
456
|
-
onClick: () =>
|
|
460
|
+
onClick: () => w && w("/withdraw"),
|
|
457
461
|
children: /* @__PURE__ */ e("strong", { children: "Withdraw" })
|
|
458
462
|
}
|
|
459
463
|
),
|
|
@@ -463,80 +467,79 @@ const ct = ({
|
|
|
463
467
|
className: l["connect-wallet-signup"],
|
|
464
468
|
color: "primary",
|
|
465
469
|
variant: "caption",
|
|
466
|
-
onClick:
|
|
470
|
+
onClick: Pe,
|
|
467
471
|
children: /* @__PURE__ */ e("strong", { children: "Sell & Withdraw Info" })
|
|
468
472
|
}
|
|
469
473
|
)
|
|
470
474
|
] })
|
|
471
475
|
] }),
|
|
472
476
|
/* @__PURE__ */ e(
|
|
473
|
-
|
|
477
|
+
ct,
|
|
474
478
|
{
|
|
475
|
-
open:
|
|
479
|
+
open: We,
|
|
476
480
|
setModal: me,
|
|
477
|
-
loader:
|
|
481
|
+
loader: ne,
|
|
478
482
|
tokenList: P,
|
|
479
|
-
tokenSelect:
|
|
483
|
+
tokenSelect: ue
|
|
480
484
|
}
|
|
481
485
|
)
|
|
482
486
|
] });
|
|
483
|
-
},
|
|
484
|
-
setScreen:
|
|
485
|
-
partnerKey:
|
|
487
|
+
}, ut = ({
|
|
488
|
+
setScreen: v,
|
|
489
|
+
partnerKey: f,
|
|
486
490
|
orderData: c,
|
|
487
|
-
dispatch:
|
|
488
|
-
walletAddress:
|
|
489
|
-
navigate:
|
|
491
|
+
dispatch: d,
|
|
492
|
+
walletAddress: h,
|
|
493
|
+
navigate: F
|
|
490
494
|
}) => {
|
|
491
|
-
const { openDialog:
|
|
495
|
+
const { openDialog: N, ConfirmDialog: R } = Ce(), n = c.estimate, b = c.create.order_id, w = c.loader, g = n.fiat_amount, O = Ne(n.fiat_currency), [y, H] = p(!1);
|
|
492
496
|
x(() => {
|
|
493
|
-
|
|
494
|
-
icon:
|
|
497
|
+
b && y && N({
|
|
498
|
+
icon: He,
|
|
495
499
|
title: "Sell Success",
|
|
496
500
|
message: "Your transaction was successful for more details on the transaction please track your order.",
|
|
497
501
|
cancelButtonText: "Sell again",
|
|
498
502
|
onCancel: () => {
|
|
499
|
-
|
|
503
|
+
d(ee()), v(te);
|
|
500
504
|
},
|
|
501
505
|
confirmButtonText: "Track Order",
|
|
502
506
|
onConfirm: () => {
|
|
503
|
-
|
|
507
|
+
F && F("/history"), d(ee());
|
|
504
508
|
},
|
|
505
509
|
height: "490px"
|
|
506
510
|
});
|
|
507
|
-
}, [
|
|
511
|
+
}, [b]), x(() => {
|
|
508
512
|
L();
|
|
509
513
|
}, []);
|
|
510
514
|
const L = () => {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
payment_provider: r.payment_provider
|
|
515
|
+
d(
|
|
516
|
+
ve({
|
|
517
|
+
apiKey: f,
|
|
518
|
+
transaction_type: n.transaction_type,
|
|
519
|
+
coin_amount: n.crypto_amount,
|
|
520
|
+
exchange: n.exchange,
|
|
521
|
+
payment_type: n.payment_type,
|
|
522
|
+
fiat_ccy: n.fiat_currency,
|
|
523
|
+
crypto_ccy: n.crypto_currency,
|
|
524
|
+
network: n.network,
|
|
525
|
+
payment_provider: n.payment_provider
|
|
523
526
|
})
|
|
524
527
|
);
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
apiKey:
|
|
529
|
-
quoteId:
|
|
530
|
-
walletAddress:
|
|
528
|
+
}, D = () => {
|
|
529
|
+
d(
|
|
530
|
+
Ve({
|
|
531
|
+
apiKey: f,
|
|
532
|
+
quoteId: n.quote_id,
|
|
533
|
+
walletAddress: h
|
|
531
534
|
})
|
|
532
|
-
),
|
|
535
|
+
), H(!0);
|
|
533
536
|
};
|
|
534
|
-
return /* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */ e(
|
|
537
|
+
return /* @__PURE__ */ r(_, { children: [
|
|
538
|
+
/* @__PURE__ */ e(R, {}),
|
|
536
539
|
/* @__PURE__ */ e(
|
|
537
|
-
|
|
540
|
+
et,
|
|
538
541
|
{
|
|
539
|
-
onClickHandler: () =>
|
|
542
|
+
onClickHandler: () => v(te),
|
|
540
543
|
backBtnText: "Confirm Your Order"
|
|
541
544
|
}
|
|
542
545
|
),
|
|
@@ -547,131 +550,131 @@ const ct = ({
|
|
|
547
550
|
mt: 2,
|
|
548
551
|
className: l["confirm-payment"],
|
|
549
552
|
sx: { width: "100% !important" },
|
|
550
|
-
children: /* @__PURE__ */ e(s, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children:
|
|
553
|
+
children: /* @__PURE__ */ e(s, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: h }) })
|
|
551
554
|
}
|
|
552
555
|
),
|
|
553
556
|
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
554
|
-
/* @__PURE__ */ e(I, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */
|
|
555
|
-
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */
|
|
556
|
-
|
|
557
|
+
/* @__PURE__ */ e(I, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ r(o, { container: !0, children: [
|
|
558
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
559
|
+
n.crypto_currency.toUpperCase(),
|
|
557
560
|
" @",
|
|
558
561
|
" ",
|
|
559
|
-
Number(
|
|
562
|
+
Number(n.conversion_price).toFixed(2),
|
|
560
563
|
" ",
|
|
561
|
-
|
|
564
|
+
n.fiat_currency
|
|
562
565
|
] }) }),
|
|
563
566
|
/* @__PURE__ */ e(o, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
564
567
|
"span",
|
|
565
568
|
{
|
|
566
569
|
className: l["confirm-transaction-network"],
|
|
567
570
|
style: {
|
|
568
|
-
backgroundColor:
|
|
571
|
+
backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
569
572
|
},
|
|
570
|
-
children:
|
|
573
|
+
children: n.network
|
|
571
574
|
}
|
|
572
575
|
) }),
|
|
573
|
-
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */
|
|
574
|
-
Number(
|
|
576
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
577
|
+
Number(n.crypto_out_amount).toFixed(5),
|
|
575
578
|
" ",
|
|
576
|
-
|
|
579
|
+
n.crypto_currency.toUpperCase()
|
|
577
580
|
] }) }),
|
|
578
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
579
|
-
(Number(
|
|
581
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
582
|
+
(Number(g) - Number(n.total_fee)).toFixed(2),
|
|
580
583
|
" ",
|
|
581
|
-
|
|
584
|
+
n.fiat_currency
|
|
582
585
|
] }) }),
|
|
583
586
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
584
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
585
|
-
Number(
|
|
587
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
|
|
588
|
+
Number(n.total_fee).toFixed(2),
|
|
586
589
|
" ",
|
|
587
|
-
|
|
590
|
+
n.fiat_currency
|
|
588
591
|
] }) }),
|
|
589
592
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
590
|
-
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */
|
|
593
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ r("strong", { children: [
|
|
591
594
|
O,
|
|
592
|
-
Number(
|
|
595
|
+
Number(g).toFixed(2),
|
|
593
596
|
" ",
|
|
594
|
-
|
|
597
|
+
n.fiat_currency
|
|
595
598
|
] }) }) })
|
|
596
599
|
] }) }),
|
|
597
600
|
/* @__PURE__ */ e(I, { mt: 4, children: /* @__PURE__ */ e(
|
|
598
601
|
K,
|
|
599
602
|
{
|
|
600
|
-
onClick:
|
|
601
|
-
disabled:
|
|
603
|
+
onClick: D,
|
|
604
|
+
disabled: w,
|
|
602
605
|
fullWidth: !0,
|
|
603
|
-
children: /* @__PURE__ */ e("strong", { children:
|
|
604
|
-
/* @__PURE__ */ e(
|
|
606
|
+
children: /* @__PURE__ */ e("strong", { children: w ? /* @__PURE__ */ r(_, { children: [
|
|
607
|
+
/* @__PURE__ */ e(S, { size: 15, color: "inherit" }),
|
|
605
608
|
" Processing..."
|
|
606
609
|
] }) : "Sell" })
|
|
607
610
|
}
|
|
608
611
|
) })
|
|
609
612
|
] });
|
|
610
|
-
}, te = "FORM_SCREEN",
|
|
611
|
-
const c =
|
|
613
|
+
}, te = "FORM_SCREEN", ke = "CONFIRM_SCREEN", pt = "MINIMAL_KYC_SCREEN", ft = ({ partnerKey: v, navigate: f }) => {
|
|
614
|
+
const c = tt(), d = W((y) => y.order), h = d.error, F = W((y) => y.fiatAssets), N = W(
|
|
612
615
|
(y) => y.cryptoAssets
|
|
613
|
-
), [
|
|
616
|
+
), [R, n] = p(te), [b, w] = p(""), { showAlertMessage: g } = it();
|
|
614
617
|
return x(() => {
|
|
615
|
-
|
|
616
|
-
}, [
|
|
617
|
-
|
|
618
|
-
}, [
|
|
618
|
+
h && g({ message: h });
|
|
619
|
+
}, [h]), x(() => {
|
|
620
|
+
d.initMinimalKyc && (g({ message: h, type: "info" }), n(pt));
|
|
621
|
+
}, [d.initMinimalKyc]), x(() => (c(nt()), c(Je(Z)), c(ot()), () => {
|
|
619
622
|
c(ee());
|
|
620
|
-
}), []), /* @__PURE__ */ e(
|
|
623
|
+
}), []), /* @__PURE__ */ e(at, { addPadding: !0, children: {
|
|
621
624
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
622
|
-
|
|
625
|
+
dt,
|
|
623
626
|
{
|
|
624
|
-
showAlertMessage:
|
|
625
|
-
setScreen:
|
|
626
|
-
fiatAssets:
|
|
627
|
-
cryptoAssets:
|
|
628
|
-
orderData:
|
|
627
|
+
showAlertMessage: g,
|
|
628
|
+
setScreen: n,
|
|
629
|
+
fiatAssets: F,
|
|
630
|
+
cryptoAssets: N,
|
|
631
|
+
orderData: d,
|
|
629
632
|
dispatch: c,
|
|
630
633
|
getCryptoAssets: (y) => {
|
|
631
634
|
c(
|
|
632
|
-
|
|
633
|
-
type:
|
|
635
|
+
rt({
|
|
636
|
+
type: De,
|
|
634
637
|
id: y,
|
|
635
|
-
walletAddress:
|
|
636
|
-
partnerKey:
|
|
638
|
+
walletAddress: b,
|
|
639
|
+
partnerKey: v
|
|
637
640
|
})
|
|
638
641
|
);
|
|
639
642
|
},
|
|
640
|
-
partnerKey:
|
|
641
|
-
walletAddress:
|
|
642
|
-
setWalletAddress:
|
|
643
|
-
navigate:
|
|
643
|
+
partnerKey: v,
|
|
644
|
+
walletAddress: b,
|
|
645
|
+
setWalletAddress: w,
|
|
646
|
+
navigate: f
|
|
644
647
|
}
|
|
645
648
|
),
|
|
646
649
|
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
647
|
-
|
|
650
|
+
ut,
|
|
648
651
|
{
|
|
649
|
-
partnerKey:
|
|
650
|
-
setScreen:
|
|
651
|
-
showAlertMessage:
|
|
652
|
-
orderData:
|
|
652
|
+
partnerKey: v,
|
|
653
|
+
setScreen: n,
|
|
654
|
+
showAlertMessage: g,
|
|
655
|
+
orderData: d,
|
|
653
656
|
dispatch: c,
|
|
654
|
-
walletAddress:
|
|
655
|
-
navigate:
|
|
657
|
+
walletAddress: b,
|
|
658
|
+
navigate: f
|
|
656
659
|
}
|
|
657
660
|
),
|
|
658
661
|
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
659
|
-
|
|
662
|
+
st,
|
|
660
663
|
{
|
|
661
|
-
inputComponent:
|
|
664
|
+
inputComponent: lt,
|
|
662
665
|
buttonComponent: K,
|
|
663
666
|
onComplete: () => {
|
|
664
|
-
|
|
667
|
+
n(ke);
|
|
665
668
|
}
|
|
666
669
|
}
|
|
667
670
|
)
|
|
668
|
-
}[
|
|
669
|
-
}, Qt =
|
|
671
|
+
}[R] });
|
|
672
|
+
}, Qt = Ue(ft);
|
|
670
673
|
export {
|
|
671
|
-
|
|
674
|
+
ke as C,
|
|
672
675
|
te as F,
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
+
pt as M,
|
|
677
|
+
dt as S,
|
|
678
|
+
ut as a,
|
|
676
679
|
Qt as i
|
|
677
680
|
};
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { default as k } from "./components/Wallet/Stake/index.js";
|
|
|
10
10
|
import { default as g } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
|
|
11
11
|
import { default as w } from "./components/Wallet/SwapAndUniSwap/index.js";
|
|
12
12
|
import { i as P } from "./index-98VYd3cT.js";
|
|
13
|
-
import { i as v } from "./index-
|
|
13
|
+
import { i as v } from "./index-DHrWPN34.js";
|
|
14
14
|
import { i as D } from "./index-CFWL7CoB.js";
|
|
15
15
|
import { default as K } from "./components/Wallet/Swap/index.js";
|
|
16
16
|
import { default as A } from "./components/Wallet/EnterpriseKyc/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "everest-npm-features",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "Everest frontend features library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@mui/icons-material": "^6.0.2",
|
|
33
33
|
"@mui/material": "^6.0.2",
|
|
34
34
|
"@walletconnect/ethereum-provider": "^2.17.1",
|
|
35
|
-
"everest-npm-api": "^0.0.
|
|
35
|
+
"everest-npm-api": "^0.0.16",
|
|
36
36
|
"frames-react": "^1.2.2",
|
|
37
37
|
"moment": "^2.30.1",
|
|
38
38
|
"mui-one-time-password-input": "^5.0.0",
|