@rhinestone/deposit-modal 0.0.0-dev-20260730155334 → 0.0.0-dev-20260730162231
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-AEMT3DPX.mjs → DepositModalReown-B6SUS32X.mjs} +5 -5
- package/dist/{DepositModalReown-Q45MXVCK.cjs → DepositModalReown-JXORGWM6.cjs} +9 -9
- package/dist/{chunk-75TPV5RE.mjs → chunk-6A6TQYC5.mjs} +9 -2
- package/dist/{chunk-2GSYVQ6H.cjs → chunk-7H3URH7Y.cjs} +357 -360
- package/dist/{chunk-UUBDZFUQ.mjs → chunk-BIQ67JYS.mjs} +28 -31
- package/dist/{chunk-O4CBFHOY.cjs → chunk-CW2XPYHI.cjs} +94 -111
- package/dist/{chunk-UVYFZ3CW.cjs → chunk-CWHMVCIT.cjs} +1 -1
- package/dist/{chunk-ESU466H6.cjs → chunk-DCWJQUYU.cjs} +3 -3
- package/dist/{chunk-JE7BV2GP.mjs → chunk-FBSOVQXC.mjs} +1 -1
- package/dist/{chunk-N2LH5JWZ.mjs → chunk-FPQUF4VU.mjs} +2 -2
- package/dist/{chunk-4Q6AURV2.mjs → chunk-JCX6D7EL.mjs} +27 -44
- package/dist/{chunk-3KPVHNN7.cjs → chunk-LVB23D72.cjs} +52 -52
- package/dist/{chunk-OTY7EYDK.cjs → chunk-O6J3YLHR.cjs} +29 -22
- package/dist/{chunk-KCYJO7V5.cjs → chunk-O75XVNZU.cjs} +57 -57
- package/dist/{chunk-DXR74FIL.mjs → chunk-SN7FVQT7.mjs} +1 -1
- package/dist/{chunk-4BNAXHXI.mjs → chunk-TLSVC7AS.mjs} +3 -3
- package/dist/claim.cjs +5 -5
- package/dist/claim.mjs +4 -4
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +7 -7
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BIQ67JYS.mjs";
|
|
4
|
+
import "./chunk-JCX6D7EL.mjs";
|
|
5
|
+
import "./chunk-FBSOVQXC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isUnsupportedChainSwitchError,
|
|
8
8
|
rpcUrlFor
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6A6TQYC5.mjs";
|
|
10
|
+
import "./chunk-SN7FVQT7.mjs";
|
|
11
11
|
import "./chunk-ILT2PITN.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SUPPORTED_CHAINS,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunk7H3URH7Ycjs = require('./chunk-7H3URH7Y.cjs');
|
|
4
|
+
require('./chunk-CW2XPYHI.cjs');
|
|
5
|
+
require('./chunk-DCWJQUYU.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkO6J3YLHRcjs = require('./chunk-O6J3YLHR.cjs');
|
|
10
|
+
require('./chunk-CWHMVCIT.cjs');
|
|
11
11
|
require('./chunk-YEBXUUH3.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -88,14 +88,14 @@ function buildTransports(rpcUrls) {
|
|
|
88
88
|
const transports = {};
|
|
89
89
|
for (const network of EVM_NETWORKS) {
|
|
90
90
|
const id = Number(network.id);
|
|
91
|
-
transports[id] = _viem.http.call(void 0,
|
|
91
|
+
transports[id] = _viem.http.call(void 0, _chunkO6J3YLHRcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
92
92
|
}
|
|
93
93
|
return transports;
|
|
94
94
|
}
|
|
95
95
|
function getEvmRpcFingerprint(rpcUrls) {
|
|
96
96
|
return EVM_NETWORKS.map((network) => {
|
|
97
97
|
const id = Number(network.id);
|
|
98
|
-
return `${id}=${_nullishCoalesce(
|
|
98
|
+
return `${id}=${_nullishCoalesce(_chunkO6J3YLHRcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
99
99
|
}).join("|");
|
|
100
100
|
}
|
|
101
101
|
var cachedAdapter = null;
|
|
@@ -189,7 +189,7 @@ function useReownWallet() {
|
|
|
189
189
|
await switchChainAsync({ chainId });
|
|
190
190
|
}
|
|
191
191
|
} catch (err) {
|
|
192
|
-
if (
|
|
192
|
+
if (_chunkO6J3YLHRcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
193
193
|
throw new Error(
|
|
194
194
|
`Switch to ${_chunkH577RJN5cjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
195
195
|
);
|
|
@@ -223,7 +223,7 @@ function DepositModalWithReown(props) {
|
|
|
223
223
|
reown.disconnect();
|
|
224
224
|
}, [reown.disconnect]);
|
|
225
225
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
226
|
-
|
|
226
|
+
_chunk7H3URH7Ycjs.DepositModalInner,
|
|
227
227
|
{
|
|
228
228
|
...props,
|
|
229
229
|
reownWallet: reownWithSolana,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SERVICE_HEADERS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SN7FVQT7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HYPERCORE_CHAIN_ID,
|
|
6
6
|
HYPERCORE_MAINNET_CAIP2,
|
|
@@ -756,6 +756,13 @@ function formatFeeUsd(usd) {
|
|
|
756
756
|
if (value > 0 && value < 0.01) return "<$0.01";
|
|
757
757
|
return `$${value.toFixed(2)}`;
|
|
758
758
|
}
|
|
759
|
+
function quoteFeeRow(fees) {
|
|
760
|
+
if (!fees) return { display: null, struck: false };
|
|
761
|
+
const userUsd = userPaidUsd(fees);
|
|
762
|
+
const totalUsd = Number.isFinite(fees.total.usd) ? fees.total.usd : 0;
|
|
763
|
+
const struck = userUsd === 0 && totalUsd > 0;
|
|
764
|
+
return { display: formatFeeUsd(struck ? totalUsd : userUsd), struck };
|
|
765
|
+
}
|
|
759
766
|
function quoteFeeGroups(breakdown) {
|
|
760
767
|
const groups = /* @__PURE__ */ new Map();
|
|
761
768
|
for (const [category, line] of Object.entries(breakdown)) {
|
|
@@ -2238,8 +2245,8 @@ export {
|
|
|
2238
2245
|
chainIdsByValue,
|
|
2239
2246
|
portfolioToAssets,
|
|
2240
2247
|
isNativeAsset,
|
|
2241
|
-
userPaidUsd,
|
|
2242
2248
|
formatFeeUsd,
|
|
2249
|
+
quoteFeeRow,
|
|
2243
2250
|
quoteFeeGroups,
|
|
2244
2251
|
SwappedConnectFeeChangedError,
|
|
2245
2252
|
resolveAppFeeBps,
|