@rhinestone/deposit-modal 0.3.0-alpha.13 → 0.3.0-alpha.15
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-HBAWSK6K.mjs → DepositModalReown-CAX35NN2.mjs} +4 -4
- package/dist/{DepositModalReown-CXPRZRXL.cjs → DepositModalReown-P4QGKQRZ.cjs} +7 -7
- package/dist/{QRCode-KG47KTGX.cjs → QRCode-5DXFNKI2.cjs} +1 -1
- package/dist/{QRCode-YJ3EGWQS.mjs → QRCode-WUC652SH.mjs} +1 -1
- package/dist/{WithdrawModalReown-EEWQRENY.mjs → WithdrawModalReown-V4YYPNBE.mjs} +4 -4
- package/dist/{WithdrawModalReown-T3TPJIME.cjs → WithdrawModalReown-ZSFALZOB.cjs} +7 -7
- package/dist/{chunk-PWV2UJP3.cjs → chunk-6O4NGY2N.cjs} +5 -5
- package/dist/{chunk-SZIYS42B.mjs → chunk-7C4SPVM5.mjs} +6 -2
- package/dist/{chunk-6RCOF3XU.cjs → chunk-7LJYEGZZ.cjs} +93 -93
- package/dist/{chunk-DZNXG5JK.cjs → chunk-7NO7WVJV.cjs} +35 -28
- package/dist/{chunk-SEOQ66FW.cjs → chunk-AAQPYKBA.cjs} +397 -355
- package/dist/{chunk-7JIDIX27.cjs → chunk-DZ2RPLBM.cjs} +7 -3
- package/dist/{chunk-YB3JPWJW.mjs → chunk-H2WSFD53.mjs} +2 -2
- package/dist/{chunk-6K4JHM2D.mjs → chunk-IZMF2WHM.mjs} +12 -5
- package/dist/{chunk-HZBO2SIZ.mjs → chunk-KDJS56TQ.mjs} +97 -55
- package/dist/{chunk-EC63ZHY4.mjs → chunk-LDMY67HP.mjs} +3 -3
- 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/styles.css +60 -65
- package/dist/{types-C8i2ebY1.d.cts → types-cXr3j4NV.d.cts} +26 -0
- package/dist/{types-C8i2ebY1.d.ts → types-cXr3j4NV.d.ts} +26 -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
|
@@ -403,7 +403,7 @@ function getSupportedTargetTokens(chainId) {
|
|
|
403
403
|
}
|
|
404
404
|
return options;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function findTokenDecimals(token, chainId) {
|
|
407
407
|
const normalized = token.toLowerCase();
|
|
408
408
|
if (normalized === NATIVE_TOKEN_ADDRESS) {
|
|
409
409
|
return 18;
|
|
@@ -423,7 +423,10 @@ function getTokenDecimalsByAddress(token, chainId) {
|
|
|
423
423
|
);
|
|
424
424
|
if (found) return found.decimals;
|
|
425
425
|
}
|
|
426
|
-
return
|
|
426
|
+
return void 0;
|
|
427
|
+
}
|
|
428
|
+
function getTokenDecimalsByAddress(token, chainId) {
|
|
429
|
+
return _nullishCoalesce(findTokenDecimals(token, chainId), () => ( 18));
|
|
427
430
|
}
|
|
428
431
|
function findChainIdForToken(address) {
|
|
429
432
|
const normalized = address.toLowerCase();
|
|
@@ -551,4 +554,5 @@ function getExplorerName(chainId) {
|
|
|
551
554
|
|
|
552
555
|
|
|
553
556
|
|
|
554
|
-
|
|
557
|
+
|
|
558
|
+
exports.SOLANA_TOKENS = SOLANA_TOKENS; exports.getSolanaTokenBySymbol = getSolanaTokenBySymbol; exports.getSolanaTokenByMint = getSolanaTokenByMint; exports.isNativeSol = isNativeSol; exports.getChainIcon = getChainIcon; exports.getTokenIcon = getTokenIcon; exports.DEFAULT_BACKEND_URL = DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = NATIVE_TOKEN_ADDRESS; exports.CHAIN_BY_ID = CHAIN_BY_ID; exports.SOURCE_CHAINS = SOURCE_CHAINS; exports.SUPPORTED_CHAINS = SUPPORTED_CHAINS; exports.chainRegistry = chainRegistry; exports.getChainId = getChainId; exports.getChainObject = getChainObject; exports.getUsdcAddress = getUsdcAddress; exports.getUsdcDecimals = getUsdcDecimals; exports.getTokenAddress = getTokenAddress; exports.getTokenDecimals = getTokenDecimals; exports.getTargetTokenSymbolsForChain = getTargetTokenSymbolsForChain; exports.getSupportedTokenSymbolsForChain = getSupportedTokenSymbolsForChain; exports.getSupportedChainIds = getSupportedChainIds; exports.isSupportedTokenAddressForChain = isSupportedTokenAddressForChain; exports.getSupportedTargetTokens = getSupportedTargetTokens; exports.findTokenDecimals = findTokenDecimals; exports.getTokenDecimalsByAddress = getTokenDecimalsByAddress; exports.findChainIdForToken = findChainIdForToken; exports.getTokenSymbol = getTokenSymbol; exports.getTargetTokenSymbol = getTargetTokenSymbol; exports.isStablecoinSymbol = isStablecoinSymbol; exports.getChainName = getChainName; exports.getChainBadge = getChainBadge; exports.getExplorerUrl = getExplorerUrl; exports.getExplorerTxUrl = getExplorerTxUrl; exports.getExplorerName = getExplorerName;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isUnsupportedChainSwitchError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZMF2WHM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
SUPPORTED_CHAINS,
|
|
6
6
|
getChainName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7C4SPVM5.mjs";
|
|
8
8
|
|
|
9
9
|
// src/core/reown.tsx
|
|
10
10
|
import { useState } from "react";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getTokenDecimalsByAddress,
|
|
12
12
|
getTokenIcon,
|
|
13
13
|
getTokenSymbol
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7C4SPVM5.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/ui/Modal.tsx
|
|
17
17
|
import {
|
|
@@ -2063,11 +2063,9 @@ function ConnectStep({
|
|
|
2063
2063
|
{
|
|
2064
2064
|
leading: TRANSFER_CRYPTO_LEADING,
|
|
2065
2065
|
title: "Transfer crypto",
|
|
2066
|
-
subtitle: transferCryptoState === "
|
|
2066
|
+
subtitle: transferCryptoState === "error" ? transferCryptoErrorReason ?? "Couldn't prepare account \u2014 tap to retry" : "Instant - No limit",
|
|
2067
2067
|
meta: CHAIN_BADGE_META,
|
|
2068
|
-
onClick: onSelectTransferCrypto
|
|
2069
|
-
disabled: transferCryptoState === "loading",
|
|
2070
|
-
trailing: transferCryptoState === "loading" ? SMALL_SPINNER : void 0
|
|
2068
|
+
onClick: onSelectTransferCrypto
|
|
2071
2069
|
}
|
|
2072
2070
|
),
|
|
2073
2071
|
fiatPaymentMethods && fiatPaymentMethods.length > 0 && onSelectFiatMethod ? fiatPaymentMethods.map((opt) => /* @__PURE__ */ jsx14(
|
|
@@ -2705,6 +2703,7 @@ function ProcessingStep({
|
|
|
2705
2703
|
amount,
|
|
2706
2704
|
sourceSymbol: providedSourceSymbol,
|
|
2707
2705
|
sourceDecimals: providedSourceDecimals,
|
|
2706
|
+
amountUsd,
|
|
2708
2707
|
hasPostBridgeActions,
|
|
2709
2708
|
service,
|
|
2710
2709
|
directTransfer,
|
|
@@ -2730,6 +2729,8 @@ function ProcessingStep({
|
|
|
2730
2729
|
amount,
|
|
2731
2730
|
sourceChain,
|
|
2732
2731
|
sourceToken,
|
|
2732
|
+
sourceDecimals: providedSourceDecimals,
|
|
2733
|
+
amountUsd,
|
|
2733
2734
|
targetChain,
|
|
2734
2735
|
targetToken,
|
|
2735
2736
|
hasPostBridgeActions
|
|
@@ -2777,6 +2778,8 @@ function ProcessingStep({
|
|
|
2777
2778
|
amount: context.amount,
|
|
2778
2779
|
sourceChain: context.sourceChain,
|
|
2779
2780
|
sourceToken: context.sourceToken,
|
|
2781
|
+
sourceDecimals: context.sourceDecimals,
|
|
2782
|
+
amountUsd: context.amountUsd,
|
|
2780
2783
|
targetChain: context.targetChain,
|
|
2781
2784
|
targetToken: context.targetToken
|
|
2782
2785
|
});
|
|
@@ -2875,6 +2878,8 @@ function ProcessingStep({
|
|
|
2875
2878
|
amount: context.amount,
|
|
2876
2879
|
sourceChain: context.sourceChain,
|
|
2877
2880
|
sourceToken: context.sourceToken,
|
|
2881
|
+
sourceDecimals: context.sourceDecimals,
|
|
2882
|
+
amountUsd: context.amountUsd,
|
|
2878
2883
|
targetChain: context.targetChain,
|
|
2879
2884
|
targetToken: context.targetToken
|
|
2880
2885
|
});
|
|
@@ -2908,6 +2913,8 @@ function ProcessingStep({
|
|
|
2908
2913
|
amount: context.amount,
|
|
2909
2914
|
sourceChain: context.sourceChain,
|
|
2910
2915
|
sourceToken: context.sourceToken,
|
|
2916
|
+
sourceDecimals: context.sourceDecimals,
|
|
2917
|
+
amountUsd: context.amountUsd,
|
|
2911
2918
|
targetChain: context.targetChain,
|
|
2912
2919
|
targetToken: context.targetToken
|
|
2913
2920
|
});
|
|
@@ -52,13 +52,14 @@ import {
|
|
|
52
52
|
tokenFormatter,
|
|
53
53
|
txRefsMatch,
|
|
54
54
|
useLatestRef
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IZMF2WHM.mjs";
|
|
56
56
|
import {
|
|
57
57
|
DEFAULT_BACKEND_URL,
|
|
58
58
|
DEFAULT_SIGNER_ADDRESS,
|
|
59
59
|
NATIVE_TOKEN_ADDRESS,
|
|
60
60
|
SOLANA_TOKENS,
|
|
61
61
|
SOURCE_CHAINS,
|
|
62
|
+
findTokenDecimals,
|
|
62
63
|
getChainBadge,
|
|
63
64
|
getChainIcon,
|
|
64
65
|
getChainId,
|
|
@@ -74,7 +75,7 @@ import {
|
|
|
74
75
|
getTokenSymbol,
|
|
75
76
|
isNativeSol,
|
|
76
77
|
isStablecoinSymbol
|
|
77
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7C4SPVM5.mjs";
|
|
78
79
|
|
|
79
80
|
// src/DepositModal.tsx
|
|
80
81
|
import {
|
|
@@ -1113,7 +1114,15 @@ function DepositNotification({
|
|
|
1113
1114
|
onFailed,
|
|
1114
1115
|
onDismiss
|
|
1115
1116
|
}) {
|
|
1116
|
-
const {
|
|
1117
|
+
const {
|
|
1118
|
+
txHash,
|
|
1119
|
+
sourceChain,
|
|
1120
|
+
amount,
|
|
1121
|
+
token,
|
|
1122
|
+
sourceDecimals,
|
|
1123
|
+
detectedAt,
|
|
1124
|
+
directTransfer
|
|
1125
|
+
} = deposit;
|
|
1117
1126
|
const [status, setStatus] = useState4(
|
|
1118
1127
|
directTransfer ? "complete" : "processing"
|
|
1119
1128
|
);
|
|
@@ -1131,6 +1140,7 @@ function DepositNotification({
|
|
|
1131
1140
|
amount,
|
|
1132
1141
|
sourceChain,
|
|
1133
1142
|
sourceToken: token,
|
|
1143
|
+
sourceDecimals,
|
|
1134
1144
|
targetChain,
|
|
1135
1145
|
targetToken,
|
|
1136
1146
|
hasPostBridgeActions
|
|
@@ -1149,6 +1159,7 @@ function DepositNotification({
|
|
|
1149
1159
|
amount: context.amount,
|
|
1150
1160
|
sourceChain: context.sourceChain,
|
|
1151
1161
|
sourceToken: context.sourceToken,
|
|
1162
|
+
sourceDecimals: context.sourceDecimals,
|
|
1152
1163
|
targetChain: context.targetChain,
|
|
1153
1164
|
targetToken: context.targetToken
|
|
1154
1165
|
});
|
|
@@ -1240,7 +1251,38 @@ function DepositNotification({
|
|
|
1240
1251
|
const destExplorerUrl = destinationTxHash ? getExplorerTxUrl(targetChain, destinationTxHash) : null;
|
|
1241
1252
|
const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
|
|
1242
1253
|
const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
|
|
1243
|
-
const statusIcon = status === "complete" ? /* @__PURE__ */ jsx5("div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ jsx5(CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ jsx5("div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ jsx5(CloseIcon, {}) }) : /* @__PURE__ */ jsx5("div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */
|
|
1254
|
+
const statusIcon = status === "complete" ? /* @__PURE__ */ jsx5("div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ jsx5(CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ jsx5("div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ jsx5(CloseIcon, {}) }) : /* @__PURE__ */ jsx5("div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ jsxs5(
|
|
1255
|
+
"svg",
|
|
1256
|
+
{
|
|
1257
|
+
className: "rs-deposit-notification-spinner",
|
|
1258
|
+
viewBox: "0 0 44 44",
|
|
1259
|
+
fill: "none",
|
|
1260
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1261
|
+
"aria-hidden": "true",
|
|
1262
|
+
children: [
|
|
1263
|
+
/* @__PURE__ */ jsx5(
|
|
1264
|
+
"path",
|
|
1265
|
+
{
|
|
1266
|
+
className: "rs-deposit-notification-spinner-track",
|
|
1267
|
+
d: "M21.5882 42.1765C32.9588 42.1765 42.1765 32.9588 42.1765 21.5882C42.1765 10.2177 32.9588 1 21.5882 1C10.2177 1 1 10.2177 1 21.5882C1 32.9588 10.2177 42.1765 21.5882 42.1765Z",
|
|
1268
|
+
stroke: "#D4D4D8",
|
|
1269
|
+
strokeWidth: "2",
|
|
1270
|
+
strokeLinecap: "round"
|
|
1271
|
+
}
|
|
1272
|
+
),
|
|
1273
|
+
/* @__PURE__ */ jsx5(
|
|
1274
|
+
"path",
|
|
1275
|
+
{
|
|
1276
|
+
className: "rs-deposit-notification-spinner-head",
|
|
1277
|
+
d: "M28.0422 2.03186C31.4239 3.1515 34.458 5.1279 36.8489 7.76854C39.2398 10.4092 40.906 13.624 41.6852 17.1",
|
|
1278
|
+
stroke: "#52525C",
|
|
1279
|
+
strokeWidth: "2",
|
|
1280
|
+
strokeLinecap: "round"
|
|
1281
|
+
}
|
|
1282
|
+
)
|
|
1283
|
+
]
|
|
1284
|
+
}
|
|
1285
|
+
) });
|
|
1244
1286
|
const showClose = status !== "processing";
|
|
1245
1287
|
return /* @__PURE__ */ jsxs5(
|
|
1246
1288
|
"div",
|
|
@@ -1329,7 +1371,7 @@ function DepositNotification({
|
|
|
1329
1371
|
// src/components/steps/DepositAddressStep.tsx
|
|
1330
1372
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1331
1373
|
var QRCode = lazy(
|
|
1332
|
-
() => import("./QRCode-
|
|
1374
|
+
() => import("./QRCode-WUC652SH.mjs").then((m) => ({ default: m.QRCode }))
|
|
1333
1375
|
);
|
|
1334
1376
|
var POLL_INTERVAL_MS = 4e3;
|
|
1335
1377
|
function isRecord(value) {
|
|
@@ -1418,7 +1460,6 @@ function pickFallbackToken(tokens, current) {
|
|
|
1418
1460
|
function DepositAddressStep({
|
|
1419
1461
|
smartAccount,
|
|
1420
1462
|
solanaDepositAddress,
|
|
1421
|
-
isUpdating = false,
|
|
1422
1463
|
service,
|
|
1423
1464
|
allowedRoutes,
|
|
1424
1465
|
targetChain,
|
|
@@ -1544,7 +1585,6 @@ function DepositAddressStep({
|
|
|
1544
1585
|
};
|
|
1545
1586
|
}, [chainDropdownOpen, tokenDropdownOpen]);
|
|
1546
1587
|
const handleCopy = useCallback2(async () => {
|
|
1547
|
-
if (isUpdating) return;
|
|
1548
1588
|
onCopyAddress?.();
|
|
1549
1589
|
try {
|
|
1550
1590
|
await navigator.clipboard.writeText(displayAddress);
|
|
@@ -1562,7 +1602,7 @@ function DepositAddressStep({
|
|
|
1562
1602
|
setCopied(true);
|
|
1563
1603
|
setTimeout(() => setCopied(false), 2e3);
|
|
1564
1604
|
}
|
|
1565
|
-
}, [displayAddress, onCopyAddress
|
|
1605
|
+
}, [displayAddress, onCopyAddress]);
|
|
1566
1606
|
const handleSelectChain = useCallback2(
|
|
1567
1607
|
(nextChain) => {
|
|
1568
1608
|
const nextTokens = computeTokensForChain(nextChain, allowedTokenSet);
|
|
@@ -1633,10 +1673,13 @@ function DepositAddressStep({
|
|
|
1633
1673
|
const amount = details.amount ?? "0";
|
|
1634
1674
|
const token = details.token;
|
|
1635
1675
|
const sourceSymbol = details.sourceSymbol;
|
|
1636
|
-
const sourceDecimals = details.sourceDecimals;
|
|
1637
1676
|
baselineTxHashRef.current = eventTxHash;
|
|
1638
1677
|
isTrackingRef.current = true;
|
|
1639
1678
|
const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
|
|
1679
|
+
const sourceDecimals = details.sourceDecimals ?? (isEvmToken ? findTokenDecimals(
|
|
1680
|
+
token,
|
|
1681
|
+
typeof chainId === "number" ? chainId : void 0
|
|
1682
|
+
) : void 0);
|
|
1640
1683
|
const directTransfer = typeof chainId === "number" && isEvmToken && isSameRoute(
|
|
1641
1684
|
chainId,
|
|
1642
1685
|
token,
|
|
@@ -1659,7 +1702,8 @@ function DepositAddressStep({
|
|
|
1659
1702
|
onDepositSubmittedRef.current?.({
|
|
1660
1703
|
txHash: eventTxHash,
|
|
1661
1704
|
sourceChain: chainId,
|
|
1662
|
-
amount
|
|
1705
|
+
amount,
|
|
1706
|
+
sourceDecimals
|
|
1663
1707
|
});
|
|
1664
1708
|
}
|
|
1665
1709
|
setPollingError(null);
|
|
@@ -1818,38 +1862,17 @@ function DepositAddressStep({
|
|
|
1818
1862
|
{
|
|
1819
1863
|
style: { display: "flex", flexDirection: "column", gap: 4, width: "100%" },
|
|
1820
1864
|
children: [
|
|
1865
|
+
/* @__PURE__ */ jsxs6("div", { className: "rs-deposit-address-well", children: [
|
|
1866
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-deposit-address-qr", children: /* @__PURE__ */ jsx6(
|
|
1867
|
+
Suspense,
|
|
1868
|
+
{
|
|
1869
|
+
fallback: /* @__PURE__ */ jsx6("div", { className: "rs-skeleton rs-skeleton-qr", "aria-hidden": "true" }),
|
|
1870
|
+
children: /* @__PURE__ */ jsx6(QRCode, { value: displayAddress, size: 190, iconSrc: qrIconSrc })
|
|
1871
|
+
}
|
|
1872
|
+
) }),
|
|
1873
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-deposit-address-value", children: displayAddress })
|
|
1874
|
+
] }),
|
|
1821
1875
|
/* @__PURE__ */ jsxs6(
|
|
1822
|
-
"div",
|
|
1823
|
-
{
|
|
1824
|
-
className: `rs-deposit-address-well ${isUpdating ? "rs-deposit-address-well--updating" : ""}`,
|
|
1825
|
-
children: [
|
|
1826
|
-
/* @__PURE__ */ jsx6("div", { className: "rs-deposit-address-qr", children: /* @__PURE__ */ jsx6(
|
|
1827
|
-
Suspense,
|
|
1828
|
-
{
|
|
1829
|
-
fallback: /* @__PURE__ */ jsx6(
|
|
1830
|
-
"div",
|
|
1831
|
-
{
|
|
1832
|
-
style: {
|
|
1833
|
-
width: 200,
|
|
1834
|
-
height: 200,
|
|
1835
|
-
display: "flex",
|
|
1836
|
-
alignItems: "center",
|
|
1837
|
-
justifyContent: "center"
|
|
1838
|
-
},
|
|
1839
|
-
children: /* @__PURE__ */ jsx6(Spinner, {})
|
|
1840
|
-
}
|
|
1841
|
-
),
|
|
1842
|
-
children: /* @__PURE__ */ jsx6(QRCode, { value: displayAddress, size: 200, iconSrc: qrIconSrc })
|
|
1843
|
-
}
|
|
1844
|
-
) }),
|
|
1845
|
-
/* @__PURE__ */ jsx6("div", { className: "rs-deposit-address-value", children: displayAddress })
|
|
1846
|
-
]
|
|
1847
|
-
}
|
|
1848
|
-
),
|
|
1849
|
-
isUpdating ? /* @__PURE__ */ jsxs6("output", { className: "rs-deposit-address-updating", children: [
|
|
1850
|
-
/* @__PURE__ */ jsx6(Spinner, { className: "rs-spinner--sm" }),
|
|
1851
|
-
"Updating deposit details\u2026"
|
|
1852
|
-
] }) : /* @__PURE__ */ jsxs6(
|
|
1853
1876
|
"button",
|
|
1854
1877
|
{
|
|
1855
1878
|
type: "button",
|
|
@@ -4569,7 +4592,11 @@ function applyAction(state, action) {
|
|
|
4569
4592
|
sourceChain: action.sourceChain,
|
|
4570
4593
|
sourceToken: action.sourceToken ?? null,
|
|
4571
4594
|
sourceSymbol: action.sourceSymbol ?? null,
|
|
4572
|
-
sourceDecimals: action.sourceDecimals ?? null
|
|
4595
|
+
sourceDecimals: action.sourceDecimals ?? null,
|
|
4596
|
+
// The submit site's declared USD value, not the lingering typed
|
|
4597
|
+
// input — a submit that doesn't know it (fiat onramp) must not
|
|
4598
|
+
// inherit one from an abandoned wallet attempt.
|
|
4599
|
+
inputAmountUsd: action.inputAmountUsd ?? null
|
|
4573
4600
|
},
|
|
4574
4601
|
processing: {
|
|
4575
4602
|
...state.processing,
|
|
@@ -5088,6 +5115,7 @@ function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
|
|
|
5088
5115
|
}
|
|
5089
5116
|
var SWAPPED_SOURCE_CHAIN = 8453;
|
|
5090
5117
|
var SWAPPED_SOURCE_TOKEN = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
5118
|
+
var SWAPPED_SOURCE_DECIMALS = 6;
|
|
5091
5119
|
function getAddressKey(address) {
|
|
5092
5120
|
return address ? address.toLowerCase() : null;
|
|
5093
5121
|
}
|
|
@@ -5203,6 +5231,7 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
|
|
|
5203
5231
|
amount: d.amount,
|
|
5204
5232
|
sourceSymbol: d.sourceSymbol ?? void 0,
|
|
5205
5233
|
sourceDecimals: d.sourceDecimals ?? void 0,
|
|
5234
|
+
inputAmountUsd: d.inputAmountUsd ?? void 0,
|
|
5206
5235
|
directTransfer: p.directTransfer
|
|
5207
5236
|
};
|
|
5208
5237
|
}
|
|
@@ -6153,8 +6182,10 @@ function DepositFlow({
|
|
|
6153
6182
|
);
|
|
6154
6183
|
const handleSolanaConfirmed = useCallback7(
|
|
6155
6184
|
(txHash, amountUnits) => {
|
|
6156
|
-
const
|
|
6185
|
+
const depositAtSubmit = storeApi.getState().deposit;
|
|
6186
|
+
const tokenAtSubmit = depositAtSubmit.selectedSolanaToken;
|
|
6157
6187
|
if (!tokenAtSubmit) return;
|
|
6188
|
+
const amountUsd = depositAtSubmit.inputAmountUsd ?? void 0;
|
|
6158
6189
|
logFlow("solana:submitted", {
|
|
6159
6190
|
txHash,
|
|
6160
6191
|
amountUnits,
|
|
@@ -6167,13 +6198,16 @@ function DepositFlow({
|
|
|
6167
6198
|
sourceToken: tokenAtSubmit.mint,
|
|
6168
6199
|
amount: amountUnits,
|
|
6169
6200
|
sourceSymbol: tokenAtSubmit.symbol,
|
|
6170
|
-
sourceDecimals: tokenAtSubmit.decimals
|
|
6201
|
+
sourceDecimals: tokenAtSubmit.decimals,
|
|
6202
|
+
inputAmountUsd: amountUsd
|
|
6171
6203
|
});
|
|
6172
6204
|
onLifecycleRef.current?.({
|
|
6173
6205
|
type: "submitted",
|
|
6174
6206
|
txHash,
|
|
6175
6207
|
sourceChain: "solana",
|
|
6176
|
-
amount: amountUnits
|
|
6208
|
+
amount: amountUnits,
|
|
6209
|
+
sourceDecimals: tokenAtSubmit.decimals,
|
|
6210
|
+
amountUsd
|
|
6177
6211
|
});
|
|
6178
6212
|
},
|
|
6179
6213
|
[logFlow, onLifecycleRef, storeApi]
|
|
@@ -6225,7 +6259,8 @@ function DepositFlow({
|
|
|
6225
6259
|
sourceToken: token,
|
|
6226
6260
|
amount
|
|
6227
6261
|
});
|
|
6228
|
-
const
|
|
6262
|
+
const depositAtSubmit = storeApi.getState().deposit;
|
|
6263
|
+
const asset = depositAtSubmit.selectedAsset;
|
|
6229
6264
|
const dappImport = asset && isDappImportAsset(asset) ? asset : null;
|
|
6230
6265
|
storeApi.dispatch({
|
|
6231
6266
|
type: "deposit/submitted",
|
|
@@ -6233,8 +6268,9 @@ function DepositFlow({
|
|
|
6233
6268
|
sourceChain: chainId,
|
|
6234
6269
|
sourceToken: token,
|
|
6235
6270
|
amount,
|
|
6236
|
-
sourceSymbol:
|
|
6237
|
-
sourceDecimals:
|
|
6271
|
+
sourceSymbol: asset?.symbol,
|
|
6272
|
+
sourceDecimals: asset?.decimals,
|
|
6273
|
+
inputAmountUsd: depositAtSubmit.inputAmountUsd ?? void 0,
|
|
6238
6274
|
directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
|
|
6239
6275
|
});
|
|
6240
6276
|
},
|
|
@@ -6254,27 +6290,31 @@ function DepositFlow({
|
|
|
6254
6290
|
sourceToken: SWAPPED_SOURCE_TOKEN,
|
|
6255
6291
|
amount,
|
|
6256
6292
|
sourceSymbol: info.orderCrypto ?? "USDC",
|
|
6257
|
-
sourceDecimals:
|
|
6293
|
+
sourceDecimals: SWAPPED_SOURCE_DECIMALS
|
|
6258
6294
|
});
|
|
6259
6295
|
onLifecycleRef.current?.({
|
|
6260
6296
|
type: "submitted",
|
|
6261
6297
|
txHash: info.txHash,
|
|
6262
6298
|
sourceChain: SWAPPED_SOURCE_CHAIN,
|
|
6263
|
-
amount
|
|
6299
|
+
amount,
|
|
6300
|
+
sourceDecimals: SWAPPED_SOURCE_DECIMALS
|
|
6264
6301
|
});
|
|
6265
6302
|
},
|
|
6266
6303
|
[logFlow, storeApi, onLifecycleRef]
|
|
6267
6304
|
);
|
|
6268
6305
|
const handleDepositSubmittedCallback = useCallback7(
|
|
6269
6306
|
(txHash, sourceChain, amount) => {
|
|
6307
|
+
const depositAtSubmit = storeApi.getState().deposit;
|
|
6270
6308
|
onLifecycleRef.current?.({
|
|
6271
6309
|
type: "submitted",
|
|
6272
6310
|
txHash,
|
|
6273
6311
|
sourceChain,
|
|
6274
|
-
amount
|
|
6312
|
+
amount,
|
|
6313
|
+
sourceDecimals: depositAtSubmit.selectedAsset?.decimals,
|
|
6314
|
+
amountUsd: depositAtSubmit.inputAmountUsd ?? void 0
|
|
6275
6315
|
});
|
|
6276
6316
|
},
|
|
6277
|
-
[onLifecycleRef]
|
|
6317
|
+
[onLifecycleRef, storeApi]
|
|
6278
6318
|
);
|
|
6279
6319
|
const handleDepositComplete = useCallback7(
|
|
6280
6320
|
(txHash, destinationTxHash, context) => {
|
|
@@ -6391,7 +6431,6 @@ function DepositFlow({
|
|
|
6391
6431
|
handleRetrySetup(dappAddress);
|
|
6392
6432
|
return;
|
|
6393
6433
|
}
|
|
6394
|
-
if (transferCryptoState !== "ready") return;
|
|
6395
6434
|
handleSelectTransferCrypto();
|
|
6396
6435
|
} : void 0,
|
|
6397
6436
|
onSelectPayWithCard: enableFiatOnramp && dappAddress && (!fiatOnrampMethods || fiatOnrampMethods.length === 0) ? () => handleSelectFiatMethod() : void 0,
|
|
@@ -6450,7 +6489,6 @@ function DepositFlow({
|
|
|
6450
6489
|
{
|
|
6451
6490
|
smartAccount: effectiveStep.smartAccount,
|
|
6452
6491
|
solanaDepositAddress: enableSolana ? effectiveStep.solanaDepositAddress : void 0,
|
|
6453
|
-
isUpdating: activeEntry.status !== "ready",
|
|
6454
6492
|
service,
|
|
6455
6493
|
allowedRoutes,
|
|
6456
6494
|
targetChain,
|
|
@@ -6519,6 +6557,7 @@ function DepositFlow({
|
|
|
6519
6557
|
amount: step.amount,
|
|
6520
6558
|
sourceSymbol: step.sourceSymbol,
|
|
6521
6559
|
sourceDecimals: step.sourceDecimals,
|
|
6560
|
+
amountUsd: step.inputAmountUsd,
|
|
6522
6561
|
hasPostBridgeActions: Boolean(postBridgeActions?.length),
|
|
6523
6562
|
service,
|
|
6524
6563
|
directTransfer: step.directTransfer,
|
|
@@ -6584,6 +6623,7 @@ function DepositFlow({
|
|
|
6584
6623
|
amount: step.amount,
|
|
6585
6624
|
sourceSymbol: step.sourceSymbol,
|
|
6586
6625
|
sourceDecimals: step.sourceDecimals,
|
|
6626
|
+
amountUsd: step.inputAmountUsd,
|
|
6587
6627
|
hasPostBridgeActions: Boolean(postBridgeActions?.length),
|
|
6588
6628
|
service,
|
|
6589
6629
|
directTransfer: step.directTransfer,
|
|
@@ -6711,6 +6751,7 @@ function DepositFlow({
|
|
|
6711
6751
|
amount: effectiveStep.amount,
|
|
6712
6752
|
sourceSymbol: effectiveStep.sourceSymbol,
|
|
6713
6753
|
sourceDecimals: effectiveStep.sourceDecimals,
|
|
6754
|
+
amountUsd: effectiveStep.inputAmountUsd,
|
|
6714
6755
|
hasPostBridgeActions: Boolean(postBridgeActions?.length),
|
|
6715
6756
|
service,
|
|
6716
6757
|
directTransfer: effectiveStep.directTransfer,
|
|
@@ -6854,6 +6895,7 @@ function DepositFlow({
|
|
|
6854
6895
|
amount: effectiveStep.amount,
|
|
6855
6896
|
sourceSymbol: effectiveStep.sourceSymbol,
|
|
6856
6897
|
sourceDecimals: effectiveStep.sourceDecimals,
|
|
6898
|
+
amountUsd: effectiveStep.inputAmountUsd,
|
|
6857
6899
|
hasPostBridgeActions: Boolean(postBridgeActions?.length),
|
|
6858
6900
|
service,
|
|
6859
6901
|
directTransfer: effectiveStep.directTransfer,
|
|
@@ -7157,7 +7199,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
7157
7199
|
// src/DepositModal.tsx
|
|
7158
7200
|
import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7159
7201
|
var ReownDepositInner = lazy2(
|
|
7160
|
-
() => import("./DepositModalReown-
|
|
7202
|
+
() => import("./DepositModalReown-CAX35NN2.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
7161
7203
|
);
|
|
7162
7204
|
function sortByCreatedAtDesc(items) {
|
|
7163
7205
|
return [...items].sort((a, b) => {
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
saveSessionOwnerToStorage,
|
|
32
32
|
toEvmCaip2,
|
|
33
33
|
useLatestRef
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IZMF2WHM.mjs";
|
|
35
35
|
import {
|
|
36
36
|
DEFAULT_BACKEND_URL,
|
|
37
37
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
getTokenDecimalsByAddress,
|
|
45
45
|
getTokenIcon,
|
|
46
46
|
getTokenSymbol
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7C4SPVM5.mjs";
|
|
48
48
|
|
|
49
49
|
// src/WithdrawModal.tsx
|
|
50
50
|
import {
|
|
@@ -1494,7 +1494,7 @@ function deriveStepView(step, _registration) {
|
|
|
1494
1494
|
// src/WithdrawModal.tsx
|
|
1495
1495
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1496
1496
|
var ReownWithdrawInner = lazy(
|
|
1497
|
-
() => import("./WithdrawModalReown-
|
|
1497
|
+
() => import("./WithdrawModalReown-V4YYPNBE.mjs").then((m) => ({
|
|
1498
1498
|
default: m.WithdrawModalReown
|
|
1499
1499
|
}))
|
|
1500
1500
|
);
|
package/dist/constants.cjs
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkDZ2RPLBMcjs = require('./chunk-DZ2RPLBM.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -63,4 +63,4 @@ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
exports.CHAIN_BY_ID =
|
|
66
|
+
exports.CHAIN_BY_ID = _chunkDZ2RPLBMcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkDZ2RPLBMcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkDZ2RPLBMcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkDZ2RPLBMcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkDZ2RPLBMcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkDZ2RPLBMcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkDZ2RPLBMcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkDZ2RPLBMcjs.chainRegistry; exports.findChainIdForToken = _chunkDZ2RPLBMcjs.findChainIdForToken; exports.getChainBadge = _chunkDZ2RPLBMcjs.getChainBadge; exports.getChainIcon = _chunkDZ2RPLBMcjs.getChainIcon; exports.getChainId = _chunkDZ2RPLBMcjs.getChainId; exports.getChainName = _chunkDZ2RPLBMcjs.getChainName; exports.getChainObject = _chunkDZ2RPLBMcjs.getChainObject; exports.getExplorerName = _chunkDZ2RPLBMcjs.getExplorerName; exports.getExplorerTxUrl = _chunkDZ2RPLBMcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkDZ2RPLBMcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkDZ2RPLBMcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkDZ2RPLBMcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkDZ2RPLBMcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkDZ2RPLBMcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkDZ2RPLBMcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkDZ2RPLBMcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkDZ2RPLBMcjs.getTokenAddress; exports.getTokenDecimals = _chunkDZ2RPLBMcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkDZ2RPLBMcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkDZ2RPLBMcjs.getTokenIcon; exports.getTokenSymbol = _chunkDZ2RPLBMcjs.getTokenSymbol; exports.getUsdcAddress = _chunkDZ2RPLBMcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkDZ2RPLBMcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkDZ2RPLBMcjs.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 _chunkAAQPYKBAcjs = require('./chunk-AAQPYKBA.cjs');
|
|
4
|
+
require('./chunk-7NO7WVJV.cjs');
|
|
5
|
+
require('./chunk-DZ2RPLBM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkAAQPYKBAcjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { f as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { f as DepositModalProps } from './types-cXr3j4NV.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-cXr3j4NV.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { f as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { f as DepositModalProps } from './types-cXr3j4NV.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-cXr3j4NV.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAAQPYKBAcjs = require('./chunk-AAQPYKBA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunk7LJYEGZZcjs = require('./chunk-7LJYEGZZ.cjs');
|
|
7
|
+
require('./chunk-7NO7WVJV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ require('./chunk-DZNXG5JK.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkDZ2RPLBMcjs = require('./chunk-DZ2RPLBM.cjs');
|
|
38
38
|
|
|
39
39
|
// src/core/reown-disconnect.ts
|
|
40
40
|
var _react = require('@reown/appkit/react');
|
|
@@ -79,4 +79,4 @@ async function disconnectWallet() {
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
exports.CHAIN_BY_ID =
|
|
82
|
+
exports.CHAIN_BY_ID = _chunkDZ2RPLBMcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkDZ2RPLBMcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkDZ2RPLBMcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkAAQPYKBAcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkDZ2RPLBMcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkDZ2RPLBMcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkDZ2RPLBMcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk7LJYEGZZcjs.WithdrawModal; exports.chainRegistry = _chunkDZ2RPLBMcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkDZ2RPLBMcjs.findChainIdForToken; exports.getChainBadge = _chunkDZ2RPLBMcjs.getChainBadge; exports.getChainIcon = _chunkDZ2RPLBMcjs.getChainIcon; exports.getChainId = _chunkDZ2RPLBMcjs.getChainId; exports.getChainName = _chunkDZ2RPLBMcjs.getChainName; exports.getChainObject = _chunkDZ2RPLBMcjs.getChainObject; exports.getExplorerName = _chunkDZ2RPLBMcjs.getExplorerName; exports.getExplorerTxUrl = _chunkDZ2RPLBMcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkDZ2RPLBMcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkDZ2RPLBMcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkDZ2RPLBMcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkDZ2RPLBMcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkDZ2RPLBMcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkDZ2RPLBMcjs.getTokenAddress; exports.getTokenDecimals = _chunkDZ2RPLBMcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkDZ2RPLBMcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkDZ2RPLBMcjs.getTokenIcon; exports.getTokenSymbol = _chunkDZ2RPLBMcjs.getTokenSymbol; exports.getUsdcAddress = _chunkDZ2RPLBMcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkDZ2RPLBMcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkDZ2RPLBMcjs.isSupportedTokenAddressForChain;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-cXr3j4NV.cjs';
|
|
4
4
|
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, b as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, d as getChainIcon, e as getChainId, h as getChainName, i as getChainObject, j as getExplorerName, k as getExplorerTxUrl, l as getExplorerUrl, m as getSupportedChainIds, n as getSupportedTargetTokens, o as getSupportedTokenSymbolsForChain, p as getTargetTokenSymbolsForChain, q as getTokenAddress, r as getTokenDecimals, s as getTokenDecimalsByAddress, t as getTokenIcon, u as getTokenSymbol, v as getUsdcAddress, w as getUsdcDecimals, x as isSupportedTokenAddressForChain } from './constants-DqVn968d.cjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-cXr3j4NV.js';
|
|
4
4
|
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, b as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, d as getChainIcon, e as getChainId, h as getChainName, i as getChainObject, j as getExplorerName, k as getExplorerTxUrl, l as getExplorerUrl, m as getSupportedChainIds, n as getSupportedTargetTokens, o as getSupportedTokenSymbolsForChain, p as getTargetTokenSymbolsForChain, q as getTokenAddress, r as getTokenDecimals, s as getTokenDecimalsByAddress, t as getTokenIcon, u as getTokenSymbol, v as getUsdcAddress, w as getUsdcDecimals, x as isSupportedTokenAddressForChain } from './constants-DqVn968d.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|