@dogeos/dogeos-sdk 3.2.0-beta.1 → 3.2.0-beta.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.
- package/README.md +25 -10
- package/dist/index.d.ts +10 -2
- package/dist/index.js +552 -549
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -12,36 +12,36 @@
|
|
|
12
12
|
})();
|
|
13
13
|
|
|
14
14
|
import { jsxs as C, jsx as o, Fragment as Bt } from "react/jsx-runtime";
|
|
15
|
-
import { createContext as ht, useState as Y, useRef as ce, useEffect as J, useMemo as y, useContext as
|
|
16
|
-
import { Button as
|
|
17
|
-
import { isMobile as jt, loadConnectors as Tt, isWagmiConnector as
|
|
18
|
-
import { useQuery as Tn, useMutation as En, QueryClientProvider as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { useConfig as nt, useConnect as
|
|
22
|
-
import { EmbeddedWallet as
|
|
23
|
-
import { getAddress as Je, SwitchChainError as tt, numberToHex as rt, UserRejectedRequestError as G, withRetry as
|
|
24
|
-
const
|
|
25
|
-
name:
|
|
26
|
-
version:
|
|
15
|
+
import { createContext as ht, useState as Y, useRef as ce, useEffect as J, useMemo as y, useContext as M, useCallback as O } from "react";
|
|
16
|
+
import { Button as L, BackIcon as Wt, CloseIcon as Mt, OkIcon as Vt, CopyIcon as Zr, Image as fe, PowerIcon as Jr, DownIcon as Dr, Spinner as ue, Skeleton as Fr, Modal as Xt, Link as Ue, TomoLogoIcon as Hr, Card as Qr, CardBody as Kr, Tabs as qr, Tab as Ur, Chip as $n, SearchIcon as Gr, Input as Nt, SearchOutlinedIcon as Rr, addToast as _r, RightArrowIcon as jn, ModalHeader as $r, ModalBody as es, ModalContent as ns, TomoUIProvider as ts, ToastProvider as rs } from "@tomo-inc/tomo-ui";
|
|
17
|
+
import { isMobile as jt, loadConnectors as Tt, isWagmiConnector as ss, connect as Et, switchChain as et, addChain as is, signInWithWallet as os, signMessage as cs, setWalletConnectConfig as as } from "@tomo-inc/wallet-adaptor-base";
|
|
18
|
+
import { useQuery as Tn, useMutation as En, QueryClientProvider as ls, QueryClient as ds } from "@tanstack/react-query";
|
|
19
|
+
import As from "copy-to-clipboard";
|
|
20
|
+
import fs from "qr-code-styling";
|
|
21
|
+
import { useConfig as nt, useConnect as us, useAccount as gs, useDisconnect as vs, createConnector as ms } from "wagmi";
|
|
22
|
+
import { EmbeddedWallet as ps } from "@tomo-inc/embedded-wallet-providers";
|
|
23
|
+
import { getAddress as Je, SwitchChainError as tt, numberToHex as rt, UserRejectedRequestError as G, withRetry as Cs, withTimeout as xs, ResourceUnavailableRpcError as An } from "viem";
|
|
24
|
+
const bs = "@dogeos/dogeos-sdk", zs = "3.2.0-beta.2", st = {
|
|
25
|
+
name: bs,
|
|
26
|
+
version: zs
|
|
27
27
|
};
|
|
28
|
-
var
|
|
28
|
+
var Is = Object.defineProperty, ws = (e, n) => {
|
|
29
29
|
for (var t in n)
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
clear: () =>
|
|
34
|
-
get: () =>
|
|
30
|
+
Is(e, t, { get: n[t], enumerable: !0 });
|
|
31
|
+
}, Ps = {};
|
|
32
|
+
ws(Ps, {
|
|
33
|
+
clear: () => Ws,
|
|
34
|
+
get: () => ys,
|
|
35
35
|
isKeyExist: () => St,
|
|
36
|
-
remove: () =>
|
|
37
|
-
set: () =>
|
|
36
|
+
remove: () => hs,
|
|
37
|
+
set: () => Bs,
|
|
38
38
|
setKeyNS: () => Ms
|
|
39
39
|
});
|
|
40
|
-
var
|
|
41
|
-
function
|
|
40
|
+
var Me = "tomo-";
|
|
41
|
+
function ys(e) {
|
|
42
42
|
if (typeof window > "u")
|
|
43
43
|
return null;
|
|
44
|
-
const n =
|
|
44
|
+
const n = Me + e;
|
|
45
45
|
if (!St(n))
|
|
46
46
|
return null;
|
|
47
47
|
let t = null;
|
|
@@ -53,7 +53,7 @@ function Ps(e) {
|
|
|
53
53
|
}
|
|
54
54
|
return t !== null && Object.prototype.hasOwnProperty.call(t, "type") && Object.prototype.hasOwnProperty.call(t, "data") ? t.data : null;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Bs(e, n, t) {
|
|
57
57
|
if (typeof window > "u")
|
|
58
58
|
return !1;
|
|
59
59
|
let r;
|
|
@@ -65,26 +65,26 @@ function ys(e, n, t) {
|
|
|
65
65
|
type: typeof n
|
|
66
66
|
});
|
|
67
67
|
try {
|
|
68
|
-
return r.setItem(
|
|
68
|
+
return r.setItem(Me + e, s), !0;
|
|
69
69
|
} catch (i) {
|
|
70
|
-
i?.name?.toUpperCase().indexOf("QUOTA") >= 0 && (window.localStorage.clear(), r.setItem(
|
|
70
|
+
i?.name?.toUpperCase().indexOf("QUOTA") >= 0 && (window.localStorage.clear(), r.setItem(Me + e, s));
|
|
71
71
|
}
|
|
72
72
|
return !1;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function hs(e) {
|
|
75
75
|
if (typeof window > "u")
|
|
76
76
|
return;
|
|
77
|
-
const n =
|
|
77
|
+
const n = Me + e;
|
|
78
78
|
window.localStorage.removeItem(n), window.sessionStorage.removeItem(n);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Ws() {
|
|
81
81
|
typeof window > "u" || (window?.localStorage?.clear(), window?.sessionStorage?.clear());
|
|
82
82
|
}
|
|
83
83
|
function St(e) {
|
|
84
84
|
return typeof window > "u" ? !1 : Object.prototype.hasOwnProperty.call(window.localStorage, e) || Object.prototype.hasOwnProperty.call(window.sessionStorage, e);
|
|
85
85
|
}
|
|
86
86
|
function Ms(e) {
|
|
87
|
-
typeof e == "string" && e !== "" && (
|
|
87
|
+
typeof e == "string" && e !== "" && (Me = e);
|
|
88
88
|
}
|
|
89
89
|
var T = /* @__PURE__ */ ((e) => (e.BITCOIN = "bitcoin", e.DOGECOIN = "dogecoin", e.EVM = "evm", e.SOLANA = "solana", e.APTOS = "aptos", e.COSMOS = "cosmos", e.TON = "ton", e.TRON = "tron", e.SUI = "sui", e))(T || {});
|
|
90
90
|
const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
@@ -283,7 +283,7 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
283
283
|
/* @__PURE__ */ o("clipPath", { id: "clip0_101_1146", children: /* @__PURE__ */ o("rect", { width: "20", height: "20", fill: "white" }) }),
|
|
284
284
|
/* @__PURE__ */ o("clipPath", { id: "clip1_101_1146", children: /* @__PURE__ */ o("rect", { width: "13.125", height: "10", fill: "white", transform: "translate(3.75 5)" }) })
|
|
285
285
|
] })
|
|
286
|
-
] }),
|
|
286
|
+
] }), Vs = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
287
287
|
/* @__PURE__ */ o("circle", { cx: "16", cy: "16", r: "16", fill: "black" }),
|
|
288
288
|
/* @__PURE__ */ o(
|
|
289
289
|
"mask",
|
|
@@ -353,7 +353,7 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
353
353
|
] })
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
|
-
),
|
|
356
|
+
), Lt = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
357
357
|
/* @__PURE__ */ o("foreignObject", { x: "-2.16759", y: "-2.16759", width: "60.3349", height: "60.3352", children: /* @__PURE__ */ o(
|
|
358
358
|
"div",
|
|
359
359
|
{
|
|
@@ -471,32 +471,32 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
471
471
|
}
|
|
472
472
|
)
|
|
473
473
|
] })
|
|
474
|
-
] }),
|
|
474
|
+
] }), Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
475
475
|
__proto__: null,
|
|
476
476
|
Apots: tn,
|
|
477
477
|
Doge: On,
|
|
478
478
|
Ethereum: Ge,
|
|
479
479
|
KnownChain: Ot,
|
|
480
|
-
Movement:
|
|
480
|
+
Movement: Vs,
|
|
481
481
|
Solana: rn,
|
|
482
482
|
UnknownChain: Sn,
|
|
483
|
-
UnsupportChain:
|
|
483
|
+
UnsupportChain: Lt
|
|
484
484
|
}, Symbol.toStringTag, { value: "Module" })), ze = ({ icon: e, iconName: n, className: t, iconProps: r, iconUrl: s }) => {
|
|
485
485
|
if (s)
|
|
486
486
|
return /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("img", { src: s, alt: n || "chain", "data-icon": "chain-icon", width: "100%", height: "100%" }) });
|
|
487
487
|
if (typeof e == "string")
|
|
488
488
|
return /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("img", { src: e, alt: n || "chain", "data-icon": "chain-icon", width: "100%", height: "100%" }) });
|
|
489
|
-
const i = e ||
|
|
489
|
+
const i = e || Xs?.[n] || Sn;
|
|
490
490
|
return /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o(i, { "data-icon": "chain-icon", width: "100%", height: "100%", ...r }) });
|
|
491
|
-
},
|
|
491
|
+
}, Ns = "https://web3-assets.tomo.inc/api/chains", it = "https://web3-assets.tomo.inc";
|
|
492
492
|
let De = null, Pe = null;
|
|
493
|
-
function
|
|
493
|
+
function js(e) {
|
|
494
494
|
return !e || e.startsWith("http://") || e.startsWith("https://") ? e : e.startsWith("/") ? `${it}${e}` : `${it}/${e}`;
|
|
495
495
|
}
|
|
496
|
-
async function
|
|
496
|
+
async function kt() {
|
|
497
497
|
return De || Pe || (Pe = (async () => {
|
|
498
498
|
try {
|
|
499
|
-
const e = await fetch(
|
|
499
|
+
const e = await fetch(Ns);
|
|
500
500
|
if (!e.ok)
|
|
501
501
|
throw new Error(`Failed to fetch chains: ${e.statusText}`);
|
|
502
502
|
const n = await e.json();
|
|
@@ -504,26 +504,26 @@ async function Lt() {
|
|
|
504
504
|
throw new Error("Invalid chains API response");
|
|
505
505
|
return De = n.data.map((t) => ({
|
|
506
506
|
...t,
|
|
507
|
-
icon:
|
|
507
|
+
icon: js(t.icon)
|
|
508
508
|
})), De;
|
|
509
509
|
} catch (e) {
|
|
510
510
|
throw console.error("Error fetching chains from API:", e), Pe = null, e;
|
|
511
511
|
}
|
|
512
512
|
})(), Pe);
|
|
513
513
|
}
|
|
514
|
-
const
|
|
515
|
-
function
|
|
514
|
+
const Ts = "1a91e3dace36e2be3bf030a65679fe82";
|
|
515
|
+
function Ln(e) {
|
|
516
516
|
const [n, t] = e.split(":");
|
|
517
517
|
return { type: n.toLowerCase(), id: t };
|
|
518
518
|
}
|
|
519
519
|
function H(e) {
|
|
520
|
-
const { type: n, id: t } =
|
|
521
|
-
return n === "aptos" ? "aptos" : n === "solana" ? "solana" : n === "eip155" ? "evm" : n === "dogecoin" || n === "bip122" && t ===
|
|
520
|
+
const { type: n, id: t } = Ln(e);
|
|
521
|
+
return n === "aptos" ? "aptos" : n === "solana" ? "solana" : n === "eip155" ? "evm" : n === "dogecoin" || n === "bip122" && t === Ts ? "dogecoin" : "evm";
|
|
522
522
|
}
|
|
523
523
|
function Yt() {
|
|
524
524
|
const { data: e, isLoading: n, error: t, refetch: r } = Tn({
|
|
525
525
|
queryKey: ["chains"],
|
|
526
|
-
queryFn:
|
|
526
|
+
queryFn: kt,
|
|
527
527
|
staleTime: 6e5,
|
|
528
528
|
gcTime: 18e5,
|
|
529
529
|
retry: 2,
|
|
@@ -536,10 +536,10 @@ function Yt() {
|
|
|
536
536
|
refetch: r
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const kn = () => {
|
|
540
540
|
const [e, n] = Y(!1), t = ce(null), r = (s) => {
|
|
541
541
|
try {
|
|
542
|
-
return
|
|
542
|
+
return As(s), n(!0), t.current = setTimeout(() => n(!1), 1200), !0;
|
|
543
543
|
} catch (i) {
|
|
544
544
|
return console.warn("Copy failed, but continuing execution:", i), !1;
|
|
545
545
|
}
|
|
@@ -563,12 +563,12 @@ function Zt(e) {
|
|
|
563
563
|
const r = e.split("@")[0];
|
|
564
564
|
return !(r.startsWith(".") || r.endsWith(".") || r.includes(".."));
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Es(e) {
|
|
567
567
|
return !e || e.trim().length === 0 ? "Please enter your email address" : Zt(e) ? null : "Please enter a valid email address";
|
|
568
568
|
}
|
|
569
569
|
const Yn = {
|
|
570
570
|
WALLET_STATE: "tomo_wallet_state"
|
|
571
|
-
},
|
|
571
|
+
}, Ss = (e) => {
|
|
572
572
|
try {
|
|
573
573
|
const n = {
|
|
574
574
|
...e,
|
|
@@ -578,7 +578,7 @@ const Yn = {
|
|
|
578
578
|
} catch (n) {
|
|
579
579
|
console.error("Failed to save wallet state:", n);
|
|
580
580
|
}
|
|
581
|
-
},
|
|
581
|
+
}, Os = () => {
|
|
582
582
|
try {
|
|
583
583
|
const e = localStorage.getItem(Yn.WALLET_STATE);
|
|
584
584
|
if (!e) return null;
|
|
@@ -598,7 +598,7 @@ function ot(e, n) {
|
|
|
598
598
|
const t = e.info?.uuid, r = t ? n.has(t) : !1, s = e.isInstalled === !0;
|
|
599
599
|
return r && s ? 0 : !r && s ? 1 : r && !s ? 2 : 3;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Ls(e, n) {
|
|
602
602
|
const t = new Set(e.map((c) => c.info?.uuid).filter(Boolean)), r = (c, l) => ot(c, t) - ot(l, t), s = /* @__PURE__ */ new Set();
|
|
603
603
|
return [[...e, ...n].filter((c) => {
|
|
604
604
|
const l = c.info?.uuid;
|
|
@@ -639,19 +639,19 @@ const q = {
|
|
|
639
639
|
evm: Ge,
|
|
640
640
|
// Evm chains - fallback icons (will be replaced by API data)
|
|
641
641
|
evm_1: Ge,
|
|
642
|
-
unsupported:
|
|
642
|
+
unsupported: Lt
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function Ys(e, n) {
|
|
645
645
|
if (n?.icon)
|
|
646
646
|
return () => n.icon;
|
|
647
|
-
const t = H(e), { id: r } =
|
|
647
|
+
const t = H(e), { id: r } = Ln(e), s = t === "evm" ? `evm_${r}` : t;
|
|
648
648
|
return ae[s] || Sn;
|
|
649
649
|
}
|
|
650
650
|
function Dt(e) {
|
|
651
651
|
const n = { ...ae };
|
|
652
652
|
return e.forEach((t) => {
|
|
653
|
-
const r = H(t.chainId), { id: s } =
|
|
654
|
-
t.icon ? n[i] = () => t.icon : n[i] =
|
|
653
|
+
const r = H(t.chainId), { id: s } = Ln(t.chainId), i = r === "evm" ? `evm_${s}` : t.chainId;
|
|
654
|
+
t.icon ? n[i] = () => t.icon : n[i] = Ys(t.chainId, t);
|
|
655
655
|
}), n;
|
|
656
656
|
}
|
|
657
657
|
const fn = {
|
|
@@ -726,12 +726,12 @@ let un = {
|
|
|
726
726
|
function Ht(e, n) {
|
|
727
727
|
return n?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Ht(e.cause, n) : n ? null : e;
|
|
728
728
|
}
|
|
729
|
-
class
|
|
729
|
+
class Zs extends h {
|
|
730
730
|
constructor({ max: n, min: t, signed: r, size: s, value: i }) {
|
|
731
731
|
super(`Number "${i}" is not in safe ${s ? `${s * 8}-bit ${r ? "signed" : "unsigned"} ` : ""}integer range ${n ? `(${t} to ${n})` : `(above ${t})`}`, { name: "IntegerOutOfRangeError" });
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
class
|
|
734
|
+
class Js extends h {
|
|
735
735
|
constructor({ givenSize: n, maxSize: t }) {
|
|
736
736
|
super(`Size cannot exceed ${t} bytes. Given size: ${n} bytes.`, { name: "SizeOverflowError" });
|
|
737
737
|
}
|
|
@@ -748,7 +748,7 @@ function Re(e, { dir: n = "left" } = {}) {
|
|
|
748
748
|
r++;
|
|
749
749
|
return t = n === "left" ? t.slice(r) : t.slice(0, t.length - r), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
|
|
750
750
|
}
|
|
751
|
-
class
|
|
751
|
+
class Ds extends h {
|
|
752
752
|
constructor({ offset: n, position: t, size: r }) {
|
|
753
753
|
super(`Slice ${t === "start" ? "starting" : "ending"} at offset "${n}" is out-of-bounds (size: ${r}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
754
754
|
}
|
|
@@ -759,9 +759,9 @@ class Qt extends h {
|
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
function Ie(e, { dir: n, size: t = 32 } = {}) {
|
|
762
|
-
return typeof e == "string" ?
|
|
762
|
+
return typeof e == "string" ? Fs(e, { dir: n, size: t }) : Hs(e, { dir: n, size: t });
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Fs(e, { dir: n, size: t = 32 } = {}) {
|
|
765
765
|
if (t === null)
|
|
766
766
|
return e;
|
|
767
767
|
const r = e.replace("0x", "");
|
|
@@ -773,7 +773,7 @@ function Ds(e, { dir: n, size: t = 32 } = {}) {
|
|
|
773
773
|
});
|
|
774
774
|
return `0x${r[n === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Hs(e, { dir: n, size: t = 32 } = {}) {
|
|
777
777
|
if (t === null)
|
|
778
778
|
return e;
|
|
779
779
|
if (e.length > t)
|
|
@@ -789,18 +789,18 @@ function Fs(e, { dir: n, size: t = 32 } = {}) {
|
|
|
789
789
|
}
|
|
790
790
|
return r;
|
|
791
791
|
}
|
|
792
|
-
const
|
|
793
|
-
function
|
|
794
|
-
return typeof e == "number" || typeof e == "bigint" ? P(e, n) : typeof e == "string" ?
|
|
792
|
+
const Qs = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
|
|
793
|
+
function We(e, n = {}) {
|
|
794
|
+
return typeof e == "number" || typeof e == "bigint" ? P(e, n) : typeof e == "string" ? Us(e, n) : typeof e == "boolean" ? Ks(e, n) : ee(e, n);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Ks(e, n = {}) {
|
|
797
797
|
const t = `0x${Number(e)}`;
|
|
798
798
|
return typeof n.size == "number" ? (we(t, { size: n.size }), Ie(t, { size: n.size })) : t;
|
|
799
799
|
}
|
|
800
800
|
function ee(e, n = {}) {
|
|
801
801
|
let t = "";
|
|
802
802
|
for (let s = 0; s < e.length; s++)
|
|
803
|
-
t +=
|
|
803
|
+
t += Qs[e[s]];
|
|
804
804
|
const r = `0x${t}`;
|
|
805
805
|
return typeof n.size == "number" ? (we(r, { size: n.size }), Ie(r, { dir: "right", size: n.size })) : r;
|
|
806
806
|
}
|
|
@@ -811,7 +811,7 @@ function P(e, n = {}) {
|
|
|
811
811
|
const a = typeof i == "bigint" && t ? -i - 1n : 0;
|
|
812
812
|
if (i && s > i || s < a) {
|
|
813
813
|
const l = typeof e == "bigint" ? "n" : "";
|
|
814
|
-
throw new
|
|
814
|
+
throw new Zs({
|
|
815
815
|
max: i ? `${i}${l}` : void 0,
|
|
816
816
|
min: `${a}${l}`,
|
|
817
817
|
signed: t,
|
|
@@ -822,16 +822,16 @@ function P(e, n = {}) {
|
|
|
822
822
|
const c = `0x${(t && s < 0 ? (1n << BigInt(r * 8)) + BigInt(s) : s).toString(16)}`;
|
|
823
823
|
return r ? Ie(c, { size: r }) : c;
|
|
824
824
|
}
|
|
825
|
-
const
|
|
826
|
-
function
|
|
827
|
-
const t =
|
|
825
|
+
const qs = /* @__PURE__ */ new TextEncoder();
|
|
826
|
+
function Us(e, n = {}) {
|
|
827
|
+
const t = qs.encode(e);
|
|
828
828
|
return ee(t, n);
|
|
829
829
|
}
|
|
830
|
-
const
|
|
830
|
+
const Gs = /* @__PURE__ */ new TextEncoder();
|
|
831
831
|
function Kt(e, n = {}) {
|
|
832
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
832
|
+
return typeof e == "number" || typeof e == "bigint" ? _s(e, n) : typeof e == "boolean" ? Rs(e, n) : Te(e) ? le(e, n) : qt(e, n);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Rs(e, n = {}) {
|
|
835
835
|
const t = new Uint8Array(1);
|
|
836
836
|
return t[0] = Number(e), typeof n.size == "number" ? (we(t, { size: n.size }), Ie(t, { size: n.size })) : t;
|
|
837
837
|
}
|
|
@@ -865,17 +865,17 @@ function le(e, n = {}) {
|
|
|
865
865
|
}
|
|
866
866
|
return i;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function _s(e, n) {
|
|
869
869
|
const t = P(e, n);
|
|
870
870
|
return le(t);
|
|
871
871
|
}
|
|
872
872
|
function qt(e, n = {}) {
|
|
873
|
-
const t =
|
|
873
|
+
const t = Gs.encode(e);
|
|
874
874
|
return typeof n.size == "number" ? (we(t, { size: n.size }), Ie(t, { dir: "right", size: n.size })) : t;
|
|
875
875
|
}
|
|
876
876
|
function we(e, { size: n }) {
|
|
877
877
|
if (be(e) > n)
|
|
878
|
-
throw new
|
|
878
|
+
throw new Js({
|
|
879
879
|
givenSize: be(e),
|
|
880
880
|
maxSize: n
|
|
881
881
|
});
|
|
@@ -934,7 +934,7 @@ function Jn(e, n) {
|
|
|
934
934
|
value: e.value ? BigInt(e.value) : void 0,
|
|
935
935
|
v: e.v ? BigInt(e.v) : void 0
|
|
936
936
|
};
|
|
937
|
-
return e.authorizationList && (t.authorizationList =
|
|
937
|
+
return e.authorizationList && (t.authorizationList = ei(e.authorizationList)), t.yParity = (() => {
|
|
938
938
|
if (e.yParity)
|
|
939
939
|
return Number(e.yParity);
|
|
940
940
|
if (typeof t.v == "bigint") {
|
|
@@ -947,8 +947,8 @@ function Jn(e, n) {
|
|
|
947
947
|
}
|
|
948
948
|
})(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
|
|
949
949
|
}
|
|
950
|
-
const
|
|
951
|
-
function
|
|
950
|
+
const $s = /* @__PURE__ */ Zn("transaction", Jn);
|
|
951
|
+
function ei(e) {
|
|
952
952
|
return e.map((n) => ({
|
|
953
953
|
address: n.address,
|
|
954
954
|
chainId: Number(n.chainId),
|
|
@@ -958,7 +958,7 @@ function $s(e) {
|
|
|
958
958
|
yParity: Number(n.yParity)
|
|
959
959
|
}));
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function ni(e, n) {
|
|
962
962
|
const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : Jn(r));
|
|
963
963
|
return {
|
|
964
964
|
...e,
|
|
@@ -978,8 +978,8 @@ function ei(e, n) {
|
|
|
978
978
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
const
|
|
982
|
-
function
|
|
981
|
+
const ti = /* @__PURE__ */ Zn("block", ni);
|
|
982
|
+
function ri(e, { args: n, eventName: t } = {}) {
|
|
983
983
|
return {
|
|
984
984
|
...e,
|
|
985
985
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -990,11 +990,11 @@ function ti(e, { args: n, eventName: t } = {}) {
|
|
|
990
990
|
...t ? { args: n, eventName: t } : {}
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
const
|
|
993
|
+
const si = {
|
|
994
994
|
"0x0": "reverted",
|
|
995
995
|
"0x1": "success"
|
|
996
996
|
};
|
|
997
|
-
function
|
|
997
|
+
function ii(e, n) {
|
|
998
998
|
const t = {
|
|
999
999
|
...e,
|
|
1000
1000
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1002,26 +1002,26 @@ function si(e, n) {
|
|
|
1002
1002
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1003
1003
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1004
1004
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1005
|
-
logs: e.logs ? e.logs.map((r) =>
|
|
1005
|
+
logs: e.logs ? e.logs.map((r) => ri(r)) : null,
|
|
1006
1006
|
to: e.to ? e.to : null,
|
|
1007
1007
|
transactionIndex: e.transactionIndex ? _e(e.transactionIndex) : null,
|
|
1008
|
-
status: e.status ?
|
|
1008
|
+
status: e.status ? si[e.status] : null,
|
|
1009
1009
|
type: e.type ? Ut[e.type] || e.type : null
|
|
1010
1010
|
};
|
|
1011
1011
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const oi = /* @__PURE__ */ Zn("transactionReceipt", ii), ci = {
|
|
1014
1014
|
legacy: "0x0",
|
|
1015
1015
|
eip2930: "0x1",
|
|
1016
1016
|
eip1559: "0x2",
|
|
1017
1017
|
eip4844: "0x3",
|
|
1018
1018
|
eip7702: "0x4"
|
|
1019
1019
|
};
|
|
1020
|
-
function
|
|
1020
|
+
function ai(e, n) {
|
|
1021
1021
|
const t = {};
|
|
1022
|
-
return typeof e.authorizationList < "u" && (t.authorizationList =
|
|
1022
|
+
return typeof e.authorizationList < "u" && (t.authorizationList = li(e.authorizationList)), typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => ee(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = P(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = P(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = P(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = P(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = P(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = P(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = ci[e.type]), typeof e.value < "u" && (t.value = P(e.value)), t;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function li(e) {
|
|
1025
1025
|
return e.map((n) => ({
|
|
1026
1026
|
address: n.address,
|
|
1027
1027
|
r: n.r ? P(BigInt(n.r)) : n.r,
|
|
@@ -1043,17 +1043,17 @@ class at extends h {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
|
-
class
|
|
1046
|
+
class di extends h {
|
|
1047
1047
|
constructor({ length: n, position: t }) {
|
|
1048
1048
|
super(`Position \`${t}\` is out of bounds (\`0 < position < ${n}\`).`, { name: "PositionOutOfBoundsError" });
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
-
class
|
|
1051
|
+
class Ai extends h {
|
|
1052
1052
|
constructor({ count: n, limit: t }) {
|
|
1053
1053
|
super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${n}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1056
|
+
const fi = {
|
|
1057
1057
|
bytes: new Uint8Array(),
|
|
1058
1058
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
1059
1059
|
position: 0,
|
|
@@ -1062,14 +1062,14 @@ const Ai = {
|
|
|
1062
1062
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
1063
1063
|
assertReadLimit() {
|
|
1064
1064
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
1065
|
-
throw new
|
|
1065
|
+
throw new Ai({
|
|
1066
1066
|
count: this.recursiveReadCount + 1,
|
|
1067
1067
|
limit: this.recursiveReadLimit
|
|
1068
1068
|
});
|
|
1069
1069
|
},
|
|
1070
1070
|
assertPosition(e) {
|
|
1071
1071
|
if (e < 0 || e > this.bytes.length - 1)
|
|
1072
|
-
throw new
|
|
1072
|
+
throw new di({
|
|
1073
1073
|
length: this.bytes.length,
|
|
1074
1074
|
position: e
|
|
1075
1075
|
});
|
|
@@ -1176,7 +1176,7 @@ const Ai = {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
};
|
|
1178
1178
|
function Gt(e, { recursiveReadLimit: n = 8192 } = {}) {
|
|
1179
|
-
const t = Object.create(
|
|
1179
|
+
const t = Object.create(fi);
|
|
1180
1180
|
return t.bytes = e, t.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), t.positionReadCount = /* @__PURE__ */ new Map(), t.recursiveReadLimit = n, t;
|
|
1181
1181
|
}
|
|
1182
1182
|
function de(e, n = "hex") {
|
|
@@ -1184,9 +1184,9 @@ function de(e, n = "hex") {
|
|
|
1184
1184
|
return t.encode(r), n === "hex" ? ee(r.bytes) : r.bytes;
|
|
1185
1185
|
}
|
|
1186
1186
|
function Rt(e) {
|
|
1187
|
-
return Array.isArray(e) ?
|
|
1187
|
+
return Array.isArray(e) ? ui(e.map((n) => Rt(n))) : gi(e);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function ui(e) {
|
|
1190
1190
|
const n = e.reduce((s, i) => s + i.length, 0), t = _t(n);
|
|
1191
1191
|
return {
|
|
1192
1192
|
length: n <= 55 ? 1 + n : 1 + t + n,
|
|
@@ -1197,7 +1197,7 @@ function fi(e) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function gi(e) {
|
|
1201
1201
|
const n = typeof e == "string" ? le(e) : e, t = _t(n.length);
|
|
1202
1202
|
return {
|
|
1203
1203
|
length: n.length === 1 && n[0] < 128 ? 1 : n.length <= 55 ? 1 + n.length : 1 + t + n.length,
|
|
@@ -1217,10 +1217,10 @@ function _t(e) {
|
|
|
1217
1217
|
return 4;
|
|
1218
1218
|
throw new h("Length is too large.");
|
|
1219
1219
|
}
|
|
1220
|
-
const
|
|
1220
|
+
const vi = {
|
|
1221
1221
|
gwei: 9,
|
|
1222
1222
|
wei: 18
|
|
1223
|
-
},
|
|
1223
|
+
}, mi = {
|
|
1224
1224
|
ether: -9,
|
|
1225
1225
|
wei: 9
|
|
1226
1226
|
};
|
|
@@ -1234,18 +1234,18 @@ function $t(e, n) {
|
|
|
1234
1234
|
];
|
|
1235
1235
|
return i = i.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${i ? `.${i}` : ""}`;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return $t(e,
|
|
1237
|
+
function pi(e, n = "wei") {
|
|
1238
|
+
return $t(e, vi[n]);
|
|
1239
1239
|
}
|
|
1240
1240
|
function oe(e, n = "wei") {
|
|
1241
|
-
return $t(e,
|
|
1241
|
+
return $t(e, mi[n]);
|
|
1242
1242
|
}
|
|
1243
1243
|
function er(e) {
|
|
1244
1244
|
const n = Object.entries(e).map(([r, s]) => s === void 0 || s === !1 ? null : [r, s]).filter(Boolean), t = n.reduce((r, [s]) => Math.max(r, s.length), 0);
|
|
1245
1245
|
return n.map(([r, s]) => ` ${`${r}:`.padEnd(t + 1)} ${s}`).join(`
|
|
1246
1246
|
`);
|
|
1247
1247
|
}
|
|
1248
|
-
class
|
|
1248
|
+
class Ci extends h {
|
|
1249
1249
|
constructor() {
|
|
1250
1250
|
super([
|
|
1251
1251
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -1254,14 +1254,14 @@ class pi extends h {
|
|
|
1254
1254
|
`), { name: "FeeConflictError" });
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
class
|
|
1257
|
+
class xi extends h {
|
|
1258
1258
|
constructor({ v: n }) {
|
|
1259
1259
|
super(`Invalid \`v\` value "${n}". Expected 27 or 28.`, {
|
|
1260
1260
|
name: "InvalidLegacyVError"
|
|
1261
1261
|
});
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
class
|
|
1264
|
+
class bi extends h {
|
|
1265
1265
|
constructor({ transaction: n }) {
|
|
1266
1266
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
1267
1267
|
metaMessages: [
|
|
@@ -1282,21 +1282,21 @@ class xi extends h {
|
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
class
|
|
1285
|
+
class zi extends h {
|
|
1286
1286
|
constructor({ storageKey: n }) {
|
|
1287
1287
|
super(`Size for storage key "${n}" is invalid. Expected 32 bytes. Got ${Math.floor((n.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function Ii(e) {
|
|
1291
1291
|
if (!e || e.length === 0)
|
|
1292
1292
|
return [];
|
|
1293
1293
|
const n = [];
|
|
1294
1294
|
for (const t of e) {
|
|
1295
1295
|
const { chainId: r, nonce: s, ...i } = t, a = t.address;
|
|
1296
1296
|
n.push([
|
|
1297
|
-
r ?
|
|
1297
|
+
r ? We(r) : "0x",
|
|
1298
1298
|
a,
|
|
1299
|
-
s ?
|
|
1299
|
+
s ? We(s) : "0x",
|
|
1300
1300
|
...Se({}, i)
|
|
1301
1301
|
]);
|
|
1302
1302
|
}
|
|
@@ -1316,7 +1316,7 @@ function tr(e) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return t === "bytes" ? i : i.map((a) => ee(a));
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function wi(e) {
|
|
1320
1320
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
1321
1321
|
}
|
|
1322
1322
|
function lt(e) {
|
|
@@ -1324,7 +1324,7 @@ function lt(e) {
|
|
|
1324
1324
|
throw new Error("positive integer expected, got " + e);
|
|
1325
1325
|
}
|
|
1326
1326
|
function Ve(e, ...n) {
|
|
1327
|
-
if (!
|
|
1327
|
+
if (!wi(e))
|
|
1328
1328
|
throw new Error("Uint8Array expected");
|
|
1329
1329
|
if (n.length > 0 && !n.includes(e.length))
|
|
1330
1330
|
throw new Error("Uint8Array expected of length " + n + ", got length=" + e.length);
|
|
@@ -1341,7 +1341,7 @@ function rr(e, n) {
|
|
|
1341
1341
|
if (e.length < t)
|
|
1342
1342
|
throw new Error("digestInto() expects output buffer of length at least " + t);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function Pi(e) {
|
|
1345
1345
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
1346
1346
|
}
|
|
1347
1347
|
function Xe(...e) {
|
|
@@ -1354,23 +1354,23 @@ function gn(e) {
|
|
|
1354
1354
|
function K(e, n) {
|
|
1355
1355
|
return e << 32 - n | e >>> n;
|
|
1356
1356
|
}
|
|
1357
|
-
const
|
|
1358
|
-
function
|
|
1357
|
+
const yi = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
1358
|
+
function Bi(e) {
|
|
1359
1359
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function hi(e) {
|
|
1362
1362
|
for (let n = 0; n < e.length; n++)
|
|
1363
|
-
e[n] =
|
|
1363
|
+
e[n] = Bi(e[n]);
|
|
1364
1364
|
return e;
|
|
1365
1365
|
}
|
|
1366
|
-
const dt =
|
|
1367
|
-
function
|
|
1366
|
+
const dt = yi ? (e) => e : hi;
|
|
1367
|
+
function Wi(e) {
|
|
1368
1368
|
if (typeof e != "string")
|
|
1369
1369
|
throw new Error("string expected");
|
|
1370
1370
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
1371
1371
|
}
|
|
1372
1372
|
function Dn(e) {
|
|
1373
|
-
return typeof e == "string" && (e =
|
|
1373
|
+
return typeof e == "string" && (e = Wi(e)), Ve(e), e;
|
|
1374
1374
|
}
|
|
1375
1375
|
class sr {
|
|
1376
1376
|
}
|
|
@@ -1384,13 +1384,13 @@ function Mi(e, n, t, r) {
|
|
|
1384
1384
|
const s = BigInt(32), i = BigInt(4294967295), a = Number(t >> s & i), c = Number(t & i), l = r ? 4 : 0, d = r ? 0 : 4;
|
|
1385
1385
|
e.setUint32(n + l, a, r), e.setUint32(n + d, c, r);
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function Vi(e, n, t) {
|
|
1388
1388
|
return e & n ^ ~e & t;
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Xi(e, n, t) {
|
|
1391
1391
|
return e & n ^ e & t ^ n & t;
|
|
1392
1392
|
}
|
|
1393
|
-
class
|
|
1393
|
+
class Ni extends sr {
|
|
1394
1394
|
constructor(n, t, r, s) {
|
|
1395
1395
|
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = n, this.outputLen = t, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(n), this.view = gn(this.buffer);
|
|
1396
1396
|
}
|
|
@@ -1451,19 +1451,19 @@ const ne = /* @__PURE__ */ Uint32Array.from([
|
|
|
1451
1451
|
528734635,
|
|
1452
1452
|
1541459225
|
|
1453
1453
|
]), Fe = /* @__PURE__ */ BigInt(2 ** 32 - 1), At = /* @__PURE__ */ BigInt(32);
|
|
1454
|
-
function
|
|
1454
|
+
function ji(e, n = !1) {
|
|
1455
1455
|
return n ? { h: Number(e & Fe), l: Number(e >> At & Fe) } : { h: Number(e >> At & Fe) | 0, l: Number(e & Fe) | 0 };
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Ti(e, n = !1) {
|
|
1458
1458
|
const t = e.length;
|
|
1459
1459
|
let r = new Uint32Array(t), s = new Uint32Array(t);
|
|
1460
1460
|
for (let i = 0; i < t; i++) {
|
|
1461
|
-
const { h: a, l: c } =
|
|
1461
|
+
const { h: a, l: c } = ji(e[i], n);
|
|
1462
1462
|
[r[i], s[i]] = [a, c];
|
|
1463
1463
|
}
|
|
1464
1464
|
return [r, s];
|
|
1465
1465
|
}
|
|
1466
|
-
const
|
|
1466
|
+
const Ei = (e, n, t) => e << t | n >>> 32 - t, Si = (e, n, t) => n << t | e >>> 32 - t, Oi = (e, n, t) => n << t - 32 | e >>> 64 - t, Li = (e, n, t) => e << t - 32 | n >>> 64 - t, ki = /* @__PURE__ */ Uint32Array.from([
|
|
1467
1467
|
1116352408,
|
|
1468
1468
|
1899447441,
|
|
1469
1469
|
3049323471,
|
|
@@ -1529,7 +1529,7 @@ const Ti = (e, n, t) => e << t | n >>> 32 - t, Ei = (e, n, t) => n << t | e >>>
|
|
|
1529
1529
|
3204031479,
|
|
1530
1530
|
3329325298
|
|
1531
1531
|
]), te = /* @__PURE__ */ new Uint32Array(64);
|
|
1532
|
-
class
|
|
1532
|
+
class Yi extends Ni {
|
|
1533
1533
|
constructor(n = 32) {
|
|
1534
1534
|
super(64, n, 8, !1), this.A = ne[0] | 0, this.B = ne[1] | 0, this.C = ne[2] | 0, this.D = ne[3] | 0, this.E = ne[4] | 0, this.F = ne[5] | 0, this.G = ne[6] | 0, this.H = ne[7] | 0;
|
|
1535
1535
|
}
|
|
@@ -1550,7 +1550,7 @@ class Li extends Xi {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
let { A: r, B: s, C: i, D: a, E: c, F: l, G: d, H: f } = this;
|
|
1552
1552
|
for (let A = 0; A < 64; A++) {
|
|
1553
|
-
const u = K(c, 6) ^ K(c, 11) ^ K(c, 25), v = f + u +
|
|
1553
|
+
const u = K(c, 6) ^ K(c, 11) ^ K(c, 25), v = f + u + Vi(c, l, d) + ki[A] + te[A] | 0, g = (K(r, 2) ^ K(r, 13) ^ K(r, 22)) + Xi(r, s, i) | 0;
|
|
1554
1554
|
f = d, d = l, l = c, c = a + v | 0, a = i, i = s, s = r, r = v + g | 0;
|
|
1555
1555
|
}
|
|
1556
1556
|
r = r + this.A | 0, s = s + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, c = c + this.E | 0, l = l + this.F | 0, d = d + this.G | 0, f = f + this.H | 0, this.set(r, s, i, a, c, l, d, f);
|
|
@@ -1562,18 +1562,18 @@ class Li extends Xi {
|
|
|
1562
1562
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), Xe(this.buffer);
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
|
-
const
|
|
1566
|
-
function
|
|
1567
|
-
return
|
|
1565
|
+
const Zi = /* @__PURE__ */ ir(() => new Yi()), Ji = Zi;
|
|
1566
|
+
function Di(e, n) {
|
|
1567
|
+
return Ji(Te(e, { strict: !1 }) ? Kt(e) : e);
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1570
|
-
const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s =
|
|
1569
|
+
function Fi(e) {
|
|
1570
|
+
const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s = Di(n);
|
|
1571
1571
|
return s.set([t], 0), r === "bytes" ? s : ee(s);
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function Hi(e) {
|
|
1574
1574
|
const { commitments: n, version: t } = e, r = e.to ?? (typeof n[0] == "string" ? "hex" : "bytes"), s = [];
|
|
1575
1575
|
for (const i of n)
|
|
1576
|
-
s.push(
|
|
1576
|
+
s.push(Fi({
|
|
1577
1577
|
commitment: i,
|
|
1578
1578
|
to: r,
|
|
1579
1579
|
version: t
|
|
@@ -1583,7 +1583,7 @@ function Fi(e) {
|
|
|
1583
1583
|
const ft = 6, or = 32, Fn = 4096, cr = or * Fn, ut = cr * ft - // terminator byte (0x80).
|
|
1584
1584
|
1 - // zero byte (0x00) appended to each field element.
|
|
1585
1585
|
1 * Fn * ft, ar = 1;
|
|
1586
|
-
class
|
|
1586
|
+
class Qi extends h {
|
|
1587
1587
|
constructor({ maxSize: n, size: t }) {
|
|
1588
1588
|
super("Blob size is too large.", {
|
|
1589
1589
|
metaMessages: [`Max: ${n} bytes`, `Given: ${t} bytes`],
|
|
@@ -1596,7 +1596,7 @@ class lr extends h {
|
|
|
1596
1596
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
class
|
|
1599
|
+
class Ki extends h {
|
|
1600
1600
|
constructor({ hash: n, size: t }) {
|
|
1601
1601
|
super(`Versioned hash "${n}" size is invalid.`, {
|
|
1602
1602
|
metaMessages: ["Expected: 32", `Received: ${t}`],
|
|
@@ -1604,7 +1604,7 @@ class Qi extends h {
|
|
|
1604
1604
|
});
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
class
|
|
1607
|
+
class qi extends h {
|
|
1608
1608
|
constructor({ hash: n, version: t }) {
|
|
1609
1609
|
super(`Versioned hash "${n}" version is invalid.`, {
|
|
1610
1610
|
metaMessages: [
|
|
@@ -1615,12 +1615,12 @@ class Ki extends h {
|
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function Ui(e) {
|
|
1619
1619
|
const n = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), t = typeof e.data == "string" ? le(e.data) : e.data, r = be(t);
|
|
1620
1620
|
if (!r)
|
|
1621
1621
|
throw new lr();
|
|
1622
1622
|
if (r > ut)
|
|
1623
|
-
throw new
|
|
1623
|
+
throw new Qi({
|
|
1624
1624
|
maxSize: ut,
|
|
1625
1625
|
size: r
|
|
1626
1626
|
});
|
|
@@ -1641,8 +1641,8 @@ function qi(e) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
return n === "bytes" ? s.map((c) => c.bytes) : s.map((c) => ee(c.bytes));
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const { data: n, kzg: t, to: r } = e, s = e.blobs ??
|
|
1644
|
+
function Gi(e) {
|
|
1645
|
+
const { data: n, kzg: t, to: r } = e, s = e.blobs ?? Ui({ data: n, to: r }), i = e.commitments ?? nr({ blobs: s, kzg: t, to: r }), a = e.proofs ?? tr({ blobs: s, commitments: i, kzg: t, to: r }), c = [];
|
|
1646
1646
|
for (let l = 0; l < s.length; l++)
|
|
1647
1647
|
c.push({
|
|
1648
1648
|
blob: s[l],
|
|
@@ -1794,7 +1794,7 @@ Object.defineProperty(hn, "nodeMessage", {
|
|
|
1794
1794
|
writable: !0,
|
|
1795
1795
|
value: /intrinsic gas too high|gas limit reached/
|
|
1796
1796
|
});
|
|
1797
|
-
class
|
|
1797
|
+
class Wn extends h {
|
|
1798
1798
|
constructor({ cause: n, gas: t } = {}) {
|
|
1799
1799
|
super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction is too low.`, {
|
|
1800
1800
|
cause: n,
|
|
@@ -1802,13 +1802,13 @@ class Mn extends h {
|
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
Object.defineProperty(
|
|
1805
|
+
Object.defineProperty(Wn, "nodeMessage", {
|
|
1806
1806
|
enumerable: !0,
|
|
1807
1807
|
configurable: !0,
|
|
1808
1808
|
writable: !0,
|
|
1809
1809
|
value: /intrinsic gas too low/
|
|
1810
1810
|
});
|
|
1811
|
-
class
|
|
1811
|
+
class Mn extends h {
|
|
1812
1812
|
constructor({ cause: n }) {
|
|
1813
1813
|
super("The transaction type is not supported for this chain.", {
|
|
1814
1814
|
cause: n,
|
|
@@ -1816,7 +1816,7 @@ class Wn extends h {
|
|
|
1816
1816
|
});
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
|
-
Object.defineProperty(
|
|
1819
|
+
Object.defineProperty(Mn, "nodeMessage", {
|
|
1820
1820
|
enumerable: !0,
|
|
1821
1821
|
configurable: !0,
|
|
1822
1822
|
writable: !0,
|
|
@@ -1868,16 +1868,16 @@ class Ar extends Map {
|
|
|
1868
1868
|
return this;
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
1871
|
-
const
|
|
1871
|
+
const Ri = BigInt(0), ye = BigInt(1), _i = BigInt(2), $i = BigInt(7), eo = BigInt(256), no = BigInt(113), fr = [], ur = [], gr = [];
|
|
1872
1872
|
for (let e = 0, n = ye, t = 1, r = 0; e < 24; e++) {
|
|
1873
1873
|
[t, r] = [r, (2 * t + 3 * r) % 5], fr.push(2 * (5 * r + t)), ur.push((e + 1) * (e + 2) / 2 % 64);
|
|
1874
|
-
let s =
|
|
1874
|
+
let s = Ri;
|
|
1875
1875
|
for (let i = 0; i < 7; i++)
|
|
1876
|
-
n = (n << ye ^ (n >>
|
|
1876
|
+
n = (n << ye ^ (n >> $i) * no) % eo, n & _i && (s ^= ye << (ye << /* @__PURE__ */ BigInt(i)) - ye);
|
|
1877
1877
|
gr.push(s);
|
|
1878
1878
|
}
|
|
1879
|
-
const vr =
|
|
1880
|
-
function
|
|
1879
|
+
const vr = Ti(gr, !0), to = vr[0], ro = vr[1], gt = (e, n, t) => t > 32 ? Oi(e, n, t) : Ei(e, n, t), vt = (e, n, t) => t > 32 ? Li(e, n, t) : Si(e, n, t);
|
|
1880
|
+
function so(e, n = 24) {
|
|
1881
1881
|
const t = new Uint32Array(10);
|
|
1882
1882
|
for (let r = 24 - n; r < 24; r++) {
|
|
1883
1883
|
for (let a = 0; a < 10; a++)
|
|
@@ -1898,7 +1898,7 @@ function ro(e, n = 24) {
|
|
|
1898
1898
|
for (let c = 0; c < 10; c++)
|
|
1899
1899
|
e[a + c] ^= ~t[(c + 2) % 10] & t[(c + 4) % 10];
|
|
1900
1900
|
}
|
|
1901
|
-
e[0] ^=
|
|
1901
|
+
e[0] ^= to[r], e[1] ^= ro[r];
|
|
1902
1902
|
}
|
|
1903
1903
|
Xe(t);
|
|
1904
1904
|
}
|
|
@@ -1907,13 +1907,13 @@ class Hn extends sr {
|
|
|
1907
1907
|
constructor(n, t, r, s = !1, i = 24) {
|
|
1908
1908
|
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = n, this.suffix = t, this.outputLen = r, this.enableXOF = s, this.rounds = i, lt(r), !(0 < n && n < 200))
|
|
1909
1909
|
throw new Error("only keccak-f1600 function is supported");
|
|
1910
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
1910
|
+
this.state = new Uint8Array(200), this.state32 = Pi(this.state);
|
|
1911
1911
|
}
|
|
1912
1912
|
clone() {
|
|
1913
1913
|
return this._cloneInto();
|
|
1914
1914
|
}
|
|
1915
1915
|
keccak() {
|
|
1916
|
-
dt(this.state32),
|
|
1916
|
+
dt(this.state32), so(this.state32, this.rounds), dt(this.state32), this.posOut = 0, this.pos = 0;
|
|
1917
1917
|
}
|
|
1918
1918
|
update(n) {
|
|
1919
1919
|
$e(this), n = Dn(n), Ve(n);
|
|
@@ -1967,52 +1967,52 @@ class Hn extends sr {
|
|
|
1967
1967
|
return n || (n = new Hn(t, r, s, a, i)), n.state32.set(this.state32), n.pos = this.pos, n.posOut = this.posOut, n.finished = this.finished, n.rounds = i, n.suffix = r, n.outputLen = s, n.enableXOF = a, n.destroyed = this.destroyed, n;
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
const
|
|
1971
|
-
function
|
|
1972
|
-
return
|
|
1970
|
+
const io = (e, n, t) => ir(() => new Hn(n, e, t)), oo = io(1, 136, 256 / 8);
|
|
1971
|
+
function co(e, n) {
|
|
1972
|
+
return oo(Te(e, { strict: !1 }) ? Kt(e) : e);
|
|
1973
1973
|
}
|
|
1974
1974
|
const vn = /* @__PURE__ */ new Ar(8192);
|
|
1975
|
-
function
|
|
1975
|
+
function ao(e, n) {
|
|
1976
1976
|
if (vn.has(`${e}.${n}`))
|
|
1977
1977
|
return vn.get(`${e}.${n}`);
|
|
1978
|
-
const t = e.substring(2).toLowerCase(), r =
|
|
1978
|
+
const t = e.substring(2).toLowerCase(), r = co(qt(t)), s = t.split("");
|
|
1979
1979
|
for (let a = 0; a < 40; a += 2)
|
|
1980
1980
|
r[a >> 1] >> 4 >= 8 && s[a] && (s[a] = s[a].toUpperCase()), (r[a >> 1] & 15) >= 8 && s[a + 1] && (s[a + 1] = s[a + 1].toUpperCase());
|
|
1981
1981
|
const i = `0x${s.join("")}`;
|
|
1982
1982
|
return vn.set(`${e}.${n}`, i), i;
|
|
1983
1983
|
}
|
|
1984
|
-
const
|
|
1984
|
+
const lo = /^0x[a-fA-F0-9]{40}$/, mn = /* @__PURE__ */ new Ar(8192);
|
|
1985
1985
|
function $(e, n) {
|
|
1986
1986
|
const { strict: t = !0 } = n ?? {}, r = `${e}.${t}`;
|
|
1987
1987
|
if (mn.has(r))
|
|
1988
1988
|
return mn.get(r);
|
|
1989
|
-
const s =
|
|
1989
|
+
const s = lo.test(e) ? e.toLowerCase() === e ? !0 : t ? ao(e) === e : !0 : !1;
|
|
1990
1990
|
return mn.set(r, s), s;
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return Te(e, { strict: !1 }) ?
|
|
1992
|
+
function Ao(e, n, t, { strict: r } = {}) {
|
|
1993
|
+
return Te(e, { strict: !1 }) ? uo(e, n, t, {
|
|
1994
1994
|
strict: r
|
|
1995
|
-
}) :
|
|
1995
|
+
}) : fo(e, n, t, {
|
|
1996
1996
|
strict: r
|
|
1997
1997
|
});
|
|
1998
1998
|
}
|
|
1999
1999
|
function mr(e, n, t) {
|
|
2000
2000
|
if (be(e) !== t - n)
|
|
2001
|
-
throw new
|
|
2001
|
+
throw new Ds({
|
|
2002
2002
|
offset: t,
|
|
2003
2003
|
position: "end",
|
|
2004
2004
|
size: be(e)
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function fo(e, n, t, { strict: r } = {}) {
|
|
2008
2008
|
const s = e.slice(n, t);
|
|
2009
2009
|
return r && mr(s, n, t), s;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function uo(e, n, t, { strict: r } = {}) {
|
|
2012
2012
|
const s = `0x${e.replace("0x", "").slice(n * 2, t * 2)}`;
|
|
2013
2013
|
return r && mr(s, n, t), s;
|
|
2014
2014
|
}
|
|
2015
|
-
function
|
|
2015
|
+
function go(e) {
|
|
2016
2016
|
const { authorizationList: n } = e;
|
|
2017
2017
|
if (n)
|
|
2018
2018
|
for (const t of n) {
|
|
@@ -2024,17 +2024,17 @@ function uo(e) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
Qn(e);
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function vo(e) {
|
|
2028
2028
|
const { blobVersionedHashes: n } = e;
|
|
2029
2029
|
if (n) {
|
|
2030
2030
|
if (n.length === 0)
|
|
2031
2031
|
throw new lr();
|
|
2032
2032
|
for (const t of n) {
|
|
2033
|
-
const r = be(t), s = _e(
|
|
2033
|
+
const r = be(t), s = _e(Ao(t, 0, 1));
|
|
2034
2034
|
if (r !== 32)
|
|
2035
|
-
throw new
|
|
2035
|
+
throw new Ki({ hash: t, size: r });
|
|
2036
2036
|
if (s !== ar)
|
|
2037
|
-
throw new
|
|
2037
|
+
throw new qi({
|
|
2038
2038
|
hash: t,
|
|
2039
2039
|
version: s
|
|
2040
2040
|
});
|
|
@@ -2053,7 +2053,7 @@ function Qn(e) {
|
|
|
2053
2053
|
if (t && r && t > r)
|
|
2054
2054
|
throw new Ne({ maxFeePerGas: r, maxPriorityFeePerGas: t });
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function mo(e) {
|
|
2057
2057
|
const { chainId: n, maxPriorityFeePerGas: t, gasPrice: r, maxFeePerGas: s, to: i } = e;
|
|
2058
2058
|
if (n <= 0)
|
|
2059
2059
|
throw new on({ chainId: n });
|
|
@@ -2064,7 +2064,7 @@ function vo(e) {
|
|
|
2064
2064
|
if (r && r > sn)
|
|
2065
2065
|
throw new Ae({ maxFeePerGas: r });
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function po(e) {
|
|
2068
2068
|
const { chainId: n, maxPriorityFeePerGas: t, gasPrice: r, maxFeePerGas: s, to: i } = e;
|
|
2069
2069
|
if (i && !$(i))
|
|
2070
2070
|
throw new _({ address: i });
|
|
@@ -2075,7 +2075,7 @@ function mo(e) {
|
|
|
2075
2075
|
if (r && r > sn)
|
|
2076
2076
|
throw new Ae({ maxFeePerGas: r });
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function Co(e) {
|
|
2079
2079
|
if (e.type)
|
|
2080
2080
|
return e.type;
|
|
2081
2081
|
if (typeof e.authorizationList < "u")
|
|
@@ -2086,7 +2086,7 @@ function po(e) {
|
|
|
2086
2086
|
return "eip1559";
|
|
2087
2087
|
if (typeof e.gasPrice < "u")
|
|
2088
2088
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
2089
|
-
throw new
|
|
2089
|
+
throw new bi({ transaction: e });
|
|
2090
2090
|
}
|
|
2091
2091
|
function cn(e) {
|
|
2092
2092
|
if (!e || e.length === 0)
|
|
@@ -2096,21 +2096,21 @@ function cn(e) {
|
|
|
2096
2096
|
const { address: r, storageKeys: s } = e[t];
|
|
2097
2097
|
for (let i = 0; i < s.length; i++)
|
|
2098
2098
|
if (s[i].length - 2 !== 64)
|
|
2099
|
-
throw new
|
|
2099
|
+
throw new zi({ storageKey: s[i] });
|
|
2100
2100
|
if (!$(r, { strict: !1 }))
|
|
2101
2101
|
throw new _({ address: r });
|
|
2102
2102
|
n.push([r, s]);
|
|
2103
2103
|
}
|
|
2104
2104
|
return n;
|
|
2105
2105
|
}
|
|
2106
|
-
function Co(e, n) {
|
|
2107
|
-
const t = po(e);
|
|
2108
|
-
return t === "eip1559" ? zo(e, n) : t === "eip2930" ? Io(e, n) : t === "eip4844" ? bo(e, n) : t === "eip7702" ? xo(e, n) : wo(e, n);
|
|
2109
|
-
}
|
|
2110
2106
|
function xo(e, n) {
|
|
2107
|
+
const t = Co(e);
|
|
2108
|
+
return t === "eip1559" ? Io(e, n) : t === "eip2930" ? wo(e, n) : t === "eip4844" ? zo(e, n) : t === "eip7702" ? bo(e, n) : Po(e, n);
|
|
2109
|
+
}
|
|
2110
|
+
function bo(e, n) {
|
|
2111
2111
|
const { authorizationList: t, chainId: r, gas: s, nonce: i, to: a, value: c, maxFeePerGas: l, maxPriorityFeePerGas: d, accessList: f, data: A } = e;
|
|
2112
|
-
|
|
2113
|
-
const u = cn(f), v =
|
|
2112
|
+
go(e);
|
|
2113
|
+
const u = cn(f), v = Ii(t);
|
|
2114
2114
|
return Ee([
|
|
2115
2115
|
"0x04",
|
|
2116
2116
|
de([
|
|
@@ -2128,20 +2128,20 @@ function xo(e, n) {
|
|
|
2128
2128
|
])
|
|
2129
2129
|
]);
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function zo(e, n) {
|
|
2132
2132
|
const { chainId: t, gas: r, nonce: s, to: i, value: a, maxFeePerBlobGas: c, maxFeePerGas: l, maxPriorityFeePerGas: d, accessList: f, data: A } = e;
|
|
2133
|
-
|
|
2133
|
+
vo(e);
|
|
2134
2134
|
let u = e.blobVersionedHashes, v = e.sidecars;
|
|
2135
2135
|
if (e.blobs && (typeof u > "u" || typeof v > "u")) {
|
|
2136
|
-
const w = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((z) => ee(z)),
|
|
2136
|
+
const w = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((z) => ee(z)), k = e.kzg, b = nr({
|
|
2137
2137
|
blobs: w,
|
|
2138
|
-
kzg:
|
|
2138
|
+
kzg: k
|
|
2139
2139
|
});
|
|
2140
|
-
if (typeof u > "u" && (u =
|
|
2140
|
+
if (typeof u > "u" && (u = Hi({
|
|
2141
2141
|
commitments: b
|
|
2142
2142
|
})), typeof v > "u") {
|
|
2143
|
-
const z = tr({ blobs: w, commitments: b, kzg:
|
|
2144
|
-
v =
|
|
2143
|
+
const z = tr({ blobs: w, commitments: b, kzg: k });
|
|
2144
|
+
v = Gi({ blobs: w, commitments: b, proofs: z });
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
const m = cn(f), g = [
|
|
@@ -2160,8 +2160,8 @@ function bo(e, n) {
|
|
|
2160
2160
|
], p = [], I = [], x = [];
|
|
2161
2161
|
if (v)
|
|
2162
2162
|
for (let w = 0; w < v.length; w++) {
|
|
2163
|
-
const { blob:
|
|
2164
|
-
p.push(
|
|
2163
|
+
const { blob: k, commitment: b, proof: z } = v[w];
|
|
2164
|
+
p.push(k), I.push(b), x.push(z);
|
|
2165
2165
|
}
|
|
2166
2166
|
return Ee([
|
|
2167
2167
|
"0x03",
|
|
@@ -2169,7 +2169,7 @@ function bo(e, n) {
|
|
|
2169
2169
|
de(v ? [g, p, I, x] : g)
|
|
2170
2170
|
]);
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function Io(e, n) {
|
|
2173
2173
|
const { chainId: t, gas: r, nonce: s, to: i, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: d, data: f } = e;
|
|
2174
2174
|
Qn(e);
|
|
2175
2175
|
const A = cn(d), u = [
|
|
@@ -2189,9 +2189,9 @@ function zo(e, n) {
|
|
|
2189
2189
|
de(u)
|
|
2190
2190
|
]);
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function wo(e, n) {
|
|
2193
2193
|
const { chainId: t, gas: r, data: s, nonce: i, to: a, value: c, accessList: l, gasPrice: d } = e;
|
|
2194
|
-
|
|
2194
|
+
mo(e);
|
|
2195
2195
|
const f = cn(l), A = [
|
|
2196
2196
|
P(t),
|
|
2197
2197
|
i ? P(i) : "0x",
|
|
@@ -2208,9 +2208,9 @@ function Io(e, n) {
|
|
|
2208
2208
|
de(A)
|
|
2209
2209
|
]);
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function Po(e, n) {
|
|
2212
2212
|
const { chainId: t = 0, gas: r, data: s, nonce: i, to: a, value: c, gasPrice: l } = e;
|
|
2213
|
-
|
|
2213
|
+
po(e);
|
|
2214
2214
|
let d = [
|
|
2215
2215
|
i ? P(i) : "0x",
|
|
2216
2216
|
l ? P(l) : "0x",
|
|
@@ -2227,7 +2227,7 @@ function wo(e, n) {
|
|
|
2227
2227
|
return BigInt(t * 2) + BigInt(35n + n.v - 27n);
|
|
2228
2228
|
const v = 27n + (n.v === 27n ? 0n : 1n);
|
|
2229
2229
|
if (n.v !== v)
|
|
2230
|
-
throw new
|
|
2230
|
+
throw new xi({ v: n.v });
|
|
2231
2231
|
return v;
|
|
2232
2232
|
})(), A = Re(n.r), u = Re(n.s);
|
|
2233
2233
|
d = [
|
|
@@ -2255,7 +2255,7 @@ function Se(e, n) {
|
|
|
2255
2255
|
const i = Re(t.r), a = Re(t.s);
|
|
2256
2256
|
return [typeof s == "number" ? s ? P(1) : "0x" : r === 0n ? "0x" : r === 1n ? P(1) : r === 27n ? "0x" : P(1), i === "0x00" ? "0x" : i, a === "0x00" ? "0x" : a];
|
|
2257
2257
|
}
|
|
2258
|
-
const
|
|
2258
|
+
const yo = {
|
|
2259
2259
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
2260
2260
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
2261
2261
|
l2CrossDomainMessenger: {
|
|
@@ -2266,8 +2266,8 @@ const Po = {
|
|
|
2266
2266
|
l2ToL1MessagePasser: {
|
|
2267
2267
|
address: "0x4200000000000000000000000000000000000016"
|
|
2268
2268
|
}
|
|
2269
|
-
},
|
|
2270
|
-
block: /* @__PURE__ */
|
|
2269
|
+
}, Bo = {
|
|
2270
|
+
block: /* @__PURE__ */ ti({
|
|
2271
2271
|
format(e) {
|
|
2272
2272
|
return {
|
|
2273
2273
|
transactions: e.transactions?.map((t) => {
|
|
@@ -2280,13 +2280,13 @@ const Po = {
|
|
|
2280
2280
|
};
|
|
2281
2281
|
}
|
|
2282
2282
|
}),
|
|
2283
|
-
transaction: /* @__PURE__ */
|
|
2283
|
+
transaction: /* @__PURE__ */ $s({
|
|
2284
2284
|
format(e) {
|
|
2285
2285
|
const n = {};
|
|
2286
2286
|
return e.type === "0x7e" && (n.isSystemTx = e.isSystemTx, n.mint = e.mint ? me(e.mint) : void 0, n.sourceHash = e.sourceHash, n.type = "deposit"), n;
|
|
2287
2287
|
}
|
|
2288
2288
|
}),
|
|
2289
|
-
transactionReceipt: /* @__PURE__ */
|
|
2289
|
+
transactionReceipt: /* @__PURE__ */ oi({
|
|
2290
2290
|
format(e) {
|
|
2291
2291
|
return {
|
|
2292
2292
|
l1GasPrice: e.l1GasPrice ? me(e.l1GasPrice) : null,
|
|
@@ -2297,21 +2297,21 @@ const Po = {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
})
|
|
2299
2299
|
};
|
|
2300
|
-
function
|
|
2301
|
-
return
|
|
2300
|
+
function ho(e, n) {
|
|
2301
|
+
return Vo(e) ? Mo(e) : xo(e, n);
|
|
2302
2302
|
}
|
|
2303
|
-
const
|
|
2304
|
-
transaction:
|
|
2303
|
+
const Wo = {
|
|
2304
|
+
transaction: ho
|
|
2305
2305
|
};
|
|
2306
2306
|
function Mo(e) {
|
|
2307
|
-
|
|
2307
|
+
Xo(e);
|
|
2308
2308
|
const { sourceHash: n, data: t, from: r, gas: s, isSystemTx: i, mint: a, to: c, value: l } = e, d = [
|
|
2309
2309
|
n,
|
|
2310
2310
|
r,
|
|
2311
2311
|
c ?? "0x",
|
|
2312
|
-
a ?
|
|
2313
|
-
l ?
|
|
2314
|
-
s ?
|
|
2312
|
+
a ? We(a) : "0x",
|
|
2313
|
+
l ? We(l) : "0x",
|
|
2314
|
+
s ? We(s) : "0x",
|
|
2315
2315
|
i ? "0x1" : "0x",
|
|
2316
2316
|
t ?? "0x"
|
|
2317
2317
|
];
|
|
@@ -2320,10 +2320,10 @@ function Mo(e) {
|
|
|
2320
2320
|
de(d)
|
|
2321
2321
|
]);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function Vo(e) {
|
|
2324
2324
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function Xo(e) {
|
|
2327
2327
|
const { from: n, to: t } = e;
|
|
2328
2328
|
if (n && !$(n))
|
|
2329
2329
|
throw new _({ address: n });
|
|
@@ -2332,9 +2332,9 @@ function Vo(e) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
const en = {
|
|
2334
2334
|
blockTime: 2e3,
|
|
2335
|
-
contracts:
|
|
2336
|
-
formatters:
|
|
2337
|
-
serializers:
|
|
2335
|
+
contracts: yo,
|
|
2336
|
+
formatters: Bo,
|
|
2337
|
+
serializers: Wo
|
|
2338
2338
|
}, pr = /* @__PURE__ */ se({
|
|
2339
2339
|
id: 42161,
|
|
2340
2340
|
name: "Arbitrum One",
|
|
@@ -2438,7 +2438,7 @@ const Cr = /* @__PURE__ */ se({
|
|
|
2438
2438
|
function qn(e) {
|
|
2439
2439
|
return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
|
|
2440
2440
|
}
|
|
2441
|
-
class
|
|
2441
|
+
class No extends h {
|
|
2442
2442
|
constructor({ docsPath: n } = {}) {
|
|
2443
2443
|
super([
|
|
2444
2444
|
"Could not find an Account to execute with this Action.",
|
|
@@ -2455,7 +2455,7 @@ function mt(e) {
|
|
|
2455
2455
|
return e.reduce((n, { slot: t, value: r }) => `${n} ${t}: ${r}
|
|
2456
2456
|
`, "");
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function jo(e) {
|
|
2459
2459
|
return e.reduce((n, { address: t, ...r }) => {
|
|
2460
2460
|
let s = `${n} ${t}:
|
|
2461
2461
|
`;
|
|
@@ -2468,13 +2468,13 @@ function No(e) {
|
|
|
2468
2468
|
}, ` State Override:
|
|
2469
2469
|
`).slice(0, -1);
|
|
2470
2470
|
}
|
|
2471
|
-
class
|
|
2471
|
+
class To extends h {
|
|
2472
2472
|
constructor(n, { account: t, docsPath: r, chain: s, data: i, gas: a, gasPrice: c, maxFeePerGas: l, maxPriorityFeePerGas: d, nonce: f, to: A, value: u, stateOverride: v }) {
|
|
2473
2473
|
const m = t ? qn(t) : void 0;
|
|
2474
2474
|
let g = er({
|
|
2475
2475
|
from: m?.address,
|
|
2476
2476
|
to: A,
|
|
2477
|
-
value: typeof u < "u" && `${
|
|
2477
|
+
value: typeof u < "u" && `${pi(u)} ${s?.nativeCurrency?.symbol || "ETH"}`,
|
|
2478
2478
|
data: i,
|
|
2479
2479
|
gas: a,
|
|
2480
2480
|
gasPrice: typeof c < "u" && `${oe(c)} gwei`,
|
|
@@ -2483,7 +2483,7 @@ class jo extends h {
|
|
|
2483
2483
|
nonce: f
|
|
2484
2484
|
});
|
|
2485
2485
|
v && (g += `
|
|
2486
|
-
${
|
|
2486
|
+
${jo(v)}`), super(n.shortMessage, {
|
|
2487
2487
|
cause: n,
|
|
2488
2488
|
docsPath: r,
|
|
2489
2489
|
metaMessages: [
|
|
@@ -2500,7 +2500,7 @@ ${No(v)}`), super(n.shortMessage, {
|
|
|
2500
2500
|
}), this.cause = n;
|
|
2501
2501
|
}
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function Eo(e, n) {
|
|
2504
2504
|
const t = (e.details || "").toLowerCase(), r = e instanceof h ? e.walk((s) => s?.code === pe.code) : e;
|
|
2505
2505
|
return r instanceof h ? new pe({
|
|
2506
2506
|
cause: e,
|
|
@@ -2514,7 +2514,7 @@ function To(e, n) {
|
|
|
2514
2514
|
}) : In.nodeMessage.test(t) ? new In({
|
|
2515
2515
|
cause: e,
|
|
2516
2516
|
maxFeePerGas: n?.maxFeePerGas
|
|
2517
|
-
}) : wn.nodeMessage.test(t) ? new wn({ cause: e, nonce: n?.nonce }) : Pn.nodeMessage.test(t) ? new Pn({ cause: e, nonce: n?.nonce }) : yn.nodeMessage.test(t) ? new yn({ cause: e, nonce: n?.nonce }) : Bn.nodeMessage.test(t) ? new Bn({ cause: e }) : hn.nodeMessage.test(t) ? new hn({ cause: e, gas: n?.gas }) :
|
|
2517
|
+
}) : wn.nodeMessage.test(t) ? new wn({ cause: e, nonce: n?.nonce }) : Pn.nodeMessage.test(t) ? new Pn({ cause: e, nonce: n?.nonce }) : yn.nodeMessage.test(t) ? new yn({ cause: e, nonce: n?.nonce }) : Bn.nodeMessage.test(t) ? new Bn({ cause: e }) : hn.nodeMessage.test(t) ? new hn({ cause: e, gas: n?.gas }) : Wn.nodeMessage.test(t) ? new Wn({ cause: e, gas: n?.gas }) : Mn.nodeMessage.test(t) ? new Mn({ cause: e }) : Ne.nodeMessage.test(t) ? new Ne({
|
|
2518
2518
|
cause: e,
|
|
2519
2519
|
maxFeePerGas: n?.maxFeePerGas,
|
|
2520
2520
|
maxPriorityFeePerGas: n?.maxPriorityFeePerGas
|
|
@@ -2522,17 +2522,17 @@ function To(e, n) {
|
|
|
2522
2522
|
cause: e
|
|
2523
2523
|
});
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function So(e, { docsPath: n, ...t }) {
|
|
2526
2526
|
const r = (() => {
|
|
2527
|
-
const s =
|
|
2527
|
+
const s = Eo(e, t);
|
|
2528
2528
|
return s instanceof dr ? e : s;
|
|
2529
2529
|
})();
|
|
2530
|
-
return new
|
|
2530
|
+
return new To(r, {
|
|
2531
2531
|
docsPath: n,
|
|
2532
2532
|
...t
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Oo(e, { format: n }) {
|
|
2536
2536
|
if (!n)
|
|
2537
2537
|
return {};
|
|
2538
2538
|
const t = {};
|
|
@@ -2544,14 +2544,14 @@ function So(e, { format: n }) {
|
|
|
2544
2544
|
const s = n(e || {});
|
|
2545
2545
|
return r(s), t;
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function Lo(e) {
|
|
2548
2548
|
const { account: n, gasPrice: t, maxFeePerGas: r, maxPriorityFeePerGas: s, to: i } = e, a = n ? qn(n) : void 0;
|
|
2549
2549
|
if (a && !$(a.address))
|
|
2550
2550
|
throw new _({ address: a.address });
|
|
2551
2551
|
if (i && !$(i))
|
|
2552
2552
|
throw new _({ address: i });
|
|
2553
2553
|
if (typeof t < "u" && (typeof r < "u" || typeof s < "u"))
|
|
2554
|
-
throw new
|
|
2554
|
+
throw new Ci();
|
|
2555
2555
|
if (r && r > sn)
|
|
2556
2556
|
throw new Ae({ maxFeePerGas: r });
|
|
2557
2557
|
if (s && r && s > r)
|
|
@@ -2560,14 +2560,14 @@ function Oo(e) {
|
|
|
2560
2560
|
async function ko(e, n) {
|
|
2561
2561
|
const { account: t = e.account } = n;
|
|
2562
2562
|
if (!t)
|
|
2563
|
-
throw new
|
|
2563
|
+
throw new No();
|
|
2564
2564
|
const r = qn(t);
|
|
2565
2565
|
try {
|
|
2566
2566
|
const { accessList: s, blockNumber: i, blockTag: a, data: c, gas: l, gasPrice: d, maxFeePerGas: f, maxPriorityFeePerGas: A, nonce: u, to: v, value: m, ...g } = n, I = (typeof i == "bigint" ? P(i) : void 0) || a;
|
|
2567
|
-
|
|
2568
|
-
const x = e.chain?.formatters?.transactionRequest?.format,
|
|
2567
|
+
Lo(n);
|
|
2568
|
+
const x = e.chain?.formatters?.transactionRequest?.format, k = (x || ai)({
|
|
2569
2569
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
2570
|
-
...
|
|
2570
|
+
...Oo(g, { format: x }),
|
|
2571
2571
|
from: r?.address,
|
|
2572
2572
|
accessList: s,
|
|
2573
2573
|
data: c,
|
|
@@ -2578,24 +2578,24 @@ async function ko(e, n) {
|
|
|
2578
2578
|
nonce: u,
|
|
2579
2579
|
to: v,
|
|
2580
2580
|
value: m
|
|
2581
|
-
}, "estimateGas"), { baseFeePerGas: b, gasLimit: z, priorityFeePerGas:
|
|
2581
|
+
}, "estimateGas"), { baseFeePerGas: b, gasLimit: z, priorityFeePerGas: W } = await e.request({
|
|
2582
2582
|
method: "linea_estimateGas",
|
|
2583
|
-
params: I ? [
|
|
2583
|
+
params: I ? [k, I] : [k]
|
|
2584
2584
|
});
|
|
2585
2585
|
return {
|
|
2586
2586
|
baseFeePerGas: BigInt(b),
|
|
2587
2587
|
gasLimit: BigInt(z),
|
|
2588
|
-
priorityFeePerGas: BigInt(
|
|
2588
|
+
priorityFeePerGas: BigInt(W)
|
|
2589
2589
|
};
|
|
2590
2590
|
} catch (s) {
|
|
2591
|
-
throw
|
|
2591
|
+
throw So(s, {
|
|
2592
2592
|
...n,
|
|
2593
2593
|
account: r,
|
|
2594
2594
|
chain: e.chain
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
const
|
|
2598
|
+
const Yo = {
|
|
2599
2599
|
fees: {
|
|
2600
2600
|
estimateFeesPerGas: pt,
|
|
2601
2601
|
async maxPriorityFeePerGas({ block: e, client: n, request: t }) {
|
|
@@ -2625,7 +2625,7 @@ async function pt({ client: e, multiply: n, request: t, type: r }) {
|
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
2627
|
const xr = /* @__PURE__ */ se({
|
|
2628
|
-
...
|
|
2628
|
+
...Yo,
|
|
2629
2629
|
id: 59144,
|
|
2630
2630
|
name: "Linea Mainnet",
|
|
2631
2631
|
nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2752,7 +2752,7 @@ const xr = /* @__PURE__ */ se({
|
|
|
2752
2752
|
blockCreated: 25770160
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
|
-
}),
|
|
2755
|
+
}), Zo = {
|
|
2756
2756
|
id: 1,
|
|
2757
2757
|
name: "Solana",
|
|
2758
2758
|
nativeCurrency: {
|
|
@@ -2769,7 +2769,7 @@ const xr = /* @__PURE__ */ se({
|
|
|
2769
2769
|
icon: rn,
|
|
2770
2770
|
name: "Solana"
|
|
2771
2771
|
}
|
|
2772
|
-
},
|
|
2772
|
+
}, Jo = {
|
|
2773
2773
|
id: 1,
|
|
2774
2774
|
name: "Aptos",
|
|
2775
2775
|
nativeCurrency: {
|
|
@@ -2786,7 +2786,7 @@ const xr = /* @__PURE__ */ se({
|
|
|
2786
2786
|
icon: tn,
|
|
2787
2787
|
name: "Aptos"
|
|
2788
2788
|
}
|
|
2789
|
-
},
|
|
2789
|
+
}, Do = {
|
|
2790
2790
|
id: 1,
|
|
2791
2791
|
name: "Dogecoin",
|
|
2792
2792
|
nativeCurrency: {
|
|
@@ -2805,9 +2805,9 @@ const xr = /* @__PURE__ */ se({
|
|
|
2805
2805
|
}
|
|
2806
2806
|
}, Ce = {
|
|
2807
2807
|
evm: [br, Cr, zr, pr, xr, Kn, Ir],
|
|
2808
|
-
solana: [
|
|
2809
|
-
aptos: [
|
|
2810
|
-
dogecoin: [
|
|
2808
|
+
solana: [Zo],
|
|
2809
|
+
aptos: [Jo],
|
|
2810
|
+
dogecoin: [Do]
|
|
2811
2811
|
}, wr = (e, n, t) => {
|
|
2812
2812
|
const { apiChains: r = [] } = t || {}, s = r.length > 0 ? Dt(r) : ae, i = [], a = e?.aptos || [];
|
|
2813
2813
|
a.length > 0 ? a.forEach((A) => {
|
|
@@ -2939,14 +2939,14 @@ const xr = /* @__PURE__ */ se({
|
|
|
2939
2939
|
}), i.filter((A) => A.chainId !== "solana:mainnet-beta" && A.chainId !== "aptos:1");
|
|
2940
2940
|
};
|
|
2941
2941
|
var V = /* @__PURE__ */ ((e) => (e.Loading = "LOADING", e.WalletList = "WALLET_LIST", e.WalletSearch = "WALLET_SEARCH", e.WalletSelectProviders = "WALLET_SELECT_PROVIDERS", e.WalletInstallGuide = "WALLET_INSTALL_GUIDE", e.Connecting = "CONNECTING", e.Error = "ERROR", e.Account = "ACCOUNT", e.SelectChains = "SELECT_CHAINS", e.ChangeNetwork = "CHANGE_NETWORK", e.SignInWallet = "SIGN_IN_WALLET", e.WalletConnect = "WALLET_CONNECT", e.UnsupportChain = "UNSUPPORT_CHAIN", e.WalletHome = "WALLET_HOME", e))(V || {});
|
|
2942
|
-
const
|
|
2943
|
-
const i = y(() => n ? /* @__PURE__ */ o(
|
|
2942
|
+
const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton: s }) => {
|
|
2943
|
+
const i = y(() => n ? /* @__PURE__ */ o(L, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: n, radius: "full", className: "p-0", children: /* @__PURE__ */ o(Wt, {}) }) : null, [n]);
|
|
2944
2944
|
return /* @__PURE__ */ C("div", { className: "flex items-center justify-between px-0 py-3", children: [
|
|
2945
2945
|
i,
|
|
2946
2946
|
/* @__PURE__ */ o("div", { className: "font-medium text-lg", children: e }),
|
|
2947
2947
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-3", children: [
|
|
2948
2948
|
r,
|
|
2949
|
-
s ? null : /* @__PURE__ */ o(
|
|
2949
|
+
s ? null : /* @__PURE__ */ o(L, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: t, radius: "full", className: "p-0", children: /* @__PURE__ */ o(Mt, { className: "text-xl" }) })
|
|
2950
2950
|
] })
|
|
2951
2951
|
] });
|
|
2952
2952
|
}, F = ({
|
|
@@ -2957,12 +2957,12 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2957
2957
|
headerRightContent: s,
|
|
2958
2958
|
hideCloseButton: i
|
|
2959
2959
|
}) => {
|
|
2960
|
-
const a =
|
|
2960
|
+
const a = M(X);
|
|
2961
2961
|
if (!a)
|
|
2962
2962
|
throw new Error("WalletConnectContext not found");
|
|
2963
2963
|
return /* @__PURE__ */ C("div", { className: "flex flex-col gap-3 min-h-0 flex-1", children: [
|
|
2964
2964
|
/* @__PURE__ */ o(
|
|
2965
|
-
|
|
2965
|
+
Fo,
|
|
2966
2966
|
{
|
|
2967
2967
|
title: n,
|
|
2968
2968
|
onBack: t,
|
|
@@ -2975,18 +2975,18 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2975
2975
|
),
|
|
2976
2976
|
/* @__PURE__ */ o("div", { className: "flex-1 flex flex-col min-h-0", children: e })
|
|
2977
2977
|
] });
|
|
2978
|
-
},
|
|
2979
|
-
const e =
|
|
2978
|
+
}, Ho = () => {
|
|
2979
|
+
const e = M(X);
|
|
2980
2980
|
if (!e)
|
|
2981
2981
|
throw new Error("WalletConnectContext not found");
|
|
2982
|
-
const { copied: n, copy: t } =
|
|
2982
|
+
const { copied: n, copy: t } = kn(), { chains: r } = Yt(), { account: s, disconnect: i } = e, a = s.currentWallet?.info?.name || "Wallet", c = s.currentWallet?.info?.icon, l = s.address, d = s.chainType, f = s.chainId, A = f ? Number(BigInt(f || "0").toString()) : void 0, u = s.currentWallet, v = O(async () => {
|
|
2983
2983
|
try {
|
|
2984
2984
|
if (!l) return;
|
|
2985
2985
|
t(l);
|
|
2986
2986
|
} catch (I) {
|
|
2987
2987
|
console.error("Failed to copy address:", I);
|
|
2988
2988
|
}
|
|
2989
|
-
}, [l, t]), m = y(() => /* @__PURE__ */ o(
|
|
2989
|
+
}, [l, t]), m = y(() => /* @__PURE__ */ o(L, { isIconOnly: !0, variant: "light", color: "default", className: "size-10", onPress: v, children: n ? /* @__PURE__ */ o(Vt, { className: "text-success size-6" }) : /* @__PURE__ */ o(Zr, { className: "text-foreground size-4" }) }), [v, n]);
|
|
2990
2990
|
if (!u)
|
|
2991
2991
|
return null;
|
|
2992
2992
|
const g = wr(e.config?.chains, u?.connectors, {
|
|
@@ -3013,12 +3013,12 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3013
3013
|
F,
|
|
3014
3014
|
{
|
|
3015
3015
|
title: /* @__PURE__ */ o(
|
|
3016
|
-
|
|
3016
|
+
L,
|
|
3017
3017
|
{
|
|
3018
3018
|
variant: "light",
|
|
3019
3019
|
color: "default",
|
|
3020
3020
|
onPress: () => e.modal.setView(V.SelectChains),
|
|
3021
|
-
endContent: /* @__PURE__ */ o(
|
|
3021
|
+
endContent: /* @__PURE__ */ o(Dr, { className: "size-4" }),
|
|
3022
3022
|
children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
3023
3023
|
/* @__PURE__ */ o(
|
|
3024
3024
|
ze,
|
|
@@ -3045,12 +3045,12 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3045
3045
|
m
|
|
3046
3046
|
] }),
|
|
3047
3047
|
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
3048
|
-
|
|
3048
|
+
L,
|
|
3049
3049
|
{
|
|
3050
3050
|
color: "default",
|
|
3051
3051
|
variant: "light",
|
|
3052
3052
|
className: "w-full",
|
|
3053
|
-
startContent: /* @__PURE__ */ o(
|
|
3053
|
+
startContent: /* @__PURE__ */ o(Jr, { className: "size-4" }),
|
|
3054
3054
|
onPress: i,
|
|
3055
3055
|
children: "Disconnect wallet"
|
|
3056
3056
|
}
|
|
@@ -3077,8 +3077,8 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3077
3077
|
n(Ct), Jt();
|
|
3078
3078
|
}
|
|
3079
3079
|
};
|
|
3080
|
-
},
|
|
3081
|
-
const e =
|
|
3080
|
+
}, Qo = () => {
|
|
3081
|
+
const e = M(X), n = e?.modal.state;
|
|
3082
3082
|
if (!e)
|
|
3083
3083
|
throw new Error("WalletConnectContext not found");
|
|
3084
3084
|
const t = n?.chainType || "evm", r = n?.chainId || "", s = n?.name || "-", i = n?.chainInfo?.icon || "", { resetWalletState: a } = Pr(), { mutate: c, isPending: l } = En({
|
|
@@ -3103,14 +3103,14 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3103
3103
|
" network. You need to connect with a new wallet."
|
|
3104
3104
|
] })
|
|
3105
3105
|
] }),
|
|
3106
|
-
/* @__PURE__ */ C(
|
|
3106
|
+
/* @__PURE__ */ C(L, { className: "w-full my-4", disabled: l, onPress: () => c(), children: [
|
|
3107
3107
|
"Connect ",
|
|
3108
3108
|
s,
|
|
3109
3109
|
" wallet"
|
|
3110
3110
|
] })
|
|
3111
3111
|
] }) });
|
|
3112
3112
|
}, Oe = () => {
|
|
3113
|
-
const e =
|
|
3113
|
+
const e = M(X);
|
|
3114
3114
|
return {
|
|
3115
3115
|
connectWallet: O(
|
|
3116
3116
|
async (t, r, s = "") => {
|
|
@@ -3141,7 +3141,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3141
3141
|
[e?.modal.setView, e?.connect]
|
|
3142
3142
|
)
|
|
3143
3143
|
};
|
|
3144
|
-
},
|
|
3144
|
+
}, Ko = ({
|
|
3145
3145
|
iconSrc: e,
|
|
3146
3146
|
iconAlt: n,
|
|
3147
3147
|
variant: t
|
|
@@ -3158,8 +3158,8 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3158
3158
|
] }) : /* @__PURE__ */ o("div", { className: "absolute inset-0 border-4 border-success rounded-full" }),
|
|
3159
3159
|
e ? /* @__PURE__ */ o(fe, { src: e, alt: n || "Wallet", width: 64, height: 64, radius: "full", className: "relative z-10" }) : null,
|
|
3160
3160
|
t === "success" ? /* @__PURE__ */ o("div", { className: "absolute -bottom-1 -right-1 w-6 h-6 rounded-full bg-success flex items-center justify-center border-2 border-white", children: /* @__PURE__ */ o("svg", { className: "w-4 h-4 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ o("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) }) }) : null
|
|
3161
|
-
] }),
|
|
3162
|
-
const e =
|
|
3161
|
+
] }), qo = () => {
|
|
3162
|
+
const e = M(X);
|
|
3163
3163
|
if (!e)
|
|
3164
3164
|
throw new Error("WalletConnectContext not found");
|
|
3165
3165
|
const { currentWallet: n } = e.account, { connectionStatus: t, error: r } = e.connection, { connectWallet: s } = Oe(), [i, a] = Y(!1), c = async () => {
|
|
@@ -3194,10 +3194,10 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3194
3194
|
}
|
|
3195
3195
|
) }) });
|
|
3196
3196
|
return /* @__PURE__ */ o(F, { title: n?.info?.name || "Wallet", onBack: l, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3197
|
-
/* @__PURE__ */ o(
|
|
3197
|
+
/* @__PURE__ */ o(Ko, { iconSrc: n?.info?.icon, iconAlt: n?.info?.name, variant: A }),
|
|
3198
3198
|
u(),
|
|
3199
3199
|
f ? /* @__PURE__ */ o("div", { className: "w-full px-4", children: /* @__PURE__ */ o(
|
|
3200
|
-
|
|
3200
|
+
L,
|
|
3201
3201
|
{
|
|
3202
3202
|
isDisabled: i,
|
|
3203
3203
|
startContent: i ? /* @__PURE__ */ o(
|
|
@@ -3222,8 +3222,8 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3222
3222
|
}, xt = ({ error: e, title: n }) => /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
|
|
3223
3223
|
/* @__PURE__ */ o("p", { className: "text-lg font-semibold text-foreground", children: n }),
|
|
3224
3224
|
/* @__PURE__ */ o("p", { children: e })
|
|
3225
|
-
] }),
|
|
3226
|
-
const e =
|
|
3225
|
+
] }), Uo = () => {
|
|
3226
|
+
const e = M(X);
|
|
3227
3227
|
if (!e)
|
|
3228
3228
|
throw new Error("WalletConnectContext not found");
|
|
3229
3229
|
const { error: n } = e.connection;
|
|
@@ -3231,11 +3231,11 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3231
3231
|
/* @__PURE__ */ o("div", { className: "text-danger text-5xl mb-4", children: "⚠️" }),
|
|
3232
3232
|
/* @__PURE__ */ o("p", { className: "text-lg font-semibold mb-2 text-danger", children: "Connection Failed" }),
|
|
3233
3233
|
/* @__PURE__ */ o("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-6 text-center", children: n }),
|
|
3234
|
-
/* @__PURE__ */ o(
|
|
3234
|
+
/* @__PURE__ */ o(L, { variant: "solid", color: "primary", onPress: () => {
|
|
3235
3235
|
e.connection.setError(""), e.modal.setView(V.Connecting);
|
|
3236
3236
|
}, children: "Try Again" })
|
|
3237
3237
|
] });
|
|
3238
|
-
},
|
|
3238
|
+
}, Go = (e, n, t) => {
|
|
3239
3239
|
e = e / 360, n = n / 100, t = t / 100;
|
|
3240
3240
|
let r, s, i;
|
|
3241
3241
|
if (n === 0)
|
|
@@ -3249,14 +3249,14 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3249
3249
|
return l.length === 1 ? `0${l}` : l;
|
|
3250
3250
|
};
|
|
3251
3251
|
return `#${a(r)}${a(s)}${a(i)}`.toUpperCase();
|
|
3252
|
-
},
|
|
3252
|
+
}, Ro = (e, n = "#FCD436") => {
|
|
3253
3253
|
const t = e.trim();
|
|
3254
3254
|
if (t.startsWith("#"))
|
|
3255
3255
|
return t.toUpperCase();
|
|
3256
3256
|
const r = t.match(/(?:hsl\()?([0-9.]+)(?:deg)?,?\s+([0-9.]+)%,?\s+([0-9.]+)%\)?/);
|
|
3257
3257
|
if (r) {
|
|
3258
3258
|
const [, i, a, c] = r;
|
|
3259
|
-
return
|
|
3259
|
+
return Go(parseFloat(i), parseFloat(a), parseFloat(c));
|
|
3260
3260
|
}
|
|
3261
3261
|
const s = t.match(/(?:rgb\()?([0-9]+),?\s+([0-9]+),?\s+([0-9]+)\)?/);
|
|
3262
3262
|
if (s) {
|
|
@@ -3295,7 +3295,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3295
3295
|
return J(() => {
|
|
3296
3296
|
if (s.current) {
|
|
3297
3297
|
const l = getComputedStyle(s.current), d = l.getPropertyValue("--heroui-primary").trim() || l.getPropertyValue("--primary").trim() || "#FCD436";
|
|
3298
|
-
c(
|
|
3298
|
+
c(Ro(d));
|
|
3299
3299
|
}
|
|
3300
3300
|
}, []), J(() => {
|
|
3301
3301
|
if (!e || !s.current)
|
|
@@ -3332,41 +3332,41 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3332
3332
|
if (i.current)
|
|
3333
3333
|
i.current.update(d);
|
|
3334
3334
|
else {
|
|
3335
|
-
const A = new
|
|
3335
|
+
const A = new fs(d);
|
|
3336
3336
|
i.current = A, l.innerHTML = "", A.append(l);
|
|
3337
3337
|
}
|
|
3338
3338
|
const f = l;
|
|
3339
3339
|
return () => {
|
|
3340
3340
|
f && i.current && (f.innerHTML = "", i.current = null);
|
|
3341
3341
|
};
|
|
3342
|
-
}, [e, n, t, r, a]), /* @__PURE__ */ o(
|
|
3343
|
-
},
|
|
3344
|
-
const { copy: c, copied: l } =
|
|
3342
|
+
}, [e, n, t, r, a]), /* @__PURE__ */ o(Fr, { isLoaded: !!e, style: { width: n, height: n }, className: "rounded-lg", children: /* @__PURE__ */ o("div", { className: "flex items-center justify-center p-2 bg-background rounded-lg", children: /* @__PURE__ */ o("div", { ref: s }) }) });
|
|
3343
|
+
}, _o = ({ isOpen: e, onClose: n, onBack: t, url: r, logo: s, logoBackground: i, title: a }) => {
|
|
3344
|
+
const { copy: c, copied: l } = kn();
|
|
3345
3345
|
return /* @__PURE__ */ o(Xt, { isOpen: e, onClose: n, onBack: t, title: a, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
|
|
3346
3346
|
/* @__PURE__ */ o("p", { className: "text-sm text-foreground/80 text-center", children: "Scan the QR code with your camera phone to get the app on iOS or Android." }),
|
|
3347
3347
|
/* @__PURE__ */ o(Br, { content: r, logo: s, logoBackground: i }),
|
|
3348
|
-
/* @__PURE__ */ o(
|
|
3348
|
+
/* @__PURE__ */ o(L, { variant: "bordered", size: "lg", fullWidth: !0, onPress: () => {
|
|
3349
3349
|
c(r);
|
|
3350
3350
|
}, children: l ? "Copied!" : "Copy Link" })
|
|
3351
3351
|
] }) });
|
|
3352
|
-
},
|
|
3352
|
+
}, $o = () => {
|
|
3353
3353
|
if (typeof window > "u") return "other";
|
|
3354
3354
|
const e = window.navigator.userAgent.toLowerCase();
|
|
3355
3355
|
return e.includes("chrome") && !e.includes("edge") && !e.includes("opera") ? "chrome" : e.includes("edge") ? "edge" : e.includes("firefox") ? "firefox" : e.includes("opera") || e.includes("opr") ? "opera" : e.includes("safari") && !e.includes("chrome") ? "safari" : "other";
|
|
3356
|
-
},
|
|
3356
|
+
}, ec = () => {
|
|
3357
3357
|
if (typeof window > "u") return "desktop";
|
|
3358
3358
|
const e = window.navigator.userAgent.toLowerCase();
|
|
3359
3359
|
return /iphone|ipad|ipod/.test(e) ? "ios" : /android/.test(e) ? "android" : "desktop";
|
|
3360
|
-
},
|
|
3360
|
+
}, nc = (e) => {
|
|
3361
3361
|
if (!e) return null;
|
|
3362
|
-
const n =
|
|
3362
|
+
const n = ec(), t = $o();
|
|
3363
3363
|
return n === "ios" ? e.ios_install || e.mobile || e.homepage || null : n === "android" ? e.android_install || e.mobile || e.homepage || null : t === "chrome" ? e.chrome_install || e.homepage || null : t === "edge" ? e.edge || e.homepage || null : t === "firefox" ? e.firefox || e.homepage || null : t === "opera" ? e.opera || e.homepage || null : t === "safari" ? e.safari || e.homepage || null : e.homepage || e.mobile || null;
|
|
3364
|
-
},
|
|
3364
|
+
}, tc = (e) => {
|
|
3365
3365
|
if (!e) return [];
|
|
3366
3366
|
const n = [];
|
|
3367
3367
|
return e.chrome_install && n.push({ label: "Chrome", url: e.chrome_install }), e.edge && n.push({ label: "Edge", url: e.edge }), e.firefox && n.push({ label: "Firefox", url: e.firefox }), e.opera && n.push({ label: "Opera", url: e.opera }), e.safari && n.push({ label: "Safari", url: e.safari }), e.ios_install && n.push({ label: "iOS", url: e.ios_install }), e.android_install && n.push({ label: "Android", url: e.android_install }), e.mobile && !n.find((t) => t.url === e.mobile) && n.push({ label: "Mobile App", url: e.mobile }), e.homepage && !n.find((t) => t.url === e.homepage) && n.push({ label: "Homepage", url: e.homepage }), n;
|
|
3368
|
-
},
|
|
3369
|
-
const e =
|
|
3368
|
+
}, rc = () => {
|
|
3369
|
+
const e = M(X);
|
|
3370
3370
|
if (!e)
|
|
3371
3371
|
throw new Error("WalletConnectContext not found");
|
|
3372
3372
|
const { currentWallet: n } = e.account, t = ce(!1);
|
|
@@ -3374,7 +3374,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3374
3374
|
!n && !t.current && (t.current = !0, e.modal.backView());
|
|
3375
3375
|
}, [e.modal, n]), !n)
|
|
3376
3376
|
return /* @__PURE__ */ o(F, { title: "Install Wallet", onBack: () => e.modal.backView(), children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12 gap-4", children: /* @__PURE__ */ o("p", { className: "text-sm text-foreground/60 text-center px-4", children: "Wallet not found. Going back..." }) }) });
|
|
3377
|
-
const r = y(() => `Install ${n?.info?.name} Wallet`, [n?.info?.name]), s = y(() => n?.info, [n?.info]), i = y(() =>
|
|
3377
|
+
const r = y(() => `Install ${n?.info?.name} Wallet`, [n?.info?.name]), s = y(() => n?.info, [n?.info]), i = y(() => nc(s?.links), [s?.links]), a = y(() => tc(s?.links), [s?.links]), [c, l] = Y({
|
|
3378
3378
|
isOpen: !1,
|
|
3379
3379
|
url: ""
|
|
3380
3380
|
}), d = () => {
|
|
@@ -3404,18 +3404,18 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3404
3404
|
s.name,
|
|
3405
3405
|
", please install the wallet extension or app."
|
|
3406
3406
|
] }),
|
|
3407
|
-
i && /* @__PURE__ */ C(
|
|
3407
|
+
i && /* @__PURE__ */ C(L, { variant: "solid", color: "primary", size: "lg", fullWidth: !0, onPress: d, className: "mb-4", children: [
|
|
3408
3408
|
"Install ",
|
|
3409
3409
|
s.name
|
|
3410
3410
|
] }),
|
|
3411
3411
|
a.length > 1 && /* @__PURE__ */ C("div", { className: "w-full", children: [
|
|
3412
3412
|
/* @__PURE__ */ o("p", { className: "text-xs text-foreground/60 mb-2 text-center", children: "Or download from:" }),
|
|
3413
|
-
/* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2 justify-center", children: a.map((v, m) => /* @__PURE__ */ o(
|
|
3413
|
+
/* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2 justify-center", children: a.map((v, m) => /* @__PURE__ */ o(L, { variant: "bordered", size: "sm", onPress: () => f(v), children: v.label }, m)) })
|
|
3414
3414
|
] }),
|
|
3415
3415
|
/* @__PURE__ */ o("p", { className: "text-xs text-foreground/40 mt-6 text-center px-4", children: "After installing, refresh the page and try connecting again." })
|
|
3416
3416
|
] }),
|
|
3417
3417
|
/* @__PURE__ */ o(
|
|
3418
|
-
|
|
3418
|
+
_o,
|
|
3419
3419
|
{
|
|
3420
3420
|
title: r,
|
|
3421
3421
|
isOpen: c.isOpen,
|
|
@@ -3427,8 +3427,8 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3427
3427
|
}
|
|
3428
3428
|
)
|
|
3429
3429
|
] });
|
|
3430
|
-
},
|
|
3431
|
-
if (!
|
|
3430
|
+
}, sc = () => {
|
|
3431
|
+
if (!M(X))
|
|
3432
3432
|
throw new Error("WalletConnectContext not found");
|
|
3433
3433
|
return /* @__PURE__ */ o(F, { title: "Loading", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3434
3434
|
/* @__PURE__ */ o(
|
|
@@ -3447,7 +3447,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3447
3447
|
] })
|
|
3448
3448
|
] }) });
|
|
3449
3449
|
}, hr = () => {
|
|
3450
|
-
const e =
|
|
3450
|
+
const e = M(X), { connectWallet: n } = Oe();
|
|
3451
3451
|
return {
|
|
3452
3452
|
handleSelectWallet: O(
|
|
3453
3453
|
(r, s) => {
|
|
@@ -3509,18 +3509,18 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3509
3509
|
url: typeof window < "u" ? window.location.origin : "",
|
|
3510
3510
|
icons: ["https://tomo.inc/favicon.svg"]
|
|
3511
3511
|
}
|
|
3512
|
-
},
|
|
3512
|
+
}, Wr = "cTQxTUlSZXhwOXF6T2hnTHJVRzI6MTpjaQ", Mr = "362812706401-eppkpnqocdaejaf45ics815t22oe0j7l.apps.googleusercontent.com", He = {
|
|
3513
3513
|
stage: "prod-dogeos",
|
|
3514
3514
|
name: "DogeOS Social Wallet",
|
|
3515
3515
|
logo: "https://web3-assets.tomo.inc/assets/wallets/mydoge/wallet.svg",
|
|
3516
|
-
xClientId:
|
|
3517
|
-
googleClientId:
|
|
3516
|
+
xClientId: Wr,
|
|
3517
|
+
googleClientId: Mr,
|
|
3518
3518
|
walletBaseUrl: "https://dogeos.embedded-wallet.tomo.inc/embed"
|
|
3519
3519
|
}, zt = {
|
|
3520
3520
|
basicLogins: ["email", "externalWallets"],
|
|
3521
3521
|
socialLogins: [
|
|
3522
|
-
{ type: "google", clientId:
|
|
3523
|
-
{ type: "x", clientId:
|
|
3522
|
+
{ type: "google", clientId: Mr },
|
|
3523
|
+
{ type: "x", clientId: Wr }
|
|
3524
3524
|
]
|
|
3525
3525
|
}, ie = {
|
|
3526
3526
|
connectors: re.recommendedWallets,
|
|
@@ -3574,12 +3574,12 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3574
3574
|
privacyPolicy: re.links.privacyPolicy,
|
|
3575
3575
|
logo: "https://tomo.inc/favicon.svg"
|
|
3576
3576
|
}
|
|
3577
|
-
}, an = ht(null),
|
|
3577
|
+
}, an = ht(null), ic = ["wallets", "all"], oc = (e) => () => {
|
|
3578
3578
|
const n = e.length > 0 ? e : re.recommendedWallets || [], t = re.walletBaseUrl;
|
|
3579
3579
|
return Tt({
|
|
3580
3580
|
chainType: "all",
|
|
3581
3581
|
recommendedConnectors: n,
|
|
3582
|
-
connectorTypes: n.map((r) =>
|
|
3582
|
+
connectorTypes: n.map((r) => ss(r) ? "wagmi" : "tomo"),
|
|
3583
3583
|
options: {
|
|
3584
3584
|
baseUrl: t
|
|
3585
3585
|
}
|
|
@@ -3595,13 +3595,13 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3595
3595
|
isEmbeddedWallet: !0,
|
|
3596
3596
|
logout: async () => e.logout()
|
|
3597
3597
|
};
|
|
3598
|
-
},
|
|
3599
|
-
const r =
|
|
3600
|
-
() =>
|
|
3598
|
+
}, Le = (e, n = [], t) => {
|
|
3599
|
+
const r = M(an)?.wallet ?? null, s = t?.embeddedWallet !== void 0 ? t.embeddedWallet : r, i = y(() => n.length > 0 ? n : re.recommendedWallets || [], [n]), a = y(
|
|
3600
|
+
() => oc(i),
|
|
3601
3601
|
[i]
|
|
3602
3602
|
// Only recreate when connectors ID changes
|
|
3603
3603
|
), c = Tn({
|
|
3604
|
-
queryKey:
|
|
3604
|
+
queryKey: ic,
|
|
3605
3605
|
queryFn: a,
|
|
3606
3606
|
// Refetch on window focus to update wallet installation status
|
|
3607
3607
|
refetchOnWindowFocus: !0
|
|
@@ -3620,11 +3620,11 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3620
3620
|
embeddedWalletConnector: l
|
|
3621
3621
|
};
|
|
3622
3622
|
}, Un = ({ extendContent: e }) => {
|
|
3623
|
-
const n =
|
|
3623
|
+
const n = M(X);
|
|
3624
3624
|
if (!n) return null;
|
|
3625
3625
|
const { config: t } = n, { links: r } = t;
|
|
3626
3626
|
return r ? /* @__PURE__ */ C("div", { className: "flex flex-col gap-2", children: [
|
|
3627
|
-
e || /* @__PURE__ */ o(
|
|
3627
|
+
e || /* @__PURE__ */ o(cc, {}),
|
|
3628
3628
|
/* @__PURE__ */ C(
|
|
3629
3629
|
Ue,
|
|
3630
3630
|
{
|
|
@@ -3635,13 +3635,13 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3635
3635
|
children: [
|
|
3636
3636
|
/* @__PURE__ */ o("span", { children: "Powered by" }),
|
|
3637
3637
|
r.logo && /* @__PURE__ */ o("img", { src: r.logo, alt: "logo", className: "w-4 h-4" }),
|
|
3638
|
-
!r.logo && /* @__PURE__ */ o(
|
|
3638
|
+
!r.logo && /* @__PURE__ */ o(Hr, {})
|
|
3639
3639
|
]
|
|
3640
3640
|
}
|
|
3641
3641
|
)
|
|
3642
3642
|
] }) : null;
|
|
3643
|
-
},
|
|
3644
|
-
const e =
|
|
3643
|
+
}, cc = () => {
|
|
3644
|
+
const e = M(X);
|
|
3645
3645
|
if (!e) return null;
|
|
3646
3646
|
const { config: n } = e, { links: t } = n;
|
|
3647
3647
|
return t ? /* @__PURE__ */ C("div", { className: "text-xs text-[#A9A29D] text-center", children: [
|
|
@@ -3657,13 +3657,13 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3657
3657
|
"."
|
|
3658
3658
|
] })
|
|
3659
3659
|
] }) : null;
|
|
3660
|
-
},
|
|
3660
|
+
}, ac = ({ wallet: e, onSelectWallet: n }) => {
|
|
3661
3661
|
const { info: t, isInstalled: r } = e, s = y(() => {
|
|
3662
3662
|
if (!r) return null;
|
|
3663
3663
|
const i = t?.uuid === "walletConnect";
|
|
3664
3664
|
return /* @__PURE__ */ o("span", { className: "text-xs line-height-[140px] font-normal text-[#A9A29D]", children: i ? "QR Code" : "Installed" });
|
|
3665
3665
|
}, [t?.uuid, r]);
|
|
3666
|
-
return /* @__PURE__ */ o(
|
|
3666
|
+
return /* @__PURE__ */ o(Qr, { isPressable: !0, isHoverable: !0, shadow: "none", radius: "sm", onPress: () => n?.(e), children: /* @__PURE__ */ C(Kr, { className: "flex flex-col items-center gap-1 px-0 py-2", children: [
|
|
3667
3667
|
/* @__PURE__ */ o("div", { className: "p-1 h-[56px]", children: /* @__PURE__ */ o(fe, { src: t.icon, alt: t.name, width: 48, height: 48, removeWrapper: !0, radius: "md" }) }),
|
|
3668
3668
|
/* @__PURE__ */ C("div", { className: "flex flex-col justify-center items-center scale-80 text-center", children: [
|
|
3669
3669
|
/* @__PURE__ */ o("span", { className: "text-sm font-medium", children: t.name }),
|
|
@@ -3671,7 +3671,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3671
3671
|
] })
|
|
3672
3672
|
] }) }, t.uuid);
|
|
3673
3673
|
};
|
|
3674
|
-
function
|
|
3674
|
+
function lc({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
3675
3675
|
return n ? /* @__PURE__ */ o(
|
|
3676
3676
|
ue,
|
|
3677
3677
|
{
|
|
@@ -3682,15 +3682,15 @@ function ac({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
|
3682
3682
|
},
|
|
3683
3683
|
className: "m-auto"
|
|
3684
3684
|
}
|
|
3685
|
-
) : e.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ o("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ o("div", { className: "grid grid-cols-4", children: e.map((r) => /* @__PURE__ */ o(
|
|
3685
|
+
) : e.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ o("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ o("div", { className: "grid grid-cols-4", children: e.map((r) => /* @__PURE__ */ o(ac, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
|
|
3686
3686
|
}
|
|
3687
|
-
const
|
|
3687
|
+
const dc = {
|
|
3688
3688
|
evm: { tabKey: "evm", chainKey: "evm" },
|
|
3689
3689
|
solana: { tabKey: "solana", chainKey: "solana" },
|
|
3690
3690
|
aptos: { tabKey: "aptos", chainKey: "aptos" },
|
|
3691
3691
|
dogecoin: { tabKey: "doge", chainKey: "dogecoin" }
|
|
3692
|
-
},
|
|
3693
|
-
const t =
|
|
3692
|
+
}, Ac = ({ selectedKey: e, onSelectionChange: n }) => {
|
|
3693
|
+
const t = M(X), r = y(() => {
|
|
3694
3694
|
const i = t?.config?.chains || {}, a = [
|
|
3695
3695
|
{
|
|
3696
3696
|
key: "all",
|
|
@@ -3699,7 +3699,7 @@ const lc = {
|
|
|
3699
3699
|
}
|
|
3700
3700
|
];
|
|
3701
3701
|
return Object.keys(i).forEach((c) => {
|
|
3702
|
-
const l =
|
|
3702
|
+
const l = dc[c];
|
|
3703
3703
|
if (l) {
|
|
3704
3704
|
const d = q[l.chainKey];
|
|
3705
3705
|
a.push({
|
|
@@ -3711,16 +3711,16 @@ const lc = {
|
|
|
3711
3711
|
}), a;
|
|
3712
3712
|
}, [t?.config?.chains]), s = (i) => i.icon ? /* @__PURE__ */ o(ze, { icon: i.icon, className: "size-6 overflow-hidden rounded-full" }) : i.title;
|
|
3713
3713
|
return /* @__PURE__ */ o(
|
|
3714
|
-
|
|
3714
|
+
qr,
|
|
3715
3715
|
{
|
|
3716
3716
|
variant: "bordered",
|
|
3717
3717
|
fullWidth: !0,
|
|
3718
3718
|
selectedKey: e,
|
|
3719
3719
|
onSelectionChange: (i) => n(i),
|
|
3720
|
-
children: r.map((i) => /* @__PURE__ */ o(
|
|
3720
|
+
children: r.map((i) => /* @__PURE__ */ o(Ur, { title: s(i) }, i.key))
|
|
3721
3721
|
}
|
|
3722
3722
|
);
|
|
3723
|
-
},
|
|
3723
|
+
}, fc = ({ wallet: e, onSelectWallet: n }) => {
|
|
3724
3724
|
const { info: t, isInstalled: r } = e, s = y(() => r ? t?.uuid === "walletConnect" ? /* @__PURE__ */ o($n, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "QR Code" }) : /* @__PURE__ */ o($n, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "Installed" }) : null, [t?.uuid, r]);
|
|
3725
3725
|
return /* @__PURE__ */ o(
|
|
3726
3726
|
Nr,
|
|
@@ -3735,7 +3735,7 @@ const lc = {
|
|
|
3735
3735
|
typeof e == "string" ? /* @__PURE__ */ o(fe, { src: e, alt: n, width: 32, height: 32, radius: "md" }) : e,
|
|
3736
3736
|
/* @__PURE__ */ o("span", { className: "text-sm font-medium text-foreground", children: n })
|
|
3737
3737
|
] }), Nr = (e) => /* @__PURE__ */ o(
|
|
3738
|
-
|
|
3738
|
+
L,
|
|
3739
3739
|
{
|
|
3740
3740
|
fullWidth: !0,
|
|
3741
3741
|
size: "2xl",
|
|
@@ -3747,7 +3747,7 @@ const lc = {
|
|
|
3747
3747
|
children: /* @__PURE__ */ o("span", {})
|
|
3748
3748
|
}
|
|
3749
3749
|
);
|
|
3750
|
-
function
|
|
3750
|
+
function uc({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
3751
3751
|
return n ? /* @__PURE__ */ o(
|
|
3752
3752
|
ue,
|
|
3753
3753
|
{
|
|
@@ -3758,29 +3758,29 @@ function fc({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
|
3758
3758
|
circle2: "border-b-primary"
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
|
-
) : e.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ o("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ o(
|
|
3761
|
+
) : e.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ o("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ o(fc, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
|
|
3762
3762
|
}
|
|
3763
|
-
const
|
|
3764
|
-
const e =
|
|
3763
|
+
const gc = () => {
|
|
3764
|
+
const e = M(X), { handleSelectWallet: n } = hr(), { data: t, isLoading: r } = Le("all", e?.config?.connectors), [s, i] = y(() => {
|
|
3765
3765
|
const l = t?.recommended || [], d = t?.all || [];
|
|
3766
|
-
return
|
|
3766
|
+
return Ls(l, d);
|
|
3767
3767
|
}, [t]), a = y(
|
|
3768
3768
|
() => s?.filter((l) => !l.isEmbeddedWallet) || [],
|
|
3769
3769
|
[s]
|
|
3770
3770
|
);
|
|
3771
3771
|
return /* @__PURE__ */ o(F, { title: "Connect your wallet", children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-4", children: [
|
|
3772
|
-
/* @__PURE__ */ o("div", { className: "space-y-2 h-[312px] max-h-[312px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: /* @__PURE__ */ o("div", { className: `flex flex-col gap-2 h-full ${r ? "justify-center" : ""}`, children: /* @__PURE__ */ o(
|
|
3772
|
+
/* @__PURE__ */ o("div", { className: "space-y-2 h-[312px] max-h-[312px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: /* @__PURE__ */ o("div", { className: `flex flex-col gap-2 h-full ${r ? "justify-center" : ""}`, children: /* @__PURE__ */ o(uc, { loading: r, wallets: a, onSelectWallet: n }) }) }),
|
|
3773
3773
|
r ? null : /* @__PURE__ */ o(
|
|
3774
3774
|
Nr,
|
|
3775
3775
|
{
|
|
3776
3776
|
onPress: () => e?.modal.setView(V.WalletSearch),
|
|
3777
|
-
startContent: /* @__PURE__ */ o(Xr, { icon: /* @__PURE__ */ o(
|
|
3777
|
+
startContent: /* @__PURE__ */ o(Xr, { icon: /* @__PURE__ */ o(Gr, {}), title: "Search more wallets" }),
|
|
3778
3778
|
endContent: /* @__PURE__ */ o("span", { className: "text-[#A9A29D] text-sm", children: i.length })
|
|
3779
3779
|
}
|
|
3780
3780
|
),
|
|
3781
3781
|
/* @__PURE__ */ o(Un, {})
|
|
3782
3782
|
] }) });
|
|
3783
|
-
},
|
|
3783
|
+
}, vc = () => {
|
|
3784
3784
|
const [e, n] = Y(0), [t, r] = Y(!1);
|
|
3785
3785
|
return J(() => {
|
|
3786
3786
|
if (typeof window < "u" && window.visualViewport) {
|
|
@@ -3802,13 +3802,13 @@ const uc = () => {
|
|
|
3802
3802
|
};
|
|
3803
3803
|
}
|
|
3804
3804
|
}, []), { keyboardHeight: e, isKeyboardVisible: t };
|
|
3805
|
-
},
|
|
3805
|
+
}, mc = (e) => {
|
|
3806
3806
|
const n = ce(null);
|
|
3807
3807
|
return J(() => {
|
|
3808
3808
|
n.current && (n.current.scrollTop = 0);
|
|
3809
3809
|
}, e), n;
|
|
3810
|
-
},
|
|
3811
|
-
const e =
|
|
3810
|
+
}, pc = Nt, Cc = () => {
|
|
3811
|
+
const e = M(X), { handleSelectWallet: n } = hr(), t = e?.modal.state, r = y(() => t?.chainType || "all", [t?.chainType]), { data: s, isLoading: i } = Le(r, e?.config?.connectors), a = y(() => s?.all || [], [s]), [c, l] = Y(""), { isKeyboardVisible: d, keyboardHeight: f } = vc(), A = y(() => a.filter((g) => g.info?.name?.toLowerCase().includes(c.toLowerCase())).filter((g) => !g.isEmbeddedWallet), [a, c]), u = mc([r]), v = y(() => d && f > 0 ? `${Math.max(180, 340 - f * 0.6)}px` : "340px", [d, f]), m = O(
|
|
3812
3812
|
(g) => {
|
|
3813
3813
|
e?.modal.setCurrentViewState({ chainType: g });
|
|
3814
3814
|
},
|
|
@@ -3816,19 +3816,19 @@ const uc = () => {
|
|
|
3816
3816
|
);
|
|
3817
3817
|
return /* @__PURE__ */ o(F, { title: "All wallets", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-4 min-h-0", children: [
|
|
3818
3818
|
/* @__PURE__ */ o(
|
|
3819
|
-
|
|
3819
|
+
Ac,
|
|
3820
3820
|
{
|
|
3821
3821
|
selectedKey: t?.chainType || "all",
|
|
3822
3822
|
onSelectionChange: (g) => m(g)
|
|
3823
3823
|
}
|
|
3824
3824
|
),
|
|
3825
3825
|
/* @__PURE__ */ o(
|
|
3826
|
-
|
|
3826
|
+
pc,
|
|
3827
3827
|
{
|
|
3828
3828
|
placeholder: "Search wallet",
|
|
3829
3829
|
value: c,
|
|
3830
3830
|
onChange: (g) => l(g.target.value),
|
|
3831
|
-
startContent: /* @__PURE__ */ o(
|
|
3831
|
+
startContent: /* @__PURE__ */ o(Rr, {}),
|
|
3832
3832
|
classNames: {
|
|
3833
3833
|
inputWrapper: "rounded-full h-11"
|
|
3834
3834
|
}
|
|
@@ -3844,7 +3844,7 @@ const uc = () => {
|
|
|
3844
3844
|
maxHeight: v
|
|
3845
3845
|
},
|
|
3846
3846
|
children: /* @__PURE__ */ o("div", { className: `flex flex-col gap-2 h-full ${i ? "justify-center" : ""}`, children: /* @__PURE__ */ o(
|
|
3847
|
-
|
|
3847
|
+
lc,
|
|
3848
3848
|
{
|
|
3849
3849
|
loading: i,
|
|
3850
3850
|
wallets: A,
|
|
@@ -3855,15 +3855,15 @@ const uc = () => {
|
|
|
3855
3855
|
),
|
|
3856
3856
|
/* @__PURE__ */ o(Un, {})
|
|
3857
3857
|
] }) });
|
|
3858
|
-
},
|
|
3858
|
+
}, xc = () => M(an) || {
|
|
3859
3859
|
wallet: null,
|
|
3860
3860
|
isAvailable: !1,
|
|
3861
3861
|
message: null,
|
|
3862
3862
|
connectedInfo: null,
|
|
3863
3863
|
isLoading: !0,
|
|
3864
3864
|
error: null
|
|
3865
|
-
},
|
|
3866
|
-
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = Y(!1), s =
|
|
3865
|
+
}, bc = (e = {}) => {
|
|
3866
|
+
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = Y(!1), s = M(X), i = xc(), { embeddedWalletConnector: a } = Le("all"), { connectWallet: c } = Oe(), l = y(
|
|
3867
3867
|
() => a ?? (i.wallet ? Vr(i.wallet) : null),
|
|
3868
3868
|
[a, i.wallet]
|
|
3869
3869
|
);
|
|
@@ -3895,7 +3895,7 @@ const uc = () => {
|
|
|
3895
3895
|
isLoading: t,
|
|
3896
3896
|
handleEmailLogin: async (g) => {
|
|
3897
3897
|
try {
|
|
3898
|
-
const p =
|
|
3898
|
+
const p = Es(g);
|
|
3899
3899
|
if (p && f(p), r(!0), !d || !i.wallet)
|
|
3900
3900
|
return f("Embedded wallet initialization failed");
|
|
3901
3901
|
const I = i.wallet;
|
|
@@ -3943,13 +3943,13 @@ const uc = () => {
|
|
|
3943
3943
|
}
|
|
3944
3944
|
}
|
|
3945
3945
|
};
|
|
3946
|
-
},
|
|
3947
|
-
const e =
|
|
3946
|
+
}, zc = () => {
|
|
3947
|
+
const e = M(X);
|
|
3948
3948
|
if (!e)
|
|
3949
3949
|
return { themeMode: "dark", themeType: "doge_dark" };
|
|
3950
3950
|
const { themeMode: n } = e.config || { themeMode: "dark" }, t = yr();
|
|
3951
3951
|
return { themeMode: n, themeType: t, isDark: n === "dark" };
|
|
3952
|
-
},
|
|
3952
|
+
}, Ic = ({
|
|
3953
3953
|
text: e = "or",
|
|
3954
3954
|
className: n = "",
|
|
3955
3955
|
lineClassName: t = "bg-content2",
|
|
@@ -3958,7 +3958,7 @@ const uc = () => {
|
|
|
3958
3958
|
/* @__PURE__ */ o("div", { className: `flex-1 h-px ${t}` }),
|
|
3959
3959
|
/* @__PURE__ */ o("span", { className: r, children: e }),
|
|
3960
3960
|
/* @__PURE__ */ o("div", { className: `flex-1 h-px ${t}` })
|
|
3961
|
-
] }),
|
|
3961
|
+
] }), wc = ({ isLoading: e = !1, text: n = "Loading..." }) => e ? /* @__PURE__ */ o("div", { className: "absolute inset-0 backdrop-blur-sm z-50 flex items-center justify-center", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-3", children: [
|
|
3962
3962
|
/* @__PURE__ */ o(
|
|
3963
3963
|
ue,
|
|
3964
3964
|
{
|
|
@@ -3970,7 +3970,7 @@ const uc = () => {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
),
|
|
3972
3972
|
/* @__PURE__ */ o("span", { className: "text-foreground text-sm font-medium", children: n })
|
|
3973
|
-
] }) }) : null,
|
|
3973
|
+
] }) }) : null, Pc = ({ className: e, width: n = 24, height: t = 24 }) => /* @__PURE__ */ C(
|
|
3974
3974
|
"svg",
|
|
3975
3975
|
{
|
|
3976
3976
|
width: n,
|
|
@@ -4010,7 +4010,7 @@ const uc = () => {
|
|
|
4010
4010
|
)
|
|
4011
4011
|
]
|
|
4012
4012
|
}
|
|
4013
|
-
),
|
|
4013
|
+
), yc = ({ className: e, width: n = 24, height: t = 24, fill: r = "white" }) => /* @__PURE__ */ o(
|
|
4014
4014
|
"svg",
|
|
4015
4015
|
{
|
|
4016
4016
|
width: n,
|
|
@@ -4021,15 +4021,15 @@ const uc = () => {
|
|
|
4021
4021
|
className: e,
|
|
4022
4022
|
children: /* @__PURE__ */ o("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" })
|
|
4023
4023
|
}
|
|
4024
|
-
),
|
|
4025
|
-
const e =
|
|
4024
|
+
), Bc = Nt, hc = () => {
|
|
4025
|
+
const e = M(X), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } = bc({
|
|
4026
4026
|
closeModalBeforeIframe: !0
|
|
4027
4027
|
});
|
|
4028
4028
|
if (!e)
|
|
4029
4029
|
throw new Error("WalletConnectContext not found");
|
|
4030
4030
|
const [i, a] = Y(e.modal.state?.email || "");
|
|
4031
4031
|
J(() => {
|
|
4032
|
-
e.modal.state?.error && (
|
|
4032
|
+
e.modal.state?.error && (_r({
|
|
4033
4033
|
title: e.modal.state.error,
|
|
4034
4034
|
color: "danger",
|
|
4035
4035
|
timeout: 3e3,
|
|
@@ -4040,7 +4040,7 @@ const uc = () => {
|
|
|
4040
4040
|
await t(i);
|
|
4041
4041
|
}, l = () => {
|
|
4042
4042
|
e.modal.setView(V.WalletSearch);
|
|
4043
|
-
}, { isDark: d } =
|
|
4043
|
+
}, { isDark: d } = zc();
|
|
4044
4044
|
return /* @__PURE__ */ C(
|
|
4045
4045
|
F,
|
|
4046
4046
|
{
|
|
@@ -4057,37 +4057,37 @@ const uc = () => {
|
|
|
4057
4057
|
}
|
|
4058
4058
|
),
|
|
4059
4059
|
children: [
|
|
4060
|
-
/* @__PURE__ */ o(
|
|
4060
|
+
/* @__PURE__ */ o(wc, { isLoading: n || e.modal.state?.isLoading }),
|
|
4061
4061
|
/* @__PURE__ */ C("div", { className: "flex flex-col justify-between min-h-0 flex-1 pt-8", children: [
|
|
4062
4062
|
/* @__PURE__ */ C("div", { className: "flex flex-col gap-6", children: [
|
|
4063
4063
|
/* @__PURE__ */ C("div", { className: "flex gap-3 pb-6", children: [
|
|
4064
4064
|
/* @__PURE__ */ o(
|
|
4065
|
-
|
|
4065
|
+
L,
|
|
4066
4066
|
{
|
|
4067
4067
|
fullWidth: !0,
|
|
4068
4068
|
size: "lg",
|
|
4069
4069
|
variant: "bordered",
|
|
4070
4070
|
className: "h-12 rounded-2xl border-primary bg-primary/10",
|
|
4071
4071
|
onPress: s,
|
|
4072
|
-
startContent: /* @__PURE__ */ o(
|
|
4072
|
+
startContent: /* @__PURE__ */ o(yc, { width: 20, height: 20, fill: d ? "white" : "black" }),
|
|
4073
4073
|
children: /* @__PURE__ */ o("span", { className: "text-base font-medium", children: "Twitter" })
|
|
4074
4074
|
}
|
|
4075
4075
|
),
|
|
4076
4076
|
/* @__PURE__ */ o(
|
|
4077
|
-
|
|
4077
|
+
L,
|
|
4078
4078
|
{
|
|
4079
4079
|
fullWidth: !0,
|
|
4080
4080
|
size: "lg",
|
|
4081
4081
|
variant: "solid",
|
|
4082
4082
|
className: "h-12 rounded-2xl bg-background",
|
|
4083
4083
|
onPress: r,
|
|
4084
|
-
startContent: /* @__PURE__ */ o(
|
|
4084
|
+
startContent: /* @__PURE__ */ o(Pc, { width: 20, height: 20 }),
|
|
4085
4085
|
children: /* @__PURE__ */ o("span", { className: "text-base font-medium", children: "Google" })
|
|
4086
4086
|
}
|
|
4087
4087
|
)
|
|
4088
4088
|
] }),
|
|
4089
4089
|
/* @__PURE__ */ o(
|
|
4090
|
-
|
|
4090
|
+
Ic,
|
|
4091
4091
|
{
|
|
4092
4092
|
lineClassName: "h-[0.5px] bg-[#ebebf4]",
|
|
4093
4093
|
textClassName: "text-[#8989ab] text-xs",
|
|
@@ -4096,7 +4096,7 @@ const uc = () => {
|
|
|
4096
4096
|
),
|
|
4097
4097
|
/* @__PURE__ */ C("div", { className: "flex flex-col gap-5 items-center pb-8", children: [
|
|
4098
4098
|
/* @__PURE__ */ o(
|
|
4099
|
-
|
|
4099
|
+
Bc,
|
|
4100
4100
|
{
|
|
4101
4101
|
type: "email",
|
|
4102
4102
|
placeholder: "Enter your email",
|
|
@@ -4117,7 +4117,7 @@ const uc = () => {
|
|
|
4117
4117
|
}
|
|
4118
4118
|
),
|
|
4119
4119
|
/* @__PURE__ */ o(
|
|
4120
|
-
|
|
4120
|
+
L,
|
|
4121
4121
|
{
|
|
4122
4122
|
fullWidth: !0,
|
|
4123
4123
|
size: "lg",
|
|
@@ -4135,8 +4135,8 @@ const uc = () => {
|
|
|
4135
4135
|
]
|
|
4136
4136
|
}
|
|
4137
4137
|
);
|
|
4138
|
-
},
|
|
4139
|
-
const e =
|
|
4138
|
+
}, Wc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAgCAYAAADtwH1UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4eSURBVHgBvVoJcBRVGv5eT8+Vc0KQSwKDIJccEWFFFIMu4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odbcFKEaySNZt7ny8f94vkOsO4qyD6YenbAkO2nCJkH52njdJMjL2LGjS+dP7rPUEOXxWlIObJcT84wnHSvYx48REpIJevQmpk1/o+iYbhbdriy9gDSUHr6fen09LR8Qm2v6tcs35EHc/21bxSUvhTVorZUGD3dqvCCMfpFgpC1Ind7aO7ALhP8d1ZFP5wsIq83BuBXnqtOZPc9hE6lllHs6toHKTdTCX0xZcYg/ncnhpHcylKIf3ezfRo6qMD+fGEx/WbXO28f7xHOrG+Vcv4o5n8/F0gq7avK7ex9ObXi322LJRSoyYQ+9Npc1fb8/j6cJnHE9HbaQNWwuu7X08fVedr/SdvR1zPv3ujKltoWxve9jtYUjKc7T7C5xtvglDA3U/n2yvnTbZm/h4eps8Xj6Hxk04f3k8XUMtcvs8nj6HSuL+GRxP/z/hFFWXpmDkiwAAAABJRU5ErkJggg==", Gn = () => {
|
|
4139
|
+
const e = M(X);
|
|
4140
4140
|
if (!e)
|
|
4141
4141
|
throw new Error("useAccount must be used within WalletConnectProvider");
|
|
4142
4142
|
return {
|
|
@@ -4156,8 +4156,8 @@ const uc = () => {
|
|
|
4156
4156
|
// signAndSendTransaction: context.signAndSendTransaction,
|
|
4157
4157
|
// sendTransaction: context.sendTransaction,
|
|
4158
4158
|
};
|
|
4159
|
-
},
|
|
4160
|
-
const e =
|
|
4159
|
+
}, Va = () => {
|
|
4160
|
+
const e = M(X);
|
|
4161
4161
|
if (!e)
|
|
4162
4162
|
throw new Error("useConnectors must be used within WalletConnectProvider");
|
|
4163
4163
|
const n = y(() => e.account?.currentWallet?.connectors || null, [e.account?.currentWallet]), t = y(() => e.account?.currentProvider || null, [e.account?.currentProvider]);
|
|
@@ -4173,14 +4173,14 @@ function Mc(e = !1) {
|
|
|
4173
4173
|
onOpenChange: a
|
|
4174
4174
|
};
|
|
4175
4175
|
}
|
|
4176
|
-
const
|
|
4176
|
+
const Vc = (e) => {
|
|
4177
4177
|
const { isOpen: n, onOpen: t, onClose: r } = Mc(), [s, i] = Y(e), [a, c] = Y(null), [l, d] = Y([]);
|
|
4178
4178
|
J(() => {
|
|
4179
4179
|
s !== e && i(e);
|
|
4180
4180
|
}, [e]);
|
|
4181
4181
|
const f = O(
|
|
4182
4182
|
(I, x, w) => {
|
|
4183
|
-
s === I && !w || (w || d((
|
|
4183
|
+
s === I && !w || (w || d((k) => [...k, { view: s, state: a }]), i(I), c(x || null));
|
|
4184
4184
|
},
|
|
4185
4185
|
[s, a]
|
|
4186
4186
|
), A = O(() => {
|
|
@@ -4221,7 +4221,7 @@ let xe = null, jr = null;
|
|
|
4221
4221
|
function wt(e) {
|
|
4222
4222
|
xe = e;
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4224
|
+
function Xc() {
|
|
4225
4225
|
return xe;
|
|
4226
4226
|
}
|
|
4227
4227
|
function pn(e) {
|
|
@@ -4255,23 +4255,23 @@ function Rn() {
|
|
|
4255
4255
|
function Sr() {
|
|
4256
4256
|
if (!ln())
|
|
4257
4257
|
return null;
|
|
4258
|
-
const e = Rn(), n =
|
|
4258
|
+
const e = Rn(), n = us();
|
|
4259
4259
|
return e ? n : null;
|
|
4260
4260
|
}
|
|
4261
|
-
function
|
|
4261
|
+
function Nc() {
|
|
4262
4262
|
if (!ln())
|
|
4263
4263
|
return null;
|
|
4264
|
-
const e = Rn(), n =
|
|
4264
|
+
const e = Rn(), n = vs();
|
|
4265
4265
|
return e ? n : null;
|
|
4266
4266
|
}
|
|
4267
|
-
function
|
|
4267
|
+
function jc() {
|
|
4268
4268
|
if (!ln())
|
|
4269
4269
|
return null;
|
|
4270
|
-
const e = Rn(), n =
|
|
4270
|
+
const e = Rn(), n = gs();
|
|
4271
4271
|
return e ? n : null;
|
|
4272
4272
|
}
|
|
4273
4273
|
function Xn(e, n, t) {
|
|
4274
|
-
const r =
|
|
4274
|
+
const r = Xc();
|
|
4275
4275
|
if (!r)
|
|
4276
4276
|
return null;
|
|
4277
4277
|
const s = Tr(), i = t || s || r.connectors;
|
|
@@ -4283,7 +4283,7 @@ function Xn(e, n, t) {
|
|
|
4283
4283
|
const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
4284
4284
|
if (e)
|
|
4285
4285
|
throw n(t), new Error(t);
|
|
4286
|
-
},
|
|
4286
|
+
}, Tc = ({
|
|
4287
4287
|
walletState: e,
|
|
4288
4288
|
modalState: n,
|
|
4289
4289
|
setWalletState: t,
|
|
@@ -4291,10 +4291,10 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4291
4291
|
resetWalletState: s,
|
|
4292
4292
|
setMainView: i
|
|
4293
4293
|
}) => {
|
|
4294
|
-
const { currentProvider: a, currentWallet: c, isConnected: l, actionsLoading: d } = e, A =
|
|
4294
|
+
const { currentProvider: a, currentWallet: c, isConnected: l, actionsLoading: d } = e, A = M(an)?.connectedInfo ?? null, u = Sr(), v = Nc(), m = Tr(), g = O(
|
|
4295
4295
|
async (b) => {
|
|
4296
|
-
const { wallet: z, chainType:
|
|
4297
|
-
if (l && c?.info?.uuid === z.info.uuid &&
|
|
4296
|
+
const { wallet: z, chainType: W } = b, S = (z.connectors[W] || null)?.provider || null;
|
|
4297
|
+
if (l && c?.info?.uuid === z.info.uuid && W === e.chainType)
|
|
4298
4298
|
throw r("Wallet is already connected"), new Error("Wallet is already connected");
|
|
4299
4299
|
if (!S && !jt())
|
|
4300
4300
|
throw r("Provider not available for this chain type"), new Error("Provider not available for this chain type");
|
|
@@ -4312,15 +4312,15 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4312
4312
|
},
|
|
4313
4313
|
{
|
|
4314
4314
|
provider: S,
|
|
4315
|
-
chainType:
|
|
4315
|
+
chainType: W,
|
|
4316
4316
|
walletInfo: z.info
|
|
4317
4317
|
}
|
|
4318
4318
|
), D = {
|
|
4319
4319
|
address: B.address,
|
|
4320
4320
|
chainId: B.chainId || "",
|
|
4321
|
-
chainType:
|
|
4321
|
+
chainType: W
|
|
4322
4322
|
};
|
|
4323
|
-
if (await bn(800), u &&
|
|
4323
|
+
if (await bn(800), u && W === T.EVM && m)
|
|
4324
4324
|
try {
|
|
4325
4325
|
const N = Xn(z.info.uuid, z.info.rdns, m);
|
|
4326
4326
|
if (N) {
|
|
@@ -4334,7 +4334,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4334
4334
|
console.warn("Failed to connect wagmi connector:", N);
|
|
4335
4335
|
}
|
|
4336
4336
|
const j = { ...e.providers };
|
|
4337
|
-
if (j[
|
|
4337
|
+
if (j[W] = {
|
|
4338
4338
|
provider: S,
|
|
4339
4339
|
address: B.address,
|
|
4340
4340
|
connectedAt: Date.now(),
|
|
@@ -4342,7 +4342,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4342
4342
|
}, z.isEmbeddedWallet && A) {
|
|
4343
4343
|
if (A.evmProvider?.connected && A.evmProvider.address?.[0]) {
|
|
4344
4344
|
const N = A.evmProvider.address[0];
|
|
4345
|
-
if (
|
|
4345
|
+
if (W !== T.EVM || !j[T.EVM]) {
|
|
4346
4346
|
const Q = (z.connectors[T.EVM] || null)?.provider || null;
|
|
4347
4347
|
Q && (j[T.EVM] = {
|
|
4348
4348
|
provider: Q,
|
|
@@ -4354,7 +4354,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4354
4354
|
}
|
|
4355
4355
|
if (A.solanaProvider?.connected && A.solanaProvider.address?.[0]) {
|
|
4356
4356
|
const N = A.solanaProvider.address[0];
|
|
4357
|
-
if (
|
|
4357
|
+
if (W !== T.SOLANA || !j[T.SOLANA]) {
|
|
4358
4358
|
const Q = (z.connectors[T.SOLANA] || null)?.provider || null;
|
|
4359
4359
|
Q && (j[T.SOLANA] = {
|
|
4360
4360
|
provider: Q,
|
|
@@ -4366,7 +4366,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4366
4366
|
}
|
|
4367
4367
|
if (A.dogeProvider?.connected && A.dogeProvider.address?.[0]) {
|
|
4368
4368
|
const N = A.dogeProvider.address[0];
|
|
4369
|
-
if (
|
|
4369
|
+
if (W !== T.DOGECOIN || !j[T.DOGECOIN]) {
|
|
4370
4370
|
const Q = (z.connectors[T.DOGECOIN] || null)?.provider || null;
|
|
4371
4371
|
Q && (j[T.DOGECOIN] = {
|
|
4372
4372
|
provider: Q,
|
|
@@ -4383,7 +4383,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4383
4383
|
isConnected: !0,
|
|
4384
4384
|
address: B.address,
|
|
4385
4385
|
chainId: B.chainId,
|
|
4386
|
-
chainType:
|
|
4386
|
+
chainType: W,
|
|
4387
4387
|
balance: "0.0",
|
|
4388
4388
|
actionsLoading: !1,
|
|
4389
4389
|
currentProvider: S,
|
|
@@ -4395,10 +4395,10 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4395
4395
|
connectedAt: Z.connectedAt,
|
|
4396
4396
|
walletId: Z.walletId
|
|
4397
4397
|
}));
|
|
4398
|
-
return
|
|
4398
|
+
return Ss({
|
|
4399
4399
|
address: B.address,
|
|
4400
4400
|
chainId: B.chainId,
|
|
4401
|
-
chainType:
|
|
4401
|
+
chainType: W,
|
|
4402
4402
|
// TODO: add balance
|
|
4403
4403
|
balance: "0.0",
|
|
4404
4404
|
walletInfo: {
|
|
@@ -4418,7 +4418,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4418
4418
|
chainType: T.EVM,
|
|
4419
4419
|
account: { address: D.address, chainId: D.chainId },
|
|
4420
4420
|
provider: S
|
|
4421
|
-
}), t((N) => ({ ...N, chainId: fn.evm_1.chainId, chainType:
|
|
4421
|
+
}), t((N) => ({ ...N, chainId: fn.evm_1.chainId, chainType: W }))), D;
|
|
4422
4422
|
} catch (B) {
|
|
4423
4423
|
console.error("Connection failed:", B);
|
|
4424
4424
|
const D = B instanceof Error ? B.message : "Connection failed";
|
|
@@ -4468,25 +4468,25 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4468
4468
|
]), I = O(
|
|
4469
4469
|
async ({ chainInfo: b, chainType: z }) => {
|
|
4470
4470
|
Cn(d, r);
|
|
4471
|
-
const
|
|
4471
|
+
const W = b.id.toString(), E = {
|
|
4472
4472
|
chainType: z,
|
|
4473
4473
|
account: e,
|
|
4474
4474
|
provider: e.currentProvider
|
|
4475
4475
|
// Extract actual provider from ConnectorProvider
|
|
4476
4476
|
}, S = {
|
|
4477
|
-
chainId:
|
|
4477
|
+
chainId: W,
|
|
4478
4478
|
chainName: b.name,
|
|
4479
|
-
rpcUrls: b.rpcUrls.default.http,
|
|
4479
|
+
rpcUrls: [...b.rpcUrls.default.http],
|
|
4480
4480
|
iconUrls: [],
|
|
4481
4481
|
nativeCurrency: b.nativeCurrency,
|
|
4482
4482
|
blockExplorerUrls: [b.blockExplorers?.default.url || ""]
|
|
4483
4483
|
};
|
|
4484
4484
|
try {
|
|
4485
|
-
return t((B) => ({ ...B, actionsLoading: !0 })), await et(
|
|
4485
|
+
return t((B) => ({ ...B, actionsLoading: !0 })), await et(W, E), t((B) => ({ ...B, chainId: W, chainType: z })), !0;
|
|
4486
4486
|
} catch (B) {
|
|
4487
4487
|
if ((B && typeof B == "object" && "code" in B ? B.code : void 0) === 4902)
|
|
4488
4488
|
try {
|
|
4489
|
-
return await
|
|
4489
|
+
return await is(S, E), !0;
|
|
4490
4490
|
} catch (j) {
|
|
4491
4491
|
throw r(j instanceof Error ? j.message : "Add chain failed"), console.error("Add chain failed:", j), j;
|
|
4492
4492
|
}
|
|
@@ -4501,7 +4501,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4501
4501
|
if (Cn(d, r), !e.isConnected || !e.currentProvider || !e.chainType)
|
|
4502
4502
|
throw new Error("Wallet not connected");
|
|
4503
4503
|
t((E) => ({ ...E, actionsLoading: !0 }));
|
|
4504
|
-
const
|
|
4504
|
+
const W = { ...{
|
|
4505
4505
|
scheme: "https",
|
|
4506
4506
|
domain: typeof window < "u" ? window.location.host : "",
|
|
4507
4507
|
statement: "Clicking Sign or Approve only means you have proved this wallet is owned by you. This request will not trigger any blockchain transaction or cost any gas fee.",
|
|
@@ -4510,7 +4510,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4510
4510
|
issuedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
4511
4511
|
}, ...b || {} };
|
|
4512
4512
|
try {
|
|
4513
|
-
const E = await
|
|
4513
|
+
const E = await os(W, {
|
|
4514
4514
|
chainType: e.chainType,
|
|
4515
4515
|
account: {
|
|
4516
4516
|
address: e.address,
|
|
@@ -4545,11 +4545,11 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4545
4545
|
async (b) => {
|
|
4546
4546
|
if (Cn(d, r), !e.isConnected || !e.currentProvider || !e.chainType)
|
|
4547
4547
|
throw new Error("Wallet not connected");
|
|
4548
|
-
const { message: z, nonce:
|
|
4548
|
+
const { message: z, nonce: W } = b;
|
|
4549
4549
|
if (!z || z.length === 0)
|
|
4550
4550
|
throw new Error("Message is required");
|
|
4551
|
-
return t((S) => ({ ...S, actionsLoading: !0 })), await
|
|
4552
|
-
{ message: z, nonce:
|
|
4551
|
+
return t((S) => ({ ...S, actionsLoading: !0 })), await cs(
|
|
4552
|
+
{ message: z, nonce: W || Math.random().toString(36).substring(7) },
|
|
4553
4553
|
{
|
|
4554
4554
|
chainType: e.chainType,
|
|
4555
4555
|
account: {
|
|
@@ -4578,7 +4578,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4578
4578
|
t,
|
|
4579
4579
|
r
|
|
4580
4580
|
]
|
|
4581
|
-
),
|
|
4581
|
+
), k = O(
|
|
4582
4582
|
(b) => t((z) => ({ ...z, currentWallet: b })),
|
|
4583
4583
|
[t]
|
|
4584
4584
|
);
|
|
@@ -4591,10 +4591,10 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4591
4591
|
// signTransaction,
|
|
4592
4592
|
// signAndSendTransaction,
|
|
4593
4593
|
// sendTransaction,
|
|
4594
|
-
_setCurrentWallet:
|
|
4594
|
+
_setCurrentWallet: k
|
|
4595
4595
|
};
|
|
4596
|
-
},
|
|
4597
|
-
const e =
|
|
4596
|
+
}, Xa = () => {
|
|
4597
|
+
const e = M(X);
|
|
4598
4598
|
if (!e)
|
|
4599
4599
|
throw new Error("useWalletConnect must be used within WalletConnectProvider");
|
|
4600
4600
|
return {
|
|
@@ -4612,14 +4612,14 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4612
4612
|
connect: (n) => e.connect(n),
|
|
4613
4613
|
disconnect: e.disconnect
|
|
4614
4614
|
};
|
|
4615
|
-
},
|
|
4615
|
+
}, Ec = () => {
|
|
4616
4616
|
const { switchChain: e } = Gn();
|
|
4617
4617
|
return En({
|
|
4618
4618
|
mutationKey: ["switch-chain"],
|
|
4619
4619
|
mutationFn: async (n) => e(n)
|
|
4620
4620
|
});
|
|
4621
4621
|
}, Pt = ({ chainType: e, chain: n }) => {
|
|
4622
|
-
const { mutateAsync: t, isPending: r } =
|
|
4622
|
+
const { mutateAsync: t, isPending: r } = Ec(), s = M(X), { connectWallet: i } = Oe();
|
|
4623
4623
|
if (!n || !s)
|
|
4624
4624
|
throw new Error(`Chain ${e} not found`);
|
|
4625
4625
|
const { currentWallet: a } = s.account;
|
|
@@ -4661,7 +4661,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
};
|
|
4663
4663
|
return /* @__PURE__ */ o(
|
|
4664
|
-
|
|
4664
|
+
L,
|
|
4665
4665
|
{
|
|
4666
4666
|
fullWidth: !0,
|
|
4667
4667
|
size: "lg",
|
|
@@ -4683,7 +4683,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4683
4683
|
children: /* @__PURE__ */ o("span", { className: "flex-1 text-left text-sm font-medium", children: n?.chainInfo?.name })
|
|
4684
4684
|
}
|
|
4685
4685
|
);
|
|
4686
|
-
},
|
|
4686
|
+
}, Sc = ({ chains: e }) => {
|
|
4687
4687
|
const { chainType: n } = Gn(), { currentChains: t, otherChains: r } = y(() => {
|
|
4688
4688
|
const s = [], i = [];
|
|
4689
4689
|
return e.map((a) => {
|
|
@@ -4700,14 +4700,14 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4700
4700
|
}), /* @__PURE__ */ C("div", { className: "flex flex-col w-full text-foreground", children: [
|
|
4701
4701
|
t[0]?.chainType === "evm" && /* @__PURE__ */ C("div", { className: "text-sm flex gap-2 mt-2 mb-4 items-center", children: [
|
|
4702
4702
|
/* @__PURE__ */ o("span", { children: "EVM network" }),
|
|
4703
|
-
/* @__PURE__ */ o("img", { src:
|
|
4703
|
+
/* @__PURE__ */ o("img", { src: Wc, alt: "Evm chains", className: "h-4 w-auto" })
|
|
4704
4704
|
] }),
|
|
4705
4705
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1 w-full mb-4", children: t?.map((s, i) => /* @__PURE__ */ o(Pt, { chainType: s.chainType, chain: s }, `${s.name}-${i}`)) }),
|
|
4706
4706
|
/* @__PURE__ */ o("div", { className: "text-sm flex gap-2 mt-2 mb-4", children: /* @__PURE__ */ o("span", { children: "Other network" }) }),
|
|
4707
4707
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1 w-full mb-4", children: r?.map((s, i) => /* @__PURE__ */ o(Pt, { chainType: s.chainType, chain: s }, `${s.name}-${i}`)) })
|
|
4708
4708
|
] });
|
|
4709
|
-
},
|
|
4710
|
-
const e =
|
|
4709
|
+
}, Oc = () => {
|
|
4710
|
+
const e = M(X);
|
|
4711
4711
|
if (!e)
|
|
4712
4712
|
throw new Error("WalletConnectContext not found");
|
|
4713
4713
|
const { currentWallet: n } = e.account;
|
|
@@ -4716,13 +4716,13 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4716
4716
|
const { chains: t, isLoading: r } = Yt(), s = wr(e.config?.chains, n?.connectors, {
|
|
4717
4717
|
apiChains: r ? void 0 : t
|
|
4718
4718
|
});
|
|
4719
|
-
return /* @__PURE__ */ o(F, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center min-h-0 h-full", children: r ? /* @__PURE__ */ o("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ o("span", { className: "text-foreground-500", children: "Loading chains..." }) }) : /* @__PURE__ */ o("div", { className: "w-full overflow-y-auto max-h-[60vh] pr-2", children: /* @__PURE__ */ o(
|
|
4720
|
-
},
|
|
4719
|
+
return /* @__PURE__ */ o(F, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center min-h-0 h-full", children: r ? /* @__PURE__ */ o("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ o("span", { className: "text-foreground-500", children: "Loading chains..." }) }) : /* @__PURE__ */ o("div", { className: "w-full overflow-y-auto max-h-[60vh] pr-2", children: /* @__PURE__ */ o(Sc, { chains: s }) }) }) });
|
|
4720
|
+
}, Lc = ({ chainType: e, onSelect: n }) => {
|
|
4721
4721
|
const t = q[e];
|
|
4722
4722
|
if (!t)
|
|
4723
4723
|
throw new Error(`Chain ${e} not found`);
|
|
4724
4724
|
return /* @__PURE__ */ o(
|
|
4725
|
-
|
|
4725
|
+
L,
|
|
4726
4726
|
{
|
|
4727
4727
|
fullWidth: !0,
|
|
4728
4728
|
color: "default",
|
|
@@ -4736,15 +4736,15 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
);
|
|
4738
4738
|
}, kc = ({ providers: e, onSelect: n }) => /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 w-full pb-6", children: e.map((t, r) => /* @__PURE__ */ o(
|
|
4739
|
-
|
|
4739
|
+
Lc,
|
|
4740
4740
|
{
|
|
4741
4741
|
chainType: t.chainType,
|
|
4742
4742
|
provider: t.provider,
|
|
4743
4743
|
onSelect: () => n(t.chainType)
|
|
4744
4744
|
},
|
|
4745
4745
|
`${t.chainType}-${t.protocol}-${r}`
|
|
4746
|
-
)) }),
|
|
4747
|
-
const e =
|
|
4746
|
+
)) }), Yc = () => {
|
|
4747
|
+
const e = M(X);
|
|
4748
4748
|
if (!e)
|
|
4749
4749
|
throw new Error("WalletConnectContext not found");
|
|
4750
4750
|
const { connectWallet: n } = Oe(), { currentWallet: t } = e.account;
|
|
@@ -4776,8 +4776,8 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4776
4776
|
] }),
|
|
4777
4777
|
/* @__PURE__ */ o(kc, { providers: s, onSelect: i })
|
|
4778
4778
|
] }) });
|
|
4779
|
-
}, Yc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDE1MCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGZvcmVpZ25PYmplY3QgeD0iMjEuMDg4MiIgeT0iMjEuNTg0MyIgd2lkdGg9IjEwNi45MjgiIGhlaWdodD0iMTA2LjkzNSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tkcm9wLWZpbHRlcjpibHVyKDAuNjlweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyXzBfMTQxXzExMDJfY2xpcF9wYXRoKTtoZWlnaHQ6MTAwJTt3aWR0aDoxMDAlIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGcgZGF0YS1maWdtYS1iZy1ibHVyLXJhZGl1cz0iMS4zNzQ2NSI+CiAgPHBhdGggZD0iTTg0LjYyNCA3NC42ODI2SDEyNi40MzVDMTI2LjQzNyA3NC44MDYzIDEyNi40Mzk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3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQUNGRThCIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==", Dc = () => {
|
|
4780
|
+
const [e, n] = Y(!1), [t, r] = Y(null), s = M(X);
|
|
4781
4781
|
if (!s)
|
|
4782
4782
|
throw new Error("WalletConnectContext not found");
|
|
4783
4783
|
const { onCancel: i, onConfirm: a } = s.modal.state, c = () => {
|
|
@@ -4797,13 +4797,13 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4797
4797
|
}, 1e3)), () => {
|
|
4798
4798
|
l.current && (clearTimeout(l.current), l.current = null);
|
|
4799
4799
|
}), [e, s.modal]), /* @__PURE__ */ o(F, { onClose: c, title: "Verify wallet ownership", onBack: c, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-6 gap-6 flex-1", children: [
|
|
4800
|
-
/* @__PURE__ */ o(fe, { src: e ?
|
|
4800
|
+
/* @__PURE__ */ o(fe, { src: e ? Jc : Zc, alt: "Sign In Icon", className: "rounded-full" }),
|
|
4801
4801
|
/* @__PURE__ */ C("div", { className: "text-sm text-center", children: [
|
|
4802
4802
|
/* @__PURE__ */ o("p", { className: "text-foreground", children: e ? "Ownership verified" : "Verify yourself as the owner of this wallet" }),
|
|
4803
4803
|
t ? /* @__PURE__ */ o("p", { className: "text-foreground/60", children: t }) : e ? null : /* @__PURE__ */ o("p", { className: "text-foreground/60", children: "Please sign the message request in your wallet to continue." })
|
|
4804
4804
|
] }),
|
|
4805
4805
|
/* @__PURE__ */ o("div", { className: "w-full px-4", children: /* @__PURE__ */ o(
|
|
4806
|
-
|
|
4806
|
+
L,
|
|
4807
4807
|
{
|
|
4808
4808
|
fullWidth: !0,
|
|
4809
4809
|
size: "lg",
|
|
@@ -4825,15 +4825,15 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4825
4825
|
}
|
|
4826
4826
|
) })
|
|
4827
4827
|
] }) });
|
|
4828
|
-
},
|
|
4829
|
-
const e =
|
|
4828
|
+
}, Fc = "Please reselect the network you want to switch to", Hc = ae.unsupported, Qc = () => {
|
|
4829
|
+
const e = M(X);
|
|
4830
4830
|
if (!e)
|
|
4831
4831
|
throw new Error("WalletConnectContext not found");
|
|
4832
4832
|
const n = e.modal.state?.name || "-", t = () => {
|
|
4833
4833
|
e?.modal.backView();
|
|
4834
4834
|
};
|
|
4835
4835
|
return /* @__PURE__ */ o(F, { title: "Select network", onBack: t, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center", children: [
|
|
4836
|
-
/* @__PURE__ */ o("div", { className: "flex justify-center", children: /* @__PURE__ */ o(ze, { icon:
|
|
4836
|
+
/* @__PURE__ */ o("div", { className: "flex justify-center", children: /* @__PURE__ */ o(ze, { icon: Hc, className: "size-14 overflow-hidden rounded-full" }) }),
|
|
4837
4837
|
/* @__PURE__ */ C("div", { className: "mt-6 flex flex-col justify-center items-center", children: [
|
|
4838
4838
|
/* @__PURE__ */ C("div", { className: "text-t1 text-sm text-center", children: [
|
|
4839
4839
|
"Current Wallet Does Not Support ",
|
|
@@ -4842,18 +4842,18 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4842
4842
|
n,
|
|
4843
4843
|
" Chain"
|
|
4844
4844
|
] }),
|
|
4845
|
-
/* @__PURE__ */ o("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children:
|
|
4845
|
+
/* @__PURE__ */ o("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children: Fc })
|
|
4846
4846
|
] }),
|
|
4847
|
-
/* @__PURE__ */ o(
|
|
4847
|
+
/* @__PURE__ */ o(L, { className: "w-full my-4", onPress: t, children: "Got it" })
|
|
4848
4848
|
] }) });
|
|
4849
|
-
},
|
|
4850
|
-
const e =
|
|
4849
|
+
}, Kc = () => {
|
|
4850
|
+
const e = M(X);
|
|
4851
4851
|
if (!e)
|
|
4852
4852
|
throw new Error("WalletConnectContext not found");
|
|
4853
4853
|
const { currentWallet: n } = e.account;
|
|
4854
4854
|
if (!n)
|
|
4855
4855
|
throw new Error("Current wallet not found");
|
|
4856
|
-
const [t, r] = Y(""), { copy: s, copied: i } =
|
|
4856
|
+
const [t, r] = Y(""), { copy: s, copied: i } = kn(), a = () => {
|
|
4857
4857
|
s(t);
|
|
4858
4858
|
}, c = e.modal.state?.chainType || "evm", l = y(() => n.providers?.[c]?.provider, [n, c]);
|
|
4859
4859
|
return J(() => {
|
|
@@ -4886,43 +4886,43 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4886
4886
|
logoBackground: n.info.iconBackground
|
|
4887
4887
|
}
|
|
4888
4888
|
),
|
|
4889
|
-
/* @__PURE__ */ o(
|
|
4889
|
+
/* @__PURE__ */ o(L, { variant: "light", size: "lg", fullWidth: !0, onPress: a, children: i ? "Copied!" : "Copy Link" })
|
|
4890
4890
|
] }) });
|
|
4891
4891
|
}, Or = {
|
|
4892
|
-
[V.Loading]: () => /* @__PURE__ */ o(
|
|
4893
|
-
[V.Error]: () => /* @__PURE__ */ o(
|
|
4894
|
-
[V.Connecting]: () => /* @__PURE__ */ o(
|
|
4895
|
-
[V.WalletList]: () => /* @__PURE__ */ o(
|
|
4896
|
-
[V.WalletSearch]: () => /* @__PURE__ */ o(
|
|
4897
|
-
[V.WalletSelectProviders]: () => /* @__PURE__ */ o(
|
|
4898
|
-
[V.WalletInstallGuide]: () => /* @__PURE__ */ o(
|
|
4899
|
-
[V.Account]: () => /* @__PURE__ */ o(
|
|
4900
|
-
[V.SelectChains]: () => /* @__PURE__ */ o(
|
|
4901
|
-
[V.ChangeNetwork]: () => /* @__PURE__ */ o(
|
|
4902
|
-
[V.SignInWallet]: () => /* @__PURE__ */ o(
|
|
4903
|
-
[V.WalletConnect]: () => /* @__PURE__ */ o(
|
|
4904
|
-
[V.UnsupportChain]: () => /* @__PURE__ */ o(
|
|
4905
|
-
[V.WalletHome]: () => /* @__PURE__ */ o(
|
|
4906
|
-
},
|
|
4907
|
-
const { hideHeader: n, hideBody: t, onBack: r, ...s } = e, i = y(() => r ? /* @__PURE__ */ o(
|
|
4892
|
+
[V.Loading]: () => /* @__PURE__ */ o(sc, {}),
|
|
4893
|
+
[V.Error]: () => /* @__PURE__ */ o(Uo, {}),
|
|
4894
|
+
[V.Connecting]: () => /* @__PURE__ */ o(qo, {}),
|
|
4895
|
+
[V.WalletList]: () => /* @__PURE__ */ o(gc, {}),
|
|
4896
|
+
[V.WalletSearch]: () => /* @__PURE__ */ o(Cc, {}),
|
|
4897
|
+
[V.WalletSelectProviders]: () => /* @__PURE__ */ o(Yc, {}),
|
|
4898
|
+
[V.WalletInstallGuide]: () => /* @__PURE__ */ o(rc, {}),
|
|
4899
|
+
[V.Account]: () => /* @__PURE__ */ o(Ho, {}),
|
|
4900
|
+
[V.SelectChains]: () => /* @__PURE__ */ o(Oc, {}),
|
|
4901
|
+
[V.ChangeNetwork]: () => /* @__PURE__ */ o(Qo, {}),
|
|
4902
|
+
[V.SignInWallet]: () => /* @__PURE__ */ o(Dc, {}),
|
|
4903
|
+
[V.WalletConnect]: () => /* @__PURE__ */ o(Kc, {}),
|
|
4904
|
+
[V.UnsupportChain]: () => /* @__PURE__ */ o(Qc, {}),
|
|
4905
|
+
[V.WalletHome]: () => /* @__PURE__ */ o(hc, {})
|
|
4906
|
+
}, qc = (e) => {
|
|
4907
|
+
const { hideHeader: n, hideBody: t, onBack: r, ...s } = e, i = y(() => r ? /* @__PURE__ */ o(L, { isIconOnly: !0, size: "sm", variant: "light", onPress: r, radius: "full", children: /* @__PURE__ */ o(Wt, {}) }) : null, [r]), a = y(() => n ? null : /* @__PURE__ */ C($r, { className: "flex items-center justify-between", children: [
|
|
4908
4908
|
i,
|
|
4909
4909
|
/* @__PURE__ */ o("span", { children: e.title }),
|
|
4910
|
-
/* @__PURE__ */ o(
|
|
4911
|
-
] }), [n, e.title, e.onClose, i]), c = y(() => t ? null : /* @__PURE__ */ o(
|
|
4910
|
+
/* @__PURE__ */ o(L, { isIconOnly: !0, size: "sm", variant: "light", onPress: e.onClose, radius: "full", children: /* @__PURE__ */ o(Mt, {}) })
|
|
4911
|
+
] }), [n, e.title, e.onClose, i]), c = y(() => t ? null : /* @__PURE__ */ o(es, { className: "px-5", children: e.children }), [t, e.children]);
|
|
4912
4912
|
return /* @__PURE__ */ o(
|
|
4913
4913
|
Xt,
|
|
4914
4914
|
{
|
|
4915
4915
|
...s,
|
|
4916
4916
|
hideCloseButton: !0,
|
|
4917
4917
|
portalContainer: document.getElementById("modal-container") || void 0,
|
|
4918
|
-
children: /* @__PURE__ */ C(
|
|
4918
|
+
children: /* @__PURE__ */ C(ns, { className: "bg-content1", children: [
|
|
4919
4919
|
a,
|
|
4920
4920
|
c
|
|
4921
4921
|
] })
|
|
4922
4922
|
}
|
|
4923
4923
|
);
|
|
4924
|
-
},
|
|
4925
|
-
const e =
|
|
4924
|
+
}, Uc = () => {
|
|
4925
|
+
const e = M(X);
|
|
4926
4926
|
if (!e)
|
|
4927
4927
|
return null;
|
|
4928
4928
|
const { modal: n, connection: t } = e, r = () => {
|
|
@@ -4930,7 +4930,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4930
4930
|
return s ? s(e) : null;
|
|
4931
4931
|
};
|
|
4932
4932
|
return /* @__PURE__ */ o(
|
|
4933
|
-
|
|
4933
|
+
qc,
|
|
4934
4934
|
{
|
|
4935
4935
|
hideHeader: !0,
|
|
4936
4936
|
isOpen: n.isOpen,
|
|
@@ -4941,23 +4941,23 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4941
4941
|
}
|
|
4942
4942
|
);
|
|
4943
4943
|
};
|
|
4944
|
-
function
|
|
4944
|
+
function Gc(e) {
|
|
4945
4945
|
if (!e) return !0;
|
|
4946
4946
|
const n = e.basicLogins?.includes("email") ?? !1, t = (e.socialLogins?.length ?? 0) > 0;
|
|
4947
4947
|
return n || t;
|
|
4948
4948
|
}
|
|
4949
|
-
function
|
|
4949
|
+
function Rc(e, n) {
|
|
4950
4950
|
return n ? e?.error ? "error" : !e || e.isLoading ? "initializing" : e.wallet ? "ready" : "unavailable" : "disabled";
|
|
4951
4951
|
}
|
|
4952
|
-
function
|
|
4952
|
+
function _c(e, n) {
|
|
4953
4953
|
return n ? "connecting" : e ? "connected" : "disconnected";
|
|
4954
4954
|
}
|
|
4955
|
-
const
|
|
4956
|
-
async function
|
|
4957
|
-
const t =
|
|
4955
|
+
const $c = ["embeddedWallet"], Lr = "prod-dogeos";
|
|
4956
|
+
async function ea(e, n) {
|
|
4957
|
+
const t = ps.getInstance(), r = await t.init({
|
|
4958
4958
|
...e,
|
|
4959
4959
|
clientId: e.clientId,
|
|
4960
|
-
stage: e.stage ||
|
|
4960
|
+
stage: e.stage || Lr
|
|
4961
4961
|
});
|
|
4962
4962
|
if (n?.aborted)
|
|
4963
4963
|
throw new Error("Aborted");
|
|
@@ -4970,7 +4970,7 @@ async function $c(e, n) {
|
|
|
4970
4970
|
connectedInfo: r.connectedInfo ?? null
|
|
4971
4971
|
};
|
|
4972
4972
|
}
|
|
4973
|
-
const
|
|
4973
|
+
const na = ({
|
|
4974
4974
|
config: e,
|
|
4975
4975
|
setMainView: n,
|
|
4976
4976
|
defaultMainView: t,
|
|
@@ -4979,9 +4979,12 @@ const ea = ({
|
|
|
4979
4979
|
themeMode: i
|
|
4980
4980
|
}) => {
|
|
4981
4981
|
const a = Tn({
|
|
4982
|
-
queryKey: [
|
|
4983
|
-
queryFn: ({ signal: A }) =>
|
|
4984
|
-
enabled: r
|
|
4982
|
+
queryKey: [...$c, e.clientId, e.stage ?? Lr],
|
|
4983
|
+
queryFn: ({ signal: A }) => ea(e, A),
|
|
4984
|
+
enabled: r,
|
|
4985
|
+
refetchOnWindowFocus: !1,
|
|
4986
|
+
refetchOnReconnect: !1,
|
|
4987
|
+
staleTime: 1 / 0
|
|
4985
4988
|
}), { data: c, isLoading: l, isError: d, error: f } = a;
|
|
4986
4989
|
return J(() => {
|
|
4987
4990
|
if (!r) {
|
|
@@ -5002,7 +5005,7 @@ const ea = ({
|
|
|
5002
5005
|
isLoading: r && l,
|
|
5003
5006
|
error: d ? f instanceof Error ? f : new Error("Failed to initialize embedded wallet") : null
|
|
5004
5007
|
};
|
|
5005
|
-
},
|
|
5008
|
+
}, ta = ({
|
|
5006
5009
|
setWalletState: e,
|
|
5007
5010
|
currentWallet: n,
|
|
5008
5011
|
isConnected: t,
|
|
@@ -5010,13 +5013,13 @@ const ea = ({
|
|
|
5010
5013
|
embeddedWalletState: s,
|
|
5011
5014
|
wagmiConfig: i
|
|
5012
5015
|
}) => {
|
|
5013
|
-
const a = ce(!1), { data: c } =
|
|
5016
|
+
const a = ce(!1), { data: c } = Le("all", [], { embeddedWallet: s?.wallet ?? null }), l = y(() => c?.all || [], [c?.all]), d = Sr(), f = jc();
|
|
5014
5017
|
J(() => {
|
|
5015
5018
|
if (a.current || t || n)
|
|
5016
5019
|
return;
|
|
5017
5020
|
const A = () => {
|
|
5018
5021
|
try {
|
|
5019
|
-
const v = s?.wallet, m =
|
|
5022
|
+
const v = s?.wallet, m = Os();
|
|
5020
5023
|
if (!m) {
|
|
5021
5024
|
a.current = !0;
|
|
5022
5025
|
return;
|
|
@@ -5046,8 +5049,8 @@ const ea = ({
|
|
|
5046
5049
|
console.log("No connected provider found in connectedInfo"), a.current = !0;
|
|
5047
5050
|
return;
|
|
5048
5051
|
}
|
|
5049
|
-
const
|
|
5050
|
-
if (!
|
|
5052
|
+
const W = g?.connectors[z]?.provider;
|
|
5053
|
+
if (!W) {
|
|
5051
5054
|
console.log("Provider not available for connected chain type:", z), a.current = !0;
|
|
5052
5055
|
return;
|
|
5053
5056
|
}
|
|
@@ -5071,8 +5074,8 @@ const ea = ({
|
|
|
5071
5074
|
});
|
|
5072
5075
|
}
|
|
5073
5076
|
}
|
|
5074
|
-
if (
|
|
5075
|
-
provider:
|
|
5077
|
+
if (W && (D[z] = {
|
|
5078
|
+
provider: W,
|
|
5076
5079
|
address: B,
|
|
5077
5080
|
connectedAt: Date.now(),
|
|
5078
5081
|
walletId: g.info.uuid
|
|
@@ -5084,7 +5087,7 @@ const ea = ({
|
|
|
5084
5087
|
chainType: z,
|
|
5085
5088
|
balance: m.balance || "0.0",
|
|
5086
5089
|
currentWallet: g,
|
|
5087
|
-
currentProvider:
|
|
5090
|
+
currentProvider: W,
|
|
5088
5091
|
providers: D
|
|
5089
5092
|
})), d && z === T.EVM && i && f && !f.isConnected) {
|
|
5090
5093
|
const j = Xn(g.info.uuid, g.info.rdns, void 0);
|
|
@@ -5099,9 +5102,9 @@ const ea = ({
|
|
|
5099
5102
|
const x = m.chainType, w = {};
|
|
5100
5103
|
if (m.providers && Array.isArray(m.providers))
|
|
5101
5104
|
for (const b of m.providers) {
|
|
5102
|
-
const z = b.chainType,
|
|
5103
|
-
if (
|
|
5104
|
-
const E =
|
|
5105
|
+
const z = b.chainType, W = l.find((E) => E.info.uuid === b.walletId);
|
|
5106
|
+
if (W) {
|
|
5107
|
+
const E = W.connectors[z]?.provider;
|
|
5105
5108
|
E && (w[z] = {
|
|
5106
5109
|
provider: E,
|
|
5107
5110
|
address: b.address,
|
|
@@ -5126,7 +5129,7 @@ const ea = ({
|
|
|
5126
5129
|
currentProvider: I.provider,
|
|
5127
5130
|
providers: w
|
|
5128
5131
|
}));
|
|
5129
|
-
const
|
|
5132
|
+
const k = () => {
|
|
5130
5133
|
e((b) => ({
|
|
5131
5134
|
...b,
|
|
5132
5135
|
isConnected: !1,
|
|
@@ -5146,14 +5149,14 @@ const ea = ({
|
|
|
5146
5149
|
walletInfo: g.info
|
|
5147
5150
|
}
|
|
5148
5151
|
).then((b) => {
|
|
5149
|
-
b?.address && b.address.toLowerCase() === m.address.toLowerCase() ? console.log("Restoring plugin wallet connection for:", g.info.name) :
|
|
5152
|
+
b?.address && b.address.toLowerCase() === m.address.toLowerCase() ? console.log("Restoring plugin wallet connection for:", g.info.name) : k();
|
|
5150
5153
|
}).catch(() => {
|
|
5151
|
-
|
|
5154
|
+
k(), console.log("Failed to verify wallet connection");
|
|
5152
5155
|
}), d && m.chainType === T.EVM && i && f && !f.isConnected) {
|
|
5153
5156
|
const b = Xn(g.info.uuid, g.info.rdns, void 0);
|
|
5154
5157
|
if (b?.ready) {
|
|
5155
5158
|
const z = m.chainId ? parseInt(m.chainId, 16) : void 0;
|
|
5156
|
-
d.connectAsync({ connector: b, chainId: z }).catch((
|
|
5159
|
+
d.connectAsync({ connector: b, chainId: z }).catch((W) => console.warn("Failed to restore wagmi connection:", W));
|
|
5157
5160
|
}
|
|
5158
5161
|
}
|
|
5159
5162
|
a.current = !0;
|
|
@@ -5174,11 +5177,11 @@ const ea = ({
|
|
|
5174
5177
|
f
|
|
5175
5178
|
]);
|
|
5176
5179
|
};
|
|
5177
|
-
function
|
|
5180
|
+
function ra(e) {
|
|
5178
5181
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5179
5182
|
}
|
|
5180
5183
|
var xn = { exports: {} }, yt;
|
|
5181
|
-
function
|
|
5184
|
+
function sa() {
|
|
5182
5185
|
return yt || (yt = 1, (function(e) {
|
|
5183
5186
|
var n = Object.prototype.hasOwnProperty, t = "~";
|
|
5184
5187
|
function r() {
|
|
@@ -5238,8 +5241,8 @@ function ra() {
|
|
|
5238
5241
|
x[w - 1] = arguments[w];
|
|
5239
5242
|
p.fn.apply(p.context, x);
|
|
5240
5243
|
} else {
|
|
5241
|
-
var
|
|
5242
|
-
for (w = 0; w <
|
|
5244
|
+
var k = p.length, b;
|
|
5245
|
+
for (w = 0; w < k; w++)
|
|
5243
5246
|
switch (p[w].once && this.removeListener(d, p[w].fn, void 0, !0), I) {
|
|
5244
5247
|
case 1:
|
|
5245
5248
|
p[w].fn.call(p[w].context);
|
|
@@ -5284,9 +5287,9 @@ function ra() {
|
|
|
5284
5287
|
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = t, c.EventEmitter = c, e.exports = c;
|
|
5285
5288
|
})(xn)), xn.exports;
|
|
5286
5289
|
}
|
|
5287
|
-
var
|
|
5288
|
-
const
|
|
5289
|
-
class
|
|
5290
|
+
var ia = sa();
|
|
5291
|
+
const oa = /* @__PURE__ */ ra(ia);
|
|
5292
|
+
class ca {
|
|
5290
5293
|
constructor(n) {
|
|
5291
5294
|
Object.defineProperty(this, "uid", {
|
|
5292
5295
|
enumerable: !0,
|
|
@@ -5297,7 +5300,7 @@ class oa {
|
|
|
5297
5300
|
enumerable: !0,
|
|
5298
5301
|
configurable: !0,
|
|
5299
5302
|
writable: !0,
|
|
5300
|
-
value: new
|
|
5303
|
+
value: new oa()
|
|
5301
5304
|
});
|
|
5302
5305
|
}
|
|
5303
5306
|
on(n, t) {
|
|
@@ -5317,12 +5320,12 @@ class oa {
|
|
|
5317
5320
|
return this._emitter.listenerCount(n);
|
|
5318
5321
|
}
|
|
5319
5322
|
}
|
|
5320
|
-
function
|
|
5321
|
-
return new
|
|
5323
|
+
function aa(e) {
|
|
5324
|
+
return new ca(e);
|
|
5322
5325
|
}
|
|
5323
5326
|
const Nn = 256;
|
|
5324
5327
|
let Qe = Nn, Ke;
|
|
5325
|
-
function
|
|
5328
|
+
function la(e = 11) {
|
|
5326
5329
|
if (!Ke || Qe + e > Nn * 2) {
|
|
5327
5330
|
Ke = "", Qe = 0;
|
|
5328
5331
|
for (let n = 0; n < Nn; n++)
|
|
@@ -5330,18 +5333,18 @@ function aa(e = 11) {
|
|
|
5330
5333
|
}
|
|
5331
5334
|
return Ke.substring(Qe, Qe++ + e);
|
|
5332
5335
|
}
|
|
5333
|
-
const
|
|
5336
|
+
const da = "2.22.1", Aa = () => `@wagmi/core@${da}`;
|
|
5334
5337
|
var kr = function(e, n, t, r) {
|
|
5335
5338
|
if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
5336
5339
|
if (typeof n == "function" ? e !== n || !r : !n.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5337
5340
|
return t === "m" ? r : t === "a" ? r.call(e) : r ? r.value : n.get(e);
|
|
5338
|
-
}, nn,
|
|
5341
|
+
}, nn, Yr;
|
|
5339
5342
|
class je extends Error {
|
|
5340
5343
|
get docsBaseUrl() {
|
|
5341
5344
|
return "https://wagmi.sh/core";
|
|
5342
5345
|
}
|
|
5343
5346
|
get version() {
|
|
5344
|
-
return
|
|
5347
|
+
return Aa();
|
|
5345
5348
|
}
|
|
5346
5349
|
constructor(n, t = {}) {
|
|
5347
5350
|
super(), nn.add(this), Object.defineProperty(this, "details", {
|
|
@@ -5384,13 +5387,13 @@ class je extends Error {
|
|
|
5384
5387
|
`), t.cause && (this.cause = t.cause), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.shortMessage = n;
|
|
5385
5388
|
}
|
|
5386
5389
|
walk(n) {
|
|
5387
|
-
return kr(this, nn, "m",
|
|
5390
|
+
return kr(this, nn, "m", Yr).call(this, this, n);
|
|
5388
5391
|
}
|
|
5389
5392
|
}
|
|
5390
|
-
nn = /* @__PURE__ */ new WeakSet(),
|
|
5393
|
+
nn = /* @__PURE__ */ new WeakSet(), Yr = function e(n, t) {
|
|
5391
5394
|
return t?.(n) ? n : n.cause ? kr(this, nn, "m", e).call(this, n.cause, t) : n;
|
|
5392
5395
|
};
|
|
5393
|
-
class
|
|
5396
|
+
class fa extends je {
|
|
5394
5397
|
constructor() {
|
|
5395
5398
|
super("Chain not configured."), Object.defineProperty(this, "name", {
|
|
5396
5399
|
enumerable: !0,
|
|
@@ -5421,7 +5424,7 @@ function _n(e = {}) {
|
|
|
5421
5424
|
return d;
|
|
5422
5425
|
}
|
|
5423
5426
|
return typeof l == "object" ? l : typeof l == "string" ? {
|
|
5424
|
-
...
|
|
5427
|
+
...ua[l] ?? {
|
|
5425
5428
|
id: l,
|
|
5426
5429
|
name: `${l[0].toUpperCase()}${l.slice(1)}`,
|
|
5427
5430
|
provider: `is${l[0].toUpperCase()}${l.slice(1)}`
|
|
@@ -5498,7 +5501,7 @@ function _n(e = {}) {
|
|
|
5498
5501
|
throw new ve();
|
|
5499
5502
|
i && (d.removeListener("chainChanged", i), i = void 0), c && (d.removeListener("disconnect", c), c = void 0), a || (a = this.onConnect.bind(this), d.on("connect", a));
|
|
5500
5503
|
try {
|
|
5501
|
-
await
|
|
5504
|
+
await xs(() => (
|
|
5502
5505
|
// TODO: Remove explicit type for viem@3
|
|
5503
5506
|
d.request({
|
|
5504
5507
|
// `'wallet_revokePermissions'` added in `viem@2.10.3`
|
|
@@ -5549,7 +5552,7 @@ function _n(e = {}) {
|
|
|
5549
5552
|
}
|
|
5550
5553
|
throw new ve();
|
|
5551
5554
|
}
|
|
5552
|
-
return !!(await
|
|
5555
|
+
return !!(await Cs(() => this.getAccounts())).length;
|
|
5553
5556
|
} catch {
|
|
5554
5557
|
return !1;
|
|
5555
5558
|
}
|
|
@@ -5560,7 +5563,7 @@ function _n(e = {}) {
|
|
|
5560
5563
|
throw new ve();
|
|
5561
5564
|
const u = l.chains.find((m) => m.id === f);
|
|
5562
5565
|
if (!u)
|
|
5563
|
-
throw new tt(new
|
|
5566
|
+
throw new tt(new fa());
|
|
5564
5567
|
const v = new Promise((m) => {
|
|
5565
5568
|
const g = ((p) => {
|
|
5566
5569
|
"chainId" in p && p.chainId === f && (l.emitter.off("change", g), m());
|
|
@@ -5591,7 +5594,7 @@ function _n(e = {}) {
|
|
|
5591
5594
|
]);
|
|
5592
5595
|
let w;
|
|
5593
5596
|
d?.rpcUrls?.length ? w = d.rpcUrls : w = [u.rpcUrls.default?.http[0] ?? ""];
|
|
5594
|
-
const
|
|
5597
|
+
const k = {
|
|
5595
5598
|
blockExplorerUrls: x,
|
|
5596
5599
|
chainId: rt(f),
|
|
5597
5600
|
chainName: d?.chainName ?? u.name,
|
|
@@ -5602,7 +5605,7 @@ function _n(e = {}) {
|
|
|
5602
5605
|
return await Promise.all([
|
|
5603
5606
|
A.request({
|
|
5604
5607
|
method: "wallet_addEthereumChain",
|
|
5605
|
-
params: [
|
|
5608
|
+
params: [k]
|
|
5606
5609
|
}).then(async () => {
|
|
5607
5610
|
if (await this.getChainId() === f)
|
|
5608
5611
|
l.emitter.emit("change", { chainId: f });
|
|
@@ -5647,7 +5650,7 @@ function _n(e = {}) {
|
|
|
5647
5650
|
}
|
|
5648
5651
|
});
|
|
5649
5652
|
}
|
|
5650
|
-
const
|
|
5653
|
+
const ua = {
|
|
5651
5654
|
coinbaseWallet: {
|
|
5652
5655
|
id: "coinbaseWallet",
|
|
5653
5656
|
name: "Coinbase Wallet",
|
|
@@ -5707,14 +5710,14 @@ function qe(e, n) {
|
|
|
5707
5710
|
if (r && t(r))
|
|
5708
5711
|
return r;
|
|
5709
5712
|
}
|
|
5710
|
-
function
|
|
5713
|
+
function ga(e, n = T.EVM) {
|
|
5711
5714
|
if (!e.providers[n])
|
|
5712
5715
|
return null;
|
|
5713
5716
|
const t = e.providers[n]?.provider;
|
|
5714
5717
|
if (!t)
|
|
5715
5718
|
return null;
|
|
5716
5719
|
const r = e.info, s = r.rdns || r.uuid || `wallet-${r.name.toLowerCase().replace(/\s+/g, "-")}`;
|
|
5717
|
-
return
|
|
5720
|
+
return ms((i) => ({
|
|
5718
5721
|
..._n({
|
|
5719
5722
|
target: () => ({
|
|
5720
5723
|
id: s,
|
|
@@ -5730,14 +5733,14 @@ function ua(e, n = T.EVM) {
|
|
|
5730
5733
|
emitter: i.emitter
|
|
5731
5734
|
}));
|
|
5732
5735
|
}
|
|
5733
|
-
function
|
|
5736
|
+
function va(e, n = T.EVM, t) {
|
|
5734
5737
|
const r = [];
|
|
5735
5738
|
if (t.length === 0)
|
|
5736
5739
|
return r;
|
|
5737
5740
|
for (const s of e) {
|
|
5738
|
-
const i =
|
|
5741
|
+
const i = ga(s, n);
|
|
5739
5742
|
if (i) {
|
|
5740
|
-
const a =
|
|
5743
|
+
const a = aa(la());
|
|
5741
5744
|
r.push(
|
|
5742
5745
|
i({
|
|
5743
5746
|
chains: t,
|
|
@@ -5748,13 +5751,13 @@ function ga(e, n = T.EVM, t) {
|
|
|
5748
5751
|
}
|
|
5749
5752
|
return r;
|
|
5750
5753
|
}
|
|
5751
|
-
function
|
|
5754
|
+
function ma(e, n = []) {
|
|
5752
5755
|
const t = [...n], r = (i) => "id" in i && i.id ? i.id : "options" in i && i.options ? i.options?.id ?? i.options?.name : void 0, s = new Set(n.map((i) => r(i)));
|
|
5753
5756
|
for (const i of e)
|
|
5754
5757
|
s.has(r(i)) || t.push(i);
|
|
5755
5758
|
return t;
|
|
5756
5759
|
}
|
|
5757
|
-
const
|
|
5760
|
+
const pa = ({
|
|
5758
5761
|
children: e,
|
|
5759
5762
|
contextConfig: n,
|
|
5760
5763
|
defaultThemeConfig: t,
|
|
@@ -5768,16 +5771,16 @@ const ma = ({
|
|
|
5768
5771
|
connectedInfo: g,
|
|
5769
5772
|
message: p,
|
|
5770
5773
|
error: I
|
|
5771
|
-
} =
|
|
5774
|
+
} = na({
|
|
5772
5775
|
config: n.embeddedWalletConfig,
|
|
5773
5776
|
setMainView: a,
|
|
5774
5777
|
defaultMainView: r,
|
|
5775
5778
|
enabled: s,
|
|
5776
5779
|
defaultTheme: t,
|
|
5777
5780
|
themeMode: n.themeMode
|
|
5778
|
-
}), x =
|
|
5781
|
+
}), x = Vc(i), w = O(() => {
|
|
5779
5782
|
x.setView(c.isConnected ? V.Account : i), x.openModal();
|
|
5780
|
-
}, [x, c.isConnected, i]),
|
|
5783
|
+
}, [x, c.isConnected, i]), k = y(
|
|
5781
5784
|
() => ({
|
|
5782
5785
|
isOpen: x.isOpen,
|
|
5783
5786
|
view: x.view,
|
|
@@ -5805,7 +5808,7 @@ const ma = ({
|
|
|
5805
5808
|
w,
|
|
5806
5809
|
i
|
|
5807
5810
|
]
|
|
5808
|
-
), b =
|
|
5811
|
+
), b = _c(c.isConnected, c.isConnecting), z = y(
|
|
5809
5812
|
() => ({
|
|
5810
5813
|
connectionStatus: b,
|
|
5811
5814
|
isConnected: c.isConnected,
|
|
@@ -5815,7 +5818,7 @@ const ma = ({
|
|
|
5815
5818
|
setError: f
|
|
5816
5819
|
}),
|
|
5817
5820
|
[b, c.isConnected, c.isConnecting, d, f]
|
|
5818
|
-
),
|
|
5821
|
+
), W = y(
|
|
5819
5822
|
() => ({
|
|
5820
5823
|
address: c.address,
|
|
5821
5824
|
balance: c.balance,
|
|
@@ -5843,7 +5846,7 @@ const ma = ({
|
|
|
5843
5846
|
}),
|
|
5844
5847
|
[u, v, m, g, p, I]
|
|
5845
5848
|
), S = y(
|
|
5846
|
-
() =>
|
|
5849
|
+
() => Rc(E, s),
|
|
5847
5850
|
[E, s]
|
|
5848
5851
|
), B = y(
|
|
5849
5852
|
() => ({
|
|
@@ -5855,41 +5858,41 @@ const ma = ({
|
|
|
5855
5858
|
), D = y(
|
|
5856
5859
|
() => ({
|
|
5857
5860
|
config: n,
|
|
5858
|
-
modal:
|
|
5861
|
+
modal: k,
|
|
5859
5862
|
connection: z,
|
|
5860
|
-
account:
|
|
5863
|
+
account: W,
|
|
5861
5864
|
walletReady: B
|
|
5862
5865
|
}),
|
|
5863
|
-
[n,
|
|
5864
|
-
), j =
|
|
5866
|
+
[n, k, z, W, B]
|
|
5867
|
+
), j = Le("all", n?.connectors || [], { embeddedWallet: u }), U = n?.wagmi, N = U?.config;
|
|
5865
5868
|
return J(() => {
|
|
5866
5869
|
if (!N || !j.data) {
|
|
5867
5870
|
pn(null);
|
|
5868
5871
|
return;
|
|
5869
5872
|
}
|
|
5870
|
-
const Z = N.connectors ? [...N.connectors] : [], Q = N.chains ? [...N.chains] : [],
|
|
5873
|
+
const Z = N.connectors ? [...N.connectors] : [], Q = N.chains ? [...N.chains] : [], ke = j?.data?.all?.filter((Ze) => Ze.connectors[T.EVM]), Ye = va(ke || [], T.EVM, Q), ge = ma(Ye, Z);
|
|
5871
5874
|
ge.length > 0 ? pn(ge) : pn(null);
|
|
5872
5875
|
}, [j.data, N]), J(() => {
|
|
5873
|
-
|
|
5874
|
-
}, [n?.walletConnectConfig]),
|
|
5876
|
+
as(n?.walletConnectConfig || Vn);
|
|
5877
|
+
}, [n?.walletConnectConfig]), ta({
|
|
5875
5878
|
setWalletState: l,
|
|
5876
|
-
currentWallet:
|
|
5879
|
+
currentWallet: W.currentWallet,
|
|
5877
5880
|
isConnected: z.isConnected,
|
|
5878
5881
|
walletStatus: S,
|
|
5879
5882
|
embeddedWalletState: E,
|
|
5880
5883
|
wagmiConfig: U
|
|
5881
5884
|
}), J(() => {
|
|
5882
|
-
const { isConnected: Z, chainType: Q, currentProvider:
|
|
5883
|
-
if (!Z || Q !== T.EVM || !
|
|
5885
|
+
const { isConnected: Z, chainType: Q, currentProvider: ke } = c;
|
|
5886
|
+
if (!Z || Q !== T.EVM || !ke) return;
|
|
5884
5887
|
const Ye = (Ze) => {
|
|
5885
5888
|
l((dn) => dn.chainId === Ze ? dn : { ...dn, chainId: Ze });
|
|
5886
|
-
}, ge =
|
|
5889
|
+
}, ge = ke;
|
|
5887
5890
|
if (typeof ge.on == "function")
|
|
5888
5891
|
return ge.on("chainChanged", Ye), () => {
|
|
5889
5892
|
ge.removeListener?.("chainChanged", Ye);
|
|
5890
5893
|
};
|
|
5891
5894
|
}, [c.isConnected, c.chainType, c.currentProvider, l, c]), /* @__PURE__ */ o(an.Provider, { value: E, children: /* @__PURE__ */ o(X.Provider, { value: D, children: /* @__PURE__ */ o(
|
|
5892
|
-
|
|
5895
|
+
Ca,
|
|
5893
5896
|
{
|
|
5894
5897
|
walletState: c,
|
|
5895
5898
|
modalState: x,
|
|
@@ -5903,7 +5906,7 @@ const ma = ({
|
|
|
5903
5906
|
}
|
|
5904
5907
|
) }) });
|
|
5905
5908
|
};
|
|
5906
|
-
function
|
|
5909
|
+
function Ca({
|
|
5907
5910
|
children: e,
|
|
5908
5911
|
walletState: n,
|
|
5909
5912
|
modalState: t,
|
|
@@ -5914,7 +5917,7 @@ function pa({
|
|
|
5914
5917
|
defaultThemeConfig: c,
|
|
5915
5918
|
themeMode: l
|
|
5916
5919
|
}) {
|
|
5917
|
-
const d =
|
|
5920
|
+
const d = M(X), f = Tc({
|
|
5918
5921
|
walletState: n,
|
|
5919
5922
|
modalState: t,
|
|
5920
5923
|
setWalletState: r,
|
|
@@ -5929,13 +5932,13 @@ function pa({
|
|
|
5929
5932
|
[d, f]
|
|
5930
5933
|
);
|
|
5931
5934
|
return /* @__PURE__ */ o(X.Provider, { value: A, children: /* @__PURE__ */ C(
|
|
5932
|
-
|
|
5935
|
+
ts,
|
|
5933
5936
|
{
|
|
5934
5937
|
themeConfig: c,
|
|
5935
5938
|
defaultTheme: l || "light",
|
|
5936
5939
|
children: [
|
|
5937
5940
|
/* @__PURE__ */ o(
|
|
5938
|
-
|
|
5941
|
+
rs,
|
|
5939
5942
|
{
|
|
5940
5943
|
maxVisibleToasts: 3,
|
|
5941
5944
|
placement: "top-center",
|
|
@@ -5947,18 +5950,18 @@ function pa({
|
|
|
5947
5950
|
}
|
|
5948
5951
|
),
|
|
5949
5952
|
e,
|
|
5950
|
-
/* @__PURE__ */ o("div", { id: "modal-container", children: /* @__PURE__ */ o(
|
|
5953
|
+
/* @__PURE__ */ o("div", { id: "modal-container", children: /* @__PURE__ */ o(Uc, {}) })
|
|
5951
5954
|
]
|
|
5952
5955
|
}
|
|
5953
5956
|
) });
|
|
5954
5957
|
}
|
|
5955
|
-
const
|
|
5958
|
+
const xa = new ds({
|
|
5956
5959
|
defaultOptions: {
|
|
5957
5960
|
queries: {
|
|
5958
5961
|
refetchOnWindowFocus: !1
|
|
5959
5962
|
}
|
|
5960
5963
|
}
|
|
5961
|
-
}),
|
|
5964
|
+
}), Na = ({ children: e, config: n }) => {
|
|
5962
5965
|
const t = Er(), r = y(() => {
|
|
5963
5966
|
const c = n || ie, l = c.login ? {
|
|
5964
5967
|
basicLogins: c.login.basicLogins ?? [],
|
|
@@ -5994,7 +5997,7 @@ const Ca = new ls({
|
|
|
5994
5997
|
}
|
|
5995
5998
|
};
|
|
5996
5999
|
return wt(t || null), v;
|
|
5997
|
-
}, [n, t]), s = V.WalletHome, i = y(() =>
|
|
6000
|
+
}, [n, t]), s = V.WalletHome, i = y(() => Gc(n?.login), [n?.login]), a = y(() => {
|
|
5998
6001
|
const c = yr(), l = n?.theme;
|
|
5999
6002
|
if (!l) return c;
|
|
6000
6003
|
const d = c.themes ?? {}, f = l.themes ?? {}, A = (u, v) => {
|
|
@@ -6017,8 +6020,8 @@ const Ca = new ls({
|
|
|
6017
6020
|
}
|
|
6018
6021
|
};
|
|
6019
6022
|
}, [n?.theme]);
|
|
6020
|
-
return typeof window > "u" ? null : /* @__PURE__ */ o(
|
|
6021
|
-
|
|
6023
|
+
return typeof window > "u" ? null : /* @__PURE__ */ o(ls, { client: xa, children: /* @__PURE__ */ o(
|
|
6024
|
+
pa,
|
|
6022
6025
|
{
|
|
6023
6026
|
contextConfig: r,
|
|
6024
6027
|
defaultThemeConfig: a,
|
|
@@ -6027,8 +6030,8 @@ const Ca = new ls({
|
|
|
6027
6030
|
children: e
|
|
6028
6031
|
}
|
|
6029
6032
|
) });
|
|
6030
|
-
},
|
|
6031
|
-
const t =
|
|
6033
|
+
}, ja = ({ className: e, style: n }) => {
|
|
6034
|
+
const t = M(X);
|
|
6032
6035
|
if (!t)
|
|
6033
6036
|
return console.error("WalletConnectEmbed must be used within WalletConnectProvider"), null;
|
|
6034
6037
|
const s = t.connection.isConnected ? V.Account : t.modal.view, a = (() => {
|
|
@@ -6044,10 +6047,10 @@ const Ca = new ls({
|
|
|
6044
6047
|
}
|
|
6045
6048
|
);
|
|
6046
6049
|
};
|
|
6047
|
-
async function
|
|
6050
|
+
async function Ta() {
|
|
6048
6051
|
let e = [];
|
|
6049
6052
|
try {
|
|
6050
|
-
e = await
|
|
6053
|
+
e = await kt();
|
|
6051
6054
|
} catch (r) {
|
|
6052
6055
|
console.warn("Failed to fetch chains from API, using default chains:", r);
|
|
6053
6056
|
}
|
|
@@ -6116,7 +6119,7 @@ async function ja() {
|
|
|
6116
6119
|
t.dogecoin = Ce.dogecoin || [];
|
|
6117
6120
|
return t;
|
|
6118
6121
|
}
|
|
6119
|
-
async function
|
|
6122
|
+
async function Ea() {
|
|
6120
6123
|
try {
|
|
6121
6124
|
return (await Tt({
|
|
6122
6125
|
chainType: "all",
|
|
@@ -6141,12 +6144,12 @@ async function Ta() {
|
|
|
6141
6144
|
typeof window < "u" && console.info(`[${st.name}] version: ${st.version}`);
|
|
6142
6145
|
export {
|
|
6143
6146
|
T as ChainTypeEnum,
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6147
|
+
ja as WalletConnectEmbed,
|
|
6148
|
+
Na as WalletConnectProvider,
|
|
6149
|
+
Ta as getChains,
|
|
6150
|
+
Ea as getConnectors,
|
|
6148
6151
|
Gn as useAccount,
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
+
Va as useConnectors,
|
|
6153
|
+
xc as useEmbeddedWallet,
|
|
6154
|
+
Xa as useWalletConnect
|
|
6152
6155
|
};
|