@rash2x/bridge-widget 0.8.12 → 0.8.13
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/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-BCIrDt8T.js → index-BAdzAtjk.js} +22 -13
- package/dist/index-BAdzAtjk.js.map +1 -0
- package/dist/{index-DzF-shMU.js → index-C6REajy2.js} +2 -2
- package/dist/{index-DzF-shMU.js.map → index-C6REajy2.js.map} +1 -1
- package/dist/{index-vHCZ6OHb.cjs → index-CnyWtwGE.cjs} +22 -13
- package/dist/index-CnyWtwGE.cjs.map +1 -0
- package/dist/{index-Bwb-znal.cjs → index-DNhnmjll.cjs} +2 -2
- package/dist/{index-Bwb-znal.cjs.map → index-DNhnmjll.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BCIrDt8T.js.map +0 -1
- package/dist/index-vHCZ6OHb.cjs.map +0 -1
package/dist/evaa-bridge.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-CnyWtwGE.cjs");
|
|
4
4
|
exports.DEFAULT_SLIPPAGE_BPS = index.DEFAULT_SLIPPAGE_BPS;
|
|
5
5
|
exports.EvaaBridge = index.EvaaBridge;
|
|
6
6
|
exports.RoutePriority = index.RoutePriority;
|
package/dist/evaa-bridge.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P, d, f, e, D, U, H, y, B, W, w, s, v, r, p, q, G, $, a8, a1, a5, x, z, a2, A, a0, a6, a7, Z, _, V, a3, S, I, X, a4, Y, a9, aa, N, L, J, K, F, Q, t, o, i, u, l, m, j, n, h, k } from "./index-
|
|
1
|
+
import { P, d, f, e, D, U, H, y, B, W, w, s, v, r, p, q, G, $, a8, a1, a5, x, z, a2, A, a0, a6, a7, Z, _, V, a3, S, I, X, a4, Y, a9, aa, N, L, J, K, F, Q, t, o, i, u, l, m, j, n, h, k } from "./index-BAdzAtjk.js";
|
|
2
2
|
export {
|
|
3
3
|
P as DEFAULT_SLIPPAGE_BPS,
|
|
4
4
|
d as EvaaBridge,
|
|
@@ -1243,7 +1243,9 @@ const ChainSelectModal = ({
|
|
|
1243
1243
|
];
|
|
1244
1244
|
const allSymbols = [
|
|
1245
1245
|
selectedAssetSymbol.toUpperCase(),
|
|
1246
|
-
...getEquivalentSymbols(selectedAssetSymbol).map(
|
|
1246
|
+
...getEquivalentSymbols(selectedAssetSymbol).map(
|
|
1247
|
+
(s2) => s2.toUpperCase()
|
|
1248
|
+
)
|
|
1247
1249
|
];
|
|
1248
1250
|
const hasTokenOrEquiv = (chainKey) => allSymbols.some((sym) => !!assetMatrix[sym]?.[chainKey]);
|
|
1249
1251
|
if (!hasTokenOrEquiv(dstChain.chainKey)) return void 0;
|
|
@@ -1362,8 +1364,13 @@ const ChainSelectModal = ({
|
|
|
1362
1364
|
if (!result) return;
|
|
1363
1365
|
const dstToken = assetMatrix?.[result.tokenSymbol.toUpperCase()]?.[chain2.chainKey];
|
|
1364
1366
|
if (!dstToken?.address) return;
|
|
1365
|
-
const availableSources = await getDestTokens(
|
|
1366
|
-
|
|
1367
|
+
const availableSources = await getDestTokens(
|
|
1368
|
+
chain2.chainKey,
|
|
1369
|
+
dstToken.address
|
|
1370
|
+
);
|
|
1371
|
+
const sourceChainKeys = new Set(
|
|
1372
|
+
availableSources.map((t22) => t22.chainKey ?? "")
|
|
1373
|
+
);
|
|
1367
1374
|
let validSrc;
|
|
1368
1375
|
for (const key of PRIORITY_CHAINS) {
|
|
1369
1376
|
if (sourceChainKeys.has(key) && key !== fromChain?.chainKey && key !== chain2.chainKey) {
|
|
@@ -1395,8 +1402,13 @@ const ChainSelectModal = ({
|
|
|
1395
1402
|
}
|
|
1396
1403
|
}
|
|
1397
1404
|
if (!dstToken?.address) return;
|
|
1398
|
-
const availableSources = await getDestTokens(
|
|
1399
|
-
|
|
1405
|
+
const availableSources = await getDestTokens(
|
|
1406
|
+
chain2.chainKey,
|
|
1407
|
+
dstToken.address
|
|
1408
|
+
);
|
|
1409
|
+
const sourceChainKeys = new Set(
|
|
1410
|
+
availableSources.map((t22) => t22.chainKey ?? "")
|
|
1411
|
+
);
|
|
1400
1412
|
let validSrc;
|
|
1401
1413
|
for (const key of PRIORITY_CHAINS) {
|
|
1402
1414
|
if (sourceChainKeys.has(key) && key !== fromChain?.chainKey && key !== chain2.chainKey) {
|
|
@@ -1466,12 +1478,9 @@ const ChainSelectModal = ({
|
|
|
1466
1478
|
);
|
|
1467
1479
|
};
|
|
1468
1480
|
return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col", children: [
|
|
1469
|
-
/* @__PURE__ */ jsx(DialogHeader, { className: "text-left pb-2", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
isSource ? "bridge.sourceNetwork" : "bridge.destinationNetwork"
|
|
1473
|
-
) })
|
|
1474
|
-
] }) }) }),
|
|
1481
|
+
/* @__PURE__ */ jsx(DialogHeader, { className: "text-left pb-2", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0", children: /* @__PURE__ */ jsx("div", { children: t2(
|
|
1482
|
+
isSource ? "bridge.selectSourceNetwork" : "bridge.selectDestinationNetwork"
|
|
1483
|
+
) }) }) }) }),
|
|
1475
1484
|
/* @__PURE__ */ jsx(
|
|
1476
1485
|
SearchInput,
|
|
1477
1486
|
{
|
|
@@ -26804,7 +26813,7 @@ class WalletConnectModal {
|
|
|
26804
26813
|
}
|
|
26805
26814
|
async initUi() {
|
|
26806
26815
|
if (typeof window !== "undefined") {
|
|
26807
|
-
await import("./index-
|
|
26816
|
+
await import("./index-C6REajy2.js");
|
|
26808
26817
|
const modal = document.createElement("wcm-modal");
|
|
26809
26818
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
26810
26819
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -27728,4 +27737,4 @@ export {
|
|
|
27728
27737
|
calculateMinReceived as y,
|
|
27729
27738
|
getQuoteDetails as z
|
|
27730
27739
|
};
|
|
27731
|
-
//# sourceMappingURL=index-
|
|
27740
|
+
//# sourceMappingURL=index-BAdzAtjk.js.map
|