@rhinestone/deposit-modal 0.0.0-dev-20260824102421 → 0.0.0-dev-20260824103554
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ClaimModal-67RRFPT6.mjs +11 -0
- package/dist/ClaimModal-BQY6FNSR.cjs +11 -0
- package/dist/{DepositModalReown-NLX5RI5H.cjs → DepositModalReown-JJC37VCL.cjs} +13 -13
- package/dist/{DepositModalReown-H256XXZT.mjs → DepositModalReown-TNWNENGT.mjs} +5 -5
- package/dist/WithdrawModal-NZ2UIRL4.mjs +10 -0
- package/dist/WithdrawModal-X5KJ7D3B.cjs +10 -0
- package/dist/{chunk-7T7A3HXD.mjs → chunk-2EEULN4S.mjs} +1 -1
- package/dist/{chunk-SKWJXO3D.mjs → chunk-3MKUEORL.mjs} +1 -1
- package/dist/{chunk-L34PO37U.cjs → chunk-7ED22CNI.cjs} +1 -1
- package/dist/{chunk-VM2L2V3I.mjs → chunk-AWHML72E.mjs} +34 -2
- package/dist/{chunk-XQK6YFM3.cjs → chunk-DYZHRL5G.cjs} +59 -27
- package/dist/{chunk-JCPXPKQF.mjs → chunk-GB42DI7E.mjs} +4 -7
- package/dist/{chunk-TC4A43XZ.mjs → chunk-HCIREEDB.mjs} +4 -4
- package/dist/{chunk-K3G2ZE6R.mjs → chunk-HNBS5S5Y.mjs} +3 -3
- package/dist/{chunk-MJAZGEPN.mjs → chunk-IXZB2YKS.mjs} +2 -2
- package/dist/{chunk-454HYIJG.cjs → chunk-NXN7DD7N.cjs} +268 -268
- package/dist/{chunk-BGDYOQRX.cjs → chunk-OMFYDYOZ.cjs} +8 -8
- package/dist/{chunk-63UHZ7WR.cjs → chunk-RDFRXBJ5.cjs} +51 -51
- package/dist/{chunk-FWGLI5Z7.cjs → chunk-RLGIGVQV.cjs} +66 -66
- package/dist/{chunk-WRZRH2CI.mjs → chunk-RSZSFKN7.mjs} +1 -1
- package/dist/{chunk-XZVBHCCX.cjs → chunk-RUFL6U4N.cjs} +61 -64
- package/dist/{chunk-JTJGQPCC.cjs → chunk-SY2TMFSV.cjs} +3 -3
- 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 +18 -18
- package/dist/embed.mjs +8 -8
- 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 +1 -1
- package/dist/ClaimModal-GCG6UVTW.cjs +0 -11
- package/dist/ClaimModal-I55QBNYP.mjs +0 -11
- package/dist/WithdrawModal-3CNKJNAK.cjs +0 -10
- package/dist/WithdrawModal-J2FQJWFS.mjs +0 -10
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRLGIGVQVcjs = require('./chunk-RLGIGVQV.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkSY2TMFSVcjs = require('./chunk-SY2TMFSV.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -85,7 +85,7 @@ var _chunkJTJGQPCCcjs = require('./chunk-JTJGQPCC.cjs');
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var _chunkDYZHRL5Gcjs = require('./chunk-DYZHRL5G.cjs');
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
@@ -217,11 +217,11 @@ SegmentedToggle.displayName = "SegmentedToggle";
|
|
|
217
217
|
|
|
218
218
|
function ChainIcon({ chainId, className, loading }) {
|
|
219
219
|
const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, chainId);
|
|
220
|
-
const catalogChain =
|
|
220
|
+
const catalogChain = _chunkDYZHRL5Gcjs.useCatalogChain.call(void 0, _chunkDYZHRL5Gcjs.catalogKeyForChain.call(void 0, chainId));
|
|
221
221
|
const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunk4KCSH4T3cjs.getChainName.call(void 0, chainId)));
|
|
222
222
|
const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
|
|
223
223
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
224
|
-
|
|
224
|
+
_chunkDYZHRL5Gcjs.CdnIcon,
|
|
225
225
|
{
|
|
226
226
|
src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, chainId))),
|
|
227
227
|
alt: name,
|
|
@@ -244,7 +244,7 @@ ChainIcon.displayName = "ChainIcon";
|
|
|
244
244
|
// src/components/ui/WalletBadgeIcons/index.tsx
|
|
245
245
|
|
|
246
246
|
function BadgeImage({ src, alt = "" }) {
|
|
247
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src, alt }) });
|
|
248
248
|
}
|
|
249
249
|
var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
|
|
250
250
|
function WalletBadgeIcons() {
|
|
@@ -297,7 +297,7 @@ var DAPP_IMPORT_CATALOG = [
|
|
|
297
297
|
// src/components/ui/BrandIcons.tsx
|
|
298
298
|
|
|
299
299
|
function ExchangeBadgeImage({ name }) {
|
|
300
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
300
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: _nullishCoalesce(_chunkRLGIGVQVcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
|
|
301
301
|
}
|
|
302
302
|
var CARD_NETWORKS = ["amex", "visa", "mastercard"];
|
|
303
303
|
function CardNetworkIcons() {
|
|
@@ -305,7 +305,7 @@ function CardNetworkIcons() {
|
|
|
305
305
|
"span",
|
|
306
306
|
{
|
|
307
307
|
className: `rs-card-network rs-card-network--${network}`,
|
|
308
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
308
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "cards", network) })
|
|
309
309
|
},
|
|
310
310
|
network
|
|
311
311
|
)) });
|
|
@@ -324,7 +324,7 @@ function DappBadgeIcons() {
|
|
|
324
324
|
).filter(
|
|
325
325
|
(brand) => Boolean(brand)
|
|
326
326
|
);
|
|
327
|
-
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,
|
|
327
|
+
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, _chunkDYZHRL5Gcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
|
|
328
328
|
}
|
|
329
329
|
DappBadgeIcons.displayName = "DappBadgeIcons";
|
|
330
330
|
var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
|
|
@@ -344,9 +344,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
|
|
|
344
344
|
return "No balance";
|
|
345
345
|
}
|
|
346
346
|
function fiatIcon(name) {
|
|
347
|
-
if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
348
|
-
if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
349
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
347
|
+
if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.AppleIcon, {});
|
|
348
|
+
if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BankIcon, {});
|
|
349
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CardIcon, {});
|
|
350
350
|
}
|
|
351
351
|
function FiatMethodIcon({ option }) {
|
|
352
352
|
const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
|
|
@@ -429,20 +429,20 @@ function renderWalletLeading(row) {
|
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
432
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {});
|
|
433
433
|
}
|
|
434
|
-
var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
435
|
-
var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
436
|
-
var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
437
|
-
var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
438
|
-
var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
434
|
+
var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TransferCryptoIcon, {});
|
|
435
|
+
var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {});
|
|
436
|
+
var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.UnplugIcon, {});
|
|
437
|
+
var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.MigrateAssetsIcon, {});
|
|
438
|
+
var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, { className: "rs-spinner--sm" });
|
|
439
439
|
var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
440
440
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
|
|
441
441
|
"+100"
|
|
442
442
|
] });
|
|
443
443
|
var EXTRA_EXCHANGE_COUNT = Math.max(
|
|
444
444
|
0,
|
|
445
|
-
|
|
445
|
+
_chunkDYZHRL5Gcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
|
|
446
446
|
);
|
|
447
447
|
var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
448
448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
|
|
@@ -500,7 +500,7 @@ function ConnectStep({
|
|
|
500
500
|
if (onSelectTransferCrypto) {
|
|
501
501
|
cryptoRows.push(
|
|
502
502
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
503
|
-
|
|
503
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
504
504
|
{
|
|
505
505
|
leading: TRANSFER_CRYPTO_LEADING,
|
|
506
506
|
title: "Transfer crypto",
|
|
@@ -521,7 +521,7 @@ function ConnectStep({
|
|
|
521
521
|
);
|
|
522
522
|
cryptoRows.push(
|
|
523
523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
524
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
525
525
|
{
|
|
526
526
|
leading: renderWalletLeading(row),
|
|
527
527
|
title: collapseToExternal ? "External wallet" : row.label,
|
|
@@ -538,7 +538,7 @@ function ConnectStep({
|
|
|
538
538
|
if (!hasSessionWallet && handleConnect) {
|
|
539
539
|
cryptoRows.push(
|
|
540
540
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
541
|
-
|
|
541
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
542
542
|
{
|
|
543
543
|
leading: WALLET_LEADING,
|
|
544
544
|
title: "Connect wallet",
|
|
@@ -553,7 +553,7 @@ function ConnectStep({
|
|
|
553
553
|
if (onSelectFundFromExchange) {
|
|
554
554
|
cryptoRows.push(
|
|
555
555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
556
|
-
|
|
556
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
557
557
|
{
|
|
558
558
|
leading: EXCHANGE_LEADING,
|
|
559
559
|
title: "Connect exchange",
|
|
@@ -568,7 +568,7 @@ function ConnectStep({
|
|
|
568
568
|
if (onSelectMigrateAssets) {
|
|
569
569
|
cryptoRows.push(
|
|
570
570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
571
|
-
|
|
571
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
572
572
|
{
|
|
573
573
|
leading: MIGRATE_ASSETS_LEADING,
|
|
574
574
|
title: "Migrate assets",
|
|
@@ -589,7 +589,7 @@ function ConnectStep({
|
|
|
589
589
|
for (const opt of fiatPaymentMethods) {
|
|
590
590
|
cashRows.push(
|
|
591
591
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
592
|
-
|
|
592
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
593
593
|
{
|
|
594
594
|
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
|
|
595
595
|
title: opt.label,
|
|
@@ -604,7 +604,7 @@ function ConnectStep({
|
|
|
604
604
|
} else if (fiatLoading) {
|
|
605
605
|
cashRows.push(
|
|
606
606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
607
|
-
|
|
607
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
608
608
|
{
|
|
609
609
|
leading: SMALL_SPINNER,
|
|
610
610
|
title: "Loading payment options\u2026",
|
|
@@ -633,9 +633,9 @@ function ConnectStep({
|
|
|
633
633
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
634
634
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
635
635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
636
|
-
|
|
636
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
637
637
|
{
|
|
638
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
638
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HandCoinsIcon, {}),
|
|
639
639
|
title,
|
|
640
640
|
subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
|
|
641
641
|
aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -671,7 +671,7 @@ function ConnectStep({
|
|
|
671
671
|
children: "Disconnect wallet"
|
|
672
672
|
}
|
|
673
673
|
) }),
|
|
674
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
674
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
675
675
|
] });
|
|
676
676
|
}
|
|
677
677
|
ConnectStep.displayName = "ConnectStep";
|
|
@@ -694,17 +694,17 @@ function AssetSelectStep({
|
|
|
694
694
|
const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
|
|
695
695
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
696
696
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
697
|
-
const isDepositChain =
|
|
698
|
-
const { catalog } =
|
|
699
|
-
const chainName =
|
|
697
|
+
const isDepositChain = _chunkDYZHRL5Gcjs.useIsDepositChain.call(void 0, );
|
|
698
|
+
const { catalog } = _chunkDYZHRL5Gcjs.useChainCatalog.call(void 0, );
|
|
699
|
+
const chainName = _chunkDYZHRL5Gcjs.useChainName.call(void 0, );
|
|
700
700
|
const defaultAssetId = _react.useMemo.call(void 0, () => {
|
|
701
701
|
if (!defaultSourceChain || !defaultSourceToken) return null;
|
|
702
|
-
return
|
|
702
|
+
return _chunkDYZHRL5Gcjs.getAssetId.call(void 0, {
|
|
703
703
|
chainId: defaultSourceChain,
|
|
704
704
|
token: defaultSourceToken
|
|
705
705
|
});
|
|
706
706
|
}, [defaultSourceChain, defaultSourceToken]);
|
|
707
|
-
const onTotalBalanceComputedRef =
|
|
707
|
+
const onTotalBalanceComputedRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
|
|
708
708
|
_react.useEffect.call(void 0, () => {
|
|
709
709
|
let active = true;
|
|
710
710
|
function emitAssetsUpdate(currentAssets) {
|
|
@@ -724,7 +724,7 @@ function AssetSelectStep({
|
|
|
724
724
|
try {
|
|
725
725
|
const portfolio = await service.fetchPortfolio(address);
|
|
726
726
|
if (!active) return;
|
|
727
|
-
const portfolioAssets =
|
|
727
|
+
const portfolioAssets = _chunkDYZHRL5Gcjs.portfolioToAssets.call(void 0, portfolio.tokens);
|
|
728
728
|
setAssets(portfolioAssets);
|
|
729
729
|
emitAssetsUpdate(portfolioAssets);
|
|
730
730
|
const hasNative = portfolioAssets.some(
|
|
@@ -803,7 +803,7 @@ function AssetSelectStep({
|
|
|
803
803
|
const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
|
|
804
804
|
const numeric = Number(raw);
|
|
805
805
|
if (!Number.isFinite(numeric)) return raw;
|
|
806
|
-
return
|
|
806
|
+
return _chunkDYZHRL5Gcjs.tokenFormatter.format(numeric);
|
|
807
807
|
} catch (e3) {
|
|
808
808
|
return asset.balance;
|
|
809
809
|
}
|
|
@@ -811,20 +811,20 @@ function AssetSelectStep({
|
|
|
811
811
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
812
812
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
813
813
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
814
|
-
|
|
814
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
815
815
|
{
|
|
816
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
816
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}),
|
|
817
817
|
title: "Your assets",
|
|
818
818
|
subtitle: "Select source assets to transfer"
|
|
819
819
|
}
|
|
820
820
|
),
|
|
821
821
|
loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
|
|
822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, { className: "rs-text-tertiary" }),
|
|
823
823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
|
|
824
824
|
] }),
|
|
825
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
825
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
826
826
|
!loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
|
|
827
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, { className: "rs-empty-icon" }),
|
|
828
828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
|
|
829
829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
|
|
830
830
|
address.slice(0, 6),
|
|
@@ -857,13 +857,13 @@ function AssetSelectStep({
|
|
|
857
857
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
|
|
858
858
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
|
|
859
859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkDYZHRL5Gcjs.TokenIcon,
|
|
861
861
|
{
|
|
862
862
|
symbol: asset.symbol,
|
|
863
863
|
fallback: asset.symbol.slice(0, 4)
|
|
864
864
|
}
|
|
865
865
|
) }),
|
|
866
|
-
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
866
|
+
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
867
867
|
"span",
|
|
868
868
|
{
|
|
869
869
|
className: "rs-asset-chain-badge",
|
|
@@ -890,14 +890,14 @@ function AssetSelectStep({
|
|
|
890
890
|
] })
|
|
891
891
|
] })
|
|
892
892
|
] }),
|
|
893
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ?
|
|
893
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkDYZHRL5Gcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
|
|
894
894
|
]
|
|
895
895
|
},
|
|
896
896
|
asset.id
|
|
897
897
|
);
|
|
898
898
|
}) }),
|
|
899
899
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
900
|
-
|
|
900
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
901
901
|
{
|
|
902
902
|
onClick: () => selectedAsset && onContinue(selectedAsset),
|
|
903
903
|
disabled: !selectedAsset,
|
|
@@ -906,7 +906,7 @@ function AssetSelectStep({
|
|
|
906
906
|
}
|
|
907
907
|
)
|
|
908
908
|
] }),
|
|
909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
910
910
|
] });
|
|
911
911
|
}
|
|
912
912
|
async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
|
|
@@ -914,7 +914,7 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
|
|
|
914
914
|
const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
|
|
915
915
|
if (!connectedChainId) return [];
|
|
916
916
|
if (!isDepositChain(connectedChainId)) return [];
|
|
917
|
-
const id =
|
|
917
|
+
const id = _chunkDYZHRL5Gcjs.getAssetId.call(void 0, {
|
|
918
918
|
chainId: connectedChainId,
|
|
919
919
|
token: _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS
|
|
920
920
|
});
|
|
@@ -1120,7 +1120,7 @@ function AmountStep({
|
|
|
1120
1120
|
const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
|
|
1121
1121
|
if (!balanceTarget || !publicClient) return;
|
|
1122
1122
|
try {
|
|
1123
|
-
const bal =
|
|
1123
|
+
const bal = _chunkDYZHRL5Gcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
|
|
1124
1124
|
address: asset.token,
|
|
1125
1125
|
abi: _viem.erc20Abi,
|
|
1126
1126
|
functionName: "balanceOf",
|
|
@@ -1141,7 +1141,7 @@ function AmountStep({
|
|
|
1141
1141
|
hasAttemptedSwitch.current = true;
|
|
1142
1142
|
switchChain(asset.chainId).catch((err) => {
|
|
1143
1143
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
1144
|
-
setError(
|
|
1144
|
+
setError(_chunkDYZHRL5Gcjs.formatUserError.call(void 0, raw));
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
}, [chainMismatch, switchChain, asset.chainId]);
|
|
@@ -1194,7 +1194,7 @@ function AmountStep({
|
|
|
1194
1194
|
const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
|
|
1195
1195
|
const numeric = Number(raw);
|
|
1196
1196
|
if (!Number.isFinite(numeric)) return raw;
|
|
1197
|
-
return
|
|
1197
|
+
return _chunkDYZHRL5Gcjs.tokenFormatter.format(numeric);
|
|
1198
1198
|
} catch (e8) {
|
|
1199
1199
|
return "\u2026";
|
|
1200
1200
|
}
|
|
@@ -1282,12 +1282,12 @@ function AmountStep({
|
|
|
1282
1282
|
const needsPricing = !knowsBalance && !isSourceStablecoin;
|
|
1283
1283
|
const blockedOnPricing = needsPricing && !hasPricing;
|
|
1284
1284
|
const continueDisabled = chainMismatch || exceedsBalance || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
|
|
1285
|
-
const chainName =
|
|
1285
|
+
const chainName = _chunkDYZHRL5Gcjs.useChainName.call(void 0, );
|
|
1286
1286
|
const sourceChainName = chainName(asset.chainId);
|
|
1287
1287
|
const targetChainName = chainName(targetChainId);
|
|
1288
1288
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
1289
1289
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
1290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}), title }),
|
|
1291
1291
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
|
|
1292
1292
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
|
|
1293
1293
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1307,13 +1307,13 @@ function AmountStep({
|
|
|
1307
1307
|
" available",
|
|
1308
1308
|
balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1309
1309
|
" (~",
|
|
1310
|
-
|
|
1310
|
+
_chunkDYZHRL5Gcjs.currencyFormatter.format(balanceUsd),
|
|
1311
1311
|
")"
|
|
1312
1312
|
] })
|
|
1313
1313
|
] }),
|
|
1314
1314
|
minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
|
|
1315
1315
|
"Min. deposit ",
|
|
1316
|
-
|
|
1316
|
+
_chunkDYZHRL5Gcjs.currencyFormatter.format(minDepositUsd)
|
|
1317
1317
|
] })
|
|
1318
1318
|
] })
|
|
1319
1319
|
] }),
|
|
@@ -1338,7 +1338,7 @@ function AmountStep({
|
|
|
1338
1338
|
" ",
|
|
1339
1339
|
asset.symbol
|
|
1340
1340
|
] }),
|
|
1341
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: asset.symbol }) })
|
|
1342
1342
|
] })
|
|
1343
1343
|
] }),
|
|
1344
1344
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
@@ -1349,21 +1349,21 @@ function AmountStep({
|
|
|
1349
1349
|
" ",
|
|
1350
1350
|
targetSymbol
|
|
1351
1351
|
] }),
|
|
1352
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1352
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: targetSymbol }) })
|
|
1353
1353
|
] })
|
|
1354
1354
|
] }),
|
|
1355
1355
|
balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
1356
1356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
|
|
1357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children:
|
|
1357
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDYZHRL5Gcjs.currencyFormatter.format(balanceAfterUsd) })
|
|
1358
1358
|
] })
|
|
1359
1359
|
] }),
|
|
1360
|
-
blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1360
|
+
blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: [
|
|
1361
1361
|
asset.symbol,
|
|
1362
1362
|
" can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
|
|
1363
1363
|
] }),
|
|
1364
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1364
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
1365
1365
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1366
|
-
|
|
1366
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
1367
1367
|
{
|
|
1368
1368
|
onClick: handleContinue,
|
|
1369
1369
|
fullWidth: true,
|
|
@@ -1372,7 +1372,7 @@ function AmountStep({
|
|
|
1372
1372
|
}
|
|
1373
1373
|
)
|
|
1374
1374
|
] }),
|
|
1375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
1376
1376
|
] });
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
@@ -1399,14 +1399,14 @@ function ReviewDetails({
|
|
|
1399
1399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
1400
1400
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1401
1401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
1402
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1402
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
1403
1403
|
] })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1406
1406
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
1407
1407
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1408
1408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
1409
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1409
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: targetChainIcon }) })
|
|
1410
1410
|
] })
|
|
1411
1411
|
] }),
|
|
1412
1412
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -1421,21 +1421,21 @@ function ReviewDetails({
|
|
|
1421
1421
|
" ",
|
|
1422
1422
|
sendSymbol
|
|
1423
1423
|
] }),
|
|
1424
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1424
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: sendSymbol }) })
|
|
1425
1425
|
] })
|
|
1426
1426
|
] }),
|
|
1427
1427
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1428
1428
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
|
|
1429
1429
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1430
1430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
|
|
1431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1431
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: receiveSymbol }) })
|
|
1432
1432
|
] })
|
|
1433
1433
|
] }),
|
|
1434
1434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1435
1435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
|
|
1436
1436
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1437
1437
|
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 }),
|
|
1438
|
-
fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1438
|
+
fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRLGIGVQVcjs.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, _chunkDYZHRL5Gcjs.InfoIcon, {}) }) })
|
|
1439
1439
|
] })
|
|
1440
1440
|
] })
|
|
1441
1441
|
] });
|
|
@@ -1653,17 +1653,17 @@ function ConfirmStep({
|
|
|
1653
1653
|
const targetChainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId);
|
|
1654
1654
|
const sourceChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
|
|
1655
1655
|
const targetChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId);
|
|
1656
|
-
const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(
|
|
1657
|
-
const mustHaveQuote = !appFeesResolved ||
|
|
1656
|
+
const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkDYZHRL5Gcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
|
|
1657
|
+
const mustHaveQuote = !appFeesResolved || _chunkDYZHRL5Gcjs.resolveAppFeeBps.call(void 0,
|
|
1658
1658
|
appFees,
|
|
1659
1659
|
`eip155:${quoteSource.chainId}`,
|
|
1660
1660
|
quoteSource.token
|
|
1661
1661
|
) > 0;
|
|
1662
|
-
const { display: feeDisplay, struck: feesFullySponsored } =
|
|
1662
|
+
const { display: feeDisplay, struck: feesFullySponsored } = _chunkDYZHRL5Gcjs.quoteFeeRow.call(void 0,
|
|
1663
1663
|
_optionalChain([quote, 'optionalAccess', _67 => _67.fees])
|
|
1664
1664
|
);
|
|
1665
1665
|
const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
|
|
1666
|
-
const permitEligible = enableGaslessDeposit && !
|
|
1666
|
+
const permitEligible = enableGaslessDeposit && !_chunkDYZHRL5Gcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID;
|
|
1667
1667
|
const permitRequestKey = JSON.stringify([
|
|
1668
1668
|
smartAccount.toLowerCase(),
|
|
1669
1669
|
asset.chainId,
|
|
@@ -1676,21 +1676,21 @@ function ConfirmStep({
|
|
|
1676
1676
|
const receiveDisplay = (() => {
|
|
1677
1677
|
if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
|
|
1678
1678
|
if (quote) {
|
|
1679
|
-
const quoted =
|
|
1679
|
+
const quoted = _chunkDYZHRL5Gcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
|
|
1680
1680
|
if (quoted !== void 0) return quoted;
|
|
1681
1681
|
}
|
|
1682
1682
|
const usdValue = Number(targetAmount);
|
|
1683
1683
|
const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
|
|
1684
|
-
const estimate =
|
|
1684
|
+
const estimate = _chunkDYZHRL5Gcjs.formatReceiveEstimate.call(void 0, {
|
|
1685
1685
|
sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
|
|
1686
1686
|
sourceSymbol: asset.symbol,
|
|
1687
1687
|
targetSymbol,
|
|
1688
1688
|
sourceAmountUsd,
|
|
1689
|
-
sourceTrusted:
|
|
1689
|
+
sourceTrusted: _chunkDYZHRL5Gcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
|
|
1690
1690
|
// The target is the curated deposit destination, so a stablecoin target
|
|
1691
1691
|
// estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
|
|
1692
1692
|
// target prices). Not applied to the source — that can be a held token.
|
|
1693
|
-
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } :
|
|
1693
|
+
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDYZHRL5Gcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
|
|
1694
1694
|
});
|
|
1695
1695
|
if (estimate !== void 0) return estimate;
|
|
1696
1696
|
return targetSymbol;
|
|
@@ -1701,7 +1701,7 @@ function ConfirmStep({
|
|
|
1701
1701
|
hasAttemptedSwitch.current = true;
|
|
1702
1702
|
switchChain(asset.chainId).catch((err) => {
|
|
1703
1703
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
1704
|
-
setError(
|
|
1704
|
+
setError(_chunkDYZHRL5Gcjs.formatUserError.call(void 0, raw));
|
|
1705
1705
|
});
|
|
1706
1706
|
}
|
|
1707
1707
|
}, [chainMismatch, switchChain, asset.chainId]);
|
|
@@ -1887,9 +1887,9 @@ function ConfirmStep({
|
|
|
1887
1887
|
);
|
|
1888
1888
|
} catch (err) {
|
|
1889
1889
|
const raw = err instanceof Error ? err.message : "Signing failed";
|
|
1890
|
-
const safeToTransfer = !submitStarted || err instanceof
|
|
1890
|
+
const safeToTransfer = !submitStarted || err instanceof _chunkDYZHRL5Gcjs.PermitDepositSubmitError && err.safeToTransfer;
|
|
1891
1891
|
if (safeToTransfer) setPermitDisabled(true);
|
|
1892
|
-
const message = safeToTransfer ?
|
|
1892
|
+
const message = safeToTransfer ? _chunkDYZHRL5Gcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
|
|
1893
1893
|
setError(message);
|
|
1894
1894
|
_optionalChain([onError, 'optionalCall', _69 => _69(message, "PERMIT_ERROR", raw)]);
|
|
1895
1895
|
} finally {
|
|
@@ -1910,7 +1910,7 @@ function ConfirmStep({
|
|
|
1910
1910
|
const result = await executeTransfer(amountUnits);
|
|
1911
1911
|
hash = result.txHash;
|
|
1912
1912
|
resolvedSourceToken = result.sourceToken;
|
|
1913
|
-
} else if (
|
|
1913
|
+
} else if (_chunkDYZHRL5Gcjs.isNativeAsset.call(void 0, asset)) {
|
|
1914
1914
|
hash = await walletClient.sendTransaction({
|
|
1915
1915
|
account,
|
|
1916
1916
|
chain,
|
|
@@ -1941,8 +1941,8 @@ function ConfirmStep({
|
|
|
1941
1941
|
);
|
|
1942
1942
|
} catch (err) {
|
|
1943
1943
|
const raw = err instanceof Error ? err.message : "Transfer failed";
|
|
1944
|
-
const uncertain =
|
|
1945
|
-
const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." :
|
|
1944
|
+
const uncertain = _chunkRLGIGVQVcjs.isSubmissionUncertain.call(void 0, err);
|
|
1945
|
+
const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkDYZHRL5Gcjs.formatUserError.call(void 0, raw);
|
|
1946
1946
|
if (uncertain) setSubmissionUncertain(true);
|
|
1947
1947
|
setError(message);
|
|
1948
1948
|
_optionalChain([onError, 'optionalCall', _71 => _71(message, "TRANSFER_ERROR", raw)]);
|
|
@@ -1952,7 +1952,7 @@ function ConfirmStep({
|
|
|
1952
1952
|
};
|
|
1953
1953
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
1954
1954
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
1955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}), title: "Review deposit" }),
|
|
1956
1956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1957
1957
|
ReviewDetails,
|
|
1958
1958
|
{
|
|
@@ -1968,9 +1968,9 @@ function ConfirmStep({
|
|
|
1968
1968
|
fee: { display: feeDisplay, struck: feesFullySponsored }
|
|
1969
1969
|
}
|
|
1970
1970
|
),
|
|
1971
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1971
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
1972
1972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1973
|
-
|
|
1973
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
1974
1974
|
{
|
|
1975
1975
|
onClick: handleConfirm,
|
|
1976
1976
|
loading: isSubmitting,
|
|
@@ -1997,7 +1997,7 @@ function ConfirmStep({
|
|
|
1997
1997
|
] }),
|
|
1998
1998
|
!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." })
|
|
1999
1999
|
] }),
|
|
2000
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2000
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
2001
2001
|
] });
|
|
2002
2002
|
}
|
|
2003
2003
|
|
|
@@ -2050,29 +2050,29 @@ function QrReviewStep({
|
|
|
2050
2050
|
cancelled = true;
|
|
2051
2051
|
};
|
|
2052
2052
|
}, [service, smartAccount, asset, amount]);
|
|
2053
|
-
const formattedSendAmount = _nullishCoalesce(
|
|
2053
|
+
const formattedSendAmount = _nullishCoalesce(_chunkDYZHRL5Gcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
|
|
2054
2054
|
const receiveDisplay = (() => {
|
|
2055
2055
|
if (quote.value) {
|
|
2056
|
-
const quoted =
|
|
2056
|
+
const quoted = _chunkDYZHRL5Gcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
|
|
2057
2057
|
if (quoted !== void 0) return quoted;
|
|
2058
2058
|
}
|
|
2059
2059
|
const usdValue = Number(targetAmount);
|
|
2060
|
-
const estimate =
|
|
2060
|
+
const estimate = _chunkDYZHRL5Gcjs.formatReceiveEstimate.call(void 0, {
|
|
2061
2061
|
sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
|
|
2062
2062
|
sourceSymbol: asset.symbol,
|
|
2063
2063
|
targetSymbol,
|
|
2064
2064
|
sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
|
|
2065
|
-
sourceTrusted:
|
|
2066
|
-
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } :
|
|
2065
|
+
sourceTrusted: _chunkDYZHRL5Gcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
|
|
2066
|
+
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDYZHRL5Gcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
|
|
2067
2067
|
});
|
|
2068
2068
|
return _nullishCoalesce(estimate, () => ( targetSymbol));
|
|
2069
2069
|
})();
|
|
2070
2070
|
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";
|
|
2071
|
-
const { display: quotedFee, struck } =
|
|
2071
|
+
const { display: quotedFee, struck } = _chunkDYZHRL5Gcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _72 => _72.value, 'optionalAccess', _73 => _73.fees]));
|
|
2072
2072
|
const feeDisplay = quote.state === "unavailable" ? "\u2014" : quotedFee;
|
|
2073
2073
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
2074
2074
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
2075
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2075
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
|
|
2076
2076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2077
2077
|
ReviewDetails,
|
|
2078
2078
|
{
|
|
@@ -2088,9 +2088,9 @@ function QrReviewStep({
|
|
|
2088
2088
|
fee: { display: feeDisplay, struck }
|
|
2089
2089
|
}
|
|
2090
2090
|
),
|
|
2091
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
|
|
2092
2092
|
] }),
|
|
2093
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2093
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
2094
2094
|
] });
|
|
2095
2095
|
}
|
|
2096
2096
|
QrReviewStep.displayName = "QrReviewStep";
|
|
@@ -2121,20 +2121,20 @@ function DepositAddressSkeleton({
|
|
|
2121
2121
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
|
|
2122
2122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
|
|
2123
2123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
2124
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
|
|
2125
2125
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
|
|
2126
2126
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
|
|
2127
2127
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
|
|
2128
2128
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
|
|
2129
2129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2130
|
-
|
|
2130
|
+
_chunkDYZHRL5Gcjs.CdnIcon,
|
|
2131
2131
|
{
|
|
2132
2132
|
src: chainIcon,
|
|
2133
2133
|
className: "rs-deposit-address-dropdown-icon"
|
|
2134
2134
|
}
|
|
2135
2135
|
),
|
|
2136
2136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
|
|
2137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2137
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
2138
2138
|
] })
|
|
2139
2139
|
] }),
|
|
2140
2140
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
|
|
@@ -2143,8 +2143,8 @@ function DepositAddressSkeleton({
|
|
|
2143
2143
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
|
|
2144
2144
|
"Min.$",
|
|
2145
2145
|
(_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _74 => _74.minDepositUsd]), () => ( 0.1))).toFixed(2),
|
|
2146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2147
|
-
|
|
2146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRLGIGVQVcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2147
|
+
_chunkDYZHRL5Gcjs.InfoIcon,
|
|
2148
2148
|
{
|
|
2149
2149
|
className: "rs-deposit-address-min-icon",
|
|
2150
2150
|
"aria-hidden": "true"
|
|
@@ -2154,14 +2154,14 @@ function DepositAddressSkeleton({
|
|
|
2154
2154
|
] }),
|
|
2155
2155
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
|
|
2156
2156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2157
|
-
|
|
2157
|
+
_chunkDYZHRL5Gcjs.TokenIcon,
|
|
2158
2158
|
{
|
|
2159
2159
|
symbol: defaultToken,
|
|
2160
2160
|
className: "rs-deposit-address-dropdown-icon"
|
|
2161
2161
|
}
|
|
2162
2162
|
),
|
|
2163
2163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
|
|
2164
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2164
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
2165
2165
|
] })
|
|
2166
2166
|
] })
|
|
2167
2167
|
] }),
|
|
@@ -2176,7 +2176,7 @@ function DepositAddressSkeleton({
|
|
|
2176
2176
|
] }),
|
|
2177
2177
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", "aria-hidden": "true", children: [
|
|
2178
2178
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "rs-deposit-address-copy", disabled: true, children: [
|
|
2179
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2179
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CopyIcon, {}),
|
|
2180
2180
|
"Copy address"
|
|
2181
2181
|
] }),
|
|
2182
2182
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2193,7 +2193,7 @@ function DepositAddressSkeleton({
|
|
|
2193
2193
|
}
|
|
2194
2194
|
)
|
|
2195
2195
|
] }),
|
|
2196
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2196
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
2197
2197
|
] });
|
|
2198
2198
|
}
|
|
2199
2199
|
DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
|
|
@@ -2205,9 +2205,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
|
|
|
2205
2205
|
var MAX_POLL_INTERVAL = 3e4;
|
|
2206
2206
|
var BACKOFF_MULTIPLIER = 1.5;
|
|
2207
2207
|
function isEventForTx(event, txHash) {
|
|
2208
|
-
const eventTxHash =
|
|
2208
|
+
const eventTxHash = _chunkRLGIGVQVcjs.getEventTxHash.call(void 0, event);
|
|
2209
2209
|
if (!eventTxHash) return false;
|
|
2210
|
-
return
|
|
2210
|
+
return _chunkRLGIGVQVcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
|
|
2211
2211
|
}
|
|
2212
2212
|
function truncateHash(hash) {
|
|
2213
2213
|
return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
|
|
@@ -2257,7 +2257,7 @@ function formatBridgeFailedMessage(event) {
|
|
|
2257
2257
|
}
|
|
2258
2258
|
return "Bridge failed";
|
|
2259
2259
|
}
|
|
2260
|
-
var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2260
|
+
var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
|
|
2261
2261
|
function DepositNotification({
|
|
2262
2262
|
deposit,
|
|
2263
2263
|
smartAccount,
|
|
@@ -2291,7 +2291,7 @@ function DepositNotification({
|
|
|
2291
2291
|
const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
|
|
2292
2292
|
const pollTimeoutRef = _react.useRef.call(void 0, null);
|
|
2293
2293
|
const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
|
|
2294
|
-
const depositContextRef =
|
|
2294
|
+
const depositContextRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, {
|
|
2295
2295
|
amount,
|
|
2296
2296
|
sourceChain,
|
|
2297
2297
|
sourceToken: token,
|
|
@@ -2299,8 +2299,8 @@ function DepositNotification({
|
|
|
2299
2299
|
targetChain,
|
|
2300
2300
|
targetToken
|
|
2301
2301
|
});
|
|
2302
|
-
const onCompleteRef =
|
|
2303
|
-
const onFailedRef =
|
|
2302
|
+
const onCompleteRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onComplete);
|
|
2303
|
+
const onFailedRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onFailed);
|
|
2304
2304
|
const handleComplete = _react.useCallback.call(void 0,
|
|
2305
2305
|
(destTxHash) => {
|
|
2306
2306
|
if (completedRef.current) return;
|
|
@@ -2391,12 +2391,12 @@ function DepositNotification({
|
|
|
2391
2391
|
status,
|
|
2392
2392
|
txHash
|
|
2393
2393
|
]);
|
|
2394
|
-
const explorerTxUrl =
|
|
2394
|
+
const explorerTxUrl = _chunkDYZHRL5Gcjs.useExplorerTxUrl.call(void 0, );
|
|
2395
2395
|
const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
|
|
2396
2396
|
const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
|
|
2397
2397
|
const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
|
|
2398
2398
|
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.";
|
|
2399
|
-
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,
|
|
2399
|
+
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, _chunkDYZHRL5Gcjs.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, _chunkDYZHRL5Gcjs.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,
|
|
2400
2400
|
"svg",
|
|
2401
2401
|
{
|
|
2402
2402
|
className: "rs-deposit-notification-spinner",
|
|
@@ -2446,7 +2446,7 @@ function DepositNotification({
|
|
|
2446
2446
|
className: "rs-deposit-notification-close",
|
|
2447
2447
|
onClick: () => onDismiss(deposit.id),
|
|
2448
2448
|
"aria-label": "Dismiss",
|
|
2449
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2449
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CloseIcon, {})
|
|
2450
2450
|
}
|
|
2451
2451
|
)
|
|
2452
2452
|
] }),
|
|
@@ -2462,7 +2462,7 @@ function DepositNotification({
|
|
|
2462
2462
|
"aria-expanded": expanded,
|
|
2463
2463
|
children: [
|
|
2464
2464
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
|
|
2465
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2465
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
|
|
2466
2466
|
]
|
|
2467
2467
|
}
|
|
2468
2468
|
),
|
|
@@ -2623,7 +2623,7 @@ function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
function TokenGlyph({ symbol }) {
|
|
2625
2625
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2626
|
-
|
|
2626
|
+
_chunkDYZHRL5Gcjs.TokenIcon,
|
|
2627
2627
|
{
|
|
2628
2628
|
symbol,
|
|
2629
2629
|
className: "rs-deposit-address-dropdown-icon",
|
|
@@ -2666,12 +2666,12 @@ function DepositAddressStep({
|
|
|
2666
2666
|
};
|
|
2667
2667
|
}, [service]);
|
|
2668
2668
|
const BASE_CHAIN_ID2 = 8453;
|
|
2669
|
-
const evmChainIds =
|
|
2670
|
-
const { catalog, isLoading: catalogLoading } =
|
|
2669
|
+
const evmChainIds = _chunkDYZHRL5Gcjs.useDepositChainIds.call(void 0, );
|
|
2670
|
+
const { catalog, isLoading: catalogLoading } = _chunkDYZHRL5Gcjs.useChainCatalog.call(void 0, );
|
|
2671
2671
|
const catalogFor = _react.useCallback.call(void 0,
|
|
2672
2672
|
(chain) => {
|
|
2673
2673
|
if (!catalog) return void 0;
|
|
2674
|
-
const key =
|
|
2674
|
+
const key = _chunkDYZHRL5Gcjs.catalogKeyForChain.call(void 0, chain);
|
|
2675
2675
|
return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
|
|
2676
2676
|
},
|
|
2677
2677
|
[catalog]
|
|
@@ -2847,10 +2847,10 @@ function DepositAddressStep({
|
|
|
2847
2847
|
return;
|
|
2848
2848
|
}
|
|
2849
2849
|
const event = status.lastEvent;
|
|
2850
|
-
const eventTxHash =
|
|
2850
|
+
const eventTxHash = _chunkRLGIGVQVcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkRLGIGVQVcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
|
|
2851
2851
|
if (baselineTxHashRef.current === void 0) {
|
|
2852
2852
|
baselineTxHashRef.current = eventTxHash;
|
|
2853
|
-
} else if (eventTxHash && (!baselineTxHashRef.current || !
|
|
2853
|
+
} else if (eventTxHash && (!baselineTxHashRef.current || !_chunkRLGIGVQVcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
|
|
2854
2854
|
const details = getDepositEventDetails(event);
|
|
2855
2855
|
const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
|
|
2856
2856
|
const amount = _nullishCoalesce(details.amount, () => ( "0"));
|
|
@@ -2934,13 +2934,13 @@ function DepositAddressStep({
|
|
|
2934
2934
|
if (chainOptions.length === 0) {
|
|
2935
2935
|
if (catalogLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
|
|
2936
2936
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
2937
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2938
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2937
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
|
|
2938
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.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." })
|
|
2939
2939
|
] }) });
|
|
2940
2940
|
}
|
|
2941
2941
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
|
|
2942
2942
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
2943
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2943
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
|
|
2944
2944
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
|
|
2945
2945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
|
|
2946
2946
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
|
|
@@ -2956,14 +2956,14 @@ function DepositAddressStep({
|
|
|
2956
2956
|
},
|
|
2957
2957
|
children: [
|
|
2958
2958
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2959
|
-
|
|
2959
|
+
_chunkDYZHRL5Gcjs.CdnIcon,
|
|
2960
2960
|
{
|
|
2961
2961
|
src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _134 => _134(sourceChainId), 'optionalAccess', _135 => _135.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, sourceChainId))),
|
|
2962
2962
|
className: "rs-deposit-address-dropdown-icon"
|
|
2963
2963
|
}
|
|
2964
2964
|
),
|
|
2965
2965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
|
|
2966
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2966
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
2967
2967
|
]
|
|
2968
2968
|
}
|
|
2969
2969
|
),
|
|
@@ -2975,7 +2975,7 @@ function DepositAddressStep({
|
|
|
2975
2975
|
onClick: () => handleSelectChain(chainId),
|
|
2976
2976
|
children: [
|
|
2977
2977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2978
|
-
|
|
2978
|
+
_chunkDYZHRL5Gcjs.CdnIcon,
|
|
2979
2979
|
{
|
|
2980
2980
|
src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _136 => _136(chainId), 'optionalAccess', _137 => _137.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, chainId))),
|
|
2981
2981
|
className: "rs-deposit-address-dropdown-icon"
|
|
@@ -2993,8 +2993,8 @@ function DepositAddressStep({
|
|
|
2993
2993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
|
|
2994
2994
|
"Min.$",
|
|
2995
2995
|
(_chunk4KCSH4T3cjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunk4KCSH4T3cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _138 => _138.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _139 => _139.minDepositUsd]), () => ( 0.1))).toFixed(2),
|
|
2996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2997
|
-
|
|
2996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRLGIGVQVcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2997
|
+
_chunkDYZHRL5Gcjs.InfoIcon,
|
|
2998
2998
|
{
|
|
2999
2999
|
className: "rs-deposit-address-min-icon",
|
|
3000
3000
|
"aria-hidden": "true"
|
|
@@ -3015,7 +3015,7 @@ function DepositAddressStep({
|
|
|
3015
3015
|
children: [
|
|
3016
3016
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
|
|
3017
3017
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
|
|
3018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
|
|
3019
3019
|
]
|
|
3020
3020
|
}
|
|
3021
3021
|
),
|
|
@@ -3060,7 +3060,7 @@ function DepositAddressStep({
|
|
|
3060
3060
|
className: "rs-deposit-address-copy",
|
|
3061
3061
|
onClick: handleCopy,
|
|
3062
3062
|
children: [
|
|
3063
|
-
copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3063
|
+
copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CopyIcon, {}),
|
|
3064
3064
|
copied ? "Copied!" : "Copy address"
|
|
3065
3065
|
]
|
|
3066
3066
|
}
|
|
@@ -3095,7 +3095,7 @@ function DepositAddressStep({
|
|
|
3095
3095
|
},
|
|
3096
3096
|
deposit.id
|
|
3097
3097
|
)) }),
|
|
3098
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3098
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
3099
3099
|
] });
|
|
3100
3100
|
}
|
|
3101
3101
|
DepositAddressStep.displayName = "DepositAddressStep";
|
|
@@ -3152,7 +3152,7 @@ function FinalisingDepositStep() {
|
|
|
3152
3152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
|
|
3153
3153
|
] })
|
|
3154
3154
|
] }),
|
|
3155
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3155
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
3156
3156
|
] });
|
|
3157
3157
|
}
|
|
3158
3158
|
FinalisingDepositStep.displayName = "FinalisingDepositStep";
|
|
@@ -3182,7 +3182,7 @@ function SwappedOrderTracker({
|
|
|
3182
3182
|
];
|
|
3183
3183
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
|
|
3184
3184
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
3185
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3185
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HandCoinsIcon, {}), title }),
|
|
3186
3186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
|
|
3187
3187
|
const status = stepStates[idx];
|
|
3188
3188
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3196,7 +3196,7 @@ function SwappedOrderTracker({
|
|
|
3196
3196
|
{
|
|
3197
3197
|
className: "rs-swapped-tracker-step-marker",
|
|
3198
3198
|
"aria-hidden": "true",
|
|
3199
|
-
children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3199
|
+
children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3200
3200
|
"svg",
|
|
3201
3201
|
{
|
|
3202
3202
|
className: "rs-swapped-tracker-step-ring",
|
|
@@ -3231,7 +3231,7 @@ function SwappedOrderTracker({
|
|
|
3231
3231
|
}
|
|
3232
3232
|
)
|
|
3233
3233
|
] }),
|
|
3234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
3235
3235
|
] });
|
|
3236
3236
|
}
|
|
3237
3237
|
function formatTrackerAmount(amount) {
|
|
@@ -3441,10 +3441,10 @@ function SwappedIframeStep({
|
|
|
3441
3441
|
const status = await service.fetchLatestStatus(smartAccount);
|
|
3442
3442
|
if (cancelled) return;
|
|
3443
3443
|
const event = status.lastEvent;
|
|
3444
|
-
const eventTxHash =
|
|
3444
|
+
const eventTxHash = _chunkRLGIGVQVcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkRLGIGVQVcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
|
|
3445
3445
|
if (baselineDepositTxHashRef.current === void 0) {
|
|
3446
3446
|
baselineDepositTxHashRef.current = eventTxHash;
|
|
3447
|
-
} else if (eventTxHash && (!baselineDepositTxHashRef.current || !
|
|
3447
|
+
} else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkRLGIGVQVcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
|
|
3448
3448
|
currentDepositTxHashRef.current = eventTxHash;
|
|
3449
3449
|
setLatestEvent(_nullishCoalesce(event, () => ( null)));
|
|
3450
3450
|
}
|
|
@@ -3518,10 +3518,10 @@ function SwappedIframeStep({
|
|
|
3518
3518
|
[orderState, latestEvent]
|
|
3519
3519
|
);
|
|
3520
3520
|
const terminalState = _react.useMemo.call(void 0, () => {
|
|
3521
|
-
if (
|
|
3521
|
+
if (_chunkRLGIGVQVcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
|
|
3522
3522
|
return {
|
|
3523
3523
|
kind: "failed",
|
|
3524
|
-
message:
|
|
3524
|
+
message: _chunkRLGIGVQVcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
|
|
3525
3525
|
};
|
|
3526
3526
|
}
|
|
3527
3527
|
if (_optionalChain([orderState, 'optionalAccess', _158 => _158.status]) === "order_cancelled") {
|
|
@@ -3544,7 +3544,7 @@ function SwappedIframeStep({
|
|
|
3544
3544
|
orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _160 => _160.orderCrypto]), () => ( null)),
|
|
3545
3545
|
// Base-unit source amount from the deposit row/event, consistent with the
|
|
3546
3546
|
// wallet/QR path. ProcessingStep + onLifecycle expect base units.
|
|
3547
|
-
amount: _nullishCoalesce(
|
|
3547
|
+
amount: _nullishCoalesce(_chunkRLGIGVQVcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
|
|
3548
3548
|
expectedOrderUuid: expectedOrderUuidRef.current,
|
|
3549
3549
|
initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
|
|
3550
3550
|
};
|
|
@@ -3555,14 +3555,14 @@ function SwappedIframeStep({
|
|
|
3555
3555
|
}, [latestEvent, orderState, smartAccount]);
|
|
3556
3556
|
_react.useEffect.call(void 0, () => {
|
|
3557
3557
|
if (failedFiredRef.current || completeFiredRef.current) return;
|
|
3558
|
-
if (!
|
|
3558
|
+
if (!_chunkRLGIGVQVcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
|
|
3559
3559
|
const txHash = currentDepositTxHashRef.current;
|
|
3560
3560
|
if (!txHash) return;
|
|
3561
3561
|
failedFiredRef.current = true;
|
|
3562
3562
|
setPhase("tracker");
|
|
3563
3563
|
_optionalChain([onSwappedFailedRef, 'access', _161 => _161.current, 'optionalCall', _162 => _162(
|
|
3564
3564
|
txHash,
|
|
3565
|
-
|
|
3565
|
+
_chunkRLGIGVQVcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
|
|
3566
3566
|
)]);
|
|
3567
3567
|
}, [latestEvent]);
|
|
3568
3568
|
const immersive = variant === "fiat" && phase === "iframe" && !loadError;
|
|
@@ -3608,7 +3608,7 @@ function SwappedIframeStep({
|
|
|
3608
3608
|
}
|
|
3609
3609
|
)
|
|
3610
3610
|
] }),
|
|
3611
|
-
!loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3611
|
+
!loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, {}) }),
|
|
3612
3612
|
widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3613
3613
|
"iframe",
|
|
3614
3614
|
{
|
|
@@ -3631,11 +3631,11 @@ function SwappedIframeStep({
|
|
|
3631
3631
|
retryToken
|
|
3632
3632
|
)
|
|
3633
3633
|
] }) }),
|
|
3634
|
-
loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3634
|
+
loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
3635
3635
|
] });
|
|
3636
3636
|
}
|
|
3637
3637
|
function deriveStepStates(swappedStatus, latestEvent) {
|
|
3638
|
-
if (
|
|
3638
|
+
if (_chunkRLGIGVQVcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
|
|
3639
3639
|
return ["complete", "complete", "failed", "pending"];
|
|
3640
3640
|
}
|
|
3641
3641
|
if (swappedStatus === "order_cancelled") {
|
|
@@ -3825,7 +3825,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
|
|
|
3825
3825
|
function ExchangeLogo({ exchange }) {
|
|
3826
3826
|
const [failed, setFailed] = _react.useState.call(void 0, false);
|
|
3827
3827
|
if (!exchange.logoUrl || failed) {
|
|
3828
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3828
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BankIcon, {});
|
|
3829
3829
|
}
|
|
3830
3830
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3831
3831
|
"img",
|
|
@@ -3906,14 +3906,14 @@ function ExchangeSelectStep({
|
|
|
3906
3906
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
|
|
3907
3907
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
3908
3908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3909
|
-
|
|
3909
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
3910
3910
|
{
|
|
3911
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3911
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.UnplugIcon, {}),
|
|
3912
3912
|
title: "Connect exchange",
|
|
3913
3913
|
subtitle: "Select an exchange to connect"
|
|
3914
3914
|
}
|
|
3915
3915
|
),
|
|
3916
|
-
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3916
|
+
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, {}) }),
|
|
3917
3917
|
!loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
|
|
3918
3918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
|
|
3919
3919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3939,7 +3939,7 @@ function ExchangeSelectStep({
|
|
|
3939
3939
|
)
|
|
3940
3940
|
] }),
|
|
3941
3941
|
!loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
|
|
3942
|
-
const brand =
|
|
3942
|
+
const brand = _chunkRLGIGVQVcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
|
|
3943
3943
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3944
3944
|
"button",
|
|
3945
3945
|
{
|
|
@@ -3964,7 +3964,7 @@ function ExchangeSelectStep({
|
|
|
3964
3964
|
);
|
|
3965
3965
|
}) })
|
|
3966
3966
|
] }),
|
|
3967
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3967
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {}),
|
|
3968
3968
|
exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
|
|
3969
3969
|
"A ",
|
|
3970
3970
|
formatFeeRate(exchangeFeeBps),
|
|
@@ -4002,7 +4002,7 @@ function SolanaTokenSelectStep({
|
|
|
4002
4002
|
setError(null);
|
|
4003
4003
|
const portfolioBySymbol = {};
|
|
4004
4004
|
try {
|
|
4005
|
-
|
|
4005
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
|
|
4006
4006
|
solanaAddress
|
|
4007
4007
|
});
|
|
4008
4008
|
const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
|
|
@@ -4025,12 +4025,12 @@ function SolanaTokenSelectStep({
|
|
|
4025
4025
|
};
|
|
4026
4026
|
}
|
|
4027
4027
|
}
|
|
4028
|
-
|
|
4028
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
|
|
4029
4029
|
symbols: Object.keys(portfolioBySymbol)
|
|
4030
4030
|
});
|
|
4031
4031
|
} catch (err) {
|
|
4032
4032
|
if (!active) return;
|
|
4033
|
-
|
|
4033
|
+
_chunkDYZHRL5Gcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
|
|
4034
4034
|
solanaAddress
|
|
4035
4035
|
});
|
|
4036
4036
|
setError(
|
|
@@ -4077,7 +4077,7 @@ function SolanaTokenSelectStep({
|
|
|
4077
4077
|
const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
|
|
4078
4078
|
const numeric = Number(raw);
|
|
4079
4079
|
if (!Number.isFinite(numeric)) return raw;
|
|
4080
|
-
return
|
|
4080
|
+
return _chunkDYZHRL5Gcjs.tokenFormatter.format(numeric);
|
|
4081
4081
|
} catch (e26) {
|
|
4082
4082
|
return "--";
|
|
4083
4083
|
}
|
|
@@ -4087,20 +4087,20 @@ function SolanaTokenSelectStep({
|
|
|
4087
4087
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4088
4088
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
4089
4089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4090
|
-
|
|
4090
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
4091
4091
|
{
|
|
4092
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4092
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}),
|
|
4093
4093
|
title: "Your assets",
|
|
4094
4094
|
subtitle: "Select source assets to transfer"
|
|
4095
4095
|
}
|
|
4096
4096
|
),
|
|
4097
4097
|
loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
|
|
4098
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4098
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, { className: "rs-text-tertiary" }),
|
|
4099
4099
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
|
|
4100
4100
|
] }),
|
|
4101
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4101
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
4102
4102
|
!loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
|
|
4103
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, { className: "rs-empty-icon" }),
|
|
4104
4104
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
|
|
4105
4105
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
|
|
4106
4106
|
solanaAddress.slice(0, 6),
|
|
@@ -4131,13 +4131,13 @@ function SolanaTokenSelectStep({
|
|
|
4131
4131
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
|
|
4132
4132
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
|
|
4133
4133
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4134
|
-
|
|
4134
|
+
_chunkDYZHRL5Gcjs.TokenIcon,
|
|
4135
4135
|
{
|
|
4136
4136
|
symbol: entry.token.symbol,
|
|
4137
4137
|
fallback: entry.token.symbol.slice(0, 4)
|
|
4138
4138
|
}
|
|
4139
4139
|
) }),
|
|
4140
|
-
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4140
|
+
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
|
|
4141
4141
|
] }),
|
|
4142
4142
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
|
|
4143
4143
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
|
|
@@ -4154,14 +4154,14 @@ function SolanaTokenSelectStep({
|
|
|
4154
4154
|
] })
|
|
4155
4155
|
] })
|
|
4156
4156
|
] }),
|
|
4157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ?
|
|
4157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkDYZHRL5Gcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
|
|
4158
4158
|
]
|
|
4159
4159
|
},
|
|
4160
4160
|
entry.token.symbol
|
|
4161
4161
|
);
|
|
4162
4162
|
}) }),
|
|
4163
4163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4164
|
-
|
|
4164
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
4165
4165
|
{
|
|
4166
4166
|
onClick: () => selectedEntry && onContinue(
|
|
4167
4167
|
selectedEntry.token,
|
|
@@ -4174,7 +4174,7 @@ function SolanaTokenSelectStep({
|
|
|
4174
4174
|
}
|
|
4175
4175
|
)
|
|
4176
4176
|
] }),
|
|
4177
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4177
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
4178
4178
|
] });
|
|
4179
4179
|
}
|
|
4180
4180
|
|
|
@@ -4226,7 +4226,7 @@ function SolanaAmountStep({
|
|
|
4226
4226
|
const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
|
|
4227
4227
|
const numeric = Number(raw);
|
|
4228
4228
|
if (!Number.isFinite(numeric)) return raw;
|
|
4229
|
-
return
|
|
4229
|
+
return _chunkDYZHRL5Gcjs.tokenFormatter.format(numeric);
|
|
4230
4230
|
} catch (e28) {
|
|
4231
4231
|
return "\u2026";
|
|
4232
4232
|
}
|
|
@@ -4319,7 +4319,7 @@ function SolanaAmountStep({
|
|
|
4319
4319
|
const handlePresetClick = (percentage) => {
|
|
4320
4320
|
const formatted = computePresetAmount(percentage);
|
|
4321
4321
|
if (!formatted) return;
|
|
4322
|
-
|
|
4322
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
|
|
4323
4323
|
percentage,
|
|
4324
4324
|
symbol: token.symbol,
|
|
4325
4325
|
formatted
|
|
@@ -4354,7 +4354,7 @@ function SolanaAmountStep({
|
|
|
4354
4354
|
try {
|
|
4355
4355
|
amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
|
|
4356
4356
|
} catch (e33) {
|
|
4357
|
-
|
|
4357
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
|
|
4358
4358
|
amount,
|
|
4359
4359
|
sourceAmount: sourceAmountStr,
|
|
4360
4360
|
reason: "parse-units-failed"
|
|
@@ -4369,7 +4369,7 @@ function SolanaAmountStep({
|
|
|
4369
4369
|
);
|
|
4370
4370
|
return;
|
|
4371
4371
|
}
|
|
4372
|
-
|
|
4372
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
|
|
4373
4373
|
symbol: token.symbol,
|
|
4374
4374
|
inputAmountUsd: amount,
|
|
4375
4375
|
sourceAmount: sourceAmountStr,
|
|
@@ -4382,7 +4382,7 @@ function SolanaAmountStep({
|
|
|
4382
4382
|
const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
|
|
4383
4383
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4384
4384
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4385
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}), title: "Wallet deposit" }),
|
|
4386
4386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
|
|
4387
4387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
|
|
4388
4388
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4402,13 +4402,13 @@ function SolanaAmountStep({
|
|
|
4402
4402
|
" available",
|
|
4403
4403
|
computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4404
4404
|
" (~",
|
|
4405
|
-
|
|
4405
|
+
_chunkDYZHRL5Gcjs.currencyFormatter.format(computedBalanceUsd),
|
|
4406
4406
|
")"
|
|
4407
4407
|
] })
|
|
4408
4408
|
] }),
|
|
4409
4409
|
minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
|
|
4410
4410
|
"Min. deposit ",
|
|
4411
|
-
|
|
4411
|
+
_chunkDYZHRL5Gcjs.currencyFormatter.format(minDepositUsd)
|
|
4412
4412
|
] })
|
|
4413
4413
|
] })
|
|
4414
4414
|
] }),
|
|
@@ -4431,7 +4431,7 @@ function SolanaAmountStep({
|
|
|
4431
4431
|
"Solana ",
|
|
4432
4432
|
token.symbol
|
|
4433
4433
|
] }),
|
|
4434
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4434
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: token.symbol }) })
|
|
4435
4435
|
] })
|
|
4436
4436
|
] }),
|
|
4437
4437
|
targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
@@ -4442,17 +4442,17 @@ function SolanaAmountStep({
|
|
|
4442
4442
|
" ",
|
|
4443
4443
|
targetTokenSymbol
|
|
4444
4444
|
] }),
|
|
4445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: targetTokenSymbol }) })
|
|
4446
4446
|
] })
|
|
4447
4447
|
] }),
|
|
4448
4448
|
balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
4449
4449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
|
|
4450
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children:
|
|
4450
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDYZHRL5Gcjs.currencyFormatter.format(balanceAfterUsd) })
|
|
4451
4451
|
] })
|
|
4452
4452
|
] }),
|
|
4453
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4453
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
4454
4454
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4455
|
-
|
|
4455
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
4456
4456
|
{
|
|
4457
4457
|
onClick: handleContinue,
|
|
4458
4458
|
fullWidth: true,
|
|
@@ -4461,7 +4461,7 @@ function SolanaAmountStep({
|
|
|
4461
4461
|
}
|
|
4462
4462
|
)
|
|
4463
4463
|
] }),
|
|
4464
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4464
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
4465
4465
|
] });
|
|
4466
4466
|
}
|
|
4467
4467
|
|
|
@@ -4484,10 +4484,10 @@ var _spltoken = require('@solana/spl-token');
|
|
|
4484
4484
|
var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
|
|
4485
4485
|
var cachedConnections = /* @__PURE__ */ new Map();
|
|
4486
4486
|
function getSolanaRpcUrl(rpcUrls) {
|
|
4487
|
-
return _nullishCoalesce(
|
|
4487
|
+
return _nullishCoalesce(_chunkDYZHRL5Gcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
|
|
4488
4488
|
}
|
|
4489
4489
|
function hasConfiguredSolanaRpcUrl(rpcUrls) {
|
|
4490
|
-
return
|
|
4490
|
+
return _chunkDYZHRL5Gcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
|
|
4491
4491
|
}
|
|
4492
4492
|
function getSolanaConnection(rpcUrls) {
|
|
4493
4493
|
const rpcUrl = getSolanaRpcUrl(rpcUrls);
|
|
@@ -4589,7 +4589,7 @@ function SolanaConfirmStep({
|
|
|
4589
4589
|
onError,
|
|
4590
4590
|
debug
|
|
4591
4591
|
}) {
|
|
4592
|
-
const rpcUrls =
|
|
4592
|
+
const rpcUrls = _chunkDYZHRL5Gcjs.useRpcUrls.call(void 0, );
|
|
4593
4593
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
4594
4594
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
4595
4595
|
const targetChainId = _chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain);
|
|
@@ -4600,26 +4600,26 @@ function SolanaConfirmStep({
|
|
|
4600
4600
|
const targetChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId);
|
|
4601
4601
|
const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _185 => _185.feeSponsored]), () => ( false));
|
|
4602
4602
|
const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _186 => _186.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
|
|
4603
|
-
const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(
|
|
4603
|
+
const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkDYZHRL5Gcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
|
|
4604
4604
|
const receiveDisplay = (() => {
|
|
4605
4605
|
const usdValue = Number(targetAmount);
|
|
4606
4606
|
const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
|
|
4607
|
-
const estimate =
|
|
4607
|
+
const estimate = _chunkDYZHRL5Gcjs.formatReceiveEstimate.call(void 0, {
|
|
4608
4608
|
sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
|
|
4609
4609
|
sourceSymbol: token.symbol,
|
|
4610
4610
|
targetSymbol,
|
|
4611
4611
|
sourceAmountUsd,
|
|
4612
|
-
sourceTrusted:
|
|
4612
|
+
sourceTrusted: _chunkDYZHRL5Gcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
|
|
4613
4613
|
// Curated stablecoin target estimates at $1 when unquoted; never applied
|
|
4614
4614
|
// to the source (a held token). See ConfirmStep for the rationale.
|
|
4615
|
-
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } :
|
|
4615
|
+
prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDYZHRL5Gcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
|
|
4616
4616
|
});
|
|
4617
4617
|
if (estimate !== void 0) return estimate;
|
|
4618
4618
|
return targetSymbol;
|
|
4619
4619
|
})();
|
|
4620
4620
|
const handleConfirm = async () => {
|
|
4621
4621
|
if (!solanaProvider) {
|
|
4622
|
-
|
|
4622
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
|
|
4623
4623
|
reason: "missing-provider"
|
|
4624
4624
|
});
|
|
4625
4625
|
setError("Solana wallet not connected");
|
|
@@ -4627,7 +4627,7 @@ function SolanaConfirmStep({
|
|
|
4627
4627
|
}
|
|
4628
4628
|
const parsedAmount = parseFloat(sourceAmount);
|
|
4629
4629
|
if (isNaN(parsedAmount) || parsedAmount <= 0) {
|
|
4630
|
-
|
|
4630
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
|
|
4631
4631
|
reason: "invalid-amount",
|
|
4632
4632
|
sourceAmount
|
|
4633
4633
|
});
|
|
@@ -4636,7 +4636,7 @@ function SolanaConfirmStep({
|
|
|
4636
4636
|
}
|
|
4637
4637
|
setError(null);
|
|
4638
4638
|
setIsSubmitting(true);
|
|
4639
|
-
|
|
4639
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
|
|
4640
4640
|
smartAccount,
|
|
4641
4641
|
solanaAddress,
|
|
4642
4642
|
solanaDepositAddress,
|
|
@@ -4646,7 +4646,7 @@ function SolanaConfirmStep({
|
|
|
4646
4646
|
});
|
|
4647
4647
|
try {
|
|
4648
4648
|
const check = await service.checkAccount(smartAccount);
|
|
4649
|
-
|
|
4649
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
|
|
4650
4650
|
smartAccount,
|
|
4651
4651
|
isRegistered: check.isRegistered,
|
|
4652
4652
|
targetChain: check.targetChain,
|
|
@@ -4659,7 +4659,7 @@ function SolanaConfirmStep({
|
|
|
4659
4659
|
}
|
|
4660
4660
|
const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
|
|
4661
4661
|
const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
|
|
4662
|
-
|
|
4662
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
|
|
4663
4663
|
token: token.symbol,
|
|
4664
4664
|
sourceAmount,
|
|
4665
4665
|
amountUnits: amountUnits.toString()
|
|
@@ -4676,7 +4676,7 @@ function SolanaConfirmStep({
|
|
|
4676
4676
|
token.mint,
|
|
4677
4677
|
amountUnits
|
|
4678
4678
|
);
|
|
4679
|
-
|
|
4679
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
|
|
4680
4680
|
token: token.symbol,
|
|
4681
4681
|
instructionCount: transaction.instructions.length,
|
|
4682
4682
|
feePayer: _optionalChain([transaction, 'access', _187 => _187.feePayer, 'optionalAccess', _188 => _188.toBase58, 'call', _189 => _189()]),
|
|
@@ -4687,7 +4687,7 @@ function SolanaConfirmStep({
|
|
|
4687
4687
|
connection,
|
|
4688
4688
|
transaction
|
|
4689
4689
|
);
|
|
4690
|
-
|
|
4690
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
|
|
4691
4691
|
txHash,
|
|
4692
4692
|
amountUnits: amountUnits.toString()
|
|
4693
4693
|
});
|
|
@@ -4699,8 +4699,8 @@ function SolanaConfirmStep({
|
|
|
4699
4699
|
});
|
|
4700
4700
|
} catch (err) {
|
|
4701
4701
|
const raw = err instanceof Error ? err.message : "Transfer failed";
|
|
4702
|
-
const message =
|
|
4703
|
-
|
|
4702
|
+
const message = _chunkDYZHRL5Gcjs.formatUserError.call(void 0, raw);
|
|
4703
|
+
_chunkDYZHRL5Gcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
|
|
4704
4704
|
smartAccount,
|
|
4705
4705
|
token: token.symbol,
|
|
4706
4706
|
sourceAmount
|
|
@@ -4713,7 +4713,7 @@ function SolanaConfirmStep({
|
|
|
4713
4713
|
};
|
|
4714
4714
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4715
4715
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4716
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4716
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}), title: "Review deposit" }),
|
|
4717
4717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4718
4718
|
ReviewDetails,
|
|
4719
4719
|
{
|
|
@@ -4729,9 +4729,9 @@ function SolanaConfirmStep({
|
|
|
4729
4729
|
fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
|
|
4730
4730
|
}
|
|
4731
4731
|
),
|
|
4732
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4732
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
4733
4733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4734
|
-
|
|
4734
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
4735
4735
|
{
|
|
4736
4736
|
onClick: handleConfirm,
|
|
4737
4737
|
loading: isSubmitting,
|
|
@@ -4742,7 +4742,7 @@ function SolanaConfirmStep({
|
|
|
4742
4742
|
}
|
|
4743
4743
|
)
|
|
4744
4744
|
] }),
|
|
4745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
4746
4746
|
] });
|
|
4747
4747
|
}
|
|
4748
4748
|
|
|
@@ -4757,19 +4757,19 @@ function DappImportAssetSelectStep({
|
|
|
4757
4757
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4758
4758
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4759
4759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4760
|
-
|
|
4760
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
4761
4761
|
{
|
|
4762
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4762
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}),
|
|
4763
4763
|
title: `Transfer from ${sourceLabel}`,
|
|
4764
4764
|
subtitle: "Pick the balance to import"
|
|
4765
4765
|
}
|
|
4766
4766
|
),
|
|
4767
4767
|
incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
|
|
4768
4768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
|
|
4769
|
-
const tokenAmount = asset.balance ?
|
|
4769
|
+
const tokenAmount = asset.balance ? _chunkDYZHRL5Gcjs.tokenFormatter.format(
|
|
4770
4770
|
Number(asset.balance) / 10 ** asset.decimals
|
|
4771
4771
|
) : "0";
|
|
4772
|
-
const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ?
|
|
4772
|
+
const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkDYZHRL5Gcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
|
|
4773
4773
|
const assetIcon = asset.icon;
|
|
4774
4774
|
const chainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
|
|
4775
4775
|
const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, asset.chainId);
|
|
@@ -4782,14 +4782,14 @@ function DappImportAssetSelectStep({
|
|
|
4782
4782
|
children: [
|
|
4783
4783
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
|
|
4784
4784
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
|
|
4785
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4786
|
-
|
|
4785
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4786
|
+
_chunkDYZHRL5Gcjs.TokenIcon,
|
|
4787
4787
|
{
|
|
4788
4788
|
symbol: asset.symbol,
|
|
4789
4789
|
fallback: asset.symbol.slice(0, 4)
|
|
4790
4790
|
}
|
|
4791
4791
|
) }),
|
|
4792
|
-
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4792
|
+
chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: chainIcon, alt: _chunk4KCSH4T3cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4793
4793
|
"span",
|
|
4794
4794
|
{
|
|
4795
4795
|
className: "rs-asset-chain-badge",
|
|
@@ -4821,7 +4821,7 @@ function DappImportAssetSelectStep({
|
|
|
4821
4821
|
);
|
|
4822
4822
|
}) })
|
|
4823
4823
|
] }),
|
|
4824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4824
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
4825
4825
|
] });
|
|
4826
4826
|
}
|
|
4827
4827
|
DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
|
|
@@ -4843,7 +4843,7 @@ function describeRow(status, comingSoon) {
|
|
|
4843
4843
|
}
|
|
4844
4844
|
if (status.enabled) {
|
|
4845
4845
|
return {
|
|
4846
|
-
subtitle: status.balanceUsd > 0 ?
|
|
4846
|
+
subtitle: status.balanceUsd > 0 ? _chunkDYZHRL5Gcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
|
|
4847
4847
|
disabled: false,
|
|
4848
4848
|
busy: false
|
|
4849
4849
|
};
|
|
@@ -4866,9 +4866,9 @@ function DappImportSelectStep({
|
|
|
4866
4866
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
4867
4867
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4868
4868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4869
|
-
|
|
4869
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
4870
4870
|
{
|
|
4871
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4871
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.MigrateAssetsIcon, {}),
|
|
4872
4872
|
title: "Migrate assets",
|
|
4873
4873
|
subtitle: "Select a position to migrate"
|
|
4874
4874
|
}
|
|
@@ -4880,13 +4880,13 @@ function DappImportSelectStep({
|
|
|
4880
4880
|
Boolean(brand.comingSoon)
|
|
4881
4881
|
);
|
|
4882
4882
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4883
|
-
|
|
4883
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
4884
4884
|
{
|
|
4885
4885
|
leadingMedia: brand.iconUrl,
|
|
4886
4886
|
title: brand.label,
|
|
4887
4887
|
subtitle,
|
|
4888
4888
|
disabled,
|
|
4889
|
-
trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4889
|
+
trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
|
|
4890
4890
|
onClick: () => {
|
|
4891
4891
|
if (status === "needs-connect") {
|
|
4892
4892
|
_optionalChain([onRequestConnect, 'optionalCall', _191 => _191()]);
|
|
@@ -4899,7 +4899,7 @@ function DappImportSelectStep({
|
|
|
4899
4899
|
);
|
|
4900
4900
|
}) })
|
|
4901
4901
|
] }),
|
|
4902
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4902
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
4903
4903
|
] });
|
|
4904
4904
|
}
|
|
4905
4905
|
DappImportSelectStep.displayName = "DappImportSelectStep";
|
|
@@ -4916,9 +4916,9 @@ function DappImportAssetSelectSkeleton({
|
|
|
4916
4916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
|
|
4917
4917
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
4918
4918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4919
|
-
|
|
4919
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
4920
4920
|
{
|
|
4921
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4921
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.WalletIcon, {}),
|
|
4922
4922
|
title: `Transfer from ${sourceLabel}`,
|
|
4923
4923
|
subtitle: "Pick the balance to import"
|
|
4924
4924
|
}
|
|
@@ -4956,7 +4956,7 @@ function DappImportAssetSelectSkeleton({
|
|
|
4956
4956
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
|
|
4957
4957
|
}
|
|
4958
4958
|
) }),
|
|
4959
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
4960
4960
|
] });
|
|
4961
4961
|
}
|
|
4962
4962
|
DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
|
|
@@ -6860,11 +6860,11 @@ function DepositFlow({
|
|
|
6860
6860
|
onError,
|
|
6861
6861
|
debug
|
|
6862
6862
|
}) {
|
|
6863
|
-
const rpcUrls =
|
|
6864
|
-
const onStepChangeRef =
|
|
6865
|
-
const onEventRef =
|
|
6866
|
-
const onLifecycleRef =
|
|
6867
|
-
const onErrorRef =
|
|
6863
|
+
const rpcUrls = _chunkDYZHRL5Gcjs.useRpcUrls.call(void 0, );
|
|
6864
|
+
const onStepChangeRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onStepChange);
|
|
6865
|
+
const onEventRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onEvent);
|
|
6866
|
+
const onLifecycleRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onLifecycle);
|
|
6867
|
+
const onErrorRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onError);
|
|
6868
6868
|
const storeApi = useDepositStoreApi();
|
|
6869
6869
|
const flowSlice = useDepositStore((s) => s.flow);
|
|
6870
6870
|
const depositSlice = useDepositStore((s) => s.deposit);
|
|
@@ -6881,13 +6881,13 @@ function DepositFlow({
|
|
|
6881
6881
|
const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
|
|
6882
6882
|
const logFlow = _react.useCallback.call(void 0,
|
|
6883
6883
|
(message, data) => {
|
|
6884
|
-
|
|
6884
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
|
|
6885
6885
|
},
|
|
6886
6886
|
[debug]
|
|
6887
6887
|
);
|
|
6888
6888
|
const logFlowError = _react.useCallback.call(void 0,
|
|
6889
6889
|
(message, error, data) => {
|
|
6890
|
-
|
|
6890
|
+
_chunkDYZHRL5Gcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
|
|
6891
6891
|
},
|
|
6892
6892
|
[debug]
|
|
6893
6893
|
);
|
|
@@ -7019,7 +7019,7 @@ function DepositFlow({
|
|
|
7019
7019
|
return;
|
|
7020
7020
|
}
|
|
7021
7021
|
let cancelled = false;
|
|
7022
|
-
|
|
7022
|
+
_chunkRLGIGVQVcjs.fetchTokenPriceUsd.call(void 0, service, {
|
|
7023
7023
|
chainId: targetChainId,
|
|
7024
7024
|
address: targetToken,
|
|
7025
7025
|
symbol: targetSymbol
|
|
@@ -7040,7 +7040,7 @@ function DepositFlow({
|
|
|
7040
7040
|
return {
|
|
7041
7041
|
ownerAddress: walletClientProp.account.address,
|
|
7042
7042
|
walletClient: walletClientProp,
|
|
7043
|
-
publicClient: _nullishCoalesce(publicClientProp, () => (
|
|
7043
|
+
publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkDYZHRL5Gcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
|
|
7044
7044
|
switchChain: dappSwitchChain
|
|
7045
7045
|
};
|
|
7046
7046
|
}
|
|
@@ -7057,7 +7057,7 @@ function DepositFlow({
|
|
|
7057
7057
|
return {
|
|
7058
7058
|
ownerAddress: walletClientProp.account.address,
|
|
7059
7059
|
walletClient: walletClientProp,
|
|
7060
|
-
publicClient: _nullishCoalesce(publicClientProp, () => (
|
|
7060
|
+
publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkDYZHRL5Gcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
|
|
7061
7061
|
switchChain: dappSwitchChain
|
|
7062
7062
|
};
|
|
7063
7063
|
}
|
|
@@ -7065,7 +7065,7 @@ function DepositFlow({
|
|
|
7065
7065
|
return {
|
|
7066
7066
|
ownerAddress: walletSession.address,
|
|
7067
7067
|
walletClient: walletSession.walletClient,
|
|
7068
|
-
publicClient: _nullishCoalesce(walletSession.publicClient, () => (
|
|
7068
|
+
publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkDYZHRL5Gcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
|
|
7069
7069
|
switchChain: walletSession.switchChain
|
|
7070
7070
|
};
|
|
7071
7071
|
}
|
|
@@ -7245,7 +7245,7 @@ function DepositFlow({
|
|
|
7245
7245
|
setQrSourcePrice({ resolved: false, usd: null });
|
|
7246
7246
|
if (!qrSourceAsset) return;
|
|
7247
7247
|
let cancelled = false;
|
|
7248
|
-
|
|
7248
|
+
_chunkRLGIGVQVcjs.fetchTokenPriceUsd.call(void 0, service, {
|
|
7249
7249
|
chainId: qrSourceAsset.chainId,
|
|
7250
7250
|
address: qrSourceAsset.token,
|
|
7251
7251
|
symbol: qrSourceAsset.symbol
|
|
@@ -7452,7 +7452,7 @@ function DepositFlow({
|
|
|
7452
7452
|
eoa: dappImportOwner,
|
|
7453
7453
|
getPublicClient: (chainId) => {
|
|
7454
7454
|
try {
|
|
7455
|
-
return
|
|
7455
|
+
return _chunkDYZHRL5Gcjs.getPublicClient.call(void 0, chainId, rpcUrls);
|
|
7456
7456
|
} catch (e37) {
|
|
7457
7457
|
return null;
|
|
7458
7458
|
}
|
|
@@ -7677,7 +7677,7 @@ function DepositFlow({
|
|
|
7677
7677
|
acceptedExchangeFeeBps: disclosedFeeBps
|
|
7678
7678
|
});
|
|
7679
7679
|
} catch (error) {
|
|
7680
|
-
if (error instanceof
|
|
7680
|
+
if (error instanceof _chunkDYZHRL5Gcjs.SwappedConnectFeeChangedError) {
|
|
7681
7681
|
return error.exchangeFeeBps;
|
|
7682
7682
|
}
|
|
7683
7683
|
throw error;
|
|
@@ -7928,17 +7928,17 @@ function DepositFlow({
|
|
|
7928
7928
|
forceRegister
|
|
7929
7929
|
]
|
|
7930
7930
|
);
|
|
7931
|
-
const desiredSetupRequestKey =
|
|
7931
|
+
const desiredSetupRequestKey = _chunkRLGIGVQVcjs.computeRequestKey.call(void 0, setupInput);
|
|
7932
7932
|
const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
|
|
7933
7933
|
_react.useEffect.call(void 0, () => {
|
|
7934
7934
|
void (async () => {
|
|
7935
|
-
const requestKey =
|
|
7936
|
-
const cacheKey =
|
|
7937
|
-
const cacheable =
|
|
7935
|
+
const requestKey = _chunkRLGIGVQVcjs.computeRequestKey.call(void 0, setupInput);
|
|
7936
|
+
const cacheKey = _chunkRLGIGVQVcjs.computeCacheKey.call(void 0, setupInput);
|
|
7937
|
+
const cacheable = _chunkRLGIGVQVcjs.computeIsCacheable.call(void 0, setupInput);
|
|
7938
7938
|
if (storeApi.getState().setup.requestKey === requestKey) {
|
|
7939
7939
|
return;
|
|
7940
7940
|
}
|
|
7941
|
-
const dedupedResult =
|
|
7941
|
+
const dedupedResult = _chunkRLGIGVQVcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
|
|
7942
7942
|
if (dedupedResult) {
|
|
7943
7943
|
storeApi.dispatch({
|
|
7944
7944
|
type: "setup/started",
|
|
@@ -7964,7 +7964,7 @@ function DepositFlow({
|
|
|
7964
7964
|
cacheable
|
|
7965
7965
|
});
|
|
7966
7966
|
try {
|
|
7967
|
-
const result = await
|
|
7967
|
+
const result = await _chunkRLGIGVQVcjs.runAccountSetupDeduped.call(void 0,
|
|
7968
7968
|
setupInput,
|
|
7969
7969
|
{ service, debug },
|
|
7970
7970
|
requestKey
|
|
@@ -7979,7 +7979,7 @@ function DepositFlow({
|
|
|
7979
7979
|
}
|
|
7980
7980
|
});
|
|
7981
7981
|
} catch (error) {
|
|
7982
|
-
const message = error instanceof
|
|
7982
|
+
const message = error instanceof _chunkRLGIGVQVcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
|
|
7983
7983
|
storeApi.dispatch({
|
|
7984
7984
|
type: "setup/failed",
|
|
7985
7985
|
requestKey,
|
|
@@ -8028,7 +8028,7 @@ function DepositFlow({
|
|
|
8028
8028
|
address,
|
|
8029
8029
|
requestId,
|
|
8030
8030
|
totalUsd: portfolio.totalUsd,
|
|
8031
|
-
chainIds:
|
|
8031
|
+
chainIds: _chunkDYZHRL5Gcjs.chainIdsByValue.call(void 0, portfolio.tokens)
|
|
8032
8032
|
});
|
|
8033
8033
|
} catch (e38) {
|
|
8034
8034
|
storeApi.dispatch({
|
|
@@ -8522,7 +8522,7 @@ function DepositFlow({
|
|
|
8522
8522
|
}
|
|
8523
8523
|
),
|
|
8524
8524
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8525
|
-
|
|
8525
|
+
_chunkRLGIGVQVcjs.ProcessingStep,
|
|
8526
8526
|
{
|
|
8527
8527
|
smartAccount: step.smartAccount,
|
|
8528
8528
|
solanaDepositAddress: step.solanaDepositAddress,
|
|
@@ -8595,7 +8595,7 @@ function DepositFlow({
|
|
|
8595
8595
|
}
|
|
8596
8596
|
),
|
|
8597
8597
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8598
|
-
|
|
8598
|
+
_chunkRLGIGVQVcjs.ProcessingStep,
|
|
8599
8599
|
{
|
|
8600
8600
|
smartAccount: step.smartAccount,
|
|
8601
8601
|
solanaDepositAddress: step.solanaDepositAddress,
|
|
@@ -8725,7 +8725,7 @@ function DepositFlow({
|
|
|
8725
8725
|
) })
|
|
8726
8726
|
] }) : null,
|
|
8727
8727
|
effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8728
|
-
|
|
8728
|
+
_chunkRLGIGVQVcjs.ProcessingStep,
|
|
8729
8729
|
{
|
|
8730
8730
|
smartAccount: effectiveStep.smartAccount,
|
|
8731
8731
|
solanaDepositAddress: effectiveStep.solanaDepositAddress,
|
|
@@ -8813,7 +8813,7 @@ function DepositFlow({
|
|
|
8813
8813
|
if (_optionalChain([signerContext, 'access', _311 => _311.publicClient, 'access', _312 => _312.chain, 'optionalAccess', _313 => _313.id]) === chainId) {
|
|
8814
8814
|
return signerContext.publicClient;
|
|
8815
8815
|
}
|
|
8816
|
-
return
|
|
8816
|
+
return _chunkDYZHRL5Gcjs.getPublicClient.call(void 0, chainId, rpcUrls);
|
|
8817
8817
|
};
|
|
8818
8818
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
8819
8819
|
effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8926,7 +8926,7 @@ function DepositFlow({
|
|
|
8926
8926
|
}
|
|
8927
8927
|
),
|
|
8928
8928
|
effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8929
|
-
|
|
8929
|
+
_chunkRLGIGVQVcjs.ProcessingStep,
|
|
8930
8930
|
{
|
|
8931
8931
|
smartAccount: effectiveStep.smartAccount,
|
|
8932
8932
|
solanaDepositAddress: effectiveStep.solanaDepositAddress,
|
|
@@ -9099,7 +9099,7 @@ function DepositHistoryPanel({
|
|
|
9099
9099
|
className: "rs-modal-header-back",
|
|
9100
9100
|
"aria-label": "Back",
|
|
9101
9101
|
onClick: onClose,
|
|
9102
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9102
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronLeftIcon, {})
|
|
9103
9103
|
}
|
|
9104
9104
|
) }),
|
|
9105
9105
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9109,29 +9109,29 @@ function DepositHistoryPanel({
|
|
|
9109
9109
|
className: "rs-modal-close",
|
|
9110
9110
|
"aria-label": "Close",
|
|
9111
9111
|
onClick: onCloseModal,
|
|
9112
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9112
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CloseIcon, {})
|
|
9113
9113
|
}
|
|
9114
9114
|
) })
|
|
9115
9115
|
] }),
|
|
9116
9116
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
|
|
9117
9117
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
|
|
9118
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HistoryIcon, {}), title: "History" }),
|
|
9119
9119
|
isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
|
|
9120
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HistoryIcon, {}) }),
|
|
9121
9121
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
|
|
9122
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Spinner, { className: "rs-spinner--sm" }),
|
|
9123
9123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
|
|
9124
9124
|
] })
|
|
9125
9125
|
] }),
|
|
9126
9126
|
error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
|
|
9127
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9127
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.AlertTriangleIcon, {}) }),
|
|
9128
9128
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
|
|
9129
9129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
|
|
9130
9130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
|
|
9131
9131
|
] })
|
|
9132
9132
|
] }),
|
|
9133
9133
|
!isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
|
|
9134
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9134
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HistoryIcon, {}) }),
|
|
9135
9135
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
|
|
9136
9136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
|
|
9137
9137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
|
|
@@ -9151,14 +9151,14 @@ function DepositHistoryPanel({
|
|
|
9151
9151
|
)
|
|
9152
9152
|
] })
|
|
9153
9153
|
] }),
|
|
9154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9154
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
9155
9155
|
] })
|
|
9156
9156
|
]
|
|
9157
9157
|
}
|
|
9158
9158
|
);
|
|
9159
9159
|
}
|
|
9160
9160
|
function HistoryCard({ deposit }) {
|
|
9161
|
-
const explorerTxUrl =
|
|
9161
|
+
const explorerTxUrl = _chunkDYZHRL5Gcjs.useExplorerTxUrl.call(void 0, );
|
|
9162
9162
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
9163
9163
|
const status = normalizeStatus(deposit.status, deposit.isSpam);
|
|
9164
9164
|
const sourceChainId = resolveChainId(deposit.chain);
|
|
@@ -9188,8 +9188,8 @@ function HistoryCard({ deposit }) {
|
|
|
9188
9188
|
children: [
|
|
9189
9189
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
|
|
9190
9190
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
|
|
9191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9192
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9191
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
|
|
9192
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
9193
9193
|
] }),
|
|
9194
9194
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
|
|
9195
9195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: txTypeLabel }),
|
|
@@ -9205,14 +9205,14 @@ function HistoryCard({ deposit }) {
|
|
|
9205
9205
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
9206
9206
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
|
|
9207
9207
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
9208
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9208
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
9209
9209
|
] })
|
|
9210
9210
|
] }),
|
|
9211
9211
|
targetChainName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
9212
9212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
9213
9213
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
|
|
9214
9214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
9215
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9215
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: targetChainIcon }) })
|
|
9216
9216
|
] })
|
|
9217
9217
|
] }),
|
|
9218
9218
|
srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
|
|
@@ -9227,7 +9227,7 @@ function HistoryCard({ deposit }) {
|
|
|
9227
9227
|
onClick: (e) => e.stopPropagation(),
|
|
9228
9228
|
children: [
|
|
9229
9229
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
|
|
9230
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9230
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ArrowUpRightIcon, {})
|
|
9231
9231
|
]
|
|
9232
9232
|
}
|
|
9233
9233
|
)
|
|
@@ -9242,7 +9242,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
9242
9242
|
// src/DepositModal.tsx
|
|
9243
9243
|
|
|
9244
9244
|
var ReownDepositInner = _react.lazy.call(void 0,
|
|
9245
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-
|
|
9245
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-JJC37VCL.cjs"))).then((m) => ({ default: m.DepositModalReown }))
|
|
9246
9246
|
);
|
|
9247
9247
|
function sortByCreatedAtDesc(items) {
|
|
9248
9248
|
return [...items].sort((a, b) => {
|
|
@@ -9256,8 +9256,8 @@ function hasSuppliedWalletClient(props) {
|
|
|
9256
9256
|
return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
|
|
9257
9257
|
}
|
|
9258
9258
|
function DepositModal(props) {
|
|
9259
|
-
|
|
9260
|
-
|
|
9259
|
+
_chunkRLGIGVQVcjs.warnRemovedProps.call(void 0, "DepositModal", props);
|
|
9260
|
+
_chunkDYZHRL5Gcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
|
|
9261
9261
|
const needsReown = !!props.reownAppId;
|
|
9262
9262
|
const hasWalletClientProp = hasSuppliedWalletClient(props);
|
|
9263
9263
|
if (needsReown) {
|
|
@@ -9321,8 +9321,8 @@ function DepositModalInner({
|
|
|
9321
9321
|
debug
|
|
9322
9322
|
}) {
|
|
9323
9323
|
const modalRef = _react.useRef.call(void 0, null);
|
|
9324
|
-
const onReadyRef =
|
|
9325
|
-
const onUiStateRef =
|
|
9324
|
+
const onReadyRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onReady);
|
|
9325
|
+
const onUiStateRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onUiState);
|
|
9326
9326
|
const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
|
|
9327
9327
|
const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
|
|
9328
9328
|
const [submitting, setSubmitting] = _react.useState.call(void 0, false);
|
|
@@ -9341,9 +9341,9 @@ function DepositModalInner({
|
|
|
9341
9341
|
const historyLoadedRef = _react.useRef.call(void 0, false);
|
|
9342
9342
|
const targetChain = targetChainProp === "solana" || targetChainProp === _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2 ? targetChainProp : _chunk4KCSH4T3cjs.getChainId.call(void 0, targetChainProp);
|
|
9343
9343
|
const sourceChain = sourceChainProp ? _chunk4KCSH4T3cjs.getChainId.call(void 0, sourceChainProp) : void 0;
|
|
9344
|
-
const rpcUrls =
|
|
9344
|
+
const rpcUrls = _chunkDYZHRL5Gcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
9345
9345
|
const service = _react.useMemo.call(void 0,
|
|
9346
|
-
() =>
|
|
9346
|
+
() => _chunkDYZHRL5Gcjs.createDepositService.call(void 0, backendUrl, {
|
|
9347
9347
|
debug,
|
|
9348
9348
|
debugScope: "service:deposit"
|
|
9349
9349
|
}),
|
|
@@ -9377,7 +9377,7 @@ function DepositModalInner({
|
|
|
9377
9377
|
}, [store, targetChain, targetToken]);
|
|
9378
9378
|
_react.useEffect.call(void 0, () => {
|
|
9379
9379
|
if (isOpen && modalRef.current) {
|
|
9380
|
-
|
|
9380
|
+
_chunkDYZHRL5Gcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
9381
9381
|
}
|
|
9382
9382
|
}, [isOpen, theme]);
|
|
9383
9383
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9466,7 +9466,7 @@ function DepositModalInner({
|
|
|
9466
9466
|
fetchHistory("initial");
|
|
9467
9467
|
}
|
|
9468
9468
|
}, [historyOpen, fetchHistory]);
|
|
9469
|
-
const onLifecycleRef =
|
|
9469
|
+
const onLifecycleRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onLifecycle);
|
|
9470
9470
|
const handleLifecycle = _react.useCallback.call(void 0,
|
|
9471
9471
|
(event) => {
|
|
9472
9472
|
_optionalChain([onLifecycleRef, 'access', _327 => _327.current, 'optionalCall', _328 => _328(event)]);
|
|
@@ -9503,8 +9503,8 @@ function DepositModalInner({
|
|
|
9503
9503
|
const canGoBack = backHandler !== void 0;
|
|
9504
9504
|
const hideHeaderChrome = swappedImmersive;
|
|
9505
9505
|
const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
|
|
9506
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9507
|
-
|
|
9506
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9507
|
+
_chunkDYZHRL5Gcjs.Modal,
|
|
9508
9508
|
{
|
|
9509
9509
|
isOpen,
|
|
9510
9510
|
onClose,
|
|
@@ -9520,7 +9520,7 @@ function DepositModalInner({
|
|
|
9520
9520
|
className: "rs-modal-header-back",
|
|
9521
9521
|
"aria-label": "Go back",
|
|
9522
9522
|
onClick: backHandler,
|
|
9523
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9523
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronLeftIcon, {})
|
|
9524
9524
|
}
|
|
9525
9525
|
) }),
|
|
9526
9526
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
|
|
@@ -9532,7 +9532,7 @@ function DepositModalInner({
|
|
|
9532
9532
|
"aria-label": "Deposit history",
|
|
9533
9533
|
onClick: handleHistoryOpen,
|
|
9534
9534
|
disabled: !recipient,
|
|
9535
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9535
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HistoryIcon, {})
|
|
9536
9536
|
}
|
|
9537
9537
|
),
|
|
9538
9538
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9542,7 +9542,7 @@ function DepositModalInner({
|
|
|
9542
9542
|
onClick: onClose,
|
|
9543
9543
|
className: "rs-modal-close",
|
|
9544
9544
|
"aria-label": "Close",
|
|
9545
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9545
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CloseIcon, {})
|
|
9546
9546
|
}
|
|
9547
9547
|
)
|
|
9548
9548
|
] })
|