everest-npm-features 0.0.56 → 0.0.58
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/{PlayArrow-jzz8Y3XD.js → PlayArrow-BRz9FV4L.js} +1 -1
- package/dist/{auth-jjVjqywi.js → auth-CD7qxhDF.js} +1 -1
- package/dist/{bank-BM66KfAv.js → bank-C2LtDonX.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Shared/FullKyc/edd.js +2 -2
- package/dist/components/Shared/FullKyc/index.js +3 -3
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +3 -3
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.js +1 -1
- package/dist/components/Wallet/Account/eWallet.d.ts +4 -2
- package/dist/components/Wallet/Account/eWallet.js +49 -46
- package/dist/components/Wallet/Account/iban.d.ts +4 -2
- package/dist/components/Wallet/Account/iban.js +51 -48
- package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
- package/dist/components/Wallet/Account/ibanItem.js +184 -153
- package/dist/components/Wallet/Account/index.js +192 -196
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.d.ts +7 -13
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +215 -231
- package/dist/components/Wallet/Portfolio/index.js +5 -5
- package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
- package/dist/components/Wallet/Profile/documents.js +1 -1
- package/dist/components/Wallet/Profile/index.js +1 -1
- package/dist/components/Wallet/Profile/storage.js +1 -1
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
- package/dist/components/Wallet/Shared/CardCorp/index.js +1 -1
- package/dist/components/Wallet/Shared/addBank.js +2 -2
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +3 -3
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/gems/index.d.ts +26 -2
- package/dist/components/Wallet/Stake/gems/index.js +74 -85
- package/dist/components/Wallet/Stake/id/index.d.ts +27 -1
- package/dist/components/Wallet/Stake/id/index.js +68 -78
- package/dist/components/Wallet/Stake/index.d.ts +4 -1
- package/dist/components/Wallet/Stake/index.js +232 -201
- package/dist/components/Wallet/Swap/form.js +5 -5
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-Dtk3Gd0Y.js → constants-Styrbvke.js} +4 -4
- package/dist/{cryptoAssets-DT2afvDJ.js → cryptoAssets-CFtzXGbk.js} +1 -1
- package/dist/{index-BEFNlxwM.js → index-AVcxYfIV.js} +4 -4
- package/dist/{index-JdlBukUO.js → index-CKjKCXeQ.js} +4 -4
- package/dist/{index-BGJ8RVKA.js → index-DAla2tRU.js} +5 -5
- package/dist/{index-BUnkeQv6.js → index-DM6mBQ7L.js} +6 -6
- package/dist/{index-B4pP4oLo.js → index-Da-BlrMH.js} +6 -6
- package/dist/{index-CyPm8GTl.js → index-Du_jGnyO.js} +4 -4
- package/dist/{index-BU6Lajc_.js → index-g4Gy1BHB.js} +2 -2
- package/dist/{kyc-BOm2LCSg.js → kyc-Ee4qAZby.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-DuPcaU0K.js → order-uVUTqaQ2.js} +1 -1
- package/dist/{stake-WaB8Q4v-.js → stake-Dgx86wzO.js} +1 -1
- package/dist/{tokenRow-B-tustzZ.js → tokenRow-C-iMHhPj.js} +14 -12
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +54 -53
- package/dist/{wallet-BxwOFeSW.js → wallet-BkdExH6h.js} +10 -10
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../../PlayArrow-
|
|
3
|
+
import "../../../PlayArrow-BRz9FV4L.js";
|
|
4
4
|
import "../../../Info-BVeUSPyk.js";
|
|
5
5
|
import "../../../generic-token-B_ptO5yb.js";
|
|
6
6
|
import "../../../util/constants.js";
|
|
7
|
-
import "../../../constants-
|
|
7
|
+
import "../../../constants-Styrbvke.js";
|
|
8
8
|
import "../../../index-BQNs1mvn.js";
|
|
9
|
-
import "../../../order-
|
|
9
|
+
import "../../../order-uVUTqaQ2.js";
|
|
10
10
|
import "../../../tooltip-3UvETWtS.js";
|
|
11
11
|
import "../../../util/functions.js";
|
|
12
|
-
import { S as E } from "../../../index-
|
|
12
|
+
import { S as E } from "../../../index-DAla2tRU.js";
|
|
13
13
|
import "../../../styles.module-DMd29SPQ.js";
|
|
14
14
|
import "../Shared/TokenModal/index.js";
|
|
15
15
|
import "../Shared/appButton.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { C as e, F as f, b as L, c as O, i as b } from "../../../index-
|
|
4
|
+
import { C as e, F as f, b as L, c as O, i as b } from "../../../index-DAla2tRU.js";
|
|
5
5
|
import "../../../react-redux-C7I9-1M6.js";
|
|
6
|
-
import "../../../constants-
|
|
7
|
-
import "../../../PlayArrow-
|
|
8
|
-
import "../../../cryptoAssets-
|
|
9
|
-
import "../../../wallet-
|
|
10
|
-
import "../../../order-
|
|
6
|
+
import "../../../constants-Styrbvke.js";
|
|
7
|
+
import "../../../PlayArrow-BRz9FV4L.js";
|
|
8
|
+
import "../../../cryptoAssets-CFtzXGbk.js";
|
|
9
|
+
import "../../../wallet-BkdExH6h.js";
|
|
10
|
+
import "../../../order-uVUTqaQ2.js";
|
|
11
11
|
import "../../../util/constants.js";
|
|
12
12
|
import "../../../context/snackBarContext.js";
|
|
13
13
|
import "../Shared/Container/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, Fragment as B, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n, useEffect as u } from "react";
|
|
3
|
-
import { aD as Se, aE as Ce, aF as Ne, aG as We, aH as Ie, aI as Re } from "../../../constants-
|
|
4
|
-
import { f as Fe } from "../../../wallet-
|
|
3
|
+
import { aD as Se, aE as Ce, aF as Ne, aG as We, aH as Ie, aI as Re } from "../../../constants-Styrbvke.js";
|
|
4
|
+
import { f as Fe } from "../../../wallet-BkdExH6h.js";
|
|
5
5
|
import { useDialog as Be } from "../../../hooks/useDialog/index.js";
|
|
6
6
|
import { ETHEREUM_NETWORK as He, EVER_CHAIN_NETWORK as Ge, SYNTHETIC_EUR as X, ID_TOKEN_SYMBOL as Le } from "../../../util/constants.js";
|
|
7
7
|
import "../../../index-DlQqWbXG.js";
|
|
@@ -21,9 +21,9 @@ import "../../../tooltip-3UvETWtS.js";
|
|
|
21
21
|
import "../../../moment-h96o7c8I.js";
|
|
22
22
|
import "../../../index.esm-BsMAMhYW.js";
|
|
23
23
|
import "../../../web3-u4qDZYpo.js";
|
|
24
|
-
import Ke from "../Shared/pin.js";
|
|
25
24
|
import "../../../index-ceeCtFuh.js";
|
|
26
25
|
import "../../../context/dialogContext.js";
|
|
26
|
+
import Ke from "../Shared/pin.js";
|
|
27
27
|
import { B as Je } from "../../../Backdrop-CioURPVG.js";
|
|
28
28
|
import { C as L } from "../../../CircularProgress-xZA3lvba.js";
|
|
29
29
|
import { B as V } from "../../../Box-B0YSYLco.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as R, jsxs as T, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import S, { useState as L, useEffect as Z } from "react";
|
|
3
|
-
import "../../../../constants-
|
|
4
|
-
import { l as ee } from "../../../../auth-
|
|
3
|
+
import "../../../../constants-Styrbvke.js";
|
|
4
|
+
import { l as ee } from "../../../../auth-CD7qxhDF.js";
|
|
5
5
|
import { RESEND_EMAIL_TIMER as _ } from "../../../../util/constants.js";
|
|
6
6
|
import z from "../appButton.js";
|
|
7
7
|
import { s as H } from "../../../../DefaultPropsProvider-oAu9El-f.js";
|
|
@@ -3,10 +3,10 @@ import { useState as N, useEffect as S } from "react";
|
|
|
3
3
|
import { u as T } from "../../../../react-redux-C7I9-1M6.js";
|
|
4
4
|
import b from "../backBtn.js";
|
|
5
5
|
import A from "../addBank.js";
|
|
6
|
-
import "../../../../constants-
|
|
6
|
+
import "../../../../constants-Styrbvke.js";
|
|
7
7
|
import { u as y } from "../../../../index-BQNs1mvn.js";
|
|
8
|
-
import { o as C } from "../../../../order-
|
|
9
|
-
import { u as E } from "../../../../bank-
|
|
8
|
+
import { o as C } from "../../../../order-uVUTqaQ2.js";
|
|
9
|
+
import { u as E } from "../../../../bank-C2LtDonX.js";
|
|
10
10
|
import O from "../connectPlaidBank.js";
|
|
11
11
|
import { s as o } from "../../../../styles.module-DMd29SPQ.js";
|
|
12
12
|
import { RADIO_BUTTON_SELECTED as D, RADIO_BUTTON as I } from "../../../../util/constants.js";
|
|
@@ -6,7 +6,7 @@ import "../../../../index-DlQqWbXG.js";
|
|
|
6
6
|
import "../appButton.js";
|
|
7
7
|
import "../../../../hoc/withThemeProvider.js";
|
|
8
8
|
import "../Auth/otpForm.js";
|
|
9
|
-
import "../../../../constants-
|
|
9
|
+
import "../../../../constants-Styrbvke.js";
|
|
10
10
|
import { useSnackBarContext as b } from "../../../../context/snackBarContext.js";
|
|
11
11
|
import "../../../../util/conversions.js";
|
|
12
12
|
import "../../../../index-CAoLi5Qq.js";
|
|
@@ -9,9 +9,9 @@ import "../../../index-DlQqWbXG.js";
|
|
|
9
9
|
import x from "./appButton.js";
|
|
10
10
|
import "../../../hoc/withThemeProvider.js";
|
|
11
11
|
import "./Auth/otpForm.js";
|
|
12
|
-
import "../../../constants-
|
|
12
|
+
import "../../../constants-Styrbvke.js";
|
|
13
13
|
import { a as O, u as w } from "../../../index-BQNs1mvn.js";
|
|
14
|
-
import { a as F } from "../../../bank-
|
|
14
|
+
import { a as F } from "../../../bank-C2LtDonX.js";
|
|
15
15
|
import { useSnackBarContext as W } from "../../../context/snackBarContext.js";
|
|
16
16
|
import j from "../../../hooks/useEverestDispatch.js";
|
|
17
17
|
import "../../../util/conversions.js";
|
|
@@ -2,9 +2,9 @@ import { jsx as t, Fragment as h } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as y, useEffect as c, useCallback as C } from "react";
|
|
3
3
|
import { u as r } from "../../../react-redux-C7I9-1M6.js";
|
|
4
4
|
import { u as S } from "../../../index.esm-BsMAMhYW.js";
|
|
5
|
-
import "../../../constants-
|
|
5
|
+
import "../../../constants-Styrbvke.js";
|
|
6
6
|
import { u as P, a as b, b as B } from "../../../index-BQNs1mvn.js";
|
|
7
|
-
import { p as g, b as x } from "../../../bank-
|
|
7
|
+
import { p as g, b as x } from "../../../bank-C2LtDonX.js";
|
|
8
8
|
import { c as A } from "../../../countries-BVn1FubK.js";
|
|
9
9
|
import T from "./appButton.js";
|
|
10
10
|
import q from "../../../hooks/useEverestDispatch.js";
|
|
@@ -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-
|
|
11
|
-
import "../../../order-
|
|
10
|
+
import "../../../constants-Styrbvke.js";
|
|
11
|
+
import "../../../order-uVUTqaQ2.js";
|
|
12
12
|
import "../../../index-DlQqWbXG.js";
|
|
13
13
|
import "../../../hoc/withThemeProvider.js";
|
|
14
14
|
import "./Input/index.js";
|
|
@@ -26,7 +26,7 @@ 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-
|
|
29
|
+
import { M as K } from "../../../index-DAla2tRU.js";
|
|
30
30
|
import "../../../context/dialogContext.js";
|
|
31
31
|
import "../../../Box-B0YSYLco.js";
|
|
32
32
|
import "../../../Grid-CFe3amXO.js";
|
|
@@ -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-
|
|
8
|
-
import { a as O, l as R, v as k } from "../../../auth-
|
|
7
|
+
import "../../../constants-Styrbvke.js";
|
|
8
|
+
import { a as O, l as R, v as k } from "../../../auth-CD7qxhDF.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-
|
|
9
|
-
import { a as N, h as P, i as U } from "../../../auth-
|
|
8
|
+
import "../../../constants-Styrbvke.js";
|
|
9
|
+
import { a as N, h as P, i as U } from "../../../auth-CD7qxhDF.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
|
-
|
|
2
|
-
|
|
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
|
|
2
|
-
import
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import { B as
|
|
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
|
|
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 {
|
|
14
|
-
import {
|
|
15
|
-
|
|
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:
|
|
17
|
+
stakeData: c,
|
|
20
18
|
totalStake: g,
|
|
21
|
-
totalReward:
|
|
22
|
-
StakeItem:
|
|
23
|
-
stakeStart:
|
|
24
|
-
amount:
|
|
25
|
-
setAmount:
|
|
26
|
-
balanceLoader:
|
|
27
|
-
balance:
|
|
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
|
|
30
|
-
n ? /^([0-9.,]+)$/.test(n) &&
|
|
31
|
-
},
|
|
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__ */
|
|
40
|
+
return /* @__PURE__ */ t(C, { children: [
|
|
40
41
|
/* @__PURE__ */ e(
|
|
41
|
-
|
|
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__ */
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */ e(
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
|
|
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(
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
|
|
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__ */
|
|
74
|
-
|
|
75
|
-
|
|
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(
|
|
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:
|
|
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:
|
|
85
|
+
title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: I }),
|
|
92
86
|
placement: "bottom",
|
|
93
|
-
children: /* @__PURE__ */ e(u, { className:
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
113
|
-
|
|
106
|
+
children: /* @__PURE__ */ t("strong", { children: [
|
|
107
|
+
m,
|
|
114
108
|
" GEMS"
|
|
115
109
|
] })
|
|
116
110
|
}
|
|
117
111
|
),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */ e(
|
|
120
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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(
|
|
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:
|
|
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__ */
|
|
162
|
-
|
|
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(
|
|
171
|
+
/* @__PURE__ */ e(r, { size: 4 }),
|
|
173
172
|
/* @__PURE__ */ e(
|
|
174
|
-
|
|
173
|
+
r,
|
|
175
174
|
{
|
|
176
|
-
className: `${
|
|
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(
|
|
180
|
+
/* @__PURE__ */ e(r, { size: 4 })
|
|
182
181
|
]
|
|
183
182
|
}
|
|
184
183
|
),
|
|
185
|
-
/* @__PURE__ */ e(
|
|
186
|
-
|
|
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:
|
|
189
|
+
value: E,
|
|
191
190
|
fullWidth: !0,
|
|
192
191
|
required: !0,
|
|
193
|
-
onChange: (n) =>
|
|
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
|
-
}
|
|
200
|
+
};
|
|
212
201
|
export {
|
|
213
|
-
|
|
202
|
+
Q as default
|
|
214
203
|
};
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
|
|
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;
|