@rhinestone/deposit-modal 0.1.53 → 0.1.55
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-LNZ46L4O.mjs → DepositModalReown-5QKEE7R3.mjs} +3 -3
- package/dist/{DepositModalReown-OXAW4Y7O.cjs → DepositModalReown-XKP2Z55X.cjs} +4 -4
- package/dist/{WithdrawModalReown-V3ZJESQ5.cjs → WithdrawModalReown-CN2NJUYL.cjs} +4 -4
- package/dist/{WithdrawModalReown-EE74V66X.mjs → WithdrawModalReown-K57JK52O.mjs} +3 -3
- package/dist/{chunk-ZB5Y2ACC.mjs → chunk-AJUR6FAP.mjs} +23 -8
- package/dist/{chunk-ZJQZEIHA.mjs → chunk-CIXHTOO3.mjs} +1 -1
- package/dist/{chunk-DBBSH7HP.cjs → chunk-EAEDK474.cjs} +58 -32
- package/dist/{chunk-REDAO3MS.mjs → chunk-JQTV5JTB.mjs} +37 -11
- package/dist/{chunk-47WDWD6Z.cjs → chunk-QJVXCBUI.cjs} +231 -216
- package/dist/{chunk-4BL7RCZB.mjs → chunk-QOEACKBH.mjs} +53 -27
- package/dist/{chunk-NELAYNA3.cjs → chunk-R6U6BHCV.cjs} +1 -1
- package/dist/{chunk-K57KO3SW.cjs → chunk-XMNGYDDB.cjs} +120 -94
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/reown.cjs +5 -5
- package/dist/reown.d.cts +1 -1
- package/dist/reown.d.ts +1 -1
- package/dist/reown.mjs +4 -4
- package/dist/styles.css +45 -55
- package/dist/{types-D1nvo2dK.d.ts → types-B7UuWCtD.d.ts} +3 -0
- package/dist/{types-DgiqazTb.d.cts → types-CL7ec666.d.cts} +3 -0
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkEAEDK474cjs = require('./chunk-EAEDK474.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ var _chunkDBBSH7HPcjs = require('./chunk-DBBSH7HP.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
|
|
37
37
|
|
|
38
38
|
// src/WithdrawModal.tsx
|
|
39
39
|
|
|
@@ -121,8 +121,8 @@ function WithdrawFormStep({
|
|
|
121
121
|
const chainMismatch = Boolean(
|
|
122
122
|
_optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
|
|
123
123
|
);
|
|
124
|
-
const targetSymbol =
|
|
125
|
-
const targetChainName =
|
|
124
|
+
const targetSymbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
125
|
+
const targetChainName = _chunkR6U6BHCVcjs.getChainName.call(void 0, targetChain);
|
|
126
126
|
const isBusy = submitting || isSubmitting;
|
|
127
127
|
const seededRecipientRef = _react.useRef.call(void 0, seededRecipient);
|
|
128
128
|
_react.useEffect.call(void 0, () => {
|
|
@@ -141,7 +141,7 @@ function WithdrawFormStep({
|
|
|
141
141
|
setIsSwitching(true);
|
|
142
142
|
switchChain(asset.chainId).catch((err) => {
|
|
143
143
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
144
|
-
setError(
|
|
144
|
+
setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
|
|
145
145
|
}).finally(() => {
|
|
146
146
|
setIsSwitching(false);
|
|
147
147
|
});
|
|
@@ -161,7 +161,7 @@ function WithdrawFormStep({
|
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
|
-
const bal =
|
|
164
|
+
const bal = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
165
165
|
address: asset.token,
|
|
166
166
|
abi: _viem.erc20Abi,
|
|
167
167
|
functionName: "balanceOf",
|
|
@@ -264,7 +264,7 @@ function WithdrawFormStep({
|
|
|
264
264
|
await onSubmit(recipient, amount);
|
|
265
265
|
} catch (err) {
|
|
266
266
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
267
|
-
setError(
|
|
267
|
+
setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
|
|
268
268
|
} finally {
|
|
269
269
|
setIsSubmitting(false);
|
|
270
270
|
}
|
|
@@ -272,17 +272,17 @@ function WithdrawFormStep({
|
|
|
272
272
|
if (isBalanceLoading) {
|
|
273
273
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
|
|
275
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-spinner--lg" }),
|
|
276
276
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
277
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${
|
|
277
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
278
278
|
] }),
|
|
279
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
279
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
|
|
280
280
|
] });
|
|
281
281
|
}
|
|
282
282
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
283
283
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-form", children: [
|
|
284
284
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
|
|
285
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Recipient" }),
|
|
285
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Recipient address" }),
|
|
286
286
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-input-row", children: [
|
|
287
287
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
288
288
|
"input",
|
|
@@ -304,15 +304,18 @@ function WithdrawFormStep({
|
|
|
304
304
|
className: `rs-withdraw-use-connected ${isRecipientConnected ? "rs-withdraw-use-connected--active" : ""}`,
|
|
305
305
|
onClick: handleUseConnected,
|
|
306
306
|
title: isRecipientConnected ? "Using connected wallet" : "Use connected wallet",
|
|
307
|
-
children: walletIcon ? /* @__PURE__ */ _jsxruntime.
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
307
|
+
children: walletIcon ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
308
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
309
|
+
"img",
|
|
310
|
+
{
|
|
311
|
+
src: walletIcon,
|
|
312
|
+
alt: "Wallet",
|
|
313
|
+
style: { width: 18, height: 18, borderRadius: 4 },
|
|
314
|
+
className: "rs-withdraw-use-connected-icon"
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
isRecipientConnected ? null : "Use connected"
|
|
318
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
316
319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
317
320
|
"svg",
|
|
318
321
|
{
|
|
@@ -331,7 +334,7 @@ function WithdrawFormStep({
|
|
|
331
334
|
)
|
|
332
335
|
}
|
|
333
336
|
),
|
|
334
|
-
isRecipientConnected ? null : "
|
|
337
|
+
isRecipientConnected ? null : "Use connected"
|
|
335
338
|
] })
|
|
336
339
|
}
|
|
337
340
|
)
|
|
@@ -372,8 +375,9 @@ function WithdrawFormStep({
|
|
|
372
375
|
] })
|
|
373
376
|
] }),
|
|
374
377
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
376
379
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
380
|
+
"Balance: ",
|
|
377
381
|
formattedBalance,
|
|
378
382
|
" ",
|
|
379
383
|
asset.symbol
|
|
@@ -382,7 +386,7 @@ function WithdrawFormStep({
|
|
|
382
386
|
] }),
|
|
383
387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-receive-row", children: [
|
|
384
388
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-receive-col", children: [
|
|
385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Receive" }),
|
|
389
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Receive token" }),
|
|
386
390
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
387
391
|
"div",
|
|
388
392
|
{
|
|
@@ -400,10 +404,10 @@ function WithdrawFormStep({
|
|
|
400
404
|
},
|
|
401
405
|
children: [
|
|
402
406
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
403
|
-
|
|
407
|
+
_chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
404
408
|
"img",
|
|
405
409
|
{
|
|
406
|
-
src:
|
|
410
|
+
src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol),
|
|
407
411
|
alt: targetSymbol,
|
|
408
412
|
className: "rs-withdraw-dropdown-icon"
|
|
409
413
|
}
|
|
@@ -444,10 +448,10 @@ function WithdrawFormStep({
|
|
|
444
448
|
setShowTokenDropdown(false);
|
|
445
449
|
},
|
|
446
450
|
children: [
|
|
447
|
-
|
|
451
|
+
_chunkR6U6BHCVcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
448
452
|
"img",
|
|
449
453
|
{
|
|
450
|
-
src:
|
|
454
|
+
src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, option.symbol),
|
|
451
455
|
alt: option.symbol,
|
|
452
456
|
className: "rs-withdraw-dropdown-icon"
|
|
453
457
|
}
|
|
@@ -462,7 +466,7 @@ function WithdrawFormStep({
|
|
|
462
466
|
)
|
|
463
467
|
] }),
|
|
464
468
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-receive-col", children: [
|
|
465
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "
|
|
469
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Receive chain" }),
|
|
466
470
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
467
471
|
"div",
|
|
468
472
|
{
|
|
@@ -480,10 +484,10 @@ function WithdrawFormStep({
|
|
|
480
484
|
},
|
|
481
485
|
children: [
|
|
482
486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
483
|
-
|
|
487
|
+
_chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
488
|
"img",
|
|
485
489
|
{
|
|
486
|
-
src:
|
|
490
|
+
src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain),
|
|
487
491
|
alt: targetChainName,
|
|
488
492
|
className: "rs-withdraw-dropdown-icon"
|
|
489
493
|
}
|
|
@@ -524,10 +528,10 @@ function WithdrawFormStep({
|
|
|
524
528
|
setShowChainDropdown(false);
|
|
525
529
|
},
|
|
526
530
|
children: [
|
|
527
|
-
|
|
531
|
+
_chunkR6U6BHCVcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
528
532
|
"img",
|
|
529
533
|
{
|
|
530
|
-
src:
|
|
534
|
+
src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, chain.id),
|
|
531
535
|
alt: chain.name,
|
|
532
536
|
className: "rs-withdraw-dropdown-icon"
|
|
533
537
|
}
|
|
@@ -542,7 +546,7 @@ function WithdrawFormStep({
|
|
|
542
546
|
)
|
|
543
547
|
] })
|
|
544
548
|
] }),
|
|
545
|
-
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 ${
|
|
549
|
+
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 ${_chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
546
550
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
|
|
547
551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
552
|
"svg",
|
|
@@ -565,16 +569,16 @@ function WithdrawFormStep({
|
|
|
565
569
|
] })
|
|
566
570
|
] }),
|
|
567
571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
572
|
+
_chunkEAEDK474cjs.Button,
|
|
569
573
|
{
|
|
570
574
|
onClick: handleWithdraw,
|
|
571
575
|
fullWidth: true,
|
|
572
576
|
loading: isBusy,
|
|
573
577
|
disabled: !recipient || !amount || chainMismatch || isBusy,
|
|
574
|
-
children: isBusy ? "Preparing..." : "Withdraw"
|
|
578
|
+
children: isBusy ? "Preparing..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
|
|
575
579
|
}
|
|
576
580
|
) }),
|
|
577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
|
|
578
582
|
] });
|
|
579
583
|
}
|
|
580
584
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -657,7 +661,7 @@ async function executeSafeEthTransfer(params) {
|
|
|
657
661
|
throw new Error("Wallet not connected");
|
|
658
662
|
}
|
|
659
663
|
if (chain.id !== chainId) {
|
|
660
|
-
throw new Error(`Switch to ${
|
|
664
|
+
throw new Error(`Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, chainId)} to sign`);
|
|
661
665
|
}
|
|
662
666
|
const isOwner = await publicClient.readContract({
|
|
663
667
|
address: safeAddress,
|
|
@@ -740,7 +744,7 @@ async function executeSafeErc20Transfer(params) {
|
|
|
740
744
|
throw new Error("Wallet not connected");
|
|
741
745
|
}
|
|
742
746
|
if (chain.id !== chainId) {
|
|
743
|
-
throw new Error(`Switch to ${
|
|
747
|
+
throw new Error(`Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, chainId)} to sign`);
|
|
744
748
|
}
|
|
745
749
|
const isOwner = await publicClient.readContract({
|
|
746
750
|
address: safeAddress,
|
|
@@ -879,7 +883,8 @@ function WithdrawFlow({
|
|
|
879
883
|
recipient: defaultRecipient,
|
|
880
884
|
amount: defaultAmount,
|
|
881
885
|
service,
|
|
882
|
-
|
|
886
|
+
allowedRoutes,
|
|
887
|
+
signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
|
|
883
888
|
sessionChainIds,
|
|
884
889
|
forceRegister = false,
|
|
885
890
|
waitForFinalTx = true,
|
|
@@ -905,13 +910,13 @@ function WithdrawFlow({
|
|
|
905
910
|
const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
|
|
906
911
|
const logFlow = _react.useCallback.call(void 0,
|
|
907
912
|
(message, data) => {
|
|
908
|
-
|
|
913
|
+
_chunkEAEDK474cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
909
914
|
},
|
|
910
915
|
[debug]
|
|
911
916
|
);
|
|
912
917
|
const logFlowError = _react.useCallback.call(void 0,
|
|
913
918
|
(message, error, data) => {
|
|
914
|
-
|
|
919
|
+
_chunkEAEDK474cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
915
920
|
},
|
|
916
921
|
[debug]
|
|
917
922
|
);
|
|
@@ -970,14 +975,14 @@ function WithdrawFlow({
|
|
|
970
975
|
return {
|
|
971
976
|
ownerAddress: dappAddress,
|
|
972
977
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
973
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
978
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
|
|
974
979
|
switchChain: dappSwitchChain
|
|
975
980
|
};
|
|
976
981
|
}
|
|
977
982
|
return {
|
|
978
983
|
ownerAddress: dappWalletClient.account.address,
|
|
979
984
|
walletClient: dappWalletClient,
|
|
980
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
985
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
|
|
981
986
|
switchChain: dappSwitchChain
|
|
982
987
|
};
|
|
983
988
|
}
|
|
@@ -988,7 +993,7 @@ function WithdrawFlow({
|
|
|
988
993
|
return {
|
|
989
994
|
ownerAddress: dappWalletClient.account.address,
|
|
990
995
|
walletClient: dappWalletClient,
|
|
991
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
996
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
|
|
992
997
|
switchChain: dappSwitchChain
|
|
993
998
|
};
|
|
994
999
|
}
|
|
@@ -1015,10 +1020,10 @@ function WithdrawFlow({
|
|
|
1015
1020
|
sourceChain
|
|
1016
1021
|
]);
|
|
1017
1022
|
const asset = _react.useMemo.call(void 0, () => {
|
|
1018
|
-
const symbol =
|
|
1019
|
-
const decimals =
|
|
1023
|
+
const symbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1024
|
+
const decimals = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1020
1025
|
return {
|
|
1021
|
-
id:
|
|
1026
|
+
id: _chunkEAEDK474cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1022
1027
|
chainId: sourceChain,
|
|
1023
1028
|
token: sourceToken,
|
|
1024
1029
|
symbol,
|
|
@@ -1026,7 +1031,7 @@ function WithdrawFlow({
|
|
|
1026
1031
|
decimals
|
|
1027
1032
|
};
|
|
1028
1033
|
}, [sourceChain, sourceToken]);
|
|
1029
|
-
const isSourceNative = sourceToken.toLowerCase() ===
|
|
1034
|
+
const isSourceNative = sourceToken.toLowerCase() === _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
|
|
1030
1035
|
const stepIndex = step.type === "form" ? 0 : 1;
|
|
1031
1036
|
const currentBackHandler = void 0;
|
|
1032
1037
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1068,15 +1073,15 @@ function WithdrawFlow({
|
|
|
1068
1073
|
[logFlowError, onError]
|
|
1069
1074
|
);
|
|
1070
1075
|
const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
|
|
1071
|
-
const localOwner =
|
|
1076
|
+
const localOwner = _chunkEAEDK474cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
1072
1077
|
if (localOwner) {
|
|
1073
1078
|
return {
|
|
1074
|
-
account:
|
|
1079
|
+
account: _chunkEAEDK474cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
1075
1080
|
address: localOwner.address
|
|
1076
1081
|
};
|
|
1077
1082
|
}
|
|
1078
|
-
const created =
|
|
1079
|
-
|
|
1083
|
+
const created = _chunkEAEDK474cjs.createSessionOwnerKey.call(void 0, );
|
|
1084
|
+
_chunkEAEDK474cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
1080
1085
|
return {
|
|
1081
1086
|
account: created.account,
|
|
1082
1087
|
address: created.address
|
|
@@ -1106,7 +1111,7 @@ function WithdrawFlow({
|
|
|
1106
1111
|
const setup = await service.setupAccount({
|
|
1107
1112
|
ownerAddress: ownerAddress2,
|
|
1108
1113
|
sessionOwnerAddress: sessionOwner.address,
|
|
1109
|
-
targetChain:
|
|
1114
|
+
targetChain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
|
|
1110
1115
|
targetToken,
|
|
1111
1116
|
signerAddress,
|
|
1112
1117
|
sessionChainIds,
|
|
@@ -1133,7 +1138,7 @@ function WithdrawFlow({
|
|
|
1133
1138
|
primaryType: typedData.primaryType,
|
|
1134
1139
|
message: typedData.message
|
|
1135
1140
|
});
|
|
1136
|
-
const sessionDetails =
|
|
1141
|
+
const sessionDetails = _chunkEAEDK474cjs.buildSessionDetails.call(void 0,
|
|
1137
1142
|
setup.sessionDetailsUnsigned,
|
|
1138
1143
|
signature
|
|
1139
1144
|
);
|
|
@@ -1147,7 +1152,7 @@ function WithdrawFlow({
|
|
|
1147
1152
|
eoaAddress: ownerAddress2,
|
|
1148
1153
|
sessionOwner: sessionOwner.address,
|
|
1149
1154
|
target: {
|
|
1150
|
-
chain:
|
|
1155
|
+
chain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
|
|
1151
1156
|
token: targetToken,
|
|
1152
1157
|
recipient
|
|
1153
1158
|
}
|
|
@@ -1156,7 +1161,7 @@ function WithdrawFlow({
|
|
|
1156
1161
|
}
|
|
1157
1162
|
handleConnected(ownerAddress2, smartAccount);
|
|
1158
1163
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1159
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => (
|
|
1164
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1160
1165
|
let result;
|
|
1161
1166
|
if (onSignTransaction) {
|
|
1162
1167
|
const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
|
|
@@ -1179,7 +1184,7 @@ function WithdrawFlow({
|
|
|
1179
1184
|
const { signature } = await onSignTransaction(request);
|
|
1180
1185
|
const relayResult = await service.relayWithdraw({
|
|
1181
1186
|
smartAccount,
|
|
1182
|
-
chainId:
|
|
1187
|
+
chainId: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, sourceChain),
|
|
1183
1188
|
safeAddress,
|
|
1184
1189
|
safeTransaction: request.typedData.message,
|
|
1185
1190
|
signature
|
|
@@ -1237,7 +1242,7 @@ function WithdrawFlow({
|
|
|
1237
1242
|
targetChain,
|
|
1238
1243
|
targetToken
|
|
1239
1244
|
});
|
|
1240
|
-
handleError(
|
|
1245
|
+
handleError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1241
1246
|
throw err;
|
|
1242
1247
|
} finally {
|
|
1243
1248
|
setIsSubmitting(false);
|
|
@@ -1287,15 +1292,29 @@ function WithdrawFlow({
|
|
|
1287
1292
|
},
|
|
1288
1293
|
[logFlowError, onWithdrawFailed]
|
|
1289
1294
|
);
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
);
|
|
1294
|
-
}, []);
|
|
1295
|
-
const targetTokenOptions = _react.useMemo.call(void 0,
|
|
1296
|
-
() => _chunkNELAYNA3cjs.getSupportedTargetTokens.call(void 0, targetChain),
|
|
1297
|
-
[targetChain]
|
|
1295
|
+
const allowedChainSet = _react.useMemo.call(void 0,
|
|
1296
|
+
() => _optionalChain([allowedRoutes, 'optionalAccess', _30 => _30.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
|
|
1297
|
+
[_optionalChain([allowedRoutes, 'optionalAccess', _31 => _31.sourceChains])]
|
|
1298
1298
|
);
|
|
1299
|
+
const allowedTokenSet = _react.useMemo.call(void 0,
|
|
1300
|
+
() => _optionalChain([allowedRoutes, 'optionalAccess', _32 => _32.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
|
|
1301
|
+
[_optionalChain([allowedRoutes, 'optionalAccess', _33 => _33.sourceTokens])]
|
|
1302
|
+
);
|
|
1303
|
+
const targetChainOptions = _react.useMemo.call(void 0, () => {
|
|
1304
|
+
return _chunkR6U6BHCVcjs.SOURCE_CHAINS.filter((chain) => {
|
|
1305
|
+
if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
|
|
1306
|
+
const tokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chain.id);
|
|
1307
|
+
if (allowedTokenSet) {
|
|
1308
|
+
return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1309
|
+
}
|
|
1310
|
+
return tokens.length > 0;
|
|
1311
|
+
});
|
|
1312
|
+
}, [allowedChainSet, allowedTokenSet]);
|
|
1313
|
+
const targetTokenOptions = _react.useMemo.call(void 0, () => {
|
|
1314
|
+
const tokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, targetChain);
|
|
1315
|
+
if (!allowedTokenSet) return tokens;
|
|
1316
|
+
return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1317
|
+
}, [targetChain, allowedTokenSet]);
|
|
1299
1318
|
_react.useEffect.call(void 0, () => {
|
|
1300
1319
|
if (targetTokenOptions.length === 0) return;
|
|
1301
1320
|
const matches = targetTokenOptions.some(
|
|
@@ -1308,7 +1327,10 @@ function WithdrawFlow({
|
|
|
1308
1327
|
const handleTargetChainChange = _react.useCallback.call(void 0,
|
|
1309
1328
|
(chainId) => {
|
|
1310
1329
|
setTargetChain(chainId);
|
|
1311
|
-
|
|
1330
|
+
let options = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chainId);
|
|
1331
|
+
if (allowedTokenSet) {
|
|
1332
|
+
options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1333
|
+
}
|
|
1312
1334
|
if (options.length === 0) {
|
|
1313
1335
|
return;
|
|
1314
1336
|
}
|
|
@@ -1319,7 +1341,7 @@ function WithdrawFlow({
|
|
|
1319
1341
|
currentlySupported ? targetToken : options[0].address
|
|
1320
1342
|
);
|
|
1321
1343
|
},
|
|
1322
|
-
[targetToken]
|
|
1344
|
+
[targetToken, allowedTokenSet]
|
|
1323
1345
|
);
|
|
1324
1346
|
const handleTargetTokenChange = _react.useCallback.call(void 0, (token) => {
|
|
1325
1347
|
setTargetToken(token);
|
|
@@ -1345,17 +1367,17 @@ function WithdrawFlow({
|
|
|
1345
1367
|
setIsConnectSelectionConfirmed(false);
|
|
1346
1368
|
}
|
|
1347
1369
|
}, [showConnectStep, isConnectSelectionConfirmed, signerContext]);
|
|
1348
|
-
const ownerAddress = _optionalChain([signerContext, 'optionalAccess',
|
|
1370
|
+
const ownerAddress = _optionalChain([signerContext, 'optionalAccess', _34 => _34.ownerAddress]);
|
|
1349
1371
|
const selectedWalletIcon = _react.useMemo.call(void 0, () => {
|
|
1350
|
-
if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess',
|
|
1372
|
+
if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess', _35 => _35.icon]);
|
|
1351
1373
|
const selected = walletOptions.find(
|
|
1352
|
-
(o) => _optionalChain([o, 'access',
|
|
1374
|
+
(o) => _optionalChain([o, 'access', _36 => _36.address, 'optionalAccess', _37 => _37.toLowerCase, 'call', _38 => _38()]) === ownerAddress.toLowerCase()
|
|
1353
1375
|
);
|
|
1354
|
-
return _nullishCoalesce(_optionalChain([selected, 'optionalAccess',
|
|
1355
|
-
}, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess',
|
|
1376
|
+
return _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _39 => _39.icon]), () => ( _optionalChain([reownWallet, 'optionalAccess', _40 => _40.icon])));
|
|
1377
|
+
}, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _41 => _41.icon])]);
|
|
1356
1378
|
if (showConnectStep) {
|
|
1357
1379
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1358
|
-
|
|
1380
|
+
_chunkEAEDK474cjs.ConnectStep,
|
|
1359
1381
|
{
|
|
1360
1382
|
walletOptions,
|
|
1361
1383
|
selectedWalletId: selectedWalletIdEffective,
|
|
@@ -1376,9 +1398,9 @@ function WithdrawFlow({
|
|
|
1376
1398
|
if (!signerContext) return null;
|
|
1377
1399
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1378
1400
|
const resolvedOwnerAddress = signerContext.ownerAddress;
|
|
1379
|
-
const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access',
|
|
1401
|
+
const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _42 => _42.walletClient, 'optionalAccess', _43 => _43.account, 'optionalAccess', _44 => _44.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _45 => _45.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _46 => _46.account, 'optionalAccess', _47 => _47.address]))), () => ( resolvedOwnerAddress));
|
|
1380
1402
|
const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
|
|
1381
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1403
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1382
1404
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
1383
1405
|
step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1384
1406
|
WithdrawFormStep,
|
|
@@ -1405,7 +1427,7 @@ function WithdrawFlow({
|
|
|
1405
1427
|
}
|
|
1406
1428
|
),
|
|
1407
1429
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1408
|
-
|
|
1430
|
+
_chunkEAEDK474cjs.ProcessingStep,
|
|
1409
1431
|
{
|
|
1410
1432
|
smartAccount: step.smartAccount,
|
|
1411
1433
|
txHash: step.txHash,
|
|
@@ -1431,7 +1453,7 @@ function WithdrawFlow({
|
|
|
1431
1453
|
// src/WithdrawModal.tsx
|
|
1432
1454
|
|
|
1433
1455
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1434
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1456
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-CN2NJUYL.cjs"))).then((m) => ({
|
|
1435
1457
|
default: m.WithdrawModalReown
|
|
1436
1458
|
}))
|
|
1437
1459
|
);
|
|
@@ -1457,8 +1479,10 @@ function WithdrawModalInner({
|
|
|
1457
1479
|
isOpen,
|
|
1458
1480
|
onClose,
|
|
1459
1481
|
inline,
|
|
1460
|
-
|
|
1461
|
-
|
|
1482
|
+
closeOnOverlayClick,
|
|
1483
|
+
allowedRoutes,
|
|
1484
|
+
backendUrl = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL,
|
|
1485
|
+
signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
|
|
1462
1486
|
sessionChainIds,
|
|
1463
1487
|
forceRegister = false,
|
|
1464
1488
|
waitForFinalTx = true,
|
|
@@ -1484,22 +1508,22 @@ function WithdrawModalInner({
|
|
|
1484
1508
|
const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
|
|
1485
1509
|
const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
|
|
1486
1510
|
const backHandlerRef = _react.useRef.call(void 0, void 0);
|
|
1487
|
-
const targetChain =
|
|
1488
|
-
const sourceChain =
|
|
1511
|
+
const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
|
|
1512
|
+
const sourceChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp);
|
|
1489
1513
|
const service = _react.useMemo.call(void 0,
|
|
1490
|
-
() =>
|
|
1514
|
+
() => _chunkEAEDK474cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1491
1515
|
[backendUrl, debug]
|
|
1492
1516
|
);
|
|
1493
1517
|
_react.useEffect.call(void 0, () => {
|
|
1494
1518
|
if (isOpen && modalRef.current) {
|
|
1495
|
-
|
|
1519
|
+
_chunkEAEDK474cjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1496
1520
|
}
|
|
1497
1521
|
}, [isOpen, theme]);
|
|
1498
1522
|
const hasCalledReady = _react.useRef.call(void 0, false);
|
|
1499
1523
|
_react.useEffect.call(void 0, () => {
|
|
1500
1524
|
if (isOpen && !hasCalledReady.current) {
|
|
1501
1525
|
hasCalledReady.current = true;
|
|
1502
|
-
_optionalChain([onReady, 'optionalCall',
|
|
1526
|
+
_optionalChain([onReady, 'optionalCall', _48 => _48()]);
|
|
1503
1527
|
}
|
|
1504
1528
|
}, [isOpen, onReady]);
|
|
1505
1529
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1518,22 +1542,23 @@ function WithdrawModalInner({
|
|
|
1518
1542
|
setTotalBalanceUsd(balance2);
|
|
1519
1543
|
}, []);
|
|
1520
1544
|
const handleBack = _react.useCallback.call(void 0, () => {
|
|
1521
|
-
_optionalChain([backHandlerRef, 'access',
|
|
1545
|
+
_optionalChain([backHandlerRef, 'access', _49 => _49.current, 'optionalCall', _50 => _50()]);
|
|
1522
1546
|
}, []);
|
|
1523
|
-
const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1524
|
-
const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1525
|
-
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1526
|
-
const balance = _optionalChain([uiConfig, 'optionalAccess',
|
|
1527
|
-
const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess',
|
|
1528
|
-
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess',
|
|
1547
|
+
const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _51 => _51.showLogo]), () => ( false));
|
|
1548
|
+
const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _52 => _52.showStepper]), () => ( false));
|
|
1549
|
+
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _53 => _53.showBackButton]), () => ( true));
|
|
1550
|
+
const balance = _optionalChain([uiConfig, 'optionalAccess', _54 => _54.balance]);
|
|
1551
|
+
const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _55 => _55.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
|
|
1552
|
+
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _56 => _56.title]), () => ( "Withdraw"));
|
|
1529
1553
|
const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
|
|
1530
1554
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1531
|
-
|
|
1555
|
+
_chunkEAEDK474cjs.Modal,
|
|
1532
1556
|
{
|
|
1533
1557
|
isOpen,
|
|
1534
1558
|
onClose,
|
|
1535
1559
|
className,
|
|
1536
1560
|
inline,
|
|
1561
|
+
closeOnOverlayClick,
|
|
1537
1562
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: modalRef, className: "rs-modal", children: [
|
|
1538
1563
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header--redesigned", children: [
|
|
1539
1564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-left", children: showBackButton && canGoBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1586,7 +1611,7 @@ function WithdrawModalInner({
|
|
|
1586
1611
|
] }),
|
|
1587
1612
|
balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
|
|
1588
1613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
|
|
1589
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ?
|
|
1614
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
|
|
1590
1615
|
] })
|
|
1591
1616
|
] }),
|
|
1592
1617
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1630,6 +1655,7 @@ function WithdrawModalInner({
|
|
|
1630
1655
|
recipient,
|
|
1631
1656
|
amount: defaultAmount,
|
|
1632
1657
|
service,
|
|
1658
|
+
allowedRoutes,
|
|
1633
1659
|
signerAddress,
|
|
1634
1660
|
sessionChainIds,
|
|
1635
1661
|
forceRegister,
|
package/dist/constants.cjs
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -57,4 +57,4 @@ var _chunkNELAYNA3cjs = require('./chunk-NELAYNA3.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
exports.CHAIN_BY_ID =
|
|
60
|
+
exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.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 _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
|
|
4
|
+
require('./chunk-EAEDK474.cjs');
|
|
5
|
+
require('./chunk-R6U6BHCV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { d as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { d as DepositModalProps } from './types-CL7ec666.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-CL7ec666.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './safe.cjs';
|
|
6
6
|
|