@rhinestone/deposit-modal 0.1.54 → 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/{WithdrawModalReown-ZQCNJLSP.cjs → WithdrawModalReown-CN2NJUYL.cjs} +2 -2
- package/dist/{WithdrawModalReown-DN6OKFGR.mjs → WithdrawModalReown-K57JK52O.mjs} +1 -1
- package/dist/{chunk-XXB2LVUB.mjs → chunk-QOEACKBH.mjs} +31 -11
- package/dist/{chunk-GOMHX544.cjs → chunk-XMNGYDDB.cjs} +45 -25
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/reown.cjs +2 -2
- package/dist/reown.d.cts +1 -1
- package/dist/reown.d.ts +1 -1
- package/dist/reown.mjs +1 -1
- package/dist/{types-BPE95RUG.d.ts → types-B7UuWCtD.d.ts} +1 -0
- package/dist/{types-Cm5vGVK2.d.cts → types-CL7ec666.d.cts} +1 -0
- package/dist/withdraw.cjs +2 -2
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
|
|
|
20
20
|
reown.disconnect();
|
|
21
21
|
}, [reown.disconnect]);
|
|
22
22
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
-
|
|
23
|
+
_chunkXMNGYDDBcjs.WithdrawModalInner,
|
|
24
24
|
{
|
|
25
25
|
...props,
|
|
26
26
|
reownWallet: reown,
|
|
@@ -883,6 +883,7 @@ function WithdrawFlow({
|
|
|
883
883
|
recipient: defaultRecipient,
|
|
884
884
|
amount: defaultAmount,
|
|
885
885
|
service,
|
|
886
|
+
allowedRoutes,
|
|
886
887
|
signerAddress = DEFAULT_SIGNER_ADDRESS,
|
|
887
888
|
sessionChainIds,
|
|
888
889
|
forceRegister = false,
|
|
@@ -1291,15 +1292,29 @@ function WithdrawFlow({
|
|
|
1291
1292
|
},
|
|
1292
1293
|
[logFlowError, onWithdrawFailed]
|
|
1293
1294
|
);
|
|
1294
|
-
const
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
[targetChain]
|
|
1295
|
+
const allowedChainSet = useMemo2(
|
|
1296
|
+
() => allowedRoutes?.sourceChains ? new Set(allowedRoutes.sourceChains) : null,
|
|
1297
|
+
[allowedRoutes?.sourceChains]
|
|
1298
|
+
);
|
|
1299
|
+
const allowedTokenSet = useMemo2(
|
|
1300
|
+
() => allowedRoutes?.sourceTokens ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
|
|
1301
|
+
[allowedRoutes?.sourceTokens]
|
|
1302
1302
|
);
|
|
1303
|
+
const targetChainOptions = useMemo2(() => {
|
|
1304
|
+
return SOURCE_CHAINS.filter((chain) => {
|
|
1305
|
+
if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
|
|
1306
|
+
const tokens = getSupportedTargetTokens(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 = useMemo2(() => {
|
|
1314
|
+
const tokens = getSupportedTargetTokens(targetChain);
|
|
1315
|
+
if (!allowedTokenSet) return tokens;
|
|
1316
|
+
return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1317
|
+
}, [targetChain, allowedTokenSet]);
|
|
1303
1318
|
useEffect2(() => {
|
|
1304
1319
|
if (targetTokenOptions.length === 0) return;
|
|
1305
1320
|
const matches = targetTokenOptions.some(
|
|
@@ -1312,7 +1327,10 @@ function WithdrawFlow({
|
|
|
1312
1327
|
const handleTargetChainChange = useCallback2(
|
|
1313
1328
|
(chainId) => {
|
|
1314
1329
|
setTargetChain(chainId);
|
|
1315
|
-
|
|
1330
|
+
let options = getSupportedTargetTokens(chainId);
|
|
1331
|
+
if (allowedTokenSet) {
|
|
1332
|
+
options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1333
|
+
}
|
|
1316
1334
|
if (options.length === 0) {
|
|
1317
1335
|
return;
|
|
1318
1336
|
}
|
|
@@ -1323,7 +1341,7 @@ function WithdrawFlow({
|
|
|
1323
1341
|
currentlySupported ? targetToken : options[0].address
|
|
1324
1342
|
);
|
|
1325
1343
|
},
|
|
1326
|
-
[targetToken]
|
|
1344
|
+
[targetToken, allowedTokenSet]
|
|
1327
1345
|
);
|
|
1328
1346
|
const handleTargetTokenChange = useCallback2((token) => {
|
|
1329
1347
|
setTargetToken(token);
|
|
@@ -1435,7 +1453,7 @@ function WithdrawFlow({
|
|
|
1435
1453
|
// src/WithdrawModal.tsx
|
|
1436
1454
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1437
1455
|
var ReownWithdrawInner = lazy(
|
|
1438
|
-
() => import("./WithdrawModalReown-
|
|
1456
|
+
() => import("./WithdrawModalReown-K57JK52O.mjs").then((m) => ({
|
|
1439
1457
|
default: m.WithdrawModalReown
|
|
1440
1458
|
}))
|
|
1441
1459
|
);
|
|
@@ -1462,6 +1480,7 @@ function WithdrawModalInner({
|
|
|
1462
1480
|
onClose,
|
|
1463
1481
|
inline,
|
|
1464
1482
|
closeOnOverlayClick,
|
|
1483
|
+
allowedRoutes,
|
|
1465
1484
|
backendUrl = DEFAULT_BACKEND_URL,
|
|
1466
1485
|
signerAddress = DEFAULT_SIGNER_ADDRESS,
|
|
1467
1486
|
sessionChainIds,
|
|
@@ -1636,6 +1655,7 @@ function WithdrawModalInner({
|
|
|
1636
1655
|
recipient,
|
|
1637
1656
|
amount: defaultAmount,
|
|
1638
1657
|
service,
|
|
1658
|
+
allowedRoutes,
|
|
1639
1659
|
signerAddress,
|
|
1640
1660
|
sessionChainIds,
|
|
1641
1661
|
forceRegister,
|
|
@@ -883,6 +883,7 @@ function WithdrawFlow({
|
|
|
883
883
|
recipient: defaultRecipient,
|
|
884
884
|
amount: defaultAmount,
|
|
885
885
|
service,
|
|
886
|
+
allowedRoutes,
|
|
886
887
|
signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
|
|
887
888
|
sessionChainIds,
|
|
888
889
|
forceRegister = false,
|
|
@@ -1291,15 +1292,29 @@ function WithdrawFlow({
|
|
|
1291
1292
|
},
|
|
1292
1293
|
[logFlowError, onWithdrawFailed]
|
|
1293
1294
|
);
|
|
1294
|
-
const
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
(
|
|
1301
|
-
[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
|
+
);
|
|
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
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]);
|
|
1303
1318
|
_react.useEffect.call(void 0, () => {
|
|
1304
1319
|
if (targetTokenOptions.length === 0) return;
|
|
1305
1320
|
const matches = targetTokenOptions.some(
|
|
@@ -1312,7 +1327,10 @@ function WithdrawFlow({
|
|
|
1312
1327
|
const handleTargetChainChange = _react.useCallback.call(void 0,
|
|
1313
1328
|
(chainId) => {
|
|
1314
1329
|
setTargetChain(chainId);
|
|
1315
|
-
|
|
1330
|
+
let options = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chainId);
|
|
1331
|
+
if (allowedTokenSet) {
|
|
1332
|
+
options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1333
|
+
}
|
|
1316
1334
|
if (options.length === 0) {
|
|
1317
1335
|
return;
|
|
1318
1336
|
}
|
|
@@ -1323,7 +1341,7 @@ function WithdrawFlow({
|
|
|
1323
1341
|
currentlySupported ? targetToken : options[0].address
|
|
1324
1342
|
);
|
|
1325
1343
|
},
|
|
1326
|
-
[targetToken]
|
|
1344
|
+
[targetToken, allowedTokenSet]
|
|
1327
1345
|
);
|
|
1328
1346
|
const handleTargetTokenChange = _react.useCallback.call(void 0, (token) => {
|
|
1329
1347
|
setTargetToken(token);
|
|
@@ -1349,14 +1367,14 @@ function WithdrawFlow({
|
|
|
1349
1367
|
setIsConnectSelectionConfirmed(false);
|
|
1350
1368
|
}
|
|
1351
1369
|
}, [showConnectStep, isConnectSelectionConfirmed, signerContext]);
|
|
1352
|
-
const ownerAddress = _optionalChain([signerContext, 'optionalAccess',
|
|
1370
|
+
const ownerAddress = _optionalChain([signerContext, 'optionalAccess', _34 => _34.ownerAddress]);
|
|
1353
1371
|
const selectedWalletIcon = _react.useMemo.call(void 0, () => {
|
|
1354
|
-
if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess',
|
|
1372
|
+
if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess', _35 => _35.icon]);
|
|
1355
1373
|
const selected = walletOptions.find(
|
|
1356
|
-
(o) => _optionalChain([o, 'access',
|
|
1374
|
+
(o) => _optionalChain([o, 'access', _36 => _36.address, 'optionalAccess', _37 => _37.toLowerCase, 'call', _38 => _38()]) === ownerAddress.toLowerCase()
|
|
1357
1375
|
);
|
|
1358
|
-
return _nullishCoalesce(_optionalChain([selected, 'optionalAccess',
|
|
1359
|
-
}, [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])]);
|
|
1360
1378
|
if (showConnectStep) {
|
|
1361
1379
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1362
1380
|
_chunkEAEDK474cjs.ConnectStep,
|
|
@@ -1380,7 +1398,7 @@ function WithdrawFlow({
|
|
|
1380
1398
|
if (!signerContext) return null;
|
|
1381
1399
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1382
1400
|
const resolvedOwnerAddress = signerContext.ownerAddress;
|
|
1383
|
-
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));
|
|
1384
1402
|
const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
|
|
1385
1403
|
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1386
1404
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
@@ -1435,7 +1453,7 @@ function WithdrawFlow({
|
|
|
1435
1453
|
// src/WithdrawModal.tsx
|
|
1436
1454
|
|
|
1437
1455
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1438
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1456
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-CN2NJUYL.cjs"))).then((m) => ({
|
|
1439
1457
|
default: m.WithdrawModalReown
|
|
1440
1458
|
}))
|
|
1441
1459
|
);
|
|
@@ -1462,6 +1480,7 @@ function WithdrawModalInner({
|
|
|
1462
1480
|
onClose,
|
|
1463
1481
|
inline,
|
|
1464
1482
|
closeOnOverlayClick,
|
|
1483
|
+
allowedRoutes,
|
|
1465
1484
|
backendUrl = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL,
|
|
1466
1485
|
signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
|
|
1467
1486
|
sessionChainIds,
|
|
@@ -1504,7 +1523,7 @@ function WithdrawModalInner({
|
|
|
1504
1523
|
_react.useEffect.call(void 0, () => {
|
|
1505
1524
|
if (isOpen && !hasCalledReady.current) {
|
|
1506
1525
|
hasCalledReady.current = true;
|
|
1507
|
-
_optionalChain([onReady, 'optionalCall',
|
|
1526
|
+
_optionalChain([onReady, 'optionalCall', _48 => _48()]);
|
|
1508
1527
|
}
|
|
1509
1528
|
}, [isOpen, onReady]);
|
|
1510
1529
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1523,14 +1542,14 @@ function WithdrawModalInner({
|
|
|
1523
1542
|
setTotalBalanceUsd(balance2);
|
|
1524
1543
|
}, []);
|
|
1525
1544
|
const handleBack = _react.useCallback.call(void 0, () => {
|
|
1526
|
-
_optionalChain([backHandlerRef, 'access',
|
|
1545
|
+
_optionalChain([backHandlerRef, 'access', _49 => _49.current, 'optionalCall', _50 => _50()]);
|
|
1527
1546
|
}, []);
|
|
1528
|
-
const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1529
|
-
const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1530
|
-
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1531
|
-
const balance = _optionalChain([uiConfig, 'optionalAccess',
|
|
1532
|
-
const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess',
|
|
1533
|
-
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"));
|
|
1534
1553
|
const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
|
|
1535
1554
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1536
1555
|
_chunkEAEDK474cjs.Modal,
|
|
@@ -1636,6 +1655,7 @@ function WithdrawModalInner({
|
|
|
1636
1655
|
recipient,
|
|
1637
1656
|
amount: defaultAmount,
|
|
1638
1657
|
service,
|
|
1658
|
+
allowedRoutes,
|
|
1639
1659
|
signerAddress,
|
|
1640
1660
|
sessionChainIds,
|
|
1641
1661
|
forceRegister,
|
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
|
|
package/dist/deposit.d.ts
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-B7UuWCtD.js';
|
|
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-B7UuWCtD.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './safe.js';
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
|
|
7
7
|
require('./chunk-EAEDK474.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
@@ -66,4 +66,4 @@ var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
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.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal =
|
|
69
|
+
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.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkXMNGYDDBcjs.WithdrawModal; 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/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 DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-CL7ec666.cjs';
|
|
4
4
|
export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
|
|
5
5
|
export { SafeTransactionRequest } from './safe.cjs';
|
|
6
6
|
import 'react/jsx-runtime';
|
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 DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-B7UuWCtD.js';
|
|
4
4
|
export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
|
|
5
5
|
export { SafeTransactionRequest } from './safe.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
package/dist/index.mjs
CHANGED
package/dist/reown.cjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
|
|
7
7
|
require('./chunk-EAEDK474.cjs');
|
|
8
8
|
require('./chunk-R6U6BHCV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.WithdrawModal =
|
|
12
|
+
exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.WithdrawModal = _chunkXMNGYDDBcjs.WithdrawModal;
|
package/dist/reown.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, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-CL7ec666.cjs';
|
|
4
4
|
export { SafeTransactionRequest } from './safe.cjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
package/dist/reown.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, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-B7UuWCtD.js';
|
|
4
4
|
export { SafeTransactionRequest } from './safe.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
package/dist/reown.mjs
CHANGED
package/dist/withdraw.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
|
|
4
4
|
require('./chunk-EAEDK474.cjs');
|
|
5
5
|
require('./chunk-R6U6BHCV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.WithdrawModal =
|
|
8
|
+
exports.WithdrawModal = _chunkXMNGYDDBcjs.WithdrawModal;
|
package/dist/withdraw.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { i as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-
|
|
2
|
+
import { i as WithdrawModalProps } from './types-CL7ec666.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-CL7ec666.cjs';
|
|
4
4
|
export { SafeTransactionRequest } from './safe.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
|
package/dist/withdraw.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { i as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-
|
|
2
|
+
import { i as WithdrawModalProps } from './types-B7UuWCtD.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-B7UuWCtD.js';
|
|
4
4
|
export { SafeTransactionRequest } from './safe.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
|
package/dist/withdraw.mjs
CHANGED