@rash2x/bridge-widget 0.6.29 → 0.6.31
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 +2 -1
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +7 -6
- package/dist/{index-ieIpvYrV.js → index-CWy9GAOY.js} +2 -2
- package/dist/{index-ieIpvYrV.js.map → index-CWy9GAOY.js.map} +1 -1
- package/dist/{index-BsYvWq1w.cjs → index-DvX1RsdJ.cjs} +2 -2
- package/dist/{index-BsYvWq1w.cjs.map → index-DvX1RsdJ.cjs.map} +1 -1
- package/dist/{index-BqFCsB_A.js → index-LQOauLrq.js} +129 -108
- package/dist/index-LQOauLrq.js.map +1 -0
- package/dist/{index-BtLimmVe.cjs → index-ojFP6uCK.cjs} +124 -103
- package/dist/index-ojFP6uCK.cjs.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-BqFCsB_A.js.map +0 -1
- package/dist/index-BtLimmVe.cjs.map +0 -1
|
@@ -455,6 +455,7 @@ function resolveTokenOnChain(tokens, assetSymbol, chainKey) {
|
|
|
455
455
|
}
|
|
456
456
|
const initialState = {
|
|
457
457
|
tokens: void 0,
|
|
458
|
+
allTokens: void 0,
|
|
458
459
|
selectedToken: void 0,
|
|
459
460
|
selectedAssetSymbol: void 0
|
|
460
461
|
};
|
|
@@ -463,6 +464,9 @@ const useTokensStore = zustand.create((set2) => ({
|
|
|
463
464
|
setTokens: (data) => {
|
|
464
465
|
set2({ tokens: data, assetMatrix: buildAssetMatrix(data) });
|
|
465
466
|
},
|
|
467
|
+
setAllTokens: (data) => {
|
|
468
|
+
set2({ allTokens: data });
|
|
469
|
+
},
|
|
466
470
|
setSelectedToken: (data) => {
|
|
467
471
|
set2({ selectedToken: data });
|
|
468
472
|
},
|
|
@@ -4427,7 +4431,7 @@ const ProgressStep = ({
|
|
|
4427
4431
|
];
|
|
4428
4432
|
return /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px] p-10", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex relative flex-col gap-6 flex-1 items-center justify-start text-center bg-background p-6", children: [
|
|
4429
4433
|
icon,
|
|
4430
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4434
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 pb-2 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.inProgress") }) }),
|
|
4431
4435
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
4432
4436
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-5 top-5 bottom-5 border-l border-dashed border-foreground/50" }),
|
|
4433
4437
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-6 relative z-10", children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4455,7 +4459,7 @@ const FailedStep = ({
|
|
|
4455
4459
|
return /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { showCloseButton: true, className: "overflow-hidden md:max-w-[420px] p-10", children: [
|
|
4456
4460
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center", children: [
|
|
4457
4461
|
icon,
|
|
4458
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4462
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pb-2 text-center", children: [
|
|
4459
4463
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.failed") }),
|
|
4460
4464
|
current?.errorCode && /* @__PURE__ */ jsxRuntime.jsx(reactDialog.DialogDescription, { children: t2(
|
|
4461
4465
|
`errors.${current.errorCode}`,
|
|
@@ -4570,7 +4574,7 @@ const SuccessStep = ({
|
|
|
4570
4574
|
return /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { showCloseButton: true, className: "overflow-hidden md:max-w-[420px] p-10", children: [
|
|
4571
4575
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4 flex-1 justify-start items-center text-center bg-background", children: [
|
|
4572
4576
|
icon,
|
|
4573
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4577
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 pb-2 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.success") }) }),
|
|
4574
4578
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full space-y-2 mt-4 relative z-10 pb-14", children: [
|
|
4575
4579
|
metadata?.srcAmountHuman && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4576
4580
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.bridged") }),
|
|
@@ -4645,7 +4649,7 @@ const ConfirmStep = ({
|
|
|
4645
4649
|
const { formatTime } = useCountdown(90);
|
|
4646
4650
|
return /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px] p-10", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center", children: [
|
|
4647
4651
|
icon,
|
|
4648
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4652
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pb-2 text-center", children: [
|
|
4649
4653
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.confirm") }),
|
|
4650
4654
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogDescription, { children: t2("transaction.signTransaction") })
|
|
4651
4655
|
] }),
|
|
@@ -4674,7 +4678,7 @@ const StatusStepsDialog = ({
|
|
|
4674
4678
|
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: true, onOpenChange: () => reset(), children: step });
|
|
4675
4679
|
};
|
|
4676
4680
|
const useTokens = () => {
|
|
4677
|
-
const { setTokens, setSelectedToken, setSelectedAssetSymbol } = useTokensStore();
|
|
4681
|
+
const { setTokens, setAllTokens, setSelectedToken, setSelectedAssetSymbol } = useTokensStore();
|
|
4678
4682
|
const query = reactQuery.useQuery({
|
|
4679
4683
|
queryKey: ["tokens"],
|
|
4680
4684
|
queryFn: () => getTokens(),
|
|
@@ -4684,20 +4688,24 @@ const useTokens = () => {
|
|
|
4684
4688
|
// 30 минут
|
|
4685
4689
|
gcTime: 60 * 6e4,
|
|
4686
4690
|
// 1 час хранения в кэше
|
|
4687
|
-
refetchOnWindowFocus: false
|
|
4688
|
-
select: (list) => list.filter((t2) => t2.isBridgeable === true)
|
|
4691
|
+
refetchOnWindowFocus: false
|
|
4689
4692
|
});
|
|
4690
4693
|
react.useEffect(() => {
|
|
4691
4694
|
if (query.isSuccess && query.data?.length) {
|
|
4692
|
-
|
|
4693
|
-
const
|
|
4695
|
+
setAllTokens(query.data);
|
|
4696
|
+
const bridgeableTokens = query.data.filter(
|
|
4697
|
+
(t2) => t2.isBridgeable === true
|
|
4698
|
+
);
|
|
4699
|
+
setTokens(bridgeableTokens);
|
|
4700
|
+
const firstAsset = listAssetsForSelect(bridgeableTokens)[0];
|
|
4694
4701
|
setSelectedAssetSymbol(firstAsset?.symbol);
|
|
4695
|
-
setSelectedToken(
|
|
4702
|
+
setSelectedToken(bridgeableTokens[0]);
|
|
4696
4703
|
}
|
|
4697
4704
|
}, [
|
|
4698
4705
|
query.isSuccess,
|
|
4699
4706
|
query.data,
|
|
4700
4707
|
setTokens,
|
|
4708
|
+
setAllTokens,
|
|
4701
4709
|
setSelectedToken,
|
|
4702
4710
|
setSelectedAssetSymbol
|
|
4703
4711
|
]);
|
|
@@ -6569,7 +6577,7 @@ const useConnectedWalletsStore = zustand.create((set2, get2) => ({
|
|
|
6569
6577
|
}
|
|
6570
6578
|
}));
|
|
6571
6579
|
const gasPresets = ["auto", "none", "medium", "max"];
|
|
6572
|
-
const slippagePresets = ["0.5%", "1
|
|
6580
|
+
const slippagePresets = ["0.5%", "1%", "5%"];
|
|
6573
6581
|
const routePresets = [
|
|
6574
6582
|
RoutePriority.FASTEST,
|
|
6575
6583
|
RoutePriority.CHEAPEST,
|
|
@@ -6578,7 +6586,7 @@ const routePresets = [
|
|
|
6578
6586
|
const SettingsModal = ({ isOpen, onClose }) => {
|
|
6579
6587
|
const { t: t2 } = useBridgeTranslation();
|
|
6580
6588
|
const { toChain } = useChainsStore();
|
|
6581
|
-
const {
|
|
6589
|
+
const { allTokens } = useTokensStore();
|
|
6582
6590
|
const {
|
|
6583
6591
|
slippageBps,
|
|
6584
6592
|
routePriority,
|
|
@@ -6592,9 +6600,14 @@ const SettingsModal = ({ isOpen, onClose }) => {
|
|
|
6592
6600
|
(preset) => parseFloat(preset.replace("%", "")) === slippageBps / 100
|
|
6593
6601
|
);
|
|
6594
6602
|
const dstNativeToken = toChain?.nativeCurrency;
|
|
6595
|
-
const nativeTokenPrice =
|
|
6596
|
-
(
|
|
6597
|
-
|
|
6603
|
+
const nativeTokenPrice = (() => {
|
|
6604
|
+
if (!allTokens || !dstNativeToken?.symbol || !toChain?.chainKey) return 0;
|
|
6605
|
+
const token = allTokens.find(
|
|
6606
|
+
(t22) => t22.chainKey === toChain.chainKey && t22.symbol?.toUpperCase() === dstNativeToken.symbol.toUpperCase()
|
|
6607
|
+
);
|
|
6608
|
+
const price = token?.price?.usd;
|
|
6609
|
+
return typeof price === "number" && isFinite(price) && price > 0 ? price : 0;
|
|
6610
|
+
})();
|
|
6598
6611
|
const gasDisplayAmount = gasPresetToDisplayAmount(
|
|
6599
6612
|
gasPreset,
|
|
6600
6613
|
toChain?.chainKey,
|
|
@@ -6608,96 +6621,103 @@ const SettingsModal = ({ isOpen, onClose }) => {
|
|
|
6608
6621
|
);
|
|
6609
6622
|
const activeBtn = "bg-primary hover:bg-primary/80 text-primary-foreground transition-colors";
|
|
6610
6623
|
const notActiveBtn = "bg-accent hover:bg-accent/80 text-accent-foreground transition-colors";
|
|
6611
|
-
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6624
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6625
|
+
dialog.DialogContent,
|
|
6626
|
+
{
|
|
6627
|
+
onOpenAutoFocus: (e2) => e2.preventDefault(),
|
|
6628
|
+
className: "p-10 pt-7",
|
|
6629
|
+
children: [
|
|
6630
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t2("settings.title") }) }),
|
|
6631
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
6632
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
6633
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
6634
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6635
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t2("settings.gasOnDestination") }),
|
|
6636
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t2("settings.gasOnDestinationDescription"), children: /* @__PURE__ */ jsxRuntime.jsx(InfoIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
6637
|
+
] }),
|
|
6638
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm font-medium leading-4", children: formatUsd(gasUsdValue) })
|
|
6639
|
+
] }),
|
|
6640
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
6641
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center w-1/3 gap-2 shrink-0", children: [
|
|
6642
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6643
|
+
TokenSymbol,
|
|
6644
|
+
{
|
|
6645
|
+
symbol: dstNativeToken?.symbol || "eth",
|
|
6646
|
+
className: "h-4 w-4 rounded-full",
|
|
6647
|
+
alt: dstNativeToken?.symbol || t2("common.nativeToken", { defaultValue: "Native Token" })
|
|
6648
|
+
}
|
|
6649
|
+
),
|
|
6650
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-foreground leading-5 font-semibold h-5", children: gasDisplayAmount % 1 === 0 ? gasDisplayAmount.toFixed(0) : gasDisplayAmount.toFixed(
|
|
6651
|
+
gasDisplayAmount < 1e-3 ? 6 : 3
|
|
6652
|
+
) }) })
|
|
6653
|
+
] }),
|
|
6654
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: gasPresets.map((g2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6655
|
+
badge.Badge,
|
|
6656
|
+
{
|
|
6657
|
+
onClick: () => setGasPreset(g2),
|
|
6658
|
+
className: utils$1.cn(
|
|
6659
|
+
"cursor-pointer h-7 rounded px-2",
|
|
6660
|
+
gasPreset === g2 ? activeBtn : notActiveBtn
|
|
6661
|
+
),
|
|
6662
|
+
children: t2(`settings.gasPresets.${g2}`)
|
|
6663
|
+
},
|
|
6664
|
+
g2
|
|
6665
|
+
)) })
|
|
6666
|
+
] })
|
|
6635
6667
|
] }),
|
|
6636
|
-
/* @__PURE__ */ jsxRuntime.jsx("
|
|
6637
|
-
|
|
6638
|
-
{
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
"
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6668
|
+
/* @__PURE__ */ jsxRuntime.jsx("hr", {}),
|
|
6669
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
6670
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
6671
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6672
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t2("settings.slippageTolerance") }),
|
|
6673
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t2("settings.slippageToleranceDescription"), children: /* @__PURE__ */ jsxRuntime.jsx(InfoIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
6674
|
+
] }),
|
|
6675
|
+
slippageBps >= 500 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-xs font-medium", children: t2("settings.highSlippageWarning", {
|
|
6676
|
+
defaultValue: "High slippage warning"
|
|
6677
|
+
}) })
|
|
6678
|
+
] }),
|
|
6679
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-6", children: [
|
|
6680
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-foreground leading-5 font-semibold h-5", children: slippagePercent }) }),
|
|
6681
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: slippagePresets.map((p2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6682
|
+
badge.Badge,
|
|
6683
|
+
{
|
|
6684
|
+
onClick: () => {
|
|
6685
|
+
const bps = parseFloat(p2.replace("%", "")) * 100;
|
|
6686
|
+
setSlippageBps(bps);
|
|
6687
|
+
},
|
|
6688
|
+
className: utils$1.cn(
|
|
6689
|
+
"cursor-pointer h-7 rounded px-2",
|
|
6690
|
+
activeSlippagePreset === p2 ? activeBtn : notActiveBtn
|
|
6691
|
+
),
|
|
6692
|
+
children: p2
|
|
6693
|
+
},
|
|
6694
|
+
p2
|
|
6695
|
+
)) })
|
|
6696
|
+
] })
|
|
6656
6697
|
] }),
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6698
|
+
/* @__PURE__ */ jsxRuntime.jsx("hr", {}),
|
|
6699
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
6700
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6701
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t2("settings.routePriority") }),
|
|
6702
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t2("settings.routePriorityDescription"), children: /* @__PURE__ */ jsxRuntime.jsx(InfoIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
6703
|
+
] }) }),
|
|
6704
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end gap-2", children: routePresets.map((r2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6705
|
+
badge.Badge,
|
|
6706
|
+
{
|
|
6707
|
+
onClick: () => setRoutePriority(r2),
|
|
6708
|
+
className: utils$1.cn(
|
|
6709
|
+
"cursor-pointer h-7 rounded px-2",
|
|
6710
|
+
routePriority === r2 ? activeBtn : notActiveBtn
|
|
6711
|
+
),
|
|
6712
|
+
children: t2(`settings.routePresets.${r2}`)
|
|
6669
6713
|
},
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
),
|
|
6674
|
-
children: p2
|
|
6675
|
-
},
|
|
6676
|
-
p2
|
|
6677
|
-
)) })
|
|
6714
|
+
r2
|
|
6715
|
+
)) })
|
|
6716
|
+
] })
|
|
6678
6717
|
] })
|
|
6679
|
-
]
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6683
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t2("settings.routePriority") }),
|
|
6684
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t2("settings.routePriorityDescription"), children: /* @__PURE__ */ jsxRuntime.jsx(InfoIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
6685
|
-
] }) }),
|
|
6686
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end gap-2", children: routePresets.map((r2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6687
|
-
badge.Badge,
|
|
6688
|
-
{
|
|
6689
|
-
onClick: () => setRoutePriority(r2),
|
|
6690
|
-
className: utils$1.cn(
|
|
6691
|
-
"cursor-pointer h-7 rounded px-2",
|
|
6692
|
-
routePriority === r2 ? activeBtn : notActiveBtn
|
|
6693
|
-
),
|
|
6694
|
-
children: t2(`settings.routePresets.${r2}`)
|
|
6695
|
-
},
|
|
6696
|
-
r2
|
|
6697
|
-
)) })
|
|
6698
|
-
] })
|
|
6699
|
-
] })
|
|
6700
|
-
] }) });
|
|
6718
|
+
]
|
|
6719
|
+
}
|
|
6720
|
+
) });
|
|
6701
6721
|
};
|
|
6702
6722
|
const TokenRow = ({
|
|
6703
6723
|
symbol,
|
|
@@ -26118,7 +26138,7 @@ class WalletConnectModal {
|
|
|
26118
26138
|
}
|
|
26119
26139
|
async initUi() {
|
|
26120
26140
|
if (typeof window !== "undefined") {
|
|
26121
|
-
await Promise.resolve().then(() => require("./index-
|
|
26141
|
+
await Promise.resolve().then(() => require("./index-DvX1RsdJ.cjs"));
|
|
26122
26142
|
const modal = document.createElement("wcm-modal");
|
|
26123
26143
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
26124
26144
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26847,6 +26867,7 @@ exports.getTokens = getTokens;
|
|
|
26847
26867
|
exports.getTonBalances = getTonBalances;
|
|
26848
26868
|
exports.getTronBalances = getTronBalances;
|
|
26849
26869
|
exports.isNativeAddrEqual = isNativeAddrEqual;
|
|
26870
|
+
exports.isNativeAddress = isNativeAddress;
|
|
26850
26871
|
exports.isZeroAddr = isZeroAddr;
|
|
26851
26872
|
exports.listAssetsForSelect = listAssetsForSelect;
|
|
26852
26873
|
exports.lookupTokenMeta = lookupTokenMeta;
|
|
@@ -26867,4 +26888,4 @@ exports.useSettingsStore = useSettingsStore;
|
|
|
26867
26888
|
exports.useSwapModel = useSwapModel;
|
|
26868
26889
|
exports.useTokensStore = useTokensStore;
|
|
26869
26890
|
exports.useTransactionStore = useTransactionStore;
|
|
26870
|
-
//# sourceMappingURL=index-
|
|
26891
|
+
//# sourceMappingURL=index-ojFP6uCK.cjs.map
|