@dogeos/dogeos-sdk 3.0.7-beta.1 → 3.0.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/index.js +984 -972
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as v, jsx as i, Fragment as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { Button as X, BackIcon as
|
|
4
|
-
import { isMobile as
|
|
5
|
-
import { useMutation as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { EmbeddedWallet as
|
|
9
|
-
import { useConfig as
|
|
10
|
-
import { getAddress as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as v, jsx as i, Fragment as ct } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as br, useState as N, useRef as ce, useEffect as Z, useMemo as B, useContext as V, useCallback as T } from "react";
|
|
3
|
+
import { Button as X, BackIcon as at, CloseIcon as lt, OkIcon as At, CopyIcon as zr, Image as ne, PowerIcon as wr, DownIcon as Ir, Spinner as te, Skeleton as Pr, Modal as dt, Link as Ee, TomoLogoIcon as Br, Card as yr, CardBody as hr, Tabs as Mr, Tab as Wr, Chip as Sn, SearchIcon as Vr, Input as zn, SearchOutlinedIcon as Xr, addToast as Nr, RightArrowIcon as wn, ModalHeader as jr, ModalBody as Tr, ModalContent as Er, TomoUIProvider as Lr, ToastProvider as Sr } from "@tomo-inc/tomo-ui";
|
|
4
|
+
import { isMobile as cn, metaMaskWallet as Or, phantomWallet as Yr, coinbaseWallet as Zr, binanceWallet as kr, walletConnectWallet as Jr, loadConnectors as Fr, ProviderProtocol as On, connect as Dr, switchChain as Yn, addChain as Hr, signMessage as Qr, signInWithWallet as qr, setWalletConnectConfig as Kr } from "@tomo-inc/wallet-adaptor-base";
|
|
5
|
+
import { useMutation as In, useQuery as Gr, QueryClientProvider as Ur, QueryClient as Rr } from "@tanstack/react-query";
|
|
6
|
+
import _r from "copy-to-clipboard";
|
|
7
|
+
import $r from "qr-code-styling";
|
|
8
|
+
import { EmbeddedWallet as es } from "@tomo-inc/embedded-wallet-providers";
|
|
9
|
+
import { useConfig as Zn, useConnect as ns, useDisconnect as ts, useAccount as rs, createConnector as ss } from "wagmi";
|
|
10
|
+
import { getAddress as Me, SwitchChainError as kn, numberToHex as Jn, UserRejectedRequestError as F, withRetry as is, withTimeout as os, ResourceUnavailableRpcError as Re } from "viem";
|
|
11
|
+
const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
12
12
|
"svg",
|
|
13
13
|
{
|
|
14
14
|
"aria-hidden": "true",
|
|
@@ -75,7 +75,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
75
75
|
] })
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
|
-
),
|
|
78
|
+
), ut = ({ ...e }) => /* @__PURE__ */ i(ft, { testnet: !0, ...e }), Le = ({ testnet: e, ...n }) => {
|
|
79
79
|
let t = "var(--ck-chain-ethereum-01, #627EEA)", r = "var(--ck-chain-ethereum-02, #ffffff)";
|
|
80
80
|
return e && (t = "linear-gradient(180deg, #8995A9 0%, #627EEA 99.48%)", r = "#fff"), /* @__PURE__ */ v(
|
|
81
81
|
"svg",
|
|
@@ -107,7 +107,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
|
-
},
|
|
110
|
+
}, gt = ({ testnet: e, ...n }) => /* @__PURE__ */ i(
|
|
111
111
|
"svg",
|
|
112
112
|
{
|
|
113
113
|
"aria-hidden": "true",
|
|
@@ -128,7 +128,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
128
128
|
}
|
|
129
129
|
)
|
|
130
130
|
}
|
|
131
|
-
),
|
|
131
|
+
), vt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
132
132
|
"svg",
|
|
133
133
|
{
|
|
134
134
|
"aria-hidden": "true",
|
|
@@ -173,7 +173,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
173
173
|
)
|
|
174
174
|
]
|
|
175
175
|
}
|
|
176
|
-
),
|
|
176
|
+
), Ct = ({ testnet: e, ...n }) => {
|
|
177
177
|
const t = e ? "#ffffff" : "#28A0F0";
|
|
178
178
|
return /* @__PURE__ */ v(
|
|
179
179
|
"svg",
|
|
@@ -228,7 +228,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
},
|
|
231
|
+
}, mt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
232
232
|
"svg",
|
|
233
233
|
{
|
|
234
234
|
"aria-hidden": "true",
|
|
@@ -279,7 +279,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
279
279
|
)
|
|
280
280
|
]
|
|
281
281
|
}
|
|
282
|
-
),
|
|
282
|
+
), xt = ({ testnet: e, ...n }) => /* @__PURE__ */ i(
|
|
283
283
|
"svg",
|
|
284
284
|
{
|
|
285
285
|
width: "44",
|
|
@@ -299,7 +299,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
299
299
|
}
|
|
300
300
|
)
|
|
301
301
|
}
|
|
302
|
-
),
|
|
302
|
+
), pt = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "200", height: "208", viewBox: "0 0 200 208", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
303
303
|
/* @__PURE__ */ i("rect", { width: "199.4", height: "207.623", fill: "#121212" }),
|
|
304
304
|
/* @__PURE__ */ v("g", { clipPath: "url(#clip0_2318_291)", children: [
|
|
305
305
|
/* @__PURE__ */ i("path", { d: "M132.369 155.99H49.7001V68.8854H68.6148V139.109H132.369V155.981V155.99Z", fill: "#fff" }),
|
|
@@ -312,7 +312,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
312
312
|
)
|
|
313
313
|
] }),
|
|
314
314
|
/* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", { id: "clip0_2318_291", children: /* @__PURE__ */ i("rect", { width: "99.5407", height: "103.977", fill: "white", transform: "translate(49.7001 52.0134)" }) }) })
|
|
315
|
-
] }),
|
|
315
|
+
] }), Je = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
316
316
|
/* @__PURE__ */ i(
|
|
317
317
|
"path",
|
|
318
318
|
{
|
|
@@ -327,7 +327,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
327
327
|
fill: "white"
|
|
328
328
|
}
|
|
329
329
|
)
|
|
330
|
-
] }),
|
|
330
|
+
] }), Fe = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
331
331
|
/* @__PURE__ */ v("g", { clipPath: "url(#clip0_101_1146)", children: [
|
|
332
332
|
/* @__PURE__ */ i(
|
|
333
333
|
"path",
|
|
@@ -409,7 +409,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
409
409
|
/* @__PURE__ */ i("clipPath", { id: "clip0_101_1146", children: /* @__PURE__ */ i("rect", { width: "20", height: "20", fill: "white" }) }),
|
|
410
410
|
/* @__PURE__ */ i("clipPath", { id: "clip1_101_1146", children: /* @__PURE__ */ i("rect", { width: "13.125", height: "10", fill: "white", transform: "translate(3.75 5)" }) })
|
|
411
411
|
] })
|
|
412
|
-
] }),
|
|
412
|
+
] }), cs = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
413
413
|
/* @__PURE__ */ i("circle", { cx: "16", cy: "16", r: "16", fill: "black" }),
|
|
414
414
|
/* @__PURE__ */ i(
|
|
415
415
|
"mask",
|
|
@@ -431,7 +431,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
431
431
|
fill: "#FFDA34"
|
|
432
432
|
}
|
|
433
433
|
) })
|
|
434
|
-
] }),
|
|
434
|
+
] }), bt = ({ ...e }) => /* @__PURE__ */ v(
|
|
435
435
|
"svg",
|
|
436
436
|
{
|
|
437
437
|
width: "36",
|
|
@@ -479,7 +479,7 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
479
479
|
] })
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
|
-
),
|
|
482
|
+
), zt = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
483
483
|
/* @__PURE__ */ i("foreignObject", { x: "-2.16759", y: "-2.16759", width: "60.3349", height: "60.3352", children: /* @__PURE__ */ i(
|
|
484
484
|
"div",
|
|
485
485
|
{
|
|
@@ -597,32 +597,32 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
597
597
|
}
|
|
598
598
|
)
|
|
599
599
|
] })
|
|
600
|
-
] }),
|
|
600
|
+
] }), as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
601
601
|
__proto__: null,
|
|
602
|
-
Apots:
|
|
603
|
-
Arbitrum:
|
|
604
|
-
Base:
|
|
605
|
-
BinanceSmartChain:
|
|
606
|
-
Doge:
|
|
607
|
-
Ethereum:
|
|
608
|
-
KnownChain:
|
|
609
|
-
Linea:
|
|
610
|
-
Movement:
|
|
611
|
-
Optimism:
|
|
612
|
-
Polygon:
|
|
613
|
-
Solana:
|
|
614
|
-
UnknownChain:
|
|
615
|
-
UnsupportChain:
|
|
602
|
+
Apots: Je,
|
|
603
|
+
Arbitrum: Ct,
|
|
604
|
+
Base: xt,
|
|
605
|
+
BinanceSmartChain: mt,
|
|
606
|
+
Doge: bt,
|
|
607
|
+
Ethereum: Le,
|
|
608
|
+
KnownChain: ft,
|
|
609
|
+
Linea: pt,
|
|
610
|
+
Movement: cs,
|
|
611
|
+
Optimism: vt,
|
|
612
|
+
Polygon: gt,
|
|
613
|
+
Solana: Fe,
|
|
614
|
+
UnknownChain: ut,
|
|
615
|
+
UnsupportChain: zt
|
|
616
616
|
}, Symbol.toStringTag, { value: "Module" })), le = ({ icon: e, iconName: n, className: t, iconProps: r }) => {
|
|
617
|
-
const s = e ||
|
|
617
|
+
const s = e || as?.[n] || ut;
|
|
618
618
|
return /* @__PURE__ */ v("div", { className: t, children: [
|
|
619
619
|
/* @__PURE__ */ i(s, { "data-icon": "chain-icon", width: "100%", height: "100%", ...r }),
|
|
620
620
|
";"
|
|
621
621
|
] });
|
|
622
|
-
},
|
|
622
|
+
}, Pn = () => {
|
|
623
623
|
const [e, n] = N(!1), t = ce(null), r = (s) => {
|
|
624
624
|
try {
|
|
625
|
-
return
|
|
625
|
+
return _r(s), n(!0), t.current = setTimeout(() => n(!1), 1200), !0;
|
|
626
626
|
} catch (o) {
|
|
627
627
|
return console.warn("Copy failed, but continuing execution:", o), !1;
|
|
628
628
|
}
|
|
@@ -634,10 +634,10 @@ const M = xr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
|
|
|
634
634
|
[]
|
|
635
635
|
), { copied: e, copy: r };
|
|
636
636
|
};
|
|
637
|
-
function
|
|
637
|
+
function an(e) {
|
|
638
638
|
return new Promise((n) => setTimeout(n, e));
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function wt(e) {
|
|
641
641
|
if (!e || typeof e != "string")
|
|
642
642
|
return !1;
|
|
643
643
|
const n = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, t = /^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
@@ -646,49 +646,49 @@ function zt(e) {
|
|
|
646
646
|
const r = e.split("@")[0];
|
|
647
647
|
return !(r.startsWith(".") || r.endsWith(".") || r.includes(".."));
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
return !e || e.trim().length === 0 ? "Please enter your email address" :
|
|
649
|
+
function ls(e) {
|
|
650
|
+
return !e || e.trim().length === 0 ? "Please enter your email address" : wt(e) ? null : "Please enter a valid email address";
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const Bn = {
|
|
653
653
|
WALLET_STATE: "tomo_wallet_state"
|
|
654
|
-
},
|
|
654
|
+
}, As = (e) => {
|
|
655
655
|
try {
|
|
656
656
|
const n = {
|
|
657
657
|
...e,
|
|
658
658
|
timestamp: Date.now()
|
|
659
659
|
};
|
|
660
|
-
localStorage.setItem(
|
|
660
|
+
localStorage.setItem(Bn.WALLET_STATE, JSON.stringify(n));
|
|
661
661
|
} catch (n) {
|
|
662
662
|
console.error("Failed to save wallet state:", n);
|
|
663
663
|
}
|
|
664
|
-
},
|
|
664
|
+
}, ds = () => {
|
|
665
665
|
try {
|
|
666
|
-
const e = localStorage.getItem(
|
|
666
|
+
const e = localStorage.getItem(Bn.WALLET_STATE);
|
|
667
667
|
if (!e) return null;
|
|
668
668
|
const n = JSON.parse(e);
|
|
669
|
-
return Date.now() - n.timestamp > 24 * 7 * 60 * 60 * 1e3 ? (
|
|
669
|
+
return Date.now() - n.timestamp > 24 * 7 * 60 * 60 * 1e3 ? (It(), null) : n;
|
|
670
670
|
} catch (e) {
|
|
671
671
|
return console.error("Failed to get wallet state:", e), null;
|
|
672
672
|
}
|
|
673
|
-
},
|
|
673
|
+
}, It = () => {
|
|
674
674
|
try {
|
|
675
|
-
localStorage.removeItem(
|
|
675
|
+
localStorage.removeItem(Bn.WALLET_STATE);
|
|
676
676
|
} catch (e) {
|
|
677
677
|
console.error("Failed to clear wallet state:", e);
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
|
-
function
|
|
680
|
+
function Fn(e, n) {
|
|
681
681
|
const t = e.info?.uuid, r = t ? n.has(t) : !1, s = e.isInstalled === !0;
|
|
682
682
|
return r && s ? 0 : !r && s ? 1 : r && !s ? 2 : 3;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
const t = new Set(e.map((a) => a.info?.uuid).filter(Boolean)), r = (a, l) =>
|
|
684
|
+
function fs(e, n) {
|
|
685
|
+
const t = new Set(e.map((a) => a.info?.uuid).filter(Boolean)), r = (a, l) => Fn(a, t) - Fn(l, t), s = /* @__PURE__ */ new Set();
|
|
686
686
|
return [[...e, ...n].filter((a) => {
|
|
687
687
|
const l = a.info?.uuid;
|
|
688
688
|
return !l || s.has(l) ? !1 : (s.add(l), !0);
|
|
689
689
|
}).sort(r), n];
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function us(e, n = 6, t = 4) {
|
|
692
692
|
if (!e) return "";
|
|
693
693
|
if (e.length <= n + t)
|
|
694
694
|
return e;
|
|
@@ -702,34 +702,34 @@ const O = {
|
|
|
702
702
|
},
|
|
703
703
|
aptos: {
|
|
704
704
|
name: "Aptos",
|
|
705
|
-
icon:
|
|
705
|
+
icon: Je
|
|
706
706
|
},
|
|
707
707
|
evm: {
|
|
708
708
|
name: "EVM(Ethereum)",
|
|
709
|
-
icon:
|
|
709
|
+
icon: Le
|
|
710
710
|
},
|
|
711
711
|
solana: {
|
|
712
712
|
name: "Solana",
|
|
713
|
-
icon:
|
|
713
|
+
icon: Fe
|
|
714
714
|
},
|
|
715
715
|
dogecoin: {
|
|
716
716
|
name: "Dogecoin",
|
|
717
|
-
icon:
|
|
717
|
+
icon: bt
|
|
718
718
|
}
|
|
719
|
-
},
|
|
720
|
-
aptos:
|
|
721
|
-
solana:
|
|
722
|
-
evm:
|
|
719
|
+
}, Pt = {
|
|
720
|
+
aptos: Je,
|
|
721
|
+
solana: Fe,
|
|
722
|
+
evm: Le,
|
|
723
723
|
// Evm chains
|
|
724
|
-
evm_1:
|
|
725
|
-
evm_10:
|
|
726
|
-
evm_56:
|
|
727
|
-
evm_137:
|
|
728
|
-
evm_42161:
|
|
729
|
-
evm_59144:
|
|
730
|
-
evm_8453:
|
|
731
|
-
unsupported:
|
|
732
|
-
},
|
|
724
|
+
evm_1: Le,
|
|
725
|
+
evm_10: vt,
|
|
726
|
+
evm_56: mt,
|
|
727
|
+
evm_137: gt,
|
|
728
|
+
evm_42161: Ct,
|
|
729
|
+
evm_59144: pt,
|
|
730
|
+
evm_8453: xt,
|
|
731
|
+
unsupported: zt
|
|
732
|
+
}, _e = {
|
|
733
733
|
evm_1: {
|
|
734
734
|
id: 1,
|
|
735
735
|
chainId: "0x1",
|
|
@@ -747,19 +747,19 @@ function U(e) {
|
|
|
747
747
|
...e
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
const
|
|
751
|
-
let
|
|
750
|
+
const Bt = "2.38.2";
|
|
751
|
+
let $e = {
|
|
752
752
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: n = "", docsSlug: t }) => n ? `${e ?? "https://viem.sh"}${n}${t ? `#${t}` : ""}` : void 0,
|
|
753
|
-
version: `viem@${
|
|
754
|
-
}, y = class
|
|
753
|
+
version: `viem@${Bt}`
|
|
754
|
+
}, y = class ln extends Error {
|
|
755
755
|
constructor(n, t = {}) {
|
|
756
|
-
const r = t.cause instanceof
|
|
756
|
+
const r = t.cause instanceof ln ? t.cause.details : t.cause?.message ? t.cause.message : t.details, s = t.cause instanceof ln && t.cause.docsPath || t.docsPath, o = $e.getDocsUrl?.({ ...t, docsPath: s }), c = [
|
|
757
757
|
n || "An error occurred.",
|
|
758
758
|
"",
|
|
759
759
|
...t.metaMessages ? [...t.metaMessages, ""] : [],
|
|
760
760
|
...o ? [`Docs: ${o}`] : [],
|
|
761
761
|
...r ? [`Details: ${r}`] : [],
|
|
762
|
-
|
|
762
|
+
...$e.version ? [`Version: ${$e.version}`] : []
|
|
763
763
|
].join(`
|
|
764
764
|
`);
|
|
765
765
|
super(c, t.cause ? { cause: t.cause } : void 0), Object.defineProperty(this, "details", {
|
|
@@ -792,67 +792,67 @@ let _e = {
|
|
|
792
792
|
configurable: !0,
|
|
793
793
|
writable: !0,
|
|
794
794
|
value: "BaseError"
|
|
795
|
-
}), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.name = t.name ?? this.name, this.shortMessage = n, this.version =
|
|
795
|
+
}), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.name = t.name ?? this.name, this.shortMessage = n, this.version = Bt;
|
|
796
796
|
}
|
|
797
797
|
walk(n) {
|
|
798
|
-
return
|
|
798
|
+
return yt(this, n);
|
|
799
799
|
}
|
|
800
800
|
};
|
|
801
|
-
function
|
|
802
|
-
return n?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ?
|
|
801
|
+
function yt(e, n) {
|
|
802
|
+
return n?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? yt(e.cause, n) : n ? null : e;
|
|
803
803
|
}
|
|
804
|
-
class
|
|
804
|
+
class gs extends y {
|
|
805
805
|
constructor({ max: n, min: t, signed: r, size: s, value: o }) {
|
|
806
806
|
super(`Number "${o}" is not in safe ${s ? `${s * 8}-bit ${r ? "signed" : "unsigned"} ` : ""}integer range ${n ? `(${t} to ${n})` : `(above ${t})`}`, { name: "IntegerOutOfRangeError" });
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
class
|
|
809
|
+
class vs extends y {
|
|
810
810
|
constructor({ givenSize: n, maxSize: t }) {
|
|
811
811
|
super(`Size cannot exceed ${t} bytes. Given size: ${n} bytes.`, { name: "SizeOverflowError" });
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Ie(e, { strict: n = !0 } = {}) {
|
|
815
815
|
return !e || typeof e != "string" ? !1 : n ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
816
816
|
}
|
|
817
817
|
function ae(e) {
|
|
818
|
-
return
|
|
818
|
+
return Ie(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Se(e, { dir: n = "left" } = {}) {
|
|
821
821
|
let t = typeof e == "string" ? e.replace("0x", "") : e, r = 0;
|
|
822
822
|
for (let s = 0; s < t.length - 1 && t[n === "left" ? s : t.length - s - 1].toString() === "0"; s++)
|
|
823
823
|
r++;
|
|
824
824
|
return t = n === "left" ? t.slice(r) : t.slice(0, t.length - r), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class Cs extends y {
|
|
827
827
|
constructor({ offset: n, position: t, size: r }) {
|
|
828
828
|
super(`Slice ${t === "start" ? "starting" : "ending"} at offset "${n}" is out-of-bounds (size: ${r}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
class
|
|
831
|
+
class ht extends y {
|
|
832
832
|
constructor({ size: n, targetSize: t, type: r }) {
|
|
833
833
|
super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${n}) exceeds padding size (${t}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
function Ae(e, { dir: n, size: t = 32 } = {}) {
|
|
837
|
-
return typeof e == "string" ?
|
|
837
|
+
return typeof e == "string" ? ms(e, { dir: n, size: t }) : xs(e, { dir: n, size: t });
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function ms(e, { dir: n, size: t = 32 } = {}) {
|
|
840
840
|
if (t === null)
|
|
841
841
|
return e;
|
|
842
842
|
const r = e.replace("0x", "");
|
|
843
843
|
if (r.length > t * 2)
|
|
844
|
-
throw new
|
|
844
|
+
throw new ht({
|
|
845
845
|
size: Math.ceil(r.length / 2),
|
|
846
846
|
targetSize: t,
|
|
847
847
|
type: "hex"
|
|
848
848
|
});
|
|
849
849
|
return `0x${r[n === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function xs(e, { dir: n, size: t = 32 } = {}) {
|
|
852
852
|
if (t === null)
|
|
853
853
|
return e;
|
|
854
854
|
if (e.length > t)
|
|
855
|
-
throw new
|
|
855
|
+
throw new ht({
|
|
856
856
|
size: e.length,
|
|
857
857
|
targetSize: t,
|
|
858
858
|
type: "bytes"
|
|
@@ -864,18 +864,18 @@ function Cs(e, { dir: n, size: t = 32 } = {}) {
|
|
|
864
864
|
}
|
|
865
865
|
return r;
|
|
866
866
|
}
|
|
867
|
-
const
|
|
868
|
-
function
|
|
869
|
-
return typeof e == "number" || typeof e == "bigint" ? z(e, n) : typeof e == "string" ?
|
|
867
|
+
const ps = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
|
|
868
|
+
function me(e, n = {}) {
|
|
869
|
+
return typeof e == "number" || typeof e == "bigint" ? z(e, n) : typeof e == "string" ? ws(e, n) : typeof e == "boolean" ? bs(e, n) : q(e, n);
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function bs(e, n = {}) {
|
|
872
872
|
const t = `0x${Number(e)}`;
|
|
873
873
|
return typeof n.size == "number" ? (de(t, { size: n.size }), Ae(t, { size: n.size })) : t;
|
|
874
874
|
}
|
|
875
875
|
function q(e, n = {}) {
|
|
876
876
|
let t = "";
|
|
877
877
|
for (let s = 0; s < e.length; s++)
|
|
878
|
-
t +=
|
|
878
|
+
t += ps[e[s]];
|
|
879
879
|
const r = `0x${t}`;
|
|
880
880
|
return typeof n.size == "number" ? (de(r, { size: n.size }), Ae(r, { dir: "right", size: n.size })) : r;
|
|
881
881
|
}
|
|
@@ -886,7 +886,7 @@ function z(e, n = {}) {
|
|
|
886
886
|
const c = typeof o == "bigint" && t ? -o - 1n : 0;
|
|
887
887
|
if (o && s > o || s < c) {
|
|
888
888
|
const l = typeof e == "bigint" ? "n" : "";
|
|
889
|
-
throw new
|
|
889
|
+
throw new gs({
|
|
890
890
|
max: o ? `${o}${l}` : void 0,
|
|
891
891
|
min: `${c}${l}`,
|
|
892
892
|
signed: t,
|
|
@@ -897,16 +897,16 @@ function z(e, n = {}) {
|
|
|
897
897
|
const a = `0x${(t && s < 0 ? (1n << BigInt(r * 8)) + BigInt(s) : s).toString(16)}`;
|
|
898
898
|
return r ? Ae(a, { size: r }) : a;
|
|
899
899
|
}
|
|
900
|
-
const
|
|
901
|
-
function
|
|
902
|
-
const t =
|
|
900
|
+
const zs = /* @__PURE__ */ new TextEncoder();
|
|
901
|
+
function ws(e, n = {}) {
|
|
902
|
+
const t = zs.encode(e);
|
|
903
903
|
return q(t, n);
|
|
904
904
|
}
|
|
905
|
-
const
|
|
906
|
-
function
|
|
907
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
905
|
+
const Is = /* @__PURE__ */ new TextEncoder();
|
|
906
|
+
function Mt(e, n = {}) {
|
|
907
|
+
return typeof e == "number" || typeof e == "bigint" ? Bs(e, n) : typeof e == "boolean" ? Ps(e, n) : Ie(e) ? _(e, n) : Wt(e, n);
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Ps(e, n = {}) {
|
|
910
910
|
const t = new Uint8Array(1);
|
|
911
911
|
return t[0] = Number(e), typeof n.size == "number" ? (de(t, { size: n.size }), Ae(t, { size: n.size })) : t;
|
|
912
912
|
}
|
|
@@ -918,7 +918,7 @@ const D = {
|
|
|
918
918
|
a: 97,
|
|
919
919
|
f: 102
|
|
920
920
|
};
|
|
921
|
-
function
|
|
921
|
+
function Dn(e) {
|
|
922
922
|
if (e >= D.zero && e <= D.nine)
|
|
923
923
|
return e - D.zero;
|
|
924
924
|
if (e >= D.A && e <= D.F)
|
|
@@ -933,24 +933,24 @@ function _(e, n = {}) {
|
|
|
933
933
|
r.length % 2 && (r = `0${r}`);
|
|
934
934
|
const s = r.length / 2, o = new Uint8Array(s);
|
|
935
935
|
for (let c = 0, a = 0; c < s; c++) {
|
|
936
|
-
const l =
|
|
936
|
+
const l = Dn(r.charCodeAt(a++)), A = Dn(r.charCodeAt(a++));
|
|
937
937
|
if (l === void 0 || A === void 0)
|
|
938
938
|
throw new y(`Invalid byte sequence ("${r[a - 2]}${r[a - 1]}" in "${r}").`);
|
|
939
939
|
o[c] = l * 16 + A;
|
|
940
940
|
}
|
|
941
941
|
return o;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Bs(e, n) {
|
|
944
944
|
const t = z(e, n);
|
|
945
945
|
return _(t);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
const t =
|
|
947
|
+
function Wt(e, n = {}) {
|
|
948
|
+
const t = Is.encode(e);
|
|
949
949
|
return typeof n.size == "number" ? (de(t, { size: n.size }), Ae(t, { dir: "right", size: n.size })) : t;
|
|
950
950
|
}
|
|
951
951
|
function de(e, { size: n }) {
|
|
952
952
|
if (ae(e) > n)
|
|
953
|
-
throw new
|
|
953
|
+
throw new vs({
|
|
954
954
|
givenSize: ae(e),
|
|
955
955
|
maxSize: n
|
|
956
956
|
});
|
|
@@ -964,10 +964,10 @@ function se(e, n = {}) {
|
|
|
964
964
|
const s = (e.length - 2) / 2, o = (1n << BigInt(s) * 8n - 1n) - 1n;
|
|
965
965
|
return r <= o ? r : r - BigInt(`0x${"f".padStart(s * 2, "f")}`) - 1n;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function Oe(e, n = {}) {
|
|
968
968
|
return Number(se(e, n));
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function yn(e, n) {
|
|
971
971
|
return ({ exclude: t, format: r }) => ({
|
|
972
972
|
exclude: t,
|
|
973
973
|
format: (s, o) => {
|
|
@@ -983,33 +983,33 @@ function Bn(e, n) {
|
|
|
983
983
|
type: e
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
|
-
const
|
|
986
|
+
const Vt = {
|
|
987
987
|
"0x0": "legacy",
|
|
988
988
|
"0x1": "eip2930",
|
|
989
989
|
"0x2": "eip1559",
|
|
990
990
|
"0x3": "eip4844",
|
|
991
991
|
"0x4": "eip7702"
|
|
992
992
|
};
|
|
993
|
-
function
|
|
993
|
+
function hn(e, n) {
|
|
994
994
|
const t = {
|
|
995
995
|
...e,
|
|
996
996
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
997
997
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
998
|
-
chainId: e.chainId ?
|
|
998
|
+
chainId: e.chainId ? Oe(e.chainId) : void 0,
|
|
999
999
|
gas: e.gas ? BigInt(e.gas) : void 0,
|
|
1000
1000
|
gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
|
|
1001
1001
|
maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
|
|
1002
1002
|
maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
|
|
1003
1003
|
maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
|
|
1004
|
-
nonce: e.nonce ?
|
|
1004
|
+
nonce: e.nonce ? Oe(e.nonce) : void 0,
|
|
1005
1005
|
to: e.to ? e.to : null,
|
|
1006
1006
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1007
|
-
type: e.type ?
|
|
1007
|
+
type: e.type ? Vt[e.type] : void 0,
|
|
1008
1008
|
typeHex: e.type ? e.type : void 0,
|
|
1009
1009
|
value: e.value ? BigInt(e.value) : void 0,
|
|
1010
1010
|
v: e.v ? BigInt(e.v) : void 0
|
|
1011
1011
|
};
|
|
1012
|
-
return e.authorizationList && (t.authorizationList =
|
|
1012
|
+
return e.authorizationList && (t.authorizationList = hs(e.authorizationList)), t.yParity = (() => {
|
|
1013
1013
|
if (e.yParity)
|
|
1014
1014
|
return Number(e.yParity);
|
|
1015
1015
|
if (typeof t.v == "bigint") {
|
|
@@ -1022,8 +1022,8 @@ function yn(e, n) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
})(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
|
|
1024
1024
|
}
|
|
1025
|
-
const
|
|
1026
|
-
function
|
|
1025
|
+
const ys = /* @__PURE__ */ yn("transaction", hn);
|
|
1026
|
+
function hs(e) {
|
|
1027
1027
|
return e.map((n) => ({
|
|
1028
1028
|
address: n.address,
|
|
1029
1029
|
chainId: Number(n.chainId),
|
|
@@ -1033,8 +1033,8 @@ function Bs(e) {
|
|
|
1033
1033
|
yParity: Number(n.yParity)
|
|
1034
1034
|
}));
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r :
|
|
1036
|
+
function Ms(e, n) {
|
|
1037
|
+
const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : hn(r));
|
|
1038
1038
|
return {
|
|
1039
1039
|
...e,
|
|
1040
1040
|
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
@@ -1053,8 +1053,8 @@ function ys(e, n) {
|
|
|
1053
1053
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1056
|
+
const Ws = /* @__PURE__ */ yn("block", Ms);
|
|
1057
|
+
function Vs(e, { args: n, eventName: t } = {}) {
|
|
1058
1058
|
return {
|
|
1059
1059
|
...e,
|
|
1060
1060
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -1065,11 +1065,11 @@ function Ms(e, { args: n, eventName: t } = {}) {
|
|
|
1065
1065
|
...t ? { args: n, eventName: t } : {}
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1068
|
+
const Xs = {
|
|
1069
1069
|
"0x0": "reverted",
|
|
1070
1070
|
"0x1": "success"
|
|
1071
1071
|
};
|
|
1072
|
-
function
|
|
1072
|
+
function Ns(e, n) {
|
|
1073
1073
|
const t = {
|
|
1074
1074
|
...e,
|
|
1075
1075
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1077,26 +1077,26 @@ function Vs(e, n) {
|
|
|
1077
1077
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1078
1078
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1079
1079
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1080
|
-
logs: e.logs ? e.logs.map((r) =>
|
|
1080
|
+
logs: e.logs ? e.logs.map((r) => Vs(r)) : null,
|
|
1081
1081
|
to: e.to ? e.to : null,
|
|
1082
|
-
transactionIndex: e.transactionIndex ?
|
|
1083
|
-
status: e.status ?
|
|
1084
|
-
type: e.type ?
|
|
1082
|
+
transactionIndex: e.transactionIndex ? Oe(e.transactionIndex) : null,
|
|
1083
|
+
status: e.status ? Xs[e.status] : null,
|
|
1084
|
+
type: e.type ? Vt[e.type] || e.type : null
|
|
1085
1085
|
};
|
|
1086
1086
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1088
|
+
const js = /* @__PURE__ */ yn("transactionReceipt", Ns), Ts = {
|
|
1089
1089
|
legacy: "0x0",
|
|
1090
1090
|
eip2930: "0x1",
|
|
1091
1091
|
eip1559: "0x2",
|
|
1092
1092
|
eip4844: "0x3",
|
|
1093
1093
|
eip7702: "0x4"
|
|
1094
1094
|
};
|
|
1095
|
-
function
|
|
1095
|
+
function Es(e, n) {
|
|
1096
1096
|
const t = {};
|
|
1097
|
-
return typeof e.authorizationList < "u" && (t.authorizationList =
|
|
1097
|
+
return typeof e.authorizationList < "u" && (t.authorizationList = Ls(e.authorizationList)), typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => q(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = z(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = z(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = z(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = z(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = z(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = z(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = Ts[e.type]), typeof e.value < "u" && (t.value = z(e.value)), t;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function Ls(e) {
|
|
1100
1100
|
return e.map((n) => ({
|
|
1101
1101
|
address: n.address,
|
|
1102
1102
|
r: n.r ? z(BigInt(n.r)) : n.r,
|
|
@@ -1107,28 +1107,28 @@ function Ts(e) {
|
|
|
1107
1107
|
...typeof n.v < "u" && typeof n.yParity > "u" ? { v: z(n.v) } : {}
|
|
1108
1108
|
}));
|
|
1109
1109
|
}
|
|
1110
|
-
const
|
|
1111
|
-
function
|
|
1110
|
+
const De = 2n ** 256n - 1n;
|
|
1111
|
+
function Pe(e) {
|
|
1112
1112
|
return `0x${e.reduce((n, t) => n + t.replace("0x", ""), "")}`;
|
|
1113
1113
|
}
|
|
1114
|
-
class
|
|
1114
|
+
class Hn extends y {
|
|
1115
1115
|
constructor({ offset: n }) {
|
|
1116
1116
|
super(`Offset \`${n}\` cannot be negative.`, {
|
|
1117
1117
|
name: "NegativeOffsetError"
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
class
|
|
1121
|
+
class Ss extends y {
|
|
1122
1122
|
constructor({ length: n, position: t }) {
|
|
1123
1123
|
super(`Position \`${t}\` is out of bounds (\`0 < position < ${n}\`).`, { name: "PositionOutOfBoundsError" });
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
|
-
class
|
|
1126
|
+
class Os extends y {
|
|
1127
1127
|
constructor({ count: n, limit: t }) {
|
|
1128
1128
|
super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${n}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
const
|
|
1131
|
+
const Ys = {
|
|
1132
1132
|
bytes: new Uint8Array(),
|
|
1133
1133
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
1134
1134
|
position: 0,
|
|
@@ -1137,21 +1137,21 @@ const Ss = {
|
|
|
1137
1137
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
1138
1138
|
assertReadLimit() {
|
|
1139
1139
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
1140
|
-
throw new
|
|
1140
|
+
throw new Os({
|
|
1141
1141
|
count: this.recursiveReadCount + 1,
|
|
1142
1142
|
limit: this.recursiveReadLimit
|
|
1143
1143
|
});
|
|
1144
1144
|
},
|
|
1145
1145
|
assertPosition(e) {
|
|
1146
1146
|
if (e < 0 || e > this.bytes.length - 1)
|
|
1147
|
-
throw new
|
|
1147
|
+
throw new Ss({
|
|
1148
1148
|
length: this.bytes.length,
|
|
1149
1149
|
position: e
|
|
1150
1150
|
});
|
|
1151
1151
|
},
|
|
1152
1152
|
decrementPosition(e) {
|
|
1153
1153
|
if (e < 0)
|
|
1154
|
-
throw new
|
|
1154
|
+
throw new Hn({ offset: e });
|
|
1155
1155
|
const n = this.position - e;
|
|
1156
1156
|
this.assertPosition(n), this.position = n;
|
|
1157
1157
|
},
|
|
@@ -1160,7 +1160,7 @@ const Ss = {
|
|
|
1160
1160
|
},
|
|
1161
1161
|
incrementPosition(e) {
|
|
1162
1162
|
if (e < 0)
|
|
1163
|
-
throw new
|
|
1163
|
+
throw new Hn({ offset: e });
|
|
1164
1164
|
const n = this.position + e;
|
|
1165
1165
|
this.assertPosition(n), this.position = n;
|
|
1166
1166
|
},
|
|
@@ -1250,19 +1250,19 @@ const Ss = {
|
|
|
1250
1250
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
|
-
function
|
|
1254
|
-
const t = Object.create(
|
|
1253
|
+
function Xt(e, { recursiveReadLimit: n = 8192 } = {}) {
|
|
1254
|
+
const t = Object.create(Ys);
|
|
1255
1255
|
return t.bytes = e, t.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), t.positionReadCount = /* @__PURE__ */ new Map(), t.recursiveReadLimit = n, t;
|
|
1256
1256
|
}
|
|
1257
1257
|
function $(e, n = "hex") {
|
|
1258
|
-
const t =
|
|
1258
|
+
const t = Nt(e), r = Xt(new Uint8Array(t.length));
|
|
1259
1259
|
return t.encode(r), n === "hex" ? q(r.bytes) : r.bytes;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return Array.isArray(e) ?
|
|
1261
|
+
function Nt(e) {
|
|
1262
|
+
return Array.isArray(e) ? Zs(e.map((n) => Nt(n))) : ks(e);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const n = e.reduce((s, o) => s + o.length, 0), t =
|
|
1264
|
+
function Zs(e) {
|
|
1265
|
+
const n = e.reduce((s, o) => s + o.length, 0), t = jt(n);
|
|
1266
1266
|
return {
|
|
1267
1267
|
length: n <= 55 ? 1 + n : 1 + t + n,
|
|
1268
1268
|
encode(s) {
|
|
@@ -1272,8 +1272,8 @@ function Os(e) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1276
|
-
const n = typeof e == "string" ? _(e) : e, t =
|
|
1275
|
+
function ks(e) {
|
|
1276
|
+
const n = typeof e == "string" ? _(e) : e, t = jt(n.length);
|
|
1277
1277
|
return {
|
|
1278
1278
|
length: n.length === 1 && n[0] < 128 ? 1 : n.length <= 55 ? 1 + n.length : 1 + t + n.length,
|
|
1279
1279
|
encode(s) {
|
|
@@ -1281,7 +1281,7 @@ function Ys(e) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function jt(e) {
|
|
1285
1285
|
if (e < 2 ** 8)
|
|
1286
1286
|
return 1;
|
|
1287
1287
|
if (e < 2 ** 16)
|
|
@@ -1292,14 +1292,14 @@ function Nt(e) {
|
|
|
1292
1292
|
return 4;
|
|
1293
1293
|
throw new y("Length is too large.");
|
|
1294
1294
|
}
|
|
1295
|
-
const
|
|
1295
|
+
const Js = {
|
|
1296
1296
|
gwei: 9,
|
|
1297
1297
|
wei: 18
|
|
1298
|
-
},
|
|
1298
|
+
}, Fs = {
|
|
1299
1299
|
ether: -9,
|
|
1300
1300
|
wei: 9
|
|
1301
1301
|
};
|
|
1302
|
-
function
|
|
1302
|
+
function Tt(e, n) {
|
|
1303
1303
|
let t = e.toString();
|
|
1304
1304
|
const r = t.startsWith("-");
|
|
1305
1305
|
r && (t = t.slice(1)), t = t.padStart(n, "0");
|
|
@@ -1309,18 +1309,18 @@ function jt(e, n) {
|
|
|
1309
1309
|
];
|
|
1310
1310
|
return o = o.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${o ? `.${o}` : ""}`;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1312
|
+
function Ds(e, n = "wei") {
|
|
1313
|
+
return Tt(e, Js[n]);
|
|
1314
1314
|
}
|
|
1315
1315
|
function R(e, n = "wei") {
|
|
1316
|
-
return
|
|
1316
|
+
return Tt(e, Fs[n]);
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Et(e) {
|
|
1319
1319
|
const n = Object.entries(e).map(([r, s]) => s === void 0 || s === !1 ? null : [r, s]).filter(Boolean), t = n.reduce((r, [s]) => Math.max(r, s.length), 0);
|
|
1320
1320
|
return n.map(([r, s]) => ` ${`${r}:`.padEnd(t + 1)} ${s}`).join(`
|
|
1321
1321
|
`);
|
|
1322
1322
|
}
|
|
1323
|
-
class
|
|
1323
|
+
class Hs extends y {
|
|
1324
1324
|
constructor() {
|
|
1325
1325
|
super([
|
|
1326
1326
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -1329,20 +1329,20 @@ class Fs extends y {
|
|
|
1329
1329
|
`), { name: "FeeConflictError" });
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
class
|
|
1332
|
+
class Qs extends y {
|
|
1333
1333
|
constructor({ v: n }) {
|
|
1334
1334
|
super(`Invalid \`v\` value "${n}". Expected 27 or 28.`, {
|
|
1335
1335
|
name: "InvalidLegacyVError"
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
class
|
|
1339
|
+
class qs extends y {
|
|
1340
1340
|
constructor({ transaction: n }) {
|
|
1341
1341
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
1342
1342
|
metaMessages: [
|
|
1343
1343
|
"Provided Transaction:",
|
|
1344
1344
|
"{",
|
|
1345
|
-
|
|
1345
|
+
Et(n),
|
|
1346
1346
|
"}",
|
|
1347
1347
|
"",
|
|
1348
1348
|
"To infer the type, either provide:",
|
|
@@ -1357,33 +1357,33 @@ class Hs extends y {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
-
class
|
|
1360
|
+
class Ks extends y {
|
|
1361
1361
|
constructor({ storageKey: n }) {
|
|
1362
1362
|
super(`Size for storage key "${n}" is invalid. Expected 32 bytes. Got ${Math.floor((n.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Gs(e) {
|
|
1366
1366
|
if (!e || e.length === 0)
|
|
1367
1367
|
return [];
|
|
1368
1368
|
const n = [];
|
|
1369
1369
|
for (const t of e) {
|
|
1370
1370
|
const { chainId: r, nonce: s, ...o } = t, c = t.address;
|
|
1371
1371
|
n.push([
|
|
1372
|
-
r ?
|
|
1372
|
+
r ? me(r) : "0x",
|
|
1373
1373
|
c,
|
|
1374
|
-
s ?
|
|
1375
|
-
...
|
|
1374
|
+
s ? me(s) : "0x",
|
|
1375
|
+
...Be({}, o)
|
|
1376
1376
|
]);
|
|
1377
1377
|
}
|
|
1378
1378
|
return n;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Lt(e) {
|
|
1381
1381
|
const { kzg: n } = e, t = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), r = typeof e.blobs[0] == "string" ? e.blobs.map((o) => _(o)) : e.blobs, s = [];
|
|
1382
1382
|
for (const o of r)
|
|
1383
1383
|
s.push(Uint8Array.from(n.blobToKzgCommitment(o)));
|
|
1384
1384
|
return t === "bytes" ? s : s.map((o) => q(o));
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function St(e) {
|
|
1387
1387
|
const { kzg: n } = e, t = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), r = typeof e.blobs[0] == "string" ? e.blobs.map((c) => _(c)) : e.blobs, s = typeof e.commitments[0] == "string" ? e.commitments.map((c) => _(c)) : e.commitments, o = [];
|
|
1388
1388
|
for (let c = 0; c < r.length; c++) {
|
|
1389
1389
|
const a = r[c], l = s[c];
|
|
@@ -1391,91 +1391,91 @@ function Lt(e) {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
return t === "bytes" ? o : o.map((c) => q(c));
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function Us(e) {
|
|
1395
1395
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Qn(e) {
|
|
1398
1398
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
1399
1399
|
throw new Error("positive integer expected, got " + e);
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1402
|
-
if (!
|
|
1401
|
+
function xe(e, ...n) {
|
|
1402
|
+
if (!Us(e))
|
|
1403
1403
|
throw new Error("Uint8Array expected");
|
|
1404
1404
|
if (n.length > 0 && !n.includes(e.length))
|
|
1405
1405
|
throw new Error("Uint8Array expected of length " + n + ", got length=" + e.length);
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function Ye(e, n = !0) {
|
|
1408
1408
|
if (e.destroyed)
|
|
1409
1409
|
throw new Error("Hash instance has been destroyed");
|
|
1410
1410
|
if (n && e.finished)
|
|
1411
1411
|
throw new Error("Hash#digest() has already been called");
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1414
|
-
|
|
1413
|
+
function Ot(e, n) {
|
|
1414
|
+
xe(e);
|
|
1415
1415
|
const t = n.outputLen;
|
|
1416
1416
|
if (e.length < t)
|
|
1417
1417
|
throw new Error("digestInto() expects output buffer of length at least " + t);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Rs(e) {
|
|
1420
1420
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function pe(...e) {
|
|
1423
1423
|
for (let n = 0; n < e.length; n++)
|
|
1424
1424
|
e[n].fill(0);
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function en(e) {
|
|
1427
1427
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
1428
1428
|
}
|
|
1429
1429
|
function J(e, n) {
|
|
1430
1430
|
return e << 32 - n | e >>> n;
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1433
|
-
function
|
|
1432
|
+
const _s = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
1433
|
+
function $s(e) {
|
|
1434
1434
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function ei(e) {
|
|
1437
1437
|
for (let n = 0; n < e.length; n++)
|
|
1438
|
-
e[n] =
|
|
1438
|
+
e[n] = $s(e[n]);
|
|
1439
1439
|
return e;
|
|
1440
1440
|
}
|
|
1441
|
-
const
|
|
1442
|
-
function
|
|
1441
|
+
const qn = _s ? (e) => e : ei;
|
|
1442
|
+
function ni(e) {
|
|
1443
1443
|
if (typeof e != "string")
|
|
1444
1444
|
throw new Error("string expected");
|
|
1445
1445
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return typeof e == "string" && (e =
|
|
1447
|
+
function Mn(e) {
|
|
1448
|
+
return typeof e == "string" && (e = ni(e)), xe(e), e;
|
|
1449
1449
|
}
|
|
1450
|
-
class
|
|
1450
|
+
class Yt {
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const n = (r) => e().update(
|
|
1452
|
+
function Zt(e) {
|
|
1453
|
+
const n = (r) => e().update(Mn(r)).digest(), t = e();
|
|
1454
1454
|
return n.outputLen = t.outputLen, n.blockLen = t.blockLen, n.create = () => e(), n;
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function ti(e, n, t, r) {
|
|
1457
1457
|
if (typeof e.setBigUint64 == "function")
|
|
1458
1458
|
return e.setBigUint64(n, t, r);
|
|
1459
1459
|
const s = BigInt(32), o = BigInt(4294967295), c = Number(t >> s & o), a = Number(t & o), l = r ? 4 : 0, A = r ? 0 : 4;
|
|
1460
1460
|
e.setUint32(n + l, c, r), e.setUint32(n + A, a, r);
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function ri(e, n, t) {
|
|
1463
1463
|
return e & n ^ ~e & t;
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function si(e, n, t) {
|
|
1466
1466
|
return e & n ^ e & t ^ n & t;
|
|
1467
1467
|
}
|
|
1468
|
-
class
|
|
1468
|
+
class ii extends Yt {
|
|
1469
1469
|
constructor(n, t, r, s) {
|
|
1470
|
-
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = n, this.outputLen = t, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(n), this.view =
|
|
1470
|
+
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = n, this.outputLen = t, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(n), this.view = en(this.buffer);
|
|
1471
1471
|
}
|
|
1472
1472
|
update(n) {
|
|
1473
|
-
|
|
1473
|
+
Ye(this), n = Mn(n), xe(n);
|
|
1474
1474
|
const { view: t, buffer: r, blockLen: s } = this, o = n.length;
|
|
1475
1475
|
for (let c = 0; c < o; ) {
|
|
1476
1476
|
const a = Math.min(s - this.pos, o - c);
|
|
1477
1477
|
if (a === s) {
|
|
1478
|
-
const l =
|
|
1478
|
+
const l = en(n);
|
|
1479
1479
|
for (; s <= o - c; c += s)
|
|
1480
1480
|
this.process(l, c);
|
|
1481
1481
|
continue;
|
|
@@ -1485,14 +1485,14 @@ class ri extends Ot {
|
|
|
1485
1485
|
return this.length += n.length, this.roundClean(), this;
|
|
1486
1486
|
}
|
|
1487
1487
|
digestInto(n) {
|
|
1488
|
-
|
|
1488
|
+
Ye(this), Ot(n, this), this.finished = !0;
|
|
1489
1489
|
const { buffer: t, view: r, blockLen: s, isLE: o } = this;
|
|
1490
1490
|
let { pos: c } = this;
|
|
1491
|
-
t[c++] = 128,
|
|
1491
|
+
t[c++] = 128, pe(this.buffer.subarray(c)), this.padOffset > s - c && (this.process(r, 0), c = 0);
|
|
1492
1492
|
for (let f = c; f < s; f++)
|
|
1493
1493
|
t[f] = 0;
|
|
1494
|
-
|
|
1495
|
-
const a =
|
|
1494
|
+
ti(r, s - 8, BigInt(this.length * 8), o), this.process(r, 0);
|
|
1495
|
+
const a = en(n), l = this.outputLen;
|
|
1496
1496
|
if (l % 4)
|
|
1497
1497
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
1498
1498
|
const A = l / 4, d = this.get();
|
|
@@ -1525,20 +1525,20 @@ const K = /* @__PURE__ */ Uint32Array.from([
|
|
|
1525
1525
|
2600822924,
|
|
1526
1526
|
528734635,
|
|
1527
1527
|
1541459225
|
|
1528
|
-
]),
|
|
1529
|
-
function
|
|
1530
|
-
return n ? { h: Number(e &
|
|
1528
|
+
]), We = /* @__PURE__ */ BigInt(2 ** 32 - 1), Kn = /* @__PURE__ */ BigInt(32);
|
|
1529
|
+
function oi(e, n = !1) {
|
|
1530
|
+
return n ? { h: Number(e & We), l: Number(e >> Kn & We) } : { h: Number(e >> Kn & We) | 0, l: Number(e & We) | 0 };
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function ci(e, n = !1) {
|
|
1533
1533
|
const t = e.length;
|
|
1534
1534
|
let r = new Uint32Array(t), s = new Uint32Array(t);
|
|
1535
1535
|
for (let o = 0; o < t; o++) {
|
|
1536
|
-
const { h: c, l: a } =
|
|
1536
|
+
const { h: c, l: a } = oi(e[o], n);
|
|
1537
1537
|
[r[o], s[o]] = [c, a];
|
|
1538
1538
|
}
|
|
1539
1539
|
return [r, s];
|
|
1540
1540
|
}
|
|
1541
|
-
const
|
|
1541
|
+
const ai = (e, n, t) => e << t | n >>> 32 - t, li = (e, n, t) => n << t | e >>> 32 - t, Ai = (e, n, t) => n << t - 32 | e >>> 64 - t, di = (e, n, t) => e << t - 32 | n >>> 64 - t, fi = /* @__PURE__ */ Uint32Array.from([
|
|
1542
1542
|
1116352408,
|
|
1543
1543
|
1899447441,
|
|
1544
1544
|
3049323471,
|
|
@@ -1604,7 +1604,7 @@ const oi = (e, n, t) => e << t | n >>> 32 - t, ci = (e, n, t) => n << t | e >>>
|
|
|
1604
1604
|
3204031479,
|
|
1605
1605
|
3329325298
|
|
1606
1606
|
]), G = /* @__PURE__ */ new Uint32Array(64);
|
|
1607
|
-
class
|
|
1607
|
+
class ui extends ii {
|
|
1608
1608
|
constructor(n = 32) {
|
|
1609
1609
|
super(64, n, 8, !1), this.A = K[0] | 0, this.B = K[1] | 0, this.C = K[2] | 0, this.D = K[3] | 0, this.E = K[4] | 0, this.F = K[5] | 0, this.G = K[6] | 0, this.H = K[7] | 0;
|
|
1610
1610
|
}
|
|
@@ -1625,40 +1625,40 @@ class di extends ri {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
let { A: r, B: s, C: o, D: c, E: a, F: l, G: A, H: d } = this;
|
|
1627
1627
|
for (let f = 0; f < 64; f++) {
|
|
1628
|
-
const g = J(a, 6) ^ J(a, 11) ^ J(a, 25), u = d + g +
|
|
1628
|
+
const g = J(a, 6) ^ J(a, 11) ^ J(a, 25), u = d + g + ri(a, l, A) + fi[f] + G[f] | 0, C = (J(r, 2) ^ J(r, 13) ^ J(r, 22)) + si(r, s, o) | 0;
|
|
1629
1629
|
d = A, A = l, l = a, a = c + u | 0, c = o, o = s, s = r, r = u + C | 0;
|
|
1630
1630
|
}
|
|
1631
1631
|
r = r + this.A | 0, s = s + this.B | 0, o = o + this.C | 0, c = c + this.D | 0, a = a + this.E | 0, l = l + this.F | 0, A = A + this.G | 0, d = d + this.H | 0, this.set(r, s, o, c, a, l, A, d);
|
|
1632
1632
|
}
|
|
1633
1633
|
roundClean() {
|
|
1634
|
-
|
|
1634
|
+
pe(G);
|
|
1635
1635
|
}
|
|
1636
1636
|
destroy() {
|
|
1637
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
1637
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0), pe(this.buffer);
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
|
-
const
|
|
1641
|
-
function
|
|
1642
|
-
return
|
|
1640
|
+
const gi = /* @__PURE__ */ Zt(() => new ui()), vi = gi;
|
|
1641
|
+
function Ci(e, n) {
|
|
1642
|
+
return vi(Ie(e, { strict: !1 }) ? Mt(e) : e);
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s =
|
|
1644
|
+
function mi(e) {
|
|
1645
|
+
const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s = Ci(n);
|
|
1646
1646
|
return s.set([t], 0), r === "bytes" ? s : q(s);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function xi(e) {
|
|
1649
1649
|
const { commitments: n, version: t } = e, r = e.to ?? (typeof n[0] == "string" ? "hex" : "bytes"), s = [];
|
|
1650
1650
|
for (const o of n)
|
|
1651
|
-
s.push(
|
|
1651
|
+
s.push(mi({
|
|
1652
1652
|
commitment: o,
|
|
1653
1653
|
to: r,
|
|
1654
1654
|
version: t
|
|
1655
1655
|
}));
|
|
1656
1656
|
return s;
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
1658
|
+
const Gn = 6, kt = 32, Wn = 4096, Jt = kt * Wn, Un = Jt * Gn - // terminator byte (0x80).
|
|
1659
1659
|
1 - // zero byte (0x00) appended to each field element.
|
|
1660
|
-
1 *
|
|
1661
|
-
class
|
|
1660
|
+
1 * Wn * Gn, Ft = 1;
|
|
1661
|
+
class pi extends y {
|
|
1662
1662
|
constructor({ maxSize: n, size: t }) {
|
|
1663
1663
|
super("Blob size is too large.", {
|
|
1664
1664
|
metaMessages: [`Max: ${n} bytes`, `Given: ${t} bytes`],
|
|
@@ -1666,12 +1666,12 @@ class mi extends y {
|
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
class
|
|
1669
|
+
class Dt extends y {
|
|
1670
1670
|
constructor() {
|
|
1671
1671
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
class
|
|
1674
|
+
class bi extends y {
|
|
1675
1675
|
constructor({ hash: n, size: t }) {
|
|
1676
1676
|
super(`Versioned hash "${n}" size is invalid.`, {
|
|
1677
1677
|
metaMessages: ["Expected: 32", `Received: ${t}`],
|
|
@@ -1679,33 +1679,33 @@ class xi extends y {
|
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
-
class
|
|
1682
|
+
class zi extends y {
|
|
1683
1683
|
constructor({ hash: n, version: t }) {
|
|
1684
1684
|
super(`Versioned hash "${n}" version is invalid.`, {
|
|
1685
1685
|
metaMessages: [
|
|
1686
|
-
`Expected: ${
|
|
1686
|
+
`Expected: ${Ft}`,
|
|
1687
1687
|
`Received: ${t}`
|
|
1688
1688
|
],
|
|
1689
1689
|
name: "InvalidVersionedHashVersionError"
|
|
1690
1690
|
});
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function wi(e) {
|
|
1694
1694
|
const n = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), t = typeof e.data == "string" ? _(e.data) : e.data, r = ae(t);
|
|
1695
1695
|
if (!r)
|
|
1696
|
-
throw new
|
|
1697
|
-
if (r >
|
|
1698
|
-
throw new
|
|
1699
|
-
maxSize:
|
|
1696
|
+
throw new Dt();
|
|
1697
|
+
if (r > Un)
|
|
1698
|
+
throw new pi({
|
|
1699
|
+
maxSize: Un,
|
|
1700
1700
|
size: r
|
|
1701
1701
|
});
|
|
1702
1702
|
const s = [];
|
|
1703
1703
|
let o = !0, c = 0;
|
|
1704
1704
|
for (; o; ) {
|
|
1705
|
-
const a =
|
|
1705
|
+
const a = Xt(new Uint8Array(Jt));
|
|
1706
1706
|
let l = 0;
|
|
1707
|
-
for (; l <
|
|
1708
|
-
const A = t.slice(c, c + (
|
|
1707
|
+
for (; l < Wn; ) {
|
|
1708
|
+
const A = t.slice(c, c + (kt - 1));
|
|
1709
1709
|
if (a.pushByte(0), a.pushBytes(A), A.length < 31) {
|
|
1710
1710
|
a.pushByte(128), o = !1;
|
|
1711
1711
|
break;
|
|
@@ -1716,8 +1716,8 @@ function bi(e) {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
return n === "bytes" ? s.map((a) => a.bytes) : s.map((a) => q(a.bytes));
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1720
|
-
const { data: n, kzg: t, to: r } = e, s = e.blobs ??
|
|
1719
|
+
function Ii(e) {
|
|
1720
|
+
const { data: n, kzg: t, to: r } = e, s = e.blobs ?? wi({ data: n, to: r }), o = e.commitments ?? Lt({ blobs: s, kzg: t, to: r }), c = e.proofs ?? St({ blobs: s, commitments: o, kzg: t, to: r }), a = [];
|
|
1721
1721
|
for (let l = 0; l < s.length; l++)
|
|
1722
1722
|
a.push({
|
|
1723
1723
|
blob: s[l],
|
|
@@ -1737,7 +1737,7 @@ class H extends y {
|
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
|
-
class
|
|
1740
|
+
class He extends y {
|
|
1741
1741
|
constructor({ chainId: n }) {
|
|
1742
1742
|
super(typeof n == "number" ? `Chain ID "${n}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1743
1743
|
}
|
|
@@ -1777,7 +1777,7 @@ Object.defineProperty(ee, "nodeMessage", {
|
|
|
1777
1777
|
writable: !0,
|
|
1778
1778
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
1779
1779
|
});
|
|
1780
|
-
class
|
|
1780
|
+
class An extends y {
|
|
1781
1781
|
constructor({ cause: n, maxFeePerGas: t } = {}) {
|
|
1782
1782
|
super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${R(t)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
1783
1783
|
cause: n,
|
|
@@ -1785,24 +1785,24 @@ class ln extends y {
|
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
|
-
Object.defineProperty(
|
|
1788
|
+
Object.defineProperty(An, "nodeMessage", {
|
|
1789
1789
|
enumerable: !0,
|
|
1790
1790
|
configurable: !0,
|
|
1791
1791
|
writable: !0,
|
|
1792
1792
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
1793
1793
|
});
|
|
1794
|
-
class
|
|
1794
|
+
class dn extends y {
|
|
1795
1795
|
constructor({ cause: n, nonce: t } = {}) {
|
|
1796
1796
|
super(`Nonce provided for the transaction ${t ? `(${t}) ` : ""}is higher than the next one expected.`, { cause: n, name: "NonceTooHighError" });
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
Object.defineProperty(
|
|
1799
|
+
Object.defineProperty(dn, "nodeMessage", {
|
|
1800
1800
|
enumerable: !0,
|
|
1801
1801
|
configurable: !0,
|
|
1802
1802
|
writable: !0,
|
|
1803
1803
|
value: /nonce too high/
|
|
1804
1804
|
});
|
|
1805
|
-
class
|
|
1805
|
+
class fn extends y {
|
|
1806
1806
|
constructor({ cause: n, nonce: t } = {}) {
|
|
1807
1807
|
super([
|
|
1808
1808
|
`Nonce provided for the transaction ${t ? `(${t}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -1811,24 +1811,24 @@ class dn extends y {
|
|
|
1811
1811
|
`), { cause: n, name: "NonceTooLowError" });
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
|
-
Object.defineProperty(
|
|
1814
|
+
Object.defineProperty(fn, "nodeMessage", {
|
|
1815
1815
|
enumerable: !0,
|
|
1816
1816
|
configurable: !0,
|
|
1817
1817
|
writable: !0,
|
|
1818
1818
|
value: /nonce too low|transaction already imported|already known/
|
|
1819
1819
|
});
|
|
1820
|
-
class
|
|
1820
|
+
class un extends y {
|
|
1821
1821
|
constructor({ cause: n, nonce: t } = {}) {
|
|
1822
1822
|
super(`Nonce provided for the transaction ${t ? `(${t}) ` : ""}exceeds the maximum allowed nonce.`, { cause: n, name: "NonceMaxValueError" });
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
|
-
Object.defineProperty(
|
|
1825
|
+
Object.defineProperty(un, "nodeMessage", {
|
|
1826
1826
|
enumerable: !0,
|
|
1827
1827
|
configurable: !0,
|
|
1828
1828
|
writable: !0,
|
|
1829
1829
|
value: /nonce has max value/
|
|
1830
1830
|
});
|
|
1831
|
-
class
|
|
1831
|
+
class gn extends y {
|
|
1832
1832
|
constructor({ cause: n } = {}) {
|
|
1833
1833
|
super([
|
|
1834
1834
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -1849,13 +1849,13 @@ class un extends y {
|
|
|
1849
1849
|
});
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
|
-
Object.defineProperty(
|
|
1852
|
+
Object.defineProperty(gn, "nodeMessage", {
|
|
1853
1853
|
enumerable: !0,
|
|
1854
1854
|
configurable: !0,
|
|
1855
1855
|
writable: !0,
|
|
1856
1856
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
1857
1857
|
});
|
|
1858
|
-
class
|
|
1858
|
+
class vn extends y {
|
|
1859
1859
|
constructor({ cause: n, gas: t } = {}) {
|
|
1860
1860
|
super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
1861
1861
|
cause: n,
|
|
@@ -1863,13 +1863,13 @@ class gn extends y {
|
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
|
-
Object.defineProperty(
|
|
1866
|
+
Object.defineProperty(vn, "nodeMessage", {
|
|
1867
1867
|
enumerable: !0,
|
|
1868
1868
|
configurable: !0,
|
|
1869
1869
|
writable: !0,
|
|
1870
1870
|
value: /intrinsic gas too high|gas limit reached/
|
|
1871
1871
|
});
|
|
1872
|
-
class
|
|
1872
|
+
class Cn extends y {
|
|
1873
1873
|
constructor({ cause: n, gas: t } = {}) {
|
|
1874
1874
|
super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction is too low.`, {
|
|
1875
1875
|
cause: n,
|
|
@@ -1877,13 +1877,13 @@ class vn extends y {
|
|
|
1877
1877
|
});
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
|
-
Object.defineProperty(
|
|
1880
|
+
Object.defineProperty(Cn, "nodeMessage", {
|
|
1881
1881
|
enumerable: !0,
|
|
1882
1882
|
configurable: !0,
|
|
1883
1883
|
writable: !0,
|
|
1884
1884
|
value: /intrinsic gas too low/
|
|
1885
1885
|
});
|
|
1886
|
-
class
|
|
1886
|
+
class mn extends y {
|
|
1887
1887
|
constructor({ cause: n }) {
|
|
1888
1888
|
super("The transaction type is not supported for this chain.", {
|
|
1889
1889
|
cause: n,
|
|
@@ -1891,13 +1891,13 @@ class Cn extends y {
|
|
|
1891
1891
|
});
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
|
-
Object.defineProperty(
|
|
1894
|
+
Object.defineProperty(mn, "nodeMessage", {
|
|
1895
1895
|
enumerable: !0,
|
|
1896
1896
|
configurable: !0,
|
|
1897
1897
|
writable: !0,
|
|
1898
1898
|
value: /transaction type not valid/
|
|
1899
1899
|
});
|
|
1900
|
-
class
|
|
1900
|
+
class be extends y {
|
|
1901
1901
|
constructor({ cause: n, maxPriorityFeePerGas: t, maxFeePerGas: r } = {}) {
|
|
1902
1902
|
super([
|
|
1903
1903
|
`The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${R(t)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r ? ` = ${R(r)} gwei` : ""}).`
|
|
@@ -1908,13 +1908,13 @@ class pe extends y {
|
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
Object.defineProperty(
|
|
1911
|
+
Object.defineProperty(be, "nodeMessage", {
|
|
1912
1912
|
enumerable: !0,
|
|
1913
1913
|
configurable: !0,
|
|
1914
1914
|
writable: !0,
|
|
1915
1915
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
1916
1916
|
});
|
|
1917
|
-
class
|
|
1917
|
+
class Ht extends y {
|
|
1918
1918
|
constructor({ cause: n }) {
|
|
1919
1919
|
super(`An error occurred while executing: ${n?.shortMessage}`, {
|
|
1920
1920
|
cause: n,
|
|
@@ -1922,7 +1922,7 @@ class Dt extends y {
|
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
|
-
class
|
|
1925
|
+
class Qt extends Map {
|
|
1926
1926
|
constructor(n) {
|
|
1927
1927
|
super(), Object.defineProperty(this, "maxSize", {
|
|
1928
1928
|
enumerable: !0,
|
|
@@ -1943,28 +1943,28 @@ class Ht extends Map {
|
|
|
1943
1943
|
return this;
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
|
-
const
|
|
1946
|
+
const Pi = BigInt(0), ue = BigInt(1), Bi = BigInt(2), yi = BigInt(7), hi = BigInt(256), Mi = BigInt(113), qt = [], Kt = [], Gt = [];
|
|
1947
1947
|
for (let e = 0, n = ue, t = 1, r = 0; e < 24; e++) {
|
|
1948
|
-
[t, r] = [r, (2 * t + 3 * r) % 5],
|
|
1949
|
-
let s =
|
|
1948
|
+
[t, r] = [r, (2 * t + 3 * r) % 5], qt.push(2 * (5 * r + t)), Kt.push((e + 1) * (e + 2) / 2 % 64);
|
|
1949
|
+
let s = Pi;
|
|
1950
1950
|
for (let o = 0; o < 7; o++)
|
|
1951
|
-
n = (n << ue ^ (n >>
|
|
1952
|
-
|
|
1951
|
+
n = (n << ue ^ (n >> yi) * Mi) % hi, n & Bi && (s ^= ue << (ue << /* @__PURE__ */ BigInt(o)) - ue);
|
|
1952
|
+
Gt.push(s);
|
|
1953
1953
|
}
|
|
1954
|
-
const
|
|
1955
|
-
function
|
|
1954
|
+
const Ut = ci(Gt, !0), Wi = Ut[0], Vi = Ut[1], Rn = (e, n, t) => t > 32 ? Ai(e, n, t) : ai(e, n, t), _n = (e, n, t) => t > 32 ? di(e, n, t) : li(e, n, t);
|
|
1955
|
+
function Xi(e, n = 24) {
|
|
1956
1956
|
const t = new Uint32Array(10);
|
|
1957
1957
|
for (let r = 24 - n; r < 24; r++) {
|
|
1958
1958
|
for (let c = 0; c < 10; c++)
|
|
1959
1959
|
t[c] = e[c] ^ e[c + 10] ^ e[c + 20] ^ e[c + 30] ^ e[c + 40];
|
|
1960
1960
|
for (let c = 0; c < 10; c += 2) {
|
|
1961
|
-
const a = (c + 8) % 10, l = (c + 2) % 10, A = t[l], d = t[l + 1], f =
|
|
1961
|
+
const a = (c + 8) % 10, l = (c + 2) % 10, A = t[l], d = t[l + 1], f = Rn(A, d, 1) ^ t[a], g = _n(A, d, 1) ^ t[a + 1];
|
|
1962
1962
|
for (let u = 0; u < 50; u += 10)
|
|
1963
1963
|
e[c + u] ^= f, e[c + u + 1] ^= g;
|
|
1964
1964
|
}
|
|
1965
1965
|
let s = e[2], o = e[3];
|
|
1966
1966
|
for (let c = 0; c < 24; c++) {
|
|
1967
|
-
const a =
|
|
1967
|
+
const a = Kt[c], l = Rn(s, o, a), A = _n(s, o, a), d = qt[c];
|
|
1968
1968
|
s = e[d], o = e[d + 1], e[d] = l, e[d + 1] = A;
|
|
1969
1969
|
}
|
|
1970
1970
|
for (let c = 0; c < 50; c += 10) {
|
|
@@ -1973,25 +1973,25 @@ function Wi(e, n = 24) {
|
|
|
1973
1973
|
for (let a = 0; a < 10; a++)
|
|
1974
1974
|
e[c + a] ^= ~t[(a + 2) % 10] & t[(a + 4) % 10];
|
|
1975
1975
|
}
|
|
1976
|
-
e[0] ^=
|
|
1976
|
+
e[0] ^= Wi[r], e[1] ^= Vi[r];
|
|
1977
1977
|
}
|
|
1978
|
-
|
|
1978
|
+
pe(t);
|
|
1979
1979
|
}
|
|
1980
|
-
class
|
|
1980
|
+
class Vn extends Yt {
|
|
1981
1981
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
1982
1982
|
constructor(n, t, r, s = !1, o = 24) {
|
|
1983
|
-
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = n, this.suffix = t, this.outputLen = r, this.enableXOF = s, this.rounds = o,
|
|
1983
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = n, this.suffix = t, this.outputLen = r, this.enableXOF = s, this.rounds = o, Qn(r), !(0 < n && n < 200))
|
|
1984
1984
|
throw new Error("only keccak-f1600 function is supported");
|
|
1985
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
1985
|
+
this.state = new Uint8Array(200), this.state32 = Rs(this.state);
|
|
1986
1986
|
}
|
|
1987
1987
|
clone() {
|
|
1988
1988
|
return this._cloneInto();
|
|
1989
1989
|
}
|
|
1990
1990
|
keccak() {
|
|
1991
|
-
|
|
1991
|
+
qn(this.state32), Xi(this.state32, this.rounds), qn(this.state32), this.posOut = 0, this.pos = 0;
|
|
1992
1992
|
}
|
|
1993
1993
|
update(n) {
|
|
1994
|
-
|
|
1994
|
+
Ye(this), n = Mn(n), xe(n);
|
|
1995
1995
|
const { blockLen: t, state: r } = this, s = n.length;
|
|
1996
1996
|
for (let o = 0; o < s; ) {
|
|
1997
1997
|
const c = Math.min(t - this.pos, s - o);
|
|
@@ -2009,7 +2009,7 @@ class Wn extends Ot {
|
|
|
2009
2009
|
n[r] ^= t, (t & 128) !== 0 && r === s - 1 && this.keccak(), n[s - 1] ^= 128, this.keccak();
|
|
2010
2010
|
}
|
|
2011
2011
|
writeInto(n) {
|
|
2012
|
-
|
|
2012
|
+
Ye(this, !1), xe(n), this.finish();
|
|
2013
2013
|
const t = this.state, { blockLen: r } = this;
|
|
2014
2014
|
for (let s = 0, o = n.length; s < o; ) {
|
|
2015
2015
|
this.posOut >= r && this.keccak();
|
|
@@ -2024,10 +2024,10 @@ class Wn extends Ot {
|
|
|
2024
2024
|
return this.writeInto(n);
|
|
2025
2025
|
}
|
|
2026
2026
|
xof(n) {
|
|
2027
|
-
return
|
|
2027
|
+
return Qn(n), this.xofInto(new Uint8Array(n));
|
|
2028
2028
|
}
|
|
2029
2029
|
digestInto(n) {
|
|
2030
|
-
if (
|
|
2030
|
+
if (Ot(n, this), this.finished)
|
|
2031
2031
|
throw new Error("digest() was already called");
|
|
2032
2032
|
return this.writeInto(n), this.destroy(), n;
|
|
2033
2033
|
}
|
|
@@ -2035,59 +2035,59 @@ class Wn extends Ot {
|
|
|
2035
2035
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
2036
2036
|
}
|
|
2037
2037
|
destroy() {
|
|
2038
|
-
this.destroyed = !0,
|
|
2038
|
+
this.destroyed = !0, pe(this.state);
|
|
2039
2039
|
}
|
|
2040
2040
|
_cloneInto(n) {
|
|
2041
2041
|
const { blockLen: t, suffix: r, outputLen: s, rounds: o, enableXOF: c } = this;
|
|
2042
|
-
return n || (n = new
|
|
2042
|
+
return n || (n = new Vn(t, r, s, c, o)), n.state32.set(this.state32), n.pos = this.pos, n.posOut = this.posOut, n.finished = this.finished, n.rounds = o, n.suffix = r, n.outputLen = s, n.enableXOF = c, n.destroyed = this.destroyed, n;
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
|
-
const
|
|
2046
|
-
function
|
|
2047
|
-
return
|
|
2045
|
+
const Ni = (e, n, t) => Zt(() => new Vn(n, e, t)), ji = Ni(1, 136, 256 / 8);
|
|
2046
|
+
function Ti(e, n) {
|
|
2047
|
+
return ji(Ie(e, { strict: !1 }) ? Mt(e) : e);
|
|
2048
2048
|
}
|
|
2049
|
-
const
|
|
2050
|
-
function
|
|
2051
|
-
if (
|
|
2052
|
-
return
|
|
2053
|
-
const t = e.substring(2).toLowerCase(), r =
|
|
2049
|
+
const nn = /* @__PURE__ */ new Qt(8192);
|
|
2050
|
+
function Ei(e, n) {
|
|
2051
|
+
if (nn.has(`${e}.${n}`))
|
|
2052
|
+
return nn.get(`${e}.${n}`);
|
|
2053
|
+
const t = e.substring(2).toLowerCase(), r = Ti(Wt(t)), s = t.split("");
|
|
2054
2054
|
for (let c = 0; c < 40; c += 2)
|
|
2055
2055
|
r[c >> 1] >> 4 >= 8 && s[c] && (s[c] = s[c].toUpperCase()), (r[c >> 1] & 15) >= 8 && s[c + 1] && (s[c + 1] = s[c + 1].toUpperCase());
|
|
2056
2056
|
const o = `0x${s.join("")}`;
|
|
2057
|
-
return
|
|
2057
|
+
return nn.set(`${e}.${n}`, o), o;
|
|
2058
2058
|
}
|
|
2059
|
-
const
|
|
2059
|
+
const Li = /^0x[a-fA-F0-9]{40}$/, tn = /* @__PURE__ */ new Qt(8192);
|
|
2060
2060
|
function Q(e, n) {
|
|
2061
2061
|
const { strict: t = !0 } = n ?? {}, r = `${e}.${t}`;
|
|
2062
|
-
if (
|
|
2063
|
-
return
|
|
2064
|
-
const s =
|
|
2065
|
-
return
|
|
2062
|
+
if (tn.has(r))
|
|
2063
|
+
return tn.get(r);
|
|
2064
|
+
const s = Li.test(e) ? e.toLowerCase() === e ? !0 : t ? Ei(e) === e : !0 : !1;
|
|
2065
|
+
return tn.set(r, s), s;
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2067
|
+
function Si(e, n, t, { strict: r } = {}) {
|
|
2068
|
+
return Ie(e, { strict: !1 }) ? Yi(e, n, t, {
|
|
2069
2069
|
strict: r
|
|
2070
|
-
}) :
|
|
2070
|
+
}) : Oi(e, n, t, {
|
|
2071
2071
|
strict: r
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Rt(e, n, t) {
|
|
2075
2075
|
if (ae(e) !== t - n)
|
|
2076
|
-
throw new
|
|
2076
|
+
throw new Cs({
|
|
2077
2077
|
offset: t,
|
|
2078
2078
|
position: "end",
|
|
2079
2079
|
size: ae(e)
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Oi(e, n, t, { strict: r } = {}) {
|
|
2083
2083
|
const s = e.slice(n, t);
|
|
2084
|
-
return r &&
|
|
2084
|
+
return r && Rt(s, n, t), s;
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function Yi(e, n, t, { strict: r } = {}) {
|
|
2087
2087
|
const s = `0x${e.replace("0x", "").slice(n * 2, t * 2)}`;
|
|
2088
|
-
return r &&
|
|
2088
|
+
return r && Rt(s, n, t), s;
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function Zi(e) {
|
|
2091
2091
|
const { authorizationList: n } = e;
|
|
2092
2092
|
if (n)
|
|
2093
2093
|
for (const t of n) {
|
|
@@ -2095,62 +2095,62 @@ function Oi(e) {
|
|
|
2095
2095
|
if (!Q(s))
|
|
2096
2096
|
throw new H({ address: s });
|
|
2097
2097
|
if (r < 0)
|
|
2098
|
-
throw new
|
|
2098
|
+
throw new He({ chainId: r });
|
|
2099
2099
|
}
|
|
2100
|
-
|
|
2100
|
+
Xn(e);
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function ki(e) {
|
|
2103
2103
|
const { blobVersionedHashes: n } = e;
|
|
2104
2104
|
if (n) {
|
|
2105
2105
|
if (n.length === 0)
|
|
2106
|
-
throw new
|
|
2106
|
+
throw new Dt();
|
|
2107
2107
|
for (const t of n) {
|
|
2108
|
-
const r = ae(t), s =
|
|
2108
|
+
const r = ae(t), s = Oe(Si(t, 0, 1));
|
|
2109
2109
|
if (r !== 32)
|
|
2110
|
-
throw new
|
|
2111
|
-
if (s !==
|
|
2112
|
-
throw new
|
|
2110
|
+
throw new bi({ hash: t, size: r });
|
|
2111
|
+
if (s !== Ft)
|
|
2112
|
+
throw new zi({
|
|
2113
2113
|
hash: t,
|
|
2114
2114
|
version: s
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
|
-
|
|
2118
|
+
Xn(e);
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function Xn(e) {
|
|
2121
2121
|
const { chainId: n, maxPriorityFeePerGas: t, maxFeePerGas: r, to: s } = e;
|
|
2122
2122
|
if (n <= 0)
|
|
2123
|
-
throw new
|
|
2123
|
+
throw new He({ chainId: n });
|
|
2124
2124
|
if (s && !Q(s))
|
|
2125
2125
|
throw new H({ address: s });
|
|
2126
|
-
if (r && r >
|
|
2126
|
+
if (r && r > De)
|
|
2127
2127
|
throw new ee({ maxFeePerGas: r });
|
|
2128
2128
|
if (t && r && t > r)
|
|
2129
|
-
throw new
|
|
2129
|
+
throw new be({ maxFeePerGas: r, maxPriorityFeePerGas: t });
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function Ji(e) {
|
|
2132
2132
|
const { chainId: n, maxPriorityFeePerGas: t, gasPrice: r, maxFeePerGas: s, to: o } = e;
|
|
2133
2133
|
if (n <= 0)
|
|
2134
|
-
throw new
|
|
2134
|
+
throw new He({ chainId: n });
|
|
2135
2135
|
if (o && !Q(o))
|
|
2136
2136
|
throw new H({ address: o });
|
|
2137
2137
|
if (t || s)
|
|
2138
2138
|
throw new y("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
2139
|
-
if (r && r >
|
|
2139
|
+
if (r && r > De)
|
|
2140
2140
|
throw new ee({ maxFeePerGas: r });
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2142
|
+
function Fi(e) {
|
|
2143
2143
|
const { chainId: n, maxPriorityFeePerGas: t, gasPrice: r, maxFeePerGas: s, to: o } = e;
|
|
2144
2144
|
if (o && !Q(o))
|
|
2145
2145
|
throw new H({ address: o });
|
|
2146
2146
|
if (typeof n < "u" && n <= 0)
|
|
2147
|
-
throw new
|
|
2147
|
+
throw new He({ chainId: n });
|
|
2148
2148
|
if (t || s)
|
|
2149
2149
|
throw new y("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
2150
|
-
if (r && r >
|
|
2150
|
+
if (r && r > De)
|
|
2151
2151
|
throw new ee({ maxFeePerGas: r });
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Di(e) {
|
|
2154
2154
|
if (e.type)
|
|
2155
2155
|
return e.type;
|
|
2156
2156
|
if (typeof e.authorizationList < "u")
|
|
@@ -2161,9 +2161,9 @@ function Ji(e) {
|
|
|
2161
2161
|
return "eip1559";
|
|
2162
2162
|
if (typeof e.gasPrice < "u")
|
|
2163
2163
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
2164
|
-
throw new
|
|
2164
|
+
throw new qs({ transaction: e });
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function Qe(e) {
|
|
2167
2167
|
if (!e || e.length === 0)
|
|
2168
2168
|
return [];
|
|
2169
2169
|
const n = [];
|
|
@@ -2171,22 +2171,22 @@ function He(e) {
|
|
|
2171
2171
|
const { address: r, storageKeys: s } = e[t];
|
|
2172
2172
|
for (let o = 0; o < s.length; o++)
|
|
2173
2173
|
if (s[o].length - 2 !== 64)
|
|
2174
|
-
throw new
|
|
2174
|
+
throw new Ks({ storageKey: s[o] });
|
|
2175
2175
|
if (!Q(r, { strict: !1 }))
|
|
2176
2176
|
throw new H({ address: r });
|
|
2177
2177
|
n.push([r, s]);
|
|
2178
2178
|
}
|
|
2179
2179
|
return n;
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2182
|
-
const t =
|
|
2183
|
-
return t === "eip1559" ?
|
|
2181
|
+
function Hi(e, n) {
|
|
2182
|
+
const t = Di(e);
|
|
2183
|
+
return t === "eip1559" ? Ki(e, n) : t === "eip2930" ? Gi(e, n) : t === "eip4844" ? qi(e, n) : t === "eip7702" ? Qi(e, n) : Ui(e, n);
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function Qi(e, n) {
|
|
2186
2186
|
const { authorizationList: t, chainId: r, gas: s, nonce: o, to: c, value: a, maxFeePerGas: l, maxPriorityFeePerGas: A, accessList: d, data: f } = e;
|
|
2187
|
-
|
|
2188
|
-
const g =
|
|
2189
|
-
return
|
|
2187
|
+
Zi(e);
|
|
2188
|
+
const g = Qe(d), u = Gs(t);
|
|
2189
|
+
return Pe([
|
|
2190
2190
|
"0x04",
|
|
2191
2191
|
$([
|
|
2192
2192
|
z(r),
|
|
@@ -2199,27 +2199,27 @@ function Di(e, n) {
|
|
|
2199
2199
|
f ?? "0x",
|
|
2200
2200
|
g,
|
|
2201
2201
|
u,
|
|
2202
|
-
...
|
|
2202
|
+
...Be(e, n)
|
|
2203
2203
|
])
|
|
2204
2204
|
]);
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function qi(e, n) {
|
|
2207
2207
|
const { chainId: t, gas: r, nonce: s, to: o, value: c, maxFeePerBlobGas: a, maxFeePerGas: l, maxPriorityFeePerGas: A, accessList: d, data: f } = e;
|
|
2208
|
-
|
|
2208
|
+
ki(e);
|
|
2209
2209
|
let g = e.blobVersionedHashes, u = e.sidecars;
|
|
2210
2210
|
if (e.blobs && (typeof g > "u" || typeof u > "u")) {
|
|
2211
|
-
const
|
|
2212
|
-
blobs:
|
|
2211
|
+
const b = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((j) => q(j)), w = e.kzg, I = Lt({
|
|
2212
|
+
blobs: b,
|
|
2213
2213
|
kzg: w
|
|
2214
2214
|
});
|
|
2215
|
-
if (typeof g > "u" && (g =
|
|
2215
|
+
if (typeof g > "u" && (g = xi({
|
|
2216
2216
|
commitments: I
|
|
2217
2217
|
})), typeof u > "u") {
|
|
2218
|
-
const j =
|
|
2219
|
-
u =
|
|
2218
|
+
const j = St({ blobs: b, commitments: I, kzg: w });
|
|
2219
|
+
u = Ii({ blobs: b, commitments: I, proofs: j });
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
|
-
const x =
|
|
2222
|
+
const x = Qe(d), C = [
|
|
2223
2223
|
z(t),
|
|
2224
2224
|
s ? z(s) : "0x",
|
|
2225
2225
|
A ? z(A) : "0x",
|
|
@@ -2231,23 +2231,23 @@ function Hi(e, n) {
|
|
|
2231
2231
|
x,
|
|
2232
2232
|
a ? z(a) : "0x",
|
|
2233
2233
|
g ?? [],
|
|
2234
|
-
...
|
|
2235
|
-
], m = [],
|
|
2234
|
+
...Be(e, n)
|
|
2235
|
+
], m = [], p = [], h = [];
|
|
2236
2236
|
if (u)
|
|
2237
|
-
for (let
|
|
2238
|
-
const { blob: w, commitment: I, proof: j } = u[
|
|
2239
|
-
m.push(w),
|
|
2237
|
+
for (let b = 0; b < u.length; b++) {
|
|
2238
|
+
const { blob: w, commitment: I, proof: j } = u[b];
|
|
2239
|
+
m.push(w), p.push(I), h.push(j);
|
|
2240
2240
|
}
|
|
2241
|
-
return
|
|
2241
|
+
return Pe([
|
|
2242
2242
|
"0x03",
|
|
2243
2243
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
2244
|
-
$(u ? [C, m,
|
|
2244
|
+
$(u ? [C, m, p, h] : C)
|
|
2245
2245
|
]);
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2247
|
+
function Ki(e, n) {
|
|
2248
2248
|
const { chainId: t, gas: r, nonce: s, to: o, value: c, maxFeePerGas: a, maxPriorityFeePerGas: l, accessList: A, data: d } = e;
|
|
2249
|
-
|
|
2250
|
-
const f =
|
|
2249
|
+
Xn(e);
|
|
2250
|
+
const f = Qe(A), g = [
|
|
2251
2251
|
z(t),
|
|
2252
2252
|
s ? z(s) : "0x",
|
|
2253
2253
|
l ? z(l) : "0x",
|
|
@@ -2257,17 +2257,17 @@ function Qi(e, n) {
|
|
|
2257
2257
|
c ? z(c) : "0x",
|
|
2258
2258
|
d ?? "0x",
|
|
2259
2259
|
f,
|
|
2260
|
-
...
|
|
2260
|
+
...Be(e, n)
|
|
2261
2261
|
];
|
|
2262
|
-
return
|
|
2262
|
+
return Pe([
|
|
2263
2263
|
"0x02",
|
|
2264
2264
|
$(g)
|
|
2265
2265
|
]);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Gi(e, n) {
|
|
2268
2268
|
const { chainId: t, gas: r, data: s, nonce: o, to: c, value: a, accessList: l, gasPrice: A } = e;
|
|
2269
|
-
|
|
2270
|
-
const d =
|
|
2269
|
+
Ji(e);
|
|
2270
|
+
const d = Qe(l), f = [
|
|
2271
2271
|
z(t),
|
|
2272
2272
|
o ? z(o) : "0x",
|
|
2273
2273
|
A ? z(A) : "0x",
|
|
@@ -2276,16 +2276,16 @@ function qi(e, n) {
|
|
|
2276
2276
|
a ? z(a) : "0x",
|
|
2277
2277
|
s ?? "0x",
|
|
2278
2278
|
d,
|
|
2279
|
-
...
|
|
2279
|
+
...Be(e, n)
|
|
2280
2280
|
];
|
|
2281
|
-
return
|
|
2281
|
+
return Pe([
|
|
2282
2282
|
"0x01",
|
|
2283
2283
|
$(f)
|
|
2284
2284
|
]);
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function Ui(e, n) {
|
|
2287
2287
|
const { chainId: t = 0, gas: r, data: s, nonce: o, to: c, value: a, gasPrice: l } = e;
|
|
2288
|
-
|
|
2288
|
+
Fi(e);
|
|
2289
2289
|
let A = [
|
|
2290
2290
|
o ? z(o) : "0x",
|
|
2291
2291
|
l ? z(l) : "0x",
|
|
@@ -2302,9 +2302,9 @@ function Ki(e, n) {
|
|
|
2302
2302
|
return BigInt(t * 2) + BigInt(35n + n.v - 27n);
|
|
2303
2303
|
const u = 27n + (n.v === 27n ? 0n : 1n);
|
|
2304
2304
|
if (n.v !== u)
|
|
2305
|
-
throw new
|
|
2305
|
+
throw new Qs({ v: n.v });
|
|
2306
2306
|
return u;
|
|
2307
|
-
})(), f =
|
|
2307
|
+
})(), f = Se(n.r), g = Se(n.s);
|
|
2308
2308
|
A = [
|
|
2309
2309
|
...A,
|
|
2310
2310
|
z(d),
|
|
@@ -2319,7 +2319,7 @@ function Ki(e, n) {
|
|
|
2319
2319
|
]);
|
|
2320
2320
|
return $(A);
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function Be(e, n) {
|
|
2323
2323
|
const t = n ?? e, { v: r, yParity: s } = t;
|
|
2324
2324
|
if (typeof t.r > "u")
|
|
2325
2325
|
return [];
|
|
@@ -2327,10 +2327,10 @@ function Pe(e, n) {
|
|
|
2327
2327
|
return [];
|
|
2328
2328
|
if (typeof r > "u" && typeof s > "u")
|
|
2329
2329
|
return [];
|
|
2330
|
-
const o =
|
|
2330
|
+
const o = Se(t.r), c = Se(t.s);
|
|
2331
2331
|
return [typeof s == "number" ? s ? z(1) : "0x" : r === 0n ? "0x" : r === 1n ? z(1) : r === 27n ? "0x" : z(1), o === "0x00" ? "0x" : o, c === "0x00" ? "0x" : c];
|
|
2332
2332
|
}
|
|
2333
|
-
const
|
|
2333
|
+
const Ri = {
|
|
2334
2334
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
2335
2335
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
2336
2336
|
l2CrossDomainMessenger: {
|
|
@@ -2341,27 +2341,27 @@ const Gi = {
|
|
|
2341
2341
|
l2ToL1MessagePasser: {
|
|
2342
2342
|
address: "0x4200000000000000000000000000000000000016"
|
|
2343
2343
|
}
|
|
2344
|
-
},
|
|
2345
|
-
block: /* @__PURE__ */
|
|
2344
|
+
}, _i = {
|
|
2345
|
+
block: /* @__PURE__ */ Ws({
|
|
2346
2346
|
format(e) {
|
|
2347
2347
|
return {
|
|
2348
2348
|
transactions: e.transactions?.map((t) => {
|
|
2349
2349
|
if (typeof t == "string")
|
|
2350
2350
|
return t;
|
|
2351
|
-
const r =
|
|
2351
|
+
const r = hn(t);
|
|
2352
2352
|
return r.typeHex === "0x7e" && (r.isSystemTx = t.isSystemTx, r.mint = t.mint ? se(t.mint) : void 0, r.sourceHash = t.sourceHash, r.type = "deposit"), r;
|
|
2353
2353
|
}),
|
|
2354
2354
|
stateRoot: e.stateRoot
|
|
2355
2355
|
};
|
|
2356
2356
|
}
|
|
2357
2357
|
}),
|
|
2358
|
-
transaction: /* @__PURE__ */
|
|
2358
|
+
transaction: /* @__PURE__ */ ys({
|
|
2359
2359
|
format(e) {
|
|
2360
2360
|
const n = {};
|
|
2361
2361
|
return e.type === "0x7e" && (n.isSystemTx = e.isSystemTx, n.mint = e.mint ? se(e.mint) : void 0, n.sourceHash = e.sourceHash, n.type = "deposit"), n;
|
|
2362
2362
|
}
|
|
2363
2363
|
}),
|
|
2364
|
-
transactionReceipt: /* @__PURE__ */
|
|
2364
|
+
transactionReceipt: /* @__PURE__ */ js({
|
|
2365
2365
|
format(e) {
|
|
2366
2366
|
return {
|
|
2367
2367
|
l1GasPrice: e.l1GasPrice ? se(e.l1GasPrice) : null,
|
|
@@ -2372,45 +2372,45 @@ const Gi = {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
})
|
|
2374
2374
|
};
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2375
|
+
function $i(e, n) {
|
|
2376
|
+
return to(e) ? no(e) : Hi(e, n);
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2379
|
-
transaction:
|
|
2378
|
+
const eo = {
|
|
2379
|
+
transaction: $i
|
|
2380
2380
|
};
|
|
2381
|
-
function
|
|
2382
|
-
|
|
2381
|
+
function no(e) {
|
|
2382
|
+
ro(e);
|
|
2383
2383
|
const { sourceHash: n, data: t, from: r, gas: s, isSystemTx: o, mint: c, to: a, value: l } = e, A = [
|
|
2384
2384
|
n,
|
|
2385
2385
|
r,
|
|
2386
2386
|
a ?? "0x",
|
|
2387
|
-
c ?
|
|
2388
|
-
l ?
|
|
2389
|
-
s ?
|
|
2387
|
+
c ? me(c) : "0x",
|
|
2388
|
+
l ? me(l) : "0x",
|
|
2389
|
+
s ? me(s) : "0x",
|
|
2390
2390
|
o ? "0x1" : "0x",
|
|
2391
2391
|
t ?? "0x"
|
|
2392
2392
|
];
|
|
2393
|
-
return
|
|
2393
|
+
return Pe([
|
|
2394
2394
|
"0x7e",
|
|
2395
2395
|
$(A)
|
|
2396
2396
|
]);
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function to(e) {
|
|
2399
2399
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function ro(e) {
|
|
2402
2402
|
const { from: n, to: t } = e;
|
|
2403
2403
|
if (n && !Q(n))
|
|
2404
2404
|
throw new H({ address: n });
|
|
2405
2405
|
if (t && !Q(t))
|
|
2406
2406
|
throw new H({ address: t });
|
|
2407
2407
|
}
|
|
2408
|
-
const
|
|
2408
|
+
const Ze = {
|
|
2409
2409
|
blockTime: 2e3,
|
|
2410
|
-
contracts:
|
|
2411
|
-
formatters:
|
|
2412
|
-
serializers:
|
|
2413
|
-
},
|
|
2410
|
+
contracts: Ri,
|
|
2411
|
+
formatters: _i,
|
|
2412
|
+
serializers: eo
|
|
2413
|
+
}, so = /* @__PURE__ */ U({
|
|
2414
2414
|
id: 42161,
|
|
2415
2415
|
name: "Arbitrum One",
|
|
2416
2416
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2433,8 +2433,8 @@ const Ye = {
|
|
|
2433
2433
|
blockCreated: 7654707
|
|
2434
2434
|
}
|
|
2435
2435
|
}
|
|
2436
|
-
}), ge = 1,
|
|
2437
|
-
...
|
|
2436
|
+
}), ge = 1, _t = /* @__PURE__ */ U({
|
|
2437
|
+
...Ze,
|
|
2438
2438
|
id: 8453,
|
|
2439
2439
|
name: "Base",
|
|
2440
2440
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2451,7 +2451,7 @@ const Ye = {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
},
|
|
2453
2453
|
contracts: {
|
|
2454
|
-
...
|
|
2454
|
+
...Ze.contracts,
|
|
2455
2455
|
disputeGameFactory: {
|
|
2456
2456
|
[ge]: {
|
|
2457
2457
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
@@ -2482,9 +2482,9 @@ const Ye = {
|
|
|
2482
2482
|
sourceId: ge
|
|
2483
2483
|
});
|
|
2484
2484
|
({
|
|
2485
|
-
...
|
|
2485
|
+
..._t
|
|
2486
2486
|
});
|
|
2487
|
-
const
|
|
2487
|
+
const io = /* @__PURE__ */ U({
|
|
2488
2488
|
id: 56,
|
|
2489
2489
|
name: "BNB Smart Chain",
|
|
2490
2490
|
blockTime: 750,
|
|
@@ -2510,10 +2510,10 @@ const ro = /* @__PURE__ */ U({
|
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
2512
|
});
|
|
2513
|
-
function
|
|
2513
|
+
function Nn(e) {
|
|
2514
2514
|
return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
|
|
2515
2515
|
}
|
|
2516
|
-
class
|
|
2516
|
+
class oo extends y {
|
|
2517
2517
|
constructor({ docsPath: n } = {}) {
|
|
2518
2518
|
super([
|
|
2519
2519
|
"Could not find an Account to execute with this Action.",
|
|
@@ -2526,11 +2526,11 @@ class so extends y {
|
|
|
2526
2526
|
});
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2529
|
+
function $n(e) {
|
|
2530
2530
|
return e.reduce((n, { slot: t, value: r }) => `${n} ${t}: ${r}
|
|
2531
2531
|
`, "");
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function co(e) {
|
|
2534
2534
|
return e.reduce((n, { address: t, ...r }) => {
|
|
2535
2535
|
let s = `${n} ${t}:
|
|
2536
2536
|
`;
|
|
@@ -2538,18 +2538,18 @@ function io(e) {
|
|
|
2538
2538
|
`), r.balance && (s += ` balance: ${r.balance}
|
|
2539
2539
|
`), r.code && (s += ` code: ${r.code}
|
|
2540
2540
|
`), r.state && (s += ` state:
|
|
2541
|
-
`, s +=
|
|
2542
|
-
`, s +=
|
|
2541
|
+
`, s += $n(r.state)), r.stateDiff && (s += ` stateDiff:
|
|
2542
|
+
`, s += $n(r.stateDiff)), s;
|
|
2543
2543
|
}, ` State Override:
|
|
2544
2544
|
`).slice(0, -1);
|
|
2545
2545
|
}
|
|
2546
|
-
class
|
|
2546
|
+
class ao extends y {
|
|
2547
2547
|
constructor(n, { account: t, docsPath: r, chain: s, data: o, gas: c, gasPrice: a, maxFeePerGas: l, maxPriorityFeePerGas: A, nonce: d, to: f, value: g, stateOverride: u }) {
|
|
2548
|
-
const x = t ?
|
|
2549
|
-
let C =
|
|
2548
|
+
const x = t ? Nn(t) : void 0;
|
|
2549
|
+
let C = Et({
|
|
2550
2550
|
from: x?.address,
|
|
2551
2551
|
to: f,
|
|
2552
|
-
value: typeof g < "u" && `${
|
|
2552
|
+
value: typeof g < "u" && `${Ds(g)} ${s?.nativeCurrency?.symbol || "ETH"}`,
|
|
2553
2553
|
data: o,
|
|
2554
2554
|
gas: c,
|
|
2555
2555
|
gasPrice: typeof a < "u" && `${R(a)} gwei`,
|
|
@@ -2558,7 +2558,7 @@ class oo extends y {
|
|
|
2558
2558
|
nonce: d
|
|
2559
2559
|
});
|
|
2560
2560
|
u && (C += `
|
|
2561
|
-
${
|
|
2561
|
+
${co(u)}`), super(n.shortMessage, {
|
|
2562
2562
|
cause: n,
|
|
2563
2563
|
docsPath: r,
|
|
2564
2564
|
metaMessages: [
|
|
@@ -2575,7 +2575,7 @@ ${io(u)}`), super(n.shortMessage, {
|
|
|
2575
2575
|
}), this.cause = n;
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
|
-
function
|
|
2578
|
+
function lo(e, n) {
|
|
2579
2579
|
const t = (e.details || "").toLowerCase(), r = e instanceof y ? e.walk((s) => s?.code === ie.code) : e;
|
|
2580
2580
|
return r instanceof y ? new ie({
|
|
2581
2581
|
cause: e,
|
|
@@ -2586,28 +2586,28 @@ function co(e, n) {
|
|
|
2586
2586
|
}) : ee.nodeMessage.test(t) ? new ee({
|
|
2587
2587
|
cause: e,
|
|
2588
2588
|
maxFeePerGas: n?.maxFeePerGas
|
|
2589
|
-
}) :
|
|
2589
|
+
}) : An.nodeMessage.test(t) ? new An({
|
|
2590
2590
|
cause: e,
|
|
2591
2591
|
maxFeePerGas: n?.maxFeePerGas
|
|
2592
|
-
}) :
|
|
2592
|
+
}) : dn.nodeMessage.test(t) ? new dn({ cause: e, nonce: n?.nonce }) : fn.nodeMessage.test(t) ? new fn({ cause: e, nonce: n?.nonce }) : un.nodeMessage.test(t) ? new un({ cause: e, nonce: n?.nonce }) : gn.nodeMessage.test(t) ? new gn({ cause: e }) : vn.nodeMessage.test(t) ? new vn({ cause: e, gas: n?.gas }) : Cn.nodeMessage.test(t) ? new Cn({ cause: e, gas: n?.gas }) : mn.nodeMessage.test(t) ? new mn({ cause: e }) : be.nodeMessage.test(t) ? new be({
|
|
2593
2593
|
cause: e,
|
|
2594
2594
|
maxFeePerGas: n?.maxFeePerGas,
|
|
2595
2595
|
maxPriorityFeePerGas: n?.maxPriorityFeePerGas
|
|
2596
|
-
}) : new
|
|
2596
|
+
}) : new Ht({
|
|
2597
2597
|
cause: e
|
|
2598
2598
|
});
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function Ao(e, { docsPath: n, ...t }) {
|
|
2601
2601
|
const r = (() => {
|
|
2602
|
-
const s =
|
|
2603
|
-
return s instanceof
|
|
2602
|
+
const s = lo(e, t);
|
|
2603
|
+
return s instanceof Ht ? e : s;
|
|
2604
2604
|
})();
|
|
2605
|
-
return new
|
|
2605
|
+
return new ao(r, {
|
|
2606
2606
|
docsPath: n,
|
|
2607
2607
|
...t
|
|
2608
2608
|
});
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function fo(e, { format: n }) {
|
|
2611
2611
|
if (!n)
|
|
2612
2612
|
return {};
|
|
2613
2613
|
const t = {};
|
|
@@ -2619,30 +2619,30 @@ function lo(e, { format: n }) {
|
|
|
2619
2619
|
const s = n(e || {});
|
|
2620
2620
|
return r(s), t;
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2623
|
-
const { account: n, gasPrice: t, maxFeePerGas: r, maxPriorityFeePerGas: s, to: o } = e, c = n ?
|
|
2622
|
+
function uo(e) {
|
|
2623
|
+
const { account: n, gasPrice: t, maxFeePerGas: r, maxPriorityFeePerGas: s, to: o } = e, c = n ? Nn(n) : void 0;
|
|
2624
2624
|
if (c && !Q(c.address))
|
|
2625
2625
|
throw new H({ address: c.address });
|
|
2626
2626
|
if (o && !Q(o))
|
|
2627
2627
|
throw new H({ address: o });
|
|
2628
2628
|
if (typeof t < "u" && (typeof r < "u" || typeof s < "u"))
|
|
2629
|
-
throw new
|
|
2630
|
-
if (r && r >
|
|
2629
|
+
throw new Hs();
|
|
2630
|
+
if (r && r > De)
|
|
2631
2631
|
throw new ee({ maxFeePerGas: r });
|
|
2632
2632
|
if (s && r && s > r)
|
|
2633
|
-
throw new
|
|
2633
|
+
throw new be({ maxFeePerGas: r, maxPriorityFeePerGas: s });
|
|
2634
2634
|
}
|
|
2635
|
-
async function
|
|
2635
|
+
async function go(e, n) {
|
|
2636
2636
|
const { account: t = e.account } = n;
|
|
2637
2637
|
if (!t)
|
|
2638
|
-
throw new
|
|
2639
|
-
const r =
|
|
2638
|
+
throw new oo();
|
|
2639
|
+
const r = Nn(t);
|
|
2640
2640
|
try {
|
|
2641
|
-
const { accessList: s, blockNumber: o, blockTag: c, data: a, gas: l, gasPrice: A, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: g, to: u, value: x, ...C } = n,
|
|
2642
|
-
|
|
2643
|
-
const h = e.chain?.formatters?.transactionRequest?.format, w = (h ||
|
|
2641
|
+
const { accessList: s, blockNumber: o, blockTag: c, data: a, gas: l, gasPrice: A, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: g, to: u, value: x, ...C } = n, p = (typeof o == "bigint" ? z(o) : void 0) || c;
|
|
2642
|
+
uo(n);
|
|
2643
|
+
const h = e.chain?.formatters?.transactionRequest?.format, w = (h || Es)({
|
|
2644
2644
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
2645
|
-
...
|
|
2645
|
+
...fo(C, { format: h }),
|
|
2646
2646
|
from: r?.address,
|
|
2647
2647
|
accessList: s,
|
|
2648
2648
|
data: a,
|
|
@@ -2653,28 +2653,28 @@ async function fo(e, n) {
|
|
|
2653
2653
|
nonce: g,
|
|
2654
2654
|
to: u,
|
|
2655
2655
|
value: x
|
|
2656
|
-
}, "estimateGas"), { baseFeePerGas: I, gasLimit: j, priorityFeePerGas:
|
|
2656
|
+
}, "estimateGas"), { baseFeePerGas: I, gasLimit: j, priorityFeePerGas: M } = await e.request({
|
|
2657
2657
|
method: "linea_estimateGas",
|
|
2658
|
-
params:
|
|
2658
|
+
params: p ? [w, p] : [w]
|
|
2659
2659
|
});
|
|
2660
2660
|
return {
|
|
2661
2661
|
baseFeePerGas: BigInt(I),
|
|
2662
2662
|
gasLimit: BigInt(j),
|
|
2663
|
-
priorityFeePerGas: BigInt(
|
|
2663
|
+
priorityFeePerGas: BigInt(M)
|
|
2664
2664
|
};
|
|
2665
2665
|
} catch (s) {
|
|
2666
|
-
throw
|
|
2666
|
+
throw Ao(s, {
|
|
2667
2667
|
...n,
|
|
2668
2668
|
account: r,
|
|
2669
2669
|
chain: e.chain
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
2672
|
}
|
|
2673
|
-
const
|
|
2673
|
+
const vo = {
|
|
2674
2674
|
fees: {
|
|
2675
|
-
estimateFeesPerGas:
|
|
2675
|
+
estimateFeesPerGas: et,
|
|
2676
2676
|
async maxPriorityFeePerGas({ block: e, client: n, request: t }) {
|
|
2677
|
-
const r = await
|
|
2677
|
+
const r = await et({
|
|
2678
2678
|
block: e,
|
|
2679
2679
|
client: n,
|
|
2680
2680
|
multiply: (s) => s,
|
|
@@ -2685,9 +2685,9 @@ const uo = {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
2687
2687
|
};
|
|
2688
|
-
async function
|
|
2688
|
+
async function et({ client: e, multiply: n, request: t, type: r }) {
|
|
2689
2689
|
try {
|
|
2690
|
-
const s = await
|
|
2690
|
+
const s = await go(e, {
|
|
2691
2691
|
...t,
|
|
2692
2692
|
account: t?.account
|
|
2693
2693
|
}), { priorityFeePerGas: o } = s, a = n(BigInt(s.baseFeePerGas)) + o;
|
|
@@ -2699,8 +2699,8 @@ async function $n({ client: e, multiply: n, request: t, type: r }) {
|
|
|
2699
2699
|
return null;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
|
-
const
|
|
2703
|
-
...
|
|
2702
|
+
const Co = /* @__PURE__ */ U({
|
|
2703
|
+
...vo,
|
|
2704
2704
|
id: 59144,
|
|
2705
2705
|
name: "Linea Mainnet",
|
|
2706
2706
|
nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2733,7 +2733,7 @@ const go = /* @__PURE__ */ U({
|
|
|
2733
2733
|
},
|
|
2734
2734
|
ensTlds: [".linea.eth"],
|
|
2735
2735
|
testnet: !1
|
|
2736
|
-
}),
|
|
2736
|
+
}), mo = /* @__PURE__ */ U({
|
|
2737
2737
|
id: 1,
|
|
2738
2738
|
name: "Ethereum",
|
|
2739
2739
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2760,8 +2760,8 @@ const go = /* @__PURE__ */ U({
|
|
|
2760
2760
|
blockCreated: 14353601
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
|
-
}), ve = 1,
|
|
2764
|
-
...
|
|
2763
|
+
}), ve = 1, xo = /* @__PURE__ */ U({
|
|
2764
|
+
...Ze,
|
|
2765
2765
|
id: 10,
|
|
2766
2766
|
name: "OP Mainnet",
|
|
2767
2767
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2778,7 +2778,7 @@ const go = /* @__PURE__ */ U({
|
|
|
2778
2778
|
}
|
|
2779
2779
|
},
|
|
2780
2780
|
contracts: {
|
|
2781
|
-
...
|
|
2781
|
+
...Ze.contracts,
|
|
2782
2782
|
disputeGameFactory: {
|
|
2783
2783
|
[ve]: {
|
|
2784
2784
|
address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9"
|
|
@@ -2805,7 +2805,7 @@ const go = /* @__PURE__ */ U({
|
|
|
2805
2805
|
}
|
|
2806
2806
|
},
|
|
2807
2807
|
sourceId: ve
|
|
2808
|
-
}),
|
|
2808
|
+
}), po = /* @__PURE__ */ U({
|
|
2809
2809
|
id: 137,
|
|
2810
2810
|
name: "Polygon",
|
|
2811
2811
|
nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
|
|
@@ -2827,21 +2827,21 @@ const go = /* @__PURE__ */ U({
|
|
|
2827
2827
|
blockCreated: 25770160
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
|
-
}),
|
|
2831
|
-
evm: [
|
|
2830
|
+
}), Ne = {
|
|
2831
|
+
evm: [mo, io, xo, so, Co, _t, po],
|
|
2832
2832
|
solana: [
|
|
2833
2833
|
{
|
|
2834
2834
|
name: "Solana",
|
|
2835
|
-
icon:
|
|
2835
|
+
icon: Fe
|
|
2836
2836
|
}
|
|
2837
2837
|
],
|
|
2838
2838
|
aptos: [
|
|
2839
2839
|
{
|
|
2840
2840
|
name: "Aptos",
|
|
2841
|
-
icon:
|
|
2841
|
+
icon: Je
|
|
2842
2842
|
}
|
|
2843
2843
|
]
|
|
2844
|
-
},
|
|
2844
|
+
}, $t = (e, n) => {
|
|
2845
2845
|
const t = (e?.aptos || [O?.aptos || []]).map((a) => ({
|
|
2846
2846
|
...a,
|
|
2847
2847
|
chainInfo: {
|
|
@@ -2850,10 +2850,10 @@ const go = /* @__PURE__ */ U({
|
|
|
2850
2850
|
},
|
|
2851
2851
|
chainType: "aptos",
|
|
2852
2852
|
provider: n?.aptos || null
|
|
2853
|
-
})), r = (e?.evm ||
|
|
2853
|
+
})), r = (e?.evm || Ne?.evm || [O?.evm || []]).map((a) => ({
|
|
2854
2854
|
...a,
|
|
2855
2855
|
chainInfo: {
|
|
2856
|
-
icon:
|
|
2856
|
+
icon: Pt[`evm_${a.id}`],
|
|
2857
2857
|
name: a.name || O?.evm?.name || ""
|
|
2858
2858
|
},
|
|
2859
2859
|
chainType: "evm",
|
|
@@ -2877,15 +2877,15 @@ const go = /* @__PURE__ */ U({
|
|
|
2877
2877
|
}));
|
|
2878
2878
|
return [...t, ...r, ...s, ...o];
|
|
2879
2879
|
};
|
|
2880
|
-
var
|
|
2881
|
-
const
|
|
2882
|
-
const o = B(() => n ? /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: n, radius: "full", className: "p-0", children: /* @__PURE__ */ i(
|
|
2880
|
+
var je = /* @__PURE__ */ ((e) => (e.Tomo = "tomo", e.MyDoge = "mydoge", e))(je || {}), P = /* @__PURE__ */ ((e) => (e.Loading = "LOADING", e.Logged = "LOGGED", 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.SocialLogin = "SOCIAL_LOGIN", e.MyDogeSocialLogin = "MYDOGE_SOCIAL_LOGIN", e))(P || {}), k = /* @__PURE__ */ ((e) => (e.All = "all", e.EVM = "evm", e.Solana = "solana", e.Aptos = "aptos", e))(k || {});
|
|
2881
|
+
const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton: s }) => {
|
|
2882
|
+
const o = B(() => n ? /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: n, radius: "full", className: "p-0", children: /* @__PURE__ */ i(at, {}) }) : null, [n]);
|
|
2883
2883
|
return /* @__PURE__ */ v("div", { className: "flex items-center justify-between px-0 py-3", children: [
|
|
2884
2884
|
o,
|
|
2885
2885
|
/* @__PURE__ */ i("div", { className: "font-medium text-lg", children: e }),
|
|
2886
2886
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
|
|
2887
2887
|
r,
|
|
2888
|
-
s ? null : /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: t, radius: "full", className: "p-0", children: /* @__PURE__ */ i(
|
|
2888
|
+
s ? null : /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: t, radius: "full", className: "p-0", children: /* @__PURE__ */ i(lt, { className: "text-xl" }) })
|
|
2889
2889
|
] })
|
|
2890
2890
|
] });
|
|
2891
2891
|
}, S = ({
|
|
@@ -2896,12 +2896,12 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2896
2896
|
headerRightContent: s,
|
|
2897
2897
|
hideCloseButton: o
|
|
2898
2898
|
}) => {
|
|
2899
|
-
const c = V(
|
|
2899
|
+
const c = V(W);
|
|
2900
2900
|
if (!c)
|
|
2901
2901
|
throw new Error("WalletConnectContext not found");
|
|
2902
2902
|
return /* @__PURE__ */ v("div", { className: "flex flex-col gap-3 min-h-0 flex-1", children: [
|
|
2903
2903
|
/* @__PURE__ */ i(
|
|
2904
|
-
|
|
2904
|
+
bo,
|
|
2905
2905
|
{
|
|
2906
2906
|
title: n,
|
|
2907
2907
|
onBack: t,
|
|
@@ -2914,21 +2914,21 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2914
2914
|
),
|
|
2915
2915
|
/* @__PURE__ */ i("div", { className: "flex-1 flex flex-col min-h-0", children: e })
|
|
2916
2916
|
] });
|
|
2917
|
-
},
|
|
2918
|
-
const e = V(
|
|
2917
|
+
}, zo = () => {
|
|
2918
|
+
const e = V(W);
|
|
2919
2919
|
if (!e)
|
|
2920
2920
|
throw new Error("WalletConnectContext not found");
|
|
2921
|
-
const { copied: n, copy: t } =
|
|
2921
|
+
const { copied: n, copy: t } = Pn(), { account: r, disconnect: s } = e, o = r.currentWallet?.info?.name || "Wallet", c = r.currentWallet?.info?.icon, a = r.address, l = r.chainType, A = r.chainId, d = A ? Number(BigInt(A || "0").toString()) : void 0, f = r.currentWallet, g = T(async () => {
|
|
2922
2922
|
try {
|
|
2923
2923
|
if (!a) return;
|
|
2924
2924
|
t(a);
|
|
2925
2925
|
} catch (m) {
|
|
2926
2926
|
console.error("Failed to copy address:", m);
|
|
2927
2927
|
}
|
|
2928
|
-
}, [a, t]), u = B(() => /* @__PURE__ */ i(X, { isIconOnly: !0, variant: "light", color: "default", className: "size-10", onPress: g, children: n ? /* @__PURE__ */ i(
|
|
2928
|
+
}, [a, t]), u = B(() => /* @__PURE__ */ i(X, { isIconOnly: !0, variant: "light", color: "default", className: "size-10", onPress: g, children: n ? /* @__PURE__ */ i(At, { className: "text-success size-6" }) : /* @__PURE__ */ i(zr, { className: "text-foreground size-4" }) }), [g, n]);
|
|
2929
2929
|
if (!f)
|
|
2930
2930
|
return null;
|
|
2931
|
-
const x =
|
|
2931
|
+
const x = $t(e.config?.chains, f?.providers), C = x.find((m) => m.chainType === l && m.id === d);
|
|
2932
2932
|
return console.log("--- AccountView ---", {
|
|
2933
2933
|
config: e.config,
|
|
2934
2934
|
chains: x,
|
|
@@ -2945,7 +2945,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2945
2945
|
variant: "light",
|
|
2946
2946
|
color: "default",
|
|
2947
2947
|
onPress: () => e.modal.setView(P.SelectChains),
|
|
2948
|
-
endContent: /* @__PURE__ */ i(
|
|
2948
|
+
endContent: /* @__PURE__ */ i(Ir, { className: "size-4" }),
|
|
2949
2949
|
children: /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
|
|
2950
2950
|
/* @__PURE__ */ i(le, { icon: C?.chainInfo?.icon, className: "size-7 overflow-hidden rounded-full" }),
|
|
2951
2951
|
/* @__PURE__ */ i("span", { className: "text-sm", children: C?.chainInfo?.name })
|
|
@@ -2957,7 +2957,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2957
2957
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
|
|
2958
2958
|
/* @__PURE__ */ i("div", { className: "w-10 h-10 rounded-full overflow-hidden bg-content2 flex items-center justify-center", children: c ? /* @__PURE__ */ i(ne, { src: c, alt: o, width: 40, height: 40 }) : /* @__PURE__ */ i("div", { className: "w-6 h-6 rounded bg-content3" }) }),
|
|
2959
2959
|
/* @__PURE__ */ v("div", { className: "flex flex-col", children: [
|
|
2960
|
-
/* @__PURE__ */ i("span", { className: "break-all", children:
|
|
2960
|
+
/* @__PURE__ */ i("span", { className: "break-all", children: us(a, 8, 6) || "-" }),
|
|
2961
2961
|
/* @__PURE__ */ i("span", { className: "text-xs text-foreground/70", children: o })
|
|
2962
2962
|
] })
|
|
2963
2963
|
] }),
|
|
@@ -2969,7 +2969,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2969
2969
|
color: "default",
|
|
2970
2970
|
variant: "light",
|
|
2971
2971
|
className: "w-full",
|
|
2972
|
-
startContent: /* @__PURE__ */ i(
|
|
2972
|
+
startContent: /* @__PURE__ */ i(wr, { className: "size-4" }),
|
|
2973
2973
|
onPress: s,
|
|
2974
2974
|
children: "Disconnect wallet"
|
|
2975
2975
|
}
|
|
@@ -2977,29 +2977,29 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
2977
2977
|
] })
|
|
2978
2978
|
}
|
|
2979
2979
|
);
|
|
2980
|
-
},
|
|
2980
|
+
}, nt = {
|
|
2981
2981
|
isConnecting: !1,
|
|
2982
2982
|
isConnected: !1,
|
|
2983
2983
|
address: "",
|
|
2984
2984
|
currentWallet: null,
|
|
2985
2985
|
currentProvider: null,
|
|
2986
2986
|
actionsLoading: !1
|
|
2987
|
-
},
|
|
2988
|
-
const [e, n] = N(
|
|
2987
|
+
}, jn = () => {
|
|
2988
|
+
const [e, n] = N(nt), [t, r] = N("");
|
|
2989
2989
|
return {
|
|
2990
2990
|
walletState: e,
|
|
2991
2991
|
setWalletState: n,
|
|
2992
2992
|
error: t,
|
|
2993
2993
|
setError: r,
|
|
2994
2994
|
resetWalletState: () => {
|
|
2995
|
-
n(
|
|
2995
|
+
n(nt), It();
|
|
2996
2996
|
}
|
|
2997
2997
|
};
|
|
2998
|
-
},
|
|
2999
|
-
const e = V(
|
|
2998
|
+
}, wo = () => {
|
|
2999
|
+
const e = V(W), n = e?.modal.state;
|
|
3000
3000
|
if (!e)
|
|
3001
3001
|
throw new Error("WalletConnectContext not found");
|
|
3002
|
-
const t = n?.chainType || "evm", r = n?.chainId || "", s = n?.name || "-", o = n?.chainInfo?.icon || "", { resetWalletState: c } =
|
|
3002
|
+
const t = n?.chainType || "evm", r = n?.chainId || "", s = n?.name || "-", o = n?.chainInfo?.icon || "", { resetWalletState: c } = jn(), { mutate: a, isPending: l } = In({
|
|
3003
3003
|
mutationKey: ["switchWallet", n?.chainInfo],
|
|
3004
3004
|
mutationFn: async () => {
|
|
3005
3005
|
c(), e.modal.setView(P.WalletSearch, {
|
|
@@ -3027,8 +3027,8 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3027
3027
|
" wallet"
|
|
3028
3028
|
] })
|
|
3029
3029
|
] }) });
|
|
3030
|
-
},
|
|
3031
|
-
const e = V(
|
|
3030
|
+
}, qe = () => {
|
|
3031
|
+
const e = V(W);
|
|
3032
3032
|
return {
|
|
3033
3033
|
connectWallet: T(
|
|
3034
3034
|
async (t, r, s = "") => {
|
|
@@ -3059,12 +3059,12 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3059
3059
|
[e?.modal.setView, e?.connect]
|
|
3060
3060
|
)
|
|
3061
3061
|
};
|
|
3062
|
-
},
|
|
3062
|
+
}, Io = ({
|
|
3063
3063
|
iconSrc: e,
|
|
3064
3064
|
iconAlt: n,
|
|
3065
3065
|
variant: t
|
|
3066
3066
|
}) => /* @__PURE__ */ v("div", { "data-tag": "ringed-icon", className: "relative w-20 h-20 flex items-center justify-center", children: [
|
|
3067
|
-
t === "error" ? /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-danger rounded-full" }) : t === "connecting" ? /* @__PURE__ */ v(
|
|
3067
|
+
t === "error" ? /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-danger rounded-full" }) : t === "connecting" ? /* @__PURE__ */ v(ct, { children: [
|
|
3068
3068
|
/* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-primary/20 rounded-full" }),
|
|
3069
3069
|
/* @__PURE__ */ i(
|
|
3070
3070
|
"div",
|
|
@@ -3076,11 +3076,11 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3076
3076
|
] }) : /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-success rounded-full" }),
|
|
3077
3077
|
e ? /* @__PURE__ */ i(ne, { src: e, alt: n || "Wallet", width: 64, height: 64, className: "rounded-full relative z-10" }) : null,
|
|
3078
3078
|
t === "success" ? /* @__PURE__ */ i("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__ */ i("svg", { className: "w-4 h-4 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) }) }) : null
|
|
3079
|
-
] }),
|
|
3080
|
-
const e = V(
|
|
3079
|
+
] }), Po = () => {
|
|
3080
|
+
const e = V(W);
|
|
3081
3081
|
if (!e)
|
|
3082
3082
|
throw new Error("WalletConnectContext not found");
|
|
3083
|
-
const { currentWallet: n } = e.account, { isConnected: t, isConnecting: r, error: s } = e.connection, { connectWallet: o } =
|
|
3083
|
+
const { currentWallet: n } = e.account, { isConnected: t, isConnecting: r, error: s } = e.connection, { connectWallet: o } = qe(), [c, a] = N(!1), l = async () => {
|
|
3084
3084
|
if (c) return;
|
|
3085
3085
|
e.connection.setError("");
|
|
3086
3086
|
const x = e?.modal?.state || {
|
|
@@ -3093,8 +3093,8 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3093
3093
|
}
|
|
3094
3094
|
try {
|
|
3095
3095
|
a(!0), await o(n, C, m), a(!1);
|
|
3096
|
-
} catch (
|
|
3097
|
-
console.error("handleRetry::",
|
|
3096
|
+
} catch (p) {
|
|
3097
|
+
console.error("handleRetry::", p), await an(1e3), a(!1);
|
|
3098
3098
|
}
|
|
3099
3099
|
}, A = () => {
|
|
3100
3100
|
e.connection.setError(""), e.modal.backView();
|
|
@@ -3104,15 +3104,15 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3104
3104
|
"Connected to ",
|
|
3105
3105
|
n?.info?.name || "Wallet"
|
|
3106
3106
|
] })
|
|
3107
|
-
] }) : /* @__PURE__ */ i(
|
|
3108
|
-
|
|
3107
|
+
] }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: f ? /* @__PURE__ */ i(tt, { error: s, title: "Connection Failed" }) : /* @__PURE__ */ i(
|
|
3108
|
+
tt,
|
|
3109
3109
|
{
|
|
3110
3110
|
error: `Open the ${n?.info?.name || "Wallet"} browser extension to connect your wallet.`,
|
|
3111
3111
|
title: "Requesting Connection"
|
|
3112
3112
|
}
|
|
3113
3113
|
) }) });
|
|
3114
3114
|
return /* @__PURE__ */ i(S, { title: n?.info?.name || "Wallet", onBack: A, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3115
|
-
/* @__PURE__ */ i(
|
|
3115
|
+
/* @__PURE__ */ i(Io, { iconSrc: n?.info?.icon, iconAlt: n?.info?.name, variant: g }),
|
|
3116
3116
|
u(),
|
|
3117
3117
|
f ? /* @__PURE__ */ i("div", { className: "w-full px-4", children: /* @__PURE__ */ i(
|
|
3118
3118
|
X,
|
|
@@ -3136,11 +3136,11 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3136
3136
|
}
|
|
3137
3137
|
) }) : null
|
|
3138
3138
|
] }) });
|
|
3139
|
-
},
|
|
3139
|
+
}, tt = ({ error: e, title: n }) => /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
|
|
3140
3140
|
/* @__PURE__ */ i("p", { className: "text-lg font-semibold text-foreground", children: n }),
|
|
3141
3141
|
/* @__PURE__ */ i("p", { children: e })
|
|
3142
|
-
] }),
|
|
3143
|
-
const e = V(
|
|
3142
|
+
] }), Bo = () => {
|
|
3143
|
+
const e = V(W);
|
|
3144
3144
|
if (!e)
|
|
3145
3145
|
throw new Error("WalletConnectContext not found");
|
|
3146
3146
|
const { error: n } = e.connection;
|
|
@@ -3152,7 +3152,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3152
3152
|
e.connection.setError(""), e.modal.setView(P.Connecting);
|
|
3153
3153
|
}, children: "Try Again" })
|
|
3154
3154
|
] });
|
|
3155
|
-
},
|
|
3155
|
+
}, er = ({ content: e, size: n = 280, logo: t, logoBackground: r }) => {
|
|
3156
3156
|
const s = ce(null), o = ce(null);
|
|
3157
3157
|
return Z(() => {
|
|
3158
3158
|
if (!e || !s.current)
|
|
@@ -3190,48 +3190,48 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3190
3190
|
if (o.current)
|
|
3191
3191
|
o.current.update(a);
|
|
3192
3192
|
else {
|
|
3193
|
-
const A = new
|
|
3193
|
+
const A = new $r(a);
|
|
3194
3194
|
o.current = A, c.innerHTML = "", A.append(c);
|
|
3195
3195
|
}
|
|
3196
3196
|
const l = c;
|
|
3197
3197
|
return () => {
|
|
3198
3198
|
l && o.current && (l.innerHTML = "", o.current = null);
|
|
3199
3199
|
};
|
|
3200
|
-
}, [e, n, t, r]), console.log("-- qr code content", e), /* @__PURE__ */ i(
|
|
3201
|
-
},
|
|
3202
|
-
const { copy: a, copied: l } =
|
|
3203
|
-
return /* @__PURE__ */ i(
|
|
3200
|
+
}, [e, n, t, r]), console.log("-- qr code content", e), /* @__PURE__ */ i(Pr, { isLoaded: !!e, style: { width: n, height: n }, className: "rounded-lg", children: /* @__PURE__ */ i("div", { className: "flex items-center justify-center p-2 bg-[#1C1917] rounded-lg", children: /* @__PURE__ */ i("div", { ref: s }) }) });
|
|
3201
|
+
}, yo = ({ isOpen: e, onClose: n, onBack: t, url: r, logo: s, logoBackground: o, title: c }) => {
|
|
3202
|
+
const { copy: a, copied: l } = Pn();
|
|
3203
|
+
return /* @__PURE__ */ i(dt, { isOpen: e, onClose: n, onBack: t, title: c, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
|
|
3204
3204
|
/* @__PURE__ */ i("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." }),
|
|
3205
|
-
/* @__PURE__ */ i(
|
|
3205
|
+
/* @__PURE__ */ i(er, { content: r, logo: s, logoBackground: o }),
|
|
3206
3206
|
/* @__PURE__ */ i(X, { variant: "bordered", size: "lg", fullWidth: !0, onPress: () => {
|
|
3207
3207
|
a(r);
|
|
3208
3208
|
}, children: l ? "Copied!" : "Copy Link" })
|
|
3209
3209
|
] }) });
|
|
3210
|
-
},
|
|
3210
|
+
}, ho = () => {
|
|
3211
3211
|
if (typeof window > "u") return "other";
|
|
3212
3212
|
const e = window.navigator.userAgent.toLowerCase();
|
|
3213
3213
|
return e.includes("chrome") && !e.includes("edge") && !e.includes("opera") ? "chrome" : e.includes("edge") ? "edge" : e.includes("firefox") ? "firefox" : e.includes("opera") || e.includes("opr") ? "opera" : e.includes("safari") && !e.includes("chrome") ? "safari" : "other";
|
|
3214
|
-
},
|
|
3214
|
+
}, Mo = () => {
|
|
3215
3215
|
if (typeof window > "u") return "desktop";
|
|
3216
3216
|
const e = window.navigator.userAgent.toLowerCase();
|
|
3217
3217
|
return /iphone|ipad|ipod/.test(e) ? "ios" : /android/.test(e) ? "android" : "desktop";
|
|
3218
|
-
},
|
|
3218
|
+
}, Wo = (e) => {
|
|
3219
3219
|
if (!e) return null;
|
|
3220
|
-
const n =
|
|
3220
|
+
const n = Mo(), t = ho();
|
|
3221
3221
|
return n === "ios" ? e.ios_install || e.mobile || e.homepage || null : n === "android" ? e.android_install || e.mobile || e.homepage || null : t === "chrome" ? e.chrome_install || e.homepage || null : t === "edge" ? e.edge || e.homepage || null : t === "firefox" ? e.firefox || e.homepage || null : t === "opera" ? e.opera || e.homepage || null : t === "safari" ? e.safari || e.homepage || null : e.homepage || e.mobile || null;
|
|
3222
|
-
},
|
|
3222
|
+
}, Vo = (e) => {
|
|
3223
3223
|
if (!e) return [];
|
|
3224
3224
|
const n = [];
|
|
3225
3225
|
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;
|
|
3226
|
-
},
|
|
3227
|
-
const e = V(
|
|
3226
|
+
}, Xo = () => {
|
|
3227
|
+
const e = V(W);
|
|
3228
3228
|
if (!e)
|
|
3229
3229
|
throw new Error("WalletConnectContext not found");
|
|
3230
3230
|
const { currentWallet: n } = e.account;
|
|
3231
3231
|
if (!n)
|
|
3232
3232
|
throw new Error("Current wallet not found");
|
|
3233
3233
|
console.log("-- InstallGuideView -- currentWallet", n);
|
|
3234
|
-
const t = B(() => `Install ${n?.info?.name} Wallet`, [n?.info?.name]), r = B(() => n?.info, [n?.info]), s = B(() =>
|
|
3234
|
+
const t = B(() => `Install ${n?.info?.name} Wallet`, [n?.info?.name]), r = B(() => n?.info, [n?.info]), s = B(() => Wo(r?.links), [r?.links]), o = B(() => Vo(r?.links), [r?.links]), [c, a] = N({
|
|
3235
3235
|
isOpen: !1,
|
|
3236
3236
|
url: ""
|
|
3237
3237
|
}), l = () => {
|
|
@@ -3272,7 +3272,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3272
3272
|
/* @__PURE__ */ i("p", { className: "text-xs text-foreground/40 mt-6 text-center px-4", children: "After installing, refresh the page and try connecting again." })
|
|
3273
3273
|
] }),
|
|
3274
3274
|
/* @__PURE__ */ i(
|
|
3275
|
-
|
|
3275
|
+
yo,
|
|
3276
3276
|
{
|
|
3277
3277
|
title: t,
|
|
3278
3278
|
isOpen: c.isOpen,
|
|
@@ -3284,8 +3284,8 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3284
3284
|
}
|
|
3285
3285
|
)
|
|
3286
3286
|
] });
|
|
3287
|
-
},
|
|
3288
|
-
if (!V(
|
|
3287
|
+
}, No = () => {
|
|
3288
|
+
if (!V(W))
|
|
3289
3289
|
throw new Error("WalletConnectContext not found");
|
|
3290
3290
|
return /* @__PURE__ */ i(S, { title: "Loading", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3291
3291
|
/* @__PURE__ */ i(
|
|
@@ -3303,8 +3303,8 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3303
3303
|
/* @__PURE__ */ i("p", { children: "Please wait while we set up your wallet connection..." })
|
|
3304
3304
|
] })
|
|
3305
3305
|
] }) });
|
|
3306
|
-
},
|
|
3307
|
-
const e = V(
|
|
3306
|
+
}, Tn = () => {
|
|
3307
|
+
const e = V(W);
|
|
3308
3308
|
if (!e)
|
|
3309
3309
|
throw new Error("useAccount must be used within WalletConnectProvider");
|
|
3310
3310
|
return {
|
|
@@ -3324,7 +3324,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3324
3324
|
// signAndSendTransaction: context.signAndSendTransaction,
|
|
3325
3325
|
// sendTransaction: context.sendTransaction,
|
|
3326
3326
|
};
|
|
3327
|
-
},
|
|
3327
|
+
}, jo = () => {
|
|
3328
3328
|
const [e, n] = N(0), [t, r] = N(!1);
|
|
3329
3329
|
return Z(() => {
|
|
3330
3330
|
if (typeof window < "u" && window.visualViewport) {
|
|
@@ -3347,7 +3347,7 @@ const xo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
|
|
|
3347
3347
|
}
|
|
3348
3348
|
}, []), { keyboardHeight: e, isKeyboardVisible: t };
|
|
3349
3349
|
};
|
|
3350
|
-
function
|
|
3350
|
+
function To(e = !1) {
|
|
3351
3351
|
const [n, t] = N(e), r = T(() => t(!0), []), s = T(() => t(!1), []), o = T(() => t((a) => !a), []), c = T((a) => t(a), []);
|
|
3352
3352
|
return {
|
|
3353
3353
|
isOpen: n,
|
|
@@ -3357,47 +3357,52 @@ function No(e = !1) {
|
|
|
3357
3357
|
onOpenChange: c
|
|
3358
3358
|
};
|
|
3359
3359
|
}
|
|
3360
|
-
const
|
|
3361
|
-
const { isOpen: n, onOpen: t, onClose: r } =
|
|
3362
|
-
(
|
|
3363
|
-
s ===
|
|
3360
|
+
const Eo = (e) => {
|
|
3361
|
+
const { isOpen: n, onOpen: t, onClose: r } = To(), [s, o] = N(e), [c, a] = N(null), [l, A] = N([]), d = T(
|
|
3362
|
+
(p, h, b) => {
|
|
3363
|
+
s === p && !b || (b || A((w) => [...w, { view: s, state: c }]), o(p), a(h || null));
|
|
3364
3364
|
},
|
|
3365
3365
|
[s, c]
|
|
3366
|
-
),
|
|
3366
|
+
), f = T(() => {
|
|
3367
3367
|
o(e), setTimeout(() => {
|
|
3368
|
-
a(null), A(
|
|
3368
|
+
a(null), A([]);
|
|
3369
3369
|
}, 400);
|
|
3370
|
-
}, []),
|
|
3371
|
-
r?.(),
|
|
3372
|
-
}, [r,
|
|
3373
|
-
(
|
|
3374
|
-
A(
|
|
3370
|
+
}, [e]), g = T(() => {
|
|
3371
|
+
r?.(), f();
|
|
3372
|
+
}, [r, f]), u = T(
|
|
3373
|
+
(p, h) => {
|
|
3374
|
+
A((b) => [...b, { view: s, state: c }]), o(p), a(h || null), t();
|
|
3375
3375
|
},
|
|
3376
3376
|
[s, c, t]
|
|
3377
|
-
),
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3377
|
+
), x = T(() => {
|
|
3378
|
+
A((p) => {
|
|
3379
|
+
if (p.length === 0)
|
|
3380
|
+
return o(e), a(null), p;
|
|
3381
|
+
const h = p[p.length - 1], b = p.slice(0, -1);
|
|
3382
|
+
return o(h.view), a(h.state), b;
|
|
3383
|
+
});
|
|
3384
|
+
}, [e]), C = T((p) => {
|
|
3385
|
+
a(p || null);
|
|
3386
|
+
}, []), m = l.length > 0 ? l[l.length - 1].view : null;
|
|
3382
3387
|
return {
|
|
3383
3388
|
isOpen: n,
|
|
3384
3389
|
view: s,
|
|
3385
|
-
prevView:
|
|
3390
|
+
prevView: m,
|
|
3386
3391
|
openModal: t,
|
|
3387
|
-
openModalWithState:
|
|
3388
|
-
closeModal:
|
|
3389
|
-
setView:
|
|
3390
|
-
backView:
|
|
3392
|
+
openModalWithState: u,
|
|
3393
|
+
closeModal: g,
|
|
3394
|
+
setView: d,
|
|
3395
|
+
backView: x,
|
|
3391
3396
|
state: c,
|
|
3392
|
-
setCurrentViewState:
|
|
3397
|
+
setCurrentViewState: C
|
|
3393
3398
|
};
|
|
3394
|
-
},
|
|
3399
|
+
}, Lo = (e) => {
|
|
3395
3400
|
const n = ce(null);
|
|
3396
3401
|
return Z(() => {
|
|
3397
3402
|
n.current && (n.current.scrollTop = 0);
|
|
3398
3403
|
}, e), n;
|
|
3399
|
-
},
|
|
3400
|
-
const e = V(
|
|
3404
|
+
}, nr = () => {
|
|
3405
|
+
const e = V(W);
|
|
3401
3406
|
if (!e)
|
|
3402
3407
|
throw new Error("useEmbeddedWallet must be used within WalletConnectProvider");
|
|
3403
3408
|
return e.embeddedWallet || {
|
|
@@ -3407,8 +3412,8 @@ const jo = (e) => {
|
|
|
3407
3412
|
connectedInfo: null,
|
|
3408
3413
|
isLoading: !0
|
|
3409
3414
|
};
|
|
3410
|
-
},
|
|
3411
|
-
const e = V(
|
|
3415
|
+
}, Ke = () => {
|
|
3416
|
+
const e = V(W), { connectWallet: n } = qe();
|
|
3412
3417
|
return {
|
|
3413
3418
|
handleSelectWallet: T(
|
|
3414
3419
|
(r, s) => {
|
|
@@ -3416,11 +3421,11 @@ const jo = (e) => {
|
|
|
3416
3421
|
console.error("WalletConnectContext not found");
|
|
3417
3422
|
return;
|
|
3418
3423
|
}
|
|
3419
|
-
if (!r.isInstalled && !
|
|
3424
|
+
if (!r.isInstalled && !cn()) {
|
|
3420
3425
|
e._setCurrentWallet(r), e.modal.setView(P.WalletInstallGuide);
|
|
3421
3426
|
return;
|
|
3422
3427
|
}
|
|
3423
|
-
if (!r.isInstalled &&
|
|
3428
|
+
if (!r.isInstalled && cn()) {
|
|
3424
3429
|
n(r, k.EVM);
|
|
3425
3430
|
return;
|
|
3426
3431
|
}
|
|
@@ -3447,20 +3452,20 @@ const jo = (e) => {
|
|
|
3447
3452
|
[e, n]
|
|
3448
3453
|
)
|
|
3449
3454
|
};
|
|
3450
|
-
},
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
],
|
|
3457
|
-
recommonedWallets:
|
|
3455
|
+
}, Ce = "https://dogeos.embedded-wallet.tomo.inc", So = [
|
|
3456
|
+
Or(Ce),
|
|
3457
|
+
Yr(Ce),
|
|
3458
|
+
Zr(Ce),
|
|
3459
|
+
kr(Ce),
|
|
3460
|
+
Jr(Ce)
|
|
3461
|
+
], ye = {
|
|
3462
|
+
recommonedWallets: So,
|
|
3458
3463
|
links: {
|
|
3459
3464
|
privacyPolicy: "https://www.mydoge.com/privacy",
|
|
3460
3465
|
termsOfService: "https://www.mydoge.com/terms",
|
|
3461
3466
|
homepage: "https://www.mydoge.com"
|
|
3462
3467
|
}
|
|
3463
|
-
},
|
|
3468
|
+
}, Oo = {
|
|
3464
3469
|
projectId: "44cb8a6aedbe379ba8f2fa4fbc1a461f",
|
|
3465
3470
|
metadata: {
|
|
3466
3471
|
name: "Doge Wallet Connect",
|
|
@@ -3468,33 +3473,36 @@ const jo = (e) => {
|
|
|
3468
3473
|
url: typeof window < "u" ? window.location.origin : "",
|
|
3469
3474
|
icons: ["https://getdoge.com/cdn/shop/files/Symbol_1.png?v=1681939190&width=200"]
|
|
3470
3475
|
}
|
|
3471
|
-
},
|
|
3476
|
+
}, Yo = "cTQxTUlSZXhwOXF6T2hnTHJVRzI6MTpjaQ", Zo = "362812706401-eppkpnqocdaejaf45ics815t22oe0j7l.apps.googleusercontent.com", tr = "mSzQLiebxpwV64barnRZpCGZTwB38kSiuszi42Cqq41fkRH8KM99dqG4pFNnvaVA4DV7zHsic0or0pd8tlMIt9vc", rr = {
|
|
3472
3477
|
tomoStage: "prod",
|
|
3473
3478
|
//dev/pre/prod
|
|
3474
3479
|
name: "Doge Embedded Wallet",
|
|
3475
3480
|
logo: "https://getdoge.com/cdn/shop/files/Symbol_1.png?v=1681939190&width=200",
|
|
3476
|
-
clientId:
|
|
3477
|
-
xClientId:
|
|
3478
|
-
googleClientId:
|
|
3481
|
+
clientId: tr,
|
|
3482
|
+
xClientId: Yo,
|
|
3483
|
+
googleClientId: Zo,
|
|
3479
3484
|
walletBaseUrl: "https://dogeos.embedded-wallet.tomo.inc/embed"
|
|
3480
3485
|
//provider.apis
|
|
3481
|
-
},
|
|
3482
|
-
const n = e.length > 0 ? e :
|
|
3483
|
-
return
|
|
3486
|
+
}, ko = ["wallets", "all"], Jo = (e) => () => {
|
|
3487
|
+
const n = e.length > 0 ? e : ye.recommonedWallets || [], t = rr.walletBaseUrl.replace(/\/embed$/, "");
|
|
3488
|
+
return Fr({
|
|
3484
3489
|
chainType: "all",
|
|
3485
3490
|
recommonedConnectors: n,
|
|
3486
|
-
connectorTypes: n.map(() => "tomo")
|
|
3491
|
+
connectorTypes: n.map(() => "tomo"),
|
|
3492
|
+
options: {
|
|
3493
|
+
baseUrl: t
|
|
3494
|
+
}
|
|
3487
3495
|
});
|
|
3488
|
-
},
|
|
3496
|
+
}, rt = (e, n) => n === "all" ? e : e.filter((t) => !!t.providers[n]), sr = (e) => {
|
|
3489
3497
|
if (!e || !e.info)
|
|
3490
3498
|
return null;
|
|
3491
3499
|
const n = {};
|
|
3492
3500
|
return e.evmProvider && (n.evm = {
|
|
3493
3501
|
provider: e.evmProvider,
|
|
3494
|
-
protocol:
|
|
3502
|
+
protocol: On.INJECT
|
|
3495
3503
|
}), e.dogecoinProvider && (n.dogecoin = {
|
|
3496
3504
|
provider: e.dogecoinProvider,
|
|
3497
|
-
protocol:
|
|
3505
|
+
protocol: On.INJECT
|
|
3498
3506
|
}), Object.keys(n).length === 0 ? null : {
|
|
3499
3507
|
info: e.info,
|
|
3500
3508
|
providers: n,
|
|
@@ -3502,25 +3510,25 @@ const jo = (e) => {
|
|
|
3502
3510
|
isEmbeddedWallet: !0,
|
|
3503
3511
|
logout: async () => e.logout()
|
|
3504
3512
|
};
|
|
3505
|
-
},
|
|
3506
|
-
const r = V(
|
|
3513
|
+
}, he = (e, n = []) => {
|
|
3514
|
+
const r = V(W)?.embeddedWallet, { wallet: s } = r || {
|
|
3507
3515
|
wallet: null
|
|
3508
|
-
}, o = B(() => n.length > 0 ? n :
|
|
3509
|
-
() =>
|
|
3516
|
+
}, o = B(() => n.length > 0 ? n : ye.recommonedWallets || [], [n]), c = B(
|
|
3517
|
+
() => Jo(o),
|
|
3510
3518
|
[o]
|
|
3511
3519
|
// Only recreate when connectors ID changes
|
|
3512
|
-
), a =
|
|
3513
|
-
queryKey:
|
|
3520
|
+
), a = Gr({
|
|
3521
|
+
queryKey: ko,
|
|
3514
3522
|
queryFn: c,
|
|
3515
3523
|
// Refetch on window focus to update wallet installation status
|
|
3516
3524
|
refetchOnWindowFocus: !0
|
|
3517
|
-
}), l = B(() => s ?
|
|
3525
|
+
}), l = B(() => s ? sr(s) : null, [s]), A = B(() => {
|
|
3518
3526
|
if (!a.data)
|
|
3519
3527
|
return;
|
|
3520
3528
|
const d = [...a.data.all], f = [...a.data.recommoned];
|
|
3521
3529
|
return l && (d.some((u) => u.info.uuid === l.info.uuid) || (d.push(l), f.push(l))), {
|
|
3522
|
-
all:
|
|
3523
|
-
recommoned:
|
|
3530
|
+
all: rt(d, e),
|
|
3531
|
+
recommoned: rt(f, e)
|
|
3524
3532
|
};
|
|
3525
3533
|
}, [a.data, l, e]);
|
|
3526
3534
|
return {
|
|
@@ -3530,8 +3538,8 @@ const jo = (e) => {
|
|
|
3530
3538
|
embeddedWallet: r,
|
|
3531
3539
|
embeddedWalletConnector: l
|
|
3532
3540
|
};
|
|
3533
|
-
},
|
|
3534
|
-
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = N(!1), s = V(
|
|
3541
|
+
}, ir = (e = {}) => {
|
|
3542
|
+
const { closeModalBeforeIframe: n = !0 } = e, [t, r] = N(!1), s = V(W), o = nr(), { embeddedWalletConnector: c } = he("all"), { handleSelectWallet: a } = Ke();
|
|
3535
3543
|
if (!s)
|
|
3536
3544
|
throw new Error("WalletConnectContext not found");
|
|
3537
3545
|
const l = (u) => {
|
|
@@ -3545,13 +3553,15 @@ const jo = (e) => {
|
|
|
3545
3553
|
!0
|
|
3546
3554
|
), r(!1);
|
|
3547
3555
|
}, A = async () => {
|
|
3548
|
-
a(c)
|
|
3556
|
+
a(c), o.wallet?.onLoginStatusChanged(({ type: u }) => {
|
|
3557
|
+
u === "logout" && s.disconnect?.();
|
|
3558
|
+
});
|
|
3549
3559
|
};
|
|
3550
3560
|
return {
|
|
3551
3561
|
isLoading: t,
|
|
3552
3562
|
handleEmailLogin: async (u) => {
|
|
3553
3563
|
try {
|
|
3554
|
-
const x =
|
|
3564
|
+
const x = ls(u);
|
|
3555
3565
|
if (x && l(x), r(!0), o.isLoading || !o.wallet)
|
|
3556
3566
|
return l("Embedded wallet initialization failed");
|
|
3557
3567
|
const C = o.wallet;
|
|
@@ -3559,8 +3569,8 @@ const jo = (e) => {
|
|
|
3559
3569
|
const m = await C?.loginByEmail?.({ email: u });
|
|
3560
3570
|
if (!m)
|
|
3561
3571
|
return l("Failed to login with email");
|
|
3562
|
-
const
|
|
3563
|
-
if (!
|
|
3572
|
+
const p = m;
|
|
3573
|
+
if (!p || !(await C.login(p)).isAvailable)
|
|
3564
3574
|
return l("Failed to login with email");
|
|
3565
3575
|
A();
|
|
3566
3576
|
} catch (x) {
|
|
@@ -3603,76 +3613,76 @@ const jo = (e) => {
|
|
|
3603
3613
|
}
|
|
3604
3614
|
};
|
|
3605
3615
|
};
|
|
3606
|
-
let oe = null,
|
|
3607
|
-
function
|
|
3616
|
+
let oe = null, or = null;
|
|
3617
|
+
function st(e) {
|
|
3608
3618
|
oe = e, console.log("setWagmiConfig>>>>", e);
|
|
3609
3619
|
}
|
|
3610
|
-
function
|
|
3620
|
+
function Fo() {
|
|
3611
3621
|
return oe;
|
|
3612
3622
|
}
|
|
3613
|
-
function
|
|
3614
|
-
console.log("setWagmiConnectors>>>>", e),
|
|
3623
|
+
function rn(e) {
|
|
3624
|
+
console.log("setWagmiConnectors>>>>", e), or = e;
|
|
3615
3625
|
}
|
|
3616
|
-
function
|
|
3617
|
-
return
|
|
3626
|
+
function cr() {
|
|
3627
|
+
return or;
|
|
3618
3628
|
}
|
|
3619
|
-
function
|
|
3629
|
+
function ar() {
|
|
3620
3630
|
if (typeof window > "u")
|
|
3621
3631
|
return oe;
|
|
3622
3632
|
if (oe)
|
|
3623
3633
|
try {
|
|
3624
|
-
return
|
|
3634
|
+
return Zn();
|
|
3625
3635
|
} catch {
|
|
3626
3636
|
return oe;
|
|
3627
3637
|
}
|
|
3628
3638
|
try {
|
|
3629
|
-
const e =
|
|
3639
|
+
const e = Zn();
|
|
3630
3640
|
return console.log("useWagmiConfig>>>>", e), e;
|
|
3631
3641
|
} catch (e) {
|
|
3632
3642
|
return console.log("useWagmiConfig error>>>>", e.message), null;
|
|
3633
3643
|
}
|
|
3634
3644
|
}
|
|
3635
|
-
function
|
|
3645
|
+
function ze() {
|
|
3636
3646
|
return oe !== null;
|
|
3637
3647
|
}
|
|
3638
|
-
function
|
|
3639
|
-
const e =
|
|
3640
|
-
return
|
|
3648
|
+
function En() {
|
|
3649
|
+
const e = ar();
|
|
3650
|
+
return ze() ? e !== null : !1;
|
|
3641
3651
|
}
|
|
3642
|
-
function
|
|
3643
|
-
if (console.log("isWagmiAvailable>>>>",
|
|
3652
|
+
function lr() {
|
|
3653
|
+
if (console.log("isWagmiAvailable>>>>", ze()), !ze())
|
|
3644
3654
|
return null;
|
|
3645
|
-
const e =
|
|
3655
|
+
const e = En();
|
|
3646
3656
|
console.log("inProvider>>>>", e);
|
|
3647
|
-
const n =
|
|
3657
|
+
const n = ns();
|
|
3648
3658
|
return e ? n : null;
|
|
3649
3659
|
}
|
|
3650
|
-
function
|
|
3651
|
-
if (!
|
|
3660
|
+
function Do() {
|
|
3661
|
+
if (!ze())
|
|
3652
3662
|
return null;
|
|
3653
|
-
const e =
|
|
3663
|
+
const e = En(), n = ts();
|
|
3654
3664
|
return e ? n : null;
|
|
3655
3665
|
}
|
|
3656
|
-
function
|
|
3657
|
-
if (!
|
|
3666
|
+
function Ho() {
|
|
3667
|
+
if (!ze())
|
|
3658
3668
|
return null;
|
|
3659
|
-
const e =
|
|
3669
|
+
const e = En(), n = rs();
|
|
3660
3670
|
return e ? n : null;
|
|
3661
3671
|
}
|
|
3662
|
-
function
|
|
3663
|
-
const r =
|
|
3672
|
+
function xn(e, n, t) {
|
|
3673
|
+
const r = Fo();
|
|
3664
3674
|
if (!r)
|
|
3665
3675
|
return null;
|
|
3666
|
-
const s =
|
|
3676
|
+
const s = cr(), o = t || s || r.connectors;
|
|
3667
3677
|
return !o || o.length === 0 ? null : o.find((c) => {
|
|
3668
3678
|
const a = (c.id || "").toLowerCase(), l = (c.name || "").toLowerCase(), A = e.toLowerCase(), d = n?.toLowerCase();
|
|
3669
3679
|
return a === A || a === d || l === A || l === d || a.includes(A) || l.includes(A);
|
|
3670
3680
|
}) || null;
|
|
3671
3681
|
}
|
|
3672
|
-
const
|
|
3682
|
+
const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
3673
3683
|
if (e)
|
|
3674
3684
|
throw n(t), new Error(t);
|
|
3675
|
-
},
|
|
3685
|
+
}, Qo = ({
|
|
3676
3686
|
walletState: e,
|
|
3677
3687
|
modalState: n,
|
|
3678
3688
|
setWalletState: t,
|
|
@@ -3680,22 +3690,22 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3680
3690
|
resetWalletState: s,
|
|
3681
3691
|
setMainView: o
|
|
3682
3692
|
}) => {
|
|
3683
|
-
const { currentProvider: c, currentWallet: a, isConnected: l, actionsLoading: A } = e, d =
|
|
3684
|
-
async (
|
|
3685
|
-
const { wallet: w, chainType: I } =
|
|
3693
|
+
const { currentProvider: c, currentWallet: a, isConnected: l, actionsLoading: A } = e, d = lr(), f = Do(), g = cr(), u = T(
|
|
3694
|
+
async (b) => {
|
|
3695
|
+
const { wallet: w, chainType: I } = b, j = w.providers[I]?.provider;
|
|
3686
3696
|
if (l && a?.info?.uuid === w.info.uuid && I === e.chainType)
|
|
3687
3697
|
throw r("Wallet is already connected"), new Error("Wallet is already connected");
|
|
3688
|
-
if (!j && !
|
|
3698
|
+
if (!j && !cn())
|
|
3689
3699
|
throw r("Provider not available for this chain type"), new Error("Provider not available for this chain type");
|
|
3690
|
-
r(""), t((
|
|
3691
|
-
...
|
|
3700
|
+
r(""), t((M) => ({
|
|
3701
|
+
...M,
|
|
3692
3702
|
isConnecting: !0,
|
|
3693
3703
|
currentWallet: w,
|
|
3694
3704
|
currentProvider: j,
|
|
3695
3705
|
actionsLoading: !0
|
|
3696
3706
|
}));
|
|
3697
3707
|
try {
|
|
3698
|
-
const
|
|
3708
|
+
const M = await Dr(
|
|
3699
3709
|
{
|
|
3700
3710
|
dappLink: typeof window < "u" ? window.location.href : ""
|
|
3701
3711
|
},
|
|
@@ -3705,15 +3715,15 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3705
3715
|
walletInfo: w.info
|
|
3706
3716
|
}
|
|
3707
3717
|
), E = {
|
|
3708
|
-
address:
|
|
3709
|
-
chainId:
|
|
3718
|
+
address: M.address,
|
|
3719
|
+
chainId: M.chainId || "",
|
|
3710
3720
|
chainType: I
|
|
3711
3721
|
};
|
|
3712
|
-
if (await
|
|
3722
|
+
if (await an(800), console.log("wagmiConnect", d), console.log("wagmiConnectors", g), d && I === k.EVM && g)
|
|
3713
3723
|
try {
|
|
3714
|
-
const L =
|
|
3724
|
+
const L = xn(w.info.uuid, w.info.rdns, g);
|
|
3715
3725
|
if (L) {
|
|
3716
|
-
const Y =
|
|
3726
|
+
const Y = M.chainId ? parseInt(M.chainId, 16) : void 0;
|
|
3717
3727
|
await d.connectAsync({
|
|
3718
3728
|
connector: L,
|
|
3719
3729
|
chainId: Y
|
|
@@ -3726,15 +3736,15 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3726
3736
|
...L,
|
|
3727
3737
|
isConnecting: !1,
|
|
3728
3738
|
isConnected: !0,
|
|
3729
|
-
address:
|
|
3730
|
-
chainId:
|
|
3739
|
+
address: M.address,
|
|
3740
|
+
chainId: M.chainId,
|
|
3731
3741
|
chainType: I,
|
|
3732
3742
|
balance: "0.0",
|
|
3733
3743
|
actionsLoading: !1,
|
|
3734
|
-
currentProvider:
|
|
3735
|
-
})),
|
|
3736
|
-
address:
|
|
3737
|
-
chainId:
|
|
3744
|
+
currentProvider: M.provider || j
|
|
3745
|
+
})), As({
|
|
3746
|
+
address: M.address,
|
|
3747
|
+
chainId: M.chainId,
|
|
3738
3748
|
chainType: I,
|
|
3739
3749
|
balance: "0.0",
|
|
3740
3750
|
walletInfo: {
|
|
@@ -3748,15 +3758,15 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3748
3758
|
requestAnimationFrame(() => {
|
|
3749
3759
|
setTimeout(L, 0);
|
|
3750
3760
|
});
|
|
3751
|
-
}), await
|
|
3761
|
+
}), await an(1e3), n.closeModal(), E.chainType === k.EVM && E.chainId !== _e.evm_1.chainId && (await Yn(_e.evm_1.chainId, {
|
|
3752
3762
|
chainType: k.EVM,
|
|
3753
3763
|
account: { address: E.address, chainId: E.chainId },
|
|
3754
3764
|
provider: j
|
|
3755
|
-
}), t((L) => ({ ...L, chainId:
|
|
3756
|
-
} catch (
|
|
3757
|
-
throw console.error("Connection failed:",
|
|
3765
|
+
}), t((L) => ({ ...L, chainId: _e.evm_1.chainId, chainType: I }))), E;
|
|
3766
|
+
} catch (M) {
|
|
3767
|
+
throw console.error("Connection failed:", M), r(M?.message || "Connection failed"), M;
|
|
3758
3768
|
} finally {
|
|
3759
|
-
t((
|
|
3769
|
+
t((M) => ({ ...M, isConnecting: !1, actionsLoading: !1 }));
|
|
3760
3770
|
}
|
|
3761
3771
|
},
|
|
3762
3772
|
[
|
|
@@ -3770,17 +3780,17 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3770
3780
|
g
|
|
3771
3781
|
]
|
|
3772
3782
|
), x = T(async () => {
|
|
3773
|
-
t((
|
|
3783
|
+
t((b) => ({ ...b, actionsLoading: !0 }));
|
|
3774
3784
|
try {
|
|
3775
3785
|
if (n.closeModal(), c?.disconnect?.(), f)
|
|
3776
3786
|
try {
|
|
3777
3787
|
f.disconnect();
|
|
3778
|
-
} catch (
|
|
3779
|
-
console.warn("Failed to disconnect wagmi connector:",
|
|
3788
|
+
} catch (b) {
|
|
3789
|
+
console.warn("Failed to disconnect wagmi connector:", b);
|
|
3780
3790
|
}
|
|
3781
3791
|
a?.isEmbeddedWallet && o(P.Logged), s();
|
|
3782
3792
|
} finally {
|
|
3783
|
-
t((
|
|
3793
|
+
t((b) => ({ ...b, actionsLoading: !1 }));
|
|
3784
3794
|
}
|
|
3785
3795
|
}, [
|
|
3786
3796
|
t,
|
|
@@ -3791,26 +3801,26 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3791
3801
|
o,
|
|
3792
3802
|
f
|
|
3793
3803
|
]), C = T(
|
|
3794
|
-
async ({ chainInfo:
|
|
3795
|
-
|
|
3796
|
-
const I =
|
|
3804
|
+
async ({ chainInfo: b, chainType: w }) => {
|
|
3805
|
+
sn(A, r);
|
|
3806
|
+
const I = b.id.toString(), j = {
|
|
3797
3807
|
chainType: w,
|
|
3798
3808
|
account: e,
|
|
3799
3809
|
provider: e.currentProvider
|
|
3800
|
-
},
|
|
3810
|
+
}, M = {
|
|
3801
3811
|
chainId: I,
|
|
3802
|
-
chainName:
|
|
3803
|
-
rpcUrls:
|
|
3812
|
+
chainName: b.name,
|
|
3813
|
+
rpcUrls: b.rpcUrls.default.http,
|
|
3804
3814
|
iconUrls: [],
|
|
3805
|
-
nativeCurrency:
|
|
3806
|
-
blockExplorerUrls: [
|
|
3815
|
+
nativeCurrency: b.nativeCurrency,
|
|
3816
|
+
blockExplorerUrls: [b.blockExplorers?.default.url || ""]
|
|
3807
3817
|
};
|
|
3808
3818
|
try {
|
|
3809
|
-
return t((E) => ({ ...E, actionsLoading: !0 })), await
|
|
3819
|
+
return t((E) => ({ ...E, actionsLoading: !0 })), await Yn(I, j), t((E) => ({ ...E, chainId: I, chainType: w })), !0;
|
|
3810
3820
|
} catch (E) {
|
|
3811
3821
|
if (E?.code === 4902)
|
|
3812
3822
|
try {
|
|
3813
|
-
return await
|
|
3823
|
+
return await Hr(M, j), !0;
|
|
3814
3824
|
} catch (L) {
|
|
3815
3825
|
throw console.error("Add chain failed:", L), L;
|
|
3816
3826
|
}
|
|
@@ -3821,8 +3831,8 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3821
3831
|
},
|
|
3822
3832
|
[t, e, A, r]
|
|
3823
3833
|
), m = T(
|
|
3824
|
-
async (
|
|
3825
|
-
if (
|
|
3834
|
+
async (b) => {
|
|
3835
|
+
if (sn(A, r), !e.isConnected || !e.currentProvider || !e.chainType)
|
|
3826
3836
|
throw new Error("Wallet not connected");
|
|
3827
3837
|
return t((w) => ({ ...w, actionsLoading: !0 })), new Promise((w, I) => {
|
|
3828
3838
|
const j = async () => {
|
|
@@ -3833,9 +3843,9 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3833
3843
|
version: "1",
|
|
3834
3844
|
nonce: Math.random().toString(36).substring(7),
|
|
3835
3845
|
issuedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
3836
|
-
}, ...
|
|
3846
|
+
}, ...b || {} };
|
|
3837
3847
|
try {
|
|
3838
|
-
const Y = await
|
|
3848
|
+
const Y = await qr(L, {
|
|
3839
3849
|
chainType: e.chainType,
|
|
3840
3850
|
account: {
|
|
3841
3851
|
address: e.address,
|
|
@@ -3856,13 +3866,13 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3856
3866
|
} finally {
|
|
3857
3867
|
t((Y) => ({ ...Y, actionsLoading: !1 }));
|
|
3858
3868
|
}
|
|
3859
|
-
},
|
|
3869
|
+
}, M = async () => {
|
|
3860
3870
|
I(new Error("User rejected the request.")), t((E) => ({ ...E, actionsLoading: !1 }));
|
|
3861
3871
|
};
|
|
3862
3872
|
n.setView(P.SignInWallet, {
|
|
3863
|
-
params:
|
|
3873
|
+
params: b,
|
|
3864
3874
|
onConfirm: j,
|
|
3865
|
-
onCancel:
|
|
3875
|
+
onCancel: M
|
|
3866
3876
|
}), n.openModal();
|
|
3867
3877
|
});
|
|
3868
3878
|
},
|
|
@@ -3879,14 +3889,14 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3879
3889
|
r,
|
|
3880
3890
|
n
|
|
3881
3891
|
]
|
|
3882
|
-
),
|
|
3883
|
-
async (
|
|
3884
|
-
if (
|
|
3892
|
+
), p = T(
|
|
3893
|
+
async (b) => {
|
|
3894
|
+
if (sn(A, r), !e.isConnected || !e.currentProvider || !e.chainType)
|
|
3885
3895
|
throw new Error("Wallet not connected");
|
|
3886
|
-
const { message: w, nonce: I } =
|
|
3896
|
+
const { message: w, nonce: I } = b;
|
|
3887
3897
|
if (!w || w.length === 0)
|
|
3888
3898
|
throw new Error("Message is required");
|
|
3889
|
-
return t((
|
|
3899
|
+
return t((M) => ({ ...M, actionsLoading: !0 })), await Qr(
|
|
3890
3900
|
{ message: w, nonce: I || Math.random().toString(36).substring(7) },
|
|
3891
3901
|
{
|
|
3892
3902
|
chainType: e.chainType,
|
|
@@ -3898,8 +3908,10 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3898
3908
|
walletInfo: e.currentWallet?.info,
|
|
3899
3909
|
isInstalled: e.currentWallet?.isInstalled
|
|
3900
3910
|
}
|
|
3901
|
-
).
|
|
3902
|
-
|
|
3911
|
+
).catch((M) => {
|
|
3912
|
+
throw console.error("signMessage error:", M), M;
|
|
3913
|
+
}).finally(() => {
|
|
3914
|
+
t((M) => ({ ...M, actionsLoading: !1 }));
|
|
3903
3915
|
});
|
|
3904
3916
|
},
|
|
3905
3917
|
[
|
|
@@ -3915,7 +3927,7 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3915
3927
|
r
|
|
3916
3928
|
]
|
|
3917
3929
|
), h = T(
|
|
3918
|
-
(
|
|
3930
|
+
(b) => t((w) => ({ ...w, currentWallet: b })),
|
|
3919
3931
|
[t]
|
|
3920
3932
|
);
|
|
3921
3933
|
return {
|
|
@@ -3923,14 +3935,14 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3923
3935
|
disconnect: x,
|
|
3924
3936
|
switchChain: C,
|
|
3925
3937
|
signInWithWallet: m,
|
|
3926
|
-
signMessage:
|
|
3938
|
+
signMessage: p,
|
|
3927
3939
|
// signTransaction,
|
|
3928
3940
|
// signAndSendTransaction,
|
|
3929
3941
|
// sendTransaction,
|
|
3930
3942
|
_setCurrentWallet: h
|
|
3931
3943
|
};
|
|
3932
|
-
},
|
|
3933
|
-
const e = V(
|
|
3944
|
+
}, ea = () => {
|
|
3945
|
+
const e = V(W);
|
|
3934
3946
|
if (!e)
|
|
3935
3947
|
throw new Error("useWalletConnect must be used within WalletConnectProvider");
|
|
3936
3948
|
return {
|
|
@@ -3947,11 +3959,11 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3947
3959
|
// Disconnect
|
|
3948
3960
|
disconnect: e.disconnect
|
|
3949
3961
|
};
|
|
3950
|
-
},
|
|
3951
|
-
const e = V(
|
|
3962
|
+
}, qo = () => {
|
|
3963
|
+
const e = V(W), { handleSelectWallet: n } = Ke();
|
|
3952
3964
|
if (!e)
|
|
3953
3965
|
throw new Error("WalletConnectContext not found");
|
|
3954
|
-
const t =
|
|
3966
|
+
const t = nr(), r = sr(t?.wallet);
|
|
3955
3967
|
return /* @__PURE__ */ i(S, { title: "Logged In", hideCloseButton: !0, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
|
|
3956
3968
|
/* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
|
|
3957
3969
|
/* @__PURE__ */ i("p", { className: "text-lg font-semibold text-foreground", children: "You are logged in" }),
|
|
@@ -3966,12 +3978,12 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3966
3978
|
}, children: "Logout" })
|
|
3967
3979
|
] })
|
|
3968
3980
|
] }) });
|
|
3969
|
-
},
|
|
3970
|
-
const { links: n } =
|
|
3981
|
+
}, Ge = ({ extendContent: e }) => {
|
|
3982
|
+
const { links: n } = ye;
|
|
3971
3983
|
return /* @__PURE__ */ v("div", { className: "flex flex-col gap-2", children: [
|
|
3972
|
-
e || /* @__PURE__ */ i(
|
|
3984
|
+
e || /* @__PURE__ */ i(Ko, {}),
|
|
3973
3985
|
/* @__PURE__ */ v(
|
|
3974
|
-
|
|
3986
|
+
Ee,
|
|
3975
3987
|
{
|
|
3976
3988
|
color: "primary",
|
|
3977
3989
|
target: "_blank",
|
|
@@ -3979,33 +3991,33 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
3979
3991
|
className: "text-xs text-[#57534E] flex justify-center items-center gap-1",
|
|
3980
3992
|
children: [
|
|
3981
3993
|
/* @__PURE__ */ i("span", { children: "Powered by" }),
|
|
3982
|
-
/* @__PURE__ */ i(
|
|
3994
|
+
/* @__PURE__ */ i(Br, {})
|
|
3983
3995
|
]
|
|
3984
3996
|
}
|
|
3985
3997
|
)
|
|
3986
3998
|
] });
|
|
3987
|
-
},
|
|
3988
|
-
const { links: e } =
|
|
3999
|
+
}, Ko = () => {
|
|
4000
|
+
const { links: e } = ye;
|
|
3989
4001
|
return /* @__PURE__ */ v("div", { className: "text-xs text-[#A9A29D] text-center", children: [
|
|
3990
4002
|
/* @__PURE__ */ i("p", { children: "By connecting your wallet, you agree to" }),
|
|
3991
4003
|
/* @__PURE__ */ v("p", { children: [
|
|
3992
4004
|
"our",
|
|
3993
4005
|
" ",
|
|
3994
|
-
/* @__PURE__ */ i(
|
|
4006
|
+
/* @__PURE__ */ i(Ee, { color: "primary", className: "text-xs", underline: "hover", href: e.termsOfService, target: "_blank", children: "Terms of Service" }),
|
|
3995
4007
|
" ",
|
|
3996
4008
|
"&",
|
|
3997
4009
|
" ",
|
|
3998
|
-
/* @__PURE__ */ i(
|
|
4010
|
+
/* @__PURE__ */ i(Ee, { color: "primary", className: "text-xs", underline: "hover", href: e.privacyPolicy, target: "_blank", children: "Privacy Policy" }),
|
|
3999
4011
|
"."
|
|
4000
4012
|
] })
|
|
4001
4013
|
] });
|
|
4002
|
-
},
|
|
4014
|
+
}, Go = ({ wallet: e, onSelectWallet: n }) => {
|
|
4003
4015
|
const { info: t, isInstalled: r } = e, s = B(() => {
|
|
4004
4016
|
if (!r) return null;
|
|
4005
4017
|
const o = t?.uuid === "walletConnect";
|
|
4006
4018
|
return /* @__PURE__ */ i("span", { className: "text-xs line-height-[140px] font-normal text-[#A9A29D]", children: o ? "QR Code" : "Installed" });
|
|
4007
4019
|
}, [t?.uuid, r]);
|
|
4008
|
-
return /* @__PURE__ */ i(
|
|
4020
|
+
return /* @__PURE__ */ i(yr, { isPressable: !0, isHoverable: !0, shadow: "none", radius: "sm", onPress: () => n?.(e), children: /* @__PURE__ */ v(hr, { className: "flex flex-col items-center gap-1 px-0 py-2", children: [
|
|
4009
4021
|
/* @__PURE__ */ i("div", { className: "p-1 h-[56px]", children: /* @__PURE__ */ i(ne, { src: t.icon, alt: t.name, width: 48, height: 48, removeWrapper: !0, radius: "md" }) }),
|
|
4010
4022
|
/* @__PURE__ */ v("div", { className: "flex flex-col justify-center items-center scale-80 text-center", children: [
|
|
4011
4023
|
/* @__PURE__ */ i("span", { className: "text-sm font-medium", children: t.name }),
|
|
@@ -4013,7 +4025,7 @@ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
|
|
|
4013
4025
|
] })
|
|
4014
4026
|
] }) }, t.uuid);
|
|
4015
4027
|
};
|
|
4016
|
-
function
|
|
4028
|
+
function Uo({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
4017
4029
|
return n ? /* @__PURE__ */ i(
|
|
4018
4030
|
te,
|
|
4019
4031
|
{
|
|
@@ -4024,15 +4036,15 @@ function Go({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
|
4024
4036
|
},
|
|
4025
4037
|
className: "m-auto"
|
|
4026
4038
|
}
|
|
4027
|
-
) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "grid grid-cols-4", children: e.map((r) => /* @__PURE__ */ i(
|
|
4039
|
+
) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "grid grid-cols-4", children: e.map((r) => /* @__PURE__ */ i(Go, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
|
|
4028
4040
|
}
|
|
4029
|
-
const
|
|
4041
|
+
const Ro = {
|
|
4030
4042
|
evm: { tabKey: "evm", chainKey: "evm" },
|
|
4031
4043
|
solana: { tabKey: "solana", chainKey: "solana" },
|
|
4032
4044
|
aptos: { tabKey: "aptos", chainKey: "aptos" },
|
|
4033
4045
|
dogecoin: { tabKey: "doge", chainKey: "dogecoin" }
|
|
4034
|
-
},
|
|
4035
|
-
const t = V(
|
|
4046
|
+
}, _o = ({ selectedKey: e, onSelectionChange: n }) => {
|
|
4047
|
+
const t = V(W), r = B(() => {
|
|
4036
4048
|
const o = t?.config?.chains || {}, c = [
|
|
4037
4049
|
{
|
|
4038
4050
|
key: "all",
|
|
@@ -4041,7 +4053,7 @@ const Uo = {
|
|
|
4041
4053
|
}
|
|
4042
4054
|
];
|
|
4043
4055
|
return Object.keys(o).forEach((a) => {
|
|
4044
|
-
const l =
|
|
4056
|
+
const l = Ro[a];
|
|
4045
4057
|
if (l) {
|
|
4046
4058
|
const A = O[l.chainKey];
|
|
4047
4059
|
c.push({
|
|
@@ -4053,30 +4065,30 @@ const Uo = {
|
|
|
4053
4065
|
}), c;
|
|
4054
4066
|
}, [t?.config?.chains]), s = (o) => o.icon ? /* @__PURE__ */ i(le, { icon: o.icon, className: "size-6 overflow-hidden rounded-full" }) : o.title;
|
|
4055
4067
|
return /* @__PURE__ */ i(
|
|
4056
|
-
|
|
4068
|
+
Mr,
|
|
4057
4069
|
{
|
|
4058
4070
|
variant: "bordered",
|
|
4059
4071
|
fullWidth: !0,
|
|
4060
4072
|
selectedKey: e,
|
|
4061
4073
|
onSelectionChange: (o) => n(o),
|
|
4062
|
-
children: r.map((o) => /* @__PURE__ */ i(
|
|
4074
|
+
children: r.map((o) => /* @__PURE__ */ i(Wr, { title: s(o) }, o.key))
|
|
4063
4075
|
}
|
|
4064
4076
|
);
|
|
4065
|
-
},
|
|
4066
|
-
const { info: t, isInstalled: r } = e, s = B(() => r ? t?.uuid === "walletConnect" ? /* @__PURE__ */ i(
|
|
4077
|
+
}, $o = ({ wallet: e, onSelectWallet: n }) => {
|
|
4078
|
+
const { info: t, isInstalled: r } = e, s = B(() => r ? t?.uuid === "walletConnect" ? /* @__PURE__ */ i(Sn, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "QR Code" }) : /* @__PURE__ */ i(Sn, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "Installed" }) : null, [t?.uuid, r]);
|
|
4067
4079
|
return /* @__PURE__ */ i(
|
|
4068
|
-
|
|
4080
|
+
dr,
|
|
4069
4081
|
{
|
|
4070
4082
|
onPress: () => n?.(e),
|
|
4071
|
-
startContent: /* @__PURE__ */ i(
|
|
4083
|
+
startContent: /* @__PURE__ */ i(Ar, { icon: t?.icon, title: t?.name }),
|
|
4072
4084
|
endContent: s
|
|
4073
4085
|
},
|
|
4074
4086
|
e.info.uuid
|
|
4075
4087
|
);
|
|
4076
|
-
},
|
|
4088
|
+
}, Ar = ({ icon: e, title: n }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
|
|
4077
4089
|
typeof e == "string" ? /* @__PURE__ */ i(ne, { src: e, alt: n, width: 32, height: 32, radius: "md" }) : e,
|
|
4078
4090
|
/* @__PURE__ */ i("span", { className: "text-sm font-medium text-foreground", children: n })
|
|
4079
|
-
] }),
|
|
4091
|
+
] }), dr = (e) => /* @__PURE__ */ i(
|
|
4080
4092
|
X,
|
|
4081
4093
|
{
|
|
4082
4094
|
fullWidth: !0,
|
|
@@ -4089,7 +4101,7 @@ const Uo = {
|
|
|
4089
4101
|
children: /* @__PURE__ */ i("span", {})
|
|
4090
4102
|
}
|
|
4091
4103
|
);
|
|
4092
|
-
function
|
|
4104
|
+
function ec({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
4093
4105
|
return n ? /* @__PURE__ */ i(
|
|
4094
4106
|
te,
|
|
4095
4107
|
{
|
|
@@ -4100,27 +4112,27 @@ function $o({ wallets: e, loading: n, onSelectWallet: t }) {
|
|
|
4100
4112
|
circle2: "border-b-primary"
|
|
4101
4113
|
}
|
|
4102
4114
|
}
|
|
4103
|
-
) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ i(
|
|
4115
|
+
) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ i($o, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
|
|
4104
4116
|
}
|
|
4105
|
-
const
|
|
4106
|
-
const e = V(
|
|
4117
|
+
const nc = () => {
|
|
4118
|
+
const e = V(W), { handleSelectWallet: n } = Ke(), { data: t, isLoading: r } = he(k.All, e?.config?.connectors), [s, o] = B(() => {
|
|
4107
4119
|
const a = t?.recommoned || [], l = t?.all || [];
|
|
4108
|
-
return
|
|
4120
|
+
return fs(a, l);
|
|
4109
4121
|
}, [t]);
|
|
4110
4122
|
return /* @__PURE__ */ i(S, { title: "Connect your wallet", children: /* @__PURE__ */ v("div", { className: "flex flex-col gap-4", children: [
|
|
4111
|
-
/* @__PURE__ */ i("div", { className: "space-y-2 h-[312px] max-h-[312px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: /* @__PURE__ */ i("div", { className: `flex flex-col gap-2 h-full ${r ? "justify-center" : ""}`, children: /* @__PURE__ */ i(
|
|
4123
|
+
/* @__PURE__ */ i("div", { className: "space-y-2 h-[312px] max-h-[312px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: /* @__PURE__ */ i("div", { className: `flex flex-col gap-2 h-full ${r ? "justify-center" : ""}`, children: /* @__PURE__ */ i(ec, { loading: r, wallets: s, onSelectWallet: n }) }) }),
|
|
4112
4124
|
r ? null : /* @__PURE__ */ i(
|
|
4113
|
-
|
|
4125
|
+
dr,
|
|
4114
4126
|
{
|
|
4115
4127
|
onPress: () => e?.modal.setView(P.WalletSearch),
|
|
4116
|
-
startContent: /* @__PURE__ */ i(
|
|
4128
|
+
startContent: /* @__PURE__ */ i(Ar, { icon: /* @__PURE__ */ i(Vr, {}), title: "Search more wallets" }),
|
|
4117
4129
|
endContent: /* @__PURE__ */ i("span", { className: "text-[#A9A29D] text-sm", children: o.length })
|
|
4118
4130
|
}
|
|
4119
4131
|
),
|
|
4120
|
-
/* @__PURE__ */ i(
|
|
4132
|
+
/* @__PURE__ */ i(Ge, {})
|
|
4121
4133
|
] }) });
|
|
4122
|
-
},
|
|
4123
|
-
const e = V(
|
|
4134
|
+
}, tc = zn, rc = () => {
|
|
4135
|
+
const e = V(W), { handleSelectWallet: n } = Ke(), t = e?.modal.state, r = B(() => t?.chainType || "all", [t?.chainType]), { data: s, isLoading: o } = he(r, e?.config?.connectors), c = B(() => s?.all || [], [s]), [a, l] = N(""), { isKeyboardVisible: A, keyboardHeight: d } = jo(), f = B(() => c.filter((C) => C.info?.name?.toLowerCase().includes(a.toLowerCase())).filter((C) => !C.isEmbeddedWallet), [c, a]), g = Lo([r]), u = B(() => A && d > 0 ? `${Math.max(180, 340 - d * 0.6)}px` : "340px", [A, d]), x = T(
|
|
4124
4136
|
(C) => {
|
|
4125
4137
|
e?.modal.setCurrentViewState({ chainType: C });
|
|
4126
4138
|
},
|
|
@@ -4128,19 +4140,19 @@ const ec = () => {
|
|
|
4128
4140
|
);
|
|
4129
4141
|
return /* @__PURE__ */ i(S, { title: "All wallets", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ v("div", { className: "flex flex-col gap-4 min-h-0", children: [
|
|
4130
4142
|
/* @__PURE__ */ i(
|
|
4131
|
-
|
|
4143
|
+
_o,
|
|
4132
4144
|
{
|
|
4133
4145
|
selectedKey: t?.chainType || "all",
|
|
4134
4146
|
onSelectionChange: (C) => x(C)
|
|
4135
4147
|
}
|
|
4136
4148
|
),
|
|
4137
4149
|
/* @__PURE__ */ i(
|
|
4138
|
-
|
|
4150
|
+
tc,
|
|
4139
4151
|
{
|
|
4140
4152
|
placeholder: "Search wallet",
|
|
4141
4153
|
value: a,
|
|
4142
4154
|
onChange: (C) => l(C.target.value),
|
|
4143
|
-
startContent: /* @__PURE__ */ i(
|
|
4155
|
+
startContent: /* @__PURE__ */ i(Xr, {}),
|
|
4144
4156
|
classNames: {
|
|
4145
4157
|
inputWrapper: "rounded-full h-11"
|
|
4146
4158
|
}
|
|
@@ -4156,7 +4168,7 @@ const ec = () => {
|
|
|
4156
4168
|
maxHeight: u
|
|
4157
4169
|
},
|
|
4158
4170
|
children: /* @__PURE__ */ i("div", { className: `flex flex-col gap-2 h-full ${o ? "justify-center" : ""}`, children: /* @__PURE__ */ i(
|
|
4159
|
-
|
|
4171
|
+
Uo,
|
|
4160
4172
|
{
|
|
4161
4173
|
loading: o,
|
|
4162
4174
|
wallets: f,
|
|
@@ -4165,15 +4177,15 @@ const ec = () => {
|
|
|
4165
4177
|
) })
|
|
4166
4178
|
}
|
|
4167
4179
|
),
|
|
4168
|
-
/* @__PURE__ */ i(
|
|
4180
|
+
/* @__PURE__ */ i(Ge, {})
|
|
4169
4181
|
] }) });
|
|
4170
|
-
},
|
|
4171
|
-
const e = V(
|
|
4182
|
+
}, sc = () => "doge", ic = () => {
|
|
4183
|
+
const e = V(W);
|
|
4172
4184
|
if (!e)
|
|
4173
4185
|
return { themeMode: "dark", themeType: "doge_dark" };
|
|
4174
|
-
const { themeMode: n } = e.config || { themeMode: "dark" }, t =
|
|
4186
|
+
const { themeMode: n } = e.config || { themeMode: "dark" }, t = sc(e.config?.clientId || "");
|
|
4175
4187
|
return { themeMode: n, themeType: t, isDark: n === "dark" };
|
|
4176
|
-
},
|
|
4188
|
+
}, pn = ({
|
|
4177
4189
|
text: e = "or",
|
|
4178
4190
|
className: n = "",
|
|
4179
4191
|
lineClassName: t = "bg-[#292524]",
|
|
@@ -4182,7 +4194,7 @@ const ec = () => {
|
|
|
4182
4194
|
/* @__PURE__ */ i("div", { className: `flex-1 h-px ${t}` }),
|
|
4183
4195
|
/* @__PURE__ */ i("span", { className: r, children: e }),
|
|
4184
4196
|
/* @__PURE__ */ i("div", { className: `flex-1 h-px ${t}` })
|
|
4185
|
-
] }),
|
|
4197
|
+
] }), fr = ({ isLoading: e = !1, text: n = "Loading..." }) => e ? /* @__PURE__ */ i("div", { className: "absolute inset-0 backdrop-blur-sm z-50 flex items-center justify-center", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-3", children: [
|
|
4186
4198
|
/* @__PURE__ */ i(
|
|
4187
4199
|
te,
|
|
4188
4200
|
{
|
|
@@ -4194,7 +4206,7 @@ const ec = () => {
|
|
|
4194
4206
|
}
|
|
4195
4207
|
),
|
|
4196
4208
|
/* @__PURE__ */ i("span", { className: "text-foreground text-sm font-medium", children: n })
|
|
4197
|
-
] }) }) : null,
|
|
4209
|
+
] }) }) : null, ur = ({ className: e, width: n = 24, height: t = 24 }) => /* @__PURE__ */ v(
|
|
4198
4210
|
"svg",
|
|
4199
4211
|
{
|
|
4200
4212
|
width: n,
|
|
@@ -4234,7 +4246,7 @@ const ec = () => {
|
|
|
4234
4246
|
)
|
|
4235
4247
|
]
|
|
4236
4248
|
}
|
|
4237
|
-
),
|
|
4249
|
+
), gr = ({ className: e, width: n = 24, height: t = 24, fill: r = "white" }) => /* @__PURE__ */ i(
|
|
4238
4250
|
"svg",
|
|
4239
4251
|
{
|
|
4240
4252
|
width: n,
|
|
@@ -4245,15 +4257,15 @@ const ec = () => {
|
|
|
4245
4257
|
className: e,
|
|
4246
4258
|
children: /* @__PURE__ */ i("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" })
|
|
4247
4259
|
}
|
|
4248
|
-
),
|
|
4249
|
-
const e = V(
|
|
4260
|
+
), oc = zn, cc = () => {
|
|
4261
|
+
const e = V(W), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } = ir({
|
|
4250
4262
|
closeModalBeforeIframe: !0
|
|
4251
4263
|
});
|
|
4252
4264
|
if (!e)
|
|
4253
4265
|
throw new Error("WalletConnectContext not found");
|
|
4254
4266
|
const [o, c] = N(e.modal.state?.email || "");
|
|
4255
4267
|
Z(() => {
|
|
4256
|
-
e.modal.state?.error && (
|
|
4268
|
+
e.modal.state?.error && (Nr({
|
|
4257
4269
|
title: e.modal.state.error,
|
|
4258
4270
|
color: "danger",
|
|
4259
4271
|
timeout: 3e3,
|
|
@@ -4264,24 +4276,24 @@ const ec = () => {
|
|
|
4264
4276
|
await t(o);
|
|
4265
4277
|
}, l = () => {
|
|
4266
4278
|
e.modal.setView(P.WalletSearch);
|
|
4267
|
-
}, { isDark: A } =
|
|
4279
|
+
}, { isDark: A } = ic();
|
|
4268
4280
|
return console.log("context.modal.state: ", n, e.modal.state?.isLoading), /* @__PURE__ */ v(
|
|
4269
4281
|
S,
|
|
4270
4282
|
{
|
|
4271
4283
|
title: "Log in or sign up",
|
|
4272
4284
|
headerRightContent: /* @__PURE__ */ v(
|
|
4273
|
-
|
|
4285
|
+
Ee,
|
|
4274
4286
|
{
|
|
4275
4287
|
className: "text-sm text-[#78716C] hover:text-primary cursor-pointer flex items-center gap-1",
|
|
4276
4288
|
onPress: l,
|
|
4277
4289
|
children: [
|
|
4278
4290
|
/* @__PURE__ */ i("span", { children: "Or connect a wallet" }),
|
|
4279
|
-
/* @__PURE__ */ i(
|
|
4291
|
+
/* @__PURE__ */ i(wn, {})
|
|
4280
4292
|
]
|
|
4281
4293
|
}
|
|
4282
4294
|
),
|
|
4283
4295
|
children: [
|
|
4284
|
-
/* @__PURE__ */ i(
|
|
4296
|
+
/* @__PURE__ */ i(fr, { isLoading: n || e.modal.state?.isLoading }),
|
|
4285
4297
|
/* @__PURE__ */ v("div", { className: "flex flex-col justify-between min-h-0 flex-1 pt-8", children: [
|
|
4286
4298
|
/* @__PURE__ */ v("div", { className: "flex flex-col gap-6", children: [
|
|
4287
4299
|
/* @__PURE__ */ v("div", { className: "flex gap-3 pb-6", children: [
|
|
@@ -4293,7 +4305,7 @@ const ec = () => {
|
|
|
4293
4305
|
variant: "bordered",
|
|
4294
4306
|
className: "h-12 rounded-2xl border-primary border-2 bg-primary-50",
|
|
4295
4307
|
onPress: s,
|
|
4296
|
-
startContent: /* @__PURE__ */ i(
|
|
4308
|
+
startContent: /* @__PURE__ */ i(gr, { width: 20, height: 20, fill: A ? "white" : "black" }),
|
|
4297
4309
|
children: /* @__PURE__ */ i("span", { className: "text-base font-medium", children: "Twitter" })
|
|
4298
4310
|
}
|
|
4299
4311
|
),
|
|
@@ -4305,13 +4317,13 @@ const ec = () => {
|
|
|
4305
4317
|
variant: "solid",
|
|
4306
4318
|
className: "h-12 rounded-2xl bg-background",
|
|
4307
4319
|
onPress: r,
|
|
4308
|
-
startContent: /* @__PURE__ */ i(
|
|
4320
|
+
startContent: /* @__PURE__ */ i(ur, { width: 20, height: 20 }),
|
|
4309
4321
|
children: /* @__PURE__ */ i("span", { className: "text-base font-medium", children: "Google" })
|
|
4310
4322
|
}
|
|
4311
4323
|
)
|
|
4312
4324
|
] }),
|
|
4313
4325
|
/* @__PURE__ */ i(
|
|
4314
|
-
|
|
4326
|
+
pn,
|
|
4315
4327
|
{
|
|
4316
4328
|
lineClassName: "h-[0.5px] bg-[#ebebf4]",
|
|
4317
4329
|
textClassName: "text-[#8989ab] text-xs",
|
|
@@ -4320,7 +4332,7 @@ const ec = () => {
|
|
|
4320
4332
|
),
|
|
4321
4333
|
/* @__PURE__ */ v("div", { className: "flex flex-col gap-5 items-center pb-8", children: [
|
|
4322
4334
|
/* @__PURE__ */ i(
|
|
4323
|
-
|
|
4335
|
+
oc,
|
|
4324
4336
|
{
|
|
4325
4337
|
type: "email",
|
|
4326
4338
|
placeholder: "Enter your email",
|
|
@@ -4333,7 +4345,7 @@ const ec = () => {
|
|
|
4333
4345
|
autoComplete: "new-password",
|
|
4334
4346
|
onKeyDown: (d) => {
|
|
4335
4347
|
if (d.key === "Enter") {
|
|
4336
|
-
if (!
|
|
4348
|
+
if (!wt(o))
|
|
4337
4349
|
return;
|
|
4338
4350
|
a();
|
|
4339
4351
|
}
|
|
@@ -4354,28 +4366,28 @@ const ec = () => {
|
|
|
4354
4366
|
)
|
|
4355
4367
|
] })
|
|
4356
4368
|
] }),
|
|
4357
|
-
/* @__PURE__ */ i("div", { className: "mt-5", children: /* @__PURE__ */ i(
|
|
4369
|
+
/* @__PURE__ */ i("div", { className: "mt-5", children: /* @__PURE__ */ i(Ge, {}) })
|
|
4358
4370
|
] })
|
|
4359
4371
|
]
|
|
4360
4372
|
}
|
|
4361
4373
|
);
|
|
4362
|
-
},
|
|
4363
|
-
const { walletState: e } =
|
|
4364
|
-
return
|
|
4374
|
+
}, ac = "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+BQKBy1KhRn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Qfiqt2bsThI4NoYqrJeMMfsCPmRJ3hE3SKhkTUObN/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==", lc = () => {
|
|
4375
|
+
const { walletState: e } = jn(), { chainType: n, chainId: t } = e, { switchChain: r } = Tn();
|
|
4376
|
+
return In({
|
|
4365
4377
|
mutationKey: ["switch-chain", n, t],
|
|
4366
4378
|
mutationFn: async (s) => r(s)
|
|
4367
4379
|
});
|
|
4368
|
-
},
|
|
4369
|
-
const { mutateAsync: t, isPending: r } =
|
|
4380
|
+
}, it = ({ chainType: e, chain: n }) => {
|
|
4381
|
+
const { mutateAsync: t, isPending: r } = lc(), s = V(W), { connectWallet: o } = qe();
|
|
4370
4382
|
if (!n || !s)
|
|
4371
4383
|
throw new Error(`Chain ${e} not found`);
|
|
4372
4384
|
const { currentWallet: c } = s.account;
|
|
4373
4385
|
if (!c)
|
|
4374
4386
|
throw new Error("Current wallet not found");
|
|
4375
|
-
const { chainType: a, chainId: l } =
|
|
4387
|
+
const { chainType: a, chainId: l } = Tn(), A = Number(BigInt(l || "0").toString()), d = B(() => {
|
|
4376
4388
|
const x = a?.toLowerCase() === e?.toLowerCase();
|
|
4377
4389
|
return a === "evm" ? x && A === n?.id : x;
|
|
4378
|
-
}, [n?.id, A, e, a]), f = B(() => c?.providers?.[e]?.provider, [c, e]), g = B(() => d ? /* @__PURE__ */ i("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ i(
|
|
4390
|
+
}, [n?.id, A, e, a]), f = B(() => c?.providers?.[e]?.provider, [c, e]), g = B(() => d ? /* @__PURE__ */ i("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ i(At, { className: "size-3", color: "white" }) }) : r ? /* @__PURE__ */ i(
|
|
4379
4391
|
te,
|
|
4380
4392
|
{
|
|
4381
4393
|
size: "sm",
|
|
@@ -4384,7 +4396,7 @@ const ec = () => {
|
|
|
4384
4396
|
circle2: "border-b-primary"
|
|
4385
4397
|
}
|
|
4386
4398
|
}
|
|
4387
|
-
) : /* @__PURE__ */ i(
|
|
4399
|
+
) : /* @__PURE__ */ i(wn, { className: "size-4" }), [r, d]), u = () => {
|
|
4388
4400
|
if (!(r || d)) {
|
|
4389
4401
|
if (a !== e) {
|
|
4390
4402
|
f ? o(c, e) : s.modal.setView(P.ChangeNetwork, n);
|
|
@@ -4416,8 +4428,8 @@ const ec = () => {
|
|
|
4416
4428
|
children: /* @__PURE__ */ i("span", { className: "flex-1 text-left text-sm font-medium", children: n?.chainInfo?.name })
|
|
4417
4429
|
}
|
|
4418
4430
|
);
|
|
4419
|
-
},
|
|
4420
|
-
const { chainType: n } =
|
|
4431
|
+
}, Ac = ({ chains: e }) => {
|
|
4432
|
+
const { chainType: n } = Tn(), { currentChains: t, otherChains: r } = B(() => {
|
|
4421
4433
|
const s = [], o = [];
|
|
4422
4434
|
return e.map((c) => {
|
|
4423
4435
|
n?.toLowerCase() === c.chainType?.toLowerCase() ? s.push(c) : o.push(c);
|
|
@@ -4433,22 +4445,22 @@ const ec = () => {
|
|
|
4433
4445
|
}), /* @__PURE__ */ v("div", { className: "flex flex-col w-full", children: [
|
|
4434
4446
|
t[0]?.chainType === "evm" && /* @__PURE__ */ v("div", { className: "text-sm flex gap-2 mt-2 mb-4 items-center", children: [
|
|
4435
4447
|
/* @__PURE__ */ i("span", { children: "EVM network" }),
|
|
4436
|
-
/* @__PURE__ */ i("img", { src:
|
|
4448
|
+
/* @__PURE__ */ i("img", { src: ac, alt: "Evm chains", className: "h-4 w-auto" })
|
|
4437
4449
|
] }),
|
|
4438
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: t?.map((s, o) => /* @__PURE__ */ i(
|
|
4450
|
+
/* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: t?.map((s, o) => /* @__PURE__ */ i(it, { chainType: s.chainType, chain: s }, `${s.name}-${o}`)) }),
|
|
4439
4451
|
/* @__PURE__ */ i("div", { className: "text-sm flex gap-2 mt-2 mb-4", children: /* @__PURE__ */ i("span", { children: "Other network" }) }),
|
|
4440
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: r?.map((s, o) => /* @__PURE__ */ i(
|
|
4452
|
+
/* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: r?.map((s, o) => /* @__PURE__ */ i(it, { chainType: s.chainType, chain: s }, `${s.name}-${o}`)) })
|
|
4441
4453
|
] });
|
|
4442
|
-
},
|
|
4443
|
-
const e = V(
|
|
4454
|
+
}, dc = () => {
|
|
4455
|
+
const e = V(W);
|
|
4444
4456
|
if (!e)
|
|
4445
4457
|
throw new Error("WalletConnectContext not found");
|
|
4446
4458
|
const { currentWallet: n } = e.account;
|
|
4447
4459
|
if (!n)
|
|
4448
4460
|
throw new Error("Current wallet not found");
|
|
4449
|
-
const t =
|
|
4450
|
-
return /* @__PURE__ */ i(S, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ i(
|
|
4451
|
-
},
|
|
4461
|
+
const t = $t(e.config?.chains, n?.providers);
|
|
4462
|
+
return /* @__PURE__ */ i(S, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ i(Ac, { chains: t }) }) });
|
|
4463
|
+
}, fc = ({ chainType: e, onSelect: n }) => {
|
|
4452
4464
|
const t = O[e];
|
|
4453
4465
|
if (!t)
|
|
4454
4466
|
throw new Error(`Chain ${e} not found`);
|
|
@@ -4462,24 +4474,24 @@ const ec = () => {
|
|
|
4462
4474
|
radius: "sm",
|
|
4463
4475
|
className: "justify-between",
|
|
4464
4476
|
startContent: /* @__PURE__ */ i(le, { icon: t.icon, className: "size-6 overflow-hidden rounded-full" }),
|
|
4465
|
-
endContent: /* @__PURE__ */ i(
|
|
4477
|
+
endContent: /* @__PURE__ */ i(wn, { className: "size-4" }),
|
|
4466
4478
|
onPress: n,
|
|
4467
4479
|
children: /* @__PURE__ */ i("span", { className: "flex-1 text-left text-sm font-medium", children: O[e].name })
|
|
4468
4480
|
}
|
|
4469
4481
|
);
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4482
|
+
}, uc = ({ providers: e, onSelect: n }) => /* @__PURE__ */ i("div", { className: "flex flex-col gap-2 w-full pb-6", children: e.map((t, r) => /* @__PURE__ */ i(
|
|
4483
|
+
fc,
|
|
4472
4484
|
{
|
|
4473
4485
|
chainType: t.chainType,
|
|
4474
4486
|
provider: t.provider,
|
|
4475
4487
|
onSelect: () => n(t.chainType)
|
|
4476
4488
|
},
|
|
4477
4489
|
`${t.chainType}-${t.protocol}-${r}`
|
|
4478
|
-
)) }),
|
|
4479
|
-
const e = V(
|
|
4490
|
+
)) }), gc = () => {
|
|
4491
|
+
const e = V(W);
|
|
4480
4492
|
if (!e)
|
|
4481
4493
|
throw new Error("WalletConnectContext not found");
|
|
4482
|
-
const { connectWallet: n } =
|
|
4494
|
+
const { connectWallet: n } = qe(), { currentWallet: t } = e.account;
|
|
4483
4495
|
if (!t)
|
|
4484
4496
|
throw new Error("Current wallet not found");
|
|
4485
4497
|
const r = B(() => t?.info, [t?.info]), s = B(() => {
|
|
@@ -4506,15 +4518,15 @@ const ec = () => {
|
|
|
4506
4518
|
/* @__PURE__ */ i("br", {}),
|
|
4507
4519
|
"Please select the network you'd like to connect to."
|
|
4508
4520
|
] }),
|
|
4509
|
-
/* @__PURE__ */ i(
|
|
4521
|
+
/* @__PURE__ */ i(uc, { providers: s, onSelect: o })
|
|
4510
4522
|
] }) });
|
|
4511
|
-
}, gc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDE1MCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGZvcmVpZ25PYmplY3QgeD0iMjEuMDg4MiIgeT0iMjEuNTg0MyIgd2lkdGg9IjEwNi45MjgiIGhlaWdodD0iMTA2LjkzNSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tkcm9wLWZpbHRlcjpibHVyKDAuNjlweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyXzBfMTQxXzExMDJfY2xpcF9wYXRoKTtoZWlnaHQ6MTAwJTt3aWR0aDoxMDAlIj48L2Rpdj48L2ZvcmVpZ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MT0iNTAuOTEyOSIgeDI9Ijk4LjU4NDMiIHkyPSI2NS41ODY0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNCQkZGQTEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQUNGRThCIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==", mc = () => {
|
|
4524
|
+
const [e, n] = N(!1), [t, r] = N(null), s = V(W);
|
|
4513
4525
|
if (!s)
|
|
4514
4526
|
throw new Error("WalletConnectContext not found");
|
|
4515
4527
|
const o = () => {
|
|
4516
4528
|
s.modal.state?.onCancel?.(), s.modal.closeModal();
|
|
4517
|
-
}, c = ce(null), { mutate: a, isPending: l } =
|
|
4529
|
+
}, c = ce(null), { mutate: a, isPending: l } = In({
|
|
4518
4530
|
mutationKey: ["sign-in-wallet"],
|
|
4519
4531
|
mutationFn: async () => s.modal.state?.onConfirm?.(),
|
|
4520
4532
|
onSuccess: () => {
|
|
@@ -4529,7 +4541,7 @@ const ec = () => {
|
|
|
4529
4541
|
}, 1e3)), () => {
|
|
4530
4542
|
c.current && (clearTimeout(c.current), c.current = null);
|
|
4531
4543
|
}), [e, s.modal]), /* @__PURE__ */ i(S, { onClose: o, title: "Verify wallet ownership", onBack: o, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-6 gap-6 flex-1", children: [
|
|
4532
|
-
/* @__PURE__ */ i(ne, { src: e ?
|
|
4544
|
+
/* @__PURE__ */ i(ne, { src: e ? Cc : vc, alt: "Sign In Icon", className: "rounded-full" }),
|
|
4533
4545
|
/* @__PURE__ */ v("div", { className: "text-sm text-center", children: [
|
|
4534
4546
|
/* @__PURE__ */ i("p", { className: "text-foreground", children: e ? "Ownership verified" : "Verify yourself as the owner of this wallet" }),
|
|
4535
4547
|
t ? /* @__PURE__ */ i("p", { className: "text-foreground/60", children: t }) : e ? null : /* @__PURE__ */ i("p", { className: "text-foreground/60", children: "Please sign the message request in your wallet to continue." })
|
|
@@ -4557,19 +4569,19 @@ const ec = () => {
|
|
|
4557
4569
|
}
|
|
4558
4570
|
) })
|
|
4559
4571
|
] }) });
|
|
4560
|
-
},
|
|
4561
|
-
const [e, n] = N(""), t = V(
|
|
4572
|
+
}, xc = zn, pc = () => {
|
|
4573
|
+
const [e, n] = N(""), t = V(W), { isLoading: r, handleEmailLogin: s, handleGoogleLogin: o, handleXLogin: c } = ir({
|
|
4562
4574
|
closeModalBeforeIframe: !0
|
|
4563
4575
|
});
|
|
4564
4576
|
if (!t)
|
|
4565
4577
|
throw new Error("WalletConnectContext not found");
|
|
4566
4578
|
return /* @__PURE__ */ v(S, { title: "Log in or sign up", children: [
|
|
4567
|
-
/* @__PURE__ */ i(
|
|
4579
|
+
/* @__PURE__ */ i(fr, { isLoading: r }),
|
|
4568
4580
|
/* @__PURE__ */ v("div", { className: "flex flex-col justify-between min-h-0 flex-1 pb-4", children: [
|
|
4569
4581
|
/* @__PURE__ */ v("div", { className: "flex flex-col gap-6 px-4", children: [
|
|
4570
4582
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
|
|
4571
4583
|
/* @__PURE__ */ i(
|
|
4572
|
-
|
|
4584
|
+
xc,
|
|
4573
4585
|
{
|
|
4574
4586
|
type: "email",
|
|
4575
4587
|
placeholder: "Enter your email",
|
|
@@ -4606,7 +4618,7 @@ const ec = () => {
|
|
|
4606
4618
|
}
|
|
4607
4619
|
)
|
|
4608
4620
|
] }),
|
|
4609
|
-
/* @__PURE__ */ i(
|
|
4621
|
+
/* @__PURE__ */ i(pn, {}),
|
|
4610
4622
|
/* @__PURE__ */ v("div", { className: "flex flex-col gap-3", children: [
|
|
4611
4623
|
/* @__PURE__ */ i(
|
|
4612
4624
|
X,
|
|
@@ -4616,7 +4628,7 @@ const ec = () => {
|
|
|
4616
4628
|
variant: "bordered",
|
|
4617
4629
|
className: "h-11 rounded-full bg-[#1C1917] border-[#44403C] text-white hover:bg-[#44403C] shadow-[inset_0px_0px_16px_4px_#EAAC0814]",
|
|
4618
4630
|
onPress: o,
|
|
4619
|
-
startContent: /* @__PURE__ */ i(
|
|
4631
|
+
startContent: /* @__PURE__ */ i(ur, {}),
|
|
4620
4632
|
children: "Continue with Google"
|
|
4621
4633
|
}
|
|
4622
4634
|
),
|
|
@@ -4628,12 +4640,12 @@ const ec = () => {
|
|
|
4628
4640
|
variant: "bordered",
|
|
4629
4641
|
className: "h-11 rounded-full bg-[#1C1917] border-[#44403C] text-white hover:bg-[#44403C] shadow-[inset_0px_0px_16px_4px_#EAAC0814]",
|
|
4630
4642
|
onPress: c,
|
|
4631
|
-
startContent: /* @__PURE__ */ i(
|
|
4643
|
+
startContent: /* @__PURE__ */ i(gr, {}),
|
|
4632
4644
|
children: "Continue with X"
|
|
4633
4645
|
}
|
|
4634
4646
|
)
|
|
4635
4647
|
] }),
|
|
4636
|
-
/* @__PURE__ */ i(
|
|
4648
|
+
/* @__PURE__ */ i(pn, {}),
|
|
4637
4649
|
/* @__PURE__ */ i(
|
|
4638
4650
|
X,
|
|
4639
4651
|
{
|
|
@@ -4648,18 +4660,18 @@ const ec = () => {
|
|
|
4648
4660
|
}
|
|
4649
4661
|
)
|
|
4650
4662
|
] }),
|
|
4651
|
-
/* @__PURE__ */ i("div", { className: "mt-6 px-4", children: /* @__PURE__ */ i(
|
|
4663
|
+
/* @__PURE__ */ i("div", { className: "mt-6 px-4", children: /* @__PURE__ */ i(Ge, {}) })
|
|
4652
4664
|
] })
|
|
4653
4665
|
] });
|
|
4654
|
-
},
|
|
4655
|
-
const e = V(
|
|
4666
|
+
}, bc = "Please reselect the network you want to switch to", zc = Pt.unsupported, wc = () => {
|
|
4667
|
+
const e = V(W);
|
|
4656
4668
|
if (!e)
|
|
4657
4669
|
throw new Error("WalletConnectContext not found");
|
|
4658
4670
|
const n = e.modal.state?.name || "-", t = () => {
|
|
4659
4671
|
e?.modal.backView();
|
|
4660
4672
|
};
|
|
4661
4673
|
return /* @__PURE__ */ i(S, { title: "Select network", onBack: t, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
|
|
4662
|
-
/* @__PURE__ */ i("div", { className: "flex justify-center", children: /* @__PURE__ */ i(le, { icon:
|
|
4674
|
+
/* @__PURE__ */ i("div", { className: "flex justify-center", children: /* @__PURE__ */ i(le, { icon: zc, className: "size-14 overflow-hidden rounded-full" }) }),
|
|
4663
4675
|
/* @__PURE__ */ v("div", { className: "mt-6 flex flex-col justify-center items-center", children: [
|
|
4664
4676
|
/* @__PURE__ */ v("div", { className: "text-t1 text-sm text-center", children: [
|
|
4665
4677
|
"Current Wallet Does Not Support ",
|
|
@@ -4668,18 +4680,18 @@ const ec = () => {
|
|
|
4668
4680
|
n,
|
|
4669
4681
|
" Chain"
|
|
4670
4682
|
] }),
|
|
4671
|
-
/* @__PURE__ */ i("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children:
|
|
4683
|
+
/* @__PURE__ */ i("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children: bc })
|
|
4672
4684
|
] }),
|
|
4673
4685
|
/* @__PURE__ */ i(X, { className: "w-full my-4", onPress: t, children: "Got it" })
|
|
4674
4686
|
] }) });
|
|
4675
|
-
},
|
|
4676
|
-
const e = V(
|
|
4687
|
+
}, Ic = () => {
|
|
4688
|
+
const e = V(W);
|
|
4677
4689
|
if (!e)
|
|
4678
4690
|
throw new Error("WalletConnectContext not found");
|
|
4679
4691
|
const { currentWallet: n } = e.account;
|
|
4680
4692
|
if (!n)
|
|
4681
4693
|
throw new Error("Current wallet not found");
|
|
4682
|
-
const [t, r] = N(""), { copy: s, copied: o } =
|
|
4694
|
+
const [t, r] = N(""), { copy: s, copied: o } = Pn(), c = () => {
|
|
4683
4695
|
s(t);
|
|
4684
4696
|
}, a = e.modal.state?.chainType || "evm", l = B(() => n.providers?.[a]?.provider, [n, a]);
|
|
4685
4697
|
return Z(() => {
|
|
@@ -4705,7 +4717,7 @@ const ec = () => {
|
|
|
4705
4717
|
}, title: "Wallet Connect", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
|
|
4706
4718
|
/* @__PURE__ */ i("p", { className: "text-sm text-foreground/80 text-center", children: "Scan the QR code with your wallet camera" }),
|
|
4707
4719
|
/* @__PURE__ */ i(
|
|
4708
|
-
|
|
4720
|
+
er,
|
|
4709
4721
|
{
|
|
4710
4722
|
content: t,
|
|
4711
4723
|
logo: n.info.icon,
|
|
@@ -4714,43 +4726,43 @@ const ec = () => {
|
|
|
4714
4726
|
),
|
|
4715
4727
|
/* @__PURE__ */ i(X, { variant: "light", size: "lg", fullWidth: !0, onPress: c, children: o ? "Copied!" : "Copy Link" })
|
|
4716
4728
|
] }) });
|
|
4717
|
-
},
|
|
4718
|
-
[P.Loading]: () => /* @__PURE__ */ i(
|
|
4719
|
-
[P.Logged]: () => /* @__PURE__ */ i(
|
|
4720
|
-
[P.Error]: () => /* @__PURE__ */ i(
|
|
4721
|
-
[P.Connecting]: () => /* @__PURE__ */ i(
|
|
4722
|
-
[P.WalletList]: () => /* @__PURE__ */ i(
|
|
4723
|
-
[P.WalletSearch]: () => /* @__PURE__ */ i(
|
|
4724
|
-
[P.WalletSelectProviders]: () => /* @__PURE__ */ i(
|
|
4725
|
-
[P.WalletInstallGuide]: () => /* @__PURE__ */ i(
|
|
4726
|
-
[P.Account]: () => /* @__PURE__ */ i(
|
|
4727
|
-
[P.SelectChains]: () => /* @__PURE__ */ i(
|
|
4728
|
-
[P.ChangeNetwork]: () => /* @__PURE__ */ i(
|
|
4729
|
-
[P.SignInWallet]: () => /* @__PURE__ */ i(
|
|
4730
|
-
[P.WalletConnect]: () => /* @__PURE__ */ i(
|
|
4731
|
-
[P.UnsupportChain]: () => /* @__PURE__ */ i(
|
|
4732
|
-
[P.SocialLogin]: () => /* @__PURE__ */ i(
|
|
4733
|
-
[P.MyDogeSocialLogin]: () => /* @__PURE__ */ i(
|
|
4734
|
-
},
|
|
4735
|
-
const { hideHeader: n, hideBody: t, onBack: r, ...s } = e, o = B(() => r ? /* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: r, radius: "full", children: /* @__PURE__ */ i(
|
|
4729
|
+
}, vr = {
|
|
4730
|
+
[P.Loading]: () => /* @__PURE__ */ i(No, {}),
|
|
4731
|
+
[P.Logged]: () => /* @__PURE__ */ i(qo, {}),
|
|
4732
|
+
[P.Error]: () => /* @__PURE__ */ i(Bo, {}),
|
|
4733
|
+
[P.Connecting]: () => /* @__PURE__ */ i(Po, {}),
|
|
4734
|
+
[P.WalletList]: () => /* @__PURE__ */ i(nc, {}),
|
|
4735
|
+
[P.WalletSearch]: () => /* @__PURE__ */ i(rc, {}),
|
|
4736
|
+
[P.WalletSelectProviders]: () => /* @__PURE__ */ i(gc, {}),
|
|
4737
|
+
[P.WalletInstallGuide]: () => /* @__PURE__ */ i(Xo, {}),
|
|
4738
|
+
[P.Account]: () => /* @__PURE__ */ i(zo, {}),
|
|
4739
|
+
[P.SelectChains]: () => /* @__PURE__ */ i(dc, {}),
|
|
4740
|
+
[P.ChangeNetwork]: () => /* @__PURE__ */ i(wo, {}),
|
|
4741
|
+
[P.SignInWallet]: () => /* @__PURE__ */ i(mc, {}),
|
|
4742
|
+
[P.WalletConnect]: () => /* @__PURE__ */ i(Ic, {}),
|
|
4743
|
+
[P.UnsupportChain]: () => /* @__PURE__ */ i(wc, {}),
|
|
4744
|
+
[P.SocialLogin]: () => /* @__PURE__ */ i(pc, {}),
|
|
4745
|
+
[P.MyDogeSocialLogin]: () => /* @__PURE__ */ i(cc, {})
|
|
4746
|
+
}, Pc = (e) => {
|
|
4747
|
+
const { hideHeader: n, hideBody: t, onBack: r, ...s } = e, o = B(() => r ? /* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: r, radius: "full", children: /* @__PURE__ */ i(at, {}) }) : null, [r]), c = B(() => n ? null : /* @__PURE__ */ v(jr, { className: "flex items-center justify-between", children: [
|
|
4736
4748
|
o,
|
|
4737
4749
|
/* @__PURE__ */ i("span", { children: e.title }),
|
|
4738
|
-
/* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: e.onClose, radius: "full", children: /* @__PURE__ */ i(
|
|
4739
|
-
] }), [n, e.title, e.onClose, o]), a = B(() => t ? null : /* @__PURE__ */ i(
|
|
4740
|
-
return /* @__PURE__ */ i(
|
|
4750
|
+
/* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: e.onClose, radius: "full", children: /* @__PURE__ */ i(lt, {}) })
|
|
4751
|
+
] }), [n, e.title, e.onClose, o]), a = B(() => t ? null : /* @__PURE__ */ i(Tr, { className: "px-5", children: e.children }), [t, e.children]);
|
|
4752
|
+
return /* @__PURE__ */ i(dt, { ...s, hideCloseButton: !0, children: /* @__PURE__ */ v(Er, { className: "w-[448px]", children: [
|
|
4741
4753
|
c,
|
|
4742
4754
|
a
|
|
4743
4755
|
] }) });
|
|
4744
|
-
},
|
|
4745
|
-
const e = V(
|
|
4756
|
+
}, Bc = () => {
|
|
4757
|
+
const e = V(W);
|
|
4746
4758
|
if (!e)
|
|
4747
4759
|
return null;
|
|
4748
4760
|
const { modal: n, connection: t } = e, r = () => {
|
|
4749
|
-
const s =
|
|
4761
|
+
const s = vr[n.view];
|
|
4750
4762
|
return s ? s(e) : null;
|
|
4751
4763
|
};
|
|
4752
4764
|
return /* @__PURE__ */ i(
|
|
4753
|
-
|
|
4765
|
+
Pc,
|
|
4754
4766
|
{
|
|
4755
4767
|
hideHeader: !0,
|
|
4756
4768
|
isOpen: n.isOpen,
|
|
@@ -4760,10 +4772,10 @@ const ec = () => {
|
|
|
4760
4772
|
children: r()
|
|
4761
4773
|
}
|
|
4762
4774
|
);
|
|
4763
|
-
},
|
|
4775
|
+
}, yc = ({ config: e }) => {
|
|
4764
4776
|
const [n, t] = N(null), [r, s] = N(!1), [o, c] = N(null), [a, l] = N(null), [A, d] = N(!0);
|
|
4765
4777
|
return Z(() => {
|
|
4766
|
-
const f =
|
|
4778
|
+
const f = es.getInstance();
|
|
4767
4779
|
(async () => {
|
|
4768
4780
|
d(!0);
|
|
4769
4781
|
const u = await f.init({ ...e, tomoClientId: e.clientId });
|
|
@@ -4775,21 +4787,21 @@ const ec = () => {
|
|
|
4775
4787
|
console.log("initEmbeddedWallet result: ", u), t(f), s(x || !1), c(C ?? null), l(m), d(!1);
|
|
4776
4788
|
})();
|
|
4777
4789
|
}, [e]), { wallet: n, isAvailable: r, message: o, connectedInfo: a, isLoading: A };
|
|
4778
|
-
},
|
|
4790
|
+
}, hc = ({
|
|
4779
4791
|
setWalletState: e,
|
|
4780
4792
|
currentWallet: n,
|
|
4781
4793
|
isConnected: t,
|
|
4782
4794
|
embeddedWallet: r,
|
|
4783
4795
|
wagmiConfig: s
|
|
4784
4796
|
}) => {
|
|
4785
|
-
const o = ce(!1), { data: c } =
|
|
4797
|
+
const o = ce(!1), { data: c } = he("all"), a = B(() => c?.all || [], [c?.all]), l = lr(), A = Ho();
|
|
4786
4798
|
Z(() => {
|
|
4787
4799
|
if (o.current || t || n)
|
|
4788
4800
|
return;
|
|
4789
4801
|
const d = async () => {
|
|
4790
4802
|
const f = r?.wallet;
|
|
4791
4803
|
try {
|
|
4792
|
-
const g =
|
|
4804
|
+
const g = ds();
|
|
4793
4805
|
if (!g) {
|
|
4794
4806
|
o.current = !0;
|
|
4795
4807
|
return;
|
|
@@ -4814,33 +4826,33 @@ const ec = () => {
|
|
|
4814
4826
|
console.log("No connectedInfo available for embedded wallet"), o.current = !0;
|
|
4815
4827
|
return;
|
|
4816
4828
|
}
|
|
4817
|
-
let
|
|
4818
|
-
if (m.evmProvider?.connected === !0 ?
|
|
4829
|
+
let p = null;
|
|
4830
|
+
if (m.evmProvider?.connected === !0 ? p = "evm" : m.solanaProvider?.connected === !0 ? p = "solana" : m.dogeProvider?.connected === !0 && (p = "dogecoin"), !p) {
|
|
4819
4831
|
console.log("No connected provider found in connectedInfo"), o.current = !0;
|
|
4820
4832
|
return;
|
|
4821
4833
|
}
|
|
4822
|
-
const h = u?.providers[
|
|
4834
|
+
const h = u?.providers[p]?.provider;
|
|
4823
4835
|
if (!h) {
|
|
4824
|
-
console.log("Provider not available for connected chain type:",
|
|
4836
|
+
console.log("Provider not available for connected chain type:", p), o.current = !0;
|
|
4825
4837
|
return;
|
|
4826
4838
|
}
|
|
4827
|
-
const
|
|
4839
|
+
const b = m[`${p}Provider`]?.address?.[0] || g.address;
|
|
4828
4840
|
if (console.log("Restoring embedded wallet connection", {
|
|
4829
|
-
connectedChainType:
|
|
4830
|
-
connectedAddress:
|
|
4841
|
+
connectedChainType: p,
|
|
4842
|
+
connectedAddress: b,
|
|
4831
4843
|
connectedInfo: m
|
|
4832
4844
|
}), e((w) => ({
|
|
4833
4845
|
...w,
|
|
4834
4846
|
isConnected: !0,
|
|
4835
|
-
address:
|
|
4847
|
+
address: b,
|
|
4836
4848
|
chainId: g.chainId,
|
|
4837
|
-
chainType:
|
|
4849
|
+
chainType: p,
|
|
4838
4850
|
balance: g.balance || "0.0",
|
|
4839
4851
|
currentWallet: u,
|
|
4840
4852
|
currentProvider: h
|
|
4841
|
-
})), l &&
|
|
4853
|
+
})), l && p === k.EVM && s && A && !A.isConnected)
|
|
4842
4854
|
try {
|
|
4843
|
-
const w =
|
|
4855
|
+
const w = xn(
|
|
4844
4856
|
u.info.uuid,
|
|
4845
4857
|
u.info.rdns,
|
|
4846
4858
|
s.connectors
|
|
@@ -4859,8 +4871,8 @@ const ec = () => {
|
|
|
4859
4871
|
} else
|
|
4860
4872
|
try {
|
|
4861
4873
|
const m = await C.request?.({ method: "eth_accounts" });
|
|
4862
|
-
if (m && m.length > 0 && m[0].toLowerCase() === g.address.toLowerCase() && (console.log("Restoring plugin wallet connection for:", u.info.name), e((
|
|
4863
|
-
...
|
|
4874
|
+
if (m && m.length > 0 && m[0].toLowerCase() === g.address.toLowerCase() && (console.log("Restoring plugin wallet connection for:", u.info.name), e((p) => ({
|
|
4875
|
+
...p,
|
|
4864
4876
|
isConnected: !0,
|
|
4865
4877
|
address: g.address,
|
|
4866
4878
|
chainId: g.chainId,
|
|
@@ -4870,20 +4882,20 @@ const ec = () => {
|
|
|
4870
4882
|
currentProvider: C
|
|
4871
4883
|
})), l && g.chainType === k.EVM && s && A && !A.isConnected))
|
|
4872
4884
|
try {
|
|
4873
|
-
const
|
|
4885
|
+
const p = xn(
|
|
4874
4886
|
u.info.uuid,
|
|
4875
4887
|
u.info.rdns,
|
|
4876
4888
|
s.connectors
|
|
4877
4889
|
);
|
|
4878
|
-
if (
|
|
4890
|
+
if (p && p.ready) {
|
|
4879
4891
|
const h = g.chainId ? parseInt(g.chainId, 16) : void 0;
|
|
4880
4892
|
await l.connectAsync({
|
|
4881
|
-
connector:
|
|
4893
|
+
connector: p,
|
|
4882
4894
|
chainId: h
|
|
4883
4895
|
});
|
|
4884
4896
|
}
|
|
4885
|
-
} catch (
|
|
4886
|
-
console.warn("Failed to restore wagmi connection:",
|
|
4897
|
+
} catch (p) {
|
|
4898
|
+
console.warn("Failed to restore wagmi connection:", p);
|
|
4887
4899
|
}
|
|
4888
4900
|
o.current = !0;
|
|
4889
4901
|
} catch (m) {
|
|
@@ -4906,12 +4918,12 @@ const ec = () => {
|
|
|
4906
4918
|
A
|
|
4907
4919
|
]);
|
|
4908
4920
|
};
|
|
4909
|
-
function
|
|
4921
|
+
function Mc(e) {
|
|
4910
4922
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4911
4923
|
}
|
|
4912
|
-
var
|
|
4913
|
-
function
|
|
4914
|
-
return
|
|
4924
|
+
var on = { exports: {} }, ot;
|
|
4925
|
+
function Wc() {
|
|
4926
|
+
return ot || (ot = 1, function(e) {
|
|
4915
4927
|
var n = Object.prototype.hasOwnProperty, t = "~";
|
|
4916
4928
|
function r() {
|
|
4917
4929
|
}
|
|
@@ -4950,9 +4962,9 @@ function Mc() {
|
|
|
4950
4962
|
}, a.prototype.emit = function(A, d, f, g, u, x) {
|
|
4951
4963
|
var C = t ? t + A : A;
|
|
4952
4964
|
if (!this._events[C]) return !1;
|
|
4953
|
-
var m = this._events[C],
|
|
4965
|
+
var m = this._events[C], p = arguments.length, h, b;
|
|
4954
4966
|
if (m.fn) {
|
|
4955
|
-
switch (m.once && this.removeListener(A, m.fn, void 0, !0),
|
|
4967
|
+
switch (m.once && this.removeListener(A, m.fn, void 0, !0), p) {
|
|
4956
4968
|
case 1:
|
|
4957
4969
|
return m.fn.call(m.context), !0;
|
|
4958
4970
|
case 2:
|
|
@@ -4966,29 +4978,29 @@ function Mc() {
|
|
|
4966
4978
|
case 6:
|
|
4967
4979
|
return m.fn.call(m.context, d, f, g, u, x), !0;
|
|
4968
4980
|
}
|
|
4969
|
-
for (
|
|
4970
|
-
h[
|
|
4981
|
+
for (b = 1, h = new Array(p - 1); b < p; b++)
|
|
4982
|
+
h[b - 1] = arguments[b];
|
|
4971
4983
|
m.fn.apply(m.context, h);
|
|
4972
4984
|
} else {
|
|
4973
4985
|
var w = m.length, I;
|
|
4974
|
-
for (
|
|
4975
|
-
switch (m[
|
|
4986
|
+
for (b = 0; b < w; b++)
|
|
4987
|
+
switch (m[b].once && this.removeListener(A, m[b].fn, void 0, !0), p) {
|
|
4976
4988
|
case 1:
|
|
4977
|
-
m[
|
|
4989
|
+
m[b].fn.call(m[b].context);
|
|
4978
4990
|
break;
|
|
4979
4991
|
case 2:
|
|
4980
|
-
m[
|
|
4992
|
+
m[b].fn.call(m[b].context, d);
|
|
4981
4993
|
break;
|
|
4982
4994
|
case 3:
|
|
4983
|
-
m[
|
|
4995
|
+
m[b].fn.call(m[b].context, d, f);
|
|
4984
4996
|
break;
|
|
4985
4997
|
case 4:
|
|
4986
|
-
m[
|
|
4998
|
+
m[b].fn.call(m[b].context, d, f, g);
|
|
4987
4999
|
break;
|
|
4988
5000
|
default:
|
|
4989
|
-
if (!h) for (I = 1, h = new Array(
|
|
5001
|
+
if (!h) for (I = 1, h = new Array(p - 1); I < p; I++)
|
|
4990
5002
|
h[I - 1] = arguments[I];
|
|
4991
|
-
m[
|
|
5003
|
+
m[b].fn.apply(m[b].context, h);
|
|
4992
5004
|
}
|
|
4993
5005
|
}
|
|
4994
5006
|
return !0;
|
|
@@ -5005,7 +5017,7 @@ function Mc() {
|
|
|
5005
5017
|
if (x.fn)
|
|
5006
5018
|
x.fn === d && (!g || x.once) && (!f || x.context === f) && c(this, u);
|
|
5007
5019
|
else {
|
|
5008
|
-
for (var C = 0, m = [],
|
|
5020
|
+
for (var C = 0, m = [], p = x.length; C < p; C++)
|
|
5009
5021
|
(x[C].fn !== d || g && !x[C].once || f && x[C].context !== f) && m.push(x[C]);
|
|
5010
5022
|
m.length ? this._events[u] = m.length === 1 ? m[0] : m : c(this, u);
|
|
5011
5023
|
}
|
|
@@ -5014,11 +5026,11 @@ function Mc() {
|
|
|
5014
5026
|
var d;
|
|
5015
5027
|
return A ? (d = t ? t + A : A, this._events[d] && c(this, d)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
5016
5028
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = t, a.EventEmitter = a, e.exports = a;
|
|
5017
|
-
}(
|
|
5029
|
+
}(on)), on.exports;
|
|
5018
5030
|
}
|
|
5019
|
-
var
|
|
5020
|
-
const
|
|
5021
|
-
class
|
|
5031
|
+
var Vc = Wc();
|
|
5032
|
+
const Xc = /* @__PURE__ */ Mc(Vc);
|
|
5033
|
+
class Nc {
|
|
5022
5034
|
constructor(n) {
|
|
5023
5035
|
Object.defineProperty(this, "uid", {
|
|
5024
5036
|
enumerable: !0,
|
|
@@ -5029,7 +5041,7 @@ class Xc {
|
|
|
5029
5041
|
enumerable: !0,
|
|
5030
5042
|
configurable: !0,
|
|
5031
5043
|
writable: !0,
|
|
5032
|
-
value: new
|
|
5044
|
+
value: new Xc()
|
|
5033
5045
|
});
|
|
5034
5046
|
}
|
|
5035
5047
|
on(n, t) {
|
|
@@ -5049,34 +5061,34 @@ class Xc {
|
|
|
5049
5061
|
return this._emitter.listenerCount(n);
|
|
5050
5062
|
}
|
|
5051
5063
|
}
|
|
5052
|
-
function
|
|
5053
|
-
return new
|
|
5064
|
+
function jc(e) {
|
|
5065
|
+
return new Nc(e);
|
|
5054
5066
|
}
|
|
5055
|
-
const
|
|
5056
|
-
let
|
|
5057
|
-
function
|
|
5058
|
-
if (!
|
|
5059
|
-
|
|
5060
|
-
for (let n = 0; n <
|
|
5061
|
-
|
|
5067
|
+
const bn = 256;
|
|
5068
|
+
let Ve = bn, Xe;
|
|
5069
|
+
function Tc(e = 11) {
|
|
5070
|
+
if (!Xe || Ve + e > bn * 2) {
|
|
5071
|
+
Xe = "", Ve = 0;
|
|
5072
|
+
for (let n = 0; n < bn; n++)
|
|
5073
|
+
Xe += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
|
5062
5074
|
}
|
|
5063
|
-
return
|
|
5075
|
+
return Xe.substring(Ve, Ve++ + e);
|
|
5064
5076
|
}
|
|
5065
|
-
const
|
|
5066
|
-
var
|
|
5077
|
+
const Ec = "2.22.1", Lc = () => `@wagmi/core@${Ec}`;
|
|
5078
|
+
var Cr = function(e, n, t, r) {
|
|
5067
5079
|
if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
5068
5080
|
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");
|
|
5069
5081
|
return t === "m" ? r : t === "a" ? r.call(e) : r ? r.value : n.get(e);
|
|
5070
|
-
},
|
|
5071
|
-
class
|
|
5082
|
+
}, ke, mr;
|
|
5083
|
+
class we extends Error {
|
|
5072
5084
|
get docsBaseUrl() {
|
|
5073
5085
|
return "https://wagmi.sh/core";
|
|
5074
5086
|
}
|
|
5075
5087
|
get version() {
|
|
5076
|
-
return
|
|
5088
|
+
return Lc();
|
|
5077
5089
|
}
|
|
5078
5090
|
constructor(n, t = {}) {
|
|
5079
|
-
super(),
|
|
5091
|
+
super(), ke.add(this), Object.defineProperty(this, "details", {
|
|
5080
5092
|
enumerable: !0,
|
|
5081
5093
|
configurable: !0,
|
|
5082
5094
|
writable: !0,
|
|
@@ -5102,7 +5114,7 @@ class ze extends Error {
|
|
|
5102
5114
|
writable: !0,
|
|
5103
5115
|
value: "WagmiCoreError"
|
|
5104
5116
|
});
|
|
5105
|
-
const r = t.cause instanceof
|
|
5117
|
+
const r = t.cause instanceof we ? t.cause.details : t.cause?.message ? t.cause.message : t.details, s = t.cause instanceof we && t.cause.docsPath || t.docsPath;
|
|
5106
5118
|
this.message = [
|
|
5107
5119
|
n || "An error occurred.",
|
|
5108
5120
|
"",
|
|
@@ -5116,13 +5128,13 @@ class ze extends Error {
|
|
|
5116
5128
|
`), t.cause && (this.cause = t.cause), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.shortMessage = n;
|
|
5117
5129
|
}
|
|
5118
5130
|
walk(n) {
|
|
5119
|
-
return
|
|
5131
|
+
return Cr(this, ke, "m", mr).call(this, this, n);
|
|
5120
5132
|
}
|
|
5121
5133
|
}
|
|
5122
|
-
|
|
5123
|
-
return t?.(n) ? n : n.cause ?
|
|
5134
|
+
ke = /* @__PURE__ */ new WeakSet(), mr = function e(n, t) {
|
|
5135
|
+
return t?.(n) ? n : n.cause ? Cr(this, ke, "m", e).call(this, n.cause, t) : n;
|
|
5124
5136
|
};
|
|
5125
|
-
class
|
|
5137
|
+
class Sc extends we {
|
|
5126
5138
|
constructor() {
|
|
5127
5139
|
super("Chain not configured."), Object.defineProperty(this, "name", {
|
|
5128
5140
|
enumerable: !0,
|
|
@@ -5132,7 +5144,7 @@ class Lc extends ze {
|
|
|
5132
5144
|
});
|
|
5133
5145
|
}
|
|
5134
5146
|
}
|
|
5135
|
-
class re extends
|
|
5147
|
+
class re extends we {
|
|
5136
5148
|
constructor() {
|
|
5137
5149
|
super("Provider not found."), Object.defineProperty(this, "name", {
|
|
5138
5150
|
enumerable: !0,
|
|
@@ -5142,8 +5154,8 @@ class re extends ze {
|
|
|
5142
5154
|
});
|
|
5143
5155
|
}
|
|
5144
5156
|
}
|
|
5145
|
-
|
|
5146
|
-
function
|
|
5157
|
+
Ln.type = "injected";
|
|
5158
|
+
function Ln(e = {}) {
|
|
5147
5159
|
const { shimDisconnect: n = !0, unstable_shimAsyncInject: t } = e;
|
|
5148
5160
|
function r() {
|
|
5149
5161
|
const l = e.target;
|
|
@@ -5153,7 +5165,7 @@ function En(e = {}) {
|
|
|
5153
5165
|
return A;
|
|
5154
5166
|
}
|
|
5155
5167
|
return typeof l == "object" ? l : typeof l == "string" ? {
|
|
5156
|
-
...
|
|
5168
|
+
...Oc[l] ?? {
|
|
5157
5169
|
id: l,
|
|
5158
5170
|
name: `${l[0].toUpperCase()}${l.slice(1)}`,
|
|
5159
5171
|
provider: `is${l[0].toUpperCase()}${l.slice(1)}`
|
|
@@ -5181,7 +5193,7 @@ function En(e = {}) {
|
|
|
5181
5193
|
get supportsSimulation() {
|
|
5182
5194
|
return !0;
|
|
5183
5195
|
},
|
|
5184
|
-
type:
|
|
5196
|
+
type: Ln.type,
|
|
5185
5197
|
async setup() {
|
|
5186
5198
|
const A = await this.getProvider();
|
|
5187
5199
|
A?.on && e.target && (c || (c = this.onConnect.bind(this), A.on("connect", c)), s || (s = this.onAccountsChanged.bind(this), A.on("accountsChanged", s)));
|
|
@@ -5198,18 +5210,18 @@ function En(e = {}) {
|
|
|
5198
5210
|
u = (await g.request({
|
|
5199
5211
|
method: "wallet_requestPermissions",
|
|
5200
5212
|
params: [{ eth_accounts: {} }]
|
|
5201
|
-
}))[0]?.caveats?.[0]?.value?.map((C) =>
|
|
5213
|
+
}))[0]?.caveats?.[0]?.value?.map((C) => Me(C)), u.length > 0 && (u = await this.getAccounts());
|
|
5202
5214
|
} catch (x) {
|
|
5203
5215
|
const C = x;
|
|
5204
5216
|
if (C.code === F.code)
|
|
5205
5217
|
throw new F(C);
|
|
5206
|
-
if (C.code ===
|
|
5218
|
+
if (C.code === Re.code)
|
|
5207
5219
|
throw C;
|
|
5208
5220
|
}
|
|
5209
5221
|
try {
|
|
5210
5222
|
!u?.length && !d && (u = (await g.request({
|
|
5211
5223
|
method: "eth_requestAccounts"
|
|
5212
|
-
})).map((m) =>
|
|
5224
|
+
})).map((m) => Me(m))), c && (g.removeListener("connect", c), c = void 0), s || (s = this.onAccountsChanged.bind(this), g.on("accountsChanged", s)), o || (o = this.onChainChanged.bind(this), g.on("chainChanged", o)), a || (a = this.onDisconnect.bind(this), g.on("disconnect", a));
|
|
5213
5225
|
let x = await this.getChainId();
|
|
5214
5226
|
return A && x !== A && (x = (await this.switchChain({ chainId: A }).catch((m) => {
|
|
5215
5227
|
if (m.code === F.code)
|
|
@@ -5221,7 +5233,7 @@ function En(e = {}) {
|
|
|
5221
5233
|
};
|
|
5222
5234
|
} catch (x) {
|
|
5223
5235
|
const C = x;
|
|
5224
|
-
throw C.code === F.code ? new F(C) : C.code ===
|
|
5236
|
+
throw C.code === F.code ? new F(C) : C.code === Re.code ? new Re(C) : C;
|
|
5225
5237
|
}
|
|
5226
5238
|
},
|
|
5227
5239
|
async disconnect() {
|
|
@@ -5230,7 +5242,7 @@ function En(e = {}) {
|
|
|
5230
5242
|
throw new re();
|
|
5231
5243
|
o && (A.removeListener("chainChanged", o), o = void 0), a && (A.removeListener("disconnect", a), a = void 0), c || (c = this.onConnect.bind(this), A.on("connect", c));
|
|
5232
5244
|
try {
|
|
5233
|
-
await
|
|
5245
|
+
await os(() => (
|
|
5234
5246
|
// TODO: Remove explicit type for viem@3
|
|
5235
5247
|
A.request({
|
|
5236
5248
|
// `'wallet_revokePermissions'` added in `viem@2.10.3`
|
|
@@ -5246,7 +5258,7 @@ function En(e = {}) {
|
|
|
5246
5258
|
const A = await this.getProvider();
|
|
5247
5259
|
if (!A)
|
|
5248
5260
|
throw new re();
|
|
5249
|
-
return (await A.request({ method: "eth_accounts" })).map((f) =>
|
|
5261
|
+
return (await A.request({ method: "eth_accounts" })).map((f) => Me(f));
|
|
5250
5262
|
},
|
|
5251
5263
|
async getChainId() {
|
|
5252
5264
|
const A = await this.getProvider();
|
|
@@ -5260,7 +5272,7 @@ function En(e = {}) {
|
|
|
5260
5272
|
return;
|
|
5261
5273
|
let A;
|
|
5262
5274
|
const d = r();
|
|
5263
|
-
return typeof d.provider == "function" ? A = d.provider(window) : typeof d.provider == "string" ? A =
|
|
5275
|
+
return typeof d.provider == "function" ? A = d.provider(window) : typeof d.provider == "string" ? A = Te(window, d.provider) : A = d.provider, A && !A.removeListener && ("off" in A && typeof A.off == "function" ? A.removeListener = A.off : A.removeListener = () => {
|
|
5264
5276
|
}), A;
|
|
5265
5277
|
},
|
|
5266
5278
|
async isAuthorized() {
|
|
@@ -5281,7 +5293,7 @@ function En(e = {}) {
|
|
|
5281
5293
|
}
|
|
5282
5294
|
throw new re();
|
|
5283
5295
|
}
|
|
5284
|
-
return !!(await
|
|
5296
|
+
return !!(await is(() => this.getAccounts())).length;
|
|
5285
5297
|
} catch {
|
|
5286
5298
|
return !1;
|
|
5287
5299
|
}
|
|
@@ -5292,7 +5304,7 @@ function En(e = {}) {
|
|
|
5292
5304
|
throw new re();
|
|
5293
5305
|
const g = l.chains.find((x) => x.id === d);
|
|
5294
5306
|
if (!g)
|
|
5295
|
-
throw new
|
|
5307
|
+
throw new kn(new Sc());
|
|
5296
5308
|
const u = new Promise((x) => {
|
|
5297
5309
|
const C = (m) => {
|
|
5298
5310
|
"chainId" in m && m.chainId === d && (l.emitter.off("change", C), x());
|
|
@@ -5303,7 +5315,7 @@ function En(e = {}) {
|
|
|
5303
5315
|
return await Promise.all([
|
|
5304
5316
|
f.request({
|
|
5305
5317
|
method: "wallet_switchEthereumChain",
|
|
5306
|
-
params: [{ chainId:
|
|
5318
|
+
params: [{ chainId: Jn(d) }]
|
|
5307
5319
|
}).then(async () => {
|
|
5308
5320
|
await this.getChainId() === d && l.emitter.emit("change", { chainId: d });
|
|
5309
5321
|
}),
|
|
@@ -5315,21 +5327,21 @@ function En(e = {}) {
|
|
|
5315
5327
|
// https://github.com/MetaMask/metamask-mobile/issues/2944#issuecomment-976988719
|
|
5316
5328
|
C?.data?.originalError?.code === 4902)
|
|
5317
5329
|
try {
|
|
5318
|
-
const { default: m, ...
|
|
5330
|
+
const { default: m, ...p } = g.blockExplorers ?? {};
|
|
5319
5331
|
let h;
|
|
5320
5332
|
A?.blockExplorerUrls ? h = A.blockExplorerUrls : m && (h = [
|
|
5321
5333
|
m.url,
|
|
5322
|
-
...Object.values(
|
|
5334
|
+
...Object.values(p).map((I) => I.url)
|
|
5323
5335
|
]);
|
|
5324
|
-
let
|
|
5325
|
-
A?.rpcUrls?.length ?
|
|
5336
|
+
let b;
|
|
5337
|
+
A?.rpcUrls?.length ? b = A.rpcUrls : b = [g.rpcUrls.default?.http[0] ?? ""];
|
|
5326
5338
|
const w = {
|
|
5327
5339
|
blockExplorerUrls: h,
|
|
5328
|
-
chainId:
|
|
5340
|
+
chainId: Jn(d),
|
|
5329
5341
|
chainName: A?.chainName ?? g.name,
|
|
5330
5342
|
iconUrls: A?.iconUrls,
|
|
5331
5343
|
nativeCurrency: A?.nativeCurrency ?? g.nativeCurrency,
|
|
5332
|
-
rpcUrls:
|
|
5344
|
+
rpcUrls: b
|
|
5333
5345
|
};
|
|
5334
5346
|
return await Promise.all([
|
|
5335
5347
|
f.request({
|
|
@@ -5346,7 +5358,7 @@ function En(e = {}) {
|
|
|
5346
5358
|
} catch (m) {
|
|
5347
5359
|
throw new F(m);
|
|
5348
5360
|
}
|
|
5349
|
-
throw C.code === F.code ? new F(C) : new
|
|
5361
|
+
throw C.code === F.code ? new F(C) : new kn(C);
|
|
5350
5362
|
}
|
|
5351
5363
|
},
|
|
5352
5364
|
async onAccountsChanged(A) {
|
|
@@ -5357,7 +5369,7 @@ function En(e = {}) {
|
|
|
5357
5369
|
this.onConnect({ chainId: d }), n && await l.storage?.removeItem(`${this.id}.disconnected`);
|
|
5358
5370
|
} else
|
|
5359
5371
|
l.emitter.emit("change", {
|
|
5360
|
-
accounts: A.map((d) =>
|
|
5372
|
+
accounts: A.map((d) => Me(d))
|
|
5361
5373
|
});
|
|
5362
5374
|
},
|
|
5363
5375
|
onChainChanged(A) {
|
|
@@ -5379,19 +5391,19 @@ function En(e = {}) {
|
|
|
5379
5391
|
}
|
|
5380
5392
|
});
|
|
5381
5393
|
}
|
|
5382
|
-
const
|
|
5394
|
+
const Oc = {
|
|
5383
5395
|
coinbaseWallet: {
|
|
5384
5396
|
id: "coinbaseWallet",
|
|
5385
5397
|
name: "Coinbase Wallet",
|
|
5386
5398
|
provider(e) {
|
|
5387
|
-
return e?.coinbaseWalletExtension ? e.coinbaseWalletExtension :
|
|
5399
|
+
return e?.coinbaseWalletExtension ? e.coinbaseWalletExtension : Te(e, "isCoinbaseWallet");
|
|
5388
5400
|
}
|
|
5389
5401
|
},
|
|
5390
5402
|
metaMask: {
|
|
5391
5403
|
id: "metaMask",
|
|
5392
5404
|
name: "MetaMask",
|
|
5393
5405
|
provider(e) {
|
|
5394
|
-
return
|
|
5406
|
+
return Te(e, (n) => {
|
|
5395
5407
|
if (!n.isMetaMask || n.isBraveWallet && !n._events && !n._state)
|
|
5396
5408
|
return !1;
|
|
5397
5409
|
const t = [
|
|
@@ -5425,11 +5437,11 @@ const Sc = {
|
|
|
5425
5437
|
id: "phantom",
|
|
5426
5438
|
name: "Phantom",
|
|
5427
5439
|
provider(e) {
|
|
5428
|
-
return e?.phantom?.ethereum ? e.phantom?.ethereum :
|
|
5440
|
+
return e?.phantom?.ethereum ? e.phantom?.ethereum : Te(e, "isPhantom");
|
|
5429
5441
|
}
|
|
5430
5442
|
}
|
|
5431
5443
|
};
|
|
5432
|
-
function
|
|
5444
|
+
function Te(e, n) {
|
|
5433
5445
|
function t(s) {
|
|
5434
5446
|
return typeof n == "function" ? n(s) : typeof n == "string" ? s[n] : !0;
|
|
5435
5447
|
}
|
|
@@ -5439,15 +5451,15 @@ function je(e, n) {
|
|
|
5439
5451
|
if (r && t(r))
|
|
5440
5452
|
return r;
|
|
5441
5453
|
}
|
|
5442
|
-
function
|
|
5454
|
+
function Yc(e, n = k.EVM) {
|
|
5443
5455
|
if (!e.providers[n])
|
|
5444
5456
|
return null;
|
|
5445
5457
|
const t = e.providers[n]?.provider;
|
|
5446
5458
|
if (!t)
|
|
5447
5459
|
return null;
|
|
5448
5460
|
const r = e.info, s = r.rdns || r.uuid || `wallet-${r.name.toLowerCase().replace(/\s+/g, "-")}`;
|
|
5449
|
-
return
|
|
5450
|
-
...
|
|
5461
|
+
return ss((o) => ({
|
|
5462
|
+
...Ln({
|
|
5451
5463
|
target: () => ({
|
|
5452
5464
|
id: s,
|
|
5453
5465
|
name: r.name,
|
|
@@ -5462,14 +5474,14 @@ function Oc(e, n = k.EVM) {
|
|
|
5462
5474
|
emitter: o.emitter
|
|
5463
5475
|
}));
|
|
5464
5476
|
}
|
|
5465
|
-
function
|
|
5477
|
+
function Zc(e, n = k.EVM, t) {
|
|
5466
5478
|
const r = [];
|
|
5467
5479
|
if (t.length === 0)
|
|
5468
5480
|
return r;
|
|
5469
5481
|
for (const s of e) {
|
|
5470
|
-
const o =
|
|
5482
|
+
const o = Yc(s, n);
|
|
5471
5483
|
if (o) {
|
|
5472
|
-
const c =
|
|
5484
|
+
const c = jc(Tc());
|
|
5473
5485
|
r.push(
|
|
5474
5486
|
o({
|
|
5475
5487
|
chains: t,
|
|
@@ -5480,81 +5492,81 @@ function Yc(e, n = k.EVM, t) {
|
|
|
5480
5492
|
}
|
|
5481
5493
|
return r;
|
|
5482
5494
|
}
|
|
5483
|
-
function
|
|
5495
|
+
function kc(e, n = []) {
|
|
5484
5496
|
const t = [...n], r = (o) => o.id ?? o.options?.id ?? o.options?.name, s = new Set(n.map((o) => r(o)));
|
|
5485
5497
|
for (const o of e)
|
|
5486
5498
|
s.has(r(o)) || t.push(o);
|
|
5487
5499
|
return t;
|
|
5488
5500
|
}
|
|
5489
|
-
const
|
|
5490
|
-
const [t, r] = N(P.Loading), { walletState: s, setWalletState: o, error: c, setError: a, resetWalletState: l } =
|
|
5501
|
+
const Jc = new Rr(), na = ({ children: e, config: n }) => {
|
|
5502
|
+
const [t, r] = N(P.Loading), { walletState: s, setWalletState: o, error: c, setError: a, resetWalletState: l } = jn(), A = ar(), d = B(() => {
|
|
5491
5503
|
const fe = {
|
|
5492
|
-
evm:
|
|
5493
|
-
solana:
|
|
5504
|
+
evm: Ne.evm,
|
|
5505
|
+
solana: Ne.solana,
|
|
5494
5506
|
// dogecoin: recommonedChains.dogecoin,
|
|
5495
|
-
aptos:
|
|
5496
|
-
},
|
|
5507
|
+
aptos: Ne.aptos
|
|
5508
|
+
}, Ue = n?.chains || {}, xr = {
|
|
5497
5509
|
...fe,
|
|
5498
|
-
...
|
|
5499
|
-
},
|
|
5510
|
+
...Ue
|
|
5511
|
+
}, pr = {
|
|
5500
5512
|
...n,
|
|
5501
|
-
connectors: n?.connectors ||
|
|
5502
|
-
chains:
|
|
5503
|
-
embeddedWalletConfig: { ...
|
|
5513
|
+
connectors: n?.connectors || ye.recommonedWallets,
|
|
5514
|
+
chains: xr,
|
|
5515
|
+
embeddedWalletConfig: { ...rr, clientId: n?.clientId || tr },
|
|
5504
5516
|
themeMode: "light",
|
|
5505
|
-
prodType:
|
|
5517
|
+
prodType: je.MyDoge,
|
|
5506
5518
|
wagmi: A ? {
|
|
5507
5519
|
config: A
|
|
5508
5520
|
} : void 0
|
|
5509
5521
|
};
|
|
5510
|
-
return
|
|
5511
|
-
}, [n, A]), f = B(() => d?.prodType ===
|
|
5522
|
+
return st(A || null), pr;
|
|
5523
|
+
}, [n, A]), f = B(() => d?.prodType === je.Tomo ? P.SocialLogin : d?.prodType === je.MyDoge ? P.MyDogeSocialLogin : P.SocialLogin, [d?.prodType]), {
|
|
5512
5524
|
wallet: g,
|
|
5513
5525
|
isAvailable: u,
|
|
5514
5526
|
isLoading: x,
|
|
5515
5527
|
connectedInfo: C,
|
|
5516
5528
|
message: m
|
|
5517
|
-
} =
|
|
5529
|
+
} = yc({
|
|
5518
5530
|
config: d.embeddedWalletConfig
|
|
5519
5531
|
});
|
|
5520
5532
|
Z(() => {
|
|
5521
5533
|
!x && g && r(u ? P.Logged : f);
|
|
5522
5534
|
}, [u, x, g, f]);
|
|
5523
|
-
const
|
|
5524
|
-
|
|
5525
|
-
}, [
|
|
5535
|
+
const p = Eo(t), h = T(() => {
|
|
5536
|
+
p.setView(s.isConnected ? P.Account : t), p.openModal();
|
|
5537
|
+
}, [p.setView, p.openModal, s.isConnected, t]), b = Qo({
|
|
5526
5538
|
walletState: s,
|
|
5527
|
-
modalState:
|
|
5539
|
+
modalState: p,
|
|
5528
5540
|
setWalletState: o,
|
|
5529
5541
|
resetWalletState: l,
|
|
5530
5542
|
setError: a,
|
|
5531
5543
|
setMainView: r
|
|
5532
5544
|
}), w = B(
|
|
5533
5545
|
() => ({
|
|
5534
|
-
isOpen:
|
|
5535
|
-
view:
|
|
5536
|
-
prevView:
|
|
5546
|
+
isOpen: p.isOpen,
|
|
5547
|
+
view: p.view,
|
|
5548
|
+
prevView: p.prevView,
|
|
5537
5549
|
openModal: h,
|
|
5538
|
-
closeModal:
|
|
5539
|
-
setView:
|
|
5540
|
-
openModalWithState:
|
|
5541
|
-
backView:
|
|
5542
|
-
state:
|
|
5543
|
-
setCurrentViewState:
|
|
5550
|
+
closeModal: p.closeModal,
|
|
5551
|
+
setView: p.setView,
|
|
5552
|
+
openModalWithState: p.openModalWithState,
|
|
5553
|
+
backView: p.backView,
|
|
5554
|
+
state: p.state,
|
|
5555
|
+
setCurrentViewState: p.setCurrentViewState,
|
|
5544
5556
|
mainView: t,
|
|
5545
5557
|
setMainView: r
|
|
5546
5558
|
}),
|
|
5547
5559
|
[
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5560
|
+
p.isOpen,
|
|
5561
|
+
p.view,
|
|
5562
|
+
p.prevView,
|
|
5563
|
+
p.closeModal,
|
|
5564
|
+
p.setView,
|
|
5565
|
+
p.backView,
|
|
5566
|
+
p.state,
|
|
5567
|
+
p.setCurrentViewState,
|
|
5556
5568
|
h,
|
|
5557
|
-
|
|
5569
|
+
p.openModalWithState,
|
|
5558
5570
|
t,
|
|
5559
5571
|
r
|
|
5560
5572
|
]
|
|
@@ -5583,25 +5595,25 @@ const kc = new Gr(), ea = ({ children: e, config: n }) => {
|
|
|
5583
5595
|
s.currentWallet,
|
|
5584
5596
|
s.currentProvider
|
|
5585
5597
|
]
|
|
5586
|
-
),
|
|
5598
|
+
), M = B(
|
|
5587
5599
|
() => ({
|
|
5588
|
-
connect:
|
|
5589
|
-
disconnect:
|
|
5590
|
-
switchChain:
|
|
5591
|
-
signInWithWallet:
|
|
5592
|
-
signMessage:
|
|
5600
|
+
connect: b.connect,
|
|
5601
|
+
disconnect: b.disconnect,
|
|
5602
|
+
switchChain: b.switchChain,
|
|
5603
|
+
signInWithWallet: b.signInWithWallet,
|
|
5604
|
+
signMessage: b.signMessage,
|
|
5593
5605
|
// signTransaction: walletActions.signTransaction,
|
|
5594
5606
|
// signAndSendTransaction: walletActions.signAndSendTransaction,
|
|
5595
5607
|
// sendTransaction: walletActions.sendTransaction,
|
|
5596
|
-
_setCurrentWallet:
|
|
5608
|
+
_setCurrentWallet: b._setCurrentWallet
|
|
5597
5609
|
}),
|
|
5598
5610
|
[
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5611
|
+
b.connect,
|
|
5612
|
+
b.disconnect,
|
|
5613
|
+
b.switchChain,
|
|
5614
|
+
b.signInWithWallet,
|
|
5615
|
+
b.signMessage,
|
|
5616
|
+
b._setCurrentWallet
|
|
5605
5617
|
]
|
|
5606
5618
|
), E = B(
|
|
5607
5619
|
() => ({
|
|
@@ -5619,18 +5631,18 @@ const kc = new Gr(), ea = ({ children: e, config: n }) => {
|
|
|
5619
5631
|
connection: I,
|
|
5620
5632
|
account: j,
|
|
5621
5633
|
embeddedWallet: E,
|
|
5622
|
-
...
|
|
5634
|
+
...M
|
|
5623
5635
|
}),
|
|
5624
|
-
[d, w, I, j, E,
|
|
5636
|
+
[d, w, I, j, E, M]
|
|
5625
5637
|
), Y = B(() => {
|
|
5626
|
-
const
|
|
5627
|
-
return d.themeMode === "dark" ? "dark" :
|
|
5638
|
+
const Ue = "doge" + "_" + d.themeMode;
|
|
5639
|
+
return d.themeMode === "dark" ? "dark" : Ue;
|
|
5628
5640
|
}, [d.themeMode]);
|
|
5629
|
-
return console.log("--- WalletConnectProvider --- defaultTheme::", Y), /* @__PURE__ */ i(
|
|
5630
|
-
/* @__PURE__ */ i(
|
|
5631
|
-
/* @__PURE__ */ v(
|
|
5641
|
+
return console.log("--- WalletConnectProvider --- defaultTheme::", Y), /* @__PURE__ */ i(Ur, { client: Jc, children: /* @__PURE__ */ v(W.Provider, { value: L, children: [
|
|
5642
|
+
/* @__PURE__ */ i(Fc, { setWalletState: o }),
|
|
5643
|
+
/* @__PURE__ */ v(Lr, { defaultTheme: Y, forcedTheme: Y, children: [
|
|
5632
5644
|
/* @__PURE__ */ i(
|
|
5633
|
-
|
|
5645
|
+
Sr,
|
|
5634
5646
|
{
|
|
5635
5647
|
maxVisibleToasts: 3,
|
|
5636
5648
|
placement: "top-center",
|
|
@@ -5642,24 +5654,24 @@ const kc = new Gr(), ea = ({ children: e, config: n }) => {
|
|
|
5642
5654
|
}
|
|
5643
5655
|
),
|
|
5644
5656
|
e,
|
|
5645
|
-
/* @__PURE__ */ i(
|
|
5657
|
+
/* @__PURE__ */ i(Bc, {})
|
|
5646
5658
|
] })
|
|
5647
5659
|
] }) });
|
|
5648
|
-
},
|
|
5649
|
-
const n = V(
|
|
5660
|
+
}, Fc = ({ setWalletState: e }) => {
|
|
5661
|
+
const n = V(W);
|
|
5650
5662
|
if (!n)
|
|
5651
5663
|
throw new Error("SetupHooks must be used within WalletConnectProvider");
|
|
5652
|
-
const t =
|
|
5664
|
+
const t = he("all", n.config?.connectors || []), r = n.config?.wagmi, s = r?.config;
|
|
5653
5665
|
return Z(() => {
|
|
5654
5666
|
if (!s || !t.data) {
|
|
5655
|
-
|
|
5667
|
+
rn(null);
|
|
5656
5668
|
return;
|
|
5657
5669
|
}
|
|
5658
|
-
const o = s.connectors || [], c = s.chains || [], a = t?.data?.all?.filter((d) => d.providers.evm), l =
|
|
5659
|
-
A.length > 0 ?
|
|
5670
|
+
const o = s.connectors || [], c = s.chains || [], a = t?.data?.all?.filter((d) => d.providers.evm), l = Zc(a || [], k.EVM, c), A = kc(l, o);
|
|
5671
|
+
A.length > 0 ? rn(A) : rn(null);
|
|
5660
5672
|
}, [t.data, s]), Z(() => {
|
|
5661
|
-
|
|
5662
|
-
}, [n.config?.walletConnectConfig]),
|
|
5673
|
+
Kr(n.config?.walletConnectConfig || Oo);
|
|
5674
|
+
}, [n.config?.walletConnectConfig]), hc({
|
|
5663
5675
|
setWalletState: e,
|
|
5664
5676
|
currentWallet: n.account.currentWallet,
|
|
5665
5677
|
isConnected: n.connection.isConnected,
|
|
@@ -5672,14 +5684,14 @@ const kc = new Gr(), ea = ({ children: e, config: n }) => {
|
|
|
5672
5684
|
},
|
|
5673
5685
|
wagmiConfig: r
|
|
5674
5686
|
}), null;
|
|
5675
|
-
},
|
|
5676
|
-
const t = V(
|
|
5687
|
+
}, ta = ({ className: e, style: n }) => {
|
|
5688
|
+
const t = V(W), r = t?.modal.mainView || P.MyDogeSocialLogin;
|
|
5677
5689
|
if (Z(() => {
|
|
5678
5690
|
t && t.modal.view !== r && t.modal.setView(r);
|
|
5679
5691
|
}, [r]), !t)
|
|
5680
5692
|
return console.error("WalletConnectEmbed must be used within WalletConnectProvider"), null;
|
|
5681
5693
|
const s = t.modal.view, c = (() => {
|
|
5682
|
-
const a =
|
|
5694
|
+
const a = vr[s];
|
|
5683
5695
|
return a ? a(t) : null;
|
|
5684
5696
|
})();
|
|
5685
5697
|
return /* @__PURE__ */ i(
|
|
@@ -5692,9 +5704,9 @@ const kc = new Gr(), ea = ({ children: e, config: n }) => {
|
|
|
5692
5704
|
);
|
|
5693
5705
|
};
|
|
5694
5706
|
export {
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5707
|
+
ta as WalletConnectEmbed,
|
|
5708
|
+
na as WalletConnectProvider,
|
|
5709
|
+
Tn as useAccount,
|
|
5710
|
+
nr as useEmbeddedWallet,
|
|
5711
|
+
ea as useWalletConnect
|
|
5700
5712
|
};
|