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
@@ -7,8 +7,8 @@ import "../../../generic-token-B_ptO5yb.js";
7
7
  import "./appButton.js";
8
8
  import "./timer.js";
9
9
  import "../../../util/functions.js";
10
- import "../../../constants-Dtk3Gd0Y.js";
11
- import "../../../order-DuPcaU0K.js";
10
+ import "../../../constants-DREDnCMu.js";
11
+ import "../../../order-DGBbo_Ox.js";
12
12
  import "../../../index-DlQqWbXG.js";
13
13
  import "../../../hoc/withThemeProvider.js";
14
14
  import "./Input/index.js";
@@ -26,7 +26,8 @@ import "../../../index.esm-BsMAMhYW.js";
26
26
  import "../../../web3-u4qDZYpo.js";
27
27
  import "../../../styles.module-DMd29SPQ.js";
28
28
  import "../../../index-ceeCtFuh.js";
29
- import { M as K } from "../../../index-BGJ8RVKA.js";
29
+ import { M as L } from "../../../index-BXutc9ik.js";
30
+ import "../../../index.esm-I_Bp2YLf.js";
30
31
  import "../../../context/dialogContext.js";
31
32
  import "../../../Box-B0YSYLco.js";
32
33
  import "../../../Grid-CFe3amXO.js";
@@ -35,5 +36,5 @@ import "../../../Divider-BShhMFf4.js";
35
36
  import "../../../IconButton-DHm-hucF.js";
36
37
  import "../../../CircularProgress-xZA3lvba.js";
37
38
  export {
38
- K as default
39
+ L as default
39
40
  };
@@ -4,8 +4,8 @@ import { u as L } from "../../../react-redux-C7I9-1M6.js";
4
4
  import S from "../../../hoc/withThemeProvider.js";
5
5
  import v from "../Shared/Auth/emailForm.js";
6
6
  import x from "../Shared/Auth/otpForm.js";
7
- import "../../../constants-Dtk3Gd0Y.js";
8
- import { a as O, l as R, v as k } from "../../../auth-jjVjqywi.js";
7
+ import "../../../constants-DREDnCMu.js";
8
+ import { a as O, l as R, v as k } from "../../../auth-WhDJHZtr.js";
9
9
  import q from "../Shared/Container/index.js";
10
10
  import { LOGIN_SCREEN as f } from "../../../util/constants.js";
11
11
  import { useSnackBarContext as C } from "../../../context/snackBarContext.js";
@@ -5,8 +5,8 @@ import { u as w } from "../../../react-redux-C7I9-1M6.js";
5
5
  import B from "../../../hoc/withThemeProvider.js";
6
6
  import M from "../Shared/Auth/emailForm.js";
7
7
  import L from "../Shared/Auth/otpForm.js";
8
- import "../../../constants-Dtk3Gd0Y.js";
9
- import { a as N, h as P, i as U } from "../../../auth-jjVjqywi.js";
8
+ import "../../../constants-DREDnCMu.js";
9
+ import { a as N, h as P, i as U } from "../../../auth-WhDJHZtr.js";
10
10
  import k from "../Shared/Container/index.js";
11
11
  import { REGISTER_SCREEN as S } from "../../../util/constants.js";
12
12
  import q from "./terms.js";
@@ -1,2 +1,26 @@
1
- declare const _default: import('react').FC<any>;
2
- export default _default;
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface StakeListItem {
3
+ tokensStake: number | string;
4
+ tokensReward: number | string;
5
+ days: number;
6
+ }
7
+ type StakeItemRenderer = (props: {
8
+ data: StakeListItem;
9
+ }) => JSX.Element;
10
+ interface StakeGemProps {
11
+ onMoveToEthereum: (balance: number) => void;
12
+ onMoveToEverChain: (balance: number) => void;
13
+ ethereumBalance: number;
14
+ loader: boolean;
15
+ stakeData: StakeListItem[];
16
+ totalStake: number;
17
+ totalReward: number;
18
+ StakeItem: StakeItemRenderer;
19
+ stakeStart: (action?: string) => void;
20
+ amount: string;
21
+ setAmount: Dispatch<SetStateAction<string>>;
22
+ balanceLoader: boolean;
23
+ balance: number;
24
+ }
25
+ declare const StakeGem: ({ loader, stakeData, totalStake, totalReward, StakeItem, stakeStart, amount, setAmount, balanceLoader, balance, onMoveToEthereum, onMoveToEverChain, ethereumBalance, }: StakeGemProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default StakeGem;
@@ -1,34 +1,35 @@
1
- import { jsxs as i, Fragment as z, jsx as e } from "react/jsx-runtime";
2
- import I from "../../Shared/noData.js";
1
+ import { jsxs as t, Fragment as C, jsx as e } from "react/jsx-runtime";
2
+ import M from "../../Shared/noData.js";
3
3
  import { M as h } from "../../../../tooltip-3UvETWtS.js";
4
4
  import { I as p } from "../../../../Info-BVeUSPyk.js";
5
- import C from "../../../../hoc/withThemeProvider.js";
6
- import { s as r } from "../../../../styles.module-C1sNeKjL.js";
7
- import { B as G } from "../../../../Backdrop-CioURPVG.js";
5
+ import { s as i } from "../../../../styles.module-C1sNeKjL.js";
6
+ import s from "../../Shared/appButton.js";
7
+ import { B as w } from "../../../../Backdrop-CioURPVG.js";
8
8
  import { C as f } from "../../../../CircularProgress-xZA3lvba.js";
9
- import { G as t } from "../../../../Grid-CFe3amXO.js";
9
+ import { G as r } from "../../../../Grid-CFe3amXO.js";
10
10
  import { B as a } from "../../../../Box-B0YSYLco.js";
11
11
  import { T as o } from "../../../../Typography-pAaje37G.js";
12
12
  import { I as u } from "../../../../IconButton-DHm-hucF.js";
13
- import { B as s } from "../../../../Button-Df4vgU24.js";
14
- import { F as M } from "../../../../FormControl-RtZDQMdA.js";
15
- import { T as y } from "../../../../TextField-DPpRUQe3.js";
16
- const B = ({
17
- history: c,
13
+ import { F as G } from "../../../../FormControl-RtZDQMdA.js";
14
+ import { T as B } from "../../../../TextField-DPpRUQe3.js";
15
+ const Q = ({
18
16
  loader: x,
19
- stakeData: l,
17
+ stakeData: c,
20
18
  totalStake: g,
21
- totalReward: v,
22
- StakeItem: k,
23
- stakeStart: T,
24
- amount: N,
25
- setAmount: m,
26
- balanceLoader: E,
27
- balance: S
19
+ totalReward: k,
20
+ StakeItem: T,
21
+ stakeStart: v,
22
+ amount: E,
23
+ setAmount: l,
24
+ balanceLoader: N,
25
+ balance: m,
26
+ onMoveToEthereum: S,
27
+ onMoveToEverChain: y,
28
+ ethereumBalance: D
28
29
  }) => {
29
- const D = (n) => {
30
- n ? /^([0-9.,]+)$/.test(n) && m(n) : m("");
31
- }, w = [
30
+ const z = (n) => {
31
+ n ? /^([0-9.,]+)$/.test(n) && l(n) : l("");
32
+ }, I = [
32
33
  "To earn reward tokens you must stake GEMS “to EverChain”",
33
34
  "Staking GEMS for a 365 day commitment will earn up to 20% APY in ID tokens*",
34
35
  "* there is a 10M maximum supply of IDs for staking GEMS",
@@ -36,9 +37,9 @@ const B = ({
36
37
  ].join(`
37
38
 
38
39
  `);
39
- return /* @__PURE__ */ i(z, { children: [
40
+ return /* @__PURE__ */ t(C, { children: [
40
41
  /* @__PURE__ */ e(
41
- G,
42
+ w,
42
43
  {
43
44
  sx: {
44
45
  color: "#fff",
@@ -48,38 +49,31 @@ const B = ({
48
49
  children: /* @__PURE__ */ e(f, { color: "inherit" })
49
50
  }
50
51
  ),
51
- /* @__PURE__ */ i(t, { spacing: 2, container: !0, width: "100%", children: [
52
- /* @__PURE__ */ e(t, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ e(a, { className: r["inner-container"], children: /* @__PURE__ */ i(a, { p: 3, children: [
53
- /* @__PURE__ */ e(
54
- o,
55
- {
56
- className: r["heading-text"],
57
- variant: "h6",
58
- children: /* @__PURE__ */ e("strong", { children: "Current Stakes" })
59
- }
60
- ),
61
- /* @__PURE__ */ i(t, { mt: 4, spacing: 1, container: !0, width: "100%", children: [
62
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Staked" }) }) }),
63
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ i(o, { className: "text-right fs16 fw500", children: [
52
+ /* @__PURE__ */ t(r, { spacing: 2, container: !0, width: "100%", children: [
53
+ /* @__PURE__ */ e(r, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ e(a, { className: i["inner-container"], children: /* @__PURE__ */ t(a, { p: 3, children: [
54
+ /* @__PURE__ */ e(o, { className: i["heading-text"], variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Current Stakes" }) }),
55
+ /* @__PURE__ */ t(r, { mt: 4, spacing: 1, container: !0, width: "100%", children: [
56
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Staked" }) }) }),
57
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ t(o, { className: "text-right fs16 fw500", children: [
64
58
  g,
65
59
  " GEMS"
66
60
  ] }) }),
67
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Reward" }) }) }),
68
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ i(o, { className: "text-right fs16 fw500", children: [
69
- v,
61
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Reward" }) }) }),
62
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ t(o, { className: "text-right fs16 fw500", children: [
63
+ k,
70
64
  " ID"
71
65
  ] }) })
72
66
  ] }),
73
- /* @__PURE__ */ i(a, { mt: 6, children: [
74
- l.length === 0 && /* @__PURE__ */ e(I, { text: "No GEM are staked at the moment" }),
75
- l.map((n, d) => /* @__PURE__ */ e(k, { data: n }, d))
67
+ /* @__PURE__ */ t(a, { mt: 6, children: [
68
+ c.length === 0 && /* @__PURE__ */ e(M, { text: "No GEM are staked at the moment" }),
69
+ c.map((n, d) => /* @__PURE__ */ e(T, { data: n }, d))
76
70
  ] })
77
71
  ] }) }) }),
78
- /* @__PURE__ */ e(t, { size: { xs: 12, md: 7 }, children: /* @__PURE__ */ i(a, { p: 3, className: r["inner-container"], children: [
72
+ /* @__PURE__ */ e(r, { size: { xs: 12, md: 7 }, children: /* @__PURE__ */ t(a, { p: 3, className: i["inner-container"], children: [
79
73
  /* @__PURE__ */ e(
80
74
  o,
81
75
  {
82
- className: r["heading-text"],
76
+ className: i["heading-text"],
83
77
  variant: "h6",
84
78
  component: "span",
85
79
  children: /* @__PURE__ */ e("strong", { children: "Stake Tokens" })
@@ -88,9 +82,9 @@ const B = ({
88
82
  /* @__PURE__ */ e(
89
83
  h,
90
84
  {
91
- title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: w }),
85
+ title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: I }),
92
86
  placement: "bottom",
93
- children: /* @__PURE__ */ e(u, { className: r["info-icon"], children: /* @__PURE__ */ e(
87
+ children: /* @__PURE__ */ e(u, { className: i["info-icon"], children: /* @__PURE__ */ e(
94
88
  p,
95
89
  {
96
90
  sx: {
@@ -101,52 +95,57 @@ const B = ({
101
95
  ) })
102
96
  }
103
97
  ),
104
- /* @__PURE__ */ i(a, { className: `${r["add-container"]} text-center`, children: [
98
+ /* @__PURE__ */ t(a, { className: `${i["add-container"]} text-center`, children: [
105
99
  /* @__PURE__ */ e(o, { variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Available GEMS on EverChain" }) }),
106
- E ? /* @__PURE__ */ e(f, {}) : /* @__PURE__ */ e(
100
+ N ? /* @__PURE__ */ e(f, {}) : /* @__PURE__ */ e(
107
101
  o,
108
102
  {
109
103
  sx: { mt: 2 },
110
104
  className: "secondary-text-color",
111
105
  variant: "h3",
112
- children: /* @__PURE__ */ i("strong", { children: [
113
- S,
106
+ children: /* @__PURE__ */ t("strong", { children: [
107
+ m,
114
108
  " GEMS"
115
109
  ] })
116
110
  }
117
111
  ),
118
- /* @__PURE__ */ i(t, { className: "items-center", container: !0, mt: 4, width: "100%", children: [
119
- /* @__PURE__ */ e(t, { size: 11, children: /* @__PURE__ */ i("fieldset", { className: r["move-id"], children: [
120
- /* @__PURE__ */ e("legend", { className: r["move-id-text"], style: { width: "135px" }, children: "Move GEMS Tokens" }),
112
+ /* @__PURE__ */ t(r, { className: "items-center", container: !0, mt: 4, width: "100%", children: [
113
+ /* @__PURE__ */ e(r, { size: 11, children: /* @__PURE__ */ t("fieldset", { className: i["move-id"], children: [
114
+ /* @__PURE__ */ e(
115
+ "legend",
116
+ {
117
+ className: i["move-id-text"],
118
+ style: { width: "135px" },
119
+ children: "Move GEMS Tokens"
120
+ }
121
+ ),
121
122
  /* @__PURE__ */ e(
122
123
  s,
123
124
  {
124
- className: r["move-btn"],
125
- variant: "contained",
126
- onClick: () => c.push("/move/gems/everchain"),
125
+ variantType: "secondary",
126
+ onClick: () => y(Number(D)),
127
127
  children: "To EverChain"
128
128
  }
129
129
  ),
130
130
  /* @__PURE__ */ e(
131
131
  s,
132
132
  {
133
+ variantType: "secondary",
133
134
  sx: {
134
135
  ml: { md: 3 },
135
136
  mt: { xs: 1, md: 0 }
136
137
  },
137
- className: r["move-btn"],
138
- variant: "contained",
139
- onClick: () => c.push("/move/gems/ethereum"),
138
+ onClick: () => S(Number(m)),
140
139
  children: "To Ethereum"
141
140
  }
142
141
  )
143
142
  ] }) }),
144
- /* @__PURE__ */ e(t, { size: 1, children: /* @__PURE__ */ e(
143
+ /* @__PURE__ */ e(r, { size: 1, children: /* @__PURE__ */ e(
145
144
  h,
146
145
  {
147
146
  title: "To stake your GEMS token, the token must be on EverChain. To move GEMS from Ethereum to EverChain or back requires ETH to pay the network fees.",
148
147
  placement: "top",
149
- children: /* @__PURE__ */ e(u, { className: r["button-icon"], children: /* @__PURE__ */ e(
148
+ children: /* @__PURE__ */ e(u, { className: i["button-icon"], children: /* @__PURE__ */ e(
150
149
  p,
151
150
  {
152
151
  sx: {
@@ -158,8 +157,8 @@ const B = ({
158
157
  }
159
158
  ) })
160
159
  ] }),
161
- /* @__PURE__ */ i(
162
- t,
160
+ /* @__PURE__ */ t(
161
+ r,
163
162
  {
164
163
  mt: 4,
165
164
  sx: {
@@ -169,46 +168,36 @@ const B = ({
169
168
  container: !0,
170
169
  width: "100%",
171
170
  children: [
172
- /* @__PURE__ */ e(t, { size: 4 }),
171
+ /* @__PURE__ */ e(r, { size: 4 }),
173
172
  /* @__PURE__ */ e(
174
- t,
173
+ r,
175
174
  {
176
- className: `${r["time-item"]} ${r["item-last"]} ${r.active}`,
175
+ className: `${i["time-item"]} ${i["item-last"]} ${i.active}`,
177
176
  size: 4,
178
177
  children: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e("strong", { children: "365 Days" }) })
179
178
  }
180
179
  ),
181
- /* @__PURE__ */ e(t, { size: 4 })
180
+ /* @__PURE__ */ e(r, { size: 4 })
182
181
  ]
183
182
  }
184
183
  ),
185
- /* @__PURE__ */ e(M, { sx: { mt: 4 }, fullWidth: !0, children: /* @__PURE__ */ e(
186
- y,
184
+ /* @__PURE__ */ e(G, { sx: { mt: 4 }, fullWidth: !0, children: /* @__PURE__ */ e(
185
+ B,
187
186
  {
188
187
  variant: "filled",
189
188
  placeholder: "Amount to Stake",
190
- value: N,
189
+ value: E,
191
190
  fullWidth: !0,
192
191
  required: !0,
193
- onChange: (n) => D(n.target.value)
192
+ onChange: (n) => z(n.target.value)
194
193
  }
195
194
  ) }),
196
- /* @__PURE__ */ e(
197
- s,
198
- {
199
- sx: { mt: 4 },
200
- onClick: T,
201
- className: "wallet-btn",
202
- variant: "contained",
203
- fullWidth: !0,
204
- children: /* @__PURE__ */ e("strong", { children: "Stake" })
205
- }
206
- )
195
+ /* @__PURE__ */ e(s, { sx: { mt: 4 }, onClick: () => v(), fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Stake" }) })
207
196
  ] })
208
197
  ] }) })
209
198
  ] })
210
199
  ] });
211
- }, U = C(B);
200
+ };
212
201
  export {
213
- U as default
202
+ Q as default
214
203
  };
@@ -1,2 +1,28 @@
1
- declare const StakeID: ({ history, loader, stakeData, totalStake, totalReward, StakeItem, stakeStart, amount, setAmount, stakeDuration, setStakeDuration, balanceLoader, balance, }: any) => import("react/jsx-runtime").JSX.Element;
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface StakeListItem {
3
+ tokensStake: number | string;
4
+ tokensReward: number | string;
5
+ days: number;
6
+ }
7
+ type StakeItemRenderer = (props: {
8
+ data: StakeListItem;
9
+ }) => JSX.Element;
10
+ interface StakeIDProps {
11
+ onMoveToEthereum: (balance: number) => void;
12
+ onMoveToEverChain: (balance: number) => void;
13
+ ethereumBalance: number;
14
+ loader: boolean;
15
+ stakeData: StakeListItem[];
16
+ totalStake: number;
17
+ totalReward: number;
18
+ StakeItem: StakeItemRenderer;
19
+ stakeStart: (action?: string) => void;
20
+ amount: string;
21
+ setAmount: Dispatch<SetStateAction<string>>;
22
+ stakeDuration: number;
23
+ setStakeDuration: Dispatch<SetStateAction<number>>;
24
+ balanceLoader: boolean;
25
+ balance: number;
26
+ }
27
+ declare const StakeID: ({ loader, stakeData, totalStake, totalReward, StakeItem, stakeStart, amount, setAmount, stakeDuration, setStakeDuration, balanceLoader, balance, onMoveToEthereum, onMoveToEverChain, ethereumBalance, }: StakeIDProps) => import("react/jsx-runtime").JSX.Element;
2
28
  export default StakeID;