@rhinestone/deposit-modal 0.3.0-alpha.16 → 0.3.0-alpha.17
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-THU2QG76.mjs → DepositModalReown-ADTQMSTI.mjs} +3 -3
- package/dist/{DepositModalReown-QRLLANTS.cjs → DepositModalReown-XYQNNZAC.cjs} +6 -6
- package/dist/{WithdrawModalReown-SSRJNUGZ.mjs → WithdrawModalReown-EAST32BT.mjs} +3 -3
- package/dist/{WithdrawModalReown-PHWLYDZQ.cjs → WithdrawModalReown-FJ4MPMFA.cjs} +6 -6
- package/dist/{chunk-UD6QUZJS.cjs → chunk-5H72PM2N.cjs} +2 -2
- package/dist/{chunk-G5YDICEN.cjs → chunk-AX4OHTFC.cjs} +54 -54
- package/dist/{chunk-PAK3NUGY.mjs → chunk-BDMPIDTR.mjs} +2 -2
- package/dist/{chunk-YX3I7C2R.mjs → chunk-DHCJGPT3.mjs} +49 -5
- package/dist/{chunk-E2K7XWMN.mjs → chunk-DQ4SKF37.mjs} +1 -1
- package/dist/{chunk-Z7OJPEV2.mjs → chunk-H2FI4RN7.mjs} +38 -0
- package/dist/{chunk-7W5M6WEE.cjs → chunk-LJLTLPHL.cjs} +109 -71
- package/dist/{chunk-PXQBJMNF.cjs → chunk-PSFPXDKE.cjs} +257 -213
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +3 -3
- package/dist/styles.css +10 -0
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DHCJGPT3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DQ4SKF37.mjs";
|
|
8
|
+
import "./chunk-H2FI4RN7.mjs";
|
|
9
9
|
import "./chunk-6YRDD462.mjs";
|
|
10
10
|
|
|
11
11
|
// src/DepositModalReown.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPSFPXDKEcjs = require('./chunk-PSFPXDKE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk5H72PM2Ncjs = require('./chunk-5H72PM2N.cjs');
|
|
8
|
+
require('./chunk-LJLTLPHL.cjs');
|
|
9
9
|
require('./chunk-MILJQWPT.cjs');
|
|
10
10
|
|
|
11
11
|
// src/DepositModalReown.tsx
|
|
@@ -14,7 +14,7 @@ var _react3 = require('@reown/appkit/react');
|
|
|
14
14
|
var _react5 = require('@reown/appkit-adapter-solana/react');
|
|
15
15
|
var _jsxruntime = require('react/jsx-runtime');
|
|
16
16
|
function DepositModalWithReown(props) {
|
|
17
|
-
const reown =
|
|
17
|
+
const reown = _chunk5H72PM2Ncjs.useReownWallet.call(void 0, );
|
|
18
18
|
const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
|
|
19
19
|
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
|
|
20
20
|
enableSolana ? "solana" : "eip155"
|
|
@@ -35,7 +35,7 @@ function DepositModalWithReown(props) {
|
|
|
35
35
|
reown.disconnect();
|
|
36
36
|
}, [reown.disconnect]);
|
|
37
37
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunkPSFPXDKEcjs.DepositModalInner,
|
|
39
39
|
{
|
|
40
40
|
...props,
|
|
41
41
|
reownWallet: reownWithSolana,
|
|
@@ -46,7 +46,7 @@ function DepositModalWithReown(props) {
|
|
|
46
46
|
}
|
|
47
47
|
function DepositModalReown(props) {
|
|
48
48
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
-
|
|
49
|
+
_chunk5H72PM2Ncjs.ReownWalletProvider,
|
|
50
50
|
{
|
|
51
51
|
projectId: props.reownAppId,
|
|
52
52
|
theme: props.theme,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BDMPIDTR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DQ4SKF37.mjs";
|
|
8
|
+
import "./chunk-H2FI4RN7.mjs";
|
|
9
9
|
import "./chunk-6YRDD462.mjs";
|
|
10
10
|
|
|
11
11
|
// src/WithdrawModalReown.tsx
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAX4OHTFCcjs = require('./chunk-AX4OHTFC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk5H72PM2Ncjs = require('./chunk-5H72PM2N.cjs');
|
|
8
|
+
require('./chunk-LJLTLPHL.cjs');
|
|
9
9
|
require('./chunk-MILJQWPT.cjs');
|
|
10
10
|
|
|
11
11
|
// src/WithdrawModalReown.tsx
|
|
12
12
|
var _react = require('react');
|
|
13
13
|
var _jsxruntime = require('react/jsx-runtime');
|
|
14
14
|
function WithdrawModalWithReown(props) {
|
|
15
|
-
const reown =
|
|
15
|
+
const reown = _chunk5H72PM2Ncjs.useReownWallet.call(void 0, );
|
|
16
16
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
17
17
|
reown.openConnect();
|
|
18
18
|
}, [reown.openConnect]);
|
|
@@ -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
|
+
_chunkAX4OHTFCcjs.WithdrawModalInner,
|
|
24
24
|
{
|
|
25
25
|
...props,
|
|
26
26
|
reownWallet: reown,
|
|
@@ -30,7 +30,7 @@ function WithdrawModalWithReown(props) {
|
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
function WithdrawModalReown(props) {
|
|
33
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5H72PM2Ncjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLJLTLPHLcjs = require('./chunk-LJLTLPHL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -145,7 +145,7 @@ function useReownWallet() {
|
|
|
145
145
|
await switchChainAsync({ chainId });
|
|
146
146
|
}
|
|
147
147
|
} catch (err) {
|
|
148
|
-
if (
|
|
148
|
+
if (_chunkLJLTLPHLcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
149
149
|
throw new Error(
|
|
150
150
|
`Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
151
151
|
);
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkLJLTLPHLcjs = require('./chunk-LJLTLPHL.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -255,7 +255,7 @@ function WithdrawFormStep({
|
|
|
255
255
|
setIsSwitching(true);
|
|
256
256
|
switchChain(asset.chainId).catch((err) => {
|
|
257
257
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
258
|
-
setError(
|
|
258
|
+
setError(_chunkLJLTLPHLcjs.formatUserError.call(void 0, raw));
|
|
259
259
|
}).finally(() => {
|
|
260
260
|
setIsSwitching(false);
|
|
261
261
|
});
|
|
@@ -275,7 +275,7 @@ function WithdrawFormStep({
|
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
277
|
try {
|
|
278
|
-
const bal =
|
|
278
|
+
const bal = _chunkLJLTLPHLcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
279
279
|
address: asset.token,
|
|
280
280
|
abi: _viem.erc20Abi,
|
|
281
281
|
functionName: "balanceOf",
|
|
@@ -379,7 +379,7 @@ function WithdrawFormStep({
|
|
|
379
379
|
await onSubmit(recipient, amount);
|
|
380
380
|
} catch (err) {
|
|
381
381
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
382
|
-
setError(
|
|
382
|
+
setError(_chunkLJLTLPHLcjs.formatUserError.call(void 0, raw));
|
|
383
383
|
} finally {
|
|
384
384
|
setIsSubmitting(false);
|
|
385
385
|
}
|
|
@@ -387,16 +387,16 @@ function WithdrawFormStep({
|
|
|
387
387
|
if (isBalanceLoading) {
|
|
388
388
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
389
389
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
|
|
390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.Spinner, { className: "rs-spinner--lg" }),
|
|
391
391
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
392
392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
393
393
|
] }),
|
|
394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.PoweredBy, {})
|
|
395
395
|
] });
|
|
396
396
|
}
|
|
397
397
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
398
398
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
|
|
400
400
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
|
|
401
401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
402
402
|
"label",
|
|
@@ -442,7 +442,7 @@ function WithdrawFormStep({
|
|
|
442
442
|
),
|
|
443
443
|
isRecipientConnected ? null : "Use connected"
|
|
444
444
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
|
|
446
446
|
isRecipientConnected ? null : "Use connected"
|
|
447
447
|
] })
|
|
448
448
|
}
|
|
@@ -482,7 +482,7 @@ function WithdrawFormStep({
|
|
|
482
482
|
) })
|
|
483
483
|
] }),
|
|
484
484
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
485
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
485
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkLJLTLPHLcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
486
486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
487
487
|
"Balance: ",
|
|
488
488
|
formattedBalance,
|
|
@@ -523,7 +523,7 @@ function WithdrawFormStep({
|
|
|
523
523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
|
|
524
524
|
] }),
|
|
525
525
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
526
|
-
|
|
526
|
+
_chunkLJLTLPHLcjs.ChevronDownIcon,
|
|
527
527
|
{
|
|
528
528
|
className: "rs-withdraw-dropdown-arrow",
|
|
529
529
|
style: {
|
|
@@ -592,7 +592,7 @@ function WithdrawFormStep({
|
|
|
592
592
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
|
|
593
593
|
] }),
|
|
594
594
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
595
|
-
|
|
595
|
+
_chunkLJLTLPHLcjs.ChevronDownIcon,
|
|
596
596
|
{
|
|
597
597
|
className: "rs-withdraw-dropdown-arrow",
|
|
598
598
|
style: {
|
|
@@ -632,10 +632,10 @@ function WithdrawFormStep({
|
|
|
632
632
|
] })
|
|
633
633
|
] }),
|
|
634
634
|
chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
635
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
636
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
635
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.Callout, { variant: "error", children: error }),
|
|
636
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.Callout, { variant: "error", children: registrationError }),
|
|
637
637
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
638
|
-
|
|
638
|
+
_chunkLJLTLPHLcjs.Button,
|
|
639
639
|
{
|
|
640
640
|
onClick: handleWithdraw,
|
|
641
641
|
fullWidth: true,
|
|
@@ -645,7 +645,7 @@ function WithdrawFormStep({
|
|
|
645
645
|
}
|
|
646
646
|
)
|
|
647
647
|
] }),
|
|
648
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
648
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.PoweredBy, {})
|
|
649
649
|
] });
|
|
650
650
|
}
|
|
651
651
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -685,7 +685,7 @@ function WithdrawReviewStep({
|
|
|
685
685
|
await onConfirm();
|
|
686
686
|
} catch (err) {
|
|
687
687
|
const raw = err instanceof Error ? err.message : "Withdraw failed";
|
|
688
|
-
const message =
|
|
688
|
+
const message = _chunkLJLTLPHLcjs.formatUserError.call(void 0, raw);
|
|
689
689
|
setError(message);
|
|
690
690
|
_optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
|
|
691
691
|
} finally {
|
|
@@ -696,9 +696,9 @@ function WithdrawReviewStep({
|
|
|
696
696
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
697
697
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
698
698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
699
|
-
|
|
699
|
+
_chunkLJLTLPHLcjs.BodyHeader,
|
|
700
700
|
{
|
|
701
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
701
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.CircleArrowOutUpLeftIcon, {}),
|
|
702
702
|
title: "Review withdrawal"
|
|
703
703
|
}
|
|
704
704
|
),
|
|
@@ -748,10 +748,10 @@ function WithdrawReviewStep({
|
|
|
748
748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
|
|
749
749
|
] })
|
|
750
750
|
] }),
|
|
751
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
752
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
751
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.Callout, { variant: "error", children: error }),
|
|
752
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.Callout, { variant: "error", children: registrationError }),
|
|
753
753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
754
|
-
|
|
754
|
+
_chunkLJLTLPHLcjs.Button,
|
|
755
755
|
{
|
|
756
756
|
onClick: handleConfirm,
|
|
757
757
|
loading: isSubmitting,
|
|
@@ -762,7 +762,7 @@ function WithdrawReviewStep({
|
|
|
762
762
|
}
|
|
763
763
|
)
|
|
764
764
|
] }),
|
|
765
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.PoweredBy, {})
|
|
766
766
|
] });
|
|
767
767
|
}
|
|
768
768
|
WithdrawReviewStep.displayName = "WithdrawReviewStep";
|
|
@@ -773,15 +773,15 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
|
|
|
773
773
|
var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
|
|
774
774
|
var REGISTRATION_DEBOUNCE_MS = 600;
|
|
775
775
|
function resolveSessionOwner(eoaAddress) {
|
|
776
|
-
const localOwner =
|
|
776
|
+
const localOwner = _chunkLJLTLPHLcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
777
777
|
if (localOwner) {
|
|
778
778
|
return {
|
|
779
|
-
account:
|
|
779
|
+
account: _chunkLJLTLPHLcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
780
780
|
address: localOwner.address
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
const created =
|
|
784
|
-
|
|
783
|
+
const created = _chunkLJLTLPHLcjs.createSessionOwnerKey.call(void 0, );
|
|
784
|
+
_chunkLJLTLPHLcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
785
785
|
return { account: created.account, address: created.address };
|
|
786
786
|
}
|
|
787
787
|
function targetsEqual(a, b) {
|
|
@@ -816,19 +816,19 @@ function WithdrawFlow({
|
|
|
816
816
|
onError,
|
|
817
817
|
debug
|
|
818
818
|
}) {
|
|
819
|
-
const onStepChangeRef =
|
|
820
|
-
const onEventRef =
|
|
821
|
-
const onLifecycleRef =
|
|
822
|
-
const onErrorRef =
|
|
819
|
+
const onStepChangeRef = _chunkLJLTLPHLcjs.useLatestRef.call(void 0, onStepChange);
|
|
820
|
+
const onEventRef = _chunkLJLTLPHLcjs.useLatestRef.call(void 0, onEvent);
|
|
821
|
+
const onLifecycleRef = _chunkLJLTLPHLcjs.useLatestRef.call(void 0, onLifecycle);
|
|
822
|
+
const onErrorRef = _chunkLJLTLPHLcjs.useLatestRef.call(void 0, onError);
|
|
823
823
|
const logFlow = _react.useCallback.call(void 0,
|
|
824
824
|
(message, data) => {
|
|
825
|
-
|
|
825
|
+
_chunkLJLTLPHLcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
826
826
|
},
|
|
827
827
|
[debug]
|
|
828
828
|
);
|
|
829
829
|
const logFlowError = _react.useCallback.call(void 0,
|
|
830
830
|
(message, error, data) => {
|
|
831
|
-
|
|
831
|
+
_chunkLJLTLPHLcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
832
832
|
},
|
|
833
833
|
[debug]
|
|
834
834
|
);
|
|
@@ -903,14 +903,14 @@ function WithdrawFlow({
|
|
|
903
903
|
return {
|
|
904
904
|
ownerAddress: dappAddress,
|
|
905
905
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
906
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
906
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJLTLPHLcjs.getPublicClient.call(void 0, sourceChain))),
|
|
907
907
|
switchChain: dappSwitchChain
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
910
|
return {
|
|
911
911
|
ownerAddress: dappWalletClient.account.address,
|
|
912
912
|
walletClient: dappWalletClient,
|
|
913
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
913
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJLTLPHLcjs.getPublicClient.call(void 0, sourceChain))),
|
|
914
914
|
switchChain: dappSwitchChain
|
|
915
915
|
};
|
|
916
916
|
}
|
|
@@ -921,7 +921,7 @@ function WithdrawFlow({
|
|
|
921
921
|
return {
|
|
922
922
|
ownerAddress: dappWalletClient.account.address,
|
|
923
923
|
walletClient: dappWalletClient,
|
|
924
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
924
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJLTLPHLcjs.getPublicClient.call(void 0, sourceChain))),
|
|
925
925
|
switchChain: dappSwitchChain
|
|
926
926
|
};
|
|
927
927
|
}
|
|
@@ -1003,7 +1003,7 @@ function WithdrawFlow({
|
|
|
1003
1003
|
message: typedData.message
|
|
1004
1004
|
});
|
|
1005
1005
|
if (cancelled) return;
|
|
1006
|
-
const sessionDetails =
|
|
1006
|
+
const sessionDetails = _chunkLJLTLPHLcjs.buildSessionDetails.call(void 0,
|
|
1007
1007
|
setup.sessionDetailsUnsigned,
|
|
1008
1008
|
signature
|
|
1009
1009
|
);
|
|
@@ -1040,7 +1040,7 @@ function WithdrawFlow({
|
|
|
1040
1040
|
} catch (err) {
|
|
1041
1041
|
if (cancelled) return;
|
|
1042
1042
|
const raw = err instanceof Error ? err.message : "Registration failed";
|
|
1043
|
-
const message =
|
|
1043
|
+
const message = _chunkLJLTLPHLcjs.formatUserError.call(void 0, raw);
|
|
1044
1044
|
logFlowError("auto-register:failed", err, {
|
|
1045
1045
|
ownerAddress,
|
|
1046
1046
|
targetChain,
|
|
@@ -1076,7 +1076,7 @@ function WithdrawFlow({
|
|
|
1076
1076
|
const symbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1077
1077
|
const decimals = _chunkMILJQWPTcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1078
1078
|
return {
|
|
1079
|
-
id:
|
|
1079
|
+
id: _chunkLJLTLPHLcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1080
1080
|
chainId: sourceChain,
|
|
1081
1081
|
token: sourceToken,
|
|
1082
1082
|
symbol,
|
|
@@ -1184,7 +1184,7 @@ function WithdrawFlow({
|
|
|
1184
1184
|
targetToken
|
|
1185
1185
|
});
|
|
1186
1186
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1187
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => (
|
|
1187
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkLJLTLPHLcjs.getPublicClient.call(void 0, sourceChain)));
|
|
1188
1188
|
let result;
|
|
1189
1189
|
if (onSignTransaction) {
|
|
1190
1190
|
const transferTarget = isSameRoute ? recipient : smartAccount;
|
|
@@ -1197,7 +1197,7 @@ function WithdrawFlow({
|
|
|
1197
1197
|
args: [transferTarget, amountUnits]
|
|
1198
1198
|
})
|
|
1199
1199
|
};
|
|
1200
|
-
const request = await
|
|
1200
|
+
const request = await _chunkLJLTLPHLcjs.buildSafeTransaction.call(void 0, {
|
|
1201
1201
|
publicClient: pc,
|
|
1202
1202
|
safeAddress,
|
|
1203
1203
|
to: transferData.to,
|
|
@@ -1218,7 +1218,7 @@ function WithdrawFlow({
|
|
|
1218
1218
|
}
|
|
1219
1219
|
result = { txHash: relayResult.txHash };
|
|
1220
1220
|
} else if (isSourceNative) {
|
|
1221
|
-
result = await
|
|
1221
|
+
result = await _chunkLJLTLPHLcjs.executeSafeEthTransfer.call(void 0, {
|
|
1222
1222
|
walletClient: signerContext.walletClient,
|
|
1223
1223
|
publicClient: pc,
|
|
1224
1224
|
safeAddress,
|
|
@@ -1227,7 +1227,7 @@ function WithdrawFlow({
|
|
|
1227
1227
|
chainId: sourceChain
|
|
1228
1228
|
});
|
|
1229
1229
|
} else {
|
|
1230
|
-
result = await
|
|
1230
|
+
result = await _chunkLJLTLPHLcjs.executeSafeErc20Transfer.call(void 0, {
|
|
1231
1231
|
walletClient: signerContext.walletClient,
|
|
1232
1232
|
publicClient: pc,
|
|
1233
1233
|
safeAddress,
|
|
@@ -1260,7 +1260,7 @@ function WithdrawFlow({
|
|
|
1260
1260
|
targetChain,
|
|
1261
1261
|
targetToken
|
|
1262
1262
|
});
|
|
1263
|
-
handleError(
|
|
1263
|
+
handleError(_chunkLJLTLPHLcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1264
1264
|
throw err;
|
|
1265
1265
|
}
|
|
1266
1266
|
},
|
|
@@ -1399,7 +1399,7 @@ function WithdrawFlow({
|
|
|
1399
1399
|
state: "ready"
|
|
1400
1400
|
}));
|
|
1401
1401
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1402
|
-
|
|
1402
|
+
_chunkLJLTLPHLcjs.ConnectStep,
|
|
1403
1403
|
{
|
|
1404
1404
|
walletRows: withdrawRows,
|
|
1405
1405
|
onConfirmWallet: (walletId) => {
|
|
@@ -1417,7 +1417,7 @@ function WithdrawFlow({
|
|
|
1417
1417
|
if (!signerContext) return null;
|
|
1418
1418
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1419
1419
|
const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
|
|
1420
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1420
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkLJLTLPHLcjs.getPublicClient.call(void 0, sourceChain)));
|
|
1421
1421
|
const stepView = deriveStepView(flowStep, registration);
|
|
1422
1422
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
1423
1423
|
stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1461,7 +1461,7 @@ function WithdrawFlow({
|
|
|
1461
1461
|
}
|
|
1462
1462
|
),
|
|
1463
1463
|
stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1464
|
-
|
|
1464
|
+
_chunkLJLTLPHLcjs.ProcessingStep,
|
|
1465
1465
|
{
|
|
1466
1466
|
smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
|
|
1467
1467
|
txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
|
|
@@ -1494,7 +1494,7 @@ function deriveStepView(step, _registration) {
|
|
|
1494
1494
|
// src/WithdrawModal.tsx
|
|
1495
1495
|
|
|
1496
1496
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1497
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1497
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-FJ4MPMFA.cjs"))).then((m) => ({
|
|
1498
1498
|
default: m.WithdrawModalReown
|
|
1499
1499
|
}))
|
|
1500
1500
|
);
|
|
@@ -1541,18 +1541,18 @@ function WithdrawModalInner({
|
|
|
1541
1541
|
debug
|
|
1542
1542
|
}) {
|
|
1543
1543
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1544
|
-
const onReadyRef =
|
|
1544
|
+
const onReadyRef = _chunkLJLTLPHLcjs.useLatestRef.call(void 0, onReady);
|
|
1545
1545
|
const [backHandler, setBackHandler] = _react.useState.call(void 0,
|
|
1546
1546
|
void 0
|
|
1547
1547
|
);
|
|
1548
1548
|
const targetChain = _chunkMILJQWPTcjs.getChainId.call(void 0, targetChainProp);
|
|
1549
1549
|
const sourceChain = _chunkMILJQWPTcjs.getChainId.call(void 0, sourceChainProp);
|
|
1550
1550
|
const service = _react.useMemo.call(void 0,
|
|
1551
|
-
() =>
|
|
1551
|
+
() => _chunkLJLTLPHLcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1552
1552
|
[backendUrl, debug]
|
|
1553
1553
|
);
|
|
1554
1554
|
const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
|
|
1555
|
-
const onErrorRef =
|
|
1555
|
+
const onErrorRef = _chunkLJLTLPHLcjs.useLatestRef.call(void 0, onError);
|
|
1556
1556
|
_react.useEffect.call(void 0, () => {
|
|
1557
1557
|
if (isOpen && onSignTransaction && !dappAddress) {
|
|
1558
1558
|
_optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
|
|
@@ -1563,7 +1563,7 @@ function WithdrawModalInner({
|
|
|
1563
1563
|
}, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
|
|
1564
1564
|
_react.useEffect.call(void 0, () => {
|
|
1565
1565
|
if (isOpen && modalRef.current) {
|
|
1566
|
-
|
|
1566
|
+
_chunkLJLTLPHLcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1567
1567
|
}
|
|
1568
1568
|
}, [isOpen, theme]);
|
|
1569
1569
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1582,7 +1582,7 @@ function WithdrawModalInner({
|
|
|
1582
1582
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
|
|
1583
1583
|
const canGoBack = backHandler !== void 0;
|
|
1584
1584
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1585
|
-
|
|
1585
|
+
_chunkLJLTLPHLcjs.Modal,
|
|
1586
1586
|
{
|
|
1587
1587
|
isOpen,
|
|
1588
1588
|
onClose,
|
|
@@ -1598,7 +1598,7 @@ function WithdrawModalInner({
|
|
|
1598
1598
|
className: "rs-modal-header-back",
|
|
1599
1599
|
"aria-label": "Go back",
|
|
1600
1600
|
onClick: backHandler,
|
|
1601
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1601
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.ChevronLeftIcon, {})
|
|
1602
1602
|
}
|
|
1603
1603
|
) }),
|
|
1604
1604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1608,7 +1608,7 @@ function WithdrawModalInner({
|
|
|
1608
1608
|
onClick: onClose,
|
|
1609
1609
|
className: "rs-modal-close",
|
|
1610
1610
|
"aria-label": "Close",
|
|
1611
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1611
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJLTLPHLcjs.CloseIcon, {})
|
|
1612
1612
|
}
|
|
1613
1613
|
) })
|
|
1614
1614
|
] }),
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
loadSessionOwnerFromStorage,
|
|
31
31
|
saveSessionOwnerToStorage,
|
|
32
32
|
useLatestRef
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-H2FI4RN7.mjs";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_BACKEND_URL,
|
|
36
36
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -1494,7 +1494,7 @@ function deriveStepView(step, _registration) {
|
|
|
1494
1494
|
// src/WithdrawModal.tsx
|
|
1495
1495
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1496
1496
|
var ReownWithdrawInner = lazy(
|
|
1497
|
-
() => import("./WithdrawModalReown-
|
|
1497
|
+
() => import("./WithdrawModalReown-EAST32BT.mjs").then((m) => ({
|
|
1498
1498
|
default: m.WithdrawModalReown
|
|
1499
1499
|
}))
|
|
1500
1500
|
);
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
tokenFormatter,
|
|
51
51
|
txRefsMatch,
|
|
52
52
|
useLatestRef
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-H2FI4RN7.mjs";
|
|
54
54
|
import {
|
|
55
55
|
DEFAULT_BACKEND_URL,
|
|
56
56
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -842,6 +842,7 @@ function ConfirmStep({
|
|
|
842
842
|
estimatedTime = "< 1 min",
|
|
843
843
|
quotedFeeAmount = "0.1",
|
|
844
844
|
quotedFeeSymbol,
|
|
845
|
+
service,
|
|
845
846
|
onConfirm,
|
|
846
847
|
onError,
|
|
847
848
|
onDepositSubmitted,
|
|
@@ -849,6 +850,7 @@ function ConfirmStep({
|
|
|
849
850
|
}) {
|
|
850
851
|
const [isSubmitting, setIsSubmitting] = useState3(false);
|
|
851
852
|
const [error, setError] = useState3(null);
|
|
853
|
+
const [quote, setQuote] = useState3(null);
|
|
852
854
|
const hasAttemptedSwitch = useRef3(false);
|
|
853
855
|
const chainMismatch = Boolean(
|
|
854
856
|
walletClient?.chain?.id && walletClient.chain.id !== asset.chainId
|
|
@@ -882,6 +884,8 @@ function ConfirmStep({
|
|
|
882
884
|
const receiveAmount = sameRoute ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
|
|
883
885
|
const feeSponsored = uiConfig?.feeSponsored ?? false;
|
|
884
886
|
const feeTooltip = uiConfig?.feeTooltip ?? (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.");
|
|
887
|
+
const feeDisplay = quote ? `$${quote.fees.totalUsd.toFixed(2)}` : null;
|
|
888
|
+
const estimatedTimeDisplay = quote ? quote.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.estimatedFillTimeSeconds / 60)} min` : estimatedTime;
|
|
885
889
|
useEffect3(() => {
|
|
886
890
|
if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
|
|
887
891
|
hasAttemptedSwitch.current = true;
|
|
@@ -894,6 +898,39 @@ function ConfirmStep({
|
|
|
894
898
|
useEffect3(() => {
|
|
895
899
|
hasAttemptedSwitch.current = false;
|
|
896
900
|
}, [asset.chainId]);
|
|
901
|
+
useEffect3(() => {
|
|
902
|
+
if (targetChain === "solana" && asset.chainId === void 0) return;
|
|
903
|
+
let cancelled = false;
|
|
904
|
+
let units;
|
|
905
|
+
try {
|
|
906
|
+
units = parseUnits2(amount, asset.decimals);
|
|
907
|
+
} catch {
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
if (units <= 0n) return;
|
|
911
|
+
setQuote(null);
|
|
912
|
+
service.getQuotePreview({
|
|
913
|
+
account: smartAccount,
|
|
914
|
+
sourceChainId: asset.chainId,
|
|
915
|
+
sourceToken: asset.token,
|
|
916
|
+
amount: units.toString()
|
|
917
|
+
}).then((result) => {
|
|
918
|
+
if (!cancelled) setQuote(result);
|
|
919
|
+
}).catch(() => {
|
|
920
|
+
if (!cancelled) setQuote(null);
|
|
921
|
+
});
|
|
922
|
+
return () => {
|
|
923
|
+
cancelled = true;
|
|
924
|
+
};
|
|
925
|
+
}, [
|
|
926
|
+
service,
|
|
927
|
+
smartAccount,
|
|
928
|
+
asset.chainId,
|
|
929
|
+
asset.token,
|
|
930
|
+
asset.decimals,
|
|
931
|
+
amount,
|
|
932
|
+
targetChain
|
|
933
|
+
]);
|
|
897
934
|
const handleConfirm = async () => {
|
|
898
935
|
if (!address || !walletClient) {
|
|
899
936
|
setError("Wallet not connected");
|
|
@@ -982,7 +1019,7 @@ function ConfirmStep({
|
|
|
982
1019
|
] }),
|
|
983
1020
|
/* @__PURE__ */ jsxs4("div", { className: "rs-review-detail-row", children: [
|
|
984
1021
|
/* @__PURE__ */ jsx4("span", { children: "Estimated time" }),
|
|
985
|
-
/* @__PURE__ */ jsx4("span", { className: "rs-review-detail-value", children:
|
|
1022
|
+
/* @__PURE__ */ jsx4("span", { className: "rs-review-detail-value", children: estimatedTimeDisplay })
|
|
986
1023
|
] }),
|
|
987
1024
|
/* @__PURE__ */ jsxs4("div", { className: "rs-review-detail-row", children: [
|
|
988
1025
|
/* @__PURE__ */ jsx4("span", { children: "You send" }),
|
|
@@ -1009,11 +1046,17 @@ function ConfirmStep({
|
|
|
1009
1046
|
/* @__PURE__ */ jsxs4("div", { className: "rs-review-detail-row", children: [
|
|
1010
1047
|
/* @__PURE__ */ jsx4("span", { children: "Fees" }),
|
|
1011
1048
|
/* @__PURE__ */ jsxs4("span", { className: "rs-review-detail-value", children: [
|
|
1012
|
-
/* @__PURE__ */ jsx4(
|
|
1049
|
+
feeDisplay === null ? /* @__PURE__ */ jsx4(
|
|
1050
|
+
"span",
|
|
1051
|
+
{
|
|
1052
|
+
className: "rs-skeleton rs-skeleton-fee",
|
|
1053
|
+
"aria-hidden": "true"
|
|
1054
|
+
}
|
|
1055
|
+
) : /* @__PURE__ */ jsx4(
|
|
1013
1056
|
"span",
|
|
1014
1057
|
{
|
|
1015
1058
|
style: feeSponsored ? { textDecoration: "line-through" } : void 0,
|
|
1016
|
-
children:
|
|
1059
|
+
children: feeDisplay
|
|
1017
1060
|
}
|
|
1018
1061
|
),
|
|
1019
1062
|
/* @__PURE__ */ jsx4(Tooltip, { content: feeTooltip, children: /* @__PURE__ */ jsx4("span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ jsx4(InfoIcon, {}) }) })
|
|
@@ -6873,6 +6916,7 @@ function DepositFlow({
|
|
|
6873
6916
|
switchChain: signerContext.switchChain,
|
|
6874
6917
|
liquidityWarning: effectiveStep.liquidityWarning,
|
|
6875
6918
|
uiConfig,
|
|
6919
|
+
service,
|
|
6876
6920
|
executeTransfer: isDappImportMode && activeDappImportProvider && isDappImportAsset(effectiveStep.asset) ? async (amountUnits) => {
|
|
6877
6921
|
const result = await activeDappImportProvider.executeTransfer(
|
|
6878
6922
|
{
|
|
@@ -7213,7 +7257,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
7213
7257
|
// src/DepositModal.tsx
|
|
7214
7258
|
import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7215
7259
|
var ReownDepositInner = lazy2(
|
|
7216
|
-
() => import("./DepositModalReown-
|
|
7260
|
+
() => import("./DepositModalReown-ADTQMSTI.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
7217
7261
|
);
|
|
7218
7262
|
function sortByCreatedAtDesc(items) {
|
|
7219
7263
|
return [...items].sort((a, b) => {
|