everest-npm-features 0.0.41 → 0.0.42
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
interface DepositProps {
|
|
2
2
|
navigate: (path: string) => void;
|
|
3
|
+
btcDepositAddress: string;
|
|
4
|
+
solDepositAddress: string;
|
|
5
|
+
ethDepositAddress: string;
|
|
6
|
+
trxDepositAddress: string;
|
|
3
7
|
}
|
|
4
8
|
declare const _default: import('react').FC<DepositProps & import('../../../hoc/withThemeProvider').WithThemeProviderProps>;
|
|
5
9
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import { C as
|
|
3
|
-
import { AuthContainer as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { C as a } from "../../../ContentCopy-coPwrEuz.js";
|
|
3
|
+
import { AuthContainer as d } from "../Shared/Container/index.js";
|
|
4
|
+
import m from "../../../hoc/withThemeProvider.js";
|
|
5
5
|
import "../../../index-DlQqWbXG.js";
|
|
6
6
|
import "../Shared/appButton.js";
|
|
7
7
|
import "react";
|
|
@@ -12,46 +12,42 @@ import "../../../util/conversions.js";
|
|
|
12
12
|
import "../../../index-CAoLi5Qq.js";
|
|
13
13
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
14
14
|
import "../../Shared/transition.js";
|
|
15
|
-
import { T as
|
|
15
|
+
import { T as l } from "../../../tooltip-3UvETWtS.js";
|
|
16
16
|
import "../Shared/pin.js";
|
|
17
17
|
import "../../../moment-h96o7c8I.js";
|
|
18
18
|
import "../../../index.esm-BsMAMhYW.js";
|
|
19
19
|
import "../../../web3-u4qDZYpo.js";
|
|
20
20
|
import "../../../index-ceeCtFuh.js";
|
|
21
21
|
import "../../../context/dialogContext.js";
|
|
22
|
-
import { T as
|
|
23
|
-
import { G as
|
|
22
|
+
import { T as s } from "../../../Typography-pAaje37G.js";
|
|
23
|
+
import { G as r } from "../../../Grid-CFe3amXO.js";
|
|
24
24
|
import { B as p } from "../../../Box-B0YSYLco.js";
|
|
25
|
-
import { I as
|
|
26
|
-
const
|
|
25
|
+
import { I as h } from "../../../IconButton-DHm-hucF.js";
|
|
26
|
+
const g = [
|
|
27
27
|
{
|
|
28
28
|
name: "BTC",
|
|
29
|
-
address: "1B1W3XY7nLpTzpn9dhfN6nQNthFc7nUsdt",
|
|
30
29
|
logo: "https://assets.coingecko.com/coins/images/1/small/bitcoin.png"
|
|
31
30
|
},
|
|
32
31
|
{
|
|
33
32
|
name: "ETH",
|
|
34
|
-
address: "0x60B8e0A7995178e300099738BD81F31F07dA0AbE",
|
|
35
33
|
logo: "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
|
|
36
34
|
},
|
|
37
35
|
{
|
|
38
36
|
name: "SOL",
|
|
39
|
-
address: "54mWV6k28gfwWeECWMT22uh8BPqFXZGADxGh5Rr4hGD3",
|
|
40
37
|
logo: "https://assets.coingecko.com/coins/images/4128/standard/solana.png"
|
|
41
38
|
},
|
|
42
39
|
{
|
|
43
40
|
name: "TRON",
|
|
44
|
-
address: "TAAHtssi4vnrt7i58Mv3HPac2GGsqPh6UB",
|
|
45
41
|
logo: "https://assets.coingecko.com/coins/images/1094/standard/tron-logo.png"
|
|
46
42
|
}
|
|
47
|
-
],
|
|
48
|
-
const { showAlertMessage:
|
|
43
|
+
], x = (o) => {
|
|
44
|
+
const { showAlertMessage: n } = c();
|
|
49
45
|
return /* @__PURE__ */ i(
|
|
50
|
-
|
|
46
|
+
r,
|
|
51
47
|
{
|
|
52
48
|
onClick: () => {
|
|
53
|
-
navigator.clipboard.writeText(
|
|
54
|
-
message: `${
|
|
49
|
+
navigator.clipboard.writeText(o.address), n({
|
|
50
|
+
message: `${o.name} address has been copied successfully.`,
|
|
55
51
|
type: "success"
|
|
56
52
|
});
|
|
57
53
|
},
|
|
@@ -71,12 +67,12 @@ const h = [
|
|
|
71
67
|
},
|
|
72
68
|
container: !0,
|
|
73
69
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ e(r, { size: { xs: 3 }, children: /* @__PURE__ */ i(p, { display: "flex", alignItems: "center", gap: 1.5, children: [
|
|
71
|
+
/* @__PURE__ */ e("img", { alt: o.name, src: o.logo, width: 24 }),
|
|
72
|
+
/* @__PURE__ */ e(s, { fontWeight: 600, variant: "body1", children: o.name })
|
|
77
73
|
] }) }),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
74
|
+
/* @__PURE__ */ e(r, { size: { xs: 7 }, children: /* @__PURE__ */ e(
|
|
75
|
+
s,
|
|
80
76
|
{
|
|
81
77
|
variant: "body1",
|
|
82
78
|
sx: {
|
|
@@ -85,37 +81,53 @@ const h = [
|
|
|
85
81
|
textOverflow: "ellipsis",
|
|
86
82
|
flex: 1
|
|
87
83
|
},
|
|
88
|
-
children:
|
|
84
|
+
children: o.address
|
|
89
85
|
}
|
|
90
86
|
) }),
|
|
91
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ e(r, { size: { xs: 2 }, textAlign: "right", children: /* @__PURE__ */ e(l, { title: "Copy address", children: /* @__PURE__ */ e(h, { size: "small", children: /* @__PURE__ */ e(a, { fontSize: "small", sx: { color: "#000" } }) }) }) })
|
|
92
88
|
]
|
|
93
89
|
}
|
|
94
90
|
);
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
}, f = (o) => {
|
|
92
|
+
const n = {
|
|
93
|
+
BTC: o.btcDepositAddress,
|
|
94
|
+
ETH: o.ethDepositAddress,
|
|
95
|
+
SOL: o.solDepositAddress,
|
|
96
|
+
TRON: o.trxDepositAddress
|
|
97
|
+
};
|
|
98
|
+
return /* @__PURE__ */ i(d, { addPadding: !0, children: [
|
|
99
|
+
/* @__PURE__ */ e(s, { variant: "h4", fontWeight: "bold", children: "Deposit" }),
|
|
100
|
+
/* @__PURE__ */ i(s, { mt: 2, variant: "body1", children: [
|
|
101
|
+
"Only send supported tokens from a",
|
|
102
|
+
" ",
|
|
103
|
+
/* @__PURE__ */ e(
|
|
104
|
+
s,
|
|
105
|
+
{
|
|
106
|
+
variant: "body1",
|
|
107
|
+
component: "span",
|
|
108
|
+
color: "primary",
|
|
109
|
+
sx: {
|
|
110
|
+
textDecoration: "underline",
|
|
111
|
+
fontWeight: "bold",
|
|
112
|
+
cursor: "pointer"
|
|
113
|
+
},
|
|
114
|
+
onClick: () => o.navigate("/accounts"),
|
|
115
|
+
children: "connected wallet"
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
", and send to the correct network address. Incorrect deposits may be lost."
|
|
119
|
+
] }),
|
|
120
|
+
g.map((t) => /* @__PURE__ */ e(
|
|
121
|
+
x,
|
|
102
122
|
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
onClick: () => e("/accounts"),
|
|
112
|
-
children: "connected wallet"
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
", and send to the correct network address. Incorrect deposits may be lost."
|
|
116
|
-
] }),
|
|
117
|
-
h.map((r) => /* @__PURE__ */ o(g, { network: r }, r.name))
|
|
118
|
-
] }), q = d(x);
|
|
123
|
+
name: t.name,
|
|
124
|
+
logo: t.logo,
|
|
125
|
+
address: n[t.name]
|
|
126
|
+
},
|
|
127
|
+
t.name
|
|
128
|
+
))
|
|
129
|
+
] });
|
|
130
|
+
}, P = m(f);
|
|
119
131
|
export {
|
|
120
|
-
|
|
132
|
+
P as default
|
|
121
133
|
};
|