@rhinestone/deposit-modal 0.11.1 → 0.12.0
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-MO5QDLIT.mjs → DepositModalReown-MVVRUXO4.mjs} +7 -7
- package/dist/{DepositModalReown-YGB73NMW.cjs → DepositModalReown-PZXHTPIS.cjs} +17 -17
- package/dist/{chunk-OWYPKCYD.mjs → chunk-2AMRKYJ4.mjs} +4 -4
- package/dist/{chunk-FVUXJ3RP.cjs → chunk-2PQ34KU3.cjs} +3 -3
- package/dist/{chunk-TENL4H64.cjs → chunk-4R2ZHSDQ.cjs} +4 -9
- package/dist/{chunk-4FTI3GTB.cjs → chunk-4SRVZRZF.cjs} +1 -1
- package/dist/{chunk-MZ53PDIX.mjs → chunk-53IGTENZ.mjs} +1 -1
- package/dist/{chunk-CWGUBFJL.mjs → chunk-5IP67CL5.mjs} +5 -15
- package/dist/{chunk-HUHBNYD3.cjs → chunk-6ZJTZ7DS.cjs} +81 -80
- package/dist/{chunk-LQGYPM5B.cjs → chunk-BK54FZAE.cjs} +79 -79
- package/dist/{chunk-EIWOVX53.mjs → chunk-EUIPQ3T4.mjs} +3 -3
- package/dist/{chunk-URFSTNRS.mjs → chunk-GZNMBZHY.mjs} +1 -1
- package/dist/{chunk-ZQR36NCV.cjs → chunk-LBJFACLH.cjs} +84 -94
- package/dist/{chunk-SSQ27YFB.cjs → chunk-LTPVHQXJ.cjs} +543 -540
- package/dist/{chunk-YELNYILK.mjs → chunk-Q5MFRAWD.mjs} +287 -284
- package/dist/{chunk-5746YXKC.mjs → chunk-QF5T6HXC.mjs} +5 -4
- package/dist/{chunk-V6T7LORJ.mjs → chunk-RMYUE6HJ.mjs} +1 -1
- package/dist/{chunk-ZRIRCIQM.cjs → chunk-WZJMJFP7.cjs} +62 -62
- package/dist/{chunk-JPRV36DT.cjs → chunk-XJB3VG4C.cjs} +2 -2
- package/dist/{chunk-53IFZGSF.mjs → chunk-YR43AAX5.mjs} +0 -5
- package/dist/claim.cjs +6 -6
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +3 -3
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +2 -2
- package/dist/deposit.cjs +8 -8
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +7 -7
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +9 -9
- package/dist/polymarket.cjs +5 -5
- package/dist/polymarket.mjs +2 -2
- package/dist/{types-CsGa-HxD.d.cts → types-BO4iP6fG.d.cts} +0 -1
- package/dist/{types-DdS8OySJ.d.ts → types-oFblf65g.d.ts} +0 -1
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +5 -5
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
tokenAmountToNumber,
|
|
25
25
|
useExplorerTxUrl,
|
|
26
26
|
useLatestRef
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5IP67CL5.mjs";
|
|
28
28
|
import {
|
|
29
29
|
NATIVE_TOKEN_ADDRESS,
|
|
30
30
|
cdnIconUrl,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
targetChainToCaip2,
|
|
35
35
|
targetChainToChainId,
|
|
36
36
|
toEvmCaip2
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YR43AAX5.mjs";
|
|
38
38
|
|
|
39
39
|
// src/core/removed-props.ts
|
|
40
40
|
var MANAGED_ACCOUNT_REMOVALS = {
|
|
@@ -63,7 +63,8 @@ var REMOVED_PROPS = {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
var REMOVED_UI_CONFIG_KEYS = {
|
|
66
|
-
checkLiquidity: "removed \u2014 the liquidity cap is shown on the QR / transfer screen, which checks it directly."
|
|
66
|
+
checkLiquidity: "removed \u2014 the liquidity cap is shown on the QR / transfer screen, which checks it directly.",
|
|
67
|
+
showHistoryButton: "removed \u2014 deposit history is always offered, from the modal's home screen. There is no way to hide it."
|
|
67
68
|
};
|
|
68
69
|
var warned = /* @__PURE__ */ new Set();
|
|
69
70
|
function warnOnce(component, key, replacement) {
|
|
@@ -71,7 +72,7 @@ function warnOnce(component, key, replacement) {
|
|
|
71
72
|
if (warned.has(id)) return;
|
|
72
73
|
warned.add(id);
|
|
73
74
|
console.error(
|
|
74
|
-
`[rhinestone] <${component}> was passed \`${key}\`, which no longer exists
|
|
75
|
+
`[rhinestone] <${component}> was passed \`${key}\`, which no longer exists: ${replacement}`
|
|
75
76
|
);
|
|
76
77
|
}
|
|
77
78
|
function warnRemovedProps(component, props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
3
|
+
var _chunk2PQ34KU3cjs = require('./chunk-2PQ34KU3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -28,17 +28,17 @@ var _chunkFVUXJ3RPcjs = require('./chunk-FVUXJ3RP.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkLBJFACLHcjs = require('./chunk-LBJFACLH.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk4SRVZRZFcjs = require('./chunk-4SRVZRZF.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk4R2ZHSDQcjs = require('./chunk-4R2ZHSDQ.cjs');
|
|
42
42
|
|
|
43
43
|
// src/ClaimModal.tsx
|
|
44
44
|
|
|
@@ -68,7 +68,7 @@ var Input = _react.forwardRef.call(void 0,
|
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-input-error", children: [
|
|
71
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
71
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
|
|
72
72
|
error
|
|
73
73
|
] })
|
|
74
74
|
] });
|
|
@@ -154,7 +154,7 @@ async function submitSignedRecovery(params) {
|
|
|
154
154
|
try {
|
|
155
155
|
signature = await signRecovery({ typedData, signer, depositId, destination });
|
|
156
156
|
} catch (error) {
|
|
157
|
-
|
|
157
|
+
_chunkLBJFACLHcjs.debugError.call(void 0, debug, scope, "signRecovery:failed", error);
|
|
158
158
|
throw new RecoveryError(
|
|
159
159
|
"Signature request was declined. Approve it in your wallet to recover this deposit.",
|
|
160
160
|
0,
|
|
@@ -171,7 +171,7 @@ async function submitSignedRecovery(params) {
|
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
const url = `${backendUrl.replace(/\/$/, "")}/deposits/recover`;
|
|
174
|
-
|
|
174
|
+
_chunkLBJFACLHcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:request", {
|
|
175
175
|
url,
|
|
176
176
|
depositId,
|
|
177
177
|
signer
|
|
@@ -183,19 +183,19 @@ async function submitSignedRecovery(params) {
|
|
|
183
183
|
// The shared const, so recovery carries `x-deposit-modal-version` like
|
|
184
184
|
// every other backend call. Without it this path would be invisible in the
|
|
185
185
|
// per-client version telemetry the processor records.
|
|
186
|
-
headers:
|
|
186
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
187
187
|
// `depositId` as a string: it is a uint256 upstream and JSON numbers lose
|
|
188
188
|
// precision well before that range.
|
|
189
189
|
body: JSON.stringify({ depositId, destination, signature })
|
|
190
190
|
});
|
|
191
191
|
} catch (error) {
|
|
192
|
-
|
|
192
|
+
_chunkLBJFACLHcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:network", error);
|
|
193
193
|
const { message, retryable } = formatRecoveryError(0);
|
|
194
194
|
throw new RecoveryError(message, 0, void 0, retryable);
|
|
195
195
|
}
|
|
196
196
|
if (!response.ok) {
|
|
197
197
|
const body = await response.json().catch(() => ({}));
|
|
198
|
-
|
|
198
|
+
_chunkLBJFACLHcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:failed", body, {
|
|
199
199
|
status: response.status
|
|
200
200
|
});
|
|
201
201
|
const { message, retryable } = formatRecoveryError(
|
|
@@ -206,7 +206,7 @@ async function submitSignedRecovery(params) {
|
|
|
206
206
|
throw new RecoveryError(message, response.status, body.code, retryable);
|
|
207
207
|
}
|
|
208
208
|
const result = await response.json();
|
|
209
|
-
|
|
209
|
+
_chunkLBJFACLHcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:success", {
|
|
210
210
|
transactionHash: result.transactionHash
|
|
211
211
|
});
|
|
212
212
|
return result;
|
|
@@ -224,17 +224,17 @@ function isEligible(row) {
|
|
|
224
224
|
}
|
|
225
225
|
function describeDeposit(row) {
|
|
226
226
|
const chainId = _nullishCoalesce(evmChainIdFromCaip2(row.chain), () => ( 0));
|
|
227
|
-
const decimals =
|
|
228
|
-
const symbol =
|
|
227
|
+
const decimals = _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress.call(void 0, row.token, chainId);
|
|
228
|
+
const symbol = _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, row.token, chainId);
|
|
229
229
|
const raw = BigInt(_nullishCoalesce(_nullishCoalesce(row.sourceAmount, () => ( row.amount)), () => ( "0")));
|
|
230
230
|
const human = Number(_viem.formatUnits.call(void 0, raw, decimals));
|
|
231
|
-
const amount = _nullishCoalesce(
|
|
231
|
+
const amount = _nullishCoalesce(_chunkLBJFACLHcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
|
|
232
232
|
return {
|
|
233
233
|
chainId,
|
|
234
234
|
symbol,
|
|
235
235
|
amount,
|
|
236
|
-
chainName:
|
|
237
|
-
chainIcon:
|
|
236
|
+
chainName: _chunk4R2ZHSDQcjs.getChainName.call(void 0, chainId),
|
|
237
|
+
chainIcon: _chunk4R2ZHSDQcjs.getChainIcon.call(void 0, chainId)
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
function shortenHash(hash) {
|
|
@@ -325,15 +325,15 @@ function ClaimModal({
|
|
|
325
325
|
onError,
|
|
326
326
|
debug
|
|
327
327
|
}) {
|
|
328
|
-
|
|
328
|
+
_chunkLBJFACLHcjs.checkBackendUrl.call(void 0, "ClaimModal", backendUrl);
|
|
329
329
|
const modalRef = _react.useRef.call(void 0, null);
|
|
330
|
-
const onReadyRef =
|
|
331
|
-
const onLifecycleRef =
|
|
332
|
-
const onEventRef =
|
|
333
|
-
const onErrorRef =
|
|
334
|
-
const rpcUrls =
|
|
330
|
+
const onReadyRef = _chunkLBJFACLHcjs.useLatestRef.call(void 0, onReady);
|
|
331
|
+
const onLifecycleRef = _chunkLBJFACLHcjs.useLatestRef.call(void 0, onLifecycle);
|
|
332
|
+
const onEventRef = _chunkLBJFACLHcjs.useLatestRef.call(void 0, onEvent);
|
|
333
|
+
const onErrorRef = _chunkLBJFACLHcjs.useLatestRef.call(void 0, onError);
|
|
334
|
+
const rpcUrls = _chunkLBJFACLHcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
335
335
|
const service = _react.useMemo.call(void 0,
|
|
336
|
-
() =>
|
|
336
|
+
() => _chunkLBJFACLHcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
|
|
337
337
|
[backendUrl, debug]
|
|
338
338
|
);
|
|
339
339
|
const [state, dispatch] = _react.useReducer.call(void 0, claimReducer, INITIAL_STATE);
|
|
@@ -341,7 +341,7 @@ function ClaimModal({
|
|
|
341
341
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
342
342
|
isOpenRef.current = isOpen;
|
|
343
343
|
_react.useEffect.call(void 0, () => {
|
|
344
|
-
if (isOpen && modalRef.current)
|
|
344
|
+
if (isOpen && modalRef.current) _chunkLBJFACLHcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
345
345
|
}, [isOpen, theme]);
|
|
346
346
|
_react.useEffect.call(void 0, () => {
|
|
347
347
|
if (isOpen) {
|
|
@@ -363,8 +363,8 @@ function ClaimModal({
|
|
|
363
363
|
}, [state.step, onClose]);
|
|
364
364
|
const canGoBack = state.step === "select" || state.step === "review" || state.step === "failed";
|
|
365
365
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _7 => _7.showBackButton]), () => ( true));
|
|
366
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
367
|
-
|
|
366
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
367
|
+
_chunkLBJFACLHcjs.Modal,
|
|
368
368
|
{
|
|
369
369
|
isOpen,
|
|
370
370
|
onClose: handleClose,
|
|
@@ -380,7 +380,7 @@ function ClaimModal({
|
|
|
380
380
|
className: "rs-modal-header-back",
|
|
381
381
|
"aria-label": "Go back",
|
|
382
382
|
onClick: () => dispatch({ type: "back" }),
|
|
383
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
383
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.ChevronLeftIcon, {})
|
|
384
384
|
}
|
|
385
385
|
) }),
|
|
386
386
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -391,7 +391,7 @@ function ClaimModal({
|
|
|
391
391
|
disabled: state.step === "processing",
|
|
392
392
|
className: "rs-modal-close",
|
|
393
393
|
"aria-label": "Close",
|
|
394
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.CloseIcon, {})
|
|
395
395
|
}
|
|
396
396
|
) })
|
|
397
397
|
] }),
|
|
@@ -524,12 +524,12 @@ function ClaimBody({
|
|
|
524
524
|
});
|
|
525
525
|
if (!isCurrentOperation()) return;
|
|
526
526
|
const paidTo = destination;
|
|
527
|
-
const decimals =
|
|
528
|
-
const symbol =
|
|
527
|
+
const decimals = _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress.call(void 0, token, sourceChainId);
|
|
528
|
+
const symbol = _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, token, sourceChainId);
|
|
529
529
|
const refundedRaw = BigInt(
|
|
530
530
|
_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(result.amount, () => ( deposit.sourceAmount)), () => ( deposit.amount)), () => ( "0"))
|
|
531
531
|
);
|
|
532
|
-
const amountDisplay = _nullishCoalesce(
|
|
532
|
+
const amountDisplay = _nullishCoalesce(_chunkLBJFACLHcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
|
|
533
533
|
dispatch({
|
|
534
534
|
type: "complete",
|
|
535
535
|
txHash: result.transactionHash,
|
|
@@ -556,7 +556,7 @@ function ClaimBody({
|
|
|
556
556
|
if (!isCurrentOperation()) return;
|
|
557
557
|
const recoveryError = err instanceof RecoveryError ? err : void 0;
|
|
558
558
|
const status = _optionalChain([recoveryError, 'optionalAccess', _16 => _16.status]);
|
|
559
|
-
const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _17 => _17.message]), () => (
|
|
559
|
+
const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _17 => _17.message]), () => ( _chunkLBJFACLHcjs.formatUserError.call(void 0,
|
|
560
560
|
err instanceof Error ? err.message : "Recovery failed"
|
|
561
561
|
)));
|
|
562
562
|
dispatch({
|
|
@@ -621,7 +621,7 @@ function LookupStep({
|
|
|
621
621
|
onResults(deposits);
|
|
622
622
|
} catch (err) {
|
|
623
623
|
if (!isCurrentOperation()) return;
|
|
624
|
-
const message =
|
|
624
|
+
const message = _chunkLBJFACLHcjs.formatUserError.call(void 0,
|
|
625
625
|
err instanceof Error ? err.message : "Lookup failed"
|
|
626
626
|
);
|
|
627
627
|
setError(message);
|
|
@@ -642,9 +642,9 @@ function LookupStep({
|
|
|
642
642
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
643
643
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
644
644
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
645
|
-
|
|
645
|
+
_chunkLBJFACLHcjs.BodyHeader,
|
|
646
646
|
{
|
|
647
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
647
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.HandCoinsIcon, {}),
|
|
648
648
|
title: "Claim a deposit",
|
|
649
649
|
subtitle: "Get funds from a failed deposit sent back to you on the source chain."
|
|
650
650
|
}
|
|
@@ -659,9 +659,9 @@ function LookupStep({
|
|
|
659
659
|
error: trimmed.length > 0 && !validTxHash ? "Enter a valid transaction hash" : void 0
|
|
660
660
|
}
|
|
661
661
|
),
|
|
662
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
662
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.Callout, { variant: "error", children: error }),
|
|
663
663
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
664
|
-
|
|
664
|
+
_chunkLBJFACLHcjs.Button,
|
|
665
665
|
{
|
|
666
666
|
onClick: handleLookup,
|
|
667
667
|
loading,
|
|
@@ -672,7 +672,7 @@ function LookupStep({
|
|
|
672
672
|
}
|
|
673
673
|
)
|
|
674
674
|
] }),
|
|
675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
675
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.PoweredBy, {})
|
|
676
676
|
] });
|
|
677
677
|
}
|
|
678
678
|
function SelectStep({
|
|
@@ -682,9 +682,9 @@ function SelectStep({
|
|
|
682
682
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
683
683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
684
684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
685
|
-
|
|
685
|
+
_chunkLBJFACLHcjs.BodyHeader,
|
|
686
686
|
{
|
|
687
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
687
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.CoinsIcon, {}),
|
|
688
688
|
title: "Select a deposit",
|
|
689
689
|
subtitle: "This transaction produced multiple deposits. Choose the one to claim."
|
|
690
690
|
}
|
|
@@ -693,9 +693,9 @@ function SelectStep({
|
|
|
693
693
|
const { symbol, amount, chainName } = describeDeposit(row);
|
|
694
694
|
const eligible = isEligible(row);
|
|
695
695
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
696
|
-
|
|
696
|
+
_chunk2PQ34KU3cjs.ListRow,
|
|
697
697
|
{
|
|
698
|
-
leadingMedia:
|
|
698
|
+
leadingMedia: _chunk4R2ZHSDQcjs.tokenIconUrl.call(void 0, symbol),
|
|
699
699
|
title: `${amount} ${symbol}`,
|
|
700
700
|
subtitle: chainName,
|
|
701
701
|
meta: eligible ? void 0 : humanizeStatus(row.status),
|
|
@@ -706,7 +706,7 @@ function SelectStep({
|
|
|
706
706
|
);
|
|
707
707
|
}) })
|
|
708
708
|
] }),
|
|
709
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
709
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.PoweredBy, {})
|
|
710
710
|
] });
|
|
711
711
|
}
|
|
712
712
|
function ReviewStep({
|
|
@@ -716,15 +716,15 @@ function ReviewStep({
|
|
|
716
716
|
onSubmit
|
|
717
717
|
}) {
|
|
718
718
|
const { chainId, symbol, amount, chainName, chainIcon } = describeDeposit(deposit);
|
|
719
|
-
const explorerTxUrl =
|
|
719
|
+
const explorerTxUrl = _chunkLBJFACLHcjs.useExplorerTxUrl.call(void 0, );
|
|
720
720
|
const [destination, setDestination] = _react.useState.call(void 0, _nullishCoalesce(defaultRefundDestination, () => ( "")));
|
|
721
721
|
const destinationValid = _viem.isAddress.call(void 0, destination);
|
|
722
722
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
723
723
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
724
724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
725
|
-
|
|
725
|
+
_chunkLBJFACLHcjs.BodyHeader,
|
|
726
726
|
{
|
|
727
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
727
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.HandCoinsIcon, {}),
|
|
728
728
|
title: "Review refund",
|
|
729
729
|
subtitle: "This returns the funds on the source chain. It does not retry the original bridge."
|
|
730
730
|
}
|
|
@@ -738,14 +738,14 @@ function ReviewStep({
|
|
|
738
738
|
" ",
|
|
739
739
|
symbol
|
|
740
740
|
] }),
|
|
741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.TokenIcon, { symbol }) })
|
|
742
742
|
] })
|
|
743
743
|
] }),
|
|
744
744
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
745
745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
746
746
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
747
747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
|
|
748
|
-
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
748
|
+
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.CdnIcon, { src: chainIcon }) })
|
|
749
749
|
] })
|
|
750
750
|
] }),
|
|
751
751
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -762,7 +762,7 @@ function ReviewStep({
|
|
|
762
762
|
rel: "noreferrer",
|
|
763
763
|
children: [
|
|
764
764
|
short,
|
|
765
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.ExternalLinkIcon, {})
|
|
766
766
|
]
|
|
767
767
|
}
|
|
768
768
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
|
|
@@ -780,7 +780,7 @@ function ReviewStep({
|
|
|
780
780
|
}
|
|
781
781
|
),
|
|
782
782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
783
|
-
|
|
783
|
+
_chunkLBJFACLHcjs.Button,
|
|
784
784
|
{
|
|
785
785
|
onClick: () => destinationValid && onSubmit(destination),
|
|
786
786
|
loading: submitting,
|
|
@@ -791,7 +791,7 @@ function ReviewStep({
|
|
|
791
791
|
}
|
|
792
792
|
)
|
|
793
793
|
] }),
|
|
794
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.PoweredBy, {})
|
|
795
795
|
] });
|
|
796
796
|
}
|
|
797
797
|
function ResultStep({
|
|
@@ -802,13 +802,13 @@ function ResultStep({
|
|
|
802
802
|
onRetry
|
|
803
803
|
}) {
|
|
804
804
|
const success = !!result;
|
|
805
|
-
const explorerTxUrl =
|
|
805
|
+
const explorerTxUrl = _chunkLBJFACLHcjs.useExplorerTxUrl.call(void 0, );
|
|
806
806
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
807
807
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
808
808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
809
|
-
|
|
809
|
+
_chunkLBJFACLHcjs.BodyHeader,
|
|
810
810
|
{
|
|
811
|
-
icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
811
|
+
icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.AlertTriangleIcon, {}),
|
|
812
812
|
variant: success ? "success" : "error",
|
|
813
813
|
title: success ? "Refund submitted" : "Refund failed",
|
|
814
814
|
subtitle: success ? "Your funds are being returned on the source chain." : void 0
|
|
@@ -823,7 +823,7 @@ function ResultStep({
|
|
|
823
823
|
" ",
|
|
824
824
|
result.symbol
|
|
825
825
|
] }),
|
|
826
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.TokenIcon, { symbol: result.symbol }) })
|
|
827
827
|
] })
|
|
828
828
|
] }),
|
|
829
829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -844,22 +844,22 @@ function ResultStep({
|
|
|
844
844
|
rel: "noreferrer",
|
|
845
845
|
children: [
|
|
846
846
|
short,
|
|
847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.ExternalLinkIcon, {})
|
|
848
848
|
]
|
|
849
849
|
}
|
|
850
850
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
|
|
851
851
|
})()
|
|
852
852
|
] })
|
|
853
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
853
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.Callout, { variant: "error", children: error }),
|
|
854
854
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-button-row", children: success ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
855
|
-
onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
856
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
855
|
+
onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
|
|
856
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
|
|
857
857
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
858
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
859
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
858
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
|
|
859
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
|
|
860
860
|
] }) })
|
|
861
861
|
] }),
|
|
862
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
862
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.PoweredBy, {})
|
|
863
863
|
] });
|
|
864
864
|
}
|
|
865
865
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4R2ZHSDQcjs = require('./chunk-4R2ZHSDQ.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/dapp-imports/polymarket/constants.ts
|
|
6
6
|
var POLYMARKET_POLYGON_CHAIN_ID = 137;
|
|
@@ -9,7 +9,7 @@ var POLYMARKET_USDCE_ADDRESS = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
|
|
|
9
9
|
var POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = "0x2957922Eb93258b93368531d39fAcCA3B4dC5854";
|
|
10
10
|
var SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D";
|
|
11
11
|
var GAMMA_API_PUBLIC_PROFILE = "https://gamma-api.polymarket.com/public-profile";
|
|
12
|
-
var POLYMARKET_ICON_URL =
|
|
12
|
+
var POLYMARKET_ICON_URL = _chunk4R2ZHSDQcjs.cdnIconUrl.call(void 0, "dapps", "polymarket");
|
|
13
13
|
|
|
14
14
|
// src/core/dapp-imports/polymarket/gamma-api.ts
|
|
15
15
|
var _viem = require('viem');
|
|
@@ -705,10 +705,6 @@ function isSupportedTokenAddressForChain(token, chainId) {
|
|
|
705
705
|
function getSupportedTargetTokens(chainId) {
|
|
706
706
|
return toTokenOptions(getSupportedTokenSymbolsForChain(chainId), chainId);
|
|
707
707
|
}
|
|
708
|
-
function getBundledTargetTokens(chainId) {
|
|
709
|
-
const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
|
|
710
|
-
return symbols?.length ? toTokenOptions([...symbols], chainId) : [];
|
|
711
|
-
}
|
|
712
708
|
function toTokenOptions(symbols, chainId) {
|
|
713
709
|
const options = [];
|
|
714
710
|
for (const symbol of symbols) {
|
|
@@ -940,7 +936,6 @@ export {
|
|
|
940
936
|
getSupportedChainIds,
|
|
941
937
|
isSupportedTokenAddressForChain,
|
|
942
938
|
getSupportedTargetTokens,
|
|
943
|
-
getBundledTargetTokens,
|
|
944
939
|
findTokenDecimals,
|
|
945
940
|
getTokenDecimalsByAddress,
|
|
946
941
|
findChainIdForToken,
|
package/dist/claim.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkWZJMJFP7cjs = require('./chunk-WZJMJFP7.cjs');
|
|
4
|
+
require('./chunk-2PQ34KU3.cjs');
|
|
5
|
+
require('./chunk-LBJFACLH.cjs');
|
|
6
|
+
require('./chunk-4SRVZRZF.cjs');
|
|
7
|
+
require('./chunk-4R2ZHSDQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ClaimModal =
|
|
10
|
+
exports.ClaimModal = _chunkWZJMJFP7cjs.ClaimModal;
|
package/dist/claim.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { d as ClaimModalProps } from './types-
|
|
3
|
-
export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-
|
|
2
|
+
import { d as ClaimModalProps } from './types-BO4iP6fG.cjs';
|
|
3
|
+
export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-BO4iP6fG.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './caip-D8aRWdEY.cjs';
|
|
6
6
|
|
package/dist/claim.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { d as ClaimModalProps } from './types-
|
|
3
|
-
export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-
|
|
2
|
+
import { d as ClaimModalProps } from './types-oFblf65g.js';
|
|
3
|
+
export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-oFblf65g.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './caip-D8aRWdEY.js';
|
|
6
6
|
|
package/dist/claim.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-2AMRKYJ4.mjs";
|
|
4
|
+
import "./chunk-RMYUE6HJ.mjs";
|
|
5
|
+
import "./chunk-5IP67CL5.mjs";
|
|
6
|
+
import "./chunk-GZNMBZHY.mjs";
|
|
7
|
+
import "./chunk-YR43AAX5.mjs";
|
|
8
8
|
export {
|
|
9
9
|
ClaimModal
|
|
10
10
|
};
|
package/dist/constants.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4SRVZRZFcjs = require('./chunk-4SRVZRZF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ var _chunk4FTI3GTBcjs = require('./chunk-4FTI3GTB.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk4R2ZHSDQcjs = require('./chunk-4R2ZHSDQ.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -71,4 +71,4 @@ var _chunkTENL4H64cjs = require('./chunk-TENL4H64.cjs');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
exports.CHAIN_BY_ID =
|
|
74
|
+
exports.CHAIN_BY_ID = _chunk4R2ZHSDQcjs.CHAIN_BY_ID; exports.HYPERCORE_CHAIN_ID = _chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunk4R2ZHSDQcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunk4R2ZHSDQcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunk4SRVZRZFcjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunk4R2ZHSDQcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunk4R2ZHSDQcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunk4R2ZHSDQcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk4R2ZHSDQcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunk4R2ZHSDQcjs.chainRegistry; exports.findChainIdForToken = _chunk4R2ZHSDQcjs.findChainIdForToken; exports.getChainBadge = _chunk4R2ZHSDQcjs.getChainBadge; exports.getChainIcon = _chunk4R2ZHSDQcjs.getChainIcon; exports.getChainId = _chunk4R2ZHSDQcjs.getChainId; exports.getChainName = _chunk4R2ZHSDQcjs.getChainName; exports.getChainObject = _chunk4R2ZHSDQcjs.getChainObject; exports.getExplorerName = _chunk4R2ZHSDQcjs.getExplorerName; exports.getExplorerTxUrl = _chunk4R2ZHSDQcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk4R2ZHSDQcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunk4R2ZHSDQcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunk4R2ZHSDQcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunk4R2ZHSDQcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk4R2ZHSDQcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk4R2ZHSDQcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk4R2ZHSDQcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk4R2ZHSDQcjs.getTokenAddress; exports.getTokenDecimals = _chunk4R2ZHSDQcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk4R2ZHSDQcjs.getTokenIcon; exports.getTokenSymbol = _chunk4R2ZHSDQcjs.getTokenSymbol; exports.getUsdcAddress = _chunk4R2ZHSDQcjs.getUsdcAddress; exports.getUsdcDecimals = _chunk4R2ZHSDQcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk4R2ZHSDQcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunk4R2ZHSDQcjs.tokenIconUrl;
|
package/dist/constants.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC
|
|
|
3
3
|
import 'viem/chains';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
|
-
declare const MODAL_VERSION = "0.
|
|
6
|
+
declare const MODAL_VERSION = "0.12.0";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
|
package/dist/constants.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC
|
|
|
3
3
|
import 'viem/chains';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
|
-
declare const MODAL_VERSION = "0.
|
|
6
|
+
declare const MODAL_VERSION = "0.12.0";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
|
package/dist/constants.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MODAL_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GZNMBZHY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
CHAIN_BY_ID,
|
|
6
6
|
HYPERCORE_CHAIN_ID,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getUsdcDecimals,
|
|
36
36
|
isSupportedTokenAddressForChain,
|
|
37
37
|
tokenIconUrl
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YR43AAX5.mjs";
|
|
39
39
|
export {
|
|
40
40
|
CHAIN_BY_ID,
|
|
41
41
|
HYPERCORE_CHAIN_ID,
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
3
|
+
var _chunkLTPVHQXJcjs = require('./chunk-LTPVHQXJ.cjs');
|
|
4
|
+
require('./chunk-6ZJTZ7DS.cjs');
|
|
5
|
+
require('./chunk-2PQ34KU3.cjs');
|
|
6
|
+
require('./chunk-LBJFACLH.cjs');
|
|
7
|
+
require('./chunk-4SRVZRZF.cjs');
|
|
8
|
+
require('./chunk-XJB3VG4C.cjs');
|
|
9
|
+
require('./chunk-4R2ZHSDQ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DepositModal =
|
|
12
|
+
exports.DepositModal = _chunkLTPVHQXJcjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { i as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-
|
|
2
|
+
import { i as DepositModalProps } from './types-BO4iP6fG.cjs';
|
|
3
|
+
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-BO4iP6fG.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './caip-D8aRWdEY.cjs';
|
|
6
6
|
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { i as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-
|
|
2
|
+
import { i as DepositModalProps } from './types-oFblf65g.js';
|
|
3
|
+
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-oFblf65g.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './caip-D8aRWdEY.js';
|
|
6
6
|
|