@rhinestone/deposit-modal 0.1.55 → 0.1.57
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-5QKEE7R3.mjs → DepositModalReown-C3WPJW3E.mjs} +2 -2
- package/dist/{DepositModalReown-XKP2Z55X.cjs → DepositModalReown-KONUZXHJ.cjs} +3 -3
- package/dist/{WithdrawModalReown-K57JK52O.mjs → WithdrawModalReown-PFGUPZFN.mjs} +2 -2
- package/dist/{WithdrawModalReown-CN2NJUYL.cjs → WithdrawModalReown-TUBSUJQ6.cjs} +3 -3
- package/dist/{chunk-QOEACKBH.mjs → chunk-3ESBSOB7.mjs} +2 -2
- package/dist/{chunk-XMNGYDDB.cjs → chunk-3FEFGN7H.cjs} +33 -33
- package/dist/{chunk-JQTV5JTB.mjs → chunk-7TTEHQBD.mjs} +28 -16
- package/dist/{chunk-EAEDK474.cjs → chunk-TQ6IIGRS.cjs} +77 -65
- package/dist/{chunk-AJUR6FAP.mjs → chunk-VOGD6Y4U.mjs} +2 -2
- package/dist/{chunk-QJVXCBUI.cjs → chunk-Z2TKNB6C.cjs} +82 -82
- 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/reown.cjs +4 -4
- package/dist/reown.mjs +3 -3
- package/dist/styles.css +5 -1
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkTQ6IIGRScjs = require('./chunk-TQ6IIGRS.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -61,15 +61,15 @@ var _react = require('react');
|
|
|
61
61
|
|
|
62
62
|
var _jsxruntime = require('react/jsx-runtime');
|
|
63
63
|
async function resolveSessionOwner(eoaAddress) {
|
|
64
|
-
const localOwner =
|
|
64
|
+
const localOwner = _chunkTQ6IIGRScjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
65
65
|
if (localOwner) {
|
|
66
66
|
return {
|
|
67
|
-
account:
|
|
67
|
+
account: _chunkTQ6IIGRScjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
68
68
|
address: localOwner.address
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
const created =
|
|
72
|
-
|
|
71
|
+
const created = _chunkTQ6IIGRScjs.createSessionOwnerKey.call(void 0, );
|
|
72
|
+
_chunkTQ6IIGRScjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
73
73
|
return {
|
|
74
74
|
account: created.account,
|
|
75
75
|
address: created.address
|
|
@@ -105,7 +105,7 @@ function SetupStep({
|
|
|
105
105
|
const setup = await service.setupAccount({
|
|
106
106
|
ownerAddress: address,
|
|
107
107
|
sessionOwnerAddress: sessionOwner.address,
|
|
108
|
-
targetChain:
|
|
108
|
+
targetChain: _chunkTQ6IIGRScjs.toEvmCaip2.call(void 0, targetChain),
|
|
109
109
|
targetToken,
|
|
110
110
|
signerAddress,
|
|
111
111
|
sessionChainIds,
|
|
@@ -135,7 +135,7 @@ function SetupStep({
|
|
|
135
135
|
primaryType: typedData.primaryType,
|
|
136
136
|
message: typedData.message
|
|
137
137
|
});
|
|
138
|
-
const sessionDetails =
|
|
138
|
+
const sessionDetails = _chunkTQ6IIGRScjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
|
|
139
139
|
setState({ type: "registering" });
|
|
140
140
|
const registerResult = await service.registerAccount({
|
|
141
141
|
address: smartAccount,
|
|
@@ -147,7 +147,7 @@ function SetupStep({
|
|
|
147
147
|
eoaAddress: address,
|
|
148
148
|
sessionOwner: sessionOwner.address,
|
|
149
149
|
target: {
|
|
150
|
-
chain:
|
|
150
|
+
chain: _chunkTQ6IIGRScjs.toEvmCaip2.call(void 0, targetChain),
|
|
151
151
|
token: targetToken,
|
|
152
152
|
...recipient && { recipient }
|
|
153
153
|
}
|
|
@@ -210,7 +210,7 @@ function SetupStep({
|
|
|
210
210
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
211
211
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
|
|
212
212
|
isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
213
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
213
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
|
|
214
214
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-text", children: [
|
|
215
215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: renderStateMessage() }),
|
|
216
216
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "This may take a moment" })
|
|
@@ -247,7 +247,7 @@ function SetupStep({
|
|
|
247
247
|
] })
|
|
248
248
|
] })
|
|
249
249
|
] }),
|
|
250
|
-
isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
+
isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
|
|
251
251
|
] });
|
|
252
252
|
}
|
|
253
253
|
|
|
@@ -272,7 +272,7 @@ function AssetSelectStep({
|
|
|
272
272
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
273
273
|
const defaultAssetId = _react.useMemo.call(void 0, () => {
|
|
274
274
|
if (!defaultSourceChain || !defaultSourceToken) return null;
|
|
275
|
-
return
|
|
275
|
+
return _chunkTQ6IIGRScjs.getAssetId.call(void 0, {
|
|
276
276
|
chainId: defaultSourceChain,
|
|
277
277
|
token: defaultSourceToken
|
|
278
278
|
});
|
|
@@ -289,7 +289,7 @@ function AssetSelectStep({
|
|
|
289
289
|
try {
|
|
290
290
|
const portfolio = await service.fetchPortfolio(address);
|
|
291
291
|
if (!active) return;
|
|
292
|
-
const portfolioAssets =
|
|
292
|
+
const portfolioAssets = _chunkTQ6IIGRScjs.portfolioToAssets.call(void 0, portfolio.tokens);
|
|
293
293
|
setAssets(portfolioAssets);
|
|
294
294
|
const hasNative = portfolioAssets.some(
|
|
295
295
|
(asset) => asset.token.toLowerCase() === _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
|
|
@@ -370,7 +370,7 @@ function AssetSelectStep({
|
|
|
370
370
|
const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
|
|
371
371
|
const numeric = Number(raw);
|
|
372
372
|
if (!Number.isFinite(numeric)) return raw;
|
|
373
|
-
return
|
|
373
|
+
return _chunkTQ6IIGRScjs.tokenFormatter.format(numeric);
|
|
374
374
|
} catch (e3) {
|
|
375
375
|
return asset.balance;
|
|
376
376
|
}
|
|
@@ -384,7 +384,7 @@ function AssetSelectStep({
|
|
|
384
384
|
style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
|
|
385
385
|
children: [
|
|
386
386
|
loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
|
|
387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.Spinner, { className: "rs-text-tertiary" }),
|
|
388
388
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
|
|
389
389
|
] }),
|
|
390
390
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-alert rs-alert--error", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error }) }),
|
|
@@ -474,7 +474,7 @@ function AssetSelectStep({
|
|
|
474
474
|
] })
|
|
475
475
|
] })
|
|
476
476
|
] }),
|
|
477
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ?
|
|
477
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkTQ6IIGRScjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
|
|
478
478
|
]
|
|
479
479
|
},
|
|
480
480
|
asset.id
|
|
@@ -484,7 +484,7 @@ function AssetSelectStep({
|
|
|
484
484
|
}
|
|
485
485
|
),
|
|
486
486
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
487
|
-
|
|
487
|
+
_chunkTQ6IIGRScjs.Button,
|
|
488
488
|
{
|
|
489
489
|
onClick: () => selectedAsset && onContinue(selectedAsset),
|
|
490
490
|
disabled: !selectedAsset,
|
|
@@ -492,7 +492,7 @@ function AssetSelectStep({
|
|
|
492
492
|
children: "Continue"
|
|
493
493
|
}
|
|
494
494
|
) }),
|
|
495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
496
496
|
] });
|
|
497
497
|
}
|
|
498
498
|
async function fetchNativeAssets(address, publicClient, existing) {
|
|
@@ -500,7 +500,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
|
|
|
500
500
|
const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
|
|
501
501
|
if (!connectedChainId) return [];
|
|
502
502
|
if (!_chunkR6U6BHCVcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
|
|
503
|
-
const id =
|
|
503
|
+
const id = _chunkTQ6IIGRScjs.getAssetId.call(void 0, {
|
|
504
504
|
chainId: connectedChainId,
|
|
505
505
|
token: _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
|
|
506
506
|
});
|
|
@@ -586,7 +586,7 @@ function AmountStep({
|
|
|
586
586
|
const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
|
|
587
587
|
if (!balanceTarget || !publicClient) return;
|
|
588
588
|
try {
|
|
589
|
-
const bal =
|
|
589
|
+
const bal = _chunkTQ6IIGRScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
|
|
590
590
|
address: asset.token,
|
|
591
591
|
abi: _viem.erc20Abi,
|
|
592
592
|
functionName: "balanceOf",
|
|
@@ -612,7 +612,7 @@ function AmountStep({
|
|
|
612
612
|
setIsSwitching(true);
|
|
613
613
|
switchChain(asset.chainId).catch((err) => {
|
|
614
614
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
615
|
-
setError(
|
|
615
|
+
setError(_chunkTQ6IIGRScjs.formatUserError.call(void 0, raw));
|
|
616
616
|
}).finally(() => {
|
|
617
617
|
setIsSwitching(false);
|
|
618
618
|
});
|
|
@@ -648,7 +648,7 @@ function AmountStep({
|
|
|
648
648
|
const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
|
|
649
649
|
const numeric = Number(raw);
|
|
650
650
|
if (!Number.isFinite(numeric)) return raw;
|
|
651
|
-
return
|
|
651
|
+
return _chunkTQ6IIGRScjs.tokenFormatter.format(numeric);
|
|
652
652
|
} catch (e8) {
|
|
653
653
|
return "...";
|
|
654
654
|
}
|
|
@@ -690,7 +690,7 @@ function AmountStep({
|
|
|
690
690
|
const usdValue = numericAmount;
|
|
691
691
|
if (_optionalChain([uiConfig, 'optionalAccess', _15 => _15.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
|
|
692
692
|
setError(
|
|
693
|
-
`Maximum deposit is ${
|
|
693
|
+
`Maximum deposit is ${_chunkTQ6IIGRScjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
|
|
694
694
|
);
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
@@ -744,7 +744,7 @@ function AmountStep({
|
|
|
744
744
|
hasPricing && balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { color: "var(--rs-muted-foreground)" }, children: [
|
|
745
745
|
" ",
|
|
746
746
|
"(",
|
|
747
|
-
|
|
747
|
+
_chunkTQ6IIGRScjs.currencyFormatter.format(balanceUsd),
|
|
748
748
|
")"
|
|
749
749
|
] })
|
|
750
750
|
] }) })
|
|
@@ -881,7 +881,7 @@ function AmountStep({
|
|
|
881
881
|
)
|
|
882
882
|
] }),
|
|
883
883
|
_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
|
|
884
|
-
|
|
884
|
+
_chunkTQ6IIGRScjs.currencyFormatter.format(uiConfig.minDepositUsd),
|
|
885
885
|
" minimum deposit"
|
|
886
886
|
] }),
|
|
887
887
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
|
|
@@ -907,7 +907,7 @@ function AmountStep({
|
|
|
907
907
|
] })
|
|
908
908
|
] }),
|
|
909
909
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
910
|
-
|
|
910
|
+
_chunkTQ6IIGRScjs.Button,
|
|
911
911
|
{
|
|
912
912
|
onClick: handleContinue,
|
|
913
913
|
fullWidth: true,
|
|
@@ -915,7 +915,7 @@ function AmountStep({
|
|
|
915
915
|
children: _optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
|
|
916
916
|
}
|
|
917
917
|
) }),
|
|
918
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
918
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
919
919
|
] });
|
|
920
920
|
}
|
|
921
921
|
|
|
@@ -965,7 +965,7 @@ function ConfirmStep({
|
|
|
965
965
|
setIsSwitching(true);
|
|
966
966
|
switchChain(asset.chainId).catch((err) => {
|
|
967
967
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
968
|
-
setError(
|
|
968
|
+
setError(_chunkTQ6IIGRScjs.formatUserError.call(void 0, raw));
|
|
969
969
|
}).finally(() => {
|
|
970
970
|
setIsSwitching(false);
|
|
971
971
|
});
|
|
@@ -1008,7 +1008,7 @@ function ConfirmStep({
|
|
|
1008
1008
|
throw new Error("Wallet not properly connected");
|
|
1009
1009
|
}
|
|
1010
1010
|
const transferTo = sameRoute ? recipient : smartAccount;
|
|
1011
|
-
const hash =
|
|
1011
|
+
const hash = _chunkTQ6IIGRScjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
|
|
1012
1012
|
account,
|
|
1013
1013
|
chain,
|
|
1014
1014
|
to: transferTo,
|
|
@@ -1025,7 +1025,7 @@ function ConfirmStep({
|
|
|
1025
1025
|
onConfirm(hash, asset.chainId, amountUnits.toString(), asset.token);
|
|
1026
1026
|
} catch (err) {
|
|
1027
1027
|
const raw = err instanceof Error ? err.message : "Transfer failed";
|
|
1028
|
-
const message =
|
|
1028
|
+
const message = _chunkTQ6IIGRScjs.formatUserError.call(void 0, raw);
|
|
1029
1029
|
setError(message);
|
|
1030
1030
|
_optionalChain([onError, 'optionalCall', _22 => _22(message, "TRANSFER_ERROR")]);
|
|
1031
1031
|
} finally {
|
|
@@ -1154,7 +1154,7 @@ function ConfirmStep({
|
|
|
1154
1154
|
] })
|
|
1155
1155
|
] }),
|
|
1156
1156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1157
|
-
|
|
1157
|
+
_chunkTQ6IIGRScjs.Button,
|
|
1158
1158
|
{
|
|
1159
1159
|
onClick: handleConfirm,
|
|
1160
1160
|
loading: isSubmitting,
|
|
@@ -1163,7 +1163,7 @@ function ConfirmStep({
|
|
|
1163
1163
|
children: "Confirm Order"
|
|
1164
1164
|
}
|
|
1165
1165
|
) }),
|
|
1166
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1166
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
1167
1167
|
] });
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
@@ -1573,10 +1573,10 @@ function DepositAddressStep({
|
|
|
1573
1573
|
const status = await service.fetchLatestStatus(smartAccount);
|
|
1574
1574
|
if (cancelled || depositHandledRef.current) return;
|
|
1575
1575
|
const event = status.lastEvent;
|
|
1576
|
-
const eventTxHash =
|
|
1576
|
+
const eventTxHash = _chunkTQ6IIGRScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkTQ6IIGRScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
|
|
1577
1577
|
if (baselineTxHash === void 0) {
|
|
1578
1578
|
baselineTxHash = eventTxHash;
|
|
1579
|
-
} else if (eventTxHash && (!baselineTxHash || !
|
|
1579
|
+
} else if (eventTxHash && (!baselineTxHash || !_chunkTQ6IIGRScjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
|
|
1580
1580
|
const details = getDepositEventDetails(event);
|
|
1581
1581
|
const fallback = sourceSelectionRef.current;
|
|
1582
1582
|
const chainId = _nullishCoalesce(details.chainId, () => ( fallback.chainId));
|
|
@@ -1799,7 +1799,7 @@ function DepositAddressStep({
|
|
|
1799
1799
|
] }),
|
|
1800
1800
|
pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError })
|
|
1801
1801
|
] }) }),
|
|
1802
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1802
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
1803
1803
|
] });
|
|
1804
1804
|
}
|
|
1805
1805
|
DepositAddressStep.displayName = "DepositAddressStep";
|
|
@@ -1830,7 +1830,7 @@ function SolanaTokenSelectStep({
|
|
|
1830
1830
|
setError(null);
|
|
1831
1831
|
const portfolioBySymbol = {};
|
|
1832
1832
|
try {
|
|
1833
|
-
|
|
1833
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
|
|
1834
1834
|
solanaAddress
|
|
1835
1835
|
});
|
|
1836
1836
|
const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
|
|
@@ -1853,12 +1853,12 @@ function SolanaTokenSelectStep({
|
|
|
1853
1853
|
};
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
|
-
|
|
1856
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
|
|
1857
1857
|
symbols: Object.keys(portfolioBySymbol)
|
|
1858
1858
|
});
|
|
1859
1859
|
} catch (err) {
|
|
1860
1860
|
if (!active) return;
|
|
1861
|
-
|
|
1861
|
+
_chunkTQ6IIGRScjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
|
|
1862
1862
|
solanaAddress
|
|
1863
1863
|
});
|
|
1864
1864
|
setError(
|
|
@@ -1912,7 +1912,7 @@ function SolanaTokenSelectStep({
|
|
|
1912
1912
|
style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
|
|
1913
1913
|
children: [
|
|
1914
1914
|
loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
|
|
1915
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1915
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.Spinner, { className: "rs-text-tertiary" }),
|
|
1916
1916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
|
|
1917
1917
|
] }),
|
|
1918
1918
|
!loading && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
|
|
@@ -1949,7 +1949,7 @@ function SolanaTokenSelectStep({
|
|
|
1949
1949
|
try {
|
|
1950
1950
|
const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
|
|
1951
1951
|
const numeric = Number(raw);
|
|
1952
|
-
formattedBalance = Number.isFinite(numeric) ?
|
|
1952
|
+
formattedBalance = Number.isFinite(numeric) ? _chunkTQ6IIGRScjs.tokenFormatter.format(numeric) : raw;
|
|
1953
1953
|
} catch (e14) {
|
|
1954
1954
|
formattedBalance = "...";
|
|
1955
1955
|
}
|
|
@@ -1993,7 +1993,7 @@ function SolanaTokenSelectStep({
|
|
|
1993
1993
|
] })
|
|
1994
1994
|
] })
|
|
1995
1995
|
] }),
|
|
1996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ?
|
|
1996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkTQ6IIGRScjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
|
|
1997
1997
|
]
|
|
1998
1998
|
},
|
|
1999
1999
|
entry.token.symbol
|
|
@@ -2003,7 +2003,7 @@ function SolanaTokenSelectStep({
|
|
|
2003
2003
|
}
|
|
2004
2004
|
),
|
|
2005
2005
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2006
|
-
|
|
2006
|
+
_chunkTQ6IIGRScjs.Button,
|
|
2007
2007
|
{
|
|
2008
2008
|
onClick: () => selectedEntry && onContinue(
|
|
2009
2009
|
selectedEntry.token,
|
|
@@ -2015,7 +2015,7 @@ function SolanaTokenSelectStep({
|
|
|
2015
2015
|
children: "Continue"
|
|
2016
2016
|
}
|
|
2017
2017
|
) }),
|
|
2018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
2019
2019
|
] });
|
|
2020
2020
|
}
|
|
2021
2021
|
|
|
@@ -2063,7 +2063,7 @@ function SolanaAmountStep({
|
|
|
2063
2063
|
const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
|
|
2064
2064
|
const numeric = Number(raw);
|
|
2065
2065
|
if (!Number.isFinite(numeric)) return raw;
|
|
2066
|
-
return
|
|
2066
|
+
return _chunkTQ6IIGRScjs.tokenFormatter.format(numeric);
|
|
2067
2067
|
} catch (e16) {
|
|
2068
2068
|
return "...";
|
|
2069
2069
|
}
|
|
@@ -2081,7 +2081,7 @@ function SolanaAmountStep({
|
|
|
2081
2081
|
}, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
|
|
2082
2082
|
const formattedBalanceUsd = _react.useMemo.call(void 0, () => {
|
|
2083
2083
|
if (computedBalanceUsd === null || computedBalanceUsd <= 0) return null;
|
|
2084
|
-
return
|
|
2084
|
+
return _chunkTQ6IIGRScjs.currencyFormatter.format(computedBalanceUsd);
|
|
2085
2085
|
}, [computedBalanceUsd]);
|
|
2086
2086
|
const spendableBalance = _react.useMemo.call(void 0, () => {
|
|
2087
2087
|
if (!isNativeSol(token)) return balance;
|
|
@@ -2106,7 +2106,7 @@ function SolanaAmountStep({
|
|
|
2106
2106
|
const factor = 10 ** maxDecimals;
|
|
2107
2107
|
const truncated = Math.floor(value * factor) / factor;
|
|
2108
2108
|
const formatted = truncated.toFixed(maxDecimals).replace(/\.?0+$/, "");
|
|
2109
|
-
|
|
2109
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
|
|
2110
2110
|
percentage,
|
|
2111
2111
|
symbol: token.symbol,
|
|
2112
2112
|
formatted
|
|
@@ -2120,7 +2120,7 @@ function SolanaAmountStep({
|
|
|
2120
2120
|
const handleContinue = () => {
|
|
2121
2121
|
const numericAmount = parseFloat(amount);
|
|
2122
2122
|
if (isNaN(numericAmount) || numericAmount <= 0) {
|
|
2123
|
-
|
|
2123
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
|
|
2124
2124
|
amount,
|
|
2125
2125
|
reason: "nan-or-non-positive"
|
|
2126
2126
|
});
|
|
@@ -2132,7 +2132,7 @@ function SolanaAmountStep({
|
|
|
2132
2132
|
const usdValue = numericAmount;
|
|
2133
2133
|
if (_optionalChain([uiConfig, 'optionalAccess', _44 => _44.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
|
|
2134
2134
|
setError(
|
|
2135
|
-
`Maximum deposit is ${
|
|
2135
|
+
`Maximum deposit is ${_chunkTQ6IIGRScjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
|
|
2136
2136
|
);
|
|
2137
2137
|
return;
|
|
2138
2138
|
}
|
|
@@ -2147,7 +2147,7 @@ function SolanaAmountStep({
|
|
|
2147
2147
|
try {
|
|
2148
2148
|
amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
|
|
2149
2149
|
} catch (e20) {
|
|
2150
|
-
|
|
2150
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
|
|
2151
2151
|
amount,
|
|
2152
2152
|
sourceAmount: sourceAmountStr,
|
|
2153
2153
|
reason: "parse-units-failed"
|
|
@@ -2157,7 +2157,7 @@ function SolanaAmountStep({
|
|
|
2157
2157
|
}
|
|
2158
2158
|
if (amountInUnits > spendableBalance) {
|
|
2159
2159
|
const isReserveIssue = isNativeSol(token) && amountInUnits <= balance;
|
|
2160
|
-
|
|
2160
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
|
|
2161
2161
|
amount,
|
|
2162
2162
|
balance: balance.toString(),
|
|
2163
2163
|
spendableBalance: spendableBalance.toString(),
|
|
@@ -2169,7 +2169,7 @@ function SolanaAmountStep({
|
|
|
2169
2169
|
);
|
|
2170
2170
|
return;
|
|
2171
2171
|
}
|
|
2172
|
-
|
|
2172
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
|
|
2173
2173
|
symbol: token.symbol,
|
|
2174
2174
|
inputAmountUsd: amount,
|
|
2175
2175
|
sourceAmount: sourceAmountStr,
|
|
@@ -2238,7 +2238,7 @@ function SolanaAmountStep({
|
|
|
2238
2238
|
)
|
|
2239
2239
|
] }),
|
|
2240
2240
|
_optionalChain([uiConfig, 'optionalAccess', _46 => _46.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
|
|
2241
|
-
|
|
2241
|
+
_chunkTQ6IIGRScjs.currencyFormatter.format(uiConfig.minDepositUsd),
|
|
2242
2242
|
" minimum deposit"
|
|
2243
2243
|
] }),
|
|
2244
2244
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
|
|
@@ -2264,7 +2264,7 @@ function SolanaAmountStep({
|
|
|
2264
2264
|
] })
|
|
2265
2265
|
] }),
|
|
2266
2266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2267
|
-
|
|
2267
|
+
_chunkTQ6IIGRScjs.Button,
|
|
2268
2268
|
{
|
|
2269
2269
|
onClick: handleContinue,
|
|
2270
2270
|
fullWidth: true,
|
|
@@ -2272,7 +2272,7 @@ function SolanaAmountStep({
|
|
|
2272
2272
|
children: _optionalChain([uiConfig, 'optionalAccess', _47 => _47.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
|
|
2273
2273
|
}
|
|
2274
2274
|
) }),
|
|
2275
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2275
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
2276
2276
|
] });
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
@@ -2316,7 +2316,7 @@ function SolanaConfirmStep({
|
|
|
2316
2316
|
const receiveAmount = isSameToken ? formattedReceiveAmount : `~ ${formattedReceiveAmount}`;
|
|
2317
2317
|
const handleConfirm = async () => {
|
|
2318
2318
|
if (!solanaProvider) {
|
|
2319
|
-
|
|
2319
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
|
|
2320
2320
|
reason: "missing-provider"
|
|
2321
2321
|
});
|
|
2322
2322
|
setError("Solana wallet not connected");
|
|
@@ -2324,7 +2324,7 @@ function SolanaConfirmStep({
|
|
|
2324
2324
|
}
|
|
2325
2325
|
const parsedAmount = parseFloat(sourceAmount);
|
|
2326
2326
|
if (isNaN(parsedAmount) || parsedAmount <= 0) {
|
|
2327
|
-
|
|
2327
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
|
|
2328
2328
|
reason: "invalid-amount",
|
|
2329
2329
|
sourceAmount
|
|
2330
2330
|
});
|
|
@@ -2333,7 +2333,7 @@ function SolanaConfirmStep({
|
|
|
2333
2333
|
}
|
|
2334
2334
|
setError(null);
|
|
2335
2335
|
setIsSubmitting(true);
|
|
2336
|
-
|
|
2336
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
|
|
2337
2337
|
smartAccount,
|
|
2338
2338
|
solanaAddress,
|
|
2339
2339
|
solanaDepositAddress,
|
|
@@ -2343,7 +2343,7 @@ function SolanaConfirmStep({
|
|
|
2343
2343
|
});
|
|
2344
2344
|
try {
|
|
2345
2345
|
const check = await service.checkAccount(smartAccount);
|
|
2346
|
-
|
|
2346
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
|
|
2347
2347
|
smartAccount,
|
|
2348
2348
|
isRegistered: check.isRegistered,
|
|
2349
2349
|
targetChain: check.targetChain,
|
|
@@ -2356,7 +2356,7 @@ function SolanaConfirmStep({
|
|
|
2356
2356
|
}
|
|
2357
2357
|
const connection = getSolanaConnection();
|
|
2358
2358
|
const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
|
|
2359
|
-
|
|
2359
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
|
|
2360
2360
|
token: token.symbol,
|
|
2361
2361
|
sourceAmount,
|
|
2362
2362
|
amountUnits: amountUnits.toString()
|
|
@@ -2373,7 +2373,7 @@ function SolanaConfirmStep({
|
|
|
2373
2373
|
token.mint,
|
|
2374
2374
|
amountUnits
|
|
2375
2375
|
);
|
|
2376
|
-
|
|
2376
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
|
|
2377
2377
|
token: token.symbol,
|
|
2378
2378
|
instructionCount: transaction.instructions.length,
|
|
2379
2379
|
feePayer: _optionalChain([transaction, 'access', _48 => _48.feePayer, 'optionalAccess', _49 => _49.toBase58, 'call', _50 => _50()]),
|
|
@@ -2384,15 +2384,15 @@ function SolanaConfirmStep({
|
|
|
2384
2384
|
connection,
|
|
2385
2385
|
transaction
|
|
2386
2386
|
);
|
|
2387
|
-
|
|
2387
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
|
|
2388
2388
|
txHash,
|
|
2389
2389
|
amountUnits: amountUnits.toString()
|
|
2390
2390
|
});
|
|
2391
2391
|
onConfirm(txHash, amountUnits.toString());
|
|
2392
2392
|
} catch (err) {
|
|
2393
2393
|
const raw = err instanceof Error ? err.message : "Transfer failed";
|
|
2394
|
-
const message =
|
|
2395
|
-
|
|
2394
|
+
const message = _chunkTQ6IIGRScjs.formatUserError.call(void 0, raw);
|
|
2395
|
+
_chunkTQ6IIGRScjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
|
|
2396
2396
|
smartAccount,
|
|
2397
2397
|
token: token.symbol,
|
|
2398
2398
|
sourceAmount
|
|
@@ -2525,7 +2525,7 @@ function SolanaConfirmStep({
|
|
|
2525
2525
|
] })
|
|
2526
2526
|
] }),
|
|
2527
2527
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2528
|
-
|
|
2528
|
+
_chunkTQ6IIGRScjs.Button,
|
|
2529
2529
|
{
|
|
2530
2530
|
onClick: handleConfirm,
|
|
2531
2531
|
loading: isSubmitting,
|
|
@@ -2534,7 +2534,7 @@ function SolanaConfirmStep({
|
|
|
2534
2534
|
children: "Confirm Order"
|
|
2535
2535
|
}
|
|
2536
2536
|
) }),
|
|
2537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2537
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ6IIGRScjs.PoweredBy, {})
|
|
2538
2538
|
] });
|
|
2539
2539
|
}
|
|
2540
2540
|
|
|
@@ -2600,13 +2600,13 @@ function DepositFlow({
|
|
|
2600
2600
|
flowModeRef.current = flowMode;
|
|
2601
2601
|
const logFlow = _react.useCallback.call(void 0,
|
|
2602
2602
|
(message, data) => {
|
|
2603
|
-
|
|
2603
|
+
_chunkTQ6IIGRScjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
|
|
2604
2604
|
},
|
|
2605
2605
|
[debug]
|
|
2606
2606
|
);
|
|
2607
2607
|
const logFlowError = _react.useCallback.call(void 0,
|
|
2608
2608
|
(message, error, data) => {
|
|
2609
|
-
|
|
2609
|
+
_chunkTQ6IIGRScjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
|
|
2610
2610
|
},
|
|
2611
2611
|
[debug]
|
|
2612
2612
|
);
|
|
@@ -2728,7 +2728,7 @@ function DepositFlow({
|
|
|
2728
2728
|
return {
|
|
2729
2729
|
ownerAddress: dappAddress,
|
|
2730
2730
|
walletClient: void 0,
|
|
2731
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
2731
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTQ6IIGRScjs.getPublicClient.call(void 0, targetChain))),
|
|
2732
2732
|
switchChain: void 0
|
|
2733
2733
|
};
|
|
2734
2734
|
}
|
|
@@ -2737,7 +2737,7 @@ function DepositFlow({
|
|
|
2737
2737
|
return {
|
|
2738
2738
|
ownerAddress: dappWalletClient.account.address,
|
|
2739
2739
|
walletClient: dappWalletClient,
|
|
2740
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
2740
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTQ6IIGRScjs.getPublicClient.call(void 0, fallbackChainId))),
|
|
2741
2741
|
switchChain: dappSwitchChain
|
|
2742
2742
|
};
|
|
2743
2743
|
}
|
|
@@ -2751,7 +2751,7 @@ function DepositFlow({
|
|
|
2751
2751
|
return {
|
|
2752
2752
|
ownerAddress: dappAddress,
|
|
2753
2753
|
walletClient: void 0,
|
|
2754
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
2754
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTQ6IIGRScjs.getPublicClient.call(void 0, targetChain))),
|
|
2755
2755
|
switchChain: void 0
|
|
2756
2756
|
};
|
|
2757
2757
|
}
|
|
@@ -2760,7 +2760,7 @@ function DepositFlow({
|
|
|
2760
2760
|
return {
|
|
2761
2761
|
ownerAddress: dappWalletClient.account.address,
|
|
2762
2762
|
walletClient: dappWalletClient,
|
|
2763
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
2763
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTQ6IIGRScjs.getPublicClient.call(void 0, fallbackChainId))),
|
|
2764
2764
|
switchChain: dappSwitchChain
|
|
2765
2765
|
};
|
|
2766
2766
|
}
|
|
@@ -2768,7 +2768,7 @@ function DepositFlow({
|
|
|
2768
2768
|
return {
|
|
2769
2769
|
ownerAddress: reownWallet.address,
|
|
2770
2770
|
walletClient: reownWallet.walletClient,
|
|
2771
|
-
publicClient: _nullishCoalesce(reownWallet.publicClient, () => (
|
|
2771
|
+
publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkTQ6IIGRScjs.getPublicClient.call(void 0, targetChain))),
|
|
2772
2772
|
switchChain: reownWallet.switchChain
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
@@ -2806,7 +2806,7 @@ function DepositFlow({
|
|
|
2806
2806
|
return {
|
|
2807
2807
|
ownerAddress: dappAddress,
|
|
2808
2808
|
walletClient: void 0,
|
|
2809
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
2809
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTQ6IIGRScjs.getPublicClient.call(void 0, targetChain))),
|
|
2810
2810
|
switchChain: void 0
|
|
2811
2811
|
};
|
|
2812
2812
|
}
|
|
@@ -3254,7 +3254,7 @@ function DepositFlow({
|
|
|
3254
3254
|
]);
|
|
3255
3255
|
if (showConnectStep) {
|
|
3256
3256
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3257
|
-
|
|
3257
|
+
_chunkTQ6IIGRScjs.ConnectStep,
|
|
3258
3258
|
{
|
|
3259
3259
|
walletOptions,
|
|
3260
3260
|
selectedWalletId: selectedWalletIdEffective,
|
|
@@ -3316,7 +3316,7 @@ function DepositFlow({
|
|
|
3316
3316
|
}
|
|
3317
3317
|
),
|
|
3318
3318
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3319
|
-
|
|
3319
|
+
_chunkTQ6IIGRScjs.ProcessingStep,
|
|
3320
3320
|
{
|
|
3321
3321
|
smartAccount: step.smartAccount,
|
|
3322
3322
|
txHash: step.txHash,
|
|
@@ -3438,7 +3438,7 @@ function DepositFlow({
|
|
|
3438
3438
|
) })
|
|
3439
3439
|
] }) : null,
|
|
3440
3440
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3441
|
-
|
|
3441
|
+
_chunkTQ6IIGRScjs.ProcessingStep,
|
|
3442
3442
|
{
|
|
3443
3443
|
smartAccount: step.smartAccount,
|
|
3444
3444
|
txHash: step.txHash,
|
|
@@ -3471,7 +3471,7 @@ function DepositFlow({
|
|
|
3471
3471
|
if (_optionalChain([signerContext, 'access', _103 => _103.publicClient, 'access', _104 => _104.chain, 'optionalAccess', _105 => _105.id]) === chainId) {
|
|
3472
3472
|
return signerContext.publicClient;
|
|
3473
3473
|
}
|
|
3474
|
-
return
|
|
3474
|
+
return _chunkTQ6IIGRScjs.getPublicClient.call(void 0, chainId);
|
|
3475
3475
|
};
|
|
3476
3476
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
3477
3477
|
step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3542,7 +3542,7 @@ function DepositFlow({
|
|
|
3542
3542
|
}
|
|
3543
3543
|
),
|
|
3544
3544
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3545
|
-
|
|
3545
|
+
_chunkTQ6IIGRScjs.ProcessingStep,
|
|
3546
3546
|
{
|
|
3547
3547
|
smartAccount: step.smartAccount,
|
|
3548
3548
|
txHash: step.txHash,
|
|
@@ -3570,7 +3570,7 @@ function DepositFlow({
|
|
|
3570
3570
|
// src/DepositModal.tsx
|
|
3571
3571
|
|
|
3572
3572
|
var ReownDepositInner = _react.lazy.call(void 0,
|
|
3573
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-
|
|
3573
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-KONUZXHJ.cjs"))).then((m) => ({ default: m.DepositModalReown }))
|
|
3574
3574
|
);
|
|
3575
3575
|
function DepositModal(props) {
|
|
3576
3576
|
const needsReown = !!props.reownAppId;
|
|
@@ -3643,7 +3643,7 @@ function DepositModalInner({
|
|
|
3643
3643
|
const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
|
|
3644
3644
|
const sourceChain = sourceChainProp ? _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp) : void 0;
|
|
3645
3645
|
const service = _react.useMemo.call(void 0,
|
|
3646
|
-
() =>
|
|
3646
|
+
() => _chunkTQ6IIGRScjs.createDepositService.call(void 0, backendUrl, {
|
|
3647
3647
|
debug,
|
|
3648
3648
|
debugScope: "service:deposit"
|
|
3649
3649
|
}),
|
|
@@ -3651,7 +3651,7 @@ function DepositModalInner({
|
|
|
3651
3651
|
);
|
|
3652
3652
|
_react.useEffect.call(void 0, () => {
|
|
3653
3653
|
if (isOpen && modalRef.current) {
|
|
3654
|
-
|
|
3654
|
+
_chunkTQ6IIGRScjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
3655
3655
|
}
|
|
3656
3656
|
}, [isOpen, theme]);
|
|
3657
3657
|
_react.useEffect.call(void 0, () => {
|
|
@@ -3690,7 +3690,7 @@ function DepositModalInner({
|
|
|
3690
3690
|
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _114 => _114.title]), () => ( "Deposit"));
|
|
3691
3691
|
const canGoBack = currentStepIndex > 0 && currentStepIndex < 4 && backHandlerRef.current !== void 0;
|
|
3692
3692
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3693
|
-
|
|
3693
|
+
_chunkTQ6IIGRScjs.Modal,
|
|
3694
3694
|
{
|
|
3695
3695
|
isOpen,
|
|
3696
3696
|
onClose,
|
|
@@ -3783,7 +3783,7 @@ function DepositModalInner({
|
|
|
3783
3783
|
balance.title,
|
|
3784
3784
|
":"
|
|
3785
3785
|
] }),
|
|
3786
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ?
|
|
3786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkTQ6IIGRScjs.currencyFormatter.format(totalBalanceUsd) : null))) })
|
|
3787
3787
|
] })
|
|
3788
3788
|
] }),
|
|
3789
3789
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|