@rhinestone/deposit-modal 0.1.46 → 0.1.48
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/{DepositModalReown-23JR6Q4C.mjs → DepositModalReown-3V2EFXH5.mjs} +3 -3
- package/dist/{DepositModalReown-QSRCNLSN.cjs → DepositModalReown-SV6QIUTL.cjs} +4 -4
- package/dist/{WithdrawModalReown-FM2TJFOV.mjs → WithdrawModalReown-FODH7PY5.mjs} +3 -3
- package/dist/{WithdrawModalReown-CT6E2F2J.cjs → WithdrawModalReown-ZSR3RP44.cjs} +4 -4
- package/dist/{chunk-55QIUUIS.cjs → chunk-7HJ7IBRH.cjs} +68 -52
- package/dist/{chunk-U6KOKXWY.mjs → chunk-FKNYONM2.mjs} +44 -28
- package/dist/{chunk-4MKJ5R6Q.mjs → chunk-HCZNF6CR.mjs} +3 -3
- package/dist/{chunk-ZNHU72LI.cjs → chunk-NELAYNA3.cjs} +7 -5
- package/dist/{chunk-2EGNK737.cjs → chunk-PW55TOFK.cjs} +60 -60
- package/dist/{chunk-B2VXZW4V.mjs → chunk-ZAQISJAP.mjs} +22 -5
- package/dist/{chunk-AVASFOLP.mjs → chunk-ZJQZEIHA.mjs} +7 -5
- package/dist/{chunk-2XGN65KA.cjs → chunk-ZK6VAHSB.cjs} +237 -220
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/reown.cjs +5 -5
- package/dist/reown.d.cts +1 -1
- package/dist/reown.d.ts +1 -1
- package/dist/reown.mjs +4 -4
- package/dist/{types-DQG7NEBI.d.ts → types-B0FLVdXb.d.ts} +6 -1
- package/dist/{types-CyUiKQ4H.d.cts → types-dY70pF2y.d.cts} +6 -1
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZAQISJAP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
7
|
} from "./chunk-JGB6XSYS.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-FKNYONM2.mjs";
|
|
9
|
+
import "./chunk-ZJQZEIHA.mjs";
|
|
10
10
|
|
|
11
11
|
// src/DepositModalReown.tsx
|
|
12
12
|
import { useCallback, useMemo } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZK6VAHSBcjs = require('./chunk-ZK6VAHSB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkXLRQCIYDcjs = require('./chunk-XLRQCIYD.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-7HJ7IBRH.cjs');
|
|
9
|
+
require('./chunk-NELAYNA3.cjs');
|
|
10
10
|
|
|
11
11
|
// src/DepositModalReown.tsx
|
|
12
12
|
var _react = require('react');
|
|
@@ -29,7 +29,7 @@ function DepositModalWithReown(props) {
|
|
|
29
29
|
reown.disconnect();
|
|
30
30
|
}, [reown.disconnect]);
|
|
31
31
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32
|
-
|
|
32
|
+
_chunkZK6VAHSBcjs.DepositModalInner,
|
|
33
33
|
{
|
|
34
34
|
...props,
|
|
35
35
|
reownWallet: reownWithSolana,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HCZNF6CR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
7
|
} from "./chunk-JGB6XSYS.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-FKNYONM2.mjs";
|
|
9
|
+
import "./chunk-ZJQZEIHA.mjs";
|
|
10
10
|
|
|
11
11
|
// src/WithdrawModalReown.tsx
|
|
12
12
|
import { useCallback } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPW55TOFKcjs = require('./chunk-PW55TOFK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkXLRQCIYDcjs = require('./chunk-XLRQCIYD.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-7HJ7IBRH.cjs');
|
|
9
|
+
require('./chunk-NELAYNA3.cjs');
|
|
10
10
|
|
|
11
11
|
// src/WithdrawModalReown.tsx
|
|
12
12
|
var _react = require('react');
|
|
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
|
|
|
20
20
|
reown.disconnect();
|
|
21
21
|
}, [reown.disconnect]);
|
|
22
22
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
-
|
|
23
|
+
_chunkPW55TOFKcjs.WithdrawModalInner,
|
|
24
24
|
{
|
|
25
25
|
...props,
|
|
26
26
|
reownWallet: reown,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkNELAYNA3cjs = require('./chunk-NELAYNA3.cjs');
|
|
11
11
|
|
|
12
12
|
// src/components/ui/Modal.tsx
|
|
13
13
|
|
|
@@ -619,14 +619,14 @@ function normalizeOrchestratorPortfolio(data) {
|
|
|
619
619
|
const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _17 => _17.balance, 'optionalAccess', _18 => _18.unlocked]), () => ( "0"));
|
|
620
620
|
const normalizedName = tokenData.tokenName.trim();
|
|
621
621
|
const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
|
|
622
|
-
const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => (
|
|
623
|
-
const resolvedTokenAddress = isNativeSymbol ?
|
|
622
|
+
const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkNELAYNA3cjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
|
|
623
|
+
const resolvedTokenAddress = isNativeSymbol ? _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
|
|
624
624
|
if (!resolvedTokenAddress) {
|
|
625
625
|
continue;
|
|
626
626
|
}
|
|
627
|
-
const registrySymbol =
|
|
627
|
+
const registrySymbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
|
|
628
628
|
const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
|
|
629
|
-
const decimals = registrySymbol !== "Token" ?
|
|
629
|
+
const decimals = registrySymbol !== "Token" ? _chunkNELAYNA3cjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
|
|
630
630
|
tokens.push({
|
|
631
631
|
chainId: chainBalance.chainId,
|
|
632
632
|
address: resolvedTokenAddress,
|
|
@@ -655,14 +655,14 @@ function normalizeDirectToken(token) {
|
|
|
655
655
|
const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
|
|
656
656
|
token.token,
|
|
657
657
|
"address"
|
|
658
|
-
))), () => ( (typeof chainId === "number" ?
|
|
658
|
+
))), () => ( (typeof chainId === "number" ? _chunkNELAYNA3cjs.getTokenAddress.call(void 0, symbol, chainId) : void 0)));
|
|
659
659
|
if (!address) return null;
|
|
660
660
|
const balanceUsd = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractNumber(token, "balanceUsd"), () => ( extractNumber(token, "usdValue"))), () => ( extractNumber(token, "valueUsd"))), () => ( extractNumericString(token, "balanceUsd"))), () => ( extractNumericString(token, "usdValue"))), () => ( extractNumericString(token, "valueUsd"))), () => ( 0));
|
|
661
661
|
const isSolanaToken = chainId === "solana";
|
|
662
|
-
const registrySymbol = isSolanaToken ? "Token" :
|
|
662
|
+
const registrySymbol = isSolanaToken ? "Token" : _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, address, chainId);
|
|
663
663
|
const resolvedSymbol = isSolanaToken ? symbol : registrySymbol !== "Token" ? registrySymbol : symbol;
|
|
664
664
|
const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
|
|
665
|
-
const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ?
|
|
665
|
+
const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunkNELAYNA3cjs.getTokenDecimalsByAddress.call(void 0, address, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
|
|
666
666
|
return {
|
|
667
667
|
chainId,
|
|
668
668
|
address,
|
|
@@ -1572,7 +1572,7 @@ function ProcessingStep({
|
|
|
1572
1572
|
return;
|
|
1573
1573
|
}
|
|
1574
1574
|
processTimeoutRef.current = setTimeout(() => {
|
|
1575
|
-
const message = "
|
|
1575
|
+
const message = "Transfer is taking longer than expected. Your funds are safe and our team has been notified.";
|
|
1576
1576
|
debugLog(debug, "processing", "state:timeout", {
|
|
1577
1577
|
txHash,
|
|
1578
1578
|
timeoutMs: PROCESS_TIMEOUT_MS
|
|
@@ -1587,7 +1587,7 @@ function ProcessingStep({
|
|
|
1587
1587
|
}
|
|
1588
1588
|
};
|
|
1589
1589
|
}, [debug, directTransfer, state.type, txHash, onError]);
|
|
1590
|
-
const
|
|
1590
|
+
const isDelayed = state.type === "error" || state.type === "failed";
|
|
1591
1591
|
const isComplete = state.type === "complete";
|
|
1592
1592
|
const isProcessing = state.type === "processing";
|
|
1593
1593
|
const lastEvent = state.type === "processing" || state.type === "complete" || state.type === "failed" ? state.lastEvent : void 0;
|
|
@@ -1599,8 +1599,8 @@ function ProcessingStep({
|
|
|
1599
1599
|
const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
|
|
1600
1600
|
const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
|
|
1601
1601
|
const displayAmount = _nullishCoalesce(sourceDetails.amount, () => ( amount));
|
|
1602
|
-
const sourceExplorerUrl =
|
|
1603
|
-
const destExplorerUrl = destinationTxHash ?
|
|
1602
|
+
const sourceExplorerUrl = _chunkNELAYNA3cjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
|
|
1603
|
+
const destExplorerUrl = destinationTxHash ? _chunkNELAYNA3cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
|
|
1604
1604
|
const truncateHash = (hash) => `${hash.slice(0, 10)}...${hash.slice(-8)}`;
|
|
1605
1605
|
const formatElapsedTime = (seconds) => {
|
|
1606
1606
|
if (seconds < 60) return `${seconds} second${seconds !== 1 ? "s" : ""}`;
|
|
@@ -1609,8 +1609,8 @@ function ProcessingStep({
|
|
|
1609
1609
|
return `${mins}m ${secs}s`;
|
|
1610
1610
|
};
|
|
1611
1611
|
const isEvmSourceToken = /^0x[a-fA-F0-9]{40}$/.test(displaySourceToken);
|
|
1612
|
-
const sourceSymbol = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceSymbol, () => ( "SOL")) : isEvmSourceToken ?
|
|
1613
|
-
const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ?
|
|
1612
|
+
const sourceSymbol = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceSymbol, () => ( "SOL")) : isEvmSourceToken ? _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, displaySourceToken, displaySourceChain) : _nullishCoalesce(providedSourceSymbol, () => ( "Token"));
|
|
1613
|
+
const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ? _chunkNELAYNA3cjs.getTokenDecimalsByAddress.call(void 0, displaySourceToken, displaySourceChain) : _nullishCoalesce(providedSourceDecimals, () => ( 18));
|
|
1614
1614
|
const formattedReceivedAmount = (() => {
|
|
1615
1615
|
try {
|
|
1616
1616
|
const raw = _viem.formatUnits.call(void 0, BigInt(displayAmount), sourceDecimals);
|
|
@@ -1681,15 +1681,15 @@ function ProcessingStep({
|
|
|
1681
1681
|
className: "rs-card-value",
|
|
1682
1682
|
style: { display: "flex", alignItems: "center", gap: 6 },
|
|
1683
1683
|
children: [
|
|
1684
|
-
|
|
1684
|
+
_chunkNELAYNA3cjs.getChainIcon.call(void 0, displaySourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1685
1685
|
"img",
|
|
1686
1686
|
{
|
|
1687
|
-
src:
|
|
1687
|
+
src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, displaySourceChain),
|
|
1688
1688
|
alt: "",
|
|
1689
1689
|
style: { width: 14, height: 14, borderRadius: "50%" }
|
|
1690
1690
|
}
|
|
1691
1691
|
),
|
|
1692
|
-
|
|
1692
|
+
_chunkNELAYNA3cjs.getChainName.call(void 0, displaySourceChain)
|
|
1693
1693
|
]
|
|
1694
1694
|
}
|
|
1695
1695
|
)
|
|
@@ -1702,15 +1702,15 @@ function ProcessingStep({
|
|
|
1702
1702
|
className: "rs-card-value",
|
|
1703
1703
|
style: { display: "flex", alignItems: "center", gap: 6 },
|
|
1704
1704
|
children: [
|
|
1705
|
-
|
|
1705
|
+
_chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1706
1706
|
"img",
|
|
1707
1707
|
{
|
|
1708
|
-
src:
|
|
1708
|
+
src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain),
|
|
1709
1709
|
alt: "",
|
|
1710
1710
|
style: { width: 14, height: 14, borderRadius: "50%" }
|
|
1711
1711
|
}
|
|
1712
1712
|
),
|
|
1713
|
-
|
|
1713
|
+
_chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)
|
|
1714
1714
|
]
|
|
1715
1715
|
}
|
|
1716
1716
|
)
|
|
@@ -1799,8 +1799,8 @@ function ProcessingStep({
|
|
|
1799
1799
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1800
1800
|
"div",
|
|
1801
1801
|
{
|
|
1802
|
-
className: `rs-step-icon ${
|
|
1803
|
-
children:
|
|
1802
|
+
className: `rs-step-icon ${isDelayed ? "rs-step-icon--warning" : "rs-step-icon--accent"}`,
|
|
1803
|
+
children: isDelayed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1804
1804
|
"svg",
|
|
1805
1805
|
{
|
|
1806
1806
|
viewBox: "0 0 24 24",
|
|
@@ -1812,32 +1812,19 @@ function ProcessingStep({
|
|
|
1812
1812
|
{
|
|
1813
1813
|
strokeLinecap: "round",
|
|
1814
1814
|
strokeLinejoin: "round",
|
|
1815
|
-
d: "M12
|
|
1815
|
+
d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1816
1816
|
}
|
|
1817
1817
|
)
|
|
1818
1818
|
}
|
|
1819
1819
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Spinner, {})
|
|
1820
1820
|
}
|
|
1821
1821
|
),
|
|
1822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1823
|
-
"div",
|
|
1824
|
-
{
|
|
1825
|
-
className: `rs-step-title ${isError ? "rs-step-title--error" : ""}`,
|
|
1826
|
-
children: isError ? `${flowCapitalized} Failed` : `Bridging ${flowCapitalized}`
|
|
1827
|
-
}
|
|
1828
|
-
)
|
|
1822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-title", children: isDelayed ? `${flowCapitalized} taking longer than expected` : `Bridging ${flowCapitalized}` })
|
|
1829
1823
|
] }),
|
|
1830
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1831
|
-
"
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
children: [
|
|
1835
|
-
state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _104 => _104.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _105 => _105.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkZNHU72LIcjs.getChainName.call(void 0, targetChain)}.`),
|
|
1836
|
-
state.type === "failed" && state.message,
|
|
1837
|
-
state.type === "error" && state.message
|
|
1838
|
-
]
|
|
1839
|
-
}
|
|
1840
|
-
)
|
|
1824
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-description rs-text-secondary", children: [
|
|
1825
|
+
state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _104 => _104.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _105 => _105.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)}.`),
|
|
1826
|
+
(state.type === "failed" || state.type === "error") && "Your funds are safe. Our team has been notified and is working to complete your transfer."
|
|
1827
|
+
] })
|
|
1841
1828
|
] }),
|
|
1842
1829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-space-y-3", children: [
|
|
1843
1830
|
isProcessing && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -1879,7 +1866,39 @@ function ProcessingStep({
|
|
|
1879
1866
|
}
|
|
1880
1867
|
)
|
|
1881
1868
|
] }),
|
|
1869
|
+
isDelayed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-alert rs-alert--info", children: [
|
|
1870
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1871
|
+
"svg",
|
|
1872
|
+
{
|
|
1873
|
+
className: "rs-alert-icon",
|
|
1874
|
+
viewBox: "0 0 24 24",
|
|
1875
|
+
fill: "none",
|
|
1876
|
+
stroke: "currentColor",
|
|
1877
|
+
strokeWidth: "2",
|
|
1878
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1879
|
+
"path",
|
|
1880
|
+
{
|
|
1881
|
+
strokeLinecap: "round",
|
|
1882
|
+
strokeLinejoin: "round",
|
|
1883
|
+
d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
|
|
1884
|
+
}
|
|
1885
|
+
)
|
|
1886
|
+
}
|
|
1887
|
+
),
|
|
1888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-alert-text", children: "You can safely close this window. Your funds are secure and the transfer will be completed automatically." })
|
|
1889
|
+
] }),
|
|
1882
1890
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card", children: [
|
|
1891
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card-row", children: [
|
|
1892
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-label", children: "Status" }),
|
|
1893
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1894
|
+
"span",
|
|
1895
|
+
{
|
|
1896
|
+
className: "rs-card-value",
|
|
1897
|
+
style: { color: isDelayed ? "var(--color-amber8, #e2a336)" : void 0 },
|
|
1898
|
+
children: isDelayed ? "Processing" : "In progress"
|
|
1899
|
+
}
|
|
1900
|
+
)
|
|
1901
|
+
] }),
|
|
1883
1902
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card-row", children: [
|
|
1884
1903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-label", children: "Source" }),
|
|
1885
1904
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -1888,15 +1907,15 @@ function ProcessingStep({
|
|
|
1888
1907
|
className: "rs-card-value",
|
|
1889
1908
|
style: { display: "flex", alignItems: "center", gap: 8 },
|
|
1890
1909
|
children: [
|
|
1891
|
-
|
|
1910
|
+
_chunkNELAYNA3cjs.getChainIcon.call(void 0, displaySourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1892
1911
|
"img",
|
|
1893
1912
|
{
|
|
1894
|
-
src:
|
|
1913
|
+
src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, displaySourceChain),
|
|
1895
1914
|
alt: "",
|
|
1896
1915
|
style: { width: 16, height: 16, borderRadius: "50%" }
|
|
1897
1916
|
}
|
|
1898
1917
|
),
|
|
1899
|
-
|
|
1918
|
+
_chunkNELAYNA3cjs.getChainName.call(void 0, displaySourceChain)
|
|
1900
1919
|
]
|
|
1901
1920
|
}
|
|
1902
1921
|
)
|
|
@@ -1909,15 +1928,15 @@ function ProcessingStep({
|
|
|
1909
1928
|
className: "rs-card-value",
|
|
1910
1929
|
style: { display: "flex", alignItems: "center", gap: 8 },
|
|
1911
1930
|
children: [
|
|
1912
|
-
|
|
1931
|
+
_chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
1932
|
"img",
|
|
1914
1933
|
{
|
|
1915
|
-
src:
|
|
1934
|
+
src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain),
|
|
1916
1935
|
alt: "",
|
|
1917
1936
|
style: { width: 16, height: 16, borderRadius: "50%" }
|
|
1918
1937
|
}
|
|
1919
1938
|
),
|
|
1920
|
-
|
|
1939
|
+
_chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)
|
|
1921
1940
|
]
|
|
1922
1941
|
}
|
|
1923
1942
|
)
|
|
@@ -1956,10 +1975,7 @@ function ProcessingStep({
|
|
|
1956
1975
|
] })
|
|
1957
1976
|
] })
|
|
1958
1977
|
] }),
|
|
1959
|
-
|
|
1960
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Close" }),
|
|
1961
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { onClick: onNewDeposit, fullWidth: true, children: "Try Again" })
|
|
1962
|
-
] }),
|
|
1978
|
+
isDelayed && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { onClick: onClose, fullWidth: true, children: "Close" }) }),
|
|
1963
1979
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PoweredBy, {})
|
|
1964
1980
|
] });
|
|
1965
1981
|
}
|
|
@@ -1970,7 +1986,7 @@ var clientCache = /* @__PURE__ */ new Map();
|
|
|
1970
1986
|
function getPublicClient(chainId) {
|
|
1971
1987
|
let client = clientCache.get(chainId);
|
|
1972
1988
|
if (!client) {
|
|
1973
|
-
const chain =
|
|
1989
|
+
const chain = _chunkNELAYNA3cjs.CHAIN_BY_ID[chainId];
|
|
1974
1990
|
client = _viem.createPublicClient.call(void 0, {
|
|
1975
1991
|
chain,
|
|
1976
1992
|
transport: _viem.http.call(void 0, )
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getTokenAddress,
|
|
8
8
|
getTokenDecimalsByAddress,
|
|
9
9
|
getTokenSymbol
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJQZEIHA.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/ui/Modal.tsx
|
|
13
13
|
import {
|
|
@@ -1572,7 +1572,7 @@ function ProcessingStep({
|
|
|
1572
1572
|
return;
|
|
1573
1573
|
}
|
|
1574
1574
|
processTimeoutRef.current = setTimeout(() => {
|
|
1575
|
-
const message = "
|
|
1575
|
+
const message = "Transfer is taking longer than expected. Your funds are safe and our team has been notified.";
|
|
1576
1576
|
debugLog(debug, "processing", "state:timeout", {
|
|
1577
1577
|
txHash,
|
|
1578
1578
|
timeoutMs: PROCESS_TIMEOUT_MS
|
|
@@ -1587,7 +1587,7 @@ function ProcessingStep({
|
|
|
1587
1587
|
}
|
|
1588
1588
|
};
|
|
1589
1589
|
}, [debug, directTransfer, state.type, txHash, onError]);
|
|
1590
|
-
const
|
|
1590
|
+
const isDelayed = state.type === "error" || state.type === "failed";
|
|
1591
1591
|
const isComplete = state.type === "complete";
|
|
1592
1592
|
const isProcessing = state.type === "processing";
|
|
1593
1593
|
const lastEvent = state.type === "processing" || state.type === "complete" || state.type === "failed" ? state.lastEvent : void 0;
|
|
@@ -1799,8 +1799,8 @@ function ProcessingStep({
|
|
|
1799
1799
|
/* @__PURE__ */ jsx7(
|
|
1800
1800
|
"div",
|
|
1801
1801
|
{
|
|
1802
|
-
className: `rs-step-icon ${
|
|
1803
|
-
children:
|
|
1802
|
+
className: `rs-step-icon ${isDelayed ? "rs-step-icon--warning" : "rs-step-icon--accent"}`,
|
|
1803
|
+
children: isDelayed ? /* @__PURE__ */ jsx7(
|
|
1804
1804
|
"svg",
|
|
1805
1805
|
{
|
|
1806
1806
|
viewBox: "0 0 24 24",
|
|
@@ -1812,32 +1812,19 @@ function ProcessingStep({
|
|
|
1812
1812
|
{
|
|
1813
1813
|
strokeLinecap: "round",
|
|
1814
1814
|
strokeLinejoin: "round",
|
|
1815
|
-
d: "M12
|
|
1815
|
+
d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1816
1816
|
}
|
|
1817
1817
|
)
|
|
1818
1818
|
}
|
|
1819
1819
|
) : /* @__PURE__ */ jsx7(Spinner, {})
|
|
1820
1820
|
}
|
|
1821
1821
|
),
|
|
1822
|
-
/* @__PURE__ */ jsx7(
|
|
1823
|
-
"div",
|
|
1824
|
-
{
|
|
1825
|
-
className: `rs-step-title ${isError ? "rs-step-title--error" : ""}`,
|
|
1826
|
-
children: isError ? `${flowCapitalized} Failed` : `Bridging ${flowCapitalized}`
|
|
1827
|
-
}
|
|
1828
|
-
)
|
|
1822
|
+
/* @__PURE__ */ jsx7("div", { className: "rs-step-title", children: isDelayed ? `${flowCapitalized} taking longer than expected` : `Bridging ${flowCapitalized}` })
|
|
1829
1823
|
] }),
|
|
1830
|
-
/* @__PURE__ */ jsxs6(
|
|
1831
|
-
"
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
children: [
|
|
1835
|
-
state.type === "processing" && (lastEvent?.type === "deposit-received" ? "Transfer received. Preparing bridge..." : lastEvent?.type === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${getChainName(targetChain)}.`),
|
|
1836
|
-
state.type === "failed" && state.message,
|
|
1837
|
-
state.type === "error" && state.message
|
|
1838
|
-
]
|
|
1839
|
-
}
|
|
1840
|
-
)
|
|
1824
|
+
/* @__PURE__ */ jsxs6("div", { className: "rs-step-description rs-text-secondary", children: [
|
|
1825
|
+
state.type === "processing" && (lastEvent?.type === "deposit-received" ? "Transfer received. Preparing bridge..." : lastEvent?.type === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${getChainName(targetChain)}.`),
|
|
1826
|
+
(state.type === "failed" || state.type === "error") && "Your funds are safe. Our team has been notified and is working to complete your transfer."
|
|
1827
|
+
] })
|
|
1841
1828
|
] }),
|
|
1842
1829
|
/* @__PURE__ */ jsxs6("div", { className: "rs-step-body rs-space-y-3", children: [
|
|
1843
1830
|
isProcessing && /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
@@ -1879,7 +1866,39 @@ function ProcessingStep({
|
|
|
1879
1866
|
}
|
|
1880
1867
|
)
|
|
1881
1868
|
] }),
|
|
1869
|
+
isDelayed && /* @__PURE__ */ jsxs6("div", { className: "rs-alert rs-alert--info", children: [
|
|
1870
|
+
/* @__PURE__ */ jsx7(
|
|
1871
|
+
"svg",
|
|
1872
|
+
{
|
|
1873
|
+
className: "rs-alert-icon",
|
|
1874
|
+
viewBox: "0 0 24 24",
|
|
1875
|
+
fill: "none",
|
|
1876
|
+
stroke: "currentColor",
|
|
1877
|
+
strokeWidth: "2",
|
|
1878
|
+
children: /* @__PURE__ */ jsx7(
|
|
1879
|
+
"path",
|
|
1880
|
+
{
|
|
1881
|
+
strokeLinecap: "round",
|
|
1882
|
+
strokeLinejoin: "round",
|
|
1883
|
+
d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
|
|
1884
|
+
}
|
|
1885
|
+
)
|
|
1886
|
+
}
|
|
1887
|
+
),
|
|
1888
|
+
/* @__PURE__ */ jsx7("p", { className: "rs-alert-text", children: "You can safely close this window. Your funds are secure and the transfer will be completed automatically." })
|
|
1889
|
+
] }),
|
|
1882
1890
|
/* @__PURE__ */ jsxs6("div", { className: "rs-card", children: [
|
|
1891
|
+
/* @__PURE__ */ jsxs6("div", { className: "rs-card-row", children: [
|
|
1892
|
+
/* @__PURE__ */ jsx7("span", { className: "rs-card-label", children: "Status" }),
|
|
1893
|
+
/* @__PURE__ */ jsx7(
|
|
1894
|
+
"span",
|
|
1895
|
+
{
|
|
1896
|
+
className: "rs-card-value",
|
|
1897
|
+
style: { color: isDelayed ? "var(--color-amber8, #e2a336)" : void 0 },
|
|
1898
|
+
children: isDelayed ? "Processing" : "In progress"
|
|
1899
|
+
}
|
|
1900
|
+
)
|
|
1901
|
+
] }),
|
|
1883
1902
|
/* @__PURE__ */ jsxs6("div", { className: "rs-card-row", children: [
|
|
1884
1903
|
/* @__PURE__ */ jsx7("span", { className: "rs-card-label", children: "Source" }),
|
|
1885
1904
|
/* @__PURE__ */ jsxs6(
|
|
@@ -1956,10 +1975,7 @@ function ProcessingStep({
|
|
|
1956
1975
|
] })
|
|
1957
1976
|
] })
|
|
1958
1977
|
] }),
|
|
1959
|
-
|
|
1960
|
-
/* @__PURE__ */ jsx7(Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Close" }),
|
|
1961
|
-
/* @__PURE__ */ jsx7(Button, { onClick: onNewDeposit, fullWidth: true, children: "Try Again" })
|
|
1962
|
-
] }),
|
|
1978
|
+
isDelayed && /* @__PURE__ */ jsx7("div", { className: "rs-step-footer", children: /* @__PURE__ */ jsx7(Button, { onClick: onClose, fullWidth: true, children: "Close" }) }),
|
|
1963
1979
|
/* @__PURE__ */ jsx7(PoweredBy, {})
|
|
1964
1980
|
] });
|
|
1965
1981
|
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
loadSessionOwnerFromStorage,
|
|
21
21
|
saveSessionOwnerToStorage,
|
|
22
22
|
toEvmCaip2
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FKNYONM2.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_BACKEND_URL,
|
|
26
26
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getTokenDecimalsByAddress,
|
|
34
34
|
getTokenIcon,
|
|
35
35
|
getTokenSymbol
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZJQZEIHA.mjs";
|
|
37
37
|
|
|
38
38
|
// src/WithdrawModal.tsx
|
|
39
39
|
import {
|
|
@@ -1422,7 +1422,7 @@ function WithdrawFlow({
|
|
|
1422
1422
|
// src/WithdrawModal.tsx
|
|
1423
1423
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1424
1424
|
var ReownWithdrawInner = lazy(
|
|
1425
|
-
() => import("./WithdrawModalReown-
|
|
1425
|
+
() => import("./WithdrawModalReown-FODH7PY5.mjs").then((m) => ({
|
|
1426
1426
|
default: m.WithdrawModalReown
|
|
1427
1427
|
}))
|
|
1428
1428
|
);
|
|
@@ -23,10 +23,10 @@ var ALL_CHAINS_BY_ID = {
|
|
|
23
23
|
[_chains.soneium.id]: _chains.soneium
|
|
24
24
|
};
|
|
25
25
|
var SUPPORTED_TOKEN_MATRIX = {
|
|
26
|
-
ETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id],
|
|
27
|
-
WETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id],
|
|
28
|
-
USDC: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id],
|
|
29
|
-
USDT: [_chains.mainnet.id, _chains.arbitrum.id, _chains.polygon.id, _chains.bsc.id]
|
|
26
|
+
ETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
|
|
27
|
+
WETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
|
|
28
|
+
USDC: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
|
|
29
|
+
USDT: [_chains.mainnet.id, _chains.arbitrum.id, _chains.polygon.id, _chains.bsc.id, _chains.plasma.id]
|
|
30
30
|
};
|
|
31
31
|
var CHAIN_DISPLAY_ORDER = [
|
|
32
32
|
_chains.mainnet.id,
|
|
@@ -34,7 +34,9 @@ var CHAIN_DISPLAY_ORDER = [
|
|
|
34
34
|
_chains.arbitrum.id,
|
|
35
35
|
_chains.optimism.id,
|
|
36
36
|
_chains.polygon.id,
|
|
37
|
-
_chains.bsc.id
|
|
37
|
+
_chains.bsc.id,
|
|
38
|
+
_chains.plasma.id,
|
|
39
|
+
_chains.soneium.id
|
|
38
40
|
];
|
|
39
41
|
var supportedChainSet = /* @__PURE__ */ new Set();
|
|
40
42
|
for (const chainIds of Object.values(SUPPORTED_TOKEN_MATRIX)) {
|