@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.
- package/dist/{DepositModalReown-ABLVMYFL.cjs → DepositModalReown-LWGABUOF.cjs} +7 -7
- package/dist/{DepositModalReown-42D5V5II.mjs → DepositModalReown-TYHATVOM.mjs} +4 -4
- package/dist/{WithdrawModalReown-FJP3XTQ5.cjs → WithdrawModalReown-FCWED55P.cjs} +7 -7
- package/dist/{WithdrawModalReown-EVHN5NOF.mjs → WithdrawModalReown-H7HA3JP3.mjs} +4 -4
- package/dist/{chunk-7VKAUBZ7.mjs → chunk-5ZS4ZJPW.mjs} +74 -67
- package/dist/{chunk-MHKHSCIA.cjs → chunk-7JIDIX27.cjs} +1 -1
- package/dist/{chunk-3FHYC3K7.mjs → chunk-DW276H63.mjs} +3 -3
- package/dist/{chunk-5YXAQB6A.mjs → chunk-E46WOBZQ.mjs} +56 -16
- package/dist/{chunk-LEVCOJD6.cjs → chunk-GBFOGYMH.cjs} +248 -248
- package/dist/{chunk-44IFH7DZ.mjs → chunk-H7QMSMM5.mjs} +3 -3
- package/dist/{chunk-YQFH2WSW.cjs → chunk-PKD7W5JG.cjs} +54 -14
- package/dist/{chunk-UCZXBHLH.mjs → chunk-SZIYS42B.mjs} +1 -1
- package/dist/{chunk-CPXERFGC.cjs → chunk-U3OLJZBT.cjs} +93 -93
- package/dist/{chunk-ENMIKNXS.cjs → chunk-UELVNPGE.cjs} +98 -91
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +5 -5
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.mjs +3 -3
- package/package.json +5 -5
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
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 =
|
|
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))), () => (
|
|
994
|
-
const resolvedTokenAddress = isNativeSymbol ?
|
|
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 =
|
|
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" ?
|
|
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" ?
|
|
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" :
|
|
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" ?
|
|
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,
|
|
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 =
|
|
2664
|
-
const destExplorerUrl = destinationTxHash ?
|
|
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 ?
|
|
2667
|
-
const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ?
|
|
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 =
|
|
2696
|
+
const resolved = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
|
|
2691
2697
|
return resolved !== "Token" ? resolved : _nullishCoalesce(providedSourceSymbol, () => ( "USDC"));
|
|
2692
2698
|
})();
|
|
2693
|
-
const targetTokenIcon =
|
|
2694
|
-
const sourceChainIcon =
|
|
2695
|
-
const targetChainIcon =
|
|
2696
|
-
const sourceTokenIcon =
|
|
2697
|
-
const sourceChainName =
|
|
2698
|
-
const targetChainName =
|
|
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 ${
|
|
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 ${
|
|
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 =
|
|
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
|
-
|
|
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;
|
package/dist/constants.cjs
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
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 =
|
|
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;
|
package/dist/constants.mjs
CHANGED
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkGBFOGYMHcjs = require('./chunk-GBFOGYMH.cjs');
|
|
4
|
+
require('./chunk-UELVNPGE.cjs');
|
|
5
|
+
require('./chunk-7JIDIX27.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkGBFOGYMHcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGBFOGYMHcjs = require('./chunk-GBFOGYMH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkU3OLJZBTcjs = require('./chunk-U3OLJZBT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
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
|
|
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 =
|
|
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-
|
|
3
|
+
} from "./chunk-H7QMSMM5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DW276H63.mjs";
|
|
7
7
|
import {
|
|
8
8
|
disconnectWallet
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
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
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkU3OLJZBTcjs = require('./chunk-U3OLJZBT.cjs');
|
|
4
|
+
require('./chunk-UELVNPGE.cjs');
|
|
5
|
+
require('./chunk-7JIDIX27.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.WithdrawModal =
|
|
8
|
+
exports.WithdrawModal = _chunkU3OLJZBTcjs.WithdrawModal;
|
package/dist/withdraw.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhinestone/deposit-modal",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
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.
|
|
86
|
-
"@reown/appkit-adapter-solana": "1.8.
|
|
87
|
-
"@reown/appkit-adapter-wagmi": "1.8.
|
|
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.
|
|
164
|
+
"@reown/appkit-common": "1.8.20"
|
|
165
165
|
}
|
|
166
166
|
}
|