@rhinestone/deposit-modal 0.0.0-dev-20261102065059 → 0.0.0-dev-20261105153102
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/{BankOnrampStep-PVH24BIG.cjs → BankOnrampStep-25B6GZEE.cjs} +11 -11
- package/dist/{BankOnrampStep-LT3MAESM.mjs → BankOnrampStep-GS4WUJIA.mjs} +4 -4
- package/dist/{DepositModalReown-7K34CEJS.mjs → DepositModalReown-43HNBMMP.mjs} +4 -4
- package/dist/{DepositModalReown-6RP5RNXX.cjs → DepositModalReown-QQ7TMWEB.cjs} +17 -17
- package/dist/WithdrawModal-GGPQGFNI.cjs +12 -0
- package/dist/{WithdrawModal-SFJJL6BL.mjs → WithdrawModal-UDVRQYVR.mjs} +3 -3
- package/dist/{chunk-H3TK4EX2.cjs → chunk-2ZWFG2Y7.cjs} +2 -2
- package/dist/{chunk-S5HC2ZOA.mjs → chunk-6NUBKIVP.mjs} +1 -1
- package/dist/{chunk-OOU2EODU.cjs → chunk-FBOBPBF6.cjs} +3 -3
- package/dist/{chunk-DFA7DXWR.mjs → chunk-GNDVQJQA.mjs} +4 -4
- package/dist/{chunk-HKUMV55A.cjs → chunk-J3O344LA.cjs} +32 -32
- package/dist/{chunk-BETL6XBR.mjs → chunk-JIIK4FB4.mjs} +1 -1
- package/dist/{chunk-BSSPQ47C.cjs → chunk-OSUJF2GE.cjs} +58 -58
- package/dist/{chunk-XXUHS6CC.cjs → chunk-PJUPS3EF.cjs} +1 -1
- package/dist/{chunk-UB3PASTX.cjs → chunk-QGBEXABM.cjs} +2 -2
- package/dist/{chunk-HDVRWO66.mjs → chunk-RFFTLGH2.mjs} +1 -1
- package/dist/{chunk-GF3HMNEQ.mjs → chunk-RVJPMVJ6.mjs} +1 -1
- package/dist/{chunk-YF2V65PQ.mjs → chunk-SQT35FSC.mjs} +1 -1
- package/dist/{chunk-BKR3PYOO.mjs → chunk-X4XG6J34.mjs} +1 -1
- package/dist/{chunk-P7PWCSEO.cjs → chunk-YUOVMCXI.cjs} +242 -242
- package/dist/compliance.cjs +4 -4
- package/dist/compliance.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 +15 -15
- package/dist/embed.mjs +5 -5
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +5 -5
- package/dist/onramp.cjs +4 -4
- package/dist/onramp.mjs +3 -3
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
- package/dist/WithdrawModal-4QXFPLY5.cjs +0 -12
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
var _chunkG264OM23cjs = require('./chunk-G264OM23.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk2ZWFG2Y7cjs = require('./chunk-2ZWFG2Y7.cjs');
|
|
12
12
|
require('./chunk-ADEWTBSN.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkFBOBPBF6cjs = require('./chunk-FBOBPBF6.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkQGBEXABMcjs = require('./chunk-QGBEXABM.cjs');
|
|
20
|
+
require('./chunk-PJUPS3EF.cjs');
|
|
21
21
|
|
|
22
22
|
// src/components/steps/BankOnrampStep.tsx
|
|
23
23
|
var _react = require('react');
|
|
@@ -154,7 +154,7 @@ function BankOnrampStep({
|
|
|
154
154
|
[backendUrl, getSessionRef, smartAccount]
|
|
155
155
|
);
|
|
156
156
|
const service = _react.useMemo.call(void 0,
|
|
157
|
-
() =>
|
|
157
|
+
() => _chunk2ZWFG2Y7cjs.createOnrampService.call(void 0, sessionOptions),
|
|
158
158
|
[sessionOptions]
|
|
159
159
|
);
|
|
160
160
|
_react.useEffect.call(void 0, () => {
|
|
@@ -183,7 +183,7 @@ function BankOnrampStep({
|
|
|
183
183
|
[]
|
|
184
184
|
);
|
|
185
185
|
const startVerification = _react.useCallback.call(void 0, async () => {
|
|
186
|
-
const session = await
|
|
186
|
+
const session = await _chunkFBOBPBF6cjs.startComplianceVerification.call(void 0, sessionOptions);
|
|
187
187
|
if (session.status === "failed") return "declined";
|
|
188
188
|
if (!session.nextAction) return "reviewing";
|
|
189
189
|
if (!isTrustedNoahHostedUrl(session.nextAction.url)) return "reviewing";
|
|
@@ -200,7 +200,7 @@ function BankOnrampStep({
|
|
|
200
200
|
return "action_required";
|
|
201
201
|
}, [openExternallyRef, sessionOptions]);
|
|
202
202
|
const ensureVerified = _react.useCallback.call(void 0, async () => {
|
|
203
|
-
const current = await
|
|
203
|
+
const current = await _chunkFBOBPBF6cjs.getComplianceStatus.call(void 0, sessionOptions);
|
|
204
204
|
if (current.status === "approved") return "approved";
|
|
205
205
|
if (current.status === "declined") return "declined";
|
|
206
206
|
return startVerification();
|
|
@@ -212,7 +212,7 @@ function BankOnrampStep({
|
|
|
212
212
|
setNoOptions(false);
|
|
213
213
|
try {
|
|
214
214
|
const discover = () => service.getOptions().catch((error2) => {
|
|
215
|
-
if (error2 instanceof
|
|
215
|
+
if (error2 instanceof _chunkQGBEXABMcjs.ScopedRequestError && error2.status === 404 && onUnavailableRef.current) {
|
|
216
216
|
if (isCurrentRequest(generation)) _optionalChain([onUnavailableRef, 'access', _3 => _3.current, 'optionalCall', _4 => _4()]);
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
@@ -284,7 +284,7 @@ function BankOnrampStep({
|
|
|
284
284
|
setBankDetails(details);
|
|
285
285
|
} catch (error2) {
|
|
286
286
|
if (!isCurrentRequest(generation)) return;
|
|
287
|
-
const pending = error2 instanceof
|
|
287
|
+
const pending = error2 instanceof _chunkQGBEXABMcjs.ScopedRequestError && error2.status === 409;
|
|
288
288
|
const message = pending ? PENDING_ERROR : SAFE_ERROR;
|
|
289
289
|
setError(message);
|
|
290
290
|
_optionalChain([onErrorRef, 'access', _10 => _10.current, 'optionalCall', _11 => _11(
|
|
@@ -318,7 +318,7 @@ function BankOnrampStep({
|
|
|
318
318
|
await openDetails(nextAccount);
|
|
319
319
|
} catch (error2) {
|
|
320
320
|
if (!isCurrentRequest(generation)) return;
|
|
321
|
-
if (error2 instanceof
|
|
321
|
+
if (error2 instanceof _chunkQGBEXABMcjs.ScopedRequestError && error2.status === 409 && error2.code === "VERIFICATION_REQUIRED" && !verificationResumedRef.current) {
|
|
322
322
|
verificationResumedRef.current = true;
|
|
323
323
|
try {
|
|
324
324
|
const verification = await startVerification();
|
|
@@ -354,7 +354,7 @@ function BankOnrampStep({
|
|
|
354
354
|
const timer = setInterval(() => {
|
|
355
355
|
void (async () => {
|
|
356
356
|
try {
|
|
357
|
-
const status = await
|
|
357
|
+
const status = await _chunkFBOBPBF6cjs.getComplianceStatus.call(void 0, sessionOptions);
|
|
358
358
|
if (!active) return;
|
|
359
359
|
if (status.status === "approved") {
|
|
360
360
|
setHostedUrl(null);
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
} from "./chunk-YY4ZOAH5.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createOnrampService
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JIIK4FB4.mjs";
|
|
12
12
|
import "./chunk-PP4QE32S.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getComplianceStatus,
|
|
15
15
|
startComplianceVerification
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SQT35FSC.mjs";
|
|
17
17
|
import {
|
|
18
18
|
ScopedRequestError
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-RVJPMVJ6.mjs";
|
|
20
|
+
import "./chunk-6NUBKIVP.mjs";
|
|
21
21
|
|
|
22
22
|
// src/components/steps/BankOnrampStep.tsx
|
|
23
23
|
import { useCallback, useEffect, useMemo, useRef, useState as useState2 } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GNDVQJQA.mjs";
|
|
5
5
|
import "./chunk-FXQYJYVE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
followSystemAppearance,
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
resolveThemeMode,
|
|
12
12
|
rpcUrlFor,
|
|
13
13
|
useStableRpcUrls
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RFFTLGH2.mjs";
|
|
15
15
|
import "./chunk-YY4ZOAH5.mjs";
|
|
16
16
|
import "./chunk-PP4QE32S.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-RVJPMVJ6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SUPPORTED_CHAIN_IDS,
|
|
20
20
|
getChainName
|
|
21
21
|
} from "./chunk-SMXVWRC5.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6NUBKIVP.mjs";
|
|
23
23
|
|
|
24
24
|
// src/DepositModalReown.tsx
|
|
25
25
|
import { useCallback, useMemo as useMemo2 } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
var _chunkYUOVMCXIcjs = require('./chunk-YUOVMCXI.cjs');
|
|
5
5
|
require('./chunk-LFDL5UCD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,15 +11,15 @@ require('./chunk-LFDL5UCD.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJ3O344LAcjs = require('./chunk-J3O344LA.cjs');
|
|
15
15
|
require('./chunk-G264OM23.cjs');
|
|
16
16
|
require('./chunk-ADEWTBSN.cjs');
|
|
17
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-QGBEXABM.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkCFRGYU4Ecjs = require('./chunk-CFRGYU4E.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-PJUPS3EF.cjs');
|
|
23
23
|
|
|
24
24
|
// src/DepositModalReown.tsx
|
|
25
25
|
var _react = require('react');
|
|
@@ -47,7 +47,7 @@ var {
|
|
|
47
47
|
unichain,
|
|
48
48
|
katana,
|
|
49
49
|
hyperEvm
|
|
50
|
-
} =
|
|
50
|
+
} = _chunkYUOVMCXIcjs.getReownDependencies.call(void 0, )[1];
|
|
51
51
|
var APPKIT_NETWORK_BY_ID = {
|
|
52
52
|
[mainnet.id]: mainnet,
|
|
53
53
|
[optimism.id]: optimism,
|
|
@@ -79,7 +79,7 @@ function getAppKitNetwork(chainId) {
|
|
|
79
79
|
|
|
80
80
|
// src/core/reown-theme.ts
|
|
81
81
|
function mapTheme(theme) {
|
|
82
|
-
const themeMode =
|
|
82
|
+
const themeMode = _chunkJ3O344LAcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
83
83
|
const themeVariables = {
|
|
84
84
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
85
85
|
};
|
|
@@ -96,7 +96,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
96
96
|
|
|
97
97
|
// src/core/reown.tsx
|
|
98
98
|
var _jsxruntime = require('react/jsx-runtime');
|
|
99
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
99
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkYUOVMCXIcjs.getReownDependencies.call(void 0, );
|
|
100
100
|
var {
|
|
101
101
|
createAppKit,
|
|
102
102
|
useAppKit,
|
|
@@ -112,14 +112,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
112
112
|
const transports = {};
|
|
113
113
|
for (const network of networks) {
|
|
114
114
|
const id = Number(network.id);
|
|
115
|
-
transports[id] = _viem.http.call(void 0,
|
|
115
|
+
transports[id] = _viem.http.call(void 0, _chunkJ3O344LAcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
116
116
|
}
|
|
117
117
|
return transports;
|
|
118
118
|
}
|
|
119
119
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
120
120
|
return networks.map((network) => {
|
|
121
121
|
const id = Number(network.id);
|
|
122
|
-
return `${id}=${_nullishCoalesce(
|
|
122
|
+
return `${id}=${_nullishCoalesce(_chunkJ3O344LAcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
123
123
|
}).join("|");
|
|
124
124
|
}
|
|
125
125
|
var cachedAdapter = null;
|
|
@@ -190,7 +190,7 @@ function ReownWalletProvider({
|
|
|
190
190
|
backendUrl,
|
|
191
191
|
children
|
|
192
192
|
}) {
|
|
193
|
-
const rpcUrls =
|
|
193
|
+
const rpcUrls = _chunkJ3O344LAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
194
194
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
195
195
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
196
196
|
if (!rpcUrls) return void 0;
|
|
@@ -202,14 +202,14 @@ function ReownWalletProvider({
|
|
|
202
202
|
return out;
|
|
203
203
|
}, [rpcUrls]);
|
|
204
204
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
205
|
-
const primed =
|
|
205
|
+
const primed = _chunkJ3O344LAcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
206
206
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
207
207
|
});
|
|
208
208
|
_react.useEffect.call(void 0, () => {
|
|
209
209
|
let active = true;
|
|
210
|
-
const primed =
|
|
210
|
+
const primed = _chunkJ3O344LAcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
211
211
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
212
|
-
|
|
212
|
+
_chunkJ3O344LAcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
213
213
|
if (active) setState({ ready: true, chains });
|
|
214
214
|
});
|
|
215
215
|
return () => {
|
|
@@ -218,7 +218,7 @@ function ReownWalletProvider({
|
|
|
218
218
|
}, [backendUrl, overrides]);
|
|
219
219
|
_react.useEffect.call(void 0, () => {
|
|
220
220
|
setAppKitTheme(appKitReact.modal, theme);
|
|
221
|
-
return
|
|
221
|
+
return _chunkJ3O344LAcjs.followSystemAppearance.call(void 0,
|
|
222
222
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
223
223
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
224
224
|
);
|
|
@@ -282,7 +282,7 @@ function useReownWalletSession() {
|
|
|
282
282
|
await switchChainAsync({ chainId });
|
|
283
283
|
}
|
|
284
284
|
} catch (err) {
|
|
285
|
-
if (
|
|
285
|
+
if (_chunkJ3O344LAcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
286
286
|
throw new Error(
|
|
287
287
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
288
288
|
);
|
|
@@ -295,7 +295,7 @@ function useReownWalletSession() {
|
|
|
295
295
|
|
|
296
296
|
// src/DepositModalReown.tsx
|
|
297
297
|
|
|
298
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
298
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunkYUOVMCXIcjs.getReownDependencies.call(void 0, );
|
|
299
299
|
var { useAppKitProvider } = appKitReact2;
|
|
300
300
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
301
301
|
function DepositModalWithReown(props) {
|
|
@@ -317,7 +317,7 @@ function DepositModalWithReown(props) {
|
|
|
317
317
|
reown.disconnect();
|
|
318
318
|
}, [reown.disconnect]);
|
|
319
319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
320
|
-
|
|
320
|
+
_chunkYUOVMCXIcjs.DepositModalInner,
|
|
321
321
|
{
|
|
322
322
|
...props,
|
|
323
323
|
walletSession: reownWithSolana,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOSUJF2GEcjs = require('./chunk-OSUJF2GE.cjs');
|
|
5
|
+
require('./chunk-J3O344LA.cjs');
|
|
6
|
+
require('./chunk-G264OM23.cjs');
|
|
7
|
+
require('./chunk-CFRGYU4E.cjs');
|
|
8
|
+
require('./chunk-PJUPS3EF.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkOSUJF2GEcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkOSUJF2GEcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal,
|
|
3
3
|
buildWithdrawAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-X4XG6J34.mjs";
|
|
5
|
+
import "./chunk-RFFTLGH2.mjs";
|
|
6
6
|
import "./chunk-YY4ZOAH5.mjs";
|
|
7
7
|
import "./chunk-SMXVWRC5.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-6NUBKIVP.mjs";
|
|
9
9
|
export {
|
|
10
10
|
WithdrawModal,
|
|
11
11
|
buildWithdrawAnalyticsSessionProperties
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkADEWTBSNcjs = require('./chunk-ADEWTBSN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQGBEXABMcjs = require('./chunk-QGBEXABM.cjs');
|
|
8
8
|
|
|
9
9
|
// src/core/onramp-service.ts
|
|
10
10
|
var RAIL_TYPES = ["BankAch", "BankFedwire", "BankSwift", "BankSepa"];
|
|
@@ -65,7 +65,7 @@ function projectBankDetails(input) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function createOnrampService(options) {
|
|
68
|
-
const request =
|
|
68
|
+
const request = _chunkQGBEXABMcjs.createBearerTransport.call(void 0, options);
|
|
69
69
|
return {
|
|
70
70
|
// Named fields only, never a spread: this client is Noah's, whatever a
|
|
71
71
|
// caller passes.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQGBEXABMcjs = require('./chunk-QGBEXABM.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/compliance-service.ts
|
|
6
6
|
function getComplianceStatus(options) {
|
|
7
|
-
return
|
|
7
|
+
return _chunkQGBEXABMcjs.createBearerTransport.call(void 0, options)("/compliance/status");
|
|
8
8
|
}
|
|
9
9
|
function startComplianceVerification(options) {
|
|
10
|
-
return
|
|
10
|
+
return _chunkQGBEXABMcjs.createBearerTransport.call(void 0, options)(
|
|
11
11
|
"/compliance/verification",
|
|
12
12
|
{}
|
|
13
13
|
);
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
useTokenDisplay,
|
|
98
98
|
useTokenDisplays,
|
|
99
99
|
warnRemovedProps
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-RFFTLGH2.mjs";
|
|
101
101
|
import {
|
|
102
102
|
AppleIcon,
|
|
103
103
|
BankIcon,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
} from "./chunk-PP4QE32S.mjs";
|
|
124
124
|
import {
|
|
125
125
|
createBearerTransport
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-RVJPMVJ6.mjs";
|
|
127
127
|
import {
|
|
128
128
|
HYPERCORE_CHAIN_ID,
|
|
129
129
|
HYPERCORE_MIN_DEPOSIT_USD,
|
|
@@ -4192,7 +4192,7 @@ SwappedProviderStep.displayName = "SwappedProviderStep";
|
|
|
4192
4192
|
// src/components/steps/RampOrderStep.tsx
|
|
4193
4193
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
4194
4194
|
var BankOnrampStep = lazy2(async () => {
|
|
4195
|
-
const module = await import("./BankOnrampStep-
|
|
4195
|
+
const module = await import("./BankOnrampStep-GS4WUJIA.mjs");
|
|
4196
4196
|
return { default: module.BankOnrampStep };
|
|
4197
4197
|
});
|
|
4198
4198
|
var HOSTED = {
|
|
@@ -10154,7 +10154,7 @@ function warnNoCustomerSession() {
|
|
|
10154
10154
|
}
|
|
10155
10155
|
var ReownDepositInner = lazy4(async () => {
|
|
10156
10156
|
await loadReownDependencies();
|
|
10157
|
-
const module = await import("./DepositModalReown-
|
|
10157
|
+
const module = await import("./DepositModalReown-43HNBMMP.mjs");
|
|
10158
10158
|
return { default: module.DepositModalReown };
|
|
10159
10159
|
});
|
|
10160
10160
|
function buildDepositAnalyticsSessionProperties({
|
|
@@ -49,7 +49,7 @@ var _chunkCFRGYU4Ecjs = require('./chunk-CFRGYU4E.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkPJUPS3EFcjs = require('./chunk-PJUPS3EF.cjs');
|
|
53
53
|
|
|
54
54
|
// src/components/ui/Modal.tsx
|
|
55
55
|
|
|
@@ -744,7 +744,7 @@ function createDepositService(baseUrl, options) {
|
|
|
744
744
|
method === "GET" ? assetsGetUrl(ids, fields) : apiUrl("/assets"),
|
|
745
745
|
{
|
|
746
746
|
method,
|
|
747
|
-
headers:
|
|
747
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
748
748
|
body: method === "QUERY" ? JSON.stringify({ ids, fields }) : void 0,
|
|
749
749
|
cache: "no-store",
|
|
750
750
|
signal
|
|
@@ -838,7 +838,7 @@ function createDepositService(baseUrl, options) {
|
|
|
838
838
|
try {
|
|
839
839
|
const response = await fetch(apiUrl("/qr/tokens"), {
|
|
840
840
|
method: "GET",
|
|
841
|
-
headers:
|
|
841
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, )
|
|
842
842
|
});
|
|
843
843
|
if (!response.ok) {
|
|
844
844
|
debugLog(debug, scope, "getTopTokens:unavailable", {
|
|
@@ -865,7 +865,7 @@ function createDepositService(baseUrl, options) {
|
|
|
865
865
|
try {
|
|
866
866
|
const response = await fetch(apiUrl("/chains"), {
|
|
867
867
|
method: "GET",
|
|
868
|
-
headers:
|
|
868
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, )
|
|
869
869
|
});
|
|
870
870
|
if (!response.ok) {
|
|
871
871
|
debugLog(debug, scope, "getChains:unavailable", {
|
|
@@ -911,7 +911,7 @@ function createDepositService(baseUrl, options) {
|
|
|
911
911
|
const label = kind === "fiat" ? "Swapped widget URL" : "Swapped Connect URL";
|
|
912
912
|
const response = await fetch(apiUrl("/onramp/orders"), {
|
|
913
913
|
method: "POST",
|
|
914
|
-
headers:
|
|
914
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
915
915
|
body: JSON.stringify({
|
|
916
916
|
provider: "swapped",
|
|
917
917
|
kind,
|
|
@@ -952,7 +952,7 @@ function createDepositService(baseUrl, options) {
|
|
|
952
952
|
});
|
|
953
953
|
const response = await fetch(url, {
|
|
954
954
|
method: "POST",
|
|
955
|
-
headers:
|
|
955
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
956
956
|
body: JSON.stringify({ account: params })
|
|
957
957
|
});
|
|
958
958
|
if (!response.ok) {
|
|
@@ -987,7 +987,7 @@ function createDepositService(baseUrl, options) {
|
|
|
987
987
|
debugLog(debug, scope, "fetchPortfolio:request", { url, address });
|
|
988
988
|
const response = await fetch(url, {
|
|
989
989
|
method: "GET",
|
|
990
|
-
headers:
|
|
990
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, )
|
|
991
991
|
});
|
|
992
992
|
if (!response.ok) {
|
|
993
993
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1038,7 +1038,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
const response = await fetch(url, {
|
|
1040
1040
|
method: "GET",
|
|
1041
|
-
headers:
|
|
1041
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, )
|
|
1042
1042
|
});
|
|
1043
1043
|
if (!response.ok) {
|
|
1044
1044
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1067,7 +1067,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1067
1067
|
debugLog(debug, scope, "checkAccount:request", { url, address });
|
|
1068
1068
|
const response = await fetch(url, {
|
|
1069
1069
|
method: "GET",
|
|
1070
|
-
headers:
|
|
1070
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, )
|
|
1071
1071
|
});
|
|
1072
1072
|
if (!response.ok) {
|
|
1073
1073
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1103,7 +1103,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1103
1103
|
);
|
|
1104
1104
|
const response = await fetch(url, {
|
|
1105
1105
|
method: "GET",
|
|
1106
|
-
headers:
|
|
1106
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1107
1107
|
cache: "no-store"
|
|
1108
1108
|
});
|
|
1109
1109
|
if (!response.ok) {
|
|
@@ -1131,7 +1131,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1131
1131
|
);
|
|
1132
1132
|
const response = await fetch(url, {
|
|
1133
1133
|
method: "GET",
|
|
1134
|
-
headers:
|
|
1134
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1135
1135
|
cache: "no-store"
|
|
1136
1136
|
});
|
|
1137
1137
|
if (!response.ok) {
|
|
@@ -1155,7 +1155,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1155
1155
|
);
|
|
1156
1156
|
const response = await fetch(url, {
|
|
1157
1157
|
method: "GET",
|
|
1158
|
-
headers:
|
|
1158
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1159
1159
|
cache: "no-store"
|
|
1160
1160
|
});
|
|
1161
1161
|
if (!response.ok) {
|
|
@@ -1177,7 +1177,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1177
1177
|
async getPositions(address) {
|
|
1178
1178
|
const url = apiUrl(`/positions/${address}`);
|
|
1179
1179
|
debugLog(debug, scope, "getPositions:request", { url, address });
|
|
1180
|
-
const response = await fetch(url, { headers:
|
|
1180
|
+
const response = await fetch(url, { headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ) });
|
|
1181
1181
|
if (!response.ok) {
|
|
1182
1182
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
1183
1183
|
debugError(debug, scope, "getPositions:failed", error, {
|
|
@@ -1211,7 +1211,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1211
1211
|
});
|
|
1212
1212
|
const response = await fetch(url, {
|
|
1213
1213
|
method: "POST",
|
|
1214
|
-
headers:
|
|
1214
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1215
1215
|
body: JSON.stringify({ account, market, chainId, asset, amount })
|
|
1216
1216
|
});
|
|
1217
1217
|
if (!response.ok) {
|
|
@@ -1247,7 +1247,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1247
1247
|
});
|
|
1248
1248
|
const response = await fetch(url, {
|
|
1249
1249
|
method: "POST",
|
|
1250
|
-
headers:
|
|
1250
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1251
1251
|
body: JSON.stringify({
|
|
1252
1252
|
depositWallet,
|
|
1253
1253
|
owner,
|
|
@@ -1289,7 +1289,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1289
1289
|
});
|
|
1290
1290
|
const response = await fetch(url, {
|
|
1291
1291
|
method: "GET",
|
|
1292
|
-
headers:
|
|
1292
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1293
1293
|
cache: "no-store"
|
|
1294
1294
|
});
|
|
1295
1295
|
if (!response.ok) {
|
|
@@ -1339,7 +1339,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1339
1339
|
});
|
|
1340
1340
|
const response = await fetch(url, {
|
|
1341
1341
|
method: "GET",
|
|
1342
|
-
headers:
|
|
1342
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1343
1343
|
cache: "no-store"
|
|
1344
1344
|
});
|
|
1345
1345
|
if (!response.ok) {
|
|
@@ -1393,7 +1393,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1393
1393
|
try {
|
|
1394
1394
|
const response = await fetch(url, {
|
|
1395
1395
|
method: "POST",
|
|
1396
|
-
headers:
|
|
1396
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1397
1397
|
body: JSON.stringify(body),
|
|
1398
1398
|
cache: "no-store",
|
|
1399
1399
|
signal
|
|
@@ -1443,7 +1443,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1443
1443
|
try {
|
|
1444
1444
|
const response = await fetch(url, {
|
|
1445
1445
|
method: "POST",
|
|
1446
|
-
headers:
|
|
1446
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1447
1447
|
body: JSON.stringify({ ...params, kind: "auto" }),
|
|
1448
1448
|
cache: "no-store",
|
|
1449
1449
|
signal
|
|
@@ -1546,7 +1546,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1546
1546
|
try {
|
|
1547
1547
|
response = await fetch(url, {
|
|
1548
1548
|
method: "POST",
|
|
1549
|
-
headers:
|
|
1549
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1550
1550
|
body: JSON.stringify(params)
|
|
1551
1551
|
});
|
|
1552
1552
|
} catch (error) {
|
|
@@ -1630,7 +1630,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1630
1630
|
debugLog(debug, scope, "getSwappedConnectExchanges:request");
|
|
1631
1631
|
const response = await fetch(url, {
|
|
1632
1632
|
method: "GET",
|
|
1633
|
-
headers:
|
|
1633
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1634
1634
|
cache: "no-store"
|
|
1635
1635
|
});
|
|
1636
1636
|
if (!response.ok) {
|
|
@@ -1670,7 +1670,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1670
1670
|
try {
|
|
1671
1671
|
const response = await fetch(apiUrl("/onramp/providers"), {
|
|
1672
1672
|
method: "GET",
|
|
1673
|
-
headers:
|
|
1673
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1674
1674
|
cache: "no-store"
|
|
1675
1675
|
});
|
|
1676
1676
|
if (!response.ok) return null;
|
|
@@ -1703,7 +1703,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1703
1703
|
try {
|
|
1704
1704
|
const response = await fetch(url, {
|
|
1705
1705
|
method: "GET",
|
|
1706
|
-
headers:
|
|
1706
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1707
1707
|
cache: "no-store"
|
|
1708
1708
|
});
|
|
1709
1709
|
if (!response.ok) {
|
|
@@ -1791,7 +1791,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1791
1791
|
try {
|
|
1792
1792
|
const response = await fetch(url, {
|
|
1793
1793
|
method: "GET",
|
|
1794
|
-
headers:
|
|
1794
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1795
1795
|
cache: "no-store"
|
|
1796
1796
|
});
|
|
1797
1797
|
if (!response.ok) {
|
|
@@ -1816,7 +1816,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1816
1816
|
const url = apiUrl(`/onramp/orders/${encodeURIComponent(orderId)}`);
|
|
1817
1817
|
const response = await fetch(url, {
|
|
1818
1818
|
method: "GET",
|
|
1819
|
-
headers:
|
|
1819
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
1820
1820
|
cache: "no-store"
|
|
1821
1821
|
});
|
|
1822
1822
|
if (!response.ok) return null;
|
|
@@ -3043,7 +3043,7 @@ function createIngestTransport(options) {
|
|
|
3043
3043
|
try {
|
|
3044
3044
|
response = await fetchImpl(mintUrl, {
|
|
3045
3045
|
method: "POST",
|
|
3046
|
-
headers:
|
|
3046
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
3047
3047
|
signal: _optionalChain([controller, 'optionalAccess', _173 => _173.signal])
|
|
3048
3048
|
});
|
|
3049
3049
|
} catch (e9) {
|
|
@@ -3304,7 +3304,7 @@ function AnalyticsSession(props) {
|
|
|
3304
3304
|
type: "analytics_ingest_failure",
|
|
3305
3305
|
session_id: sessionIdRef.current,
|
|
3306
3306
|
modal,
|
|
3307
|
-
widget_version:
|
|
3307
|
+
widget_version: _chunkPJUPS3EFcjs.MODAL_VERSION,
|
|
3308
3308
|
timestamp: nowRef.current().toISOString(),
|
|
3309
3309
|
reason,
|
|
3310
3310
|
...status === void 0 ? {} : { status },
|
|
@@ -3332,7 +3332,7 @@ function AnalyticsSession(props) {
|
|
|
3332
3332
|
proxyOrigin,
|
|
3333
3333
|
sessionId: sessionIdRef.current,
|
|
3334
3334
|
modal,
|
|
3335
|
-
widgetVersion:
|
|
3335
|
+
widgetVersion: _chunkPJUPS3EFcjs.MODAL_VERSION,
|
|
3336
3336
|
sessionProperties: sessionPropertiesRef.current,
|
|
3337
3337
|
onFailure: (failure) => emitFailure(failure),
|
|
3338
3338
|
fetchImpl: props.fetchImpl,
|
|
@@ -3388,7 +3388,7 @@ function AnalyticsSession(props) {
|
|
|
3388
3388
|
...payload,
|
|
3389
3389
|
session_id: sessionIdRef.current,
|
|
3390
3390
|
modal,
|
|
3391
|
-
widget_version:
|
|
3391
|
+
widget_version: _chunkPJUPS3EFcjs.MODAL_VERSION,
|
|
3392
3392
|
timestamp: nowRef.current().toISOString(),
|
|
3393
3393
|
session_properties: sessionPropertiesRef.current,
|
|
3394
3394
|
funding_method: fundingMethod
|
|
@@ -3407,7 +3407,7 @@ function AnalyticsSession(props) {
|
|
|
3407
3407
|
...payload,
|
|
3408
3408
|
session_id: sessionIdRef.current,
|
|
3409
3409
|
modal,
|
|
3410
|
-
widget_version:
|
|
3410
|
+
widget_version: _chunkPJUPS3EFcjs.MODAL_VERSION,
|
|
3411
3411
|
timestamp: nowRef.current().toISOString(),
|
|
3412
3412
|
session_properties: sessionPropertiesRef.current
|
|
3413
3413
|
};
|
|
@@ -3423,7 +3423,7 @@ function AnalyticsSession(props) {
|
|
|
3423
3423
|
...payload,
|
|
3424
3424
|
session_id: sessionIdRef.current,
|
|
3425
3425
|
modal,
|
|
3426
|
-
widget_version:
|
|
3426
|
+
widget_version: _chunkPJUPS3EFcjs.MODAL_VERSION,
|
|
3427
3427
|
timestamp: nowRef.current().toISOString(),
|
|
3428
3428
|
session_properties: sessionPropertiesRef.current
|
|
3429
3429
|
};
|
|
@@ -5074,7 +5074,7 @@ async function submitSignedRecovery(params) {
|
|
|
5074
5074
|
// The shared const, so recovery carries `x-deposit-modal-version` like
|
|
5075
5075
|
// every other backend call. Without it this path would be invisible in the
|
|
5076
5076
|
// per-client version telemetry the processor records.
|
|
5077
|
-
headers:
|
|
5077
|
+
headers: _chunkPJUPS3EFcjs.serviceHeaders.call(void 0, ),
|
|
5078
5078
|
// `depositId` as a string: it is a uint256 upstream and JSON numbers lose
|
|
5079
5079
|
// precision well before that range.
|
|
5080
5080
|
body: JSON.stringify({ depositId, destination, signature })
|