@rhinestone/deposit-modal 0.0.0-dev-20260727172000 → 0.0.0-dev-20260727175848

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.
Files changed (40) hide show
  1. package/README.md +2 -3
  2. package/dist/{DepositModalReown-2VJFCAUT.cjs → DepositModalReown-33D36CMP.cjs} +9 -9
  3. package/dist/{DepositModalReown-XIJUAOYR.mjs → DepositModalReown-U3YSVVNC.mjs} +5 -5
  4. package/dist/{chunk-H7TD7XE5.cjs → chunk-44HXNZSA.cjs} +55 -55
  5. package/dist/{chunk-62PQAA3X.mjs → chunk-CLR3HPCT.mjs} +1 -1
  6. package/dist/{chunk-7PLFGGXC.mjs → chunk-GDYWSTQK.mjs} +4 -4
  7. package/dist/{chunk-5S7WGG7V.mjs → chunk-IWAI6VZ2.mjs} +2 -3
  8. package/dist/{chunk-7RZPE5KV.cjs → chunk-LMBTPDLB.cjs} +1 -1
  9. package/dist/{chunk-ESWMFZEV.mjs → chunk-N5226HLL.mjs} +1 -1
  10. package/dist/{chunk-U2SADOVK.cjs → chunk-O4CZI63F.cjs} +52 -147
  11. package/dist/{chunk-4ALOTMS6.cjs → chunk-QRRL4SL5.cjs} +3 -4
  12. package/dist/{chunk-UI3JRDXX.mjs → chunk-R3XTKCJD.mjs} +2 -2
  13. package/dist/{chunk-PGBW524J.mjs → chunk-UD6JF6ME.mjs} +1 -1
  14. package/dist/{chunk-UIN4SMPX.cjs → chunk-UWRBNFZX.cjs} +60 -60
  15. package/dist/{chunk-ONPO2OFC.cjs → chunk-VDKPQKAE.cjs} +260 -260
  16. package/dist/{chunk-VZKUD5IN.mjs → chunk-VHKTHX3U.mjs} +2 -97
  17. package/dist/{chunk-UKS5VK74.cjs → chunk-YMV3HHPR.cjs} +3 -3
  18. package/dist/claim.cjs +5 -5
  19. package/dist/claim.d.cts +3 -3
  20. package/dist/claim.d.ts +3 -3
  21. package/dist/claim.mjs +4 -4
  22. package/dist/constants.cjs +2 -2
  23. package/dist/constants.d.cts +1 -1
  24. package/dist/constants.d.ts +1 -1
  25. package/dist/constants.mjs +1 -1
  26. package/dist/deposit.cjs +6 -6
  27. package/dist/deposit.d.cts +2 -2
  28. package/dist/deposit.d.ts +2 -2
  29. package/dist/deposit.mjs +5 -5
  30. package/dist/index.cjs +8 -8
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.mjs +7 -7
  34. package/dist/{types-Cuyhz25e.d.cts → types-vpysc9yQ.d.cts} +1 -4
  35. package/dist/{types-Cuyhz25e.d.ts → types-vpysc9yQ.d.ts} +1 -4
  36. package/dist/withdraw.cjs +5 -5
  37. package/dist/withdraw.d.cts +2 -2
  38. package/dist/withdraw.d.ts +2 -2
  39. package/dist/withdraw.mjs +4 -4
  40. package/package.json +2 -1
package/README.md CHANGED
@@ -98,7 +98,7 @@ The user picks the destination chain, token, recipient, and amount in the modal;
98
98
 
99
99
  ## Claim a failed deposit
100
100
 
101
- `ClaimModal` lets a user get a failed or rejected EVM deposit sent back to them on its source chain. They paste the deposit's transaction hash and name a destination — **no wallet connection is involved at any point**.
101
+ `ClaimModal` lets a user get a failed or rejected EVM deposit sent back to them on its source chain. They paste the deposit's transaction hash and name a destination — **no wallet connection is involved at any point**, and there is no chain to pick: the hash is looked up across every chain, including ones the deposit flow itself doesn't list.
102
102
 
103
103
  ```tsx
104
104
  import { ClaimModal } from "@rhinestone/deposit-modal/claim";
@@ -107,8 +107,7 @@ import { ClaimModal } from "@rhinestone/deposit-modal/claim";
107
107
  isOpen={claimOpen}
108
108
  onClose={() => setClaimOpen(false)}
109
109
  refundEndpoint="/api/refund"
110
- // Optional lookup/destination prefills:
111
- defaultSourceChain={42161}
110
+ // Optional prefills:
112
111
  defaultTxHash={depositTxHash}
113
112
  onLifecycle={(event) => console.log(event)}
114
113
  />
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkONPO2OFCcjs = require('./chunk-ONPO2OFC.cjs');
4
- require('./chunk-UIN4SMPX.cjs');
5
- require('./chunk-UKS5VK74.cjs');
3
+ var _chunkVDKPQKAEcjs = require('./chunk-VDKPQKAE.cjs');
4
+ require('./chunk-UWRBNFZX.cjs');
5
+ require('./chunk-YMV3HHPR.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4ALOTMS6cjs = require('./chunk-4ALOTMS6.cjs');
10
- require('./chunk-7RZPE5KV.cjs');
9
+ var _chunkQRRL4SL5cjs = require('./chunk-QRRL4SL5.cjs');
10
+ require('./chunk-LMBTPDLB.cjs');
11
11
  require('./chunk-W3WWC4LD.cjs');
12
12
 
13
13
 
@@ -88,14 +88,14 @@ function buildTransports(rpcUrls) {
88
88
  const transports = {};
89
89
  for (const network of EVM_NETWORKS) {
90
90
  const id = Number(network.id);
91
- transports[id] = _viem.http.call(void 0, _chunk4ALOTMS6cjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, id));
92
92
  }
93
93
  return transports;
94
94
  }
95
95
  function getEvmRpcFingerprint(rpcUrls) {
96
96
  return EVM_NETWORKS.map((network) => {
97
97
  const id = Number(network.id);
98
- return `${id}=${_nullishCoalesce(_chunk4ALOTMS6cjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
99
99
  }).join("|");
100
100
  }
101
101
  var cachedAdapter = null;
@@ -189,7 +189,7 @@ function useReownWallet() {
189
189
  await switchChainAsync({ chainId });
190
190
  }
191
191
  } catch (err) {
192
- if (_chunk4ALOTMS6cjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunkQRRL4SL5cjs.isUnsupportedChainSwitchError.call(void 0, err)) {
193
193
  throw new Error(
194
194
  `Switch to ${_chunkEGB3NWMLcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
195
195
  );
@@ -226,7 +226,7 @@ function DepositModalWithReown(props) {
226
226
  reown.disconnect();
227
227
  }, [reown.disconnect]);
228
228
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
229
- _chunkONPO2OFCcjs.DepositModalInner,
229
+ _chunkVDKPQKAEcjs.DepositModalInner,
230
230
  {
231
231
  ...props,
232
232
  reownWallet: reownWithSolana,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-7PLFGGXC.mjs";
4
- import "./chunk-ESWMFZEV.mjs";
5
- import "./chunk-PGBW524J.mjs";
3
+ } from "./chunk-GDYWSTQK.mjs";
4
+ import "./chunk-N5226HLL.mjs";
5
+ import "./chunk-UD6JF6ME.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-5S7WGG7V.mjs";
10
- import "./chunk-62PQAA3X.mjs";
9
+ } from "./chunk-IWAI6VZ2.mjs";
10
+ import "./chunk-CLR3HPCT.mjs";
11
11
  import "./chunk-YJP274QC.mjs";
12
12
  import {
13
13
  SUPPORTED_CHAINS,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkUIN4SMPXcjs = require('./chunk-UIN4SMPX.cjs');
6
+ var _chunkUWRBNFZXcjs = require('./chunk-UWRBNFZX.cjs');
7
7
 
8
8
 
9
9
 
@@ -32,7 +32,7 @@ var _chunkUIN4SMPXcjs = require('./chunk-UIN4SMPX.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunk4ALOTMS6cjs = require('./chunk-4ALOTMS6.cjs');
35
+ var _chunkQRRL4SL5cjs = require('./chunk-QRRL4SL5.cjs');
36
36
 
37
37
 
38
38
 
@@ -256,7 +256,7 @@ function WithdrawFormStep({
256
256
  return;
257
257
  }
258
258
  try {
259
- const bal = _chunk4ALOTMS6cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
259
+ const bal = _chunkQRRL4SL5cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
260
260
  address: asset.token,
261
261
  abi: _viem.erc20Abi,
262
262
  functionName: "balanceOf",
@@ -361,7 +361,7 @@ function WithdrawFormStep({
361
361
  await onSubmit(recipient, amount);
362
362
  } catch (err) {
363
363
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
364
- setError(_chunk4ALOTMS6cjs.formatUserError.call(void 0, raw));
364
+ setError(_chunkQRRL4SL5cjs.formatUserError.call(void 0, raw));
365
365
  } finally {
366
366
  setIsSubmitting(false);
367
367
  }
@@ -377,16 +377,16 @@ function WithdrawFormStep({
377
377
  if (isBalanceLoading) {
378
378
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
379
379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
380
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.Spinner, { className: "rs-spinner--lg" }),
380
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Spinner, { className: "rs-spinner--lg" }),
381
381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
382
382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
383
383
  ] }),
384
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.PoweredBy, {})
384
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
385
385
  ] });
386
386
  }
387
387
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
388
388
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
389
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
389
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
390
390
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
391
391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
392
392
  "label",
@@ -446,7 +446,7 @@ function WithdrawFormStep({
446
446
  ) })
447
447
  ] }),
448
448
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
449
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunk4ALOTMS6cjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
449
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkQRRL4SL5cjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
450
450
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
451
451
  "Balance: ",
452
452
  formattedBalance,
@@ -477,7 +477,7 @@ function WithdrawFormStep({
477
477
  children: [
478
478
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
479
479
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
480
- _chunk4ALOTMS6cjs.CdnIcon,
480
+ _chunkQRRL4SL5cjs.CdnIcon,
481
481
  {
482
482
  src: _chunkEGB3NWMLcjs.getChainIcon.call(void 0, targetChain),
483
483
  alt: targetChainName,
@@ -487,7 +487,7 @@ function WithdrawFormStep({
487
487
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
488
488
  ] }),
489
489
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
490
- _chunk4ALOTMS6cjs.ChevronDownIcon,
490
+ _chunkQRRL4SL5cjs.ChevronDownIcon,
491
491
  {
492
492
  className: "rs-withdraw-dropdown-arrow",
493
493
  style: {
@@ -509,7 +509,7 @@ function WithdrawFormStep({
509
509
  },
510
510
  children: [
511
511
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
512
- _chunk4ALOTMS6cjs.CdnIcon,
512
+ _chunkQRRL4SL5cjs.CdnIcon,
513
513
  {
514
514
  src: _chunkEGB3NWMLcjs.getChainIcon.call(void 0, chain.id),
515
515
  alt: chain.name,
@@ -546,7 +546,7 @@ function WithdrawFormStep({
546
546
  children: [
547
547
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
548
548
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
549
- _chunk4ALOTMS6cjs.TokenIcon,
549
+ _chunkQRRL4SL5cjs.TokenIcon,
550
550
  {
551
551
  symbol: targetSymbol,
552
552
  className: "rs-withdraw-dropdown-icon"
@@ -555,7 +555,7 @@ function WithdrawFormStep({
555
555
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
556
556
  ] }),
557
557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
558
- _chunk4ALOTMS6cjs.ChevronDownIcon,
558
+ _chunkQRRL4SL5cjs.ChevronDownIcon,
559
559
  {
560
560
  className: "rs-withdraw-dropdown-arrow",
561
561
  style: {
@@ -577,7 +577,7 @@ function WithdrawFormStep({
577
577
  },
578
578
  children: [
579
579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
580
- _chunk4ALOTMS6cjs.TokenIcon,
580
+ _chunkQRRL4SL5cjs.TokenIcon,
581
581
  {
582
582
  symbol: option.symbol,
583
583
  className: "rs-withdraw-dropdown-icon"
@@ -593,10 +593,10 @@ function WithdrawFormStep({
593
593
  )
594
594
  ] })
595
595
  ] }),
596
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.Callout, { variant: "error", children: error }),
597
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.Callout, { variant: "error", children: registrationError }),
596
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: error }),
597
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: registrationError }),
598
598
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
599
- _chunk4ALOTMS6cjs.Button,
599
+ _chunkQRRL4SL5cjs.Button,
600
600
  {
601
601
  onClick: handleWithdraw,
602
602
  fullWidth: true,
@@ -606,7 +606,7 @@ function WithdrawFormStep({
606
606
  }
607
607
  )
608
608
  ] }),
609
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.PoweredBy, {})
609
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
610
610
  ] });
611
611
  }
612
612
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -640,16 +640,16 @@ function WithdrawReviewStep({
640
640
  const targetChainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, targetChain);
641
641
  const targetChainIcon = _chunkEGB3NWMLcjs.getChainIcon.call(void 0, targetChain);
642
642
  const amountNumber = Number(amount);
643
- const formattedSendAmount = _nullishCoalesce(_chunk4ALOTMS6cjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
644
- const prices = _chunkUIN4SMPXcjs.useTokenPrices.call(void 0, service, [
643
+ const formattedSendAmount = _nullishCoalesce(_chunkQRRL4SL5cjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
644
+ const prices = _chunkUWRBNFZXcjs.useTokenPrices.call(void 0, service, [
645
645
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
646
646
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
647
647
  ]);
648
- const receiveDisplay = _nullishCoalesce(_chunk4ALOTMS6cjs.formatReceiveEstimate.call(void 0, {
648
+ const receiveDisplay = _nullishCoalesce(_chunkQRRL4SL5cjs.formatReceiveEstimate.call(void 0, {
649
649
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
650
650
  sourceSymbol,
651
651
  targetSymbol,
652
- sourceTrusted: _chunk4ALOTMS6cjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
652
+ sourceTrusted: _chunkQRRL4SL5cjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
653
653
  prices
654
654
  }), () => ( // No price for the target token — an honest dash beats a wrong number.
655
655
  "\u2014"));
@@ -660,7 +660,7 @@ function WithdrawReviewStep({
660
660
  await onConfirm();
661
661
  } catch (err) {
662
662
  const raw = err instanceof Error ? err.message : "Withdraw failed";
663
- const message = _chunk4ALOTMS6cjs.formatUserError.call(void 0, raw);
663
+ const message = _chunkQRRL4SL5cjs.formatUserError.call(void 0, raw);
664
664
  setError(message);
665
665
  _optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR")]);
666
666
  } finally {
@@ -671,9 +671,9 @@ function WithdrawReviewStep({
671
671
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
672
672
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
673
673
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
674
- _chunk4ALOTMS6cjs.BodyHeader,
674
+ _chunkQRRL4SL5cjs.BodyHeader,
675
675
  {
676
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.CircleArrowOutUpLeftIcon, {}),
676
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CircleArrowOutUpLeftIcon, {}),
677
677
  title: "Review withdrawal"
678
678
  }
679
679
  ),
@@ -686,14 +686,14 @@ function WithdrawReviewStep({
686
686
  " ",
687
687
  sourceSymbol
688
688
  ] }),
689
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.TokenIcon, { symbol: sourceSymbol }) })
689
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: sourceSymbol }) })
690
690
  ] })
691
691
  ] }),
692
692
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
693
693
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
694
694
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
695
695
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
696
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.CdnIcon, { src: sourceChainIcon }) })
696
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: sourceChainIcon }) })
697
697
  ] })
698
698
  ] }),
699
699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -704,14 +704,14 @@ function WithdrawReviewStep({
704
704
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
705
705
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
706
706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
707
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.TokenIcon, { symbol: targetSymbol }) })
707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: targetSymbol }) })
708
708
  ] })
709
709
  ] }),
710
710
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
711
711
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
712
712
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
713
713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
714
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.CdnIcon, { src: targetChainIcon }) })
714
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: targetChainIcon }) })
715
715
  ] })
716
716
  ] }),
717
717
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -719,10 +719,10 @@ function WithdrawReviewStep({
719
719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
720
720
  ] })
721
721
  ] }),
722
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.Callout, { variant: "error", children: error }),
723
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.Callout, { variant: "error", children: registrationError }),
722
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: error }),
723
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: registrationError }),
724
724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
725
- _chunk4ALOTMS6cjs.Button,
725
+ _chunkQRRL4SL5cjs.Button,
726
726
  {
727
727
  onClick: handleConfirm,
728
728
  loading: isSubmitting,
@@ -733,7 +733,7 @@ function WithdrawReviewStep({
733
733
  }
734
734
  )
735
735
  ] }),
736
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.PoweredBy, {})
736
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
737
737
  ] });
738
738
  }
739
739
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -767,11 +767,11 @@ function WithdrawFlow({
767
767
  onError,
768
768
  debug
769
769
  }) {
770
- const rpcUrls = _chunk4ALOTMS6cjs.useRpcUrls.call(void 0, );
771
- const onStepChangeRef = _chunk4ALOTMS6cjs.useLatestRef.call(void 0, onStepChange);
772
- const onEventRef = _chunk4ALOTMS6cjs.useLatestRef.call(void 0, onEvent);
773
- const onLifecycleRef = _chunk4ALOTMS6cjs.useLatestRef.call(void 0, onLifecycle);
774
- const onErrorRef = _chunk4ALOTMS6cjs.useLatestRef.call(void 0, onError);
770
+ const rpcUrls = _chunkQRRL4SL5cjs.useRpcUrls.call(void 0, );
771
+ const onStepChangeRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onStepChange);
772
+ const onEventRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onEvent);
773
+ const onLifecycleRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onLifecycle);
774
+ const onErrorRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onError);
775
775
  const isFlowActiveRef = _react.useRef.call(void 0, true);
776
776
  const submitGenerationRef = _react.useRef.call(void 0, 0);
777
777
  _react.useEffect.call(void 0, () => {
@@ -782,13 +782,13 @@ function WithdrawFlow({
782
782
  }, []);
783
783
  const logFlow = _react.useCallback.call(void 0,
784
784
  (message, data) => {
785
- _chunk4ALOTMS6cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
785
+ _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
786
786
  },
787
787
  [debug]
788
788
  );
789
789
  const logFlowError = _react.useCallback.call(void 0,
790
790
  (message, error, data) => {
791
- _chunk4ALOTMS6cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
791
+ _chunkQRRL4SL5cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
792
792
  },
793
793
  [debug]
794
794
  );
@@ -810,7 +810,7 @@ function WithdrawFlow({
810
810
  const flowStep = useWithdrawStore((s) => s.step);
811
811
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
812
812
  const publicClient = _react.useMemo.call(void 0,
813
- () => _chunkUIN4SMPXcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
813
+ () => _chunkUWRBNFZXcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
814
814
  [sourceChain, rpcUrls]
815
815
  );
816
816
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
@@ -838,7 +838,7 @@ function WithdrawFlow({
838
838
  targetToken,
839
839
  recipient: recipientForRegistration
840
840
  });
841
- const salt = _chunkUIN4SMPXcjs.deriveAccountSalt.call(void 0, {
841
+ const salt = _chunkUWRBNFZXcjs.deriveAccountSalt.call(void 0, {
842
842
  recipient: recipientForRegistration,
843
843
  targetChain,
844
844
  targetToken
@@ -868,7 +868,7 @@ function WithdrawFlow({
868
868
  } catch (err) {
869
869
  if (cancelled) return;
870
870
  const raw = err instanceof Error ? err.message : "Registration failed";
871
- const message = _chunk4ALOTMS6cjs.formatUserError.call(void 0, raw);
871
+ const message = _chunkQRRL4SL5cjs.formatUserError.call(void 0, raw);
872
872
  logFlowError("auto-register:failed", err, {
873
873
  accountAddress,
874
874
  targetChain,
@@ -902,7 +902,7 @@ function WithdrawFlow({
902
902
  const symbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
903
903
  const decimals = _chunkEGB3NWMLcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
904
904
  return {
905
- id: _chunk4ALOTMS6cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
905
+ id: _chunkQRRL4SL5cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
906
906
  chainId: sourceChain,
907
907
  token: sourceToken,
908
908
  symbol,
@@ -1082,7 +1082,7 @@ function WithdrawFlow({
1082
1082
  targetChain,
1083
1083
  targetToken
1084
1084
  });
1085
- handleError(_chunk4ALOTMS6cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1085
+ handleError(_chunkQRRL4SL5cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1086
1086
  throw err;
1087
1087
  }
1088
1088
  },
@@ -1230,7 +1230,7 @@ function WithdrawFlow({
1230
1230
  }
1231
1231
  ),
1232
1232
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1233
- _chunkUIN4SMPXcjs.ProcessingStep,
1233
+ _chunkUWRBNFZXcjs.ProcessingStep,
1234
1234
  {
1235
1235
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1236
1236
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1298,19 +1298,19 @@ function WithdrawModal({
1298
1298
  debug
1299
1299
  }) {
1300
1300
  const modalRef = _react.useRef.call(void 0, null);
1301
- const onReadyRef = _chunk4ALOTMS6cjs.useLatestRef.call(void 0, onReady);
1301
+ const onReadyRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onReady);
1302
1302
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1303
1303
  void 0
1304
1304
  );
1305
1305
  const targetChain = _chunkEGB3NWMLcjs.getChainId.call(void 0, targetChainProp);
1306
1306
  const sourceChain = _chunkEGB3NWMLcjs.getChainId.call(void 0, sourceChainProp);
1307
- const rpcUrls = _chunk4ALOTMS6cjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1307
+ const rpcUrls = _chunkQRRL4SL5cjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1308
1308
  const service = _react.useMemo.call(void 0,
1309
- () => _chunk4ALOTMS6cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1309
+ () => _chunkQRRL4SL5cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1310
1310
  [backendUrl, debug]
1311
1311
  );
1312
1312
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1313
- const onErrorRef = _chunk4ALOTMS6cjs.useLatestRef.call(void 0, onError);
1313
+ const onErrorRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onError);
1314
1314
  _react.useEffect.call(void 0, () => {
1315
1315
  if (isOpen && typeof onSendTransaction !== "function") {
1316
1316
  _optionalChain([onErrorRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38({
@@ -1321,7 +1321,7 @@ function WithdrawModal({
1321
1321
  }, [isOpen, onSendTransaction, onErrorRef]);
1322
1322
  _react.useEffect.call(void 0, () => {
1323
1323
  if (isOpen && modalRef.current) {
1324
- _chunk4ALOTMS6cjs.applyTheme.call(void 0, modalRef.current, theme);
1324
+ _chunkQRRL4SL5cjs.applyTheme.call(void 0, modalRef.current, theme);
1325
1325
  }
1326
1326
  }, [isOpen, theme]);
1327
1327
  _react.useEffect.call(void 0, () => {
@@ -1339,8 +1339,8 @@ function WithdrawModal({
1339
1339
  }, []);
1340
1340
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _41 => _41.showBackButton]), () => ( true));
1341
1341
  const canGoBack = backHandler !== void 0;
1342
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1343
- _chunk4ALOTMS6cjs.Modal,
1342
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1343
+ _chunkQRRL4SL5cjs.Modal,
1344
1344
  {
1345
1345
  isOpen,
1346
1346
  onClose,
@@ -1356,7 +1356,7 @@ function WithdrawModal({
1356
1356
  className: "rs-modal-header-back",
1357
1357
  "aria-label": "Go back",
1358
1358
  onClick: backHandler,
1359
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.ChevronLeftIcon, {})
1359
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.ChevronLeftIcon, {})
1360
1360
  }
1361
1361
  ) }),
1362
1362
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1366,7 +1366,7 @@ function WithdrawModal({
1366
1366
  onClick: onClose,
1367
1367
  className: "rs-modal-close",
1368
1368
  "aria-label": "Close",
1369
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ALOTMS6cjs.CloseIcon, {})
1369
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CloseIcon, {})
1370
1370
  }
1371
1371
  ) })
1372
1372
  ] }),
@@ -1,5 +1,5 @@
1
1
  // src/core/version.ts
2
- var MODAL_VERSION = "0.0.0-dev-20260727172000";
2
+ var MODAL_VERSION = "0.0.0-dev-20260727175848";
3
3
 
4
4
  export {
5
5
  MODAL_VERSION
@@ -18,10 +18,10 @@ import {
18
18
  readDedupedAccountSetupResult,
19
19
  runAccountSetupDeduped,
20
20
  txRefsMatch
21
- } from "./chunk-ESWMFZEV.mjs";
21
+ } from "./chunk-N5226HLL.mjs";
22
22
  import {
23
23
  ListRow
24
- } from "./chunk-PGBW524J.mjs";
24
+ } from "./chunk-UD6JF6ME.mjs";
25
25
  import {
26
26
  AlertTriangleIcon,
27
27
  AppleIcon,
@@ -73,7 +73,7 @@ import {
73
73
  useLatestRef,
74
74
  useRpcUrls,
75
75
  useStableRpcUrls
76
- } from "./chunk-5S7WGG7V.mjs";
76
+ } from "./chunk-IWAI6VZ2.mjs";
77
77
  import {
78
78
  POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
79
79
  POLYMARKET_ICON_URL,
@@ -8159,7 +8159,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
8159
8159
  // src/DepositModal.tsx
8160
8160
  import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
8161
8161
  var ReownDepositInner = lazy2(
8162
- () => import("./DepositModalReown-XIJUAOYR.mjs").then((m) => ({ default: m.DepositModalReown }))
8162
+ () => import("./DepositModalReown-U3YSVVNC.mjs").then((m) => ({ default: m.DepositModalReown }))
8163
8163
  );
8164
8164
  function sortByCreatedAtDesc(items) {
8165
8165
  return [...items].sort((a, b) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MODAL_VERSION
3
- } from "./chunk-62PQAA3X.mjs";
3
+ } from "./chunk-CLR3HPCT.mjs";
4
4
  import {
5
5
  HYPERCORE_CHAIN_ID,
6
6
  HYPERCORE_MAINNET_CAIP2,
@@ -959,7 +959,7 @@ function createDepositService(baseUrl, options) {
959
959
  async lookupRecoverableDeposits(params) {
960
960
  const txHashParam = params.txHash.startsWith("0x") ? params.txHash.toLowerCase() : params.txHash;
961
961
  const url = apiUrl(
962
- `/deposits?chain=${encodeURIComponent(params.chain)}&txHash=${encodeURIComponent(txHashParam)}&includeSpam=true`
962
+ `/deposits?txHash=${encodeURIComponent(txHashParam)}&includeSpam=true`
963
963
  );
964
964
  const response = await fetch(url, {
965
965
  method: "GET",
@@ -976,7 +976,6 @@ function createDepositService(baseUrl, options) {
976
976
  const body = await response.json();
977
977
  const deposits = body.deposits ?? [];
978
978
  debugLog(debug, scope, "lookupRecoverableDeposits:success", {
979
- chain: params.chain,
980
979
  txHash: shortRef(txHashParam),
981
980
  count: deposits.length
982
981
  });
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/version.ts
2
- var MODAL_VERSION = "0.0.0-dev-20260727172000";
2
+ var MODAL_VERSION = "0.0.0-dev-20260727175848";
3
3
 
4
4
 
5
5
 
@@ -20,7 +20,7 @@ import {
20
20
  rpcUrlFor,
21
21
  tokenAmountToNumber,
22
22
  useLatestRef
23
- } from "./chunk-5S7WGG7V.mjs";
23
+ } from "./chunk-IWAI6VZ2.mjs";
24
24
  import {
25
25
  CHAIN_BY_ID,
26
26
  NATIVE_TOKEN_ADDRESS,