@rhinestone/deposit-modal 0.0.0-dev-20260902142726 → 0.0.0-dev-20260902150337
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/ClaimModal-BR7CII7C.cjs +11 -0
- package/dist/{ClaimModal-4SSHXT6G.mjs → ClaimModal-WMQ2BFBN.mjs} +3 -3
- package/dist/{DepositModalReown-JMCG5QYS.mjs → DepositModalReown-4OIPMGSO.mjs} +4 -4
- package/dist/{DepositModalReown-QRUWOKYH.cjs → DepositModalReown-YNO4CZEN.cjs} +17 -17
- package/dist/{WithdrawModal-DL7RGWZF.mjs → WithdrawModal-4BVUNWVJ.mjs} +4 -4
- package/dist/WithdrawModal-IP3TQKXK.cjs +12 -0
- package/dist/{chunk-OCR7O5ES.cjs → chunk-25O4D5ZS.cjs} +33 -33
- package/dist/{chunk-2PZ3NCVY.cjs → chunk-3UYZ7TYE.cjs} +1 -1
- package/dist/{chunk-6WFF5JY2.mjs → chunk-AT3ZSDJF.mjs} +2 -2
- package/dist/{chunk-QQGFDVGI.mjs → chunk-BEVNK7GU.mjs} +1 -1
- package/dist/{chunk-TTH4C5O6.cjs → chunk-CVTXWEEM.cjs} +118 -118
- package/dist/{chunk-GC2ACTTH.mjs → chunk-E5D3E3NN.mjs} +1 -1
- package/dist/{chunk-TNDRODB2.mjs → chunk-E7LNBHBL.mjs} +3 -3
- package/dist/{chunk-HDDIN25P.mjs → chunk-HIGA4MMS.mjs} +1 -1
- package/dist/{chunk-CYJVYRIK.cjs → chunk-OM6X53OG.cjs} +72 -72
- package/dist/{chunk-33UU462K.cjs → chunk-TT2RNW7Z.cjs} +261 -261
- package/dist/{chunk-JDOTW5NA.cjs → chunk-XDREH7YO.cjs} +41 -41
- package/dist/{chunk-KPHVBODX.mjs → chunk-XQHUD2WC.mjs} +1 -1
- package/dist/claim.cjs +4 -4
- package/dist/claim.mjs +3 -3
- 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 +5 -5
- package/dist/deposit.mjs +4 -4
- package/dist/embed.cjs +16 -16
- package/dist/embed.mjs +6 -6
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +6 -6
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
- package/dist/ClaimModal-PVXLJRJQ.cjs +0 -11
- package/dist/WithdrawModal-HERVXMJ7.cjs +0 -12
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkXDREH7YOcjs = require('./chunk-XDREH7YO.cjs');
|
|
5
|
+
require('./chunk-25O4D5ZS.cjs');
|
|
6
|
+
require('./chunk-3UYZ7TYE.cjs');
|
|
7
|
+
require('./chunk-OY5N3E6L.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.ClaimModal = _chunkXDREH7YOcjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkXDREH7YOcjs.buildClaimAnalyticsSessionProperties;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal,
|
|
3
3
|
buildClaimAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-XQHUD2WC.mjs";
|
|
5
|
+
import "./chunk-E5D3E3NN.mjs";
|
|
6
|
+
import "./chunk-BEVNK7GU.mjs";
|
|
7
7
|
import "./chunk-EAGMY3QE.mjs";
|
|
8
8
|
export {
|
|
9
9
|
ClaimModal,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-E7LNBHBL.mjs";
|
|
5
|
+
import "./chunk-HIGA4MMS.mjs";
|
|
6
6
|
import {
|
|
7
7
|
followSystemAppearance,
|
|
8
8
|
isUnsupportedChainSwitchError,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
resolveThemeMode,
|
|
12
12
|
rpcUrlFor,
|
|
13
13
|
useStableRpcUrls
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-E5D3E3NN.mjs";
|
|
15
|
+
import "./chunk-BEVNK7GU.mjs";
|
|
16
16
|
import "./chunk-FTWKAJGN.mjs";
|
|
17
17
|
import {
|
|
18
18
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -1,8 +1,8 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkTT2RNW7Zcjs = require('./chunk-TT2RNW7Z.cjs');
|
|
5
|
+
require('./chunk-CVTXWEEM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,8 +11,8 @@ require('./chunk-TTH4C5O6.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunk25O4D5ZScjs = require('./chunk-25O4D5ZS.cjs');
|
|
15
|
+
require('./chunk-3UYZ7TYE.cjs');
|
|
16
16
|
require('./chunk-LVCD6RHF.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -45,7 +45,7 @@ var {
|
|
|
45
45
|
unichain,
|
|
46
46
|
katana,
|
|
47
47
|
hyperEvm
|
|
48
|
-
} =
|
|
48
|
+
} = _chunkTT2RNW7Zcjs.getReownDependencies.call(void 0, )[1];
|
|
49
49
|
var APPKIT_NETWORK_BY_ID = {
|
|
50
50
|
[mainnet.id]: mainnet,
|
|
51
51
|
[optimism.id]: optimism,
|
|
@@ -77,7 +77,7 @@ function getAppKitNetwork(chainId) {
|
|
|
77
77
|
|
|
78
78
|
// src/core/reown-theme.ts
|
|
79
79
|
function mapTheme(theme) {
|
|
80
|
-
const themeMode =
|
|
80
|
+
const themeMode = _chunk25O4D5ZScjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
81
81
|
const themeVariables = {
|
|
82
82
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
83
83
|
};
|
|
@@ -94,7 +94,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
94
94
|
|
|
95
95
|
// src/core/reown.tsx
|
|
96
96
|
var _jsxruntime = require('react/jsx-runtime');
|
|
97
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
97
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkTT2RNW7Zcjs.getReownDependencies.call(void 0, );
|
|
98
98
|
var {
|
|
99
99
|
createAppKit,
|
|
100
100
|
useAppKit,
|
|
@@ -110,14 +110,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
110
110
|
const transports = {};
|
|
111
111
|
for (const network of networks) {
|
|
112
112
|
const id = Number(network.id);
|
|
113
|
-
transports[id] = _viem.http.call(void 0,
|
|
113
|
+
transports[id] = _viem.http.call(void 0, _chunk25O4D5ZScjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
114
114
|
}
|
|
115
115
|
return transports;
|
|
116
116
|
}
|
|
117
117
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
118
118
|
return networks.map((network) => {
|
|
119
119
|
const id = Number(network.id);
|
|
120
|
-
return `${id}=${_nullishCoalesce(
|
|
120
|
+
return `${id}=${_nullishCoalesce(_chunk25O4D5ZScjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
121
121
|
}).join("|");
|
|
122
122
|
}
|
|
123
123
|
var cachedAdapter = null;
|
|
@@ -188,7 +188,7 @@ function ReownWalletProvider({
|
|
|
188
188
|
backendUrl,
|
|
189
189
|
children
|
|
190
190
|
}) {
|
|
191
|
-
const rpcUrls =
|
|
191
|
+
const rpcUrls = _chunk25O4D5ZScjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
192
192
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
193
193
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
194
194
|
if (!rpcUrls) return void 0;
|
|
@@ -200,14 +200,14 @@ function ReownWalletProvider({
|
|
|
200
200
|
return out;
|
|
201
201
|
}, [rpcUrls]);
|
|
202
202
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
203
|
-
const primed =
|
|
203
|
+
const primed = _chunk25O4D5ZScjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
204
204
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
205
205
|
});
|
|
206
206
|
_react.useEffect.call(void 0, () => {
|
|
207
207
|
let active = true;
|
|
208
|
-
const primed =
|
|
208
|
+
const primed = _chunk25O4D5ZScjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
209
209
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
210
|
-
|
|
210
|
+
_chunk25O4D5ZScjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
211
211
|
if (active) setState({ ready: true, chains });
|
|
212
212
|
});
|
|
213
213
|
return () => {
|
|
@@ -216,7 +216,7 @@ function ReownWalletProvider({
|
|
|
216
216
|
}, [backendUrl, overrides]);
|
|
217
217
|
_react.useEffect.call(void 0, () => {
|
|
218
218
|
setAppKitTheme(appKitReact.modal, theme);
|
|
219
|
-
return
|
|
219
|
+
return _chunk25O4D5ZScjs.followSystemAppearance.call(void 0,
|
|
220
220
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
221
221
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
222
222
|
);
|
|
@@ -280,7 +280,7 @@ function useReownWalletSession() {
|
|
|
280
280
|
await switchChainAsync({ chainId });
|
|
281
281
|
}
|
|
282
282
|
} catch (err) {
|
|
283
|
-
if (
|
|
283
|
+
if (_chunk25O4D5ZScjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
284
284
|
throw new Error(
|
|
285
285
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
286
286
|
);
|
|
@@ -293,7 +293,7 @@ function useReownWalletSession() {
|
|
|
293
293
|
|
|
294
294
|
// src/DepositModalReown.tsx
|
|
295
295
|
|
|
296
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
296
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunkTT2RNW7Zcjs.getReownDependencies.call(void 0, );
|
|
297
297
|
var { useAppKitProvider } = appKitReact2;
|
|
298
298
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
299
299
|
function DepositModalWithReown(props) {
|
|
@@ -315,7 +315,7 @@ function DepositModalWithReown(props) {
|
|
|
315
315
|
reown.disconnect();
|
|
316
316
|
}, [reown.disconnect]);
|
|
317
317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunkTT2RNW7Zcjs.DepositModalInner,
|
|
319
319
|
{
|
|
320
320
|
...props,
|
|
321
321
|
walletSession: reownWithSolana,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal,
|
|
3
3
|
buildWithdrawAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AT3ZSDJF.mjs";
|
|
5
|
+
import "./chunk-HIGA4MMS.mjs";
|
|
6
|
+
import "./chunk-E5D3E3NN.mjs";
|
|
7
|
+
import "./chunk-BEVNK7GU.mjs";
|
|
8
8
|
import "./chunk-EAGMY3QE.mjs";
|
|
9
9
|
export {
|
|
10
10
|
WithdrawModal,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOM6X53OGcjs = require('./chunk-OM6X53OG.cjs');
|
|
5
|
+
require('./chunk-CVTXWEEM.cjs');
|
|
6
|
+
require('./chunk-25O4D5ZS.cjs');
|
|
7
|
+
require('./chunk-3UYZ7TYE.cjs');
|
|
8
|
+
require('./chunk-OY5N3E6L.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkOM6X53OGcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkOM6X53OGcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3UYZ7TYEcjs = require('./chunk-3UYZ7TYE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -980,7 +980,7 @@ function createDepositService(baseUrl, options) {
|
|
|
980
980
|
try {
|
|
981
981
|
const response = await fetch(apiUrl("/qr/tokens"), {
|
|
982
982
|
method: "GET",
|
|
983
|
-
headers:
|
|
983
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, )
|
|
984
984
|
});
|
|
985
985
|
if (!response.ok) {
|
|
986
986
|
debugLog(debug, scope, "getTopTokens:unavailable", {
|
|
@@ -1007,7 +1007,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1007
1007
|
try {
|
|
1008
1008
|
const response = await fetch(apiUrl("/chains"), {
|
|
1009
1009
|
method: "GET",
|
|
1010
|
-
headers:
|
|
1010
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, )
|
|
1011
1011
|
});
|
|
1012
1012
|
if (!response.ok) {
|
|
1013
1013
|
debugLog(debug, scope, "getChains:unavailable", {
|
|
@@ -1061,7 +1061,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1061
1061
|
});
|
|
1062
1062
|
const response = await fetch(url, {
|
|
1063
1063
|
method: "POST",
|
|
1064
|
-
headers:
|
|
1064
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1065
1065
|
body: JSON.stringify({ account: params })
|
|
1066
1066
|
});
|
|
1067
1067
|
if (!response.ok) {
|
|
@@ -1096,7 +1096,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1096
1096
|
debugLog(debug, scope, "fetchPortfolio:request", { url, address });
|
|
1097
1097
|
const response = await fetch(url, {
|
|
1098
1098
|
method: "GET",
|
|
1099
|
-
headers:
|
|
1099
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, )
|
|
1100
1100
|
});
|
|
1101
1101
|
if (!response.ok) {
|
|
1102
1102
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1147,7 +1147,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
const response = await fetch(url, {
|
|
1149
1149
|
method: "GET",
|
|
1150
|
-
headers:
|
|
1150
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, )
|
|
1151
1151
|
});
|
|
1152
1152
|
if (!response.ok) {
|
|
1153
1153
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1176,7 +1176,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1176
1176
|
debugLog(debug, scope, "checkAccount:request", { url, address });
|
|
1177
1177
|
const response = await fetch(url, {
|
|
1178
1178
|
method: "GET",
|
|
1179
|
-
headers:
|
|
1179
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, )
|
|
1180
1180
|
});
|
|
1181
1181
|
if (!response.ok) {
|
|
1182
1182
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1212,7 +1212,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1212
1212
|
);
|
|
1213
1213
|
const response = await fetch(url, {
|
|
1214
1214
|
method: "GET",
|
|
1215
|
-
headers:
|
|
1215
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1216
1216
|
cache: "no-store"
|
|
1217
1217
|
});
|
|
1218
1218
|
if (!response.ok) {
|
|
@@ -1240,7 +1240,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1240
1240
|
);
|
|
1241
1241
|
const response = await fetch(url, {
|
|
1242
1242
|
method: "GET",
|
|
1243
|
-
headers:
|
|
1243
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1244
1244
|
cache: "no-store"
|
|
1245
1245
|
});
|
|
1246
1246
|
if (!response.ok) {
|
|
@@ -1264,7 +1264,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1264
1264
|
);
|
|
1265
1265
|
const response = await fetch(url, {
|
|
1266
1266
|
method: "GET",
|
|
1267
|
-
headers:
|
|
1267
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1268
1268
|
cache: "no-store"
|
|
1269
1269
|
});
|
|
1270
1270
|
if (!response.ok) {
|
|
@@ -1286,7 +1286,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1286
1286
|
async getPositions(address) {
|
|
1287
1287
|
const url = apiUrl(`/positions/${address}`);
|
|
1288
1288
|
debugLog(debug, scope, "getPositions:request", { url, address });
|
|
1289
|
-
const response = await fetch(url, { headers:
|
|
1289
|
+
const response = await fetch(url, { headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ) });
|
|
1290
1290
|
if (!response.ok) {
|
|
1291
1291
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
1292
1292
|
debugError(debug, scope, "getPositions:failed", error, {
|
|
@@ -1320,7 +1320,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1320
1320
|
});
|
|
1321
1321
|
const response = await fetch(url, {
|
|
1322
1322
|
method: "POST",
|
|
1323
|
-
headers:
|
|
1323
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1324
1324
|
body: JSON.stringify({ account, market, chainId, asset, amount })
|
|
1325
1325
|
});
|
|
1326
1326
|
if (!response.ok) {
|
|
@@ -1356,7 +1356,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1356
1356
|
});
|
|
1357
1357
|
const response = await fetch(url, {
|
|
1358
1358
|
method: "POST",
|
|
1359
|
-
headers:
|
|
1359
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1360
1360
|
body: JSON.stringify({
|
|
1361
1361
|
depositWallet,
|
|
1362
1362
|
owner,
|
|
@@ -1398,7 +1398,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1398
1398
|
});
|
|
1399
1399
|
const response = await fetch(url, {
|
|
1400
1400
|
method: "GET",
|
|
1401
|
-
headers:
|
|
1401
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1402
1402
|
cache: "no-store"
|
|
1403
1403
|
});
|
|
1404
1404
|
if (!response.ok) {
|
|
@@ -1448,7 +1448,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1448
1448
|
});
|
|
1449
1449
|
const response = await fetch(url, {
|
|
1450
1450
|
method: "GET",
|
|
1451
|
-
headers:
|
|
1451
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1452
1452
|
cache: "no-store"
|
|
1453
1453
|
});
|
|
1454
1454
|
if (!response.ok) {
|
|
@@ -1496,7 +1496,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1496
1496
|
try {
|
|
1497
1497
|
const response = await fetch(url, {
|
|
1498
1498
|
method: "POST",
|
|
1499
|
-
headers:
|
|
1499
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1500
1500
|
body: JSON.stringify(body),
|
|
1501
1501
|
cache: "no-store"
|
|
1502
1502
|
});
|
|
@@ -1536,7 +1536,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1536
1536
|
try {
|
|
1537
1537
|
const response = await fetch(url, {
|
|
1538
1538
|
method: "POST",
|
|
1539
|
-
headers:
|
|
1539
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1540
1540
|
body: JSON.stringify({ ...params, kind: "auto" }),
|
|
1541
1541
|
cache: "no-store"
|
|
1542
1542
|
});
|
|
@@ -1630,7 +1630,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1630
1630
|
try {
|
|
1631
1631
|
response = await fetch(url, {
|
|
1632
1632
|
method: "POST",
|
|
1633
|
-
headers:
|
|
1633
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1634
1634
|
body: JSON.stringify(params)
|
|
1635
1635
|
});
|
|
1636
1636
|
} catch (error) {
|
|
@@ -1681,7 +1681,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1681
1681
|
try {
|
|
1682
1682
|
const response = await fetch(url, {
|
|
1683
1683
|
method: "GET",
|
|
1684
|
-
headers:
|
|
1684
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1685
1685
|
cache: "no-store"
|
|
1686
1686
|
});
|
|
1687
1687
|
if (!response.ok) {
|
|
@@ -1713,7 +1713,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1713
1713
|
try {
|
|
1714
1714
|
const response = await fetch(url, {
|
|
1715
1715
|
method: "GET",
|
|
1716
|
-
headers:
|
|
1716
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1717
1717
|
cache: "no-store"
|
|
1718
1718
|
});
|
|
1719
1719
|
if (!response.ok) {
|
|
@@ -1738,7 +1738,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1738
1738
|
});
|
|
1739
1739
|
const response = await fetch(url, {
|
|
1740
1740
|
method: "POST",
|
|
1741
|
-
headers:
|
|
1741
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1742
1742
|
body: JSON.stringify(params)
|
|
1743
1743
|
});
|
|
1744
1744
|
if (!response.ok) {
|
|
@@ -1770,7 +1770,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1770
1770
|
});
|
|
1771
1771
|
const response = await fetch(url, {
|
|
1772
1772
|
method: "POST",
|
|
1773
|
-
headers:
|
|
1773
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1774
1774
|
body: JSON.stringify(params)
|
|
1775
1775
|
});
|
|
1776
1776
|
if (!response.ok) {
|
|
@@ -1807,7 +1807,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1807
1807
|
debugLog(debug, scope, "getSwappedConnectExchanges:request");
|
|
1808
1808
|
const response = await fetch(url, {
|
|
1809
1809
|
method: "GET",
|
|
1810
|
-
headers:
|
|
1810
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1811
1811
|
cache: "no-store"
|
|
1812
1812
|
});
|
|
1813
1813
|
if (!response.ok) {
|
|
@@ -1860,7 +1860,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1860
1860
|
try {
|
|
1861
1861
|
const response = await fetch(url, {
|
|
1862
1862
|
method: "GET",
|
|
1863
|
-
headers:
|
|
1863
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1864
1864
|
cache: "no-store"
|
|
1865
1865
|
});
|
|
1866
1866
|
if (!response.ok) {
|
|
@@ -1946,7 +1946,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1946
1946
|
try {
|
|
1947
1947
|
const response = await fetch(url, {
|
|
1948
1948
|
method: "GET",
|
|
1949
|
-
headers:
|
|
1949
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1950
1950
|
cache: "no-store"
|
|
1951
1951
|
});
|
|
1952
1952
|
if (!response.ok) {
|
|
@@ -1973,7 +1973,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1973
1973
|
);
|
|
1974
1974
|
const response = await fetch(url, {
|
|
1975
1975
|
method: "GET",
|
|
1976
|
-
headers:
|
|
1976
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
1977
1977
|
cache: "no-store"
|
|
1978
1978
|
});
|
|
1979
1979
|
if (!response.ok) return null;
|
|
@@ -3074,7 +3074,7 @@ function createIngestTransport(options) {
|
|
|
3074
3074
|
try {
|
|
3075
3075
|
response = await fetchImpl(mintUrl, {
|
|
3076
3076
|
method: "POST",
|
|
3077
|
-
headers:
|
|
3077
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
3078
3078
|
signal: _optionalChain([controller, 'optionalAccess', _120 => _120.signal])
|
|
3079
3079
|
});
|
|
3080
3080
|
} catch (e8) {
|
|
@@ -3335,7 +3335,7 @@ function AnalyticsSession(props) {
|
|
|
3335
3335
|
type: "analytics_ingest_failure",
|
|
3336
3336
|
session_id: sessionIdRef.current,
|
|
3337
3337
|
modal,
|
|
3338
|
-
widget_version:
|
|
3338
|
+
widget_version: _chunk3UYZ7TYEcjs.MODAL_VERSION,
|
|
3339
3339
|
timestamp: nowRef.current().toISOString(),
|
|
3340
3340
|
reason,
|
|
3341
3341
|
...status === void 0 ? {} : { status },
|
|
@@ -3363,7 +3363,7 @@ function AnalyticsSession(props) {
|
|
|
3363
3363
|
proxyOrigin,
|
|
3364
3364
|
sessionId: sessionIdRef.current,
|
|
3365
3365
|
modal,
|
|
3366
|
-
widgetVersion:
|
|
3366
|
+
widgetVersion: _chunk3UYZ7TYEcjs.MODAL_VERSION,
|
|
3367
3367
|
sessionProperties: sessionPropertiesRef.current,
|
|
3368
3368
|
onFailure: (failure) => emitFailure(failure),
|
|
3369
3369
|
fetchImpl: props.fetchImpl,
|
|
@@ -3419,7 +3419,7 @@ function AnalyticsSession(props) {
|
|
|
3419
3419
|
...payload,
|
|
3420
3420
|
session_id: sessionIdRef.current,
|
|
3421
3421
|
modal,
|
|
3422
|
-
widget_version:
|
|
3422
|
+
widget_version: _chunk3UYZ7TYEcjs.MODAL_VERSION,
|
|
3423
3423
|
timestamp: nowRef.current().toISOString(),
|
|
3424
3424
|
session_properties: sessionPropertiesRef.current,
|
|
3425
3425
|
funding_method: fundingMethod
|
|
@@ -3438,7 +3438,7 @@ function AnalyticsSession(props) {
|
|
|
3438
3438
|
...payload,
|
|
3439
3439
|
session_id: sessionIdRef.current,
|
|
3440
3440
|
modal,
|
|
3441
|
-
widget_version:
|
|
3441
|
+
widget_version: _chunk3UYZ7TYEcjs.MODAL_VERSION,
|
|
3442
3442
|
timestamp: nowRef.current().toISOString(),
|
|
3443
3443
|
session_properties: sessionPropertiesRef.current
|
|
3444
3444
|
};
|
|
@@ -3454,7 +3454,7 @@ function AnalyticsSession(props) {
|
|
|
3454
3454
|
...payload,
|
|
3455
3455
|
session_id: sessionIdRef.current,
|
|
3456
3456
|
modal,
|
|
3457
|
-
widget_version:
|
|
3457
|
+
widget_version: _chunk3UYZ7TYEcjs.MODAL_VERSION,
|
|
3458
3458
|
timestamp: nowRef.current().toISOString(),
|
|
3459
3459
|
session_properties: sessionPropertiesRef.current
|
|
3460
3460
|
};
|
|
@@ -3819,7 +3819,7 @@ async function submitSignedRecovery(params) {
|
|
|
3819
3819
|
// The shared const, so recovery carries `x-deposit-modal-version` like
|
|
3820
3820
|
// every other backend call. Without it this path would be invisible in the
|
|
3821
3821
|
// per-client version telemetry the processor records.
|
|
3822
|
-
headers:
|
|
3822
|
+
headers: _chunk3UYZ7TYEcjs.serviceHeaders.call(void 0, ),
|
|
3823
3823
|
// `depositId` as a string: it is a uint256 upstream and JSON numbers lose
|
|
3824
3824
|
// precision well before that range.
|
|
3825
3825
|
body: JSON.stringify({ depositId, destination, signature })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
|
|
2
|
-
var MODAL_VERSION = "0.0.0-dev-
|
|
2
|
+
var MODAL_VERSION = "0.0.0-dev-20260902150337";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useHistoryPanel,
|
|
11
11
|
useTokenPrices,
|
|
12
12
|
warnRemovedProps
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HIGA4MMS.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AnalyticsSession,
|
|
16
16
|
BodyHeader,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
useStableRpcUrls,
|
|
47
47
|
useTargetTokens,
|
|
48
48
|
useWithdrawAnalyticsEmitter
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-E5D3E3NN.mjs";
|
|
50
50
|
import {
|
|
51
51
|
NATIVE_TOKEN_ADDRESS,
|
|
52
52
|
getChainIcon,
|