@rhinestone/deposit-modal 0.3.0-alpha.6 → 0.3.0-alpha.7

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 (36) hide show
  1. package/dist/{DepositModalReown-3N7YYGB4.mjs → DepositModalReown-42D5V5II.mjs} +8 -5
  2. package/dist/{DepositModalReown-SBSP5ZW2.cjs → DepositModalReown-ABLVMYFL.cjs} +9 -6
  3. package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-EVHN5NOF.mjs} +3 -3
  4. package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FJP3XTQ5.cjs} +4 -4
  5. package/dist/{chunk-QI6Q7V6O.mjs → chunk-3FHYC3K7.mjs} +26 -34
  6. package/dist/{chunk-EJH36TH2.mjs → chunk-44IFH7DZ.mjs} +1247 -916
  7. package/dist/{chunk-CTYKQ4B4.mjs → chunk-7VKAUBZ7.mjs} +201 -81
  8. package/dist/{chunk-BB6UVRAV.cjs → chunk-CPXERFGC.cjs} +110 -118
  9. package/dist/{chunk-DX2D2TRZ.cjs → chunk-ENMIKNXS.cjs} +241 -121
  10. package/dist/{chunk-UVIIWUWP.cjs → chunk-LEVCOJD6.cjs} +1193 -862
  11. package/dist/chunk-MHKHSCIA.cjs +554 -0
  12. package/dist/chunk-UCZXBHLH.mjs +554 -0
  13. package/dist/constants-DqVn968d.d.cts +52 -0
  14. package/dist/constants-DqVn968d.d.ts +52 -0
  15. package/dist/constants.cjs +8 -2
  16. package/dist/constants.d.cts +17 -48
  17. package/dist/constants.d.ts +17 -48
  18. package/dist/constants.mjs +7 -1
  19. package/dist/deposit.cjs +4 -4
  20. package/dist/deposit.d.cts +2 -2
  21. package/dist/deposit.d.ts +2 -2
  22. package/dist/deposit.mjs +3 -3
  23. package/dist/index.cjs +5 -5
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.mjs +4 -4
  27. package/dist/styles.css +180 -34
  28. package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
  29. package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
  30. package/dist/withdraw.cjs +4 -4
  31. package/dist/withdraw.d.cts +2 -2
  32. package/dist/withdraw.d.ts +2 -2
  33. package/dist/withdraw.mjs +3 -3
  34. package/package.json +1 -1
  35. package/dist/chunk-IVTXEYB2.cjs +0 -507
  36. package/dist/chunk-VA3ANS7D.mjs +0 -507
@@ -4,12 +4,14 @@ import {
4
4
  getChainIcon,
5
5
  getChainName,
6
6
  getExplorerTxUrl,
7
+ getSolanaTokenByMint,
7
8
  getSupportedChainIds,
9
+ getTargetTokenSymbol,
8
10
  getTokenAddress,
9
11
  getTokenDecimalsByAddress,
10
12
  getTokenIcon,
11
13
  getTokenSymbol
12
- } from "./chunk-VA3ANS7D.mjs";
14
+ } from "./chunk-UCZXBHLH.mjs";
13
15
 
14
16
  // src/components/ui/Modal.tsx
15
17
  import {
@@ -174,14 +176,14 @@ function TransferCryptoIcon() {
174
176
  {
175
177
  width: "24",
176
178
  height: "24",
177
- viewBox: "0 6 24 24",
179
+ viewBox: "8 8 24 24",
178
180
  fill: "none",
179
181
  xmlns: "http://www.w3.org/2000/svg",
180
182
  "aria-hidden": "true",
181
183
  children: /* @__PURE__ */ jsx2(
182
184
  "path",
183
185
  {
184
- d: "M18.0898 16.3701C19.0352 16.7225 19.8763 17.3076 20.5356 18.0713C21.1949 18.835 21.6509 19.7526 21.8616 20.7392C22.0723 21.7258 22.0307 22.7496 21.7409 23.716C21.451 24.6823 20.9222 25.5599 20.2033 26.2677C19.4844 26.9755 18.5986 27.4906 17.6278 27.7653C16.6571 28.0401 15.6327 28.0656 14.6495 27.8396C13.6663 27.6135 12.756 27.1432 12.0027 26.4721C11.2494 25.801 10.6775 24.9508 10.3398 24.0001M7 12H8V16M16.7098 19.8799L17.4098 20.5899L14.5898 23.4099M14 14C14 17.3137 11.3137 20 8 20C4.68629 20 2 17.3137 2 14C2 10.6863 4.68629 8 8 8C11.3137 8 14 10.6863 14 14Z",
186
+ d: "M26.0898 18.3701C27.0352 18.7225 27.8763 19.3076 28.5356 20.0713C29.1949 20.835 29.6509 21.7526 29.8616 22.7392C30.0723 23.7258 30.0307 24.7496 29.7409 25.716C29.451 26.6823 28.9222 27.5599 28.2033 28.2677C27.4844 28.9755 26.5986 29.4906 25.6278 29.7653C24.6571 30.0401 23.6327 30.0656 22.6495 29.8396C21.6663 29.6135 20.756 29.1432 20.0027 28.4721C19.2494 27.801 18.6775 26.9508 18.3398 26.0001M15 14H16V18M24.7098 21.8799L25.4098 22.5899L22.5898 25.4099M22 16C22 19.3137 19.3137 22 16 22C12.6863 22 10 19.3137 10 16C10 12.6863 12.6863 10 16 10C19.3137 10 22 12.6863 22 16Z",
185
187
  stroke: "currentColor",
186
188
  strokeWidth: "2",
187
189
  strokeLinecap: "round",
@@ -196,7 +198,6 @@ var ChevronLeftIcon = ChevronLeft;
196
198
  var ChevronDownIcon = ChevronDown;
197
199
  var CloseIcon = X;
198
200
  var HandCoinsIcon = HandCoins;
199
- var CoinsIcon = Coins;
200
201
  var HistoryIcon = History;
201
202
  var InfoIcon = Info;
202
203
  var CopyIcon = Copy;
@@ -266,6 +267,9 @@ var SOLANA_MAINNET_CAIP2 = `solana:${SOLANA_MAINNET_GENESIS}`;
266
267
  function toEvmCaip2(chainId) {
267
268
  return `eip155:${chainId}`;
268
269
  }
270
+ function targetChainToCaip2(targetChain) {
271
+ return targetChain === "solana" ? SOLANA_MAINNET_CAIP2 : toEvmCaip2(targetChain);
272
+ }
269
273
  function parseEvmChainId(value) {
270
274
  if (typeof value === "number" && Number.isFinite(value)) {
271
275
  return value;
@@ -512,9 +516,9 @@ function createDepositService(baseUrl, options) {
512
516
  error,
513
517
  { status: response.status, ownerAddress: params.ownerAddress }
514
518
  );
515
- throw new Error(
516
- error.error || `Setup account failed: ${response.status}`
517
- );
519
+ const detail = Array.isArray(error.details) ? error.details.map((d) => d?.message).filter(Boolean).join("; ") : void 0;
520
+ const base = error.error || `Setup account failed: ${response.status}`;
521
+ throw new Error(detail ? `${base}: ${detail}` : base);
518
522
  }
519
523
  const normalized = normalizeSetupAccountResponse(await response.json());
520
524
  debugLog(debug, scope, "setupAccount:success", {
@@ -795,6 +799,46 @@ function createDepositService(baseUrl, options) {
795
799
  });
796
800
  return result;
797
801
  },
802
+ async submitPolymarketWithdraw(params) {
803
+ const { depositWallet, owner, nonce, deadline, calls, signature } = params;
804
+ const url = apiUrl(`/polymarket/withdraw`);
805
+ debugLog(debug, scope, "submitPolymarketWithdraw:request", {
806
+ url,
807
+ depositWallet,
808
+ owner,
809
+ nonce,
810
+ callCount: calls.length
811
+ });
812
+ const response = await fetch(url, {
813
+ method: "POST",
814
+ headers: { "Content-Type": "application/json" },
815
+ body: JSON.stringify({
816
+ depositWallet,
817
+ owner,
818
+ nonce,
819
+ deadline,
820
+ calls,
821
+ signature
822
+ })
823
+ });
824
+ if (!response.ok) {
825
+ const error = await response.json().catch(() => ({ error: "Unknown error" }));
826
+ debugError(debug, scope, "submitPolymarketWithdraw:failed", error, {
827
+ status: response.status,
828
+ depositWallet,
829
+ owner
830
+ });
831
+ throw new Error(
832
+ error.error || `Polymarket withdraw failed: ${response.status}`
833
+ );
834
+ }
835
+ const result = await response.json();
836
+ debugLog(debug, scope, "submitPolymarketWithdraw:success", {
837
+ depositWallet,
838
+ txHash: result?.txHash ? shortRef(result.txHash) : void 0
839
+ });
840
+ return result;
841
+ },
798
842
  async fetchDepositHistory(params) {
799
843
  const searchParams = new URLSearchParams({ recipient: params.recipient });
800
844
  searchParams.set("limit", String(params.limit ?? 20));
@@ -836,6 +880,16 @@ function createDepositService(baseUrl, options) {
836
880
  return { deposits, nextCursor };
837
881
  },
838
882
  async checkLiquidity(params) {
883
+ if (params.destinationChainId === "solana") {
884
+ const token = getSolanaTokenByMint(params.destinationToken);
885
+ return {
886
+ hasLiquidity: true,
887
+ symbol: token?.symbol ?? "Token",
888
+ decimals: token?.decimals ?? 9,
889
+ unlimited: true,
890
+ maxAmount: null
891
+ };
892
+ }
839
893
  const searchParams = new URLSearchParams({
840
894
  sourceChainId: String(params.sourceChainId),
841
895
  sourceToken: params.sourceToken,
@@ -878,6 +932,36 @@ function createDepositService(baseUrl, options) {
878
932
  maxAmount: result.maxAmount
879
933
  });
880
934
  return result;
935
+ },
936
+ async fetchPrices(symbols) {
937
+ const list = symbols.filter((s) => s.length > 0);
938
+ if (list.length === 0) return {};
939
+ const url = apiUrl(
940
+ `/prices?${new URLSearchParams({ symbols: list.join(",") }).toString()}`
941
+ );
942
+ try {
943
+ const response = await fetch(url, {
944
+ method: "GET",
945
+ headers: { "Content-Type": "application/json" },
946
+ cache: "no-store"
947
+ });
948
+ if (!response.ok) {
949
+ debugError(debug, scope, "fetchPrices:failed", {
950
+ status: response.status
951
+ });
952
+ return {};
953
+ }
954
+ const data = await response.json();
955
+ return Object.fromEntries(
956
+ Object.entries(data.prices ?? {}).map(([symbol, price]) => [
957
+ symbol.toUpperCase(),
958
+ price
959
+ ])
960
+ );
961
+ } catch (err) {
962
+ debugError(debug, scope, "fetchPrices:error", err);
963
+ return {};
964
+ }
881
965
  }
882
966
  };
883
967
  }
@@ -1663,7 +1747,7 @@ function ConnectStep({
1663
1747
  rows.map((row) => {
1664
1748
  const collapseToExternal = Boolean(onSelectTransferCrypto) && row.kind !== "solana";
1665
1749
  const subtitleText = row.state === "loading" ? "Preparing\u2026" : row.state === "error" ? row.errorReason ?? "Couldn't prepare wallet \u2014 tap to retry" : shorten(row.address);
1666
- const showInlineDisconnect = collapseToExternal && Boolean(onDisconnect) && row.state !== "loading";
1750
+ const showInlineDisconnect = Boolean(onSelectTransferCrypto) && Boolean(onDisconnect) && row.state !== "loading";
1667
1751
  return /* @__PURE__ */ jsx8(
1668
1752
  ListRow,
1669
1753
  {
@@ -1754,7 +1838,8 @@ var currencyFormatter = new Intl.NumberFormat("en-US", {
1754
1838
  maximumFractionDigits: 2
1755
1839
  });
1756
1840
  var tokenFormatter = new Intl.NumberFormat("en-US", {
1757
- maximumFractionDigits: 6
1841
+ minimumFractionDigits: 2,
1842
+ maximumFractionDigits: 5
1758
1843
  });
1759
1844
  function formatUserError(raw) {
1760
1845
  const lower = raw.toLowerCase();
@@ -1953,6 +2038,46 @@ function Tooltip({ content, children, className }) {
1953
2038
  }
1954
2039
  Tooltip.displayName = "Tooltip";
1955
2040
 
2041
+ // src/components/ui/Callout.tsx
2042
+ import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
2043
+ function CircleAlertIcon() {
2044
+ return /* @__PURE__ */ jsx11(
2045
+ "svg",
2046
+ {
2047
+ width: "16",
2048
+ height: "16",
2049
+ viewBox: "0 0 16 16",
2050
+ fill: "none",
2051
+ xmlns: "http://www.w3.org/2000/svg",
2052
+ "aria-hidden": "true",
2053
+ children: /* @__PURE__ */ jsx11(
2054
+ "path",
2055
+ {
2056
+ d: "M10 5.99992L6 9.99992M6 5.99992L10 9.99992M14.6667 7.99992C14.6667 11.6818 11.6819 14.6666 8 14.6666C4.3181 14.6666 1.33333 11.6818 1.33333 7.99992C1.33333 4.31802 4.3181 1.33325 8 1.33325C11.6819 1.33325 14.6667 4.31802 14.6667 7.99992Z",
2057
+ stroke: "currentColor",
2058
+ strokeWidth: "1.33333",
2059
+ strokeLinecap: "round",
2060
+ strokeLinejoin: "round"
2061
+ }
2062
+ )
2063
+ }
2064
+ );
2065
+ }
2066
+ function Callout({ variant = "error", children, role }) {
2067
+ return /* @__PURE__ */ jsxs9(
2068
+ "div",
2069
+ {
2070
+ className: `rs-callout rs-callout--${variant}`,
2071
+ role: role ?? (variant === "error" ? "alert" : "status"),
2072
+ children: [
2073
+ /* @__PURE__ */ jsx11("span", { className: "rs-callout-icon", children: variant === "error" ? /* @__PURE__ */ jsx11(CircleAlertIcon, {}) : /* @__PURE__ */ jsx11(AlertTriangleIcon, {}) }),
2074
+ /* @__PURE__ */ jsx11("span", { className: "rs-callout-text", children })
2075
+ ]
2076
+ }
2077
+ );
2078
+ }
2079
+ Callout.displayName = "Callout";
2080
+
1956
2081
  // src/core/webhook.ts
1957
2082
  function isRecord(value) {
1958
2083
  return typeof value === "object" && value !== null;
@@ -2039,9 +2164,9 @@ function txRefsMatch(a, b) {
2039
2164
  }
2040
2165
 
2041
2166
  // src/components/steps/ProcessingStep.tsx
2042
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
2167
+ import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
2043
2168
  function SuccessBadge() {
2044
- return /* @__PURE__ */ jsxs9(
2169
+ return /* @__PURE__ */ jsxs10(
2045
2170
  "svg",
2046
2171
  {
2047
2172
  width: "40",
@@ -2051,7 +2176,7 @@ function SuccessBadge() {
2051
2176
  xmlns: "http://www.w3.org/2000/svg",
2052
2177
  "aria-hidden": "true",
2053
2178
  children: [
2054
- /* @__PURE__ */ jsx11(
2179
+ /* @__PURE__ */ jsx12(
2055
2180
  "rect",
2056
2181
  {
2057
2182
  width: "40",
@@ -2060,7 +2185,7 @@ function SuccessBadge() {
2060
2185
  fill: "var(--rs-icon-wrapper-bg)"
2061
2186
  }
2062
2187
  ),
2063
- /* @__PURE__ */ jsx11(
2188
+ /* @__PURE__ */ jsx12(
2064
2189
  "path",
2065
2190
  {
2066
2191
  d: "M28 14L17 25L12 20",
@@ -2075,7 +2200,7 @@ function SuccessBadge() {
2075
2200
  );
2076
2201
  }
2077
2202
  function FailedBadge() {
2078
- return /* @__PURE__ */ jsxs9(
2203
+ return /* @__PURE__ */ jsxs10(
2079
2204
  "svg",
2080
2205
  {
2081
2206
  width: "40",
@@ -2085,8 +2210,8 @@ function FailedBadge() {
2085
2210
  xmlns: "http://www.w3.org/2000/svg",
2086
2211
  "aria-hidden": "true",
2087
2212
  children: [
2088
- /* @__PURE__ */ jsx11("rect", { width: "40", height: "40", rx: "8", fill: "#FB2C36" }),
2089
- /* @__PURE__ */ jsx11(
2213
+ /* @__PURE__ */ jsx12("rect", { width: "40", height: "40", rx: "8", fill: "#FB2C36" }),
2214
+ /* @__PURE__ */ jsx12(
2090
2215
  "path",
2091
2216
  {
2092
2217
  d: "M26 14L14 26M14 14L26 26",
@@ -2562,10 +2687,8 @@ function ProcessingStep({
2562
2687
  void delayPhaseId;
2563
2688
  void hasEscalatedDelay;
2564
2689
  const targetSymbol = (() => {
2565
- if (typeof targetToken === "string" && /^0x[a-fA-F0-9]{40}$/.test(targetToken)) {
2566
- return getTokenSymbol(targetToken, targetChain);
2567
- }
2568
- return providedSourceSymbol ?? "USDC";
2690
+ const resolved = getTargetTokenSymbol(targetToken, targetChain);
2691
+ return resolved !== "Token" ? resolved : providedSourceSymbol ?? "USDC";
2569
2692
  })();
2570
2693
  const targetTokenIcon = getTokenIcon(targetSymbol);
2571
2694
  const sourceChainIcon = getChainIcon(displaySourceChain);
@@ -2578,23 +2701,23 @@ function ProcessingStep({
2578
2701
  const feeTooltip = uiConfig?.feeTooltip ?? (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.");
2579
2702
  const stateTitle = isComplete ? `${flowCapitalized} successful` : isFailed ? `${flowCapitalized} failed` : "Processing...";
2580
2703
  const handleRetry = onRetry ?? onNewDeposit;
2581
- const headerContent = isComplete ? /* @__PURE__ */ jsxs9("div", { className: "rs-body-header", children: [
2582
- /* @__PURE__ */ jsx11(SuccessBadge, {}),
2583
- /* @__PURE__ */ jsx11("div", { className: "rs-body-header-text", children: /* @__PURE__ */ jsx11("h2", { className: "rs-body-header-title", children: stateTitle }) })
2584
- ] }) : isFailed ? /* @__PURE__ */ jsxs9("div", { className: "rs-body-header", children: [
2585
- /* @__PURE__ */ jsx11(FailedBadge, {}),
2586
- /* @__PURE__ */ jsx11("div", { className: "rs-body-header-text", children: /* @__PURE__ */ jsx11("h2", { className: "rs-body-header-title", children: stateTitle }) })
2587
- ] }) : /* @__PURE__ */ jsx11(BodyHeader, { icon: /* @__PURE__ */ jsx11(WalletIcon, {}), title: stateTitle });
2588
- return /* @__PURE__ */ jsxs9("div", { className: "rs-screen", children: [
2589
- /* @__PURE__ */ jsxs9("div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2704
+ const headerContent = isComplete ? /* @__PURE__ */ jsxs10("div", { className: "rs-body-header", children: [
2705
+ /* @__PURE__ */ jsx12(SuccessBadge, {}),
2706
+ /* @__PURE__ */ jsx12("div", { className: "rs-body-header-text", children: /* @__PURE__ */ jsx12("h2", { className: "rs-body-header-title", children: stateTitle }) })
2707
+ ] }) : isFailed ? /* @__PURE__ */ jsxs10("div", { className: "rs-body-header", children: [
2708
+ /* @__PURE__ */ jsx12(FailedBadge, {}),
2709
+ /* @__PURE__ */ jsx12("div", { className: "rs-body-header-text", children: /* @__PURE__ */ jsx12("h2", { className: "rs-body-header-title", children: stateTitle }) })
2710
+ ] }) : /* @__PURE__ */ jsx12(BodyHeader, { icon: /* @__PURE__ */ jsx12(WalletIcon, {}), title: stateTitle });
2711
+ return /* @__PURE__ */ jsxs10("div", { className: "rs-screen", children: [
2712
+ /* @__PURE__ */ jsxs10("div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2590
2713
  headerContent,
2591
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-details", children: [
2592
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2593
- /* @__PURE__ */ jsx11("span", { children: "Source chain" }),
2594
- /* @__PURE__ */ jsxs9("span", { className: "rs-review-detail-value", children: [
2595
- /* @__PURE__ */ jsx11("span", { children: sourceChainName }),
2596
- sourceChainIcon && /* @__PURE__ */ jsx11("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx11("img", { src: sourceChainIcon, alt: "" }) }),
2597
- sourceExplorerUrl && /* @__PURE__ */ jsx11(
2714
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-details", children: [
2715
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2716
+ /* @__PURE__ */ jsx12("span", { children: "Source chain" }),
2717
+ /* @__PURE__ */ jsxs10("span", { className: "rs-review-detail-value", children: [
2718
+ /* @__PURE__ */ jsx12("span", { children: sourceChainName }),
2719
+ sourceChainIcon && /* @__PURE__ */ jsx12("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx12("img", { src: sourceChainIcon, alt: "" }) }),
2720
+ sourceExplorerUrl && /* @__PURE__ */ jsx12(
2598
2721
  "a",
2599
2722
  {
2600
2723
  href: sourceExplorerUrl,
@@ -2602,17 +2725,17 @@ function ProcessingStep({
2602
2725
  rel: "noopener noreferrer",
2603
2726
  className: "rs-review-detail-link",
2604
2727
  "aria-label": "View source transaction",
2605
- children: /* @__PURE__ */ jsx11(ExternalLinkIcon, {})
2728
+ children: /* @__PURE__ */ jsx12(ExternalLinkIcon, {})
2606
2729
  }
2607
2730
  )
2608
2731
  ] })
2609
2732
  ] }),
2610
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2611
- /* @__PURE__ */ jsx11("span", { children: "Destination chain" }),
2612
- /* @__PURE__ */ jsxs9("span", { className: "rs-review-detail-value", children: [
2613
- /* @__PURE__ */ jsx11("span", { children: targetChainName }),
2614
- targetChainIcon && /* @__PURE__ */ jsx11("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx11("img", { src: targetChainIcon, alt: "" }) }),
2615
- destExplorerUrl && /* @__PURE__ */ jsx11(
2733
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2734
+ /* @__PURE__ */ jsx12("span", { children: "Destination chain" }),
2735
+ /* @__PURE__ */ jsxs10("span", { className: "rs-review-detail-value", children: [
2736
+ /* @__PURE__ */ jsx12("span", { children: targetChainName }),
2737
+ targetChainIcon && /* @__PURE__ */ jsx12("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx12("img", { src: targetChainIcon, alt: "" }) }),
2738
+ destExplorerUrl && /* @__PURE__ */ jsx12(
2616
2739
  "a",
2617
2740
  {
2618
2741
  href: destExplorerUrl,
@@ -2620,64 +2743,61 @@ function ProcessingStep({
2620
2743
  rel: "noopener noreferrer",
2621
2744
  className: "rs-review-detail-link",
2622
2745
  "aria-label": "View destination transaction",
2623
- children: /* @__PURE__ */ jsx11(ExternalLinkIcon, {})
2746
+ children: /* @__PURE__ */ jsx12(ExternalLinkIcon, {})
2624
2747
  }
2625
2748
  )
2626
2749
  ] })
2627
2750
  ] }),
2628
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2629
- /* @__PURE__ */ jsx11("span", { children: isProcessing ? "Estimated time" : "Total time" }),
2630
- /* @__PURE__ */ jsx11("span", { className: "rs-review-detail-value", children: isProcessing ? estimatedTime : totalTimeText })
2751
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2752
+ /* @__PURE__ */ jsx12("span", { children: isProcessing ? "Estimated time" : "Total time" }),
2753
+ /* @__PURE__ */ jsx12("span", { className: "rs-review-detail-value", children: isProcessing ? estimatedTime : totalTimeText })
2631
2754
  ] }),
2632
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2633
- /* @__PURE__ */ jsx11("span", { children: "You send" }),
2634
- /* @__PURE__ */ jsxs9("span", { className: "rs-review-detail-value", children: [
2635
- /* @__PURE__ */ jsxs9("span", { children: [
2755
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2756
+ /* @__PURE__ */ jsx12("span", { children: "You send" }),
2757
+ /* @__PURE__ */ jsxs10("span", { className: "rs-review-detail-value", children: [
2758
+ /* @__PURE__ */ jsxs10("span", { children: [
2636
2759
  formattedReceivedAmount,
2637
2760
  " ",
2638
2761
  sourceSymbol
2639
2762
  ] }),
2640
- sourceTokenIcon && /* @__PURE__ */ jsx11("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx11("img", { src: sourceTokenIcon, alt: "" }) })
2763
+ sourceTokenIcon && /* @__PURE__ */ jsx12("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx12("img", { src: sourceTokenIcon, alt: "" }) })
2641
2764
  ] })
2642
2765
  ] }),
2643
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2644
- /* @__PURE__ */ jsx11("span", { children: "Receive" }),
2645
- /* @__PURE__ */ jsxs9("span", { className: "rs-review-detail-value", children: [
2646
- /* @__PURE__ */ jsxs9("span", { children: [
2766
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2767
+ /* @__PURE__ */ jsx12("span", { children: "Receive" }),
2768
+ /* @__PURE__ */ jsxs10("span", { className: "rs-review-detail-value", children: [
2769
+ /* @__PURE__ */ jsxs10("span", { children: [
2647
2770
  "~",
2648
2771
  formattedReceivedAmount,
2649
2772
  " ",
2650
2773
  targetSymbol
2651
2774
  ] }),
2652
- targetTokenIcon && /* @__PURE__ */ jsx11("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx11("img", { src: targetTokenIcon, alt: "" }) })
2775
+ targetTokenIcon && /* @__PURE__ */ jsx12("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx12("img", { src: targetTokenIcon, alt: "" }) })
2653
2776
  ] })
2654
2777
  ] }),
2655
- isFailed && balanceAfterUsd !== void 0 && /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2656
- /* @__PURE__ */ jsx11("span", { children: "Balance" }),
2657
- /* @__PURE__ */ jsxs9("span", { className: "rs-review-detail-value", children: [
2778
+ isFailed && balanceAfterUsd !== void 0 && /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2779
+ /* @__PURE__ */ jsx12("span", { children: "Balance" }),
2780
+ /* @__PURE__ */ jsxs10("span", { className: "rs-review-detail-value", children: [
2658
2781
  "$",
2659
2782
  balanceAfterUsd.toFixed(2)
2660
2783
  ] })
2661
2784
  ] }),
2662
- /* @__PURE__ */ jsxs9("div", { className: "rs-review-detail-row", children: [
2663
- /* @__PURE__ */ jsx11("span", { children: "Fees" }),
2664
- /* @__PURE__ */ jsxs9("span", { className: "rs-review-detail-value", children: [
2665
- /* @__PURE__ */ jsx11(
2785
+ /* @__PURE__ */ jsxs10("div", { className: "rs-review-detail-row", children: [
2786
+ /* @__PURE__ */ jsx12("span", { children: "Fees" }),
2787
+ /* @__PURE__ */ jsxs10("span", { className: "rs-review-detail-value", children: [
2788
+ /* @__PURE__ */ jsx12(
2666
2789
  "span",
2667
2790
  {
2668
2791
  style: feeSponsored ? { textDecoration: "line-through" } : void 0,
2669
- children: "$0.05"
2792
+ children: "$0.04"
2670
2793
  }
2671
2794
  ),
2672
- /* @__PURE__ */ jsx11(Tooltip, { content: feeTooltip, children: /* @__PURE__ */ jsx11("span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ jsx11(InfoIcon, {}) }) })
2795
+ /* @__PURE__ */ jsx12(Tooltip, { content: feeTooltip, children: /* @__PURE__ */ jsx12("span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ jsx12(InfoIcon, {}) }) })
2673
2796
  ] })
2674
2797
  ] })
2675
2798
  ] }),
2676
- isFailed && failureMessage && /* @__PURE__ */ jsxs9("div", { className: "rs-amount-error", role: "alert", children: [
2677
- /* @__PURE__ */ jsx11(AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
2678
- /* @__PURE__ */ jsx11("span", { children: failureMessage })
2679
- ] }),
2680
- isProcessing && /* @__PURE__ */ jsx11(
2799
+ isFailed && failureMessage && /* @__PURE__ */ jsx12(Callout, { variant: "error", children: failureMessage }),
2800
+ isProcessing && /* @__PURE__ */ jsx12(
2681
2801
  Button,
2682
2802
  {
2683
2803
  fullWidth: true,
@@ -2687,19 +2807,19 @@ function ProcessingStep({
2687
2807
  children: "Submitting transaction..."
2688
2808
  }
2689
2809
  ),
2690
- isComplete && /* @__PURE__ */ jsxs9("div", { className: "rs-screen-button-row", children: [
2691
- onNewDeposit && /* @__PURE__ */ jsxs9(Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
2810
+ isComplete && /* @__PURE__ */ jsxs10("div", { className: "rs-screen-button-row", children: [
2811
+ onNewDeposit && /* @__PURE__ */ jsxs10(Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
2692
2812
  "New ",
2693
2813
  flowNoun
2694
2814
  ] }),
2695
- onClose && /* @__PURE__ */ jsx11(Button, { onClick: onClose, fullWidth: true, children: "Done" })
2815
+ onClose && /* @__PURE__ */ jsx12(Button, { onClick: onClose, fullWidth: true, children: "Done" })
2696
2816
  ] }),
2697
- isFailed && /* @__PURE__ */ jsxs9("div", { className: "rs-screen-button-row", children: [
2698
- onClose && /* @__PURE__ */ jsx11(Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
2699
- handleRetry && /* @__PURE__ */ jsx11(Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
2817
+ isFailed && /* @__PURE__ */ jsxs10("div", { className: "rs-screen-button-row", children: [
2818
+ onClose && /* @__PURE__ */ jsx12(Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
2819
+ handleRetry && /* @__PURE__ */ jsx12(Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
2700
2820
  ] })
2701
2821
  ] }),
2702
- /* @__PURE__ */ jsx11(PoweredBy, {})
2822
+ /* @__PURE__ */ jsx12(PoweredBy, {})
2703
2823
  ] });
2704
2824
  }
2705
2825
 
@@ -3058,11 +3178,10 @@ export {
3058
3178
  WalletIcon,
3059
3179
  ExternalLinkIcon,
3060
3180
  CheckIcon,
3181
+ TransferCryptoIcon,
3061
3182
  ChevronLeftIcon,
3062
3183
  ChevronDownIcon,
3063
3184
  CloseIcon,
3064
- HandCoinsIcon,
3065
- CoinsIcon,
3066
3185
  HistoryIcon,
3067
3186
  InfoIcon,
3068
3187
  CopyIcon,
@@ -3073,14 +3192,15 @@ export {
3073
3192
  PlusCircleIcon,
3074
3193
  CircleArrowOutUpLeftIcon,
3075
3194
  BodyHeader,
3076
- ListRow,
3077
3195
  PoweredBy,
3078
3196
  Spinner,
3079
3197
  ConnectStep,
3080
3198
  Button,
3199
+ Callout,
3081
3200
  debugLog,
3082
3201
  debugError,
3083
3202
  toEvmCaip2,
3203
+ targetChainToCaip2,
3084
3204
  parseEvmChainId,
3085
3205
  isSolanaCaip2,
3086
3206
  getAssetId,