@rash2x/bridge-widget 0.8.8 → 0.8.9
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-CrZzrVbc.cjs → index--9cCU23B.cjs} +2 -2
- package/dist/{index-CrZzrVbc.cjs.map → index--9cCU23B.cjs.map} +1 -1
- package/dist/{index-CCiUu9QP.cjs → index-BLnE8fLp.cjs} +16 -8
- package/dist/index-BLnE8fLp.cjs.map +1 -0
- package/dist/{index-CZGfdIKB.js → index-Bl4_W_Mc.js} +2 -2
- package/dist/{index-CZGfdIKB.js.map → index-Bl4_W_Mc.js.map} +1 -1
- package/dist/{index-JmSrX7Hz.js → index-IZ7t2PGj.js} +16 -8
- package/dist/index-IZ7t2PGj.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-CCiUu9QP.cjs.map +0 -1
- package/dist/index-JmSrX7Hz.js.map +0 -1
|
@@ -4643,7 +4643,7 @@ function useBridgeTransaction() {
|
|
|
4643
4643
|
const txStore = useTransactionStore();
|
|
4644
4644
|
const gas = useGasEstimate();
|
|
4645
4645
|
const srcToken = React.useMemo(
|
|
4646
|
-
() =>
|
|
4646
|
+
() => resolveBridgeSourceTokenOnChainFromMatrix(
|
|
4647
4647
|
assetMatrix,
|
|
4648
4648
|
selectedAssetSymbol,
|
|
4649
4649
|
quote?.srcChainKey
|
|
@@ -4651,7 +4651,7 @@ function useBridgeTransaction() {
|
|
|
4651
4651
|
[assetMatrix, selectedAssetSymbol, quote?.srcChainKey]
|
|
4652
4652
|
);
|
|
4653
4653
|
const dstToken = React.useMemo(
|
|
4654
|
-
() =>
|
|
4654
|
+
() => resolveBridgeDestinationTokenOnChainFromMatrix(
|
|
4655
4655
|
assetMatrix,
|
|
4656
4656
|
selectedAssetSymbol,
|
|
4657
4657
|
quote?.dstChainKey
|
|
@@ -5606,6 +5606,14 @@ const SuccessStep = ({
|
|
|
5606
5606
|
const { t: t2 } = useBridgeTranslation();
|
|
5607
5607
|
const metadata = current?.metadata;
|
|
5608
5608
|
const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
|
|
5609
|
+
const srcAmount = metadata?.srcAmountHuman;
|
|
5610
|
+
const hasSrcAmount = Number.isFinite(srcAmount);
|
|
5611
|
+
const srcTokenSymbol = metadata?.srcTokenSymbol ?? "default";
|
|
5612
|
+
const formatSrcAmount = (value) => {
|
|
5613
|
+
if (value <= 0) return "0";
|
|
5614
|
+
if (value >= 1) return formatBalance(value, 2);
|
|
5615
|
+
return value.toFixed(6).replace(/\.?0+$/, "");
|
|
5616
|
+
};
|
|
5609
5617
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5610
5618
|
dialog.DialogContent,
|
|
5611
5619
|
{
|
|
@@ -5616,17 +5624,17 @@ const SuccessStep = ({
|
|
|
5616
5624
|
icon,
|
|
5617
5625
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "z-10 relative p-0", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-[28px] text-center", children: t2("transaction.success") }) }),
|
|
5618
5626
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full space-y-2 mt-5 relative z-10 pb-14", children: [
|
|
5619
|
-
|
|
5627
|
+
hasSrcAmount && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
5620
5628
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.bridged") }),
|
|
5621
5629
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1 font-medium", children: [
|
|
5622
|
-
|
|
5630
|
+
formatSrcAmount(srcAmount ?? 0),
|
|
5623
5631
|
" ",
|
|
5624
|
-
|
|
5632
|
+
srcTokenSymbol,
|
|
5625
5633
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5626
5634
|
TokenSymbol,
|
|
5627
5635
|
{
|
|
5628
5636
|
className: "w-[18px] h-[18px]",
|
|
5629
|
-
symbol:
|
|
5637
|
+
symbol: srcTokenSymbol
|
|
5630
5638
|
}
|
|
5631
5639
|
)
|
|
5632
5640
|
] })
|
|
@@ -26757,7 +26765,7 @@ class WalletConnectModal {
|
|
|
26757
26765
|
}
|
|
26758
26766
|
async initUi() {
|
|
26759
26767
|
if (typeof window !== "undefined") {
|
|
26760
|
-
await Promise.resolve().then(() => require("./index
|
|
26768
|
+
await Promise.resolve().then(() => require("./index--9cCU23B.cjs"));
|
|
26761
26769
|
const modal = document.createElement("wcm-modal");
|
|
26762
26770
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
26763
26771
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -27679,4 +27687,4 @@ exports.useSettingsStore = useSettingsStore;
|
|
|
27679
27687
|
exports.useSwapModel = useSwapModel;
|
|
27680
27688
|
exports.useTokensStore = useTokensStore;
|
|
27681
27689
|
exports.useTransactionStore = useTransactionStore;
|
|
27682
|
-
//# sourceMappingURL=index-
|
|
27690
|
+
//# sourceMappingURL=index-BLnE8fLp.cjs.map
|