@rhinestone/deposit-modal 0.0.0-dev-20260901122116 → 0.0.0-dev-20260901125921
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/bridge-transcript.json +4 -0
- package/dist/{ClaimModal-ZENIKF76.mjs → ClaimModal-GECPNVYW.mjs} +5 -5
- package/dist/ClaimModal-TUIJ2FXZ.cjs +13 -0
- package/dist/{DepositModalReown-ZIBJO2TW.cjs → DepositModalReown-7X2P4Q3U.cjs} +18 -18
- package/dist/{DepositModalReown-V542CVWK.mjs → DepositModalReown-J5677AO3.mjs} +5 -5
- package/dist/{WithdrawModal-IHVS7J3J.mjs → WithdrawModal-EGUXJGKC.mjs} +4 -4
- package/dist/WithdrawModal-ZRO4GPL5.cjs +12 -0
- package/dist/{chunk-JFJVDYFA.mjs → chunk-5VTLHOWL.mjs} +1 -1
- package/dist/{chunk-2NHV6ABY.cjs → chunk-6NMICTMH.cjs} +8 -8
- package/dist/{chunk-WIFTLAUQ.cjs → chunk-76SNGRJ4.cjs} +272 -272
- package/dist/{chunk-2KQKBLBS.cjs → chunk-BBHL7Y6Q.cjs} +65 -65
- package/dist/{chunk-Y2Q3MQFT.cjs → chunk-E26VPCQS.cjs} +3 -3
- package/dist/{chunk-G3LYFVOJ.cjs → chunk-GGEX3J6J.cjs} +67 -67
- package/dist/{chunk-OEZXPT7N.cjs → chunk-H4GKLXX7.cjs} +53 -53
- package/dist/{chunk-CH4T2HVC.mjs → chunk-HEBZWISE.mjs} +3 -3
- package/dist/{chunk-A5NXC4QY.cjs → chunk-LHVHW2FC.cjs} +1 -1
- package/dist/{chunk-WLH3JNI7.mjs → chunk-QO63RXOH.mjs} +1 -1
- package/dist/{chunk-A4KC3HRU.mjs → chunk-SSODFKQC.mjs} +1 -1
- package/dist/{chunk-IMIQE4KF.mjs → chunk-UIMR4O7B.mjs} +2 -2
- package/dist/{chunk-F2VZYM7X.mjs → chunk-ULDG2NFL.mjs} +1 -1
- package/dist/{chunk-G4GS424X.cjs → chunk-UMHZX3KX.cjs} +32 -32
- package/dist/{chunk-JJT3B35F.mjs → chunk-URYV6A2L.mjs} +2 -2
- package/dist/{chunk-JUCH73GK.mjs → chunk-V35JXQDL.mjs} +4 -4
- package/dist/claim.cjs +6 -6
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/embed.cjs +113 -32
- package/dist/embed.mjs +94 -13
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +8 -8
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +2 -2
- package/dist/ClaimModal-YLSMYPAB.cjs +0 -13
- package/dist/WithdrawModal-HWKOCPLW.cjs +0 -12
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkGGEX3J6Jcjs = require('./chunk-GGEX3J6J.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkE26VPCQScjs = require('./chunk-E26VPCQS.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -88,7 +88,7 @@ var _chunkY2Q3MQFTcjs = require('./chunk-Y2Q3MQFT.cjs');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkUMHZX3KXcjs = require('./chunk-UMHZX3KX.cjs');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
@@ -250,11 +250,11 @@ SegmentedToggle.displayName = "SegmentedToggle";
|
|
|
250
250
|
|
|
251
251
|
function ChainIcon({ chainId, className, loading }) {
|
|
252
252
|
const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, chainId);
|
|
253
|
-
const catalogChain =
|
|
253
|
+
const catalogChain = _chunkUMHZX3KXcjs.useCatalogChain.call(void 0, _chunkUMHZX3KXcjs.catalogKeyForChain.call(void 0, chainId));
|
|
254
254
|
const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunk4KCSH4T3cjs.getChainName.call(void 0, chainId)));
|
|
255
255
|
const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
|
|
256
256
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
257
|
-
|
|
257
|
+
_chunkUMHZX3KXcjs.CdnIcon,
|
|
258
258
|
{
|
|
259
259
|
src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, chainId))),
|
|
260
260
|
alt: name,
|
|
@@ -277,7 +277,7 @@ ChainIcon.displayName = "ChainIcon";
|
|
|
277
277
|
// src/components/ui/WalletBadgeIcons/index.tsx
|
|
278
278
|
|
|
279
279
|
function BadgeImage({ src, alt = "" }) {
|
|
280
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
280
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src, alt }) });
|
|
281
281
|
}
|
|
282
282
|
var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
|
|
283
283
|
function WalletBadgeIcons() {
|
|
@@ -330,7 +330,7 @@ var DAPP_IMPORT_CATALOG = [
|
|
|
330
330
|
// src/components/ui/BrandIcons.tsx
|
|
331
331
|
|
|
332
332
|
function ExchangeBadgeImage({ name }) {
|
|
333
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
333
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: _nullishCoalesce(_chunkGGEX3J6Jcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
|
|
334
334
|
}
|
|
335
335
|
var CARD_NETWORKS = ["amex", "visa", "mastercard"];
|
|
336
336
|
function CardNetworkIcons() {
|
|
@@ -338,7 +338,7 @@ function CardNetworkIcons() {
|
|
|
338
338
|
"span",
|
|
339
339
|
{
|
|
340
340
|
className: `rs-card-network rs-card-network--${network}`,
|
|
341
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
341
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "cards", network) })
|
|
342
342
|
},
|
|
343
343
|
network
|
|
344
344
|
)) });
|
|
@@ -357,7 +357,7 @@ function DappBadgeIcons() {
|
|
|
357
357
|
).filter(
|
|
358
358
|
(brand) => Boolean(brand)
|
|
359
359
|
);
|
|
360
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
360
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
|
|
361
361
|
}
|
|
362
362
|
DappBadgeIcons.displayName = "DappBadgeIcons";
|
|
363
363
|
var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
|
|
@@ -377,9 +377,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
|
|
|
377
377
|
return "No balance";
|
|
378
378
|
}
|
|
379
379
|
function fiatIcon(name) {
|
|
380
|
-
if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
381
|
-
if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
380
|
+
if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.AppleIcon, {});
|
|
381
|
+
if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BankIcon, {});
|
|
382
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CardIcon, {});
|
|
383
383
|
}
|
|
384
384
|
function FiatMethodIcon({ option }) {
|
|
385
385
|
const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
|
|
@@ -462,20 +462,20 @@ function renderWalletLeading(row) {
|
|
|
462
462
|
}
|
|
463
463
|
);
|
|
464
464
|
}
|
|
465
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
465
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {});
|
|
466
466
|
}
|
|
467
|
-
var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
468
|
-
var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
469
|
-
var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
470
|
-
var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
471
|
-
var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
467
|
+
var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TransferCryptoIcon, {});
|
|
468
|
+
var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {});
|
|
469
|
+
var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.UnplugIcon, {});
|
|
470
|
+
var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.MigrateAssetsIcon, {});
|
|
471
|
+
var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, { className: "rs-spinner--sm" });
|
|
472
472
|
var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
473
473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
|
|
474
474
|
"+100"
|
|
475
475
|
] });
|
|
476
476
|
var EXTRA_EXCHANGE_COUNT = Math.max(
|
|
477
477
|
0,
|
|
478
|
-
|
|
478
|
+
_chunkUMHZX3KXcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
|
|
479
479
|
);
|
|
480
480
|
var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
481
481
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
|
|
@@ -533,7 +533,7 @@ function ConnectStep({
|
|
|
533
533
|
if (onSelectTransferCrypto) {
|
|
534
534
|
cryptoRows.push(
|
|
535
535
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
536
|
-
|
|
536
|
+
_chunkE26VPCQScjs.ListRow,
|
|
537
537
|
{
|
|
538
538
|
leading: TRANSFER_CRYPTO_LEADING,
|
|
539
539
|
title: "Transfer crypto",
|
|
@@ -554,7 +554,7 @@ function ConnectStep({
|
|
|
554
554
|
);
|
|
555
555
|
cryptoRows.push(
|
|
556
556
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
557
|
-
|
|
557
|
+
_chunkE26VPCQScjs.ListRow,
|
|
558
558
|
{
|
|
559
559
|
leading: renderWalletLeading(row),
|
|
560
560
|
title: collapseToExternal ? "External wallet" : row.label,
|
|
@@ -571,7 +571,7 @@ function ConnectStep({
|
|
|
571
571
|
if (!hasSessionWallet && handleConnect) {
|
|
572
572
|
cryptoRows.push(
|
|
573
573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
574
|
-
|
|
574
|
+
_chunkE26VPCQScjs.ListRow,
|
|
575
575
|
{
|
|
576
576
|
leading: WALLET_LEADING,
|
|
577
577
|
title: "Connect wallet",
|
|
@@ -586,7 +586,7 @@ function ConnectStep({
|
|
|
586
586
|
if (onSelectFundFromExchange) {
|
|
587
587
|
cryptoRows.push(
|
|
588
588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
589
|
-
|
|
589
|
+
_chunkE26VPCQScjs.ListRow,
|
|
590
590
|
{
|
|
591
591
|
leading: EXCHANGE_LEADING,
|
|
592
592
|
title: "Connect exchange",
|
|
@@ -601,7 +601,7 @@ function ConnectStep({
|
|
|
601
601
|
if (onSelectMigrateAssets) {
|
|
602
602
|
cryptoRows.push(
|
|
603
603
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
604
|
-
|
|
604
|
+
_chunkE26VPCQScjs.ListRow,
|
|
605
605
|
{
|
|
606
606
|
leading: MIGRATE_ASSETS_LEADING,
|
|
607
607
|
title: "Migrate assets",
|
|
@@ -622,7 +622,7 @@ function ConnectStep({
|
|
|
622
622
|
for (const opt of fiatPaymentMethods) {
|
|
623
623
|
cashRows.push(
|
|
624
624
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
625
|
-
|
|
625
|
+
_chunkE26VPCQScjs.ListRow,
|
|
626
626
|
{
|
|
627
627
|
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
|
|
628
628
|
title: opt.label,
|
|
@@ -637,7 +637,7 @@ function ConnectStep({
|
|
|
637
637
|
} else if (fiatLoading) {
|
|
638
638
|
cashRows.push(
|
|
639
639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
640
|
-
|
|
640
|
+
_chunkE26VPCQScjs.ListRow,
|
|
641
641
|
{
|
|
642
642
|
leading: SMALL_SPINNER,
|
|
643
643
|
title: "Loading payment options\u2026",
|
|
@@ -666,9 +666,9 @@ function ConnectStep({
|
|
|
666
666
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
667
667
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
668
668
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
669
|
-
|
|
669
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
670
670
|
{
|
|
671
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
671
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HandCoinsIcon, {}),
|
|
672
672
|
title,
|
|
673
673
|
subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
|
|
674
674
|
aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -704,7 +704,7 @@ function ConnectStep({
|
|
|
704
704
|
children: "Disconnect wallet"
|
|
705
705
|
}
|
|
706
706
|
) }),
|
|
707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
708
708
|
] });
|
|
709
709
|
}
|
|
710
710
|
ConnectStep.displayName = "ConnectStep";
|
|
@@ -727,17 +727,17 @@ function AssetSelectStep({
|
|
|
727
727
|
const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
|
|
728
728
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
729
729
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
730
|
-
const isDepositChain =
|
|
731
|
-
const { catalog } =
|
|
732
|
-
const chainName =
|
|
730
|
+
const isDepositChain = _chunkUMHZX3KXcjs.useIsDepositChain.call(void 0, );
|
|
731
|
+
const { catalog } = _chunkUMHZX3KXcjs.useChainCatalog.call(void 0, );
|
|
732
|
+
const chainName = _chunkUMHZX3KXcjs.useChainName.call(void 0, );
|
|
733
733
|
const defaultAssetId = _react.useMemo.call(void 0, () => {
|
|
734
734
|
if (!defaultSourceChain || !defaultSourceToken) return null;
|
|
735
|
-
return
|
|
735
|
+
return _chunkUMHZX3KXcjs.getAssetId.call(void 0, {
|
|
736
736
|
chainId: defaultSourceChain,
|
|
737
737
|
token: defaultSourceToken
|
|
738
738
|
});
|
|
739
739
|
}, [defaultSourceChain, defaultSourceToken]);
|
|
740
|
-
const onTotalBalanceComputedRef =
|
|
740
|
+
const onTotalBalanceComputedRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
|
|
741
741
|
_react.useEffect.call(void 0, () => {
|
|
742
742
|
let active = true;
|
|
743
743
|
function emitAssetsUpdate(currentAssets) {
|
|
@@ -757,7 +757,7 @@ function AssetSelectStep({
|
|
|
757
757
|
try {
|
|
758
758
|
const portfolio = await service.fetchPortfolio(address);
|
|
759
759
|
if (!active) return;
|
|
760
|
-
const portfolioAssets =
|
|
760
|
+
const portfolioAssets = _chunkUMHZX3KXcjs.portfolioToAssets.call(void 0, portfolio.tokens);
|
|
761
761
|
setAssets(portfolioAssets);
|
|
762
762
|
emitAssetsUpdate(portfolioAssets);
|
|
763
763
|
const hasNative = portfolioAssets.some(
|
|
@@ -836,7 +836,7 @@ function AssetSelectStep({
|
|
|
836
836
|
const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
|
|
837
837
|
const numeric = Number(raw);
|
|
838
838
|
if (!Number.isFinite(numeric)) return raw;
|
|
839
|
-
return
|
|
839
|
+
return _chunkUMHZX3KXcjs.tokenFormatter.format(numeric);
|
|
840
840
|
} catch (e3) {
|
|
841
841
|
return asset.balance;
|
|
842
842
|
}
|
|
@@ -844,20 +844,20 @@ function AssetSelectStep({
|
|
|
844
844
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
845
845
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
846
846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
847
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
848
848
|
{
|
|
849
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
849
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}),
|
|
850
850
|
title: "Your assets",
|
|
851
851
|
subtitle: "Select source assets to transfer"
|
|
852
852
|
}
|
|
853
853
|
),
|
|
854
854
|
loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
|
|
855
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
855
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, { className: "rs-text-tertiary" }),
|
|
856
856
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
|
|
857
857
|
] }),
|
|
858
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
858
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
859
859
|
!loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
|
|
860
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, { className: "rs-empty-icon" }),
|
|
861
861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
|
|
862
862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
|
|
863
863
|
address.slice(0, 6),
|
|
@@ -890,13 +890,13 @@ function AssetSelectStep({
|
|
|
890
890
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
|
|
891
891
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
|
|
892
892
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
893
|
-
|
|
893
|
+
_chunkUMHZX3KXcjs.TokenIcon,
|
|
894
894
|
{
|
|
895
895
|
symbol: asset.symbol,
|
|
896
896
|
fallback: asset.symbol.slice(0, 4)
|
|
897
897
|
}
|
|
898
898
|
) }),
|
|
899
|
-
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
+
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
900
900
|
"span",
|
|
901
901
|
{
|
|
902
902
|
className: "rs-asset-chain-badge",
|
|
@@ -923,14 +923,14 @@ function AssetSelectStep({
|
|
|
923
923
|
] })
|
|
924
924
|
] })
|
|
925
925
|
] }),
|
|
926
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ?
|
|
926
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkUMHZX3KXcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
|
|
927
927
|
]
|
|
928
928
|
},
|
|
929
929
|
asset.id
|
|
930
930
|
);
|
|
931
931
|
}) }),
|
|
932
932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
933
|
-
|
|
933
|
+
_chunkUMHZX3KXcjs.Button,
|
|
934
934
|
{
|
|
935
935
|
onClick: () => selectedAsset && onContinue(selectedAsset),
|
|
936
936
|
disabled: !selectedAsset,
|
|
@@ -939,7 +939,7 @@ function AssetSelectStep({
|
|
|
939
939
|
}
|
|
940
940
|
)
|
|
941
941
|
] }),
|
|
942
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
942
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
943
943
|
] });
|
|
944
944
|
}
|
|
945
945
|
async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
|
|
@@ -947,7 +947,7 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
|
|
|
947
947
|
const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
|
|
948
948
|
if (!connectedChainId) return [];
|
|
949
949
|
if (!isDepositChain(connectedChainId)) return [];
|
|
950
|
-
const id =
|
|
950
|
+
const id = _chunkUMHZX3KXcjs.getAssetId.call(void 0, {
|
|
951
951
|
chainId: connectedChainId,
|
|
952
952
|
token: _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS
|
|
953
953
|
});
|
|
@@ -1153,7 +1153,7 @@ function AmountStep({
|
|
|
1153
1153
|
const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
|
|
1154
1154
|
if (!balanceTarget || !publicClient) return;
|
|
1155
1155
|
try {
|
|
1156
|
-
const bal =
|
|
1156
|
+
const bal = _chunkUMHZX3KXcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
|
|
1157
1157
|
address: asset.token,
|
|
1158
1158
|
abi: _viem.erc20Abi,
|
|
1159
1159
|
functionName: "balanceOf",
|
|
@@ -1174,7 +1174,7 @@ function AmountStep({
|
|
|
1174
1174
|
hasAttemptedSwitch.current = true;
|
|
1175
1175
|
switchChain(asset.chainId).catch((err) => {
|
|
1176
1176
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
1177
|
-
setError(
|
|
1177
|
+
setError(_chunkUMHZX3KXcjs.formatUserError.call(void 0, raw));
|
|
1178
1178
|
});
|
|
1179
1179
|
}
|
|
1180
1180
|
}, [chainMismatch, switchChain, asset.chainId]);
|
|
@@ -1227,7 +1227,7 @@ function AmountStep({
|
|
|
1227
1227
|
const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
|
|
1228
1228
|
const numeric = Number(raw);
|
|
1229
1229
|
if (!Number.isFinite(numeric)) return raw;
|
|
1230
|
-
return
|
|
1230
|
+
return _chunkUMHZX3KXcjs.tokenFormatter.format(numeric);
|
|
1231
1231
|
} catch (e8) {
|
|
1232
1232
|
return "\u2026";
|
|
1233
1233
|
}
|
|
@@ -1315,12 +1315,12 @@ function AmountStep({
|
|
|
1315
1315
|
const needsPricing = !knowsBalance && !isSourceStablecoin;
|
|
1316
1316
|
const blockedOnPricing = needsPricing && !hasPricing;
|
|
1317
1317
|
const continueDisabled = chainMismatch || exceedsBalance || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
|
|
1318
|
-
const chainName =
|
|
1318
|
+
const chainName = _chunkUMHZX3KXcjs.useChainName.call(void 0, );
|
|
1319
1319
|
const sourceChainName = chainName(asset.chainId);
|
|
1320
1320
|
const targetChainName = chainName(targetChainId);
|
|
1321
1321
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
1322
1322
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
1323
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1323
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}), title }),
|
|
1324
1324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
|
|
1325
1325
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
|
|
1326
1326
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1340,13 +1340,13 @@ function AmountStep({
|
|
|
1340
1340
|
" available",
|
|
1341
1341
|
balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1342
1342
|
" (~",
|
|
1343
|
-
|
|
1343
|
+
_chunkUMHZX3KXcjs.currencyFormatter.format(balanceUsd),
|
|
1344
1344
|
")"
|
|
1345
1345
|
] })
|
|
1346
1346
|
] }),
|
|
1347
1347
|
minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
|
|
1348
1348
|
"Min. deposit ",
|
|
1349
|
-
|
|
1349
|
+
_chunkUMHZX3KXcjs.currencyFormatter.format(minDepositUsd)
|
|
1350
1350
|
] })
|
|
1351
1351
|
] })
|
|
1352
1352
|
] }),
|
|
@@ -1371,7 +1371,7 @@ function AmountStep({
|
|
|
1371
1371
|
" ",
|
|
1372
1372
|
asset.symbol
|
|
1373
1373
|
] }),
|
|
1374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: asset.symbol }) })
|
|
1375
1375
|
] })
|
|
1376
1376
|
] }),
|
|
1377
1377
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
@@ -1382,21 +1382,21 @@ function AmountStep({
|
|
|
1382
1382
|
" ",
|
|
1383
1383
|
targetSymbol
|
|
1384
1384
|
] }),
|
|
1385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1385
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: targetSymbol }) })
|
|
1386
1386
|
] })
|
|
1387
1387
|
] }),
|
|
1388
1388
|
balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
1389
1389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
|
|
1390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children:
|
|
1390
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkUMHZX3KXcjs.currencyFormatter.format(balanceAfterUsd) })
|
|
1391
1391
|
] })
|
|
1392
1392
|
] }),
|
|
1393
|
-
blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1393
|
+
blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: [
|
|
1394
1394
|
asset.symbol,
|
|
1395
1395
|
" can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
|
|
1396
1396
|
] }),
|
|
1397
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1397
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
1398
1398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1399
|
-
|
|
1399
|
+
_chunkUMHZX3KXcjs.Button,
|
|
1400
1400
|
{
|
|
1401
1401
|
onClick: handleContinue,
|
|
1402
1402
|
fullWidth: true,
|
|
@@ -1405,7 +1405,7 @@ function AmountStep({
|
|
|
1405
1405
|
}
|
|
1406
1406
|
)
|
|
1407
1407
|
] }),
|
|
1408
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
1409
1409
|
] });
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
@@ -1432,14 +1432,14 @@ function ReviewDetails({
|
|
|
1432
1432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
1433
1433
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1434
1434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
1435
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1435
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
1436
1436
|
] })
|
|
1437
1437
|
] }),
|
|
1438
1438
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1439
1439
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
1440
1440
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1441
1441
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
1442
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1442
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: targetChainIcon }) })
|
|
1443
1443
|
] })
|
|
1444
1444
|
] }),
|
|
1445
1445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -1454,21 +1454,21 @@ function ReviewDetails({
|
|
|
1454
1454
|
" ",
|
|
1455
1455
|
sendSymbol
|
|
1456
1456
|
] }),
|
|
1457
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1457
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: sendSymbol }) })
|
|
1458
1458
|
] })
|
|
1459
1459
|
] }),
|
|
1460
1460
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1461
1461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
|
|
1462
1462
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1463
1463
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
|
|
1464
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1464
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: receiveSymbol }) })
|
|
1465
1465
|
] })
|
|
1466
1466
|
] }),
|
|
1467
1467
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1468
1468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
|
|
1469
1469
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1470
1470
|
fee.display === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-skeleton rs-skeleton-fee", "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: fee.struck ? { textDecoration: "line-through" } : void 0, children: fee.display }),
|
|
1471
|
-
fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1471
|
+
fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGGEX3J6Jcjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.InfoIcon, {}) }) })
|
|
1472
1472
|
] })
|
|
1473
1473
|
] })
|
|
1474
1474
|
] });
|
|
@@ -1686,17 +1686,17 @@ function ConfirmStep({
|
|
|
1686
1686
|
const targetChainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId);
|
|
1687
1687
|
const sourceChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
|
|
1688
1688
|
const targetChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId);
|
|
1689
|
-
const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(
|
|
1690
|
-
const mustHaveQuote = !appFeesResolved ||
|
|
1689
|
+
const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkUMHZX3KXcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
|
|
1690
|
+
const mustHaveQuote = !appFeesResolved || _chunkUMHZX3KXcjs.resolveAppFeeBps.call(void 0,
|
|
1691
1691
|
appFees,
|
|
1692
1692
|
`eip155:${quoteSource.chainId}`,
|
|
1693
1693
|
quoteSource.token
|
|
1694
1694
|
) > 0;
|
|
1695
|
-
const { display: feeDisplay, struck: feesFullySponsored } =
|
|
1695
|
+
const { display: feeDisplay, struck: feesFullySponsored } = _chunkUMHZX3KXcjs.quoteFeeRow.call(void 0,
|
|
1696
1696
|
_optionalChain([quote, 'optionalAccess', _67 => _67.fees])
|
|
1697
1697
|
);
|
|
1698
1698
|
const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
|
|
1699
|
-
const permitEligible = enableGaslessDeposit && !
|
|
1699
|
+
const permitEligible = enableGaslessDeposit && !_chunkUMHZX3KXcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID;
|
|
1700
1700
|
const permitRequestKey = JSON.stringify([
|
|
1701
1701
|
smartAccount.toLowerCase(),
|
|
1702
1702
|
asset.chainId,
|
|
@@ -1709,21 +1709,21 @@ function ConfirmStep({
|
|
|
1709
1709
|
const receiveDisplay = (() => {
|
|
1710
1710
|
if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
|
|
1711
1711
|
if (quote) {
|
|
1712
|
-
const quoted =
|
|
1712
|
+
const quoted = _chunkUMHZX3KXcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
|
|
1713
1713
|
if (quoted !== void 0) return quoted;
|
|
1714
1714
|
}
|
|
1715
1715
|
const usdValue = Number(targetAmount);
|
|
1716
1716
|
const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
|
|
1717
|
-
const estimate =
|
|
1717
|
+
const estimate = _chunkUMHZX3KXcjs.formatReceiveEstimate.call(void 0, {
|
|
1718
1718
|
sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
|
|
1719
1719
|
sourceSymbol: asset.symbol,
|
|
1720
1720
|
targetSymbol,
|
|
1721
1721
|
sourceAmountUsd,
|
|
1722
|
-
sourceTrusted:
|
|
1722
|
+
sourceTrusted: _chunkUMHZX3KXcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
|
|
1723
1723
|
// The target is the curated deposit destination, so a stablecoin target
|
|
1724
1724
|
// estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
|
|
1725
1725
|
// target prices). Not applied to the source — that can be a held token.
|
|
1726
|
-
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } :
|
|
1726
|
+
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkUMHZX3KXcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
|
|
1727
1727
|
});
|
|
1728
1728
|
if (estimate !== void 0) return estimate;
|
|
1729
1729
|
return targetSymbol;
|
|
@@ -1734,7 +1734,7 @@ function ConfirmStep({
|
|
|
1734
1734
|
hasAttemptedSwitch.current = true;
|
|
1735
1735
|
switchChain(asset.chainId).catch((err) => {
|
|
1736
1736
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
1737
|
-
setError(
|
|
1737
|
+
setError(_chunkUMHZX3KXcjs.formatUserError.call(void 0, raw));
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
1740
|
}, [chainMismatch, switchChain, asset.chainId]);
|
|
@@ -1921,9 +1921,9 @@ function ConfirmStep({
|
|
|
1921
1921
|
);
|
|
1922
1922
|
} catch (err) {
|
|
1923
1923
|
const raw = err instanceof Error ? err.message : "Signing failed";
|
|
1924
|
-
const safeToTransfer = !submitStarted || err instanceof
|
|
1924
|
+
const safeToTransfer = !submitStarted || err instanceof _chunkUMHZX3KXcjs.PermitDepositSubmitError && err.safeToTransfer;
|
|
1925
1925
|
if (safeToTransfer) setPermitDisabled(true);
|
|
1926
|
-
const message = safeToTransfer ?
|
|
1926
|
+
const message = safeToTransfer ? _chunkUMHZX3KXcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
|
|
1927
1927
|
setError(message);
|
|
1928
1928
|
_optionalChain([onError, 'optionalCall', _69 => _69(message, "PERMIT_ERROR", raw)]);
|
|
1929
1929
|
} finally {
|
|
@@ -1944,7 +1944,7 @@ function ConfirmStep({
|
|
|
1944
1944
|
const result = await executeTransfer(amountUnits);
|
|
1945
1945
|
hash = result.txHash;
|
|
1946
1946
|
resolvedSourceToken = result.sourceToken;
|
|
1947
|
-
} else if (
|
|
1947
|
+
} else if (_chunkUMHZX3KXcjs.isNativeAsset.call(void 0, asset)) {
|
|
1948
1948
|
hash = await walletClient.sendTransaction({
|
|
1949
1949
|
account,
|
|
1950
1950
|
chain,
|
|
@@ -1975,8 +1975,8 @@ function ConfirmStep({
|
|
|
1975
1975
|
);
|
|
1976
1976
|
} catch (err) {
|
|
1977
1977
|
const raw = err instanceof Error ? err.message : "Transfer failed";
|
|
1978
|
-
const uncertain =
|
|
1979
|
-
const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." :
|
|
1978
|
+
const uncertain = _chunkGGEX3J6Jcjs.isSubmissionUncertain.call(void 0, err);
|
|
1979
|
+
const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkUMHZX3KXcjs.formatUserError.call(void 0, raw);
|
|
1980
1980
|
if (uncertain) setSubmissionUncertain(true);
|
|
1981
1981
|
setError(message);
|
|
1982
1982
|
_optionalChain([onError, 'optionalCall', _71 => _71(message, "TRANSFER_ERROR", raw)]);
|
|
@@ -1986,7 +1986,7 @@ function ConfirmStep({
|
|
|
1986
1986
|
};
|
|
1987
1987
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
1988
1988
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
1989
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1989
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}), title: "Review deposit" }),
|
|
1990
1990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1991
1991
|
ReviewDetails,
|
|
1992
1992
|
{
|
|
@@ -2002,9 +2002,9 @@ function ConfirmStep({
|
|
|
2002
2002
|
fee: { display: feeDisplay, struck: feesFullySponsored }
|
|
2003
2003
|
}
|
|
2004
2004
|
),
|
|
2005
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2005
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
2006
2006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2007
|
-
|
|
2007
|
+
_chunkUMHZX3KXcjs.Button,
|
|
2008
2008
|
{
|
|
2009
2009
|
onClick: handleConfirm,
|
|
2010
2010
|
loading: isSubmitting,
|
|
@@ -2031,7 +2031,7 @@ function ConfirmStep({
|
|
|
2031
2031
|
] }),
|
|
2032
2032
|
!permit && permitEligible && permitUnavailable && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-gasless-note", children: permitUnavailable === "permit2-approval-required" ? "Gasless unavailable until Permit2 is approved; Continue sends a token transaction." : "This wallet/token cannot use gasless authorization; Continue sends a token transaction." })
|
|
2033
2033
|
] }),
|
|
2034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
2035
2035
|
] });
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
@@ -2084,29 +2084,29 @@ function QrReviewStep({
|
|
|
2084
2084
|
cancelled = true;
|
|
2085
2085
|
};
|
|
2086
2086
|
}, [service, smartAccount, asset, amount]);
|
|
2087
|
-
const formattedSendAmount = _nullishCoalesce(
|
|
2087
|
+
const formattedSendAmount = _nullishCoalesce(_chunkUMHZX3KXcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
|
|
2088
2088
|
const receiveDisplay = (() => {
|
|
2089
2089
|
if (quote.value) {
|
|
2090
|
-
const quoted =
|
|
2090
|
+
const quoted = _chunkUMHZX3KXcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
|
|
2091
2091
|
if (quoted !== void 0) return quoted;
|
|
2092
2092
|
}
|
|
2093
2093
|
const usdValue = Number(targetAmount);
|
|
2094
|
-
const estimate =
|
|
2094
|
+
const estimate = _chunkUMHZX3KXcjs.formatReceiveEstimate.call(void 0, {
|
|
2095
2095
|
sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
|
|
2096
2096
|
sourceSymbol: asset.symbol,
|
|
2097
2097
|
targetSymbol,
|
|
2098
2098
|
sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
|
|
2099
|
-
sourceTrusted:
|
|
2100
|
-
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } :
|
|
2099
|
+
sourceTrusted: _chunkUMHZX3KXcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
|
|
2100
|
+
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkUMHZX3KXcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
|
|
2101
2101
|
});
|
|
2102
2102
|
return _nullishCoalesce(estimate, () => ( targetSymbol));
|
|
2103
2103
|
})();
|
|
2104
2104
|
const estimatedTime = quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.value.estimatedFillTimeSeconds / 60)} min` : quote.state === "loading" ? "\u2026" : "\u2014";
|
|
2105
|
-
const { display: quotedFee, struck } =
|
|
2105
|
+
const { display: quotedFee, struck } = _chunkUMHZX3KXcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _72 => _72.value, 'optionalAccess', _73 => _73.fees]));
|
|
2106
2106
|
const feeDisplay = quote.state === "unavailable" ? "\u2014" : quotedFee;
|
|
2107
2107
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
2108
2108
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
2109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
|
|
2110
2110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2111
2111
|
ReviewDetails,
|
|
2112
2112
|
{
|
|
@@ -2122,9 +2122,9 @@ function QrReviewStep({
|
|
|
2122
2122
|
fee: { display: feeDisplay, struck }
|
|
2123
2123
|
}
|
|
2124
2124
|
),
|
|
2125
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2125
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
|
|
2126
2126
|
] }),
|
|
2127
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2127
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
2128
2128
|
] });
|
|
2129
2129
|
}
|
|
2130
2130
|
QrReviewStep.displayName = "QrReviewStep";
|
|
@@ -2155,20 +2155,20 @@ function DepositAddressSkeleton({
|
|
|
2155
2155
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
|
|
2156
2156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
|
|
2157
2157
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
2158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
|
|
2159
2159
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
|
|
2160
2160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
|
|
2161
2161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
|
|
2162
2162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
|
|
2163
2163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2164
|
-
|
|
2164
|
+
_chunkUMHZX3KXcjs.CdnIcon,
|
|
2165
2165
|
{
|
|
2166
2166
|
src: chainIcon,
|
|
2167
2167
|
className: "rs-deposit-address-dropdown-icon"
|
|
2168
2168
|
}
|
|
2169
2169
|
),
|
|
2170
2170
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
|
|
2171
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2171
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
2172
2172
|
] })
|
|
2173
2173
|
] }),
|
|
2174
2174
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
|
|
@@ -2177,8 +2177,8 @@ function DepositAddressSkeleton({
|
|
|
2177
2177
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
|
|
2178
2178
|
"Min.$",
|
|
2179
2179
|
(_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _74 => _74.minDepositUsd]), () => ( 0.1))).toFixed(2),
|
|
2180
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2181
|
-
|
|
2180
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGGEX3J6Jcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2181
|
+
_chunkUMHZX3KXcjs.InfoIcon,
|
|
2182
2182
|
{
|
|
2183
2183
|
className: "rs-deposit-address-min-icon",
|
|
2184
2184
|
"aria-hidden": "true"
|
|
@@ -2188,14 +2188,14 @@ function DepositAddressSkeleton({
|
|
|
2188
2188
|
] }),
|
|
2189
2189
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
|
|
2190
2190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2191
|
-
|
|
2191
|
+
_chunkUMHZX3KXcjs.TokenIcon,
|
|
2192
2192
|
{
|
|
2193
2193
|
symbol: defaultToken,
|
|
2194
2194
|
className: "rs-deposit-address-dropdown-icon"
|
|
2195
2195
|
}
|
|
2196
2196
|
),
|
|
2197
2197
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
|
|
2198
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2198
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
2199
2199
|
] })
|
|
2200
2200
|
] })
|
|
2201
2201
|
] }),
|
|
@@ -2210,7 +2210,7 @@ function DepositAddressSkeleton({
|
|
|
2210
2210
|
] }),
|
|
2211
2211
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", "aria-hidden": "true", children: [
|
|
2212
2212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "rs-deposit-address-copy", disabled: true, children: [
|
|
2213
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2213
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CopyIcon, {}),
|
|
2214
2214
|
"Copy address"
|
|
2215
2215
|
] }),
|
|
2216
2216
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2227,7 +2227,7 @@ function DepositAddressSkeleton({
|
|
|
2227
2227
|
}
|
|
2228
2228
|
)
|
|
2229
2229
|
] }),
|
|
2230
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2230
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
2231
2231
|
] });
|
|
2232
2232
|
}
|
|
2233
2233
|
DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
|
|
@@ -2239,9 +2239,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
|
|
|
2239
2239
|
var MAX_POLL_INTERVAL = 3e4;
|
|
2240
2240
|
var BACKOFF_MULTIPLIER = 1.5;
|
|
2241
2241
|
function isEventForTx(event, txHash) {
|
|
2242
|
-
const eventTxHash =
|
|
2242
|
+
const eventTxHash = _chunkGGEX3J6Jcjs.getEventTxHash.call(void 0, event);
|
|
2243
2243
|
if (!eventTxHash) return false;
|
|
2244
|
-
return
|
|
2244
|
+
return _chunkGGEX3J6Jcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
|
|
2245
2245
|
}
|
|
2246
2246
|
function truncateHash(hash) {
|
|
2247
2247
|
return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
|
|
@@ -2291,7 +2291,7 @@ function formatBridgeFailedMessage(event) {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
return "Bridge failed";
|
|
2293
2293
|
}
|
|
2294
|
-
var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2294
|
+
var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
|
|
2295
2295
|
function DepositNotification({
|
|
2296
2296
|
deposit,
|
|
2297
2297
|
smartAccount,
|
|
@@ -2325,7 +2325,7 @@ function DepositNotification({
|
|
|
2325
2325
|
const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
|
|
2326
2326
|
const pollTimeoutRef = _react.useRef.call(void 0, null);
|
|
2327
2327
|
const completedRef = _react.useRef.call(void 0, false);
|
|
2328
|
-
const depositContextRef =
|
|
2328
|
+
const depositContextRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, {
|
|
2329
2329
|
amount,
|
|
2330
2330
|
sourceChain,
|
|
2331
2331
|
sourceToken: token,
|
|
@@ -2333,8 +2333,8 @@ function DepositNotification({
|
|
|
2333
2333
|
targetChain,
|
|
2334
2334
|
targetToken
|
|
2335
2335
|
});
|
|
2336
|
-
const onCompleteRef =
|
|
2337
|
-
const onFailedRef =
|
|
2336
|
+
const onCompleteRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onComplete);
|
|
2337
|
+
const onFailedRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onFailed);
|
|
2338
2338
|
const handleComplete = _react.useCallback.call(void 0,
|
|
2339
2339
|
(destTxHash) => {
|
|
2340
2340
|
if (completedRef.current) return;
|
|
@@ -2425,12 +2425,12 @@ function DepositNotification({
|
|
|
2425
2425
|
status,
|
|
2426
2426
|
txHash
|
|
2427
2427
|
]);
|
|
2428
|
-
const explorerTxUrl =
|
|
2428
|
+
const explorerTxUrl = _chunkUMHZX3KXcjs.useExplorerTxUrl.call(void 0, );
|
|
2429
2429
|
const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
|
|
2430
2430
|
const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
|
|
2431
2431
|
const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
|
|
2432
2432
|
const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
|
|
2433
|
-
const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2433
|
+
const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2434
2434
|
"svg",
|
|
2435
2435
|
{
|
|
2436
2436
|
className: "rs-deposit-notification-spinner",
|
|
@@ -2480,7 +2480,7 @@ function DepositNotification({
|
|
|
2480
2480
|
className: "rs-deposit-notification-close",
|
|
2481
2481
|
onClick: () => onDismiss(deposit.id),
|
|
2482
2482
|
"aria-label": "Dismiss",
|
|
2483
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2483
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CloseIcon, {})
|
|
2484
2484
|
}
|
|
2485
2485
|
)
|
|
2486
2486
|
] }),
|
|
@@ -2496,7 +2496,7 @@ function DepositNotification({
|
|
|
2496
2496
|
"aria-expanded": expanded,
|
|
2497
2497
|
children: [
|
|
2498
2498
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
|
|
2499
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2499
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
),
|
|
@@ -2681,7 +2681,7 @@ function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
function TokenGlyph({ symbol }) {
|
|
2683
2683
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2684
|
-
|
|
2684
|
+
_chunkUMHZX3KXcjs.TokenIcon,
|
|
2685
2685
|
{
|
|
2686
2686
|
symbol,
|
|
2687
2687
|
className: "rs-deposit-address-dropdown-icon",
|
|
@@ -2728,12 +2728,12 @@ function DepositAddressStep({
|
|
|
2728
2728
|
};
|
|
2729
2729
|
}, [service]);
|
|
2730
2730
|
const BASE_CHAIN_ID2 = 8453;
|
|
2731
|
-
const evmChainIds =
|
|
2732
|
-
const { catalog, isLoading: catalogLoading } =
|
|
2731
|
+
const evmChainIds = _chunkUMHZX3KXcjs.useDepositChainIds.call(void 0, );
|
|
2732
|
+
const { catalog, isLoading: catalogLoading } = _chunkUMHZX3KXcjs.useChainCatalog.call(void 0, );
|
|
2733
2733
|
const catalogFor = _react.useCallback.call(void 0,
|
|
2734
2734
|
(chain) => {
|
|
2735
2735
|
if (!catalog) return void 0;
|
|
2736
|
-
const key =
|
|
2736
|
+
const key = _chunkUMHZX3KXcjs.catalogKeyForChain.call(void 0, chain);
|
|
2737
2737
|
return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
|
|
2738
2738
|
},
|
|
2739
2739
|
[catalog]
|
|
@@ -2938,10 +2938,10 @@ function DepositAddressStep({
|
|
|
2938
2938
|
return;
|
|
2939
2939
|
}
|
|
2940
2940
|
const event = status.lastEvent;
|
|
2941
|
-
const eventTxHash =
|
|
2941
|
+
const eventTxHash = _chunkGGEX3J6Jcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkGGEX3J6Jcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
|
|
2942
2942
|
if (baselineTxHashRef.current === void 0) {
|
|
2943
2943
|
baselineTxHashRef.current = eventTxHash;
|
|
2944
|
-
} else if (eventTxHash && (!baselineTxHashRef.current || !
|
|
2944
|
+
} else if (eventTxHash && (!baselineTxHashRef.current || !_chunkGGEX3J6Jcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
|
|
2945
2945
|
const details = getDepositEventDetails(event);
|
|
2946
2946
|
const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
|
|
2947
2947
|
const amount = _nullishCoalesce(details.amount, () => ( "0"));
|
|
@@ -3025,13 +3025,13 @@ function DepositAddressStep({
|
|
|
3025
3025
|
if (chainOptions.length === 0) {
|
|
3026
3026
|
if (catalogLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
|
|
3027
3027
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
3028
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3029
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
|
|
3029
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
|
|
3030
3030
|
] }) });
|
|
3031
3031
|
}
|
|
3032
3032
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
|
|
3033
3033
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
3034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
|
|
3035
3035
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
|
|
3036
3036
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
|
|
3037
3037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
|
|
@@ -3047,14 +3047,14 @@ function DepositAddressStep({
|
|
|
3047
3047
|
},
|
|
3048
3048
|
children: [
|
|
3049
3049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3050
|
-
|
|
3050
|
+
_chunkUMHZX3KXcjs.CdnIcon,
|
|
3051
3051
|
{
|
|
3052
3052
|
src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _142 => _142(sourceChainId), 'optionalAccess', _143 => _143.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, sourceChainId))),
|
|
3053
3053
|
className: "rs-deposit-address-dropdown-icon"
|
|
3054
3054
|
}
|
|
3055
3055
|
),
|
|
3056
3056
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
|
|
3057
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3057
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
3058
3058
|
]
|
|
3059
3059
|
}
|
|
3060
3060
|
),
|
|
@@ -3066,7 +3066,7 @@ function DepositAddressStep({
|
|
|
3066
3066
|
onClick: () => handleSelectChain(chainId),
|
|
3067
3067
|
children: [
|
|
3068
3068
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3069
|
-
|
|
3069
|
+
_chunkUMHZX3KXcjs.CdnIcon,
|
|
3070
3070
|
{
|
|
3071
3071
|
src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _144 => _144(chainId), 'optionalAccess', _145 => _145.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, chainId))),
|
|
3072
3072
|
className: "rs-deposit-address-dropdown-icon"
|
|
@@ -3084,8 +3084,8 @@ function DepositAddressStep({
|
|
|
3084
3084
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
|
|
3085
3085
|
"Min.$",
|
|
3086
3086
|
(_chunk4KCSH4T3cjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunk4KCSH4T3cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _146 => _146.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _147 => _147.minDepositUsd]), () => ( 0.1))).toFixed(2),
|
|
3087
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3088
|
-
|
|
3087
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGGEX3J6Jcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3088
|
+
_chunkUMHZX3KXcjs.InfoIcon,
|
|
3089
3089
|
{
|
|
3090
3090
|
className: "rs-deposit-address-min-icon",
|
|
3091
3091
|
"aria-hidden": "true"
|
|
@@ -3106,7 +3106,7 @@ function DepositAddressStep({
|
|
|
3106
3106
|
children: [
|
|
3107
3107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
|
|
3108
3108
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
|
|
3109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
3110
3110
|
]
|
|
3111
3111
|
}
|
|
3112
3112
|
),
|
|
@@ -3151,7 +3151,7 @@ function DepositAddressStep({
|
|
|
3151
3151
|
className: "rs-deposit-address-copy",
|
|
3152
3152
|
onClick: handleCopy,
|
|
3153
3153
|
children: [
|
|
3154
|
-
copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3154
|
+
copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CopyIcon, {}),
|
|
3155
3155
|
copied ? "Copied!" : "Copy address"
|
|
3156
3156
|
]
|
|
3157
3157
|
}
|
|
@@ -3186,7 +3186,7 @@ function DepositAddressStep({
|
|
|
3186
3186
|
},
|
|
3187
3187
|
deposit.id
|
|
3188
3188
|
)) }),
|
|
3189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
3190
3190
|
] });
|
|
3191
3191
|
}
|
|
3192
3192
|
DepositAddressStep.displayName = "DepositAddressStep";
|
|
@@ -3243,7 +3243,7 @@ function FinalisingDepositStep() {
|
|
|
3243
3243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
|
|
3244
3244
|
] })
|
|
3245
3245
|
] }),
|
|
3246
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
3247
3247
|
] });
|
|
3248
3248
|
}
|
|
3249
3249
|
FinalisingDepositStep.displayName = "FinalisingDepositStep";
|
|
@@ -3273,7 +3273,7 @@ function SwappedOrderTracker({
|
|
|
3273
3273
|
];
|
|
3274
3274
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
|
|
3275
3275
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
3276
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3276
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HandCoinsIcon, {}), title }),
|
|
3277
3277
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
|
|
3278
3278
|
const status = stepStates[idx];
|
|
3279
3279
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3287,7 +3287,7 @@ function SwappedOrderTracker({
|
|
|
3287
3287
|
{
|
|
3288
3288
|
className: "rs-swapped-tracker-step-marker",
|
|
3289
3289
|
"aria-hidden": "true",
|
|
3290
|
-
children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3290
|
+
children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3291
3291
|
"svg",
|
|
3292
3292
|
{
|
|
3293
3293
|
className: "rs-swapped-tracker-step-ring",
|
|
@@ -3322,7 +3322,7 @@ function SwappedOrderTracker({
|
|
|
3322
3322
|
}
|
|
3323
3323
|
)
|
|
3324
3324
|
] }),
|
|
3325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
3326
3326
|
] });
|
|
3327
3327
|
}
|
|
3328
3328
|
function formatTrackerAmount(amount) {
|
|
@@ -3610,10 +3610,10 @@ function SwappedProviderStep({
|
|
|
3610
3610
|
const status = await service.fetchLatestStatus(smartAccount);
|
|
3611
3611
|
if (cancelled) return;
|
|
3612
3612
|
const event = status.lastEvent;
|
|
3613
|
-
const eventTxHash =
|
|
3613
|
+
const eventTxHash = _chunkGGEX3J6Jcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkGGEX3J6Jcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
|
|
3614
3614
|
if (baselineDepositTxHashRef.current === void 0) {
|
|
3615
3615
|
baselineDepositTxHashRef.current = eventTxHash;
|
|
3616
|
-
} else if (eventTxHash && (!baselineDepositTxHashRef.current || !
|
|
3616
|
+
} else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkGGEX3J6Jcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
|
|
3617
3617
|
currentDepositTxHashRef.current = eventTxHash;
|
|
3618
3618
|
setLatestEvent(_nullishCoalesce(event, () => ( null)));
|
|
3619
3619
|
}
|
|
@@ -3688,10 +3688,10 @@ function SwappedProviderStep({
|
|
|
3688
3688
|
[orderState, latestEvent]
|
|
3689
3689
|
);
|
|
3690
3690
|
const terminalState = _react.useMemo.call(void 0, () => {
|
|
3691
|
-
if (
|
|
3691
|
+
if (_chunkGGEX3J6Jcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
|
|
3692
3692
|
return {
|
|
3693
3693
|
kind: "failed",
|
|
3694
|
-
message:
|
|
3694
|
+
message: _chunkGGEX3J6Jcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
|
|
3695
3695
|
};
|
|
3696
3696
|
}
|
|
3697
3697
|
if (_optionalChain([orderState, 'optionalAccess', _178 => _178.status]) === "order_cancelled") {
|
|
@@ -3717,7 +3717,7 @@ function SwappedProviderStep({
|
|
|
3717
3717
|
orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _183 => _183.orderCrypto]), () => ( null)),
|
|
3718
3718
|
// Base-unit source amount from the deposit row/event, consistent with the
|
|
3719
3719
|
// wallet/QR path. ProcessingStep + onLifecycle expect base units.
|
|
3720
|
-
amount: _nullishCoalesce(
|
|
3720
|
+
amount: _nullishCoalesce(_chunkGGEX3J6Jcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
|
|
3721
3721
|
expectedOrderUuid: expectedOrderUuidRef.current,
|
|
3722
3722
|
initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
|
|
3723
3723
|
};
|
|
@@ -3728,14 +3728,14 @@ function SwappedProviderStep({
|
|
|
3728
3728
|
}, [latestEvent, orderState, smartAccount]);
|
|
3729
3729
|
_react.useEffect.call(void 0, () => {
|
|
3730
3730
|
if (failedFiredRef.current || completeFiredRef.current) return;
|
|
3731
|
-
if (!
|
|
3731
|
+
if (!_chunkGGEX3J6Jcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
|
|
3732
3732
|
const txHash = currentDepositTxHashRef.current;
|
|
3733
3733
|
if (!txHash) return;
|
|
3734
3734
|
failedFiredRef.current = true;
|
|
3735
3735
|
setPhase("tracker");
|
|
3736
3736
|
_optionalChain([onSwappedFailedRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185(
|
|
3737
3737
|
txHash,
|
|
3738
|
-
|
|
3738
|
+
_chunkGGEX3J6Jcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
|
|
3739
3739
|
)]);
|
|
3740
3740
|
}, [latestEvent]);
|
|
3741
3741
|
const immersive = !openExternally && variant === "fiat" && phase === "provider" && !loadError;
|
|
@@ -3785,7 +3785,7 @@ function SwappedProviderStep({
|
|
|
3785
3785
|
}
|
|
3786
3786
|
)
|
|
3787
3787
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3788
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3788
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, {}),
|
|
3789
3789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-swapped-handoff-text", children: [
|
|
3790
3790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-swapped-handoff-title", children: handoffOpened ? variant === "fiat" ? "Finish paying in your browser" : "Approve the transfer in your browser" : "Opening your browser\u2026" }),
|
|
3791
3791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-swapped-handoff-subtitle", children: handoffOpened ? (
|
|
@@ -3809,7 +3809,7 @@ function SwappedProviderStep({
|
|
|
3809
3809
|
}
|
|
3810
3810
|
)
|
|
3811
3811
|
] }) }),
|
|
3812
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
3813
3813
|
] });
|
|
3814
3814
|
}
|
|
3815
3815
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
|
|
@@ -3826,7 +3826,7 @@ function SwappedProviderStep({
|
|
|
3826
3826
|
}
|
|
3827
3827
|
)
|
|
3828
3828
|
] }),
|
|
3829
|
-
!loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3829
|
+
!loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, {}) }),
|
|
3830
3830
|
widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3831
3831
|
"iframe",
|
|
3832
3832
|
{
|
|
@@ -3849,11 +3849,11 @@ function SwappedProviderStep({
|
|
|
3849
3849
|
retryToken
|
|
3850
3850
|
)
|
|
3851
3851
|
] }) }),
|
|
3852
|
-
loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3852
|
+
loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
3853
3853
|
] });
|
|
3854
3854
|
}
|
|
3855
3855
|
function deriveStepStates(swappedStatus, latestEvent) {
|
|
3856
|
-
if (
|
|
3856
|
+
if (_chunkGGEX3J6Jcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
|
|
3857
3857
|
return ["complete", "complete", "failed", "pending"];
|
|
3858
3858
|
}
|
|
3859
3859
|
if (swappedStatus === "order_cancelled") {
|
|
@@ -4063,7 +4063,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
|
|
|
4063
4063
|
function ExchangeLogo({ exchange }) {
|
|
4064
4064
|
const [failed, setFailed] = _react.useState.call(void 0, false);
|
|
4065
4065
|
if (!exchange.logoUrl || failed) {
|
|
4066
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4066
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BankIcon, {});
|
|
4067
4067
|
}
|
|
4068
4068
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4069
4069
|
"img",
|
|
@@ -4144,14 +4144,14 @@ function ExchangeSelectStep({
|
|
|
4144
4144
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
|
|
4145
4145
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4146
4146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4147
|
-
|
|
4147
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
4148
4148
|
{
|
|
4149
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4149
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.UnplugIcon, {}),
|
|
4150
4150
|
title: "Connect exchange",
|
|
4151
4151
|
subtitle: "Select an exchange to connect"
|
|
4152
4152
|
}
|
|
4153
4153
|
),
|
|
4154
|
-
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4154
|
+
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, {}) }),
|
|
4155
4155
|
!loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
|
|
4156
4156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
|
|
4157
4157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4177,7 +4177,7 @@ function ExchangeSelectStep({
|
|
|
4177
4177
|
)
|
|
4178
4178
|
] }),
|
|
4179
4179
|
!loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
|
|
4180
|
-
const brand =
|
|
4180
|
+
const brand = _chunkGGEX3J6Jcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
|
|
4181
4181
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4182
4182
|
"button",
|
|
4183
4183
|
{
|
|
@@ -4202,7 +4202,7 @@ function ExchangeSelectStep({
|
|
|
4202
4202
|
);
|
|
4203
4203
|
}) })
|
|
4204
4204
|
] }),
|
|
4205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {}),
|
|
4206
4206
|
exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
|
|
4207
4207
|
"A ",
|
|
4208
4208
|
formatFeeRate(exchangeFeeBps),
|
|
@@ -4240,7 +4240,7 @@ function SolanaTokenSelectStep({
|
|
|
4240
4240
|
setError(null);
|
|
4241
4241
|
const portfolioBySymbol = {};
|
|
4242
4242
|
try {
|
|
4243
|
-
|
|
4243
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
|
|
4244
4244
|
solanaAddress
|
|
4245
4245
|
});
|
|
4246
4246
|
const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
|
|
@@ -4263,12 +4263,12 @@ function SolanaTokenSelectStep({
|
|
|
4263
4263
|
};
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
|
-
|
|
4266
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
|
|
4267
4267
|
symbols: Object.keys(portfolioBySymbol)
|
|
4268
4268
|
});
|
|
4269
4269
|
} catch (err) {
|
|
4270
4270
|
if (!active) return;
|
|
4271
|
-
|
|
4271
|
+
_chunkUMHZX3KXcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
|
|
4272
4272
|
solanaAddress
|
|
4273
4273
|
});
|
|
4274
4274
|
setError(
|
|
@@ -4315,7 +4315,7 @@ function SolanaTokenSelectStep({
|
|
|
4315
4315
|
const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
|
|
4316
4316
|
const numeric = Number(raw);
|
|
4317
4317
|
if (!Number.isFinite(numeric)) return raw;
|
|
4318
|
-
return
|
|
4318
|
+
return _chunkUMHZX3KXcjs.tokenFormatter.format(numeric);
|
|
4319
4319
|
} catch (e27) {
|
|
4320
4320
|
return "--";
|
|
4321
4321
|
}
|
|
@@ -4325,20 +4325,20 @@ function SolanaTokenSelectStep({
|
|
|
4325
4325
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4326
4326
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
4327
4327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4328
|
-
|
|
4328
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
4329
4329
|
{
|
|
4330
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4330
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}),
|
|
4331
4331
|
title: "Your assets",
|
|
4332
4332
|
subtitle: "Select source assets to transfer"
|
|
4333
4333
|
}
|
|
4334
4334
|
),
|
|
4335
4335
|
loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
|
|
4336
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4336
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, { className: "rs-text-tertiary" }),
|
|
4337
4337
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
|
|
4338
4338
|
] }),
|
|
4339
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4339
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
4340
4340
|
!loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
|
|
4341
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, { className: "rs-empty-icon" }),
|
|
4342
4342
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
|
|
4343
4343
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
|
|
4344
4344
|
solanaAddress.slice(0, 6),
|
|
@@ -4369,13 +4369,13 @@ function SolanaTokenSelectStep({
|
|
|
4369
4369
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
|
|
4370
4370
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
|
|
4371
4371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4372
|
-
|
|
4372
|
+
_chunkUMHZX3KXcjs.TokenIcon,
|
|
4373
4373
|
{
|
|
4374
4374
|
symbol: entry.token.symbol,
|
|
4375
4375
|
fallback: entry.token.symbol.slice(0, 4)
|
|
4376
4376
|
}
|
|
4377
4377
|
) }),
|
|
4378
|
-
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4378
|
+
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
|
|
4379
4379
|
] }),
|
|
4380
4380
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
|
|
4381
4381
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
|
|
@@ -4392,14 +4392,14 @@ function SolanaTokenSelectStep({
|
|
|
4392
4392
|
] })
|
|
4393
4393
|
] })
|
|
4394
4394
|
] }),
|
|
4395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ?
|
|
4395
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkUMHZX3KXcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
|
|
4396
4396
|
]
|
|
4397
4397
|
},
|
|
4398
4398
|
entry.token.symbol
|
|
4399
4399
|
);
|
|
4400
4400
|
}) }),
|
|
4401
4401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4402
|
-
|
|
4402
|
+
_chunkUMHZX3KXcjs.Button,
|
|
4403
4403
|
{
|
|
4404
4404
|
onClick: () => selectedEntry && onContinue(
|
|
4405
4405
|
selectedEntry.token,
|
|
@@ -4412,7 +4412,7 @@ function SolanaTokenSelectStep({
|
|
|
4412
4412
|
}
|
|
4413
4413
|
)
|
|
4414
4414
|
] }),
|
|
4415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
4416
4416
|
] });
|
|
4417
4417
|
}
|
|
4418
4418
|
|
|
@@ -4464,7 +4464,7 @@ function SolanaAmountStep({
|
|
|
4464
4464
|
const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
|
|
4465
4465
|
const numeric = Number(raw);
|
|
4466
4466
|
if (!Number.isFinite(numeric)) return raw;
|
|
4467
|
-
return
|
|
4467
|
+
return _chunkUMHZX3KXcjs.tokenFormatter.format(numeric);
|
|
4468
4468
|
} catch (e29) {
|
|
4469
4469
|
return "\u2026";
|
|
4470
4470
|
}
|
|
@@ -4557,7 +4557,7 @@ function SolanaAmountStep({
|
|
|
4557
4557
|
const handlePresetClick = (percentage) => {
|
|
4558
4558
|
const formatted = computePresetAmount(percentage);
|
|
4559
4559
|
if (!formatted) return;
|
|
4560
|
-
|
|
4560
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
|
|
4561
4561
|
percentage,
|
|
4562
4562
|
symbol: token.symbol,
|
|
4563
4563
|
formatted
|
|
@@ -4592,7 +4592,7 @@ function SolanaAmountStep({
|
|
|
4592
4592
|
try {
|
|
4593
4593
|
amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
|
|
4594
4594
|
} catch (e34) {
|
|
4595
|
-
|
|
4595
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
|
|
4596
4596
|
amount,
|
|
4597
4597
|
sourceAmount: sourceAmountStr,
|
|
4598
4598
|
reason: "parse-units-failed"
|
|
@@ -4607,7 +4607,7 @@ function SolanaAmountStep({
|
|
|
4607
4607
|
);
|
|
4608
4608
|
return;
|
|
4609
4609
|
}
|
|
4610
|
-
|
|
4610
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
|
|
4611
4611
|
symbol: token.symbol,
|
|
4612
4612
|
inputAmountUsd: amount,
|
|
4613
4613
|
sourceAmount: sourceAmountStr,
|
|
@@ -4620,7 +4620,7 @@ function SolanaAmountStep({
|
|
|
4620
4620
|
const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
|
|
4621
4621
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4622
4622
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4623
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4623
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}), title: "Wallet deposit" }),
|
|
4624
4624
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
|
|
4625
4625
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
|
|
4626
4626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4640,13 +4640,13 @@ function SolanaAmountStep({
|
|
|
4640
4640
|
" available",
|
|
4641
4641
|
computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4642
4642
|
" (~",
|
|
4643
|
-
|
|
4643
|
+
_chunkUMHZX3KXcjs.currencyFormatter.format(computedBalanceUsd),
|
|
4644
4644
|
")"
|
|
4645
4645
|
] })
|
|
4646
4646
|
] }),
|
|
4647
4647
|
minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
|
|
4648
4648
|
"Min. deposit ",
|
|
4649
|
-
|
|
4649
|
+
_chunkUMHZX3KXcjs.currencyFormatter.format(minDepositUsd)
|
|
4650
4650
|
] })
|
|
4651
4651
|
] })
|
|
4652
4652
|
] }),
|
|
@@ -4669,7 +4669,7 @@ function SolanaAmountStep({
|
|
|
4669
4669
|
"Solana ",
|
|
4670
4670
|
token.symbol
|
|
4671
4671
|
] }),
|
|
4672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: token.symbol }) })
|
|
4673
4673
|
] })
|
|
4674
4674
|
] }),
|
|
4675
4675
|
targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
@@ -4680,17 +4680,17 @@ function SolanaAmountStep({
|
|
|
4680
4680
|
" ",
|
|
4681
4681
|
targetTokenSymbol
|
|
4682
4682
|
] }),
|
|
4683
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4683
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: targetTokenSymbol }) })
|
|
4684
4684
|
] })
|
|
4685
4685
|
] }),
|
|
4686
4686
|
balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
4687
4687
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
|
|
4688
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children:
|
|
4688
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkUMHZX3KXcjs.currencyFormatter.format(balanceAfterUsd) })
|
|
4689
4689
|
] })
|
|
4690
4690
|
] }),
|
|
4691
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4691
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
4692
4692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4693
|
-
|
|
4693
|
+
_chunkUMHZX3KXcjs.Button,
|
|
4694
4694
|
{
|
|
4695
4695
|
onClick: handleContinue,
|
|
4696
4696
|
fullWidth: true,
|
|
@@ -4699,7 +4699,7 @@ function SolanaAmountStep({
|
|
|
4699
4699
|
}
|
|
4700
4700
|
)
|
|
4701
4701
|
] }),
|
|
4702
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4702
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
4703
4703
|
] });
|
|
4704
4704
|
}
|
|
4705
4705
|
|
|
@@ -4719,10 +4719,10 @@ function loadSolanaDependencies() {
|
|
|
4719
4719
|
return dependenciesPromise2;
|
|
4720
4720
|
}
|
|
4721
4721
|
function getSolanaRpcUrl(rpcUrls) {
|
|
4722
|
-
return _nullishCoalesce(
|
|
4722
|
+
return _nullishCoalesce(_chunkUMHZX3KXcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
|
|
4723
4723
|
}
|
|
4724
4724
|
function hasConfiguredSolanaRpcUrl(rpcUrls) {
|
|
4725
|
-
return
|
|
4725
|
+
return _chunkUMHZX3KXcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
|
|
4726
4726
|
}
|
|
4727
4727
|
async function getSolanaConnection(rpcUrls) {
|
|
4728
4728
|
const rpcUrl = getSolanaRpcUrl(rpcUrls);
|
|
@@ -4839,7 +4839,7 @@ function SolanaConfirmStep({
|
|
|
4839
4839
|
onSubmittingChange,
|
|
4840
4840
|
debug
|
|
4841
4841
|
}) {
|
|
4842
|
-
const rpcUrls =
|
|
4842
|
+
const rpcUrls = _chunkUMHZX3KXcjs.useRpcUrls.call(void 0, );
|
|
4843
4843
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
4844
4844
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
4845
4845
|
const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
|
|
@@ -4856,26 +4856,26 @@ function SolanaConfirmStep({
|
|
|
4856
4856
|
const targetChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId);
|
|
4857
4857
|
const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.feeSponsored]), () => ( false));
|
|
4858
4858
|
const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _214 => _214.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
|
|
4859
|
-
const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(
|
|
4859
|
+
const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkUMHZX3KXcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
|
|
4860
4860
|
const receiveDisplay = (() => {
|
|
4861
4861
|
const usdValue = Number(targetAmount);
|
|
4862
4862
|
const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
|
|
4863
|
-
const estimate =
|
|
4863
|
+
const estimate = _chunkUMHZX3KXcjs.formatReceiveEstimate.call(void 0, {
|
|
4864
4864
|
sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
|
|
4865
4865
|
sourceSymbol: token.symbol,
|
|
4866
4866
|
targetSymbol,
|
|
4867
4867
|
sourceAmountUsd,
|
|
4868
|
-
sourceTrusted:
|
|
4868
|
+
sourceTrusted: _chunkUMHZX3KXcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
|
|
4869
4869
|
// Curated stablecoin target estimates at $1 when unquoted; never applied
|
|
4870
4870
|
// to the source (a held token). See ConfirmStep for the rationale.
|
|
4871
|
-
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } :
|
|
4871
|
+
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkUMHZX3KXcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
|
|
4872
4872
|
});
|
|
4873
4873
|
if (estimate !== void 0) return estimate;
|
|
4874
4874
|
return targetSymbol;
|
|
4875
4875
|
})();
|
|
4876
4876
|
const handleConfirm = async () => {
|
|
4877
4877
|
if (!solanaProvider) {
|
|
4878
|
-
|
|
4878
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
|
|
4879
4879
|
reason: "missing-provider"
|
|
4880
4880
|
});
|
|
4881
4881
|
setError("Solana wallet not connected");
|
|
@@ -4883,7 +4883,7 @@ function SolanaConfirmStep({
|
|
|
4883
4883
|
}
|
|
4884
4884
|
const parsedAmount = parseFloat(sourceAmount);
|
|
4885
4885
|
if (isNaN(parsedAmount) || parsedAmount <= 0) {
|
|
4886
|
-
|
|
4886
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
|
|
4887
4887
|
reason: "invalid-amount",
|
|
4888
4888
|
sourceAmount
|
|
4889
4889
|
});
|
|
@@ -4892,7 +4892,7 @@ function SolanaConfirmStep({
|
|
|
4892
4892
|
}
|
|
4893
4893
|
setError(null);
|
|
4894
4894
|
setIsSubmitting(true);
|
|
4895
|
-
|
|
4895
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
|
|
4896
4896
|
smartAccount,
|
|
4897
4897
|
solanaAddress,
|
|
4898
4898
|
solanaDepositAddress,
|
|
@@ -4902,7 +4902,7 @@ function SolanaConfirmStep({
|
|
|
4902
4902
|
});
|
|
4903
4903
|
try {
|
|
4904
4904
|
const check = await service.checkAccount(smartAccount);
|
|
4905
|
-
|
|
4905
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
|
|
4906
4906
|
smartAccount,
|
|
4907
4907
|
isRegistered: check.isRegistered,
|
|
4908
4908
|
targetChain: check.targetChain,
|
|
@@ -4915,7 +4915,7 @@ function SolanaConfirmStep({
|
|
|
4915
4915
|
}
|
|
4916
4916
|
const connection = await (hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls))));
|
|
4917
4917
|
const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
|
|
4918
|
-
|
|
4918
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
|
|
4919
4919
|
token: token.symbol,
|
|
4920
4920
|
sourceAmount,
|
|
4921
4921
|
amountUnits: amountUnits.toString()
|
|
@@ -4932,7 +4932,7 @@ function SolanaConfirmStep({
|
|
|
4932
4932
|
token.mint,
|
|
4933
4933
|
amountUnits
|
|
4934
4934
|
);
|
|
4935
|
-
|
|
4935
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
|
|
4936
4936
|
token: token.symbol,
|
|
4937
4937
|
instructionCount: transaction.instructions.length,
|
|
4938
4938
|
feePayer: _optionalChain([transaction, 'access', _215 => _215.feePayer, 'optionalAccess', _216 => _216.toBase58, 'call', _217 => _217()]),
|
|
@@ -4943,7 +4943,7 @@ function SolanaConfirmStep({
|
|
|
4943
4943
|
connection,
|
|
4944
4944
|
transaction
|
|
4945
4945
|
);
|
|
4946
|
-
|
|
4946
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
|
|
4947
4947
|
txHash,
|
|
4948
4948
|
amountUnits: amountUnits.toString()
|
|
4949
4949
|
});
|
|
@@ -4955,8 +4955,8 @@ function SolanaConfirmStep({
|
|
|
4955
4955
|
});
|
|
4956
4956
|
} catch (err) {
|
|
4957
4957
|
const raw = err instanceof Error ? err.message : "Transfer failed";
|
|
4958
|
-
const message =
|
|
4959
|
-
|
|
4958
|
+
const message = _chunkUMHZX3KXcjs.formatUserError.call(void 0, raw);
|
|
4959
|
+
_chunkUMHZX3KXcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
|
|
4960
4960
|
smartAccount,
|
|
4961
4961
|
token: token.symbol,
|
|
4962
4962
|
sourceAmount
|
|
@@ -4969,7 +4969,7 @@ function SolanaConfirmStep({
|
|
|
4969
4969
|
};
|
|
4970
4970
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4971
4971
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4972
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4972
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}), title: "Review deposit" }),
|
|
4973
4973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4974
4974
|
ReviewDetails,
|
|
4975
4975
|
{
|
|
@@ -4985,9 +4985,9 @@ function SolanaConfirmStep({
|
|
|
4985
4985
|
fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
|
|
4986
4986
|
}
|
|
4987
4987
|
),
|
|
4988
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4988
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
4989
4989
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4990
|
-
|
|
4990
|
+
_chunkUMHZX3KXcjs.Button,
|
|
4991
4991
|
{
|
|
4992
4992
|
onClick: handleConfirm,
|
|
4993
4993
|
loading: isSubmitting,
|
|
@@ -4998,7 +4998,7 @@ function SolanaConfirmStep({
|
|
|
4998
4998
|
}
|
|
4999
4999
|
)
|
|
5000
5000
|
] }),
|
|
5001
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5001
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
5002
5002
|
] });
|
|
5003
5003
|
}
|
|
5004
5004
|
|
|
@@ -5013,19 +5013,19 @@ function DappImportAssetSelectStep({
|
|
|
5013
5013
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
5014
5014
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
5015
5015
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5016
|
-
|
|
5016
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
5017
5017
|
{
|
|
5018
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5018
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}),
|
|
5019
5019
|
title: `Transfer from ${sourceLabel}`,
|
|
5020
5020
|
subtitle: "Pick the balance to import"
|
|
5021
5021
|
}
|
|
5022
5022
|
),
|
|
5023
5023
|
incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
|
|
5024
5024
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
|
|
5025
|
-
const tokenAmount = asset.balance ?
|
|
5025
|
+
const tokenAmount = asset.balance ? _chunkUMHZX3KXcjs.tokenFormatter.format(
|
|
5026
5026
|
Number(asset.balance) / 10 ** asset.decimals
|
|
5027
5027
|
) : "0";
|
|
5028
|
-
const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ?
|
|
5028
|
+
const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkUMHZX3KXcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
|
|
5029
5029
|
const assetIcon = asset.icon;
|
|
5030
5030
|
const chainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
|
|
5031
5031
|
const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, asset.chainId);
|
|
@@ -5038,14 +5038,14 @@ function DappImportAssetSelectStep({
|
|
|
5038
5038
|
children: [
|
|
5039
5039
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
|
|
5040
5040
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
|
|
5041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5042
|
-
|
|
5041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5042
|
+
_chunkUMHZX3KXcjs.TokenIcon,
|
|
5043
5043
|
{
|
|
5044
5044
|
symbol: asset.symbol,
|
|
5045
5045
|
fallback: asset.symbol.slice(0, 4)
|
|
5046
5046
|
}
|
|
5047
5047
|
) }),
|
|
5048
|
-
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5048
|
+
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: chainIcon, alt: _chunk4KCSH4T3cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5049
5049
|
"span",
|
|
5050
5050
|
{
|
|
5051
5051
|
className: "rs-asset-chain-badge",
|
|
@@ -5077,7 +5077,7 @@ function DappImportAssetSelectStep({
|
|
|
5077
5077
|
);
|
|
5078
5078
|
}) })
|
|
5079
5079
|
] }),
|
|
5080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
5081
5081
|
] });
|
|
5082
5082
|
}
|
|
5083
5083
|
DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
|
|
@@ -5099,7 +5099,7 @@ function describeRow(status, comingSoon) {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
if (status.enabled) {
|
|
5101
5101
|
return {
|
|
5102
|
-
subtitle: status.balanceUsd > 0 ?
|
|
5102
|
+
subtitle: status.balanceUsd > 0 ? _chunkUMHZX3KXcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
|
|
5103
5103
|
disabled: false,
|
|
5104
5104
|
busy: false
|
|
5105
5105
|
};
|
|
@@ -5122,9 +5122,9 @@ function DappImportSelectStep({
|
|
|
5122
5122
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
5123
5123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
5124
5124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5125
|
-
|
|
5125
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
5126
5126
|
{
|
|
5127
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5127
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.MigrateAssetsIcon, {}),
|
|
5128
5128
|
title: "Migrate assets",
|
|
5129
5129
|
subtitle: "Select a position to migrate"
|
|
5130
5130
|
}
|
|
@@ -5136,13 +5136,13 @@ function DappImportSelectStep({
|
|
|
5136
5136
|
Boolean(brand.comingSoon)
|
|
5137
5137
|
);
|
|
5138
5138
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5139
|
-
|
|
5139
|
+
_chunkE26VPCQScjs.ListRow,
|
|
5140
5140
|
{
|
|
5141
5141
|
leadingMedia: brand.iconUrl,
|
|
5142
5142
|
title: brand.label,
|
|
5143
5143
|
subtitle,
|
|
5144
5144
|
disabled,
|
|
5145
|
-
trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5145
|
+
trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
|
|
5146
5146
|
onClick: () => {
|
|
5147
5147
|
if (status === "needs-connect") {
|
|
5148
5148
|
_optionalChain([onRequestConnect, 'optionalCall', _219 => _219()]);
|
|
@@ -5155,7 +5155,7 @@ function DappImportSelectStep({
|
|
|
5155
5155
|
);
|
|
5156
5156
|
}) })
|
|
5157
5157
|
] }),
|
|
5158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
5159
5159
|
] });
|
|
5160
5160
|
}
|
|
5161
5161
|
DappImportSelectStep.displayName = "DappImportSelectStep";
|
|
@@ -5172,9 +5172,9 @@ function DappImportAssetSelectSkeleton({
|
|
|
5172
5172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
|
|
5173
5173
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
5174
5174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5175
|
-
|
|
5175
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
5176
5176
|
{
|
|
5177
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5177
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.WalletIcon, {}),
|
|
5178
5178
|
title: `Transfer from ${sourceLabel}`,
|
|
5179
5179
|
subtitle: "Pick the balance to import"
|
|
5180
5180
|
}
|
|
@@ -5212,7 +5212,7 @@ function DappImportAssetSelectSkeleton({
|
|
|
5212
5212
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
|
|
5213
5213
|
}
|
|
5214
5214
|
) }),
|
|
5215
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5215
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
5216
5216
|
] });
|
|
5217
5217
|
}
|
|
5218
5218
|
DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
|
|
@@ -6082,7 +6082,7 @@ function DepositAnalyticsControllerProvider({
|
|
|
6082
6082
|
children,
|
|
6083
6083
|
controllerRef
|
|
6084
6084
|
}) {
|
|
6085
|
-
const emit =
|
|
6085
|
+
const emit = _chunkUMHZX3KXcjs.useDepositAnalyticsEmitter.call(void 0, );
|
|
6086
6086
|
const controller = _react.useMemo.call(void 0,
|
|
6087
6087
|
() => createDepositAnalyticsController(emit),
|
|
6088
6088
|
[emit]
|
|
@@ -7407,11 +7407,11 @@ function DepositFlow({
|
|
|
7407
7407
|
onError,
|
|
7408
7408
|
debug
|
|
7409
7409
|
}) {
|
|
7410
|
-
const rpcUrls =
|
|
7411
|
-
const onStepChangeRef =
|
|
7410
|
+
const rpcUrls = _chunkUMHZX3KXcjs.useRpcUrls.call(void 0, );
|
|
7411
|
+
const onStepChangeRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onStepChange);
|
|
7412
7412
|
const analytics = useDepositAnalyticsController();
|
|
7413
|
-
const onLifecycleRef =
|
|
7414
|
-
const onErrorRef =
|
|
7413
|
+
const onLifecycleRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onLifecycle);
|
|
7414
|
+
const onErrorRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onError);
|
|
7415
7415
|
const storeApi = useDepositStoreApi();
|
|
7416
7416
|
const flowSlice = useDepositStore((s) => s.flow);
|
|
7417
7417
|
const depositSlice = useDepositStore((s) => s.deposit);
|
|
@@ -7428,13 +7428,13 @@ function DepositFlow({
|
|
|
7428
7428
|
const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
|
|
7429
7429
|
const logFlow = _react.useCallback.call(void 0,
|
|
7430
7430
|
(message, data) => {
|
|
7431
|
-
|
|
7431
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
|
|
7432
7432
|
},
|
|
7433
7433
|
[debug]
|
|
7434
7434
|
);
|
|
7435
7435
|
const logFlowError = _react.useCallback.call(void 0,
|
|
7436
7436
|
(message, error, data) => {
|
|
7437
|
-
|
|
7437
|
+
_chunkUMHZX3KXcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
|
|
7438
7438
|
},
|
|
7439
7439
|
[debug]
|
|
7440
7440
|
);
|
|
@@ -7566,7 +7566,7 @@ function DepositFlow({
|
|
|
7566
7566
|
return;
|
|
7567
7567
|
}
|
|
7568
7568
|
let cancelled = false;
|
|
7569
|
-
|
|
7569
|
+
_chunkGGEX3J6Jcjs.fetchTokenPriceUsd.call(void 0, service, {
|
|
7570
7570
|
chainId: targetChainId,
|
|
7571
7571
|
address: targetToken,
|
|
7572
7572
|
symbol: targetSymbol
|
|
@@ -7587,7 +7587,7 @@ function DepositFlow({
|
|
|
7587
7587
|
return {
|
|
7588
7588
|
ownerAddress: walletClientProp.account.address,
|
|
7589
7589
|
walletClient: walletClientProp,
|
|
7590
|
-
publicClient: _nullishCoalesce(publicClientProp, () => (
|
|
7590
|
+
publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkUMHZX3KXcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
|
|
7591
7591
|
switchChain: dappSwitchChain
|
|
7592
7592
|
};
|
|
7593
7593
|
}
|
|
@@ -7604,7 +7604,7 @@ function DepositFlow({
|
|
|
7604
7604
|
return {
|
|
7605
7605
|
ownerAddress: walletClientProp.account.address,
|
|
7606
7606
|
walletClient: walletClientProp,
|
|
7607
|
-
publicClient: _nullishCoalesce(publicClientProp, () => (
|
|
7607
|
+
publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkUMHZX3KXcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
|
|
7608
7608
|
switchChain: dappSwitchChain
|
|
7609
7609
|
};
|
|
7610
7610
|
}
|
|
@@ -7612,7 +7612,7 @@ function DepositFlow({
|
|
|
7612
7612
|
return {
|
|
7613
7613
|
ownerAddress: walletSession.address,
|
|
7614
7614
|
walletClient: walletSession.walletClient,
|
|
7615
|
-
publicClient: _nullishCoalesce(walletSession.publicClient, () => (
|
|
7615
|
+
publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkUMHZX3KXcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
|
|
7616
7616
|
switchChain: walletSession.switchChain
|
|
7617
7617
|
};
|
|
7618
7618
|
}
|
|
@@ -7833,7 +7833,7 @@ function DepositFlow({
|
|
|
7833
7833
|
setQrSourcePrice({ resolved: false, usd: null });
|
|
7834
7834
|
if (!qrSourceAsset) return;
|
|
7835
7835
|
let cancelled = false;
|
|
7836
|
-
|
|
7836
|
+
_chunkGGEX3J6Jcjs.fetchTokenPriceUsd.call(void 0, service, {
|
|
7837
7837
|
chainId: qrSourceAsset.chainId,
|
|
7838
7838
|
address: qrSourceAsset.token,
|
|
7839
7839
|
symbol: qrSourceAsset.symbol
|
|
@@ -8019,7 +8019,7 @@ function DepositFlow({
|
|
|
8019
8019
|
eoa: dappImportOwner,
|
|
8020
8020
|
getPublicClient: (chainId) => {
|
|
8021
8021
|
try {
|
|
8022
|
-
return
|
|
8022
|
+
return _chunkUMHZX3KXcjs.getPublicClient.call(void 0, chainId, rpcUrls);
|
|
8023
8023
|
} catch (e38) {
|
|
8024
8024
|
return null;
|
|
8025
8025
|
}
|
|
@@ -8289,7 +8289,7 @@ function DepositFlow({
|
|
|
8289
8289
|
acceptedExchangeFeeBps: disclosedFeeBps
|
|
8290
8290
|
});
|
|
8291
8291
|
} catch (error) {
|
|
8292
|
-
if (error instanceof
|
|
8292
|
+
if (error instanceof _chunkUMHZX3KXcjs.SwappedConnectFeeChangedError) {
|
|
8293
8293
|
return error.exchangeFeeBps;
|
|
8294
8294
|
}
|
|
8295
8295
|
throw error;
|
|
@@ -8530,17 +8530,17 @@ function DepositFlow({
|
|
|
8530
8530
|
forceRegister
|
|
8531
8531
|
]
|
|
8532
8532
|
);
|
|
8533
|
-
const desiredSetupRequestKey =
|
|
8533
|
+
const desiredSetupRequestKey = _chunkGGEX3J6Jcjs.computeRequestKey.call(void 0, setupInput);
|
|
8534
8534
|
const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
|
|
8535
8535
|
_react.useEffect.call(void 0, () => {
|
|
8536
8536
|
void (async () => {
|
|
8537
|
-
const requestKey =
|
|
8538
|
-
const cacheKey =
|
|
8539
|
-
const cacheable =
|
|
8537
|
+
const requestKey = _chunkGGEX3J6Jcjs.computeRequestKey.call(void 0, setupInput);
|
|
8538
|
+
const cacheKey = _chunkGGEX3J6Jcjs.computeCacheKey.call(void 0, setupInput);
|
|
8539
|
+
const cacheable = _chunkGGEX3J6Jcjs.computeIsCacheable.call(void 0, setupInput);
|
|
8540
8540
|
if (storeApi.getState().setup.requestKey === requestKey) {
|
|
8541
8541
|
return;
|
|
8542
8542
|
}
|
|
8543
|
-
const dedupedResult =
|
|
8543
|
+
const dedupedResult = _chunkGGEX3J6Jcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
|
|
8544
8544
|
if (dedupedResult) {
|
|
8545
8545
|
storeApi.dispatch({
|
|
8546
8546
|
type: "setup/started",
|
|
@@ -8566,7 +8566,7 @@ function DepositFlow({
|
|
|
8566
8566
|
cacheable
|
|
8567
8567
|
});
|
|
8568
8568
|
try {
|
|
8569
|
-
const result = await
|
|
8569
|
+
const result = await _chunkGGEX3J6Jcjs.runAccountSetupDeduped.call(void 0,
|
|
8570
8570
|
setupInput,
|
|
8571
8571
|
{ service, debug },
|
|
8572
8572
|
requestKey
|
|
@@ -8581,7 +8581,7 @@ function DepositFlow({
|
|
|
8581
8581
|
}
|
|
8582
8582
|
});
|
|
8583
8583
|
} catch (error) {
|
|
8584
|
-
const message = error instanceof
|
|
8584
|
+
const message = error instanceof _chunkGGEX3J6Jcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
|
|
8585
8585
|
storeApi.dispatch({
|
|
8586
8586
|
type: "setup/failed",
|
|
8587
8587
|
requestKey,
|
|
@@ -8630,7 +8630,7 @@ function DepositFlow({
|
|
|
8630
8630
|
address,
|
|
8631
8631
|
requestId,
|
|
8632
8632
|
totalUsd: portfolio.totalUsd,
|
|
8633
|
-
chainIds:
|
|
8633
|
+
chainIds: _chunkUMHZX3KXcjs.chainIdsByValue.call(void 0, portfolio.tokens)
|
|
8634
8634
|
});
|
|
8635
8635
|
} catch (e39) {
|
|
8636
8636
|
storeApi.dispatch({
|
|
@@ -9189,7 +9189,7 @@ function DepositFlow({
|
|
|
9189
9189
|
}
|
|
9190
9190
|
),
|
|
9191
9191
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9192
|
-
|
|
9192
|
+
_chunkGGEX3J6Jcjs.ProcessingStep,
|
|
9193
9193
|
{
|
|
9194
9194
|
smartAccount: step.smartAccount,
|
|
9195
9195
|
solanaDepositAddress: step.solanaDepositAddress,
|
|
@@ -9269,7 +9269,7 @@ function DepositFlow({
|
|
|
9269
9269
|
}
|
|
9270
9270
|
),
|
|
9271
9271
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9272
|
-
|
|
9272
|
+
_chunkGGEX3J6Jcjs.ProcessingStep,
|
|
9273
9273
|
{
|
|
9274
9274
|
smartAccount: step.smartAccount,
|
|
9275
9275
|
solanaDepositAddress: step.solanaDepositAddress,
|
|
@@ -9398,7 +9398,7 @@ function DepositFlow({
|
|
|
9398
9398
|
) })
|
|
9399
9399
|
] }) : null,
|
|
9400
9400
|
effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9401
|
-
|
|
9401
|
+
_chunkGGEX3J6Jcjs.ProcessingStep,
|
|
9402
9402
|
{
|
|
9403
9403
|
smartAccount: effectiveStep.smartAccount,
|
|
9404
9404
|
solanaDepositAddress: effectiveStep.solanaDepositAddress,
|
|
@@ -9487,7 +9487,7 @@ function DepositFlow({
|
|
|
9487
9487
|
if (_optionalChain([signerContext, 'access', _332 => _332.publicClient, 'access', _333 => _333.chain, 'optionalAccess', _334 => _334.id]) === chainId) {
|
|
9488
9488
|
return signerContext.publicClient;
|
|
9489
9489
|
}
|
|
9490
|
-
return
|
|
9490
|
+
return _chunkUMHZX3KXcjs.getPublicClient.call(void 0, chainId, rpcUrls);
|
|
9491
9491
|
};
|
|
9492
9492
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
9493
9493
|
effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9590,7 +9590,7 @@ function DepositFlow({
|
|
|
9590
9590
|
}
|
|
9591
9591
|
),
|
|
9592
9592
|
effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9593
|
-
|
|
9593
|
+
_chunkGGEX3J6Jcjs.ProcessingStep,
|
|
9594
9594
|
{
|
|
9595
9595
|
smartAccount: effectiveStep.smartAccount,
|
|
9596
9596
|
solanaDepositAddress: effectiveStep.solanaDepositAddress,
|
|
@@ -9770,7 +9770,7 @@ function DepositHistoryPanel({
|
|
|
9770
9770
|
"aria-label": backLabel ? `Back to ${backLabel.toLowerCase()}` : "Back",
|
|
9771
9771
|
onClick: onClose,
|
|
9772
9772
|
children: [
|
|
9773
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9773
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronLeftIcon, {}),
|
|
9774
9774
|
backLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: backLabel })
|
|
9775
9775
|
]
|
|
9776
9776
|
}
|
|
@@ -9782,29 +9782,29 @@ function DepositHistoryPanel({
|
|
|
9782
9782
|
className: "rs-modal-close",
|
|
9783
9783
|
"aria-label": "Close",
|
|
9784
9784
|
onClick: onCloseModal,
|
|
9785
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9785
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CloseIcon, {})
|
|
9786
9786
|
}
|
|
9787
9787
|
) })
|
|
9788
9788
|
] }),
|
|
9789
9789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
|
|
9790
9790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
|
|
9791
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HistoryIcon, {}), title: "History" }),
|
|
9792
9792
|
isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
|
|
9793
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9793
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HistoryIcon, {}) }),
|
|
9794
9794
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
|
|
9795
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9795
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Spinner, { className: "rs-spinner--sm" }),
|
|
9796
9796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
|
|
9797
9797
|
] })
|
|
9798
9798
|
] }),
|
|
9799
9799
|
error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
|
|
9800
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9800
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.AlertTriangleIcon, {}) }),
|
|
9801
9801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
|
|
9802
9802
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
|
|
9803
9803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
|
|
9804
9804
|
] })
|
|
9805
9805
|
] }),
|
|
9806
9806
|
!isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
|
|
9807
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9807
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HistoryIcon, {}) }),
|
|
9808
9808
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
|
|
9809
9809
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
|
|
9810
9810
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
|
|
@@ -9824,14 +9824,14 @@ function DepositHistoryPanel({
|
|
|
9824
9824
|
)
|
|
9825
9825
|
] })
|
|
9826
9826
|
] }),
|
|
9827
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
9828
9828
|
] })
|
|
9829
9829
|
]
|
|
9830
9830
|
}
|
|
9831
9831
|
);
|
|
9832
9832
|
}
|
|
9833
9833
|
function HistoryCard({ deposit }) {
|
|
9834
|
-
const explorerTxUrl =
|
|
9834
|
+
const explorerTxUrl = _chunkUMHZX3KXcjs.useExplorerTxUrl.call(void 0, );
|
|
9835
9835
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
9836
9836
|
const status = normalizeStatus(deposit.status, deposit.isSpam);
|
|
9837
9837
|
const sourceChainId = resolveChainId(deposit.chain);
|
|
@@ -9861,8 +9861,8 @@ function HistoryCard({ deposit }) {
|
|
|
9861
9861
|
children: [
|
|
9862
9862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
|
|
9863
9863
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
|
|
9864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9865
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9864
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
|
|
9865
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
9866
9866
|
] }),
|
|
9867
9867
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
|
|
9868
9868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: txTypeLabel }),
|
|
@@ -9878,14 +9878,14 @@ function HistoryCard({ deposit }) {
|
|
|
9878
9878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
9879
9879
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
|
|
9880
9880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
9881
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9881
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
9882
9882
|
] })
|
|
9883
9883
|
] }),
|
|
9884
9884
|
targetChainName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
9885
9885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
9886
9886
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
|
|
9887
9887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
9888
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9888
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: targetChainIcon }) })
|
|
9889
9889
|
] })
|
|
9890
9890
|
] }),
|
|
9891
9891
|
srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
@@ -9900,7 +9900,7 @@ function HistoryCard({ deposit }) {
|
|
|
9900
9900
|
onClick: (e) => e.stopPropagation(),
|
|
9901
9901
|
children: [
|
|
9902
9902
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
|
|
9903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9903
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ArrowUpRightIcon, {})
|
|
9904
9904
|
]
|
|
9905
9905
|
}
|
|
9906
9906
|
)
|
|
@@ -9925,7 +9925,7 @@ function isHistoryEntryVisible(input) {
|
|
|
9925
9925
|
|
|
9926
9926
|
var ReownDepositInner = _react.lazy.call(void 0, async () => {
|
|
9927
9927
|
await loadReownDependencies();
|
|
9928
|
-
const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-
|
|
9928
|
+
const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-7X2P4Q3U.cjs")));
|
|
9929
9929
|
return { default: module.DepositModalReown };
|
|
9930
9930
|
});
|
|
9931
9931
|
function sortByCreatedAtDesc(items) {
|
|
@@ -9981,7 +9981,7 @@ function buildDepositAnalyticsSessionProperties({
|
|
|
9981
9981
|
amount: defaultAmount !== void 0,
|
|
9982
9982
|
initial_asset_migration: initialAssetMigration !== void 0
|
|
9983
9983
|
},
|
|
9984
|
-
...
|
|
9984
|
+
..._chunkGGEX3J6Jcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
|
|
9985
9985
|
};
|
|
9986
9986
|
}
|
|
9987
9987
|
var WALLET_CLIENT_PROP = "walletClient";
|
|
@@ -9989,8 +9989,8 @@ function hasSuppliedWalletClient(props) {
|
|
|
9989
9989
|
return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
|
|
9990
9990
|
}
|
|
9991
9991
|
function DepositModal(props) {
|
|
9992
|
-
|
|
9993
|
-
|
|
9992
|
+
_chunkGGEX3J6Jcjs.warnRemovedProps.call(void 0, "DepositModal", props);
|
|
9993
|
+
_chunkUMHZX3KXcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
|
|
9994
9994
|
const needsReown = !!props.reownAppId;
|
|
9995
9995
|
const hasWalletClientProp = hasSuppliedWalletClient(props);
|
|
9996
9996
|
if (needsReown) {
|
|
@@ -10060,8 +10060,8 @@ function DepositModalInner({
|
|
|
10060
10060
|
const modalRef = _react.useRef.call(void 0, null);
|
|
10061
10061
|
const analyticsControllerRef = _react.useRef.call(void 0, null);
|
|
10062
10062
|
const previousOpenRef = _react.useRef.call(void 0, isOpen);
|
|
10063
|
-
const onReadyRef =
|
|
10064
|
-
const onUiStateRef =
|
|
10063
|
+
const onReadyRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onReady);
|
|
10064
|
+
const onUiStateRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onUiState);
|
|
10065
10065
|
const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
|
|
10066
10066
|
const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
|
|
10067
10067
|
const [submitting, setSubmitting] = _react.useState.call(void 0, false);
|
|
@@ -10085,9 +10085,9 @@ function DepositModalInner({
|
|
|
10085
10085
|
const historyLoadedRef = _react.useRef.call(void 0, false);
|
|
10086
10086
|
const targetChain = targetChainProp === "solana" || targetChainProp === _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2 ? targetChainProp : _chunk4KCSH4T3cjs.getChainId.call(void 0, targetChainProp);
|
|
10087
10087
|
const sourceChain = sourceChainProp ? _chunk4KCSH4T3cjs.getChainId.call(void 0, sourceChainProp) : void 0;
|
|
10088
|
-
const rpcUrls =
|
|
10088
|
+
const rpcUrls = _chunkUMHZX3KXcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
10089
10089
|
const service = _react.useMemo.call(void 0,
|
|
10090
|
-
() =>
|
|
10090
|
+
() => _chunkUMHZX3KXcjs.createDepositService.call(void 0, backendUrl, {
|
|
10091
10091
|
debug,
|
|
10092
10092
|
debugScope: "service:deposit"
|
|
10093
10093
|
}),
|
|
@@ -10121,7 +10121,7 @@ function DepositModalInner({
|
|
|
10121
10121
|
}, [store, targetChain, targetToken]);
|
|
10122
10122
|
_react.useEffect.call(void 0, () => {
|
|
10123
10123
|
if (!isOpen || !modalRef.current) return;
|
|
10124
|
-
return
|
|
10124
|
+
return _chunkUMHZX3KXcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
10125
10125
|
}, [isOpen, theme]);
|
|
10126
10126
|
_react.useEffect.call(void 0, () => {
|
|
10127
10127
|
if (isOpen) {
|
|
@@ -10208,7 +10208,7 @@ function DepositModalInner({
|
|
|
10208
10208
|
fetchHistory("initial");
|
|
10209
10209
|
}
|
|
10210
10210
|
}, [historyOpen, fetchHistory]);
|
|
10211
|
-
const onLifecycleRef =
|
|
10211
|
+
const onLifecycleRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onLifecycle);
|
|
10212
10212
|
const handleLifecycle = _react.useCallback.call(void 0,
|
|
10213
10213
|
(event) => {
|
|
10214
10214
|
_optionalChain([onLifecycleRef, 'access', _348 => _348.current, 'optionalCall', _349 => _349(event)]);
|
|
@@ -10290,8 +10290,8 @@ function DepositModalInner({
|
|
|
10290
10290
|
const canGoBack = backHandler !== void 0;
|
|
10291
10291
|
const hideHeaderChrome = swappedImmersive;
|
|
10292
10292
|
const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
|
|
10293
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10294
|
-
|
|
10293
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10294
|
+
_chunkUMHZX3KXcjs.Modal,
|
|
10295
10295
|
{
|
|
10296
10296
|
isOpen,
|
|
10297
10297
|
onClose: handleModalDismiss,
|
|
@@ -10300,7 +10300,7 @@ function DepositModalInner({
|
|
|
10300
10300
|
closeOnOverlayClick,
|
|
10301
10301
|
ariaLabel: "Deposit",
|
|
10302
10302
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10303
|
-
|
|
10303
|
+
_chunkUMHZX3KXcjs.AnalyticsSession,
|
|
10304
10304
|
{
|
|
10305
10305
|
modal: "deposit",
|
|
10306
10306
|
sessionProperties: analyticsSessionProperties,
|
|
@@ -10321,7 +10321,7 @@ function DepositModalInner({
|
|
|
10321
10321
|
className: "rs-modal-header-back",
|
|
10322
10322
|
"aria-label": "Go back",
|
|
10323
10323
|
onClick: backHandler,
|
|
10324
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10324
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronLeftIcon, {})
|
|
10325
10325
|
}
|
|
10326
10326
|
) }),
|
|
10327
10327
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
|
|
@@ -10333,7 +10333,7 @@ function DepositModalInner({
|
|
|
10333
10333
|
"aria-label": "Deposit history",
|
|
10334
10334
|
onClick: handleHistoryOpen,
|
|
10335
10335
|
disabled: !recipient,
|
|
10336
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10336
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HistoryIcon, {})
|
|
10337
10337
|
}
|
|
10338
10338
|
),
|
|
10339
10339
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10343,7 +10343,7 @@ function DepositModalInner({
|
|
|
10343
10343
|
onClick: () => closeWithSource("header_button"),
|
|
10344
10344
|
className: "rs-modal-close",
|
|
10345
10345
|
"aria-label": "Close",
|
|
10346
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10346
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CloseIcon, {})
|
|
10347
10347
|
}
|
|
10348
10348
|
)
|
|
10349
10349
|
] })
|