@dogeos/dogeos-sdk 3.2.0-beta.4 → 3.2.0-beta.5
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 +10 -25
- package/dist/index.d.ts +2 -14
- package/dist/index.js +517 -501
- package/package.json +6 -8
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
})();
|
|
13
13
|
|
|
14
14
|
import { jsxs as C, jsx as o, Fragment as Bt } from "react/jsx-runtime";
|
|
15
|
-
import { createContext as ht, useState as Y, useRef as ce, useEffect as J, useMemo as y, useContext as
|
|
15
|
+
import { createContext as ht, useState as Y, useRef as ce, useEffect as J, useMemo as y, useContext as V, useCallback as k } from "react";
|
|
16
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
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
18
|
import { useQuery as Tn, useMutation as En, QueryClientProvider as as, QueryClient as ls } from "@tanstack/react-query";
|
|
@@ -21,7 +21,7 @@ import As from "qr-code-styling";
|
|
|
21
21
|
import { useConfig as nt, useConnect as fs, useAccount as us, useDisconnect as gs, createConnector as vs } from "wagmi";
|
|
22
22
|
import { EmbeddedWallet as ms } from "@tomo-inc/embedded-wallet-providers";
|
|
23
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-beta.
|
|
24
|
+
const xs = "@dogeos/dogeos-sdk", bs = "3.2.0-beta.5", st = {
|
|
25
25
|
name: xs,
|
|
26
26
|
version: bs
|
|
27
27
|
};
|
|
@@ -353,7 +353,7 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
353
353
|
] })
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
|
-
),
|
|
356
|
+
), kt = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
357
357
|
/* @__PURE__ */ o("foreignObject", { x: "-2.16759", y: "-2.16759", width: "60.3349", height: "60.3352", children: /* @__PURE__ */ o(
|
|
358
358
|
"div",
|
|
359
359
|
{
|
|
@@ -480,7 +480,7 @@ const X = ht(null), Ot = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
|
|
|
480
480
|
Movement: Ms,
|
|
481
481
|
Solana: rn,
|
|
482
482
|
UnknownChain: Sn,
|
|
483
|
-
UnsupportChain:
|
|
483
|
+
UnsupportChain: kt
|
|
484
484
|
}, Symbol.toStringTag, { value: "Module" })), ze = ({ icon: e, iconName: n, className: t, iconProps: r, iconUrl: s }) => {
|
|
485
485
|
if (s)
|
|
486
486
|
return /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("img", { src: s, alt: n || "chain", "data-icon": "chain-icon", width: "100%", height: "100%" }) });
|
|
@@ -493,7 +493,7 @@ let De = null, Pe = null;
|
|
|
493
493
|
function Ns(e) {
|
|
494
494
|
return !e || e.startsWith("http://") || e.startsWith("https://") ? e : e.startsWith("/") ? `${it}${e}` : `${it}/${e}`;
|
|
495
495
|
}
|
|
496
|
-
async function
|
|
496
|
+
async function Lt() {
|
|
497
497
|
return De || Pe || (Pe = (async () => {
|
|
498
498
|
try {
|
|
499
499
|
const e = await fetch(Xs);
|
|
@@ -512,18 +512,18 @@ async function kt() {
|
|
|
512
512
|
})(), Pe);
|
|
513
513
|
}
|
|
514
514
|
const js = "1a91e3dace36e2be3bf030a65679fe82";
|
|
515
|
-
function
|
|
515
|
+
function kn(e) {
|
|
516
516
|
const [n, t] = e.split(":");
|
|
517
517
|
return { type: n.toLowerCase(), id: t };
|
|
518
518
|
}
|
|
519
519
|
function H(e) {
|
|
520
|
-
const { type: n, id: t } =
|
|
520
|
+
const { type: n, id: t } = kn(e);
|
|
521
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({
|
|
525
525
|
queryKey: ["chains"],
|
|
526
|
-
queryFn:
|
|
526
|
+
queryFn: Lt,
|
|
527
527
|
staleTime: 6e5,
|
|
528
528
|
gcTime: 18e5,
|
|
529
529
|
retry: 2,
|
|
@@ -536,7 +536,7 @@ function Yt() {
|
|
|
536
536
|
refetch: r
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const Ln = () => {
|
|
540
540
|
const [e, n] = Y(!1), t = ce(null), r = (s) => {
|
|
541
541
|
try {
|
|
542
542
|
return ds(s), n(!0), t.current = setTimeout(() => n(!1), 1200), !0;
|
|
@@ -605,7 +605,7 @@ function Os(e, n) {
|
|
|
605
605
|
return !l || s.has(l) ? !1 : (s.add(l), !0);
|
|
606
606
|
}).sort(r), n];
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function ks(e, n = 6, t = 4) {
|
|
609
609
|
if (!e) return "";
|
|
610
610
|
if (e.length <= n + t)
|
|
611
611
|
return e;
|
|
@@ -639,19 +639,19 @@ const q = {
|
|
|
639
639
|
evm: Ge,
|
|
640
640
|
// Evm chains - fallback icons (will be replaced by API data)
|
|
641
641
|
evm_1: Ge,
|
|
642
|
-
unsupported:
|
|
642
|
+
unsupported: kt
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function Ls(e, n) {
|
|
645
645
|
if (n?.icon)
|
|
646
646
|
return () => n.icon;
|
|
647
|
-
const t = H(e), { id: r } =
|
|
647
|
+
const t = H(e), { id: r } = kn(e), s = t === "evm" ? `evm_${r}` : t;
|
|
648
648
|
return ae[s] || Sn;
|
|
649
649
|
}
|
|
650
650
|
function Dt(e) {
|
|
651
651
|
const n = { ...ae };
|
|
652
652
|
return e.forEach((t) => {
|
|
653
|
-
const r = H(t.chainId), { id: s } =
|
|
654
|
-
t.icon ? n[i] = () => t.icon : n[i] =
|
|
653
|
+
const r = H(t.chainId), { id: s } = kn(t.chainId), i = r === "evm" ? `evm_${s}` : t.chainId;
|
|
654
|
+
t.icon ? n[i] = () => t.icon : n[i] = Ls(t.chainId, t);
|
|
655
655
|
}), n;
|
|
656
656
|
}
|
|
657
657
|
const fn = {
|
|
@@ -1414,17 +1414,17 @@ class Xi extends sr {
|
|
|
1414
1414
|
const { buffer: t, view: r, blockLen: s, isLE: i } = this;
|
|
1415
1415
|
let { pos: a } = this;
|
|
1416
1416
|
t[a++] = 128, Xe(this.buffer.subarray(a)), this.padOffset > s - a && (this.process(r, 0), a = 0);
|
|
1417
|
-
for (let
|
|
1418
|
-
t[
|
|
1417
|
+
for (let f = a; f < s; f++)
|
|
1418
|
+
t[f] = 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");
|
|
1423
|
-
const d = l / 4,
|
|
1424
|
-
if (d >
|
|
1423
|
+
const d = l / 4, A = this.get();
|
|
1424
|
+
if (d > A.length)
|
|
1425
1425
|
throw new Error("_sha2: outputLen bigger than state");
|
|
1426
|
-
for (let
|
|
1427
|
-
c.setUint32(4 *
|
|
1426
|
+
for (let f = 0; f < d; f++)
|
|
1427
|
+
c.setUint32(4 * f, A[f], i);
|
|
1428
1428
|
}
|
|
1429
1429
|
digest() {
|
|
1430
1430
|
const { buffer: n, outputLen: t } = this;
|
|
@@ -1463,7 +1463,7 @@ function ji(e, n = !1) {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
return [r, s];
|
|
1465
1465
|
}
|
|
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,
|
|
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, ki = /* @__PURE__ */ Uint32Array.from([
|
|
1467
1467
|
1116352408,
|
|
1468
1468
|
1899447441,
|
|
1469
1469
|
3049323471,
|
|
@@ -1529,7 +1529,7 @@ const Ti = (e, n, t) => e << t | n >>> 32 - t, Ei = (e, n, t) => n << t | e >>>
|
|
|
1529
1529
|
3204031479,
|
|
1530
1530
|
3329325298
|
|
1531
1531
|
]), te = /* @__PURE__ */ new Uint32Array(64);
|
|
1532
|
-
class
|
|
1532
|
+
class Li 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
|
}
|
|
@@ -1542,18 +1542,18 @@ class ki extends Xi {
|
|
|
1542
1542
|
this.A = n | 0, this.B = t | 0, this.C = r | 0, this.D = s | 0, this.E = i | 0, this.F = a | 0, this.G = c | 0, this.H = l | 0;
|
|
1543
1543
|
}
|
|
1544
1544
|
process(n, t) {
|
|
1545
|
-
for (let
|
|
1546
|
-
te[
|
|
1547
|
-
for (let
|
|
1548
|
-
const u = te[
|
|
1549
|
-
te[
|
|
1545
|
+
for (let f = 0; f < 16; f++, t += 4)
|
|
1546
|
+
te[f] = n.getUint32(t, !1);
|
|
1547
|
+
for (let f = 16; f < 64; f++) {
|
|
1548
|
+
const u = te[f - 15], v = te[f - 2], m = K(u, 7) ^ K(u, 18) ^ u >>> 3, g = K(v, 17) ^ K(v, 19) ^ v >>> 10;
|
|
1549
|
+
te[f] = g + te[f - 7] + m + te[f - 16] | 0;
|
|
1550
1550
|
}
|
|
1551
|
-
let { A: r, B: s, C: i, D: a, E: c, F: l, G: d, H:
|
|
1552
|
-
for (let
|
|
1553
|
-
const u = K(c, 6) ^ K(c, 11) ^ K(c, 25), v =
|
|
1554
|
-
|
|
1551
|
+
let { A: r, B: s, C: i, D: a, E: c, F: l, G: d, H: A } = this;
|
|
1552
|
+
for (let f = 0; f < 64; f++) {
|
|
1553
|
+
const u = K(c, 6) ^ K(c, 11) ^ K(c, 25), v = A + u + Mi(c, l, d) + ki[f] + te[f] | 0, g = (K(r, 2) ^ K(r, 13) ^ K(r, 22)) + Vi(r, s, i) | 0;
|
|
1554
|
+
A = d, d = l, l = c, c = a + v | 0, a = i, i = s, s = r, r = v + g | 0;
|
|
1555
1555
|
}
|
|
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,
|
|
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, A = A + this.H | 0, this.set(r, s, i, a, c, l, d, A);
|
|
1557
1557
|
}
|
|
1558
1558
|
roundClean() {
|
|
1559
1559
|
Xe(te);
|
|
@@ -1562,7 +1562,7 @@ class ki extends Xi {
|
|
|
1562
1562
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), Xe(this.buffer);
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
|
-
const Yi = /* @__PURE__ */ ir(() => new
|
|
1565
|
+
const Yi = /* @__PURE__ */ ir(() => new Li()), Zi = Yi;
|
|
1566
1566
|
function Ji(e, n) {
|
|
1567
1567
|
return Zi(Te(e, { strict: !1 }) ? Kt(e) : e);
|
|
1568
1568
|
}
|
|
@@ -1883,14 +1883,14 @@ function ro(e, n = 24) {
|
|
|
1883
1883
|
for (let a = 0; a < 10; a++)
|
|
1884
1884
|
t[a] = e[a] ^ e[a + 10] ^ e[a + 20] ^ e[a + 30] ^ e[a + 40];
|
|
1885
1885
|
for (let a = 0; a < 10; a += 2) {
|
|
1886
|
-
const c = (a + 8) % 10, l = (a + 2) % 10, d = t[l],
|
|
1886
|
+
const c = (a + 8) % 10, l = (a + 2) % 10, d = t[l], A = t[l + 1], f = gt(d, A, 1) ^ t[c], u = vt(d, A, 1) ^ t[c + 1];
|
|
1887
1887
|
for (let v = 0; v < 50; v += 10)
|
|
1888
|
-
e[a + v] ^=
|
|
1888
|
+
e[a + v] ^= f, e[a + v + 1] ^= u;
|
|
1889
1889
|
}
|
|
1890
1890
|
let s = e[2], i = e[3];
|
|
1891
1891
|
for (let a = 0; a < 24; a++) {
|
|
1892
|
-
const c = ur[a], l = gt(s, i, c), d = vt(s, i, c),
|
|
1893
|
-
s = e[
|
|
1892
|
+
const c = ur[a], l = gt(s, i, c), d = vt(s, i, c), A = fr[a];
|
|
1893
|
+
s = e[A], i = e[A + 1], e[A] = l, e[A + 1] = d;
|
|
1894
1894
|
}
|
|
1895
1895
|
for (let a = 0; a < 50; a += 10) {
|
|
1896
1896
|
for (let c = 0; c < 10; c++)
|
|
@@ -2108,9 +2108,9 @@ function Co(e, n) {
|
|
|
2108
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
2110
|
function xo(e, n) {
|
|
2111
|
-
const { authorizationList: t, chainId: r, gas: s, nonce: i, to: a, value: c, maxFeePerGas: l, maxPriorityFeePerGas: d, accessList:
|
|
2111
|
+
const { authorizationList: t, chainId: r, gas: s, nonce: i, to: a, value: c, maxFeePerGas: l, maxPriorityFeePerGas: d, accessList: A, data: f } = e;
|
|
2112
2112
|
uo(e);
|
|
2113
|
-
const u = cn(
|
|
2113
|
+
const u = cn(A), v = zi(t);
|
|
2114
2114
|
return Ee([
|
|
2115
2115
|
"0x04",
|
|
2116
2116
|
de([
|
|
@@ -2121,7 +2121,7 @@ function xo(e, n) {
|
|
|
2121
2121
|
s ? P(s) : "0x",
|
|
2122
2122
|
a ?? "0x",
|
|
2123
2123
|
c ? P(c) : "0x",
|
|
2124
|
-
|
|
2124
|
+
f ?? "0x",
|
|
2125
2125
|
u,
|
|
2126
2126
|
v,
|
|
2127
2127
|
...Se(e, n)
|
|
@@ -2129,22 +2129,22 @@ function xo(e, n) {
|
|
|
2129
2129
|
]);
|
|
2130
2130
|
}
|
|
2131
2131
|
function bo(e, n) {
|
|
2132
|
-
const { chainId: t, gas: r, nonce: s, to: i, value: a, maxFeePerBlobGas: c, maxFeePerGas: l, maxPriorityFeePerGas: d, accessList:
|
|
2132
|
+
const { chainId: t, gas: r, nonce: s, to: i, value: a, maxFeePerBlobGas: c, maxFeePerGas: l, maxPriorityFeePerGas: d, accessList: A, data: f } = 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
|
-
const w = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((z) => ee(z)),
|
|
2136
|
+
const w = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((z) => ee(z)), O = e.kzg, b = nr({
|
|
2137
2137
|
blobs: w,
|
|
2138
|
-
kzg:
|
|
2138
|
+
kzg: O
|
|
2139
2139
|
});
|
|
2140
2140
|
if (typeof u > "u" && (u = Fi({
|
|
2141
2141
|
commitments: b
|
|
2142
2142
|
})), typeof v > "u") {
|
|
2143
|
-
const z = tr({ blobs: w, commitments: b, kzg:
|
|
2143
|
+
const z = tr({ blobs: w, commitments: b, kzg: O });
|
|
2144
2144
|
v = Ui({ blobs: w, commitments: b, proofs: z });
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
|
-
const m = cn(
|
|
2147
|
+
const m = cn(A), g = [
|
|
2148
2148
|
P(t),
|
|
2149
2149
|
s ? P(s) : "0x",
|
|
2150
2150
|
d ? P(d) : "0x",
|
|
@@ -2152,7 +2152,7 @@ function bo(e, n) {
|
|
|
2152
2152
|
r ? P(r) : "0x",
|
|
2153
2153
|
i ?? "0x",
|
|
2154
2154
|
a ? P(a) : "0x",
|
|
2155
|
-
|
|
2155
|
+
f ?? "0x",
|
|
2156
2156
|
m,
|
|
2157
2157
|
c ? P(c) : "0x",
|
|
2158
2158
|
u ?? [],
|
|
@@ -2160,8 +2160,8 @@ function bo(e, n) {
|
|
|
2160
2160
|
], p = [], I = [], x = [];
|
|
2161
2161
|
if (v)
|
|
2162
2162
|
for (let w = 0; w < v.length; w++) {
|
|
2163
|
-
const { blob:
|
|
2164
|
-
p.push(
|
|
2163
|
+
const { blob: O, commitment: b, proof: z } = v[w];
|
|
2164
|
+
p.push(O), I.push(b), x.push(z);
|
|
2165
2165
|
}
|
|
2166
2166
|
return Ee([
|
|
2167
2167
|
"0x03",
|
|
@@ -2170,9 +2170,9 @@ function bo(e, n) {
|
|
|
2170
2170
|
]);
|
|
2171
2171
|
}
|
|
2172
2172
|
function zo(e, n) {
|
|
2173
|
-
const { chainId: t, gas: r, nonce: s, to: i, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: d, data:
|
|
2173
|
+
const { chainId: t, gas: r, nonce: s, to: i, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: d, data: A } = e;
|
|
2174
2174
|
Qn(e);
|
|
2175
|
-
const
|
|
2175
|
+
const f = cn(d), u = [
|
|
2176
2176
|
P(t),
|
|
2177
2177
|
s ? P(s) : "0x",
|
|
2178
2178
|
l ? P(l) : "0x",
|
|
@@ -2180,8 +2180,8 @@ function zo(e, n) {
|
|
|
2180
2180
|
r ? P(r) : "0x",
|
|
2181
2181
|
i ?? "0x",
|
|
2182
2182
|
a ? P(a) : "0x",
|
|
2183
|
-
|
|
2184
|
-
|
|
2183
|
+
A ?? "0x",
|
|
2184
|
+
f,
|
|
2185
2185
|
...Se(e, n)
|
|
2186
2186
|
];
|
|
2187
2187
|
return Ee([
|
|
@@ -2192,7 +2192,7 @@ function zo(e, n) {
|
|
|
2192
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
|
-
const
|
|
2195
|
+
const A = cn(l), f = [
|
|
2196
2196
|
P(t),
|
|
2197
2197
|
i ? P(i) : "0x",
|
|
2198
2198
|
d ? P(d) : "0x",
|
|
@@ -2200,12 +2200,12 @@ function Io(e, n) {
|
|
|
2200
2200
|
a ?? "0x",
|
|
2201
2201
|
c ? P(c) : "0x",
|
|
2202
2202
|
s ?? "0x",
|
|
2203
|
-
|
|
2203
|
+
A,
|
|
2204
2204
|
...Se(e, n)
|
|
2205
2205
|
];
|
|
2206
2206
|
return Ee([
|
|
2207
2207
|
"0x01",
|
|
2208
|
-
de(
|
|
2208
|
+
de(f)
|
|
2209
2209
|
]);
|
|
2210
2210
|
}
|
|
2211
2211
|
function wo(e, n) {
|
|
@@ -2220,7 +2220,7 @@ function wo(e, n) {
|
|
|
2220
2220
|
s ?? "0x"
|
|
2221
2221
|
];
|
|
2222
2222
|
if (n) {
|
|
2223
|
-
const
|
|
2223
|
+
const A = (() => {
|
|
2224
2224
|
if (n.v >= 35n)
|
|
2225
2225
|
return (n.v - 35n) / 2n > 0 ? n.v : 27n + (n.v === 35n ? 0n : 1n);
|
|
2226
2226
|
if (t > 0)
|
|
@@ -2229,11 +2229,11 @@ function wo(e, n) {
|
|
|
2229
2229
|
if (n.v !== v)
|
|
2230
2230
|
throw new Ci({ v: n.v });
|
|
2231
2231
|
return v;
|
|
2232
|
-
})(),
|
|
2232
|
+
})(), f = Re(n.r), u = Re(n.s);
|
|
2233
2233
|
d = [
|
|
2234
2234
|
...d,
|
|
2235
|
-
P(
|
|
2236
|
-
|
|
2235
|
+
P(A),
|
|
2236
|
+
f === "0x00" ? "0x" : f,
|
|
2237
2237
|
u === "0x00" ? "0x" : u
|
|
2238
2238
|
];
|
|
2239
2239
|
} else t > 0 && (d = [
|
|
@@ -2469,18 +2469,18 @@ function No(e) {
|
|
|
2469
2469
|
`).slice(0, -1);
|
|
2470
2470
|
}
|
|
2471
2471
|
class jo extends h {
|
|
2472
|
-
constructor(n, { account: t, docsPath: r, chain: s, data: i, gas: a, gasPrice: c, maxFeePerGas: l, maxPriorityFeePerGas: d, nonce:
|
|
2472
|
+
constructor(n, { account: t, docsPath: r, chain: s, data: i, gas: a, gasPrice: c, maxFeePerGas: l, maxPriorityFeePerGas: d, nonce: A, to: f, value: u, stateOverride: v }) {
|
|
2473
2473
|
const m = t ? qn(t) : void 0;
|
|
2474
2474
|
let g = er({
|
|
2475
2475
|
from: m?.address,
|
|
2476
|
-
to:
|
|
2476
|
+
to: f,
|
|
2477
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`,
|
|
2481
2481
|
maxFeePerGas: typeof l < "u" && `${oe(l)} gwei`,
|
|
2482
2482
|
maxPriorityFeePerGas: typeof d < "u" && `${oe(d)} gwei`,
|
|
2483
|
-
nonce:
|
|
2483
|
+
nonce: A
|
|
2484
2484
|
});
|
|
2485
2485
|
v && (g += `
|
|
2486
2486
|
${No(v)}`), super(n.shortMessage, {
|
|
@@ -2557,15 +2557,15 @@ function Oo(e) {
|
|
|
2557
2557
|
if (s && r && s > r)
|
|
2558
2558
|
throw new Ne({ maxFeePerGas: r, maxPriorityFeePerGas: s });
|
|
2559
2559
|
}
|
|
2560
|
-
async function
|
|
2560
|
+
async function ko(e, n) {
|
|
2561
2561
|
const { account: t = e.account } = n;
|
|
2562
2562
|
if (!t)
|
|
2563
2563
|
throw new Xo();
|
|
2564
2564
|
const r = qn(t);
|
|
2565
2565
|
try {
|
|
2566
|
-
const { accessList: s, blockNumber: i, blockTag: a, data: c, gas: l, gasPrice: d, maxFeePerGas:
|
|
2566
|
+
const { accessList: s, blockNumber: i, blockTag: a, data: c, gas: l, gasPrice: d, maxFeePerGas: A, maxPriorityFeePerGas: f, nonce: u, to: v, value: m, ...g } = n, I = (typeof i == "bigint" ? P(i) : void 0) || a;
|
|
2567
2567
|
Oo(n);
|
|
2568
|
-
const x = e.chain?.formatters?.transactionRequest?.format,
|
|
2568
|
+
const x = e.chain?.formatters?.transactionRequest?.format, O = (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,
|
|
@@ -2573,14 +2573,14 @@ async function Lo(e, n) {
|
|
|
2573
2573
|
data: c,
|
|
2574
2574
|
gas: l,
|
|
2575
2575
|
gasPrice: d,
|
|
2576
|
-
maxFeePerGas:
|
|
2577
|
-
maxPriorityFeePerGas:
|
|
2576
|
+
maxFeePerGas: A,
|
|
2577
|
+
maxPriorityFeePerGas: f,
|
|
2578
2578
|
nonce: u,
|
|
2579
2579
|
to: v,
|
|
2580
2580
|
value: m
|
|
2581
2581
|
}, "estimateGas"), { baseFeePerGas: b, gasLimit: z, priorityFeePerGas: W } = await e.request({
|
|
2582
2582
|
method: "linea_estimateGas",
|
|
2583
|
-
params: I ? [
|
|
2583
|
+
params: I ? [O, I] : [O]
|
|
2584
2584
|
});
|
|
2585
2585
|
return {
|
|
2586
2586
|
baseFeePerGas: BigInt(b),
|
|
@@ -2595,7 +2595,7 @@ async function Lo(e, n) {
|
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
const
|
|
2598
|
+
const Lo = {
|
|
2599
2599
|
fees: {
|
|
2600
2600
|
estimateFeesPerGas: pt,
|
|
2601
2601
|
async maxPriorityFeePerGas({ block: e, client: n, request: t }) {
|
|
@@ -2612,7 +2612,7 @@ const ko = {
|
|
|
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 ko(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
|
+
...Lo,
|
|
2629
2629
|
id: 59144,
|
|
2630
2630
|
name: "Linea Mainnet",
|
|
2631
2631
|
nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2810,10 +2810,10 @@ const xr = /* @__PURE__ */ se({
|
|
|
2810
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
|
-
a.length > 0 ? a.forEach((
|
|
2813
|
+
a.length > 0 ? a.forEach((f) => {
|
|
2814
2814
|
const u = r.find((v) => H(v.chainId) === "aptos");
|
|
2815
2815
|
i.push({
|
|
2816
|
-
...
|
|
2816
|
+
...f,
|
|
2817
2817
|
chainId: u?.chainId || "aptos:1",
|
|
2818
2818
|
chainInfo: {
|
|
2819
2819
|
icon: q?.aptos?.icon || null,
|
|
@@ -2827,61 +2827,61 @@ const xr = /* @__PURE__ */ se({
|
|
|
2827
2827
|
blockExplorers: u?.blockExplorers,
|
|
2828
2828
|
contracts: u?.contracts
|
|
2829
2829
|
});
|
|
2830
|
-
}) : r.length > 0 && r.filter((
|
|
2830
|
+
}) : r.length > 0 && r.filter((f) => H(f.chainId) === "aptos").forEach((f) => {
|
|
2831
2831
|
i.push({
|
|
2832
|
-
...
|
|
2832
|
+
...f,
|
|
2833
2833
|
chainType: "aptos",
|
|
2834
2834
|
chainInfo: {
|
|
2835
|
-
icon:
|
|
2836
|
-
name:
|
|
2835
|
+
icon: f.icon,
|
|
2836
|
+
name: f.name,
|
|
2837
2837
|
chainType: "aptos"
|
|
2838
2838
|
},
|
|
2839
2839
|
provider: n?.aptos || null
|
|
2840
2840
|
});
|
|
2841
2841
|
});
|
|
2842
2842
|
const c = e?.evm || Ce?.evm || [];
|
|
2843
|
-
c.length > 0 ? c.forEach((
|
|
2844
|
-
const u = `eip155:${
|
|
2843
|
+
c.length > 0 ? c.forEach((f) => {
|
|
2844
|
+
const u = `eip155:${f.id}`, v = r.find((x) => x.chainId === u), m = `evm_${f.id}`, g = s[m] || ae[m], p = v?.icon || (typeof g == "string" ? g : null), I = v?.rpcUrls || {
|
|
2845
2845
|
default: {
|
|
2846
|
-
http: Array.isArray(
|
|
2847
|
-
webSocket:
|
|
2846
|
+
http: Array.isArray(f.rpcUrls?.default?.http) ? [...f.rpcUrls.default.http] : [],
|
|
2847
|
+
webSocket: f.rpcUrls?.default?.webSocket ? [...f.rpcUrls.default.webSocket] : void 0
|
|
2848
2848
|
}
|
|
2849
2849
|
};
|
|
2850
2850
|
i.push({
|
|
2851
2851
|
...v,
|
|
2852
|
-
...
|
|
2852
|
+
...f,
|
|
2853
2853
|
chainId: u,
|
|
2854
2854
|
icon: p || "",
|
|
2855
2855
|
chainInfo: {
|
|
2856
2856
|
icon: p || null,
|
|
2857
|
-
name: v?.name ||
|
|
2857
|
+
name: v?.name || f.name || q?.evm?.name,
|
|
2858
2858
|
chainType: "evm"
|
|
2859
2859
|
},
|
|
2860
2860
|
chainType: "evm",
|
|
2861
2861
|
provider: n?.evm || null,
|
|
2862
|
-
nativeCurrency: v?.nativeCurrency ||
|
|
2862
|
+
nativeCurrency: v?.nativeCurrency || f.nativeCurrency,
|
|
2863
2863
|
rpcUrls: I,
|
|
2864
|
-
blockExplorers: v?.blockExplorers ||
|
|
2865
|
-
contracts: v?.contracts ||
|
|
2866
|
-
blockTime: v?.blockTime ||
|
|
2864
|
+
blockExplorers: v?.blockExplorers || f.blockExplorers,
|
|
2865
|
+
contracts: v?.contracts || f.contracts,
|
|
2866
|
+
blockTime: v?.blockTime || f.blockTime
|
|
2867
2867
|
});
|
|
2868
|
-
}) : r.length > 0 && r.filter((
|
|
2868
|
+
}) : r.length > 0 && r.filter((f) => H(f.chainId) === "evm").forEach((f) => {
|
|
2869
2869
|
i.push({
|
|
2870
|
-
...
|
|
2870
|
+
...f,
|
|
2871
2871
|
chainType: "evm",
|
|
2872
2872
|
chainInfo: {
|
|
2873
|
-
icon:
|
|
2874
|
-
name:
|
|
2873
|
+
icon: f.icon,
|
|
2874
|
+
name: f.name,
|
|
2875
2875
|
chainType: "evm"
|
|
2876
2876
|
},
|
|
2877
2877
|
provider: n?.evm || null
|
|
2878
2878
|
});
|
|
2879
2879
|
});
|
|
2880
2880
|
const l = e?.solana || [];
|
|
2881
|
-
l.length > 0 ? l.forEach((
|
|
2881
|
+
l.length > 0 ? l.forEach((f) => {
|
|
2882
2882
|
const u = r.find((v) => H(v.chainId) === "solana");
|
|
2883
2883
|
i.push({
|
|
2884
|
-
...
|
|
2884
|
+
...f,
|
|
2885
2885
|
chainId: u?.chainId || "solana:mainnet-beta",
|
|
2886
2886
|
chainInfo: {
|
|
2887
2887
|
icon: u?.icon || q?.solana?.icon || null,
|
|
@@ -2895,23 +2895,23 @@ const xr = /* @__PURE__ */ se({
|
|
|
2895
2895
|
blockExplorers: u?.blockExplorers,
|
|
2896
2896
|
contracts: u?.contracts
|
|
2897
2897
|
});
|
|
2898
|
-
}) : r.length > 0 && r.filter((
|
|
2898
|
+
}) : r.length > 0 && r.filter((f) => H(f.chainId) === "solana").forEach((f) => {
|
|
2899
2899
|
i.push({
|
|
2900
|
-
...
|
|
2900
|
+
...f,
|
|
2901
2901
|
chainType: "solana",
|
|
2902
2902
|
chainInfo: {
|
|
2903
|
-
icon:
|
|
2904
|
-
name:
|
|
2903
|
+
icon: f.icon,
|
|
2904
|
+
name: f.name,
|
|
2905
2905
|
chainType: "solana"
|
|
2906
2906
|
},
|
|
2907
2907
|
provider: n?.solana || null
|
|
2908
2908
|
});
|
|
2909
2909
|
});
|
|
2910
2910
|
const d = e?.dogecoin || [];
|
|
2911
|
-
return d.length > 0 ? d.forEach((
|
|
2911
|
+
return d.length > 0 ? d.forEach((f) => {
|
|
2912
2912
|
const u = r.find((v) => H(v.chainId) === "dogecoin");
|
|
2913
2913
|
i.push({
|
|
2914
|
-
...
|
|
2914
|
+
...f,
|
|
2915
2915
|
chainId: u?.chainId || "dogecoin:mainnet",
|
|
2916
2916
|
chainInfo: {
|
|
2917
2917
|
icon: u?.icon || q?.dogecoin?.icon || null,
|
|
@@ -2925,20 +2925,20 @@ const xr = /* @__PURE__ */ se({
|
|
|
2925
2925
|
blockExplorers: u?.blockExplorers,
|
|
2926
2926
|
contracts: u?.contracts
|
|
2927
2927
|
});
|
|
2928
|
-
}) : r.length > 0 && r.filter((
|
|
2928
|
+
}) : r.length > 0 && r.filter((f) => H(f.chainId) === "dogecoin").forEach((f) => {
|
|
2929
2929
|
i.push({
|
|
2930
|
-
...
|
|
2930
|
+
...f,
|
|
2931
2931
|
chainType: "dogecoin",
|
|
2932
2932
|
chainInfo: {
|
|
2933
|
-
icon:
|
|
2934
|
-
name:
|
|
2933
|
+
icon: f.icon,
|
|
2934
|
+
name: f.name,
|
|
2935
2935
|
chainType: "dogecoin"
|
|
2936
2936
|
},
|
|
2937
2937
|
provider: n?.dogecoin || null
|
|
2938
2938
|
});
|
|
2939
|
-
}), i.filter((
|
|
2939
|
+
}), i.filter((f) => f.chainId !== "solana:mainnet-beta" && f.chainId !== "aptos:1");
|
|
2940
2940
|
};
|
|
2941
|
-
var
|
|
2941
|
+
var M = /* @__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))(M || {});
|
|
2942
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: [
|
|
@@ -2957,7 +2957,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2957
2957
|
headerRightContent: s,
|
|
2958
2958
|
hideCloseButton: i
|
|
2959
2959
|
}) => {
|
|
2960
|
-
const a =
|
|
2960
|
+
const a = V(X);
|
|
2961
2961
|
if (!a)
|
|
2962
2962
|
throw new Error("WalletConnectContext not found");
|
|
2963
2963
|
return /* @__PURE__ */ C("div", { className: "flex flex-col gap-3 min-h-0 flex-1", children: [
|
|
@@ -2976,10 +2976,10 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2976
2976
|
/* @__PURE__ */ o("div", { className: "flex-1 flex flex-col min-h-0", children: e })
|
|
2977
2977
|
] });
|
|
2978
2978
|
}, Fo = () => {
|
|
2979
|
-
const e =
|
|
2979
|
+
const e = V(X);
|
|
2980
2980
|
if (!e)
|
|
2981
2981
|
throw new Error("WalletConnectContext not found");
|
|
2982
|
-
const { copied: n, copy: t } =
|
|
2982
|
+
const { copied: n, copy: t } = Ln(), { chains: r } = Yt(), { account: s, disconnect: i } = e, a = s.currentWallet?.info?.name || "Wallet", c = s.currentWallet?.info?.icon, l = s.address, d = s.chainType, A = s.chainId, f = A && /^\d+$/.test(A) ? Number(A) : void 0, u = s.currentWallet, v = k(async () => {
|
|
2983
2983
|
try {
|
|
2984
2984
|
if (!l) return;
|
|
2985
2985
|
t(l);
|
|
@@ -2993,20 +2993,20 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2993
2993
|
apiChains: r
|
|
2994
2994
|
}), p = g.find((I) => {
|
|
2995
2995
|
if (I.chainType !== d) return !1;
|
|
2996
|
-
if (d === "evm" &&
|
|
2997
|
-
return I.id ===
|
|
2996
|
+
if (d === "evm" && f !== void 0)
|
|
2997
|
+
return I.id === f || I.chainId === `eip155:${f}`;
|
|
2998
2998
|
{
|
|
2999
2999
|
const x = I.chainType === s.chainType;
|
|
3000
3000
|
if (x) return x;
|
|
3001
3001
|
}
|
|
3002
|
-
return I.chainId ===
|
|
3002
|
+
return I.chainId === A;
|
|
3003
3003
|
});
|
|
3004
3004
|
return console.log("--- AccountView ---", {
|
|
3005
3005
|
account: s,
|
|
3006
3006
|
config: e.config,
|
|
3007
3007
|
chains: g,
|
|
3008
3008
|
currentChainType: d,
|
|
3009
|
-
chainNumber:
|
|
3009
|
+
chainNumber: f,
|
|
3010
3010
|
currentWallet: u,
|
|
3011
3011
|
currentChain: p
|
|
3012
3012
|
}), /* @__PURE__ */ o(
|
|
@@ -3017,7 +3017,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3017
3017
|
{
|
|
3018
3018
|
variant: "light",
|
|
3019
3019
|
color: "default",
|
|
3020
|
-
onPress: () => e.modal.setView(
|
|
3020
|
+
onPress: () => e.modal.setView(M.SelectChains),
|
|
3021
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(
|
|
@@ -3038,7 +3038,7 @@ const Do = ({ 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: ks(l, 8, 6) || "-" }),
|
|
3042
3042
|
/* @__PURE__ */ o("span", { className: "text-xs text-foreground/70", children: a })
|
|
3043
3043
|
] })
|
|
3044
3044
|
] }),
|
|
@@ -3078,13 +3078,13 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3078
3078
|
}
|
|
3079
3079
|
};
|
|
3080
3080
|
}, Ho = () => {
|
|
3081
|
-
const e =
|
|
3081
|
+
const e = V(X), n = e?.modal.state;
|
|
3082
3082
|
if (!e)
|
|
3083
3083
|
throw new Error("WalletConnectContext not found");
|
|
3084
3084
|
const t = n?.chainType || "evm", r = n?.chainId || "", s = n?.name || "-", i = n?.chainInfo?.icon || "", { resetWalletState: a } = Pr(), { mutate: c, isPending: l } = En({
|
|
3085
3085
|
mutationKey: ["switchWallet"],
|
|
3086
3086
|
mutationFn: async () => {
|
|
3087
|
-
a(), e.modal.setView(
|
|
3087
|
+
a(), e.modal.setView(M.WalletSearch, {
|
|
3088
3088
|
chainType: t,
|
|
3089
3089
|
chainId: r
|
|
3090
3090
|
});
|
|
@@ -3110,9 +3110,9 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3110
3110
|
] })
|
|
3111
3111
|
] }) });
|
|
3112
3112
|
}, Oe = () => {
|
|
3113
|
-
const e =
|
|
3113
|
+
const e = V(X);
|
|
3114
3114
|
return {
|
|
3115
|
-
connectWallet:
|
|
3115
|
+
connectWallet: k(
|
|
3116
3116
|
async (t, r, s = "") => {
|
|
3117
3117
|
if (!e) {
|
|
3118
3118
|
console.error("WalletConnectContext not found");
|
|
@@ -3123,7 +3123,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3123
3123
|
return;
|
|
3124
3124
|
}
|
|
3125
3125
|
try {
|
|
3126
|
-
e.modal.setView(t.info.name === "WalletConnect" ?
|
|
3126
|
+
e.modal.setView(t.info.name === "WalletConnect" ? M.WalletConnect : M.Connecting, {
|
|
3127
3127
|
wallet: t,
|
|
3128
3128
|
chainType: r,
|
|
3129
3129
|
chainId: s
|
|
@@ -3159,7 +3159,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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
|
-
const e =
|
|
3162
|
+
const e = V(X);
|
|
3163
3163
|
if (!e)
|
|
3164
3164
|
throw new Error("WalletConnectContext not found");
|
|
3165
3165
|
const { currentWallet: n } = e.account, { connectionStatus: t, error: r } = e.connection, { connectWallet: s } = Oe(), [i, a] = Y(!1), c = async () => {
|
|
@@ -3180,13 +3180,13 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3180
3180
|
}
|
|
3181
3181
|
}, l = () => {
|
|
3182
3182
|
e.connection.setError(""), e.modal.backView();
|
|
3183
|
-
}, d = t === "connected",
|
|
3183
|
+
}, d = t === "connected", A = !!r && t === "disconnected", f = d ? "success" : A ? "error" : "connecting", u = () => d ? /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-2", children: [
|
|
3184
3184
|
/* @__PURE__ */ o("p", { className: "text-lg font-semibold text-foreground", children: "Successfully Connected!" }),
|
|
3185
3185
|
/* @__PURE__ */ C("p", { className: "text-sm text-foreground/60", children: [
|
|
3186
3186
|
"Connected to ",
|
|
3187
3187
|
n?.info?.name || "Wallet"
|
|
3188
3188
|
] })
|
|
3189
|
-
] }) : /* @__PURE__ */ o(Bt, { children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children:
|
|
3189
|
+
] }) : /* @__PURE__ */ o(Bt, { children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: A ? /* @__PURE__ */ o(xt, { error: r, title: "Connection Failed" }) : /* @__PURE__ */ o(
|
|
3190
3190
|
xt,
|
|
3191
3191
|
{
|
|
3192
3192
|
error: `Open the ${n?.info?.name || "Wallet"} browser extension to connect your wallet.`,
|
|
@@ -3194,9 +3194,9 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3194
3194
|
}
|
|
3195
3195
|
) }) });
|
|
3196
3196
|
return /* @__PURE__ */ o(F, { title: n?.info?.name || "Wallet", onBack: l, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3197
|
-
/* @__PURE__ */ o(Qo, { iconSrc: n?.info?.icon, iconAlt: n?.info?.name, variant:
|
|
3197
|
+
/* @__PURE__ */ o(Qo, { iconSrc: n?.info?.icon, iconAlt: n?.info?.name, variant: f }),
|
|
3198
3198
|
u(),
|
|
3199
|
-
|
|
3199
|
+
A ? /* @__PURE__ */ o("div", { className: "w-full px-4", children: /* @__PURE__ */ o(
|
|
3200
3200
|
L,
|
|
3201
3201
|
{
|
|
3202
3202
|
isDisabled: i,
|
|
@@ -3223,7 +3223,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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
|
-
const e =
|
|
3226
|
+
const e = V(X);
|
|
3227
3227
|
if (!e)
|
|
3228
3228
|
throw new Error("WalletConnectContext not found");
|
|
3229
3229
|
const { error: n } = e.connection;
|
|
@@ -3232,7 +3232,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3232
3232
|
/* @__PURE__ */ o("p", { className: "text-lg font-semibold mb-2 text-danger", children: "Connection Failed" }),
|
|
3233
3233
|
/* @__PURE__ */ o("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-6 text-center", children: n }),
|
|
3234
3234
|
/* @__PURE__ */ o(L, { variant: "solid", color: "primary", onPress: () => {
|
|
3235
|
-
e.connection.setError(""), e.modal.setView(
|
|
3235
|
+
e.connection.setError(""), e.modal.setView(M.Connecting);
|
|
3236
3236
|
}, children: "Try Again" })
|
|
3237
3237
|
] });
|
|
3238
3238
|
}, Uo = (e, n, t) => {
|
|
@@ -3241,7 +3241,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3241
3241
|
if (n === 0)
|
|
3242
3242
|
r = s = i = t;
|
|
3243
3243
|
else {
|
|
3244
|
-
const c = (
|
|
3244
|
+
const c = (A, f, u) => (u < 0 && (u += 1), u > 1 && (u -= 1), u < 0.16666666666666666 ? A + (f - A) * 6 * u : u < 0.5 ? f : u < 0.6666666666666666 ? A + (f - A) * (0.6666666666666666 - u) * 6 : A), l = t < 0.5 ? t * (1 + n) : t + n - t * n, d = 2 * t - l;
|
|
3245
3245
|
r = c(d, l, e + 1 / 3), s = c(d, l, e), i = c(d, l, e - 1 / 3);
|
|
3246
3246
|
}
|
|
3247
3247
|
const a = (c) => {
|
|
@@ -3261,8 +3261,8 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3261
3261
|
const s = t.match(/(?:rgb\()?([0-9]+),?\s+([0-9]+),?\s+([0-9]+)\)?/);
|
|
3262
3262
|
if (s) {
|
|
3263
3263
|
const [, i, a, c] = s, l = (d) => {
|
|
3264
|
-
const
|
|
3265
|
-
return
|
|
3264
|
+
const A = parseInt(d, 10).toString(16);
|
|
3265
|
+
return A.length === 1 ? `0${A}` : A;
|
|
3266
3266
|
};
|
|
3267
3267
|
return `#${l(i)}${l(a)}${l(c)}`.toUpperCase();
|
|
3268
3268
|
}
|
|
@@ -3332,16 +3332,16 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3332
3332
|
if (i.current)
|
|
3333
3333
|
i.current.update(d);
|
|
3334
3334
|
else {
|
|
3335
|
-
const
|
|
3336
|
-
i.current =
|
|
3335
|
+
const f = new As(d);
|
|
3336
|
+
i.current = f, l.innerHTML = "", f.append(l);
|
|
3337
3337
|
}
|
|
3338
|
-
const
|
|
3338
|
+
const A = l;
|
|
3339
3339
|
return () => {
|
|
3340
|
-
|
|
3340
|
+
A && i.current && (A.innerHTML = "", i.current = null);
|
|
3341
3341
|
};
|
|
3342
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
3343
|
}, Ro = ({ isOpen: e, onClose: n, onBack: t, url: r, logo: s, logoBackground: i, title: a }) => {
|
|
3344
|
-
const { copy: c, copied: l } =
|
|
3344
|
+
const { copy: c, copied: l } = Ln();
|
|
3345
3345
|
return /* @__PURE__ */ o(Xt, { isOpen: e, onClose: n, onBack: t, title: a, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
|
|
3346
3346
|
/* @__PURE__ */ o("p", { className: "text-sm text-foreground/80 text-center", children: "Scan the QR code with your camera phone to get the app on iOS or Android." }),
|
|
3347
3347
|
/* @__PURE__ */ o(Br, { content: r, logo: s, logoBackground: i }),
|
|
@@ -3366,7 +3366,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
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
|
-
const e =
|
|
3369
|
+
const e = V(X);
|
|
3370
3370
|
if (!e)
|
|
3371
3371
|
throw new Error("WalletConnectContext not found");
|
|
3372
3372
|
const { currentWallet: n } = e.account, t = ce(!1);
|
|
@@ -3379,12 +3379,12 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3379
3379
|
url: ""
|
|
3380
3380
|
}), d = () => {
|
|
3381
3381
|
i && window.open(i, "_blank", "noopener,noreferrer");
|
|
3382
|
-
},
|
|
3382
|
+
}, A = (v) => {
|
|
3383
3383
|
v.label === "iOS" || v.label === "Android" ? l({
|
|
3384
3384
|
isOpen: !0,
|
|
3385
3385
|
url: v.url
|
|
3386
3386
|
}) : window.open(v.url, "_blank", "noopener,noreferrer");
|
|
3387
|
-
},
|
|
3387
|
+
}, f = () => {
|
|
3388
3388
|
l({
|
|
3389
3389
|
isOpen: !1,
|
|
3390
3390
|
url: ""
|
|
@@ -3410,7 +3410,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3410
3410
|
] }),
|
|
3411
3411
|
a.length > 1 && /* @__PURE__ */ C("div", { className: "w-full", children: [
|
|
3412
3412
|
/* @__PURE__ */ o("p", { className: "text-xs text-foreground/60 mb-2 text-center", children: "Or download from:" }),
|
|
3413
|
-
/* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2 justify-center", children: a.map((v, m) => /* @__PURE__ */ o(L, { variant: "bordered", size: "sm", onPress: () =>
|
|
3413
|
+
/* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2 justify-center", children: a.map((v, m) => /* @__PURE__ */ o(L, { variant: "bordered", size: "sm", onPress: () => A(v), children: v.label }, m)) })
|
|
3414
3414
|
] }),
|
|
3415
3415
|
/* @__PURE__ */ o("p", { className: "text-xs text-foreground/40 mt-6 text-center px-4", children: "After installing, refresh the page and try connecting again." })
|
|
3416
3416
|
] }),
|
|
@@ -3419,7 +3419,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3419
3419
|
{
|
|
3420
3420
|
title: r,
|
|
3421
3421
|
isOpen: c.isOpen,
|
|
3422
|
-
onClose:
|
|
3422
|
+
onClose: f,
|
|
3423
3423
|
onBack: u,
|
|
3424
3424
|
url: c.url,
|
|
3425
3425
|
logo: s?.icon,
|
|
@@ -3428,7 +3428,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3428
3428
|
)
|
|
3429
3429
|
] });
|
|
3430
3430
|
}, rc = () => {
|
|
3431
|
-
if (!
|
|
3431
|
+
if (!V(X))
|
|
3432
3432
|
throw new Error("WalletConnectContext not found");
|
|
3433
3433
|
return /* @__PURE__ */ o(F, { title: "Loading", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3434
3434
|
/* @__PURE__ */ o(
|
|
@@ -3447,9 +3447,9 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3447
3447
|
] })
|
|
3448
3448
|
] }) });
|
|
3449
3449
|
}, hr = () => {
|
|
3450
|
-
const e =
|
|
3450
|
+
const e = V(X), { connectWallet: n } = Oe();
|
|
3451
3451
|
return {
|
|
3452
|
-
handleSelectWallet:
|
|
3452
|
+
handleSelectWallet: k(
|
|
3453
3453
|
(r, s) => {
|
|
3454
3454
|
if (!e) {
|
|
3455
3455
|
console.error("WalletConnectContext not found");
|
|
@@ -3461,11 +3461,11 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3461
3461
|
n(r, i || T.EVM);
|
|
3462
3462
|
return;
|
|
3463
3463
|
}
|
|
3464
|
-
e._setCurrentWallet(r), e.modal.setView(
|
|
3464
|
+
e._setCurrentWallet(r), e.modal.setView(M.WalletInstallGuide);
|
|
3465
3465
|
return;
|
|
3466
3466
|
}
|
|
3467
3467
|
const a = e.config?.chains || {}, c = Object.entries(r.connectors || {}).filter(
|
|
3468
|
-
([d,
|
|
3468
|
+
([d, A]) => A && a[d]
|
|
3469
3469
|
), l = c.length;
|
|
3470
3470
|
if (l === 0) {
|
|
3471
3471
|
console.warn("Wallet has no available providers:", r.info.name);
|
|
@@ -3480,7 +3480,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3480
3480
|
n(r, s);
|
|
3481
3481
|
return;
|
|
3482
3482
|
}
|
|
3483
|
-
e._setCurrentWallet(r), e.modal.setView(
|
|
3483
|
+
e._setCurrentWallet(r), e.modal.setView(M.WalletSelectProviders);
|
|
3484
3484
|
} else {
|
|
3485
3485
|
const d = c[0][0];
|
|
3486
3486
|
if (!d) {
|
|
@@ -3595,8 +3595,8 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3595
3595
|
isEmbeddedWallet: !0,
|
|
3596
3596
|
logout: async () => e.logout()
|
|
3597
3597
|
};
|
|
3598
|
-
},
|
|
3599
|
-
const r =
|
|
3598
|
+
}, ke = (e, n = [], t) => {
|
|
3599
|
+
const r = V(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
|
|
@@ -3608,10 +3608,10 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3608
3608
|
}), l = y(() => s ? Vr(s) : null, [s]), d = y(() => {
|
|
3609
3609
|
if (!c.data)
|
|
3610
3610
|
return;
|
|
3611
|
-
const
|
|
3612
|
-
return l && (
|
|
3613
|
-
all: It(
|
|
3614
|
-
recommended: It(
|
|
3611
|
+
const A = Array.isArray(c.data.all) ? [...c.data.all] : [], f = Array.isArray(c.data.recommoned) ? [...c.data.recommoned] : [];
|
|
3612
|
+
return l && (A.some((v) => v.info.uuid === l.info.uuid) || (A.push(l), f.push(l))), {
|
|
3613
|
+
all: It(A, e),
|
|
3614
|
+
recommended: It(f, e)
|
|
3615
3615
|
};
|
|
3616
3616
|
}, [c.data, l, e]);
|
|
3617
3617
|
return {
|
|
@@ -3620,7 +3620,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3620
3620
|
embeddedWalletConnector: l
|
|
3621
3621
|
};
|
|
3622
3622
|
}, Un = ({ extendContent: e }) => {
|
|
3623
|
-
const n =
|
|
3623
|
+
const n = V(X);
|
|
3624
3624
|
if (!n) return null;
|
|
3625
3625
|
const { config: t } = n, { links: r } = t;
|
|
3626
3626
|
return r ? /* @__PURE__ */ C("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -3641,7 +3641,7 @@ const Do = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3641
3641
|
)
|
|
3642
3642
|
] }) : null;
|
|
3643
3643
|
}, oc = () => {
|
|
3644
|
-
const e =
|
|
3644
|
+
const e = V(X);
|
|
3645
3645
|
if (!e) return null;
|
|
3646
3646
|
const { config: n } = e, { links: t } = n;
|
|
3647
3647
|
return t ? /* @__PURE__ */ C("div", { className: "text-xs text-[#A9A29D] text-center", children: [
|
|
@@ -3690,7 +3690,7 @@ const lc = {
|
|
|
3690
3690
|
aptos: { tabKey: "aptos", chainKey: "aptos" },
|
|
3691
3691
|
dogecoin: { tabKey: "doge", chainKey: "dogecoin" }
|
|
3692
3692
|
}, dc = ({ selectedKey: e, onSelectionChange: n }) => {
|
|
3693
|
-
const t =
|
|
3693
|
+
const t = V(X), r = y(() => {
|
|
3694
3694
|
const i = t?.config?.chains || {}, a = [
|
|
3695
3695
|
{
|
|
3696
3696
|
key: "all",
|
|
@@ -3761,7 +3761,7 @@ function fc({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
|
3761
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
3763
|
const uc = () => {
|
|
3764
|
-
const e =
|
|
3764
|
+
const e = V(X), { handleSelectWallet: n } = hr(), { data: t, isLoading: r } = ke("all", e?.config?.connectors), [s, i] = y(() => {
|
|
3765
3765
|
const l = t?.recommended || [], d = t?.all || [];
|
|
3766
3766
|
return Os(l, d);
|
|
3767
3767
|
}, [t]), a = y(
|
|
@@ -3773,7 +3773,7 @@ const uc = () => {
|
|
|
3773
3773
|
r ? null : /* @__PURE__ */ o(
|
|
3774
3774
|
Nr,
|
|
3775
3775
|
{
|
|
3776
|
-
onPress: () => e?.modal.setView(
|
|
3776
|
+
onPress: () => e?.modal.setView(M.WalletSearch),
|
|
3777
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
|
}
|
|
@@ -3808,7 +3808,7 @@ const uc = () => {
|
|
|
3808
3808
|
n.current && (n.current.scrollTop = 0);
|
|
3809
3809
|
}, e), n;
|
|
3810
3810
|
}, mc = Nt, pc = () => {
|
|
3811
|
-
const e =
|
|
3811
|
+
const e = V(X), { handleSelectWallet: n } = hr(), t = e?.modal.state, r = y(() => t?.chainType || "all", [t?.chainType]), { data: s, isLoading: i } = ke(r, e?.config?.connectors), a = y(() => s?.all || [], [s]), [c, l] = Y(""), { isKeyboardVisible: d, keyboardHeight: A } = gc(), f = y(() => a.filter((g) => g.info?.name?.toLowerCase().includes(c.toLowerCase())).filter((g) => !g.isEmbeddedWallet), [a, c]), u = vc([r]), v = y(() => d && A > 0 ? `${Math.max(180, 340 - A * 0.6)}px` : "340px", [d, A]), m = k(
|
|
3812
3812
|
(g) => {
|
|
3813
3813
|
e?.modal.setCurrentViewState({ chainType: g });
|
|
3814
3814
|
},
|
|
@@ -3847,7 +3847,7 @@ const uc = () => {
|
|
|
3847
3847
|
ac,
|
|
3848
3848
|
{
|
|
3849
3849
|
loading: i,
|
|
3850
|
-
wallets:
|
|
3850
|
+
wallets: f,
|
|
3851
3851
|
onSelectWallet: (g) => n(g, r)
|
|
3852
3852
|
}
|
|
3853
3853
|
) })
|
|
@@ -3855,7 +3855,7 @@ const uc = () => {
|
|
|
3855
3855
|
),
|
|
3856
3856
|
/* @__PURE__ */ o(Un, {})
|
|
3857
3857
|
] }) });
|
|
3858
|
-
}, Cc = () =>
|
|
3858
|
+
}, Cc = () => V(an) || {
|
|
3859
3859
|
wallet: null,
|
|
3860
3860
|
isAvailable: !1,
|
|
3861
3861
|
message: null,
|
|
@@ -3863,13 +3863,13 @@ const uc = () => {
|
|
|
3863
3863
|
isLoading: !0,
|
|
3864
3864
|
error: null
|
|
3865
3865
|
}, xc = (e = {}) => {
|
|
3866
|
-
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = Y(!1), s =
|
|
3866
|
+
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = Y(!1), s = V(X), i = Cc(), { embeddedWalletConnector: a } = ke("all"), { connectWallet: c } = Oe(), l = y(
|
|
3867
3867
|
() => a ?? (i.wallet ? Vr(i.wallet) : null),
|
|
3868
3868
|
[a, i.wallet]
|
|
3869
3869
|
);
|
|
3870
3870
|
if (!s)
|
|
3871
3871
|
throw new Error("WalletConnectContext not found");
|
|
3872
|
-
const { isWalletReady: d } = s.walletReady,
|
|
3872
|
+
const { isWalletReady: d } = s.walletReady, A = (g) => {
|
|
3873
3873
|
s.modal.setView(
|
|
3874
3874
|
s.modal.mainView,
|
|
3875
3875
|
{
|
|
@@ -3879,49 +3879,61 @@ const uc = () => {
|
|
|
3879
3879
|
},
|
|
3880
3880
|
!0
|
|
3881
3881
|
), r(!1);
|
|
3882
|
-
},
|
|
3882
|
+
}, f = () => {
|
|
3883
3883
|
const g = l;
|
|
3884
3884
|
if (!g) {
|
|
3885
|
-
|
|
3885
|
+
A("Embedded wallet connector not available");
|
|
3886
3886
|
return;
|
|
3887
3887
|
}
|
|
3888
|
-
i.wallet?.onLoginStatusChanged(({ type:
|
|
3889
|
-
|
|
3888
|
+
i.wallet?.onLoginStatusChanged(({ type: w }) => {
|
|
3889
|
+
w === "logout" && s.disconnect?.();
|
|
3890
3890
|
}), s.modal.openModal();
|
|
3891
|
-
const p = s.config?.defaultConnectChain
|
|
3892
|
-
|
|
3891
|
+
const p = s.config?.defaultConnectChain;
|
|
3892
|
+
if (p) {
|
|
3893
|
+
c(g, p);
|
|
3894
|
+
return;
|
|
3895
|
+
}
|
|
3896
|
+
const I = s.config?.chains || {}, x = Object.entries(g.connectors || {}).filter(
|
|
3897
|
+
([w, O]) => O && I[w]
|
|
3898
|
+
);
|
|
3899
|
+
if (x.length > 1)
|
|
3900
|
+
s._setCurrentWallet(g), s.modal.setView(M.WalletSelectProviders);
|
|
3901
|
+
else {
|
|
3902
|
+
const w = x[0]?.[0] ?? T.EVM;
|
|
3903
|
+
c(g, w);
|
|
3904
|
+
}
|
|
3893
3905
|
};
|
|
3894
3906
|
return {
|
|
3895
3907
|
isLoading: t,
|
|
3896
3908
|
handleEmailLogin: async (g) => {
|
|
3897
3909
|
try {
|
|
3898
3910
|
const p = Ts(g);
|
|
3899
|
-
if (p &&
|
|
3900
|
-
return
|
|
3911
|
+
if (p && A(p), r(!0), !d || !i.wallet)
|
|
3912
|
+
return A("Embedded wallet initialization failed");
|
|
3901
3913
|
const I = i.wallet;
|
|
3902
3914
|
n && s.modal.closeModal();
|
|
3903
3915
|
const x = await I?.loginByEmail?.({ email: g });
|
|
3904
3916
|
if (!x)
|
|
3905
|
-
return
|
|
3917
|
+
return A("Failed to login into email");
|
|
3906
3918
|
if (!(await I.login(x)).isAvailable)
|
|
3907
|
-
return
|
|
3908
|
-
|
|
3919
|
+
return A("Failed to login with email");
|
|
3920
|
+
f();
|
|
3909
3921
|
} catch (p) {
|
|
3910
|
-
console.error("Email login error:", p), r(!1),
|
|
3922
|
+
console.error("Email login error:", p), r(!1), A("Failed to login with email");
|
|
3911
3923
|
}
|
|
3912
3924
|
},
|
|
3913
3925
|
handleGoogleLogin: async () => {
|
|
3914
3926
|
try {
|
|
3915
3927
|
if (r(!0), !d || !i.wallet)
|
|
3916
|
-
return
|
|
3928
|
+
return A("Embedded wallet initialization failed");
|
|
3917
3929
|
const g = i.wallet, p = await g?.loginByGoogle?.();
|
|
3918
3930
|
if (!p)
|
|
3919
|
-
return
|
|
3931
|
+
return A("Failed to login into Google");
|
|
3920
3932
|
if (!(await g.login(p)).isAvailable)
|
|
3921
|
-
return
|
|
3922
|
-
|
|
3933
|
+
return A("Failed to login with Google");
|
|
3934
|
+
f();
|
|
3923
3935
|
} catch (g) {
|
|
3924
|
-
console.error("Google login error:", g),
|
|
3936
|
+
console.error("Google login error:", g), A("Failed to login with Google");
|
|
3925
3937
|
} finally {
|
|
3926
3938
|
r(!1);
|
|
3927
3939
|
}
|
|
@@ -3929,22 +3941,22 @@ const uc = () => {
|
|
|
3929
3941
|
handleXLogin: async () => {
|
|
3930
3942
|
try {
|
|
3931
3943
|
if (r(!0), !d || !i.wallet)
|
|
3932
|
-
return
|
|
3944
|
+
return A("Embedded wallet initialization failed");
|
|
3933
3945
|
const g = i.wallet, p = await g?.loginByX?.();
|
|
3934
3946
|
if (!p)
|
|
3935
|
-
return
|
|
3947
|
+
return A("Failed to login into X");
|
|
3936
3948
|
if (!(await g.login(p)).isAvailable)
|
|
3937
|
-
return
|
|
3938
|
-
|
|
3949
|
+
return A("Failed to login with X");
|
|
3950
|
+
f();
|
|
3939
3951
|
} catch (g) {
|
|
3940
|
-
console.error("X login error:", g),
|
|
3952
|
+
console.error("X login error:", g), A(g instanceof Error ? g.message : g);
|
|
3941
3953
|
} finally {
|
|
3942
3954
|
r(!1);
|
|
3943
3955
|
}
|
|
3944
3956
|
}
|
|
3945
3957
|
};
|
|
3946
3958
|
}, bc = () => {
|
|
3947
|
-
const e =
|
|
3959
|
+
const e = V(X);
|
|
3948
3960
|
if (!e)
|
|
3949
3961
|
return { themeMode: "dark", themeType: "doge_dark" };
|
|
3950
3962
|
const { themeMode: n } = e.config || { themeMode: "dark" }, t = yr();
|
|
@@ -4022,7 +4034,7 @@ const uc = () => {
|
|
|
4022
4034
|
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
4035
|
}
|
|
4024
4036
|
), yc = Nt, Bc = () => {
|
|
4025
|
-
const e =
|
|
4037
|
+
const e = V(X), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } = xc({
|
|
4026
4038
|
closeModalBeforeIframe: !0
|
|
4027
4039
|
});
|
|
4028
4040
|
if (!e)
|
|
@@ -4039,7 +4051,7 @@ const uc = () => {
|
|
|
4039
4051
|
const c = async () => {
|
|
4040
4052
|
await t(i);
|
|
4041
4053
|
}, l = () => {
|
|
4042
|
-
e.modal.setView(
|
|
4054
|
+
e.modal.setView(M.WalletSearch);
|
|
4043
4055
|
}, { isDark: d } = bc();
|
|
4044
4056
|
return /* @__PURE__ */ C(
|
|
4045
4057
|
F,
|
|
@@ -4101,14 +4113,14 @@ const uc = () => {
|
|
|
4101
4113
|
type: "email",
|
|
4102
4114
|
placeholder: "Enter your email",
|
|
4103
4115
|
value: i,
|
|
4104
|
-
onChange: (
|
|
4116
|
+
onChange: (A) => a(A.target.value),
|
|
4105
4117
|
classNames: {
|
|
4106
4118
|
inputWrapper: "rounded-2xl h-12",
|
|
4107
4119
|
input: "text-base"
|
|
4108
4120
|
},
|
|
4109
4121
|
autoComplete: "new-password",
|
|
4110
|
-
onKeyDown: (
|
|
4111
|
-
if (
|
|
4122
|
+
onKeyDown: (A) => {
|
|
4123
|
+
if (A.key === "Enter") {
|
|
4112
4124
|
if (!Zt(i))
|
|
4113
4125
|
return;
|
|
4114
4126
|
c();
|
|
@@ -4136,7 +4148,7 @@ const uc = () => {
|
|
|
4136
4148
|
}
|
|
4137
4149
|
);
|
|
4138
4150
|
}, hc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAgCAYAAADtwH1UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4eSURBVHgBvVoJcBRVGv5eT8+Vc0KQSwKDIJccEWFFFIMu4oUQd9li0VUDuqulW0ZLYMtdkUR0Wa8iVlmUFosGXK+SLRFUVlcrBtcVF3DjxQqKDiEcUTEzuTNH9/7/6+7JZDJkjoB/5eV1v+7X781/fP///vcEUqS7KnRPs7Ot1AZRousoBnQvIDzGU91P1z4hUAdNr80OZW+tqhD+2P56TbGnJYRSBXqJDuov4IUOo7+An659AqjTIGpz7dgqLqnr2V/XPXV1X5YGQq4SNdtTrKgebzAET4QmQ339kWCLL9TeWFfkUWonTx69VYi48T1eD1pQCgUlkPOn8WGOD/C7PvD8gVpk0/h+X4/+TU1N/G4plRLgJP1h9ge2FhQU+JECiWQv3La2w6vperkGrayb4Sl8WKDaBqVy3cwLEAlq5boiyqIMT21i1Ta7qPSPr0F7SCsfOHRAWX2j7mlvF2CmaxGBMNURDdA0vqY6ArjcGgYMVeA/fKJ65tnZla6CCUAE5TR2GZD6+DSBathQ6T/2X74rJ4GW2Ww2j91uh6qqUBSFfqPBPp3nEYnIEg6HEQqFuLmaSiUJwtf3MCch1vhWR8dq+vxdyIDcagsuH/oMSga/jExI2HPRWngDssf9Dl8fi0DXbJLZuqYjTM91FgDdhzVLGCwIyDaulUATzn/1SQze8AwyIT0vF50rb0Xwtt/A6XTKYjE8GWk0gWAwKAsJ5S+BQK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ih8Cp2pQfiqt2bsThI4NoYqrJeMMfsCPmRJ3hE3SKhkTUObN/4GfDmhuw9tklGNTUj035rbQpP/6n25TvEfzuefch/3mX31srdOUKpBgVtccoTEckFwdbp2F83kdwq61J+8rEXE7MFMKtuH7sbvzDPxstLS55MsISgk01BMEb84ZQRDRasqKnTncuvjhrJqbRBksmUZFoboH6773omD1Dhqynyimz5nd0dPjo8lpi/pc9xkzUIRNLiKX+HsxS3MNw/X824MDhIaSWNiMktVnhqW5GRMYeAbfbFCtMNU5NDGs+jDUbr+u3JahjvPJgVqY7ZezUGfNJAD6c5GBWwuUfW8KU2cs3CUW4Uw1PY4ktYfeJq4khQXhzvkC6xNucvzxzO4YXKvio41xSIc04oGXmhpTodbcFKEaySNZt7ny8f94vkOsO4qyD6YenbAkO2nCJkH52njdJMjL2LGjS+dP7rPUEOXxWlIObJcT84wnHSvYx48REpIJevQmpk1/o+iYbhbdriy9gDSUHr6fen09LR8Qm2v6tcs35EHc/21bxSUvhTVorZUGD3dqvCCMfpFgpC1Ind7aO7ALhP8d1ZFP5wsIq83BuBXnqtOZPc9hE6lllHs6toHKTdTCX0xZcYg/ncnhpHcylKIf3ezfRo6qMD+fGEx/WbXO28f7xHOrG+Vcv4o5n8/F0gq7avK7ex9ObXi322LJRSoyYQ+9Npc1fb8/j6cJnHE9HbaQNWwuu7X08fVedr/SdvR1zPv3ujKltoWxve9jtYUjKc7T7C5xtvglDA3U/n2yvnTbZm/h4eps8Xj6Hxk04f3k8XUMtcvs8nj6HSuL+GRxP/z/hFFWXpmDkiwAAAABJRU5ErkJggg==", Gn = () => {
|
|
4139
|
-
const e =
|
|
4151
|
+
const e = V(X);
|
|
4140
4152
|
if (!e)
|
|
4141
4153
|
throw new Error("useAccount must be used within WalletConnectProvider");
|
|
4142
4154
|
return {
|
|
@@ -4156,15 +4168,15 @@ const uc = () => {
|
|
|
4156
4168
|
// signAndSendTransaction: context.signAndSendTransaction,
|
|
4157
4169
|
// sendTransaction: context.sendTransaction,
|
|
4158
4170
|
};
|
|
4159
|
-
},
|
|
4160
|
-
const e =
|
|
4171
|
+
}, Ma = () => {
|
|
4172
|
+
const e = V(X);
|
|
4161
4173
|
if (!e)
|
|
4162
4174
|
throw new Error("useConnectors must be used within WalletConnectProvider");
|
|
4163
4175
|
const n = y(() => e.account?.currentWallet?.connectors || null, [e.account?.currentWallet]), t = y(() => e.account?.currentProvider || null, [e.account?.currentProvider]);
|
|
4164
4176
|
return { connectors: n, currentProvider: t };
|
|
4165
4177
|
};
|
|
4166
4178
|
function Wc(e = !1) {
|
|
4167
|
-
const [n, t] = Y(e), r =
|
|
4179
|
+
const [n, t] = Y(e), r = k(() => t(!0), []), s = k(() => t(!1), []), i = k(() => t((c) => !c), []), a = k((c) => t(c), []);
|
|
4168
4180
|
return {
|
|
4169
4181
|
isOpen: n,
|
|
4170
4182
|
onOpen: r,
|
|
@@ -4178,30 +4190,30 @@ const Mc = (e) => {
|
|
|
4178
4190
|
J(() => {
|
|
4179
4191
|
s !== e && i(e);
|
|
4180
4192
|
}, [e]);
|
|
4181
|
-
const
|
|
4193
|
+
const A = k(
|
|
4182
4194
|
(I, x, w) => {
|
|
4183
|
-
s === I && !w || (w || d((
|
|
4195
|
+
s === I && !w || (w || d((O) => [...O, { view: s, state: a }]), i(I), c(x || null));
|
|
4184
4196
|
},
|
|
4185
4197
|
[s, a]
|
|
4186
|
-
),
|
|
4198
|
+
), f = k(() => {
|
|
4187
4199
|
i(e), setTimeout(() => {
|
|
4188
4200
|
c(null), d([]);
|
|
4189
4201
|
}, 0);
|
|
4190
|
-
}, [e]), u =
|
|
4191
|
-
r?.(),
|
|
4192
|
-
}, [r,
|
|
4202
|
+
}, [e]), u = k(() => {
|
|
4203
|
+
r?.(), f();
|
|
4204
|
+
}, [r, f]), v = k(
|
|
4193
4205
|
(I, x) => {
|
|
4194
4206
|
d((w) => [...w, { view: s, state: a }]), i(I), c(x || null), t();
|
|
4195
4207
|
},
|
|
4196
4208
|
[s, a, t]
|
|
4197
|
-
), m =
|
|
4209
|
+
), m = k(() => {
|
|
4198
4210
|
d((I) => {
|
|
4199
4211
|
if (I.length === 0)
|
|
4200
4212
|
return i(e), c(null), I;
|
|
4201
4213
|
const x = I[I.length - 1], w = I.slice(0, -1);
|
|
4202
4214
|
return i(x.view), c(x.state), w;
|
|
4203
4215
|
});
|
|
4204
|
-
}, [e]), g =
|
|
4216
|
+
}, [e]), g = k((I) => {
|
|
4205
4217
|
c(I || null);
|
|
4206
4218
|
}, []), p = l.length > 0 ? l[l.length - 1].view : null;
|
|
4207
4219
|
return {
|
|
@@ -4211,7 +4223,7 @@ const Mc = (e) => {
|
|
|
4211
4223
|
openModal: t,
|
|
4212
4224
|
openModalWithState: v,
|
|
4213
4225
|
closeModal: u,
|
|
4214
|
-
setView:
|
|
4226
|
+
setView: A,
|
|
4215
4227
|
backView: m,
|
|
4216
4228
|
state: a,
|
|
4217
4229
|
setCurrentViewState: g
|
|
@@ -4276,8 +4288,8 @@ function Xn(e, n, t) {
|
|
|
4276
4288
|
return null;
|
|
4277
4289
|
const s = Tr(), i = t || s || r.connectors;
|
|
4278
4290
|
return !i || i.length === 0 ? null : i.find((a) => {
|
|
4279
|
-
const c = (a.id || "").toLowerCase(), l = (a.name || "").toLowerCase(), d = e.toLowerCase(),
|
|
4280
|
-
return c === d || c ===
|
|
4291
|
+
const c = (a.id || "").toLowerCase(), l = (a.name || "").toLowerCase(), d = e.toLowerCase(), A = n?.toLowerCase();
|
|
4292
|
+
return c === d || c === A || l === d || l === A || c.includes(d) || l.includes(d);
|
|
4281
4293
|
}) || null;
|
|
4282
4294
|
}
|
|
4283
4295
|
const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
@@ -4291,7 +4303,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4291
4303
|
resetWalletState: s,
|
|
4292
4304
|
setMainView: i
|
|
4293
4305
|
}) => {
|
|
4294
|
-
const { currentProvider: a, currentWallet: c, isConnected: l, actionsLoading: d } = e,
|
|
4306
|
+
const { currentProvider: a, currentWallet: c, isConnected: l, actionsLoading: d } = e, f = V(an)?.connectedInfo ?? null, u = Sr(), v = Xc(), m = Tr(), g = k(
|
|
4295
4307
|
async (b) => {
|
|
4296
4308
|
const { wallet: z, chainType: W } = b, S = (z.connectors[W] || null)?.provider || null;
|
|
4297
4309
|
if (l && c?.info?.uuid === z.info.uuid && W === e.chainType)
|
|
@@ -4339,9 +4351,9 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4339
4351
|
address: B.address,
|
|
4340
4352
|
connectedAt: Date.now(),
|
|
4341
4353
|
walletId: z.info.uuid
|
|
4342
|
-
}, z.isEmbeddedWallet &&
|
|
4343
|
-
if (
|
|
4344
|
-
const N =
|
|
4354
|
+
}, z.isEmbeddedWallet && f) {
|
|
4355
|
+
if (f.evmProvider?.connected && f.evmProvider.address?.[0]) {
|
|
4356
|
+
const N = f.evmProvider.address[0];
|
|
4345
4357
|
if (W !== T.EVM || !j[T.EVM]) {
|
|
4346
4358
|
const Q = (z.connectors[T.EVM] || null)?.provider || null;
|
|
4347
4359
|
Q && (j[T.EVM] = {
|
|
@@ -4352,8 +4364,8 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4352
4364
|
});
|
|
4353
4365
|
}
|
|
4354
4366
|
}
|
|
4355
|
-
if (
|
|
4356
|
-
const N =
|
|
4367
|
+
if (f.solanaProvider?.connected && f.solanaProvider.address?.[0]) {
|
|
4368
|
+
const N = f.solanaProvider.address[0];
|
|
4357
4369
|
if (W !== T.SOLANA || !j[T.SOLANA]) {
|
|
4358
4370
|
const Q = (z.connectors[T.SOLANA] || null)?.provider || null;
|
|
4359
4371
|
Q && (j[T.SOLANA] = {
|
|
@@ -4364,8 +4376,8 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4364
4376
|
});
|
|
4365
4377
|
}
|
|
4366
4378
|
}
|
|
4367
|
-
if (
|
|
4368
|
-
const N =
|
|
4379
|
+
if (f.dogeProvider?.connected && f.dogeProvider.address?.[0]) {
|
|
4380
|
+
const N = f.dogeProvider.address[0];
|
|
4369
4381
|
if (W !== T.DOGECOIN || !j[T.DOGECOIN]) {
|
|
4370
4382
|
const Q = (z.connectors[T.DOGECOIN] || null)?.provider || null;
|
|
4371
4383
|
Q && (j[T.DOGECOIN] = {
|
|
@@ -4432,14 +4444,14 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4432
4444
|
c?.info?.uuid,
|
|
4433
4445
|
e.chainType,
|
|
4434
4446
|
e.providers,
|
|
4435
|
-
|
|
4447
|
+
f,
|
|
4436
4448
|
r,
|
|
4437
4449
|
t,
|
|
4438
4450
|
n,
|
|
4439
4451
|
u,
|
|
4440
4452
|
m
|
|
4441
4453
|
]
|
|
4442
|
-
), p =
|
|
4454
|
+
), p = k(async () => {
|
|
4443
4455
|
t((b) => ({ ...b, actionsLoading: !0 }));
|
|
4444
4456
|
try {
|
|
4445
4457
|
if (n.closeModal(), a?.disconnect?.(), v)
|
|
@@ -4449,7 +4461,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4449
4461
|
console.warn("Failed to disconnect wagmi connector:", z);
|
|
4450
4462
|
}
|
|
4451
4463
|
const b = e.providers;
|
|
4452
|
-
c?.isEmbeddedWallet && (await c?.logout?.(), i(
|
|
4464
|
+
c?.isEmbeddedWallet && (await c?.logout?.(), i(M.WalletHome)), s(), t((z) => ({
|
|
4453
4465
|
...z,
|
|
4454
4466
|
providers: b
|
|
4455
4467
|
}));
|
|
@@ -4465,7 +4477,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4465
4477
|
c,
|
|
4466
4478
|
s,
|
|
4467
4479
|
i
|
|
4468
|
-
]), I =
|
|
4480
|
+
]), I = k(
|
|
4469
4481
|
async ({ chainInfo: b, chainType: z }) => {
|
|
4470
4482
|
Cn(d, r);
|
|
4471
4483
|
const W = b.id.toString(), E = {
|
|
@@ -4476,7 +4488,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4476
4488
|
}, S = {
|
|
4477
4489
|
chainId: W,
|
|
4478
4490
|
chainName: b.name,
|
|
4479
|
-
rpcUrls:
|
|
4491
|
+
rpcUrls: b.rpcUrls.default.http,
|
|
4480
4492
|
iconUrls: [],
|
|
4481
4493
|
nativeCurrency: b.nativeCurrency,
|
|
4482
4494
|
blockExplorerUrls: [b.blockExplorers?.default.url || ""]
|
|
@@ -4496,7 +4508,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4496
4508
|
}
|
|
4497
4509
|
},
|
|
4498
4510
|
[t, e, d, r]
|
|
4499
|
-
), x =
|
|
4511
|
+
), x = k(
|
|
4500
4512
|
async (b) => {
|
|
4501
4513
|
if (Cn(d, r), !e.isConnected || !e.currentProvider || !e.chainType)
|
|
4502
4514
|
throw new Error("Wallet not connected");
|
|
@@ -4541,7 +4553,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4541
4553
|
t,
|
|
4542
4554
|
r
|
|
4543
4555
|
]
|
|
4544
|
-
), w =
|
|
4556
|
+
), w = k(
|
|
4545
4557
|
async (b) => {
|
|
4546
4558
|
if (Cn(d, r), !e.isConnected || !e.currentProvider || !e.chainType)
|
|
4547
4559
|
throw new Error("Wallet not connected");
|
|
@@ -4578,7 +4590,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4578
4590
|
t,
|
|
4579
4591
|
r
|
|
4580
4592
|
]
|
|
4581
|
-
),
|
|
4593
|
+
), O = k(
|
|
4582
4594
|
(b) => t((z) => ({ ...z, currentWallet: b })),
|
|
4583
4595
|
[t]
|
|
4584
4596
|
);
|
|
@@ -4591,10 +4603,10 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4591
4603
|
// signTransaction,
|
|
4592
4604
|
// signAndSendTransaction,
|
|
4593
4605
|
// sendTransaction,
|
|
4594
|
-
_setCurrentWallet:
|
|
4606
|
+
_setCurrentWallet: O
|
|
4595
4607
|
};
|
|
4596
|
-
},
|
|
4597
|
-
const e =
|
|
4608
|
+
}, Va = () => {
|
|
4609
|
+
const e = V(X);
|
|
4598
4610
|
if (!e)
|
|
4599
4611
|
throw new Error("useWalletConnect must be used within WalletConnectProvider");
|
|
4600
4612
|
return {
|
|
@@ -4619,23 +4631,28 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4619
4631
|
mutationFn: async (n) => e(n)
|
|
4620
4632
|
});
|
|
4621
4633
|
}, Pt = ({ chainType: e, chain: n }) => {
|
|
4622
|
-
const { mutateAsync: t, isPending: r } = Tc(), s =
|
|
4634
|
+
const { mutateAsync: t, isPending: r } = Tc(), s = V(X), { connectWallet: i } = Oe();
|
|
4623
4635
|
if (!n || !s)
|
|
4624
4636
|
throw new Error(`Chain ${e} not found`);
|
|
4625
4637
|
const { currentWallet: a } = s.account;
|
|
4626
4638
|
if (!a)
|
|
4627
4639
|
throw new Error("Current wallet not found");
|
|
4628
|
-
const { chainType: c, chainId: l } = Gn(), d =
|
|
4640
|
+
const { chainType: c, chainId: l } = Gn(), d = y(() => {
|
|
4641
|
+
if (l) {
|
|
4642
|
+
if (/^\d+$/.test(l)) return Number(l);
|
|
4643
|
+
if (l.startsWith("0x")) return parseInt(l, 16);
|
|
4644
|
+
}
|
|
4645
|
+
}, [l]), A = y(() => {
|
|
4629
4646
|
const m = c?.toLowerCase() === e?.toLowerCase();
|
|
4630
4647
|
if (c === "evm") {
|
|
4631
4648
|
const g = Number(n?.chainId?.split(":")[1] || "0");
|
|
4632
|
-
return m && d === g;
|
|
4649
|
+
return d !== void 0 ? m && d === g : !1;
|
|
4633
4650
|
}
|
|
4634
4651
|
return m;
|
|
4635
|
-
}, [n?.chainId, d, e, c]),
|
|
4652
|
+
}, [n?.chainId, d, e, c]), f = y(
|
|
4636
4653
|
() => a?.connectors?.[e]?.provider,
|
|
4637
4654
|
[a, e]
|
|
4638
|
-
), u = y(() =>
|
|
4655
|
+
), u = y(() => A ? /* @__PURE__ */ o("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ o(Vt, { className: "size-3", color: "white" }) }) : r ? /* @__PURE__ */ o(
|
|
4639
4656
|
ue,
|
|
4640
4657
|
{
|
|
4641
4658
|
size: "sm",
|
|
@@ -4644,10 +4661,10 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4644
4661
|
circle2: "border-b-primary"
|
|
4645
4662
|
}
|
|
4646
4663
|
}
|
|
4647
|
-
) : /* @__PURE__ */ o(jn, { className: "size-4" }), [r,
|
|
4648
|
-
if (!(r ||
|
|
4664
|
+
) : /* @__PURE__ */ o(jn, { className: "size-4" }), [r, A]), v = () => {
|
|
4665
|
+
if (!(r || A)) {
|
|
4649
4666
|
if (c !== e) {
|
|
4650
|
-
|
|
4667
|
+
f ? i(a, e) : s.modal.setView(M.ChangeNetwork, n);
|
|
4651
4668
|
return;
|
|
4652
4669
|
}
|
|
4653
4670
|
t({
|
|
@@ -4656,7 +4673,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4656
4673
|
}).then(() => {
|
|
4657
4674
|
s?.modal.backView();
|
|
4658
4675
|
}).catch((m) => {
|
|
4659
|
-
throw console.error("handleSwitchChain::", m), s.modal.setView(
|
|
4676
|
+
throw console.error("handleSwitchChain::", m), s.modal.setView(M.UnsupportChain, n), m;
|
|
4660
4677
|
});
|
|
4661
4678
|
}
|
|
4662
4679
|
};
|
|
@@ -4707,7 +4724,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4707
4724
|
/* @__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
4725
|
] });
|
|
4709
4726
|
}, Sc = () => {
|
|
4710
|
-
const e =
|
|
4727
|
+
const e = V(X);
|
|
4711
4728
|
if (!e)
|
|
4712
4729
|
throw new Error("WalletConnectContext not found");
|
|
4713
4730
|
const { currentWallet: n } = e.account;
|
|
@@ -4735,7 +4752,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4735
4752
|
children: /* @__PURE__ */ o("span", { className: "flex-1 text-left text-sm font-medium", children: q[e].name })
|
|
4736
4753
|
}
|
|
4737
4754
|
);
|
|
4738
|
-
},
|
|
4755
|
+
}, kc = ({ providers: e, onSelect: n }) => /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 w-full pb-6", children: e.map((t, r) => /* @__PURE__ */ o(
|
|
4739
4756
|
Oc,
|
|
4740
4757
|
{
|
|
4741
4758
|
chainType: t.chainType,
|
|
@@ -4743,8 +4760,8 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4743
4760
|
onSelect: () => n(t.chainType)
|
|
4744
4761
|
},
|
|
4745
4762
|
`${t.chainType}-${t.protocol}-${r}`
|
|
4746
|
-
)) }),
|
|
4747
|
-
const e =
|
|
4763
|
+
)) }), Lc = () => {
|
|
4764
|
+
const e = V(X);
|
|
4748
4765
|
if (!e)
|
|
4749
4766
|
throw new Error("WalletConnectContext not found");
|
|
4750
4767
|
const { connectWallet: n } = Oe(), { currentWallet: t } = e.account;
|
|
@@ -4756,7 +4773,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4756
4773
|
...d,
|
|
4757
4774
|
chainType: l
|
|
4758
4775
|
}));
|
|
4759
|
-
}, [t?.connectors, e.config?.chains]), i =
|
|
4776
|
+
}, [t?.connectors, e.config?.chains]), i = k(
|
|
4760
4777
|
async (a) => {
|
|
4761
4778
|
if (!t) {
|
|
4762
4779
|
console.error("Current wallet not found");
|
|
@@ -4774,15 +4791,15 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4774
4791
|
/* @__PURE__ */ o("br", {}),
|
|
4775
4792
|
"Please select the network you'd like to connect to."
|
|
4776
4793
|
] }),
|
|
4777
|
-
/* @__PURE__ */ o(
|
|
4794
|
+
/* @__PURE__ */ o(kc, { providers: s, onSelect: i })
|
|
4778
4795
|
] }) });
|
|
4779
4796
|
}, Yc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDE1MCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGZvcmVpZ25PYmplY3QgeD0iMjEuMDg4MiIgeT0iMjEuNTg0MyIgd2lkdGg9IjEwNi45MjgiIGhlaWdodD0iMTA2LjkzNSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tkcm9wLWZpbHRlcjpibHVyKDAuNjlweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyXzBfMTQxXzExMDJfY2xpcF9wYXRoKTtoZWlnaHQ6MTAwJTt3aWR0aDoxMDAlIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGcgZGF0YS1maWdtYS1iZy1ibHVyLXJhZGl1cz0iMS4zNzQ2NSI+CiAgPHBhdGggZD0iTTg0LjYyNCA3NC42ODI2SDEyNi40MzVDMTI2LjQzNyA3NC44MDYzIDEyNi40MzkgNzQuOTI4MSAxMjYuNDM5IDc1LjA1MThDMTI2LjQzOSAxMDMuNjQzIDEwMy4zMTcgMTI2LjgzMiA3NC43NTEgMTI2Ljk0Vjg0LjU1NTdDNzQuNzUxIDc5LjEwMjkgNzkuMTcxMyA3NC42ODI3IDg0LjYyNCA3NC42ODI2Wk03NC4zNDY3IDY0LjQwNjJDNzQuMzQ2NSA2OS44NTkgNjkuOTI2MyA3NC4yODEyIDY0LjQ3MzYgNzQuMjgxMkgyMi42NjhDMjMuMDc4OSA0Ni4wNDUx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s =
|
|
4797
|
+
const [e, n] = Y(!1), [t, r] = Y(null), s = V(X);
|
|
4781
4798
|
if (!s)
|
|
4782
4799
|
throw new Error("WalletConnectContext not found");
|
|
4783
4800
|
const { onCancel: i, onConfirm: a } = s.modal.state, c = () => {
|
|
4784
4801
|
i?.(), s.modal.closeModal();
|
|
4785
|
-
}, l = ce(null), { mutate: d, isPending:
|
|
4802
|
+
}, l = ce(null), { mutate: d, isPending: A } = En({
|
|
4786
4803
|
mutationKey: ["sign-in-wallet"],
|
|
4787
4804
|
mutationFn: async () => a?.(),
|
|
4788
4805
|
onSuccess: () => {
|
|
@@ -4809,9 +4826,9 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4809
4826
|
size: "lg",
|
|
4810
4827
|
color: "primary",
|
|
4811
4828
|
onPress: () => d(),
|
|
4812
|
-
disabled:
|
|
4829
|
+
disabled: A || e,
|
|
4813
4830
|
className: "rounded-full bg-primary disabled:bg-primary-50",
|
|
4814
|
-
startContent:
|
|
4831
|
+
startContent: A ? /* @__PURE__ */ o(
|
|
4815
4832
|
ue,
|
|
4816
4833
|
{
|
|
4817
4834
|
size: "sm",
|
|
@@ -4821,12 +4838,12 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4821
4838
|
}
|
|
4822
4839
|
}
|
|
4823
4840
|
) : null,
|
|
4824
|
-
children:
|
|
4841
|
+
children: A ? "Waiting confirmation" : e ? "Signed" : "Sign In"
|
|
4825
4842
|
}
|
|
4826
4843
|
) })
|
|
4827
4844
|
] }) });
|
|
4828
4845
|
}, Dc = "Please reselect the network you want to switch to", Fc = ae.unsupported, Hc = () => {
|
|
4829
|
-
const e =
|
|
4846
|
+
const e = V(X);
|
|
4830
4847
|
if (!e)
|
|
4831
4848
|
throw new Error("WalletConnectContext not found");
|
|
4832
4849
|
const n = e.modal.state?.name || "-", t = () => {
|
|
@@ -4847,30 +4864,30 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4847
4864
|
/* @__PURE__ */ o(L, { className: "w-full my-4", onPress: t, children: "Got it" })
|
|
4848
4865
|
] }) });
|
|
4849
4866
|
}, Qc = () => {
|
|
4850
|
-
const e =
|
|
4867
|
+
const e = V(X);
|
|
4851
4868
|
if (!e)
|
|
4852
4869
|
throw new Error("WalletConnectContext not found");
|
|
4853
4870
|
const { currentWallet: n } = e.account;
|
|
4854
4871
|
if (!n)
|
|
4855
4872
|
throw new Error("Current wallet not found");
|
|
4856
|
-
const [t, r] = Y(""), { copy: s, copied: i } =
|
|
4873
|
+
const [t, r] = Y(""), { copy: s, copied: i } = Ln(), a = () => {
|
|
4857
4874
|
s(t);
|
|
4858
4875
|
}, c = e.modal.state?.chainType || "evm", l = y(() => n.providers?.[c]?.provider, [n, c]);
|
|
4859
4876
|
return J(() => {
|
|
4860
4877
|
if (l && l && typeof l.on == "function" && typeof l.off == "function") {
|
|
4861
|
-
const
|
|
4862
|
-
r(
|
|
4878
|
+
const A = (f) => {
|
|
4879
|
+
r(f.uri);
|
|
4863
4880
|
};
|
|
4864
4881
|
try {
|
|
4865
|
-
l.on("uri_changed",
|
|
4866
|
-
} catch (
|
|
4867
|
-
throw console.warn("Failed to register event listener:",
|
|
4882
|
+
l.on("uri_changed", A);
|
|
4883
|
+
} catch (f) {
|
|
4884
|
+
throw console.warn("Failed to register event listener:", f), f;
|
|
4868
4885
|
}
|
|
4869
4886
|
return () => {
|
|
4870
4887
|
try {
|
|
4871
|
-
l.off("uri_changed",
|
|
4872
|
-
} catch (
|
|
4873
|
-
throw console.warn("Failed to remove event listener:",
|
|
4888
|
+
l.off("uri_changed", A);
|
|
4889
|
+
} catch (f) {
|
|
4890
|
+
throw console.warn("Failed to remove event listener:", f), f;
|
|
4874
4891
|
}
|
|
4875
4892
|
};
|
|
4876
4893
|
}
|
|
@@ -4889,20 +4906,20 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4889
4906
|
/* @__PURE__ */ o(L, { variant: "light", size: "lg", fullWidth: !0, onPress: a, children: i ? "Copied!" : "Copy Link" })
|
|
4890
4907
|
] }) });
|
|
4891
4908
|
}, Or = {
|
|
4892
|
-
[
|
|
4893
|
-
[
|
|
4894
|
-
[
|
|
4895
|
-
[
|
|
4896
|
-
[
|
|
4897
|
-
[
|
|
4898
|
-
[
|
|
4899
|
-
[
|
|
4900
|
-
[
|
|
4901
|
-
[
|
|
4902
|
-
[
|
|
4903
|
-
[
|
|
4904
|
-
[
|
|
4905
|
-
[
|
|
4909
|
+
[M.Loading]: () => /* @__PURE__ */ o(rc, {}),
|
|
4910
|
+
[M.Error]: () => /* @__PURE__ */ o(qo, {}),
|
|
4911
|
+
[M.Connecting]: () => /* @__PURE__ */ o(Ko, {}),
|
|
4912
|
+
[M.WalletList]: () => /* @__PURE__ */ o(uc, {}),
|
|
4913
|
+
[M.WalletSearch]: () => /* @__PURE__ */ o(pc, {}),
|
|
4914
|
+
[M.WalletSelectProviders]: () => /* @__PURE__ */ o(Lc, {}),
|
|
4915
|
+
[M.WalletInstallGuide]: () => /* @__PURE__ */ o(tc, {}),
|
|
4916
|
+
[M.Account]: () => /* @__PURE__ */ o(Fo, {}),
|
|
4917
|
+
[M.SelectChains]: () => /* @__PURE__ */ o(Sc, {}),
|
|
4918
|
+
[M.ChangeNetwork]: () => /* @__PURE__ */ o(Ho, {}),
|
|
4919
|
+
[M.SignInWallet]: () => /* @__PURE__ */ o(Jc, {}),
|
|
4920
|
+
[M.WalletConnect]: () => /* @__PURE__ */ o(Qc, {}),
|
|
4921
|
+
[M.UnsupportChain]: () => /* @__PURE__ */ o(Hc, {}),
|
|
4922
|
+
[M.WalletHome]: () => /* @__PURE__ */ o(Bc, {})
|
|
4906
4923
|
}, Kc = (e) => {
|
|
4907
4924
|
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
4925
|
i,
|
|
@@ -4922,7 +4939,7 @@ const Cn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4922
4939
|
}
|
|
4923
4940
|
);
|
|
4924
4941
|
}, qc = () => {
|
|
4925
|
-
const e =
|
|
4942
|
+
const e = V(X);
|
|
4926
4943
|
if (!e)
|
|
4927
4944
|
return null;
|
|
4928
4945
|
const { modal: n, connection: t } = e, r = () => {
|
|
@@ -4952,16 +4969,13 @@ function Gc(e, n) {
|
|
|
4952
4969
|
function Rc(e, n) {
|
|
4953
4970
|
return n ? "connecting" : e ? "connected" : "disconnected";
|
|
4954
4971
|
}
|
|
4955
|
-
const _c = ["embeddedWallet"]
|
|
4956
|
-
function
|
|
4957
|
-
|
|
4972
|
+
const _c = ["embeddedWallet"];
|
|
4973
|
+
async function $c(e, n) {
|
|
4974
|
+
const t = ms.getInstance(), r = await t.init({
|
|
4958
4975
|
...e,
|
|
4959
4976
|
clientId: e.clientId,
|
|
4960
|
-
stage: e.stage
|
|
4961
|
-
};
|
|
4962
|
-
}
|
|
4963
|
-
async function na(e, n) {
|
|
4964
|
-
const t = ms.getInstance(), r = await t.init(e);
|
|
4977
|
+
stage: e.stage || "prod"
|
|
4978
|
+
});
|
|
4965
4979
|
if (n?.aborted)
|
|
4966
4980
|
throw new Error("Aborted");
|
|
4967
4981
|
if (!r)
|
|
@@ -4973,7 +4987,7 @@ async function na(e, n) {
|
|
|
4973
4987
|
connectedInfo: r.connectedInfo ?? null
|
|
4974
4988
|
};
|
|
4975
4989
|
}
|
|
4976
|
-
const
|
|
4990
|
+
const ea = ({
|
|
4977
4991
|
config: e,
|
|
4978
4992
|
setMainView: n,
|
|
4979
4993
|
defaultMainView: t,
|
|
@@ -4981,34 +4995,31 @@ const ta = ({
|
|
|
4981
4995
|
defaultTheme: s,
|
|
4982
4996
|
themeMode: i
|
|
4983
4997
|
}) => {
|
|
4984
|
-
const a =
|
|
4985
|
-
queryKey: [..._c,
|
|
4986
|
-
queryFn: ({ signal:
|
|
4987
|
-
enabled: r
|
|
4988
|
-
|
|
4989
|
-
refetchOnReconnect: !1,
|
|
4990
|
-
staleTime: 1 / 0
|
|
4991
|
-
}), { data: l, isLoading: d, isError: f, error: A } = c;
|
|
4998
|
+
const a = Tn({
|
|
4999
|
+
queryKey: [..._c, e.clientId, e.stage ?? "prod"],
|
|
5000
|
+
queryFn: ({ signal: f }) => $c(e, f),
|
|
5001
|
+
enabled: r
|
|
5002
|
+
}), { data: c, isLoading: l, isError: d, error: A } = a;
|
|
4992
5003
|
return J(() => {
|
|
4993
5004
|
if (!r) {
|
|
4994
5005
|
n(t);
|
|
4995
5006
|
return;
|
|
4996
5007
|
}
|
|
4997
|
-
|
|
4998
|
-
}, [r,
|
|
4999
|
-
s &&
|
|
5008
|
+
l || n(t);
|
|
5009
|
+
}, [r, l, n, t]), J(() => {
|
|
5010
|
+
s && c?.wallet && c.wallet.themeChange({
|
|
5000
5011
|
...s,
|
|
5001
5012
|
defaultTheme: i || s.defaultTheme || "light"
|
|
5002
5013
|
});
|
|
5003
|
-
}, [s, i,
|
|
5004
|
-
wallet:
|
|
5005
|
-
isAvailable:
|
|
5006
|
-
message:
|
|
5007
|
-
connectedInfo:
|
|
5008
|
-
isLoading: r &&
|
|
5009
|
-
error:
|
|
5014
|
+
}, [s, i, c?.wallet]), d && A && console.error("Failed to initialize embedded wallet:", A), {
|
|
5015
|
+
wallet: c?.wallet ?? null,
|
|
5016
|
+
isAvailable: c?.isAvailable ?? !1,
|
|
5017
|
+
message: c?.message ?? null,
|
|
5018
|
+
connectedInfo: c?.connectedInfo ?? null,
|
|
5019
|
+
isLoading: r && l,
|
|
5020
|
+
error: d ? A instanceof Error ? A : new Error("Failed to initialize embedded wallet") : null
|
|
5010
5021
|
};
|
|
5011
|
-
},
|
|
5022
|
+
}, na = ({
|
|
5012
5023
|
setWalletState: e,
|
|
5013
5024
|
currentWallet: n,
|
|
5014
5025
|
isConnected: t,
|
|
@@ -5016,11 +5027,11 @@ const ta = ({
|
|
|
5016
5027
|
embeddedWalletState: s,
|
|
5017
5028
|
wagmiConfig: i
|
|
5018
5029
|
}) => {
|
|
5019
|
-
const a = ce(!1), { data: c } =
|
|
5030
|
+
const a = ce(!1), { data: c } = ke("all", [], { embeddedWallet: s?.wallet ?? null }), l = y(() => c?.all || [], [c?.all]), d = Sr(), A = Nc();
|
|
5020
5031
|
J(() => {
|
|
5021
5032
|
if (a.current || t || n)
|
|
5022
5033
|
return;
|
|
5023
|
-
const
|
|
5034
|
+
const f = () => {
|
|
5024
5035
|
try {
|
|
5025
5036
|
const v = s?.wallet, m = Ss();
|
|
5026
5037
|
if (!m) {
|
|
@@ -5092,7 +5103,7 @@ const ta = ({
|
|
|
5092
5103
|
currentWallet: g,
|
|
5093
5104
|
currentProvider: W,
|
|
5094
5105
|
providers: D
|
|
5095
|
-
})), d && z === T.EVM && i &&
|
|
5106
|
+
})), d && z === T.EVM && i && A && !A.isConnected) {
|
|
5096
5107
|
const j = Xn(g.info.uuid, g.info.rdns, void 0);
|
|
5097
5108
|
if (j?.ready) {
|
|
5098
5109
|
const U = m.chainId ? parseInt(m.chainId, 16) : void 0;
|
|
@@ -5132,7 +5143,7 @@ const ta = ({
|
|
|
5132
5143
|
currentProvider: I.provider,
|
|
5133
5144
|
providers: w
|
|
5134
5145
|
}));
|
|
5135
|
-
const
|
|
5146
|
+
const O = () => {
|
|
5136
5147
|
e((b) => ({
|
|
5137
5148
|
...b,
|
|
5138
5149
|
isConnected: !1,
|
|
@@ -5152,10 +5163,10 @@ const ta = ({
|
|
|
5152
5163
|
walletInfo: g.info
|
|
5153
5164
|
}
|
|
5154
5165
|
).then((b) => {
|
|
5155
|
-
b?.address && b.address.toLowerCase() === m.address.toLowerCase() ? console.log("Restoring plugin wallet connection for:", g.info.name) :
|
|
5166
|
+
b?.address && b.address.toLowerCase() === m.address.toLowerCase() ? console.log("Restoring plugin wallet connection for:", g.info.name) : O();
|
|
5156
5167
|
}).catch(() => {
|
|
5157
|
-
|
|
5158
|
-
}), d && m.chainType === T.EVM && i &&
|
|
5168
|
+
O(), console.log("Failed to verify wallet connection");
|
|
5169
|
+
}), d && m.chainType === T.EVM && i && A && !A.isConnected) {
|
|
5159
5170
|
const b = Xn(g.info.uuid, g.info.rdns, void 0);
|
|
5160
5171
|
if (b?.ready) {
|
|
5161
5172
|
const z = m.chainId ? parseInt(m.chainId, 16) : void 0;
|
|
@@ -5167,7 +5178,7 @@ const ta = ({
|
|
|
5167
5178
|
a.current = !0, console.error("Failed to restore wallet connection:", v);
|
|
5168
5179
|
}
|
|
5169
5180
|
};
|
|
5170
|
-
l.length > 0 && r !== "initializing" &&
|
|
5181
|
+
l.length > 0 && r !== "initializing" && f();
|
|
5171
5182
|
}, [
|
|
5172
5183
|
l,
|
|
5173
5184
|
e,
|
|
@@ -5177,26 +5188,26 @@ const ta = ({
|
|
|
5177
5188
|
r,
|
|
5178
5189
|
d,
|
|
5179
5190
|
i,
|
|
5180
|
-
|
|
5191
|
+
A
|
|
5181
5192
|
]);
|
|
5182
5193
|
};
|
|
5183
|
-
function
|
|
5194
|
+
function ta(e) {
|
|
5184
5195
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5185
5196
|
}
|
|
5186
5197
|
var xn = { exports: {} }, yt;
|
|
5187
|
-
function
|
|
5198
|
+
function ra() {
|
|
5188
5199
|
return yt || (yt = 1, (function(e) {
|
|
5189
5200
|
var n = Object.prototype.hasOwnProperty, t = "~";
|
|
5190
5201
|
function r() {
|
|
5191
5202
|
}
|
|
5192
5203
|
Object.create && (r.prototype = /* @__PURE__ */ Object.create(null), new r().__proto__ || (t = !1));
|
|
5193
|
-
function s(l, d,
|
|
5194
|
-
this.fn = l, this.context = d, this.once =
|
|
5204
|
+
function s(l, d, A) {
|
|
5205
|
+
this.fn = l, this.context = d, this.once = A || !1;
|
|
5195
5206
|
}
|
|
5196
|
-
function i(l, d,
|
|
5197
|
-
if (typeof
|
|
5207
|
+
function i(l, d, A, f, u) {
|
|
5208
|
+
if (typeof A != "function")
|
|
5198
5209
|
throw new TypeError("The listener must be a function");
|
|
5199
|
-
var v = new s(
|
|
5210
|
+
var v = new s(A, f || l, u), m = t ? t + d : d;
|
|
5200
5211
|
return l._events[m] ? l._events[m].fn ? l._events[m] = [l._events[m], v] : l._events[m].push(v) : (l._events[m] = v, l._eventsCount++), l;
|
|
5201
5212
|
}
|
|
5202
5213
|
function a(l, d) {
|
|
@@ -5206,22 +5217,22 @@ function ia() {
|
|
|
5206
5217
|
this._events = new r(), this._eventsCount = 0;
|
|
5207
5218
|
}
|
|
5208
5219
|
c.prototype.eventNames = function() {
|
|
5209
|
-
var d = [],
|
|
5220
|
+
var d = [], A, f;
|
|
5210
5221
|
if (this._eventsCount === 0) return d;
|
|
5211
|
-
for (
|
|
5212
|
-
n.call(
|
|
5213
|
-
return Object.getOwnPropertySymbols ? d.concat(Object.getOwnPropertySymbols(
|
|
5222
|
+
for (f in A = this._events)
|
|
5223
|
+
n.call(A, f) && d.push(t ? f.slice(1) : f);
|
|
5224
|
+
return Object.getOwnPropertySymbols ? d.concat(Object.getOwnPropertySymbols(A)) : d;
|
|
5214
5225
|
}, c.prototype.listeners = function(d) {
|
|
5215
|
-
var
|
|
5216
|
-
if (!
|
|
5217
|
-
if (
|
|
5218
|
-
for (var u = 0, v =
|
|
5219
|
-
m[u] =
|
|
5226
|
+
var A = t ? t + d : d, f = this._events[A];
|
|
5227
|
+
if (!f) return [];
|
|
5228
|
+
if (f.fn) return [f.fn];
|
|
5229
|
+
for (var u = 0, v = f.length, m = new Array(v); u < v; u++)
|
|
5230
|
+
m[u] = f[u].fn;
|
|
5220
5231
|
return m;
|
|
5221
5232
|
}, c.prototype.listenerCount = function(d) {
|
|
5222
|
-
var
|
|
5223
|
-
return
|
|
5224
|
-
}, c.prototype.emit = function(d,
|
|
5233
|
+
var A = t ? t + d : d, f = this._events[A];
|
|
5234
|
+
return f ? f.fn ? 1 : f.length : 0;
|
|
5235
|
+
}, c.prototype.emit = function(d, A, f, u, v, m) {
|
|
5225
5236
|
var g = t ? t + d : d;
|
|
5226
5237
|
if (!this._events[g]) return !1;
|
|
5227
5238
|
var p = this._events[g], I = arguments.length, x, w;
|
|
@@ -5230,34 +5241,34 @@ function ia() {
|
|
|
5230
5241
|
case 1:
|
|
5231
5242
|
return p.fn.call(p.context), !0;
|
|
5232
5243
|
case 2:
|
|
5233
|
-
return p.fn.call(p.context,
|
|
5244
|
+
return p.fn.call(p.context, A), !0;
|
|
5234
5245
|
case 3:
|
|
5235
|
-
return p.fn.call(p.context,
|
|
5246
|
+
return p.fn.call(p.context, A, f), !0;
|
|
5236
5247
|
case 4:
|
|
5237
|
-
return p.fn.call(p.context,
|
|
5248
|
+
return p.fn.call(p.context, A, f, u), !0;
|
|
5238
5249
|
case 5:
|
|
5239
|
-
return p.fn.call(p.context,
|
|
5250
|
+
return p.fn.call(p.context, A, f, u, v), !0;
|
|
5240
5251
|
case 6:
|
|
5241
|
-
return p.fn.call(p.context,
|
|
5252
|
+
return p.fn.call(p.context, A, f, u, v, m), !0;
|
|
5242
5253
|
}
|
|
5243
5254
|
for (w = 1, x = new Array(I - 1); w < I; w++)
|
|
5244
5255
|
x[w - 1] = arguments[w];
|
|
5245
5256
|
p.fn.apply(p.context, x);
|
|
5246
5257
|
} else {
|
|
5247
|
-
var
|
|
5248
|
-
for (w = 0; w <
|
|
5258
|
+
var O = p.length, b;
|
|
5259
|
+
for (w = 0; w < O; w++)
|
|
5249
5260
|
switch (p[w].once && this.removeListener(d, p[w].fn, void 0, !0), I) {
|
|
5250
5261
|
case 1:
|
|
5251
5262
|
p[w].fn.call(p[w].context);
|
|
5252
5263
|
break;
|
|
5253
5264
|
case 2:
|
|
5254
|
-
p[w].fn.call(p[w].context,
|
|
5265
|
+
p[w].fn.call(p[w].context, A);
|
|
5255
5266
|
break;
|
|
5256
5267
|
case 3:
|
|
5257
|
-
p[w].fn.call(p[w].context,
|
|
5268
|
+
p[w].fn.call(p[w].context, A, f);
|
|
5258
5269
|
break;
|
|
5259
5270
|
case 4:
|
|
5260
|
-
p[w].fn.call(p[w].context,
|
|
5271
|
+
p[w].fn.call(p[w].context, A, f, u);
|
|
5261
5272
|
break;
|
|
5262
5273
|
default:
|
|
5263
5274
|
if (!x) for (b = 1, x = new Array(I - 1); b < I; b++)
|
|
@@ -5266,33 +5277,33 @@ function ia() {
|
|
|
5266
5277
|
}
|
|
5267
5278
|
}
|
|
5268
5279
|
return !0;
|
|
5269
|
-
}, c.prototype.on = function(d,
|
|
5270
|
-
return i(this, d,
|
|
5271
|
-
}, c.prototype.once = function(d,
|
|
5272
|
-
return i(this, d,
|
|
5273
|
-
}, c.prototype.removeListener = function(d,
|
|
5280
|
+
}, c.prototype.on = function(d, A, f) {
|
|
5281
|
+
return i(this, d, A, f, !1);
|
|
5282
|
+
}, c.prototype.once = function(d, A, f) {
|
|
5283
|
+
return i(this, d, A, f, !0);
|
|
5284
|
+
}, c.prototype.removeListener = function(d, A, f, u) {
|
|
5274
5285
|
var v = t ? t + d : d;
|
|
5275
5286
|
if (!this._events[v]) return this;
|
|
5276
|
-
if (!
|
|
5287
|
+
if (!A)
|
|
5277
5288
|
return a(this, v), this;
|
|
5278
5289
|
var m = this._events[v];
|
|
5279
5290
|
if (m.fn)
|
|
5280
|
-
m.fn ===
|
|
5291
|
+
m.fn === A && (!u || m.once) && (!f || m.context === f) && a(this, v);
|
|
5281
5292
|
else {
|
|
5282
5293
|
for (var g = 0, p = [], I = m.length; g < I; g++)
|
|
5283
|
-
(m[g].fn !==
|
|
5294
|
+
(m[g].fn !== A || u && !m[g].once || f && m[g].context !== f) && p.push(m[g]);
|
|
5284
5295
|
p.length ? this._events[v] = p.length === 1 ? p[0] : p : a(this, v);
|
|
5285
5296
|
}
|
|
5286
5297
|
return this;
|
|
5287
5298
|
}, c.prototype.removeAllListeners = function(d) {
|
|
5288
|
-
var
|
|
5289
|
-
return d ? (
|
|
5299
|
+
var A;
|
|
5300
|
+
return d ? (A = t ? t + d : d, this._events[A] && a(this, A)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
5290
5301
|
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = t, c.EventEmitter = c, e.exports = c;
|
|
5291
5302
|
})(xn)), xn.exports;
|
|
5292
5303
|
}
|
|
5293
|
-
var
|
|
5294
|
-
const
|
|
5295
|
-
class
|
|
5304
|
+
var sa = ra();
|
|
5305
|
+
const ia = /* @__PURE__ */ ta(sa);
|
|
5306
|
+
class oa {
|
|
5296
5307
|
constructor(n) {
|
|
5297
5308
|
Object.defineProperty(this, "uid", {
|
|
5298
5309
|
enumerable: !0,
|
|
@@ -5303,7 +5314,7 @@ class aa {
|
|
|
5303
5314
|
enumerable: !0,
|
|
5304
5315
|
configurable: !0,
|
|
5305
5316
|
writable: !0,
|
|
5306
|
-
value: new
|
|
5317
|
+
value: new ia()
|
|
5307
5318
|
});
|
|
5308
5319
|
}
|
|
5309
5320
|
on(n, t) {
|
|
@@ -5323,12 +5334,12 @@ class aa {
|
|
|
5323
5334
|
return this._emitter.listenerCount(n);
|
|
5324
5335
|
}
|
|
5325
5336
|
}
|
|
5326
|
-
function
|
|
5327
|
-
return new
|
|
5337
|
+
function ca(e) {
|
|
5338
|
+
return new oa(e);
|
|
5328
5339
|
}
|
|
5329
5340
|
const Nn = 256;
|
|
5330
5341
|
let Qe = Nn, Ke;
|
|
5331
|
-
function
|
|
5342
|
+
function aa(e = 11) {
|
|
5332
5343
|
if (!Ke || Qe + e > Nn * 2) {
|
|
5333
5344
|
Ke = "", Qe = 0;
|
|
5334
5345
|
for (let n = 0; n < Nn; n++)
|
|
@@ -5336,18 +5347,18 @@ function da(e = 11) {
|
|
|
5336
5347
|
}
|
|
5337
5348
|
return Ke.substring(Qe, Qe++ + e);
|
|
5338
5349
|
}
|
|
5339
|
-
const
|
|
5340
|
-
var
|
|
5350
|
+
const la = "2.22.1", da = () => `@wagmi/core@${la}`;
|
|
5351
|
+
var kr = function(e, n, t, r) {
|
|
5341
5352
|
if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
5342
5353
|
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");
|
|
5343
5354
|
return t === "m" ? r : t === "a" ? r.call(e) : r ? r.value : n.get(e);
|
|
5344
|
-
}, nn,
|
|
5355
|
+
}, nn, Lr;
|
|
5345
5356
|
class je extends Error {
|
|
5346
5357
|
get docsBaseUrl() {
|
|
5347
5358
|
return "https://wagmi.sh/core";
|
|
5348
5359
|
}
|
|
5349
5360
|
get version() {
|
|
5350
|
-
return
|
|
5361
|
+
return da();
|
|
5351
5362
|
}
|
|
5352
5363
|
constructor(n, t = {}) {
|
|
5353
5364
|
super(), nn.add(this), Object.defineProperty(this, "details", {
|
|
@@ -5390,13 +5401,13 @@ class je extends Error {
|
|
|
5390
5401
|
`), t.cause && (this.cause = t.cause), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.shortMessage = n;
|
|
5391
5402
|
}
|
|
5392
5403
|
walk(n) {
|
|
5393
|
-
return
|
|
5404
|
+
return kr(this, nn, "m", Lr).call(this, this, n);
|
|
5394
5405
|
}
|
|
5395
5406
|
}
|
|
5396
|
-
nn = /* @__PURE__ */ new WeakSet(),
|
|
5397
|
-
return t?.(n) ? n : n.cause ?
|
|
5407
|
+
nn = /* @__PURE__ */ new WeakSet(), Lr = function e(n, t) {
|
|
5408
|
+
return t?.(n) ? n : n.cause ? kr(this, nn, "m", e).call(this, n.cause, t) : n;
|
|
5398
5409
|
};
|
|
5399
|
-
class
|
|
5410
|
+
class Aa extends je {
|
|
5400
5411
|
constructor() {
|
|
5401
5412
|
super("Chain not configured."), Object.defineProperty(this, "name", {
|
|
5402
5413
|
enumerable: !0,
|
|
@@ -5427,7 +5438,7 @@ function _n(e = {}) {
|
|
|
5427
5438
|
return d;
|
|
5428
5439
|
}
|
|
5429
5440
|
return typeof l == "object" ? l : typeof l == "string" ? {
|
|
5430
|
-
...
|
|
5441
|
+
...fa[l] ?? {
|
|
5431
5442
|
id: l,
|
|
5432
5443
|
name: `${l[0].toUpperCase()}${l.slice(1)}`,
|
|
5433
5444
|
provider: `is${l[0].toUpperCase()}${l.slice(1)}`
|
|
@@ -5460,12 +5471,12 @@ function _n(e = {}) {
|
|
|
5460
5471
|
const d = await this.getProvider();
|
|
5461
5472
|
d?.on && e.target && (a || (a = this.onConnect.bind(this), d.on("connect", a)), s || (s = this.onAccountsChanged.bind(this), d.on("accountsChanged", s)));
|
|
5462
5473
|
},
|
|
5463
|
-
async connect({ chainId: d, isReconnecting:
|
|
5474
|
+
async connect({ chainId: d, isReconnecting: A, withCapabilities: f } = {}) {
|
|
5464
5475
|
const u = await this.getProvider();
|
|
5465
5476
|
if (!u)
|
|
5466
5477
|
throw new ve();
|
|
5467
5478
|
let v = [];
|
|
5468
|
-
if (
|
|
5479
|
+
if (A)
|
|
5469
5480
|
v = await this.getAccounts().catch(() => []);
|
|
5470
5481
|
else if (n)
|
|
5471
5482
|
try {
|
|
@@ -5481,7 +5492,7 @@ function _n(e = {}) {
|
|
|
5481
5492
|
throw g;
|
|
5482
5493
|
}
|
|
5483
5494
|
try {
|
|
5484
|
-
!v?.length && !
|
|
5495
|
+
!v?.length && !A && (v = (await u.request({
|
|
5485
5496
|
method: "eth_requestAccounts"
|
|
5486
5497
|
})).map((p) => Je(p))), a && (u.removeListener("connect", a), a = void 0), s || (s = this.onAccountsChanged.bind(this), u.on("accountsChanged", s)), i || (i = this.onChainChanged.bind(this), u.on("chainChanged", i)), c || (c = this.onDisconnect.bind(this), u.on("disconnect", c));
|
|
5487
5498
|
let m = await this.getChainId();
|
|
@@ -5490,7 +5501,7 @@ function _n(e = {}) {
|
|
|
5490
5501
|
throw p;
|
|
5491
5502
|
return { id: m };
|
|
5492
5503
|
}))?.id ?? m), n && await l.storage?.removeItem(`${this.id}.disconnected`), e.target || await l.storage?.setItem("injected.connected", !0), {
|
|
5493
|
-
accounts:
|
|
5504
|
+
accounts: f ? v.map((g) => ({ address: g, capabilities: {} })) : v,
|
|
5494
5505
|
chainId: m
|
|
5495
5506
|
};
|
|
5496
5507
|
} catch (m) {
|
|
@@ -5520,21 +5531,21 @@ function _n(e = {}) {
|
|
|
5520
5531
|
const d = await this.getProvider();
|
|
5521
5532
|
if (!d)
|
|
5522
5533
|
throw new ve();
|
|
5523
|
-
return (await d.request({ method: "eth_accounts" })).map((
|
|
5534
|
+
return (await d.request({ method: "eth_accounts" })).map((f) => Je(f));
|
|
5524
5535
|
},
|
|
5525
5536
|
async getChainId() {
|
|
5526
5537
|
const d = await this.getProvider();
|
|
5527
5538
|
if (!d)
|
|
5528
5539
|
throw new ve();
|
|
5529
|
-
const
|
|
5530
|
-
return Number(
|
|
5540
|
+
const A = await d.request({ method: "eth_chainId" });
|
|
5541
|
+
return Number(A);
|
|
5531
5542
|
},
|
|
5532
5543
|
async getProvider() {
|
|
5533
5544
|
if (typeof window > "u")
|
|
5534
5545
|
return;
|
|
5535
5546
|
let d;
|
|
5536
|
-
const
|
|
5537
|
-
return typeof
|
|
5547
|
+
const A = r();
|
|
5548
|
+
return typeof A.provider == "function" ? d = A.provider(window) : typeof A.provider == "string" ? d = qe(window, A.provider) : d = A.provider, d && !d.removeListener && ("off" in d && typeof d.off == "function" ? d.removeListener = d.off : d.removeListener = () => {
|
|
5538
5549
|
}), d;
|
|
5539
5550
|
},
|
|
5540
5551
|
async isAuthorized() {
|
|
@@ -5560,26 +5571,26 @@ function _n(e = {}) {
|
|
|
5560
5571
|
return !1;
|
|
5561
5572
|
}
|
|
5562
5573
|
},
|
|
5563
|
-
async switchChain({ addEthereumChainParameter: d, chainId:
|
|
5564
|
-
const
|
|
5565
|
-
if (!
|
|
5574
|
+
async switchChain({ addEthereumChainParameter: d, chainId: A }) {
|
|
5575
|
+
const f = await this.getProvider();
|
|
5576
|
+
if (!f)
|
|
5566
5577
|
throw new ve();
|
|
5567
|
-
const u = l.chains.find((m) => m.id ===
|
|
5578
|
+
const u = l.chains.find((m) => m.id === A);
|
|
5568
5579
|
if (!u)
|
|
5569
|
-
throw new tt(new
|
|
5580
|
+
throw new tt(new Aa());
|
|
5570
5581
|
const v = new Promise((m) => {
|
|
5571
5582
|
const g = ((p) => {
|
|
5572
|
-
"chainId" in p && p.chainId ===
|
|
5583
|
+
"chainId" in p && p.chainId === A && (l.emitter.off("change", g), m());
|
|
5573
5584
|
});
|
|
5574
5585
|
l.emitter.on("change", g);
|
|
5575
5586
|
});
|
|
5576
5587
|
try {
|
|
5577
5588
|
return await Promise.all([
|
|
5578
|
-
|
|
5589
|
+
f.request({
|
|
5579
5590
|
method: "wallet_switchEthereumChain",
|
|
5580
|
-
params: [{ chainId: rt(
|
|
5591
|
+
params: [{ chainId: rt(A) }]
|
|
5581
5592
|
}).then(async () => {
|
|
5582
|
-
await this.getChainId() ===
|
|
5593
|
+
await this.getChainId() === A && l.emitter.emit("change", { chainId: A });
|
|
5583
5594
|
}),
|
|
5584
5595
|
v
|
|
5585
5596
|
]), u;
|
|
@@ -5597,21 +5608,21 @@ function _n(e = {}) {
|
|
|
5597
5608
|
]);
|
|
5598
5609
|
let w;
|
|
5599
5610
|
d?.rpcUrls?.length ? w = d.rpcUrls : w = [u.rpcUrls.default?.http[0] ?? ""];
|
|
5600
|
-
const
|
|
5611
|
+
const O = {
|
|
5601
5612
|
blockExplorerUrls: x,
|
|
5602
|
-
chainId: rt(
|
|
5613
|
+
chainId: rt(A),
|
|
5603
5614
|
chainName: d?.chainName ?? u.name,
|
|
5604
5615
|
iconUrls: d?.iconUrls,
|
|
5605
5616
|
nativeCurrency: d?.nativeCurrency ?? u.nativeCurrency,
|
|
5606
5617
|
rpcUrls: w
|
|
5607
5618
|
};
|
|
5608
5619
|
return await Promise.all([
|
|
5609
|
-
|
|
5620
|
+
f.request({
|
|
5610
5621
|
method: "wallet_addEthereumChain",
|
|
5611
|
-
params: [
|
|
5622
|
+
params: [O]
|
|
5612
5623
|
}).then(async () => {
|
|
5613
|
-
if (await this.getChainId() ===
|
|
5614
|
-
l.emitter.emit("change", { chainId:
|
|
5624
|
+
if (await this.getChainId() === A)
|
|
5625
|
+
l.emitter.emit("change", { chainId: A });
|
|
5615
5626
|
else
|
|
5616
5627
|
throw new G(new Error("User rejected switch after adding network."));
|
|
5617
5628
|
}),
|
|
@@ -5627,33 +5638,33 @@ function _n(e = {}) {
|
|
|
5627
5638
|
if (d.length === 0)
|
|
5628
5639
|
this.onDisconnect();
|
|
5629
5640
|
else if (l.emitter.listenerCount("connect")) {
|
|
5630
|
-
const
|
|
5631
|
-
this.onConnect({ chainId:
|
|
5641
|
+
const A = (await this.getChainId()).toString();
|
|
5642
|
+
this.onConnect({ chainId: A }), n && await l.storage?.removeItem(`${this.id}.disconnected`);
|
|
5632
5643
|
} else
|
|
5633
5644
|
l.emitter.emit("change", {
|
|
5634
|
-
accounts: d.map((
|
|
5645
|
+
accounts: d.map((A) => Je(A))
|
|
5635
5646
|
});
|
|
5636
5647
|
},
|
|
5637
5648
|
onChainChanged(d) {
|
|
5638
|
-
const
|
|
5639
|
-
l.emitter.emit("change", { chainId:
|
|
5649
|
+
const A = Number(d);
|
|
5650
|
+
l.emitter.emit("change", { chainId: A });
|
|
5640
5651
|
},
|
|
5641
5652
|
async onConnect(d) {
|
|
5642
|
-
const
|
|
5643
|
-
if (
|
|
5653
|
+
const A = await this.getAccounts();
|
|
5654
|
+
if (A.length === 0)
|
|
5644
5655
|
return;
|
|
5645
|
-
const
|
|
5646
|
-
l.emitter.emit("connect", { accounts:
|
|
5656
|
+
const f = Number(d.chainId);
|
|
5657
|
+
l.emitter.emit("connect", { accounts: A, chainId: f });
|
|
5647
5658
|
const u = await this.getProvider();
|
|
5648
5659
|
u && (a && (u.removeListener("connect", a), a = void 0), s || (s = this.onAccountsChanged.bind(this), u.on("accountsChanged", s)), i || (i = this.onChainChanged.bind(this), u.on("chainChanged", i)), c || (c = this.onDisconnect.bind(this), u.on("disconnect", c)));
|
|
5649
5660
|
},
|
|
5650
5661
|
async onDisconnect(d) {
|
|
5651
|
-
const
|
|
5652
|
-
d && d.code === 1013 &&
|
|
5662
|
+
const A = await this.getProvider();
|
|
5663
|
+
d && d.code === 1013 && A && (await this.getAccounts()).length || (l.emitter.emit("disconnect"), A && (i && (A.removeListener("chainChanged", i), i = void 0), c && (A.removeListener("disconnect", c), c = void 0), a || (a = this.onConnect.bind(this), A.on("connect", a))));
|
|
5653
5664
|
}
|
|
5654
5665
|
});
|
|
5655
5666
|
}
|
|
5656
|
-
const
|
|
5667
|
+
const fa = {
|
|
5657
5668
|
coinbaseWallet: {
|
|
5658
5669
|
id: "coinbaseWallet",
|
|
5659
5670
|
name: "Coinbase Wallet",
|
|
@@ -5713,7 +5724,7 @@ function qe(e, n) {
|
|
|
5713
5724
|
if (r && t(r))
|
|
5714
5725
|
return r;
|
|
5715
5726
|
}
|
|
5716
|
-
function
|
|
5727
|
+
function ua(e, n = T.EVM) {
|
|
5717
5728
|
if (!e.providers[n])
|
|
5718
5729
|
return null;
|
|
5719
5730
|
const t = e.providers[n]?.provider;
|
|
@@ -5736,14 +5747,14 @@ function va(e, n = T.EVM) {
|
|
|
5736
5747
|
emitter: i.emitter
|
|
5737
5748
|
}));
|
|
5738
5749
|
}
|
|
5739
|
-
function
|
|
5750
|
+
function ga(e, n = T.EVM, t) {
|
|
5740
5751
|
const r = [];
|
|
5741
5752
|
if (t.length === 0)
|
|
5742
5753
|
return r;
|
|
5743
5754
|
for (const s of e) {
|
|
5744
|
-
const i =
|
|
5755
|
+
const i = ua(s, n);
|
|
5745
5756
|
if (i) {
|
|
5746
|
-
const a =
|
|
5757
|
+
const a = ca(aa());
|
|
5747
5758
|
r.push(
|
|
5748
5759
|
i({
|
|
5749
5760
|
chains: t,
|
|
@@ -5754,36 +5765,36 @@ function ma(e, n = T.EVM, t) {
|
|
|
5754
5765
|
}
|
|
5755
5766
|
return r;
|
|
5756
5767
|
}
|
|
5757
|
-
function
|
|
5768
|
+
function va(e, n = []) {
|
|
5758
5769
|
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)));
|
|
5759
5770
|
for (const i of e)
|
|
5760
5771
|
s.has(r(i)) || t.push(i);
|
|
5761
5772
|
return t;
|
|
5762
5773
|
}
|
|
5763
|
-
const
|
|
5774
|
+
const ma = ({
|
|
5764
5775
|
children: e,
|
|
5765
5776
|
contextConfig: n,
|
|
5766
5777
|
defaultThemeConfig: t,
|
|
5767
5778
|
defaultMainView: r,
|
|
5768
5779
|
socialLoginEnabled: s
|
|
5769
5780
|
}) => {
|
|
5770
|
-
const [i, a] = Y(
|
|
5781
|
+
const [i, a] = Y(M.Loading), { walletState: c, setWalletState: l, error: d, setError: A, resetWalletState: f } = Pr(), {
|
|
5771
5782
|
wallet: u,
|
|
5772
5783
|
isAvailable: v,
|
|
5773
5784
|
isLoading: m,
|
|
5774
5785
|
connectedInfo: g,
|
|
5775
5786
|
message: p,
|
|
5776
5787
|
error: I
|
|
5777
|
-
} =
|
|
5788
|
+
} = ea({
|
|
5778
5789
|
config: n.embeddedWalletConfig,
|
|
5779
5790
|
setMainView: a,
|
|
5780
5791
|
defaultMainView: r,
|
|
5781
5792
|
enabled: s,
|
|
5782
5793
|
defaultTheme: t,
|
|
5783
5794
|
themeMode: n.themeMode
|
|
5784
|
-
}), x = Mc(i), w =
|
|
5785
|
-
x.setView(c.isConnected ?
|
|
5786
|
-
}, [x, c.isConnected, i]),
|
|
5795
|
+
}), x = Mc(i), w = k(() => {
|
|
5796
|
+
x.setView(c.isConnected ? M.Account : i), x.openModal();
|
|
5797
|
+
}, [x, c.isConnected, i]), O = y(
|
|
5787
5798
|
() => ({
|
|
5788
5799
|
isOpen: x.isOpen,
|
|
5789
5800
|
view: x.view,
|
|
@@ -5818,9 +5829,9 @@ const Ca = ({
|
|
|
5818
5829
|
isConnecting: c.isConnecting,
|
|
5819
5830
|
isDisconnected: b === "disconnected",
|
|
5820
5831
|
error: d,
|
|
5821
|
-
setError:
|
|
5832
|
+
setError: A
|
|
5822
5833
|
}),
|
|
5823
|
-
[b, c.isConnected, c.isConnecting, d,
|
|
5834
|
+
[b, c.isConnected, c.isConnecting, d, A]
|
|
5824
5835
|
), W = y(
|
|
5825
5836
|
() => ({
|
|
5826
5837
|
address: c.address,
|
|
@@ -5861,23 +5872,23 @@ const Ca = ({
|
|
|
5861
5872
|
), D = y(
|
|
5862
5873
|
() => ({
|
|
5863
5874
|
config: n,
|
|
5864
|
-
modal:
|
|
5875
|
+
modal: O,
|
|
5865
5876
|
connection: z,
|
|
5866
5877
|
account: W,
|
|
5867
5878
|
walletReady: B
|
|
5868
5879
|
}),
|
|
5869
|
-
[n,
|
|
5870
|
-
), j =
|
|
5880
|
+
[n, O, z, W, B]
|
|
5881
|
+
), j = ke("all", n?.connectors || [], { embeddedWallet: u }), U = n?.wagmi, N = U?.config;
|
|
5871
5882
|
return J(() => {
|
|
5872
5883
|
if (!N || !j.data) {
|
|
5873
5884
|
pn(null);
|
|
5874
5885
|
return;
|
|
5875
5886
|
}
|
|
5876
|
-
const Z = N.connectors ? [...N.connectors] : [], Q = N.chains ? [...N.chains] : [],
|
|
5887
|
+
const Z = N.connectors ? [...N.connectors] : [], Q = N.chains ? [...N.chains] : [], Le = j?.data?.all?.filter((Ze) => Ze.connectors[T.EVM]), Ye = ga(Le || [], T.EVM, Q), ge = va(Ye, Z);
|
|
5877
5888
|
ge.length > 0 ? pn(ge) : pn(null);
|
|
5878
5889
|
}, [j.data, N]), J(() => {
|
|
5879
5890
|
cs(n?.walletConnectConfig || Vn);
|
|
5880
|
-
}, [n?.walletConnectConfig]),
|
|
5891
|
+
}, [n?.walletConnectConfig]), na({
|
|
5881
5892
|
setWalletState: l,
|
|
5882
5893
|
currentWallet: W.currentWallet,
|
|
5883
5894
|
isConnected: z.isConnected,
|
|
@@ -5885,23 +5896,32 @@ const Ca = ({
|
|
|
5885
5896
|
embeddedWalletState: E,
|
|
5886
5897
|
wagmiConfig: U
|
|
5887
5898
|
}), J(() => {
|
|
5888
|
-
const { isConnected: Z, chainType: Q, currentProvider:
|
|
5889
|
-
if (!Z || Q !== T.EVM || !
|
|
5899
|
+
const { isConnected: Z, chainType: Q, currentProvider: Le } = c;
|
|
5900
|
+
if (!Z || Q !== T.EVM || !Le) return;
|
|
5890
5901
|
const Ye = (Ze) => {
|
|
5891
5902
|
l((dn) => dn.chainId === Ze ? dn : { ...dn, chainId: Ze });
|
|
5892
|
-
}, ge =
|
|
5893
|
-
if (typeof ge.on == "function")
|
|
5894
|
-
|
|
5895
|
-
ge.
|
|
5903
|
+
}, ge = Le;
|
|
5904
|
+
if (typeof ge.on == "function") {
|
|
5905
|
+
try {
|
|
5906
|
+
ge.on("chainChanged", Ye);
|
|
5907
|
+
} catch {
|
|
5908
|
+
return;
|
|
5909
|
+
}
|
|
5910
|
+
return () => {
|
|
5911
|
+
try {
|
|
5912
|
+
ge.removeListener?.("chainChanged", Ye);
|
|
5913
|
+
} catch {
|
|
5914
|
+
}
|
|
5896
5915
|
};
|
|
5916
|
+
}
|
|
5897
5917
|
}, [c.isConnected, c.chainType, c.currentProvider, l, c]), /* @__PURE__ */ o(an.Provider, { value: E, children: /* @__PURE__ */ o(X.Provider, { value: D, children: /* @__PURE__ */ o(
|
|
5898
|
-
|
|
5918
|
+
pa,
|
|
5899
5919
|
{
|
|
5900
5920
|
walletState: c,
|
|
5901
5921
|
modalState: x,
|
|
5902
5922
|
setWalletState: l,
|
|
5903
|
-
resetWalletState:
|
|
5904
|
-
setError:
|
|
5923
|
+
resetWalletState: f,
|
|
5924
|
+
setError: A,
|
|
5905
5925
|
setMainView: a,
|
|
5906
5926
|
defaultThemeConfig: t,
|
|
5907
5927
|
themeMode: n.themeMode,
|
|
@@ -5909,7 +5929,7 @@ const Ca = ({
|
|
|
5909
5929
|
}
|
|
5910
5930
|
) }) });
|
|
5911
5931
|
};
|
|
5912
|
-
function
|
|
5932
|
+
function pa({
|
|
5913
5933
|
children: e,
|
|
5914
5934
|
walletState: n,
|
|
5915
5935
|
modalState: t,
|
|
@@ -5920,21 +5940,21 @@ function xa({
|
|
|
5920
5940
|
defaultThemeConfig: c,
|
|
5921
5941
|
themeMode: l
|
|
5922
5942
|
}) {
|
|
5923
|
-
const d =
|
|
5943
|
+
const d = V(X), A = jc({
|
|
5924
5944
|
walletState: n,
|
|
5925
5945
|
modalState: t,
|
|
5926
5946
|
setWalletState: r,
|
|
5927
5947
|
resetWalletState: s,
|
|
5928
5948
|
setError: i,
|
|
5929
5949
|
setMainView: a
|
|
5930
|
-
}),
|
|
5950
|
+
}), f = y(
|
|
5931
5951
|
() => ({
|
|
5932
5952
|
...d,
|
|
5933
|
-
...
|
|
5953
|
+
...A
|
|
5934
5954
|
}),
|
|
5935
|
-
[d,
|
|
5955
|
+
[d, A]
|
|
5936
5956
|
);
|
|
5937
|
-
return /* @__PURE__ */ o(X.Provider, { value:
|
|
5957
|
+
return /* @__PURE__ */ o(X.Provider, { value: f, children: /* @__PURE__ */ C(
|
|
5938
5958
|
ns,
|
|
5939
5959
|
{
|
|
5940
5960
|
themeConfig: c,
|
|
@@ -5958,13 +5978,13 @@ function xa({
|
|
|
5958
5978
|
}
|
|
5959
5979
|
) });
|
|
5960
5980
|
}
|
|
5961
|
-
const
|
|
5981
|
+
const Ca = new ls({
|
|
5962
5982
|
defaultOptions: {
|
|
5963
5983
|
queries: {
|
|
5964
5984
|
refetchOnWindowFocus: !1
|
|
5965
5985
|
}
|
|
5966
5986
|
}
|
|
5967
|
-
}),
|
|
5987
|
+
}), Xa = ({ children: e, config: n }) => {
|
|
5968
5988
|
const t = Er(), r = y(() => {
|
|
5969
5989
|
const c = n || ie, l = c.login ? {
|
|
5970
5990
|
basicLogins: c.login.basicLogins ?? [],
|
|
@@ -5972,7 +5992,7 @@ const ba = new ls({
|
|
|
5972
5992
|
} : {
|
|
5973
5993
|
basicLogins: ie.login?.basicLogins || ["email", "externalWallets"],
|
|
5974
5994
|
socialLogins: ie.login?.socialLogins || [{ type: "google" }, { type: "x" }]
|
|
5975
|
-
}, d = l.socialLogins?.find((m) => m.type === "google"),
|
|
5995
|
+
}, d = l.socialLogins?.find((m) => m.type === "google"), A = l.socialLogins?.find((m) => m.type === "x"), f = {
|
|
5976
5996
|
projectId: c.walletConnectProjectId || Vn.projectId,
|
|
5977
5997
|
metadata: {
|
|
5978
5998
|
...Vn.metadata,
|
|
@@ -5984,13 +6004,13 @@ const ba = new ls({
|
|
|
5984
6004
|
chains: c.chains || ie.chains,
|
|
5985
6005
|
login: l,
|
|
5986
6006
|
theme: u,
|
|
5987
|
-
walletConnectConfig:
|
|
6007
|
+
walletConnectConfig: f,
|
|
5988
6008
|
embeddedWalletConfig: {
|
|
5989
6009
|
...He,
|
|
5990
6010
|
clientId: n.clientId,
|
|
5991
6011
|
stage: c.embeddedWalletConfig?.stage || He.stage,
|
|
5992
6012
|
googleClientId: d?.clientId || He.googleClientId,
|
|
5993
|
-
xClientId:
|
|
6013
|
+
xClientId: A?.clientId || He.xClientId
|
|
5994
6014
|
},
|
|
5995
6015
|
metadata: c.metadata,
|
|
5996
6016
|
links: ie.links,
|
|
@@ -6000,10 +6020,10 @@ const ba = new ls({
|
|
|
6000
6020
|
}
|
|
6001
6021
|
};
|
|
6002
6022
|
return wt(t || null), v;
|
|
6003
|
-
}, [n, t]), s =
|
|
6023
|
+
}, [n, t]), s = M.WalletHome, i = y(() => Uc(n?.login), [n?.login]), a = y(() => {
|
|
6004
6024
|
const c = yr(), l = n?.theme;
|
|
6005
6025
|
if (!l) return c;
|
|
6006
|
-
const d = c.themes ?? {},
|
|
6026
|
+
const d = c.themes ?? {}, A = l.themes ?? {}, f = (u, v) => {
|
|
6007
6027
|
if (!v) return u ?? {};
|
|
6008
6028
|
if (!u) return v;
|
|
6009
6029
|
const m = u.colors ?? {}, g = v.colors ?? {}, p = { ...m };
|
|
@@ -6018,13 +6038,13 @@ const ba = new ls({
|
|
|
6018
6038
|
...l,
|
|
6019
6039
|
prefix: "heroui",
|
|
6020
6040
|
themes: {
|
|
6021
|
-
light:
|
|
6022
|
-
dark:
|
|
6041
|
+
light: f(d.light, A.light),
|
|
6042
|
+
dark: f(d.dark, A.dark)
|
|
6023
6043
|
}
|
|
6024
6044
|
};
|
|
6025
6045
|
}, [n?.theme]);
|
|
6026
|
-
return typeof window > "u" ? null : /* @__PURE__ */ o(as, { client:
|
|
6027
|
-
|
|
6046
|
+
return typeof window > "u" ? null : /* @__PURE__ */ o(as, { client: Ca, children: /* @__PURE__ */ o(
|
|
6047
|
+
ma,
|
|
6028
6048
|
{
|
|
6029
6049
|
contextConfig: r,
|
|
6030
6050
|
defaultThemeConfig: a,
|
|
@@ -6033,11 +6053,11 @@ const ba = new ls({
|
|
|
6033
6053
|
children: e
|
|
6034
6054
|
}
|
|
6035
6055
|
) });
|
|
6036
|
-
},
|
|
6037
|
-
const t =
|
|
6056
|
+
}, Na = ({ className: e, style: n }) => {
|
|
6057
|
+
const t = V(X);
|
|
6038
6058
|
if (!t)
|
|
6039
6059
|
return console.error("WalletConnectEmbed must be used within WalletConnectProvider"), null;
|
|
6040
|
-
const s = t.connection.isConnected ?
|
|
6060
|
+
const s = t.connection.isConnected ? M.Account : t.modal.view, a = (() => {
|
|
6041
6061
|
const c = Or[s];
|
|
6042
6062
|
return c ? c(t) : null;
|
|
6043
6063
|
})();
|
|
@@ -6050,79 +6070,75 @@ const ba = new ls({
|
|
|
6050
6070
|
}
|
|
6051
6071
|
);
|
|
6052
6072
|
};
|
|
6053
|
-
async function
|
|
6073
|
+
async function ja() {
|
|
6054
6074
|
let e = [];
|
|
6055
6075
|
try {
|
|
6056
|
-
e = await
|
|
6057
|
-
} catch (
|
|
6058
|
-
console.warn("Failed to fetch chains from API, using default chains:",
|
|
6076
|
+
e = await Lt();
|
|
6077
|
+
} catch (s) {
|
|
6078
|
+
console.warn("Failed to fetch chains from API, using default chains:", s);
|
|
6059
6079
|
}
|
|
6060
6080
|
const n = e.length > 0 ? Dt(e) : ae, t = {};
|
|
6061
6081
|
if (e.length > 0) {
|
|
6062
|
-
const
|
|
6063
|
-
|
|
6064
|
-
id:
|
|
6065
|
-
name:
|
|
6066
|
-
nativeCurrency:
|
|
6067
|
-
rpcUrls:
|
|
6068
|
-
blockExplorers:
|
|
6082
|
+
const s = e.filter((i) => H(i.chainId) === "aptos");
|
|
6083
|
+
s.length > 0 && (t.aptos = s.map((i) => ({
|
|
6084
|
+
id: i.chainId,
|
|
6085
|
+
name: i.name,
|
|
6086
|
+
nativeCurrency: i.nativeCurrency,
|
|
6087
|
+
rpcUrls: i.rpcUrls,
|
|
6088
|
+
blockExplorers: i.blockExplorers,
|
|
6069
6089
|
chainInfo: {
|
|
6070
|
-
icon:
|
|
6071
|
-
name:
|
|
6090
|
+
icon: i.icon,
|
|
6091
|
+
name: i.name
|
|
6072
6092
|
}
|
|
6073
6093
|
})));
|
|
6074
6094
|
} else
|
|
6075
6095
|
t.aptos = Ce.aptos || [];
|
|
6076
6096
|
if (e.length > 0) {
|
|
6077
|
-
const
|
|
6078
|
-
|
|
6079
|
-
const
|
|
6097
|
+
const s = e.filter((i) => H(i.chainId) === "evm");
|
|
6098
|
+
s.length > 0 && (t.evm = s.map((i) => {
|
|
6099
|
+
const a = i.chainId.match(/^eip155:(\d+)$/), c = a ? parseInt(a[1], 10) : 1, l = `evm_${c}`, d = n[l] || ae[l], A = i.icon || (typeof d == "string" ? d : null);
|
|
6080
6100
|
return {
|
|
6081
|
-
id:
|
|
6082
|
-
name:
|
|
6083
|
-
nativeCurrency:
|
|
6084
|
-
rpcUrls:
|
|
6085
|
-
blockExplorers:
|
|
6086
|
-
contracts:
|
|
6087
|
-
blockTime:
|
|
6088
|
-
...
|
|
6101
|
+
id: c,
|
|
6102
|
+
name: i.name,
|
|
6103
|
+
nativeCurrency: i.nativeCurrency,
|
|
6104
|
+
rpcUrls: i.rpcUrls,
|
|
6105
|
+
blockExplorers: i.blockExplorers,
|
|
6106
|
+
contracts: i.contracts,
|
|
6107
|
+
blockTime: i.blockTime,
|
|
6108
|
+
...A && { icon: A }
|
|
6089
6109
|
};
|
|
6090
6110
|
}));
|
|
6091
6111
|
} else
|
|
6092
6112
|
t.evm = Ce.evm || [];
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
name: s.name,
|
|
6113
|
-
nativeCurrency: s.nativeCurrency,
|
|
6114
|
-
rpcUrls: s.rpcUrls,
|
|
6115
|
-
blockExplorers: s.blockExplorers,
|
|
6113
|
+
const r = e.filter((s) => H(s.chainId) === "solana");
|
|
6114
|
+
if (r.length > 0 ? t.solana = r.map((s) => ({
|
|
6115
|
+
id: s.chainId,
|
|
6116
|
+
name: s.name,
|
|
6117
|
+
nativeCurrency: s.nativeCurrency,
|
|
6118
|
+
rpcUrls: s.rpcUrls,
|
|
6119
|
+
blockExplorers: s.blockExplorers,
|
|
6120
|
+
chainInfo: {
|
|
6121
|
+
icon: s.icon,
|
|
6122
|
+
name: s.name
|
|
6123
|
+
}
|
|
6124
|
+
})) : t.solana = Ce.solana || [], e.length > 0) {
|
|
6125
|
+
const s = e.filter((i) => H(i.chainId) === "dogecoin");
|
|
6126
|
+
s.length > 0 && (t.dogecoin = s.map((i) => ({
|
|
6127
|
+
id: i.chainId,
|
|
6128
|
+
name: i.name,
|
|
6129
|
+
nativeCurrency: i.nativeCurrency,
|
|
6130
|
+
rpcUrls: i.rpcUrls,
|
|
6131
|
+
blockExplorers: i.blockExplorers,
|
|
6116
6132
|
chainInfo: {
|
|
6117
|
-
icon:
|
|
6118
|
-
name:
|
|
6133
|
+
icon: i.icon,
|
|
6134
|
+
name: i.name
|
|
6119
6135
|
}
|
|
6120
6136
|
})));
|
|
6121
6137
|
} else
|
|
6122
6138
|
t.dogecoin = Ce.dogecoin || [];
|
|
6123
6139
|
return t;
|
|
6124
6140
|
}
|
|
6125
|
-
async function
|
|
6141
|
+
async function Ta() {
|
|
6126
6142
|
try {
|
|
6127
6143
|
return (await Tt({
|
|
6128
6144
|
chainType: "all",
|
|
@@ -6147,12 +6163,12 @@ async function Sa() {
|
|
|
6147
6163
|
typeof window < "u" && console.info(`[${st.name}] version: ${st.version}`);
|
|
6148
6164
|
export {
|
|
6149
6165
|
T as ChainTypeEnum,
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6166
|
+
Na as WalletConnectEmbed,
|
|
6167
|
+
Xa as WalletConnectProvider,
|
|
6168
|
+
ja as getChains,
|
|
6169
|
+
Ta as getConnectors,
|
|
6154
6170
|
Gn as useAccount,
|
|
6155
|
-
|
|
6171
|
+
Ma as useConnectors,
|
|
6156
6172
|
Cc as useEmbeddedWallet,
|
|
6157
|
-
|
|
6173
|
+
Va as useWalletConnect
|
|
6158
6174
|
};
|