@rhinestone/deposit-modal 0.0.0-dev-20260730162231 → 0.0.0-dev-20260730164233

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 (30) hide show
  1. package/README.md +42 -26
  2. package/dist/{DepositModalReown-JXORGWM6.cjs → DepositModalReown-FKY37G6Q.cjs} +9 -9
  3. package/dist/{DepositModalReown-B6SUS32X.mjs → DepositModalReown-HNMO4FME.mjs} +5 -5
  4. package/dist/{chunk-O75XVNZU.cjs → chunk-4JJBXHZI.cjs} +57 -57
  5. package/dist/{chunk-FBSOVQXC.mjs → chunk-6U3R65KU.mjs} +1 -1
  6. package/dist/{chunk-FPQUF4VU.mjs → chunk-AHP7YYDG.mjs} +2 -2
  7. package/dist/{chunk-CWHMVCIT.cjs → chunk-BDQTLOAB.cjs} +1 -1
  8. package/dist/{chunk-BIQ67JYS.mjs → chunk-BU2DG5D5.mjs} +23 -23
  9. package/dist/{chunk-JCX6D7EL.mjs → chunk-CK4DSIJ7.mjs} +12 -6
  10. package/dist/{chunk-LVB23D72.cjs → chunk-CXELEBVF.cjs} +52 -52
  11. package/dist/{chunk-DCWJQUYU.cjs → chunk-EALQRWVR.cjs} +3 -3
  12. package/dist/{chunk-TLSVC7AS.mjs → chunk-EPT3FGXK.mjs} +3 -3
  13. package/dist/{chunk-SN7FVQT7.mjs → chunk-IL6G4Q6M.mjs} +1 -1
  14. package/dist/{chunk-CW2XPYHI.cjs → chunk-K77RZMPN.cjs} +79 -73
  15. package/dist/{chunk-7H3URH7Y.cjs → chunk-TAEIIHZM.cjs} +421 -421
  16. package/dist/{chunk-O6J3YLHR.cjs → chunk-VUEHKNZI.cjs} +21 -21
  17. package/dist/{chunk-6A6TQYC5.mjs → chunk-ZVDJDYZ2.mjs} +1 -1
  18. package/dist/claim.cjs +5 -5
  19. package/dist/claim.mjs +4 -4
  20. package/dist/constants.cjs +2 -2
  21. package/dist/constants.d.cts +1 -1
  22. package/dist/constants.d.ts +1 -1
  23. package/dist/constants.mjs +1 -1
  24. package/dist/deposit.cjs +6 -6
  25. package/dist/deposit.mjs +5 -5
  26. package/dist/index.cjs +8 -8
  27. package/dist/index.mjs +7 -7
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
package/README.md CHANGED
@@ -2,10 +2,34 @@
2
2
 
3
3
  React modal for cross-chain deposits and withdrawals via Rhinestone smart accounts.
4
4
 
5
+ **[Documentation](https://docs.rhinestone.dev/deposits/widget/quickstart)** ·
6
+ [Deposit modal](https://docs.rhinestone.dev/deposits/widget/deposit-modal) ·
7
+ [Withdraw modal](https://docs.rhinestone.dev/deposits/widget/withdraw-modal) ·
8
+ [Claim modal](https://docs.rhinestone.dev/deposits/widget/claim-modal) ·
9
+ [Backend proxy](https://docs.rhinestone.dev/deposits/widget/backend) ·
10
+ [Migration guide](https://docs.rhinestone.dev/deposits/widget/migration)
11
+
12
+ This README covers the common integrations. The full props reference lives in the
13
+ docs.
14
+
5
15
  ## Install
6
16
 
7
17
  ```bash
8
- npm install @rhinestone/deposit-modal viem
18
+ npm install @rhinestone/deposit-modal viem wagmi @tanstack/react-query
19
+ ```
20
+
21
+ Add Reown only if you want the modal to connect the wallet itself — these are
22
+ optional peers, so skip them when you pass your own `walletClient` or run a flow
23
+ with no wallet:
24
+
25
+ ```bash
26
+ npm install @reown/appkit @reown/appkit-adapter-wagmi
27
+ ```
28
+
29
+ For Solana sources or destinations:
30
+
31
+ ```bash
32
+ npm install @reown/appkit-adapter-solana @solana/web3.js @solana/spl-token
9
33
  ```
10
34
 
11
35
  ### Content Security Policy
@@ -130,18 +154,8 @@ funds has no user key and cannot sign for its own refund. But the deposit's
130
154
  holds. So that is what authorizes the recovery.
131
155
 
132
156
  `signRecovery` is handed the exact typed data to sign plus the `signer` address the
133
- processor will verify against, and returns a signature:
134
-
135
- ```tsx
136
- <ClaimModal
137
- isOpen={isOpen}
138
- onClose={() => setIsOpen(false)}
139
- backendUrl={process.env.NEXT_PUBLIC_DEPOSIT_PROXY_URL}
140
- signRecovery={({ typedData }) => wallet.signTypedData(typedData)}
141
- />
142
- ```
143
-
144
- Return whatever that address's own verifier accepts:
157
+ processor will verify against, and returns a signature. Return whatever that
158
+ address's own verifier accepts:
145
159
 
146
160
  | recipient is | return |
147
161
  |---|---|
@@ -158,6 +172,11 @@ straight from the browser through your `deposit-widget-proxy`, which adds only t
158
172
  project API key — and that key cannot move funds through this route without a valid
159
173
  signature, so there is no privilege for a page to borrow.
160
174
 
175
+ **Your proxy must forward `POST /deposits/recover`**, alongside the `GET /deposits`
176
+ used for the lookup. Both are in the
177
+ [reference proxy](https://docs.rhinestone.dev/deposits/widget/backend); a proxy
178
+ missing the recover route 404s the claim rather than degrading.
179
+
161
180
  Two properties fall out of signing that are worth knowing:
162
181
 
163
182
  - **The destination is inside the signed struct.** The processor cannot pay anywhere
@@ -191,9 +210,9 @@ export const POST = createRefundHandler({
191
210
  ```
192
211
 
193
212
  The modal does not drive this path — you'd build that UI yourself, or route the user
194
- to support.
195
-
196
- `GET /deposits` still needs to be proxied for the lookup step, as before.
213
+ to support. Do **not** proxy `POST /deposits/refund`: unlike recover it carries no
214
+ proof of who is asking, so forwarding it with your API key attached would let anyone
215
+ return any of your recoverable deposits to an address they chose.
197
216
 
198
217
  ## Fiat on-ramp (Swapped)
199
218
 
@@ -263,19 +282,16 @@ Flow: user picks Fund from Exchange → backend returns supported exchanges + lo
263
282
  | ------------------------ | --------- | ------- | ----------- |
264
283
  | `enableExchangeConnect` | `boolean` | `false` | Show the "Fund from Exchange" row. Requires backend Swapped keys. Needs no wallet. Can be combined with `enableFiatOnramp`. |
265
284
 
266
- ## Releasing
267
-
268
- Releases are driven by [changesets](https://github.com/changesets/changesets) and two GitHub Actions workflows (`.github/workflows/`).
285
+ ## Upgrading
269
286
 
270
- - **Every PR** that changes published behaviour should include a changeset: run `bun run changeset`, pick the bump, and commit the generated `.changeset/*.md`.
271
- - **Merge to `main` → `@dev` snapshot.** The `Release` workflow publishes a snapshot to npm under the `dev` tag (`npm install @rhinestone/deposit-modal@dev`). Snapshots are only published when there are pending changesets.
272
- - **Stable release → `release` branch.** Merge `main` into `release`. The `changesets/action` opens a "Release" PR that bumps the version, writes the changelog, and consumes the changeset files. Merging that PR publishes `@latest` to npm and creates the git tag.
287
+ Upgrading from 0.8.x is a breaking change on both modals. See
288
+ [`MIGRATION.md`](./MIGRATION.md), or the same guide
289
+ [in the docs](https://docs.rhinestone.dev/deposits/widget/migration).
273
290
 
274
- Publishing uses npm [OIDC trusted publishing](https://docs.npmjs.com/trusted-publishers) (no stored token). Prerequisites in the `rhinestonewtf/deposit-modal` repo / npm package:
291
+ ## Contributing
275
292
 
276
- - `@rhinestone/deposit-modal` configured as a trusted publisher on npmjs.com (GitHub Actions, repo `rhinestonewtf/deposit-modal`, workflow `release.yaml`).
277
- - `APP_ID` / `APP_PRIVATE_KEY` secrets for the `rhinestone-automations` GitHub App (opens the Release PR).
278
- - A `release` branch and a `ship` label.
293
+ Local setup, the release process and where the docs live are in
294
+ [`CONTRIBUTING.md`](./CONTRIBUTING.md).
279
295
 
280
296
  ## License
281
297
 
@@ -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 _chunk7H3URH7Ycjs = require('./chunk-7H3URH7Y.cjs');
4
- require('./chunk-CW2XPYHI.cjs');
5
- require('./chunk-DCWJQUYU.cjs');
3
+ var _chunkTAEIIHZMcjs = require('./chunk-TAEIIHZM.cjs');
4
+ require('./chunk-K77RZMPN.cjs');
5
+ require('./chunk-EALQRWVR.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkO6J3YLHRcjs = require('./chunk-O6J3YLHR.cjs');
10
- require('./chunk-CWHMVCIT.cjs');
9
+ var _chunkVUEHKNZIcjs = require('./chunk-VUEHKNZI.cjs');
10
+ require('./chunk-BDQTLOAB.cjs');
11
11
  require('./chunk-YEBXUUH3.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, _chunkO6J3YLHRcjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunkVUEHKNZIcjs.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(_chunkO6J3YLHRcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunkVUEHKNZIcjs.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 (_chunkO6J3YLHRcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunkVUEHKNZIcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
193
193
  throw new Error(
194
194
  `Switch to ${_chunkH577RJN5cjs.getChainName.call(void 0, chainId)} in your wallet to continue`
195
195
  );
@@ -223,7 +223,7 @@ function DepositModalWithReown(props) {
223
223
  reown.disconnect();
224
224
  }, [reown.disconnect]);
225
225
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
226
- _chunk7H3URH7Ycjs.DepositModalInner,
226
+ _chunkTAEIIHZMcjs.DepositModalInner,
227
227
  {
228
228
  ...props,
229
229
  reownWallet: reownWithSolana,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-BIQ67JYS.mjs";
4
- import "./chunk-JCX6D7EL.mjs";
5
- import "./chunk-FBSOVQXC.mjs";
3
+ } from "./chunk-BU2DG5D5.mjs";
4
+ import "./chunk-CK4DSIJ7.mjs";
5
+ import "./chunk-6U3R65KU.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-6A6TQYC5.mjs";
10
- import "./chunk-SN7FVQT7.mjs";
9
+ } from "./chunk-ZVDJDYZ2.mjs";
10
+ import "./chunk-IL6G4Q6M.mjs";
11
11
  import "./chunk-ILT2PITN.mjs";
12
12
  import {
13
13
  SUPPORTED_CHAINS,
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkCW2XPYHIcjs = require('./chunk-CW2XPYHI.cjs');
7
+ var _chunkK77RZMPNcjs = require('./chunk-K77RZMPN.cjs');
8
8
 
9
9
 
10
10
 
@@ -34,7 +34,7 @@ var _chunkCW2XPYHIcjs = require('./chunk-CW2XPYHI.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunkO6J3YLHRcjs = require('./chunk-O6J3YLHR.cjs');
37
+ var _chunkVUEHKNZIcjs = require('./chunk-VUEHKNZI.cjs');
38
38
 
39
39
 
40
40
 
@@ -257,7 +257,7 @@ function WithdrawFormStep({
257
257
  return;
258
258
  }
259
259
  try {
260
- const bal = _chunkO6J3YLHRcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
260
+ const bal = _chunkVUEHKNZIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
261
261
  address: asset.token,
262
262
  abi: _viem.erc20Abi,
263
263
  functionName: "balanceOf",
@@ -362,7 +362,7 @@ function WithdrawFormStep({
362
362
  await onSubmit(recipient, amount);
363
363
  } catch (err) {
364
364
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
365
- setError(_chunkO6J3YLHRcjs.formatUserError.call(void 0, raw));
365
+ setError(_chunkVUEHKNZIcjs.formatUserError.call(void 0, raw));
366
366
  } finally {
367
367
  setIsSubmitting(false);
368
368
  }
@@ -378,16 +378,16 @@ function WithdrawFormStep({
378
378
  if (isBalanceLoading) {
379
379
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
380
380
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
381
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.Spinner, { className: "rs-spinner--lg" }),
381
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.Spinner, { className: "rs-spinner--lg" }),
382
382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
383
383
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
384
384
  ] }),
385
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.PoweredBy, {})
385
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.PoweredBy, {})
386
386
  ] });
387
387
  }
388
388
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
389
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
391
391
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
392
392
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
393
393
  "label",
@@ -447,7 +447,7 @@ function WithdrawFormStep({
447
447
  ) })
448
448
  ] }),
449
449
  /* @__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 ? `~${_chunkO6J3YLHRcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
450
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkVUEHKNZIcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
451
451
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
452
452
  "Balance: ",
453
453
  formattedBalance,
@@ -478,7 +478,7 @@ function WithdrawFormStep({
478
478
  children: [
479
479
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
480
480
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
481
- _chunkO6J3YLHRcjs.CdnIcon,
481
+ _chunkVUEHKNZIcjs.CdnIcon,
482
482
  {
483
483
  src: _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain),
484
484
  alt: targetChainName,
@@ -488,7 +488,7 @@ function WithdrawFormStep({
488
488
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
489
489
  ] }),
490
490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
491
- _chunkO6J3YLHRcjs.ChevronDownIcon,
491
+ _chunkVUEHKNZIcjs.ChevronDownIcon,
492
492
  {
493
493
  className: "rs-withdraw-dropdown-arrow",
494
494
  style: {
@@ -510,7 +510,7 @@ function WithdrawFormStep({
510
510
  },
511
511
  children: [
512
512
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
513
- _chunkO6J3YLHRcjs.CdnIcon,
513
+ _chunkVUEHKNZIcjs.CdnIcon,
514
514
  {
515
515
  src: _chunkH577RJN5cjs.getChainIcon.call(void 0, chain.id),
516
516
  alt: chain.name,
@@ -547,7 +547,7 @@ function WithdrawFormStep({
547
547
  children: [
548
548
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
549
549
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
550
- _chunkO6J3YLHRcjs.TokenIcon,
550
+ _chunkVUEHKNZIcjs.TokenIcon,
551
551
  {
552
552
  symbol: targetSymbol,
553
553
  className: "rs-withdraw-dropdown-icon"
@@ -556,7 +556,7 @@ function WithdrawFormStep({
556
556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
557
557
  ] }),
558
558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
559
- _chunkO6J3YLHRcjs.ChevronDownIcon,
559
+ _chunkVUEHKNZIcjs.ChevronDownIcon,
560
560
  {
561
561
  className: "rs-withdraw-dropdown-arrow",
562
562
  style: {
@@ -578,7 +578,7 @@ function WithdrawFormStep({
578
578
  },
579
579
  children: [
580
580
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
581
- _chunkO6J3YLHRcjs.TokenIcon,
581
+ _chunkVUEHKNZIcjs.TokenIcon,
582
582
  {
583
583
  symbol: option.symbol,
584
584
  className: "rs-withdraw-dropdown-icon"
@@ -594,10 +594,10 @@ function WithdrawFormStep({
594
594
  )
595
595
  ] })
596
596
  ] }),
597
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.Callout, { variant: "error", children: error }),
598
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.Callout, { variant: "error", children: registrationError }),
597
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.Callout, { variant: "error", children: error }),
598
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.Callout, { variant: "error", children: registrationError }),
599
599
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
600
- _chunkO6J3YLHRcjs.Button,
600
+ _chunkVUEHKNZIcjs.Button,
601
601
  {
602
602
  onClick: handleWithdraw,
603
603
  fullWidth: true,
@@ -607,7 +607,7 @@ function WithdrawFormStep({
607
607
  }
608
608
  )
609
609
  ] }),
610
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.PoweredBy, {})
610
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.PoweredBy, {})
611
611
  ] });
612
612
  }
613
613
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -641,16 +641,16 @@ function WithdrawReviewStep({
641
641
  const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
642
642
  const targetChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain);
643
643
  const amountNumber = Number(amount);
644
- const formattedSendAmount = _nullishCoalesce(_chunkO6J3YLHRcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
645
- const prices = _chunkCW2XPYHIcjs.useTokenPrices.call(void 0, service, [
644
+ const formattedSendAmount = _nullishCoalesce(_chunkVUEHKNZIcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
645
+ const prices = _chunkK77RZMPNcjs.useTokenPrices.call(void 0, service, [
646
646
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
647
647
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
648
648
  ]);
649
- const receiveDisplay = _nullishCoalesce(_chunkO6J3YLHRcjs.formatReceiveEstimate.call(void 0, {
649
+ const receiveDisplay = _nullishCoalesce(_chunkVUEHKNZIcjs.formatReceiveEstimate.call(void 0, {
650
650
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
651
651
  sourceSymbol,
652
652
  targetSymbol,
653
- sourceTrusted: _chunkO6J3YLHRcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
653
+ sourceTrusted: _chunkVUEHKNZIcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
654
654
  prices
655
655
  }), () => ( // No price for the target token — an honest dash beats a wrong number.
656
656
  "\u2014"));
@@ -661,7 +661,7 @@ function WithdrawReviewStep({
661
661
  await onConfirm();
662
662
  } catch (err) {
663
663
  const raw = err instanceof Error ? err.message : "Withdraw failed";
664
- const message = _chunkO6J3YLHRcjs.formatUserError.call(void 0, raw);
664
+ const message = _chunkVUEHKNZIcjs.formatUserError.call(void 0, raw);
665
665
  setError(message);
666
666
  _optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR")]);
667
667
  } finally {
@@ -672,9 +672,9 @@ function WithdrawReviewStep({
672
672
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
673
673
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
674
674
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
675
- _chunkO6J3YLHRcjs.BodyHeader,
675
+ _chunkVUEHKNZIcjs.BodyHeader,
676
676
  {
677
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.CircleArrowOutUpLeftIcon, {}),
677
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.CircleArrowOutUpLeftIcon, {}),
678
678
  title: "Review withdrawal"
679
679
  }
680
680
  ),
@@ -687,14 +687,14 @@ function WithdrawReviewStep({
687
687
  " ",
688
688
  sourceSymbol
689
689
  ] }),
690
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.TokenIcon, { symbol: sourceSymbol }) })
690
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.TokenIcon, { symbol: sourceSymbol }) })
691
691
  ] })
692
692
  ] }),
693
693
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
694
694
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
695
695
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
696
696
  /* @__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, _chunkO6J3YLHRcjs.CdnIcon, { src: sourceChainIcon }) })
697
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.CdnIcon, { src: sourceChainIcon }) })
698
698
  ] })
699
699
  ] }),
700
700
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -705,14 +705,14 @@ function WithdrawReviewStep({
705
705
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
706
706
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
707
707
  /* @__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, _chunkO6J3YLHRcjs.TokenIcon, { symbol: targetSymbol }) })
708
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.TokenIcon, { symbol: targetSymbol }) })
709
709
  ] })
710
710
  ] }),
711
711
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
712
712
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
713
713
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
714
714
  /* @__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, _chunkO6J3YLHRcjs.CdnIcon, { src: targetChainIcon }) })
715
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.CdnIcon, { src: targetChainIcon }) })
716
716
  ] })
717
717
  ] }),
718
718
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -720,10 +720,10 @@ function WithdrawReviewStep({
720
720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
721
721
  ] })
722
722
  ] }),
723
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.Callout, { variant: "error", children: error }),
724
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.Callout, { variant: "error", children: registrationError }),
723
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.Callout, { variant: "error", children: error }),
724
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.Callout, { variant: "error", children: registrationError }),
725
725
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
726
- _chunkO6J3YLHRcjs.Button,
726
+ _chunkVUEHKNZIcjs.Button,
727
727
  {
728
728
  onClick: handleConfirm,
729
729
  loading: isSubmitting,
@@ -734,7 +734,7 @@ function WithdrawReviewStep({
734
734
  }
735
735
  )
736
736
  ] }),
737
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.PoweredBy, {})
737
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.PoweredBy, {})
738
738
  ] });
739
739
  }
740
740
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -767,11 +767,11 @@ function WithdrawFlow({
767
767
  onError,
768
768
  debug
769
769
  }) {
770
- const rpcUrls = _chunkO6J3YLHRcjs.useRpcUrls.call(void 0, );
771
- const onStepChangeRef = _chunkO6J3YLHRcjs.useLatestRef.call(void 0, onStepChange);
772
- const onEventRef = _chunkO6J3YLHRcjs.useLatestRef.call(void 0, onEvent);
773
- const onLifecycleRef = _chunkO6J3YLHRcjs.useLatestRef.call(void 0, onLifecycle);
774
- const onErrorRef = _chunkO6J3YLHRcjs.useLatestRef.call(void 0, onError);
770
+ const rpcUrls = _chunkVUEHKNZIcjs.useRpcUrls.call(void 0, );
771
+ const onStepChangeRef = _chunkVUEHKNZIcjs.useLatestRef.call(void 0, onStepChange);
772
+ const onEventRef = _chunkVUEHKNZIcjs.useLatestRef.call(void 0, onEvent);
773
+ const onLifecycleRef = _chunkVUEHKNZIcjs.useLatestRef.call(void 0, onLifecycle);
774
+ const onErrorRef = _chunkVUEHKNZIcjs.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
- _chunkO6J3YLHRcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
785
+ _chunkVUEHKNZIcjs.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
- _chunkO6J3YLHRcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
791
+ _chunkVUEHKNZIcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
792
792
  },
793
793
  [debug]
794
794
  );
@@ -812,7 +812,7 @@ function WithdrawFlow({
812
812
  const flowStep = useWithdrawStore((s) => s.step);
813
813
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
814
814
  const publicClient = _react.useMemo.call(void 0,
815
- () => _chunkCW2XPYHIcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
815
+ () => _chunkK77RZMPNcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
816
816
  [sourceChain, rpcUrls]
817
817
  );
818
818
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
@@ -840,7 +840,7 @@ function WithdrawFlow({
840
840
  targetToken,
841
841
  recipient: recipientForRegistration
842
842
  });
843
- const salt = _chunkCW2XPYHIcjs.deriveAccountSalt.call(void 0, {
843
+ const salt = _chunkK77RZMPNcjs.deriveAccountSalt.call(void 0, {
844
844
  recipient: recipientForRegistration,
845
845
  targetChain,
846
846
  targetToken
@@ -870,7 +870,7 @@ function WithdrawFlow({
870
870
  } catch (err) {
871
871
  if (cancelled) return;
872
872
  const raw = err instanceof Error ? err.message : "Registration failed";
873
- const message = _chunkO6J3YLHRcjs.formatUserError.call(void 0, raw);
873
+ const message = _chunkVUEHKNZIcjs.formatUserError.call(void 0, raw);
874
874
  logFlowError("auto-register:failed", err, {
875
875
  accountAddress,
876
876
  targetChain,
@@ -904,7 +904,7 @@ function WithdrawFlow({
904
904
  const symbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
905
905
  const decimals = _chunkH577RJN5cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
906
906
  return {
907
- id: _chunkO6J3YLHRcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
907
+ id: _chunkVUEHKNZIcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
908
908
  chainId: sourceChain,
909
909
  token: sourceToken,
910
910
  symbol,
@@ -1084,7 +1084,7 @@ function WithdrawFlow({
1084
1084
  targetChain,
1085
1085
  targetToken
1086
1086
  });
1087
- handleError(_chunkO6J3YLHRcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1087
+ handleError(_chunkVUEHKNZIcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1088
1088
  throw err;
1089
1089
  }
1090
1090
  },
@@ -1214,7 +1214,7 @@ function WithdrawFlow({
1214
1214
  }
1215
1215
  ),
1216
1216
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1217
- _chunkCW2XPYHIcjs.ProcessingStep,
1217
+ _chunkK77RZMPNcjs.ProcessingStep,
1218
1218
  {
1219
1219
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1220
1220
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1284,22 +1284,22 @@ function WithdrawModal({
1284
1284
  // one only ever applied to the deposit flow.
1285
1285
  ...removedProps
1286
1286
  }) {
1287
- _chunkCW2XPYHIcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1288
- _chunkO6J3YLHRcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1287
+ _chunkK77RZMPNcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1288
+ _chunkVUEHKNZIcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1289
1289
  const modalRef = _react.useRef.call(void 0, null);
1290
- const onReadyRef = _chunkO6J3YLHRcjs.useLatestRef.call(void 0, onReady);
1290
+ const onReadyRef = _chunkVUEHKNZIcjs.useLatestRef.call(void 0, onReady);
1291
1291
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1292
1292
  void 0
1293
1293
  );
1294
1294
  const targetChain = _chunkH577RJN5cjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
1295
1295
  const sourceChain = _chunkH577RJN5cjs.getChainId.call(void 0, sourceChainProp);
1296
- const rpcUrls = _chunkO6J3YLHRcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1296
+ const rpcUrls = _chunkVUEHKNZIcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1297
1297
  const service = _react.useMemo.call(void 0,
1298
- () => _chunkO6J3YLHRcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1298
+ () => _chunkVUEHKNZIcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1299
1299
  [backendUrl, debug]
1300
1300
  );
1301
1301
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1302
- const onErrorRef = _chunkO6J3YLHRcjs.useLatestRef.call(void 0, onError);
1302
+ const onErrorRef = _chunkVUEHKNZIcjs.useLatestRef.call(void 0, onError);
1303
1303
  _react.useEffect.call(void 0, () => {
1304
1304
  if (isOpen && typeof onSendTransaction !== "function") {
1305
1305
  _optionalChain([onErrorRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34({
@@ -1310,7 +1310,7 @@ function WithdrawModal({
1310
1310
  }, [isOpen, onSendTransaction, onErrorRef]);
1311
1311
  _react.useEffect.call(void 0, () => {
1312
1312
  if (isOpen && modalRef.current) {
1313
- _chunkO6J3YLHRcjs.applyTheme.call(void 0, modalRef.current, theme);
1313
+ _chunkVUEHKNZIcjs.applyTheme.call(void 0, modalRef.current, theme);
1314
1314
  }
1315
1315
  }, [isOpen, theme]);
1316
1316
  _react.useEffect.call(void 0, () => {
@@ -1328,8 +1328,8 @@ function WithdrawModal({
1328
1328
  }, []);
1329
1329
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _37 => _37.showBackButton]), () => ( true));
1330
1330
  const canGoBack = backHandler !== void 0;
1331
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1332
- _chunkO6J3YLHRcjs.Modal,
1331
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1332
+ _chunkVUEHKNZIcjs.Modal,
1333
1333
  {
1334
1334
  isOpen,
1335
1335
  onClose,
@@ -1345,7 +1345,7 @@ function WithdrawModal({
1345
1345
  className: "rs-modal-header-back",
1346
1346
  "aria-label": "Go back",
1347
1347
  onClick: backHandler,
1348
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.ChevronLeftIcon, {})
1348
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.ChevronLeftIcon, {})
1349
1349
  }
1350
1350
  ) }),
1351
1351
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1355,7 +1355,7 @@ function WithdrawModal({
1355
1355
  onClick: onClose,
1356
1356
  className: "rs-modal-close",
1357
1357
  "aria-label": "Close",
1358
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO6J3YLHRcjs.CloseIcon, {})
1358
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUEHKNZIcjs.CloseIcon, {})
1359
1359
  }
1360
1360
  ) })
1361
1361
  ] }),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CdnIcon,
3
3
  ChevronRightIcon
4
- } from "./chunk-6A6TQYC5.mjs";
4
+ } from "./chunk-ZVDJDYZ2.mjs";
5
5
 
6
6
  // src/components/ui/ListRow.tsx
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -4,7 +4,7 @@ import {
4
4
  getPublicClient,
5
5
  useTokenPrices,
6
6
  warnRemovedProps
7
- } from "./chunk-JCX6D7EL.mjs";
7
+ } from "./chunk-CK4DSIJ7.mjs";
8
8
  import {
9
9
  BodyHeader,
10
10
  Button,
@@ -34,7 +34,7 @@ import {
34
34
  useLatestRef,
35
35
  useRpcUrls,
36
36
  useStableRpcUrls
37
- } from "./chunk-6A6TQYC5.mjs";
37
+ } from "./chunk-ZVDJDYZ2.mjs";
38
38
  import {
39
39
  NATIVE_TOKEN_ADDRESS,
40
40
  SOURCE_CHAINS,
@@ -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-20260730162231";
2
+ var MODAL_VERSION = "0.0.0-dev-20260730164233";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION