@rhinestone/deposit-modal 0.4.1 → 0.4.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-FMAPWBQM.cjs → DepositModalReown-MCDIOJLT.cjs} +6 -6
- package/dist/{DepositModalReown-EXI7MW65.mjs → DepositModalReown-ORSBSEMO.mjs} +3 -3
- package/dist/{WithdrawModalReown-CTT3EXMG.cjs → WithdrawModalReown-AZ27OBAV.cjs} +6 -6
- package/dist/{WithdrawModalReown-G7EM6HXO.mjs → WithdrawModalReown-L4SWLONE.mjs} +3 -3
- package/dist/{chunk-BTDRUAPJ.cjs → chunk-36R7XKXP.cjs} +396 -418
- package/dist/{chunk-A33QFRKD.mjs → chunk-7EQQD7B4.mjs} +18 -0
- package/dist/{chunk-3GLQC2KQ.mjs → chunk-7JVBUMFE.mjs} +2 -2
- package/dist/{chunk-RTAIW3WW.mjs → chunk-ANPDY6NJ.mjs} +40 -62
- package/dist/{chunk-LJJCPDZO.cjs → chunk-EDUWRMQI.cjs} +22 -4
- package/dist/{chunk-JHT2MJ42.cjs → chunk-PNN2YBPF.cjs} +54 -54
- package/dist/{chunk-ULCCXH2A.cjs → chunk-PQDHZZ2B.cjs} +2 -2
- package/dist/{chunk-43RTPRQY.mjs → chunk-V72YVCR6.mjs} +1 -1
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{types-CFRuisqK.d.cts → types-CUOqIIvZ.d.cts} +7 -0
- package/dist/{types-CFRuisqK.d.ts → types-CUOqIIvZ.d.ts} +7 -0
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkEDUWRMQIcjs = require('./chunk-EDUWRMQI.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -260,7 +260,7 @@ function WithdrawFormStep({
|
|
|
260
260
|
setIsSwitching(true);
|
|
261
261
|
switchChain(asset.chainId).catch((err) => {
|
|
262
262
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
263
|
-
setError(
|
|
263
|
+
setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
|
|
264
264
|
}).finally(() => {
|
|
265
265
|
setIsSwitching(false);
|
|
266
266
|
});
|
|
@@ -280,7 +280,7 @@ function WithdrawFormStep({
|
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
282
282
|
try {
|
|
283
|
-
const bal =
|
|
283
|
+
const bal = _chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
284
284
|
address: asset.token,
|
|
285
285
|
abi: _viem.erc20Abi,
|
|
286
286
|
functionName: "balanceOf",
|
|
@@ -384,7 +384,7 @@ function WithdrawFormStep({
|
|
|
384
384
|
await onSubmit(recipient, amount);
|
|
385
385
|
} catch (err) {
|
|
386
386
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
387
|
-
setError(
|
|
387
|
+
setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
|
|
388
388
|
} finally {
|
|
389
389
|
setIsSubmitting(false);
|
|
390
390
|
}
|
|
@@ -392,16 +392,16 @@ function WithdrawFormStep({
|
|
|
392
392
|
if (isBalanceLoading) {
|
|
393
393
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
394
394
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
|
|
395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
395
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-spinner--lg" }),
|
|
396
396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
397
397
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
398
398
|
] }),
|
|
399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
|
|
400
400
|
] });
|
|
401
401
|
}
|
|
402
402
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
403
403
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
404
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
|
|
405
405
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
|
|
406
406
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
407
407
|
"label",
|
|
@@ -447,7 +447,7 @@ function WithdrawFormStep({
|
|
|
447
447
|
),
|
|
448
448
|
isRecipientConnected ? null : "Use connected"
|
|
449
449
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
450
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
450
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
|
|
451
451
|
isRecipientConnected ? null : "Use connected"
|
|
452
452
|
] })
|
|
453
453
|
}
|
|
@@ -487,7 +487,7 @@ function WithdrawFormStep({
|
|
|
487
487
|
) })
|
|
488
488
|
] }),
|
|
489
489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
490
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
490
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkEDUWRMQIcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
491
491
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
492
492
|
"Balance: ",
|
|
493
493
|
formattedBalance,
|
|
@@ -528,7 +528,7 @@ function WithdrawFormStep({
|
|
|
528
528
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
|
|
529
529
|
] }),
|
|
530
530
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
531
|
-
|
|
531
|
+
_chunkEDUWRMQIcjs.ChevronDownIcon,
|
|
532
532
|
{
|
|
533
533
|
className: "rs-withdraw-dropdown-arrow",
|
|
534
534
|
style: {
|
|
@@ -597,7 +597,7 @@ function WithdrawFormStep({
|
|
|
597
597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
|
|
598
598
|
] }),
|
|
599
599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
600
|
-
|
|
600
|
+
_chunkEDUWRMQIcjs.ChevronDownIcon,
|
|
601
601
|
{
|
|
602
602
|
className: "rs-withdraw-dropdown-arrow",
|
|
603
603
|
style: {
|
|
@@ -637,10 +637,10 @@ function WithdrawFormStep({
|
|
|
637
637
|
] })
|
|
638
638
|
] }),
|
|
639
639
|
chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
640
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
641
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
640
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
|
|
641
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: registrationError }),
|
|
642
642
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
643
|
-
|
|
643
|
+
_chunkEDUWRMQIcjs.Button,
|
|
644
644
|
{
|
|
645
645
|
onClick: handleWithdraw,
|
|
646
646
|
fullWidth: true,
|
|
@@ -650,7 +650,7 @@ function WithdrawFormStep({
|
|
|
650
650
|
}
|
|
651
651
|
)
|
|
652
652
|
] }),
|
|
653
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
|
|
654
654
|
] });
|
|
655
655
|
}
|
|
656
656
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -685,9 +685,9 @@ function WithdrawReviewStep({
|
|
|
685
685
|
const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceSymbol);
|
|
686
686
|
const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
|
|
687
687
|
const amountNumber = Number(amount);
|
|
688
|
-
const formattedSendAmount = _nullishCoalesce(
|
|
689
|
-
const prices =
|
|
690
|
-
const receiveDisplay = _nullishCoalesce(
|
|
688
|
+
const formattedSendAmount = _nullishCoalesce(_chunkEDUWRMQIcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
|
|
689
|
+
const prices = _chunkEDUWRMQIcjs.useTokenPrices.call(void 0, service, [sourceSymbol, targetSymbol]);
|
|
690
|
+
const receiveDisplay = _nullishCoalesce(_chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
|
|
691
691
|
sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
|
|
692
692
|
sourceSymbol,
|
|
693
693
|
targetSymbol,
|
|
@@ -701,7 +701,7 @@ function WithdrawReviewStep({
|
|
|
701
701
|
await onConfirm();
|
|
702
702
|
} catch (err) {
|
|
703
703
|
const raw = err instanceof Error ? err.message : "Withdraw failed";
|
|
704
|
-
const message =
|
|
704
|
+
const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
|
|
705
705
|
setError(message);
|
|
706
706
|
_optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
|
|
707
707
|
} finally {
|
|
@@ -712,9 +712,9 @@ function WithdrawReviewStep({
|
|
|
712
712
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
713
713
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
714
714
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
715
|
-
|
|
715
|
+
_chunkEDUWRMQIcjs.BodyHeader,
|
|
716
716
|
{
|
|
717
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
717
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CircleArrowOutUpLeftIcon, {}),
|
|
718
718
|
title: "Review withdrawal"
|
|
719
719
|
}
|
|
720
720
|
),
|
|
@@ -760,10 +760,10 @@ function WithdrawReviewStep({
|
|
|
760
760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
|
|
761
761
|
] })
|
|
762
762
|
] }),
|
|
763
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
764
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
763
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
|
|
764
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: registrationError }),
|
|
765
765
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
766
|
-
|
|
766
|
+
_chunkEDUWRMQIcjs.Button,
|
|
767
767
|
{
|
|
768
768
|
onClick: handleConfirm,
|
|
769
769
|
loading: isSubmitting,
|
|
@@ -774,7 +774,7 @@ function WithdrawReviewStep({
|
|
|
774
774
|
}
|
|
775
775
|
)
|
|
776
776
|
] }),
|
|
777
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
777
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
|
|
778
778
|
] });
|
|
779
779
|
}
|
|
780
780
|
WithdrawReviewStep.displayName = "WithdrawReviewStep";
|
|
@@ -786,15 +786,15 @@ var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
|
|
|
786
786
|
var REGISTRATION_DEBOUNCE_MS = 600;
|
|
787
787
|
var WITHDRAW_INDEXING_DELAY_MS = 2e3;
|
|
788
788
|
function resolveSessionOwner(eoaAddress) {
|
|
789
|
-
const localOwner =
|
|
789
|
+
const localOwner = _chunkEDUWRMQIcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
790
790
|
if (localOwner) {
|
|
791
791
|
return {
|
|
792
|
-
account:
|
|
792
|
+
account: _chunkEDUWRMQIcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
793
793
|
address: localOwner.address
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
const created =
|
|
797
|
-
|
|
796
|
+
const created = _chunkEDUWRMQIcjs.createSessionOwnerKey.call(void 0, );
|
|
797
|
+
_chunkEDUWRMQIcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
798
798
|
return { account: created.account, address: created.address };
|
|
799
799
|
}
|
|
800
800
|
function targetsEqual(a, b) {
|
|
@@ -829,10 +829,10 @@ function WithdrawFlow({
|
|
|
829
829
|
onError,
|
|
830
830
|
debug
|
|
831
831
|
}) {
|
|
832
|
-
const onStepChangeRef =
|
|
833
|
-
const onEventRef =
|
|
834
|
-
const onLifecycleRef =
|
|
835
|
-
const onErrorRef =
|
|
832
|
+
const onStepChangeRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onStepChange);
|
|
833
|
+
const onEventRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onEvent);
|
|
834
|
+
const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
|
|
835
|
+
const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
|
|
836
836
|
const isFlowActiveRef = _react.useRef.call(void 0, true);
|
|
837
837
|
const submitGenerationRef = _react.useRef.call(void 0, 0);
|
|
838
838
|
_react.useEffect.call(void 0, () => {
|
|
@@ -843,13 +843,13 @@ function WithdrawFlow({
|
|
|
843
843
|
}, []);
|
|
844
844
|
const logFlow = _react.useCallback.call(void 0,
|
|
845
845
|
(message, data) => {
|
|
846
|
-
|
|
846
|
+
_chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
847
847
|
},
|
|
848
848
|
[debug]
|
|
849
849
|
);
|
|
850
850
|
const logFlowError = _react.useCallback.call(void 0,
|
|
851
851
|
(message, error, data) => {
|
|
852
|
-
|
|
852
|
+
_chunkEDUWRMQIcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
853
853
|
},
|
|
854
854
|
[debug]
|
|
855
855
|
);
|
|
@@ -925,14 +925,14 @@ function WithdrawFlow({
|
|
|
925
925
|
return {
|
|
926
926
|
ownerAddress: dappAddress,
|
|
927
927
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
928
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
928
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, sourceChain))),
|
|
929
929
|
switchChain: dappSwitchChain
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
932
|
return {
|
|
933
933
|
ownerAddress: dappWalletClient.account.address,
|
|
934
934
|
walletClient: dappWalletClient,
|
|
935
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
935
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, sourceChain))),
|
|
936
936
|
switchChain: dappSwitchChain
|
|
937
937
|
};
|
|
938
938
|
}
|
|
@@ -943,7 +943,7 @@ function WithdrawFlow({
|
|
|
943
943
|
return {
|
|
944
944
|
ownerAddress: dappWalletClient.account.address,
|
|
945
945
|
walletClient: dappWalletClient,
|
|
946
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
946
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, sourceChain))),
|
|
947
947
|
switchChain: dappSwitchChain
|
|
948
948
|
};
|
|
949
949
|
}
|
|
@@ -1025,7 +1025,7 @@ function WithdrawFlow({
|
|
|
1025
1025
|
message: typedData.message
|
|
1026
1026
|
});
|
|
1027
1027
|
if (cancelled) return;
|
|
1028
|
-
const sessionDetails =
|
|
1028
|
+
const sessionDetails = _chunkEDUWRMQIcjs.buildSessionDetails.call(void 0,
|
|
1029
1029
|
setup.sessionDetailsUnsigned,
|
|
1030
1030
|
signature
|
|
1031
1031
|
);
|
|
@@ -1062,7 +1062,7 @@ function WithdrawFlow({
|
|
|
1062
1062
|
} catch (err) {
|
|
1063
1063
|
if (cancelled) return;
|
|
1064
1064
|
const raw = err instanceof Error ? err.message : "Registration failed";
|
|
1065
|
-
const message =
|
|
1065
|
+
const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
|
|
1066
1066
|
logFlowError("auto-register:failed", err, {
|
|
1067
1067
|
ownerAddress,
|
|
1068
1068
|
targetChain,
|
|
@@ -1098,7 +1098,7 @@ function WithdrawFlow({
|
|
|
1098
1098
|
const symbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1099
1099
|
const decimals = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1100
1100
|
return {
|
|
1101
|
-
id:
|
|
1101
|
+
id: _chunkEDUWRMQIcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1102
1102
|
chainId: sourceChain,
|
|
1103
1103
|
token: sourceToken,
|
|
1104
1104
|
symbol,
|
|
@@ -1232,7 +1232,7 @@ function WithdrawFlow({
|
|
|
1232
1232
|
targetToken
|
|
1233
1233
|
});
|
|
1234
1234
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1235
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => (
|
|
1235
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, sourceChain)));
|
|
1236
1236
|
let result;
|
|
1237
1237
|
if (onSignTransaction) {
|
|
1238
1238
|
const transferTarget = isSameRoute ? recipient : smartAccount;
|
|
@@ -1320,7 +1320,7 @@ function WithdrawFlow({
|
|
|
1320
1320
|
targetChain,
|
|
1321
1321
|
targetToken
|
|
1322
1322
|
});
|
|
1323
|
-
handleError(
|
|
1323
|
+
handleError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1324
1324
|
throw err;
|
|
1325
1325
|
}
|
|
1326
1326
|
},
|
|
@@ -1459,7 +1459,7 @@ function WithdrawFlow({
|
|
|
1459
1459
|
state: "ready"
|
|
1460
1460
|
}));
|
|
1461
1461
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1462
|
-
|
|
1462
|
+
_chunkEDUWRMQIcjs.ConnectStep,
|
|
1463
1463
|
{
|
|
1464
1464
|
walletRows: withdrawRows,
|
|
1465
1465
|
onConfirmWallet: (walletId) => {
|
|
@@ -1477,7 +1477,7 @@ function WithdrawFlow({
|
|
|
1477
1477
|
if (!signerContext) return null;
|
|
1478
1478
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1479
1479
|
const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
|
|
1480
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1480
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, sourceChain)));
|
|
1481
1481
|
const stepView = deriveStepView(flowStep, registration);
|
|
1482
1482
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
1483
1483
|
stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1522,7 +1522,7 @@ function WithdrawFlow({
|
|
|
1522
1522
|
}
|
|
1523
1523
|
),
|
|
1524
1524
|
stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1525
|
-
|
|
1525
|
+
_chunkEDUWRMQIcjs.ProcessingStep,
|
|
1526
1526
|
{
|
|
1527
1527
|
smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
|
|
1528
1528
|
txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
|
|
@@ -1564,7 +1564,7 @@ function deriveStepView(step, _registration) {
|
|
|
1564
1564
|
// src/WithdrawModal.tsx
|
|
1565
1565
|
|
|
1566
1566
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1567
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1567
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-AZ27OBAV.cjs"))).then((m) => ({
|
|
1568
1568
|
default: m.WithdrawModalReown
|
|
1569
1569
|
}))
|
|
1570
1570
|
);
|
|
@@ -1611,18 +1611,18 @@ function WithdrawModalInner({
|
|
|
1611
1611
|
debug
|
|
1612
1612
|
}) {
|
|
1613
1613
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1614
|
-
const onReadyRef =
|
|
1614
|
+
const onReadyRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onReady);
|
|
1615
1615
|
const [backHandler, setBackHandler] = _react.useState.call(void 0,
|
|
1616
1616
|
void 0
|
|
1617
1617
|
);
|
|
1618
1618
|
const targetChain = _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
|
|
1619
1619
|
const sourceChain = _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp);
|
|
1620
1620
|
const service = _react.useMemo.call(void 0,
|
|
1621
|
-
() =>
|
|
1621
|
+
() => _chunkEDUWRMQIcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1622
1622
|
[backendUrl, debug]
|
|
1623
1623
|
);
|
|
1624
1624
|
const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
|
|
1625
|
-
const onErrorRef =
|
|
1625
|
+
const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
|
|
1626
1626
|
_react.useEffect.call(void 0, () => {
|
|
1627
1627
|
if (isOpen && onSignTransaction && !dappAddress) {
|
|
1628
1628
|
_optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
|
|
@@ -1633,7 +1633,7 @@ function WithdrawModalInner({
|
|
|
1633
1633
|
}, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
|
|
1634
1634
|
_react.useEffect.call(void 0, () => {
|
|
1635
1635
|
if (isOpen && modalRef.current) {
|
|
1636
|
-
|
|
1636
|
+
_chunkEDUWRMQIcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1637
1637
|
}
|
|
1638
1638
|
}, [isOpen, theme]);
|
|
1639
1639
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1652,7 +1652,7 @@ function WithdrawModalInner({
|
|
|
1652
1652
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
|
|
1653
1653
|
const canGoBack = backHandler !== void 0;
|
|
1654
1654
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1655
|
-
|
|
1655
|
+
_chunkEDUWRMQIcjs.Modal,
|
|
1656
1656
|
{
|
|
1657
1657
|
isOpen,
|
|
1658
1658
|
onClose,
|
|
@@ -1668,7 +1668,7 @@ function WithdrawModalInner({
|
|
|
1668
1668
|
className: "rs-modal-header-back",
|
|
1669
1669
|
"aria-label": "Go back",
|
|
1670
1670
|
onClick: backHandler,
|
|
1671
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1671
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
|
|
1672
1672
|
}
|
|
1673
1673
|
) }),
|
|
1674
1674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1678,7 +1678,7 @@ function WithdrawModalInner({
|
|
|
1678
1678
|
onClick: onClose,
|
|
1679
1679
|
className: "rs-modal-close",
|
|
1680
1680
|
"aria-label": "Close",
|
|
1681
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1681
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
|
|
1682
1682
|
}
|
|
1683
1683
|
) })
|
|
1684
1684
|
] }),
|
|
@@ -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 _chunkEDUWRMQIcjs = require('./chunk-EDUWRMQI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -155,7 +155,7 @@ function useReownWallet() {
|
|
|
155
155
|
await switchChainAsync({ chainId });
|
|
156
156
|
}
|
|
157
157
|
} catch (err) {
|
|
158
|
-
if (
|
|
158
|
+
if (_chunkEDUWRMQIcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
159
159
|
throw new Error(
|
|
160
160
|
`Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
161
161
|
);
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk36R7XKXPcjs = require('./chunk-36R7XKXP.cjs');
|
|
4
4
|
require('./chunk-NRNJAQUA.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-EDUWRMQI.cjs');
|
|
6
6
|
require('./chunk-UEKPBRBY.cjs');
|
|
7
7
|
require('./chunk-ABVRVW3P.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.DepositModal =
|
|
10
|
+
exports.DepositModal = _chunk36R7XKXPcjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { f as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { f as DepositModalProps } from './types-CUOqIIvZ.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-CUOqIIvZ.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { f as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { f as DepositModalProps } from './types-CUOqIIvZ.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-CUOqIIvZ.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANPDY6NJ.mjs";
|
|
4
4
|
import "./chunk-FJWLC4AM.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-7EQQD7B4.mjs";
|
|
6
6
|
import "./chunk-F7P4MV72.mjs";
|
|
7
7
|
import "./chunk-WJX3TJFK.mjs";
|
|
8
8
|
export {
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk36R7XKXPcjs = require('./chunk-36R7XKXP.cjs');
|
|
4
4
|
require('./chunk-NRNJAQUA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkPNN2YBPFcjs = require('./chunk-PNN2YBPF.cjs');
|
|
8
|
+
require('./chunk-EDUWRMQI.cjs');
|
|
9
9
|
require('./chunk-UEKPBRBY.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -85,4 +85,4 @@ async function disconnectWallet() {
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
exports.CHAIN_BY_ID = _chunkABVRVW3Pcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal =
|
|
88
|
+
exports.CHAIN_BY_ID = _chunkABVRVW3Pcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk36R7XKXPcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkABVRVW3Pcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkABVRVW3Pcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkPNN2YBPFcjs.WithdrawModal; exports.chainRegistry = _chunkABVRVW3Pcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkABVRVW3Pcjs.findChainIdForToken; exports.getChainBadge = _chunkABVRVW3Pcjs.getChainBadge; exports.getChainIcon = _chunkABVRVW3Pcjs.getChainIcon; exports.getChainId = _chunkABVRVW3Pcjs.getChainId; exports.getChainName = _chunkABVRVW3Pcjs.getChainName; exports.getChainObject = _chunkABVRVW3Pcjs.getChainObject; exports.getExplorerName = _chunkABVRVW3Pcjs.getExplorerName; exports.getExplorerTxUrl = _chunkABVRVW3Pcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkABVRVW3Pcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkABVRVW3Pcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkABVRVW3Pcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress; exports.getTokenDecimals = _chunkABVRVW3Pcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon; exports.getTokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol; exports.getUsdcAddress = _chunkABVRVW3Pcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkABVRVW3Pcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkABVRVW3Pcjs.isSupportedTokenAddressForChain;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-CUOqIIvZ.cjs';
|
|
4
4
|
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
|
|
5
5
|
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.cjs';
|
|
6
6
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-CUOqIIvZ.js';
|
|
4
4
|
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
|
|
5
5
|
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.js';
|
|
6
6
|
import 'react';
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANPDY6NJ.mjs";
|
|
4
4
|
import "./chunk-FJWLC4AM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
WithdrawModal
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-7JVBUMFE.mjs";
|
|
8
|
+
import "./chunk-7EQQD7B4.mjs";
|
|
9
9
|
import "./chunk-F7P4MV72.mjs";
|
|
10
10
|
import {
|
|
11
11
|
CHAIN_BY_ID,
|
|
@@ -95,6 +95,13 @@ interface DepositModalUIConfig {
|
|
|
95
95
|
* "Fees are sponsored" / "Fees apply" message based on `feeSponsored`.
|
|
96
96
|
*/
|
|
97
97
|
feeTooltip?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Run the liquidity check before the amount step continues. Off by default:
|
|
100
|
+
* the check adds an orchestrator round-trip per continue and its low/unavailable
|
|
101
|
+
* result isn't surfaced anyway, so skipping it makes the route faster. Enable
|
|
102
|
+
* to gate continue on liquidity and show the unavailable/check-failed warning.
|
|
103
|
+
*/
|
|
104
|
+
checkLiquidity?: boolean;
|
|
98
105
|
}
|
|
99
106
|
interface ConnectedEventData {
|
|
100
107
|
address: Address;
|
|
@@ -95,6 +95,13 @@ interface DepositModalUIConfig {
|
|
|
95
95
|
* "Fees are sponsored" / "Fees apply" message based on `feeSponsored`.
|
|
96
96
|
*/
|
|
97
97
|
feeTooltip?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Run the liquidity check before the amount step continues. Off by default:
|
|
100
|
+
* the check adds an orchestrator round-trip per continue and its low/unavailable
|
|
101
|
+
* result isn't surfaced anyway, so skipping it makes the route faster. Enable
|
|
102
|
+
* to gate continue on liquidity and show the unavailable/check-failed warning.
|
|
103
|
+
*/
|
|
104
|
+
checkLiquidity?: boolean;
|
|
98
105
|
}
|
|
99
106
|
interface ConnectedEventData {
|
|
100
107
|
address: Address;
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkPNN2YBPFcjs = require('./chunk-PNN2YBPF.cjs');
|
|
4
|
+
require('./chunk-EDUWRMQI.cjs');
|
|
5
5
|
require('./chunk-UEKPBRBY.cjs');
|
|
6
6
|
require('./chunk-ABVRVW3P.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.WithdrawModal =
|
|
9
|
+
exports.WithdrawModal = _chunkPNN2YBPFcjs.WithdrawModal;
|
package/dist/withdraw.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { n as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-
|
|
2
|
+
import { n as WithdrawModalProps } from './types-CUOqIIvZ.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-CUOqIIvZ.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
|
package/dist/withdraw.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { n as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-
|
|
2
|
+
import { n as WithdrawModalProps } from './types-CUOqIIvZ.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-CUOqIIvZ.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
|
package/dist/withdraw.mjs
CHANGED