@rhinestone/deposit-modal 0.11.1 → 0.12.1
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-YGB73NMW.cjs → DepositModalReown-CH6FUTCR.cjs} +17 -17
- package/dist/{DepositModalReown-MO5QDLIT.mjs → DepositModalReown-SXAXHYTN.mjs} +7 -7
- package/dist/{chunk-SSQ27YFB.cjs → chunk-2BOEUV6B.cjs} +543 -540
- package/dist/{chunk-CWGUBFJL.mjs → chunk-2K44IE3V.mjs} +18 -23
- package/dist/{chunk-53IFZGSF.mjs → chunk-3STTWRAN.mjs} +0 -10
- package/dist/{chunk-MZ53PDIX.mjs → chunk-4ZXQPFNU.mjs} +1 -1
- package/dist/{chunk-ZQR36NCV.cjs → chunk-65MLWUQD.cjs} +95 -100
- package/dist/{chunk-JPRV36DT.cjs → chunk-75DVGSAX.cjs} +2 -2
- package/dist/{chunk-4FTI3GTB.cjs → chunk-DMYA7U53.cjs} +1 -1
- package/dist/{chunk-HUHBNYD3.cjs → chunk-FKHPVLJY.cjs} +81 -81
- package/dist/{chunk-YELNYILK.mjs → chunk-KPWB2JAX.mjs} +287 -284
- package/dist/{chunk-V6T7LORJ.mjs → chunk-NHGFU3WC.mjs} +1 -1
- package/dist/{chunk-URFSTNRS.mjs → chunk-O2TQLD4I.mjs} +1 -1
- package/dist/{chunk-OWYPKCYD.mjs → chunk-O4AXBFHU.mjs} +4 -4
- package/dist/{chunk-TENL4H64.cjs → chunk-O7BCVQ6L.cjs} +4 -14
- package/dist/{chunk-5746YXKC.mjs → chunk-PVWZN66D.mjs} +6 -6
- package/dist/{chunk-EIWOVX53.mjs → chunk-TQWEGW3A.mjs} +3 -3
- package/dist/{chunk-FVUXJ3RP.cjs → chunk-TYBMAUGH.cjs} +3 -3
- package/dist/{chunk-ZRIRCIQM.cjs → chunk-UGK4JRK6.cjs} +62 -62
- package/dist/{chunk-LQGYPM5B.cjs → chunk-ZLCY33FQ.cjs} +79 -79
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFKHPVLJYcjs = require('./chunk-FKHPVLJY.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -37,7 +37,7 @@ var _chunkHUHBNYD3cjs = require('./chunk-HUHBNYD3.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk65MLWUQDcjs = require('./chunk-65MLWUQD.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
@@ -46,7 +46,7 @@ var _chunkZQR36NCVcjs = require('./chunk-ZQR36NCV.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
|
|
50
50
|
|
|
51
51
|
// src/WithdrawModal.tsx
|
|
52
52
|
var _react = require('react');
|
|
@@ -233,8 +233,8 @@ function WithdrawFormStep({
|
|
|
233
233
|
const publicClientChainId = _optionalChain([publicClient, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]);
|
|
234
234
|
useClickOutside(chainDropdownRef, () => setShowChainDropdown(false));
|
|
235
235
|
useClickOutside(tokenDropdownRef, () => setShowTokenDropdown(false));
|
|
236
|
-
const targetSymbol =
|
|
237
|
-
const targetChainName =
|
|
236
|
+
const targetSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
237
|
+
const targetChainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, targetChain);
|
|
238
238
|
const isBusy = submitting || isSubmitting;
|
|
239
239
|
const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
|
|
240
240
|
_react.useEffect.call(void 0, () => {
|
|
@@ -258,7 +258,7 @@ function WithdrawFormStep({
|
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
try {
|
|
261
|
-
const bal =
|
|
261
|
+
const bal = _chunk65MLWUQDcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
|
|
262
262
|
address: asset.token,
|
|
263
263
|
abi: _viem.erc20Abi,
|
|
264
264
|
functionName: "balanceOf",
|
|
@@ -363,7 +363,7 @@ function WithdrawFormStep({
|
|
|
363
363
|
await onSubmit(recipient, amount);
|
|
364
364
|
} catch (err) {
|
|
365
365
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
366
|
-
setError(
|
|
366
|
+
setError(_chunk65MLWUQDcjs.formatUserError.call(void 0, raw));
|
|
367
367
|
} finally {
|
|
368
368
|
setIsSubmitting(false);
|
|
369
369
|
}
|
|
@@ -379,16 +379,16 @@ function WithdrawFormStep({
|
|
|
379
379
|
if (isBalanceLoading) {
|
|
380
380
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
381
381
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
|
|
382
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.Spinner, { className: "rs-spinner--lg" }),
|
|
383
383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
384
384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
|
|
385
385
|
] }),
|
|
386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.PoweredBy, {})
|
|
387
387
|
] });
|
|
388
388
|
}
|
|
389
389
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
390
390
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
|
|
392
392
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
|
|
393
393
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
394
|
"label",
|
|
@@ -448,7 +448,7 @@ function WithdrawFormStep({
|
|
|
448
448
|
) })
|
|
449
449
|
] }),
|
|
450
450
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${
|
|
451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunk65MLWUQDcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
|
|
452
452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
453
453
|
"Balance: ",
|
|
454
454
|
formattedBalance,
|
|
@@ -479,9 +479,9 @@ function WithdrawFormStep({
|
|
|
479
479
|
children: [
|
|
480
480
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
481
481
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
|
-
|
|
482
|
+
_chunk65MLWUQDcjs.CdnIcon,
|
|
483
483
|
{
|
|
484
|
-
src:
|
|
484
|
+
src: _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, targetChain),
|
|
485
485
|
alt: targetChainName,
|
|
486
486
|
className: "rs-withdraw-dropdown-icon"
|
|
487
487
|
}
|
|
@@ -489,7 +489,7 @@ function WithdrawFormStep({
|
|
|
489
489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
|
|
490
490
|
] }),
|
|
491
491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
492
|
+
_chunk65MLWUQDcjs.ChevronDownIcon,
|
|
493
493
|
{
|
|
494
494
|
className: "rs-withdraw-dropdown-arrow",
|
|
495
495
|
style: {
|
|
@@ -511,9 +511,9 @@ function WithdrawFormStep({
|
|
|
511
511
|
},
|
|
512
512
|
children: [
|
|
513
513
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
514
|
-
|
|
514
|
+
_chunk65MLWUQDcjs.CdnIcon,
|
|
515
515
|
{
|
|
516
|
-
src:
|
|
516
|
+
src: _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, chain.id),
|
|
517
517
|
alt: chain.name,
|
|
518
518
|
className: "rs-withdraw-dropdown-icon"
|
|
519
519
|
}
|
|
@@ -548,7 +548,7 @@ function WithdrawFormStep({
|
|
|
548
548
|
children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
550
550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
551
|
-
|
|
551
|
+
_chunk65MLWUQDcjs.TokenIcon,
|
|
552
552
|
{
|
|
553
553
|
symbol: targetSymbol,
|
|
554
554
|
className: "rs-withdraw-dropdown-icon"
|
|
@@ -557,7 +557,7 @@ function WithdrawFormStep({
|
|
|
557
557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
|
|
558
558
|
] }),
|
|
559
559
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
560
|
-
|
|
560
|
+
_chunk65MLWUQDcjs.ChevronDownIcon,
|
|
561
561
|
{
|
|
562
562
|
className: "rs-withdraw-dropdown-arrow",
|
|
563
563
|
style: {
|
|
@@ -579,7 +579,7 @@ function WithdrawFormStep({
|
|
|
579
579
|
},
|
|
580
580
|
children: [
|
|
581
581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
-
|
|
582
|
+
_chunk65MLWUQDcjs.TokenIcon,
|
|
583
583
|
{
|
|
584
584
|
symbol: option.symbol,
|
|
585
585
|
className: "rs-withdraw-dropdown-icon"
|
|
@@ -595,10 +595,10 @@ function WithdrawFormStep({
|
|
|
595
595
|
)
|
|
596
596
|
] })
|
|
597
597
|
] }),
|
|
598
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
599
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.Callout, { variant: "error", children: error }),
|
|
599
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.Callout, { variant: "error", children: registrationError }),
|
|
600
600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
-
|
|
601
|
+
_chunk65MLWUQDcjs.Button,
|
|
602
602
|
{
|
|
603
603
|
onClick: handleWithdraw,
|
|
604
604
|
fullWidth: true,
|
|
@@ -613,7 +613,7 @@ function WithdrawFormStep({
|
|
|
613
613
|
}
|
|
614
614
|
)
|
|
615
615
|
] }),
|
|
616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.PoweredBy, {})
|
|
617
617
|
] });
|
|
618
618
|
}
|
|
619
619
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -641,22 +641,22 @@ function WithdrawReviewStep({
|
|
|
641
641
|
}) {
|
|
642
642
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
643
643
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
644
|
-
const sourceChainName =
|
|
645
|
-
const sourceChainIcon =
|
|
646
|
-
const targetSymbol =
|
|
647
|
-
const targetChainName =
|
|
648
|
-
const targetChainIcon =
|
|
644
|
+
const sourceChainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, sourceChain);
|
|
645
|
+
const sourceChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, sourceChain);
|
|
646
|
+
const targetSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
647
|
+
const targetChainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, targetChain);
|
|
648
|
+
const targetChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, targetChain);
|
|
649
649
|
const amountNumber = Number(amount);
|
|
650
|
-
const formattedSendAmount = _nullishCoalesce(
|
|
651
|
-
const prices =
|
|
650
|
+
const formattedSendAmount = _nullishCoalesce(_chunk65MLWUQDcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
|
|
651
|
+
const prices = _chunkFKHPVLJYcjs.useTokenPrices.call(void 0, service, [
|
|
652
652
|
{ chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
|
|
653
653
|
{ chainId: targetChain, address: targetToken, symbol: targetSymbol }
|
|
654
654
|
]);
|
|
655
|
-
const receiveDisplay = _nullishCoalesce(
|
|
655
|
+
const receiveDisplay = _nullishCoalesce(_chunk65MLWUQDcjs.formatReceiveEstimate.call(void 0, {
|
|
656
656
|
sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
|
|
657
657
|
sourceSymbol,
|
|
658
658
|
targetSymbol,
|
|
659
|
-
sourceTrusted:
|
|
659
|
+
sourceTrusted: _chunk65MLWUQDcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
|
|
660
660
|
prices
|
|
661
661
|
}), () => ( // No price for the target token — an honest dash beats a wrong number.
|
|
662
662
|
"\u2014"));
|
|
@@ -667,7 +667,7 @@ function WithdrawReviewStep({
|
|
|
667
667
|
await onConfirm();
|
|
668
668
|
} catch (err) {
|
|
669
669
|
const raw = err instanceof Error ? err.message : "Withdraw failed";
|
|
670
|
-
const message =
|
|
670
|
+
const message = _chunk65MLWUQDcjs.formatUserError.call(void 0, raw);
|
|
671
671
|
setError(message);
|
|
672
672
|
_optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR", raw)]);
|
|
673
673
|
} finally {
|
|
@@ -678,9 +678,9 @@ function WithdrawReviewStep({
|
|
|
678
678
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
679
679
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
680
680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
681
|
-
|
|
681
|
+
_chunk65MLWUQDcjs.BodyHeader,
|
|
682
682
|
{
|
|
683
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
683
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.CircleArrowOutUpLeftIcon, {}),
|
|
684
684
|
title: "Review withdrawal"
|
|
685
685
|
}
|
|
686
686
|
),
|
|
@@ -693,14 +693,14 @@ function WithdrawReviewStep({
|
|
|
693
693
|
" ",
|
|
694
694
|
sourceSymbol
|
|
695
695
|
] }),
|
|
696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.TokenIcon, { symbol: sourceSymbol }) })
|
|
697
697
|
] })
|
|
698
698
|
] }),
|
|
699
699
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
700
700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
701
701
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
702
702
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
703
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
703
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.CdnIcon, { src: sourceChainIcon }) })
|
|
704
704
|
] })
|
|
705
705
|
] }),
|
|
706
706
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -711,14 +711,14 @@ function WithdrawReviewStep({
|
|
|
711
711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
|
|
712
712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
713
713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
|
|
714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
714
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.TokenIcon, { symbol: targetSymbol }) })
|
|
715
715
|
] })
|
|
716
716
|
] }),
|
|
717
717
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
718
718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
719
719
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
720
720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
721
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
721
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.CdnIcon, { src: targetChainIcon }) })
|
|
722
722
|
] })
|
|
723
723
|
] }),
|
|
724
724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -726,10 +726,10 @@ function WithdrawReviewStep({
|
|
|
726
726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
|
|
727
727
|
] })
|
|
728
728
|
] }),
|
|
729
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
730
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
729
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.Callout, { variant: "error", children: error }),
|
|
730
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.Callout, { variant: "error", children: registrationError }),
|
|
731
731
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
732
|
-
|
|
732
|
+
_chunk65MLWUQDcjs.Button,
|
|
733
733
|
{
|
|
734
734
|
onClick: handleConfirm,
|
|
735
735
|
loading: isSubmitting,
|
|
@@ -740,7 +740,7 @@ function WithdrawReviewStep({
|
|
|
740
740
|
}
|
|
741
741
|
)
|
|
742
742
|
] }),
|
|
743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.PoweredBy, {})
|
|
744
744
|
] });
|
|
745
745
|
}
|
|
746
746
|
WithdrawReviewStep.displayName = "WithdrawReviewStep";
|
|
@@ -773,11 +773,11 @@ function WithdrawFlow({
|
|
|
773
773
|
onError,
|
|
774
774
|
debug
|
|
775
775
|
}) {
|
|
776
|
-
const rpcUrls =
|
|
777
|
-
const onStepChangeRef =
|
|
778
|
-
const onEventRef =
|
|
779
|
-
const onLifecycleRef =
|
|
780
|
-
const onErrorRef =
|
|
776
|
+
const rpcUrls = _chunk65MLWUQDcjs.useRpcUrls.call(void 0, );
|
|
777
|
+
const onStepChangeRef = _chunk65MLWUQDcjs.useLatestRef.call(void 0, onStepChange);
|
|
778
|
+
const onEventRef = _chunk65MLWUQDcjs.useLatestRef.call(void 0, onEvent);
|
|
779
|
+
const onLifecycleRef = _chunk65MLWUQDcjs.useLatestRef.call(void 0, onLifecycle);
|
|
780
|
+
const onErrorRef = _chunk65MLWUQDcjs.useLatestRef.call(void 0, onError);
|
|
781
781
|
const isFlowActiveRef = _react.useRef.call(void 0, true);
|
|
782
782
|
const submitGenerationRef = _react.useRef.call(void 0, 0);
|
|
783
783
|
_react.useEffect.call(void 0, () => {
|
|
@@ -788,13 +788,13 @@ function WithdrawFlow({
|
|
|
788
788
|
}, []);
|
|
789
789
|
const logFlow = _react.useCallback.call(void 0,
|
|
790
790
|
(message, data) => {
|
|
791
|
-
|
|
791
|
+
_chunk65MLWUQDcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
792
792
|
},
|
|
793
793
|
[debug]
|
|
794
794
|
);
|
|
795
795
|
const logFlowError = _react.useCallback.call(void 0,
|
|
796
796
|
(message, error, data) => {
|
|
797
|
-
|
|
797
|
+
_chunk65MLWUQDcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
798
798
|
},
|
|
799
799
|
[debug]
|
|
800
800
|
);
|
|
@@ -818,7 +818,7 @@ function WithdrawFlow({
|
|
|
818
818
|
const flowStep = useWithdrawStore((s) => s.step);
|
|
819
819
|
const reviewedRecipient = useWithdrawStore((s) => s.recipient);
|
|
820
820
|
const publicClient = _react.useMemo.call(void 0,
|
|
821
|
-
() =>
|
|
821
|
+
() => _chunk65MLWUQDcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
|
|
822
822
|
[sourceChain, rpcUrls]
|
|
823
823
|
);
|
|
824
824
|
const recipientForRegistration = _react.useMemo.call(void 0, () => {
|
|
@@ -846,7 +846,7 @@ function WithdrawFlow({
|
|
|
846
846
|
targetToken,
|
|
847
847
|
recipient: recipientForRegistration
|
|
848
848
|
});
|
|
849
|
-
const salt =
|
|
849
|
+
const salt = _chunkFKHPVLJYcjs.deriveAccountSalt.call(void 0, {
|
|
850
850
|
recipient: recipientForRegistration,
|
|
851
851
|
targetChain,
|
|
852
852
|
targetToken
|
|
@@ -854,7 +854,7 @@ function WithdrawFlow({
|
|
|
854
854
|
const { evmDepositAddress } = await service.registerManagedAccount({
|
|
855
855
|
salt,
|
|
856
856
|
target: {
|
|
857
|
-
chain:
|
|
857
|
+
chain: _chunkO7BCVQ6Lcjs.targetChainToCaip2.call(void 0, targetChain),
|
|
858
858
|
token: targetToken,
|
|
859
859
|
recipient: recipientForRegistration
|
|
860
860
|
}
|
|
@@ -876,7 +876,7 @@ function WithdrawFlow({
|
|
|
876
876
|
} catch (err) {
|
|
877
877
|
if (cancelled) return;
|
|
878
878
|
const raw = err instanceof Error ? err.message : "Registration failed";
|
|
879
|
-
const message =
|
|
879
|
+
const message = _chunk65MLWUQDcjs.formatUserError.call(void 0, raw);
|
|
880
880
|
logFlowError("auto-register:failed", err, {
|
|
881
881
|
accountAddress,
|
|
882
882
|
targetChain,
|
|
@@ -907,10 +907,10 @@ function WithdrawFlow({
|
|
|
907
907
|
onErrorRef
|
|
908
908
|
]);
|
|
909
909
|
const asset = _react.useMemo.call(void 0, () => {
|
|
910
|
-
const symbol =
|
|
911
|
-
const decimals =
|
|
910
|
+
const symbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
911
|
+
const decimals = _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
912
912
|
return {
|
|
913
|
-
id:
|
|
913
|
+
id: _chunk65MLWUQDcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
914
914
|
chainId: sourceChain,
|
|
915
915
|
token: sourceToken,
|
|
916
916
|
symbol,
|
|
@@ -918,7 +918,7 @@ function WithdrawFlow({
|
|
|
918
918
|
decimals
|
|
919
919
|
};
|
|
920
920
|
}, [sourceChain, sourceToken]);
|
|
921
|
-
const isSourceNative = sourceToken.toLowerCase() ===
|
|
921
|
+
const isSourceNative = sourceToken.toLowerCase() === _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
|
|
922
922
|
const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
|
|
923
923
|
const reviewedTarget = reviewedRecipient ? {
|
|
924
924
|
chain: targetChain,
|
|
@@ -943,8 +943,8 @@ function WithdrawFlow({
|
|
|
943
943
|
}
|
|
944
944
|
if (lastStepOpenEventKeyRef.current === "form") return;
|
|
945
945
|
lastStepOpenEventKeyRef.current = "form";
|
|
946
|
-
const tokenSymbol =
|
|
947
|
-
const chainName =
|
|
946
|
+
const tokenSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
947
|
+
const chainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, targetChain);
|
|
948
948
|
_optionalChain([onEventRef, 'access', _20 => _20.current, 'optionalCall', _21 => _21({
|
|
949
949
|
type: "withdraw_modal_select_amount_open",
|
|
950
950
|
pred_balance: totalBalanceUsd,
|
|
@@ -979,8 +979,8 @@ function WithdrawFlow({
|
|
|
979
979
|
);
|
|
980
980
|
const handleFormContinue = _react.useCallback.call(void 0,
|
|
981
981
|
(recipient, amountValue) => {
|
|
982
|
-
const tokenSymbol =
|
|
983
|
-
const chainName =
|
|
982
|
+
const tokenSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
983
|
+
const chainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, targetChain);
|
|
984
984
|
_optionalChain([onEventRef, 'access', _24 => _24.current, 'optionalCall', _25 => _25({
|
|
985
985
|
type: "withdraw_modal_select_amount_cta_click",
|
|
986
986
|
pred_balance: totalBalanceUsd,
|
|
@@ -1090,7 +1090,7 @@ function WithdrawFlow({
|
|
|
1090
1090
|
targetChain,
|
|
1091
1091
|
targetToken
|
|
1092
1092
|
});
|
|
1093
|
-
handleError(
|
|
1093
|
+
handleError(_chunk65MLWUQDcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1094
1094
|
throw err;
|
|
1095
1095
|
}
|
|
1096
1096
|
},
|
|
@@ -1143,8 +1143,8 @@ function WithdrawFlow({
|
|
|
1143
1143
|
},
|
|
1144
1144
|
[logFlowError, onLifecycleRef, storeApi]
|
|
1145
1145
|
);
|
|
1146
|
-
const targetChainOptions =
|
|
1147
|
-
const targetTokensFor =
|
|
1146
|
+
const targetChainOptions = _chunk65MLWUQDcjs.useDestinationChains.call(void 0, );
|
|
1147
|
+
const targetTokensFor = _chunk65MLWUQDcjs.useTargetTokens.call(void 0, );
|
|
1148
1148
|
const targetTokenOptions = _react.useMemo.call(void 0,
|
|
1149
1149
|
() => targetTokensFor(targetChain),
|
|
1150
1150
|
[targetChain, targetTokensFor]
|
|
@@ -1216,7 +1216,7 @@ function WithdrawFlow({
|
|
|
1216
1216
|
}
|
|
1217
1217
|
),
|
|
1218
1218
|
stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1219
|
-
|
|
1219
|
+
_chunkFKHPVLJYcjs.ProcessingStep,
|
|
1220
1220
|
{
|
|
1221
1221
|
smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
|
|
1222
1222
|
txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
|
|
@@ -1286,22 +1286,22 @@ function WithdrawModal({
|
|
|
1286
1286
|
// one only ever applied to the deposit flow.
|
|
1287
1287
|
...removedProps
|
|
1288
1288
|
}) {
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
_chunkFKHPVLJYcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
|
|
1290
|
+
_chunk65MLWUQDcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
|
|
1291
1291
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1292
|
-
const onReadyRef =
|
|
1292
|
+
const onReadyRef = _chunk65MLWUQDcjs.useLatestRef.call(void 0, onReady);
|
|
1293
1293
|
const [backHandler, setBackHandler] = _react.useState.call(void 0,
|
|
1294
1294
|
void 0
|
|
1295
1295
|
);
|
|
1296
|
-
const targetChain =
|
|
1297
|
-
const sourceChain =
|
|
1298
|
-
const rpcUrls =
|
|
1296
|
+
const targetChain = _chunkO7BCVQ6Lcjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
|
|
1297
|
+
const sourceChain = _chunkO7BCVQ6Lcjs.getChainId.call(void 0, sourceChainProp);
|
|
1298
|
+
const rpcUrls = _chunk65MLWUQDcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
1299
1299
|
const service = _react.useMemo.call(void 0,
|
|
1300
|
-
() =>
|
|
1300
|
+
() => _chunk65MLWUQDcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1301
1301
|
[backendUrl, debug]
|
|
1302
1302
|
);
|
|
1303
1303
|
const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
|
|
1304
|
-
const onErrorRef =
|
|
1304
|
+
const onErrorRef = _chunk65MLWUQDcjs.useLatestRef.call(void 0, onError);
|
|
1305
1305
|
_react.useEffect.call(void 0, () => {
|
|
1306
1306
|
if (isOpen && typeof onSendTransaction !== "function") {
|
|
1307
1307
|
_optionalChain([onErrorRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34({
|
|
@@ -1312,7 +1312,7 @@ function WithdrawModal({
|
|
|
1312
1312
|
}, [isOpen, onSendTransaction, onErrorRef]);
|
|
1313
1313
|
_react.useEffect.call(void 0, () => {
|
|
1314
1314
|
if (isOpen && modalRef.current) {
|
|
1315
|
-
|
|
1315
|
+
_chunk65MLWUQDcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1316
1316
|
}
|
|
1317
1317
|
}, [isOpen, theme]);
|
|
1318
1318
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1330,8 +1330,8 @@ function WithdrawModal({
|
|
|
1330
1330
|
}, []);
|
|
1331
1331
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _37 => _37.showBackButton]), () => ( true));
|
|
1332
1332
|
const canGoBack = backHandler !== void 0;
|
|
1333
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1334
|
-
|
|
1333
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1334
|
+
_chunk65MLWUQDcjs.Modal,
|
|
1335
1335
|
{
|
|
1336
1336
|
isOpen,
|
|
1337
1337
|
onClose,
|
|
@@ -1347,7 +1347,7 @@ function WithdrawModal({
|
|
|
1347
1347
|
className: "rs-modal-header-back",
|
|
1348
1348
|
"aria-label": "Go back",
|
|
1349
1349
|
onClick: backHandler,
|
|
1350
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1350
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.ChevronLeftIcon, {})
|
|
1351
1351
|
}
|
|
1352
1352
|
) }),
|
|
1353
1353
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1357,7 +1357,7 @@ function WithdrawModal({
|
|
|
1357
1357
|
onClick: onClose,
|
|
1358
1358
|
className: "rs-modal-close",
|
|
1359
1359
|
"aria-label": "Close",
|
|
1360
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1360
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65MLWUQDcjs.CloseIcon, {})
|
|
1361
1361
|
}
|
|
1362
1362
|
) })
|
|
1363
1363
|
] }),
|
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 _chunkUGK4JRK6cjs = require('./chunk-UGK4JRK6.cjs');
|
|
4
|
+
require('./chunk-TYBMAUGH.cjs');
|
|
5
|
+
require('./chunk-65MLWUQD.cjs');
|
|
6
|
+
require('./chunk-DMYA7U53.cjs');
|
|
7
|
+
require('./chunk-O7BCVQ6L.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ClaimModal =
|
|
10
|
+
exports.ClaimModal = _chunkUGK4JRK6cjs.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-O4AXBFHU.mjs";
|
|
4
|
+
import "./chunk-NHGFU3WC.mjs";
|
|
5
|
+
import "./chunk-2K44IE3V.mjs";
|
|
6
|
+
import "./chunk-O2TQLD4I.mjs";
|
|
7
|
+
import "./chunk-3STTWRAN.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 _chunkDMYA7U53cjs = require('./chunk-DMYA7U53.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 _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.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 = _chunkO7BCVQ6Lcjs.CHAIN_BY_ID; exports.HYPERCORE_CHAIN_ID = _chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkO7BCVQ6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkO7BCVQ6Lcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunkDMYA7U53cjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkO7BCVQ6Lcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkO7BCVQ6Lcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkO7BCVQ6Lcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkO7BCVQ6Lcjs.chainRegistry; exports.findChainIdForToken = _chunkO7BCVQ6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkO7BCVQ6Lcjs.getChainBadge; exports.getChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon; exports.getChainId = _chunkO7BCVQ6Lcjs.getChainId; exports.getChainName = _chunkO7BCVQ6Lcjs.getChainName; exports.getChainObject = _chunkO7BCVQ6Lcjs.getChainObject; exports.getExplorerName = _chunkO7BCVQ6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkO7BCVQ6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkO7BCVQ6Lcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkO7BCVQ6Lcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkO7BCVQ6Lcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkO7BCVQ6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkO7BCVQ6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkO7BCVQ6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkO7BCVQ6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkO7BCVQ6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkO7BCVQ6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkO7BCVQ6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkO7BCVQ6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkO7BCVQ6Lcjs.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.1";
|
|
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.1";
|
|
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-O2TQLD4I.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-3STTWRAN.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 _chunk2BOEUV6Bcjs = require('./chunk-2BOEUV6B.cjs');
|
|
4
|
+
require('./chunk-FKHPVLJY.cjs');
|
|
5
|
+
require('./chunk-TYBMAUGH.cjs');
|
|
6
|
+
require('./chunk-65MLWUQD.cjs');
|
|
7
|
+
require('./chunk-DMYA7U53.cjs');
|
|
8
|
+
require('./chunk-75DVGSAX.cjs');
|
|
9
|
+
require('./chunk-O7BCVQ6L.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DepositModal =
|
|
12
|
+
exports.DepositModal = _chunk2BOEUV6Bcjs.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
|
|