@skip-go/widget 3.0.19 → 3.0.20
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.
|
@@ -7,9 +7,9 @@ import { ErrorBoundary as Si } from "react-error-boundary";
|
|
|
7
7
|
import { atom as _, useSetAtom as J, useAtomValue as U, useAtom as ue } from "jotai";
|
|
8
8
|
import { SkipClient as Im } from "@skip-go/client";
|
|
9
9
|
import { atomWithQuery as ao, atomWithMutation as Hm } from "jotai-tanstack-query";
|
|
10
|
-
import { getWallet as
|
|
10
|
+
import { getWallet as Kn, WalletType as xe, useAccount as es, useActiveWalletType as Tm, useDisconnect as Nm, isWalletConnect as Vm, connect as wt, getChainInfo as Lm, GrazProvider as Rm } from "graz";
|
|
11
11
|
import { createClient as Om, custom as Um, walletActions as fa, defineChain as ns, http as ae, createPublicClient as Wm, isAddress as Gm } from "viem";
|
|
12
|
-
import { createConfig as Jm, createStorage as
|
|
12
|
+
import { createConfig as Jm, createStorage as Km, useAccount as ct, useConnectors as os, useConnect as Zm, WagmiProvider as Xm } from "wagmi";
|
|
13
13
|
import { BackpackWalletAdapter as Ym } from "@solana/wallet-adapter-backpack";
|
|
14
14
|
import { CoinbaseWalletAdapter as Qm } from "@solana/wallet-adapter-coinbase";
|
|
15
15
|
import { LedgerWalletAdapter as _m } from "@solana/wallet-adapter-ledger";
|
|
@@ -718,26 +718,26 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
718
718
|
function Rp(e, n, o) {
|
|
719
719
|
return o === void 0 && (o = yo), e.theme !== o.theme && e.theme || n || o.theme;
|
|
720
720
|
}
|
|
721
|
-
var
|
|
721
|
+
var Kt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Op = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Up = /(^-|-$)/g;
|
|
722
722
|
function ya(e) {
|
|
723
723
|
return e.replace(Op, "-").replace(Up, "");
|
|
724
724
|
}
|
|
725
725
|
var Wp = /(a)(d)/gi, Ai = 52, va = function(e) {
|
|
726
726
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
727
727
|
};
|
|
728
|
-
function
|
|
728
|
+
function Zt(e) {
|
|
729
729
|
var n, o = "";
|
|
730
730
|
for (n = Math.abs(e); n > Ai; n = n / Ai | 0) o = va(n % Ai) + o;
|
|
731
731
|
return (va(n % Ai) + o).replace(Wp, "$1-$2");
|
|
732
732
|
}
|
|
733
|
-
var vt, As = 5381,
|
|
733
|
+
var vt, As = 5381, Zn = function(e, n) {
|
|
734
734
|
for (var o = n.length; o; ) e = 33 * e ^ n.charCodeAt(--o);
|
|
735
735
|
return e;
|
|
736
736
|
}, Cs = function(e) {
|
|
737
|
-
return
|
|
737
|
+
return Zn(As, e);
|
|
738
738
|
};
|
|
739
739
|
function ks(e) {
|
|
740
|
-
return
|
|
740
|
+
return Zt(Cs(e) >>> 0);
|
|
741
741
|
}
|
|
742
742
|
function ws(e) {
|
|
743
743
|
return oe.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
@@ -745,9 +745,9 @@ function ws(e) {
|
|
|
745
745
|
function Et(e) {
|
|
746
746
|
return typeof e == "string" && (oe.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
747
747
|
}
|
|
748
|
-
var ys = typeof Symbol == "function" && Symbol.for, vs = ys ? Symbol.for("react.memo") : 60115, Gp = ys ? Symbol.for("react.forward_ref") : 60112, Jp = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 },
|
|
748
|
+
var ys = typeof Symbol == "function" && Symbol.for, vs = ys ? Symbol.for("react.memo") : 60115, Gp = ys ? Symbol.for("react.forward_ref") : 60112, Jp = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Kp = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Es = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Zp = ((vt = {})[Gp] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, vt[vs] = Es, vt);
|
|
749
749
|
function Ea(e) {
|
|
750
|
-
return ("type" in (n = e) && n.type.$$typeof) === vs ? Es : "$$typeof" in e ?
|
|
750
|
+
return ("type" in (n = e) && n.type.$$typeof) === vs ? Es : "$$typeof" in e ? Zp[e.$$typeof] : Jp;
|
|
751
751
|
var n;
|
|
752
752
|
}
|
|
753
753
|
var Xp = Object.defineProperty, Yp = Object.getOwnPropertyNames, Pa = Object.getOwnPropertySymbols, Qp = Object.getOwnPropertyDescriptor, _p = Object.getPrototypeOf, Fa = Object.prototype;
|
|
@@ -761,7 +761,7 @@ function Ps(e, n, o) {
|
|
|
761
761
|
Pa && (t = t.concat(Pa(n)));
|
|
762
762
|
for (var c = Ea(e), a = Ea(n), r = 0; r < t.length; ++r) {
|
|
763
763
|
var s = t[r];
|
|
764
|
-
if (!(s in
|
|
764
|
+
if (!(s in Kp || o && o[s] || a && s in a || c && s in c)) {
|
|
765
765
|
var l = Qp(n, s);
|
|
766
766
|
try {
|
|
767
767
|
Xp(e, s, l);
|
|
@@ -1042,7 +1042,7 @@ function zs(e) {
|
|
|
1042
1042
|
})))), C;
|
|
1043
1043
|
};
|
|
1044
1044
|
return u.hash = s.length ? s.reduce(function(d, x) {
|
|
1045
|
-
return x.name || gn(15),
|
|
1045
|
+
return x.name || gn(15), Zn(d, x.name);
|
|
1046
1046
|
}, As).toString() : "", u;
|
|
1047
1047
|
}
|
|
1048
1048
|
var Du = new Bs(), Qt = zs(), Bc = ln.createContext({ shouldForwardProp: void 0, styleSheet: Du, stylis: Qt });
|
|
@@ -1123,13 +1123,13 @@ function bu(e) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
var Au = Cs(mt), Cu = function() {
|
|
1125
1125
|
function e(n, o, i) {
|
|
1126
|
-
this.rules = n, this.staticRulesId = "", this.isStatic = oe.env.NODE_ENV === "production" && (i === void 0 || i.isStatic) && bu(n), this.componentId = o, this.baseHash =
|
|
1126
|
+
this.rules = n, this.staticRulesId = "", this.isStatic = oe.env.NODE_ENV === "production" && (i === void 0 || i.isStatic) && bu(n), this.componentId = o, this.baseHash = Zn(Au, o), this.baseStyle = i, Bs.registerId(o);
|
|
1127
1127
|
}
|
|
1128
1128
|
return e.prototype.generateAndInjectStyles = function(n, o, i) {
|
|
1129
1129
|
var t = this.baseStyle ? this.baseStyle.generateAndInjectStyles(n, o, i) : "";
|
|
1130
1130
|
if (this.isStatic && !i.hash) if (this.staticRulesId && o.hasNameForId(this.componentId, this.staticRulesId)) t = Qn(t, this.staticRulesId);
|
|
1131
1131
|
else {
|
|
1132
|
-
var c = Xt($n(this.rules, n, o, i)), a =
|
|
1132
|
+
var c = Xt($n(this.rules, n, o, i)), a = Zt(Zn(this.baseHash, c) >>> 0);
|
|
1133
1133
|
if (!o.hasNameForId(this.componentId, a)) {
|
|
1134
1134
|
var r = i(c, ".".concat(a), void 0, this.componentId);
|
|
1135
1135
|
o.insertRules(this.componentId, a, r);
|
|
@@ -1137,16 +1137,16 @@ var Au = Cs(mt), Cu = function() {
|
|
|
1137
1137
|
t = Qn(t, a), this.staticRulesId = a;
|
|
1138
1138
|
}
|
|
1139
1139
|
else {
|
|
1140
|
-
for (var s =
|
|
1140
|
+
for (var s = Zn(this.baseHash, i.hash), l = "", p = 0; p < this.rules.length; p++) {
|
|
1141
1141
|
var u = this.rules[p];
|
|
1142
|
-
if (typeof u == "string") l += u, oe.env.NODE_ENV !== "production" && (s =
|
|
1142
|
+
if (typeof u == "string") l += u, oe.env.NODE_ENV !== "production" && (s = Zn(s, u));
|
|
1143
1143
|
else if (u) {
|
|
1144
1144
|
var d = Xt($n(u, n, o, i));
|
|
1145
|
-
s =
|
|
1145
|
+
s = Zn(s, d + p), l += d;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
if (l) {
|
|
1149
|
-
var x =
|
|
1149
|
+
var x = Zt(s >>> 0);
|
|
1150
1150
|
o.hasNameForId(this.componentId, x) || o.insertRules(this.componentId, x, i(l, ".".concat(x), void 0, this.componentId)), t = Qn(t, x);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
@@ -1205,14 +1205,14 @@ function wu(e, n, o) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
return $.className && (cn.className = Qn(cn.className, $.className)), cn;
|
|
1207
1207
|
}(D, T, F), R = I.as || S, O = {};
|
|
1208
|
-
for (var V in I) I[V] === void 0 || V[0] === "$" || V === "as" || V === "theme" && I.theme === F || (V === "forwardedAs" ? O.as = I.forwardedAs : z && !z(V, R) || (O[V] = I[V], z || oe.env.NODE_ENV !== "development" || ms(V) || qa.has(V) || !
|
|
1208
|
+
for (var V in I) I[V] === void 0 || V[0] === "$" || V === "as" || V === "theme" && I.theme === F || (V === "forwardedAs" ? O.as = I.forwardedAs : z && !z(V, R) || (O[V] = I[V], z || oe.env.NODE_ENV !== "development" || ms(V) || qa.has(V) || !Kt.has(R) || (qa.add(V), console.warn('styled-components: it looks like an unknown prop "'.concat(V, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1209
1209
|
var ie = function(Y, $) {
|
|
1210
1210
|
var ke = _t(), tn = Y.generateAndInjectStyles($, ke.styleSheet, ke.stylis);
|
|
1211
1211
|
return oe.env.NODE_ENV !== "production" && ga(tn), tn;
|
|
1212
1212
|
}(g, I);
|
|
1213
1213
|
oe.env.NODE_ENV !== "production" && j.warnTooManyClasses && j.warnTooManyClasses(ie);
|
|
1214
1214
|
var ce = Qn(b, y);
|
|
1215
|
-
return ie && (ce += " " + ie), I.className && (ce += " " + I.className), O[Et(R) && !
|
|
1215
|
+
return ie && (ce += " " + ie), I.className && (ce += " " + I.className), O[Et(R) && !Kt.has(R) ? "class" : "className"] = ce, O.ref = h, Mm(R, O);
|
|
1216
1216
|
}(A, M, E);
|
|
1217
1217
|
}
|
|
1218
1218
|
C.displayName = u;
|
|
@@ -1274,7 +1274,7 @@ function ec(e, n, o) {
|
|
|
1274
1274
|
var js = function(e) {
|
|
1275
1275
|
return ec(wu, e);
|
|
1276
1276
|
}, N = js;
|
|
1277
|
-
|
|
1277
|
+
Kt.forEach(function(e) {
|
|
1278
1278
|
N[e] = js(e);
|
|
1279
1279
|
});
|
|
1280
1280
|
function Vo(e) {
|
|
@@ -1593,7 +1593,7 @@ const oc = "https://go.skip.build", Ru = {
|
|
|
1593
1593
|
let wi = {
|
|
1594
1594
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: n = "", docsSlug: o }) => n ? `${e ?? "https://viem.sh"}${n}${o ? `#${o}` : ""}` : void 0,
|
|
1595
1595
|
version: Vs
|
|
1596
|
-
},
|
|
1596
|
+
}, K = class ic extends Error {
|
|
1597
1597
|
constructor(n, o = {}) {
|
|
1598
1598
|
var r;
|
|
1599
1599
|
const i = (() => {
|
|
@@ -1647,33 +1647,33 @@ let wi = {
|
|
|
1647
1647
|
function Ls(e, n) {
|
|
1648
1648
|
return n != null && n(e) ? e : e && typeof e == "object" && "cause" in e ? Ls(e.cause, n) : n ? null : e;
|
|
1649
1649
|
}
|
|
1650
|
-
class Uu extends
|
|
1650
|
+
class Uu extends K {
|
|
1651
1651
|
constructor({ max: n, min: o, signed: i, size: t, value: c }) {
|
|
1652
1652
|
super(`Number "${c}" is not in safe ${t ? `${t * 8}-bit ${i ? "signed" : "unsigned"} ` : ""}integer range ${n ? `(${o} to ${n})` : `(above ${o})`}`, { name: "IntegerOutOfRangeError" });
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
class Wu extends
|
|
1655
|
+
class Wu extends K {
|
|
1656
1656
|
constructor({ givenSize: n, maxSize: o }) {
|
|
1657
1657
|
super(`Size cannot exceed ${o} bytes. Given size: ${n} bytes.`, { name: "SizeOverflowError" });
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
|
-
class Gu extends
|
|
1660
|
+
class Gu extends K {
|
|
1661
1661
|
constructor({ offset: n, position: o, size: i }) {
|
|
1662
1662
|
super(`Slice ${o === "start" ? "starting" : "ending"} at offset "${n}" is out-of-bounds (size: ${i}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
class Rs extends
|
|
1665
|
+
class Rs extends K {
|
|
1666
1666
|
constructor({ size: n, targetSize: o, type: i }) {
|
|
1667
1667
|
super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${n}) exceeds padding size (${o}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
class Ia extends
|
|
1670
|
+
class Ia extends K {
|
|
1671
1671
|
constructor({ size: n, targetSize: o, type: i }) {
|
|
1672
1672
|
super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} is expected to be ${o} ${i} long, but is ${n} ${i} long.`, { name: "InvalidBytesLengthError" });
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
1675
|
function Lo(e, { dir: n, size: o = 32 } = {}) {
|
|
1676
|
-
return typeof e == "string" ? Ju(e, { dir: n, size: o }) :
|
|
1676
|
+
return typeof e == "string" ? Ju(e, { dir: n, size: o }) : Ku(e, { dir: n, size: o });
|
|
1677
1677
|
}
|
|
1678
1678
|
function Ju(e, { dir: n, size: o = 32 } = {}) {
|
|
1679
1679
|
if (o === null)
|
|
@@ -1687,7 +1687,7 @@ function Ju(e, { dir: n, size: o = 32 } = {}) {
|
|
|
1687
1687
|
});
|
|
1688
1688
|
return `0x${i[n === "right" ? "padEnd" : "padStart"](o * 2, "0")}`;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function Ku(e, { dir: n, size: o = 32 } = {}) {
|
|
1691
1691
|
if (o === null)
|
|
1692
1692
|
return e;
|
|
1693
1693
|
if (e.length > o)
|
|
@@ -1715,7 +1715,7 @@ function Po(e, { dir: n = "left" } = {}) {
|
|
|
1715
1715
|
i++;
|
|
1716
1716
|
return o = n === "left" ? o.slice(i) : o.slice(0, o.length - i), typeof e == "string" ? (o.length === 1 && n === "right" && (o = `${o}0`), `0x${o.length % 2 === 1 ? `0${o}` : o}`) : o;
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const Zu = /* @__PURE__ */ new TextEncoder();
|
|
1719
1719
|
function Os(e, n = {}) {
|
|
1720
1720
|
return typeof e == "number" || typeof e == "bigint" ? Yu(e, n) : typeof e == "boolean" ? Xu(e, n) : io(e) ? Vn(e, n) : Us(e, n);
|
|
1721
1721
|
}
|
|
@@ -1748,7 +1748,7 @@ function Vn(e, n = {}) {
|
|
|
1748
1748
|
for (let a = 0, r = 0; a < t; a++) {
|
|
1749
1749
|
const s = Ha(i.charCodeAt(r++)), l = Ha(i.charCodeAt(r++));
|
|
1750
1750
|
if (s === void 0 || l === void 0)
|
|
1751
|
-
throw new
|
|
1751
|
+
throw new K(`Invalid byte sequence ("${i[r - 2]}${i[r - 1]}" in "${i}").`);
|
|
1752
1752
|
c[a] = s * 16 + l;
|
|
1753
1753
|
}
|
|
1754
1754
|
return c;
|
|
@@ -1758,7 +1758,7 @@ function Yu(e, n) {
|
|
|
1758
1758
|
return Vn(o);
|
|
1759
1759
|
}
|
|
1760
1760
|
function Us(e, n = {}) {
|
|
1761
|
-
const o =
|
|
1761
|
+
const o = Zu.encode(e);
|
|
1762
1762
|
return typeof n.size == "number" ? (Ro(o, { size: n.size }), Lo(o, { dir: "right", size: n.size })) : o;
|
|
1763
1763
|
}
|
|
1764
1764
|
function Ro(e, { size: n }) {
|
|
@@ -1781,7 +1781,7 @@ function to(e, n = {}) {
|
|
|
1781
1781
|
return Number(Ye(e, n));
|
|
1782
1782
|
}
|
|
1783
1783
|
const Qu = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
|
|
1784
|
-
function
|
|
1784
|
+
function Z(e, n = {}) {
|
|
1785
1785
|
return typeof e == "number" || typeof e == "bigint" ? fe(e, n) : typeof e == "string" ? eh(e, n) : typeof e == "boolean" ? _u(e, n) : zn(e, n);
|
|
1786
1786
|
}
|
|
1787
1787
|
function _u(e, n = {}) {
|
|
@@ -1821,7 +1821,7 @@ function eh(e, n = {}) {
|
|
|
1821
1821
|
function ro(e) {
|
|
1822
1822
|
return `0x${e.reduce((n, o) => n + o.replace("0x", ""), "")}`;
|
|
1823
1823
|
}
|
|
1824
|
-
class $e extends
|
|
1824
|
+
class $e extends K {
|
|
1825
1825
|
constructor({ address: n }) {
|
|
1826
1826
|
super(`Address "${n}" is invalid.`, {
|
|
1827
1827
|
metaMessages: [
|
|
@@ -1929,7 +1929,7 @@ class Js {
|
|
|
1929
1929
|
return this._cloneInto();
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Ks(e) {
|
|
1933
1933
|
const n = (i) => e().update(Tc(i)).digest(), o = e();
|
|
1934
1934
|
return n.outputLen = o.outputLen, n.blockLen = o.blockLen, n.create = () => e(), n;
|
|
1935
1935
|
}
|
|
@@ -1938,9 +1938,9 @@ function of(e = 32) {
|
|
|
1938
1938
|
return Ft.getRandomValues(new Uint8Array(e));
|
|
1939
1939
|
throw new Error("crypto.getRandomValues must be defined");
|
|
1940
1940
|
}
|
|
1941
|
-
const
|
|
1941
|
+
const Zs = [], Xs = [], Ys = [], ph = /* @__PURE__ */ BigInt(0), Xo = /* @__PURE__ */ BigInt(1), uh = /* @__PURE__ */ BigInt(2), hh = /* @__PURE__ */ BigInt(7), dh = /* @__PURE__ */ BigInt(256), Dh = /* @__PURE__ */ BigInt(113);
|
|
1942
1942
|
for (let e = 0, n = Xo, o = 1, i = 0; e < 24; e++) {
|
|
1943
|
-
[o, i] = [i, (2 * o + 3 * i) % 5],
|
|
1943
|
+
[o, i] = [i, (2 * o + 3 * i) % 5], Zs.push(2 * (5 * i + o)), Xs.push((e + 1) * (e + 2) / 2 % 64);
|
|
1944
1944
|
let t = ph;
|
|
1945
1945
|
for (let c = 0; c < 7; c++)
|
|
1946
1946
|
n = (n << Xo ^ (n >> hh) * Dh) % dh, n & uh && (t ^= Xo << (Xo << /* @__PURE__ */ BigInt(c)) - Xo);
|
|
@@ -1959,7 +1959,7 @@ function fh(e, n = 24) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
let t = e[2], c = e[3];
|
|
1961
1961
|
for (let a = 0; a < 24; a++) {
|
|
1962
|
-
const r = Xs[a], s = La(t, c, r), l = Ra(t, c, r), p =
|
|
1962
|
+
const r = Xs[a], s = La(t, c, r), l = Ra(t, c, r), p = Zs[a];
|
|
1963
1963
|
t = e[p], c = e[p + 1], e[p] = s, e[p + 1] = l;
|
|
1964
1964
|
}
|
|
1965
1965
|
for (let a = 0; a < 50; a += 10) {
|
|
@@ -2036,10 +2036,10 @@ class Nc extends Js {
|
|
|
2036
2036
|
return n || (n = new Nc(o, i, t, a, c)), n.state32.set(this.state32), n.pos = this.pos, n.posOut = this.posOut, n.finished = this.finished, n.rounds = c, n.suffix = i, n.outputLen = t, n.enableXOF = a, n.destroyed = this.destroyed, n;
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
const bh = (e, n, o) =>
|
|
2039
|
+
const bh = (e, n, o) => Ks(() => new Nc(n, e, o)), Ah = /* @__PURE__ */ bh(1, 136, 256 / 8);
|
|
2040
2040
|
function Vc(e, n) {
|
|
2041
2041
|
const o = n || "hex", i = Ah(io(e, { strict: !1 }) ? Os(e) : e);
|
|
2042
|
-
return o === "bytes" ? i :
|
|
2042
|
+
return o === "bytes" ? i : Z(i);
|
|
2043
2043
|
}
|
|
2044
2044
|
const Mt = /* @__PURE__ */ new Ws(8192);
|
|
2045
2045
|
function Lc(e, n) {
|
|
@@ -2090,7 +2090,7 @@ function vh(e, n, o, { strict: i } = {}) {
|
|
|
2090
2090
|
function Oo(e) {
|
|
2091
2091
|
return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
|
|
2092
2092
|
}
|
|
2093
|
-
class Eh extends
|
|
2093
|
+
class Eh extends K {
|
|
2094
2094
|
constructor({ docsPath: n } = {}) {
|
|
2095
2095
|
super([
|
|
2096
2096
|
"Could not find an Account to execute with this Action.",
|
|
@@ -2108,13 +2108,13 @@ function Ph(e) {
|
|
|
2108
2108
|
return Lc(`0x${n}`);
|
|
2109
2109
|
}
|
|
2110
2110
|
async function Fh({ hash: e, signature: n }) {
|
|
2111
|
-
const o = io(e) ? e :
|
|
2111
|
+
const o = io(e) ? e : Z(e), { secp256k1: i } = await import("./secp256k1-Ve5akQL5.js");
|
|
2112
2112
|
return `0x${(() => {
|
|
2113
2113
|
if (typeof n == "object" && "r" in n && "s" in n) {
|
|
2114
2114
|
const { r: l, s: p, v: u, yParity: d } = n, x = Number(d ?? u), f = Oa(x);
|
|
2115
2115
|
return new i.Signature(Ye(l), Ye(p)).addRecoveryBit(f);
|
|
2116
2116
|
}
|
|
2117
|
-
const a = io(n) ? n :
|
|
2117
|
+
const a = io(n) ? n : Z(n), r = to(`0x${a.slice(130)}`), s = Oa(r);
|
|
2118
2118
|
return i.Signature.fromCompact(a.substring(2, 130)).addRecoveryBit(s);
|
|
2119
2119
|
})().recoverPublicKey(o.substring(2)).toHex(!1)}`;
|
|
2120
2120
|
}
|
|
@@ -2130,19 +2130,19 @@ function Oa(e) {
|
|
|
2130
2130
|
async function Bh({ hash: e, signature: n }) {
|
|
2131
2131
|
return Ph(await Fh({ hash: e, signature: n }));
|
|
2132
2132
|
}
|
|
2133
|
-
class Ua extends
|
|
2133
|
+
class Ua extends K {
|
|
2134
2134
|
constructor({ offset: n }) {
|
|
2135
2135
|
super(`Offset \`${n}\` cannot be negative.`, {
|
|
2136
2136
|
name: "NegativeOffsetError"
|
|
2137
2137
|
});
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
|
-
class Mh extends
|
|
2140
|
+
class Mh extends K {
|
|
2141
2141
|
constructor({ length: n, position: o }) {
|
|
2142
2142
|
super(`Position \`${o}\` is out of bounds (\`0 < position < ${n}\`).`, { name: "PositionOutOfBoundsError" });
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
class zh extends
|
|
2145
|
+
class zh extends K {
|
|
2146
2146
|
constructor({ count: n, limit: o }) {
|
|
2147
2147
|
super(`Recursive read limit of \`${o}\` exceeded (recursive read count: \`${n}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
2148
2148
|
}
|
|
@@ -2309,7 +2309,7 @@ function el(e) {
|
|
|
2309
2309
|
return 3;
|
|
2310
2310
|
if (e < 2 ** 32)
|
|
2311
2311
|
return 4;
|
|
2312
|
-
throw new
|
|
2312
|
+
throw new K("Length is too large.");
|
|
2313
2313
|
}
|
|
2314
2314
|
function Ih(e) {
|
|
2315
2315
|
const { chainId: n, contractAddress: o, nonce: i, to: t } = e, c = Vc(ro([
|
|
@@ -2325,7 +2325,7 @@ async function Hh(e) {
|
|
|
2325
2325
|
signature: o ?? n
|
|
2326
2326
|
});
|
|
2327
2327
|
}
|
|
2328
|
-
class pi extends
|
|
2328
|
+
class pi extends K {
|
|
2329
2329
|
constructor({ chainId: n }) {
|
|
2330
2330
|
super(typeof n == "number" ? `Chain ID "${n}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
2331
2331
|
}
|
|
@@ -2350,7 +2350,7 @@ function nl(e, n) {
|
|
|
2350
2350
|
function sn(e, n = "wei") {
|
|
2351
2351
|
return nl(e, Nh[n]);
|
|
2352
2352
|
}
|
|
2353
|
-
class xo extends
|
|
2353
|
+
class xo extends K {
|
|
2354
2354
|
constructor({ cause: n, message: o } = {}) {
|
|
2355
2355
|
var t;
|
|
2356
2356
|
const i = (t = o == null ? void 0 : o.replace("execution reverted: ", "")) == null ? void 0 : t.replace("execution reverted", "");
|
|
@@ -2372,7 +2372,7 @@ Object.defineProperty(xo, "nodeMessage", {
|
|
|
2372
2372
|
writable: !0,
|
|
2373
2373
|
value: /execution reverted/
|
|
2374
2374
|
});
|
|
2375
|
-
class Ln extends
|
|
2375
|
+
class Ln extends K {
|
|
2376
2376
|
constructor({ cause: n, maxFeePerGas: o } = {}) {
|
|
2377
2377
|
super(`The fee cap (\`maxFeePerGas\`${o ? ` = ${sn(o)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
2378
2378
|
cause: n,
|
|
@@ -2386,7 +2386,7 @@ Object.defineProperty(Ln, "nodeMessage", {
|
|
|
2386
2386
|
writable: !0,
|
|
2387
2387
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
2388
2388
|
});
|
|
2389
|
-
class tc extends
|
|
2389
|
+
class tc extends K {
|
|
2390
2390
|
constructor({ cause: n, maxFeePerGas: o } = {}) {
|
|
2391
2391
|
super(`The fee cap (\`maxFeePerGas\`${o ? ` = ${sn(o)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
2392
2392
|
cause: n,
|
|
@@ -2400,7 +2400,7 @@ Object.defineProperty(tc, "nodeMessage", {
|
|
|
2400
2400
|
writable: !0,
|
|
2401
2401
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
2402
2402
|
});
|
|
2403
|
-
class cc extends
|
|
2403
|
+
class cc extends K {
|
|
2404
2404
|
constructor({ cause: n, nonce: o } = {}) {
|
|
2405
2405
|
super(`Nonce provided for the transaction ${o ? `(${o}) ` : ""}is higher than the next one expected.`, { cause: n, name: "NonceTooHighError" });
|
|
2406
2406
|
}
|
|
@@ -2411,7 +2411,7 @@ Object.defineProperty(cc, "nodeMessage", {
|
|
|
2411
2411
|
writable: !0,
|
|
2412
2412
|
value: /nonce too high/
|
|
2413
2413
|
});
|
|
2414
|
-
class ac extends
|
|
2414
|
+
class ac extends K {
|
|
2415
2415
|
constructor({ cause: n, nonce: o } = {}) {
|
|
2416
2416
|
super([
|
|
2417
2417
|
`Nonce provided for the transaction ${o ? `(${o}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -2426,7 +2426,7 @@ Object.defineProperty(ac, "nodeMessage", {
|
|
|
2426
2426
|
writable: !0,
|
|
2427
2427
|
value: /nonce too low|transaction already imported|already known/
|
|
2428
2428
|
});
|
|
2429
|
-
class rc extends
|
|
2429
|
+
class rc extends K {
|
|
2430
2430
|
constructor({ cause: n, nonce: o } = {}) {
|
|
2431
2431
|
super(`Nonce provided for the transaction ${o ? `(${o}) ` : ""}exceeds the maximum allowed nonce.`, { cause: n, name: "NonceMaxValueError" });
|
|
2432
2432
|
}
|
|
@@ -2437,7 +2437,7 @@ Object.defineProperty(rc, "nodeMessage", {
|
|
|
2437
2437
|
writable: !0,
|
|
2438
2438
|
value: /nonce has max value/
|
|
2439
2439
|
});
|
|
2440
|
-
class sc extends
|
|
2440
|
+
class sc extends K {
|
|
2441
2441
|
constructor({ cause: n } = {}) {
|
|
2442
2442
|
super([
|
|
2443
2443
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -2464,7 +2464,7 @@ Object.defineProperty(sc, "nodeMessage", {
|
|
|
2464
2464
|
writable: !0,
|
|
2465
2465
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
2466
2466
|
});
|
|
2467
|
-
class lc extends
|
|
2467
|
+
class lc extends K {
|
|
2468
2468
|
constructor({ cause: n, gas: o } = {}) {
|
|
2469
2469
|
super(`The amount of gas ${o ? `(${o}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
2470
2470
|
cause: n,
|
|
@@ -2478,7 +2478,7 @@ Object.defineProperty(lc, "nodeMessage", {
|
|
|
2478
2478
|
writable: !0,
|
|
2479
2479
|
value: /intrinsic gas too high|gas limit reached/
|
|
2480
2480
|
});
|
|
2481
|
-
class mc extends
|
|
2481
|
+
class mc extends K {
|
|
2482
2482
|
constructor({ cause: n, gas: o } = {}) {
|
|
2483
2483
|
super(`The amount of gas ${o ? `(${o}) ` : ""}provided for the transaction is too low.`, {
|
|
2484
2484
|
cause: n,
|
|
@@ -2492,7 +2492,7 @@ Object.defineProperty(mc, "nodeMessage", {
|
|
|
2492
2492
|
writable: !0,
|
|
2493
2493
|
value: /intrinsic gas too low/
|
|
2494
2494
|
});
|
|
2495
|
-
class pc extends
|
|
2495
|
+
class pc extends K {
|
|
2496
2496
|
constructor({ cause: n }) {
|
|
2497
2497
|
super("The transaction type is not supported for this chain.", {
|
|
2498
2498
|
cause: n,
|
|
@@ -2506,7 +2506,7 @@ Object.defineProperty(pc, "nodeMessage", {
|
|
|
2506
2506
|
writable: !0,
|
|
2507
2507
|
value: /transaction type not valid/
|
|
2508
2508
|
});
|
|
2509
|
-
class Fo extends
|
|
2509
|
+
class Fo extends K {
|
|
2510
2510
|
constructor({ cause: n, maxPriorityFeePerGas: o, maxFeePerGas: i } = {}) {
|
|
2511
2511
|
super([
|
|
2512
2512
|
`The provided tip (\`maxPriorityFeePerGas\`${o ? ` = ${sn(o)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${i ? ` = ${sn(i)} gwei` : ""}).`
|
|
@@ -2523,7 +2523,7 @@ Object.defineProperty(Fo, "nodeMessage", {
|
|
|
2523
2523
|
writable: !0,
|
|
2524
2524
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
2525
2525
|
});
|
|
2526
|
-
class Rc extends
|
|
2526
|
+
class Rc extends K {
|
|
2527
2527
|
constructor({ cause: n }) {
|
|
2528
2528
|
super(`An error occurred while executing: ${n == null ? void 0 : n.shortMessage}`, {
|
|
2529
2529
|
cause: n,
|
|
@@ -2539,7 +2539,7 @@ function Oc(e) {
|
|
|
2539
2539
|
return n.map(([i, t]) => ` ${`${i}:`.padEnd(o + 1)} ${t}`).join(`
|
|
2540
2540
|
`);
|
|
2541
2541
|
}
|
|
2542
|
-
class Vh extends
|
|
2542
|
+
class Vh extends K {
|
|
2543
2543
|
constructor() {
|
|
2544
2544
|
super([
|
|
2545
2545
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -2548,14 +2548,14 @@ class Vh extends Z {
|
|
|
2548
2548
|
`), { name: "FeeConflictError" });
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
class Lh extends
|
|
2551
|
+
class Lh extends K {
|
|
2552
2552
|
constructor({ v: n }) {
|
|
2553
2553
|
super(`Invalid \`v\` value "${n}". Expected 27 or 28.`, {
|
|
2554
2554
|
name: "InvalidLegacyVError"
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
|
-
class Rh extends
|
|
2558
|
+
class Rh extends K {
|
|
2559
2559
|
constructor({ transaction: n }) {
|
|
2560
2560
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
2561
2561
|
metaMessages: [
|
|
@@ -2576,14 +2576,14 @@ class Rh extends Z {
|
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
class Oh extends
|
|
2579
|
+
class Oh extends K {
|
|
2580
2580
|
constructor({ storageKey: n }) {
|
|
2581
2581
|
super(`Size for storage key "${n}" is invalid. Expected 32 bytes. Got ${Math.floor((n.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
2584
|
function il(e, n) {
|
|
2585
|
-
const o = (e.details || "").toLowerCase(), i = e instanceof
|
|
2586
|
-
return i instanceof
|
|
2585
|
+
const o = (e.details || "").toLowerCase(), i = e instanceof K ? e.walk((t) => t.code === xo.code) : e;
|
|
2586
|
+
return i instanceof K ? new xo({
|
|
2587
2587
|
cause: e,
|
|
2588
2588
|
message: i.details
|
|
2589
2589
|
}) : xo.nodeMessage.test(o) ? new xo({
|
|
@@ -2681,26 +2681,26 @@ async function Jh(e) {
|
|
|
2681
2681
|
}, { dedupe: !0 });
|
|
2682
2682
|
return to(n);
|
|
2683
2683
|
}
|
|
2684
|
-
class
|
|
2684
|
+
class Kh extends K {
|
|
2685
2685
|
constructor() {
|
|
2686
2686
|
super("`baseFeeMultiplier` must be greater than 1.", {
|
|
2687
2687
|
name: "BaseFeeScalarError"
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
|
-
class Gc extends
|
|
2691
|
+
class Gc extends K {
|
|
2692
2692
|
constructor() {
|
|
2693
2693
|
super("Chain does not support EIP-1559 fees.", {
|
|
2694
2694
|
name: "Eip1559FeesNotSupportedError"
|
|
2695
2695
|
});
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
2698
|
-
class
|
|
2698
|
+
class Zh extends K {
|
|
2699
2699
|
constructor({ maxPriorityFeePerGas: n }) {
|
|
2700
2700
|
super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${sn(n)} gwei).`, { name: "MaxFeePerGasTooLowError" });
|
|
2701
2701
|
}
|
|
2702
2702
|
}
|
|
2703
|
-
class Xh extends
|
|
2703
|
+
class Xh extends K {
|
|
2704
2704
|
constructor({ blockHash: n, blockNumber: o }) {
|
|
2705
2705
|
let i = "Block";
|
|
2706
2706
|
n && (i = `Block at hash "${n}"`), o && (i = `Block at number "${o}"`), super(`${i} could not be found.`, { name: "BlockNotFoundError" });
|
|
@@ -2779,7 +2779,7 @@ function rl(e) {
|
|
|
2779
2779
|
};
|
|
2780
2780
|
}
|
|
2781
2781
|
const sl = /* @__PURE__ */ ht("block", rl);
|
|
2782
|
-
async function
|
|
2782
|
+
async function Ki(e, { blockHash: n, blockNumber: o, blockTag: i, includeTransactions: t } = {}) {
|
|
2783
2783
|
var p, u, d;
|
|
2784
2784
|
const c = i ?? "latest", a = t ?? !1, r = o !== void 0 ? fe(o) : void 0;
|
|
2785
2785
|
let s = null;
|
|
@@ -2805,7 +2805,7 @@ async function Qh(e, n) {
|
|
|
2805
2805
|
try {
|
|
2806
2806
|
const r = ((c = i == null ? void 0 : i.fees) == null ? void 0 : c.maxPriorityFeePerGas) ?? ((a = i == null ? void 0 : i.fees) == null ? void 0 : a.defaultPriorityFee);
|
|
2807
2807
|
if (typeof r == "function") {
|
|
2808
|
-
const l = o || await En(e,
|
|
2808
|
+
const l = o || await En(e, Ki, "getBlock")({}), p = await r({
|
|
2809
2809
|
block: l,
|
|
2810
2810
|
client: e,
|
|
2811
2811
|
request: t
|
|
@@ -2822,7 +2822,7 @@ async function Qh(e, n) {
|
|
|
2822
2822
|
return Ye(s);
|
|
2823
2823
|
} catch {
|
|
2824
2824
|
const [r, s] = await Promise.all([
|
|
2825
|
-
o ? Promise.resolve(o) : En(e,
|
|
2825
|
+
o ? Promise.resolve(o) : En(e, Ki, "getBlock")({}),
|
|
2826
2826
|
En(e, ll, "getGasPrice")({})
|
|
2827
2827
|
]);
|
|
2828
2828
|
if (typeof r.baseFeePerGas != "bigint")
|
|
@@ -2842,8 +2842,8 @@ async function Wa(e, n) {
|
|
|
2842
2842
|
}) : ((w = i == null ? void 0 : i.fees) == null ? void 0 : w.baseFeeMultiplier) ?? 1.2;
|
|
2843
2843
|
})();
|
|
2844
2844
|
if (a < 1)
|
|
2845
|
-
throw new
|
|
2846
|
-
const s = 10 ** (((d = a.toString().split(".")[1]) == null ? void 0 : d.length) ?? 0), l = (f) => f * BigInt(Math.ceil(a * s)) / BigInt(s), p = o || await En(e,
|
|
2845
|
+
throw new Kh();
|
|
2846
|
+
const s = 10 ** (((d = a.toString().split(".")[1]) == null ? void 0 : d.length) ?? 0), l = (f) => f * BigInt(Math.ceil(a * s)) / BigInt(s), p = o || await En(e, Ki, "getBlock")({});
|
|
2847
2847
|
if (typeof ((x = i == null ? void 0 : i.fees) == null ? void 0 : x.estimateFeesPerGas) == "function") {
|
|
2848
2848
|
const f = await i.fees.estimateFeesPerGas({
|
|
2849
2849
|
block: o,
|
|
@@ -2872,7 +2872,7 @@ async function Wa(e, n) {
|
|
|
2872
2872
|
gasPrice: (t == null ? void 0 : t.gasPrice) ?? l(await En(e, ll, "getGasPrice")({}))
|
|
2873
2873
|
};
|
|
2874
2874
|
}
|
|
2875
|
-
class _h extends
|
|
2875
|
+
class _h extends K {
|
|
2876
2876
|
constructor(n, { account: o, docsPath: i, chain: t, data: c, gas: a, gasPrice: r, maxFeePerGas: s, maxPriorityFeePerGas: l, nonce: p, to: u, value: d }) {
|
|
2877
2877
|
var f;
|
|
2878
2878
|
const x = Oc({
|
|
@@ -2913,14 +2913,14 @@ function $h(e, { docsPath: n, ...o }) {
|
|
|
2913
2913
|
...o
|
|
2914
2914
|
});
|
|
2915
2915
|
}
|
|
2916
|
-
class ed extends
|
|
2916
|
+
class ed extends K {
|
|
2917
2917
|
constructor({ address: n }) {
|
|
2918
2918
|
super(`State for account "${n}" is set multiple times.`, {
|
|
2919
2919
|
name: "AccountStateConflictError"
|
|
2920
2920
|
});
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
class nd extends
|
|
2923
|
+
class nd extends K {
|
|
2924
2924
|
constructor() {
|
|
2925
2925
|
super("state and stateDiff are set on the same account.", {
|
|
2926
2926
|
name: "StateAssignmentConflictError"
|
|
@@ -3016,7 +3016,7 @@ async function ad(e, n) {
|
|
|
3016
3016
|
return await Hh({
|
|
3017
3017
|
authorization: s[0]
|
|
3018
3018
|
}).catch(() => {
|
|
3019
|
-
throw new
|
|
3019
|
+
throw new K("`to` is required. Could not infer from `authorizationList`");
|
|
3020
3020
|
});
|
|
3021
3021
|
})();
|
|
3022
3022
|
Wc(n);
|
|
@@ -3078,7 +3078,7 @@ function Jc(e) {
|
|
|
3078
3078
|
t.push(Uint8Array.from(n.blobToKzgCommitment(c)));
|
|
3079
3079
|
return o === "bytes" ? t : t.map((c) => zn(c));
|
|
3080
3080
|
}
|
|
3081
|
-
function
|
|
3081
|
+
function Kc(e) {
|
|
3082
3082
|
const { kzg: n } = e, o = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), i = typeof e.blobs[0] == "string" ? e.blobs.map((a) => Vn(a)) : e.blobs, t = typeof e.commitments[0] == "string" ? e.commitments.map((a) => Vn(a)) : e.commitments, c = [];
|
|
3083
3083
|
for (let a = 0; a < i.length; a++) {
|
|
3084
3084
|
const r = i[a], s = t[a];
|
|
@@ -3251,7 +3251,7 @@ class hd extends pd {
|
|
|
3251
3251
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
3252
3252
|
}
|
|
3253
3253
|
}
|
|
3254
|
-
const dd = /* @__PURE__ */
|
|
3254
|
+
const dd = /* @__PURE__ */ Ks(() => new hd());
|
|
3255
3255
|
function Dd(e, n) {
|
|
3256
3256
|
return dd(io(e, { strict: !1 }) ? Os(e) : e);
|
|
3257
3257
|
}
|
|
@@ -3269,10 +3269,10 @@ function ml(e) {
|
|
|
3269
3269
|
}));
|
|
3270
3270
|
return t;
|
|
3271
3271
|
}
|
|
3272
|
-
const
|
|
3272
|
+
const Ka = 6, pl = 32, Zc = 4096, ul = pl * Zc, Za = ul * Ka - // terminator byte (0x80).
|
|
3273
3273
|
1 - // zero byte (0x00) appended to each field element.
|
|
3274
|
-
1 *
|
|
3275
|
-
class gd extends
|
|
3274
|
+
1 * Zc * Ka, hl = 1;
|
|
3275
|
+
class gd extends K {
|
|
3276
3276
|
constructor({ maxSize: n, size: o }) {
|
|
3277
3277
|
super("Blob size is too large.", {
|
|
3278
3278
|
metaMessages: [`Max: ${n} bytes`, `Given: ${o} bytes`],
|
|
@@ -3280,12 +3280,12 @@ class gd extends Z {
|
|
|
3280
3280
|
});
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
|
-
class dl extends
|
|
3283
|
+
class dl extends K {
|
|
3284
3284
|
constructor() {
|
|
3285
3285
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
class fd extends
|
|
3288
|
+
class fd extends K {
|
|
3289
3289
|
constructor({ hash: n, size: o }) {
|
|
3290
3290
|
super(`Versioned hash "${n}" size is invalid.`, {
|
|
3291
3291
|
metaMessages: ["Expected: 32", `Received: ${o}`],
|
|
@@ -3293,7 +3293,7 @@ class fd extends Z {
|
|
|
3293
3293
|
});
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
|
-
class bd extends
|
|
3296
|
+
class bd extends K {
|
|
3297
3297
|
constructor({ hash: n, version: o }) {
|
|
3298
3298
|
super(`Versioned hash "${n}" version is invalid.`, {
|
|
3299
3299
|
metaMessages: [
|
|
@@ -3308,9 +3308,9 @@ function Ad(e) {
|
|
|
3308
3308
|
const n = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), o = typeof e.data == "string" ? Vn(e.data) : e.data, i = Eo(o);
|
|
3309
3309
|
if (!i)
|
|
3310
3310
|
throw new dl();
|
|
3311
|
-
if (i >
|
|
3311
|
+
if (i > Za)
|
|
3312
3312
|
throw new gd({
|
|
3313
|
-
maxSize:
|
|
3313
|
+
maxSize: Za,
|
|
3314
3314
|
size: i
|
|
3315
3315
|
});
|
|
3316
3316
|
const t = [];
|
|
@@ -3318,7 +3318,7 @@ function Ad(e) {
|
|
|
3318
3318
|
for (; c; ) {
|
|
3319
3319
|
const r = _s(new Uint8Array(ul));
|
|
3320
3320
|
let s = 0;
|
|
3321
|
-
for (; s <
|
|
3321
|
+
for (; s < Zc; ) {
|
|
3322
3322
|
const l = o.slice(a, a + (pl - 1));
|
|
3323
3323
|
if (r.pushByte(0), r.pushBytes(l), l.length < 31) {
|
|
3324
3324
|
r.pushByte(128), c = !1;
|
|
@@ -3331,7 +3331,7 @@ function Ad(e) {
|
|
|
3331
3331
|
return n === "bytes" ? t.map((r) => r.bytes) : t.map((r) => zn(r.bytes));
|
|
3332
3332
|
}
|
|
3333
3333
|
function Dl(e) {
|
|
3334
|
-
const { data: n, kzg: o, to: i } = e, t = e.blobs ?? Ad({ data: n, to: i }), c = e.commitments ?? Jc({ blobs: t, kzg: o, to: i }), a = e.proofs ??
|
|
3334
|
+
const { data: n, kzg: o, to: i } = e, t = e.blobs ?? Ad({ data: n, to: i }), c = e.commitments ?? Jc({ blobs: t, kzg: o, to: i }), a = e.proofs ?? Kc({ blobs: t, commitments: c, kzg: o, to: i }), r = [];
|
|
3335
3335
|
for (let s = 0; s < t.length; s++)
|
|
3336
3336
|
r.push({
|
|
3337
3337
|
blob: t[s],
|
|
@@ -3365,7 +3365,7 @@ async function gl(e, n) {
|
|
|
3365
3365
|
const { account: o = e.account, blobs: i, chain: t, gas: c, kzg: a, nonce: r, nonceManager: s, parameters: l = Cd, type: p } = n, u = o ? Oo(o) : void 0, d = { ...n, ...u ? { from: u == null ? void 0 : u.address } : {} };
|
|
3366
3366
|
let x;
|
|
3367
3367
|
async function f() {
|
|
3368
|
-
return x || (x = await En(e,
|
|
3368
|
+
return x || (x = await En(e, Ki, "getBlock")({ blockTag: "latest" }), x);
|
|
3369
3369
|
}
|
|
3370
3370
|
let w;
|
|
3371
3371
|
async function H() {
|
|
@@ -3381,7 +3381,7 @@ async function gl(e, n) {
|
|
|
3381
3381
|
d.blobVersionedHashes = C;
|
|
3382
3382
|
}
|
|
3383
3383
|
if (l.includes("sidecars")) {
|
|
3384
|
-
const C =
|
|
3384
|
+
const C = Kc({ blobs: i, commitments: B, kzg: a }), A = Dl({
|
|
3385
3385
|
blobs: i,
|
|
3386
3386
|
commitments: B,
|
|
3387
3387
|
proofs: C,
|
|
@@ -3419,7 +3419,7 @@ async function gl(e, n) {
|
|
|
3419
3419
|
request: d
|
|
3420
3420
|
});
|
|
3421
3421
|
if (typeof n.maxPriorityFeePerGas > "u" && n.maxFeePerGas && n.maxFeePerGas < A)
|
|
3422
|
-
throw new
|
|
3422
|
+
throw new Zh({
|
|
3423
3423
|
maxPriorityFeePerGas: A
|
|
3424
3424
|
});
|
|
3425
3425
|
d.maxPriorityFeePerGas = A, d.maxFeePerGas = C;
|
|
@@ -3440,7 +3440,7 @@ async function gl(e, n) {
|
|
|
3440
3440
|
account: u ? { address: u.address, type: "json-rpc" } : void 0
|
|
3441
3441
|
})), Wc(d), delete d.parameters, d;
|
|
3442
3442
|
}
|
|
3443
|
-
class kd extends
|
|
3443
|
+
class kd extends K {
|
|
3444
3444
|
constructor(n, { account: o, docsPath: i, chain: t, data: c, gas: a, gasPrice: r, maxFeePerGas: s, maxPriorityFeePerGas: l, nonce: p, to: u, value: d, stateOverride: x }) {
|
|
3445
3445
|
var H;
|
|
3446
3446
|
const f = o ? Oo(o) : void 0;
|
|
@@ -3571,7 +3571,7 @@ function Md(e) {
|
|
|
3571
3571
|
if (c && !Oe(c))
|
|
3572
3572
|
throw new $e({ address: c });
|
|
3573
3573
|
if (o || t)
|
|
3574
|
-
throw new
|
|
3574
|
+
throw new K("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
3575
3575
|
if (i && i > ui)
|
|
3576
3576
|
throw new Ln({ maxFeePerGas: i });
|
|
3577
3577
|
}
|
|
@@ -3582,7 +3582,7 @@ function zd(e) {
|
|
|
3582
3582
|
if (typeof n < "u" && n <= 0)
|
|
3583
3583
|
throw new pi({ chainId: n });
|
|
3584
3584
|
if (o || t)
|
|
3585
|
-
throw new
|
|
3585
|
+
throw new K("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
3586
3586
|
if (i && i > ui)
|
|
3587
3587
|
throw new Ln({ maxFeePerGas: i });
|
|
3588
3588
|
}
|
|
@@ -3593,9 +3593,9 @@ function qd(e) {
|
|
|
3593
3593
|
for (const o of e) {
|
|
3594
3594
|
const { contractAddress: i, chainId: t, nonce: c, ...a } = o;
|
|
3595
3595
|
n.push([
|
|
3596
|
-
|
|
3596
|
+
Z(t),
|
|
3597
3597
|
i,
|
|
3598
|
-
|
|
3598
|
+
Z(c),
|
|
3599
3599
|
...Uo({}, a)
|
|
3600
3600
|
]);
|
|
3601
3601
|
}
|
|
@@ -3627,13 +3627,13 @@ function jd(e, n) {
|
|
|
3627
3627
|
return ro([
|
|
3628
3628
|
"0x04",
|
|
3629
3629
|
Fn([
|
|
3630
|
-
|
|
3631
|
-
c ?
|
|
3632
|
-
l ?
|
|
3633
|
-
s ?
|
|
3634
|
-
t ?
|
|
3630
|
+
Z(i),
|
|
3631
|
+
c ? Z(c) : "0x",
|
|
3632
|
+
l ? Z(l) : "0x",
|
|
3633
|
+
s ? Z(s) : "0x",
|
|
3634
|
+
t ? Z(t) : "0x",
|
|
3635
3635
|
a ?? "0x",
|
|
3636
|
-
r ?
|
|
3636
|
+
r ? Z(r) : "0x",
|
|
3637
3637
|
u ?? "0x",
|
|
3638
3638
|
d,
|
|
3639
3639
|
x,
|
|
@@ -3653,21 +3653,21 @@ function Id(e, n) {
|
|
|
3653
3653
|
if (typeof d > "u" && (d = ml({
|
|
3654
3654
|
commitments: E
|
|
3655
3655
|
})), typeof x > "u") {
|
|
3656
|
-
const j =
|
|
3656
|
+
const j = Kc({ blobs: A, commitments: E, kzg: M });
|
|
3657
3657
|
x = Dl({ blobs: A, commitments: E, proofs: j });
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
3660
3660
|
const f = hi(p), w = [
|
|
3661
|
-
|
|
3662
|
-
t ?
|
|
3663
|
-
l ?
|
|
3664
|
-
s ?
|
|
3665
|
-
i ?
|
|
3661
|
+
Z(o),
|
|
3662
|
+
t ? Z(t) : "0x",
|
|
3663
|
+
l ? Z(l) : "0x",
|
|
3664
|
+
s ? Z(s) : "0x",
|
|
3665
|
+
i ? Z(i) : "0x",
|
|
3666
3666
|
c ?? "0x",
|
|
3667
|
-
a ?
|
|
3667
|
+
a ? Z(a) : "0x",
|
|
3668
3668
|
u ?? "0x",
|
|
3669
3669
|
f,
|
|
3670
|
-
r ?
|
|
3670
|
+
r ? Z(r) : "0x",
|
|
3671
3671
|
d ?? [],
|
|
3672
3672
|
...Uo(e, n)
|
|
3673
3673
|
], H = [], B = [], C = [];
|
|
@@ -3686,13 +3686,13 @@ function Hd(e, n) {
|
|
|
3686
3686
|
const { chainId: o, gas: i, nonce: t, to: c, value: a, maxFeePerGas: r, maxPriorityFeePerGas: s, accessList: l, data: p } = e;
|
|
3687
3687
|
Xc(e);
|
|
3688
3688
|
const u = hi(l), d = [
|
|
3689
|
-
|
|
3690
|
-
t ?
|
|
3691
|
-
s ?
|
|
3692
|
-
r ?
|
|
3693
|
-
i ?
|
|
3689
|
+
Z(o),
|
|
3690
|
+
t ? Z(t) : "0x",
|
|
3691
|
+
s ? Z(s) : "0x",
|
|
3692
|
+
r ? Z(r) : "0x",
|
|
3693
|
+
i ? Z(i) : "0x",
|
|
3694
3694
|
c ?? "0x",
|
|
3695
|
-
a ?
|
|
3695
|
+
a ? Z(a) : "0x",
|
|
3696
3696
|
p ?? "0x",
|
|
3697
3697
|
u,
|
|
3698
3698
|
...Uo(e, n)
|
|
@@ -3706,12 +3706,12 @@ function Td(e, n) {
|
|
|
3706
3706
|
const { chainId: o, gas: i, data: t, nonce: c, to: a, value: r, accessList: s, gasPrice: l } = e;
|
|
3707
3707
|
Md(e);
|
|
3708
3708
|
const p = hi(s), u = [
|
|
3709
|
-
|
|
3710
|
-
c ?
|
|
3711
|
-
l ?
|
|
3712
|
-
i ?
|
|
3709
|
+
Z(o),
|
|
3710
|
+
c ? Z(c) : "0x",
|
|
3711
|
+
l ? Z(l) : "0x",
|
|
3712
|
+
i ? Z(i) : "0x",
|
|
3713
3713
|
a ?? "0x",
|
|
3714
|
-
r ?
|
|
3714
|
+
r ? Z(r) : "0x",
|
|
3715
3715
|
t ?? "0x",
|
|
3716
3716
|
p,
|
|
3717
3717
|
...Uo(e, n)
|
|
@@ -3725,11 +3725,11 @@ function Nd(e, n) {
|
|
|
3725
3725
|
const { chainId: o = 0, gas: i, data: t, nonce: c, to: a, value: r, gasPrice: s } = e;
|
|
3726
3726
|
zd(e);
|
|
3727
3727
|
let l = [
|
|
3728
|
-
c ?
|
|
3729
|
-
s ?
|
|
3730
|
-
i ?
|
|
3728
|
+
c ? Z(c) : "0x",
|
|
3729
|
+
s ? Z(s) : "0x",
|
|
3730
|
+
i ? Z(i) : "0x",
|
|
3731
3731
|
a ?? "0x",
|
|
3732
|
-
r ?
|
|
3732
|
+
r ? Z(r) : "0x",
|
|
3733
3733
|
t ?? "0x"
|
|
3734
3734
|
];
|
|
3735
3735
|
if (n) {
|
|
@@ -3745,13 +3745,13 @@ function Nd(e, n) {
|
|
|
3745
3745
|
})(), u = Po(n.r), d = Po(n.s);
|
|
3746
3746
|
l = [
|
|
3747
3747
|
...l,
|
|
3748
|
-
|
|
3748
|
+
Z(p),
|
|
3749
3749
|
u === "0x00" ? "0x" : u,
|
|
3750
3750
|
d === "0x00" ? "0x" : d
|
|
3751
3751
|
];
|
|
3752
3752
|
} else o > 0 && (l = [
|
|
3753
3753
|
...l,
|
|
3754
|
-
|
|
3754
|
+
Z(o),
|
|
3755
3755
|
"0x",
|
|
3756
3756
|
"0x"
|
|
3757
3757
|
]);
|
|
@@ -3766,14 +3766,14 @@ function Uo(e, n) {
|
|
|
3766
3766
|
if (typeof i > "u" && typeof t > "u")
|
|
3767
3767
|
return [];
|
|
3768
3768
|
const c = Po(o.r), a = Po(o.s);
|
|
3769
|
-
return [typeof t == "number" ? t ?
|
|
3769
|
+
return [typeof t == "number" ? t ? Z(1) : "0x" : i === 0n ? "0x" : i === 1n ? Z(1) : i === 27n ? "0x" : Z(1), c === "0x00" ? "0x" : c, a === "0x00" ? "0x" : a];
|
|
3770
3770
|
}
|
|
3771
3771
|
const Vd = "2.13.4", Ld = () => `@wagmi/core@${Vd}`;
|
|
3772
3772
|
var fl = function(e, n, o, i) {
|
|
3773
3773
|
if (o === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
3774
3774
|
if (typeof n == "function" ? e !== n || !i : !n.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
3775
3775
|
return o === "m" ? i : o === "a" ? i.call(e) : i ? i.value : n.get(e);
|
|
3776
|
-
},
|
|
3776
|
+
}, Zi, bl;
|
|
3777
3777
|
class Bo extends Error {
|
|
3778
3778
|
get docsBaseUrl() {
|
|
3779
3779
|
return "https://wagmi.sh/core";
|
|
@@ -3783,7 +3783,7 @@ class Bo extends Error {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
constructor(n, o = {}) {
|
|
3785
3785
|
var c;
|
|
3786
|
-
super(),
|
|
3786
|
+
super(), Zi.add(this), Object.defineProperty(this, "details", {
|
|
3787
3787
|
enumerable: !0,
|
|
3788
3788
|
configurable: !0,
|
|
3789
3789
|
writable: !0,
|
|
@@ -3823,11 +3823,11 @@ class Bo extends Error {
|
|
|
3823
3823
|
`), o.cause && (this.cause = o.cause), this.details = i, this.docsPath = t, this.metaMessages = o.metaMessages, this.shortMessage = n;
|
|
3824
3824
|
}
|
|
3825
3825
|
walk(n) {
|
|
3826
|
-
return fl(this,
|
|
3826
|
+
return fl(this, Zi, "m", bl).call(this, this, n);
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
|
-
|
|
3830
|
-
return o != null && o(n) ? n : n.cause ? fl(this,
|
|
3829
|
+
Zi = /* @__PURE__ */ new WeakSet(), bl = function e(n, o) {
|
|
3830
|
+
return o != null && o(n) ? n : n.cause ? fl(this, Zi, "m", e).call(this, n.cause, o) : n;
|
|
3831
3831
|
};
|
|
3832
3832
|
class Rd extends Bo {
|
|
3833
3833
|
constructor() {
|
|
@@ -3919,7 +3919,7 @@ const Jd = {
|
|
|
3919
3919
|
l2ToL1MessagePasser: {
|
|
3920
3920
|
address: "0x4200000000000000000000000000000000000016"
|
|
3921
3921
|
}
|
|
3922
|
-
},
|
|
3922
|
+
}, Kd = {
|
|
3923
3923
|
block: /* @__PURE__ */ sl({
|
|
3924
3924
|
format(e) {
|
|
3925
3925
|
var o;
|
|
@@ -3954,7 +3954,7 @@ const Jd = {
|
|
|
3954
3954
|
function Al(e, n) {
|
|
3955
3955
|
return Yd(e) ? Xd(e) : Sd(e, n);
|
|
3956
3956
|
}
|
|
3957
|
-
const
|
|
3957
|
+
const Zd = {
|
|
3958
3958
|
transaction: Al
|
|
3959
3959
|
};
|
|
3960
3960
|
function Xd(e) {
|
|
@@ -3963,9 +3963,9 @@ function Xd(e) {
|
|
|
3963
3963
|
n,
|
|
3964
3964
|
i,
|
|
3965
3965
|
r ?? "0x",
|
|
3966
|
-
a ?
|
|
3967
|
-
s ?
|
|
3968
|
-
t ?
|
|
3966
|
+
a ? Z(a) : "0x",
|
|
3967
|
+
s ? Z(s) : "0x",
|
|
3968
|
+
t ? Z(t) : "0x",
|
|
3969
3969
|
c ? "0x1" : "0x",
|
|
3970
3970
|
o ?? "0x"
|
|
3971
3971
|
];
|
|
@@ -3986,8 +3986,8 @@ function Qd(e) {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
const Rn = {
|
|
3988
3988
|
contracts: Jd,
|
|
3989
|
-
formatters:
|
|
3990
|
-
serializers:
|
|
3989
|
+
formatters: Kd,
|
|
3990
|
+
serializers: Zd
|
|
3991
3991
|
}, Xa = /* @__PURE__ */ pe({
|
|
3992
3992
|
id: 42161,
|
|
3993
3993
|
name: "Arbitrum One",
|
|
@@ -4375,13 +4375,13 @@ const a0 = {
|
|
|
4375
4375
|
function r0(e, n) {
|
|
4376
4376
|
l0(e);
|
|
4377
4377
|
const { chainId: o, gas: i, nonce: t, to: c, value: a, maxFeePerGas: r, maxPriorityFeePerGas: s, accessList: l, feeCurrency: p, data: u } = e, d = [
|
|
4378
|
-
|
|
4379
|
-
t ?
|
|
4380
|
-
s ?
|
|
4381
|
-
r ?
|
|
4382
|
-
i ?
|
|
4378
|
+
Z(o),
|
|
4379
|
+
t ? Z(t) : "0x",
|
|
4380
|
+
s ? Z(s) : "0x",
|
|
4381
|
+
r ? Z(r) : "0x",
|
|
4382
|
+
i ? Z(i) : "0x",
|
|
4383
4383
|
c ?? "0x",
|
|
4384
|
-
a ?
|
|
4384
|
+
a ? Z(a) : "0x",
|
|
4385
4385
|
u ?? "0x",
|
|
4386
4386
|
hi(l),
|
|
4387
4387
|
p,
|
|
@@ -4400,15 +4400,15 @@ function l0(e) {
|
|
|
4400
4400
|
if (c && !Oe(c))
|
|
4401
4401
|
throw new $e({ address: c });
|
|
4402
4402
|
if (i)
|
|
4403
|
-
throw new
|
|
4403
|
+
throw new K("`gasPrice` is not a valid CIP-64 Transaction attribute.");
|
|
4404
4404
|
if (oi(t) && t > s0)
|
|
4405
4405
|
throw new Ln({ maxFeePerGas: t });
|
|
4406
4406
|
if (oi(o) && oi(t) && o > t)
|
|
4407
4407
|
throw new Fo({ maxFeePerGas: t, maxPriorityFeePerGas: o });
|
|
4408
4408
|
if (oi(a) && !Oe(a))
|
|
4409
|
-
throw new
|
|
4409
|
+
throw new K("`feeCurrency` MUST be a token address for CIP-64 transactions.");
|
|
4410
4410
|
if (Cl(a))
|
|
4411
|
-
throw new
|
|
4411
|
+
throw new K("`feeCurrency` must be provided for CIP-64 transactions.");
|
|
4412
4412
|
}
|
|
4413
4413
|
const m0 = {
|
|
4414
4414
|
formatters: t0,
|
|
@@ -5091,7 +5091,7 @@ const ur = /* @__PURE__ */ pe({
|
|
|
5091
5091
|
[xr.id]: ae()
|
|
5092
5092
|
},
|
|
5093
5093
|
ssr: !1,
|
|
5094
|
-
storage:
|
|
5094
|
+
storage: Km({
|
|
5095
5095
|
storage: u0 ? localStorage : void 0,
|
|
5096
5096
|
// Use a fallback for SSR
|
|
5097
5097
|
key: "skip-go-widget-wagmi"
|
|
@@ -5116,7 +5116,7 @@ const ur = /* @__PURE__ */ pe({
|
|
|
5116
5116
|
getCosmosSigner: async (i) => {
|
|
5117
5117
|
if (!o.cosmos)
|
|
5118
5118
|
throw new Error("getCosmosSigner error: no cosmos wallet");
|
|
5119
|
-
const t =
|
|
5119
|
+
const t = Kn(o.cosmos.walletName);
|
|
5120
5120
|
if (!t)
|
|
5121
5121
|
throw new Error("getCosmosSigner error: wallet not found");
|
|
5122
5122
|
return (await t.getKey(i)).isNanoLedger ? t.getOfflineSignerOnlyAmino(i) : t.getOfflineSigner(i);
|
|
@@ -5978,9 +5978,9 @@ const bn = _(
|
|
|
5978
5978
|
/* SwapPage */
|
|
5979
5979
|
), T0 = is((e, n) => {
|
|
5980
5980
|
const o = e(Ee), i = e(mn), t = e(R0), c = e(U0);
|
|
5981
|
-
o != null && o.amount && !t && n(Jo, o.amount), i != null && i.amount && !c && n(
|
|
5981
|
+
o != null && o.amount && !t && n(Jo, o.amount), i != null && i.amount && !c && n(Ko, i.amount);
|
|
5982
5982
|
}), N0 = _((e) => {
|
|
5983
|
-
const n = e(Ee), o = e(mn), i = e(On), t = e(Jo), c = e(
|
|
5983
|
+
const n = e(Ee), o = e(mn), i = e(On), t = e(Jo), c = e(Ko);
|
|
5984
5984
|
return e(T0), !(n != null && n.chainID) || !n.denom || !(o != null && o.chainID) || !o.denom ? void 0 : {
|
|
5985
5985
|
...i === "swap-in" ? {
|
|
5986
5986
|
amountIn: Tn(
|
|
@@ -6093,7 +6093,7 @@ const {
|
|
|
6093
6093
|
valueInitialized: R0,
|
|
6094
6094
|
clearTimeoutAtom: O0
|
|
6095
6095
|
} = ql(), {
|
|
6096
|
-
debouncedValueAtom:
|
|
6096
|
+
debouncedValueAtom: Ko,
|
|
6097
6097
|
valueInitialized: U0,
|
|
6098
6098
|
clearTimeoutAtom: W0
|
|
6099
6099
|
} = ql(), Ee = Di(
|
|
@@ -6105,7 +6105,7 @@ const {
|
|
|
6105
6105
|
return ((n = e(Ee)) == null ? void 0 : n.amount) ?? "";
|
|
6106
6106
|
},
|
|
6107
6107
|
(e, n, o) => {
|
|
6108
|
-
n(Ee, (i) => ({ ...i, amount: o })), n(Jo, o), n(On, "swap-in"), o === "" && (n(mn, (i) => ({ ...i, amount: o })), n(
|
|
6108
|
+
n(Ee, (i) => ({ ...i, amount: o })), n(Jo, o), n(On, "swap-in"), o === "" && (n(mn, (i) => ({ ...i, amount: o })), n(Ko, o, void 0, !0));
|
|
6109
6109
|
}
|
|
6110
6110
|
), mn = Di(
|
|
6111
6111
|
"destinationAsset",
|
|
@@ -6116,12 +6116,12 @@ const {
|
|
|
6116
6116
|
return ((n = e(mn)) == null ? void 0 : n.amount) ?? "";
|
|
6117
6117
|
},
|
|
6118
6118
|
(e, n, o, i) => {
|
|
6119
|
-
n(mn, (t) => ({ ...t, amount: o })), n(
|
|
6119
|
+
n(mn, (t) => ({ ...t, amount: o })), n(Ko, o, i), n(On, "swap-out"), o === "" && (n(Ee, (t) => ({ ...t, amount: o })), n(Jo, o, void 0, !0));
|
|
6120
6120
|
}
|
|
6121
6121
|
), Sl = _(null, (e, n) => {
|
|
6122
|
-
n(Ee, (o) => ({ ...o, amount: "" })), n(Jo, "", void 0, !0), n(mn, (o) => ({ ...o, amount: "" })), n(
|
|
6122
|
+
n(Ee, (o) => ({ ...o, amount: "" })), n(Jo, "", void 0, !0), n(mn, (o) => ({ ...o, amount: "" })), n(Ko, "", void 0, !0);
|
|
6123
6123
|
}), G0 = _((e) => {
|
|
6124
|
-
const n = e(fi), o = e(xt), i = e(Jo), t = e(
|
|
6124
|
+
const n = e(fi), o = e(xt), i = e(Jo), t = e(Ko), { isLoading: c } = e(Go), a = e(On), r = n !== i, s = o !== t;
|
|
6125
6125
|
if (a === "swap-in")
|
|
6126
6126
|
return r || c;
|
|
6127
6127
|
if (a === "swap-out")
|
|
@@ -6131,7 +6131,7 @@ const {
|
|
|
6131
6131
|
"swap-in"
|
|
6132
6132
|
), Qi = _(!1), J0 = _(null, (e, n) => {
|
|
6133
6133
|
const o = e(Ee), i = e(mn), t = e(On);
|
|
6134
|
-
n(Qi, !0), n(Ee, { ...i }),
|
|
6134
|
+
n(Qi, !0), n(Ee, { ...i }), n(fi, (i == null ? void 0 : i.amount) ?? ""), n(mn, { ...o }), n(xt, (o == null ? void 0 : o.amount) ?? "", () => {
|
|
6135
6135
|
n(On, t === "swap-in" ? "swap-out" : "swap-in"), n(Qi, !1);
|
|
6136
6136
|
});
|
|
6137
6137
|
}), aa = _();
|
|
@@ -6141,13 +6141,13 @@ const _i = {
|
|
|
6141
6141
|
customGasAmount: 2e5,
|
|
6142
6142
|
routePreference: "Fastest"
|
|
6143
6143
|
/* FASTEST */
|
|
6144
|
-
}, Pn = Di("swapSettingsAtom", _i),
|
|
6144
|
+
}, Pn = Di("swapSettingsAtom", _i), K0 = _(
|
|
6145
6145
|
(e) => e(Pn).slippage,
|
|
6146
6146
|
(e, n, o) => {
|
|
6147
6147
|
const i = e(Pn);
|
|
6148
6148
|
n(Pn, { ...i, slippage: o });
|
|
6149
6149
|
}
|
|
6150
|
-
),
|
|
6150
|
+
), Z0 = _(
|
|
6151
6151
|
(e) => e(Pn).routePreference,
|
|
6152
6152
|
(e, n, o) => {
|
|
6153
6153
|
const i = e(Pn);
|
|
@@ -6406,7 +6406,7 @@ function jl(e) {
|
|
|
6406
6406
|
Ve && Ve[0] == 0 || !be ? We * 0 : We / 0
|
|
6407
6407
|
)
|
|
6408
6408
|
);
|
|
6409
|
-
for (ie = new C(We), ce = ie.c = [], z = v.e - b.e, We = y + z + 1, k || (k = an, z =
|
|
6409
|
+
for (ie = new C(We), ce = ie.c = [], z = v.e - b.e, We = y + z + 1, k || (k = an, z = Ke(v.e / Q) - Ke(b.e / Q), We = We / Q | 0), F = 0; be[F] == (Ve[F] || 0); F++) ;
|
|
6410
6410
|
if (be[F] > (Ve[F] || 0) && z--, We < 0)
|
|
6411
6411
|
ce.push(1), I = !0;
|
|
6412
6412
|
else {
|
|
@@ -6531,7 +6531,7 @@ function jl(e) {
|
|
|
6531
6531
|
if (h != null)
|
|
6532
6532
|
return ge(h, 0, qe), D == null ? D = r : ge(D, 0, 8), j(new C(y), h + y.e + 1, D);
|
|
6533
6533
|
if (!(g = y.c)) return null;
|
|
6534
|
-
if (v = ((b = g.length - 1) -
|
|
6534
|
+
if (v = ((b = g.length - 1) - Ke(this.e / Q)) * Q, b = g[b]) for (; b % 10 == 0; b /= 10, v--) ;
|
|
6535
6535
|
return v < 0 && (v = 0), v;
|
|
6536
6536
|
}, t.dividedBy = t.div = function(h, D) {
|
|
6537
6537
|
return n(this, new C(h, D), a, r);
|
|
@@ -6580,7 +6580,7 @@ function jl(e) {
|
|
|
6580
6580
|
}, t.isGreaterThanOrEqualTo = t.gte = function(h, D) {
|
|
6581
6581
|
return (D = Jn(this, new C(h, D))) === 1 || D === 0;
|
|
6582
6582
|
}, t.isInteger = function() {
|
|
6583
|
-
return !!this.c &&
|
|
6583
|
+
return !!this.c && Ke(this.e / Q) > this.c.length - 2;
|
|
6584
6584
|
}, t.isLessThan = t.lt = function(h, D) {
|
|
6585
6585
|
return Jn(this, new C(h, D)) < 0;
|
|
6586
6586
|
}, t.isLessThanOrEqualTo = t.lte = function(h, D) {
|
|
@@ -6607,7 +6607,7 @@ function jl(e) {
|
|
|
6607
6607
|
r == 3 ? -0 : 0
|
|
6608
6608
|
));
|
|
6609
6609
|
}
|
|
6610
|
-
if (P =
|
|
6610
|
+
if (P = Ke(P), z = Ke(z), F = F.slice(), k = P - z) {
|
|
6611
6611
|
for ((y = k < 0) ? (k = -k, b = F) : (z = P, b = I), b.reverse(), D = k; D--; b.push(0)) ;
|
|
6612
6612
|
b.reverse();
|
|
6613
6613
|
} else
|
|
@@ -6633,7 +6633,7 @@ function jl(e) {
|
|
|
6633
6633
|
var g, v, b, y, S, k, P, z, F, I, R, O, V, ie, ce, Y = this, $ = Y.c, ke = (h = new C(h, D)).c;
|
|
6634
6634
|
if (!$ || !ke || !$[0] || !ke[0])
|
|
6635
6635
|
return !Y.s || !h.s || $ && !$[0] && !ke || ke && !ke[0] && !$ ? h.c = h.e = h.s = null : (h.s *= Y.s, !$ || !ke ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
|
|
6636
|
-
for (v =
|
|
6636
|
+
for (v = Ke(Y.e / Q) + Ke(h.e / Q), h.s *= Y.s, P = $.length, I = ke.length, P < I && (V = $, $ = ke, ke = V, b = P, P = I, I = b), b = P + I, V = []; b--; V.push(0)) ;
|
|
6637
6637
|
for (ie = an, ce = In, b = I; --b >= 0; ) {
|
|
6638
6638
|
for (g = 0, R = ke[b] % ce, O = ke[b] / ce | 0, S = P, y = b + S; y > b; )
|
|
6639
6639
|
z = $[--S] % ce, F = $[S] / ce | 0, k = O * z + F * R, z = R * z + k % ce * ce + V[y] + g, g = (z / ie | 0) + (k / ce | 0) + O * F, V[y--] = z % ie;
|
|
@@ -6653,7 +6653,7 @@ function jl(e) {
|
|
|
6653
6653
|
if (!k || !P) return new C(b / 0);
|
|
6654
6654
|
if (!k[0] || !P[0]) return P[0] ? h : new C(k[0] ? v : b * 0);
|
|
6655
6655
|
}
|
|
6656
|
-
if (y =
|
|
6656
|
+
if (y = Ke(y), S = Ke(S), k = k.slice(), b = y - S) {
|
|
6657
6657
|
for (b > 0 ? (S = y, g = P) : (b = -b, g = k), g.reverse(); b--; g.push(0)) ;
|
|
6658
6658
|
g.reverse();
|
|
6659
6659
|
}
|
|
@@ -6676,7 +6676,7 @@ function jl(e) {
|
|
|
6676
6676
|
var h, D, g, v, b, y = this, S = y.c, k = y.s, P = y.e, z = a + 4, F = new C("0.5");
|
|
6677
6677
|
if (k !== 1 || !S || !S[0])
|
|
6678
6678
|
return new C(!k || k < 0 && (!S || S[0]) ? NaN : S ? y : 1 / 0);
|
|
6679
|
-
if (k = Math.sqrt(+T(y)), k == 0 || k == 1 / 0 ? (D = Ge(S), (D.length + P) % 2 == 0 && (D += "0"), k = Math.sqrt(+D), P =
|
|
6679
|
+
if (k = Math.sqrt(+T(y)), k == 0 || k == 1 / 0 ? (D = Ge(S), (D.length + P) % 2 == 0 && (D += "0"), k = Math.sqrt(+D), P = Ke((P + 1) / 2) - (P < 0 || P % 2), k == 1 / 0 ? D = "5e" + P : (D = k.toExponential(), D = D.slice(0, D.indexOf("e") + 1) + P), g = new C(D)) : g = new C(k + ""), g.c[0]) {
|
|
6680
6680
|
for (P = g.e, k = P + z, k < 3 && (k = 0); ; )
|
|
6681
6681
|
if (b = g, g = F.times(b.plus(n(y, b, z, 1))), Ge(b.c).slice(0, k) === (D = Ge(g.c)).slice(0, k))
|
|
6682
6682
|
if (g.e < P && --k, D = D.slice(k - 3, k + 1), D == "9999" || !v && D == "4999") {
|
|
@@ -6734,7 +6734,7 @@ function jl(e) {
|
|
|
6734
6734
|
return T(this);
|
|
6735
6735
|
}, t._isBigNumber = !0, t[Symbol.toStringTag] = "BigNumber", t[Symbol.for("nodejs.util.inspect.custom")] = t.valueOf, e != null && C.set(e), C;
|
|
6736
6736
|
}
|
|
6737
|
-
function
|
|
6737
|
+
function Ke(e) {
|
|
6738
6738
|
var n = e | 0;
|
|
6739
6739
|
return e > 0 || e === n ? n : n - 1;
|
|
6740
6740
|
}
|
|
@@ -6762,7 +6762,7 @@ function ge(e, n, o, i) {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
function Ei(e) {
|
|
6764
6764
|
var n = e.c.length - 1;
|
|
6765
|
-
return
|
|
6765
|
+
return Ke(e.e / Q) == n && e.c[n] % 2 != 0;
|
|
6766
6766
|
}
|
|
6767
6767
|
function Pi(e, n) {
|
|
6768
6768
|
return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (n < 0 ? "e" : "e+") + n;
|
|
@@ -6831,7 +6831,7 @@ function $0(e) {
|
|
|
6831
6831
|
function It(e) {
|
|
6832
6832
|
return e.toString().replace(/,/g, "");
|
|
6833
6833
|
}
|
|
6834
|
-
const zo = (e) => e == null ? void 0 : e.replace(/0+$/, "").replace(/\.$/, "");
|
|
6834
|
+
const zo = (e) => e === "0" ? e : e == null ? void 0 : e.replace(/0+$/, "").replace(/\.$/, "");
|
|
6835
6835
|
function ri(e, n = ai) {
|
|
6836
6836
|
if (e === void 0) return "";
|
|
6837
6837
|
if (typeof e == "string") {
|
|
@@ -6981,7 +6981,7 @@ const hc = (e) => {
|
|
|
6981
6981
|
title: `Warning: Bad trade (-${d})`,
|
|
6982
6982
|
description: /* @__PURE__ */ q(ve, { children: [
|
|
6983
6983
|
/* @__PURE__ */ q(G, { color: i.error.text, textAlign: "center", textWrap: "balance", children: [
|
|
6984
|
-
"You will lose
|
|
6984
|
+
"You will lose ",
|
|
6985
6985
|
d,
|
|
6986
6986
|
" of your input value with this trade",
|
|
6987
6987
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -6993,7 +6993,7 @@ const hc = (e) => {
|
|
|
6993
6993
|
a,
|
|
6994
6994
|
")",
|
|
6995
6995
|
/* @__PURE__ */ m("br", {}),
|
|
6996
|
-
"Estimated output:
|
|
6996
|
+
"Estimated output: ",
|
|
6997
6997
|
f == null ? void 0 : f.amount,
|
|
6998
6998
|
" ",
|
|
6999
6999
|
f == null ? void 0 : f.symbol,
|
|
@@ -7217,7 +7217,7 @@ function aD(e) {
|
|
|
7217
7217
|
]
|
|
7218
7218
|
};
|
|
7219
7219
|
}
|
|
7220
|
-
function
|
|
7220
|
+
function Zo(e) {
|
|
7221
7221
|
if (!e) return [];
|
|
7222
7222
|
let n = 0;
|
|
7223
7223
|
return e.map((o, i, t) => {
|
|
@@ -13939,6 +13939,11 @@ const hD = [
|
|
|
13939
13939
|
coinDenom: "SYN",
|
|
13940
13940
|
coinMinimalDenom: "ibc/33E97105B5C1F48CB7D6400F4673F9B3699AC59EDB621CCCD57D5D480E0C83B6",
|
|
13941
13941
|
coinDecimals: 6
|
|
13942
|
+
},
|
|
13943
|
+
{
|
|
13944
|
+
coinDenom: "DGN",
|
|
13945
|
+
coinMinimalDenom: "ibc/D8C6D71032EC7CC4C9CCD0FF709CF87D34A7311FE5491E70F7EDE2351D189C10",
|
|
13946
|
+
coinDecimals: 6
|
|
13942
13947
|
}
|
|
13943
13948
|
],
|
|
13944
13949
|
rest: "https://migaloo-api.polkachu.com:443",
|
|
@@ -17627,6 +17632,11 @@ const hD = [
|
|
|
17627
17632
|
coinDenom: "earnCDT",
|
|
17628
17633
|
coinMinimalDenom: "factory/osmo1jw6r68y0uhfmqagc7uhtdddctc7wq95pncvrqnvtd47w4hx46p7se9nju5/earn-cdt",
|
|
17629
17634
|
coinDecimals: 6
|
|
17635
|
+
},
|
|
17636
|
+
{
|
|
17637
|
+
coinDenom: "Sherpa",
|
|
17638
|
+
coinMinimalDenom: "factory/osmo1n6asrjy9754q8y9jsxqf557zmsv3s3xa5m9eg5/usherpa",
|
|
17639
|
+
coinDecimals: 6
|
|
17630
17640
|
}
|
|
17631
17641
|
],
|
|
17632
17642
|
rest: "https://lcd.osmosis.zone/",
|
|
@@ -22217,6 +22227,11 @@ const hD = [
|
|
|
22217
22227
|
coinDenom: "COSMO",
|
|
22218
22228
|
coinMinimalDenom: "ibc/4925733868E7999F5822C961ADE9470A7FC5FA4A560BAE1DE102783C3F64C201",
|
|
22219
22229
|
coinDecimals: 6
|
|
22230
|
+
},
|
|
22231
|
+
{
|
|
22232
|
+
coinDenom: "DGN",
|
|
22233
|
+
coinMinimalDenom: "ibc/B2AA4C3CD19954859C3B537EC0705640AFC01075F52993D9AC5E73F07F0386CC",
|
|
22234
|
+
coinDecimals: 6
|
|
22220
22235
|
}
|
|
22221
22236
|
],
|
|
22222
22237
|
rest: "https://lcd-terra.wildsage.io",
|
|
@@ -25748,6 +25763,47 @@ const hD = [
|
|
|
25748
25763
|
coinType: 60
|
|
25749
25764
|
}
|
|
25750
25765
|
},
|
|
25766
|
+
{
|
|
25767
|
+
chainId: "pocket-beta",
|
|
25768
|
+
currencies: [
|
|
25769
|
+
{
|
|
25770
|
+
coinDenom: "pokt",
|
|
25771
|
+
coinMinimalDenom: "upokt",
|
|
25772
|
+
coinDecimals: 6
|
|
25773
|
+
}
|
|
25774
|
+
],
|
|
25775
|
+
rest: "https://shannon-testnet-grove-api.beta.poktroll.com",
|
|
25776
|
+
rpc: "https://shannon-testnet-grove-rpc.beta.poktroll.com",
|
|
25777
|
+
bech32Config: {
|
|
25778
|
+
bech32PrefixAccAddr: "pokt@",
|
|
25779
|
+
bech32PrefixAccPub: "pokt@pub",
|
|
25780
|
+
bech32PrefixValAddr: "pokt@valoper",
|
|
25781
|
+
bech32PrefixValPub: "pokt@valoperpub",
|
|
25782
|
+
bech32PrefixConsAddr: "pokt@valcons",
|
|
25783
|
+
bech32PrefixConsPub: "pokt@valconspub"
|
|
25784
|
+
},
|
|
25785
|
+
chainName: "pockettestnet",
|
|
25786
|
+
feeCurrencies: [
|
|
25787
|
+
{
|
|
25788
|
+
coinDenom: "pokt",
|
|
25789
|
+
coinMinimalDenom: "upokt",
|
|
25790
|
+
coinDecimals: 6,
|
|
25791
|
+
gasPriceStep: {
|
|
25792
|
+
low: 1e-3,
|
|
25793
|
+
average: 2e-3,
|
|
25794
|
+
high: 25e-4
|
|
25795
|
+
}
|
|
25796
|
+
}
|
|
25797
|
+
],
|
|
25798
|
+
stakeCurrency: {
|
|
25799
|
+
coinDenom: "pokt",
|
|
25800
|
+
coinMinimalDenom: "upokt",
|
|
25801
|
+
coinDecimals: 6
|
|
25802
|
+
},
|
|
25803
|
+
bip44: {
|
|
25804
|
+
coinType: 118
|
|
25805
|
+
}
|
|
25806
|
+
},
|
|
25751
25807
|
{
|
|
25752
25808
|
chainId: "indigo-1",
|
|
25753
25809
|
currencies: [
|
|
@@ -27692,6 +27748,12 @@ const hD = [
|
|
|
27692
27748
|
url: "https://mainnet.whispernode.com/archway",
|
|
27693
27749
|
tx_page: "https://mainnet.whispernode.com/archway/tx/${txHash}",
|
|
27694
27750
|
account_page: "https://mainnet.whispernode.com/archway/account/${accountAddress}"
|
|
27751
|
+
},
|
|
27752
|
+
{
|
|
27753
|
+
kind: "Chainroot",
|
|
27754
|
+
url: "https://explorer.chainroot.io/archway",
|
|
27755
|
+
tx_page: "https://explorer.chainroot.io/archway/transactions/${txHash}",
|
|
27756
|
+
account_page: "https://explorer.chainroot.io/archway/accounts/${accountAddress}"
|
|
27695
27757
|
}
|
|
27696
27758
|
]
|
|
27697
27759
|
},
|
|
@@ -28697,6 +28759,12 @@ const hD = [
|
|
|
28697
28759
|
url: "https://mainnet.whispernode.com/comdex",
|
|
28698
28760
|
tx_page: "https://mainnet.whispernode.com/comdex/tx/${txHash}",
|
|
28699
28761
|
account_page: "https://mainnet.whispernode.com/comdex/account/${accountAddress}"
|
|
28762
|
+
},
|
|
28763
|
+
{
|
|
28764
|
+
kind: "Chainroot",
|
|
28765
|
+
url: "https://explorer.chainroot.io/comdex",
|
|
28766
|
+
tx_page: "https://explorer.chainroot.io/comdex/transactions/${txHash}",
|
|
28767
|
+
account_page: "https://explorer.chainroot.io/comdex/accounts/${accountAddress}"
|
|
28700
28768
|
}
|
|
28701
28769
|
]
|
|
28702
28770
|
},
|
|
@@ -28820,6 +28888,12 @@ const hD = [
|
|
|
28820
28888
|
url: "https://ezstaking.app/coreum",
|
|
28821
28889
|
tx_page: "https://ezstaking.app/coreum/txs/${txHash}",
|
|
28822
28890
|
account_page: "https://ezstaking.app/coreum/account/${accountAddress}"
|
|
28891
|
+
},
|
|
28892
|
+
{
|
|
28893
|
+
kind: "Chainroot",
|
|
28894
|
+
url: "https://explorer.chainroot.io/coreum",
|
|
28895
|
+
tx_page: "https://explorer.chainroot.io/coreum/transactions/${txHash}",
|
|
28896
|
+
account_page: "https://explorer.chainroot.io/coreum/accounts/${accountAddress}"
|
|
28823
28897
|
}
|
|
28824
28898
|
]
|
|
28825
28899
|
},
|
|
@@ -30384,6 +30458,12 @@ const hD = [
|
|
|
30384
30458
|
url: "https://mainnet.whispernode.com/juno",
|
|
30385
30459
|
tx_page: "https://mainnet.whispernode.com/juno/tx/${txHash}",
|
|
30386
30460
|
account_page: "https://mainnet.whispernode.com/juno/account/${accountAddress}"
|
|
30461
|
+
},
|
|
30462
|
+
{
|
|
30463
|
+
kind: "Chainroot",
|
|
30464
|
+
url: "https://explorer.chainroot.io/juno",
|
|
30465
|
+
tx_page: "https://explorer.chainroot.io/juno/transactions/${txHash}",
|
|
30466
|
+
account_page: "https://explorer.chainroot.io/juno/accounts/${accountAddress}"
|
|
30387
30467
|
}
|
|
30388
30468
|
]
|
|
30389
30469
|
},
|
|
@@ -31537,6 +31617,12 @@ const hD = [
|
|
|
31537
31617
|
url: "https://mainnet.whispernode.com/osmosis",
|
|
31538
31618
|
tx_page: "https://mainnet.whispernode.com/osmosis/tx/${txHash}",
|
|
31539
31619
|
account_page: "https://mainnet.whispernode.com/osmosis/account/${accountAddress}"
|
|
31620
|
+
},
|
|
31621
|
+
{
|
|
31622
|
+
kind: "Chainroot",
|
|
31623
|
+
url: "https://explorer.chainroot.io/osmosis",
|
|
31624
|
+
tx_page: "https://explorer.chainroot.io/osmosis/transactions/${txHash}",
|
|
31625
|
+
account_page: "https://explorer.chainroot.io/osmosis/accounts/${accountAddress}"
|
|
31540
31626
|
}
|
|
31541
31627
|
]
|
|
31542
31628
|
},
|
|
@@ -31569,6 +31655,12 @@ const hD = [
|
|
|
31569
31655
|
kind: "bigdipper",
|
|
31570
31656
|
url: "https://explorer.gopanacea.org",
|
|
31571
31657
|
tx_page: "https://explorer.gopanacea.org/transactions/${txHash}"
|
|
31658
|
+
},
|
|
31659
|
+
{
|
|
31660
|
+
kind: "🚀 WHEN MOON 🌕 WHEN LAMBO 🔥",
|
|
31661
|
+
url: "https://explorer.whenmoonwhenlambo.money/panacea",
|
|
31662
|
+
tx_page: "https://explorer.whenmoonwhenlambo.money/panacea/tx/${txHash}",
|
|
31663
|
+
account_page: "https://explorer.whenmoonwhenlambo.money/panacea/account/${accountAddress}"
|
|
31572
31664
|
}
|
|
31573
31665
|
]
|
|
31574
31666
|
},
|
|
@@ -31864,6 +31956,12 @@ const hD = [
|
|
|
31864
31956
|
url: "https://staking-explorer.com/explorer/pryzm",
|
|
31865
31957
|
tx_page: "https://staking-explorer.com/transaction.php?chain=pryzm&tx=${txHash}",
|
|
31866
31958
|
account_page: "https://staking-explorer.com/account.php?chain=pryzm&addr=${accountAddress}"
|
|
31959
|
+
},
|
|
31960
|
+
{
|
|
31961
|
+
kind: "Chainroot",
|
|
31962
|
+
url: "https://explorer.chainroot.io/pryzm",
|
|
31963
|
+
tx_page: "https://explorer.chainroot.io/pryzm/transactions/${txHash}",
|
|
31964
|
+
account_page: "https://explorer.chainroot.io/pryzm/accounts/${accountAddress}"
|
|
31867
31965
|
}
|
|
31868
31966
|
]
|
|
31869
31967
|
},
|
|
@@ -31931,6 +32029,12 @@ const hD = [
|
|
|
31931
32029
|
url: "https://mainnet.whispernode.com/quasar",
|
|
31932
32030
|
tx_page: "https://mainnet.whispernode.com/quasar/tx/${txHash}",
|
|
31933
32031
|
account_page: "https://mainnet.whispernode.com/quasar/account/${accountAddress}"
|
|
32032
|
+
},
|
|
32033
|
+
{
|
|
32034
|
+
kind: "Chainroot",
|
|
32035
|
+
url: "https://explorer.chainroot.io/quasar",
|
|
32036
|
+
tx_page: "https://explorer.chainroot.io/quasar/transactions/${txHash}",
|
|
32037
|
+
account_page: "https://explorer.chainroot.io/quasar/accounts/${accountAddress}"
|
|
31934
32038
|
}
|
|
31935
32039
|
]
|
|
31936
32040
|
},
|
|
@@ -32223,6 +32327,12 @@ const hD = [
|
|
|
32223
32327
|
url: "https://explorer.nodeshub.online/router/",
|
|
32224
32328
|
tx_page: "https://explorer.nodeshub.online/router/tx/${txHash}",
|
|
32225
32329
|
account_page: "https://explorer.nodeshub.online/router/accounts/${accountAddress}"
|
|
32330
|
+
},
|
|
32331
|
+
{
|
|
32332
|
+
kind: "🚀 WHEN MOON 🌕 WHEN LAMBO 🔥",
|
|
32333
|
+
url: "https://explorer.whenmoonwhenlambo.money/routerchain",
|
|
32334
|
+
tx_page: "https://explorer.whenmoonwhenlambo.money/routerchain/tx/${txHash}",
|
|
32335
|
+
account_page: "https://explorer.whenmoonwhenlambo.money/routerchain/account/${accountAddress}"
|
|
32226
32336
|
}
|
|
32227
32337
|
]
|
|
32228
32338
|
},
|
|
@@ -32252,6 +32362,12 @@ const hD = [
|
|
|
32252
32362
|
url: "https://explorer.nodestake.org/saga",
|
|
32253
32363
|
tx_page: "https://explorer.nodestake.org/saga/tx/${txHash}",
|
|
32254
32364
|
account_page: "https://explorer.nodestake.org/saga/account/${accountAddress}"
|
|
32365
|
+
},
|
|
32366
|
+
{
|
|
32367
|
+
kind: "Chainroot",
|
|
32368
|
+
url: "https://explorer.chainroot.io/saga",
|
|
32369
|
+
tx_page: "https://explorer.chainroot.io/saga/transactions/${txHash}",
|
|
32370
|
+
account_page: "https://explorer.chainroot.io/saga/accounts/${accountAddress}"
|
|
32255
32371
|
}
|
|
32256
32372
|
]
|
|
32257
32373
|
},
|
|
@@ -32630,6 +32746,12 @@ const hD = [
|
|
|
32630
32746
|
kind: "Stakeflow",
|
|
32631
32747
|
url: "https://stakeflow.io/shentu",
|
|
32632
32748
|
account_page: "https://stakeflow.io/shentu/accounts/${accountAddress}"
|
|
32749
|
+
},
|
|
32750
|
+
{
|
|
32751
|
+
kind: "Chainroot",
|
|
32752
|
+
url: "https://explorer.chainroot.io/shentu",
|
|
32753
|
+
tx_page: "https://explorer.chainroot.io/shentu/transactions/${txHash}",
|
|
32754
|
+
account_page: "https://explorer.chainroot.io/shentu/accounts/${accountAddress}"
|
|
32633
32755
|
}
|
|
32634
32756
|
]
|
|
32635
32757
|
},
|
|
@@ -32924,6 +33046,12 @@ const hD = [
|
|
|
32924
33046
|
url: "https://mainnet.whispernode.com/stargaze",
|
|
32925
33047
|
tx_page: "https://mainnet.whispernode.com/stargaze/tx/${txHash}",
|
|
32926
33048
|
account_page: "https://mainnet.whispernode.com/stargaze/account/${accountAddress}"
|
|
33049
|
+
},
|
|
33050
|
+
{
|
|
33051
|
+
kind: "Chainroot",
|
|
33052
|
+
url: "https://explorer.chainroot.io/stargaze",
|
|
33053
|
+
tx_page: "https://explorer.chainroot.io/stargaze/transactions/${txHash}",
|
|
33054
|
+
account_page: "https://explorer.chainroot.io/stargaze/accounts/${accountAddress}"
|
|
32927
33055
|
}
|
|
32928
33056
|
]
|
|
32929
33057
|
},
|
|
@@ -33065,6 +33193,12 @@ const hD = [
|
|
|
33065
33193
|
url: "https://staking-explorer.com/explorer/synternet",
|
|
33066
33194
|
tx_page: "https://staking-explorer.com/transaction.php?chain=synternet&tx=${txHash}",
|
|
33067
33195
|
account_page: "https://staking-explorer.com/account.php?chain=synternet&addr=${accountAddress}"
|
|
33196
|
+
},
|
|
33197
|
+
{
|
|
33198
|
+
kind: "🚀 WHEN MOON 🌕 WHEN LAMBO 🔥",
|
|
33199
|
+
url: "https://explorer.whenmoonwhenlambo.money/synternet",
|
|
33200
|
+
tx_page: "https://explorer.whenmoonwhenlambo.money/synternet/tx/${txHash}",
|
|
33201
|
+
account_page: "https://explorer.whenmoonwhenlambo.money/synternet/account/${accountAddress}"
|
|
33068
33202
|
}
|
|
33069
33203
|
]
|
|
33070
33204
|
},
|
|
@@ -33174,6 +33308,12 @@ const hD = [
|
|
|
33174
33308
|
url: "https://explorer.whenmoonwhenlambo.money/teritori",
|
|
33175
33309
|
tx_page: "https://explorer.whenmoonwhenlambo.money/teritori/tx/${txHash}",
|
|
33176
33310
|
account_page: "https://explorer.whenmoonwhenlambo.money/teritori/account/${accountAddress}"
|
|
33311
|
+
},
|
|
33312
|
+
{
|
|
33313
|
+
kind: "Chainroot",
|
|
33314
|
+
url: "https://explorer.chainroot.io/teritori",
|
|
33315
|
+
tx_page: "https://explorer.chainroot.io/teritori/transactions/${txHash}",
|
|
33316
|
+
account_page: "https://explorer.chainroot.io/teritori/accounts/${accountAddress}"
|
|
33177
33317
|
}
|
|
33178
33318
|
]
|
|
33179
33319
|
},
|
|
@@ -33393,6 +33533,12 @@ const hD = [
|
|
|
33393
33533
|
url: "https://ezstaking.app/umee",
|
|
33394
33534
|
tx_page: "https://ezstaking.app/umee/txs/${txHash}",
|
|
33395
33535
|
account_page: "https://ezstaking.app/umee/account/${accountAddress}"
|
|
33536
|
+
},
|
|
33537
|
+
{
|
|
33538
|
+
kind: "🚀 WHEN MOON 🌕 WHEN LAMBO 🔥",
|
|
33539
|
+
url: "https://explorer.whenmoonwhenlambo.money/umee",
|
|
33540
|
+
tx_page: "https://explorer.whenmoonwhenlambo.money/umee/tx/${txHash}",
|
|
33541
|
+
account_page: "https://explorer.whenmoonwhenlambo.money/umee/account/${accountAddress}"
|
|
33396
33542
|
}
|
|
33397
33543
|
]
|
|
33398
33544
|
},
|
|
@@ -34638,6 +34784,23 @@ const hD = [
|
|
|
34638
34784
|
}
|
|
34639
34785
|
]
|
|
34640
34786
|
},
|
|
34787
|
+
{
|
|
34788
|
+
chainId: "pocket-beta",
|
|
34789
|
+
explorers: [
|
|
34790
|
+
{
|
|
34791
|
+
kind: "🔍 POKTScan Explorer 🔎",
|
|
34792
|
+
url: "https://shannon-beta.poktscan.com/",
|
|
34793
|
+
tx_page: "https://shannon-beta.poktscan.com/tx/${txHash}",
|
|
34794
|
+
account_page: "https://shannon-beta.poktscan.com/accounts/${accountAddress}"
|
|
34795
|
+
},
|
|
34796
|
+
{
|
|
34797
|
+
kind: "🗺 Shannon Explorer (stakenodes.org) 🗺",
|
|
34798
|
+
url: "https://shannon.beta.testnet.pokt.network/",
|
|
34799
|
+
tx_page: "https://shannon.beta.testnet.pokt.network/poktroll/tx/${txHash}",
|
|
34800
|
+
account_page: "https://shannon.beta.testnet.pokt.network/poktroll/account/${accountAddress}"
|
|
34801
|
+
}
|
|
34802
|
+
]
|
|
34803
|
+
},
|
|
34641
34804
|
{
|
|
34642
34805
|
chainId: "indigo-1",
|
|
34643
34806
|
explorers: [
|
|
@@ -35309,12 +35472,12 @@ const hD = [
|
|
|
35309
35472
|
}
|
|
35310
35473
|
};
|
|
35311
35474
|
}), Rl = (e) => W(() => {
|
|
35312
|
-
const n =
|
|
35475
|
+
const n = Zo(e == null ? void 0 : e.operations);
|
|
35313
35476
|
return (n == null ? void 0 : n.some(
|
|
35314
35477
|
(o) => o.type === we.goFastTransfer
|
|
35315
35478
|
)) ?? !1;
|
|
35316
35479
|
}, [e == null ? void 0 : e.operations]), Ol = (e) => W(() => {
|
|
35317
|
-
const n = [we.swap, we.evmSwap], o =
|
|
35480
|
+
const n = [we.swap, we.evmSwap], o = Zo(e == null ? void 0 : e.operations);
|
|
35318
35481
|
return (o == null ? void 0 : o.some(
|
|
35319
35482
|
(i) => n.includes(i.type)
|
|
35320
35483
|
)) ?? !1;
|
|
@@ -35534,8 +35697,7 @@ const hD = [
|
|
|
35534
35697
|
return;
|
|
35535
35698
|
}
|
|
35536
35699
|
}, [e]);
|
|
35537
|
-
|
|
35538
|
-
return /* @__PURE__ */ m(le, { gap: 5, children: n });
|
|
35700
|
+
return (e == null ? void 0 : e.errorType) === void 0 ? null : /* @__PURE__ */ m(le, { gap: 5, children: n });
|
|
35539
35701
|
}, dc = ({ color: e = "currentColor" }) => /* @__PURE__ */ q(
|
|
35540
35702
|
"svg",
|
|
35541
35703
|
{
|
|
@@ -36562,7 +36724,7 @@ const VD = new Intl.NumberFormat("en-US", {
|
|
|
36562
36724
|
}
|
|
36563
36725
|
)
|
|
36564
36726
|
}
|
|
36565
|
-
),
|
|
36727
|
+
), KD = {
|
|
36566
36728
|
// swap icon
|
|
36567
36729
|
[we.swap]: /* @__PURE__ */ m(Vr, { width: 34 }),
|
|
36568
36730
|
[we.evmSwap]: /* @__PURE__ */ m(Vr, { width: 34 }),
|
|
@@ -36575,7 +36737,7 @@ const VD = new Intl.NumberFormat("en-US", {
|
|
|
36575
36737
|
[we.goFastTransfer]: /* @__PURE__ */ m(po, { width: 34 }),
|
|
36576
36738
|
// send icon
|
|
36577
36739
|
[we.bankSend]: /* @__PURE__ */ m(JD, { width: 34 })
|
|
36578
|
-
},
|
|
36740
|
+
}, ZD = {
|
|
36579
36741
|
swap: "Swapped",
|
|
36580
36742
|
evmSwap: "Swapped",
|
|
36581
36743
|
transfer: "Bridged",
|
|
@@ -36624,7 +36786,7 @@ const VD = new Intl.NumberFormat("en-US", {
|
|
|
36624
36786
|
),
|
|
36625
36787
|
e.map((A, M) => {
|
|
36626
36788
|
var b, y, S;
|
|
36627
|
-
const E =
|
|
36789
|
+
const E = ZD[A.type], T = (() => {
|
|
36628
36790
|
var R, O;
|
|
36629
36791
|
const k = (O = (R = A.swapVenues) == null ? void 0 : R[0]) == null ? void 0 : O.chainID, P = A.bridgeID, z = c == null ? void 0 : c.find((V) => V.id === P), F = t == null ? void 0 : t.find((V) => V.chainID === k);
|
|
36630
36792
|
return {
|
|
@@ -36644,7 +36806,7 @@ const VD = new Intl.NumberFormat("en-US", {
|
|
|
36644
36806
|
onMouseEnter: () => l(M),
|
|
36645
36807
|
onMouseLeave: () => p(M),
|
|
36646
36808
|
justify: "center",
|
|
36647
|
-
children:
|
|
36809
|
+
children: KD[A.type]
|
|
36648
36810
|
}
|
|
36649
36811
|
),
|
|
36650
36812
|
(r == null ? void 0 : r[M]) && /* @__PURE__ */ q(YD, { children: [
|
|
@@ -36704,11 +36866,11 @@ const VD = new Intl.NumberFormat("en-US", {
|
|
|
36704
36866
|
`;
|
|
36705
36867
|
var si = {};
|
|
36706
36868
|
Object.defineProperty(si, "__esModule", { value: !0 });
|
|
36707
|
-
var
|
|
36708
|
-
const nt = "qpzry9x8gf2tvdw0s3jn54khce6mua7l",
|
|
36869
|
+
var Kl = si.bech32m = Yl = si.bech32 = void 0;
|
|
36870
|
+
const nt = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", Zl = {};
|
|
36709
36871
|
for (let e = 0; e < nt.length; e++) {
|
|
36710
36872
|
const n = nt.charAt(e);
|
|
36711
|
-
|
|
36873
|
+
Zl[n] = e;
|
|
36712
36874
|
}
|
|
36713
36875
|
function Ao(e) {
|
|
36714
36876
|
const n = e >> 25;
|
|
@@ -36807,7 +36969,7 @@ function Xl(e) {
|
|
|
36807
36969
|
return x;
|
|
36808
36970
|
const f = [];
|
|
36809
36971
|
for (let w = 0; w < d.length; ++w) {
|
|
36810
|
-
const H = d.charAt(w), B =
|
|
36972
|
+
const H = d.charAt(w), B = Zl[H];
|
|
36811
36973
|
if (B === void 0)
|
|
36812
36974
|
return "Unknown character " + H;
|
|
36813
36975
|
x = Ao(x) ^ B, !(w + 6 >= d.length) && f.push(B);
|
|
@@ -36835,7 +36997,7 @@ function Xl(e) {
|
|
|
36835
36997
|
};
|
|
36836
36998
|
}
|
|
36837
36999
|
var Yl = si.bech32 = Xl("bech32");
|
|
36838
|
-
|
|
37000
|
+
Kl = si.bech32m = Xl("bech32m");
|
|
36839
37001
|
const Ql = {
|
|
36840
37002
|
passet: 65,
|
|
36841
37003
|
pauctid: 66,
|
|
@@ -36859,7 +37021,7 @@ const Ql = {
|
|
|
36859
37021
|
penumbrawalletid: 32,
|
|
36860
37022
|
plpid: 32
|
|
36861
37023
|
}, tx = (e, n) => $l({
|
|
36862
|
-
bechLib:
|
|
37024
|
+
bechLib: Kl,
|
|
36863
37025
|
bData: e,
|
|
36864
37026
|
prefix: n,
|
|
36865
37027
|
expectLength: Ql[n],
|
|
@@ -36911,7 +37073,7 @@ const om = () => {
|
|
|
36911
37073
|
(l) => {
|
|
36912
37074
|
const p = ux(), u = [xe.KEPLR, xe.LEAP, xe.COSMOSTATION, xe.XDEFI, xe.STATION, xe.VECTIS, xe.WALLETCONNECT], d = [xe.WC_KEPLR_MOBILE], x = [...u, ...d].filter((B) => {
|
|
36913
37075
|
try {
|
|
36914
|
-
return !!
|
|
37076
|
+
return !!Kn(B);
|
|
36915
37077
|
} catch {
|
|
36916
37078
|
return !1;
|
|
36917
37079
|
}
|
|
@@ -37001,16 +37163,16 @@ const om = () => {
|
|
|
37001
37163
|
throw new Error(
|
|
37002
37164
|
`getAddress: Chain info not found for chainID: ${l}`
|
|
37003
37165
|
);
|
|
37004
|
-
!p && !C && await
|
|
37166
|
+
!p && !C && await Kn(B).experimentalSuggestChain(g), M.includes(l) ? await E() : await j(), o({ walletName: B, chainType: "cosmos" });
|
|
37005
37167
|
} else v && a && D && o({ walletName: B, chainType: "cosmos" });
|
|
37006
37168
|
if (!v) {
|
|
37007
37169
|
if (!p && !C) {
|
|
37008
37170
|
if (!g) throw new Error(`getAddress: Chain info not found for chainID: ${l}`);
|
|
37009
|
-
await
|
|
37171
|
+
await Kn(B).experimentalSuggestChain(g);
|
|
37010
37172
|
}
|
|
37011
37173
|
M.includes(l) ? await E() : await j(), o({ walletName: B, chainType: "cosmos" });
|
|
37012
37174
|
}
|
|
37013
|
-
return (await
|
|
37175
|
+
return (await Kn(B).getKey(l)).bech32Address;
|
|
37014
37176
|
}, h = {
|
|
37015
37177
|
walletName: B,
|
|
37016
37178
|
walletPrettyName: A == null ? void 0 : A.name,
|
|
@@ -37035,7 +37197,7 @@ const om = () => {
|
|
|
37035
37197
|
throw new Error(
|
|
37036
37198
|
`connect: Chain info not found for chainID: ${l}`
|
|
37037
37199
|
);
|
|
37038
|
-
!p && !C && await
|
|
37200
|
+
!p && !C && await Kn(B).experimentalSuggestChain(D), M.includes(l) ? await E() : await j(), o({ walletName: B, chainType: "cosmos" }), E();
|
|
37039
37201
|
} catch (D) {
|
|
37040
37202
|
throw console.error(D), D;
|
|
37041
37203
|
}
|
|
@@ -37048,7 +37210,7 @@ const om = () => {
|
|
|
37048
37210
|
isAvailable: (() => {
|
|
37049
37211
|
if (!p)
|
|
37050
37212
|
try {
|
|
37051
|
-
return !!
|
|
37213
|
+
return !!Kn(B);
|
|
37052
37214
|
} catch {
|
|
37053
37215
|
return !1;
|
|
37054
37216
|
}
|
|
@@ -37099,7 +37261,7 @@ const om = () => {
|
|
|
37099
37261
|
address: c,
|
|
37100
37262
|
isConnected: a,
|
|
37101
37263
|
chainId: r
|
|
37102
|
-
} = ct(), { connectAsync: s } =
|
|
37264
|
+
} = ct(), { connectAsync: s } = Zm(), l = os(), p = l.find(
|
|
37103
37265
|
(d) => d.id === (t == null ? void 0 : t.id)
|
|
37104
37266
|
);
|
|
37105
37267
|
return { createEvmWallets: Be(
|
|
@@ -37340,7 +37502,7 @@ const om = () => {
|
|
|
37340
37502
|
var d;
|
|
37341
37503
|
(d = u.current) == null || d.scrollTo(0);
|
|
37342
37504
|
}, 0);
|
|
37343
|
-
}, [e.length]), e.length === 0 ? /* @__PURE__ */ q(fx, { gap: 10, height: n, children: [
|
|
37505
|
+
}, [e.length]), e.length === 0 ? /* @__PURE__ */ q(fx, { gap: 10, height: n ?? p, children: [
|
|
37344
37506
|
a == null ? void 0 : a.icon,
|
|
37345
37507
|
/* @__PURE__ */ m(G, { textAlign: "center", fontSize: 22, children: a == null ? void 0 : a.header }),
|
|
37346
37508
|
/* @__PURE__ */ m(bx, { children: a == null ? void 0 : a.details })
|
|
@@ -37830,7 +37992,7 @@ const om = () => {
|
|
|
37830
37992
|
)
|
|
37831
37993
|
}
|
|
37832
37994
|
), qx = () => {
|
|
37833
|
-
const [e, n] = me(!1), [o, i] = me(!1), [t, c] = me(""), [a, r] = ue(
|
|
37995
|
+
const [e, n] = me(!1), [o, i] = me(!1), [t, c] = me(""), [a, r] = ue(K0), s = !!(a && !Fr.includes(a));
|
|
37834
37996
|
return Ce(() => {
|
|
37835
37997
|
s && c(a == null ? void 0 : a.toString());
|
|
37836
37998
|
}, [a, s]), /* @__PURE__ */ q(Sx, { children: [
|
|
@@ -37995,7 +38157,7 @@ const om = () => {
|
|
|
37995
38157
|
color: ${mi(n.brandColor)};
|
|
37996
38158
|
`}
|
|
37997
38159
|
`, Lx = () => {
|
|
37998
|
-
const [e, n] = me(!1), [o, i] = ue(
|
|
38160
|
+
const [e, n] = me(!1), [o, i] = ue(Z0);
|
|
37999
38161
|
return /* @__PURE__ */ q(Rx, { children: [
|
|
38000
38162
|
/* @__PURE__ */ q(Ox, { align: "center", children: [
|
|
38001
38163
|
"Route Preference",
|
|
@@ -38053,7 +38215,7 @@ const om = () => {
|
|
|
38053
38215
|
`, Gx = Wo(() => {
|
|
38054
38216
|
const e = he(), { data: n } = U(Go), { data: o } = U(ze), i = W(() => n == null ? void 0 : n.chainIDs.map(
|
|
38055
38217
|
(s) => o == null ? void 0 : o.find((l) => l.chainID === s)
|
|
38056
|
-
), [n, o]), t =
|
|
38218
|
+
), [n, o]), t = Zo(n == null ? void 0 : n.operations), c = W(() => t ? t.filter(
|
|
38057
38219
|
(s) => [
|
|
38058
38220
|
we.axelarTransfer,
|
|
38059
38221
|
we.hyperlaneTransfer,
|
|
@@ -38166,7 +38328,6 @@ const om = () => {
|
|
|
38166
38328
|
width: 100%;
|
|
38167
38329
|
padding: 20px;
|
|
38168
38330
|
border-radius: 20px;
|
|
38169
|
-
margin: 0 10px;
|
|
38170
38331
|
background-color: ${(e) => e.theme.primary.background.normal};
|
|
38171
38332
|
`, uo = N(L).attrs({
|
|
38172
38333
|
as: G,
|
|
@@ -38180,10 +38341,10 @@ const om = () => {
|
|
|
38180
38341
|
height: ${n}px;
|
|
38181
38342
|
background-color: ${Mc(o.primary.text.normal ?? "") + Xe(10)};
|
|
38182
38343
|
`};
|
|
38183
|
-
`,
|
|
38344
|
+
`, Kx = N(gc)`
|
|
38184
38345
|
border-radius: 50%;
|
|
38185
38346
|
`;
|
|
38186
|
-
function
|
|
38347
|
+
function Zx(e, n = 500, o = !1) {
|
|
38187
38348
|
const i = _(
|
|
38188
38349
|
void 0
|
|
38189
38350
|
), t = _(e), c = _(!1), a = _(
|
|
@@ -38214,7 +38375,7 @@ function Kx(e, n = 500, o = !1) {
|
|
|
38214
38375
|
debouncedValueAtom: a
|
|
38215
38376
|
};
|
|
38216
38377
|
}
|
|
38217
|
-
const pm =
|
|
38378
|
+
const pm = Zx(void 0), da = ao((e) => {
|
|
38218
38379
|
const n = e(qn), o = e(pm.debouncedValueAtom), i = e(Qi), t = Object.values(o ?? {}).length > 0 && !i;
|
|
38219
38380
|
return {
|
|
38220
38381
|
queryKey: ["skipBalances", o],
|
|
@@ -38349,7 +38510,7 @@ const pm = Kx(void 0), da = ao((e) => {
|
|
|
38349
38510
|
{
|
|
38350
38511
|
style: { margin: "5px 0" },
|
|
38351
38512
|
leftContent: /* @__PURE__ */ q(Qx, { align: "center", gap: 8, children: [
|
|
38352
|
-
/* @__PURE__ */ m(
|
|
38513
|
+
/* @__PURE__ */ m(Kx, { width: 35, height: 35 }),
|
|
38353
38514
|
/* @__PURE__ */ m(gc, { width: 80, height: 20 }),
|
|
38354
38515
|
/* @__PURE__ */ m(gc, { width: 60, height: 16 })
|
|
38355
38516
|
] })
|
|
@@ -38656,7 +38817,7 @@ const pm = Kx(void 0), da = ao((e) => {
|
|
|
38656
38817
|
}) => W(() => {
|
|
38657
38818
|
if (e)
|
|
38658
38819
|
return cs(e, n, {
|
|
38659
|
-
keys: ["id"]
|
|
38820
|
+
keys: ["id", "name"]
|
|
38660
38821
|
}).sort((i, t) => {
|
|
38661
38822
|
if (i.totalUsd === 0 && t.totalUsd === 0) {
|
|
38662
38823
|
const a = Jr.indexOf(i.id), r = Jr.indexOf(t.id);
|
|
@@ -38703,6 +38864,7 @@ const pm = Kx(void 0), da = ao((e) => {
|
|
|
38703
38864
|
originChainID: s.originChainID
|
|
38704
38865
|
})) : a.push({
|
|
38705
38866
|
id: s.recommendedSymbol || s.symbol || s.denom,
|
|
38867
|
+
name: s.name,
|
|
38706
38868
|
chains: [
|
|
38707
38869
|
{
|
|
38708
38870
|
chainID: s.chainID,
|
|
@@ -38719,9 +38881,9 @@ const pm = Kx(void 0), da = ao((e) => {
|
|
|
38719
38881
|
s.totalAmount = l.totalAmount, s.totalUsd = l.totalUsd;
|
|
38720
38882
|
}), a;
|
|
38721
38883
|
}, [t, o]);
|
|
38722
|
-
},
|
|
38884
|
+
}, Kr = 65, Zr = 5, u2 = Wo(
|
|
38723
38885
|
(e) => {
|
|
38724
|
-
const n = wc(), { onSelect: o, selectedAsset: i, selectChain: t, context: c } = e, { data: a, isLoading: r } = U(fn), { isLoading: s } = U(ze), l = r || s, [p, u] = me(!0), [d, x] = me(""), [f, w] = me(null), H = cm(
|
|
38886
|
+
const n = wc(), { onSelect: o, selectedAsset: i, selectChain: t, context: c } = e, { data: a, isLoading: r } = U(fn), { isLoading: s } = U(ze), l = r || s, [p, u] = me(!0), [d, x] = me(""), [f, w] = me(null), H = cm(Kr + Zr), B = () => {
|
|
38725
38887
|
x("");
|
|
38726
38888
|
}, C = Be(
|
|
38727
38889
|
(b) => {
|
|
@@ -38785,7 +38947,7 @@ const pm = Kx(void 0), da = ao((e) => {
|
|
|
38785
38947
|
pa,
|
|
38786
38948
|
{
|
|
38787
38949
|
listItems: D ?? [],
|
|
38788
|
-
itemHeight:
|
|
38950
|
+
itemHeight: Kr + Zr,
|
|
38789
38951
|
itemKey: (b) => fc(b) ? b.id : `${b.chainID}-${b.asset.denom}`,
|
|
38790
38952
|
renderItem: h,
|
|
38791
38953
|
empty: {
|
|
@@ -38827,11 +38989,11 @@ var jo = {}, At = {};
|
|
|
38827
38989
|
At.byteLength = f2;
|
|
38828
38990
|
At.toByteArray = A2;
|
|
38829
38991
|
At.fromByteArray = w2;
|
|
38830
|
-
var xn = [],
|
|
38992
|
+
var xn = [], Ze = [], x2 = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
38831
38993
|
for (var ho = 0, g2 = Nt.length; ho < g2; ++ho)
|
|
38832
|
-
xn[ho] = Nt[ho],
|
|
38833
|
-
|
|
38834
|
-
|
|
38994
|
+
xn[ho] = Nt[ho], Ze[Nt.charCodeAt(ho)] = ho;
|
|
38995
|
+
Ze[45] = 62;
|
|
38996
|
+
Ze[95] = 63;
|
|
38835
38997
|
function Dm(e) {
|
|
38836
38998
|
var n = e.length;
|
|
38837
38999
|
if (n % 4 > 0)
|
|
@@ -38851,8 +39013,8 @@ function b2(e, n, o) {
|
|
|
38851
39013
|
function A2(e) {
|
|
38852
39014
|
var n, o = Dm(e), i = o[0], t = o[1], c = new x2(b2(e, i, t)), a = 0, r = t > 0 ? i - 4 : i, s;
|
|
38853
39015
|
for (s = 0; s < r; s += 4)
|
|
38854
|
-
n =
|
|
38855
|
-
return t === 2 && (n =
|
|
39016
|
+
n = Ze[e.charCodeAt(s)] << 18 | Ze[e.charCodeAt(s + 1)] << 12 | Ze[e.charCodeAt(s + 2)] << 6 | Ze[e.charCodeAt(s + 3)], c[a++] = n >> 16 & 255, c[a++] = n >> 8 & 255, c[a++] = n & 255;
|
|
39017
|
+
return t === 2 && (n = Ze[e.charCodeAt(s)] << 2 | Ze[e.charCodeAt(s + 1)] >> 4, c[a++] = n & 255), t === 1 && (n = Ze[e.charCodeAt(s)] << 10 | Ze[e.charCodeAt(s + 1)] << 4 | Ze[e.charCodeAt(s + 2)] >> 2, c[a++] = n >> 8 & 255, c[a++] = n & 255), c;
|
|
38856
39018
|
}
|
|
38857
39019
|
function C2(e) {
|
|
38858
39020
|
return xn[e >> 18 & 63] + xn[e >> 12 & 63] + xn[e >> 6 & 63] + xn[e & 63];
|
|
@@ -39100,11 +39262,11 @@ function J2(e) {
|
|
|
39100
39262
|
return new TextEncoder().encode(e);
|
|
39101
39263
|
}
|
|
39102
39264
|
To.toUtf8 = J2;
|
|
39103
|
-
function
|
|
39265
|
+
function K2(e, n = !1) {
|
|
39104
39266
|
const o = !n;
|
|
39105
39267
|
return new TextDecoder("utf-8", { fatal: o }).decode(e);
|
|
39106
39268
|
}
|
|
39107
|
-
To.fromUtf8 =
|
|
39269
|
+
To.fromUtf8 = K2;
|
|
39108
39270
|
(function(e) {
|
|
39109
39271
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toUtf8 = e.fromUtf8 = e.toRfc3339 = e.fromRfc3339 = e.toHex = e.fromHex = e.toBech32 = e.normalizeBech32 = e.fromBech32 = e.toBase64 = e.fromBase64 = e.toAscii = e.fromAscii = void 0;
|
|
39110
39272
|
var n = So;
|
|
@@ -39146,7 +39308,7 @@ To.fromUtf8 = Z2;
|
|
|
39146
39308
|
return a.toUtf8;
|
|
39147
39309
|
} });
|
|
39148
39310
|
})(dm);
|
|
39149
|
-
const
|
|
39311
|
+
const Z2 = ({
|
|
39150
39312
|
address: e,
|
|
39151
39313
|
chainType: n,
|
|
39152
39314
|
bech32Prefix: o
|
|
@@ -39201,7 +39363,7 @@ const K2 = ({
|
|
|
39201
39363
|
), C = W(() => {
|
|
39202
39364
|
if (!r || d.length === 0) return;
|
|
39203
39365
|
const { chainType: j, bech32Prefix: T } = r;
|
|
39204
|
-
return
|
|
39366
|
+
return Z2({
|
|
39205
39367
|
address: d,
|
|
39206
39368
|
bech32Prefix: T,
|
|
39207
39369
|
chainType: j
|
|
@@ -39334,7 +39496,7 @@ var se = /* @__PURE__ */ ((e) => (e.AssetAndChainSelectorModal = "AssetAndChainS
|
|
|
39334
39496
|
const o1 = () => {
|
|
39335
39497
|
const [e, n] = ue(Cn), { route: o } = U(Ue), i = o == null ? void 0 : o.requiredChainAddresses, { data: t } = U(ze), c = U(Hc);
|
|
39336
39498
|
ue(CD);
|
|
39337
|
-
const { createCosmosWallets: a } = om(), { createEvmWallets: r } = im(), { createSolanaWallets: s } = tm(), l = W(() => o != null && o.operations ?
|
|
39499
|
+
const { createCosmosWallets: a } = om(), { createEvmWallets: r } = im(), { createSolanaWallets: s } = tm(), l = W(() => o != null && o.operations ? Zo(o.operations).filter((x) => x.signRequired).map((x) => x.fromChainID) : void 0, [o == null ? void 0 : o.operations]);
|
|
39338
39500
|
Ce(() => {
|
|
39339
39501
|
var d;
|
|
39340
39502
|
const u = {};
|
|
@@ -39498,7 +39660,13 @@ const o1 = () => {
|
|
|
39498
39660
|
return li({
|
|
39499
39661
|
queryKey: [
|
|
39500
39662
|
"auto-set-address",
|
|
39501
|
-
{
|
|
39663
|
+
{
|
|
39664
|
+
requiredChainAddresses: i,
|
|
39665
|
+
chains: t,
|
|
39666
|
+
sourceWallet: c,
|
|
39667
|
+
signRequiredChains: l,
|
|
39668
|
+
chainAddresses: e
|
|
39669
|
+
}
|
|
39502
39670
|
],
|
|
39503
39671
|
enabled: !!i && !!t && (!!c.cosmos || !!c.evm || !!c.svm),
|
|
39504
39672
|
queryFn: async () => {
|
|
@@ -39548,7 +39716,7 @@ const o1 = () => {
|
|
|
39548
39716
|
transactionDetailsArray: c,
|
|
39549
39717
|
overallStatus: a,
|
|
39550
39718
|
transactionHistoryIndex: r
|
|
39551
|
-
} = U(Ue), s = J(Tl), { isPending: l } = U(Ll), p = W(() => t != null && t.operations ?
|
|
39719
|
+
} = U(Ue), s = J(Tl), { isPending: l } = U(Ll), p = W(() => t != null && t.operations ? Zo(t.operations) : [], [t == null ? void 0 : t.operations]), u = W(() => {
|
|
39552
39720
|
if (!(!(t != null && t.operations) || !(t != null && t.txsRequired))) {
|
|
39553
39721
|
if ((e == null ? void 0 : e.lastTxStatus) === "pending")
|
|
39554
39722
|
return l && i("pending"), "pending";
|
|
@@ -39774,7 +39942,7 @@ const l1 = () => {
|
|
|
39774
39942
|
t1({
|
|
39775
39943
|
statusData: d
|
|
39776
39944
|
});
|
|
39777
|
-
const x = W(() => n != null && n.operations ?
|
|
39945
|
+
const x = W(() => n != null && n.operations ? Zo(n.operations) : [], [n == null ? void 0 : n.operations]), f = x[x.length - 1], w = c1({
|
|
39778
39946
|
chainAddresses: c,
|
|
39779
39947
|
route: n,
|
|
39780
39948
|
overallStatus: o,
|
|
@@ -40077,15 +40245,11 @@ const Cm = () => {
|
|
|
40077
40245
|
amount: e == null ? void 0 : e.amount,
|
|
40078
40246
|
chainId: e == null ? void 0 : e.chainID
|
|
40079
40247
|
}), { data: t, isLoading: c } = Cm(), a = g1(), r = kt(), s = W(() => {
|
|
40080
|
-
var
|
|
40248
|
+
var u;
|
|
40081
40249
|
const l = i != null && i.symbol ? ` ${i == null ? void 0 : i.symbol}` : "";
|
|
40082
|
-
|
|
40083
|
-
|
|
40084
|
-
|
|
40085
|
-
let u = t == null ? void 0 : t.formattedAmount;
|
|
40086
|
-
return p === "0" && (u = p), u = ri(
|
|
40087
|
-
zo(u)
|
|
40088
|
-
), u + l;
|
|
40250
|
+
return (u = t == null ? void 0 : t.error) != null && u.message ? "--" : t === void 0 ? void 0 : ri(
|
|
40251
|
+
zo(t == null ? void 0 : t.formattedAmount)
|
|
40252
|
+
) + l;
|
|
40089
40253
|
}, [t, i == null ? void 0 : i.symbol]);
|
|
40090
40254
|
return o ? /* @__PURE__ */ q(
|
|
40091
40255
|
L,
|
|
@@ -40870,9 +41034,9 @@ function ei(e) {
|
|
|
40870
41034
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = o.width, t = i && e.matchPatterns[i] || e.matchPatterns[e.defaultMatchWidth], c = n.match(t);
|
|
40871
41035
|
if (!c)
|
|
40872
41036
|
return null;
|
|
40873
|
-
var a = c[0], r = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(r) ?
|
|
41037
|
+
var a = c[0], r = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(r) ? Z1(r, function(u) {
|
|
40874
41038
|
return u.test(a);
|
|
40875
|
-
}) :
|
|
41039
|
+
}) : K1(r, function(u) {
|
|
40876
41040
|
return u.test(a);
|
|
40877
41041
|
}), l;
|
|
40878
41042
|
l = e.valueCallback ? e.valueCallback(s) : s, l = o.valueCallback ? o.valueCallback(l) : l;
|
|
@@ -40883,12 +41047,12 @@ function ei(e) {
|
|
|
40883
41047
|
};
|
|
40884
41048
|
};
|
|
40885
41049
|
}
|
|
40886
|
-
function
|
|
41050
|
+
function K1(e, n) {
|
|
40887
41051
|
for (var o in e)
|
|
40888
41052
|
if (e.hasOwnProperty(o) && n(e[o]))
|
|
40889
41053
|
return o;
|
|
40890
41054
|
}
|
|
40891
|
-
function
|
|
41055
|
+
function Z1(e, n) {
|
|
40892
41056
|
for (var o = 0; o < e.length; o++)
|
|
40893
41057
|
if (n(e[o]))
|
|
40894
41058
|
return o;
|