@rhinestone/deposit-modal 0.2.2 → 0.2.4
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-WGRUAIY3.cjs → DepositModalReown-2UMPITRN.cjs} +4 -4
- package/dist/{DepositModalReown-3H4EAZIF.mjs → DepositModalReown-CY5MSQGK.mjs} +3 -3
- package/dist/{WithdrawModalReown-RUJZCQ4C.mjs → WithdrawModalReown-YSRO5ZTA.mjs} +3 -3
- package/dist/{WithdrawModalReown-KGKKBTC7.cjs → WithdrawModalReown-Z5BUZQ4Z.cjs} +4 -4
- package/dist/{chunk-OPCYL3OI.cjs → chunk-ARGMXV6E.cjs} +272 -218
- package/dist/{chunk-UTQ7EYXO.mjs → chunk-HFQV7EHS.mjs} +86 -32
- package/dist/{chunk-MKO5TNVQ.mjs → chunk-KJEHVIPZ.mjs} +3 -3
- package/dist/{chunk-T2KOQH57.cjs → chunk-NFXJEOE6.cjs} +23 -23
- package/dist/{chunk-5EU7N73M.cjs → chunk-QUOP5C6V.cjs} +73 -73
- package/dist/{chunk-MUWVDVY4.cjs → chunk-R2HP743T.cjs} +14 -1
- package/dist/{chunk-SDZKKUCJ.mjs → chunk-WHW3ZMOT.mjs} +14 -1
- package/dist/{chunk-JRNGXHWQ.mjs → chunk-WNFGZS56.mjs} +1 -1
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +4 -4
- package/dist/reown.cjs +5 -5
- package/dist/reown.mjs +4 -4
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkNFXJEOE6cjs = require('./chunk-NFXJEOE6.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -34,7 +34,7 @@ var _chunkT2KOQH57cjs = require('./chunk-T2KOQH57.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkR2HP743Tcjs = require('./chunk-R2HP743T.cjs');
|
|
38
38
|
|
|
39
39
|
// src/WithdrawModal.tsx
|
|
40
40
|
|
|
@@ -107,8 +107,8 @@ function WithdrawFormStep({
|
|
|
107
107
|
const chainMismatch = Boolean(
|
|
108
108
|
_optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
|
|
109
109
|
);
|
|
110
|
-
const targetSymbol =
|
|
111
|
-
const targetChainName =
|
|
110
|
+
const targetSymbol = _chunkR2HP743Tcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
111
|
+
const targetChainName = _chunkR2HP743Tcjs.getChainName.call(void 0, targetChain);
|
|
112
112
|
const isBusy = submitting || isSubmitting;
|
|
113
113
|
const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
|
|
114
114
|
_react.useEffect.call(void 0, () => {
|
|
@@ -127,7 +127,7 @@ function WithdrawFormStep({
|
|
|
127
127
|
setIsSwitching(true);
|
|
128
128
|
switchChain(asset.chainId).catch((err) => {
|
|
129
129
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
130
|
-
setError(
|
|
130
|
+
setError(_chunkNFXJEOE6cjs.formatUserError.call(void 0, raw));
|
|
131
131
|
}).finally(() => {
|
|
132
132
|
setIsSwitching(false);
|
|
133
133
|
});
|
|
@@ -147,7 +147,7 @@ function WithdrawFormStep({
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
try {
|
|
150
|
-
const bal =
|
|
150
|
+
const bal = _chunkNFXJEOE6cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
151
151
|
address: asset.token,
|
|
152
152
|
abi: _viem.erc20Abi,
|
|
153
153
|
functionName: "balanceOf",
|
|
@@ -250,7 +250,7 @@ function WithdrawFormStep({
|
|
|
250
250
|
await onSubmit(recipient, amount);
|
|
251
251
|
} catch (err) {
|
|
252
252
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
253
|
-
setError(
|
|
253
|
+
setError(_chunkNFXJEOE6cjs.formatUserError.call(void 0, raw));
|
|
254
254
|
} finally {
|
|
255
255
|
setIsSubmitting(false);
|
|
256
256
|
}
|
|
@@ -258,11 +258,11 @@ function WithdrawFormStep({
|
|
|
258
258
|
if (isBalanceLoading) {
|
|
259
259
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
260
260
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
|
|
261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFXJEOE6cjs.Spinner, { className: "rs-spinner--lg" }),
|
|
262
262
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
263
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${
|
|
263
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkR2HP743Tcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
264
264
|
] }),
|
|
265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFXJEOE6cjs.PoweredBy, {})
|
|
266
266
|
] });
|
|
267
267
|
}
|
|
268
268
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
@@ -361,7 +361,7 @@ function WithdrawFormStep({
|
|
|
361
361
|
] })
|
|
362
362
|
] }),
|
|
363
363
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkNFXJEOE6cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
365
365
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
366
366
|
"Balance: ",
|
|
367
367
|
formattedBalance,
|
|
@@ -390,10 +390,10 @@ function WithdrawFormStep({
|
|
|
390
390
|
},
|
|
391
391
|
children: [
|
|
392
392
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
393
|
-
|
|
393
|
+
_chunkR2HP743Tcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
394
|
"img",
|
|
395
395
|
{
|
|
396
|
-
src:
|
|
396
|
+
src: _chunkR2HP743Tcjs.getTokenIcon.call(void 0, targetSymbol),
|
|
397
397
|
alt: targetSymbol,
|
|
398
398
|
className: "rs-withdraw-dropdown-icon"
|
|
399
399
|
}
|
|
@@ -434,10 +434,10 @@ function WithdrawFormStep({
|
|
|
434
434
|
setShowTokenDropdown(false);
|
|
435
435
|
},
|
|
436
436
|
children: [
|
|
437
|
-
|
|
437
|
+
_chunkR2HP743Tcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
438
438
|
"img",
|
|
439
439
|
{
|
|
440
|
-
src:
|
|
440
|
+
src: _chunkR2HP743Tcjs.getTokenIcon.call(void 0, option.symbol),
|
|
441
441
|
alt: option.symbol,
|
|
442
442
|
className: "rs-withdraw-dropdown-icon"
|
|
443
443
|
}
|
|
@@ -470,10 +470,10 @@ function WithdrawFormStep({
|
|
|
470
470
|
},
|
|
471
471
|
children: [
|
|
472
472
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
473
|
-
|
|
473
|
+
_chunkR2HP743Tcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
474
474
|
"img",
|
|
475
475
|
{
|
|
476
|
-
src:
|
|
476
|
+
src: _chunkR2HP743Tcjs.getChainIcon.call(void 0, targetChain),
|
|
477
477
|
alt: targetChainName,
|
|
478
478
|
className: "rs-withdraw-dropdown-icon"
|
|
479
479
|
}
|
|
@@ -514,10 +514,10 @@ function WithdrawFormStep({
|
|
|
514
514
|
setShowChainDropdown(false);
|
|
515
515
|
},
|
|
516
516
|
children: [
|
|
517
|
-
|
|
517
|
+
_chunkR2HP743Tcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
518
518
|
"img",
|
|
519
519
|
{
|
|
520
|
-
src:
|
|
520
|
+
src: _chunkR2HP743Tcjs.getChainIcon.call(void 0, chain.id),
|
|
521
521
|
alt: chain.name,
|
|
522
522
|
className: "rs-withdraw-dropdown-icon"
|
|
523
523
|
}
|
|
@@ -532,7 +532,7 @@ function WithdrawFormStep({
|
|
|
532
532
|
)
|
|
533
533
|
] })
|
|
534
534
|
] }),
|
|
535
|
-
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 ${
|
|
535
|
+
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 ${_chunkR2HP743Tcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkR2HP743Tcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
536
536
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
|
|
537
537
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
538
|
"svg",
|
|
@@ -555,7 +555,7 @@ function WithdrawFormStep({
|
|
|
555
555
|
] })
|
|
556
556
|
] }),
|
|
557
557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
-
|
|
558
|
+
_chunkNFXJEOE6cjs.Button,
|
|
559
559
|
{
|
|
560
560
|
onClick: handleWithdraw,
|
|
561
561
|
fullWidth: true,
|
|
@@ -564,7 +564,7 @@ function WithdrawFormStep({
|
|
|
564
564
|
children: isBusy ? "Preparing..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
|
|
565
565
|
}
|
|
566
566
|
) }),
|
|
567
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFXJEOE6cjs.PoweredBy, {})
|
|
568
568
|
] });
|
|
569
569
|
}
|
|
570
570
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -647,7 +647,7 @@ async function executeSafeEthTransfer(params) {
|
|
|
647
647
|
throw new Error("Wallet not connected");
|
|
648
648
|
}
|
|
649
649
|
if (chain.id !== chainId) {
|
|
650
|
-
throw new Error(`Switch to ${
|
|
650
|
+
throw new Error(`Switch to ${_chunkR2HP743Tcjs.getChainName.call(void 0, chainId)} to sign`);
|
|
651
651
|
}
|
|
652
652
|
const isOwner = await publicClient.readContract({
|
|
653
653
|
address: safeAddress,
|
|
@@ -730,7 +730,7 @@ async function executeSafeErc20Transfer(params) {
|
|
|
730
730
|
throw new Error("Wallet not connected");
|
|
731
731
|
}
|
|
732
732
|
if (chain.id !== chainId) {
|
|
733
|
-
throw new Error(`Switch to ${
|
|
733
|
+
throw new Error(`Switch to ${_chunkR2HP743Tcjs.getChainName.call(void 0, chainId)} to sign`);
|
|
734
734
|
}
|
|
735
735
|
const isOwner = await publicClient.readContract({
|
|
736
736
|
address: safeAddress,
|
|
@@ -870,7 +870,7 @@ function WithdrawFlow({
|
|
|
870
870
|
amount: defaultAmount,
|
|
871
871
|
service,
|
|
872
872
|
allowedRoutes,
|
|
873
|
-
signerAddress =
|
|
873
|
+
signerAddress = _chunkR2HP743Tcjs.DEFAULT_SIGNER_ADDRESS,
|
|
874
874
|
sessionChainIds,
|
|
875
875
|
forceRegister = false,
|
|
876
876
|
waitForFinalTx = true,
|
|
@@ -891,27 +891,27 @@ function WithdrawFlow({
|
|
|
891
891
|
onError,
|
|
892
892
|
debug
|
|
893
893
|
}) {
|
|
894
|
-
const onStepChangeRef =
|
|
895
|
-
const onTotalBalanceChangeRef =
|
|
896
|
-
const onEventRef =
|
|
897
|
-
const onConnectedRef =
|
|
898
|
-
const onWithdrawSubmittedRef =
|
|
899
|
-
const onWithdrawCompleteRef =
|
|
900
|
-
const onWithdrawFailedRef =
|
|
901
|
-
const onErrorRef =
|
|
894
|
+
const onStepChangeRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onStepChange);
|
|
895
|
+
const onTotalBalanceChangeRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onTotalBalanceChange);
|
|
896
|
+
const onEventRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onEvent);
|
|
897
|
+
const onConnectedRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onConnected);
|
|
898
|
+
const onWithdrawSubmittedRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onWithdrawSubmitted);
|
|
899
|
+
const onWithdrawCompleteRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onWithdrawComplete);
|
|
900
|
+
const onWithdrawFailedRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onWithdrawFailed);
|
|
901
|
+
const onErrorRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onError);
|
|
902
902
|
const [step, setStep] = _react.useState.call(void 0, { type: "form" });
|
|
903
903
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
904
904
|
const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
|
|
905
905
|
const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
|
|
906
906
|
const logFlow = _react.useCallback.call(void 0,
|
|
907
907
|
(message, data) => {
|
|
908
|
-
|
|
908
|
+
_chunkNFXJEOE6cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
909
909
|
},
|
|
910
910
|
[debug]
|
|
911
911
|
);
|
|
912
912
|
const logFlowError = _react.useCallback.call(void 0,
|
|
913
913
|
(message, error, data) => {
|
|
914
|
-
|
|
914
|
+
_chunkNFXJEOE6cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
915
915
|
},
|
|
916
916
|
[debug]
|
|
917
917
|
);
|
|
@@ -970,14 +970,14 @@ function WithdrawFlow({
|
|
|
970
970
|
return {
|
|
971
971
|
ownerAddress: dappAddress,
|
|
972
972
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
973
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
973
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNFXJEOE6cjs.getPublicClient.call(void 0, sourceChain))),
|
|
974
974
|
switchChain: dappSwitchChain
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
977
|
return {
|
|
978
978
|
ownerAddress: dappWalletClient.account.address,
|
|
979
979
|
walletClient: dappWalletClient,
|
|
980
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
980
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNFXJEOE6cjs.getPublicClient.call(void 0, sourceChain))),
|
|
981
981
|
switchChain: dappSwitchChain
|
|
982
982
|
};
|
|
983
983
|
}
|
|
@@ -988,7 +988,7 @@ function WithdrawFlow({
|
|
|
988
988
|
return {
|
|
989
989
|
ownerAddress: dappWalletClient.account.address,
|
|
990
990
|
walletClient: dappWalletClient,
|
|
991
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
991
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNFXJEOE6cjs.getPublicClient.call(void 0, sourceChain))),
|
|
992
992
|
switchChain: dappSwitchChain
|
|
993
993
|
};
|
|
994
994
|
}
|
|
@@ -1015,10 +1015,10 @@ function WithdrawFlow({
|
|
|
1015
1015
|
sourceChain
|
|
1016
1016
|
]);
|
|
1017
1017
|
const asset = _react.useMemo.call(void 0, () => {
|
|
1018
|
-
const symbol =
|
|
1019
|
-
const decimals =
|
|
1018
|
+
const symbol = _chunkR2HP743Tcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1019
|
+
const decimals = _chunkR2HP743Tcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1020
1020
|
return {
|
|
1021
|
-
id:
|
|
1021
|
+
id: _chunkNFXJEOE6cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1022
1022
|
chainId: sourceChain,
|
|
1023
1023
|
token: sourceToken,
|
|
1024
1024
|
symbol,
|
|
@@ -1026,7 +1026,7 @@ function WithdrawFlow({
|
|
|
1026
1026
|
decimals
|
|
1027
1027
|
};
|
|
1028
1028
|
}, [sourceChain, sourceToken]);
|
|
1029
|
-
const isSourceNative = sourceToken.toLowerCase() ===
|
|
1029
|
+
const isSourceNative = sourceToken.toLowerCase() === _chunkR2HP743Tcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
|
|
1030
1030
|
const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
|
|
1031
1031
|
const stepIndex = step.type === "form" ? 0 : 1;
|
|
1032
1032
|
const currentBackHandler = void 0;
|
|
@@ -1044,8 +1044,8 @@ function WithdrawFlow({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
lastStepOpenEventKeyRef.current = "form";
|
|
1046
1046
|
if (step.type === "form") {
|
|
1047
|
-
const tokenSymbol =
|
|
1048
|
-
const chainName =
|
|
1047
|
+
const tokenSymbol = _chunkR2HP743Tcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1048
|
+
const chainName = _chunkR2HP743Tcjs.getChainName.call(void 0, targetChain);
|
|
1049
1049
|
_optionalChain([onEventRef, 'access', _22 => _22.current, 'optionalCall', _23 => _23({
|
|
1050
1050
|
type: "withdraw_modal_select_amount_open",
|
|
1051
1051
|
pred_balance: totalBalanceUsd,
|
|
@@ -1090,15 +1090,15 @@ function WithdrawFlow({
|
|
|
1090
1090
|
[logFlowError, onErrorRef]
|
|
1091
1091
|
);
|
|
1092
1092
|
const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
|
|
1093
|
-
const localOwner =
|
|
1093
|
+
const localOwner = _chunkNFXJEOE6cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
1094
1094
|
if (localOwner) {
|
|
1095
1095
|
return {
|
|
1096
|
-
account:
|
|
1096
|
+
account: _chunkNFXJEOE6cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
1097
1097
|
address: localOwner.address
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
|
-
const created =
|
|
1101
|
-
|
|
1100
|
+
const created = _chunkNFXJEOE6cjs.createSessionOwnerKey.call(void 0, );
|
|
1101
|
+
_chunkNFXJEOE6cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
1102
1102
|
return {
|
|
1103
1103
|
account: created.account,
|
|
1104
1104
|
address: created.address
|
|
@@ -1106,8 +1106,8 @@ function WithdrawFlow({
|
|
|
1106
1106
|
}, []);
|
|
1107
1107
|
const handleFormSubmit = _react.useCallback.call(void 0,
|
|
1108
1108
|
async (recipient, amountValue) => {
|
|
1109
|
-
const tokenSymbol =
|
|
1110
|
-
const chainName =
|
|
1109
|
+
const tokenSymbol = _chunkR2HP743Tcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1110
|
+
const chainName = _chunkR2HP743Tcjs.getChainName.call(void 0, targetChain);
|
|
1111
1111
|
_optionalChain([onEventRef, 'access', _30 => _30.current, 'optionalCall', _31 => _31({
|
|
1112
1112
|
type: "withdraw_modal_select_amount_cta_click",
|
|
1113
1113
|
pred_balance: totalBalanceUsd,
|
|
@@ -1138,7 +1138,7 @@ function WithdrawFlow({
|
|
|
1138
1138
|
const setup = await service.setupAccount({
|
|
1139
1139
|
ownerAddress: ownerAddress2,
|
|
1140
1140
|
sessionOwnerAddress: sessionOwner.address,
|
|
1141
|
-
targetChain:
|
|
1141
|
+
targetChain: _chunkNFXJEOE6cjs.toEvmCaip2.call(void 0, targetChain),
|
|
1142
1142
|
targetToken,
|
|
1143
1143
|
recipient,
|
|
1144
1144
|
signerAddress,
|
|
@@ -1166,7 +1166,7 @@ function WithdrawFlow({
|
|
|
1166
1166
|
primaryType: typedData.primaryType,
|
|
1167
1167
|
message: typedData.message
|
|
1168
1168
|
});
|
|
1169
|
-
const sessionDetails =
|
|
1169
|
+
const sessionDetails = _chunkNFXJEOE6cjs.buildSessionDetails.call(void 0,
|
|
1170
1170
|
setup.sessionDetailsUnsigned,
|
|
1171
1171
|
signature
|
|
1172
1172
|
);
|
|
@@ -1180,7 +1180,7 @@ function WithdrawFlow({
|
|
|
1180
1180
|
eoaAddress: ownerAddress2,
|
|
1181
1181
|
sessionOwner: sessionOwner.address,
|
|
1182
1182
|
target: {
|
|
1183
|
-
chain:
|
|
1183
|
+
chain: _chunkNFXJEOE6cjs.toEvmCaip2.call(void 0, targetChain),
|
|
1184
1184
|
token: targetToken,
|
|
1185
1185
|
recipient
|
|
1186
1186
|
}
|
|
@@ -1189,7 +1189,7 @@ function WithdrawFlow({
|
|
|
1189
1189
|
}
|
|
1190
1190
|
handleConnected(ownerAddress2, smartAccount);
|
|
1191
1191
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1192
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _34 => _34.publicClient]), () => (
|
|
1192
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _34 => _34.publicClient]), () => ( _chunkNFXJEOE6cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1193
1193
|
let result;
|
|
1194
1194
|
if (onSignTransaction) {
|
|
1195
1195
|
const transferTarget = isSameRoute ? recipient : smartAccount;
|
|
@@ -1213,7 +1213,7 @@ function WithdrawFlow({
|
|
|
1213
1213
|
const { signature } = await onSignTransaction(request);
|
|
1214
1214
|
const relayResult = await service.relayWithdraw({
|
|
1215
1215
|
smartAccount,
|
|
1216
|
-
chainId:
|
|
1216
|
+
chainId: _chunkNFXJEOE6cjs.toEvmCaip2.call(void 0, sourceChain),
|
|
1217
1217
|
safeAddress,
|
|
1218
1218
|
safeTransaction: request.typedData.message,
|
|
1219
1219
|
signature
|
|
@@ -1272,7 +1272,7 @@ function WithdrawFlow({
|
|
|
1272
1272
|
targetChain,
|
|
1273
1273
|
targetToken
|
|
1274
1274
|
});
|
|
1275
|
-
handleError(
|
|
1275
|
+
handleError(_chunkNFXJEOE6cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1276
1276
|
throw err;
|
|
1277
1277
|
} finally {
|
|
1278
1278
|
setIsSubmitting(false);
|
|
@@ -1334,9 +1334,9 @@ function WithdrawFlow({
|
|
|
1334
1334
|
[_optionalChain([allowedRoutes, 'optionalAccess', _44 => _44.sourceTokens])]
|
|
1335
1335
|
);
|
|
1336
1336
|
const targetChainOptions = _react.useMemo.call(void 0, () => {
|
|
1337
|
-
return
|
|
1337
|
+
return _chunkR2HP743Tcjs.SOURCE_CHAINS.filter((chain) => {
|
|
1338
1338
|
if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
|
|
1339
|
-
const tokens =
|
|
1339
|
+
const tokens = _chunkR2HP743Tcjs.getSupportedTargetTokens.call(void 0, chain.id);
|
|
1340
1340
|
if (allowedTokenSet) {
|
|
1341
1341
|
return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1342
1342
|
}
|
|
@@ -1344,7 +1344,7 @@ function WithdrawFlow({
|
|
|
1344
1344
|
});
|
|
1345
1345
|
}, [allowedChainSet, allowedTokenSet]);
|
|
1346
1346
|
const targetTokenOptions = _react.useMemo.call(void 0, () => {
|
|
1347
|
-
const tokens =
|
|
1347
|
+
const tokens = _chunkR2HP743Tcjs.getSupportedTargetTokens.call(void 0, targetChain);
|
|
1348
1348
|
if (!allowedTokenSet) return tokens;
|
|
1349
1349
|
return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1350
1350
|
}, [targetChain, allowedTokenSet]);
|
|
@@ -1360,7 +1360,7 @@ function WithdrawFlow({
|
|
|
1360
1360
|
const handleTargetChainChange = _react.useCallback.call(void 0,
|
|
1361
1361
|
(chainId) => {
|
|
1362
1362
|
setTargetChain(chainId);
|
|
1363
|
-
let options =
|
|
1363
|
+
let options = _chunkR2HP743Tcjs.getSupportedTargetTokens.call(void 0, chainId);
|
|
1364
1364
|
if (allowedTokenSet) {
|
|
1365
1365
|
options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1366
1366
|
}
|
|
@@ -1411,7 +1411,7 @@ function WithdrawFlow({
|
|
|
1411
1411
|
}, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _51 => _51.icon])]);
|
|
1412
1412
|
if (showConnectStep) {
|
|
1413
1413
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1414
|
-
|
|
1414
|
+
_chunkNFXJEOE6cjs.ConnectStep,
|
|
1415
1415
|
{
|
|
1416
1416
|
walletOptions,
|
|
1417
1417
|
selectedWalletId: selectedWalletIdEffective,
|
|
@@ -1432,7 +1432,7 @@ function WithdrawFlow({
|
|
|
1432
1432
|
if (!signerContext) return null;
|
|
1433
1433
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1434
1434
|
const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _52 => _52.kind]) === "external" ? selectedWalletOption.address : void 0;
|
|
1435
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1435
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkNFXJEOE6cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1436
1436
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
1437
1437
|
step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1438
1438
|
WithdrawFormStep,
|
|
@@ -1458,7 +1458,7 @@ function WithdrawFlow({
|
|
|
1458
1458
|
}
|
|
1459
1459
|
),
|
|
1460
1460
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1461
|
-
|
|
1461
|
+
_chunkNFXJEOE6cjs.ProcessingStep,
|
|
1462
1462
|
{
|
|
1463
1463
|
smartAccount: step.smartAccount,
|
|
1464
1464
|
txHash: step.txHash,
|
|
@@ -1485,7 +1485,7 @@ function WithdrawFlow({
|
|
|
1485
1485
|
// src/WithdrawModal.tsx
|
|
1486
1486
|
|
|
1487
1487
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1488
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1488
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-Z5BUZQ4Z.cjs"))).then((m) => ({
|
|
1489
1489
|
default: m.WithdrawModalReown
|
|
1490
1490
|
}))
|
|
1491
1491
|
);
|
|
@@ -1513,8 +1513,8 @@ function WithdrawModalInner({
|
|
|
1513
1513
|
inline,
|
|
1514
1514
|
closeOnOverlayClick,
|
|
1515
1515
|
allowedRoutes,
|
|
1516
|
-
backendUrl =
|
|
1517
|
-
signerAddress =
|
|
1516
|
+
backendUrl = _chunkR2HP743Tcjs.DEFAULT_BACKEND_URL,
|
|
1517
|
+
signerAddress = _chunkR2HP743Tcjs.DEFAULT_SIGNER_ADDRESS,
|
|
1518
1518
|
sessionChainIds,
|
|
1519
1519
|
forceRegister = false,
|
|
1520
1520
|
waitForFinalTx = true,
|
|
@@ -1538,19 +1538,19 @@ function WithdrawModalInner({
|
|
|
1538
1538
|
debug
|
|
1539
1539
|
}) {
|
|
1540
1540
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1541
|
-
const onReadyRef =
|
|
1541
|
+
const onReadyRef = _chunkNFXJEOE6cjs.useLatestRef.call(void 0, onReady);
|
|
1542
1542
|
const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
|
|
1543
1543
|
const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
|
|
1544
1544
|
const backHandlerRef = _react.useRef.call(void 0, void 0);
|
|
1545
|
-
const targetChain =
|
|
1546
|
-
const sourceChain =
|
|
1545
|
+
const targetChain = _chunkR2HP743Tcjs.getChainId.call(void 0, targetChainProp);
|
|
1546
|
+
const sourceChain = _chunkR2HP743Tcjs.getChainId.call(void 0, sourceChainProp);
|
|
1547
1547
|
const service = _react.useMemo.call(void 0,
|
|
1548
|
-
() =>
|
|
1548
|
+
() => _chunkNFXJEOE6cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1549
1549
|
[backendUrl, debug]
|
|
1550
1550
|
);
|
|
1551
1551
|
_react.useEffect.call(void 0, () => {
|
|
1552
1552
|
if (isOpen && modalRef.current) {
|
|
1553
|
-
|
|
1553
|
+
_chunkNFXJEOE6cjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1554
1554
|
}
|
|
1555
1555
|
}, [isOpen, theme]);
|
|
1556
1556
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1584,7 +1584,7 @@ function WithdrawModalInner({
|
|
|
1584
1584
|
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _62 => _62.title]), () => ( "Withdraw"));
|
|
1585
1585
|
const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
|
|
1586
1586
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1587
|
-
|
|
1587
|
+
_chunkNFXJEOE6cjs.Modal,
|
|
1588
1588
|
{
|
|
1589
1589
|
isOpen,
|
|
1590
1590
|
onClose,
|
|
@@ -1643,7 +1643,7 @@ function WithdrawModalInner({
|
|
|
1643
1643
|
] }),
|
|
1644
1644
|
balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
|
|
1645
1645
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
|
|
1646
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ?
|
|
1646
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkNFXJEOE6cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
|
|
1647
1647
|
] })
|
|
1648
1648
|
] }),
|
|
1649
1649
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -30,7 +30,15 @@ var SUPPORTED_TOKEN_MATRIX = {
|
|
|
30
30
|
ETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
|
|
31
31
|
WETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
|
|
32
32
|
USDC: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
|
|
33
|
-
USDT: [
|
|
33
|
+
USDT: [
|
|
34
|
+
_chains.mainnet.id,
|
|
35
|
+
_chains.arbitrum.id,
|
|
36
|
+
_chains.optimism.id,
|
|
37
|
+
_chains.polygon.id,
|
|
38
|
+
_chains.bsc.id,
|
|
39
|
+
_chains.plasma.id,
|
|
40
|
+
_chains.soneium.id
|
|
41
|
+
]
|
|
34
42
|
};
|
|
35
43
|
var CHAIN_DISPLAY_ORDER = [
|
|
36
44
|
_chains.mainnet.id,
|
|
@@ -214,6 +222,11 @@ var chainRegistry = {
|
|
|
214
222
|
symbol: "WETH",
|
|
215
223
|
address: "0x4200000000000000000000000000000000000006",
|
|
216
224
|
decimals: 18
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
symbol: "USDT",
|
|
228
|
+
address: "0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35",
|
|
229
|
+
decimals: 6
|
|
217
230
|
}
|
|
218
231
|
]
|
|
219
232
|
}
|
|
@@ -30,7 +30,15 @@ var SUPPORTED_TOKEN_MATRIX = {
|
|
|
30
30
|
ETH: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id, soneium.id],
|
|
31
31
|
WETH: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id, soneium.id],
|
|
32
32
|
USDC: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id, soneium.id],
|
|
33
|
-
USDT: [
|
|
33
|
+
USDT: [
|
|
34
|
+
mainnet.id,
|
|
35
|
+
arbitrum.id,
|
|
36
|
+
optimism.id,
|
|
37
|
+
polygon.id,
|
|
38
|
+
bsc.id,
|
|
39
|
+
plasma.id,
|
|
40
|
+
soneium.id
|
|
41
|
+
]
|
|
34
42
|
};
|
|
35
43
|
var CHAIN_DISPLAY_ORDER = [
|
|
36
44
|
mainnet.id,
|
|
@@ -214,6 +222,11 @@ var chainRegistry = {
|
|
|
214
222
|
symbol: "WETH",
|
|
215
223
|
address: "0x4200000000000000000000000000000000000006",
|
|
216
224
|
decimals: 18
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
symbol: "USDT",
|
|
228
|
+
address: "0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35",
|
|
229
|
+
decimals: 6
|
|
217
230
|
}
|
|
218
231
|
]
|
|
219
232
|
}
|
package/dist/constants.cjs
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkR2HP743Tcjs = require('./chunk-R2HP743T.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -57,4 +57,4 @@ var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
exports.CHAIN_BY_ID =
|
|
60
|
+
exports.CHAIN_BY_ID = _chunkR2HP743Tcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR2HP743Tcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR2HP743Tcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkR2HP743Tcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR2HP743Tcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR2HP743Tcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkR2HP743Tcjs.chainRegistry; exports.findChainIdForToken = _chunkR2HP743Tcjs.findChainIdForToken; exports.getChainBadge = _chunkR2HP743Tcjs.getChainBadge; exports.getChainIcon = _chunkR2HP743Tcjs.getChainIcon; exports.getChainId = _chunkR2HP743Tcjs.getChainId; exports.getChainName = _chunkR2HP743Tcjs.getChainName; exports.getChainObject = _chunkR2HP743Tcjs.getChainObject; exports.getExplorerName = _chunkR2HP743Tcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR2HP743Tcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR2HP743Tcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR2HP743Tcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR2HP743Tcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR2HP743Tcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR2HP743Tcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR2HP743Tcjs.getTokenAddress; exports.getTokenDecimals = _chunkR2HP743Tcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR2HP743Tcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR2HP743Tcjs.getTokenIcon; exports.getTokenSymbol = _chunkR2HP743Tcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR2HP743Tcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR2HP743Tcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR2HP743Tcjs.isSupportedTokenAddressForChain;
|
package/dist/constants.mjs
CHANGED
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkARGMXV6Ecjs = require('./chunk-ARGMXV6E.cjs');
|
|
4
|
+
require('./chunk-NFXJEOE6.cjs');
|
|
5
|
+
require('./chunk-R2HP743T.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkARGMXV6Ecjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkARGMXV6Ecjs = require('./chunk-ARGMXV6E.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQUOP5C6Vcjs = require('./chunk-QUOP5C6V.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-NFXJEOE6.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -37,7 +37,7 @@ require('./chunk-T2KOQH57.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkR2HP743Tcjs = require('./chunk-R2HP743T.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
@@ -70,4 +70,4 @@ var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
exports.CHAIN_BY_ID =
|
|
73
|
+
exports.CHAIN_BY_ID = _chunkR2HP743Tcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR2HP743Tcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR2HP743Tcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkARGMXV6Ecjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR2HP743Tcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR2HP743Tcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR2HP743Tcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkQUOP5C6Vcjs.WithdrawModal; exports.chainRegistry = _chunkR2HP743Tcjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkR2HP743Tcjs.findChainIdForToken; exports.getChainBadge = _chunkR2HP743Tcjs.getChainBadge; exports.getChainIcon = _chunkR2HP743Tcjs.getChainIcon; exports.getChainId = _chunkR2HP743Tcjs.getChainId; exports.getChainName = _chunkR2HP743Tcjs.getChainName; exports.getChainObject = _chunkR2HP743Tcjs.getChainObject; exports.getExplorerName = _chunkR2HP743Tcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR2HP743Tcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR2HP743Tcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR2HP743Tcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR2HP743Tcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR2HP743Tcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR2HP743Tcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR2HP743Tcjs.getTokenAddress; exports.getTokenDecimals = _chunkR2HP743Tcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR2HP743Tcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR2HP743Tcjs.getTokenIcon; exports.getTokenSymbol = _chunkR2HP743Tcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR2HP743Tcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR2HP743Tcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR2HP743Tcjs.isSupportedTokenAddressForChain;
|