@rhinestone/deposit-modal 0.12.0 → 0.12.2
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-MVVRUXO4.mjs → DepositModalReown-TEC3MEZ4.mjs} +7 -7
- package/dist/{DepositModalReown-PZXHTPIS.cjs → DepositModalReown-VG66OTIU.cjs} +17 -17
- package/dist/{chunk-2AMRKYJ4.mjs → chunk-2TPSF77V.mjs} +4 -4
- package/dist/{chunk-YR43AAX5.mjs → chunk-3STTWRAN.mjs} +0 -5
- package/dist/{chunk-53IGTENZ.mjs → chunk-4ZXQPFNU.mjs} +1 -1
- package/dist/{chunk-XJB3VG4C.cjs → chunk-75DVGSAX.cjs} +2 -2
- package/dist/{chunk-LBJFACLH.cjs → chunk-BRYNGLDM.cjs} +77 -72
- package/dist/{chunk-EUIPQ3T4.mjs → chunk-FLVLYO64.mjs} +3 -3
- package/dist/{chunk-5IP67CL5.mjs → chunk-FXXUIK4E.mjs} +15 -10
- package/dist/{chunk-2PQ34KU3.cjs → chunk-HL5NUKZW.cjs} +3 -3
- package/dist/{chunk-GZNMBZHY.mjs → chunk-IAGFDSNC.mjs} +1 -1
- package/dist/{chunk-QF5T6HXC.mjs → chunk-J46WDSRD.mjs} +3 -4
- package/dist/{chunk-RMYUE6HJ.mjs → chunk-JE4R5VA3.mjs} +1 -1
- package/dist/{chunk-4SRVZRZF.cjs → chunk-L32UI7LA.cjs} +1 -1
- package/dist/{chunk-4R2ZHSDQ.cjs → chunk-O7BCVQ6L.cjs} +1 -6
- package/dist/{chunk-LTPVHQXJ.cjs → chunk-OIN4CXCP.cjs} +378 -378
- package/dist/{chunk-6ZJTZ7DS.cjs → chunk-PWLEBV5V.cjs} +78 -79
- package/dist/{chunk-Q5MFRAWD.mjs → chunk-SDSKIJC7.mjs} +6 -6
- package/dist/{chunk-WZJMJFP7.cjs → chunk-TM7VGHAG.cjs} +62 -62
- package/dist/{chunk-BK54FZAE.cjs → chunk-UQIJU6HV.cjs} +79 -79
- package/dist/claim.cjs +6 -6
- 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.mjs +7 -7
- package/dist/index.cjs +10 -10
- package/dist/index.mjs +9 -9
- package/dist/polymarket.cjs +5 -5
- package/dist/polymarket.mjs +2 -2
- package/dist/styles.css +9 -0
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.mjs +5 -5
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkBRYNGLDMcjs = require('./chunk-BRYNGLDM.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -33,8 +33,7 @@ var _chunkLBJFACLHcjs = require('./chunk-LBJFACLH.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
var _chunk4R2ZHSDQcjs = require('./chunk-4R2ZHSDQ.cjs');
|
|
36
|
+
var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
|
|
38
37
|
|
|
39
38
|
// src/core/removed-props.ts
|
|
40
39
|
var MANAGED_ACCOUNT_REMOVALS = {
|
|
@@ -100,10 +99,10 @@ function warnRemovedProps(component, props) {
|
|
|
100
99
|
// src/core/useTokenPrices.ts
|
|
101
100
|
var _react = require('react');
|
|
102
101
|
function isErc20(token) {
|
|
103
|
-
return typeof token.chainId === "number" && !!token.address && token.address.toLowerCase() !==
|
|
102
|
+
return typeof token.chainId === "number" && !!token.address && token.address.toLowerCase() !== _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
|
|
104
103
|
}
|
|
105
104
|
function caip2For(token) {
|
|
106
|
-
return `${
|
|
105
|
+
return `${_chunkO7BCVQ6Lcjs.toEvmCaip2.call(void 0, token.chainId)}:${token.address.toLowerCase()}`;
|
|
107
106
|
}
|
|
108
107
|
async function fetchTokenPriceUsd(service, token) {
|
|
109
108
|
if (isErc20(token)) {
|
|
@@ -276,7 +275,7 @@ function FeesAccordion({ total, rows, tooltip }) {
|
|
|
276
275
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fees-accordion-summary", children: [
|
|
277
276
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-fees-accordion-label", children: [
|
|
278
277
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
|
|
279
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fees info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
278
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fees info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.InfoIcon, {}) }) })
|
|
280
279
|
] }),
|
|
281
280
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
282
281
|
"button",
|
|
@@ -294,7 +293,7 @@ function FeesAccordion({ total, rows, tooltip }) {
|
|
|
294
293
|
{
|
|
295
294
|
className: `rs-fees-accordion-chevron${open ? " rs-fees-accordion-chevron--open" : ""}`,
|
|
296
295
|
"aria-hidden": "true",
|
|
297
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
296
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.ChevronDownIcon, {})
|
|
298
297
|
}
|
|
299
298
|
)
|
|
300
299
|
]
|
|
@@ -316,7 +315,7 @@ function FeesAccordion({ total, rows, tooltip }) {
|
|
|
316
315
|
{
|
|
317
316
|
className: "rs-review-detail-info",
|
|
318
317
|
"aria-label": `${row.label} info`,
|
|
319
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.InfoIcon, {})
|
|
320
319
|
}
|
|
321
320
|
) })
|
|
322
321
|
] })
|
|
@@ -342,13 +341,13 @@ function SwappedReceipt({
|
|
|
342
341
|
}) {
|
|
343
342
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
344
343
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
344
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CheckIcon, {}), title: "Deposit successful" }),
|
|
346
345
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
|
|
347
346
|
onrampMethod && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
348
347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Onramp method" }),
|
|
349
348
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
350
349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: onrampMethod }),
|
|
351
|
-
onrampMethodIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon rs-review-detail-icon--square", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
350
|
+
onrampMethodIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon rs-review-detail-icon--square", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CdnIcon, { src: onrampMethodIcon }) })
|
|
352
351
|
] })
|
|
353
352
|
] }),
|
|
354
353
|
amountPaid && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -359,7 +358,7 @@ function SwappedReceipt({
|
|
|
359
358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Deposited amount" }),
|
|
360
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
361
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: depositedAmount }),
|
|
362
|
-
depositedSymbol && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
+
depositedSymbol && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.TokenIcon, { symbol: depositedSymbol }) })
|
|
363
362
|
] })
|
|
364
363
|
] }),
|
|
365
364
|
feesTotal != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -372,11 +371,11 @@ function SwappedReceipt({
|
|
|
372
371
|
)
|
|
373
372
|
] }),
|
|
374
373
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
|
|
375
|
-
onNewDeposit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
376
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
374
|
+
onNewDeposit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: newLabel }),
|
|
375
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
|
|
377
376
|
] })
|
|
378
377
|
] }),
|
|
379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.PoweredBy, {})
|
|
380
379
|
] });
|
|
381
380
|
}
|
|
382
381
|
SwappedReceipt.displayName = "SwappedReceipt";
|
|
@@ -395,7 +394,7 @@ var EXCHANGE_SLUGS = [
|
|
|
395
394
|
"kucoin"
|
|
396
395
|
];
|
|
397
396
|
var EXCHANGE_LOGO_SOURCES = Object.fromEntries(
|
|
398
|
-
EXCHANGE_SLUGS.map((slug) => [slug,
|
|
397
|
+
EXCHANGE_SLUGS.map((slug) => [slug, _chunkO7BCVQ6Lcjs.cdnIconUrl.call(void 0, "exchanges", slug)])
|
|
399
398
|
);
|
|
400
399
|
var EXCHANGE_LOGO_ALIASES = {
|
|
401
400
|
gate: "gateio"
|
|
@@ -412,7 +411,7 @@ function getExchangeLogoSrc(name, connection) {
|
|
|
412
411
|
}
|
|
413
412
|
function getExchangeLogo(name, connection) {
|
|
414
413
|
const src = getExchangeLogoSrc(name, connection);
|
|
415
|
-
return src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
414
|
+
return src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CdnIcon, { src }) : null;
|
|
416
415
|
}
|
|
417
416
|
|
|
418
417
|
// src/core/webhook.ts
|
|
@@ -657,14 +656,14 @@ function buildQuoteFeeRows(breakdown, sponsoredTooltip) {
|
|
|
657
656
|
if (!breakdown) return { rows: [], chargeableUsd: 0 };
|
|
658
657
|
const rows = [];
|
|
659
658
|
let chargeableUsd = 0;
|
|
660
|
-
for (const group of
|
|
659
|
+
for (const group of _chunkBRYNGLDMcjs.quoteFeeGroups.call(void 0, breakdown)) {
|
|
661
660
|
if (group.chargedUsd > 0) {
|
|
662
661
|
chargeableUsd += group.chargedUsd;
|
|
663
|
-
rows.push({ label: group.label, value:
|
|
662
|
+
rows.push({ label: group.label, value: _chunkBRYNGLDMcjs.formatFeeUsd.call(void 0, group.chargedUsd) });
|
|
664
663
|
} else if (group.sponsoredUsd > 0) {
|
|
665
664
|
rows.push({
|
|
666
665
|
label: group.label,
|
|
667
|
-
value:
|
|
666
|
+
value: _chunkBRYNGLDMcjs.formatFeeUsd.call(void 0, group.sponsoredUsd),
|
|
668
667
|
strike: true,
|
|
669
668
|
tooltip: sponsoredTooltip
|
|
670
669
|
});
|
|
@@ -873,7 +872,7 @@ function ProcessingStep({
|
|
|
873
872
|
const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
|
|
874
873
|
const pollTimeoutRef = _react.useRef.call(void 0, null);
|
|
875
874
|
const escalatedDelayRef = _react.useRef.call(void 0, false);
|
|
876
|
-
const processingContextRef =
|
|
875
|
+
const processingContextRef = _chunkBRYNGLDMcjs.useLatestRef.call(void 0, {
|
|
877
876
|
amount,
|
|
878
877
|
sourceChain,
|
|
879
878
|
sourceToken,
|
|
@@ -882,10 +881,10 @@ function ProcessingStep({
|
|
|
882
881
|
targetChain,
|
|
883
882
|
targetToken
|
|
884
883
|
});
|
|
885
|
-
const onDepositCompleteRef =
|
|
886
|
-
const onDepositFailedRef =
|
|
887
|
-
const onErrorRef =
|
|
888
|
-
const explorerTxUrl =
|
|
884
|
+
const onDepositCompleteRef = _chunkBRYNGLDMcjs.useLatestRef.call(void 0, onDepositComplete);
|
|
885
|
+
const onDepositFailedRef = _chunkBRYNGLDMcjs.useLatestRef.call(void 0, onDepositFailed);
|
|
886
|
+
const onErrorRef = _chunkBRYNGLDMcjs.useLatestRef.call(void 0, onError);
|
|
887
|
+
const explorerTxUrl = _chunkBRYNGLDMcjs.useExplorerTxUrl.call(void 0, );
|
|
889
888
|
const initialTerminalEventRef = _react.useRef.call(void 0, null);
|
|
890
889
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
891
890
|
if (directTransfer) return { type: "complete" };
|
|
@@ -929,7 +928,7 @@ function ProcessingStep({
|
|
|
929
928
|
completedAt,
|
|
930
929
|
endedAt: completedAt
|
|
931
930
|
}));
|
|
932
|
-
|
|
931
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "direct-transfer:complete", {
|
|
933
932
|
txHash,
|
|
934
933
|
flowLabel
|
|
935
934
|
});
|
|
@@ -960,7 +959,7 @@ function ProcessingStep({
|
|
|
960
959
|
if (!outcome) return;
|
|
961
960
|
if (outcome.type === "complete") {
|
|
962
961
|
const context = processingContextRef.current;
|
|
963
|
-
|
|
962
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "initial-event:complete", {
|
|
964
963
|
txHash,
|
|
965
964
|
destinationTxHash: outcome.destinationTxHash,
|
|
966
965
|
event: event.type
|
|
@@ -976,7 +975,7 @@ function ProcessingStep({
|
|
|
976
975
|
})]);
|
|
977
976
|
return;
|
|
978
977
|
}
|
|
979
|
-
|
|
978
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "initial-event:failed", {
|
|
980
979
|
txHash,
|
|
981
980
|
message: outcome.message,
|
|
982
981
|
event: event.type
|
|
@@ -1082,7 +1081,7 @@ function ProcessingStep({
|
|
|
1082
1081
|
async function pollStatus() {
|
|
1083
1082
|
try {
|
|
1084
1083
|
const account = sourceChain === "solana" && solanaDepositAddress ? solanaDepositAddress : smartAccount;
|
|
1085
|
-
|
|
1084
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "poll:request", {
|
|
1086
1085
|
account,
|
|
1087
1086
|
txHash,
|
|
1088
1087
|
intervalMs: pollIntervalRef.current
|
|
@@ -1093,7 +1092,7 @@ function ProcessingStep({
|
|
|
1093
1092
|
const eventForCurrentTx = eventMatchesTx ? lastEvent2 : void 0;
|
|
1094
1093
|
if (lastEvent2) {
|
|
1095
1094
|
const eventData = lastEvent2.data;
|
|
1096
|
-
|
|
1095
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "poll:event", {
|
|
1097
1096
|
type: lastEvent2.type,
|
|
1098
1097
|
matchesTx: eventMatchesTx,
|
|
1099
1098
|
intentId: _optionalChain([eventData, 'optionalAccess', _80 => _80.intentId])
|
|
@@ -1103,7 +1102,7 @@ function ProcessingStep({
|
|
|
1103
1102
|
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _81 => _81.type]) === "bridge-complete") {
|
|
1104
1103
|
setState({ type: "complete", lastEvent: eventForCurrentTx });
|
|
1105
1104
|
const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _82 => _82.data, 'optionalAccess', _83 => _83.destination, 'optionalAccess', _84 => _84.transactionHash]);
|
|
1106
|
-
|
|
1105
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "state:complete", {
|
|
1107
1106
|
txHash,
|
|
1108
1107
|
destinationTxHash: destinationTxHash2,
|
|
1109
1108
|
event: eventForCurrentTx.type
|
|
@@ -1127,7 +1126,7 @@ function ProcessingStep({
|
|
|
1127
1126
|
message: formatted.message,
|
|
1128
1127
|
lastEvent: eventForCurrentTx
|
|
1129
1128
|
});
|
|
1130
|
-
|
|
1129
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "state:failed", {
|
|
1131
1130
|
txHash,
|
|
1132
1131
|
message: formatted.message,
|
|
1133
1132
|
code: formatted.code
|
|
@@ -1142,7 +1141,7 @@ function ProcessingStep({
|
|
|
1142
1141
|
message: errorMessage,
|
|
1143
1142
|
lastEvent: eventForCurrentTx
|
|
1144
1143
|
});
|
|
1145
|
-
|
|
1144
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "state:error-event", {
|
|
1146
1145
|
txHash,
|
|
1147
1146
|
message: errorMessage
|
|
1148
1147
|
});
|
|
@@ -1155,7 +1154,7 @@ function ProcessingStep({
|
|
|
1155
1154
|
}));
|
|
1156
1155
|
scheduleNextPoll();
|
|
1157
1156
|
} catch (error) {
|
|
1158
|
-
|
|
1157
|
+
_chunkBRYNGLDMcjs.debugError.call(void 0, debug, "processing", "poll:failure", error, {
|
|
1159
1158
|
smartAccount,
|
|
1160
1159
|
txHash,
|
|
1161
1160
|
intervalMs: pollIntervalRef.current
|
|
@@ -1170,7 +1169,7 @@ function ProcessingStep({
|
|
|
1170
1169
|
pollIntervalRef.current * BACKOFF_MULTIPLIER,
|
|
1171
1170
|
MAX_POLL_INTERVAL
|
|
1172
1171
|
);
|
|
1173
|
-
|
|
1172
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "poll:scheduled", {
|
|
1174
1173
|
nextIntervalMs: pollIntervalRef.current
|
|
1175
1174
|
});
|
|
1176
1175
|
pollStatus();
|
|
@@ -1203,7 +1202,7 @@ function ProcessingStep({
|
|
|
1203
1202
|
escalatedDelayRef.current = true;
|
|
1204
1203
|
setHasEscalatedDelay(true);
|
|
1205
1204
|
const message = "Transfer is taking longer than expected. Your funds are safe and processing will continue automatically.";
|
|
1206
|
-
|
|
1205
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "processing", "state:delay-escalated", {
|
|
1207
1206
|
txHash,
|
|
1208
1207
|
timeoutMs: ESCALATED_DELAY_MS
|
|
1209
1208
|
});
|
|
@@ -1224,11 +1223,11 @@ function ProcessingStep({
|
|
|
1224
1223
|
const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
|
|
1225
1224
|
const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
|
|
1226
1225
|
const displayAmount = _nullishCoalesce(sourceDetails.amount, () => ( amount));
|
|
1227
|
-
const targetChainId =
|
|
1226
|
+
const targetChainId = _chunkO7BCVQ6Lcjs.targetChainToChainId.call(void 0, targetChain);
|
|
1228
1227
|
const sourceExplorerUrl = explorerTxUrl(displaySourceChain, txHash);
|
|
1229
1228
|
const destExplorerUrl = destinationTxHash ? explorerTxUrl(targetChainId, destinationTxHash) : null;
|
|
1230
1229
|
const sourceDisplay = (() => {
|
|
1231
|
-
const resolved =
|
|
1230
|
+
const resolved = _chunkBRYNGLDMcjs.resolveTokenDisplay.call(void 0, displaySourceToken, displaySourceChain, {
|
|
1232
1231
|
symbol: _nullishCoalesce(providedSourceSymbol, () => ( (displaySourceChain === "solana" ? "SOL" : "Token"))),
|
|
1233
1232
|
decimals: providedSourceDecimals
|
|
1234
1233
|
});
|
|
@@ -1238,10 +1237,10 @@ function ProcessingStep({
|
|
|
1238
1237
|
};
|
|
1239
1238
|
})();
|
|
1240
1239
|
const sourceSymbol = sourceDisplay.symbol;
|
|
1241
|
-
const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(
|
|
1242
|
-
|
|
1240
|
+
const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(_chunkBRYNGLDMcjs.formatRawTokenAmount.call(void 0, displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
|
|
1241
|
+
_chunkBRYNGLDMcjs.formatTokenAmount.call(void 0, Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
|
|
1243
1242
|
const eventDestination = getEventDestinationDetails(lastEvent);
|
|
1244
|
-
const targetDisplay =
|
|
1243
|
+
const targetDisplay = _chunkBRYNGLDMcjs.resolveTokenDisplay.call(void 0,
|
|
1245
1244
|
_nullishCoalesce(eventDestination.token, () => ( targetToken)),
|
|
1246
1245
|
_nullishCoalesce(eventDestination.chainId, () => ( targetChainId)),
|
|
1247
1246
|
// Dapp deposits default to USDC targets; mirror the source symbol last so
|
|
@@ -1249,7 +1248,7 @@ function ProcessingStep({
|
|
|
1249
1248
|
{ symbol: _nullishCoalesce(providedSourceSymbol, () => ( "USDC")) }
|
|
1250
1249
|
);
|
|
1251
1250
|
const targetSymbol = targetDisplay.symbol;
|
|
1252
|
-
const formattedDestinationAmount = eventDestination.amount !== void 0 ?
|
|
1251
|
+
const formattedDestinationAmount = eventDestination.amount !== void 0 ? _chunkBRYNGLDMcjs.formatRawTokenAmount.call(void 0, eventDestination.amount, targetDisplay) : void 0;
|
|
1253
1252
|
const amountUsdNumber = amountUsd !== void 0 && Number(amountUsd) > 0 ? Number(amountUsd) : void 0;
|
|
1254
1253
|
const prices = useTokenPrices(service, [
|
|
1255
1254
|
{
|
|
@@ -1264,17 +1263,17 @@ function ProcessingStep({
|
|
|
1264
1263
|
}
|
|
1265
1264
|
]);
|
|
1266
1265
|
const estimatedReceiveAmount = (() => {
|
|
1267
|
-
const estimate =
|
|
1268
|
-
sourceAmount:
|
|
1266
|
+
const estimate = _chunkBRYNGLDMcjs.estimateReceiveAmount.call(void 0, {
|
|
1267
|
+
sourceAmount: _chunkBRYNGLDMcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals),
|
|
1269
1268
|
sourceSymbol: sourceDisplay.symbol,
|
|
1270
1269
|
targetSymbol: targetDisplay.symbol,
|
|
1271
1270
|
sourceAmountUsd: amountUsdNumber,
|
|
1272
|
-
sourceTrusted:
|
|
1271
|
+
sourceTrusted: _chunkBRYNGLDMcjs.isRecognizedToken.call(void 0, displaySourceToken, displaySourceChain),
|
|
1273
1272
|
prices
|
|
1274
1273
|
});
|
|
1275
|
-
return estimate !== void 0 ?
|
|
1274
|
+
return estimate !== void 0 ? _chunkBRYNGLDMcjs.formatTokenAmount.call(void 0, estimate, targetDisplay.symbol) : void 0;
|
|
1276
1275
|
})();
|
|
1277
|
-
const quotedReceive = quote ?
|
|
1276
|
+
const quotedReceive = quote ? _chunkBRYNGLDMcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol) : void 0;
|
|
1278
1277
|
const receiveDisplay = formattedDestinationAmount ? (
|
|
1279
1278
|
// The delivered amount, once the bridge reports it — actual, not an
|
|
1280
1279
|
// estimate, so it wins over the quote and carries no "~".
|
|
@@ -1288,12 +1287,12 @@ function ProcessingStep({
|
|
|
1288
1287
|
if (sourceSymbol.toUpperCase() !== targetSymbol.toUpperCase()) {
|
|
1289
1288
|
return void 0;
|
|
1290
1289
|
}
|
|
1291
|
-
const sentValue =
|
|
1292
|
-
const receivedValue = eventDestination.amount !== void 0 ?
|
|
1290
|
+
const sentValue = _chunkBRYNGLDMcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals);
|
|
1291
|
+
const receivedValue = eventDestination.amount !== void 0 ? _chunkBRYNGLDMcjs.tokenAmountToNumber.call(void 0, eventDestination.amount, targetDisplay.decimals) : void 0;
|
|
1293
1292
|
if (sentValue === void 0 || receivedValue === void 0 || sentValue <= receivedValue) {
|
|
1294
1293
|
return void 0;
|
|
1295
1294
|
}
|
|
1296
|
-
const formatted =
|
|
1295
|
+
const formatted = _chunkBRYNGLDMcjs.formatTokenAmount.call(void 0, sentValue - receivedValue, sourceSymbol);
|
|
1297
1296
|
if (formatted === void 0 || Number(formatted.replace(/,/g, "")) === 0) {
|
|
1298
1297
|
return void 0;
|
|
1299
1298
|
}
|
|
@@ -1305,10 +1304,10 @@ function ProcessingStep({
|
|
|
1305
1304
|
const delayPhaseId = isProcessing && currentPhaseId && activePhaseElapsedMs >= SOFT_DELAY_MS[currentPhaseId] ? currentPhaseId : void 0;
|
|
1306
1305
|
void delayPhaseId;
|
|
1307
1306
|
void hasEscalatedDelay;
|
|
1308
|
-
const sourceChainIcon =
|
|
1309
|
-
const targetChainIcon =
|
|
1310
|
-
const sourceChainName =
|
|
1311
|
-
const targetChainName =
|
|
1307
|
+
const sourceChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, displaySourceChain);
|
|
1308
|
+
const targetChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, targetChainId);
|
|
1309
|
+
const sourceChainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, displaySourceChain);
|
|
1310
|
+
const targetChainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, targetChainId);
|
|
1312
1311
|
const timerText = formatTimer(elapsedSeconds);
|
|
1313
1312
|
const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _100 => _100.feeSponsored]), () => ( false));
|
|
1314
1313
|
const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _101 => _101.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
|
|
@@ -1320,7 +1319,7 @@ function ProcessingStep({
|
|
|
1320
1319
|
] }) : isFailed ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-body-header", children: [
|
|
1321
1320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, FailedBadge, {}),
|
|
1322
1321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-body-header-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-body-header-title", children: stateTitle }) })
|
|
1323
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1322
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.WalletIcon, {}), title: stateTitle });
|
|
1324
1323
|
if (isComplete && isSwappedOrder) {
|
|
1325
1324
|
const effectivePaymentMethod = _nullishCoalesce(_nullishCoalesce(_optionalChain([swappedContext, 'optionalAccess', _102 => _102.method]), () => ( _optionalChain([swappedFiatContext, 'optionalAccess', _103 => _103.paymentMethod]))), () => ( null));
|
|
1326
1325
|
const onrampMethod = effectivePaymentMethod ? formatPaymentMethod(effectivePaymentMethod) : null;
|
|
@@ -1342,7 +1341,7 @@ function ProcessingStep({
|
|
|
1342
1341
|
if (onrampFeeUsd != null) {
|
|
1343
1342
|
feeRows.push({
|
|
1344
1343
|
label: "On-ramp fee",
|
|
1345
|
-
value:
|
|
1344
|
+
value: _chunkBRYNGLDMcjs.formatFeeUsd.call(void 0, onrampFeeUsd)
|
|
1346
1345
|
});
|
|
1347
1346
|
}
|
|
1348
1347
|
const hasFallbackFee = quoteFeeRows.length === 0 && quotedFeeAmount !== void 0 && Number.isFinite(Number(quotedFeeAmount));
|
|
@@ -1351,13 +1350,13 @@ function ProcessingStep({
|
|
|
1351
1350
|
} else if (hasFallbackFee) {
|
|
1352
1351
|
feeRows.push({
|
|
1353
1352
|
label: "Network fee",
|
|
1354
|
-
value:
|
|
1353
|
+
value: _chunkBRYNGLDMcjs.formatFeeUsd.call(void 0, Number(quotedFeeAmount)),
|
|
1355
1354
|
strike: feeSponsored,
|
|
1356
1355
|
tooltip: feeSponsored ? sponsoredFeeTooltip : void 0
|
|
1357
1356
|
});
|
|
1358
1357
|
}
|
|
1359
1358
|
const fallbackChargeableUsd = hasFallbackFee && !feeSponsored ? Number(quotedFeeAmount) : 0;
|
|
1360
|
-
const feesTotal = feeRows.length > 0 ?
|
|
1359
|
+
const feesTotal = feeRows.length > 0 ? _chunkBRYNGLDMcjs.formatFeeUsd.call(void 0,
|
|
1361
1360
|
(_nullishCoalesce(onrampFeeUsd, () => ( 0))) + chargeableUsd + fallbackChargeableUsd
|
|
1362
1361
|
) : null;
|
|
1363
1362
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1385,7 +1384,7 @@ function ProcessingStep({
|
|
|
1385
1384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
1386
1385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1387
1386
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
1388
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1387
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CdnIcon, { src: sourceChainIcon }) }),
|
|
1389
1388
|
sourceExplorerUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1390
1389
|
"a",
|
|
1391
1390
|
{
|
|
@@ -1394,7 +1393,7 @@ function ProcessingStep({
|
|
|
1394
1393
|
rel: "noopener noreferrer",
|
|
1395
1394
|
className: "rs-review-detail-link",
|
|
1396
1395
|
"aria-label": "View source transaction",
|
|
1397
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1396
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.ExternalLinkIcon, {})
|
|
1398
1397
|
}
|
|
1399
1398
|
)
|
|
1400
1399
|
] })
|
|
@@ -1403,7 +1402,7 @@ function ProcessingStep({
|
|
|
1403
1402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
1404
1403
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1405
1404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
1406
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1405
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CdnIcon, { src: targetChainIcon }) }),
|
|
1407
1406
|
destExplorerUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1408
1407
|
"a",
|
|
1409
1408
|
{
|
|
@@ -1412,7 +1411,7 @@ function ProcessingStep({
|
|
|
1412
1411
|
rel: "noopener noreferrer",
|
|
1413
1412
|
className: "rs-review-detail-link",
|
|
1414
1413
|
"aria-label": "View destination transaction",
|
|
1415
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1414
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.ExternalLinkIcon, {})
|
|
1416
1415
|
}
|
|
1417
1416
|
)
|
|
1418
1417
|
] })
|
|
@@ -1449,7 +1448,7 @@ function ProcessingStep({
|
|
|
1449
1448
|
" ",
|
|
1450
1449
|
sourceSymbol
|
|
1451
1450
|
] }),
|
|
1452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.TokenIcon, { symbol: sourceSymbol }) })
|
|
1453
1452
|
] })
|
|
1454
1453
|
] })
|
|
1455
1454
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -1460,14 +1459,14 @@ function ProcessingStep({
|
|
|
1460
1459
|
" ",
|
|
1461
1460
|
sourceSymbol
|
|
1462
1461
|
] }),
|
|
1463
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.TokenIcon, { symbol: sourceSymbol }) })
|
|
1464
1463
|
] })
|
|
1465
1464
|
] }),
|
|
1466
1465
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1467
1466
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: isProcessing ? "Receive" : "Received" }),
|
|
1468
1467
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
1469
1468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
|
|
1470
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1469
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.TokenIcon, { symbol: targetSymbol }) })
|
|
1471
1470
|
] })
|
|
1472
1471
|
] }),
|
|
1473
1472
|
isFailed && balanceAfterUsd !== void 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -1496,12 +1495,12 @@ function ProcessingStep({
|
|
|
1496
1495
|
{
|
|
1497
1496
|
className: "rs-review-detail-info",
|
|
1498
1497
|
"aria-label": "Fee info",
|
|
1499
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1498
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.InfoIcon, {})
|
|
1500
1499
|
}
|
|
1501
1500
|
) })
|
|
1502
1501
|
] })
|
|
1503
1502
|
] }) : (() => {
|
|
1504
|
-
const { display, struck } =
|
|
1503
|
+
const { display, struck } = _chunkBRYNGLDMcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'optionalAccess', _112 => _112.fees]));
|
|
1505
1504
|
if (display !== null) {
|
|
1506
1505
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
1507
1506
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
|
|
@@ -1532,9 +1531,9 @@ function ProcessingStep({
|
|
|
1532
1531
|
] });
|
|
1533
1532
|
})()
|
|
1534
1533
|
] }),
|
|
1535
|
-
isFailed && failureMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1534
|
+
isFailed && failureMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.Callout, { variant: "error", children: failureMessage }),
|
|
1536
1535
|
isProcessing && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1537
|
-
|
|
1536
|
+
_chunkBRYNGLDMcjs.Button,
|
|
1538
1537
|
{
|
|
1539
1538
|
fullWidth: true,
|
|
1540
1539
|
disabled: true,
|
|
@@ -1544,18 +1543,18 @@ function ProcessingStep({
|
|
|
1544
1543
|
}
|
|
1545
1544
|
),
|
|
1546
1545
|
isComplete && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
|
|
1547
|
-
onNewDeposit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1546
|
+
onNewDeposit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBRYNGLDMcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
|
|
1548
1547
|
"New ",
|
|
1549
1548
|
flowNoun
|
|
1550
1549
|
] }),
|
|
1551
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1550
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
|
|
1552
1551
|
] }),
|
|
1553
1552
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
|
|
1554
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1555
|
-
handleRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1553
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
|
|
1554
|
+
handleRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
|
|
1556
1555
|
] })
|
|
1557
1556
|
] }),
|
|
1558
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1557
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.PoweredBy, {})
|
|
1559
1558
|
] });
|
|
1560
1559
|
}
|
|
1561
1560
|
|
|
@@ -1586,13 +1585,13 @@ function normalizeKeyToken(value) {
|
|
|
1586
1585
|
}
|
|
1587
1586
|
var SOLANA_ADDRESS_PATTERN = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
|
|
1588
1587
|
function recipientMatchesTarget(recipient, targetChain) {
|
|
1589
|
-
return
|
|
1588
|
+
return _chunkO7BCVQ6Lcjs.targetChainToCaip2.call(void 0, targetChain).startsWith("solana:") ? SOLANA_ADDRESS_PATTERN.test(recipient) : _viem.isAddress.call(void 0, recipient);
|
|
1590
1589
|
}
|
|
1591
1590
|
function deriveAccountSalt(input) {
|
|
1592
1591
|
return _viem.keccak256.call(void 0,
|
|
1593
1592
|
_viem.concat.call(void 0, [
|
|
1594
1593
|
_viem.keccak256.call(void 0, _viem.toHex.call(void 0, _nullishCoalesce(normalizeKeyToken(input.recipient), () => ( "")))),
|
|
1595
|
-
_viem.keccak256.call(void 0, _viem.toHex.call(void 0,
|
|
1594
|
+
_viem.keccak256.call(void 0, _viem.toHex.call(void 0, _chunkO7BCVQ6Lcjs.targetChainToCaip2.call(void 0, input.targetChain))),
|
|
1596
1595
|
_viem.keccak256.call(void 0, _viem.toHex.call(void 0, _nullishCoalesce(normalizeKeyToken(input.targetToken), () => ( ""))))
|
|
1597
1596
|
])
|
|
1598
1597
|
);
|
|
@@ -1646,7 +1645,7 @@ async function runAccountSetup(input, deps) {
|
|
|
1646
1645
|
}
|
|
1647
1646
|
try {
|
|
1648
1647
|
const salt = deriveAccountSalt(input);
|
|
1649
|
-
|
|
1648
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
|
|
1650
1649
|
salt,
|
|
1651
1650
|
recipient: input.recipient,
|
|
1652
1651
|
targetChain: input.targetChain,
|
|
@@ -1655,7 +1654,7 @@ async function runAccountSetup(input, deps) {
|
|
|
1655
1654
|
const result = await service.registerManagedAccount({
|
|
1656
1655
|
salt,
|
|
1657
1656
|
target: {
|
|
1658
|
-
chain:
|
|
1657
|
+
chain: _chunkO7BCVQ6Lcjs.targetChainToCaip2.call(void 0, input.targetChain),
|
|
1659
1658
|
token: input.targetToken,
|
|
1660
1659
|
recipient: input.recipient,
|
|
1661
1660
|
..._optionalChain([input, 'access', _114 => _114.outputTokenRules, 'optionalAccess', _115 => _115.length]) && {
|
|
@@ -1672,7 +1671,7 @@ async function runAccountSetup(input, deps) {
|
|
|
1672
1671
|
cacheKey
|
|
1673
1672
|
};
|
|
1674
1673
|
} catch (error) {
|
|
1675
|
-
|
|
1674
|
+
_chunkBRYNGLDMcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
|
|
1676
1675
|
recipient: input.recipient
|
|
1677
1676
|
});
|
|
1678
1677
|
if (error instanceof SetupError) throw error;
|
|
@@ -1683,7 +1682,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
|
|
|
1683
1682
|
const now = Date.now();
|
|
1684
1683
|
const existing = setupRequestDedupe.get(requestKey);
|
|
1685
1684
|
if (existing && (!existing.settled || existing.expiresAt > now)) {
|
|
1686
|
-
|
|
1685
|
+
_chunkBRYNGLDMcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
|
|
1687
1686
|
recipient: input.recipient,
|
|
1688
1687
|
forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
|
|
1689
1688
|
});
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
runAccountSetupDeduped,
|
|
18
18
|
txRefsMatch,
|
|
19
19
|
warnRemovedProps
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-J46WDSRD.mjs";
|
|
21
21
|
import {
|
|
22
22
|
ListRow
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JE4R5VA3.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AlertTriangleIcon,
|
|
26
26
|
AppleIcon,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
useLatestRef,
|
|
87
87
|
useRpcUrls,
|
|
88
88
|
useStableRpcUrls
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-FXXUIK4E.mjs";
|
|
90
90
|
import {
|
|
91
91
|
POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
|
|
92
92
|
POLYMARKET_ICON_URL,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
executePolymarketSafeTransfer,
|
|
98
98
|
fetchPolymarketProxyWallet,
|
|
99
99
|
readPolymarketBalances
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-4ZXQPFNU.mjs";
|
|
101
101
|
import {
|
|
102
102
|
CHAIN_BY_ID,
|
|
103
103
|
HYPERCORE_CHAIN_ID,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
publishShortlistTokens,
|
|
130
130
|
targetChainToCaip2,
|
|
131
131
|
targetChainToChainId
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-3STTWRAN.mjs";
|
|
133
133
|
|
|
134
134
|
// src/DepositModal.tsx
|
|
135
135
|
import {
|
|
@@ -8756,7 +8756,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
8756
8756
|
// src/DepositModal.tsx
|
|
8757
8757
|
import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8758
8758
|
var ReownDepositInner = lazy2(
|
|
8759
|
-
() => import("./DepositModalReown-
|
|
8759
|
+
() => import("./DepositModalReown-TEC3MEZ4.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
8760
8760
|
);
|
|
8761
8761
|
function sortByCreatedAtDesc(items) {
|
|
8762
8762
|
return [...items].sort((a, b) => {
|