@rash2x/bridge-widget 0.6.95 → 0.6.96
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-kdPPX_i5.cjs → index-CCS3APn7.cjs} +2 -35
- package/dist/index-CCS3APn7.cjs.map +1 -0
- package/dist/{index-CBUX3Jzi.cjs → index-CZs6AE2i.cjs} +2 -2
- package/dist/{index-CBUX3Jzi.cjs.map → index-CZs6AE2i.cjs.map} +1 -1
- package/dist/{index-UWqhEblz.js → index-D6FY4jbl.js} +2 -35
- package/dist/index-D6FY4jbl.js.map +1 -0
- package/dist/{index-D8kQruAb.js → index-DzthdnPi.js} +2 -2
- package/dist/{index-D8kQruAb.js.map → index-DzthdnPi.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-UWqhEblz.js.map +0 -1
- package/dist/index-kdPPX_i5.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-CCS3APn7.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 { L, d, f, e, D, Q, H, y, B, U, w, s, v, r, p, q, G, X, a3, Z, a0, x, z, _, A, Y, a1, a2, S, $, P, I, V, W, a4, a5, J, K, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-
|
|
1
|
+
import { L, d, f, e, D, Q, H, y, B, U, w, s, v, r, p, q, G, X, a3, Z, a0, x, z, _, A, Y, a1, a2, S, $, P, I, V, W, a4, a5, J, K, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-D6FY4jbl.js";
|
|
2
2
|
export {
|
|
3
3
|
L as DEFAULT_SLIPPAGE_BPS,
|
|
4
4
|
d as EvaaBridge,
|
|
@@ -4466,37 +4466,8 @@ const SuccessStep = ({
|
|
|
4466
4466
|
}) => {
|
|
4467
4467
|
const { current, reset } = useTransactionStore();
|
|
4468
4468
|
const { t: t2 } = useBridgeTranslation();
|
|
4469
|
-
const { chains } = useChainsStore();
|
|
4470
4469
|
const metadata = current?.metadata;
|
|
4471
4470
|
const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
|
|
4472
|
-
const srcChainKey = current?.quote?.srcChainKey;
|
|
4473
|
-
const quote = current?.quote;
|
|
4474
|
-
const estimatedFee = react.useMemo(() => {
|
|
4475
|
-
if (!quote?.fees || !srcChainKey || !chains) return null;
|
|
4476
|
-
const srcChain = chains.find((c2) => c2.chainKey === srcChainKey);
|
|
4477
|
-
if (!srcChain) return null;
|
|
4478
|
-
const nativeCurrencyAddress = srcChain.nativeCurrency.address;
|
|
4479
|
-
const nativeCurrencyDecimals = srcChain.nativeCurrency.decimals;
|
|
4480
|
-
const nativeCurrencySymbol = srcChain.nativeCurrency.symbol;
|
|
4481
|
-
const feesInNative = quote.fees.filter(
|
|
4482
|
-
(f4) => f4.chainKey === srcChainKey && f4.token === nativeCurrencyAddress
|
|
4483
|
-
).reduce((sum, f4) => sum + BigInt(f4.amount || "0"), 0n);
|
|
4484
|
-
if (feesInNative === 0n) return null;
|
|
4485
|
-
const feeValue = Number(feesInNative) / Math.pow(10, nativeCurrencyDecimals);
|
|
4486
|
-
return {
|
|
4487
|
-
value: feeValue,
|
|
4488
|
-
symbol: nativeCurrencySymbol
|
|
4489
|
-
};
|
|
4490
|
-
}, [quote, srcChainKey, chains]);
|
|
4491
|
-
const finalFee = react.useMemo(() => {
|
|
4492
|
-
if (metadata?.actualFeeValue !== void 0 && metadata?.actualFeeSymbol) {
|
|
4493
|
-
return {
|
|
4494
|
-
value: metadata.actualFeeValue,
|
|
4495
|
-
symbol: metadata.actualFeeSymbol
|
|
4496
|
-
};
|
|
4497
|
-
}
|
|
4498
|
-
return estimatedFee;
|
|
4499
|
-
}, [metadata?.actualFeeValue, metadata?.actualFeeSymbol, estimatedFee]);
|
|
4500
4471
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4501
4472
|
dialog.DialogContent,
|
|
4502
4473
|
{
|
|
@@ -4562,10 +4533,6 @@ const SuccessStep = ({
|
|
|
4562
4533
|
children: formatHash(srcTxHash)
|
|
4563
4534
|
}
|
|
4564
4535
|
)
|
|
4565
|
-
] }),
|
|
4566
|
-
finalFee && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4567
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.finalFee") }),
|
|
4568
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: `${formatBalance(finalFee.value, 6)} ${finalFee.symbol}` })
|
|
4569
4536
|
] })
|
|
4570
4537
|
] }),
|
|
4571
4538
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogFooter, { className: "w-full pt-10", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) })
|
|
@@ -25724,7 +25691,7 @@ class WalletConnectModal {
|
|
|
25724
25691
|
}
|
|
25725
25692
|
async initUi() {
|
|
25726
25693
|
if (typeof window !== "undefined") {
|
|
25727
|
-
await Promise.resolve().then(() => require("./index-
|
|
25694
|
+
await Promise.resolve().then(() => require("./index-CZs6AE2i.cjs"));
|
|
25728
25695
|
const modal = document.createElement("wcm-modal");
|
|
25729
25696
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25730
25697
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26559,4 +26526,4 @@ exports.useSettingsStore = useSettingsStore;
|
|
|
26559
26526
|
exports.useSwapModel = useSwapModel;
|
|
26560
26527
|
exports.useTokensStore = useTokensStore;
|
|
26561
26528
|
exports.useTransactionStore = useTransactionStore;
|
|
26562
|
-
//# sourceMappingURL=index-
|
|
26529
|
+
//# sourceMappingURL=index-CCS3APn7.cjs.map
|