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 o } from "react/jsx-runtime";
2
- import { C as n } from "../../../ContentCopy-coPwrEuz.js";
3
- import { AuthContainer as a } from "../Shared/Container/index.js";
4
- import d from "../../../hoc/withThemeProvider.js";
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 m } from "../../../tooltip-3UvETWtS.js";
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 t } from "../../../Typography-pAaje37G.js";
23
- import { G as s } from "../../../Grid-CFe3amXO.js";
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 l } from "../../../IconButton-DHm-hucF.js";
26
- const h = [
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
- ], g = ({ network: e }) => {
48
- const { showAlertMessage: r } = c();
43
+ ], x = (o) => {
44
+ const { showAlertMessage: n } = c();
49
45
  return /* @__PURE__ */ i(
50
- s,
46
+ r,
51
47
  {
52
48
  onClick: () => {
53
- navigator.clipboard.writeText(e.address), r({
54
- message: `${e.name} address has been copied successfully.`,
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__ */ o(s, { size: { xs: 3 }, children: /* @__PURE__ */ i(p, { display: "flex", alignItems: "center", gap: 1.5, children: [
75
- /* @__PURE__ */ o("img", { alt: e.name, src: e.logo, width: 24 }),
76
- /* @__PURE__ */ o(t, { fontWeight: 600, variant: "body1", children: e.name })
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__ */ o(s, { size: { xs: 7 }, children: /* @__PURE__ */ o(
79
- t,
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: e.address
84
+ children: o.address
89
85
  }
90
86
  ) }),
91
- /* @__PURE__ */ o(s, { size: { xs: 2 }, textAlign: "right", children: /* @__PURE__ */ o(m, { title: "Copy address", children: /* @__PURE__ */ o(l, { size: "small", children: /* @__PURE__ */ o(n, { fontSize: "small", sx: { color: "#000" } }) }) }) })
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
- }, x = ({ navigate: e }) => /* @__PURE__ */ i(a, { addPadding: !0, children: [
96
- /* @__PURE__ */ o(t, { variant: "h4", fontWeight: "bold", children: "Deposit" }),
97
- /* @__PURE__ */ i(t, { mt: 2, variant: "body1", children: [
98
- "Only send supported tokens from a",
99
- " ",
100
- /* @__PURE__ */ o(
101
- t,
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
- variant: "body1",
104
- component: "span",
105
- color: "primary",
106
- sx: {
107
- textDecoration: "underline",
108
- fontWeight: "bold",
109
- cursor: "pointer"
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
- q as default
132
+ P as default
121
133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",