@dogeos/dogeos-sdk 3.2.0-beta.3 → 3.2.0
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 +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +440 -437
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,32 +13,32 @@
|
|
|
13
13
|
|
|
14
14
|
import { jsxs as C, jsx as o, Fragment as Bt } from "react/jsx-runtime";
|
|
15
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
|
|
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:
|
|
16
|
+
import { Button as L, BackIcon as Wt, CloseIcon as Mt, OkIcon as Vt, CopyIcon as Yr, Image as fe, PowerIcon as Zr, DownIcon as Jr, Spinner as ue, Skeleton as Dr, Modal as Xt, Link as Ue, TomoLogoIcon as Fr, Card as Hr, CardBody as Qr, Tabs as Kr, Tab as qr, Chip as $n, SearchIcon as Ur, Input as Nt, SearchOutlinedIcon as Gr, addToast as Rr, RightArrowIcon as jn, ModalHeader as _r, ModalBody as $r, ModalContent as es, TomoUIProvider as ns, ToastProvider as ts } from "@tomo-inc/tomo-ui";
|
|
17
|
+
import { isMobile as jt, loadConnectors as Tt, isWagmiConnector as rs, connect as Et, switchChain as et, addChain as ss, signInWithWallet as is, signMessage as os, setWalletConnectConfig as cs } from "@tomo-inc/wallet-adaptor-base";
|
|
18
|
+
import { useQuery as Tn, useMutation as En, QueryClientProvider as as, QueryClient as ls } from "@tanstack/react-query";
|
|
19
|
+
import ds from "copy-to-clipboard";
|
|
20
|
+
import As from "qr-code-styling";
|
|
21
|
+
import { useConfig as nt, useConnect as fs, useAccount as us, useDisconnect as gs, createConnector as vs } from "wagmi";
|
|
22
|
+
import { EmbeddedWallet as ms } from "@tomo-inc/embedded-wallet-providers";
|
|
23
|
+
import { getAddress as Je, SwitchChainError as tt, numberToHex as rt, UserRejectedRequestError as G, withRetry as ps, withTimeout as Cs, ResourceUnavailableRpcError as An } from "viem";
|
|
24
|
+
const xs = "@dogeos/dogeos-sdk", bs = "3.2.0", st = {
|
|
25
|
+
name: xs,
|
|
26
|
+
version: bs
|
|
27
27
|
};
|
|
28
|
-
var
|
|
28
|
+
var zs = Object.defineProperty, Is = (e, n) => {
|
|
29
29
|
for (var t in n)
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
ws
|
|
33
|
-
clear: () =>
|
|
34
|
-
get: () =>
|
|
30
|
+
zs(e, t, { get: n[t], enumerable: !0 });
|
|
31
|
+
}, ws = {};
|
|
32
|
+
Is(ws, {
|
|
33
|
+
clear: () => hs,
|
|
34
|
+
get: () => Ps,
|
|
35
35
|
isKeyExist: () => St,
|
|
36
|
-
remove: () =>
|
|
37
|
-
set: () =>
|
|
38
|
-
setKeyNS: () =>
|
|
36
|
+
remove: () => Bs,
|
|
37
|
+
set: () => ys,
|
|
38
|
+
setKeyNS: () => Ws
|
|
39
39
|
});
|
|
40
40
|
var Me = "tomo-";
|
|
41
|
-
function
|
|
41
|
+
function Ps(e) {
|
|
42
42
|
if (typeof window > "u")
|
|
43
43
|
return null;
|
|
44
44
|
const n = Me + e;
|
|
@@ -53,7 +53,7 @@ function ys(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 ys(e, n, t) {
|
|
57
57
|
if (typeof window > "u")
|
|
58
58
|
return !1;
|
|
59
59
|
let r;
|
|
@@ -71,19 +71,19 @@ function Bs(e, n, t) {
|
|
|
71
71
|
}
|
|
72
72
|
return !1;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Bs(e) {
|
|
75
75
|
if (typeof window > "u")
|
|
76
76
|
return;
|
|
77
77
|
const n = Me + e;
|
|
78
78
|
window.localStorage.removeItem(n), window.sessionStorage.removeItem(n);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function hs() {
|
|
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
|
-
function
|
|
86
|
+
function Ws(e) {
|
|
87
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 || {});
|
|
@@ -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
|
+
] }), Ms = ({ ...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",
|
|
@@ -471,13 +471,13 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
471
471
|
}
|
|
472
472
|
)
|
|
473
473
|
] })
|
|
474
|
-
] }),
|
|
474
|
+
] }), Vs = /* @__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: Ms,
|
|
481
481
|
Solana: rn,
|
|
482
482
|
UnknownChain: Sn,
|
|
483
483
|
UnsupportChain: Lt
|
|
@@ -486,17 +486,17 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
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 || Vs?.[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
|
+
}, Xs = "https://web3-assets.tomo.inc/api/chains", it = "https://web3-assets.tomo.inc";
|
|
492
492
|
let De = null, Pe = null;
|
|
493
|
-
function
|
|
493
|
+
function Ns(e) {
|
|
494
494
|
return !e || e.startsWith("http://") || e.startsWith("https://") ? e : e.startsWith("/") ? `${it}${e}` : `${it}/${e}`;
|
|
495
495
|
}
|
|
496
496
|
async function kt() {
|
|
497
497
|
return De || Pe || (Pe = (async () => {
|
|
498
498
|
try {
|
|
499
|
-
const e = await fetch(
|
|
499
|
+
const e = await fetch(Xs);
|
|
500
500
|
if (!e.ok)
|
|
501
501
|
throw new Error(`Failed to fetch chains: ${e.statusText}`);
|
|
502
502
|
const n = await e.json();
|
|
@@ -504,21 +504,21 @@ async function kt() {
|
|
|
504
504
|
throw new Error("Invalid chains API response");
|
|
505
505
|
return De = n.data.map((t) => ({
|
|
506
506
|
...t,
|
|
507
|
-
icon:
|
|
507
|
+
icon: Ns(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
|
|
514
|
+
const js = "1a91e3dace36e2be3bf030a65679fe82";
|
|
515
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
520
|
const { type: n, id: t } = Ln(e);
|
|
521
|
-
return n === "aptos" ? "aptos" : n === "solana" ? "solana" : n === "eip155" ? "evm" : n === "dogecoin" || n === "bip122" && t ===
|
|
521
|
+
return n === "aptos" ? "aptos" : n === "solana" ? "solana" : n === "eip155" ? "evm" : n === "dogecoin" || n === "bip122" && t === js ? "dogecoin" : "evm";
|
|
522
522
|
}
|
|
523
523
|
function Yt() {
|
|
524
524
|
const { data: e, isLoading: n, error: t, refetch: r } = Tn({
|
|
@@ -539,7 +539,7 @@ function Yt() {
|
|
|
539
539
|
const kn = () => {
|
|
540
540
|
const [e, n] = Y(!1), t = ce(null), r = (s) => {
|
|
541
541
|
try {
|
|
542
|
-
return
|
|
542
|
+
return ds(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 Ts(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
|
+
}, Es = (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
|
+
}, Ss = () => {
|
|
582
582
|
try {
|
|
583
583
|
const e = localStorage.getItem(Yn.WALLET_STATE);
|
|
584
584
|
if (!e) return null;
|
|
@@ -598,14 +598,14 @@ 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 Os(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;
|
|
605
605
|
return !l || s.has(l) ? !1 : (s.add(l), !0);
|
|
606
606
|
}).sort(r), n];
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Ls(e, n = 6, t = 4) {
|
|
609
609
|
if (!e) return "";
|
|
610
610
|
if (e.length <= n + t)
|
|
611
611
|
return e;
|
|
@@ -641,7 +641,7 @@ const q = {
|
|
|
641
641
|
evm_1: Ge,
|
|
642
642
|
unsupported: Lt
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function ks(e, n) {
|
|
645
645
|
if (n?.icon)
|
|
646
646
|
return () => n.icon;
|
|
647
647
|
const t = H(e), { id: r } = Ln(e), s = t === "evm" ? `evm_${r}` : t;
|
|
@@ -651,7 +651,7 @@ function Dt(e) {
|
|
|
651
651
|
const n = { ...ae };
|
|
652
652
|
return e.forEach((t) => {
|
|
653
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] =
|
|
654
|
+
t.icon ? n[i] = () => t.icon : n[i] = ks(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 Ys 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 Zs 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 Js 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" ? Ds(e, { dir: n, size: t }) : Fs(e, { dir: n, size: t });
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Ds(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 Fs(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 Fs(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 Hs(e, { dir: n, size: t = 32 } = {}) {
|
|
|
789
789
|
}
|
|
790
790
|
return r;
|
|
791
791
|
}
|
|
792
|
-
const
|
|
792
|
+
const Hs = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
|
|
793
793
|
function We(e, n = {}) {
|
|
794
|
-
return typeof e == "number" || typeof e == "bigint" ? P(e, n) : typeof e == "string" ?
|
|
794
|
+
return typeof e == "number" || typeof e == "bigint" ? P(e, n) : typeof e == "string" ? qs(e, n) : typeof e == "boolean" ? Qs(e, n) : ee(e, n);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Qs(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 += Hs[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 Ys({
|
|
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 Ks = /* @__PURE__ */ new TextEncoder();
|
|
826
|
+
function qs(e, n = {}) {
|
|
827
|
+
const t = Ks.encode(e);
|
|
828
828
|
return ee(t, n);
|
|
829
829
|
}
|
|
830
|
-
const
|
|
830
|
+
const Us = /* @__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" ? Rs(e, n) : typeof e == "boolean" ? Gs(e, n) : Te(e) ? le(e, n) : qt(e, n);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Gs(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 Rs(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 = Us.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 Zs({
|
|
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 = $s(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 $s(e) {
|
|
952
952
|
return e.map((n) => ({
|
|
953
953
|
address: n.address,
|
|
954
954
|
chainId: Number(n.chainId),
|
|
@@ -958,7 +958,7 @@ function ei(e) {
|
|
|
958
958
|
yParity: Number(n.yParity)
|
|
959
959
|
}));
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function ei(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 ni(e, n) {
|
|
|
978
978
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
const
|
|
982
|
-
function
|
|
981
|
+
const ni = /* @__PURE__ */ Zn("block", ei);
|
|
982
|
+
function ti(e, { args: n, eventName: t } = {}) {
|
|
983
983
|
return {
|
|
984
984
|
...e,
|
|
985
985
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -990,11 +990,11 @@ function ri(e, { args: n, eventName: t } = {}) {
|
|
|
990
990
|
...t ? { args: n, eventName: t } : {}
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
const
|
|
993
|
+
const ri = {
|
|
994
994
|
"0x0": "reverted",
|
|
995
995
|
"0x1": "success"
|
|
996
996
|
};
|
|
997
|
-
function
|
|
997
|
+
function si(e, n) {
|
|
998
998
|
const t = {
|
|
999
999
|
...e,
|
|
1000
1000
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1002,26 +1002,26 @@ function ii(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) => ti(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 ? ri[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 ii = /* @__PURE__ */ Zn("transactionReceipt", si), oi = {
|
|
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 ci(e, n) {
|
|
1021
1021
|
const t = {};
|
|
1022
|
-
return typeof e.authorizationList < "u" && (t.authorizationList =
|
|
1022
|
+
return typeof e.authorizationList < "u" && (t.authorizationList = ai(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 = oi[e.type]), typeof e.value < "u" && (t.value = P(e.value)), t;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function ai(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 li 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 di 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 Ai = {
|
|
1057
1057
|
bytes: new Uint8Array(),
|
|
1058
1058
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
1059
1059
|
position: 0,
|
|
@@ -1062,14 +1062,14 @@ const fi = {
|
|
|
1062
1062
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
1063
1063
|
assertReadLimit() {
|
|
1064
1064
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
1065
|
-
throw new
|
|
1065
|
+
throw new di({
|
|
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 li({
|
|
1073
1073
|
length: this.bytes.length,
|
|
1074
1074
|
position: e
|
|
1075
1075
|
});
|
|
@@ -1176,7 +1176,7 @@ const fi = {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
};
|
|
1178
1178
|
function Gt(e, { recursiveReadLimit: n = 8192 } = {}) {
|
|
1179
|
-
const t = Object.create(
|
|
1179
|
+
const t = Object.create(Ai);
|
|
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) ? fi(e.map((n) => Rt(n))) : ui(e);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function fi(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 ui(e) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function ui(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 gi = {
|
|
1221
1221
|
gwei: 9,
|
|
1222
1222
|
wei: 18
|
|
1223
|
-
},
|
|
1223
|
+
}, vi = {
|
|
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 mi(e, n = "wei") {
|
|
1238
|
+
return $t(e, gi[n]);
|
|
1239
1239
|
}
|
|
1240
1240
|
function oe(e, n = "wei") {
|
|
1241
|
-
return $t(e,
|
|
1241
|
+
return $t(e, vi[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 pi extends h {
|
|
1249
1249
|
constructor() {
|
|
1250
1250
|
super([
|
|
1251
1251
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -1254,14 +1254,14 @@ class Ci extends h {
|
|
|
1254
1254
|
`), { name: "FeeConflictError" });
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
class
|
|
1257
|
+
class Ci 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 xi extends h {
|
|
1265
1265
|
constructor({ transaction: n }) {
|
|
1266
1266
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
1267
1267
|
metaMessages: [
|
|
@@ -1282,12 +1282,12 @@ class bi extends h {
|
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
class
|
|
1285
|
+
class bi 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 zi(e) {
|
|
1291
1291
|
if (!e || e.length === 0)
|
|
1292
1292
|
return [];
|
|
1293
1293
|
const n = [];
|
|
@@ -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 Ii(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 (!Ii(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 wi(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 Pi = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
1358
|
+
function yi(e) {
|
|
1359
1359
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Bi(e) {
|
|
1362
1362
|
for (let n = 0; n < e.length; n++)
|
|
1363
|
-
e[n] =
|
|
1363
|
+
e[n] = yi(e[n]);
|
|
1364
1364
|
return e;
|
|
1365
1365
|
}
|
|
1366
|
-
const dt =
|
|
1367
|
-
function
|
|
1366
|
+
const dt = Pi ? (e) => e : Bi;
|
|
1367
|
+
function hi(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 = hi(e)), Ve(e), e;
|
|
1374
1374
|
}
|
|
1375
1375
|
class sr {
|
|
1376
1376
|
}
|
|
@@ -1378,19 +1378,19 @@ function ir(e) {
|
|
|
1378
1378
|
const n = (r) => e().update(Dn(r)).digest(), t = e();
|
|
1379
1379
|
return n.outputLen = t.outputLen, n.blockLen = t.blockLen, n.create = () => e(), n;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Wi(e, n, t, r) {
|
|
1382
1382
|
if (typeof e.setBigUint64 == "function")
|
|
1383
1383
|
return e.setBigUint64(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 Mi(e, n, t) {
|
|
1388
1388
|
return e & n ^ ~e & t;
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Vi(e, n, t) {
|
|
1391
1391
|
return e & n ^ e & t ^ n & t;
|
|
1392
1392
|
}
|
|
1393
|
-
class
|
|
1393
|
+
class Xi 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
|
}
|
|
@@ -1416,7 +1416,7 @@ class Ni extends sr {
|
|
|
1416
1416
|
t[a++] = 128, Xe(this.buffer.subarray(a)), this.padOffset > s - a && (this.process(r, 0), a = 0);
|
|
1417
1417
|
for (let A = a; A < s; A++)
|
|
1418
1418
|
t[A] = 0;
|
|
1419
|
-
|
|
1419
|
+
Wi(r, s - 8, BigInt(this.length * 8), i), this.process(r, 0);
|
|
1420
1420
|
const c = gn(n), l = this.outputLen;
|
|
1421
1421
|
if (l % 4)
|
|
1422
1422
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
@@ -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 Ni(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 ji(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 } = Ni(e[i], n);
|
|
1462
1462
|
[r[i], s[i]] = [a, c];
|
|
1463
1463
|
}
|
|
1464
1464
|
return [r, s];
|
|
1465
1465
|
}
|
|
1466
|
-
const
|
|
1466
|
+
const Ti = (e, n, t) => e << t | n >>> 32 - t, Ei = (e, n, t) => n << t | e >>> 32 - t, Si = (e, n, t) => n << t - 32 | e >>> 64 - t, Oi = (e, n, t) => e << t - 32 | n >>> 64 - t, Li = /* @__PURE__ */ Uint32Array.from([
|
|
1467
1467
|
1116352408,
|
|
1468
1468
|
1899447441,
|
|
1469
1469
|
3049323471,
|
|
@@ -1529,7 +1529,7 @@ const Ei = (e, n, t) => e << t | n >>> 32 - t, Si = (e, n, t) => n << t | e >>>
|
|
|
1529
1529
|
3204031479,
|
|
1530
1530
|
3329325298
|
|
1531
1531
|
]), te = /* @__PURE__ */ new Uint32Array(64);
|
|
1532
|
-
class
|
|
1532
|
+
class ki extends Xi {
|
|
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 Yi extends Ni {
|
|
|
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 + Mi(c, l, d) + Li[A] + te[A] | 0, g = (K(r, 2) ^ K(r, 13) ^ K(r, 22)) + Vi(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 Yi extends Ni {
|
|
|
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 Yi = /* @__PURE__ */ ir(() => new ki()), Zi = Yi;
|
|
1566
|
+
function Ji(e, n) {
|
|
1567
|
+
return Zi(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 Di(e) {
|
|
1570
|
+
const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s = Ji(n);
|
|
1571
1571
|
return s.set([t], 0), r === "bytes" ? s : ee(s);
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function Fi(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(Di({
|
|
1577
1577
|
commitment: i,
|
|
1578
1578
|
to: r,
|
|
1579
1579
|
version: t
|
|
@@ -1583,7 +1583,7 @@ function Hi(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 Hi 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 Qi 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 Ki extends h {
|
|
|
1604
1604
|
});
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
class
|
|
1607
|
+
class Ki 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 qi extends h {
|
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function qi(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 Hi({
|
|
1624
1624
|
maxSize: ut,
|
|
1625
1625
|
size: r
|
|
1626
1626
|
});
|
|
@@ -1641,8 +1641,8 @@ function Ui(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 Ui(e) {
|
|
1645
|
+
const { data: n, kzg: t, to: r } = e, s = e.blobs ?? qi({ 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],
|
|
@@ -1868,16 +1868,16 @@ class Ar extends Map {
|
|
|
1868
1868
|
return this;
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
1871
|
-
const
|
|
1871
|
+
const Gi = BigInt(0), ye = BigInt(1), Ri = BigInt(2), _i = BigInt(7), $i = BigInt(256), eo = 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 = Gi;
|
|
1875
1875
|
for (let i = 0; i < 7; i++)
|
|
1876
|
-
n = (n << ye ^ (n >>
|
|
1876
|
+
n = (n << ye ^ (n >> _i) * eo) % $i, n & Ri && (s ^= ye << (ye << /* @__PURE__ */ BigInt(i)) - ye);
|
|
1877
1877
|
gr.push(s);
|
|
1878
1878
|
}
|
|
1879
|
-
const vr =
|
|
1880
|
-
function
|
|
1879
|
+
const vr = ji(gr, !0), no = vr[0], to = vr[1], gt = (e, n, t) => t > 32 ? Si(e, n, t) : Ti(e, n, t), vt = (e, n, t) => t > 32 ? Oi(e, n, t) : Ei(e, n, t);
|
|
1880
|
+
function ro(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 so(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] ^= no[r], e[1] ^= to[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 = wi(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), ro(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 so = (e, n, t) => ir(() => new Hn(n, e, t)), io = so(1, 136, 256 / 8);
|
|
1971
|
+
function oo(e, n) {
|
|
1972
|
+
return io(Te(e, { strict: !1 }) ? Kt(e) : e);
|
|
1973
1973
|
}
|
|
1974
1974
|
const vn = /* @__PURE__ */ new Ar(8192);
|
|
1975
|
-
function
|
|
1975
|
+
function co(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 = oo(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 ao = /^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 = ao.test(e) ? e.toLowerCase() === e ? !0 : t ? co(e) === e : !0 : !1;
|
|
1990
1990
|
return mn.set(r, s), s;
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return Te(e, { strict: !1 }) ?
|
|
1992
|
+
function lo(e, n, t, { strict: r } = {}) {
|
|
1993
|
+
return Te(e, { strict: !1 }) ? fo(e, n, t, {
|
|
1994
1994
|
strict: r
|
|
1995
|
-
}) :
|
|
1995
|
+
}) : Ao(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 Js({
|
|
2002
2002
|
offset: t,
|
|
2003
2003
|
position: "end",
|
|
2004
2004
|
size: be(e)
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function Ao(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 fo(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 uo(e) {
|
|
2016
2016
|
const { authorizationList: n } = e;
|
|
2017
2017
|
if (n)
|
|
2018
2018
|
for (const t of n) {
|
|
@@ -2024,17 +2024,17 @@ function go(e) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
Qn(e);
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function go(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(lo(t, 0, 1));
|
|
2034
2034
|
if (r !== 32)
|
|
2035
|
-
throw new
|
|
2035
|
+
throw new Qi({ hash: t, size: r });
|
|
2036
2036
|
if (s !== ar)
|
|
2037
|
-
throw new
|
|
2037
|
+
throw new Ki({
|
|
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 vo(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 mo(e) {
|
|
|
2064
2064
|
if (r && r > sn)
|
|
2065
2065
|
throw new Ae({ maxFeePerGas: r });
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function mo(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 po(e) {
|
|
|
2075
2075
|
if (r && r > sn)
|
|
2076
2076
|
throw new Ae({ maxFeePerGas: r });
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function po(e) {
|
|
2079
2079
|
if (e.type)
|
|
2080
2080
|
return e.type;
|
|
2081
2081
|
if (typeof e.authorizationList < "u")
|
|
@@ -2086,7 +2086,7 @@ function Co(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 xi({ 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 bi({ 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
|
|
2107
|
-
const t =
|
|
2108
|
-
return t === "eip1559" ?
|
|
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
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function xo(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
|
+
uo(e);
|
|
2113
|
+
const u = cn(f), v = zi(t);
|
|
2114
2114
|
return Ee([
|
|
2115
2115
|
"0x04",
|
|
2116
2116
|
de([
|
|
@@ -2128,20 +2128,20 @@ function bo(e, n) {
|
|
|
2128
2128
|
])
|
|
2129
2129
|
]);
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function bo(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
|
+
go(e);
|
|
2134
2134
|
let u = e.blobVersionedHashes, v = e.sidecars;
|
|
2135
2135
|
if (e.blobs && (typeof u > "u" || typeof v > "u")) {
|
|
2136
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
2138
|
kzg: k
|
|
2139
2139
|
});
|
|
2140
|
-
if (typeof u > "u" && (u =
|
|
2140
|
+
if (typeof u > "u" && (u = Fi({
|
|
2141
2141
|
commitments: b
|
|
2142
2142
|
})), typeof v > "u") {
|
|
2143
2143
|
const z = tr({ blobs: w, commitments: b, kzg: k });
|
|
2144
|
-
v =
|
|
2144
|
+
v = Ui({ blobs: w, commitments: b, proofs: z });
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
const m = cn(f), g = [
|
|
@@ -2169,7 +2169,7 @@ function zo(e, n) {
|
|
|
2169
2169
|
de(v ? [g, p, I, x] : g)
|
|
2170
2170
|
]);
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function zo(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 Io(e, n) {
|
|
|
2189
2189
|
de(u)
|
|
2190
2190
|
]);
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Io(e, n) {
|
|
2193
2193
|
const { chainId: t, gas: r, data: s, nonce: i, to: a, value: c, accessList: l, gasPrice: d } = e;
|
|
2194
|
-
|
|
2194
|
+
vo(e);
|
|
2195
2195
|
const f = cn(l), A = [
|
|
2196
2196
|
P(t),
|
|
2197
2197
|
i ? P(i) : "0x",
|
|
@@ -2208,9 +2208,9 @@ function wo(e, n) {
|
|
|
2208
2208
|
de(A)
|
|
2209
2209
|
]);
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function wo(e, n) {
|
|
2212
2212
|
const { chainId: t = 0, gas: r, data: s, nonce: i, to: a, value: c, gasPrice: l } = e;
|
|
2213
|
-
|
|
2213
|
+
mo(e);
|
|
2214
2214
|
let d = [
|
|
2215
2215
|
i ? P(i) : "0x",
|
|
2216
2216
|
l ? P(l) : "0x",
|
|
@@ -2227,7 +2227,7 @@ function Po(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 Ci({ 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 Po = {
|
|
2259
2259
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
2260
2260
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
2261
2261
|
l2CrossDomainMessenger: {
|
|
@@ -2266,8 +2266,8 @@ const yo = {
|
|
|
2266
2266
|
l2ToL1MessagePasser: {
|
|
2267
2267
|
address: "0x4200000000000000000000000000000000000016"
|
|
2268
2268
|
}
|
|
2269
|
-
},
|
|
2270
|
-
block: /* @__PURE__ */
|
|
2269
|
+
}, yo = {
|
|
2270
|
+
block: /* @__PURE__ */ ni({
|
|
2271
2271
|
format(e) {
|
|
2272
2272
|
return {
|
|
2273
2273
|
transactions: e.transactions?.map((t) => {
|
|
@@ -2280,13 +2280,13 @@ const yo = {
|
|
|
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__ */ ii({
|
|
2290
2290
|
format(e) {
|
|
2291
2291
|
return {
|
|
2292
2292
|
l1GasPrice: e.l1GasPrice ? me(e.l1GasPrice) : null,
|
|
@@ -2297,14 +2297,14 @@ const yo = {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
})
|
|
2299
2299
|
};
|
|
2300
|
-
function
|
|
2301
|
-
return
|
|
2300
|
+
function Bo(e, n) {
|
|
2301
|
+
return Mo(e) ? Wo(e) : Co(e, n);
|
|
2302
2302
|
}
|
|
2303
|
-
const
|
|
2304
|
-
transaction:
|
|
2303
|
+
const ho = {
|
|
2304
|
+
transaction: Bo
|
|
2305
2305
|
};
|
|
2306
|
-
function
|
|
2307
|
-
|
|
2306
|
+
function Wo(e) {
|
|
2307
|
+
Vo(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,
|
|
@@ -2320,10 +2320,10 @@ function Mo(e) {
|
|
|
2320
2320
|
de(d)
|
|
2321
2321
|
]);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function Mo(e) {
|
|
2324
2324
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function Vo(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 Xo(e) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
const en = {
|
|
2334
2334
|
blockTime: 2e3,
|
|
2335
|
-
contracts:
|
|
2336
|
-
formatters:
|
|
2337
|
-
serializers:
|
|
2335
|
+
contracts: Po,
|
|
2336
|
+
formatters: yo,
|
|
2337
|
+
serializers: ho
|
|
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 Xo 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 No(e) {
|
|
2459
2459
|
return e.reduce((n, { address: t, ...r }) => {
|
|
2460
2460
|
let s = `${n} ${t}:
|
|
2461
2461
|
`;
|
|
@@ -2468,13 +2468,13 @@ function jo(e) {
|
|
|
2468
2468
|
}, ` State Override:
|
|
2469
2469
|
`).slice(0, -1);
|
|
2470
2470
|
}
|
|
2471
|
-
class
|
|
2471
|
+
class jo 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" && `${mi(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 To extends h {
|
|
|
2483
2483
|
nonce: f
|
|
2484
2484
|
});
|
|
2485
2485
|
v && (g += `
|
|
2486
|
-
${
|
|
2486
|
+
${No(v)}`), super(n.shortMessage, {
|
|
2487
2487
|
cause: n,
|
|
2488
2488
|
docsPath: r,
|
|
2489
2489
|
metaMessages: [
|
|
@@ -2500,7 +2500,7 @@ ${jo(v)}`), super(n.shortMessage, {
|
|
|
2500
2500
|
}), this.cause = n;
|
|
2501
2501
|
}
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function To(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,
|
|
@@ -2522,17 +2522,17 @@ function Eo(e, n) {
|
|
|
2522
2522
|
cause: e
|
|
2523
2523
|
});
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function Eo(e, { docsPath: n, ...t }) {
|
|
2526
2526
|
const r = (() => {
|
|
2527
|
-
const s =
|
|
2527
|
+
const s = To(e, t);
|
|
2528
2528
|
return s instanceof dr ? e : s;
|
|
2529
2529
|
})();
|
|
2530
|
-
return new
|
|
2530
|
+
return new jo(r, {
|
|
2531
2531
|
docsPath: n,
|
|
2532
2532
|
...t
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function So(e, { format: n }) {
|
|
2536
2536
|
if (!n)
|
|
2537
2537
|
return {};
|
|
2538
2538
|
const t = {};
|
|
@@ -2544,30 +2544,30 @@ function Oo(e, { format: n }) {
|
|
|
2544
2544
|
const s = n(e || {});
|
|
2545
2545
|
return r(s), t;
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function Oo(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 pi();
|
|
2555
2555
|
if (r && r > sn)
|
|
2556
2556
|
throw new Ae({ maxFeePerGas: r });
|
|
2557
2557
|
if (s && r && s > r)
|
|
2558
2558
|
throw new Ne({ maxFeePerGas: r, maxPriorityFeePerGas: s });
|
|
2559
2559
|
}
|
|
2560
|
-
async function
|
|
2560
|
+
async function Lo(e, n) {
|
|
2561
2561
|
const { account: t = e.account } = n;
|
|
2562
2562
|
if (!t)
|
|
2563
|
-
throw new
|
|
2563
|
+
throw new Xo();
|
|
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, k = (x ||
|
|
2567
|
+
Oo(n);
|
|
2568
|
+
const x = e.chain?.formatters?.transactionRequest?.format, k = (x || ci)({
|
|
2569
2569
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
2570
|
-
...
|
|
2570
|
+
...So(g, { format: x }),
|
|
2571
2571
|
from: r?.address,
|
|
2572
2572
|
accessList: s,
|
|
2573
2573
|
data: c,
|
|
@@ -2588,14 +2588,14 @@ async function ko(e, n) {
|
|
|
2588
2588
|
priorityFeePerGas: BigInt(W)
|
|
2589
2589
|
};
|
|
2590
2590
|
} catch (s) {
|
|
2591
|
-
throw
|
|
2591
|
+
throw Eo(s, {
|
|
2592
2592
|
...n,
|
|
2593
2593
|
account: r,
|
|
2594
2594
|
chain: e.chain
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
const
|
|
2598
|
+
const ko = {
|
|
2599
2599
|
fees: {
|
|
2600
2600
|
estimateFeesPerGas: pt,
|
|
2601
2601
|
async maxPriorityFeePerGas({ block: e, client: n, request: t }) {
|
|
@@ -2612,7 +2612,7 @@ const Yo = {
|
|
|
2612
2612
|
};
|
|
2613
2613
|
async function pt({ client: e, multiply: n, request: t, type: r }) {
|
|
2614
2614
|
try {
|
|
2615
|
-
const s = await
|
|
2615
|
+
const s = await Lo(e, {
|
|
2616
2616
|
...t,
|
|
2617
2617
|
account: t?.account
|
|
2618
2618
|
}), { priorityFeePerGas: i } = s, c = n(BigInt(s.baseFeePerGas)) + i;
|
|
@@ -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
|
+
...ko,
|
|
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
|
+
}), Yo = {
|
|
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
|
+
}, Zo = {
|
|
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
|
+
}, Jo = {
|
|
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: [Yo],
|
|
2809
|
+
aptos: [Zo],
|
|
2810
|
+
dogecoin: [Jo]
|
|
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,7 +2939,7 @@ 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
|
|
2942
|
+
const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton: s }) => {
|
|
2943
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,
|
|
@@ -2962,7 +2962,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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
|
+
Do,
|
|
2966
2966
|
{
|
|
2967
2967
|
title: n,
|
|
2968
2968
|
onBack: t,
|
|
@@ -2975,7 +2975,7 @@ const Fo = ({ 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
|
-
},
|
|
2978
|
+
}, Fo = () => {
|
|
2979
2979
|
const e = M(X);
|
|
2980
2980
|
if (!e)
|
|
2981
2981
|
throw new Error("WalletConnectContext not found");
|
|
@@ -2986,7 +2986,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2986
2986
|
} catch (I) {
|
|
2987
2987
|
console.error("Failed to copy address:", I);
|
|
2988
2988
|
}
|
|
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(
|
|
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(Yr, { 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, {
|
|
@@ -3018,7 +3018,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3018
3018
|
variant: "light",
|
|
3019
3019
|
color: "default",
|
|
3020
3020
|
onPress: () => e.modal.setView(V.SelectChains),
|
|
3021
|
-
endContent: /* @__PURE__ */ o(
|
|
3021
|
+
endContent: /* @__PURE__ */ o(Jr, { className: "size-4" }),
|
|
3022
3022
|
children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
3023
3023
|
/* @__PURE__ */ o(
|
|
3024
3024
|
ze,
|
|
@@ -3038,7 +3038,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3038
3038
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-3", children: [
|
|
3039
3039
|
/* @__PURE__ */ o("div", { className: "w-10 h-10 rounded-full overflow-hidden bg-content2 flex items-center justify-center", children: c ? /* @__PURE__ */ o(fe, { src: c, alt: a, width: 40, height: 40 }) : /* @__PURE__ */ o("div", { className: "w-6 h-6 rounded bg-content3" }) }),
|
|
3040
3040
|
/* @__PURE__ */ C("div", { className: "flex flex-col", children: [
|
|
3041
|
-
/* @__PURE__ */ o("span", { className: "break-all text-foreground", children:
|
|
3041
|
+
/* @__PURE__ */ o("span", { className: "break-all text-foreground", children: Ls(l, 8, 6) || "-" }),
|
|
3042
3042
|
/* @__PURE__ */ o("span", { className: "text-xs text-foreground/70", children: a })
|
|
3043
3043
|
] })
|
|
3044
3044
|
] }),
|
|
@@ -3050,7 +3050,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3050
3050
|
color: "default",
|
|
3051
3051
|
variant: "light",
|
|
3052
3052
|
className: "w-full",
|
|
3053
|
-
startContent: /* @__PURE__ */ o(
|
|
3053
|
+
startContent: /* @__PURE__ */ o(Zr, { className: "size-4" }),
|
|
3054
3054
|
onPress: i,
|
|
3055
3055
|
children: "Disconnect wallet"
|
|
3056
3056
|
}
|
|
@@ -3077,7 +3077,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3077
3077
|
n(Ct), Jt();
|
|
3078
3078
|
}
|
|
3079
3079
|
};
|
|
3080
|
-
},
|
|
3080
|
+
}, Ho = () => {
|
|
3081
3081
|
const e = M(X), n = e?.modal.state;
|
|
3082
3082
|
if (!e)
|
|
3083
3083
|
throw new Error("WalletConnectContext not found");
|
|
@@ -3141,7 +3141,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3141
3141
|
[e?.modal.setView, e?.connect]
|
|
3142
3142
|
)
|
|
3143
3143
|
};
|
|
3144
|
-
},
|
|
3144
|
+
}, Qo = ({
|
|
3145
3145
|
iconSrc: e,
|
|
3146
3146
|
iconAlt: n,
|
|
3147
3147
|
variant: t
|
|
@@ -3158,7 +3158,7 @@ const Fo = ({ 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
|
-
] }),
|
|
3161
|
+
] }), Ko = () => {
|
|
3162
3162
|
const e = M(X);
|
|
3163
3163
|
if (!e)
|
|
3164
3164
|
throw new Error("WalletConnectContext not found");
|
|
@@ -3194,7 +3194,7 @@ const Fo = ({ 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(Qo, { 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,
|
|
@@ -3222,7 +3222,7 @@ const Fo = ({ 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
|
-
] }),
|
|
3225
|
+
] }), qo = () => {
|
|
3226
3226
|
const e = M(X);
|
|
3227
3227
|
if (!e)
|
|
3228
3228
|
throw new Error("WalletConnectContext not found");
|
|
@@ -3235,7 +3235,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3235
3235
|
e.connection.setError(""), e.modal.setView(V.Connecting);
|
|
3236
3236
|
}, children: "Try Again" })
|
|
3237
3237
|
] });
|
|
3238
|
-
},
|
|
3238
|
+
}, Uo = (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 Fo = ({ 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
|
+
}, Go = (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 Uo(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 Fo = ({ 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(Go(d));
|
|
3299
3299
|
}
|
|
3300
3300
|
}, []), J(() => {
|
|
3301
3301
|
if (!e || !s.current)
|
|
@@ -3332,15 +3332,15 @@ const Fo = ({ 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 As(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
|
-
},
|
|
3342
|
+
}, [e, n, t, r, a]), /* @__PURE__ */ o(Dr, { 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
|
+
}, Ro = ({ isOpen: e, onClose: n, onBack: t, url: r, logo: s, logoBackground: i, title: a }) => {
|
|
3344
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." }),
|
|
@@ -3349,23 +3349,23 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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
|
+
}, $o = () => {
|
|
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
|
+
}, ec = (e) => {
|
|
3361
3361
|
if (!e) return null;
|
|
3362
|
-
const n =
|
|
3362
|
+
const n = $o(), 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
|
+
}, nc = (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
|
-
},
|
|
3368
|
+
}, tc = () => {
|
|
3369
3369
|
const e = M(X);
|
|
3370
3370
|
if (!e)
|
|
3371
3371
|
throw new Error("WalletConnectContext not found");
|
|
@@ -3374,7 +3374,7 @@ const Fo = ({ 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(() => ec(s?.links), [s?.links]), a = y(() => nc(s?.links), [s?.links]), [c, l] = Y({
|
|
3378
3378
|
isOpen: !1,
|
|
3379
3379
|
url: ""
|
|
3380
3380
|
}), d = () => {
|
|
@@ -3415,7 +3415,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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
|
+
Ro,
|
|
3419
3419
|
{
|
|
3420
3420
|
title: r,
|
|
3421
3421
|
isOpen: c.isOpen,
|
|
@@ -3427,7 +3427,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3427
3427
|
}
|
|
3428
3428
|
)
|
|
3429
3429
|
] });
|
|
3430
|
-
},
|
|
3430
|
+
}, rc = () => {
|
|
3431
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: [
|
|
@@ -3574,12 +3574,12 @@ const Fo = ({ 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), sc = ["wallets", "all"], ic = (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) => rs(r) ? "wagmi" : "tomo"),
|
|
3583
3583
|
options: {
|
|
3584
3584
|
baseUrl: t
|
|
3585
3585
|
}
|
|
@@ -3597,11 +3597,11 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3597
3597
|
};
|
|
3598
3598
|
}, Le = (e, n = [], t) => {
|
|
3599
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
|
-
() =>
|
|
3600
|
+
() => ic(i),
|
|
3601
3601
|
[i]
|
|
3602
3602
|
// Only recreate when connectors ID changes
|
|
3603
3603
|
), c = Tn({
|
|
3604
|
-
queryKey:
|
|
3604
|
+
queryKey: sc,
|
|
3605
3605
|
queryFn: a,
|
|
3606
3606
|
// Refetch on window focus to update wallet installation status
|
|
3607
3607
|
refetchOnWindowFocus: !0
|
|
@@ -3624,7 +3624,7 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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(oc, {}),
|
|
3628
3628
|
/* @__PURE__ */ C(
|
|
3629
3629
|
Ue,
|
|
3630
3630
|
{
|
|
@@ -3635,12 +3635,12 @@ const Fo = ({ 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(Fr, {})
|
|
3639
3639
|
]
|
|
3640
3640
|
}
|
|
3641
3641
|
)
|
|
3642
3642
|
] }) : null;
|
|
3643
|
-
},
|
|
3643
|
+
}, oc = () => {
|
|
3644
3644
|
const e = M(X);
|
|
3645
3645
|
if (!e) return null;
|
|
3646
3646
|
const { config: n } = e, { links: t } = n;
|
|
@@ -3657,13 +3657,13 @@ const Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3657
3657
|
"."
|
|
3658
3658
|
] })
|
|
3659
3659
|
] }) : null;
|
|
3660
|
-
},
|
|
3660
|
+
}, cc = ({ 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(Hr, { isPressable: !0, isHoverable: !0, shadow: "none", radius: "sm", onPress: () => n?.(e), children: /* @__PURE__ */ C(Qr, { 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 Fo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3671
3671
|
] })
|
|
3672
3672
|
] }) }, t.uuid);
|
|
3673
3673
|
};
|
|
3674
|
-
function
|
|
3674
|
+
function ac({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
3675
3675
|
return n ? /* @__PURE__ */ o(
|
|
3676
3676
|
ue,
|
|
3677
3677
|
{
|
|
@@ -3682,14 +3682,14 @@ function lc({ 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(cc, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
|
|
3686
3686
|
}
|
|
3687
|
-
const
|
|
3687
|
+
const lc = {
|
|
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
|
-
},
|
|
3692
|
+
}, dc = ({ selectedKey: e, onSelectionChange: n }) => {
|
|
3693
3693
|
const t = M(X), r = y(() => {
|
|
3694
3694
|
const i = t?.config?.chains || {}, a = [
|
|
3695
3695
|
{
|
|
@@ -3699,7 +3699,7 @@ const dc = {
|
|
|
3699
3699
|
}
|
|
3700
3700
|
];
|
|
3701
3701
|
return Object.keys(i).forEach((c) => {
|
|
3702
|
-
const l =
|
|
3702
|
+
const l = lc[c];
|
|
3703
3703
|
if (l) {
|
|
3704
3704
|
const d = q[l.chainKey];
|
|
3705
3705
|
a.push({
|
|
@@ -3711,16 +3711,16 @@ const dc = {
|
|
|
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
|
+
Kr,
|
|
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(qr, { title: s(i) }, i.key))
|
|
3721
3721
|
}
|
|
3722
3722
|
);
|
|
3723
|
-
},
|
|
3723
|
+
}, Ac = ({ 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,
|
|
@@ -3747,7 +3747,7 @@ const dc = {
|
|
|
3747
3747
|
children: /* @__PURE__ */ o("span", {})
|
|
3748
3748
|
}
|
|
3749
3749
|
);
|
|
3750
|
-
function
|
|
3750
|
+
function fc({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
3751
3751
|
return n ? /* @__PURE__ */ o(
|
|
3752
3752
|
ue,
|
|
3753
3753
|
{
|
|
@@ -3758,29 +3758,29 @@ function uc({ 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(Ac, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
|
|
3762
3762
|
}
|
|
3763
|
-
const
|
|
3763
|
+
const uc = () => {
|
|
3764
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 Os(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(fc, { 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(Ur, {}), 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
|
+
}, gc = () => {
|
|
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 gc = () => {
|
|
|
3802
3802
|
};
|
|
3803
3803
|
}
|
|
3804
3804
|
}, []), { keyboardHeight: e, isKeyboardVisible: t };
|
|
3805
|
-
},
|
|
3805
|
+
}, vc = (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 = 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 } =
|
|
3810
|
+
}, mc = Nt, pc = () => {
|
|
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 } = gc(), A = y(() => a.filter((g) => g.info?.name?.toLowerCase().includes(c.toLowerCase())).filter((g) => !g.isEmbeddedWallet), [a, c]), u = vc([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 gc = () => {
|
|
|
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
|
+
dc,
|
|
3820
3820
|
{
|
|
3821
3821
|
selectedKey: t?.chainType || "all",
|
|
3822
3822
|
onSelectionChange: (g) => m(g)
|
|
3823
3823
|
}
|
|
3824
3824
|
),
|
|
3825
3825
|
/* @__PURE__ */ o(
|
|
3826
|
-
|
|
3826
|
+
mc,
|
|
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(Gr, {}),
|
|
3832
3832
|
classNames: {
|
|
3833
3833
|
inputWrapper: "rounded-full h-11"
|
|
3834
3834
|
}
|
|
@@ -3844,7 +3844,7 @@ const gc = () => {
|
|
|
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
|
+
ac,
|
|
3848
3848
|
{
|
|
3849
3849
|
loading: i,
|
|
3850
3850
|
wallets: A,
|
|
@@ -3855,15 +3855,15 @@ const gc = () => {
|
|
|
3855
3855
|
),
|
|
3856
3856
|
/* @__PURE__ */ o(Un, {})
|
|
3857
3857
|
] }) });
|
|
3858
|
-
},
|
|
3858
|
+
}, Cc = () => 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 = M(X), i =
|
|
3865
|
+
}, xc = (e = {}) => {
|
|
3866
|
+
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = Y(!1), s = M(X), i = Cc(), { 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 gc = () => {
|
|
|
3895
3895
|
isLoading: t,
|
|
3896
3896
|
handleEmailLogin: async (g) => {
|
|
3897
3897
|
try {
|
|
3898
|
-
const p =
|
|
3898
|
+
const p = Ts(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 gc = () => {
|
|
|
3943
3943
|
}
|
|
3944
3944
|
}
|
|
3945
3945
|
};
|
|
3946
|
-
},
|
|
3946
|
+
}, bc = () => {
|
|
3947
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
|
+
}, zc = ({
|
|
3953
3953
|
text: e = "or",
|
|
3954
3954
|
className: n = "",
|
|
3955
3955
|
lineClassName: t = "bg-content2",
|
|
@@ -3958,7 +3958,7 @@ const gc = () => {
|
|
|
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
|
+
] }), Ic = ({ 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 gc = () => {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
),
|
|
3972
3972
|
/* @__PURE__ */ o("span", { className: "text-foreground text-sm font-medium", children: n })
|
|
3973
|
-
] }) }) : null,
|
|
3973
|
+
] }) }) : null, wc = ({ className: e, width: n = 24, height: t = 24 }) => /* @__PURE__ */ C(
|
|
3974
3974
|
"svg",
|
|
3975
3975
|
{
|
|
3976
3976
|
width: n,
|
|
@@ -4010,7 +4010,7 @@ const gc = () => {
|
|
|
4010
4010
|
)
|
|
4011
4011
|
]
|
|
4012
4012
|
}
|
|
4013
|
-
),
|
|
4013
|
+
), Pc = ({ 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 gc = () => {
|
|
|
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 = M(X), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } =
|
|
4024
|
+
), yc = Nt, Bc = () => {
|
|
4025
|
+
const e = M(X), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } = xc({
|
|
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 && (Rr({
|
|
4033
4033
|
title: e.modal.state.error,
|
|
4034
4034
|
color: "danger",
|
|
4035
4035
|
timeout: 3e3,
|
|
@@ -4040,7 +4040,7 @@ const gc = () => {
|
|
|
4040
4040
|
await t(i);
|
|
4041
4041
|
}, l = () => {
|
|
4042
4042
|
e.modal.setView(V.WalletSearch);
|
|
4043
|
-
}, { isDark: d } =
|
|
4043
|
+
}, { isDark: d } = bc();
|
|
4044
4044
|
return /* @__PURE__ */ C(
|
|
4045
4045
|
F,
|
|
4046
4046
|
{
|
|
@@ -4057,7 +4057,7 @@ const gc = () => {
|
|
|
4057
4057
|
}
|
|
4058
4058
|
),
|
|
4059
4059
|
children: [
|
|
4060
|
-
/* @__PURE__ */ o(
|
|
4060
|
+
/* @__PURE__ */ o(Ic, { 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: [
|
|
@@ -4069,7 +4069,7 @@ const gc = () => {
|
|
|
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(Pc, { 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
|
),
|
|
@@ -4081,13 +4081,13 @@ const gc = () => {
|
|
|
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(wc, { 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
|
+
zc,
|
|
4091
4091
|
{
|
|
4092
4092
|
lineClassName: "h-[0.5px] bg-[#ebebf4]",
|
|
4093
4093
|
textClassName: "text-[#8989ab] text-xs",
|
|
@@ -4096,7 +4096,7 @@ const gc = () => {
|
|
|
4096
4096
|
),
|
|
4097
4097
|
/* @__PURE__ */ C("div", { className: "flex flex-col gap-5 items-center pb-8", children: [
|
|
4098
4098
|
/* @__PURE__ */ o(
|
|
4099
|
-
|
|
4099
|
+
yc,
|
|
4100
4100
|
{
|
|
4101
4101
|
type: "email",
|
|
4102
4102
|
placeholder: "Enter your email",
|
|
@@ -4135,7 +4135,7 @@ const gc = () => {
|
|
|
4135
4135
|
]
|
|
4136
4136
|
}
|
|
4137
4137
|
);
|
|
4138
|
-
},
|
|
4138
|
+
}, hc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAgCAYAAADtwH1UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4eSURBVHgBvVoJcBRVGv5eT8+Vc0KQSwKDIJccEWFFFIMu4oUQd9li0VUDuqulW0ZLYMtdkUR0Wa8iVlmUFosGXK+SLRFUVlcrBtcVF3DjxQqKDiEcUTEzuTNH9/7/6+7JZDJkjoB/5eV1v+7X781/fP///vcEUqS7KnRPs7Ot1AZRousoBnQvIDzGU91P1z4hUAdNr80OZW+tqhD+2P56TbGnJYRSBXqJDuov4IUOo7+An659AqjTIGpz7dgqLqnr2V/XPXV1X5YGQq4SNdtTrKgebzAET4QmQ339kWCLL9TeWFfkUWonTx69VYi48T1eD1pQCgUlkPOn8WGOD/C7PvD8gVpk0/h+X4/+TU1N/G4plRLgJP1h9ge2FhQU+JECiWQv3La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SdvR1zPv3ujKltoWxve9jtYUjKc7T7C5xtvglDA3U/n2yvnTbZm/h4eps8Xj6Hxk04f3k8XUMtcvs8nj6HSuL+GRxP/z/hFFWXpmDkiwAAAABJRU5ErkJggg==", Gn = () => {
|
|
4139
4139
|
const e = M(X);
|
|
4140
4140
|
if (!e)
|
|
4141
4141
|
throw new Error("useAccount must be used within WalletConnectProvider");
|
|
@@ -4156,14 +4156,14 @@ const gc = () => {
|
|
|
4156
4156
|
// signAndSendTransaction: context.signAndSendTransaction,
|
|
4157
4157
|
// sendTransaction: context.sendTransaction,
|
|
4158
4158
|
};
|
|
4159
|
-
},
|
|
4159
|
+
}, Xa = () => {
|
|
4160
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]);
|
|
4164
4164
|
return { connectors: n, currentProvider: t };
|
|
4165
4165
|
};
|
|
4166
|
-
function
|
|
4166
|
+
function Wc(e = !1) {
|
|
4167
4167
|
const [n, t] = Y(e), r = O(() => t(!0), []), s = O(() => t(!1), []), i = O(() => t((c) => !c), []), a = O((c) => t(c), []);
|
|
4168
4168
|
return {
|
|
4169
4169
|
isOpen: n,
|
|
@@ -4173,8 +4173,8 @@ function Mc(e = !1) {
|
|
|
4173
4173
|
onOpenChange: a
|
|
4174
4174
|
};
|
|
4175
4175
|
}
|
|
4176
|
-
const
|
|
4177
|
-
const { isOpen: n, onOpen: t, onClose: r } =
|
|
4176
|
+
const Mc = (e) => {
|
|
4177
|
+
const { isOpen: n, onOpen: t, onClose: r } = Wc(), [s, i] = Y(e), [a, c] = Y(null), [l, d] = Y([]);
|
|
4178
4178
|
J(() => {
|
|
4179
4179
|
s !== e && i(e);
|
|
4180
4180
|
}, [e]);
|
|
@@ -4221,7 +4221,7 @@ let xe = null, jr = null;
|
|
|
4221
4221
|
function wt(e) {
|
|
4222
4222
|
xe = e;
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4224
|
+
function Vc() {
|
|
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 = fs();
|
|
4259
4259
|
return e ? n : null;
|
|
4260
4260
|
}
|
|
4261
|
-
function
|
|
4261
|
+
function Xc() {
|
|
4262
4262
|
if (!ln())
|
|
4263
4263
|
return null;
|
|
4264
|
-
const e = Rn(), n =
|
|
4264
|
+
const e = Rn(), n = gs();
|
|
4265
4265
|
return e ? n : null;
|
|
4266
4266
|
}
|
|
4267
|
-
function
|
|
4267
|
+
function Nc() {
|
|
4268
4268
|
if (!ln())
|
|
4269
4269
|
return null;
|
|
4270
|
-
const e = Rn(), n =
|
|
4270
|
+
const e = Rn(), n = us();
|
|
4271
4271
|
return e ? n : null;
|
|
4272
4272
|
}
|
|
4273
4273
|
function Xn(e, n, t) {
|
|
4274
|
-
const r =
|
|
4274
|
+
const r = Vc();
|
|
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
|
+
}, jc = ({
|
|
4287
4287
|
walletState: e,
|
|
4288
4288
|
modalState: n,
|
|
4289
4289
|
setWalletState: t,
|
|
@@ -4291,7 +4291,7 @@ 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 = M(an)?.connectedInfo ?? null, u = Sr(), v =
|
|
4294
|
+
const { currentProvider: a, currentWallet: c, isConnected: l, actionsLoading: d } = e, A = M(an)?.connectedInfo ?? null, u = Sr(), v = Xc(), m = Tr(), g = O(
|
|
4295
4295
|
async (b) => {
|
|
4296
4296
|
const { wallet: z, chainType: W } = b, S = (z.connectors[W] || null)?.provider || null;
|
|
4297
4297
|
if (l && c?.info?.uuid === z.info.uuid && W === e.chainType)
|
|
@@ -4395,7 +4395,7 @@ 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 Es({
|
|
4399
4399
|
address: B.address,
|
|
4400
4400
|
chainId: B.chainId,
|
|
4401
4401
|
chainType: W,
|
|
@@ -4486,7 +4486,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
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 ss(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
|
}
|
|
@@ -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 is(W, {
|
|
4514
4514
|
chainType: e.chainType,
|
|
4515
4515
|
account: {
|
|
4516
4516
|
address: e.address,
|
|
@@ -4548,7 +4548,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4548
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
|
|
4551
|
+
return t((S) => ({ ...S, actionsLoading: !0 })), await os(
|
|
4552
4552
|
{ message: z, nonce: W || Math.random().toString(36).substring(7) },
|
|
4553
4553
|
{
|
|
4554
4554
|
chainType: e.chainType,
|
|
@@ -4593,7 +4593,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4593
4593
|
// sendTransaction,
|
|
4594
4594
|
_setCurrentWallet: k
|
|
4595
4595
|
};
|
|
4596
|
-
},
|
|
4596
|
+
}, Na = () => {
|
|
4597
4597
|
const e = M(X);
|
|
4598
4598
|
if (!e)
|
|
4599
4599
|
throw new Error("useWalletConnect must be used within WalletConnectProvider");
|
|
@@ -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
|
+
}, Tc = () => {
|
|
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 } = Tc(), 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;
|
|
@@ -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
|
+
}, Ec = ({ 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,13 +4700,13 @@ 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: hc, 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
|
-
},
|
|
4709
|
+
}, Sc = () => {
|
|
4710
4710
|
const e = M(X);
|
|
4711
4711
|
if (!e)
|
|
4712
4712
|
throw new Error("WalletConnectContext not found");
|
|
@@ -4716,8 +4716,8 @@ 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(Ec, { chains: s }) }) }) });
|
|
4720
|
+
}, Oc = ({ chainType: e, onSelect: n }) => {
|
|
4721
4721
|
const t = q[e];
|
|
4722
4722
|
if (!t)
|
|
4723
4723
|
throw new Error(`Chain ${e} not found`);
|
|
@@ -4735,15 +4735,15 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4735
4735
|
children: /* @__PURE__ */ o("span", { className: "flex-1 text-left text-sm font-medium", children: q[e].name })
|
|
4736
4736
|
}
|
|
4737
4737
|
);
|
|
4738
|
-
},
|
|
4739
|
-
|
|
4738
|
+
}, Lc = ({ 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
|
+
Oc,
|
|
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
|
-
)) }),
|
|
4746
|
+
)) }), kc = () => {
|
|
4747
4747
|
const e = M(X);
|
|
4748
4748
|
if (!e)
|
|
4749
4749
|
throw new Error("WalletConnectContext not found");
|
|
@@ -4774,9 +4774,9 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4774
4774
|
/* @__PURE__ */ o("br", {}),
|
|
4775
4775
|
"Please select the network you'd like to connect to."
|
|
4776
4776
|
] }),
|
|
4777
|
-
/* @__PURE__ */ o(
|
|
4777
|
+
/* @__PURE__ */ o(Lc, { providers: s, onSelect: i })
|
|
4778
4778
|
] }) });
|
|
4779
|
-
}, Zc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDE1MCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGZvcmVpZ25PYmplY3QgeD0iMjEuMDg4MiIgeT0iMjEuNTg0MyIgd2lkdGg9IjEwNi45MjgiIGhlaWdodD0iMTA2LjkzNSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tkcm9wLWZpbHRlcjpibHVyKDAuNjlweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyXzBfMTQxXzExMDJfY2xpcF9wYXRoKTtoZWlnaHQ6MTAwJTt3aWR0aDoxMDAlIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGcgZGF0YS1maWdtYS1iZy1ibHVyLXJhZGl1cz0iMS4zNzQ2NSI+CiAgPHBhdGggZD0iTTg0LjYyNCA3NC42ODI2SDEyNi40MzVDMTI2LjQzNyA3NC44MDYzIDEyNi40MzkgNzQuOTI4MSAx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bGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==", Jc = () => {
|
|
4780
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");
|
|
@@ -4797,7 +4797,7 @@ 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 ? Zc : Yc, 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." })
|
|
@@ -4825,7 +4825,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4825
4825
|
}
|
|
4826
4826
|
) })
|
|
4827
4827
|
] }) });
|
|
4828
|
-
},
|
|
4828
|
+
}, Dc = "Please reselect the network you want to switch to", Fc = ae.unsupported, Hc = () => {
|
|
4829
4829
|
const e = M(X);
|
|
4830
4830
|
if (!e)
|
|
4831
4831
|
throw new Error("WalletConnectContext not found");
|
|
@@ -4833,7 +4833,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
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: Fc, 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,11 +4842,11 @@ 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: Dc })
|
|
4846
4846
|
] }),
|
|
4847
4847
|
/* @__PURE__ */ o(L, { className: "w-full my-4", onPress: t, children: "Got it" })
|
|
4848
4848
|
] }) });
|
|
4849
|
-
},
|
|
4849
|
+
}, Qc = () => {
|
|
4850
4850
|
const e = M(X);
|
|
4851
4851
|
if (!e)
|
|
4852
4852
|
throw new Error("WalletConnectContext not found");
|
|
@@ -4889,39 +4889,39 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4889
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(L, { isIconOnly: !0, size: "sm", variant: "light", onPress: r, radius: "full", children: /* @__PURE__ */ o(Wt, {}) }) : null, [r]), a = y(() => n ? null : /* @__PURE__ */ C(
|
|
4892
|
+
[V.Loading]: () => /* @__PURE__ */ o(rc, {}),
|
|
4893
|
+
[V.Error]: () => /* @__PURE__ */ o(qo, {}),
|
|
4894
|
+
[V.Connecting]: () => /* @__PURE__ */ o(Ko, {}),
|
|
4895
|
+
[V.WalletList]: () => /* @__PURE__ */ o(uc, {}),
|
|
4896
|
+
[V.WalletSearch]: () => /* @__PURE__ */ o(pc, {}),
|
|
4897
|
+
[V.WalletSelectProviders]: () => /* @__PURE__ */ o(kc, {}),
|
|
4898
|
+
[V.WalletInstallGuide]: () => /* @__PURE__ */ o(tc, {}),
|
|
4899
|
+
[V.Account]: () => /* @__PURE__ */ o(Fo, {}),
|
|
4900
|
+
[V.SelectChains]: () => /* @__PURE__ */ o(Sc, {}),
|
|
4901
|
+
[V.ChangeNetwork]: () => /* @__PURE__ */ o(Ho, {}),
|
|
4902
|
+
[V.SignInWallet]: () => /* @__PURE__ */ o(Jc, {}),
|
|
4903
|
+
[V.WalletConnect]: () => /* @__PURE__ */ o(Qc, {}),
|
|
4904
|
+
[V.UnsupportChain]: () => /* @__PURE__ */ o(Hc, {}),
|
|
4905
|
+
[V.WalletHome]: () => /* @__PURE__ */ o(Bc, {})
|
|
4906
|
+
}, Kc = (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
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(
|
|
4911
|
+
] }), [n, e.title, e.onClose, i]), c = y(() => t ? null : /* @__PURE__ */ o($r, { 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(es, { className: "bg-content1", children: [
|
|
4919
4919
|
a,
|
|
4920
4920
|
c
|
|
4921
4921
|
] })
|
|
4922
4922
|
}
|
|
4923
4923
|
);
|
|
4924
|
-
},
|
|
4924
|
+
}, qc = () => {
|
|
4925
4925
|
const e = M(X);
|
|
4926
4926
|
if (!e)
|
|
4927
4927
|
return null;
|
|
@@ -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
|
+
Kc,
|
|
4934
4934
|
{
|
|
4935
4935
|
hideHeader: !0,
|
|
4936
4936
|
isOpen: n.isOpen,
|
|
@@ -4941,24 +4941,27 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4941
4941
|
}
|
|
4942
4942
|
);
|
|
4943
4943
|
};
|
|
4944
|
-
function
|
|
4944
|
+
function Uc(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 Gc(e, n) {
|
|
4950
4950
|
return n ? e?.error ? "error" : !e || e.isLoading ? "initializing" : e.wallet ? "ready" : "unavailable" : "disabled";
|
|
4951
4951
|
}
|
|
4952
|
-
function
|
|
4952
|
+
function Rc(e, n) {
|
|
4953
4953
|
return n ? "connecting" : e ? "connected" : "disconnected";
|
|
4954
4954
|
}
|
|
4955
|
-
const
|
|
4956
|
-
|
|
4957
|
-
|
|
4955
|
+
const _c = ["embeddedWallet"], $c = "prod-dogeos";
|
|
4956
|
+
function ea(e) {
|
|
4957
|
+
return {
|
|
4958
4958
|
...e,
|
|
4959
4959
|
clientId: e.clientId,
|
|
4960
|
-
stage: e.stage
|
|
4961
|
-
}
|
|
4960
|
+
stage: e.stage ?? $c
|
|
4961
|
+
};
|
|
4962
|
+
}
|
|
4963
|
+
async function na(e, n) {
|
|
4964
|
+
const t = ms.getInstance(), r = await t.init(e);
|
|
4962
4965
|
if (n?.aborted)
|
|
4963
4966
|
throw new Error("Aborted");
|
|
4964
4967
|
if (!r)
|
|
@@ -4970,7 +4973,7 @@ async function ea(e, n) {
|
|
|
4970
4973
|
connectedInfo: r.connectedInfo ?? null
|
|
4971
4974
|
};
|
|
4972
4975
|
}
|
|
4973
|
-
const
|
|
4976
|
+
const ta = ({
|
|
4974
4977
|
config: e,
|
|
4975
4978
|
setMainView: n,
|
|
4976
4979
|
defaultMainView: t,
|
|
@@ -4978,34 +4981,34 @@ const na = ({
|
|
|
4978
4981
|
defaultTheme: s,
|
|
4979
4982
|
themeMode: i
|
|
4980
4983
|
}) => {
|
|
4981
|
-
const a = Tn({
|
|
4982
|
-
queryKey: [
|
|
4983
|
-
queryFn: ({ signal:
|
|
4984
|
+
const a = ea(e), c = Tn({
|
|
4985
|
+
queryKey: [..._c, a],
|
|
4986
|
+
queryFn: ({ signal: u }) => na(a, u),
|
|
4984
4987
|
enabled: r,
|
|
4985
4988
|
refetchOnWindowFocus: !1,
|
|
4986
4989
|
refetchOnReconnect: !1,
|
|
4987
4990
|
staleTime: 1 / 0
|
|
4988
|
-
}), { data:
|
|
4991
|
+
}), { data: l, isLoading: d, isError: f, error: A } = c;
|
|
4989
4992
|
return J(() => {
|
|
4990
4993
|
if (!r) {
|
|
4991
4994
|
n(t);
|
|
4992
4995
|
return;
|
|
4993
4996
|
}
|
|
4994
|
-
|
|
4995
|
-
}, [r,
|
|
4996
|
-
s &&
|
|
4997
|
+
d || n(t);
|
|
4998
|
+
}, [r, d, n, t]), J(() => {
|
|
4999
|
+
s && l?.wallet && l.wallet.themeChange({
|
|
4997
5000
|
...s,
|
|
4998
5001
|
defaultTheme: i || s.defaultTheme || "light"
|
|
4999
5002
|
});
|
|
5000
|
-
}, [s, i,
|
|
5001
|
-
wallet:
|
|
5002
|
-
isAvailable:
|
|
5003
|
-
message:
|
|
5004
|
-
connectedInfo:
|
|
5005
|
-
isLoading: r &&
|
|
5006
|
-
error:
|
|
5003
|
+
}, [s, i, l?.wallet]), f && A && console.error("Failed to initialize embedded wallet:", A), {
|
|
5004
|
+
wallet: l?.wallet ?? null,
|
|
5005
|
+
isAvailable: l?.isAvailable ?? !1,
|
|
5006
|
+
message: l?.message ?? null,
|
|
5007
|
+
connectedInfo: l?.connectedInfo ?? null,
|
|
5008
|
+
isLoading: r && d,
|
|
5009
|
+
error: f ? A instanceof Error ? A : new Error("Failed to initialize embedded wallet") : null
|
|
5007
5010
|
};
|
|
5008
|
-
},
|
|
5011
|
+
}, ra = ({
|
|
5009
5012
|
setWalletState: e,
|
|
5010
5013
|
currentWallet: n,
|
|
5011
5014
|
isConnected: t,
|
|
@@ -5013,13 +5016,13 @@ const na = ({
|
|
|
5013
5016
|
embeddedWalletState: s,
|
|
5014
5017
|
wagmiConfig: i
|
|
5015
5018
|
}) => {
|
|
5016
|
-
const a = ce(!1), { data: c } = Le("all", [], { embeddedWallet: s?.wallet ?? null }), l = y(() => c?.all || [], [c?.all]), d = Sr(), f =
|
|
5019
|
+
const a = ce(!1), { data: c } = Le("all", [], { embeddedWallet: s?.wallet ?? null }), l = y(() => c?.all || [], [c?.all]), d = Sr(), f = Nc();
|
|
5017
5020
|
J(() => {
|
|
5018
5021
|
if (a.current || t || n)
|
|
5019
5022
|
return;
|
|
5020
5023
|
const A = () => {
|
|
5021
5024
|
try {
|
|
5022
|
-
const v = s?.wallet, m =
|
|
5025
|
+
const v = s?.wallet, m = Ss();
|
|
5023
5026
|
if (!m) {
|
|
5024
5027
|
a.current = !0;
|
|
5025
5028
|
return;
|
|
@@ -5177,11 +5180,11 @@ const na = ({
|
|
|
5177
5180
|
f
|
|
5178
5181
|
]);
|
|
5179
5182
|
};
|
|
5180
|
-
function
|
|
5183
|
+
function sa(e) {
|
|
5181
5184
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5182
5185
|
}
|
|
5183
5186
|
var xn = { exports: {} }, yt;
|
|
5184
|
-
function
|
|
5187
|
+
function ia() {
|
|
5185
5188
|
return yt || (yt = 1, (function(e) {
|
|
5186
5189
|
var n = Object.prototype.hasOwnProperty, t = "~";
|
|
5187
5190
|
function r() {
|
|
@@ -5287,9 +5290,9 @@ function sa() {
|
|
|
5287
5290
|
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = t, c.EventEmitter = c, e.exports = c;
|
|
5288
5291
|
})(xn)), xn.exports;
|
|
5289
5292
|
}
|
|
5290
|
-
var
|
|
5291
|
-
const
|
|
5292
|
-
class
|
|
5293
|
+
var oa = ia();
|
|
5294
|
+
const ca = /* @__PURE__ */ sa(oa);
|
|
5295
|
+
class aa {
|
|
5293
5296
|
constructor(n) {
|
|
5294
5297
|
Object.defineProperty(this, "uid", {
|
|
5295
5298
|
enumerable: !0,
|
|
@@ -5300,7 +5303,7 @@ class ca {
|
|
|
5300
5303
|
enumerable: !0,
|
|
5301
5304
|
configurable: !0,
|
|
5302
5305
|
writable: !0,
|
|
5303
|
-
value: new
|
|
5306
|
+
value: new ca()
|
|
5304
5307
|
});
|
|
5305
5308
|
}
|
|
5306
5309
|
on(n, t) {
|
|
@@ -5320,12 +5323,12 @@ class ca {
|
|
|
5320
5323
|
return this._emitter.listenerCount(n);
|
|
5321
5324
|
}
|
|
5322
5325
|
}
|
|
5323
|
-
function
|
|
5324
|
-
return new
|
|
5326
|
+
function la(e) {
|
|
5327
|
+
return new aa(e);
|
|
5325
5328
|
}
|
|
5326
5329
|
const Nn = 256;
|
|
5327
5330
|
let Qe = Nn, Ke;
|
|
5328
|
-
function
|
|
5331
|
+
function da(e = 11) {
|
|
5329
5332
|
if (!Ke || Qe + e > Nn * 2) {
|
|
5330
5333
|
Ke = "", Qe = 0;
|
|
5331
5334
|
for (let n = 0; n < Nn; n++)
|
|
@@ -5333,18 +5336,18 @@ function la(e = 11) {
|
|
|
5333
5336
|
}
|
|
5334
5337
|
return Ke.substring(Qe, Qe++ + e);
|
|
5335
5338
|
}
|
|
5336
|
-
const
|
|
5337
|
-
var
|
|
5339
|
+
const Aa = "2.22.1", fa = () => `@wagmi/core@${Aa}`;
|
|
5340
|
+
var Lr = function(e, n, t, r) {
|
|
5338
5341
|
if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
5339
5342
|
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");
|
|
5340
5343
|
return t === "m" ? r : t === "a" ? r.call(e) : r ? r.value : n.get(e);
|
|
5341
|
-
}, nn,
|
|
5344
|
+
}, nn, kr;
|
|
5342
5345
|
class je extends Error {
|
|
5343
5346
|
get docsBaseUrl() {
|
|
5344
5347
|
return "https://wagmi.sh/core";
|
|
5345
5348
|
}
|
|
5346
5349
|
get version() {
|
|
5347
|
-
return
|
|
5350
|
+
return fa();
|
|
5348
5351
|
}
|
|
5349
5352
|
constructor(n, t = {}) {
|
|
5350
5353
|
super(), nn.add(this), Object.defineProperty(this, "details", {
|
|
@@ -5387,13 +5390,13 @@ class je extends Error {
|
|
|
5387
5390
|
`), t.cause && (this.cause = t.cause), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.shortMessage = n;
|
|
5388
5391
|
}
|
|
5389
5392
|
walk(n) {
|
|
5390
|
-
return
|
|
5393
|
+
return Lr(this, nn, "m", kr).call(this, this, n);
|
|
5391
5394
|
}
|
|
5392
5395
|
}
|
|
5393
|
-
nn = /* @__PURE__ */ new WeakSet(),
|
|
5394
|
-
return t?.(n) ? n : n.cause ?
|
|
5396
|
+
nn = /* @__PURE__ */ new WeakSet(), kr = function e(n, t) {
|
|
5397
|
+
return t?.(n) ? n : n.cause ? Lr(this, nn, "m", e).call(this, n.cause, t) : n;
|
|
5395
5398
|
};
|
|
5396
|
-
class
|
|
5399
|
+
class ua extends je {
|
|
5397
5400
|
constructor() {
|
|
5398
5401
|
super("Chain not configured."), Object.defineProperty(this, "name", {
|
|
5399
5402
|
enumerable: !0,
|
|
@@ -5424,7 +5427,7 @@ function _n(e = {}) {
|
|
|
5424
5427
|
return d;
|
|
5425
5428
|
}
|
|
5426
5429
|
return typeof l == "object" ? l : typeof l == "string" ? {
|
|
5427
|
-
...
|
|
5430
|
+
...ga[l] ?? {
|
|
5428
5431
|
id: l,
|
|
5429
5432
|
name: `${l[0].toUpperCase()}${l.slice(1)}`,
|
|
5430
5433
|
provider: `is${l[0].toUpperCase()}${l.slice(1)}`
|
|
@@ -5501,7 +5504,7 @@ function _n(e = {}) {
|
|
|
5501
5504
|
throw new ve();
|
|
5502
5505
|
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));
|
|
5503
5506
|
try {
|
|
5504
|
-
await
|
|
5507
|
+
await Cs(() => (
|
|
5505
5508
|
// TODO: Remove explicit type for viem@3
|
|
5506
5509
|
d.request({
|
|
5507
5510
|
// `'wallet_revokePermissions'` added in `viem@2.10.3`
|
|
@@ -5552,7 +5555,7 @@ function _n(e = {}) {
|
|
|
5552
5555
|
}
|
|
5553
5556
|
throw new ve();
|
|
5554
5557
|
}
|
|
5555
|
-
return !!(await
|
|
5558
|
+
return !!(await ps(() => this.getAccounts())).length;
|
|
5556
5559
|
} catch {
|
|
5557
5560
|
return !1;
|
|
5558
5561
|
}
|
|
@@ -5563,7 +5566,7 @@ function _n(e = {}) {
|
|
|
5563
5566
|
throw new ve();
|
|
5564
5567
|
const u = l.chains.find((m) => m.id === f);
|
|
5565
5568
|
if (!u)
|
|
5566
|
-
throw new tt(new
|
|
5569
|
+
throw new tt(new ua());
|
|
5567
5570
|
const v = new Promise((m) => {
|
|
5568
5571
|
const g = ((p) => {
|
|
5569
5572
|
"chainId" in p && p.chainId === f && (l.emitter.off("change", g), m());
|
|
@@ -5650,7 +5653,7 @@ function _n(e = {}) {
|
|
|
5650
5653
|
}
|
|
5651
5654
|
});
|
|
5652
5655
|
}
|
|
5653
|
-
const
|
|
5656
|
+
const ga = {
|
|
5654
5657
|
coinbaseWallet: {
|
|
5655
5658
|
id: "coinbaseWallet",
|
|
5656
5659
|
name: "Coinbase Wallet",
|
|
@@ -5710,14 +5713,14 @@ function qe(e, n) {
|
|
|
5710
5713
|
if (r && t(r))
|
|
5711
5714
|
return r;
|
|
5712
5715
|
}
|
|
5713
|
-
function
|
|
5716
|
+
function va(e, n = T.EVM) {
|
|
5714
5717
|
if (!e.providers[n])
|
|
5715
5718
|
return null;
|
|
5716
5719
|
const t = e.providers[n]?.provider;
|
|
5717
5720
|
if (!t)
|
|
5718
5721
|
return null;
|
|
5719
5722
|
const r = e.info, s = r.rdns || r.uuid || `wallet-${r.name.toLowerCase().replace(/\s+/g, "-")}`;
|
|
5720
|
-
return
|
|
5723
|
+
return vs((i) => ({
|
|
5721
5724
|
..._n({
|
|
5722
5725
|
target: () => ({
|
|
5723
5726
|
id: s,
|
|
@@ -5733,14 +5736,14 @@ function ga(e, n = T.EVM) {
|
|
|
5733
5736
|
emitter: i.emitter
|
|
5734
5737
|
}));
|
|
5735
5738
|
}
|
|
5736
|
-
function
|
|
5739
|
+
function ma(e, n = T.EVM, t) {
|
|
5737
5740
|
const r = [];
|
|
5738
5741
|
if (t.length === 0)
|
|
5739
5742
|
return r;
|
|
5740
5743
|
for (const s of e) {
|
|
5741
|
-
const i =
|
|
5744
|
+
const i = va(s, n);
|
|
5742
5745
|
if (i) {
|
|
5743
|
-
const a =
|
|
5746
|
+
const a = la(da());
|
|
5744
5747
|
r.push(
|
|
5745
5748
|
i({
|
|
5746
5749
|
chains: t,
|
|
@@ -5751,13 +5754,13 @@ function va(e, n = T.EVM, t) {
|
|
|
5751
5754
|
}
|
|
5752
5755
|
return r;
|
|
5753
5756
|
}
|
|
5754
|
-
function
|
|
5757
|
+
function pa(e, n = []) {
|
|
5755
5758
|
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)));
|
|
5756
5759
|
for (const i of e)
|
|
5757
5760
|
s.has(r(i)) || t.push(i);
|
|
5758
5761
|
return t;
|
|
5759
5762
|
}
|
|
5760
|
-
const
|
|
5763
|
+
const Ca = ({
|
|
5761
5764
|
children: e,
|
|
5762
5765
|
contextConfig: n,
|
|
5763
5766
|
defaultThemeConfig: t,
|
|
@@ -5771,14 +5774,14 @@ const pa = ({
|
|
|
5771
5774
|
connectedInfo: g,
|
|
5772
5775
|
message: p,
|
|
5773
5776
|
error: I
|
|
5774
|
-
} =
|
|
5777
|
+
} = ta({
|
|
5775
5778
|
config: n.embeddedWalletConfig,
|
|
5776
5779
|
setMainView: a,
|
|
5777
5780
|
defaultMainView: r,
|
|
5778
5781
|
enabled: s,
|
|
5779
5782
|
defaultTheme: t,
|
|
5780
5783
|
themeMode: n.themeMode
|
|
5781
|
-
}), x =
|
|
5784
|
+
}), x = Mc(i), w = O(() => {
|
|
5782
5785
|
x.setView(c.isConnected ? V.Account : i), x.openModal();
|
|
5783
5786
|
}, [x, c.isConnected, i]), k = y(
|
|
5784
5787
|
() => ({
|
|
@@ -5808,7 +5811,7 @@ const pa = ({
|
|
|
5808
5811
|
w,
|
|
5809
5812
|
i
|
|
5810
5813
|
]
|
|
5811
|
-
), b =
|
|
5814
|
+
), b = Rc(c.isConnected, c.isConnecting), z = y(
|
|
5812
5815
|
() => ({
|
|
5813
5816
|
connectionStatus: b,
|
|
5814
5817
|
isConnected: c.isConnected,
|
|
@@ -5846,7 +5849,7 @@ const pa = ({
|
|
|
5846
5849
|
}),
|
|
5847
5850
|
[u, v, m, g, p, I]
|
|
5848
5851
|
), S = y(
|
|
5849
|
-
() =>
|
|
5852
|
+
() => Gc(E, s),
|
|
5850
5853
|
[E, s]
|
|
5851
5854
|
), B = y(
|
|
5852
5855
|
() => ({
|
|
@@ -5870,11 +5873,11 @@ const pa = ({
|
|
|
5870
5873
|
pn(null);
|
|
5871
5874
|
return;
|
|
5872
5875
|
}
|
|
5873
|
-
const Z = N.connectors ? [...N.connectors] : [], Q = N.chains ? [...N.chains] : [], ke = j?.data?.all?.filter((Ze) => Ze.connectors[T.EVM]), Ye =
|
|
5876
|
+
const Z = N.connectors ? [...N.connectors] : [], Q = N.chains ? [...N.chains] : [], ke = j?.data?.all?.filter((Ze) => Ze.connectors[T.EVM]), Ye = ma(ke || [], T.EVM, Q), ge = pa(Ye, Z);
|
|
5874
5877
|
ge.length > 0 ? pn(ge) : pn(null);
|
|
5875
5878
|
}, [j.data, N]), J(() => {
|
|
5876
|
-
|
|
5877
|
-
}, [n?.walletConnectConfig]),
|
|
5879
|
+
cs(n?.walletConnectConfig || Vn);
|
|
5880
|
+
}, [n?.walletConnectConfig]), ra({
|
|
5878
5881
|
setWalletState: l,
|
|
5879
5882
|
currentWallet: W.currentWallet,
|
|
5880
5883
|
isConnected: z.isConnected,
|
|
@@ -5892,7 +5895,7 @@ const pa = ({
|
|
|
5892
5895
|
ge.removeListener?.("chainChanged", Ye);
|
|
5893
5896
|
};
|
|
5894
5897
|
}, [c.isConnected, c.chainType, c.currentProvider, l, c]), /* @__PURE__ */ o(an.Provider, { value: E, children: /* @__PURE__ */ o(X.Provider, { value: D, children: /* @__PURE__ */ o(
|
|
5895
|
-
|
|
5898
|
+
xa,
|
|
5896
5899
|
{
|
|
5897
5900
|
walletState: c,
|
|
5898
5901
|
modalState: x,
|
|
@@ -5906,7 +5909,7 @@ const pa = ({
|
|
|
5906
5909
|
}
|
|
5907
5910
|
) }) });
|
|
5908
5911
|
};
|
|
5909
|
-
function
|
|
5912
|
+
function xa({
|
|
5910
5913
|
children: e,
|
|
5911
5914
|
walletState: n,
|
|
5912
5915
|
modalState: t,
|
|
@@ -5917,7 +5920,7 @@ function Ca({
|
|
|
5917
5920
|
defaultThemeConfig: c,
|
|
5918
5921
|
themeMode: l
|
|
5919
5922
|
}) {
|
|
5920
|
-
const d = M(X), f =
|
|
5923
|
+
const d = M(X), f = jc({
|
|
5921
5924
|
walletState: n,
|
|
5922
5925
|
modalState: t,
|
|
5923
5926
|
setWalletState: r,
|
|
@@ -5932,13 +5935,13 @@ function Ca({
|
|
|
5932
5935
|
[d, f]
|
|
5933
5936
|
);
|
|
5934
5937
|
return /* @__PURE__ */ o(X.Provider, { value: A, children: /* @__PURE__ */ C(
|
|
5935
|
-
|
|
5938
|
+
ns,
|
|
5936
5939
|
{
|
|
5937
5940
|
themeConfig: c,
|
|
5938
5941
|
defaultTheme: l || "light",
|
|
5939
5942
|
children: [
|
|
5940
5943
|
/* @__PURE__ */ o(
|
|
5941
|
-
|
|
5944
|
+
ts,
|
|
5942
5945
|
{
|
|
5943
5946
|
maxVisibleToasts: 3,
|
|
5944
5947
|
placement: "top-center",
|
|
@@ -5950,18 +5953,18 @@ function Ca({
|
|
|
5950
5953
|
}
|
|
5951
5954
|
),
|
|
5952
5955
|
e,
|
|
5953
|
-
/* @__PURE__ */ o("div", { id: "modal-container", children: /* @__PURE__ */ o(
|
|
5956
|
+
/* @__PURE__ */ o("div", { id: "modal-container", children: /* @__PURE__ */ o(qc, {}) })
|
|
5954
5957
|
]
|
|
5955
5958
|
}
|
|
5956
5959
|
) });
|
|
5957
5960
|
}
|
|
5958
|
-
const
|
|
5961
|
+
const ba = new ls({
|
|
5959
5962
|
defaultOptions: {
|
|
5960
5963
|
queries: {
|
|
5961
5964
|
refetchOnWindowFocus: !1
|
|
5962
5965
|
}
|
|
5963
5966
|
}
|
|
5964
|
-
}),
|
|
5967
|
+
}), ja = ({ children: e, config: n }) => {
|
|
5965
5968
|
const t = Er(), r = y(() => {
|
|
5966
5969
|
const c = n || ie, l = c.login ? {
|
|
5967
5970
|
basicLogins: c.login.basicLogins ?? [],
|
|
@@ -5997,7 +6000,7 @@ const xa = new ds({
|
|
|
5997
6000
|
}
|
|
5998
6001
|
};
|
|
5999
6002
|
return wt(t || null), v;
|
|
6000
|
-
}, [n, t]), s = V.WalletHome, i = y(() =>
|
|
6003
|
+
}, [n, t]), s = V.WalletHome, i = y(() => Uc(n?.login), [n?.login]), a = y(() => {
|
|
6001
6004
|
const c = yr(), l = n?.theme;
|
|
6002
6005
|
if (!l) return c;
|
|
6003
6006
|
const d = c.themes ?? {}, f = l.themes ?? {}, A = (u, v) => {
|
|
@@ -6020,8 +6023,8 @@ const xa = new ds({
|
|
|
6020
6023
|
}
|
|
6021
6024
|
};
|
|
6022
6025
|
}, [n?.theme]);
|
|
6023
|
-
return typeof window > "u" ? null : /* @__PURE__ */ o(
|
|
6024
|
-
|
|
6026
|
+
return typeof window > "u" ? null : /* @__PURE__ */ o(as, { client: ba, children: /* @__PURE__ */ o(
|
|
6027
|
+
Ca,
|
|
6025
6028
|
{
|
|
6026
6029
|
contextConfig: r,
|
|
6027
6030
|
defaultThemeConfig: a,
|
|
@@ -6030,7 +6033,7 @@ const xa = new ds({
|
|
|
6030
6033
|
children: e
|
|
6031
6034
|
}
|
|
6032
6035
|
) });
|
|
6033
|
-
},
|
|
6036
|
+
}, Ta = ({ className: e, style: n }) => {
|
|
6034
6037
|
const t = M(X);
|
|
6035
6038
|
if (!t)
|
|
6036
6039
|
return console.error("WalletConnectEmbed must be used within WalletConnectProvider"), null;
|
|
@@ -6047,7 +6050,7 @@ const xa = new ds({
|
|
|
6047
6050
|
}
|
|
6048
6051
|
);
|
|
6049
6052
|
};
|
|
6050
|
-
async function
|
|
6053
|
+
async function Ea() {
|
|
6051
6054
|
let e = [];
|
|
6052
6055
|
try {
|
|
6053
6056
|
e = await kt();
|
|
@@ -6119,7 +6122,7 @@ async function Ta() {
|
|
|
6119
6122
|
t.dogecoin = Ce.dogecoin || [];
|
|
6120
6123
|
return t;
|
|
6121
6124
|
}
|
|
6122
|
-
async function
|
|
6125
|
+
async function Sa() {
|
|
6123
6126
|
try {
|
|
6124
6127
|
return (await Tt({
|
|
6125
6128
|
chainType: "all",
|
|
@@ -6144,12 +6147,12 @@ async function Ea() {
|
|
|
6144
6147
|
typeof window < "u" && console.info(`[${st.name}] version: ${st.version}`);
|
|
6145
6148
|
export {
|
|
6146
6149
|
T as ChainTypeEnum,
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6150
|
+
Ta as WalletConnectEmbed,
|
|
6151
|
+
ja as WalletConnectProvider,
|
|
6152
|
+
Ea as getChains,
|
|
6153
|
+
Sa as getConnectors,
|
|
6151
6154
|
Gn as useAccount,
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
+
Xa as useConnectors,
|
|
6156
|
+
Cc as useEmbeddedWallet,
|
|
6157
|
+
Na as useWalletConnect
|
|
6155
6158
|
};
|