@babylonlabs-io/wallet-connector 4.0.1 → 4.0.2

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.
@@ -1,16 +1,16 @@
1
1
  var Vt = Object.defineProperty;
2
2
  var Yt = (t, e, n) => e in t ? Vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var L = (t, e, n) => Yt(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { parseEther as nt, isAddress as $t, http as Zt } from "viem";
5
- import { getAccount as ie, watchAccount as it, watchChainId as Xt, connect as Qt, disconnect as Jt, signMessage as qt, signTypedData as en, sendTransaction as tn, estimateGas as nn, switchChain as rn, getBalance as on, getTransactionCount as cn } from "wagmi/actions";
4
+ import { parseEther as nt, isAddress as $t, http as Xt } from "viem";
5
+ import { getAccount as ie, watchAccount as it, watchChainId as Zt, connect as Qt, disconnect as Jt, signMessage as qt, signTypedData as en, sendTransaction as tn, estimateGas as nn, switchChain as rn, getBalance as on, getTransactionCount as cn } from "wagmi/actions";
6
6
  import { walletConnect as sn, baseAccount as an } from "wagmi/connectors";
7
7
  import { WagmiAdapter as dn } from "@reown/appkit-adapter-wagmi";
8
8
  import { modal as ln, createAppKit as un } from "@reown/appkit/react";
9
9
  import { createStorage as fn, cookieStorage as hn } from "wagmi";
10
- import { useRef as M, useEffect as F, useState as le, createContext as ge, useContext as Ie, useMemo as j, useInsertionEffect as mn, useCallback as U, useLayoutEffect as ue, memo as Xe } from "react";
10
+ import { useRef as M, useEffect as F, useState as le, createContext as ge, useContext as Ie, useMemo as j, useInsertionEffect as mn, useCallback as U, useLayoutEffect as ue, memo as Ze } from "react";
11
11
  import { jsx as E, Fragment as Ct, jsxs as O } from "react/jsx-runtime";
12
12
  import { Text as V, Avatar as rt, useCopy as En, WalletIcon as Qe, CheckIcon as pn, CopyIcon as gn, Heading as Ce, Button as Pe, DialogBody as wt, DialogFooter as Nt, Loader as In, Chip as Cn, FullScreenDialog as wn } from "@babylonlabs-io/core-ui";
13
- import { twMerge as X } from "tailwind-merge";
13
+ import { twMerge as Z } from "tailwind-merge";
14
14
  function Nn(t) {
15
15
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
16
16
  }
@@ -580,7 +580,7 @@ function Wn({ children: t, context: e }) {
580
580
  );
581
581
  return /* @__PURE__ */ E(Ot.Provider, { value: r, children: t });
582
582
  }
583
- const mr = () => Ie(Ot), Z = "__babylon-wallet-confirmation-v1__", Dt = 2, Bn = {
583
+ const mr = () => Ie(Ot), X = "__babylon-wallet-confirmation-v1__", Dt = 2, Bn = {
584
584
  BTC: ["accountsChanged", Rt, St],
585
585
  BBN: ["accountChanged"],
586
586
  ETH: ["accountsChanged", "chainChanged"]
@@ -741,7 +741,7 @@ function Gn({ children: t, chains: e, requiredChainIds: n, storage: i }) {
741
741
  o((a) => ({ ...a, visible: !1 }));
742
742
  },
743
743
  reset: () => {
744
- i == null || i.delete(Z), o(({ chains: a, requiredChainIds: l }) => ({ ...Ye, chains: a, requiredChainIds: l }));
744
+ i == null || i.delete(X), o(({ chains: a, requiredChainIds: l }) => ({ ...Ye, chains: a, requiredChainIds: l }));
745
745
  },
746
746
  displayLoader: (a = "", l = "") => {
747
747
  o((u) => ({ ...u, screen: { type: "LOADER", params: { message: a, description: l } } }));
@@ -766,7 +766,7 @@ function Gn({ children: t, chains: e, requiredChainIds: n, storage: i }) {
766
766
  },
767
767
  removeWallet: (a) => {
768
768
  const l = d.current.includes(a);
769
- l && (i == null || i.delete(Z)), o((u) => ({
769
+ l && (i == null || i.delete(X)), o((u) => ({
770
770
  ...u,
771
771
  // Losing an optional chain must not tear down a confirmed session.
772
772
  // Losing a required one does invalidate the confirmation, so
@@ -915,21 +915,21 @@ const gr = (t, e) => {
915
915
  };
916
916
  }, kn = "#000000", Ir = "#1FE121", jn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='225px'%20height='224px'%20viewBox='0%200%20225%20224'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eokx%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20strokeWidth='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='okx'%20transform='translate(0.401000,%200.006000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M144.382,74.667%20L79.673,74.667%20C76.924,74.667%2074.695,76.895%2074.695,79.644%20L74.695,144.354%20C74.695,147.103%2076.924,149.332%2079.673,149.332%20L144.382,149.332%20C147.131,149.332%20149.36,147.103%20149.36,144.354%20L149.36,79.644%20C149.36,76.895%20147.131,74.667%20144.382,74.667%20Z'%20id='Path'%3e%3c/path%3e%3cpath%20d='M69.687,0%20L4.978,0%20C2.229,0%200,2.228%200,4.978%20L0,69.687%20C0,72.436%202.229,74.665%204.978,74.665%20L69.687,74.665%20C72.437,74.665%2074.665,72.436%2074.665,69.687%20L74.665,4.978%20C74.665,2.228%2072.437,0%2069.687,0%20Z'%20id='Path'%3e%3c/path%3e%3cpath%20d='M219.017,0%20L154.307,0%20C151.558,0%20149.329,2.228%20149.329,4.978%20L149.329,69.687%20C149.329,72.436%20151.558,74.665%20154.307,74.665%20L219.017,74.665%20C221.766,74.665%20223.994,72.436%20223.994,69.687%20L223.994,4.978%20C223.994,2.228%20221.766,0%20219.017,0%20Z'%20id='Path'%3e%3c/path%3e%3cpath%20d='M69.687,149.328%20L4.978,149.328%20C2.229,149.328%200,151.556%200,154.305%20L0,219.015%20C0,221.764%202.229,223.993%204.978,223.993%20L69.687,223.993%20C72.437,223.993%2074.665,221.764%2074.665,219.015%20L74.665,154.305%20C74.665,151.556%2072.437,149.328%2069.687,149.328%20Z'%20id='Path'%3e%3c/path%3e%3cpath%20d='M219.017,149.328%20L154.307,149.328%20C151.558,149.328%20149.329,151.556%20149.329,154.305%20L149.329,219.015%20C149.329,221.764%20151.558,223.993%20154.307,223.993%20L219.017,223.993%20C221.766,223.993%20223.994,221.764%20223.994,219.015%20L223.994,154.305%20C223.994,151.556%20221.766,149.328%20219.017,149.328%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", We = "babylon:open-appkit", Mt = "appkit-eth-connector", zn = "appkit-btc-connector", st = "bigint", at = "function", Vn = "AppKit configuration cannot be serialized.", Yn = 1, dt = /* @__PURE__ */ new WeakMap();
917
917
  let $n = Yn;
918
- function Zn(t) {
918
+ function Xn(t) {
919
919
  const e = dt.get(t);
920
920
  if (e) return e;
921
921
  const n = $n++;
922
922
  return dt.set(t, n), n;
923
923
  }
924
924
  function lt(t) {
925
- const e = JSON.stringify(t, (n, i) => typeof i === st ? { type: st, value: i.toString() } : typeof i === at ? { type: at, value: Zn(i) } : i && typeof i == "object" && !Array.isArray(i) ? Object.fromEntries(
925
+ const e = JSON.stringify(t, (n, i) => typeof i === st ? { type: st, value: i.toString() } : typeof i === at ? { type: at, value: Xn(i) } : i && typeof i == "object" && !Array.isArray(i) ? Object.fromEntries(
926
926
  Object.entries(i).sort(([r], [o]) => r < o ? -1 : r > o ? 1 : 0)
927
927
  ) : i);
928
928
  if (e === void 0)
929
929
  throw new TypeError(Vn);
930
930
  return e;
931
931
  }
932
- function Xn({
932
+ function Zn({
933
933
  projectId: t,
934
934
  metadata: e,
935
935
  ethChain: n,
@@ -1088,7 +1088,7 @@ class ai {
1088
1088
  }
1089
1089
  this.clearEmptyAccountTimer(), this.address = d, this.chainId = s.chainId, (c == null ? void 0 : c.toLowerCase()) !== d.toLowerCase() && this.emit("accountsChanged", [d]);
1090
1090
  }
1091
- }), o = Xt(e, {
1091
+ }), o = Zt(e, {
1092
1092
  onChange: (s) => {
1093
1093
  const c = this.chainId;
1094
1094
  this.chainId = s, c !== s && this.emit("chainChanged", `0x${s.toString(16)}`);
@@ -1364,13 +1364,13 @@ function fi(t, e) {
1364
1364
  storage: fn({ storage: hn }),
1365
1365
  connectors: [an({ preference: { telemetry: !1 } })],
1366
1366
  transports: {
1367
- [t.id]: Zt(n)
1367
+ [t.id]: Xt(n)
1368
1368
  }
1369
1369
  });
1370
1370
  }
1371
1371
  function Nr(t) {
1372
1372
  if (!Jn(t.projectId)) return null;
1373
- const { chain: e } = t.eth, n = Xn({
1373
+ const { chain: e } = t.eth, n = Zn({
1374
1374
  projectId: t.projectId,
1375
1375
  metadata: t.metadata,
1376
1376
  ethChain: e
@@ -1447,7 +1447,7 @@ function gi({ persistent: t, accountStorage: e, onError: n, btcValidation: i })
1447
1447
  confirm: f,
1448
1448
  unconfirm: g,
1449
1449
  requiredChainIds: N = []
1450
- } = se(), { verifyBTCAddress: p } = Ht(), I = M(0), y = M(N), C = s ?? (t && !c ? e.get(Z) : void 0), P = M(), H = M(/* @__PURE__ */ new Set()), D = N.every((w) => {
1450
+ } = se(), { verifyBTCAddress: p } = Ht(), I = M(0), y = M(N), C = s ?? (t && !c ? e.get(X) : void 0), P = M(), H = M(/* @__PURE__ */ new Set()), D = N.every((w) => {
1451
1451
  var A;
1452
1452
  return (A = r[w]) == null ? void 0 : A.connectedWallet;
1453
1453
  }), S = M(/* @__PURE__ */ new Set()), R = async (w) => {
@@ -1558,7 +1558,7 @@ function gi({ persistent: t, accountStorage: e, onError: n, btcValidation: i })
1558
1558
  ]), ue(() => {
1559
1559
  const A = Object.values(r).filter(Boolean).map(
1560
1560
  (T) => T.on("disconnect", (_) => {
1561
- _ && (N.includes(T.id) && (I.current += 1, e.delete(Z)), h == null || h(T.id), a == null || a(), t && e.delete(T.id));
1561
+ _ && (N.includes(T.id) && (I.current += 1, e.delete(X)), h == null || h(T.id), a == null || a(), t && e.delete(T.id));
1562
1562
  })
1563
1563
  );
1564
1564
  return () => A.forEach((T) => T());
@@ -1591,14 +1591,14 @@ function gi({ persistent: t, accountStorage: e, onError: n, btcValidation: i })
1591
1591
  const A = await Kn(C, N, r);
1592
1592
  if (w === I.current) {
1593
1593
  if (!A) {
1594
- e.delete(Z), g == null || g();
1594
+ e.delete(X), g == null || g();
1595
1595
  return;
1596
1596
  }
1597
1597
  if (!o && !c) {
1598
1598
  f == null || f(C), a == null || a();
1599
1599
  return;
1600
1600
  }
1601
- t && o && e.set(Z, C);
1601
+ t && o && e.set(X, C);
1602
1602
  }
1603
1603
  }, [
1604
1604
  e,
@@ -1634,12 +1634,12 @@ function gi({ persistent: t, accountStorage: e, onError: n, btcValidation: i })
1634
1634
  H.current.add(T);
1635
1635
  return;
1636
1636
  }
1637
- I.current += 1, e.delete(Z), g == null || g();
1637
+ I.current += 1, e.delete(X), g == null || g();
1638
1638
  }
1639
1639
  );
1640
1640
  if (!s && !D) return A;
1641
1641
  if (!Fn(C, N, r) || w.some((T) => H.current.has(T)) || s && w.length > 0 && !Mn(C, w, r)) {
1642
- A(), e.delete(Z), g == null || g();
1642
+ A(), e.delete(X), g == null || g();
1643
1643
  return;
1644
1644
  }
1645
1645
  return s && w.length > 0 && (g == null || g(!0)), A;
@@ -1773,7 +1773,7 @@ function Ci({
1773
1773
  V,
1774
1774
  {
1775
1775
  as: "button",
1776
- className: X(
1776
+ className: Z(
1777
1777
  "flex w-full cursor-pointer flex-col gap-4 rounded-lg bg-neutral-200 p-4 text-accent-primary",
1778
1778
  t
1779
1779
  ),
@@ -1815,11 +1815,11 @@ const wi = 36, mt = 14;
1815
1815
  function Ni(t) {
1816
1816
  return t.length <= wi ? t : `${t.slice(0, mt)}…${t.slice(-mt)}`;
1817
1817
  }
1818
- const Ti = Xe(({ className: t, logo: e, logoBackground: n, address: i }) => {
1818
+ const Ti = Ze(({ className: t, logo: e, logoBackground: n, address: i }) => {
1819
1819
  const { isCopied: r, copyToClipboard: o } = En(), s = r(i), c = (d) => {
1820
1820
  d.stopPropagation(), o(i, i);
1821
1821
  };
1822
- return /* @__PURE__ */ O("div", { className: X("flex items-center gap-2.5 rounded-lg bg-neutral-200 p-2", t), children: [
1822
+ return /* @__PURE__ */ O("div", { className: Z("flex items-center gap-2.5 rounded-lg bg-neutral-200 p-2", t), children: [
1823
1823
  /* @__PURE__ */ E(Qe, { size: "small", className: "shrink-0", url: e, background: n }),
1824
1824
  /* @__PURE__ */ E(
1825
1825
  V,
@@ -1846,7 +1846,7 @@ const Ti = Xe(({ className: t, logo: e, logoBackground: n, address: i }) => {
1846
1846
  }
1847
1847
  )
1848
1848
  ] });
1849
- }), Ai = "disabled:!bg-[#CCCCCC] dark:disabled:!bg-secondary-strokeDark", yi = "Select ", _i = " Wallet", vi = Xe(
1849
+ }), Ai = "disabled:!bg-[#CCCCCC] dark:disabled:!bg-secondary-strokeDark", yi = "Select ", _i = " Wallet", vi = Ze(
1850
1850
  ({
1851
1851
  disabled: t = !1,
1852
1852
  chains: e,
@@ -1859,7 +1859,7 @@ const Ti = Xe(({ className: t, logo: e, logoBackground: n, address: i }) => {
1859
1859
  }) => /* @__PURE__ */ O(
1860
1860
  "div",
1861
1861
  {
1862
- className: X(
1862
+ className: Z(
1863
1863
  "flex flex-col overflow-hidden rounded-2xl border border-secondary-strokeLight text-accent-primary",
1864
1864
  o
1865
1865
  ),
@@ -1898,7 +1898,7 @@ const Ti = Xe(({ className: t, logo: e, logoBackground: n, address: i }) => {
1898
1898
  disabled: t,
1899
1899
  fluid: !0,
1900
1900
  onClick: s,
1901
- className: X("text-sm disabled:!opacity-100", Ai),
1901
+ className: Z("text-sm disabled:!opacity-100", Ai),
1902
1902
  "data-testid": "chains-connect-button",
1903
1903
  children: "Connect"
1904
1904
  }
@@ -2059,7 +2059,7 @@ function xi({ className: t }) {
2059
2059
  );
2060
2060
  }
2061
2061
  function Pi({ className: t, title: e, description: n }) {
2062
- return /* @__PURE__ */ O("div", { className: X("flex flex-col items-center justify-center gap-6", t), children: [
2062
+ return /* @__PURE__ */ O("div", { className: Z("flex flex-col items-center justify-center gap-6", t), children: [
2063
2063
  /* @__PURE__ */ E("div", { className: "flex items-center justify-center bg-primary-contrast p-6", children: /* @__PURE__ */ E(In, { className: "text-primary-light" }) }),
2064
2064
  (e || n) && /* @__PURE__ */ O("div", { className: "flex flex-col items-center gap-2 text-center", children: [
2065
2065
  e && /* @__PURE__ */ E(Ce, { variant: "h4", className: "capitalize text-accent-primary", children: e }),
@@ -2088,7 +2088,7 @@ function Fi({
2088
2088
  V,
2089
2089
  {
2090
2090
  variant: "body2",
2091
- className: X(
2091
+ className: Z(
2092
2092
  "flex h-14 w-full items-center gap-2.5 rounded-lg p-2 text-accent-primary",
2093
2093
  s ? "bg-neutral-200" : "bg-neutral-100",
2094
2094
  e ? "cursor-default" : "cursor-pointer",
@@ -2098,16 +2098,16 @@ function Fi({
2098
2098
  "data-testid": l(),
2099
2099
  children: [
2100
2100
  /* @__PURE__ */ E(Qe, { className: "shrink-0", alt: n, url: i, background: r }),
2101
- /* @__PURE__ */ E("span", { className: X("min-w-0 flex-1 truncate text-left", !s && "text-accent-secondary"), children: n }),
2101
+ /* @__PURE__ */ E("span", { className: Z("min-w-0 flex-1 truncate text-left", !s && "text-accent-secondary"), children: n }),
2102
2102
  /* @__PURE__ */ O(
2103
2103
  Cn,
2104
2104
  {
2105
- className: X(
2105
+ className: Z(
2106
2106
  "flex shrink-0 items-center gap-1.5 rounded-full",
2107
2107
  s ? "bg-neutral-100" : "bg-neutral-200"
2108
2108
  ),
2109
2109
  children: [
2110
- (c || s) && /* @__PURE__ */ E("span", { className: X("size-2 rounded-full", c ? Mi : Bi) }),
2110
+ (c || s) && /* @__PURE__ */ E("span", { className: Z("size-2 rounded-full", c ? Mi : Bi) }),
2111
2111
  /* @__PURE__ */ E("span", { className: c ? Hi : s ? Wi : "text-accent-secondary", children: c ? d : s ? "Installed" : "Uninstalled" })
2112
2112
  ]
2113
2113
  }
@@ -2120,7 +2120,7 @@ const Ki = {
2120
2120
  [Q.MAINNET]: "bc1p",
2121
2121
  [Q.TESTNET]: "tb1p",
2122
2122
  [Q.SIGNET]: "tb1p"
2123
- }, Ui = "https://tbv-faucet.testnet.babylonlabs.io/", Et = (t) => t.installed && !t.hardware ? 0 : t.hardware ? 1 : 2, Gi = Xe(({ chain: t, className: e, append: n, onSelectWallet: i }) => {
2123
+ }, Ui = "https://tbv-faucet.testnet.babylonlabs.io/", Et = (t) => t.installed && !t.hardware ? 0 : t.hardware ? 1 : 2, Gi = Ze(({ chain: t, className: e, append: n, onSelectWallet: i }) => {
2124
2124
  const r = j(
2125
2125
  () => t.wallets.filter((c) => c.id === "injectable" ? c.installed : !0).sort((c, d) => Et(c) - Et(d)),
2126
2126
  [t]
@@ -2135,7 +2135,7 @@ const Ki = {
2135
2135
  },
2136
2136
  [t, i]
2137
2137
  );
2138
- return /* @__PURE__ */ O("div", { className: X("flex flex-col overflow-hidden rounded-2xl border border-secondary-strokeLight", e), children: [
2138
+ return /* @__PURE__ */ O("div", { className: Z("flex flex-col overflow-hidden rounded-2xl border border-secondary-strokeLight", e), children: [
2139
2139
  /* @__PURE__ */ O("div", { className: "flex flex-col gap-2 border-b border-secondary-strokeLight p-6", children: [
2140
2140
  /* @__PURE__ */ E(Ce, { variant: "h5", className: "text-accent-primary", children: `Select ${t.name} Wallet` }),
2141
2141
  o && /* @__PURE__ */ O(V, { variant: "body2", className: "text-accent-secondary", children: [
@@ -2205,7 +2205,7 @@ function $i(t, e) {
2205
2205
  }
2206
2206
  return t[0];
2207
2207
  }
2208
- function Ze(t) {
2208
+ function Xe(t) {
2209
2209
  return Object.entries(t).flatMap(([e, n]) => {
2210
2210
  const i = n == null ? void 0 : n.connectedWallet;
2211
2211
  return i != null && i.account ? [{ chain: e, wallet: i, account: { ...i.account } }] : [];
@@ -2228,14 +2228,14 @@ function gt(t) {
2228
2228
  return { chain: e, wallet: o, account: r };
2229
2229
  });
2230
2230
  }
2231
- function Zi(t, e, n) {
2231
+ function Xi(t, e, n) {
2232
2232
  return t.every(({ chain: i, wallet: r, provider: o, receipt: s }) => {
2233
2233
  const c = e.find((d) => d.chain === i);
2234
2234
  return c ? c.wallet === r && c.provider === o && c.receipt === s : !n.includes(i);
2235
2235
  });
2236
2236
  }
2237
2237
  async function It(t, e, n) {
2238
- const i = t(), r = Ze(i).map((l) => ({
2238
+ const i = t(), r = Xe(i).map((l) => ({
2239
2239
  connection: l,
2240
2240
  provider: l.wallet.provider,
2241
2241
  receipt: Ee([l], i)
@@ -2270,7 +2270,7 @@ async function It(t, e, n) {
2270
2270
  })
2271
2271
  )).filter(
2272
2272
  (l) => l !== null
2273
- ), c = t(), d = Ze(c), h = s.flatMap((l) => {
2273
+ ), c = t(), d = Xe(c), h = s.flatMap((l) => {
2274
2274
  const { connection: u, receipt: f } = l, g = d.find(({ chain: p }) => p === u.chain);
2275
2275
  if (!!(g && g.wallet === u.wallet && g.wallet.provider === l.provider && Ee([g], c) === f)) return [l];
2276
2276
  if (e.includes(u.chain)) throw new Error(de);
@@ -2338,12 +2338,12 @@ function Ar({
2338
2338
  }, Re = !1;
2339
2339
  try {
2340
2340
  if (!l) {
2341
- const ae = K.current, me = Ee(Ze(ae), ae), jt = bt(
2341
+ const ae = K.current, me = Ee(Xe(ae), ae), jt = bt(
2342
2342
  me,
2343
2343
  xt(me),
2344
2344
  ae,
2345
2345
  () => {
2346
- W(), e.delete(Z), N == null || N();
2346
+ W(), e.delete(X), N == null || N();
2347
2347
  }
2348
2348
  );
2349
2349
  let et = !0;
@@ -2373,7 +2373,7 @@ function Ar({
2373
2373
  i
2374
2374
  );
2375
2375
  if (!z()) return !1;
2376
- if (!Zi(Se.identities, Ge.identities, u))
2376
+ if (!Xi(Se.identities, Ge.identities, u))
2377
2377
  throw new Error(de);
2378
2378
  return !0;
2379
2379
  };
@@ -2382,7 +2382,7 @@ function Ar({
2382
2382
  public_key: Oe.account.publicKeyHex,
2383
2383
  chain: Oe.chain,
2384
2384
  connections: gt(Le)
2385
- })), !await tt()) || (await (P == null ? void 0 : P(gt(Le))), !await tt()) || (t && e.set(Z, Se.receipt), !z()) || (g == null || g(Se.receipt), !z())) return;
2385
+ })), !await tt()) || (await (P == null ? void 0 : P(gt(Le))), !await tt()) || (t && e.set(X, Se.receipt), !z()) || (g == null || g(Se.receipt), !z())) return;
2386
2386
  Re = !!g;
2387
2387
  }
2388
2388
  if (!z()) return;
@@ -2444,7 +2444,7 @@ function Ar({
2444
2444
  }
2445
2445
  );
2446
2446
  }
2447
- function Xi(t, e) {
2447
+ function Zi(t, e) {
2448
2448
  const { enabled: n, delay: i = 500 } = e, r = M(null);
2449
2449
  F(() => {
2450
2450
  if (!n || typeof window > "u" || typeof document > "u") return;
@@ -2577,7 +2577,7 @@ const kt = ge({
2577
2577
  console.error("ETH wallet connection check failed:", I instanceof Error ? I.message : "Unknown error"), a();
2578
2578
  }
2579
2579
  }, [s, r, e, a]);
2580
- Xi(g, {
2580
+ Zi(g, {
2581
2581
  enabled: !!(s && r)
2582
2582
  });
2583
2583
  const N = j(() => !!r, [r]);
@@ -2606,24 +2606,25 @@ export {
2606
2606
  ke as H,
2607
2607
  Cr as I,
2608
2608
  Mt as J,
2609
- lr as K,
2609
+ oi as K,
2610
2610
  pr as L,
2611
2611
  kn as M,
2612
2612
  Q as N,
2613
2613
  Ir as O,
2614
- Ve as P,
2615
- Fe as Q,
2616
- yr as R,
2617
- _r as S,
2618
- Pt as T,
2619
- Gn as U,
2620
- Nr as V,
2614
+ lr as P,
2615
+ Ve as Q,
2616
+ Fe as R,
2617
+ yr as S,
2618
+ _r as T,
2619
+ Pt as U,
2620
+ Gn as V,
2621
2621
  we as W,
2622
+ Nr as X,
2622
2623
  Rt as a,
2623
2624
  hr as b,
2624
2625
  zn as c,
2625
2626
  ur as d,
2626
- Xn as e,
2627
+ Zn as e,
2627
2628
  k as f,
2628
2629
  qe as g,
2629
2630
  fi as h,
@@ -2644,6 +2645,6 @@ export {
2644
2645
  Ar as w,
2645
2646
  Gt as x,
2646
2647
  vt as y,
2647
- Xi as z
2648
+ Zi as z
2648
2649
  };
2649
- //# sourceMappingURL=ETHWalletProvider-B2kuWQwN.js.map
2650
+ //# sourceMappingURL=ETHWalletProvider-CP5ssaJi.js.map