@rhinestone/deposit-modal 0.10.0 → 0.11.1

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 (49) hide show
  1. package/dist/{DepositModalReown-MTWT6Y66.mjs → DepositModalReown-MO5QDLIT.mjs} +96 -26
  2. package/dist/{DepositModalReown-S3DSFXTX.cjs → DepositModalReown-YGB73NMW.cjs} +97 -27
  3. package/dist/caip-D8aRWdEY.d.cts +40 -0
  4. package/dist/caip-D8aRWdEY.d.ts +40 -0
  5. package/dist/{chunk-NF4NBRUP.cjs → chunk-4FTI3GTB.cjs} +1 -1
  6. package/dist/{chunk-A223BLVC.mjs → chunk-53IFZGSF.mjs} +177 -21
  7. package/dist/{chunk-VDGT6NZQ.mjs → chunk-5746YXKC.mjs} +14 -31
  8. package/dist/{chunk-7TV7GLJB.mjs → chunk-CWGUBFJL.mjs} +763 -169
  9. package/dist/{chunk-LR7MKHYV.mjs → chunk-EIWOVX53.mjs} +27 -25
  10. package/dist/{chunk-VTVOHNXM.cjs → chunk-FVUXJ3RP.cjs} +3 -3
  11. package/dist/{chunk-A42XAHIB.cjs → chunk-HUHBNYD3.cjs} +84 -101
  12. package/dist/{chunk-YEBXUUH3.cjs → chunk-JPRV36DT.cjs} +2 -2
  13. package/dist/{chunk-UMCDZJMG.cjs → chunk-LQGYPM5B.cjs} +96 -94
  14. package/dist/{chunk-ILT2PITN.mjs → chunk-MZ53PDIX.mjs} +1 -1
  15. package/dist/{chunk-5NJYW5FT.mjs → chunk-OWYPKCYD.mjs} +12 -9
  16. package/dist/{chunk-W4YAOJPG.cjs → chunk-SSQ27YFB.cjs} +625 -568
  17. package/dist/{chunk-H577RJN5.cjs → chunk-TENL4H64.cjs} +186 -30
  18. package/dist/{chunk-5OEWGJR4.mjs → chunk-URFSTNRS.mjs} +1 -1
  19. package/dist/{chunk-KW32UBUQ.mjs → chunk-V6T7LORJ.mjs} +1 -1
  20. package/dist/{chunk-MHIOMTMM.mjs → chunk-YELNYILK.mjs} +391 -334
  21. package/dist/{chunk-PUJHXHRA.cjs → chunk-ZQR36NCV.cjs} +845 -251
  22. package/dist/{chunk-DEF767BA.cjs → chunk-ZRIRCIQM.cjs} +66 -63
  23. package/dist/claim.cjs +6 -6
  24. package/dist/claim.d.cts +3 -2
  25. package/dist/claim.d.ts +3 -2
  26. package/dist/claim.mjs +5 -5
  27. package/dist/{caip-523Zrc3r.d.cts → constants-FuzG3h4m.d.cts} +1 -18
  28. package/dist/{caip-523Zrc3r.d.ts → constants-FuzG3h4m.d.ts} +1 -18
  29. package/dist/constants.cjs +5 -3
  30. package/dist/constants.d.cts +3 -2
  31. package/dist/constants.d.ts +3 -2
  32. package/dist/constants.mjs +4 -2
  33. package/dist/deposit.cjs +8 -8
  34. package/dist/deposit.d.cts +3 -2
  35. package/dist/deposit.d.ts +3 -2
  36. package/dist/deposit.mjs +7 -7
  37. package/dist/index.cjs +12 -10
  38. package/dist/index.d.cts +3 -2
  39. package/dist/index.d.ts +3 -2
  40. package/dist/index.mjs +11 -9
  41. package/dist/polymarket.cjs +5 -5
  42. package/dist/polymarket.mjs +2 -2
  43. package/dist/{types-C0SGf-21.d.cts → types-CsGa-HxD.d.cts} +10 -3
  44. package/dist/{types-C0SGf-21.d.ts → types-DdS8OySJ.d.ts} +10 -3
  45. package/dist/withdraw.cjs +6 -6
  46. package/dist/withdraw.d.cts +3 -2
  47. package/dist/withdraw.d.ts +3 -2
  48. package/dist/withdraw.mjs +5 -5
  49. package/package.json +1 -1
@@ -3,8 +3,8 @@
3
3
 
4
4
 
5
5
 
6
+ var _chunkHUHBNYD3cjs = require('./chunk-HUHBNYD3.cjs');
6
7
 
7
- var _chunkA42XAHIBcjs = require('./chunk-A42XAHIB.cjs');
8
8
 
9
9
 
10
10
 
@@ -34,10 +34,10 @@ var _chunkA42XAHIBcjs = require('./chunk-A42XAHIB.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunkPUJHXHRAcjs = require('./chunk-PUJHXHRA.cjs');
38
37
 
39
38
 
40
39
 
40
+ var _chunkZQR36NCVcjs = require('./chunk-ZQR36NCV.cjs');
41
41
 
42
42
 
43
43
 
@@ -45,7 +45,8 @@ var _chunkPUJHXHRAcjs = require('./chunk-PUJHXHRA.cjs');
45
45
 
46
46
 
47
47
 
48
- var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
48
+
49
+ var _chunkTENL4H64cjs = require('./chunk-TENL4H64.cjs');
49
50
 
50
51
  // src/WithdrawModal.tsx
51
52
  var _react = require('react');
@@ -232,8 +233,8 @@ function WithdrawFormStep({
232
233
  const publicClientChainId = _optionalChain([publicClient, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]);
233
234
  useClickOutside(chainDropdownRef, () => setShowChainDropdown(false));
234
235
  useClickOutside(tokenDropdownRef, () => setShowTokenDropdown(false));
235
- const targetSymbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
236
- const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
236
+ const targetSymbol = _chunkTENL4H64cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
237
+ const targetChainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChain);
237
238
  const isBusy = submitting || isSubmitting;
238
239
  const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
239
240
  _react.useEffect.call(void 0, () => {
@@ -257,7 +258,7 @@ function WithdrawFormStep({
257
258
  return;
258
259
  }
259
260
  try {
260
- const bal = _chunkPUJHXHRAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
261
+ const bal = _chunkZQR36NCVcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
261
262
  address: asset.token,
262
263
  abi: _viem.erc20Abi,
263
264
  functionName: "balanceOf",
@@ -362,7 +363,7 @@ function WithdrawFormStep({
362
363
  await onSubmit(recipient, amount);
363
364
  } catch (err) {
364
365
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
365
- setError(_chunkPUJHXHRAcjs.formatUserError.call(void 0, raw));
366
+ setError(_chunkZQR36NCVcjs.formatUserError.call(void 0, raw));
366
367
  } finally {
367
368
  setIsSubmitting(false);
368
369
  }
@@ -378,16 +379,16 @@ function WithdrawFormStep({
378
379
  if (isBalanceLoading) {
379
380
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
380
381
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
381
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--lg" }),
382
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.Spinner, { className: "rs-spinner--lg" }),
382
383
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
383
384
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
384
385
  ] }),
385
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
386
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.PoweredBy, {})
386
387
  ] });
387
388
  }
388
389
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
390
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
391
392
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
392
393
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
393
394
  "label",
@@ -447,7 +448,7 @@ function WithdrawFormStep({
447
448
  ) })
448
449
  ] }),
449
450
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
450
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkPUJHXHRAcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
451
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkZQR36NCVcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
451
452
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
452
453
  "Balance: ",
453
454
  formattedBalance,
@@ -478,9 +479,9 @@ function WithdrawFormStep({
478
479
  children: [
479
480
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
480
481
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
481
- _chunkPUJHXHRAcjs.CdnIcon,
482
+ _chunkZQR36NCVcjs.CdnIcon,
482
483
  {
483
- src: _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain),
484
+ src: _chunkTENL4H64cjs.getChainIcon.call(void 0, targetChain),
484
485
  alt: targetChainName,
485
486
  className: "rs-withdraw-dropdown-icon"
486
487
  }
@@ -488,7 +489,7 @@ function WithdrawFormStep({
488
489
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
489
490
  ] }),
490
491
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
491
- _chunkPUJHXHRAcjs.ChevronDownIcon,
492
+ _chunkZQR36NCVcjs.ChevronDownIcon,
492
493
  {
493
494
  className: "rs-withdraw-dropdown-arrow",
494
495
  style: {
@@ -510,9 +511,9 @@ function WithdrawFormStep({
510
511
  },
511
512
  children: [
512
513
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
513
- _chunkPUJHXHRAcjs.CdnIcon,
514
+ _chunkZQR36NCVcjs.CdnIcon,
514
515
  {
515
- src: _chunkH577RJN5cjs.getChainIcon.call(void 0, chain.id),
516
+ src: _chunkTENL4H64cjs.getChainIcon.call(void 0, chain.id),
516
517
  alt: chain.name,
517
518
  className: "rs-withdraw-dropdown-icon"
518
519
  }
@@ -547,7 +548,7 @@ function WithdrawFormStep({
547
548
  children: [
548
549
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
549
550
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
550
- _chunkPUJHXHRAcjs.TokenIcon,
551
+ _chunkZQR36NCVcjs.TokenIcon,
551
552
  {
552
553
  symbol: targetSymbol,
553
554
  className: "rs-withdraw-dropdown-icon"
@@ -556,7 +557,7 @@ function WithdrawFormStep({
556
557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
557
558
  ] }),
558
559
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
559
- _chunkPUJHXHRAcjs.ChevronDownIcon,
560
+ _chunkZQR36NCVcjs.ChevronDownIcon,
560
561
  {
561
562
  className: "rs-withdraw-dropdown-arrow",
562
563
  style: {
@@ -578,7 +579,7 @@ function WithdrawFormStep({
578
579
  },
579
580
  children: [
580
581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
581
- _chunkPUJHXHRAcjs.TokenIcon,
582
+ _chunkZQR36NCVcjs.TokenIcon,
582
583
  {
583
584
  symbol: option.symbol,
584
585
  className: "rs-withdraw-dropdown-icon"
@@ -594,20 +595,25 @@ function WithdrawFormStep({
594
595
  )
595
596
  ] })
596
597
  ] }),
597
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
598
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: registrationError }),
598
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.Callout, { variant: "error", children: error }),
599
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.Callout, { variant: "error", children: registrationError }),
599
600
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
600
- _chunkPUJHXHRAcjs.Button,
601
+ _chunkZQR36NCVcjs.Button,
601
602
  {
602
603
  onClick: handleWithdraw,
603
604
  fullWidth: true,
604
605
  loading: isBusy,
605
- disabled: !recipient || !amount || isBusy || Boolean(registrationError),
606
- children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
606
+ disabled: !recipient || !amount || isBusy || Boolean(registrationError) || // No token list for the selected chain yet. A destination published
607
+ // at runtime becomes selectable as soon as `/chains` resolves, which
608
+ // can precede its addresses; submitting in that window would send
609
+ // the previously selected chain's token address to a chain it does
610
+ // not exist on.
611
+ targetTokenOptions.length === 0,
612
+ children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : targetTokenOptions.length === 0 ? "Loading tokens..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
607
613
  }
608
614
  )
609
615
  ] }),
610
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
616
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.PoweredBy, {})
611
617
  ] });
612
618
  }
613
619
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -635,22 +641,22 @@ function WithdrawReviewStep({
635
641
  }) {
636
642
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
637
643
  const [error, setError] = _react.useState.call(void 0, null);
638
- const sourceChainName = _chunkH577RJN5cjs.getChainName.call(void 0, sourceChain);
639
- const sourceChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, sourceChain);
640
- const targetSymbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
641
- const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
642
- const targetChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain);
644
+ const sourceChainName = _chunkTENL4H64cjs.getChainName.call(void 0, sourceChain);
645
+ const sourceChainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, sourceChain);
646
+ const targetSymbol = _chunkTENL4H64cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
647
+ const targetChainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChain);
648
+ const targetChainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, targetChain);
643
649
  const amountNumber = Number(amount);
644
- const formattedSendAmount = _nullishCoalesce(_chunkPUJHXHRAcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
645
- const prices = _chunkA42XAHIBcjs.useTokenPrices.call(void 0, service, [
650
+ const formattedSendAmount = _nullishCoalesce(_chunkZQR36NCVcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
651
+ const prices = _chunkHUHBNYD3cjs.useTokenPrices.call(void 0, service, [
646
652
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
647
653
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
648
654
  ]);
649
- const receiveDisplay = _nullishCoalesce(_chunkPUJHXHRAcjs.formatReceiveEstimate.call(void 0, {
655
+ const receiveDisplay = _nullishCoalesce(_chunkZQR36NCVcjs.formatReceiveEstimate.call(void 0, {
650
656
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
651
657
  sourceSymbol,
652
658
  targetSymbol,
653
- sourceTrusted: _chunkPUJHXHRAcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
659
+ sourceTrusted: _chunkZQR36NCVcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
654
660
  prices
655
661
  }), () => ( // No price for the target token — an honest dash beats a wrong number.
656
662
  "\u2014"));
@@ -661,9 +667,9 @@ function WithdrawReviewStep({
661
667
  await onConfirm();
662
668
  } catch (err) {
663
669
  const raw = err instanceof Error ? err.message : "Withdraw failed";
664
- const message = _chunkPUJHXHRAcjs.formatUserError.call(void 0, raw);
670
+ const message = _chunkZQR36NCVcjs.formatUserError.call(void 0, raw);
665
671
  setError(message);
666
- _optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR")]);
672
+ _optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR", raw)]);
667
673
  } finally {
668
674
  setIsSubmitting(false);
669
675
  }
@@ -672,9 +678,9 @@ function WithdrawReviewStep({
672
678
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
673
679
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
674
680
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
675
- _chunkPUJHXHRAcjs.BodyHeader,
681
+ _chunkZQR36NCVcjs.BodyHeader,
676
682
  {
677
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CircleArrowOutUpLeftIcon, {}),
683
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.CircleArrowOutUpLeftIcon, {}),
678
684
  title: "Review withdrawal"
679
685
  }
680
686
  ),
@@ -687,14 +693,14 @@ function WithdrawReviewStep({
687
693
  " ",
688
694
  sourceSymbol
689
695
  ] }),
690
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: sourceSymbol }) })
696
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.TokenIcon, { symbol: sourceSymbol }) })
691
697
  ] })
692
698
  ] }),
693
699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
694
700
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
695
701
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
696
702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
697
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
703
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.CdnIcon, { src: sourceChainIcon }) })
698
704
  ] })
699
705
  ] }),
700
706
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -705,14 +711,14 @@ function WithdrawReviewStep({
705
711
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
706
712
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
707
713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
708
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
714
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.TokenIcon, { symbol: targetSymbol }) })
709
715
  ] })
710
716
  ] }),
711
717
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
712
718
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
713
719
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
714
720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
715
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
721
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.CdnIcon, { src: targetChainIcon }) })
716
722
  ] })
717
723
  ] }),
718
724
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -720,10 +726,10 @@ function WithdrawReviewStep({
720
726
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
721
727
  ] })
722
728
  ] }),
723
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
724
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: registrationError }),
729
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.Callout, { variant: "error", children: error }),
730
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.Callout, { variant: "error", children: registrationError }),
725
731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
726
- _chunkPUJHXHRAcjs.Button,
732
+ _chunkZQR36NCVcjs.Button,
727
733
  {
728
734
  onClick: handleConfirm,
729
735
  loading: isSubmitting,
@@ -734,7 +740,7 @@ function WithdrawReviewStep({
734
740
  }
735
741
  )
736
742
  ] }),
737
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
743
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.PoweredBy, {})
738
744
  ] });
739
745
  }
740
746
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -767,11 +773,11 @@ function WithdrawFlow({
767
773
  onError,
768
774
  debug
769
775
  }) {
770
- const rpcUrls = _chunkPUJHXHRAcjs.useRpcUrls.call(void 0, );
771
- const onStepChangeRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onStepChange);
772
- const onEventRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onEvent);
773
- const onLifecycleRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onLifecycle);
774
- const onErrorRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onError);
776
+ const rpcUrls = _chunkZQR36NCVcjs.useRpcUrls.call(void 0, );
777
+ const onStepChangeRef = _chunkZQR36NCVcjs.useLatestRef.call(void 0, onStepChange);
778
+ const onEventRef = _chunkZQR36NCVcjs.useLatestRef.call(void 0, onEvent);
779
+ const onLifecycleRef = _chunkZQR36NCVcjs.useLatestRef.call(void 0, onLifecycle);
780
+ const onErrorRef = _chunkZQR36NCVcjs.useLatestRef.call(void 0, onError);
775
781
  const isFlowActiveRef = _react.useRef.call(void 0, true);
776
782
  const submitGenerationRef = _react.useRef.call(void 0, 0);
777
783
  _react.useEffect.call(void 0, () => {
@@ -782,13 +788,13 @@ function WithdrawFlow({
782
788
  }, []);
783
789
  const logFlow = _react.useCallback.call(void 0,
784
790
  (message, data) => {
785
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
791
+ _chunkZQR36NCVcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
786
792
  },
787
793
  [debug]
788
794
  );
789
795
  const logFlowError = _react.useCallback.call(void 0,
790
796
  (message, error, data) => {
791
- _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
797
+ _chunkZQR36NCVcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
792
798
  },
793
799
  [debug]
794
800
  );
@@ -812,7 +818,7 @@ function WithdrawFlow({
812
818
  const flowStep = useWithdrawStore((s) => s.step);
813
819
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
814
820
  const publicClient = _react.useMemo.call(void 0,
815
- () => _chunkA42XAHIBcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
821
+ () => _chunkZQR36NCVcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
816
822
  [sourceChain, rpcUrls]
817
823
  );
818
824
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
@@ -840,7 +846,7 @@ function WithdrawFlow({
840
846
  targetToken,
841
847
  recipient: recipientForRegistration
842
848
  });
843
- const salt = _chunkA42XAHIBcjs.deriveAccountSalt.call(void 0, {
849
+ const salt = _chunkHUHBNYD3cjs.deriveAccountSalt.call(void 0, {
844
850
  recipient: recipientForRegistration,
845
851
  targetChain,
846
852
  targetToken
@@ -848,7 +854,7 @@ function WithdrawFlow({
848
854
  const { evmDepositAddress } = await service.registerManagedAccount({
849
855
  salt,
850
856
  target: {
851
- chain: _chunkH577RJN5cjs.targetChainToCaip2.call(void 0, targetChain),
857
+ chain: _chunkTENL4H64cjs.targetChainToCaip2.call(void 0, targetChain),
852
858
  token: targetToken,
853
859
  recipient: recipientForRegistration
854
860
  }
@@ -870,7 +876,7 @@ function WithdrawFlow({
870
876
  } catch (err) {
871
877
  if (cancelled) return;
872
878
  const raw = err instanceof Error ? err.message : "Registration failed";
873
- const message = _chunkPUJHXHRAcjs.formatUserError.call(void 0, raw);
879
+ const message = _chunkZQR36NCVcjs.formatUserError.call(void 0, raw);
874
880
  logFlowError("auto-register:failed", err, {
875
881
  accountAddress,
876
882
  targetChain,
@@ -901,10 +907,10 @@ function WithdrawFlow({
901
907
  onErrorRef
902
908
  ]);
903
909
  const asset = _react.useMemo.call(void 0, () => {
904
- const symbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
905
- const decimals = _chunkH577RJN5cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
910
+ const symbol = _chunkTENL4H64cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
911
+ const decimals = _chunkTENL4H64cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
906
912
  return {
907
- id: _chunkPUJHXHRAcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
913
+ id: _chunkZQR36NCVcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
908
914
  chainId: sourceChain,
909
915
  token: sourceToken,
910
916
  symbol,
@@ -912,7 +918,7 @@ function WithdrawFlow({
912
918
  decimals
913
919
  };
914
920
  }, [sourceChain, sourceToken]);
915
- const isSourceNative = sourceToken.toLowerCase() === _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
921
+ const isSourceNative = sourceToken.toLowerCase() === _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
916
922
  const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
917
923
  const reviewedTarget = reviewedRecipient ? {
918
924
  chain: targetChain,
@@ -937,8 +943,8 @@ function WithdrawFlow({
937
943
  }
938
944
  if (lastStepOpenEventKeyRef.current === "form") return;
939
945
  lastStepOpenEventKeyRef.current = "form";
940
- const tokenSymbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
941
- const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
946
+ const tokenSymbol = _chunkTENL4H64cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
947
+ const chainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChain);
942
948
  _optionalChain([onEventRef, 'access', _20 => _20.current, 'optionalCall', _21 => _21({
943
949
  type: "withdraw_modal_select_amount_open",
944
950
  pred_balance: totalBalanceUsd,
@@ -965,16 +971,16 @@ function WithdrawFlow({
965
971
  registration.kind
966
972
  ]);
967
973
  const handleError = _react.useCallback.call(void 0,
968
- (message, code) => {
969
- logFlowError("flow:error", message, { code });
970
- _optionalChain([onErrorRef, 'access', _22 => _22.current, 'optionalCall', _23 => _23({ message, code })]);
974
+ (message, code, cause) => {
975
+ logFlowError("flow:error", _nullishCoalesce(cause, () => ( message)), { code });
976
+ _optionalChain([onErrorRef, 'access', _22 => _22.current, 'optionalCall', _23 => _23({ message, code, cause })]);
971
977
  },
972
978
  [logFlowError, onErrorRef]
973
979
  );
974
980
  const handleFormContinue = _react.useCallback.call(void 0,
975
981
  (recipient, amountValue) => {
976
- const tokenSymbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
977
- const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
982
+ const tokenSymbol = _chunkTENL4H64cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
983
+ const chainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChain);
978
984
  _optionalChain([onEventRef, 'access', _24 => _24.current, 'optionalCall', _25 => _25({
979
985
  type: "withdraw_modal_select_amount_cta_click",
980
986
  pred_balance: totalBalanceUsd,
@@ -1084,7 +1090,7 @@ function WithdrawFlow({
1084
1090
  targetChain,
1085
1091
  targetToken
1086
1092
  });
1087
- handleError(_chunkPUJHXHRAcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1093
+ handleError(_chunkZQR36NCVcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1088
1094
  throw err;
1089
1095
  }
1090
1096
  },
@@ -1137,15 +1143,11 @@ function WithdrawFlow({
1137
1143
  },
1138
1144
  [logFlowError, onLifecycleRef, storeApi]
1139
1145
  );
1140
- const targetChainOptions = _react.useMemo.call(void 0,
1141
- () => _chunkH577RJN5cjs.SOURCE_CHAINS.filter(
1142
- (chain) => _chunkH577RJN5cjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
1143
- ),
1144
- []
1145
- );
1146
+ const targetChainOptions = _chunkZQR36NCVcjs.useDestinationChains.call(void 0, );
1147
+ const targetTokensFor = _chunkZQR36NCVcjs.useTargetTokens.call(void 0, );
1146
1148
  const targetTokenOptions = _react.useMemo.call(void 0,
1147
- () => _chunkH577RJN5cjs.getSupportedTargetTokens.call(void 0, targetChain),
1148
- [targetChain]
1149
+ () => targetTokensFor(targetChain),
1150
+ [targetChain, targetTokensFor]
1149
1151
  );
1150
1152
  _react.useEffect.call(void 0, () => {
1151
1153
  if (targetTokenOptions.length === 0) return;
@@ -1157,7 +1159,7 @@ function WithdrawFlow({
1157
1159
  const handleTargetChainChange = _react.useCallback.call(void 0,
1158
1160
  (chainId) => {
1159
1161
  setTargetChain(chainId);
1160
- const options = _chunkH577RJN5cjs.getSupportedTargetTokens.call(void 0, chainId);
1162
+ const options = targetTokensFor(chainId);
1161
1163
  if (options.length === 0) return;
1162
1164
  const currentlySupported = options.some(
1163
1165
  (option) => option.address.toLowerCase() === targetToken.toLowerCase()
@@ -1166,7 +1168,7 @@ function WithdrawFlow({
1166
1168
  currentlySupported ? targetToken : options[0].address
1167
1169
  );
1168
1170
  },
1169
- [targetToken]
1171
+ [targetToken, targetTokensFor]
1170
1172
  );
1171
1173
  const handleTargetTokenChange = _react.useCallback.call(void 0, (token) => {
1172
1174
  setTargetToken(token);
@@ -1214,7 +1216,7 @@ function WithdrawFlow({
1214
1216
  }
1215
1217
  ),
1216
1218
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1217
- _chunkA42XAHIBcjs.ProcessingStep,
1219
+ _chunkHUHBNYD3cjs.ProcessingStep,
1218
1220
  {
1219
1221
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1220
1222
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1284,22 +1286,22 @@ function WithdrawModal({
1284
1286
  // one only ever applied to the deposit flow.
1285
1287
  ...removedProps
1286
1288
  }) {
1287
- _chunkA42XAHIBcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1288
- _chunkPUJHXHRAcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1289
+ _chunkHUHBNYD3cjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1290
+ _chunkZQR36NCVcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1289
1291
  const modalRef = _react.useRef.call(void 0, null);
1290
- const onReadyRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onReady);
1292
+ const onReadyRef = _chunkZQR36NCVcjs.useLatestRef.call(void 0, onReady);
1291
1293
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1292
1294
  void 0
1293
1295
  );
1294
- const targetChain = _chunkH577RJN5cjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
1295
- const sourceChain = _chunkH577RJN5cjs.getChainId.call(void 0, sourceChainProp);
1296
- const rpcUrls = _chunkPUJHXHRAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1296
+ const targetChain = _chunkTENL4H64cjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
1297
+ const sourceChain = _chunkTENL4H64cjs.getChainId.call(void 0, sourceChainProp);
1298
+ const rpcUrls = _chunkZQR36NCVcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1297
1299
  const service = _react.useMemo.call(void 0,
1298
- () => _chunkPUJHXHRAcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1300
+ () => _chunkZQR36NCVcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1299
1301
  [backendUrl, debug]
1300
1302
  );
1301
1303
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1302
- const onErrorRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onError);
1304
+ const onErrorRef = _chunkZQR36NCVcjs.useLatestRef.call(void 0, onError);
1303
1305
  _react.useEffect.call(void 0, () => {
1304
1306
  if (isOpen && typeof onSendTransaction !== "function") {
1305
1307
  _optionalChain([onErrorRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34({
@@ -1310,7 +1312,7 @@ function WithdrawModal({
1310
1312
  }, [isOpen, onSendTransaction, onErrorRef]);
1311
1313
  _react.useEffect.call(void 0, () => {
1312
1314
  if (isOpen && modalRef.current) {
1313
- _chunkPUJHXHRAcjs.applyTheme.call(void 0, modalRef.current, theme);
1315
+ _chunkZQR36NCVcjs.applyTheme.call(void 0, modalRef.current, theme);
1314
1316
  }
1315
1317
  }, [isOpen, theme]);
1316
1318
  _react.useEffect.call(void 0, () => {
@@ -1328,8 +1330,8 @@ function WithdrawModal({
1328
1330
  }, []);
1329
1331
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _37 => _37.showBackButton]), () => ( true));
1330
1332
  const canGoBack = backHandler !== void 0;
1331
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1332
- _chunkPUJHXHRAcjs.Modal,
1333
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1334
+ _chunkZQR36NCVcjs.Modal,
1333
1335
  {
1334
1336
  isOpen,
1335
1337
  onClose,
@@ -1345,7 +1347,7 @@ function WithdrawModal({
1345
1347
  className: "rs-modal-header-back",
1346
1348
  "aria-label": "Go back",
1347
1349
  onClick: backHandler,
1348
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronLeftIcon, {})
1350
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.ChevronLeftIcon, {})
1349
1351
  }
1350
1352
  ) }),
1351
1353
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1355,7 +1357,7 @@ function WithdrawModal({
1355
1357
  onClick: onClose,
1356
1358
  className: "rs-modal-close",
1357
1359
  "aria-label": "Close",
1358
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
1360
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZQR36NCVcjs.CloseIcon, {})
1359
1361
  }
1360
1362
  ) })
1361
1363
  ] }),
@@ -1382,7 +1384,7 @@ function WithdrawModal({
1382
1384
  )
1383
1385
  ] })
1384
1386
  }
1385
- ) }) });
1387
+ ) }) }) });
1386
1388
  }
1387
1389
 
1388
1390
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cdnIconUrl
3
- } from "./chunk-A223BLVC.mjs";
3
+ } from "./chunk-53IFZGSF.mjs";
4
4
 
5
5
  // src/core/dapp-imports/polymarket/constants.ts
6
6
  var POLYMARKET_POLYGON_CHAIN_ID = 137;
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  ListRow
3
- } from "./chunk-KW32UBUQ.mjs";
3
+ } from "./chunk-V6T7LORJ.mjs";
4
4
  import {
5
5
  AlertTriangleIcon,
6
6
  BodyHeader,
7
7
  Button,
8
8
  Callout,
9
9
  CdnIcon,
10
+ ChainCatalogProvider,
10
11
  CheckIcon,
11
12
  ChevronLeftIcon,
12
13
  CloseIcon,
@@ -24,20 +25,20 @@ import {
24
25
  debugLog,
25
26
  formatTokenAmount,
26
27
  formatUserError,
28
+ useExplorerTxUrl,
27
29
  useLatestRef,
28
30
  useStableRpcUrls
29
- } from "./chunk-7TV7GLJB.mjs";
31
+ } from "./chunk-CWGUBFJL.mjs";
30
32
  import {
31
33
  SERVICE_HEADERS
32
- } from "./chunk-5OEWGJR4.mjs";
34
+ } from "./chunk-URFSTNRS.mjs";
33
35
  import {
34
36
  getChainIcon,
35
37
  getChainName,
36
- getExplorerTxUrl,
37
38
  getTokenDecimalsByAddress,
38
39
  getTokenSymbol,
39
40
  tokenIconUrl
40
- } from "./chunk-A223BLVC.mjs";
41
+ } from "./chunk-53IFZGSF.mjs";
41
42
 
42
43
  // src/ClaimModal.tsx
43
44
  import {
@@ -362,7 +363,7 @@ function ClaimModal({
362
363
  }, [state.step, onClose]);
363
364
  const canGoBack = state.step === "select" || state.step === "review" || state.step === "failed";
364
365
  const showBackButton = uiConfig?.showBackButton ?? true;
365
- return /* @__PURE__ */ jsx2(RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ jsx2(
366
+ return /* @__PURE__ */ jsx2(RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ jsx2(ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ jsx2(
366
367
  Modal,
367
368
  {
368
369
  isOpen,
@@ -415,7 +416,7 @@ function ClaimModal({
415
416
  ) })
416
417
  ] })
417
418
  }
418
- ) });
419
+ ) }) });
419
420
  }
420
421
  function ClaimBody({
421
422
  state,
@@ -715,6 +716,7 @@ function ReviewStep({
715
716
  onSubmit
716
717
  }) {
717
718
  const { chainId, symbol, amount, chainName, chainIcon } = describeDeposit(deposit);
719
+ const explorerTxUrl = useExplorerTxUrl();
718
720
  const [destination, setDestination] = useState(defaultRefundDestination ?? "");
719
721
  const destinationValid = isAddress(destination);
720
722
  return /* @__PURE__ */ jsxs2("div", { className: "rs-screen", children: [
@@ -749,7 +751,7 @@ function ReviewStep({
749
751
  /* @__PURE__ */ jsxs2("div", { className: "rs-review-detail-row", children: [
750
752
  /* @__PURE__ */ jsx2("span", { children: "Deposit transaction" }),
751
753
  (() => {
752
- const url = deposit.txHash ? getExplorerTxUrl(chainId, deposit.txHash) : null;
754
+ const url = deposit.txHash ? explorerTxUrl(chainId, deposit.txHash) : null;
753
755
  const short = deposit.txHash ? shortenHash(deposit.txHash) : "\u2014";
754
756
  return url ? /* @__PURE__ */ jsxs2(
755
757
  "a",
@@ -800,6 +802,7 @@ function ResultStep({
800
802
  onRetry
801
803
  }) {
802
804
  const success = !!result;
805
+ const explorerTxUrl = useExplorerTxUrl();
803
806
  return /* @__PURE__ */ jsxs2("div", { className: "rs-screen", children: [
804
807
  /* @__PURE__ */ jsxs2("div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
805
808
  /* @__PURE__ */ jsx2(
@@ -830,7 +833,7 @@ function ResultStep({
830
833
  /* @__PURE__ */ jsxs2("div", { className: "rs-review-detail-row", children: [
831
834
  /* @__PURE__ */ jsx2("span", { children: "Transaction" }),
832
835
  (() => {
833
- const url = getExplorerTxUrl(result.chain, result.txHash);
836
+ const url = explorerTxUrl(result.chain, result.txHash);
834
837
  const short = shortenHash(result.txHash);
835
838
  return url ? /* @__PURE__ */ jsxs2(
836
839
  "a",