@rhinestone/deposit-modal 0.8.2 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +193 -29
  2. package/dist/{chunk-4BLOPOVO.mjs → DepositModalReown-JUJI7UHE.mjs} +56 -4
  3. package/dist/{chunk-5E67UM3V.cjs → DepositModalReown-YQSO4SVY.cjs} +62 -10
  4. package/dist/{caip-C_ZYFIGa.d.cts → caip-523Zrc3r.d.cts} +1 -3
  5. package/dist/{caip-C_ZYFIGa.d.ts → caip-523Zrc3r.d.ts} +1 -3
  6. package/dist/chunk-6U2H3R3T.cjs +2273 -0
  7. package/dist/chunk-7OQO6JDC.mjs +865 -0
  8. package/dist/chunk-A223BLVC.mjs +801 -0
  9. package/dist/chunk-AYWEWI47.mjs +81 -0
  10. package/dist/chunk-EAUF7SGM.cjs +81 -0
  11. package/dist/chunk-EEEQZOTJ.cjs +1785 -0
  12. package/dist/chunk-GYEUZSQP.mjs +1785 -0
  13. package/dist/chunk-H577RJN5.cjs +801 -0
  14. package/dist/{chunk-RARNNVZO.mjs → chunk-ILT2PITN.mjs} +60 -3
  15. package/dist/{chunk-3WIHTUQ6.cjs → chunk-ITFRTPGF.cjs} +232 -601
  16. package/dist/{chunk-KGZU3BL2.mjs → chunk-N3OHR3T2.mjs} +2353 -1713
  17. package/dist/{chunk-XK5RH4FZ.mjs → chunk-QGXAAFHU.mjs} +167 -536
  18. package/dist/chunk-QLZ5RZTA.mjs +11 -0
  19. package/dist/chunk-SQOEHQNT.cjs +865 -0
  20. package/dist/{chunk-46BRQZ2P.cjs → chunk-VQJHYWAE.cjs} +2115 -1475
  21. package/dist/chunk-WUQZYQRK.mjs +2273 -0
  22. package/dist/chunk-XJE5MRY4.cjs +11 -0
  23. package/dist/{chunk-ORKEBFMR.cjs → chunk-YEBXUUH3.cjs} +63 -6
  24. package/dist/claim.cjs +10 -0
  25. package/dist/claim.d.cts +8 -0
  26. package/dist/claim.d.ts +8 -0
  27. package/dist/claim.mjs +10 -0
  28. package/dist/constants.cjs +3 -3
  29. package/dist/constants.d.cts +4 -2
  30. package/dist/constants.d.ts +4 -2
  31. package/dist/constants.mjs +5 -5
  32. package/dist/deposit.cjs +8 -6
  33. package/dist/deposit.d.cts +2 -2
  34. package/dist/deposit.d.ts +2 -2
  35. package/dist/deposit.mjs +7 -5
  36. package/dist/index.cjs +22 -12
  37. package/dist/index.d.cts +15 -2
  38. package/dist/index.d.ts +15 -2
  39. package/dist/index.mjs +21 -11
  40. package/dist/polymarket.cjs +5 -6
  41. package/dist/polymarket.mjs +2 -3
  42. package/dist/server.cjs +96 -0
  43. package/dist/server.d.cts +65 -0
  44. package/dist/server.d.ts +65 -0
  45. package/dist/server.mjs +96 -0
  46. package/dist/styles.css +149 -15
  47. package/dist/types-C0SGf-21.d.cts +606 -0
  48. package/dist/types-C0SGf-21.d.ts +606 -0
  49. package/dist/withdraw.cjs +6 -5
  50. package/dist/withdraw.d.cts +3 -6
  51. package/dist/withdraw.d.ts +3 -6
  52. package/dist/withdraw.mjs +5 -4
  53. package/package.json +53 -6
  54. package/dist/DepositModalReown-A2W6R27Q.cjs +0 -63
  55. package/dist/DepositModalReown-IB5WUXVT.mjs +0 -63
  56. package/dist/WithdrawModalReown-A4S4BJHG.mjs +0 -46
  57. package/dist/WithdrawModalReown-KUWNNA2X.cjs +0 -46
  58. package/dist/chunk-2O2FJYRY.mjs +0 -800
  59. package/dist/chunk-DSXMWQYB.cjs +0 -4542
  60. package/dist/chunk-P5T4XSN2.cjs +0 -800
  61. package/dist/chunk-RH6XQHMA.mjs +0 -295
  62. package/dist/chunk-TUSEN26M.mjs +0 -4542
  63. package/dist/chunk-UNVVUULP.cjs +0 -295
  64. package/dist/types--LQWg_4W.d.cts +0 -468
  65. package/dist/types--LQWg_4W.d.ts +0 -468
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/version.ts
2
+ var MODAL_VERSION = "0.9.1";
3
+ var SERVICE_HEADERS = {
4
+ "Content-Type": "application/json",
5
+ "x-deposit-modal-version": MODAL_VERSION
6
+ };
7
+
8
+
9
+
10
+
11
+ exports.MODAL_VERSION = MODAL_VERSION; exports.SERVICE_HEADERS = SERVICE_HEADERS;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUNVVUULPcjs = require('./chunk-UNVVUULP.cjs');
3
+ var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
4
4
 
5
5
  // src/core/dapp-imports/polymarket/constants.ts
6
6
  var POLYMARKET_POLYGON_CHAIN_ID = 137;
@@ -9,7 +9,7 @@ var POLYMARKET_USDCE_ADDRESS = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
9
9
  var POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = "0x2957922Eb93258b93368531d39fAcCA3B4dC5854";
10
10
  var SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D";
11
11
  var GAMMA_API_PUBLIC_PROFILE = "https://gamma-api.polymarket.com/public-profile";
12
- var POLYMARKET_ICON_URL = "data:image/svg+xml,%3Csvg width='512' height='512' viewBox='0 0 512 512' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='512' height='512' fill='%232E5CFF'/%3E%3Cpath d='M375.84 389.422C375.84 403.572 375.84 410.647 371.212 414.154C366.585 417.662 359.773 415.75 346.15 411.927L127.22 350.493C119.012 348.19 114.907 347.038 112.534 343.907C110.161 340.776 110.161 336.513 110.161 327.988V184.012C110.161 175.487 110.161 171.224 112.534 168.093C114.907 164.962 119.012 163.81 127.22 161.507L346.15 100.072C359.773 96.2495 366.585 94.338 371.212 97.8455C375.84 101.353 375.84 108.428 375.84 122.578V389.422ZM164.761 330.463L346.035 381.337V279.595L164.761 330.463ZM139.963 306.862L321.201 256L139.963 205.138V306.862ZM164.759 181.537L346.035 232.406V130.663L164.759 181.537Z' fill='white'/%3E%3C/svg%3E";
12
+ var POLYMARKET_ICON_URL = _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "polymarket");
13
13
 
14
14
  // src/core/dapp-imports/polymarket/gamma-api.ts
15
15
  var _viem = require('viem');
@@ -53,6 +53,62 @@ async function fetchPolymarketProxyWallet(eoa, signal) {
53
53
 
54
54
 
55
55
 
56
+
57
+ // src/core/dapp-imports/polymarket/safe-abi.ts
58
+ var SAFE_ABI = [
59
+ {
60
+ type: "function",
61
+ name: "isOwner",
62
+ stateMutability: "view",
63
+ inputs: [{ name: "owner", type: "address" }],
64
+ outputs: [{ name: "", type: "bool" }]
65
+ },
66
+ {
67
+ type: "function",
68
+ name: "nonce",
69
+ stateMutability: "view",
70
+ inputs: [],
71
+ outputs: [{ type: "uint256" }]
72
+ },
73
+ {
74
+ type: "function",
75
+ name: "execTransaction",
76
+ stateMutability: "payable",
77
+ inputs: [
78
+ { name: "to", type: "address" },
79
+ { name: "value", type: "uint256" },
80
+ { name: "data", type: "bytes" },
81
+ { name: "operation", type: "uint8" },
82
+ { name: "safeTxGas", type: "uint256" },
83
+ { name: "baseGas", type: "uint256" },
84
+ { name: "gasPrice", type: "uint256" },
85
+ { name: "gasToken", type: "address" },
86
+ { name: "refundReceiver", type: "address" },
87
+ { name: "signatures", type: "bytes" }
88
+ ],
89
+ outputs: [{ name: "success", type: "bool" }]
90
+ },
91
+ {
92
+ type: "event",
93
+ name: "ExecutionSuccess",
94
+ inputs: [
95
+ { name: "txHash", type: "bytes32", indexed: true },
96
+ { name: "payment", type: "uint256", indexed: false }
97
+ ],
98
+ anonymous: false
99
+ },
100
+ {
101
+ type: "event",
102
+ name: "ExecutionFailure",
103
+ inputs: [
104
+ { name: "txHash", type: "bytes32", indexed: true },
105
+ { name: "payment", type: "uint256", indexed: false }
106
+ ],
107
+ anonymous: false
108
+ }
109
+ ];
110
+
111
+ // src/core/dapp-imports/polymarket/safe.ts
56
112
  var COLLATERAL_OFFRAMP_ABI = _viem.parseAbi.call(void 0, [
57
113
  "function unwrap(address _asset, address _to, uint256 _amount)"
58
114
  ]);
@@ -100,7 +156,7 @@ async function executePolymarketSafeTransfer(params) {
100
156
  }
101
157
  const isOwner = await publicClient.readContract({
102
158
  address: safeAddress,
103
- abi: _chunkUNVVUULPcjs.SAFE_ABI,
159
+ abi: SAFE_ABI,
104
160
  functionName: "isOwner",
105
161
  args: [account.address]
106
162
  });
@@ -117,7 +173,7 @@ async function executePolymarketSafeTransfer(params) {
117
173
  account,
118
174
  chain,
119
175
  address: safeAddress,
120
- abi: _chunkUNVVUULPcjs.SAFE_ABI,
176
+ abi: SAFE_ABI,
121
177
  functionName: "execTransaction",
122
178
  args: [
123
179
  safeTx.to,
@@ -136,7 +192,7 @@ async function executePolymarketSafeTransfer(params) {
136
192
  hash: txHash
137
193
  });
138
194
  const parsed = _viem.parseEventLogs.call(void 0, {
139
- abi: _chunkUNVVUULPcjs.SAFE_ABI,
195
+ abi: SAFE_ABI,
140
196
  logs: receipt.logs.filter(
141
197
  (log) => log.address.toLowerCase() === safeAddress.toLowerCase()
142
198
  ),
@@ -209,4 +265,5 @@ function encodeMultiSendCall(to, data) {
209
265
 
210
266
 
211
267
 
212
- exports.POLYMARKET_POLYGON_CHAIN_ID = POLYMARKET_POLYGON_CHAIN_ID; exports.POLYMARKET_PUSD_ADDRESS = POLYMARKET_PUSD_ADDRESS; exports.POLYMARKET_USDCE_ADDRESS = POLYMARKET_USDCE_ADDRESS; exports.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS; exports.POLYMARKET_ICON_URL = POLYMARKET_ICON_URL; exports.fetchPolymarketProxyWallet = fetchPolymarketProxyWallet; exports.readPolymarketBalances = readPolymarketBalances; exports.executePolymarketSafeTransfer = executePolymarketSafeTransfer;
268
+
269
+ exports.POLYMARKET_POLYGON_CHAIN_ID = POLYMARKET_POLYGON_CHAIN_ID; exports.POLYMARKET_PUSD_ADDRESS = POLYMARKET_PUSD_ADDRESS; exports.POLYMARKET_USDCE_ADDRESS = POLYMARKET_USDCE_ADDRESS; exports.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS; exports.POLYMARKET_ICON_URL = POLYMARKET_ICON_URL; exports.SAFE_ABI = SAFE_ABI; exports.fetchPolymarketProxyWallet = fetchPolymarketProxyWallet; exports.readPolymarketBalances = readPolymarketBalances; exports.executePolymarketSafeTransfer = executePolymarketSafeTransfer;
package/dist/claim.cjs ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkSQOEHQNTcjs = require('./chunk-SQOEHQNT.cjs');
4
+ require('./chunk-EAUF7SGM.cjs');
5
+ require('./chunk-6U2H3R3T.cjs');
6
+ require('./chunk-XJE5MRY4.cjs');
7
+ require('./chunk-H577RJN5.cjs');
8
+
9
+
10
+ exports.ClaimModal = _chunkSQOEHQNTcjs.ClaimModal;
@@ -0,0 +1,8 @@
1
+ import * as react from 'react';
2
+ import { d as ClaimModalProps } from './types-C0SGf-21.cjs';
3
+ export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-C0SGf-21.cjs';
4
+ import 'viem';
5
+
6
+ declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, }: ClaimModalProps): react.JSX.Element;
7
+
8
+ export { ClaimModal, ClaimModalProps };
@@ -0,0 +1,8 @@
1
+ import * as react from 'react';
2
+ import { d as ClaimModalProps } from './types-C0SGf-21.js';
3
+ export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-C0SGf-21.js';
4
+ import 'viem';
5
+
6
+ declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, }: ClaimModalProps): react.JSX.Element;
7
+
8
+ export { ClaimModal, ClaimModalProps };
package/dist/claim.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import {
2
+ ClaimModal
3
+ } from "./chunk-7OQO6JDC.mjs";
4
+ import "./chunk-AYWEWI47.mjs";
5
+ import "./chunk-WUQZYQRK.mjs";
6
+ import "./chunk-QLZ5RZTA.mjs";
7
+ import "./chunk-A223BLVC.mjs";
8
+ export {
9
+ ClaimModal
10
+ };
@@ -1,5 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkXJE5MRY4cjs = require('./chunk-XJE5MRY4.cjs');
3
4
 
4
5
 
5
6
 
@@ -33,7 +34,7 @@
33
34
 
34
35
 
35
36
 
36
- var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
37
+ var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
37
38
 
38
39
 
39
40
 
@@ -68,5 +69,4 @@ var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
68
69
 
69
70
 
70
71
 
71
-
72
- exports.CHAIN_BY_ID = _chunkP5T4XSN2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkP5T4XSN2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkP5T4XSN2cjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkP5T4XSN2cjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkP5T4XSN2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkP5T4XSN2cjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkP5T4XSN2cjs.chainRegistry; exports.findChainIdForToken = _chunkP5T4XSN2cjs.findChainIdForToken; exports.getChainBadge = _chunkP5T4XSN2cjs.getChainBadge; exports.getChainIcon = _chunkP5T4XSN2cjs.getChainIcon; exports.getChainId = _chunkP5T4XSN2cjs.getChainId; exports.getChainName = _chunkP5T4XSN2cjs.getChainName; exports.getChainObject = _chunkP5T4XSN2cjs.getChainObject; exports.getExplorerName = _chunkP5T4XSN2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkP5T4XSN2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkP5T4XSN2cjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkP5T4XSN2cjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkP5T4XSN2cjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkP5T4XSN2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkP5T4XSN2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkP5T4XSN2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkP5T4XSN2cjs.getTokenAddress; exports.getTokenDecimals = _chunkP5T4XSN2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkP5T4XSN2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkP5T4XSN2cjs.getTokenIcon; exports.getTokenSymbol = _chunkP5T4XSN2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkP5T4XSN2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkP5T4XSN2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkP5T4XSN2cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkP5T4XSN2cjs.tokenIconUrl;
72
+ exports.CHAIN_BY_ID = _chunkH577RJN5cjs.CHAIN_BY_ID; exports.HYPERCORE_CHAIN_ID = _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkH577RJN5cjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunkXJE5MRY4cjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkH577RJN5cjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkH577RJN5cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkH577RJN5cjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkH577RJN5cjs.chainRegistry; exports.findChainIdForToken = _chunkH577RJN5cjs.findChainIdForToken; exports.getChainBadge = _chunkH577RJN5cjs.getChainBadge; exports.getChainIcon = _chunkH577RJN5cjs.getChainIcon; exports.getChainId = _chunkH577RJN5cjs.getChainId; exports.getChainName = _chunkH577RJN5cjs.getChainName; exports.getChainObject = _chunkH577RJN5cjs.getChainObject; exports.getExplorerName = _chunkH577RJN5cjs.getExplorerName; exports.getExplorerTxUrl = _chunkH577RJN5cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkH577RJN5cjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkH577RJN5cjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkH577RJN5cjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkH577RJN5cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkH577RJN5cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkH577RJN5cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkH577RJN5cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkH577RJN5cjs.getTokenAddress; exports.getTokenDecimals = _chunkH577RJN5cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkH577RJN5cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkH577RJN5cjs.getTokenIcon; exports.getTokenSymbol = _chunkH577RJN5cjs.getTokenSymbol; exports.getUsdcAddress = _chunkH577RJN5cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkH577RJN5cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkH577RJN5cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkH577RJN5cjs.tokenIconUrl;
@@ -1,7 +1,9 @@
1
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as SupportedTokenOption, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain, A as tokenIconUrl } from './caip-C_ZYFIGa.cjs';
1
+ export { C as CHAIN_BY_ID, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, A as SupportedTokenOption, d as chainRegistry, f as findChainIdForToken, g as getChainBadge, e as getChainIcon, h as getChainId, i as getChainName, j as getChainObject, k as getExplorerName, l as getExplorerTxUrl, m as getExplorerUrl, n as getSupportedChainIds, o as getSupportedTargetTokens, p as getSupportedTokenSymbolsForChain, q as getTargetTokenSymbolsForChain, r as getTokenAddress, s as getTokenDecimals, t as getTokenDecimalsByAddress, u as getTokenIcon, v as getTokenSymbol, w as getUsdcAddress, x as getUsdcDecimals, y as isSupportedTokenAddressForChain, z as tokenIconUrl } from './caip-523Zrc3r.cjs';
2
2
  import 'viem/chains';
3
3
  import 'viem';
4
4
 
5
+ declare const MODAL_VERSION = "0.9.1";
6
+
5
7
  /**
6
8
  * Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
7
9
  * can be imported from EVM code paths (e.g. `constants.ts`) without pulling
@@ -18,4 +20,4 @@ declare const SOLANA_TOKENS: SolanaToken[];
18
20
  declare function getSolanaTokenBySymbol(symbol: string): SolanaToken | undefined;
19
21
  declare function getSolanaTokenByMint(mint: string): SolanaToken | undefined;
20
22
 
21
- export { SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
23
+ export { MODAL_VERSION, SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
@@ -1,7 +1,9 @@
1
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as SupportedTokenOption, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain, A as tokenIconUrl } from './caip-C_ZYFIGa.js';
1
+ export { C as CHAIN_BY_ID, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, A as SupportedTokenOption, d as chainRegistry, f as findChainIdForToken, g as getChainBadge, e as getChainIcon, h as getChainId, i as getChainName, j as getChainObject, k as getExplorerName, l as getExplorerTxUrl, m as getExplorerUrl, n as getSupportedChainIds, o as getSupportedTargetTokens, p as getSupportedTokenSymbolsForChain, q as getTargetTokenSymbolsForChain, r as getTokenAddress, s as getTokenDecimals, t as getTokenDecimalsByAddress, u as getTokenIcon, v as getTokenSymbol, w as getUsdcAddress, x as getUsdcDecimals, y as isSupportedTokenAddressForChain, z as tokenIconUrl } from './caip-523Zrc3r.js';
2
2
  import 'viem/chains';
3
3
  import 'viem';
4
4
 
5
+ declare const MODAL_VERSION = "0.9.1";
6
+
5
7
  /**
6
8
  * Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
7
9
  * can be imported from EVM code paths (e.g. `constants.ts`) without pulling
@@ -18,4 +20,4 @@ declare const SOLANA_TOKENS: SolanaToken[];
18
20
  declare function getSolanaTokenBySymbol(symbol: string): SolanaToken | undefined;
19
21
  declare function getSolanaTokenByMint(mint: string): SolanaToken | undefined;
20
22
 
21
- export { SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
23
+ export { MODAL_VERSION, SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
@@ -1,7 +1,8 @@
1
+ import {
2
+ MODAL_VERSION
3
+ } from "./chunk-QLZ5RZTA.mjs";
1
4
  import {
2
5
  CHAIN_BY_ID,
3
- DEFAULT_BACKEND_URL,
4
- DEFAULT_SIGNER_ADDRESS,
5
6
  HYPERCORE_CHAIN_ID,
6
7
  HYPERCORE_USDC_ADDRESS,
7
8
  NATIVE_TOKEN_ADDRESS,
@@ -33,13 +34,12 @@ import {
33
34
  getUsdcDecimals,
34
35
  isSupportedTokenAddressForChain,
35
36
  tokenIconUrl
36
- } from "./chunk-2O2FJYRY.mjs";
37
+ } from "./chunk-A223BLVC.mjs";
37
38
  export {
38
39
  CHAIN_BY_ID,
39
- DEFAULT_BACKEND_URL,
40
- DEFAULT_SIGNER_ADDRESS,
41
40
  HYPERCORE_CHAIN_ID,
42
41
  HYPERCORE_USDC_ADDRESS,
42
+ MODAL_VERSION,
43
43
  NATIVE_TOKEN_ADDRESS,
44
44
  SOLANA_TOKENS,
45
45
  SOURCE_CHAINS,
package/dist/deposit.cjs CHANGED
@@ -1,10 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk46BRQZ2Pcjs = require('./chunk-46BRQZ2P.cjs');
4
- require('./chunk-ORKEBFMR.cjs');
5
- require('./chunk-DSXMWQYB.cjs');
6
- require('./chunk-UNVVUULP.cjs');
7
- require('./chunk-P5T4XSN2.cjs');
3
+ var _chunkVQJHYWAEcjs = require('./chunk-VQJHYWAE.cjs');
4
+ require('./chunk-EEEQZOTJ.cjs');
5
+ require('./chunk-EAUF7SGM.cjs');
6
+ require('./chunk-6U2H3R3T.cjs');
7
+ require('./chunk-XJE5MRY4.cjs');
8
+ require('./chunk-YEBXUUH3.cjs');
9
+ require('./chunk-H577RJN5.cjs');
8
10
 
9
11
 
10
- exports.DepositModal = _chunk46BRQZ2Pcjs.DepositModal;
12
+ exports.DepositModal = _chunkVQJHYWAEcjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types--LQWg_4W.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, j as RpcUrlMap } from './types--LQWg_4W.cjs';
2
+ import { i as DepositModalProps } from './types-C0SGf-21.cjs';
3
+ export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-C0SGf-21.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types--LQWg_4W.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, j as RpcUrlMap } from './types--LQWg_4W.js';
2
+ import { i as DepositModalProps } from './types-C0SGf-21.js';
3
+ export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-C0SGf-21.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.mjs CHANGED
@@ -1,10 +1,12 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-KGZU3BL2.mjs";
4
- import "./chunk-RARNNVZO.mjs";
5
- import "./chunk-TUSEN26M.mjs";
6
- import "./chunk-RH6XQHMA.mjs";
7
- import "./chunk-2O2FJYRY.mjs";
3
+ } from "./chunk-N3OHR3T2.mjs";
4
+ import "./chunk-GYEUZSQP.mjs";
5
+ import "./chunk-AYWEWI47.mjs";
6
+ import "./chunk-WUQZYQRK.mjs";
7
+ import "./chunk-QLZ5RZTA.mjs";
8
+ import "./chunk-ILT2PITN.mjs";
9
+ import "./chunk-A223BLVC.mjs";
8
10
  export {
9
11
  DepositModal
10
12
  };
package/dist/index.cjs CHANGED
@@ -1,14 +1,17 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
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 _chunk46BRQZ2Pcjs = require('./chunk-46BRQZ2P.cjs');
4
- require('./chunk-ORKEBFMR.cjs');
3
+ var _chunkVQJHYWAEcjs = require('./chunk-VQJHYWAE.cjs');
5
4
 
6
5
 
7
- var _chunk3WIHTUQ6cjs = require('./chunk-3WIHTUQ6.cjs');
8
- require('./chunk-DSXMWQYB.cjs');
9
- require('./chunk-UNVVUULP.cjs');
6
+ var _chunkITFRTPGFcjs = require('./chunk-ITFRTPGF.cjs');
7
+ require('./chunk-EEEQZOTJ.cjs');
10
8
 
11
9
 
10
+ var _chunkSQOEHQNTcjs = require('./chunk-SQOEHQNT.cjs');
11
+ require('./chunk-EAUF7SGM.cjs');
12
+ require('./chunk-6U2H3R3T.cjs');
13
+ require('./chunk-XJE5MRY4.cjs');
14
+ require('./chunk-YEBXUUH3.cjs');
12
15
 
13
16
 
14
17
 
@@ -40,18 +43,26 @@ require('./chunk-UNVVUULP.cjs');
40
43
 
41
44
 
42
45
 
43
- var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
46
+ var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
44
47
 
45
48
  // src/core/reown-disconnect.ts
46
- var _react = require('@reown/appkit/react');
47
49
  async function disconnectWallet() {
48
- if (!_react.modal) {
50
+ let modal;
51
+ try {
52
+ ({ modal } = await Promise.resolve().then(() => _interopRequireWildcard(require("@reown/appkit/react"))));
53
+ } catch (e) {
54
+ console.warn(
55
+ "[rhinestone] disconnectWallet called but @reown/appkit is not installed; no-op."
56
+ );
57
+ return;
58
+ }
59
+ if (!modal) {
49
60
  console.warn(
50
61
  "[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
51
62
  );
52
63
  return;
53
64
  }
54
- await _react.modal.disconnect();
65
+ await modal.disconnect();
55
66
  }
56
67
 
57
68
 
@@ -88,5 +99,4 @@ async function disconnectWallet() {
88
99
 
89
100
 
90
101
 
91
-
92
- exports.CHAIN_BY_ID = _chunkP5T4XSN2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkP5T4XSN2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk46BRQZ2Pcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkP5T4XSN2cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkP5T4XSN2cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkP5T4XSN2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkP5T4XSN2cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk3WIHTUQ6cjs.WithdrawModal; exports.chainRegistry = _chunkP5T4XSN2cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkP5T4XSN2cjs.findChainIdForToken; exports.getChainBadge = _chunkP5T4XSN2cjs.getChainBadge; exports.getChainIcon = _chunkP5T4XSN2cjs.getChainIcon; exports.getChainId = _chunkP5T4XSN2cjs.getChainId; exports.getChainName = _chunkP5T4XSN2cjs.getChainName; exports.getChainObject = _chunkP5T4XSN2cjs.getChainObject; exports.getExplorerName = _chunkP5T4XSN2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkP5T4XSN2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkP5T4XSN2cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkP5T4XSN2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkP5T4XSN2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkP5T4XSN2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkP5T4XSN2cjs.getTokenAddress; exports.getTokenDecimals = _chunkP5T4XSN2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkP5T4XSN2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkP5T4XSN2cjs.getTokenIcon; exports.getTokenSymbol = _chunkP5T4XSN2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkP5T4XSN2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkP5T4XSN2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkP5T4XSN2cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkP5T4XSN2cjs.tokenIconUrl;
102
+ exports.CHAIN_BY_ID = _chunkH577RJN5cjs.CHAIN_BY_ID; exports.ClaimModal = _chunkSQOEHQNTcjs.ClaimModal; exports.DepositModal = _chunkVQJHYWAEcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkH577RJN5cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkH577RJN5cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkH577RJN5cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkH577RJN5cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkITFRTPGFcjs.WithdrawModal; exports.chainRegistry = _chunkH577RJN5cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkH577RJN5cjs.findChainIdForToken; exports.getChainBadge = _chunkH577RJN5cjs.getChainBadge; exports.getChainIcon = _chunkH577RJN5cjs.getChainIcon; exports.getChainId = _chunkH577RJN5cjs.getChainId; exports.getChainName = _chunkH577RJN5cjs.getChainName; exports.getChainObject = _chunkH577RJN5cjs.getChainObject; exports.getExplorerName = _chunkH577RJN5cjs.getExplorerName; exports.getExplorerTxUrl = _chunkH577RJN5cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkH577RJN5cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkH577RJN5cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkH577RJN5cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkH577RJN5cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkH577RJN5cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkH577RJN5cjs.getTokenAddress; exports.getTokenDecimals = _chunkH577RJN5cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkH577RJN5cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkH577RJN5cjs.getTokenIcon; exports.getTokenSymbol = _chunkH577RJN5cjs.getTokenSymbol; exports.getUsdcAddress = _chunkH577RJN5cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkH577RJN5cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkH577RJN5cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkH577RJN5cjs.tokenIconUrl;
package/dist/index.d.cts CHANGED
@@ -1,12 +1,25 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types--LQWg_4W.cjs';
3
+ export { ClaimModal } from './claim.cjs';
4
+ export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-C0SGf-21.cjs';
4
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
5
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, B as HYPERCORE_USDT0_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain, A as tokenIconUrl } from './caip-C_ZYFIGa.cjs';
6
+ export { C as CHAIN_BY_ID, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_USDC_ADDRESS, b as HYPERCORE_USDT0_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as chainRegistry, f as findChainIdForToken, g as getChainBadge, e as getChainIcon, h as getChainId, i as getChainName, j as getChainObject, k as getExplorerName, l as getExplorerTxUrl, m as getExplorerUrl, n as getSupportedChainIds, o as getSupportedTargetTokens, p as getSupportedTokenSymbolsForChain, q as getTargetTokenSymbolsForChain, r as getTokenAddress, s as getTokenDecimals, t as getTokenDecimalsByAddress, u as getTokenIcon, v as getTokenSymbol, w as getUsdcAddress, x as getUsdcDecimals, y as isSupportedTokenAddressForChain, z as tokenIconUrl } from './caip-523Zrc3r.cjs';
6
7
  import 'react';
7
8
  import 'viem';
8
9
  import 'viem/chains';
9
10
 
11
+ /**
12
+ * Disconnects a wallet connected through the modal's own Reown/AppKit session.
13
+ *
14
+ * AppKit is resolved DYNAMICALLY, and that is load-bearing for packaging: this
15
+ * module is re-exported from the package entry, so a static import pulls
16
+ * `@reown/appkit` into every consumer's graph — including apps that pass their
17
+ * own `walletClient` and never open AppKit. Keeping it dynamic is what lets the
18
+ * AppKit peers be optional.
19
+ *
20
+ * An app without AppKit installed has nothing to disconnect, so a failed resolve
21
+ * is a warning rather than a throw.
22
+ */
10
23
  declare function disconnectWallet(): Promise<void>;
11
24
 
12
25
  export { disconnectWallet };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,25 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types--LQWg_4W.js';
3
+ export { ClaimModal } from './claim.js';
4
+ export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-C0SGf-21.js';
4
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
5
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, B as HYPERCORE_USDT0_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain, A as tokenIconUrl } from './caip-C_ZYFIGa.js';
6
+ export { C as CHAIN_BY_ID, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_USDC_ADDRESS, b as HYPERCORE_USDT0_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as chainRegistry, f as findChainIdForToken, g as getChainBadge, e as getChainIcon, h as getChainId, i as getChainName, j as getChainObject, k as getExplorerName, l as getExplorerTxUrl, m as getExplorerUrl, n as getSupportedChainIds, o as getSupportedTargetTokens, p as getSupportedTokenSymbolsForChain, q as getTargetTokenSymbolsForChain, r as getTokenAddress, s as getTokenDecimals, t as getTokenDecimalsByAddress, u as getTokenIcon, v as getTokenSymbol, w as getUsdcAddress, x as getUsdcDecimals, y as isSupportedTokenAddressForChain, z as tokenIconUrl } from './caip-523Zrc3r.js';
6
7
  import 'react';
7
8
  import 'viem';
8
9
  import 'viem/chains';
9
10
 
11
+ /**
12
+ * Disconnects a wallet connected through the modal's own Reown/AppKit session.
13
+ *
14
+ * AppKit is resolved DYNAMICALLY, and that is load-bearing for packaging: this
15
+ * module is re-exported from the package entry, so a static import pulls
16
+ * `@reown/appkit` into every consumer's graph — including apps that pass their
17
+ * own `walletClient` and never open AppKit. Keeping it dynamic is what lets the
18
+ * AppKit peers be optional.
19
+ *
20
+ * An app without AppKit installed has nothing to disconnect, so a failed resolve
21
+ * is a warning rather than a throw.
22
+ */
10
23
  declare function disconnectWallet(): Promise<void>;
11
24
 
12
25
  export { disconnectWallet };
package/dist/index.mjs CHANGED
@@ -1,16 +1,19 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-KGZU3BL2.mjs";
4
- import "./chunk-RARNNVZO.mjs";
3
+ } from "./chunk-N3OHR3T2.mjs";
5
4
  import {
6
5
  WithdrawModal
7
- } from "./chunk-XK5RH4FZ.mjs";
8
- import "./chunk-TUSEN26M.mjs";
9
- import "./chunk-RH6XQHMA.mjs";
6
+ } from "./chunk-QGXAAFHU.mjs";
7
+ import "./chunk-GYEUZSQP.mjs";
8
+ import {
9
+ ClaimModal
10
+ } from "./chunk-7OQO6JDC.mjs";
11
+ import "./chunk-AYWEWI47.mjs";
12
+ import "./chunk-WUQZYQRK.mjs";
13
+ import "./chunk-QLZ5RZTA.mjs";
14
+ import "./chunk-ILT2PITN.mjs";
10
15
  import {
11
16
  CHAIN_BY_ID,
12
- DEFAULT_BACKEND_URL,
13
- DEFAULT_SIGNER_ADDRESS,
14
17
  HYPERCORE_CHAIN_ID,
15
18
  HYPERCORE_USDC_ADDRESS,
16
19
  HYPERCORE_USDT0_ADDRESS,
@@ -40,11 +43,19 @@ import {
40
43
  getUsdcDecimals,
41
44
  isSupportedTokenAddressForChain,
42
45
  tokenIconUrl
43
- } from "./chunk-2O2FJYRY.mjs";
46
+ } from "./chunk-A223BLVC.mjs";
44
47
 
45
48
  // src/core/reown-disconnect.ts
46
- import { modal } from "@reown/appkit/react";
47
49
  async function disconnectWallet() {
50
+ let modal;
51
+ try {
52
+ ({ modal } = await import("@reown/appkit/react"));
53
+ } catch {
54
+ console.warn(
55
+ "[rhinestone] disconnectWallet called but @reown/appkit is not installed; no-op."
56
+ );
57
+ return;
58
+ }
48
59
  if (!modal) {
49
60
  console.warn(
50
61
  "[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
@@ -55,8 +66,7 @@ async function disconnectWallet() {
55
66
  }
56
67
  export {
57
68
  CHAIN_BY_ID,
58
- DEFAULT_BACKEND_URL,
59
- DEFAULT_SIGNER_ADDRESS,
69
+ ClaimModal,
60
70
  DepositModal,
61
71
  HYPERCORE_CHAIN_ID,
62
72
  HYPERCORE_USDC_ADDRESS,
@@ -2,9 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkORKEBFMRcjs = require('./chunk-ORKEBFMR.cjs');
6
- require('./chunk-UNVVUULP.cjs');
7
- require('./chunk-P5T4XSN2.cjs');
5
+ var _chunkYEBXUUH3cjs = require('./chunk-YEBXUUH3.cjs');
6
+ require('./chunk-H577RJN5.cjs');
8
7
 
9
8
  // src/core/dapp-imports/polymarket/account.ts
10
9
 
@@ -23,12 +22,12 @@ async function getPolymarketAccount(params) {
23
22
  );
24
23
  }
25
24
  const eoa = _viem.getAddress.call(void 0, params.eoa);
26
- const proxyWallet = await _chunkORKEBFMRcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
25
+ const proxyWallet = await _chunkYEBXUUH3cjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
27
26
  if (!proxyWallet) return null;
28
27
  throwIfAborted(signal);
29
28
  let balances = { pusd: 0n, usdce: 0n };
30
29
  try {
31
- balances = await _chunkORKEBFMRcjs.readPolymarketBalances.call(void 0, {
30
+ balances = await _chunkYEBXUUH3cjs.readPolymarketBalances.call(void 0, {
32
31
  publicClient: polygonClient(rpcUrl),
33
32
  proxyWallet
34
33
  });
@@ -40,7 +39,7 @@ async function getPolymarketAccount(params) {
40
39
  return {
41
40
  eoa,
42
41
  proxyWallet,
43
- chainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
42
+ chainId: _chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID,
44
43
  pusd,
45
44
  usdce,
46
45
  totalUsd: pusd.usd + usdce.usd
@@ -2,9 +2,8 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-RARNNVZO.mjs";
6
- import "./chunk-RH6XQHMA.mjs";
7
- import "./chunk-2O2FJYRY.mjs";
5
+ } from "./chunk-ILT2PITN.mjs";
6
+ import "./chunk-A223BLVC.mjs";
8
7
 
9
8
  // src/core/dapp-imports/polymarket/account.ts
10
9
  import {