@rhinestone/deposit-modal 0.14.1 → 0.16.0

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 (70) hide show
  1. package/README.md +26 -24
  2. package/bridge-transcript.json +14 -0
  3. package/dist/{DepositModalReown-GAD45GIC.cjs → DepositModalReown-IFN6YLZJ.cjs} +20 -22
  4. package/dist/{DepositModalReown-2EVV64OA.mjs → DepositModalReown-R7UROJPJ.mjs} +5 -7
  5. package/dist/WithdrawModal-SZEAI473.cjs +11 -0
  6. package/dist/WithdrawModal-XKSSHVEJ.mjs +11 -0
  7. package/dist/{caip-D8aRWdEY.d.cts → caip-BMi-9t09.d.cts} +27 -3
  8. package/dist/{caip-D8aRWdEY.d.ts → caip-BMi-9t09.d.ts} +27 -3
  9. package/dist/{chunk-A6JPBMYY.cjs → chunk-24N4KMJX.cjs} +234 -115
  10. package/dist/{chunk-LMG46EP2.mjs → chunk-3HCCR54R.mjs} +1 -1
  11. package/dist/{chunk-AQVJUXSG.cjs → chunk-5CM3ZQ5U.cjs} +1 -1
  12. package/dist/chunk-EA5CE2UZ.mjs +7599 -0
  13. package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
  14. package/dist/{chunk-5Q5CSVKF.mjs → chunk-F6ROQ6RJ.mjs} +215 -517
  15. package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
  16. package/dist/chunk-H4O22O7Y.cjs +7599 -0
  17. package/dist/{chunk-GZ4GQ5MC.mjs → chunk-HMB2XQGD.mjs} +172 -53
  18. package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
  19. package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
  20. package/dist/{chunk-NQMC5VKQ.cjs → chunk-V466XQSG.cjs} +551 -853
  21. package/dist/{constants-DBrWhJWE.d.cts → constants-BT4ctuHo.d.cts} +7 -6
  22. package/dist/{constants-DBrWhJWE.d.ts → constants-D21ZdNOP.d.ts} +7 -6
  23. package/dist/constants.cjs +3 -3
  24. package/dist/constants.d.cts +3 -3
  25. package/dist/constants.d.ts +3 -3
  26. package/dist/constants.mjs +2 -2
  27. package/dist/deposit.cjs +6 -8
  28. package/dist/deposit.d.cts +3 -3
  29. package/dist/deposit.d.ts +3 -3
  30. package/dist/deposit.mjs +5 -7
  31. package/dist/embed.cjs +130 -80
  32. package/dist/embed.d.cts +3 -9
  33. package/dist/embed.d.ts +3 -9
  34. package/dist/embed.mjs +112 -62
  35. package/dist/index.cjs +8 -11
  36. package/dist/index.d.cts +3 -5
  37. package/dist/index.d.ts +3 -5
  38. package/dist/index.mjs +10 -13
  39. package/dist/polymarket.cjs +6 -6
  40. package/dist/polymarket.mjs +2 -2
  41. package/dist/server.d.cts +2 -2
  42. package/dist/server.d.ts +2 -2
  43. package/dist/styles.css +147 -100
  44. package/dist/{types-DP_3KwlD.d.cts → types-B9SbZQIG.d.ts} +145 -108
  45. package/dist/{types-Bho4OA03.d.ts → types-SwGGf0eH.d.cts} +145 -108
  46. package/dist/withdraw.cjs +5 -6
  47. package/dist/withdraw.d.cts +33 -5
  48. package/dist/withdraw.d.ts +33 -5
  49. package/dist/withdraw.mjs +4 -5
  50. package/package.json +6 -37
  51. package/dist/ClaimModal-GDFENSLV.mjs +0 -13
  52. package/dist/ClaimModal-L3FUBI5U.cjs +0 -13
  53. package/dist/WithdrawModal-FAQH35NG.cjs +0 -12
  54. package/dist/WithdrawModal-IKUHF5CF.mjs +0 -12
  55. package/dist/chunk-4J5ADVIN.cjs +0 -1848
  56. package/dist/chunk-62UCV2LG.cjs +0 -81
  57. package/dist/chunk-7AZFT2MV.cjs +0 -163
  58. package/dist/chunk-HAQOFI3D.cjs +0 -3699
  59. package/dist/chunk-QACOOLOE.mjs +0 -1062
  60. package/dist/chunk-R5UQ3TN4.mjs +0 -81
  61. package/dist/chunk-UX35GYLM.mjs +0 -3699
  62. package/dist/chunk-VALXN5IO.mjs +0 -163
  63. package/dist/chunk-XCTRKCNM.mjs +0 -1848
  64. package/dist/chunk-YP7QVKQ6.cjs +0 -1062
  65. package/dist/claim.cjs +0 -11
  66. package/dist/claim.d.cts +0 -17
  67. package/dist/claim.d.ts +0 -17
  68. package/dist/claim.mjs +0 -11
  69. package/dist/modal-ui-state-OD1RmKkK.d.cts +0 -30
  70. package/dist/modal-ui-state-OD1RmKkK.d.ts +0 -30
package/dist/embed.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { T as TargetChain } from './caip-D8aRWdEY.cjs';
3
- import { Y as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-DP_3KwlD.cjs';
2
+ import { d as TargetChain } from './caip-BMi-9t09.cjs';
3
+ import { $ as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-SwGGf0eH.cjs';
4
4
  import { WalletClient, PublicClient, Address } from 'viem';
5
5
  import { Transaction, Connection } from '@solana/web3.js';
6
6
 
@@ -87,7 +87,7 @@ type ChannelTarget = Record<string, unknown>;
87
87
  * app-store release, so it is a last resort rather than a versioning scheme.
88
88
  */
89
89
 
90
- type EmbedMode = "deposit" | "withdraw" | "claim";
90
+ type EmbedMode = "deposit" | "withdraw";
91
91
  /**
92
92
  * Every prop that survives a JSON hop. Names match the React props 1:1 on
93
93
  * purpose — this is a transport, not a redesign, and a renamed field is a
@@ -164,12 +164,6 @@ interface EmbedConfig {
164
164
  debug?: boolean;
165
165
  /** Withdraw only. */
166
166
  accountAddress?: string;
167
- /** Claim only: prefills the lookup form. */
168
- defaultTxHash?: string;
169
- /** Claim only: seeds the refund destination, which the user can still edit.
170
- * Deliberately never defaulted to the deposit's sender — returning funds to
171
- * an exchange hot wallet can lose them. */
172
- defaultDestination?: string;
173
167
  }
174
168
 
175
169
  interface DepositEmbedProps {
package/dist/embed.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { T as TargetChain } from './caip-D8aRWdEY.js';
3
- import { Y as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-Bho4OA03.js';
2
+ import { d as TargetChain } from './caip-BMi-9t09.js';
3
+ import { $ as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-B9SbZQIG.js';
4
4
  import { WalletClient, PublicClient, Address } from 'viem';
5
5
  import { Transaction, Connection } from '@solana/web3.js';
6
6
 
@@ -87,7 +87,7 @@ type ChannelTarget = Record<string, unknown>;
87
87
  * app-store release, so it is a last resort rather than a versioning scheme.
88
88
  */
89
89
 
90
- type EmbedMode = "deposit" | "withdraw" | "claim";
90
+ type EmbedMode = "deposit" | "withdraw";
91
91
  /**
92
92
  * Every prop that survives a JSON hop. Names match the React props 1:1 on
93
93
  * purpose — this is a transport, not a redesign, and a renamed field is a
@@ -164,12 +164,6 @@ interface EmbedConfig {
164
164
  debug?: boolean;
165
165
  /** Withdraw only. */
166
166
  accountAddress?: string;
167
- /** Claim only: prefills the lookup form. */
168
- defaultTxHash?: string;
169
- /** Claim only: seeds the refund destination, which the user can still edit.
170
- * Deliberately never defaulted to the deposit's sender — returning funds to
171
- * an exchange hot wallet can lose them. */
172
- defaultDestination?: string;
173
167
  }
174
168
 
175
169
  interface DepositEmbedProps {
package/dist/embed.mjs CHANGED
@@ -1,23 +1,19 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-5Q5CSVKF.mjs";
4
- import {
5
- markSubmissionUncertain
6
- } from "./chunk-XCTRKCNM.mjs";
7
- import "./chunk-VALXN5IO.mjs";
8
- import "./chunk-R5UQ3TN4.mjs";
3
+ } from "./chunk-F6ROQ6RJ.mjs";
9
4
  import {
5
+ markSubmissionUncertain,
10
6
  primeRuntimeChains
11
- } from "./chunk-UX35GYLM.mjs";
7
+ } from "./chunk-EA5CE2UZ.mjs";
12
8
  import {
13
9
  MODAL_VERSION,
14
10
  setEmbedHost
15
- } from "./chunk-LMG46EP2.mjs";
16
- import "./chunk-RN5VKWI6.mjs";
11
+ } from "./chunk-3HCCR54R.mjs";
12
+ import "./chunk-FTWKAJGN.mjs";
17
13
  import {
18
- HYPERCORE_SPOT_CAIP2,
19
- getChainName
20
- } from "./chunk-VUATPOWJ.mjs";
14
+ getChainName,
15
+ isTargetChain
16
+ } from "./chunk-EAGMY3QE.mjs";
21
17
 
22
18
  // src/embed.tsx
23
19
  import { Suspense, lazy, useCallback, useEffect, useRef, useState } from "react";
@@ -34,7 +30,7 @@ var BRIDGE_METHOD = {
34
30
  WALLET_REQUEST: "wallet.request",
35
31
  /** Page→host: withdraw's transfer. Gated by `CAPABILITY.SEND_TRANSACTION`. */
36
32
  SEND_TRANSACTION: "host.sendTransaction",
37
- /** Page→host: claim's signature. Gated by `CAPABILITY.SIGN_RECOVERY`. */
33
+ /** Page→host: a recovery signature. Gated by `CAPABILITY.SIGN_RECOVERY`. */
38
34
  SIGN_RECOVERY: "host.signRecovery",
39
35
  /** Page→host: show a payment page outside the web view. Gated by
40
36
  * `CAPABILITY.OPEN_URL`. */
@@ -1035,8 +1031,55 @@ function dismissalFor(input) {
1035
1031
  function canGoBackNow(input) {
1036
1032
  return dismissalFor(input).state !== "blocked";
1037
1033
  }
1038
- function uiStateFor(input) {
1039
- return { screen: input.screen, dismissal: dismissalFor(input) };
1034
+ function uiStateFor(input, contentHeight) {
1035
+ return {
1036
+ screen: input.screen,
1037
+ dismissal: dismissalFor(input),
1038
+ ...contentHeight === void 0 ? {} : { contentHeight }
1039
+ };
1040
+ }
1041
+
1042
+ // src/core/bridge/content-height.ts
1043
+ function measureContentHeight(shell) {
1044
+ const modal = shell.firstElementChild;
1045
+ const last = modal?.lastElementChild;
1046
+ if (!modal || !last) return void 0;
1047
+ const view = modal.ownerDocument.defaultView;
1048
+ const padding = view ? Number.parseFloat(view.getComputedStyle(modal).paddingBottom) : Number.NaN;
1049
+ const height = last.getBoundingClientRect().bottom - modal.getBoundingClientRect().top + (Number.isFinite(padding) ? padding : 0) + // The shell's own borders sit outside the modal and inside the sheet, so
1050
+ // they belong to the height a host is being asked for.
1051
+ (shell.offsetHeight - shell.clientHeight);
1052
+ return height > 0 ? Math.ceil(height) : void 0;
1053
+ }
1054
+ function observeContentHeight(shell, onChange) {
1055
+ const view = shell.ownerDocument.defaultView;
1056
+ if (!view?.ResizeObserver || !view.MutationObserver) return () => {
1057
+ };
1058
+ let last;
1059
+ const report = () => {
1060
+ const height = measureContentHeight(shell);
1061
+ if (height === void 0 || height === last) return;
1062
+ last = height;
1063
+ onChange(height);
1064
+ };
1065
+ const sizes = new view.ResizeObserver(report);
1066
+ const structure = new view.MutationObserver(() => rearm());
1067
+ function rearm() {
1068
+ sizes.disconnect();
1069
+ structure.disconnect();
1070
+ structure.observe(shell, { childList: true });
1071
+ const modal = shell.firstElementChild;
1072
+ if (modal) {
1073
+ structure.observe(modal, { childList: true });
1074
+ for (const child of Array.from(modal.children)) sizes.observe(child);
1075
+ }
1076
+ report();
1077
+ }
1078
+ rearm();
1079
+ return () => {
1080
+ sizes.disconnect();
1081
+ structure.disconnect();
1082
+ };
1040
1083
  }
1041
1084
 
1042
1085
  // src/core/bridge/viewport.ts
@@ -1066,10 +1109,7 @@ var UNKNOWN_SCREEN = "unknown";
1066
1109
  // src/embed.tsx
1067
1110
  import { jsx } from "react/jsx-runtime";
1068
1111
  var WithdrawModal = lazy(
1069
- () => import("./WithdrawModal-IKUHF5CF.mjs").then((m) => ({ default: m.WithdrawModal }))
1070
- );
1071
- var ClaimModal = lazy(
1072
- () => import("./ClaimModal-GDFENSLV.mjs").then((m) => ({ default: m.ClaimModal }))
1112
+ () => import("./WithdrawModal-XKSSHVEJ.mjs").then((m) => ({ default: m.WithdrawModal }))
1073
1113
  );
1074
1114
  function missingField(config, keys) {
1075
1115
  const missing = keys.find(
@@ -1102,9 +1142,8 @@ function unscopedRefusal(mode) {
1102
1142
  };
1103
1143
  }
1104
1144
  function refusal(config, capabilities, channelScope) {
1105
- if (channelScope === "all-frames") {
1106
- if (config.mode === "withdraw") return unscopedRefusal("a withdrawal");
1107
- if (config.mode === "claim") return unscopedRefusal("a claim");
1145
+ if (channelScope === "all-frames" && config.mode === "withdraw") {
1146
+ return unscopedRefusal("a withdrawal");
1108
1147
  }
1109
1148
  switch (config.mode) {
1110
1149
  case "deposit": {
@@ -1115,8 +1154,7 @@ function refusal(config, capabilities, channelScope) {
1115
1154
  ]);
1116
1155
  if (missing) return missing;
1117
1156
  const { targetChain } = config;
1118
- const validTarget = typeof targetChain === "number" && Number.isInteger(targetChain) && targetChain > 0 || targetChain === "solana" || targetChain === HYPERCORE_SPOT_CAIP2;
1119
- return validTarget ? null : {
1157
+ return isTargetChain(targetChain) ? null : {
1120
1158
  code: "EMBED_CONFIG_INVALID",
1121
1159
  message: `The app supplied a targetChain this page cannot resolve: ${JSON.stringify(targetChain)}.`
1122
1160
  };
@@ -1136,15 +1174,6 @@ function refusal(config, capabilities, channelScope) {
1136
1174
  message: `The app supplied a ${badWithdrawField} this page cannot use.`
1137
1175
  } : null;
1138
1176
  }
1139
- case "claim": {
1140
- const capability = missingCapability(
1141
- capabilities,
1142
- CAPABILITY.SIGN_RECOVERY,
1143
- "a claim"
1144
- );
1145
- if (capability) return capability;
1146
- return missingField(config, ["backendUrl"]);
1147
- }
1148
1177
  default:
1149
1178
  return {
1150
1179
  code: "EMBED_MODE_UNSUPPORTED",
@@ -1158,12 +1187,7 @@ function sanitizeConfig(config) {
1158
1187
  const bool = (value) => typeof value === "boolean" ? value : void 0;
1159
1188
  const arr = (value) => Array.isArray(value) ? value : void 0;
1160
1189
  const obj = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
1161
- const target = (value) => {
1162
- if (typeof value === "number" && Number.isInteger(value) && value > 0) {
1163
- return value;
1164
- }
1165
- return value === "solana" || value === HYPERCORE_SPOT_CAIP2 ? value : void 0;
1166
- };
1190
+ const target = (value) => isTargetChain(value) ? value : void 0;
1167
1191
  return {
1168
1192
  // Raw, because it is the discriminant `refusal` switches on — anything
1169
1193
  // else has to reach it to be named in the error.
@@ -1200,9 +1224,7 @@ function sanitizeConfig(config) {
1200
1224
  theme: obj(config.theme),
1201
1225
  uiConfig: obj(config.uiConfig),
1202
1226
  debug: bool(config.debug),
1203
- accountAddress: str(config.accountAddress),
1204
- defaultTxHash: str(config.defaultTxHash),
1205
- defaultDestination: str(config.defaultDestination)
1227
+ accountAddress: str(config.accountAddress)
1206
1228
  };
1207
1229
  }
1208
1230
  function onrampUnavailable(config, capabilities) {
@@ -1253,6 +1275,9 @@ function toModalProps(config, canOpenExternally, walletWithheld) {
1253
1275
  debug: config.debug
1254
1276
  };
1255
1277
  }
1278
+ function currentShell() {
1279
+ return document.querySelector(".rs-modal-content.rs-embed");
1280
+ }
1256
1281
  function DepositEmbed({ target, onFatal }) {
1257
1282
  const [session, setSession] = useState(null);
1258
1283
  const [config, setConfig] = useState(null);
@@ -1264,8 +1289,15 @@ function DepositEmbed({ target, onFatal }) {
1264
1289
  screen: UNKNOWN_SCREEN,
1265
1290
  submitting: false
1266
1291
  });
1292
+ const contentHeightRef = useRef(void 0);
1293
+ const shellRef = useRef(null);
1294
+ const [shellToken, setShellToken] = useState(0);
1267
1295
  const onFatalRef = useRef(onFatal);
1268
1296
  onFatalRef.current = onFatal;
1297
+ const measuredHeight = useCallback(
1298
+ () => currentShell() === shellRef.current ? contentHeightRef.current : void 0,
1299
+ []
1300
+ );
1269
1301
  useEffect(
1270
1302
  () => trackVisualViewport(target ?? globalThis.window),
1271
1303
  [target]
@@ -1327,9 +1359,13 @@ function DepositEmbed({ target, onFatal }) {
1327
1359
  (state) => {
1328
1360
  if (isHomeScreen(state.screen)) completedRef.current = false;
1329
1361
  uiRef.current = state;
1362
+ if (currentShell() !== shellRef.current) setShellToken((token) => token + 1);
1330
1363
  session?.transport.emit(
1331
1364
  "ui.state",
1332
- uiStateFor({ ...state, walletRequestPending: walletPending })
1365
+ uiStateFor(
1366
+ { ...state, walletRequestPending: walletPending },
1367
+ measuredHeight()
1368
+ )
1333
1369
  );
1334
1370
  },
1335
1371
  [session, walletPending]
@@ -1345,9 +1381,29 @@ function DepositEmbed({ target, onFatal }) {
1345
1381
  if (!session) return;
1346
1382
  session.transport.emit(
1347
1383
  "ui.state",
1348
- uiStateFor({ ...uiRef.current, walletRequestPending: walletPending })
1384
+ uiStateFor(
1385
+ { ...uiRef.current, walletRequestPending: walletPending },
1386
+ measuredHeight()
1387
+ )
1349
1388
  );
1350
- }, [session, walletPending]);
1389
+ }, [session, walletPending, measuredHeight]);
1390
+ useEffect(() => {
1391
+ if (!session) return;
1392
+ const shell = currentShell();
1393
+ shellRef.current = shell;
1394
+ if (!shell) return;
1395
+ const stop = observeContentHeight(shell, (height) => {
1396
+ contentHeightRef.current = height;
1397
+ session.transport.emit(
1398
+ "ui.state",
1399
+ uiStateFor(
1400
+ { ...uiRef.current, walletRequestPending: pendingRef.current },
1401
+ height
1402
+ )
1403
+ );
1404
+ });
1405
+ return stop;
1406
+ }, [session, shellToken]);
1351
1407
  const refused = config && session ? refusal(config, session.hello.capabilities, channelScope) : null;
1352
1408
  const walletWithheld = channelScope === "all-frames" || channelScope === "probing";
1353
1409
  const refuseIfUnscoped = useCallback(async () => {
@@ -1417,22 +1473,7 @@ function DepositEmbed({ target, onFatal }) {
1417
1473
  })
1418
1474
  };
1419
1475
  },
1420
- onUiState: handleUiState,
1421
- onLifecycle: (event) => {
1422
- if (event.type === "complete") completedRef.current = true;
1423
- transport.emit("lifecycle", event);
1424
- }
1425
- }
1426
- ) });
1427
- }
1428
- if (ready.mode === "claim") {
1429
- return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
1430
- ClaimModal,
1431
- {
1432
- ...shared,
1433
- defaultTxHash: ready.defaultTxHash,
1434
- defaultRefundDestination: ready.defaultDestination,
1435
- signRecovery: async ({ chainId, signer, depositId, destination }) => {
1476
+ signRecovery: !walletWithheld && session.hello.capabilities.includes(CAPABILITY.SIGN_RECOVERY) ? async ({ chainId, signer, depositId, destination }) => {
1436
1477
  await refuseIfUnscoped();
1437
1478
  return await requestHostRecoverySignature(transport, {
1438
1479
  chainId,
@@ -1440,7 +1481,7 @@ function DepositEmbed({ target, onFatal }) {
1440
1481
  depositId,
1441
1482
  destination
1442
1483
  });
1443
- },
1484
+ } : void 0,
1444
1485
  onUiState: handleUiState,
1445
1486
  onLifecycle: (event) => {
1446
1487
  if (event.type === "complete") completedRef.current = true;
@@ -1454,6 +1495,15 @@ function DepositEmbed({ target, onFatal }) {
1454
1495
  {
1455
1496
  ...toModalProps(ready, canOpenExternally, walletWithheld),
1456
1497
  openExternally: canOpenExternally ? openExternally : void 0,
1498
+ signRecovery: !walletWithheld && session.hello.capabilities.includes(CAPABILITY.SIGN_RECOVERY) ? async ({ chainId, signer, depositId, destination }) => {
1499
+ await refuseIfUnscoped();
1500
+ return await requestHostRecoverySignature(transport, {
1501
+ chainId,
1502
+ signer,
1503
+ depositId,
1504
+ destination
1505
+ });
1506
+ } : void 0,
1457
1507
  walletSession: walletWithheld ? void 0 : session.wallet.session,
1458
1508
  walletIntegration: "host_supplied",
1459
1509
  hasWalletClientProp: false,
package/dist/index.cjs CHANGED
@@ -1,18 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
2
2
 
3
- var _chunkA6JPBMYYcjs = require('./chunk-A6JPBMYY.cjs');
3
+ var _chunk24N4KMJXcjs = require('./chunk-24N4KMJX.cjs');
4
4
 
5
5
 
6
- var _chunkYP7QVKQ6cjs = require('./chunk-YP7QVKQ6.cjs');
6
+ var _chunkV466XQSGcjs = require('./chunk-V466XQSG.cjs');
7
+ require('./chunk-H4O22O7Y.cjs');
8
+ require('./chunk-5CM3ZQ5U.cjs');
9
+ require('./chunk-LVCD6RHF.cjs');
7
10
 
8
11
 
9
- var _chunkNQMC5VKQcjs = require('./chunk-NQMC5VKQ.cjs');
10
- require('./chunk-4J5ADVIN.cjs');
11
- require('./chunk-7AZFT2MV.cjs');
12
- require('./chunk-62UCV2LG.cjs');
13
- require('./chunk-HAQOFI3D.cjs');
14
- require('./chunk-AQVJUXSG.cjs');
15
- require('./chunk-DW2EQA2U.cjs');
16
12
 
17
13
 
18
14
 
@@ -42,7 +38,7 @@ require('./chunk-DW2EQA2U.cjs');
42
38
 
43
39
 
44
40
 
45
- var _chunk4KCSH4T3cjs = require('./chunk-4KCSH4T3.cjs');
41
+ var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
46
42
 
47
43
  // src/core/reown-disconnect.ts
48
44
  async function disconnectWallet() {
@@ -96,4 +92,5 @@ async function disconnectWallet() {
96
92
 
97
93
 
98
94
 
99
- exports.ClaimModal = _chunkYP7QVKQ6cjs.ClaimModal; exports.DepositModal = _chunkNQMC5VKQcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunk4KCSH4T3cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunk4KCSH4T3cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS; exports.SUPPORTED_CHAIN_IDS = _chunk4KCSH4T3cjs.SUPPORTED_CHAIN_IDS; exports.WithdrawModal = _chunkA6JPBMYYcjs.WithdrawModal; exports.chainRegistry = _chunk4KCSH4T3cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunk4KCSH4T3cjs.findChainIdForToken; exports.getChainBadge = _chunk4KCSH4T3cjs.getChainBadge; exports.getChainIcon = _chunk4KCSH4T3cjs.getChainIcon; exports.getChainId = _chunk4KCSH4T3cjs.getChainId; exports.getChainName = _chunk4KCSH4T3cjs.getChainName; exports.getExplorerName = _chunk4KCSH4T3cjs.getExplorerName; exports.getExplorerTxUrl = _chunk4KCSH4T3cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk4KCSH4T3cjs.getExplorerUrl; exports.getSupportedChainIds = _chunk4KCSH4T3cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk4KCSH4T3cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk4KCSH4T3cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk4KCSH4T3cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk4KCSH4T3cjs.getTokenAddress; exports.getTokenDecimals = _chunk4KCSH4T3cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk4KCSH4T3cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk4KCSH4T3cjs.getTokenIcon; exports.getTokenSymbol = _chunk4KCSH4T3cjs.getTokenSymbol; exports.getUsdcAddress = _chunk4KCSH4T3cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk4KCSH4T3cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk4KCSH4T3cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunk4KCSH4T3cjs.tokenIconUrl;
95
+
96
+ exports.DepositModal = _chunkV466XQSGcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkOY5N3E6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkOY5N3E6Lcjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkOY5N3E6Lcjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS; exports.STELLAR_PUBNET_CAIP2 = _chunkOY5N3E6Lcjs.STELLAR_PUBNET_CAIP2; exports.SUPPORTED_CHAIN_IDS = _chunkOY5N3E6Lcjs.SUPPORTED_CHAIN_IDS; exports.TRON_MAINNET_CAIP2 = _chunkOY5N3E6Lcjs.TRON_MAINNET_CAIP2; exports.WithdrawModal = _chunk24N4KMJXcjs.WithdrawModal; exports.chainRegistry = _chunkOY5N3E6Lcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkOY5N3E6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkOY5N3E6Lcjs.getChainBadge; exports.getChainIcon = _chunkOY5N3E6Lcjs.getChainIcon; exports.getChainId = _chunkOY5N3E6Lcjs.getChainId; exports.getChainName = _chunkOY5N3E6Lcjs.getChainName; exports.getExplorerName = _chunkOY5N3E6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkOY5N3E6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkOY5N3E6Lcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkOY5N3E6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkOY5N3E6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkOY5N3E6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkOY5N3E6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkOY5N3E6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkOY5N3E6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkOY5N3E6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkOY5N3E6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkOY5N3E6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkOY5N3E6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkOY5N3E6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkOY5N3E6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkOY5N3E6Lcjs.tokenIconUrl;
package/dist/index.d.cts CHANGED
@@ -1,12 +1,10 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { ClaimModal } from './claim.cjs';
4
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, o as ClaimModalProps, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as ModalAnalyticsEvent, Y as OutputTokenRule, Z as RpcUrlMap, _ as WithdrawAnalyticsAbandonmentReason, $ as WithdrawAnalyticsCloseSource, a0 as WithdrawAnalyticsEvent, a1 as WithdrawAnalyticsEventPayload, a2 as WithdrawAnalyticsFailureReason, a3 as WithdrawAnalyticsSessionProperties, a4 as WithdrawAnalyticsStep, a5 as WithdrawAnalyticsUiOutcome, a6 as WithdrawCompleteEventData, a7 as WithdrawFailedEventData, a8 as WithdrawLifecycleEvent, a9 as WithdrawModalProps, aa as WithdrawSubmittedEventData, ab as WithdrawTransferRequest } from './types-DP_3KwlD.cjs';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, _ as ModalAnalyticsEvent, $ as OutputTokenRule, a0 as RecoveryErrorCode, a1 as RpcUrlMap, a2 as SignRecovery, a3 as SignRecoveryPayload, a4 as WithdrawAnalyticsAbandonmentReason, a5 as WithdrawAnalyticsCloseSource, a6 as WithdrawAnalyticsEvent, a7 as WithdrawAnalyticsEventPayload, a8 as WithdrawAnalyticsFailureReason, a9 as WithdrawAnalyticsSessionProperties, aa as WithdrawAnalyticsStep, ab as WithdrawAnalyticsUiOutcome, ac as WithdrawCompleteEventData, ad as WithdrawFailedEventData, ae as WithdrawLifecycleEvent, af as WithdrawModalProps, ag as WithdrawSubmittedEventData, ah as WithdrawTransferRequest } from './types-SwGGf0eH.cjs';
5
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
6
- export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-DBrWhJWE.cjs';
7
- export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.cjs';
5
+ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-BT4ctuHo.cjs';
6
+ export { D as DisplayChainId, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, S as STELLAR_PUBNET_CAIP2, T as TRON_MAINNET_CAIP2, d as TargetChain } from './caip-BMi-9t09.cjs';
8
7
  import 'react';
9
- import './modal-ui-state-OD1RmKkK.cjs';
10
8
  import 'viem';
11
9
 
12
10
  /**
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { ClaimModal } from './claim.js';
4
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, o as ClaimModalProps, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as ModalAnalyticsEvent, Y as OutputTokenRule, Z as RpcUrlMap, _ as WithdrawAnalyticsAbandonmentReason, $ as WithdrawAnalyticsCloseSource, a0 as WithdrawAnalyticsEvent, a1 as WithdrawAnalyticsEventPayload, a2 as WithdrawAnalyticsFailureReason, a3 as WithdrawAnalyticsSessionProperties, a4 as WithdrawAnalyticsStep, a5 as WithdrawAnalyticsUiOutcome, a6 as WithdrawCompleteEventData, a7 as WithdrawFailedEventData, a8 as WithdrawLifecycleEvent, a9 as WithdrawModalProps, aa as WithdrawSubmittedEventData, ab as WithdrawTransferRequest } from './types-Bho4OA03.js';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, _ as ModalAnalyticsEvent, $ as OutputTokenRule, a0 as RecoveryErrorCode, a1 as RpcUrlMap, a2 as SignRecovery, a3 as SignRecoveryPayload, a4 as WithdrawAnalyticsAbandonmentReason, a5 as WithdrawAnalyticsCloseSource, a6 as WithdrawAnalyticsEvent, a7 as WithdrawAnalyticsEventPayload, a8 as WithdrawAnalyticsFailureReason, a9 as WithdrawAnalyticsSessionProperties, aa as WithdrawAnalyticsStep, ab as WithdrawAnalyticsUiOutcome, ac as WithdrawCompleteEventData, ad as WithdrawFailedEventData, ae as WithdrawLifecycleEvent, af as WithdrawModalProps, ag as WithdrawSubmittedEventData, ah as WithdrawTransferRequest } from './types-B9SbZQIG.js';
5
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
6
- export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-DBrWhJWE.js';
7
- export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.js';
5
+ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-D21ZdNOP.js';
6
+ export { D as DisplayChainId, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, S as STELLAR_PUBNET_CAIP2, T as TRON_MAINNET_CAIP2, d as TargetChain } from './caip-BMi-9t09.js';
8
7
  import 'react';
9
- import './modal-ui-state-OD1RmKkK.js';
10
8
  import 'viem';
11
9
 
12
10
  /**
package/dist/index.mjs CHANGED
@@ -1,25 +1,21 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-GZ4GQ5MC.mjs";
4
- import {
5
- ClaimModal
6
- } from "./chunk-QACOOLOE.mjs";
3
+ } from "./chunk-HMB2XQGD.mjs";
7
4
  import {
8
5
  DepositModal
9
- } from "./chunk-5Q5CSVKF.mjs";
10
- import "./chunk-XCTRKCNM.mjs";
11
- import "./chunk-VALXN5IO.mjs";
12
- import "./chunk-R5UQ3TN4.mjs";
13
- import "./chunk-UX35GYLM.mjs";
14
- import "./chunk-LMG46EP2.mjs";
15
- import "./chunk-RN5VKWI6.mjs";
6
+ } from "./chunk-F6ROQ6RJ.mjs";
7
+ import "./chunk-EA5CE2UZ.mjs";
8
+ import "./chunk-3HCCR54R.mjs";
9
+ import "./chunk-FTWKAJGN.mjs";
16
10
  import {
17
11
  HYPERCORE_CHAIN_ID,
18
12
  HYPERCORE_SPOT_CAIP2,
19
13
  HYPERCORE_USDC_ADDRESS,
20
14
  HYPERCORE_USDT0_ADDRESS,
21
15
  NATIVE_TOKEN_ADDRESS,
16
+ STELLAR_PUBNET_CAIP2,
22
17
  SUPPORTED_CHAIN_IDS,
18
+ TRON_MAINNET_CAIP2,
23
19
  chainRegistry,
24
20
  findChainIdForToken,
25
21
  getChainBadge,
@@ -42,7 +38,7 @@ import {
42
38
  getUsdcDecimals,
43
39
  isSupportedTokenAddressForChain,
44
40
  tokenIconUrl
45
- } from "./chunk-VUATPOWJ.mjs";
41
+ } from "./chunk-EAGMY3QE.mjs";
46
42
 
47
43
  // src/core/reown-disconnect.ts
48
44
  async function disconnectWallet() {
@@ -64,14 +60,15 @@ async function disconnectWallet() {
64
60
  await modal.disconnect();
65
61
  }
66
62
  export {
67
- ClaimModal,
68
63
  DepositModal,
69
64
  HYPERCORE_CHAIN_ID,
70
65
  HYPERCORE_SPOT_CAIP2,
71
66
  HYPERCORE_USDC_ADDRESS,
72
67
  HYPERCORE_USDT0_ADDRESS,
73
68
  NATIVE_TOKEN_ADDRESS,
69
+ STELLAR_PUBNET_CAIP2,
74
70
  SUPPORTED_CHAIN_IDS,
71
+ TRON_MAINNET_CAIP2,
75
72
  WithdrawModal,
76
73
  chainRegistry,
77
74
  disconnectWallet,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkDW2EQA2Ucjs = require('./chunk-DW2EQA2U.cjs');
6
- require('./chunk-4KCSH4T3.cjs');
5
+ var _chunkLVCD6RHFcjs = require('./chunk-LVCD6RHF.cjs');
6
+ require('./chunk-OY5N3E6L.cjs');
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
 
@@ -22,12 +22,12 @@ async function getPolymarketAccount(params) {
22
22
  );
23
23
  }
24
24
  const eoa = _viem.getAddress.call(void 0, params.eoa);
25
- const proxyWallet = await _chunkDW2EQA2Ucjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
25
+ const proxyWallet = await _chunkLVCD6RHFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
26
26
  if (!proxyWallet) return null;
27
27
  throwIfAborted(signal);
28
28
  let balances = { pusd: 0n, usdce: 0n };
29
29
  try {
30
- balances = await _chunkDW2EQA2Ucjs.readPolymarketBalances.call(void 0, {
30
+ balances = await _chunkLVCD6RHFcjs.readPolymarketBalances.call(void 0, {
31
31
  publicClient: polygonClient(rpcUrl),
32
32
  proxyWallet
33
33
  });
@@ -39,7 +39,7 @@ async function getPolymarketAccount(params) {
39
39
  return {
40
40
  eoa,
41
41
  proxyWallet,
42
- chainId: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
42
+ chainId: _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID,
43
43
  pusd,
44
44
  usdce,
45
45
  totalUsd: pusd.usd + usdce.usd
@@ -51,7 +51,7 @@ function toTokenBalance(raw) {
51
51
  return { raw, formatted, usd: Number.isFinite(usd) ? usd : 0 };
52
52
  }
53
53
  var polygon = _viem.defineChain.call(void 0, {
54
- id: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
54
+ id: _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID,
55
55
  name: "Polygon",
56
56
  nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
57
57
  // Verified to answer `eth_chainId` with 137. `polygon-rpc.com`, the obvious
@@ -2,8 +2,8 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-RN5VKWI6.mjs";
6
- import "./chunk-VUATPOWJ.mjs";
5
+ } from "./chunk-FTWKAJGN.mjs";
6
+ import "./chunk-EAGMY3QE.mjs";
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
  import {
package/dist/server.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Server-side helper for the claim flow. Import from
2
+ * Server-side helper for refunding a failed deposit. Import from
3
3
  * `@rhinestone/deposit-modal/server` — this module talks to the processor with
4
4
  * your API key and must never reach the browser.
5
5
  *
@@ -8,7 +8,7 @@
8
8
  * Whether a deposit belongs to a given user is something only your app knows,
9
9
  * so that one decision is yours (`authorize`) and everything else is here.
10
10
  */
11
- /** Body the ClaimModal POSTs to your endpoint. Never trusted on its own. */
11
+ /** Body your own UI POSTs to your endpoint. Never trusted on its own. */
12
12
  interface RefundRequestBody {
13
13
  chain: string;
14
14
  txHash: string;
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Server-side helper for the claim flow. Import from
2
+ * Server-side helper for refunding a failed deposit. Import from
3
3
  * `@rhinestone/deposit-modal/server` — this module talks to the processor with
4
4
  * your API key and must never reach the browser.
5
5
  *
@@ -8,7 +8,7 @@
8
8
  * Whether a deposit belongs to a given user is something only your app knows,
9
9
  * so that one decision is yours (`authorize`) and everything else is here.
10
10
  */
11
- /** Body the ClaimModal POSTs to your endpoint. Never trusted on its own. */
11
+ /** Body your own UI POSTs to your endpoint. Never trusted on its own. */
12
12
  interface RefundRequestBody {
13
13
  chain: string;
14
14
  txHash: string;