everest-npm-features 0.0.57 → 0.0.59

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.
Files changed (103) hide show
  1. package/dist/{PlayArrow-jzz8Y3XD.js → PlayArrow-BlkZJiHn.js} +1 -1
  2. package/dist/{auth-jjVjqywi.js → auth-WhDJHZtr.js} +1 -1
  3. package/dist/{bank-BM66KfAv.js → bank-BaOrdTcI.js} +1 -1
  4. package/dist/components/RocketRamp/MinimalKyc/form.js +5 -4
  5. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  6. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  7. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  8. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  9. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  10. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  13. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  14. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  15. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  18. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  19. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  20. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  21. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  23. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  24. package/dist/components/Shared/FullKyc/edd.js +5 -4
  25. package/dist/components/Shared/FullKyc/index.js +4 -4
  26. package/dist/components/Shared/FullKyc/pep.js +1 -1
  27. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  28. package/dist/components/Shared/FullKyc/userInfo.js +3 -3
  29. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  30. package/dist/components/Shared/Sumsub/index.d.ts +5 -0
  31. package/dist/components/Shared/Sumsub/index.js +83 -0
  32. package/dist/components/Wallet/Account/createIban.js +4 -3
  33. package/dist/components/Wallet/Account/eWallet.d.ts +4 -2
  34. package/dist/components/Wallet/Account/eWallet.js +30 -28
  35. package/dist/components/Wallet/Account/iban.d.ts +4 -2
  36. package/dist/components/Wallet/Account/iban.js +30 -28
  37. package/dist/components/Wallet/Account/ibanItem.d.ts +4 -2
  38. package/dist/components/Wallet/Account/ibanItem.js +180 -175
  39. package/dist/components/Wallet/Account/index.js +191 -177
  40. package/dist/components/Wallet/Account/sendIban.js +11 -11
  41. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -5
  42. package/dist/components/Wallet/Buy/form.js +4 -4
  43. package/dist/components/Wallet/Buy/index.js +6 -6
  44. package/dist/components/Wallet/Deposit/index.js +4 -3
  45. package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -3
  46. package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
  47. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +13 -12
  48. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +4 -3
  49. package/dist/components/Wallet/EnterpriseKyc/verify.js +4 -3
  50. package/dist/components/Wallet/History/index.js +2 -2
  51. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.d.ts +7 -13
  52. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +216 -231
  53. package/dist/components/Wallet/Portfolio/index.js +8 -7
  54. package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
  55. package/dist/components/Wallet/Profile/documents.js +15 -15
  56. package/dist/components/Wallet/Profile/index.js +4 -3
  57. package/dist/components/Wallet/Profile/storage.js +12 -12
  58. package/dist/components/Wallet/Receive/index.js +2 -2
  59. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -4
  60. package/dist/components/Wallet/Sell/form.js +4 -4
  61. package/dist/components/Wallet/Sell/index.js +6 -6
  62. package/dist/components/Wallet/Send/index.js +14 -13
  63. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  64. package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
  65. package/dist/components/Wallet/Shared/CardCorp/index.js +4 -3
  66. package/dist/components/Wallet/Shared/addBank.js +5 -4
  67. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  68. package/dist/components/Wallet/Shared/manualSend.js +5 -4
  69. package/dist/components/Wallet/SignIn/index.js +2 -2
  70. package/dist/components/Wallet/SignUp/index.js +2 -2
  71. package/dist/components/Wallet/Stake/gems/index.d.ts +26 -2
  72. package/dist/components/Wallet/Stake/gems/index.js +74 -85
  73. package/dist/components/Wallet/Stake/id/index.d.ts +27 -1
  74. package/dist/components/Wallet/Stake/id/index.js +68 -78
  75. package/dist/components/Wallet/Stake/index.d.ts +4 -1
  76. package/dist/components/Wallet/Stake/index.js +233 -201
  77. package/dist/components/Wallet/Swap/form.js +7 -6
  78. package/dist/components/Wallet/Swap/index.js +5 -5
  79. package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
  80. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
  81. package/dist/components/Wallet/Withdraw/form.js +4 -4
  82. package/dist/components/Wallet/Withdraw/index.js +5 -5
  83. package/dist/{constants-Dtk3Gd0Y.js → constants-DREDnCMu.js} +482 -481
  84. package/dist/{cryptoAssets-DT2afvDJ.js → cryptoAssets-DbyDgq4J.js} +1 -1
  85. package/dist/{index-BGJ8RVKA.js → index-BXutc9ik.js} +8 -7
  86. package/dist/index-CWoxdH_Z.js +543 -0
  87. package/dist/{index-CyPm8GTl.js → index-CuPCW3XC.js} +29 -29
  88. package/dist/{index-BUnkeQv6.js → index-DJ7xuxBy.js} +9 -8
  89. package/dist/{index-BEFNlxwM.js → index-DV1dVcrY.js} +31 -30
  90. package/dist/{index-B4pP4oLo.js → index-DYP5Ex_T.js} +9 -8
  91. package/dist/{index-JdlBukUO.js → index-PoMNqntN.js} +4 -4
  92. package/dist/index.esm-I_Bp2YLf.js +224 -0
  93. package/dist/kyc-D4s_B9Cf.js +33 -0
  94. package/dist/main.js +7 -7
  95. package/dist/{order-DuPcaU0K.js → order-DGBbo_Ox.js} +1 -1
  96. package/dist/{stake-WaB8Q4v-.js → stake-CdMc5H7D.js} +1 -1
  97. package/dist/{tokenRow-B-tustzZ.js → tokenRow-C-iMHhPj.js} +14 -12
  98. package/dist/util/constants.d.ts +5 -0
  99. package/dist/util/constants.js +105 -101
  100. package/dist/{wallet-BxwOFeSW.js → wallet-DvfdQOju.js} +10 -10
  101. package/package.json +4 -2
  102. package/dist/index-BU6Lajc_.js +0 -503
  103. package/dist/kyc-BOm2LCSg.js +0 -26
@@ -1,37 +1,39 @@
1
- import { jsxs as i, Fragment as B, jsx as e } from "react/jsx-runtime";
2
- import $ from "../../Shared/noData.js";
3
- import { M as p } from "../../../../tooltip-3UvETWtS.js";
1
+ import { jsxs as t, Fragment as _, jsx as e } from "react/jsx-runtime";
2
+ import F from "../../Shared/noData.js";
3
+ import { M as f } from "../../../../tooltip-3UvETWtS.js";
4
4
  import { I as u } from "../../../../Info-BVeUSPyk.js";
5
- import { STAKE_ID_MIN_DAYS as g, STAKE_ID_MID_DAYS as x, STAKE_ID_MAX_DAYS as v } from "../../../../util/constants.js";
5
+ import { STAKE_ID_MIN_DAYS as g, STAKE_ID_MID_DAYS as x, STAKE_ID_MAX_DAYS as T } from "../../../../util/constants.js";
6
6
  import { s as r } from "../../../../styles.module-C1sNeKjL.js";
7
- import { B as _ } from "../../../../Backdrop-CioURPVG.js";
7
+ import c from "../../Shared/appButton.js";
8
+ import { B as M } from "../../../../Backdrop-CioURPVG.js";
8
9
  import { C as k } from "../../../../CircularProgress-xZA3lvba.js";
9
- import { G as t } from "../../../../Grid-CFe3amXO.js";
10
+ import { G as i } from "../../../../Grid-CFe3amXO.js";
10
11
  import { B as a } from "../../../../Box-B0YSYLco.js";
11
12
  import { T as n } from "../../../../Typography-pAaje37G.js";
12
13
  import { I as D } from "../../../../IconButton-DHm-hucF.js";
13
- import { B as c } from "../../../../Button-Df4vgU24.js";
14
- import { D as T } from "../../../../Divider-BShhMFf4.js";
15
- import { F } from "../../../../FormControl-RtZDQMdA.js";
16
- import { T as M } from "../../../../TextField-DPpRUQe3.js";
17
- const ee = ({
18
- history: d,
19
- loader: I,
20
- stakeData: m,
14
+ import { D as I } from "../../../../Divider-BShhMFf4.js";
15
+ import { F as Y } from "../../../../FormControl-RtZDQMdA.js";
16
+ import { T as R } from "../../../../TextField-DPpRUQe3.js";
17
+ const ie = ({
18
+ loader: v,
19
+ stakeData: d,
21
20
  totalStake: N,
22
- totalReward: C,
23
- StakeItem: z,
24
- stakeStart: w,
25
- amount: S,
26
- setAmount: h,
21
+ totalReward: y,
22
+ StakeItem: C,
23
+ stakeStart: z,
24
+ amount: w,
25
+ setAmount: m,
27
26
  stakeDuration: s,
28
27
  setStakeDuration: l,
29
- balanceLoader: y,
30
- balance: A
28
+ balanceLoader: S,
29
+ balance: h,
30
+ onMoveToEthereum: A,
31
+ onMoveToEverChain: E,
32
+ ethereumBalance: $
31
33
  }) => {
32
34
  const b = (o) => {
33
- o ? /^([0-9.,]+)$/.test(o) && h(o) : h("");
34
- }, E = [
35
+ o ? /^([0-9.,]+)$/.test(o) && m(o) : m("");
36
+ }, B = [
35
37
  "To earn reward tokens you must stake ID tokens in your EverWallet",
36
38
  "Staking Rewards...",
37
39
  `Commit for 90 days to earn 3% APY
@@ -42,39 +44,39 @@ Commit for 365 days to earn 18% APY`,
42
44
  ].join(`
43
45
 
44
46
  `);
45
- return /* @__PURE__ */ i(B, { children: [
47
+ return /* @__PURE__ */ t(_, { children: [
46
48
  /* @__PURE__ */ e(
47
- _,
49
+ M,
48
50
  {
49
51
  sx: {
50
52
  color: "#fff",
51
53
  zIndex: (o) => o.zIndex.drawer + 1e3
52
54
  },
53
- open: I,
55
+ open: v,
54
56
  children: /* @__PURE__ */ e(k, { color: "inherit" })
55
57
  }
56
58
  ),
57
- /* @__PURE__ */ i(t, { spacing: 2, container: !0, width: "100%", children: [
58
- /* @__PURE__ */ e(t, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ e(a, { className: r["inner-container"], children: /* @__PURE__ */ i(a, { p: 3, children: [
59
+ /* @__PURE__ */ t(i, { spacing: 2, container: !0, width: "100%", children: [
60
+ /* @__PURE__ */ e(i, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ e(a, { className: r["inner-container"], children: /* @__PURE__ */ t(a, { p: 3, children: [
59
61
  /* @__PURE__ */ e(n, { className: r["heading-text"], variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Current Stakes" }) }),
60
- /* @__PURE__ */ i(t, { mt: 4, spacing: 1, container: !0, width: "100%", children: [
61
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ e(n, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Staked" }) }) }),
62
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ i(n, { className: "text-right fs16 fw500", children: [
62
+ /* @__PURE__ */ t(i, { mt: 4, spacing: 1, container: !0, width: "100%", children: [
63
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(n, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Staked" }) }) }),
64
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ t(n, { className: "text-right fs16 fw500", children: [
63
65
  N,
64
66
  " ID"
65
67
  ] }) }),
66
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ e(n, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Reward" }) }) }),
67
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ i(n, { className: "text-right fs16 fw500", children: [
68
- C,
68
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(n, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Reward" }) }) }),
69
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ t(n, { className: "text-right fs16 fw500", children: [
70
+ y,
69
71
  " ID"
70
72
  ] }) })
71
73
  ] }),
72
- /* @__PURE__ */ i(a, { mt: 6, children: [
73
- m.length === 0 && /* @__PURE__ */ e($, { text: "No ID are staked at the moment" }),
74
- m.map((o, f) => /* @__PURE__ */ e(z, { data: o }, f))
74
+ /* @__PURE__ */ t(a, { mt: 6, children: [
75
+ d.length === 0 && /* @__PURE__ */ e(F, { text: "No ID are staked at the moment" }),
76
+ d.map((o, p) => /* @__PURE__ */ e(C, { data: o }, p))
75
77
  ] })
76
78
  ] }) }) }),
77
- /* @__PURE__ */ e(t, { size: { xs: 12, md: 7 }, children: /* @__PURE__ */ i(a, { p: 3, className: r["inner-container"], children: [
79
+ /* @__PURE__ */ e(i, { size: { xs: 12, md: 7 }, children: /* @__PURE__ */ t(a, { p: 3, className: r["inner-container"], children: [
78
80
  /* @__PURE__ */ e(
79
81
  n,
80
82
  {
@@ -85,9 +87,9 @@ Commit for 365 days to earn 18% APY`,
85
87
  }
86
88
  ),
87
89
  /* @__PURE__ */ e(
88
- p,
90
+ f,
89
91
  {
90
- title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: E }),
92
+ title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: B }),
91
93
  placement: "bottom",
92
94
  children: /* @__PURE__ */ e(D, { className: r["info-icon"], children: /* @__PURE__ */ e(
93
95
  u,
@@ -100,48 +102,46 @@ Commit for 365 days to earn 18% APY`,
100
102
  ) })
101
103
  }
102
104
  ),
103
- /* @__PURE__ */ i(a, { className: `${r["add-container"]} text-center`, children: [
105
+ /* @__PURE__ */ t(a, { className: `${r["add-container"]} text-center`, children: [
104
106
  /* @__PURE__ */ e(n, { variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Available ID on EverChain" }) }),
105
- y ? /* @__PURE__ */ e(k, {}) : /* @__PURE__ */ e(
107
+ S ? /* @__PURE__ */ e(k, {}) : /* @__PURE__ */ e(
106
108
  n,
107
109
  {
108
110
  sx: { mt: 2 },
109
111
  className: "secondary-text-color",
110
112
  variant: "h3",
111
- children: /* @__PURE__ */ i("strong", { children: [
112
- A,
113
+ children: /* @__PURE__ */ t("strong", { children: [
114
+ h,
113
115
  " ID"
114
116
  ] })
115
117
  }
116
118
  ),
117
- /* @__PURE__ */ i(t, { className: "items-center", container: !0, mt: 4, width: "100%", children: [
118
- /* @__PURE__ */ e(t, { size: 11, children: /* @__PURE__ */ i("fieldset", { className: r["move-id"], children: [
119
+ /* @__PURE__ */ t(i, { className: "items-center", container: !0, mt: 4, width: "100%", children: [
120
+ /* @__PURE__ */ e(i, { size: 11, children: /* @__PURE__ */ t("fieldset", { className: r["move-id"], children: [
119
121
  /* @__PURE__ */ e("legend", { className: r["move-id-text"], children: "Move ID Tokens" }),
120
122
  /* @__PURE__ */ e(
121
123
  c,
122
124
  {
123
- className: r["move-btn"],
124
- variant: "contained",
125
- onClick: () => d.push("/move/id/everchain"),
125
+ variantType: "secondary",
126
+ onClick: () => E(Number($)),
126
127
  children: "To EverChain"
127
128
  }
128
129
  ),
129
130
  /* @__PURE__ */ e(
130
131
  c,
131
132
  {
133
+ variantType: "secondary",
132
134
  sx: {
133
135
  ml: { md: 3 },
134
136
  mt: { xs: 1, md: 0 }
135
137
  },
136
- className: r["move-btn"],
137
- variant: "contained",
138
- onClick: () => d.push("/move/id/ethereum"),
138
+ onClick: () => A(Number(h)),
139
139
  children: "To Ethereum"
140
140
  }
141
141
  )
142
142
  ] }) }),
143
- /* @__PURE__ */ e(t, { size: 1, children: /* @__PURE__ */ e(
144
- p,
143
+ /* @__PURE__ */ e(i, { size: 1, children: /* @__PURE__ */ e(
144
+ f,
145
145
  {
146
146
  title: "To stake your ID Token, the token must be on EverChain. To move ID Token from Ethereum to EverChain or back requires ETH to pay the network fees.",
147
147
  placement: "top",
@@ -157,8 +157,8 @@ Commit for 365 days to earn 18% APY`,
157
157
  }
158
158
  ) })
159
159
  ] }),
160
- /* @__PURE__ */ i(
161
- t,
160
+ /* @__PURE__ */ t(
161
+ i,
162
162
  {
163
163
  mt: 4,
164
164
  sx: {
@@ -170,7 +170,7 @@ Commit for 365 days to earn 18% APY`,
170
170
  width: "100%",
171
171
  children: [
172
172
  /* @__PURE__ */ e(
173
- t,
173
+ i,
174
174
  {
175
175
  className: `${r["time-item"]} ${r["item-1st"]} ${s === g ? r.active : ""}`,
176
176
  onClick: () => l(g),
@@ -178,9 +178,9 @@ Commit for 365 days to earn 18% APY`,
178
178
  children: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e("strong", { children: "90 Days" }) })
179
179
  }
180
180
  ),
181
- /* @__PURE__ */ e(t, { size: 0.01, children: /* @__PURE__ */ e(T, { orientation: "vertical" }) }),
181
+ /* @__PURE__ */ e(i, { size: 0.01, children: /* @__PURE__ */ e(I, { orientation: "vertical" }) }),
182
182
  /* @__PURE__ */ e(
183
- t,
183
+ i,
184
184
  {
185
185
  className: `${r["time-item"]} ${s === x ? r.active : ""}`,
186
186
  onClick: () => l(x),
@@ -188,12 +188,12 @@ Commit for 365 days to earn 18% APY`,
188
188
  children: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e("strong", { children: "180 Days" }) })
189
189
  }
190
190
  ),
191
- /* @__PURE__ */ e(t, { size: 0.01, children: /* @__PURE__ */ e(T, { orientation: "vertical" }) }),
191
+ /* @__PURE__ */ e(i, { size: 0.01, children: /* @__PURE__ */ e(I, { orientation: "vertical" }) }),
192
192
  /* @__PURE__ */ e(
193
- t,
193
+ i,
194
194
  {
195
- className: `${r["time-item"]} ${r["item-last"]} ${s === v ? r.active : ""}`,
196
- onClick: () => l(v),
195
+ className: `${r["time-item"]} ${r["item-last"]} ${s === T ? r.active : ""}`,
196
+ onClick: () => l(T),
197
197
  size: 4,
198
198
  children: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e("strong", { children: "365 Days" }) })
199
199
  }
@@ -201,33 +201,23 @@ Commit for 365 days to earn 18% APY`,
201
201
  ]
202
202
  }
203
203
  ),
204
- /* @__PURE__ */ e(F, { sx: { mt: 4 }, fullWidth: !0, children: /* @__PURE__ */ e(
205
- M,
204
+ /* @__PURE__ */ e(Y, { sx: { mt: 4 }, fullWidth: !0, children: /* @__PURE__ */ e(
205
+ R,
206
206
  {
207
207
  variant: "filled",
208
208
  placeholder: "Amount to Stake",
209
- value: S,
209
+ value: w,
210
210
  fullWidth: !0,
211
211
  required: !0,
212
212
  onChange: (o) => b(o.target.value)
213
213
  }
214
214
  ) }),
215
- /* @__PURE__ */ e(
216
- c,
217
- {
218
- sx: { mt: 4 },
219
- onClick: w,
220
- className: "wallet-btn",
221
- variant: "contained",
222
- fullWidth: !0,
223
- children: /* @__PURE__ */ e("strong", { children: "Stake" })
224
- }
225
- )
215
+ /* @__PURE__ */ e(c, { sx: { mt: 4 }, onClick: () => z(), fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Stake" }) })
226
216
  ] })
227
217
  ] }) })
228
218
  ] })
229
219
  ] });
230
220
  };
231
221
  export {
232
- ee as default
222
+ ie as default
233
223
  };
@@ -1,5 +1,8 @@
1
1
  interface StakeProps {
2
- router: any;
2
+ navigate: (path: string) => void;
3
+ depositAddress: string;
4
+ gemTokenAddress: string;
5
+ idTokenAddress: string;
3
6
  }
4
7
  declare const _default: import('react').FC<StakeProps & import('../../../hoc/withThemeProvider').WithThemeProviderProps>;
5
8
  export default _default;