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

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.
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
14
+ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
15
15
 
16
16
  // src/components/ui/Modal.tsx
17
17
 
@@ -881,7 +881,7 @@ function createDepositService(baseUrl, options) {
881
881
  },
882
882
  async checkLiquidity(params) {
883
883
  if (params.destinationChainId === "solana") {
884
- const token = _chunkMHKHSCIAcjs.getSolanaTokenByMint.call(void 0, params.destinationToken);
884
+ const token = _chunk7JIDIX27cjs.getSolanaTokenByMint.call(void 0, params.destinationToken);
885
885
  return {
886
886
  hasLiquidity: true,
887
887
  symbol: _nullishCoalesce(_optionalChain([token, 'optionalAccess', _23 => _23.symbol]), () => ( "Token")),
@@ -990,14 +990,14 @@ function normalizeOrchestratorPortfolio(data) {
990
990
  const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _28 => _28.balance, 'optionalAccess', _29 => _29.unlocked]), () => ( "0"));
991
991
  const normalizedName = tokenData.tokenName.trim();
992
992
  const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
993
- const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkMHKHSCIAcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
994
- const resolvedTokenAddress = isNativeSymbol ? _chunkMHKHSCIAcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
993
+ const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunk7JIDIX27cjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
994
+ const resolvedTokenAddress = isNativeSymbol ? _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
995
995
  if (!resolvedTokenAddress) {
996
996
  continue;
997
997
  }
998
- const registrySymbol = _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
998
+ const registrySymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
999
999
  const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
1000
- const decimals = registrySymbol !== "Token" ? _chunkMHKHSCIAcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
1000
+ const decimals = registrySymbol !== "Token" ? _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
1001
1001
  tokens.push({
1002
1002
  chainId: chainBalance.chainId,
1003
1003
  address: resolvedTokenAddress,
@@ -1026,14 +1026,14 @@ function normalizeDirectToken(token) {
1026
1026
  const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
1027
1027
  token.token,
1028
1028
  "address"
1029
- ))), () => ( (typeof chainId === "number" ? _chunkMHKHSCIAcjs.getTokenAddress.call(void 0, symbol, chainId) : void 0)));
1029
+ ))), () => ( (typeof chainId === "number" ? _chunk7JIDIX27cjs.getTokenAddress.call(void 0, symbol, chainId) : void 0)));
1030
1030
  if (!address) return null;
1031
1031
  const balanceUsd = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractNumber(token, "balanceUsd"), () => ( extractNumber(token, "usdValue"))), () => ( extractNumber(token, "valueUsd"))), () => ( extractNumericString(token, "balanceUsd"))), () => ( extractNumericString(token, "usdValue"))), () => ( extractNumericString(token, "valueUsd"))), () => ( 0));
1032
1032
  const isSolanaToken = chainId === "solana";
1033
- const registrySymbol = isSolanaToken ? "Token" : _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, address, chainId);
1033
+ const registrySymbol = isSolanaToken ? "Token" : _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, address, chainId);
1034
1034
  const resolvedSymbol = isSolanaToken ? symbol : registrySymbol !== "Token" ? registrySymbol : symbol;
1035
1035
  const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
1036
- const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunkMHKHSCIAcjs.getTokenDecimalsByAddress.call(void 0, address, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
1036
+ const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0, address, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
1037
1037
  return {
1038
1038
  chainId,
1039
1039
  address,
@@ -1073,6 +1073,78 @@ function extractNumericString(data, key) {
1073
1073
  return Number.isFinite(parsed) ? parsed : null;
1074
1074
  }
1075
1075
 
1076
+ // src/core/formatters.ts
1077
+ var currencyFormatter = new Intl.NumberFormat("en-US", {
1078
+ style: "currency",
1079
+ currency: "USD",
1080
+ maximumFractionDigits: 2
1081
+ });
1082
+ var tokenFormatter = new Intl.NumberFormat("en-US", {
1083
+ minimumFractionDigits: 2,
1084
+ maximumFractionDigits: 5
1085
+ });
1086
+ function isUnsupportedChainSwitchError(error) {
1087
+ if (!error) return false;
1088
+ const name = error instanceof Error ? error.name : "";
1089
+ const message = (error instanceof Error ? error.message : String(error)).toLowerCase();
1090
+ return name === "SwitchChainNotSupportedError" || message.includes("does not support programmatic chain switching") || message.includes("switch chain not supported") || message.includes("method not found") || message.includes("does not exist") || message.includes("is not available");
1091
+ }
1092
+ function formatUserError(raw) {
1093
+ const lower = raw.toLowerCase();
1094
+ if (lower.includes("user rejected") || lower.includes("user denied")) {
1095
+ return "Transaction cancelled";
1096
+ }
1097
+ if (lower.includes("insufficient funds")) {
1098
+ return "Insufficient funds for this transaction";
1099
+ }
1100
+ if (lower.includes("nonce too low") || lower.includes("nonce too high")) {
1101
+ return "Transaction conflict \u2014 please try again";
1102
+ }
1103
+ if (lower.includes("execution reverted")) {
1104
+ return "Transaction would fail on-chain";
1105
+ }
1106
+ if (lower.includes("timed out") || lower.includes("took too long")) {
1107
+ return "Request timed out \u2014 please try again";
1108
+ }
1109
+ if (lower.includes("econnrefused") || lower.includes("econnreset") || lower.includes("enotfound") || lower.includes("fetch failed")) {
1110
+ return "Service unavailable \u2014 please try again";
1111
+ }
1112
+ if (lower.includes("recent blockhash") || lower.includes("latest blockhash")) {
1113
+ return "Solana RPC unavailable \u2014 please retry";
1114
+ }
1115
+ if (lower.includes("network") || lower.includes("disconnected")) {
1116
+ return "Network error \u2014 check your connection";
1117
+ }
1118
+ if (lower.includes("rate limit") || lower.includes("429")) {
1119
+ return "Rate limited \u2014 please try again shortly";
1120
+ }
1121
+ let cleaned = raw;
1122
+ const stripMarkers = [
1123
+ "\n\nRequest Arguments:",
1124
+ "\nRaw Call Arguments:",
1125
+ "\nRequest body:",
1126
+ "\nContract Call:",
1127
+ "\nDocs:",
1128
+ "\nDetails:",
1129
+ "\nVersion:",
1130
+ "\nURL:"
1131
+ ];
1132
+ for (const marker of stripMarkers) {
1133
+ const idx = cleaned.indexOf(marker);
1134
+ if (idx !== -1) {
1135
+ cleaned = cleaned.slice(0, idx).trim();
1136
+ }
1137
+ }
1138
+ cleaned = cleaned.replace(/https?:\/\/\S+/g, "").trim();
1139
+ if (cleaned.length === 0) {
1140
+ return "An unexpected error occurred";
1141
+ }
1142
+ if (cleaned.length > 120) {
1143
+ return cleaned.slice(0, 120) + "...";
1144
+ }
1145
+ return cleaned;
1146
+ }
1147
+
1076
1148
  // src/core/useLatestRef.ts
1077
1149
 
1078
1150
  function useLatestRef(value) {
@@ -1715,7 +1787,7 @@ function ConnectStep({
1715
1787
  (row) => row.kind === "external" || row.kind === "solana"
1716
1788
  );
1717
1789
  const showDappImports = hasReownWallet && (_nullishCoalesce(_optionalChain([dappImports, 'optionalAccess', _62 => _62.length]), () => ( 0))) > 0;
1718
- const extraChainCount = Math.max(0, _chunkMHKHSCIAcjs.getSupportedChainIds.call(void 0, ).length - 3);
1790
+ const extraChainCount = Math.max(0, _chunk7JIDIX27cjs.getSupportedChainIds.call(void 0, ).length - 3);
1719
1791
  const chainBadge2 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1720
1792
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChainBadgeIcons, {}),
1721
1793
  extraChainCount > 0 ? `+${extraChainCount} chains` : "All chains"
@@ -1831,72 +1903,6 @@ function ConnectStep({
1831
1903
  }
1832
1904
  ConnectStep.displayName = "ConnectStep";
1833
1905
 
1834
- // src/core/formatters.ts
1835
- var currencyFormatter = new Intl.NumberFormat("en-US", {
1836
- style: "currency",
1837
- currency: "USD",
1838
- maximumFractionDigits: 2
1839
- });
1840
- var tokenFormatter = new Intl.NumberFormat("en-US", {
1841
- minimumFractionDigits: 2,
1842
- maximumFractionDigits: 5
1843
- });
1844
- function formatUserError(raw) {
1845
- const lower = raw.toLowerCase();
1846
- if (lower.includes("user rejected") || lower.includes("user denied")) {
1847
- return "Transaction cancelled";
1848
- }
1849
- if (lower.includes("insufficient funds")) {
1850
- return "Insufficient funds for this transaction";
1851
- }
1852
- if (lower.includes("nonce too low") || lower.includes("nonce too high")) {
1853
- return "Transaction conflict \u2014 please try again";
1854
- }
1855
- if (lower.includes("execution reverted")) {
1856
- return "Transaction would fail on-chain";
1857
- }
1858
- if (lower.includes("timed out") || lower.includes("took too long")) {
1859
- return "Request timed out \u2014 please try again";
1860
- }
1861
- if (lower.includes("econnrefused") || lower.includes("econnreset") || lower.includes("enotfound") || lower.includes("fetch failed")) {
1862
- return "Service unavailable \u2014 please try again";
1863
- }
1864
- if (lower.includes("recent blockhash") || lower.includes("latest blockhash")) {
1865
- return "Solana RPC unavailable \u2014 please retry";
1866
- }
1867
- if (lower.includes("network") || lower.includes("disconnected")) {
1868
- return "Network error \u2014 check your connection";
1869
- }
1870
- if (lower.includes("rate limit") || lower.includes("429")) {
1871
- return "Rate limited \u2014 please try again shortly";
1872
- }
1873
- let cleaned = raw;
1874
- const stripMarkers = [
1875
- "\n\nRequest Arguments:",
1876
- "\nRaw Call Arguments:",
1877
- "\nRequest body:",
1878
- "\nContract Call:",
1879
- "\nDocs:",
1880
- "\nDetails:",
1881
- "\nVersion:",
1882
- "\nURL:"
1883
- ];
1884
- for (const marker of stripMarkers) {
1885
- const idx = cleaned.indexOf(marker);
1886
- if (idx !== -1) {
1887
- cleaned = cleaned.slice(0, idx).trim();
1888
- }
1889
- }
1890
- cleaned = cleaned.replace(/https?:\/\/\S+/g, "").trim();
1891
- if (cleaned.length === 0) {
1892
- return "An unexpected error occurred";
1893
- }
1894
- if (cleaned.length > 120) {
1895
- return cleaned.slice(0, 120) + "...";
1896
- }
1897
- return cleaned;
1898
- }
1899
-
1900
1906
  // src/components/steps/ProcessingStep.tsx
1901
1907
 
1902
1908
  var _viem = require('viem');
@@ -2660,11 +2666,11 @@ function ProcessingStep({
2660
2666
  const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
2661
2667
  const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
2662
2668
  const displayAmount = _nullishCoalesce(sourceDetails.amount, () => ( amount));
2663
- const sourceExplorerUrl = _chunkMHKHSCIAcjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
2664
- const destExplorerUrl = destinationTxHash ? _chunkMHKHSCIAcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
2669
+ const sourceExplorerUrl = _chunk7JIDIX27cjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
2670
+ const destExplorerUrl = destinationTxHash ? _chunk7JIDIX27cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
2665
2671
  const isEvmSourceToken = /^0x[a-fA-F0-9]{40}$/.test(displaySourceToken);
2666
- const sourceSymbol = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceSymbol, () => ( "SOL")) : isEvmSourceToken ? _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, displaySourceToken, displaySourceChain) : _nullishCoalesce(providedSourceSymbol, () => ( "Token"));
2667
- const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ? _chunkMHKHSCIAcjs.getTokenDecimalsByAddress.call(void 0,
2672
+ const sourceSymbol = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceSymbol, () => ( "SOL")) : isEvmSourceToken ? _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, displaySourceToken, displaySourceChain) : _nullishCoalesce(providedSourceSymbol, () => ( "Token"));
2673
+ const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ? _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0,
2668
2674
  displaySourceToken,
2669
2675
  displaySourceChain
2670
2676
  ) : _nullishCoalesce(providedSourceDecimals, () => ( 18));
@@ -2687,15 +2693,15 @@ function ProcessingStep({
2687
2693
  void delayPhaseId;
2688
2694
  void hasEscalatedDelay;
2689
2695
  const targetSymbol = (() => {
2690
- const resolved = _chunkMHKHSCIAcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
2696
+ const resolved = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
2691
2697
  return resolved !== "Token" ? resolved : _nullishCoalesce(providedSourceSymbol, () => ( "USDC"));
2692
2698
  })();
2693
- const targetTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon.call(void 0, targetSymbol);
2694
- const sourceChainIcon = _chunkMHKHSCIAcjs.getChainIcon.call(void 0, displaySourceChain);
2695
- const targetChainIcon = _chunkMHKHSCIAcjs.getChainIcon.call(void 0, targetChain);
2696
- const sourceTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon.call(void 0, sourceSymbol);
2697
- const sourceChainName = _chunkMHKHSCIAcjs.getChainName.call(void 0, displaySourceChain);
2698
- const targetChainName = _chunkMHKHSCIAcjs.getChainName.call(void 0, targetChain);
2699
+ const targetTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol);
2700
+ const sourceChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, displaySourceChain);
2701
+ const targetChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain);
2702
+ const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, sourceSymbol);
2703
+ const sourceChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, displaySourceChain);
2704
+ const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
2699
2705
  const totalTimeText = formatElapsedTime(elapsedSeconds);
2700
2706
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _161 => _161.feeSponsored]), () => ( false));
2701
2707
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _162 => _162.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
@@ -2901,7 +2907,7 @@ async function executeSafeEthTransfer(params) {
2901
2907
  throw new Error("Wallet not connected");
2902
2908
  }
2903
2909
  if (chain.id !== chainId) {
2904
- throw new Error(`Switch to ${_chunkMHKHSCIAcjs.getChainName.call(void 0, chainId)} to sign`);
2910
+ throw new Error(`Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, chainId)} to sign`);
2905
2911
  }
2906
2912
  const isOwner = await publicClient.readContract({
2907
2913
  address: safeAddress,
@@ -2984,7 +2990,7 @@ async function executeSafeErc20Transfer(params) {
2984
2990
  throw new Error("Wallet not connected");
2985
2991
  }
2986
2992
  if (chain.id !== chainId) {
2987
- throw new Error(`Switch to ${_chunkMHKHSCIAcjs.getChainName.call(void 0, chainId)} to sign`);
2993
+ throw new Error(`Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, chainId)} to sign`);
2988
2994
  }
2989
2995
  const isOwner = await publicClient.readContract({
2990
2996
  address: safeAddress,
@@ -3114,7 +3120,7 @@ var clientCache = /* @__PURE__ */ new Map();
3114
3120
  function getPublicClient(chainId) {
3115
3121
  let client = clientCache.get(chainId);
3116
3122
  if (!client) {
3117
- const chain = _chunkMHKHSCIAcjs.CHAIN_BY_ID[chainId];
3123
+ const chain = _chunk7JIDIX27cjs.CHAIN_BY_ID[chainId];
3118
3124
  client = _viem.createPublicClient.call(void 0, {
3119
3125
  chain,
3120
3126
  transport: _viem.http.call(void 0, )
@@ -3227,4 +3233,5 @@ function accountFromPrivateKey(privateKey) {
3227
3233
 
3228
3234
 
3229
3235
 
3230
- exports.Modal = Modal; exports.WalletIcon = WalletIcon; exports.ExternalLinkIcon = ExternalLinkIcon; exports.CheckIcon = CheckIcon; exports.TransferCryptoIcon = TransferCryptoIcon; exports.ChevronLeftIcon = ChevronLeftIcon; exports.ChevronDownIcon = ChevronDownIcon; exports.CloseIcon = CloseIcon; exports.HistoryIcon = HistoryIcon; exports.InfoIcon = InfoIcon; exports.CopyIcon = CopyIcon; exports.ArrowUpRightIcon = ArrowUpRightIcon; exports.AlertTriangleIcon = AlertTriangleIcon; exports.PercentIcon = PercentIcon; exports.ClockIcon = ClockIcon; exports.PlusCircleIcon = PlusCircleIcon; exports.CircleArrowOutUpLeftIcon = CircleArrowOutUpLeftIcon; exports.BodyHeader = BodyHeader; exports.PoweredBy = PoweredBy; exports.Spinner = Spinner; exports.ConnectStep = ConnectStep; exports.Button = Button; exports.Callout = Callout; exports.debugLog = debugLog; exports.debugError = debugError; exports.toEvmCaip2 = toEvmCaip2; exports.targetChainToCaip2 = targetChainToCaip2; exports.parseEvmChainId = parseEvmChainId; exports.isSolanaCaip2 = isSolanaCaip2; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.formatUserError = formatUserError; exports.Tooltip = Tooltip; exports.getEventTxHash = getEventTxHash; exports.isDepositEvent = isDepositEvent; exports.txRefsMatch = txRefsMatch; exports.useLatestRef = useLatestRef; exports.ProcessingStep = ProcessingStep; exports.SAFE_ABI = SAFE_ABI; exports.executeSafeEthTransfer = executeSafeEthTransfer; exports.executeSafeErc20Transfer = executeSafeErc20Transfer; exports.buildSafeTransaction = buildSafeTransaction; exports.getPublicClient = getPublicClient; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.applyTheme = applyTheme;
3236
+
3237
+ exports.Modal = Modal; exports.WalletIcon = WalletIcon; exports.ExternalLinkIcon = ExternalLinkIcon; exports.CheckIcon = CheckIcon; exports.TransferCryptoIcon = TransferCryptoIcon; exports.ChevronLeftIcon = ChevronLeftIcon; exports.ChevronDownIcon = ChevronDownIcon; exports.CloseIcon = CloseIcon; exports.HistoryIcon = HistoryIcon; exports.InfoIcon = InfoIcon; exports.CopyIcon = CopyIcon; exports.ArrowUpRightIcon = ArrowUpRightIcon; exports.AlertTriangleIcon = AlertTriangleIcon; exports.PercentIcon = PercentIcon; exports.ClockIcon = ClockIcon; exports.PlusCircleIcon = PlusCircleIcon; exports.CircleArrowOutUpLeftIcon = CircleArrowOutUpLeftIcon; exports.BodyHeader = BodyHeader; exports.PoweredBy = PoweredBy; exports.Spinner = Spinner; exports.ConnectStep = ConnectStep; exports.Button = Button; exports.Callout = Callout; exports.debugLog = debugLog; exports.debugError = debugError; exports.toEvmCaip2 = toEvmCaip2; exports.targetChainToCaip2 = targetChainToCaip2; exports.parseEvmChainId = parseEvmChainId; exports.isSolanaCaip2 = isSolanaCaip2; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.isUnsupportedChainSwitchError = isUnsupportedChainSwitchError; exports.formatUserError = formatUserError; exports.Tooltip = Tooltip; exports.getEventTxHash = getEventTxHash; exports.isDepositEvent = isDepositEvent; exports.txRefsMatch = txRefsMatch; exports.useLatestRef = useLatestRef; exports.ProcessingStep = ProcessingStep; exports.SAFE_ABI = SAFE_ABI; exports.executeSafeEthTransfer = executeSafeEthTransfer; exports.executeSafeErc20Transfer = executeSafeErc20Transfer; exports.buildSafeTransaction = buildSafeTransaction; exports.getPublicClient = getPublicClient; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.applyTheme = applyTheme;
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
33
+ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
34
34
 
35
35
 
36
36
 
@@ -63,4 +63,4 @@ var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
63
63
 
64
64
 
65
65
 
66
- exports.CHAIN_BY_ID = _chunkMHKHSCIAcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMHKHSCIAcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMHKHSCIAcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkMHKHSCIAcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkMHKHSCIAcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkMHKHSCIAcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMHKHSCIAcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkMHKHSCIAcjs.chainRegistry; exports.findChainIdForToken = _chunkMHKHSCIAcjs.findChainIdForToken; exports.getChainBadge = _chunkMHKHSCIAcjs.getChainBadge; exports.getChainIcon = _chunkMHKHSCIAcjs.getChainIcon; exports.getChainId = _chunkMHKHSCIAcjs.getChainId; exports.getChainName = _chunkMHKHSCIAcjs.getChainName; exports.getChainObject = _chunkMHKHSCIAcjs.getChainObject; exports.getExplorerName = _chunkMHKHSCIAcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMHKHSCIAcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMHKHSCIAcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkMHKHSCIAcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkMHKHSCIAcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkMHKHSCIAcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMHKHSCIAcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMHKHSCIAcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMHKHSCIAcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMHKHSCIAcjs.getTokenAddress; exports.getTokenDecimals = _chunkMHKHSCIAcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMHKHSCIAcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon; exports.getTokenSymbol = _chunkMHKHSCIAcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMHKHSCIAcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMHKHSCIAcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMHKHSCIAcjs.isSupportedTokenAddressForChain;
66
+ exports.CHAIN_BY_ID = _chunk7JIDIX27cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunk7JIDIX27cjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunk7JIDIX27cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk7JIDIX27cjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunk7JIDIX27cjs.chainRegistry; exports.findChainIdForToken = _chunk7JIDIX27cjs.findChainIdForToken; exports.getChainBadge = _chunk7JIDIX27cjs.getChainBadge; exports.getChainIcon = _chunk7JIDIX27cjs.getChainIcon; exports.getChainId = _chunk7JIDIX27cjs.getChainId; exports.getChainName = _chunk7JIDIX27cjs.getChainName; exports.getChainObject = _chunk7JIDIX27cjs.getChainObject; exports.getExplorerName = _chunk7JIDIX27cjs.getExplorerName; exports.getExplorerTxUrl = _chunk7JIDIX27cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk7JIDIX27cjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunk7JIDIX27cjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunk7JIDIX27cjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunk7JIDIX27cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk7JIDIX27cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk7JIDIX27cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk7JIDIX27cjs.getTokenAddress; exports.getTokenDecimals = _chunk7JIDIX27cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk7JIDIX27cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk7JIDIX27cjs.getTokenIcon; exports.getTokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol; exports.getUsdcAddress = _chunk7JIDIX27cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk7JIDIX27cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk7JIDIX27cjs.isSupportedTokenAddressForChain;
@@ -30,7 +30,7 @@ import {
30
30
  getUsdcAddress,
31
31
  getUsdcDecimals,
32
32
  isSupportedTokenAddressForChain
33
- } from "./chunk-UCZXBHLH.mjs";
33
+ } from "./chunk-SZIYS42B.mjs";
34
34
  export {
35
35
  CHAIN_BY_ID,
36
36
  DEFAULT_BACKEND_URL,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLEVCOJD6cjs = require('./chunk-LEVCOJD6.cjs');
4
- require('./chunk-ENMIKNXS.cjs');
5
- require('./chunk-MHKHSCIA.cjs');
3
+ var _chunkGBFOGYMHcjs = require('./chunk-GBFOGYMH.cjs');
4
+ require('./chunk-UELVNPGE.cjs');
5
+ require('./chunk-7JIDIX27.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkLEVCOJD6cjs.DepositModal;
8
+ exports.DepositModal = _chunkGBFOGYMHcjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-44IFH7DZ.mjs";
4
- import "./chunk-7VKAUBZ7.mjs";
5
- import "./chunk-UCZXBHLH.mjs";
3
+ } from "./chunk-H7QMSMM5.mjs";
4
+ import "./chunk-5ZS4ZJPW.mjs";
5
+ import "./chunk-SZIYS42B.mjs";
6
6
  export {
7
7
  DepositModal
8
8
  };
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLEVCOJD6cjs = require('./chunk-LEVCOJD6.cjs');
3
+ var _chunkGBFOGYMHcjs = require('./chunk-GBFOGYMH.cjs');
4
4
 
5
5
 
6
- var _chunkCPXERFGCcjs = require('./chunk-CPXERFGC.cjs');
6
+ var _chunkU3OLJZBTcjs = require('./chunk-U3OLJZBT.cjs');
7
7
 
8
8
 
9
- var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
10
- require('./chunk-ENMIKNXS.cjs');
9
+ var _chunkPKD7W5JGcjs = require('./chunk-PKD7W5JG.cjs');
10
+ require('./chunk-UELVNPGE.cjs');
11
11
 
12
12
 
13
13
 
@@ -37,7 +37,7 @@ require('./chunk-ENMIKNXS.cjs');
37
37
 
38
38
 
39
39
 
40
- var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
40
+ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
41
41
 
42
42
 
43
43
 
@@ -70,4 +70,4 @@ var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
70
70
 
71
71
 
72
72
 
73
- exports.CHAIN_BY_ID = _chunkMHKHSCIAcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMHKHSCIAcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMHKHSCIAcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkLEVCOJD6cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMHKHSCIAcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMHKHSCIAcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMHKHSCIAcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkCPXERFGCcjs.WithdrawModal; exports.chainRegistry = _chunkMHKHSCIAcjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkMHKHSCIAcjs.findChainIdForToken; exports.getChainBadge = _chunkMHKHSCIAcjs.getChainBadge; exports.getChainIcon = _chunkMHKHSCIAcjs.getChainIcon; exports.getChainId = _chunkMHKHSCIAcjs.getChainId; exports.getChainName = _chunkMHKHSCIAcjs.getChainName; exports.getChainObject = _chunkMHKHSCIAcjs.getChainObject; exports.getExplorerName = _chunkMHKHSCIAcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMHKHSCIAcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMHKHSCIAcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMHKHSCIAcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMHKHSCIAcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMHKHSCIAcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMHKHSCIAcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMHKHSCIAcjs.getTokenAddress; exports.getTokenDecimals = _chunkMHKHSCIAcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMHKHSCIAcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon; exports.getTokenSymbol = _chunkMHKHSCIAcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMHKHSCIAcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMHKHSCIAcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMHKHSCIAcjs.isSupportedTokenAddressForChain;
73
+ exports.CHAIN_BY_ID = _chunk7JIDIX27cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkGBFOGYMHcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunk7JIDIX27cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk7JIDIX27cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkU3OLJZBTcjs.WithdrawModal; exports.chainRegistry = _chunk7JIDIX27cjs.chainRegistry; exports.disconnectWallet = _chunkPKD7W5JGcjs.disconnectWallet; exports.findChainIdForToken = _chunk7JIDIX27cjs.findChainIdForToken; exports.getChainBadge = _chunk7JIDIX27cjs.getChainBadge; exports.getChainIcon = _chunk7JIDIX27cjs.getChainIcon; exports.getChainId = _chunk7JIDIX27cjs.getChainId; exports.getChainName = _chunk7JIDIX27cjs.getChainName; exports.getChainObject = _chunk7JIDIX27cjs.getChainObject; exports.getExplorerName = _chunk7JIDIX27cjs.getExplorerName; exports.getExplorerTxUrl = _chunk7JIDIX27cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk7JIDIX27cjs.getExplorerUrl; exports.getSupportedChainIds = _chunk7JIDIX27cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk7JIDIX27cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk7JIDIX27cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk7JIDIX27cjs.getTokenAddress; exports.getTokenDecimals = _chunk7JIDIX27cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk7JIDIX27cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk7JIDIX27cjs.getTokenIcon; exports.getTokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol; exports.getUsdcAddress = _chunk7JIDIX27cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk7JIDIX27cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk7JIDIX27cjs.isSupportedTokenAddressForChain;
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-44IFH7DZ.mjs";
3
+ } from "./chunk-H7QMSMM5.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-3FHYC3K7.mjs";
6
+ } from "./chunk-DW276H63.mjs";
7
7
  import {
8
8
  disconnectWallet
9
- } from "./chunk-5YXAQB6A.mjs";
10
- import "./chunk-7VKAUBZ7.mjs";
9
+ } from "./chunk-E46WOBZQ.mjs";
10
+ import "./chunk-5ZS4ZJPW.mjs";
11
11
  import {
12
12
  CHAIN_BY_ID,
13
13
  DEFAULT_BACKEND_URL,
@@ -37,7 +37,7 @@ import {
37
37
  getUsdcAddress,
38
38
  getUsdcDecimals,
39
39
  isSupportedTokenAddressForChain
40
- } from "./chunk-UCZXBHLH.mjs";
40
+ } from "./chunk-SZIYS42B.mjs";
41
41
  export {
42
42
  CHAIN_BY_ID,
43
43
  DEFAULT_BACKEND_URL,
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCPXERFGCcjs = require('./chunk-CPXERFGC.cjs');
4
- require('./chunk-ENMIKNXS.cjs');
5
- require('./chunk-MHKHSCIA.cjs');
3
+ var _chunkU3OLJZBTcjs = require('./chunk-U3OLJZBT.cjs');
4
+ require('./chunk-UELVNPGE.cjs');
5
+ require('./chunk-7JIDIX27.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkCPXERFGCcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkU3OLJZBTcjs.WithdrawModal;
package/dist/withdraw.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-3FHYC3K7.mjs";
4
- import "./chunk-7VKAUBZ7.mjs";
5
- import "./chunk-UCZXBHLH.mjs";
3
+ } from "./chunk-DW276H63.mjs";
4
+ import "./chunk-5ZS4ZJPW.mjs";
5
+ import "./chunk-SZIYS42B.mjs";
6
6
  export {
7
7
  WithdrawModal
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.3.0-alpha.7",
3
+ "version": "0.3.0-alpha.8",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {
@@ -82,9 +82,9 @@
82
82
  "zustand": "^5"
83
83
  },
84
84
  "devDependencies": {
85
- "@reown/appkit": "1.8.19",
86
- "@reown/appkit-adapter-solana": "1.8.19",
87
- "@reown/appkit-adapter-wagmi": "1.8.19",
85
+ "@reown/appkit": "1.8.20",
86
+ "@reown/appkit-adapter-solana": "1.8.20",
87
+ "@reown/appkit-adapter-wagmi": "1.8.20",
88
88
  "@size-limit/preset-small-lib": "^12.0.0",
89
89
  "@solana/spl-token": "^0.4.14",
90
90
  "@solana/web3.js": "^1.98.4",
@@ -161,6 +161,6 @@
161
161
  "url": "https://github.com/rhinestonewtf/deposit-modal"
162
162
  },
163
163
  "overrides": {
164
- "@reown/appkit-common": "1.8.19"
164
+ "@reown/appkit-common": "1.8.20"
165
165
  }
166
166
  }