@rhinestone/deposit-modal 0.1.24 → 0.1.25

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.
@@ -21,7 +21,11 @@
21
21
 
22
22
 
23
23
 
24
- var _chunkANQQMGNNcjs = require('./chunk-ANQQMGNN.cjs');
24
+
25
+
26
+
27
+
28
+ var _chunkCZWAKYDRcjs = require('./chunk-CZWAKYDR.cjs');
25
29
 
26
30
 
27
31
 
@@ -46,6 +50,8 @@ var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
46
50
 
47
51
 
48
52
 
53
+
54
+
49
55
  var _react = require('react');
50
56
 
51
57
  // src/DepositFlow.tsx
@@ -53,17 +59,18 @@ var _react = require('react');
53
59
 
54
60
  // src/components/steps/SetupStep.tsx
55
61
 
62
+ var _sdk = require('@rhinestone/sdk');
56
63
  var _jsxruntime = require('react/jsx-runtime');
57
64
  async function resolveSessionOwner(eoaAddress) {
58
- const localOwner = _chunkANQQMGNNcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
65
+ const localOwner = _chunkCZWAKYDRcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
59
66
  if (localOwner) {
60
67
  return {
61
- account: _chunkANQQMGNNcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
68
+ account: _chunkCZWAKYDRcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
62
69
  address: localOwner.address
63
70
  };
64
71
  }
65
- const created = _chunkANQQMGNNcjs.createSessionOwnerKey.call(void 0, );
66
- _chunkANQQMGNNcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
72
+ const created = _chunkCZWAKYDRcjs.createSessionOwnerKey.call(void 0, );
73
+ _chunkCZWAKYDRcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
67
74
  return {
68
75
  account: created.account,
69
76
  address: created.address
@@ -73,7 +80,9 @@ function SetupStep({
73
80
  walletClient,
74
81
  address,
75
82
  targetChain,
83
+ targetChainObj,
76
84
  targetToken,
85
+ rhinestoneApiKey,
77
86
  signerAddress,
78
87
  sessionChainIds,
79
88
  recipient,
@@ -85,18 +94,8 @@ function SetupStep({
85
94
  }) {
86
95
  const [state, setState] = _react.useState.call(void 0, { type: "idle" });
87
96
  const setupInitiatedRef = _react.useRef.call(void 0, false);
88
- const signSessionDetails = _react.useCallback.call(void 0,
89
- async (sessionOwner, typedData) => {
90
- const signer = sessionOwner.account;
91
- if (!signer.signTypedData) {
92
- throw new Error("Session owner cannot sign typed data");
93
- }
94
- return await signer.signTypedData(typedData);
95
- },
96
- []
97
- );
98
97
  const runSetup = _react.useCallback.call(void 0, async () => {
99
- if (!address) {
98
+ if (!address || !targetChainObj) {
100
99
  return;
101
100
  }
102
101
  if (walletClient && !walletClient.account) {
@@ -104,16 +103,14 @@ function SetupStep({
104
103
  }
105
104
  try {
106
105
  setState({ type: "creating-account" });
106
+ const signerAccount = walletClient ? _sdk.walletClientToAccount.call(void 0, walletClient) : _chunkCZWAKYDRcjs.createViewOnlyAccount.call(void 0, address);
107
107
  const sessionOwner = await resolveSessionOwner(address);
108
- const prepared = await service.prepareAccount({
109
- ownerAddress: address,
110
- sessionOwnerAddress: sessionOwner.address,
111
- targetChain,
112
- targetToken,
113
- signerAddress,
114
- sessionChainIds
115
- });
116
- const smartAccount = prepared.smartAccount;
108
+ const account = await _chunkCZWAKYDRcjs.createSmartAccount.call(void 0,
109
+ signerAccount,
110
+ sessionOwner.account,
111
+ rhinestoneApiKey
112
+ );
113
+ const smartAccount = _chunkCZWAKYDRcjs.getAccountAddress.call(void 0, account);
117
114
  setState({ type: "checking" });
118
115
  const checkResult = await service.checkAccount(smartAccount);
119
116
  if (checkResult.isRegistered && !forceRegister) {
@@ -126,20 +123,21 @@ function SetupStep({
126
123
  }
127
124
  }
128
125
  setState({ type: "signing-session" });
129
- const signature = await signSessionDetails(
130
- sessionOwner,
131
- prepared.sessionDetailsUnsigned.data
132
- );
133
- const sessionDetails = _chunkANQQMGNNcjs.buildSessionDetails.call(void 0,
134
- prepared.sessionDetailsUnsigned,
135
- signature
126
+ const initData = _chunkCZWAKYDRcjs.getAccountInitData.call(void 0, account);
127
+ const sessionDetails = await _chunkCZWAKYDRcjs.getSessionDetails.call(void 0,
128
+ account,
129
+ targetChainObj,
130
+ signerAddress,
131
+ sessionOwner.account,
132
+ targetToken,
133
+ sessionChainIds
136
134
  );
137
135
  setState({ type: "registering" });
138
136
  await service.registerAccount({
139
137
  address: smartAccount,
140
138
  accountParams: {
141
- factory: prepared.accountParams.factory,
142
- factoryData: prepared.accountParams.factoryData,
139
+ factory: initData.factory,
140
+ factoryData: initData.factoryData,
143
141
  sessionDetails
144
142
  },
145
143
  eoaAddress: address,
@@ -161,8 +159,10 @@ function SetupStep({
161
159
  }, [
162
160
  address,
163
161
  walletClient,
162
+ targetChainObj,
164
163
  targetChain,
165
164
  targetToken,
165
+ rhinestoneApiKey,
166
166
  signerAddress,
167
167
  sessionChainIds,
168
168
  recipient,
@@ -170,16 +170,15 @@ function SetupStep({
170
170
  service,
171
171
  onSetupComplete,
172
172
  onError,
173
- onConnected,
174
- signSessionDetails
173
+ onConnected
175
174
  ]);
176
175
  _react.useEffect.call(void 0, () => {
177
176
  const hasWallet = walletClient ? Boolean(walletClient.account) : true;
178
- if (address && hasWallet && !setupInitiatedRef.current && state.type === "idle") {
177
+ if (address && hasWallet && targetChainObj && !setupInitiatedRef.current && state.type === "idle") {
179
178
  setupInitiatedRef.current = true;
180
179
  runSetup();
181
180
  }
182
- }, [address, walletClient, state.type, runSetup]);
181
+ }, [address, walletClient, targetChainObj, state.type, runSetup]);
183
182
  const handleRetry = () => {
184
183
  setupInitiatedRef.current = false;
185
184
  setState({ type: "idle" });
@@ -207,7 +206,7 @@ function SetupStep({
207
206
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
208
207
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
209
208
  isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
210
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
209
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
211
210
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-text", children: [
212
211
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: renderStateMessage() }),
213
212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "This may take a moment" })
@@ -244,7 +243,7 @@ function SetupStep({
244
243
  ] })
245
244
  ] })
246
245
  ] }),
247
- isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
246
+ isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
248
247
  ] });
249
248
  }
250
249
 
@@ -267,7 +266,7 @@ function AssetSelectStep({
267
266
  const [error, setError] = _react.useState.call(void 0, null);
268
267
  const defaultAssetId = _react.useMemo.call(void 0, () => {
269
268
  if (!defaultSourceChain || !defaultSourceToken) return null;
270
- return _chunkANQQMGNNcjs.getAssetId.call(void 0, {
269
+ return _chunkCZWAKYDRcjs.getAssetId.call(void 0, {
271
270
  chainId: defaultSourceChain,
272
271
  token: defaultSourceToken
273
272
  });
@@ -284,7 +283,7 @@ function AssetSelectStep({
284
283
  try {
285
284
  const portfolio = await service.fetchPortfolio(address);
286
285
  if (!active) return;
287
- const portfolioAssets = _chunkANQQMGNNcjs.portfolioToAssets.call(void 0, portfolio.tokens);
286
+ const portfolioAssets = _chunkCZWAKYDRcjs.portfolioToAssets.call(void 0, portfolio.tokens);
288
287
  setAssets(portfolioAssets);
289
288
  const hasNative = portfolioAssets.some(
290
289
  (asset) => asset.token.toLowerCase() === _chunkCEIWN53Ncjs.NATIVE_TOKEN_ADDRESS
@@ -352,7 +351,7 @@ function AssetSelectStep({
352
351
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
353
352
  const numeric = Number(raw);
354
353
  if (!Number.isFinite(numeric)) return raw;
355
- return _chunkANQQMGNNcjs.tokenFormatter.format(numeric);
354
+ return _chunkCZWAKYDRcjs.tokenFormatter.format(numeric);
356
355
  } catch (e3) {
357
356
  return asset.balance;
358
357
  }
@@ -366,7 +365,7 @@ function AssetSelectStep({
366
365
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
367
366
  children: [
368
367
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
369
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.Spinner, { className: "rs-text-tertiary" }),
368
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.Spinner, { className: "rs-text-tertiary" }),
370
369
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
371
370
  ] }),
372
371
  error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-alert rs-alert--error", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error }) }),
@@ -456,7 +455,7 @@ function AssetSelectStep({
456
455
  ] })
457
456
  ] })
458
457
  ] }),
459
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 ? _chunkANQQMGNNcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
458
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 ? _chunkCZWAKYDRcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
460
459
  ]
461
460
  },
462
461
  asset.id
@@ -466,7 +465,7 @@ function AssetSelectStep({
466
465
  }
467
466
  ),
468
467
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
469
- _chunkANQQMGNNcjs.Button,
468
+ _chunkCZWAKYDRcjs.Button,
470
469
  {
471
470
  onClick: () => selectedAsset && onContinue(selectedAsset),
472
471
  disabled: !selectedAsset,
@@ -474,7 +473,7 @@ function AssetSelectStep({
474
473
  children: "Continue"
475
474
  }
476
475
  ) }),
477
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.PoweredBy, {})
476
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.PoweredBy, {})
478
477
  ] });
479
478
  }
480
479
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -482,7 +481,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
482
481
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
483
482
  if (!connectedChainId) return [];
484
483
  if (!_chunkCEIWN53Ncjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
485
- const id = _chunkANQQMGNNcjs.getAssetId.call(void 0, {
484
+ const id = _chunkCZWAKYDRcjs.getAssetId.call(void 0, {
486
485
  chainId: connectedChainId,
487
486
  token: _chunkCEIWN53Ncjs.NATIVE_TOKEN_ADDRESS
488
487
  });
@@ -562,7 +561,7 @@ function AmountStep({
562
561
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
563
562
  if (!balanceTarget || !publicClient) return;
564
563
  try {
565
- const bal = _chunkANQQMGNNcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
564
+ const bal = _chunkCZWAKYDRcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
566
565
  address: asset.token,
567
566
  abi: _viem.erc20Abi,
568
567
  functionName: "balanceOf",
@@ -623,7 +622,7 @@ function AmountStep({
623
622
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
624
623
  const numeric = Number(raw);
625
624
  if (!Number.isFinite(numeric)) return raw;
626
- return _chunkANQQMGNNcjs.tokenFormatter.format(numeric);
625
+ return _chunkCZWAKYDRcjs.tokenFormatter.format(numeric);
627
626
  } catch (e8) {
628
627
  return "...";
629
628
  }
@@ -637,7 +636,7 @@ function AmountStep({
637
636
  }, [amountUsd, tokenPriceUsd]);
638
637
  const formattedTokenAmount = _react.useMemo.call(void 0, () => {
639
638
  if (tokenAmount === null) return "0.00";
640
- return _chunkANQQMGNNcjs.tokenFormatter.format(tokenAmount);
639
+ return _chunkCZWAKYDRcjs.tokenFormatter.format(tokenAmount);
641
640
  }, [tokenAmount]);
642
641
  const targetSymbol = _chunkCEIWN53Ncjs.getTokenSymbol.call(void 0, targetToken, targetChain);
643
642
  const handlePresetClick = (percentage) => {
@@ -654,13 +653,13 @@ function AmountStep({
654
653
  }
655
654
  if (_optionalChain([uiConfig, 'optionalAccess', _13 => _13.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
656
655
  setError(
657
- `Maximum deposit is ${_chunkANQQMGNNcjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
656
+ `Maximum deposit is ${_chunkCZWAKYDRcjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
658
657
  );
659
658
  return;
660
659
  }
661
660
  if (_optionalChain([uiConfig, 'optionalAccess', _14 => _14.minDepositUsd]) && usdValue < uiConfig.minDepositUsd) {
662
661
  setError(
663
- `Minimum deposit is ${_chunkANQQMGNNcjs.currencyFormatter.format(uiConfig.minDepositUsd)}`
662
+ `Minimum deposit is ${_chunkCZWAKYDRcjs.currencyFormatter.format(uiConfig.minDepositUsd)}`
664
663
  );
665
664
  return;
666
665
  }
@@ -730,7 +729,7 @@ function AmountStep({
730
729
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { color: "var(--rs-muted-foreground)" }, children: [
731
730
  " ",
732
731
  "(",
733
- _chunkANQQMGNNcjs.currencyFormatter.format(balanceUsd),
732
+ _chunkCZWAKYDRcjs.currencyFormatter.format(balanceUsd),
734
733
  ")"
735
734
  ] })
736
735
  ] }) })
@@ -873,7 +872,7 @@ function AmountStep({
873
872
  " to continue."
874
873
  ] }),
875
874
  switchChain && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
876
- _chunkANQQMGNNcjs.Button,
875
+ _chunkCZWAKYDRcjs.Button,
877
876
  {
878
877
  variant: "outline",
879
878
  size: "small",
@@ -906,7 +905,7 @@ function AmountStep({
906
905
  ] })
907
906
  ] }),
908
907
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
909
- _chunkANQQMGNNcjs.Button,
908
+ _chunkCZWAKYDRcjs.Button,
910
909
  {
911
910
  onClick: handleContinue,
912
911
  fullWidth: true,
@@ -914,7 +913,7 @@ function AmountStep({
914
913
  children: "Continue"
915
914
  }
916
915
  ) }),
917
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.PoweredBy, {})
916
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.PoweredBy, {})
918
917
  ] });
919
918
  }
920
919
 
@@ -1024,7 +1023,7 @@ function ConfirmStep({
1024
1023
  throw new Error("Wallet not properly connected");
1025
1024
  }
1026
1025
  const transferTo = sameRoute ? recipient : smartAccount;
1027
- const hash = _chunkANQQMGNNcjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1026
+ const hash = _chunkCZWAKYDRcjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1028
1027
  account,
1029
1028
  chain,
1030
1029
  to: transferTo,
@@ -1041,7 +1040,7 @@ function ConfirmStep({
1041
1040
  onConfirm(hash, asset.chainId, amountUnits.toString(), asset.token);
1042
1041
  } catch (err) {
1043
1042
  const raw = err instanceof Error ? err.message : "Transfer failed";
1044
- const message = _chunkANQQMGNNcjs.formatUserError.call(void 0, raw);
1043
+ const message = _chunkCZWAKYDRcjs.formatUserError.call(void 0, raw);
1045
1044
  setError(message);
1046
1045
  _optionalChain([onError, 'optionalCall', _18 => _18(message, "TRANSFER_ERROR")]);
1047
1046
  } finally {
@@ -1055,7 +1054,7 @@ function ConfirmStep({
1055
1054
  await switchChain(asset.chainId);
1056
1055
  } catch (err) {
1057
1056
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1058
- setError(_chunkANQQMGNNcjs.formatUserError.call(void 0, raw));
1057
+ setError(_chunkCZWAKYDRcjs.formatUserError.call(void 0, raw));
1059
1058
  } finally {
1060
1059
  setIsSwitching(false);
1061
1060
  }
@@ -1160,7 +1159,7 @@ function ConfirmStep({
1160
1159
  ] }),
1161
1160
  receiveAmountUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card-row", children: [
1162
1161
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-label", children: "Value" }),
1163
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-value", children: _chunkANQQMGNNcjs.currencyFormatter.format(receiveAmountUsd) })
1162
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-value", children: _chunkCZWAKYDRcjs.currencyFormatter.format(receiveAmountUsd) })
1164
1163
  ] })
1165
1164
  ] }),
1166
1165
  chainMismatch && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-chain-switch", children: [
@@ -1170,7 +1169,7 @@ function ConfirmStep({
1170
1169
  " to sign."
1171
1170
  ] }),
1172
1171
  switchChain && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1173
- _chunkANQQMGNNcjs.Button,
1172
+ _chunkCZWAKYDRcjs.Button,
1174
1173
  {
1175
1174
  variant: "outline",
1176
1175
  size: "small",
@@ -1203,7 +1202,7 @@ function ConfirmStep({
1203
1202
  ] })
1204
1203
  ] }),
1205
1204
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1206
- _chunkANQQMGNNcjs.Button,
1205
+ _chunkCZWAKYDRcjs.Button,
1207
1206
  {
1208
1207
  onClick: handleConfirm,
1209
1208
  loading: isSubmitting,
@@ -1212,7 +1211,7 @@ function ConfirmStep({
1212
1211
  children: "Confirm Order"
1213
1212
  }
1214
1213
  ) }),
1215
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.PoweredBy, {})
1214
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.PoweredBy, {})
1216
1215
  ] });
1217
1216
  }
1218
1217
 
@@ -1417,7 +1416,7 @@ function DepositAddressStep({
1417
1416
  const status = await service.fetchLatestStatus(smartAccount);
1418
1417
  if (cancelled || depositHandledRef.current) return;
1419
1418
  const event = status.lastEvent;
1420
- const eventTxHash = _chunkANQQMGNNcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_optionalChain([_chunkANQQMGNNcjs.getEventTxHash.call(void 0, event), 'optionalAccess', _22 => _22.toLowerCase, 'call', _23 => _23()]), () => ( null)) : null;
1419
+ const eventTxHash = _chunkCZWAKYDRcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_optionalChain([_chunkCZWAKYDRcjs.getEventTxHash.call(void 0, event), 'optionalAccess', _22 => _22.toLowerCase, 'call', _23 => _23()]), () => ( null)) : null;
1421
1420
  if (baselineTxHash === void 0) {
1422
1421
  baselineTxHash = eventTxHash;
1423
1422
  } else if (eventTxHash && eventTxHash !== baselineTxHash) {
@@ -1630,7 +1629,7 @@ function DepositAddressStep({
1630
1629
  ] }),
1631
1630
  pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError })
1632
1631
  ] }) }),
1633
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANQQMGNNcjs.PoweredBy, {})
1632
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCZWAKYDRcjs.PoweredBy, {})
1634
1633
  ] });
1635
1634
  }
1636
1635
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -1651,6 +1650,7 @@ function DepositFlow({
1651
1650
  sourceToken: defaultSourceToken,
1652
1651
  amount: defaultAmount,
1653
1652
  recipient,
1653
+ rhinestoneApiKey,
1654
1654
  signerAddress = _chunkCEIWN53Ncjs.DEFAULT_SIGNER_ADDRESS,
1655
1655
  sessionChainIds,
1656
1656
  forceRegister = false,
@@ -1716,7 +1716,7 @@ function DepositFlow({
1716
1716
  return {
1717
1717
  ownerAddress: dappAddress,
1718
1718
  walletClient: void 0,
1719
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkANQQMGNNcjs.getPublicClient.call(void 0, targetChain))),
1719
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkCZWAKYDRcjs.getPublicClient.call(void 0, targetChain))),
1720
1720
  switchChain: void 0
1721
1721
  };
1722
1722
  }
@@ -1725,7 +1725,7 @@ function DepositFlow({
1725
1725
  return {
1726
1726
  ownerAddress: dappWalletClient.account.address,
1727
1727
  walletClient: dappWalletClient,
1728
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkANQQMGNNcjs.getPublicClient.call(void 0, fallbackChainId))),
1728
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkCZWAKYDRcjs.getPublicClient.call(void 0, fallbackChainId))),
1729
1729
  switchChain: dappSwitchChain
1730
1730
  };
1731
1731
  }
@@ -1735,7 +1735,7 @@ function DepositFlow({
1735
1735
  return {
1736
1736
  ownerAddress: dappWalletClient.account.address,
1737
1737
  walletClient: dappWalletClient,
1738
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkANQQMGNNcjs.getPublicClient.call(void 0, fallbackChainId))),
1738
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkCZWAKYDRcjs.getPublicClient.call(void 0, fallbackChainId))),
1739
1739
  switchChain: dappSwitchChain
1740
1740
  };
1741
1741
  }
@@ -1943,7 +1943,7 @@ function DepositFlow({
1943
1943
  }, [walletOptionsKey, selectedConnectAddressEffective]);
1944
1944
  if (showConnectStep) {
1945
1945
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1946
- _chunkANQQMGNNcjs.ConnectStep,
1946
+ _chunkCZWAKYDRcjs.ConnectStep,
1947
1947
  {
1948
1948
  walletOptions,
1949
1949
  selectedAddress: selectedConnectAddressEffective,
@@ -1973,7 +1973,9 @@ function DepositFlow({
1973
1973
  {
1974
1974
  address: sessionKeyAddress,
1975
1975
  targetChain,
1976
+ targetChainObj,
1976
1977
  targetToken,
1978
+ rhinestoneApiKey,
1977
1979
  signerAddress,
1978
1980
  sessionChainIds,
1979
1981
  recipient,
@@ -1994,7 +1996,7 @@ function DepositFlow({
1994
1996
  }
1995
1997
  ),
1996
1998
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1997
- _chunkANQQMGNNcjs.ProcessingStep,
1999
+ _chunkCZWAKYDRcjs.ProcessingStep,
1998
2000
  {
1999
2001
  smartAccount: step.smartAccount,
2000
2002
  txHash: step.txHash,
@@ -2025,7 +2027,7 @@ function DepositFlow({
2025
2027
  if (_optionalChain([signerContext, 'access', _58 => _58.publicClient, 'access', _59 => _59.chain, 'optionalAccess', _60 => _60.id]) === chainId) {
2026
2028
  return signerContext.publicClient;
2027
2029
  }
2028
- return _chunkANQQMGNNcjs.getPublicClient.call(void 0, chainId);
2030
+ return _chunkCZWAKYDRcjs.getPublicClient.call(void 0, chainId);
2029
2031
  };
2030
2032
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
2031
2033
  step.type === "setup" && targetChainObj && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2034,7 +2036,9 @@ function DepositFlow({
2034
2036
  walletClient: signerContext.walletClient,
2035
2037
  address: ownerAddress,
2036
2038
  targetChain,
2039
+ targetChainObj,
2037
2040
  targetToken,
2041
+ rhinestoneApiKey,
2038
2042
  signerAddress,
2039
2043
  sessionChainIds,
2040
2044
  recipient,
@@ -2091,7 +2095,7 @@ function DepositFlow({
2091
2095
  }
2092
2096
  ),
2093
2097
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2094
- _chunkANQQMGNNcjs.ProcessingStep,
2098
+ _chunkCZWAKYDRcjs.ProcessingStep,
2095
2099
  {
2096
2100
  smartAccount: step.smartAccount,
2097
2101
  txHash: step.txHash,
@@ -2115,11 +2119,13 @@ function DepositFlow({
2115
2119
 
2116
2120
  // src/DepositModal.tsx
2117
2121
 
2122
+ var ReownDepositInner = _react.lazy.call(void 0,
2123
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-QQ6WI265.cjs"))).then((m) => ({ default: m.DepositModalReown }))
2124
+ );
2118
2125
  function DepositModal(props) {
2119
- if (props.reownAppId) {
2120
- throw new Error(
2121
- 'Reown support moved to "@rhinestone/deposit-modal/reown". Use that entrypoint when passing reownAppId.'
2122
- );
2126
+ const needsReown = !!props.reownAppId;
2127
+ if (needsReown) {
2128
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReownDepositInner, { ...props }) });
2123
2129
  }
2124
2130
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalInner, { ...props });
2125
2131
  }
@@ -2138,6 +2144,7 @@ function DepositModalInner({
2138
2144
  defaultAmount,
2139
2145
  recipient,
2140
2146
  backendUrl = _chunkCEIWN53Ncjs.DEFAULT_BACKEND_URL,
2147
+ rhinestoneApiKey,
2141
2148
  signerAddress = _chunkCEIWN53Ncjs.DEFAULT_SIGNER_ADDRESS,
2142
2149
  sessionChainIds,
2143
2150
  forceRegister = false,
@@ -2164,10 +2171,10 @@ function DepositModalInner({
2164
2171
  const backHandlerRef = _react.useRef.call(void 0, void 0);
2165
2172
  const targetChain = _chunkCEIWN53Ncjs.getChainId.call(void 0, targetChainProp);
2166
2173
  const sourceChain = sourceChainProp ? _chunkCEIWN53Ncjs.getChainId.call(void 0, sourceChainProp) : void 0;
2167
- const service = _react.useMemo.call(void 0, () => _chunkANQQMGNNcjs.createDepositService.call(void 0, backendUrl), [backendUrl]);
2174
+ const service = _react.useMemo.call(void 0, () => _chunkCZWAKYDRcjs.createDepositService.call(void 0, backendUrl), [backendUrl]);
2168
2175
  _react.useEffect.call(void 0, () => {
2169
2176
  if (isOpen && modalRef.current) {
2170
- _chunkANQQMGNNcjs.applyTheme.call(void 0, modalRef.current, theme);
2177
+ _chunkCZWAKYDRcjs.applyTheme.call(void 0, modalRef.current, theme);
2171
2178
  }
2172
2179
  }, [isOpen, theme]);
2173
2180
  const hasCalledReady = _react.useRef.call(void 0, false);
@@ -2203,7 +2210,7 @@ function DepositModalInner({
2203
2210
  const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _69 => _69.title]), () => ( "Deposit"));
2204
2211
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 4 && backHandlerRef.current !== void 0;
2205
2212
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2206
- _chunkANQQMGNNcjs.Modal,
2213
+ _chunkCZWAKYDRcjs.Modal,
2207
2214
  {
2208
2215
  isOpen,
2209
2216
  onClose,
@@ -2264,7 +2271,7 @@ function DepositModalInner({
2264
2271
  balanceTitle,
2265
2272
  ":"
2266
2273
  ] }),
2267
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _chunkANQQMGNNcjs.currencyFormatter.format(totalBalanceUsd) })
2274
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _chunkCZWAKYDRcjs.currencyFormatter.format(totalBalanceUsd) })
2268
2275
  ] })
2269
2276
  ] }),
2270
2277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2307,6 +2314,7 @@ function DepositModalInner({
2307
2314
  sourceToken,
2308
2315
  amount: defaultAmount,
2309
2316
  recipient,
2317
+ rhinestoneApiKey,
2310
2318
  signerAddress,
2311
2319
  sessionChainIds,
2312
2320
  forceRegister,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkA2PDOYYEcjs = require('./chunk-A2PDOYYE.cjs');
4
- require('./chunk-ANQQMGNN.cjs');
3
+ var _chunkVBNFP3JFcjs = require('./chunk-VBNFP3JF.cjs');
4
+ require('./chunk-CZWAKYDR.cjs');
5
5
  require('./chunk-CEIWN53N.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkA2PDOYYEcjs.DepositModal;
8
+ exports.DepositModal = _chunkVBNFP3JFcjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { c as DepositModalProps } from './types-CUww05xT.cjs';
3
- export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData } from './types-CUww05xT.cjs';
2
+ import { c as DepositModalProps } from './types-BwaQ7jK5.cjs';
3
+ export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData } from './types-BwaQ7jK5.cjs';
4
4
  import 'viem';
5
5
  import './safe.cjs';
6
6
 
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { c as DepositModalProps } from './types-Z6GjVWFR.js';
3
- export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData } from './types-Z6GjVWFR.js';
2
+ import { c as DepositModalProps } from './types-CgXyx46m.js';
3
+ export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData } from './types-CgXyx46m.js';
4
4
  import 'viem';
5
5
  import './safe.js';
6
6
 
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ZMVCDFXM.mjs";
4
- import "./chunk-P7SQQAAF.mjs";
3
+ } from "./chunk-JAR372KJ.mjs";
4
+ import "./chunk-GAFLOODV.mjs";
5
5
  import "./chunk-A6QLADED.mjs";
6
6
  export {
7
7
  DepositModal
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkA2PDOYYEcjs = require('./chunk-A2PDOYYE.cjs');
3
+ var _chunkVBNFP3JFcjs = require('./chunk-VBNFP3JF.cjs');
4
4
 
5
5
 
6
- var _chunkO3I5KVXAcjs = require('./chunk-O3I5KVXA.cjs');
7
- require('./chunk-ANQQMGNN.cjs');
6
+ var _chunk4QDHXCPGcjs = require('./chunk-4QDHXCPG.cjs');
7
+ require('./chunk-CZWAKYDR.cjs');
8
8
 
9
9
 
10
10
 
@@ -64,4 +64,4 @@ var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
64
64
 
65
65
 
66
66
 
67
- exports.CHAIN_BY_ID = _chunkCEIWN53Ncjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkCEIWN53Ncjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkCEIWN53Ncjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkA2PDOYYEcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkCEIWN53Ncjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkCEIWN53Ncjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkCEIWN53Ncjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkO3I5KVXAcjs.WithdrawModal; exports.chainRegistry = _chunkCEIWN53Ncjs.chainRegistry; exports.findChainIdForToken = _chunkCEIWN53Ncjs.findChainIdForToken; exports.getChainBadge = _chunkCEIWN53Ncjs.getChainBadge; exports.getChainIcon = _chunkCEIWN53Ncjs.getChainIcon; exports.getChainId = _chunkCEIWN53Ncjs.getChainId; exports.getChainName = _chunkCEIWN53Ncjs.getChainName; exports.getChainObject = _chunkCEIWN53Ncjs.getChainObject; exports.getExplorerName = _chunkCEIWN53Ncjs.getExplorerName; exports.getExplorerTxUrl = _chunkCEIWN53Ncjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkCEIWN53Ncjs.getExplorerUrl; exports.getSupportedChainIds = _chunkCEIWN53Ncjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkCEIWN53Ncjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkCEIWN53Ncjs.getSupportedTokenSymbolsForChain; exports.getTokenAddress = _chunkCEIWN53Ncjs.getTokenAddress; exports.getTokenDecimals = _chunkCEIWN53Ncjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkCEIWN53Ncjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkCEIWN53Ncjs.getTokenIcon; exports.getTokenSymbol = _chunkCEIWN53Ncjs.getTokenSymbol; exports.getUsdcAddress = _chunkCEIWN53Ncjs.getUsdcAddress; exports.getUsdcDecimals = _chunkCEIWN53Ncjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkCEIWN53Ncjs.isSupportedTokenAddressForChain;
67
+ exports.CHAIN_BY_ID = _chunkCEIWN53Ncjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkCEIWN53Ncjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkCEIWN53Ncjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkVBNFP3JFcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkCEIWN53Ncjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkCEIWN53Ncjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkCEIWN53Ncjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk4QDHXCPGcjs.WithdrawModal; exports.chainRegistry = _chunkCEIWN53Ncjs.chainRegistry; exports.findChainIdForToken = _chunkCEIWN53Ncjs.findChainIdForToken; exports.getChainBadge = _chunkCEIWN53Ncjs.getChainBadge; exports.getChainIcon = _chunkCEIWN53Ncjs.getChainIcon; exports.getChainId = _chunkCEIWN53Ncjs.getChainId; exports.getChainName = _chunkCEIWN53Ncjs.getChainName; exports.getChainObject = _chunkCEIWN53Ncjs.getChainObject; exports.getExplorerName = _chunkCEIWN53Ncjs.getExplorerName; exports.getExplorerTxUrl = _chunkCEIWN53Ncjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkCEIWN53Ncjs.getExplorerUrl; exports.getSupportedChainIds = _chunkCEIWN53Ncjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkCEIWN53Ncjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkCEIWN53Ncjs.getSupportedTokenSymbolsForChain; exports.getTokenAddress = _chunkCEIWN53Ncjs.getTokenAddress; exports.getTokenDecimals = _chunkCEIWN53Ncjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkCEIWN53Ncjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkCEIWN53Ncjs.getTokenIcon; exports.getTokenSymbol = _chunkCEIWN53Ncjs.getTokenSymbol; exports.getUsdcAddress = _chunkCEIWN53Ncjs.getUsdcAddress; exports.getUsdcDecimals = _chunkCEIWN53Ncjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkCEIWN53Ncjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, R as ReownWallet, W as WalletOption, g as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-CUww05xT.cjs';
3
+ export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, h as WithdrawModalProps, i as WithdrawSubmittedEventData } from './types-BwaQ7jK5.cjs';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
5
5
  export { SafeTransactionRequest } from './safe.cjs';
6
6
  export { chainRegistry } from '@rhinestone/shared-configs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, R as ReownWallet, W as WalletOption, g as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-Z6GjVWFR.js';
3
+ export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, h as WithdrawModalProps, i as WithdrawSubmittedEventData } from './types-CgXyx46m.js';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
5
  export { SafeTransactionRequest } from './safe.js';
6
6
  export { chainRegistry } from '@rhinestone/shared-configs';
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ZMVCDFXM.mjs";
3
+ } from "./chunk-JAR372KJ.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-35DWLO33.mjs";
7
- import "./chunk-P7SQQAAF.mjs";
6
+ } from "./chunk-B3HMNWR4.mjs";
7
+ import "./chunk-GAFLOODV.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,