@boostxyz/cli 1.1.0-alpha.37 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-B90Impbv.js → ccip-BNKpCk1Q.js} +1 -1
- package/dist/{ccip-DQqriboS.cjs → ccip-BX3ehRwS.cjs} +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +15 -15
- package/dist/commands/deploy.cjs +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/seed.cjs +2 -2
- package/dist/commands/seed.js +603 -578
- package/dist/{utils-C7UotnrC.cjs → utils-CQC0lDOX.cjs} +13 -13
- package/dist/{utils-CX1JpbvX.js → utils-CbGtTEVk.js} +449 -449
- package/package.json +2 -2
|
@@ -68,7 +68,7 @@ class Hl extends I {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
class
|
|
71
|
+
class Dl extends I {
|
|
72
72
|
constructor({ givenSize: t, maxSize: n }) {
|
|
73
73
|
super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
74
74
|
}
|
|
@@ -89,7 +89,7 @@ class so extends I {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
function Bt(e, { dir: t, size: n = 32 } = {}) {
|
|
92
|
-
return typeof e == "string" ? st(e, { dir: t, size: n }) :
|
|
92
|
+
return typeof e == "string" ? st(e, { dir: t, size: n }) : Rl(e, { dir: t, size: n });
|
|
93
93
|
}
|
|
94
94
|
function st(e, { dir: t, size: n = 32 } = {}) {
|
|
95
95
|
if (n === null)
|
|
@@ -103,7 +103,7 @@ function st(e, { dir: t, size: n = 32 } = {}) {
|
|
|
103
103
|
});
|
|
104
104
|
return `0x${r[t === "right" ? "padEnd" : "padStart"](n * 2, "0")}`;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Rl(e, { dir: t, size: n = 32 } = {}) {
|
|
107
107
|
if (n === null)
|
|
108
108
|
return e;
|
|
109
109
|
if (e.length > n)
|
|
@@ -132,7 +132,7 @@ function Oe(e, { dir: t = "left" } = {}) {
|
|
|
132
132
|
return n = t === "left" ? n.slice(r) : n.slice(0, n.length - r), typeof e == "string" ? (n.length === 1 && t === "right" && (n = `${n}0`), `0x${n.length % 2 === 1 ? `0${n}` : n}`) : n;
|
|
133
133
|
}
|
|
134
134
|
const ql = /* @__PURE__ */ new TextEncoder();
|
|
135
|
-
function
|
|
135
|
+
function $e(e, t = {}) {
|
|
136
136
|
return typeof e == "number" || typeof e == "bigint" ? jl(e, t) : typeof e == "boolean" ? Gl(e, t) : Be(e) ? fe(e, t) : yt(e, t);
|
|
137
137
|
}
|
|
138
138
|
function Gl(e, t = {}) {
|
|
@@ -179,7 +179,7 @@ function yt(e, t = {}) {
|
|
|
179
179
|
}
|
|
180
180
|
function Le(e, { size: t }) {
|
|
181
181
|
if (Y(e) > t)
|
|
182
|
-
throw new
|
|
182
|
+
throw new Dl({
|
|
183
183
|
givenSize: Y(e),
|
|
184
184
|
maxSize: t
|
|
185
185
|
});
|
|
@@ -197,7 +197,7 @@ function we(e, t = {}) {
|
|
|
197
197
|
return Number(V(e, t));
|
|
198
198
|
}
|
|
199
199
|
const Kl = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
200
|
-
function
|
|
200
|
+
function $(e, t = {}) {
|
|
201
201
|
return typeof e == "number" || typeof e == "bigint" ? _(e, t) : typeof e == "string" ? _t(e, t) : typeof e == "boolean" ? fi(e, t) : te(e, t);
|
|
202
202
|
}
|
|
203
203
|
function fi(e, t = {}) {
|
|
@@ -617,7 +617,7 @@ function wu(e, t, n, r) {
|
|
|
617
617
|
const s = (t >>> 0) + (r >>> 0);
|
|
618
618
|
return { h: e + n + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
619
619
|
}
|
|
620
|
-
const Eu = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), vu = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, ku = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Cu = (e, t, n, r, s) => t + n + r + s + (e / 2 ** 32 | 0) | 0, Bu = (e, t, n, r, s) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (s >>> 0), Au = (e, t, n, r, s, a) => t + n + r + s + a + (e / 2 ** 32 | 0) | 0,
|
|
620
|
+
const Eu = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), vu = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, ku = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Cu = (e, t, n, r, s) => t + n + r + s + (e / 2 ** 32 | 0) | 0, Bu = (e, t, n, r, s) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (s >>> 0), Au = (e, t, n, r, s, a) => t + n + r + s + a + (e / 2 ** 32 | 0) | 0, R = {
|
|
621
621
|
fromBig: gi,
|
|
622
622
|
split: xi,
|
|
623
623
|
toBig: du,
|
|
@@ -642,7 +642,7 @@ const Eu = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), vu = (e, t, n, r) =>
|
|
|
642
642
|
add5L: Bu
|
|
643
643
|
}, is = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
644
644
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
645
|
-
const Tu = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4)),
|
|
645
|
+
const Tu = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4)), Ft = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), _e = (e, t) => e << 32 - t | e >>> t, nr = (e, t) => e << t | e >>> 32 - t >>> 0, co = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, Su = (e) => e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
646
646
|
function lo(e) {
|
|
647
647
|
for (let t = 0; t < e.length; t++)
|
|
648
648
|
e[t] = Su(e[t]);
|
|
@@ -717,12 +717,12 @@ function Bi(e = 32) {
|
|
|
717
717
|
return is.getRandomValues(new Uint8Array(e));
|
|
718
718
|
throw new Error("crypto.getRandomValues must be defined");
|
|
719
719
|
}
|
|
720
|
-
const Ai = [], Ti = [], Si = [],
|
|
720
|
+
const Ai = [], Ti = [], Si = [], Fu = /* @__PURE__ */ BigInt(0), nn = /* @__PURE__ */ BigInt(1), $u = /* @__PURE__ */ BigInt(2), _u = /* @__PURE__ */ BigInt(7), Nu = /* @__PURE__ */ BigInt(256), Ou = /* @__PURE__ */ BigInt(113);
|
|
721
721
|
for (let e = 0, t = nn, n = 1, r = 0; e < 24; e++) {
|
|
722
722
|
[n, r] = [r, (2 * n + 3 * r) % 5], Ai.push(2 * (5 * r + n)), Ti.push((e + 1) * (e + 2) / 2 % 64);
|
|
723
|
-
let s =
|
|
723
|
+
let s = Fu;
|
|
724
724
|
for (let a = 0; a < 7; a++)
|
|
725
|
-
t = (t << nn ^ (t >> _u) * Ou) % Nu, t &
|
|
725
|
+
t = (t << nn ^ (t >> _u) * Ou) % Nu, t & $u && (s ^= nn << (nn << /* @__PURE__ */ BigInt(a)) - nn);
|
|
726
726
|
Si.push(s);
|
|
727
727
|
}
|
|
728
728
|
const [Mu, Lu] = /* @__PURE__ */ xi(Si, !0), po = (e, t, n) => n > 32 ? vi(e, t, n) : wi(e, t, n), fo = (e, t, n) => n > 32 ? ki(e, t, n) : Ei(e, t, n);
|
|
@@ -815,10 +815,10 @@ class la extends ca {
|
|
|
815
815
|
return t || (t = new la(n, r, s, o, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = r, t.outputLen = s, t.enableXOF = o, t.destroyed = this.destroyed, t;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
const Hu = (e, t, n) => Zr(() => new la(t, e, n)),
|
|
818
|
+
const Hu = (e, t, n) => Zr(() => new la(t, e, n)), Du = /* @__PURE__ */ Hu(1, 136, 256 / 8);
|
|
819
819
|
function ne(e, t) {
|
|
820
|
-
const n = t || "hex", r =
|
|
821
|
-
return n === "bytes" ? r :
|
|
820
|
+
const n = t || "hex", r = Du(Be(e, { strict: !1 }) ? $e(e) : e);
|
|
821
|
+
return n === "bytes" ? r : $(r);
|
|
822
822
|
}
|
|
823
823
|
const cs = /* @__PURE__ */ new ia(8192);
|
|
824
824
|
function Nn(e, t) {
|
|
@@ -835,16 +835,16 @@ function Ut(e, t) {
|
|
|
835
835
|
throw new ee({ address: e });
|
|
836
836
|
return Nn(e, t);
|
|
837
837
|
}
|
|
838
|
-
const
|
|
838
|
+
const Ru = /^0x[a-fA-F0-9]{40}$/, ls = /* @__PURE__ */ new ia(8192);
|
|
839
839
|
function Z(e, t) {
|
|
840
840
|
const { strict: n = !0 } = t ?? {}, r = `${e}.${n}`;
|
|
841
841
|
if (ls.has(r))
|
|
842
842
|
return ls.get(r);
|
|
843
|
-
const s =
|
|
843
|
+
const s = Ru.test(e) ? e.toLowerCase() === e ? !0 : n ? Nn(e) === e : !0 : !1;
|
|
844
844
|
return ls.set(r, s), s;
|
|
845
845
|
}
|
|
846
846
|
function bn(e, t, n, { strict: r } = {}) {
|
|
847
|
-
return Be(e, { strict: !1 }) ?
|
|
847
|
+
return Be(e, { strict: !1 }) ? Fi(e, t, n, {
|
|
848
848
|
strict: r
|
|
849
849
|
}) : Pi(e, t, n, {
|
|
850
850
|
strict: r
|
|
@@ -871,7 +871,7 @@ function Pi(e, t, n, { strict: r } = {}) {
|
|
|
871
871
|
const s = e.slice(t, n);
|
|
872
872
|
return r && Ui(s, t, n), s;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Fi(e, t, n, { strict: r } = {}) {
|
|
875
875
|
Ii(e, t);
|
|
876
876
|
const s = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
877
877
|
return r && Ui(s, t, n), s;
|
|
@@ -1081,18 +1081,18 @@ class ds extends I {
|
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function $i(e) {
|
|
1085
1085
|
const t = ne(`0x${e.substring(4)}`).substring(26);
|
|
1086
1086
|
return Nn(`0x${t}`);
|
|
1087
1087
|
}
|
|
1088
1088
|
async function Yu({ hash: e, signature: t }) {
|
|
1089
|
-
const n = Be(e) ? e :
|
|
1089
|
+
const n = Be(e) ? e : $(e), { secp256k1: r } = await Promise.resolve().then(() => Zm);
|
|
1090
1090
|
return `0x${(() => {
|
|
1091
1091
|
if (typeof t == "object" && "r" in t && "s" in t) {
|
|
1092
1092
|
const { r: l, s: d, v: u, yParity: p } = t, g = Number(p ?? u), b = ho(g);
|
|
1093
1093
|
return new r.Signature(V(l), V(d)).addRecoveryBit(b);
|
|
1094
1094
|
}
|
|
1095
|
-
const o = Be(t) ? t :
|
|
1095
|
+
const o = Be(t) ? t : $(t), i = we(`0x${o.slice(130)}`), c = ho(i);
|
|
1096
1096
|
return r.Signature.fromCompact(o.substring(2, 130)).addRecoveryBit(c);
|
|
1097
1097
|
})().recoverPublicKey(n.substring(2)).toHex(!1)}`;
|
|
1098
1098
|
}
|
|
@@ -1106,7 +1106,7 @@ function ho(e) {
|
|
|
1106
1106
|
throw new Error("Invalid yParityOrV value");
|
|
1107
1107
|
}
|
|
1108
1108
|
async function _i({ hash: e, signature: t }) {
|
|
1109
|
-
return
|
|
1109
|
+
return $i(await Yu({ hash: e, signature: t }));
|
|
1110
1110
|
}
|
|
1111
1111
|
class mo extends I {
|
|
1112
1112
|
constructor({ offset: t }) {
|
|
@@ -1356,7 +1356,7 @@ class Vt extends I {
|
|
|
1356
1356
|
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function Di({ chain: e, currentChainId: t }) {
|
|
1360
1360
|
if (!e)
|
|
1361
1361
|
throw new rd();
|
|
1362
1362
|
if (t !== e.id)
|
|
@@ -1369,7 +1369,7 @@ const sd = {
|
|
|
1369
1369
|
ether: -9,
|
|
1370
1370
|
wei: 9
|
|
1371
1371
|
};
|
|
1372
|
-
function
|
|
1372
|
+
function Ri(e, t) {
|
|
1373
1373
|
let n = e.toString();
|
|
1374
1374
|
const r = n.startsWith("-");
|
|
1375
1375
|
r && (n = n.slice(1)), n = n.padStart(t, "0");
|
|
@@ -1380,7 +1380,7 @@ function Di(e, t) {
|
|
|
1380
1380
|
return a = a.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${a ? `.${a}` : ""}`;
|
|
1381
1381
|
}
|
|
1382
1382
|
function he(e, t = "wei") {
|
|
1383
|
-
return
|
|
1383
|
+
return Ri(e, ad[t]);
|
|
1384
1384
|
}
|
|
1385
1385
|
class Pt extends I {
|
|
1386
1386
|
constructor({ cause: t, message: n } = {}) {
|
|
@@ -1443,7 +1443,7 @@ Object.defineProperty(Ps, "nodeMessage", {
|
|
|
1443
1443
|
writable: !0,
|
|
1444
1444
|
value: /nonce too high/
|
|
1445
1445
|
});
|
|
1446
|
-
class
|
|
1446
|
+
class Fs extends I {
|
|
1447
1447
|
constructor({ cause: t, nonce: n } = {}) {
|
|
1448
1448
|
super([
|
|
1449
1449
|
`Nonce provided for the transaction ${n ? `(${n}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -1452,18 +1452,18 @@ class $s extends I {
|
|
|
1452
1452
|
`), { cause: t, name: "NonceTooLowError" });
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
|
-
Object.defineProperty(
|
|
1455
|
+
Object.defineProperty(Fs, "nodeMessage", {
|
|
1456
1456
|
enumerable: !0,
|
|
1457
1457
|
configurable: !0,
|
|
1458
1458
|
writable: !0,
|
|
1459
1459
|
value: /nonce too low|transaction already imported|already known/
|
|
1460
1460
|
});
|
|
1461
|
-
class
|
|
1461
|
+
class $s extends I {
|
|
1462
1462
|
constructor({ cause: t, nonce: n } = {}) {
|
|
1463
1463
|
super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
Object.defineProperty(
|
|
1466
|
+
Object.defineProperty($s, "nodeMessage", {
|
|
1467
1467
|
enumerable: !0,
|
|
1468
1468
|
configurable: !0,
|
|
1469
1469
|
writable: !0,
|
|
@@ -1564,7 +1564,7 @@ class Xr extends I {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
function ha(e, t = "wei") {
|
|
1567
|
-
return
|
|
1567
|
+
return Ri(e, sd[t]);
|
|
1568
1568
|
}
|
|
1569
1569
|
function On(e) {
|
|
1570
1570
|
const t = Object.entries(e).map(([r, s]) => s === void 0 || s === !1 ? null : [r, s]).filter(Boolean), n = t.reduce((r, [s]) => Math.max(r, s.length), 0);
|
|
@@ -2055,7 +2055,7 @@ function ba(e, t) {
|
|
|
2055
2055
|
}) : Us.nodeMessage.test(n) ? new Us({
|
|
2056
2056
|
cause: e,
|
|
2057
2057
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas
|
|
2058
|
-
}) : Ps.nodeMessage.test(n) ? new Ps({ cause: e, nonce: t == null ? void 0 : t.nonce }) :
|
|
2058
|
+
}) : Ps.nodeMessage.test(n) ? new Ps({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Fs.nodeMessage.test(n) ? new Fs({ cause: e, nonce: t == null ? void 0 : t.nonce }) : $s.nodeMessage.test(n) ? new $s({ cause: e, nonce: t == null ? void 0 : t.nonce }) : _s.nodeMessage.test(n) ? new _s({ cause: e }) : Ns.nodeMessage.test(n) ? new Ns({ cause: e, gas: t == null ? void 0 : t.gas }) : Os.nodeMessage.test(n) ? new Os({ cause: e, gas: t == null ? void 0 : t.gas }) : Ms.nodeMessage.test(n) ? new Ms({ cause: e }) : Ot.nodeMessage.test(n) ? new Ot({
|
|
2059
2059
|
cause: e,
|
|
2060
2060
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas,
|
|
2061
2061
|
maxPriorityFeePerGas: t == null ? void 0 : t.maxPriorityFeePerGas
|
|
@@ -2478,14 +2478,14 @@ async function va(e, t) {
|
|
|
2478
2478
|
params: L ? [O, P ?? "latest", L] : P ? [O, P] : [O]
|
|
2479
2479
|
});
|
|
2480
2480
|
};
|
|
2481
|
-
const { accessList: i, authorizationList: c, blobs: l, blobVersionedHashes: d, blockNumber: u, blockTag: p, data: g, gas: b, gasPrice: f, maxFeePerBlobGas: m, maxFeePerGas: y, maxPriorityFeePerGas: w, nonce: x, value: C, stateOverride: E, ...v } = await
|
|
2481
|
+
const { accessList: i, authorizationList: c, blobs: l, blobVersionedHashes: d, blockNumber: u, blockTag: p, data: g, gas: b, gasPrice: f, maxFeePerBlobGas: m, maxFeePerGas: y, maxPriorityFeePerGas: w, nonce: x, value: C, stateOverride: E, ...v } = await Rn(e, {
|
|
2482
2482
|
...t,
|
|
2483
2483
|
parameters: (
|
|
2484
2484
|
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
|
2485
2485
|
// to compute them.
|
|
2486
2486
|
(r == null ? void 0 : r.type) === "local" ? void 0 : ["blobVersionedHashes"]
|
|
2487
2487
|
)
|
|
2488
|
-
}), B = (u ? _(u) : void 0) || p, S = Xi(E),
|
|
2488
|
+
}), B = (u ? _(u) : void 0) || p, S = Xi(E), F = await (async () => {
|
|
2489
2489
|
if (v.to)
|
|
2490
2490
|
return v.to;
|
|
2491
2491
|
if (c && c.length > 0)
|
|
@@ -2511,13 +2511,13 @@ async function va(e, t) {
|
|
|
2511
2511
|
maxFeePerGas: y,
|
|
2512
2512
|
maxPriorityFeePerGas: w,
|
|
2513
2513
|
nonce: x,
|
|
2514
|
-
to:
|
|
2514
|
+
to: F,
|
|
2515
2515
|
value: C
|
|
2516
2516
|
});
|
|
2517
2517
|
let A = BigInt(await G({ block: B, request: N, rpcStateOverride: S }));
|
|
2518
2518
|
if (c) {
|
|
2519
2519
|
const T = await Yi(e, { address: N.from }), P = await Promise.all(c.map(async (O) => {
|
|
2520
|
-
const { contractAddress: L } = O,
|
|
2520
|
+
const { contractAddress: L } = O, D = await G({
|
|
2521
2521
|
block: B,
|
|
2522
2522
|
request: {
|
|
2523
2523
|
authorizationList: void 0,
|
|
@@ -2528,7 +2528,7 @@ async function va(e, t) {
|
|
|
2528
2528
|
},
|
|
2529
2529
|
rpcStateOverride: S
|
|
2530
2530
|
}).catch(() => 100000n);
|
|
2531
|
-
return 2n * BigInt(
|
|
2531
|
+
return 2n * BigInt(D);
|
|
2532
2532
|
}));
|
|
2533
2533
|
A += P.reduce((O, L) => O + L, 0n);
|
|
2534
2534
|
}
|
|
@@ -2568,10 +2568,10 @@ function Ud(e, t, n, r) {
|
|
|
2568
2568
|
const s = BigInt(32), a = BigInt(4294967295), o = Number(n >> s & a), i = Number(n & a), c = r ? 4 : 0, l = r ? 0 : 4;
|
|
2569
2569
|
e.setUint32(t + c, o, r), e.setUint32(t + l, i, r);
|
|
2570
2570
|
}
|
|
2571
|
-
const Pd = (e, t, n) => e & t ^ ~e & n,
|
|
2571
|
+
const Pd = (e, t, n) => e & t ^ ~e & n, Fd = (e, t, n) => e & t ^ e & n ^ t & n;
|
|
2572
2572
|
let Ba = class extends ca {
|
|
2573
2573
|
constructor(t, n, r, s) {
|
|
2574
|
-
super(), this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = s, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view =
|
|
2574
|
+
super(), this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = s, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = Ft(this.buffer);
|
|
2575
2575
|
}
|
|
2576
2576
|
update(t) {
|
|
2577
2577
|
Nt(this);
|
|
@@ -2581,7 +2581,7 @@ let Ba = class extends ca {
|
|
|
2581
2581
|
for (let o = 0; o < a; ) {
|
|
2582
2582
|
const i = Math.min(s - this.pos, a - o);
|
|
2583
2583
|
if (i === s) {
|
|
2584
|
-
const c =
|
|
2584
|
+
const c = Ft(t);
|
|
2585
2585
|
for (; s <= a - o; o += s)
|
|
2586
2586
|
this.process(c, o);
|
|
2587
2587
|
continue;
|
|
@@ -2598,7 +2598,7 @@ let Ba = class extends ca {
|
|
|
2598
2598
|
for (let u = o; u < s; u++)
|
|
2599
2599
|
n[u] = 0;
|
|
2600
2600
|
Ud(r, s - 8, BigInt(this.length * 8), a), this.process(r, 0);
|
|
2601
|
-
const i =
|
|
2601
|
+
const i = Ft(t), c = this.outputLen;
|
|
2602
2602
|
if (c % 4)
|
|
2603
2603
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
2604
2604
|
const l = c / 4, d = this.get();
|
|
@@ -2619,7 +2619,7 @@ let Ba = class extends ca {
|
|
|
2619
2619
|
return t.length = s, t.pos = i, t.finished = a, t.destroyed = o, s % n && t.buffer.set(r), t;
|
|
2620
2620
|
}
|
|
2621
2621
|
};
|
|
2622
|
-
const
|
|
2622
|
+
const $d = /* @__PURE__ */ new Uint32Array([
|
|
2623
2623
|
1116352408,
|
|
2624
2624
|
1899447441,
|
|
2625
2625
|
3049323471,
|
|
@@ -2715,7 +2715,7 @@ class _d extends Ba {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
let { A: r, B: s, C: a, D: o, E: i, F: c, G: l, H: d } = this;
|
|
2717
2717
|
for (let u = 0; u < 64; u++) {
|
|
2718
|
-
const p = _e(i, 6) ^ _e(i, 11) ^ _e(i, 25), g = d + p + Pd(i, c, l) +
|
|
2718
|
+
const p = _e(i, 6) ^ _e(i, 11) ^ _e(i, 25), g = d + p + Pd(i, c, l) + $d[u] + Qe[u] | 0, f = (_e(r, 2) ^ _e(r, 13) ^ _e(r, 22)) + Fd(r, s, a) | 0;
|
|
2719
2719
|
d = l, l = c, c = i, i = o + g | 0, o = a, a = s, s = r, r = g + f | 0;
|
|
2720
2720
|
}
|
|
2721
2721
|
r = r + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, o = o + this.D | 0, i = i + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, d = d + this.H | 0, this.set(r, s, a, o, i, c, l, d);
|
|
@@ -2727,10 +2727,10 @@ class _d extends Ba {
|
|
|
2727
2727
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
2728
2728
|
}
|
|
2729
2729
|
}
|
|
2730
|
-
const
|
|
2730
|
+
const Dn = /* @__PURE__ */ Zr(() => new _d());
|
|
2731
2731
|
function Qi(e, t) {
|
|
2732
|
-
const n = t || "hex", r =
|
|
2733
|
-
return n === "bytes" ? r :
|
|
2732
|
+
const n = t || "hex", r = Dn(Be(e, { strict: !1 }) ? $e(e) : e);
|
|
2733
|
+
return n === "bytes" ? r : $(r);
|
|
2734
2734
|
}
|
|
2735
2735
|
function Nd(e) {
|
|
2736
2736
|
const { commitment: t, version: n = 1 } = e, r = e.to ?? (typeof t == "string" ? "hex" : "bytes"), s = Qi(t, "bytes");
|
|
@@ -2838,7 +2838,7 @@ const ic = [
|
|
|
2838
2838
|
"nonce",
|
|
2839
2839
|
"type"
|
|
2840
2840
|
];
|
|
2841
|
-
async function
|
|
2841
|
+
async function Rn(e, t) {
|
|
2842
2842
|
const { account: n = e.account, blobs: r, chain: s, gas: a, kzg: o, nonce: i, nonceManager: c, parameters: l = ic, type: d } = t, u = n ? me(n) : void 0, p = { ...t, ...u ? { from: u == null ? void 0 : u.address } : {} };
|
|
2843
2843
|
let g;
|
|
2844
2844
|
async function b() {
|
|
@@ -2945,7 +2945,7 @@ async function Sa(e, t) {
|
|
|
2945
2945
|
})();
|
|
2946
2946
|
if (m.type === "json-rpc") {
|
|
2947
2947
|
let v;
|
|
2948
|
-
r !== null && (v = await H(e, zn, "getChainId")({}),
|
|
2948
|
+
r !== null && (v = await H(e, zn, "getChainId")({}), Di({
|
|
2949
2949
|
currentChainId: v,
|
|
2950
2950
|
chain: r
|
|
2951
2951
|
}));
|
|
@@ -2973,7 +2973,7 @@ async function Sa(e, t) {
|
|
|
2973
2973
|
}, { retryCount: 0 });
|
|
2974
2974
|
}
|
|
2975
2975
|
if (m.type === "local") {
|
|
2976
|
-
const v = await H(e,
|
|
2976
|
+
const v = await H(e, Rn, "prepareTransactionRequest")({
|
|
2977
2977
|
account: m,
|
|
2978
2978
|
accessList: s,
|
|
2979
2979
|
authorizationList: a,
|
|
@@ -3140,7 +3140,7 @@ const zs = [
|
|
|
3140
3140
|
{ name: "address", type: "address" }
|
|
3141
3141
|
]
|
|
3142
3142
|
}
|
|
3143
|
-
],
|
|
3143
|
+
], Dd = [
|
|
3144
3144
|
...cc,
|
|
3145
3145
|
{
|
|
3146
3146
|
name: "reverse",
|
|
@@ -3198,7 +3198,7 @@ const zs = [
|
|
|
3198
3198
|
],
|
|
3199
3199
|
outputs: [{ name: "", type: "bytes" }]
|
|
3200
3200
|
}
|
|
3201
|
-
],
|
|
3201
|
+
], Rd = [
|
|
3202
3202
|
{
|
|
3203
3203
|
inputs: [
|
|
3204
3204
|
{
|
|
@@ -3253,14 +3253,14 @@ function Jr(e, t) {
|
|
|
3253
3253
|
for (let o = 0; o < e.length; ++o) {
|
|
3254
3254
|
const i = e[o];
|
|
3255
3255
|
r.setPosition(s);
|
|
3256
|
-
const [c, l] =
|
|
3256
|
+
const [c, l] = $t(r, i, {
|
|
3257
3257
|
staticPosition: 0
|
|
3258
3258
|
});
|
|
3259
3259
|
s += l, a.push(c);
|
|
3260
3260
|
}
|
|
3261
3261
|
return a;
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function $t(e, t, { staticPosition: n }) {
|
|
3264
3264
|
const r = pa(t.type);
|
|
3265
3265
|
if (r) {
|
|
3266
3266
|
const [s, a] = r;
|
|
@@ -3296,7 +3296,7 @@ function Vd(e, t, { length: n, staticPosition: r }) {
|
|
|
3296
3296
|
const p = [];
|
|
3297
3297
|
for (let g = 0; g < l; ++g) {
|
|
3298
3298
|
e.setPosition(c + (d ? g * 32 : u));
|
|
3299
|
-
const [b, f] =
|
|
3299
|
+
const [b, f] = $t(e, t, {
|
|
3300
3300
|
staticPosition: c
|
|
3301
3301
|
});
|
|
3302
3302
|
u += f, p.push(b);
|
|
@@ -3307,7 +3307,7 @@ function Vd(e, t, { length: n, staticPosition: r }) {
|
|
|
3307
3307
|
const o = Ke(e.readBytes(Hs)), i = r + o, c = [];
|
|
3308
3308
|
for (let l = 0; l < n; ++l) {
|
|
3309
3309
|
e.setPosition(i + l * 32);
|
|
3310
|
-
const [d] =
|
|
3310
|
+
const [d] = $t(e, t, {
|
|
3311
3311
|
staticPosition: i
|
|
3312
3312
|
});
|
|
3313
3313
|
c.push(d);
|
|
@@ -3317,7 +3317,7 @@ function Vd(e, t, { length: n, staticPosition: r }) {
|
|
|
3317
3317
|
let s = 0;
|
|
3318
3318
|
const a = [];
|
|
3319
3319
|
for (let o = 0; o < n; ++o) {
|
|
3320
|
-
const [i, c] =
|
|
3320
|
+
const [i, c] = $t(e, t, {
|
|
3321
3321
|
staticPosition: r + s
|
|
3322
3322
|
});
|
|
3323
3323
|
s += c, a.push(i);
|
|
@@ -3355,7 +3355,7 @@ function Yd(e, t, { staticPosition: n }) {
|
|
|
3355
3355
|
for (let c = 0; c < t.components.length; ++c) {
|
|
3356
3356
|
const l = t.components[c];
|
|
3357
3357
|
e.setPosition(i + a);
|
|
3358
|
-
const [d, u] =
|
|
3358
|
+
const [d, u] = $t(e, l, {
|
|
3359
3359
|
staticPosition: i
|
|
3360
3360
|
});
|
|
3361
3361
|
a += u, s[r ? c : l == null ? void 0 : l.name] = d;
|
|
@@ -3363,7 +3363,7 @@ function Yd(e, t, { staticPosition: n }) {
|
|
|
3363
3363
|
return e.setPosition(n + 32), [s, 32];
|
|
3364
3364
|
}
|
|
3365
3365
|
for (let o = 0; o < t.components.length; ++o) {
|
|
3366
|
-
const i = t.components[o], [c, l] =
|
|
3366
|
+
const i = t.components[o], [c, l] = $t(e, i, {
|
|
3367
3367
|
staticPosition: n
|
|
3368
3368
|
});
|
|
3369
3369
|
s[r ? o : i == null ? void 0 : i.name] = c, a += l;
|
|
@@ -3389,15 +3389,15 @@ function In(e) {
|
|
|
3389
3389
|
const n = pa(e.type);
|
|
3390
3390
|
return !!(n && In({ ...e, type: n[1] }));
|
|
3391
3391
|
}
|
|
3392
|
-
const Qd = (e) => ne(
|
|
3392
|
+
const Qd = (e) => ne($e(e));
|
|
3393
3393
|
function ep(e) {
|
|
3394
3394
|
return Qd(e);
|
|
3395
3395
|
}
|
|
3396
3396
|
const tp = "1.0.5";
|
|
3397
|
-
let Te = class
|
|
3397
|
+
let Te = class Ds extends Error {
|
|
3398
3398
|
constructor(t, n = {}) {
|
|
3399
3399
|
var o;
|
|
3400
|
-
const r = n.cause instanceof
|
|
3400
|
+
const r = n.cause instanceof Ds ? n.cause.details : (o = n.cause) != null && o.message ? n.cause.message : n.details, s = n.cause instanceof Ds && n.cause.docsPath || n.docsPath, a = [
|
|
3401
3401
|
t || "An error occurred.",
|
|
3402
3402
|
"",
|
|
3403
3403
|
...n.metaMessages ? [...n.metaMessages, ""] : [],
|
|
@@ -3439,17 +3439,17 @@ function ct(e, t) {
|
|
|
3439
3439
|
return n == null ? void 0 : n.groups;
|
|
3440
3440
|
}
|
|
3441
3441
|
const uc = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, dc = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, pc = /^\(.+?\).*?$/, Co = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
3442
|
-
function
|
|
3442
|
+
function Rs(e) {
|
|
3443
3443
|
let t = e.type;
|
|
3444
3444
|
if (Co.test(e.type) && "components" in e) {
|
|
3445
3445
|
t = "(";
|
|
3446
3446
|
const n = e.components.length;
|
|
3447
3447
|
for (let s = 0; s < n; s++) {
|
|
3448
3448
|
const a = e.components[s];
|
|
3449
|
-
t +=
|
|
3449
|
+
t += Rs(a), s < n - 1 && (t += ", ");
|
|
3450
3450
|
}
|
|
3451
3451
|
const r = ct(Co, e.type);
|
|
3452
|
-
return t += `)${(r == null ? void 0 : r.array) ?? ""}`,
|
|
3452
|
+
return t += `)${(r == null ? void 0 : r.array) ?? ""}`, Rs({
|
|
3453
3453
|
...e,
|
|
3454
3454
|
type: t
|
|
3455
3455
|
});
|
|
@@ -3461,7 +3461,7 @@ function rn(e) {
|
|
|
3461
3461
|
const n = e.length;
|
|
3462
3462
|
for (let r = 0; r < n; r++) {
|
|
3463
3463
|
const s = e[r];
|
|
3464
|
-
t +=
|
|
3464
|
+
t += Rs(s), r !== n - 1 && (t += ", ");
|
|
3465
3465
|
}
|
|
3466
3466
|
return t;
|
|
3467
3467
|
}
|
|
@@ -3739,7 +3739,7 @@ function Ip(e, t = {}) {
|
|
|
3739
3739
|
const n = cp(e);
|
|
3740
3740
|
if (!n)
|
|
3741
3741
|
throw new dn({ signature: e, type: "function" });
|
|
3742
|
-
const r =
|
|
3742
|
+
const r = Fe(n.parameters), s = [], a = r.length;
|
|
3743
3743
|
for (let i = 0; i < a; i++)
|
|
3744
3744
|
s.push(dt(r[i], {
|
|
3745
3745
|
modifiers: qs,
|
|
@@ -3748,7 +3748,7 @@ function Ip(e, t = {}) {
|
|
|
3748
3748
|
}));
|
|
3749
3749
|
const o = [];
|
|
3750
3750
|
if (n.returns) {
|
|
3751
|
-
const i =
|
|
3751
|
+
const i = Fe(n.returns), c = i.length;
|
|
3752
3752
|
for (let l = 0; l < c; l++)
|
|
3753
3753
|
o.push(dt(i[l], {
|
|
3754
3754
|
modifiers: qs,
|
|
@@ -3768,7 +3768,7 @@ function Ip(e, t = {}) {
|
|
|
3768
3768
|
const n = op(e);
|
|
3769
3769
|
if (!n)
|
|
3770
3770
|
throw new dn({ signature: e, type: "event" });
|
|
3771
|
-
const r =
|
|
3771
|
+
const r = Fe(n.parameters), s = [], a = r.length;
|
|
3772
3772
|
for (let o = 0; o < a; o++)
|
|
3773
3773
|
s.push(dt(r[o], {
|
|
3774
3774
|
modifiers: bp,
|
|
@@ -3781,7 +3781,7 @@ function Ip(e, t = {}) {
|
|
|
3781
3781
|
const n = sp(e);
|
|
3782
3782
|
if (!n)
|
|
3783
3783
|
throw new dn({ signature: e, type: "error" });
|
|
3784
|
-
const r =
|
|
3784
|
+
const r = Fe(n.parameters), s = [], a = r.length;
|
|
3785
3785
|
for (let o = 0; o < a; o++)
|
|
3786
3786
|
s.push(dt(r[o], { structs: t, type: "error" }));
|
|
3787
3787
|
return { name: n.name, type: "error", inputs: s };
|
|
@@ -3790,7 +3790,7 @@ function Ip(e, t = {}) {
|
|
|
3790
3790
|
const n = dp(e);
|
|
3791
3791
|
if (!n)
|
|
3792
3792
|
throw new dn({ signature: e, type: "constructor" });
|
|
3793
|
-
const r =
|
|
3793
|
+
const r = Fe(n.parameters), s = [], a = r.length;
|
|
3794
3794
|
for (let o = 0; o < a; o++)
|
|
3795
3795
|
s.push(dt(r[o], { structs: t, type: "constructor" }));
|
|
3796
3796
|
return {
|
|
@@ -3808,7 +3808,7 @@ function Ip(e, t = {}) {
|
|
|
3808
3808
|
};
|
|
3809
3809
|
throw new Cp({ signature: e });
|
|
3810
3810
|
}
|
|
3811
|
-
const Up = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Pp = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,
|
|
3811
|
+
const Up = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Pp = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Fp = /^u?int$/;
|
|
3812
3812
|
function dt(e, t) {
|
|
3813
3813
|
var u, p;
|
|
3814
3814
|
const n = Sp(e, t == null ? void 0 : t.type);
|
|
@@ -3823,13 +3823,13 @@ function dt(e, t) {
|
|
|
3823
3823
|
let c, l = {};
|
|
3824
3824
|
if (r) {
|
|
3825
3825
|
c = "tuple";
|
|
3826
|
-
const g =
|
|
3826
|
+
const g = Fe(s.type), b = [], f = g.length;
|
|
3827
3827
|
for (let m = 0; m < f; m++)
|
|
3828
3828
|
b.push(dt(g[m], { structs: i }));
|
|
3829
3829
|
l = { components: b };
|
|
3830
3830
|
} else if (s.type in i)
|
|
3831
3831
|
c = "tuple", l = { components: i[s.type] };
|
|
3832
|
-
else if (
|
|
3832
|
+
else if (Fp.test(s.type))
|
|
3833
3833
|
c = `${s.type}256`;
|
|
3834
3834
|
else if (c = s.type, (t == null ? void 0 : t.type) !== "struct" && !xc(c))
|
|
3835
3835
|
throw new gp({ type: c });
|
|
@@ -3855,19 +3855,19 @@ function dt(e, t) {
|
|
|
3855
3855
|
};
|
|
3856
3856
|
return ps.set(n, d), d;
|
|
3857
3857
|
}
|
|
3858
|
-
function
|
|
3858
|
+
function Fe(e, t = [], n = "", r = 0) {
|
|
3859
3859
|
const s = e.trim().length;
|
|
3860
3860
|
for (let a = 0; a < s; a++) {
|
|
3861
3861
|
const o = e[a], i = e.slice(a + 1);
|
|
3862
3862
|
switch (o) {
|
|
3863
3863
|
case ",":
|
|
3864
|
-
return r === 0 ?
|
|
3864
|
+
return r === 0 ? Fe(i, [...t, n.trim()]) : Fe(i, t, `${n}${o}`, r);
|
|
3865
3865
|
case "(":
|
|
3866
|
-
return
|
|
3866
|
+
return Fe(i, t, `${n}${o}`, r + 1);
|
|
3867
3867
|
case ")":
|
|
3868
|
-
return
|
|
3868
|
+
return Fe(i, t, `${n}${o}`, r - 1);
|
|
3869
3869
|
default:
|
|
3870
|
-
return
|
|
3870
|
+
return Fe(i, t, `${n}${o}`, r);
|
|
3871
3871
|
}
|
|
3872
3872
|
}
|
|
3873
3873
|
if (n === "")
|
|
@@ -3879,9 +3879,9 @@ function $e(e, t = [], n = "", r = 0) {
|
|
|
3879
3879
|
function xc(e) {
|
|
3880
3880
|
return e === "address" || e === "bool" || e === "function" || e === "string" || uc.test(e) || dc.test(e);
|
|
3881
3881
|
}
|
|
3882
|
-
const
|
|
3882
|
+
const $p = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
3883
3883
|
function _p(e) {
|
|
3884
|
-
return e === "address" || e === "bool" || e === "function" || e === "string" || e === "tuple" || uc.test(e) || dc.test(e) ||
|
|
3884
|
+
return e === "address" || e === "bool" || e === "function" || e === "string" || e === "tuple" || uc.test(e) || dc.test(e) || $p.test(e);
|
|
3885
3885
|
}
|
|
3886
3886
|
function Np(e, t) {
|
|
3887
3887
|
return t || e === "bytes" || e === "string" || e === "tuple";
|
|
@@ -4128,7 +4128,7 @@ const Cc = {
|
|
|
4128
4128
|
50: "Array index is out of bounds.",
|
|
4129
4129
|
65: "Allocated too much memory or created an array which is too large.",
|
|
4130
4130
|
81: "Attempted to call a zero-initialized variable of internal function type."
|
|
4131
|
-
},
|
|
4131
|
+
}, Dp = {
|
|
4132
4132
|
inputs: [
|
|
4133
4133
|
{
|
|
4134
4134
|
name: "message",
|
|
@@ -4137,7 +4137,7 @@ const Cc = {
|
|
|
4137
4137
|
],
|
|
4138
4138
|
name: "Error",
|
|
4139
4139
|
type: "error"
|
|
4140
|
-
},
|
|
4140
|
+
}, Rp = {
|
|
4141
4141
|
inputs: [
|
|
4142
4142
|
{
|
|
4143
4143
|
name: "reason",
|
|
@@ -4151,7 +4151,7 @@ function qp(e) {
|
|
|
4151
4151
|
const { abi: t, data: n } = e, r = bn(n, 0, 4);
|
|
4152
4152
|
if (r === "0x")
|
|
4153
4153
|
throw new jr();
|
|
4154
|
-
const a = [...t || [],
|
|
4154
|
+
const a = [...t || [], Dp, Rp].find((o) => o.type === "error" && r === Ia(Ve(o)));
|
|
4155
4155
|
if (!a)
|
|
4156
4156
|
throw new mi(r, {
|
|
4157
4157
|
docsPath: "/docs/contract/decodeErrorResult"
|
|
@@ -4377,7 +4377,7 @@ function Nr(e) {
|
|
|
4377
4377
|
return te(t);
|
|
4378
4378
|
const n = e.split(".");
|
|
4379
4379
|
for (let r = n.length - 1; r >= 0; r -= 1) {
|
|
4380
|
-
const s = Tc(n[r]), a = s ?
|
|
4380
|
+
const s = Tc(n[r]), a = s ? $e(s) : ne(yt(n[r]), "bytes");
|
|
4381
4381
|
t = ne(Ze([t, a]), "bytes");
|
|
4382
4382
|
}
|
|
4383
4383
|
return te(t);
|
|
@@ -4468,7 +4468,7 @@ async function ts(e, t) {
|
|
|
4468
4468
|
throw new I("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
4469
4469
|
if (c && w)
|
|
4470
4470
|
throw new I("Cannot provide both `code` & `to` as parameters.");
|
|
4471
|
-
const k = c && l, B = d && u && w && l, S = k || B,
|
|
4471
|
+
const k = c && l, B = d && u && w && l, S = k || B, F = k ? nf({
|
|
4472
4472
|
code: c,
|
|
4473
4473
|
data: l
|
|
4474
4474
|
}) : B ? rf({
|
|
@@ -4479,13 +4479,13 @@ async function ts(e, t) {
|
|
|
4479
4479
|
}) : l;
|
|
4480
4480
|
try {
|
|
4481
4481
|
Wt(t);
|
|
4482
|
-
const T = (s ? _(s) : void 0) || a, P = Xi(C), O = (G = (N = (z = e.chain) == null ? void 0 : z.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : G.format,
|
|
4482
|
+
const T = (s ? _(s) : void 0) || a, P = Xi(C), O = (G = (N = (z = e.chain) == null ? void 0 : z.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : G.format, D = (O || At)({
|
|
4483
4483
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
4484
4484
|
...Mn(E, { format: O }),
|
|
4485
4485
|
from: v == null ? void 0 : v.address,
|
|
4486
4486
|
accessList: o,
|
|
4487
4487
|
blobs: i,
|
|
4488
|
-
data:
|
|
4488
|
+
data: F,
|
|
4489
4489
|
gas: p,
|
|
4490
4490
|
gasPrice: g,
|
|
4491
4491
|
maxFeePerBlobGas: b,
|
|
@@ -4495,10 +4495,10 @@ async function ts(e, t) {
|
|
|
4495
4495
|
to: S ? void 0 : w,
|
|
4496
4496
|
value: x
|
|
4497
4497
|
});
|
|
4498
|
-
if (r && ef({ request:
|
|
4498
|
+
if (r && ef({ request: D }) && !P)
|
|
4499
4499
|
try {
|
|
4500
4500
|
return await tf(e, {
|
|
4501
|
-
...
|
|
4501
|
+
...D,
|
|
4502
4502
|
blockNumber: s,
|
|
4503
4503
|
blockTag: a
|
|
4504
4504
|
});
|
|
@@ -4509,14 +4509,14 @@ async function ts(e, t) {
|
|
|
4509
4509
|
const K = await e.request({
|
|
4510
4510
|
method: "eth_call",
|
|
4511
4511
|
params: P ? [
|
|
4512
|
-
|
|
4512
|
+
D,
|
|
4513
4513
|
T,
|
|
4514
4514
|
P
|
|
4515
|
-
] : [
|
|
4515
|
+
] : [D, T]
|
|
4516
4516
|
});
|
|
4517
4517
|
return K === "0x" ? { data: void 0 } : { data: K };
|
|
4518
4518
|
} catch (A) {
|
|
4519
|
-
const T = sf(A), { offchainLookup: P, offchainLookupSignature: O } = await import("./ccip-
|
|
4519
|
+
const T = sf(A), { offchainLookup: P, offchainLookupSignature: O } = await import("./ccip-BNKpCk1Q.js");
|
|
4520
4520
|
if (e.ccipRead !== !1 && (T == null ? void 0 : T.slice(0, 10)) === O && w)
|
|
4521
4521
|
return { data: await P(e, { data: T, to: w }) };
|
|
4522
4522
|
throw S && (T == null ? void 0 : T.slice(0, 10)) === "0x101bb98d" ? new Kp({ factory: d }) : Sc(A, {
|
|
@@ -4651,7 +4651,7 @@ async function af(e, { blockNumber: t, blockTag: n, coinType: r, name: s, gatewa
|
|
|
4651
4651
|
address: c,
|
|
4652
4652
|
abi: lc,
|
|
4653
4653
|
functionName: "resolve",
|
|
4654
|
-
args: [
|
|
4654
|
+
args: [$(es(s)), l],
|
|
4655
4655
|
blockNumber: t,
|
|
4656
4656
|
blockTag: n
|
|
4657
4657
|
}, u = H(e, We, "readContract"), p = a ? await u({
|
|
@@ -4694,7 +4694,7 @@ class sn extends I {
|
|
|
4694
4694
|
});
|
|
4695
4695
|
}
|
|
4696
4696
|
}
|
|
4697
|
-
class
|
|
4697
|
+
class Fa extends I {
|
|
4698
4698
|
constructor({ uri: t }) {
|
|
4699
4699
|
super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`, { name: "EnsAvatarUriResolutionError" });
|
|
4700
4700
|
}
|
|
@@ -4755,7 +4755,7 @@ function Uc({ uri: e, gatewayUrls: t }) {
|
|
|
4755
4755
|
isOnChain: !0,
|
|
4756
4756
|
isEncoded: !1
|
|
4757
4757
|
};
|
|
4758
|
-
throw new
|
|
4758
|
+
throw new Fa({ uri: e });
|
|
4759
4759
|
}
|
|
4760
4760
|
function Pc(e) {
|
|
4761
4761
|
if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
|
|
@@ -4765,19 +4765,19 @@ function Pc(e) {
|
|
|
4765
4765
|
async function hf({ gatewayUrls: e, uri: t }) {
|
|
4766
4766
|
try {
|
|
4767
4767
|
const n = await fetch(t).then((s) => s.json());
|
|
4768
|
-
return await
|
|
4768
|
+
return await $a({
|
|
4769
4769
|
gatewayUrls: e,
|
|
4770
4770
|
uri: Pc(n)
|
|
4771
4771
|
});
|
|
4772
4772
|
} catch {
|
|
4773
|
-
throw new
|
|
4773
|
+
throw new Fa({ uri: t });
|
|
4774
4774
|
}
|
|
4775
4775
|
}
|
|
4776
|
-
async function
|
|
4776
|
+
async function $a({ gatewayUrls: e, uri: t }) {
|
|
4777
4777
|
const { uri: n, isOnChain: r } = Uc({ uri: t, gatewayUrls: e });
|
|
4778
4778
|
if (r || await ff(n))
|
|
4779
4779
|
return n;
|
|
4780
|
-
throw new
|
|
4780
|
+
throw new Fa({ uri: t });
|
|
4781
4781
|
}
|
|
4782
4782
|
function mf(e) {
|
|
4783
4783
|
let t = e;
|
|
@@ -4836,7 +4836,7 @@ async function bf(e, { nft: t }) {
|
|
|
4836
4836
|
throw new cf({ namespace: t.namespace });
|
|
4837
4837
|
}
|
|
4838
4838
|
async function yf(e, { gatewayUrls: t, record: n }) {
|
|
4839
|
-
return /eip155:/i.test(n) ? gf(e, { gatewayUrls: t, record: n }) :
|
|
4839
|
+
return /eip155:/i.test(n) ? gf(e, { gatewayUrls: t, record: n }) : $a({ uri: n, gatewayUrls: t });
|
|
4840
4840
|
}
|
|
4841
4841
|
async function gf(e, { gatewayUrls: t, record: n }) {
|
|
4842
4842
|
const r = mf(n), s = await bf(e, { nft: r }), { uri: a, isOnChain: o, isEncoded: i } = Uc({ uri: s, gatewayUrls: t });
|
|
@@ -4848,7 +4848,7 @@ async function gf(e, { gatewayUrls: t, record: n }) {
|
|
|
4848
4848
|
// if it isn't encoded assume it is a JSON string, but it could be anything (it will error if it is)
|
|
4849
4849
|
a
|
|
4850
4850
|
), d = JSON.parse(l);
|
|
4851
|
-
return
|
|
4851
|
+
return $a({ uri: Pc(d), gatewayUrls: t });
|
|
4852
4852
|
}
|
|
4853
4853
|
let c = r.tokenID;
|
|
4854
4854
|
return r.namespace === "erc1155" && (c = c.replace("0x", "").padStart(64, "0")), hf({
|
|
@@ -4856,7 +4856,7 @@ async function gf(e, { gatewayUrls: t, record: n }) {
|
|
|
4856
4856
|
uri: a.replace(/(?:0x)?{id}/, c)
|
|
4857
4857
|
});
|
|
4858
4858
|
}
|
|
4859
|
-
async function
|
|
4859
|
+
async function Fc(e, { blockNumber: t, blockTag: n, name: r, key: s, gatewayUrls: a, strict: o, universalResolverAddress: i }) {
|
|
4860
4860
|
let c = i;
|
|
4861
4861
|
if (!c) {
|
|
4862
4862
|
if (!e.chain)
|
|
@@ -4873,7 +4873,7 @@ async function $c(e, { blockNumber: t, blockTag: n, name: r, key: s, gatewayUrls
|
|
|
4873
4873
|
abi: lc,
|
|
4874
4874
|
functionName: "resolve",
|
|
4875
4875
|
args: [
|
|
4876
|
-
|
|
4876
|
+
$(es(r)),
|
|
4877
4877
|
lt({
|
|
4878
4878
|
abi: Eo,
|
|
4879
4879
|
functionName: "text",
|
|
@@ -4903,7 +4903,7 @@ async function $c(e, { blockNumber: t, blockTag: n, name: r, key: s, gatewayUrls
|
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
4905
|
async function xf(e, { blockNumber: t, blockTag: n, assetGatewayUrls: r, name: s, gatewayUrls: a, strict: o, universalResolverAddress: i }) {
|
|
4906
|
-
const c = await H(e,
|
|
4906
|
+
const c = await H(e, Fc, "getEnsText")({
|
|
4907
4907
|
blockNumber: t,
|
|
4908
4908
|
blockTag: n,
|
|
4909
4909
|
key: "avatar",
|
|
@@ -4938,9 +4938,9 @@ async function wf(e, { address: t, blockNumber: n, blockTag: r, gatewayUrls: s,
|
|
|
4938
4938
|
try {
|
|
4939
4939
|
const l = {
|
|
4940
4940
|
address: i,
|
|
4941
|
-
abi:
|
|
4941
|
+
abi: Dd,
|
|
4942
4942
|
functionName: "reverse",
|
|
4943
|
-
args: [
|
|
4943
|
+
args: [$(es(c))],
|
|
4944
4944
|
blockNumber: n,
|
|
4945
4945
|
blockTag: r
|
|
4946
4946
|
}, d = H(e, We, "readContract"), [u, p] = s ? await d({
|
|
@@ -4979,7 +4979,7 @@ async function Ef(e, { blockNumber: t, blockTag: n, name: r, universalResolverAd
|
|
|
4979
4979
|
}
|
|
4980
4980
|
],
|
|
4981
4981
|
functionName: "findResolver",
|
|
4982
|
-
args: [
|
|
4982
|
+
args: [$(es(r))],
|
|
4983
4983
|
blockNumber: t,
|
|
4984
4984
|
blockTag: n
|
|
4985
4985
|
});
|
|
@@ -5030,12 +5030,12 @@ function Gn(e) {
|
|
|
5030
5030
|
}
|
|
5031
5031
|
function So({ param: e, value: t }) {
|
|
5032
5032
|
if (e.type === "string" || e.type === "bytes")
|
|
5033
|
-
return ne(
|
|
5033
|
+
return ne($e(t));
|
|
5034
5034
|
if (e.type === "tuple" || e.type.match(/^(.*)\[(\d+)?\]$/))
|
|
5035
5035
|
throw new kf(e.type);
|
|
5036
5036
|
return jt([e], [t]);
|
|
5037
5037
|
}
|
|
5038
|
-
async function
|
|
5038
|
+
async function $c(e, t) {
|
|
5039
5039
|
const { address: n, abi: r, args: s, eventName: a, fromBlock: o, strict: i, toBlock: c } = t, l = ns(e, {
|
|
5040
5040
|
method: "eth_newFilter"
|
|
5041
5041
|
}), d = a ? Gn({
|
|
@@ -5174,7 +5174,7 @@ async function jn(e, { cacheTime: t = e.cacheTime } = {}) {
|
|
|
5174
5174
|
}), { cacheKey: Pf(e.uid), cacheTime: t });
|
|
5175
5175
|
return BigInt(n);
|
|
5176
5176
|
}
|
|
5177
|
-
async function
|
|
5177
|
+
async function Ff(e, { blockHash: t, blockNumber: n, blockTag: r = "latest" } = {}) {
|
|
5178
5178
|
const s = n !== void 0 ? _(n) : void 0;
|
|
5179
5179
|
let a;
|
|
5180
5180
|
return t ? a = await e.request({
|
|
@@ -5218,7 +5218,7 @@ function Na(e) {
|
|
|
5218
5218
|
abiItem: c,
|
|
5219
5219
|
param: m
|
|
5220
5220
|
});
|
|
5221
|
-
p[u ? f : m.name || f] =
|
|
5221
|
+
p[u ? f : m.name || f] = $f({ param: m, value: y });
|
|
5222
5222
|
}
|
|
5223
5223
|
const b = d.filter((f) => !("indexed" in f && f.indexed));
|
|
5224
5224
|
if (b.length > 0) {
|
|
@@ -5253,7 +5253,7 @@ function Na(e) {
|
|
|
5253
5253
|
args: Object.values(p).length > 0 ? p : void 0
|
|
5254
5254
|
};
|
|
5255
5255
|
}
|
|
5256
|
-
function
|
|
5256
|
+
function $f({ param: e, value: t }) {
|
|
5257
5257
|
return e.type === "string" || e.type === "bytes" || e.type === "tuple" || e.type.match(/^(.*)\[(\d+)?\]$/) ? t : (Jr([e], t) || [])[0];
|
|
5258
5258
|
}
|
|
5259
5259
|
function Oa(e) {
|
|
@@ -5298,7 +5298,7 @@ function _f(e) {
|
|
|
5298
5298
|
return !1;
|
|
5299
5299
|
function s(a, o, i) {
|
|
5300
5300
|
try {
|
|
5301
|
-
return a.type === "address" ? _a(o, i) : a.type === "string" || a.type === "bytes" ? ne(
|
|
5301
|
+
return a.type === "address" ? _a(o, i) : a.type === "string" || a.type === "bytes" ? ne($e(o)) === i : o === i;
|
|
5302
5302
|
} catch {
|
|
5303
5303
|
return !1;
|
|
5304
5304
|
}
|
|
@@ -5471,7 +5471,7 @@ async function Hf(e, { filter: t }) {
|
|
|
5471
5471
|
strict: n
|
|
5472
5472
|
}) : s;
|
|
5473
5473
|
}
|
|
5474
|
-
async function
|
|
5474
|
+
async function Df(e, { address: t, blockNumber: n, blockTag: r = "latest", slot: s }) {
|
|
5475
5475
|
const a = n !== void 0 ? _(n) : void 0;
|
|
5476
5476
|
return await e.request({
|
|
5477
5477
|
method: "eth_getStorageAt",
|
|
@@ -5501,7 +5501,7 @@ async function La(e, { blockHash: t, blockNumber: n, blockTag: r, hash: s, index
|
|
|
5501
5501
|
});
|
|
5502
5502
|
return (((p = (u = (d = e.chain) == null ? void 0 : d.formatters) == null ? void 0 : u.transaction) == null ? void 0 : p.format) || Hn)(c);
|
|
5503
5503
|
}
|
|
5504
|
-
async function
|
|
5504
|
+
async function Rf(e, { hash: t, transactionReceipt: n }) {
|
|
5505
5505
|
const [r, s] = await Promise.all([
|
|
5506
5506
|
H(e, jn, "getBlockNumber")({}),
|
|
5507
5507
|
t ? H(e, La, "getTransaction")({ hash: t }) : void 0
|
|
@@ -5640,7 +5640,7 @@ async function Zf(e, t) {
|
|
|
5640
5640
|
}
|
|
5641
5641
|
const x = w.value;
|
|
5642
5642
|
for (let C = 0; C < x.length; C++) {
|
|
5643
|
-
const { returnData: E, success: v } = x[C], { callData: k } = u[y][C], { abi: B, address: S, functionName:
|
|
5643
|
+
const { returnData: E, success: v } = x[C], { callData: k } = u[y][C], { abi: B, address: S, functionName: F, args: U } = c[f.length];
|
|
5644
5644
|
try {
|
|
5645
5645
|
if (k === "0x")
|
|
5646
5646
|
throw new jr();
|
|
@@ -5650,7 +5650,7 @@ async function Zf(e, t) {
|
|
|
5650
5650
|
abi: B,
|
|
5651
5651
|
args: U,
|
|
5652
5652
|
data: E,
|
|
5653
|
-
functionName:
|
|
5653
|
+
functionName: F
|
|
5654
5654
|
});
|
|
5655
5655
|
f.push(n ? { result: z, status: "success" } : z);
|
|
5656
5656
|
} catch (z) {
|
|
@@ -5659,7 +5659,7 @@ async function Zf(e, t) {
|
|
|
5659
5659
|
address: S,
|
|
5660
5660
|
args: U,
|
|
5661
5661
|
docsPath: "/docs/contract/multicall",
|
|
5662
|
-
functionName:
|
|
5662
|
+
functionName: F
|
|
5663
5663
|
});
|
|
5664
5664
|
if (!n)
|
|
5665
5665
|
throw N;
|
|
@@ -5962,23 +5962,23 @@ function Yf(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
|
|
|
5962
5962
|
return;
|
|
5963
5963
|
const k = v.result;
|
|
5964
5964
|
try {
|
|
5965
|
-
const { eventName: S, args:
|
|
5965
|
+
const { eventName: S, args: F } = Na({
|
|
5966
5966
|
abi: x ?? [],
|
|
5967
5967
|
data: k.data,
|
|
5968
5968
|
topics: k.topics,
|
|
5969
5969
|
strict: g
|
|
5970
|
-
}), U = Xe(k, { args:
|
|
5970
|
+
}), U = Xe(k, { args: F, eventName: S });
|
|
5971
5971
|
c([U]);
|
|
5972
5972
|
} catch (S) {
|
|
5973
|
-
let
|
|
5973
|
+
let F, U;
|
|
5974
5974
|
if (S instanceof mn || S instanceof Kr) {
|
|
5975
5975
|
if (u)
|
|
5976
5976
|
return;
|
|
5977
|
-
|
|
5977
|
+
F = S.abiItem.name, U = (B = S.abiItem.inputs) == null ? void 0 : B.some((N) => !("name" in N && N.name));
|
|
5978
5978
|
}
|
|
5979
5979
|
const z = Xe(k, {
|
|
5980
5980
|
args: U ? [] : {},
|
|
5981
|
-
eventName:
|
|
5981
|
+
eventName: F
|
|
5982
5982
|
});
|
|
5983
5983
|
c([z]);
|
|
5984
5984
|
}
|
|
@@ -6072,7 +6072,7 @@ function th(e, { enabled: t = !0, id: n }) {
|
|
|
6072
6072
|
const r = e().finally(() => rr.delete(n));
|
|
6073
6073
|
return rr.set(n, r), r;
|
|
6074
6074
|
}
|
|
6075
|
-
function
|
|
6075
|
+
function Dr(e, { delay: t = 100, retryCount: n = 2, shouldRetry: r = () => !0 } = {}) {
|
|
6076
6076
|
return new Promise((s, a) => {
|
|
6077
6077
|
const o = async ({ count: i = 0 } = {}) => {
|
|
6078
6078
|
const c = async ({ error: l }) => {
|
|
@@ -6097,7 +6097,7 @@ function nh(e, t = {}) {
|
|
|
6097
6097
|
...t,
|
|
6098
6098
|
...r
|
|
6099
6099
|
}, c = s ? ne(_t(`${i}.${ce(n)}`)) : void 0;
|
|
6100
|
-
return th(() =>
|
|
6100
|
+
return th(() => Dr(async () => {
|
|
6101
6101
|
try {
|
|
6102
6102
|
return await e(n);
|
|
6103
6103
|
} catch (l) {
|
|
@@ -6202,7 +6202,7 @@ function oh() {
|
|
|
6202
6202
|
}
|
|
6203
6203
|
};
|
|
6204
6204
|
}
|
|
6205
|
-
const
|
|
6205
|
+
const Fo = /* @__PURE__ */ oh();
|
|
6206
6206
|
function ih(e, t = {}) {
|
|
6207
6207
|
return {
|
|
6208
6208
|
async request(n) {
|
|
@@ -6217,11 +6217,11 @@ function ih(e, t = {}) {
|
|
|
6217
6217
|
...i,
|
|
6218
6218
|
body: Array.isArray(r) ? ce(r.map((w) => ({
|
|
6219
6219
|
jsonrpc: "2.0",
|
|
6220
|
-
id: w.id ??
|
|
6220
|
+
id: w.id ?? Fo.take(),
|
|
6221
6221
|
...w
|
|
6222
6222
|
}))) : ce({
|
|
6223
6223
|
jsonrpc: "2.0",
|
|
6224
|
-
id: r.id ??
|
|
6224
|
+
id: r.id ?? Fo.take(),
|
|
6225
6225
|
...r
|
|
6226
6226
|
}),
|
|
6227
6227
|
headers: {
|
|
@@ -6270,7 +6270,7 @@ function ih(e, t = {}) {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
};
|
|
6272
6272
|
}
|
|
6273
|
-
function
|
|
6273
|
+
function Dc(e) {
|
|
6274
6274
|
const { domain: t = {}, message: n, primaryType: r } = e, s = {
|
|
6275
6275
|
EIP712Domain: Vc({ domain: t }),
|
|
6276
6276
|
...e.types
|
|
@@ -6285,20 +6285,20 @@ function Rc(e) {
|
|
|
6285
6285
|
return t && a.push(ch({
|
|
6286
6286
|
domain: t,
|
|
6287
6287
|
types: s
|
|
6288
|
-
})), r !== "EIP712Domain" && a.push(
|
|
6288
|
+
})), r !== "EIP712Domain" && a.push(Rc({
|
|
6289
6289
|
data: n,
|
|
6290
6290
|
primaryType: r,
|
|
6291
6291
|
types: s
|
|
6292
6292
|
})), ne(Ze(a));
|
|
6293
6293
|
}
|
|
6294
6294
|
function ch({ domain: e, types: t }) {
|
|
6295
|
-
return
|
|
6295
|
+
return Rc({
|
|
6296
6296
|
data: e,
|
|
6297
6297
|
primaryType: "EIP712Domain",
|
|
6298
6298
|
types: t
|
|
6299
6299
|
});
|
|
6300
6300
|
}
|
|
6301
|
-
function
|
|
6301
|
+
function Rc({ data: e, primaryType: t, types: n }) {
|
|
6302
6302
|
const r = qc({
|
|
6303
6303
|
data: e,
|
|
6304
6304
|
primaryType: t,
|
|
@@ -6320,7 +6320,7 @@ function qc({ data: e, primaryType: t, types: n }) {
|
|
|
6320
6320
|
return jt(r, s);
|
|
6321
6321
|
}
|
|
6322
6322
|
function lh({ primaryType: e, types: t }) {
|
|
6323
|
-
const n =
|
|
6323
|
+
const n = $(uh({ primaryType: e, types: t }));
|
|
6324
6324
|
return ne(n);
|
|
6325
6325
|
}
|
|
6326
6326
|
function uh({ primaryType: e, types: t }) {
|
|
@@ -6350,7 +6350,7 @@ function jc({ types: e, name: t, type: n, value: r }) {
|
|
|
6350
6350
|
if (n === "bytes")
|
|
6351
6351
|
return r = `0x${(r.length % 2 ? "0" : "") + r.slice(2)}`, [{ type: "bytes32" }, ne(r)];
|
|
6352
6352
|
if (n === "string")
|
|
6353
|
-
return [{ type: "bytes32" }, ne(
|
|
6353
|
+
return [{ type: "bytes32" }, ne($(r))];
|
|
6354
6354
|
if (n.lastIndexOf("]") === n.length - 1) {
|
|
6355
6355
|
const s = n.slice(0, n.lastIndexOf("[")), a = r.map((o) => jc({
|
|
6356
6356
|
name: t,
|
|
@@ -6446,7 +6446,7 @@ const Wc = /* @__PURE__ */ [
|
|
|
6446
6446
|
2053994217,
|
|
6447
6447
|
0
|
|
6448
6448
|
]);
|
|
6449
|
-
function
|
|
6449
|
+
function $o(e, t, n, r) {
|
|
6450
6450
|
return e === 0 ? t ^ n ^ r : e === 1 ? t & n | ~t & r : e === 2 ? (t | ~n) ^ r : e === 3 ? t & r | n & ~r : t ^ (n | ~r);
|
|
6451
6451
|
}
|
|
6452
6452
|
const sr = /* @__PURE__ */ new Uint32Array(16);
|
|
@@ -6468,11 +6468,11 @@ class gh extends Ba {
|
|
|
6468
6468
|
for (let g = 0; g < 5; g++) {
|
|
6469
6469
|
const b = 4 - g, f = bh[g], m = yh[g], y = za[g], w = Ha[g], x = hh[g], C = mh[g];
|
|
6470
6470
|
for (let E = 0; E < 16; E++) {
|
|
6471
|
-
const v = nr(r +
|
|
6471
|
+
const v = nr(r + $o(g, a, i, l) + sr[y[E]] + f, x[E]) + u | 0;
|
|
6472
6472
|
r = u, u = l, l = nr(i, 10) | 0, i = a, a = v;
|
|
6473
6473
|
}
|
|
6474
6474
|
for (let E = 0; E < 16; E++) {
|
|
6475
|
-
const v = nr(s +
|
|
6475
|
+
const v = nr(s + $o(b, o, c, d) + sr[w[E]] + m, C[E]) + p | 0;
|
|
6476
6476
|
s = p, p = d, d = nr(c, 10) | 0, c = o, o = v;
|
|
6477
6477
|
}
|
|
6478
6478
|
}
|
|
@@ -6491,12 +6491,12 @@ function Eh(e) {
|
|
|
6491
6491
|
const t = typeof e == "string" ? _t(e) : typeof e.raw == "string" ? e.raw : te(e.raw), n = _t(`${wh}${Y(t)}`);
|
|
6492
6492
|
return Ze([n, t]);
|
|
6493
6493
|
}
|
|
6494
|
-
function
|
|
6494
|
+
function Da(e, t) {
|
|
6495
6495
|
return ne(Eh(e), t);
|
|
6496
6496
|
}
|
|
6497
6497
|
const Xc = "0x6492649264926492649264926492649264926492649264926492649264926492";
|
|
6498
6498
|
function vh(e) {
|
|
6499
|
-
return
|
|
6499
|
+
return Fi(e, -32) === Xc;
|
|
6500
6500
|
}
|
|
6501
6501
|
function kh(e) {
|
|
6502
6502
|
const { address: t, data: n, signature: r, to: s = "hex" } = e, a = Ae([
|
|
@@ -6515,7 +6515,7 @@ function Ch(e) {
|
|
|
6515
6515
|
if (s <= 0)
|
|
6516
6516
|
throw new Vt({ chainId: s });
|
|
6517
6517
|
}
|
|
6518
|
-
|
|
6518
|
+
Ra(e);
|
|
6519
6519
|
}
|
|
6520
6520
|
function Bh(e) {
|
|
6521
6521
|
const { blobVersionedHashes: t } = e;
|
|
@@ -6533,9 +6533,9 @@ function Bh(e) {
|
|
|
6533
6533
|
});
|
|
6534
6534
|
}
|
|
6535
6535
|
}
|
|
6536
|
-
|
|
6536
|
+
Ra(e);
|
|
6537
6537
|
}
|
|
6538
|
-
function
|
|
6538
|
+
function Ra(e) {
|
|
6539
6539
|
const { chainId: t, maxPriorityFeePerGas: n, maxFeePerGas: r, to: s } = e;
|
|
6540
6540
|
if (t <= 0)
|
|
6541
6541
|
throw new Vt({ chainId: t });
|
|
@@ -6575,9 +6575,9 @@ function Sh(e) {
|
|
|
6575
6575
|
for (const n of e) {
|
|
6576
6576
|
const { contractAddress: r, chainId: s, nonce: a, ...o } = n;
|
|
6577
6577
|
t.push([
|
|
6578
|
-
|
|
6578
|
+
$(s),
|
|
6579
6579
|
r,
|
|
6580
|
-
a ?
|
|
6580
|
+
a ? $(a) : "0x",
|
|
6581
6581
|
...Jt({}, o)
|
|
6582
6582
|
]);
|
|
6583
6583
|
}
|
|
@@ -6600,7 +6600,7 @@ function Vn(e) {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
function qa(e, t) {
|
|
6602
6602
|
const n = oc(e);
|
|
6603
|
-
return n === "eip1559" ? Ph(e, t) : n === "eip2930" ?
|
|
6603
|
+
return n === "eip1559" ? Ph(e, t) : n === "eip2930" ? Fh(e, t) : n === "eip4844" ? Uh(e, t) : n === "eip7702" ? Ih(e, t) : $h(e, t);
|
|
6604
6604
|
}
|
|
6605
6605
|
function Ih(e, t) {
|
|
6606
6606
|
const { authorizationList: n, chainId: r, gas: s, nonce: a, to: o, value: i, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: d, data: u } = e;
|
|
@@ -6609,13 +6609,13 @@ function Ih(e, t) {
|
|
|
6609
6609
|
return Ae([
|
|
6610
6610
|
"0x04",
|
|
6611
6611
|
Me([
|
|
6612
|
-
|
|
6613
|
-
a ?
|
|
6614
|
-
l ?
|
|
6615
|
-
c ?
|
|
6616
|
-
s ?
|
|
6612
|
+
$(r),
|
|
6613
|
+
a ? $(a) : "0x",
|
|
6614
|
+
l ? $(l) : "0x",
|
|
6615
|
+
c ? $(c) : "0x",
|
|
6616
|
+
s ? $(s) : "0x",
|
|
6617
6617
|
o ?? "0x",
|
|
6618
|
-
i ?
|
|
6618
|
+
i ? $(i) : "0x",
|
|
6619
6619
|
u ?? "0x",
|
|
6620
6620
|
p,
|
|
6621
6621
|
g,
|
|
@@ -6640,16 +6640,16 @@ function Uh(e, t) {
|
|
|
6640
6640
|
}
|
|
6641
6641
|
}
|
|
6642
6642
|
const b = Vn(d), f = [
|
|
6643
|
-
|
|
6644
|
-
s ?
|
|
6645
|
-
l ?
|
|
6646
|
-
c ?
|
|
6647
|
-
r ?
|
|
6643
|
+
$(n),
|
|
6644
|
+
s ? $(s) : "0x",
|
|
6645
|
+
l ? $(l) : "0x",
|
|
6646
|
+
c ? $(c) : "0x",
|
|
6647
|
+
r ? $(r) : "0x",
|
|
6648
6648
|
a ?? "0x",
|
|
6649
|
-
o ?
|
|
6649
|
+
o ? $(o) : "0x",
|
|
6650
6650
|
u ?? "0x",
|
|
6651
6651
|
b,
|
|
6652
|
-
i ?
|
|
6652
|
+
i ? $(i) : "0x",
|
|
6653
6653
|
p ?? [],
|
|
6654
6654
|
...Jt(e, t)
|
|
6655
6655
|
], m = [], y = [], w = [];
|
|
@@ -6666,15 +6666,15 @@ function Uh(e, t) {
|
|
|
6666
6666
|
}
|
|
6667
6667
|
function Ph(e, t) {
|
|
6668
6668
|
const { chainId: n, gas: r, nonce: s, to: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: l, data: d } = e;
|
|
6669
|
-
|
|
6669
|
+
Ra(e);
|
|
6670
6670
|
const u = Vn(l), p = [
|
|
6671
|
-
|
|
6672
|
-
s ?
|
|
6673
|
-
c ?
|
|
6674
|
-
i ?
|
|
6675
|
-
r ?
|
|
6671
|
+
$(n),
|
|
6672
|
+
s ? $(s) : "0x",
|
|
6673
|
+
c ? $(c) : "0x",
|
|
6674
|
+
i ? $(i) : "0x",
|
|
6675
|
+
r ? $(r) : "0x",
|
|
6676
6676
|
a ?? "0x",
|
|
6677
|
-
o ?
|
|
6677
|
+
o ? $(o) : "0x",
|
|
6678
6678
|
d ?? "0x",
|
|
6679
6679
|
u,
|
|
6680
6680
|
...Jt(e, t)
|
|
@@ -6684,16 +6684,16 @@ function Ph(e, t) {
|
|
|
6684
6684
|
Me(p)
|
|
6685
6685
|
]);
|
|
6686
6686
|
}
|
|
6687
|
-
function
|
|
6687
|
+
function Fh(e, t) {
|
|
6688
6688
|
const { chainId: n, gas: r, data: s, nonce: a, to: o, value: i, accessList: c, gasPrice: l } = e;
|
|
6689
6689
|
Ah(e);
|
|
6690
6690
|
const d = Vn(c), u = [
|
|
6691
|
-
|
|
6692
|
-
a ?
|
|
6693
|
-
l ?
|
|
6694
|
-
r ?
|
|
6691
|
+
$(n),
|
|
6692
|
+
a ? $(a) : "0x",
|
|
6693
|
+
l ? $(l) : "0x",
|
|
6694
|
+
r ? $(r) : "0x",
|
|
6695
6695
|
o ?? "0x",
|
|
6696
|
-
i ?
|
|
6696
|
+
i ? $(i) : "0x",
|
|
6697
6697
|
s ?? "0x",
|
|
6698
6698
|
d,
|
|
6699
6699
|
...Jt(e, t)
|
|
@@ -6703,15 +6703,15 @@ function $h(e, t) {
|
|
|
6703
6703
|
Me(u)
|
|
6704
6704
|
]);
|
|
6705
6705
|
}
|
|
6706
|
-
function
|
|
6706
|
+
function $h(e, t) {
|
|
6707
6707
|
const { chainId: n = 0, gas: r, data: s, nonce: a, to: o, value: i, gasPrice: c } = e;
|
|
6708
6708
|
Th(e);
|
|
6709
6709
|
let l = [
|
|
6710
|
-
a ?
|
|
6711
|
-
c ?
|
|
6712
|
-
r ?
|
|
6710
|
+
a ? $(a) : "0x",
|
|
6711
|
+
c ? $(c) : "0x",
|
|
6712
|
+
r ? $(r) : "0x",
|
|
6713
6713
|
o ?? "0x",
|
|
6714
|
-
i ?
|
|
6714
|
+
i ? $(i) : "0x",
|
|
6715
6715
|
s ?? "0x"
|
|
6716
6716
|
];
|
|
6717
6717
|
if (t) {
|
|
@@ -6727,13 +6727,13 @@ function Fh(e, t) {
|
|
|
6727
6727
|
})(), u = Oe(t.r), p = Oe(t.s);
|
|
6728
6728
|
l = [
|
|
6729
6729
|
...l,
|
|
6730
|
-
|
|
6730
|
+
$(d),
|
|
6731
6731
|
u === "0x00" ? "0x" : u,
|
|
6732
6732
|
p === "0x00" ? "0x" : p
|
|
6733
6733
|
];
|
|
6734
6734
|
} else n > 0 && (l = [
|
|
6735
6735
|
...l,
|
|
6736
|
-
|
|
6736
|
+
$(n),
|
|
6737
6737
|
"0x",
|
|
6738
6738
|
"0x"
|
|
6739
6739
|
]);
|
|
@@ -6748,7 +6748,7 @@ function Jt(e, t) {
|
|
|
6748
6748
|
if (typeof r > "u" && typeof s > "u")
|
|
6749
6749
|
return [];
|
|
6750
6750
|
const a = Oe(n.r), o = Oe(n.s);
|
|
6751
|
-
return [typeof s == "number" ? s ?
|
|
6751
|
+
return [typeof s == "number" ? s ? $(1) : "0x" : r === 0n ? "0x" : r === 1n ? $(1) : r === 27n ? "0x" : $(1), a === "0x00" ? "0x" : a, o === "0x00" ? "0x" : o];
|
|
6752
6752
|
}
|
|
6753
6753
|
function _h(e) {
|
|
6754
6754
|
return e.map((t) => ({
|
|
@@ -6804,7 +6804,7 @@ async function Mh(e, {
|
|
|
6804
6804
|
x(() => m.resolve(u));
|
|
6805
6805
|
return;
|
|
6806
6806
|
}
|
|
6807
|
-
if (l || (p = !0, await
|
|
6807
|
+
if (l || (p = !0, await Dr(async () => {
|
|
6808
6808
|
l = await H(e, La, "getTransaction")({ hash: n }), l.blockNumber && (C = l.blockNumber);
|
|
6809
6809
|
}, {
|
|
6810
6810
|
delay: o,
|
|
@@ -6820,7 +6820,7 @@ async function Mh(e, {
|
|
|
6820
6820
|
}
|
|
6821
6821
|
try {
|
|
6822
6822
|
d = l, p = !0;
|
|
6823
|
-
const v = await
|
|
6823
|
+
const v = await Dr(() => H(e, je, "getBlock")({
|
|
6824
6824
|
blockNumber: C,
|
|
6825
6825
|
includeTransactions: !0
|
|
6826
6826
|
}), {
|
|
@@ -6829,7 +6829,7 @@ async function Mh(e, {
|
|
|
6829
6829
|
shouldRetry: ({ error: S }) => S instanceof Vi
|
|
6830
6830
|
});
|
|
6831
6831
|
p = !1;
|
|
6832
|
-
const k = v.transactions.find(({ from: S, nonce:
|
|
6832
|
+
const k = v.transactions.find(({ from: S, nonce: F }) => S === d.from && F === d.nonce);
|
|
6833
6833
|
if (!k || (u = await H(e, Ks, "getTransactionReceipt")({
|
|
6834
6834
|
hash: k.hash
|
|
6835
6835
|
}), t > 1 && (!u.blockNumber || C - u.blockNumber + 1n < t)))
|
|
@@ -6870,14 +6870,14 @@ async function Hh(e, { hash: t }) {
|
|
|
6870
6870
|
params: [t]
|
|
6871
6871
|
});
|
|
6872
6872
|
}
|
|
6873
|
-
async function
|
|
6873
|
+
async function Dh(e) {
|
|
6874
6874
|
return e.mode === "ganache" ? await e.request({
|
|
6875
6875
|
method: "eth_mining"
|
|
6876
6876
|
}) : await e.request({
|
|
6877
6877
|
method: `${e.mode}_getAutomine`
|
|
6878
6878
|
});
|
|
6879
6879
|
}
|
|
6880
|
-
async function
|
|
6880
|
+
async function Rh(e) {
|
|
6881
6881
|
return await e.request({
|
|
6882
6882
|
method: "txpool_content"
|
|
6883
6883
|
});
|
|
@@ -6926,7 +6926,7 @@ async function Zh(e, t) {
|
|
|
6926
6926
|
...t
|
|
6927
6927
|
});
|
|
6928
6928
|
const o = await H(e, zn, "getChainId")({});
|
|
6929
|
-
r !== null &&
|
|
6929
|
+
r !== null && Di({
|
|
6930
6930
|
currentChainId: o,
|
|
6931
6931
|
chain: r
|
|
6932
6932
|
});
|
|
@@ -7075,7 +7075,7 @@ async function dm(e, { account: t = e.account, message: n }) {
|
|
|
7075
7075
|
const r = me(t);
|
|
7076
7076
|
if (r.signMessage)
|
|
7077
7077
|
return r.signMessage({ message: n });
|
|
7078
|
-
const s = typeof n == "string" ? _t(n) : n.raw instanceof Uint8Array ?
|
|
7078
|
+
const s = typeof n == "string" ? _t(n) : n.raw instanceof Uint8Array ? $(n.raw) : n.raw;
|
|
7079
7079
|
return e.request({
|
|
7080
7080
|
method: "personal_sign",
|
|
7081
7081
|
params: [s, r.address]
|
|
@@ -7179,14 +7179,14 @@ function Ga(e) {
|
|
|
7179
7179
|
throw new Error("hex string expected, got " + typeof e);
|
|
7180
7180
|
return BigInt(e === "" ? "0" : `0x${e}`);
|
|
7181
7181
|
}
|
|
7182
|
-
const
|
|
7182
|
+
const De = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
|
|
7183
7183
|
function _o(e) {
|
|
7184
|
-
if (e >=
|
|
7185
|
-
return e -
|
|
7186
|
-
if (e >=
|
|
7187
|
-
return e - (
|
|
7188
|
-
if (e >=
|
|
7189
|
-
return e - (
|
|
7184
|
+
if (e >= De._0 && e <= De._9)
|
|
7185
|
+
return e - De._0;
|
|
7186
|
+
if (e >= De._A && e <= De._F)
|
|
7187
|
+
return e - (De._A - 10);
|
|
7188
|
+
if (e >= De._a && e <= De._f)
|
|
7189
|
+
return e - (De._a - 10);
|
|
7190
7190
|
}
|
|
7191
7191
|
function Ht(e) {
|
|
7192
7192
|
if (typeof e != "string")
|
|
@@ -7211,11 +7211,11 @@ function gt(e) {
|
|
|
7211
7211
|
function ja(e) {
|
|
7212
7212
|
return Zn(e), Ga(zt(Uint8Array.from(e).reverse()));
|
|
7213
7213
|
}
|
|
7214
|
-
function
|
|
7214
|
+
function Dt(e, t) {
|
|
7215
7215
|
return Ht(e.toString(16).padStart(t * 2, "0"));
|
|
7216
7216
|
}
|
|
7217
7217
|
function Ka(e, t) {
|
|
7218
|
-
return
|
|
7218
|
+
return Dt(e, t).reverse();
|
|
7219
7219
|
}
|
|
7220
7220
|
function gm(e) {
|
|
7221
7221
|
return Ht(Jc(e));
|
|
@@ -7351,7 +7351,7 @@ const Cm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7351
7351
|
hexToBytes: Ht,
|
|
7352
7352
|
hexToNumber: Ga,
|
|
7353
7353
|
isBytes: kt,
|
|
7354
|
-
numberToBytesBE:
|
|
7354
|
+
numberToBytesBE: Dt,
|
|
7355
7355
|
numberToBytesLE: Ka,
|
|
7356
7356
|
numberToHexUnpadded: Jc,
|
|
7357
7357
|
numberToVarBytesBE: gm,
|
|
@@ -7359,7 +7359,7 @@ const Cm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7359
7359
|
validateObject: Wn
|
|
7360
7360
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7361
7361
|
function Bm(e, t) {
|
|
7362
|
-
const n = Be(e) ?
|
|
7362
|
+
const n = Be(e) ? $e(e) : e, r = Be(t) ? $e(t) : t;
|
|
7363
7363
|
return Qc(n, r);
|
|
7364
7364
|
}
|
|
7365
7365
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
@@ -7480,7 +7480,7 @@ function Pm(e) {
|
|
|
7480
7480
|
}, n = Um.reduce((r, s) => (r[s] = "function", r), t);
|
|
7481
7481
|
return Wn(e, n);
|
|
7482
7482
|
}
|
|
7483
|
-
function
|
|
7483
|
+
function Fm(e, t, n) {
|
|
7484
7484
|
if (n < re)
|
|
7485
7485
|
throw new Error("Expected power > 0");
|
|
7486
7486
|
if (n === re)
|
|
@@ -7492,7 +7492,7 @@ function $m(e, t, n) {
|
|
|
7492
7492
|
n & J && (r = e.mul(r, s)), s = e.sqr(s), n >>= J;
|
|
7493
7493
|
return r;
|
|
7494
7494
|
}
|
|
7495
|
-
function
|
|
7495
|
+
function $m(e, t) {
|
|
7496
7496
|
const n = new Array(t.length), r = t.reduce((a, o, i) => e.is0(o) ? a : (n[i] = a, e.mul(a, o)), e.ONE), s = e.inv(r);
|
|
7497
7497
|
return t.reduceRight((a, o, i) => e.is0(o) ? a : (n[i] = e.mul(a, n[i]), e.mul(a, o)), s), n;
|
|
7498
7498
|
}
|
|
@@ -7527,7 +7527,7 @@ function _m(e, t, n = !1, r = {}) {
|
|
|
7527
7527
|
add: (c, l) => pe(c + l, e),
|
|
7528
7528
|
sub: (c, l) => pe(c - l, e),
|
|
7529
7529
|
mul: (c, l) => pe(c * l, e),
|
|
7530
|
-
pow: (c, l) =>
|
|
7530
|
+
pow: (c, l) => Fm(i, c, l),
|
|
7531
7531
|
div: (c, l) => pe(c * Ws(l, e), e),
|
|
7532
7532
|
// Same as above, but doesn't normalize
|
|
7533
7533
|
sqrN: (c) => c * c,
|
|
@@ -7536,11 +7536,11 @@ function _m(e, t, n = !1, r = {}) {
|
|
|
7536
7536
|
mulN: (c, l) => c * l,
|
|
7537
7537
|
inv: (c) => Ws(c, e),
|
|
7538
7538
|
sqrt: r.sqrt || ((c) => o(i, c)),
|
|
7539
|
-
invertBatch: (c) =>
|
|
7539
|
+
invertBatch: (c) => $m(i, c),
|
|
7540
7540
|
// TODO: do we really need constant cmov?
|
|
7541
7541
|
// We don't have const-time bigints anyway, so probably will be not very useful
|
|
7542
7542
|
cmov: (c, l, d) => d ? l : c,
|
|
7543
|
-
toBytes: (c) => n ? Ka(c, a) :
|
|
7543
|
+
toBytes: (c) => n ? Ka(c, a) : Dt(c, a),
|
|
7544
7544
|
fromBytes: (c) => {
|
|
7545
7545
|
if (c.length !== a)
|
|
7546
7546
|
throw new Error(`Fp.fromBytes: expected ${a}, got ${c.length}`);
|
|
@@ -7564,7 +7564,7 @@ function Nm(e, t, n = !1) {
|
|
|
7564
7564
|
if (r < 16 || r < a || r > 1024)
|
|
7565
7565
|
throw new Error(`expected ${a}-1024 bytes of input, got ${r}`);
|
|
7566
7566
|
const o = n ? gt(e) : ja(e), i = pe(o, t - J) + J;
|
|
7567
|
-
return n ? Ka(i, s) :
|
|
7567
|
+
return n ? Ka(i, s) : Dt(i, s);
|
|
7568
7568
|
}
|
|
7569
7569
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7570
7570
|
const Om = BigInt(0), ys = BigInt(1);
|
|
@@ -7716,7 +7716,7 @@ const { bytesToNumberBE: zm, hexToBytes: Hm } = Cm, mt = {
|
|
|
7716
7716
|
BigInt(2);
|
|
7717
7717
|
const Lo = BigInt(3);
|
|
7718
7718
|
BigInt(4);
|
|
7719
|
-
function
|
|
7719
|
+
function Dm(e) {
|
|
7720
7720
|
const t = Lm(e), { Fp: n } = t, r = t.toBytes || ((b, f, m) => {
|
|
7721
7721
|
const y = f.toAffine();
|
|
7722
7722
|
return Un(Uint8Array.from([4]), n.toBytes(y.x), n.toBytes(y.y));
|
|
@@ -7851,8 +7851,8 @@ function Rm(e) {
|
|
|
7851
7851
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
7852
7852
|
double() {
|
|
7853
7853
|
const { a: f, b: m } = t, y = n.mul(m, Lo), { px: w, py: x, pz: C } = this;
|
|
7854
|
-
let E = n.ZERO, v = n.ZERO, k = n.ZERO, B = n.mul(w, w), S = n.mul(x, x),
|
|
7855
|
-
return U = n.add(U, U), k = n.mul(w, C), k = n.add(k, k), E = n.mul(f, k), v = n.mul(y,
|
|
7854
|
+
let E = n.ZERO, v = n.ZERO, k = n.ZERO, B = n.mul(w, w), S = n.mul(x, x), F = n.mul(C, C), U = n.mul(w, x);
|
|
7855
|
+
return U = n.add(U, U), k = n.mul(w, C), k = n.add(k, k), E = n.mul(f, k), v = n.mul(y, F), v = n.add(E, v), E = n.sub(S, v), v = n.add(S, v), v = n.mul(E, v), E = n.mul(U, E), k = n.mul(y, k), F = n.mul(f, F), U = n.sub(B, F), U = n.mul(f, U), U = n.add(U, k), k = n.add(B, B), B = n.add(k, B), B = n.add(B, F), B = n.mul(B, U), v = n.add(v, B), F = n.mul(x, C), F = n.add(F, F), B = n.mul(F, U), E = n.sub(E, B), k = n.mul(F, S), k = n.add(k, k), k = n.add(k, k), new u(E, v, k);
|
|
7856
7856
|
}
|
|
7857
7857
|
// Renes-Costello-Batina exception-free addition formula.
|
|
7858
7858
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -7862,11 +7862,11 @@ function Rm(e) {
|
|
|
7862
7862
|
d(f);
|
|
7863
7863
|
const { px: m, py: y, pz: w } = this, { px: x, py: C, pz: E } = f;
|
|
7864
7864
|
let v = n.ZERO, k = n.ZERO, B = n.ZERO;
|
|
7865
|
-
const S = t.a,
|
|
7865
|
+
const S = t.a, F = n.mul(t.b, Lo);
|
|
7866
7866
|
let U = n.mul(m, x), z = n.mul(y, C), N = n.mul(w, E), G = n.add(m, y), A = n.add(x, C);
|
|
7867
7867
|
G = n.mul(G, A), A = n.add(U, z), G = n.sub(G, A), A = n.add(m, w);
|
|
7868
7868
|
let T = n.add(x, E);
|
|
7869
|
-
return A = n.mul(A, T), T = n.add(U, N), A = n.sub(A, T), T = n.add(y, w), v = n.add(C, E), T = n.mul(T, v), v = n.add(z, N), T = n.sub(T, v), B = n.mul(S, A), v = n.mul(
|
|
7869
|
+
return A = n.mul(A, T), T = n.add(U, N), A = n.sub(A, T), T = n.add(y, w), v = n.add(C, E), T = n.mul(T, v), v = n.add(z, N), T = n.sub(T, v), B = n.mul(S, A), v = n.mul(F, N), B = n.add(v, B), v = n.sub(z, B), B = n.add(z, B), k = n.mul(v, B), z = n.add(U, U), z = n.add(z, U), N = n.mul(S, N), A = n.mul(F, A), z = n.add(z, N), N = n.sub(U, N), N = n.mul(S, N), A = n.add(A, N), U = n.mul(z, A), k = n.add(k, U), U = n.mul(T, A), v = n.mul(G, v), v = n.sub(v, U), U = n.mul(G, z), B = n.mul(T, B), B = n.add(B, U), new u(v, k, B);
|
|
7870
7870
|
}
|
|
7871
7871
|
subtract(f) {
|
|
7872
7872
|
return this.add(f.negate());
|
|
@@ -7914,8 +7914,8 @@ function Rm(e) {
|
|
|
7914
7914
|
const { endo: x } = t;
|
|
7915
7915
|
if (x) {
|
|
7916
7916
|
const { k1neg: C, k1: E, k2neg: v, k2: k } = x.splitScalar(m);
|
|
7917
|
-
let { p: B, f: S } = this.wNAF(E), { p:
|
|
7918
|
-
B = g.constTimeNegate(C, B),
|
|
7917
|
+
let { p: B, f: S } = this.wNAF(E), { p: F, f: U } = this.wNAF(k);
|
|
7918
|
+
B = g.constTimeNegate(C, B), F = g.constTimeNegate(v, F), F = new u(n.mul(F.px, x.beta), F.py, F.pz), y = B.add(F), w = S.add(U);
|
|
7919
7919
|
} else {
|
|
7920
7920
|
const { p: C, f: E } = this.wNAF(m);
|
|
7921
7921
|
y = C, w = E;
|
|
@@ -7974,7 +7974,7 @@ function Rm(e) {
|
|
|
7974
7974
|
isWithinCurveOrder: o
|
|
7975
7975
|
};
|
|
7976
7976
|
}
|
|
7977
|
-
function
|
|
7977
|
+
function Rm(e) {
|
|
7978
7978
|
const t = sl(e);
|
|
7979
7979
|
return Wn(t, {
|
|
7980
7980
|
hash: "hash",
|
|
@@ -7987,7 +7987,7 @@ function Dm(e) {
|
|
|
7987
7987
|
}), Object.freeze({ lowS: !0, ...t });
|
|
7988
7988
|
}
|
|
7989
7989
|
function qm(e) {
|
|
7990
|
-
const t =
|
|
7990
|
+
const t = Rm(e), { Fp: n, n: r } = t, s = n.BYTES + 1, a = 2 * n.BYTES + 1;
|
|
7991
7991
|
function o(A) {
|
|
7992
7992
|
return qe < A && A < n.ORDER;
|
|
7993
7993
|
}
|
|
@@ -7997,11 +7997,11 @@ function qm(e) {
|
|
|
7997
7997
|
function c(A) {
|
|
7998
7998
|
return Ws(A, r);
|
|
7999
7999
|
}
|
|
8000
|
-
const { ProjectivePoint: l, normPrivateKeyToScalar: d, weierstrassEquation: u, isWithinCurveOrder: p } =
|
|
8000
|
+
const { ProjectivePoint: l, normPrivateKeyToScalar: d, weierstrassEquation: u, isWithinCurveOrder: p } = Dm({
|
|
8001
8001
|
...t,
|
|
8002
8002
|
toBytes(A, T, P) {
|
|
8003
|
-
const O = T.toAffine(), L = n.toBytes(O.x),
|
|
8004
|
-
return P ?
|
|
8003
|
+
const O = T.toAffine(), L = n.toBytes(O.x), D = Un;
|
|
8004
|
+
return P ? D(Uint8Array.from([T.hasEvenY() ? 2 : 3]), L) : D(Uint8Array.from([4]), L, n.toBytes(O.y));
|
|
8005
8005
|
},
|
|
8006
8006
|
fromBytes(A) {
|
|
8007
8007
|
const T = A.length, P = A[0], O = A.subarray(1);
|
|
@@ -8009,10 +8009,10 @@ function qm(e) {
|
|
|
8009
8009
|
const L = gt(O);
|
|
8010
8010
|
if (!o(L))
|
|
8011
8011
|
throw new Error("Point is not on curve");
|
|
8012
|
-
const
|
|
8012
|
+
const D = u(L);
|
|
8013
8013
|
let K;
|
|
8014
8014
|
try {
|
|
8015
|
-
K = n.sqrt(
|
|
8015
|
+
K = n.sqrt(D);
|
|
8016
8016
|
} catch (W) {
|
|
8017
8017
|
const oe = W instanceof Error ? ": " + W.message : "";
|
|
8018
8018
|
throw new Error("Point is not on curve" + oe);
|
|
@@ -8020,12 +8020,12 @@ function qm(e) {
|
|
|
8020
8020
|
const j = (K & ke) === ke;
|
|
8021
8021
|
return (P & 1) === 1 !== j && (K = n.neg(K)), { x: L, y: K };
|
|
8022
8022
|
} else if (T === a && P === 4) {
|
|
8023
|
-
const L = n.fromBytes(O.subarray(0, n.BYTES)),
|
|
8024
|
-
return { x: L, y:
|
|
8023
|
+
const L = n.fromBytes(O.subarray(0, n.BYTES)), D = n.fromBytes(O.subarray(n.BYTES, 2 * n.BYTES));
|
|
8024
|
+
return { x: L, y: D };
|
|
8025
8025
|
} else
|
|
8026
8026
|
throw new Error(`Point of length ${T} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`);
|
|
8027
8027
|
}
|
|
8028
|
-
}), g = (A) => zt(
|
|
8028
|
+
}), g = (A) => zt(Dt(A, t.nByteLength));
|
|
8029
8029
|
function b(A) {
|
|
8030
8030
|
const T = r >> ke;
|
|
8031
8031
|
return A > T;
|
|
@@ -8059,13 +8059,13 @@ function qm(e) {
|
|
|
8059
8059
|
return new y(this.r, this.s, T);
|
|
8060
8060
|
}
|
|
8061
8061
|
recoverPublicKey(T) {
|
|
8062
|
-
const { r: P, s: O, recovery: L } = this,
|
|
8062
|
+
const { r: P, s: O, recovery: L } = this, D = k(Ie("msgHash", T));
|
|
8063
8063
|
if (L == null || ![0, 1, 2, 3].includes(L))
|
|
8064
8064
|
throw new Error("recovery id invalid");
|
|
8065
8065
|
const K = L === 2 || L === 3 ? P + t.n : P;
|
|
8066
8066
|
if (K >= n.ORDER)
|
|
8067
8067
|
throw new Error("recovery id 2 or 3 invalid");
|
|
8068
|
-
const j = L & 1 ? "03" : "02", ae = l.fromHex(j + g(K)), W = c(K), oe = i(-
|
|
8068
|
+
const j = L & 1 ? "03" : "02", ae = l.fromHex(j + g(K)), W = c(K), oe = i(-D * W), Se = i(O * W), ie = l.BASE.multiplyAndAddUnsafe(ae, oe, Se);
|
|
8069
8069
|
if (!ie)
|
|
8070
8070
|
throw new Error("point at infinify");
|
|
8071
8071
|
return ie.assertValidity(), ie;
|
|
@@ -8146,14 +8146,14 @@ function qm(e) {
|
|
|
8146
8146
|
throw new Error("bigint expected");
|
|
8147
8147
|
if (!(qe <= A && A < B))
|
|
8148
8148
|
throw new Error(`bigint expected < 2^${t.nBitLength}`);
|
|
8149
|
-
return
|
|
8149
|
+
return Dt(A, t.nByteLength);
|
|
8150
8150
|
}
|
|
8151
|
-
function
|
|
8151
|
+
function F(A, T, P = U) {
|
|
8152
8152
|
if (["recovered", "canonical"].some((le) => le in P))
|
|
8153
8153
|
throw new Error("sign() legacy options not supported");
|
|
8154
8154
|
const { hash: O, randomBytes: L } = t;
|
|
8155
|
-
let { lowS:
|
|
8156
|
-
|
|
8155
|
+
let { lowS: D, prehash: K, extraEntropy: j } = P;
|
|
8156
|
+
D == null && (D = !0), A = Ie("msgHash", A), K && (A = Ie("prehashed msgHash", O(A)));
|
|
8157
8157
|
const ae = k(A), W = d(T), oe = [S(W), S(ae)];
|
|
8158
8158
|
if (j != null && j !== !1) {
|
|
8159
8159
|
const le = j === !0 ? L(n.BYTES) : j;
|
|
@@ -8171,14 +8171,14 @@ function qm(e) {
|
|
|
8171
8171
|
if (xe === qe)
|
|
8172
8172
|
return;
|
|
8173
8173
|
let en = (ge.x === X ? 0 : 2) | Number(ge.y & ke), tn = xe;
|
|
8174
|
-
return
|
|
8174
|
+
return D && b(xe) && (tn = f(xe), en ^= 1), new y(X, tn, en);
|
|
8175
8175
|
}
|
|
8176
8176
|
return { seed: Se, k2sig: ut };
|
|
8177
8177
|
}
|
|
8178
8178
|
const U = { lowS: t.lowS, prehash: !1 }, z = { lowS: t.lowS, prehash: !1 };
|
|
8179
8179
|
function N(A, T, P = U) {
|
|
8180
|
-
const { seed: O, k2sig: L } =
|
|
8181
|
-
return el(
|
|
8180
|
+
const { seed: O, k2sig: L } = F(A, T, P), D = t;
|
|
8181
|
+
return el(D.hash.outputLen, D.nByteLength, D.hmac)(O, L);
|
|
8182
8182
|
}
|
|
8183
8183
|
l.BASE._setWindowSize(8);
|
|
8184
8184
|
function G(A, T, P, O = z) {
|
|
@@ -8186,7 +8186,7 @@ function qm(e) {
|
|
|
8186
8186
|
const L = A;
|
|
8187
8187
|
if (T = Ie("msgHash", T), P = Ie("publicKey", P), "strict" in O)
|
|
8188
8188
|
throw new Error("options.strict was renamed to lowS");
|
|
8189
|
-
const { lowS:
|
|
8189
|
+
const { lowS: D, prehash: K } = O;
|
|
8190
8190
|
let j, ae;
|
|
8191
8191
|
try {
|
|
8192
8192
|
if (typeof L == "string" || kt(L))
|
|
@@ -8208,7 +8208,7 @@ function qm(e) {
|
|
|
8208
8208
|
throw new Error("signature must be Signature instance, Uint8Array or hex string");
|
|
8209
8209
|
return !1;
|
|
8210
8210
|
}
|
|
8211
|
-
if (
|
|
8211
|
+
if (D && j.hasHighS())
|
|
8212
8212
|
return !1;
|
|
8213
8213
|
K && (T = t.hash(T));
|
|
8214
8214
|
const { r: W, s: oe } = j, Se = k(T), ie = c(oe), ut = i(Se * ie), le = i(W * ie), ye = (ge = l.BASE.multiplyAndAddUnsafe(ae, ut, le)) == null ? void 0 : ge.toAffine();
|
|
@@ -8315,7 +8315,7 @@ const Ys = _m(ol, void 0, void 0, { sqrt: Vm }), Xn = jm({
|
|
|
8315
8315
|
return { k1neg: u, k1: l, k2neg: p, k2: d };
|
|
8316
8316
|
}
|
|
8317
8317
|
}
|
|
8318
|
-
},
|
|
8318
|
+
}, Dn);
|
|
8319
8319
|
BigInt(0);
|
|
8320
8320
|
Xn.ProjectivePoint;
|
|
8321
8321
|
const Zm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8341,7 +8341,7 @@ async function Za(e, t) {
|
|
|
8341
8341
|
try {
|
|
8342
8342
|
const { data: d } = await H(e, ts, "call")({
|
|
8343
8343
|
data: Wr({
|
|
8344
|
-
abi:
|
|
8344
|
+
abi: Rd,
|
|
8345
8345
|
args: [n, a, l],
|
|
8346
8346
|
bytecode: Qp
|
|
8347
8347
|
}),
|
|
@@ -8360,7 +8360,7 @@ async function Za(e, t) {
|
|
|
8360
8360
|
}
|
|
8361
8361
|
}
|
|
8362
8362
|
async function Wm(e, { address: t, message: n, factory: r, factoryData: s, signature: a, ...o }) {
|
|
8363
|
-
const i =
|
|
8363
|
+
const i = Da(n);
|
|
8364
8364
|
return Za(e, {
|
|
8365
8365
|
address: t,
|
|
8366
8366
|
factory: r,
|
|
@@ -8371,7 +8371,7 @@ async function Wm(e, { address: t, message: n, factory: r, factoryData: s, signa
|
|
|
8371
8371
|
});
|
|
8372
8372
|
}
|
|
8373
8373
|
async function Xm(e, t) {
|
|
8374
|
-
const { address: n, factory: r, factoryData: s, signature: a, message: o, primaryType: i, types: c, domain: l, ...d } = t, u =
|
|
8374
|
+
const { address: n, factory: r, factoryData: s, signature: a, message: o, primaryType: i, types: c, domain: l, ...d } = t, u = Dc({ message: o, primaryType: i, types: c, domain: l });
|
|
8375
8375
|
return Za(e, {
|
|
8376
8376
|
address: n,
|
|
8377
8377
|
factory: r,
|
|
@@ -8409,7 +8409,7 @@ function Jm(e, t) {
|
|
|
8409
8409
|
var k;
|
|
8410
8410
|
if (!E) {
|
|
8411
8411
|
try {
|
|
8412
|
-
C = await H(e,
|
|
8412
|
+
C = await H(e, $c, "createContractEventFilter")({
|
|
8413
8413
|
abi: n,
|
|
8414
8414
|
address: r,
|
|
8415
8415
|
args: s,
|
|
@@ -8483,7 +8483,7 @@ function Jm(e, t) {
|
|
|
8483
8483
|
}) : [], { unsubscribe: k } = await E.subscribe({
|
|
8484
8484
|
params: ["logs", { address: r, topics: v }],
|
|
8485
8485
|
onData(B) {
|
|
8486
|
-
var
|
|
8486
|
+
var F;
|
|
8487
8487
|
if (!w)
|
|
8488
8488
|
return;
|
|
8489
8489
|
const S = B.result;
|
|
@@ -8503,7 +8503,7 @@ function Jm(e, t) {
|
|
|
8503
8503
|
if (U instanceof mn || U instanceof Kr) {
|
|
8504
8504
|
if (p)
|
|
8505
8505
|
return;
|
|
8506
|
-
z = U.abiItem.name, N = (
|
|
8506
|
+
z = U.abiItem.name, N = (F = U.abiItem.inputs) == null ? void 0 : F.some((A) => !("name" in A && A.name));
|
|
8507
8507
|
}
|
|
8508
8508
|
const G = Xe(S, {
|
|
8509
8509
|
args: N ? [] : {},
|
|
@@ -8558,7 +8558,7 @@ var cl = function(e, t, n, r) {
|
|
|
8558
8558
|
if (n === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
8559
8559
|
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
8560
8560
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
8561
|
-
},
|
|
8561
|
+
}, Rr, ll;
|
|
8562
8562
|
class Ye extends Error {
|
|
8563
8563
|
get docsBaseUrl() {
|
|
8564
8564
|
return "https://wagmi.sh/core";
|
|
@@ -8568,7 +8568,7 @@ class Ye extends Error {
|
|
|
8568
8568
|
}
|
|
8569
8569
|
constructor(t, n = {}) {
|
|
8570
8570
|
var a;
|
|
8571
|
-
super(),
|
|
8571
|
+
super(), Rr.add(this), Object.defineProperty(this, "details", {
|
|
8572
8572
|
enumerable: !0,
|
|
8573
8573
|
configurable: !0,
|
|
8574
8574
|
writable: !0,
|
|
@@ -8608,11 +8608,11 @@ class Ye extends Error {
|
|
|
8608
8608
|
`), n.cause && (this.cause = n.cause), this.details = r, this.docsPath = s, this.metaMessages = n.metaMessages, this.shortMessage = t;
|
|
8609
8609
|
}
|
|
8610
8610
|
walk(t) {
|
|
8611
|
-
return cl(this,
|
|
8611
|
+
return cl(this, Rr, "m", ll).call(this, this, t);
|
|
8612
8612
|
}
|
|
8613
8613
|
}
|
|
8614
|
-
|
|
8615
|
-
return n != null && n(t) ? t : t.cause ? cl(this,
|
|
8614
|
+
Rr = /* @__PURE__ */ new WeakSet(), ll = function e(t, n) {
|
|
8615
|
+
return n != null && n(t) ? t : t.cause ? cl(this, Rr, "m", e).call(this, t.cause, n) : t;
|
|
8616
8616
|
};
|
|
8617
8617
|
class Js extends Ye {
|
|
8618
8618
|
constructor() {
|
|
@@ -8624,7 +8624,7 @@ class Js extends Ye {
|
|
|
8624
8624
|
});
|
|
8625
8625
|
}
|
|
8626
8626
|
}
|
|
8627
|
-
class
|
|
8627
|
+
class R3 extends Ye {
|
|
8628
8628
|
constructor() {
|
|
8629
8629
|
super("Connector not connected."), Object.defineProperty(this, "name", {
|
|
8630
8630
|
enumerable: !0,
|
|
@@ -8774,7 +8774,7 @@ function gs(e, t = {}) {
|
|
|
8774
8774
|
fn: (S) => y.request({
|
|
8775
8775
|
body: S
|
|
8776
8776
|
}),
|
|
8777
|
-
sort: (S,
|
|
8777
|
+
sort: (S, F) => S.id - F.id
|
|
8778
8778
|
}), v = async (S) => n ? E(S) : [
|
|
8779
8779
|
await y.request({
|
|
8780
8780
|
body: S
|
|
@@ -8839,7 +8839,7 @@ async function o0(e, t) {
|
|
|
8839
8839
|
time: c
|
|
8840
8840
|
}))
|
|
8841
8841
|
return !1;
|
|
8842
|
-
const p =
|
|
8842
|
+
const p = Da(s);
|
|
8843
8843
|
return Za(e, {
|
|
8844
8844
|
address: d.address,
|
|
8845
8845
|
hash: p,
|
|
@@ -8847,11 +8847,11 @@ async function o0(e, t) {
|
|
|
8847
8847
|
...l
|
|
8848
8848
|
});
|
|
8849
8849
|
}
|
|
8850
|
-
function
|
|
8850
|
+
function Do(e) {
|
|
8851
8851
|
return {
|
|
8852
8852
|
call: (t) => ts(e, t),
|
|
8853
8853
|
createBlockFilter: () => vf(e),
|
|
8854
|
-
createContractEventFilter: (t) =>
|
|
8854
|
+
createContractEventFilter: (t) => $c(e, t),
|
|
8855
8855
|
createEventFilter: (t) => _c(e, t),
|
|
8856
8856
|
createPendingTransactionFilter: () => Nc(e),
|
|
8857
8857
|
estimateContractGas: (t) => Bf(e, t),
|
|
@@ -8860,7 +8860,7 @@ function Ro(e) {
|
|
|
8860
8860
|
getBlobBaseFee: () => Af(e),
|
|
8861
8861
|
getBlock: (t) => je(e, t),
|
|
8862
8862
|
getBlockNumber: (t) => jn(e, t),
|
|
8863
|
-
getBlockTransactionCount: (t) =>
|
|
8863
|
+
getBlockTransactionCount: (t) => Ff(e, t),
|
|
8864
8864
|
getBytecode: (t) => Io(e, t),
|
|
8865
8865
|
getChainId: () => zn(e),
|
|
8866
8866
|
getCode: (t) => Io(e, t),
|
|
@@ -8870,7 +8870,7 @@ function Ro(e) {
|
|
|
8870
8870
|
getEnsAvatar: (t) => xf(e, t),
|
|
8871
8871
|
getEnsName: (t) => wf(e, t),
|
|
8872
8872
|
getEnsResolver: (t) => Ef(e, t),
|
|
8873
|
-
getEnsText: (t) =>
|
|
8873
|
+
getEnsText: (t) => Fc(e, t),
|
|
8874
8874
|
getFeeHistory: (t) => zf(e, t),
|
|
8875
8875
|
estimateFeesPerGas: (t) => kd(e, t),
|
|
8876
8876
|
getFilterChanges: (t) => rs(e, t),
|
|
@@ -8879,13 +8879,13 @@ function Ro(e) {
|
|
|
8879
8879
|
getLogs: (t) => Ma(e, t),
|
|
8880
8880
|
getProof: (t) => Oh(e, t),
|
|
8881
8881
|
estimateMaxPriorityFeePerGas: (t) => vd(e, t),
|
|
8882
|
-
getStorageAt: (t) =>
|
|
8882
|
+
getStorageAt: (t) => Df(e, t),
|
|
8883
8883
|
getTransaction: (t) => La(e, t),
|
|
8884
|
-
getTransactionConfirmations: (t) =>
|
|
8884
|
+
getTransactionConfirmations: (t) => Rf(e, t),
|
|
8885
8885
|
getTransactionCount: (t) => Ji(e, t),
|
|
8886
8886
|
getTransactionReceipt: (t) => Ks(e, t),
|
|
8887
8887
|
multicall: (t) => Zf(e, t),
|
|
8888
|
-
prepareTransactionRequest: (t) =>
|
|
8888
|
+
prepareTransactionRequest: (t) => Rn(e, t),
|
|
8889
8889
|
readContract: (t) => We(e, t),
|
|
8890
8890
|
sendRawTransaction: (t) => Ta(e, t),
|
|
8891
8891
|
simulateContract: (t) => fm(e, t),
|
|
@@ -8909,8 +8909,8 @@ function i0({ mode: e }) {
|
|
|
8909
8909
|
return {
|
|
8910
8910
|
dropTransaction: (r) => Hh(n, r),
|
|
8911
8911
|
dumpState: () => Cf(n),
|
|
8912
|
-
getAutomine: () =>
|
|
8913
|
-
getTxpoolContent: () =>
|
|
8912
|
+
getAutomine: () => Dh(n),
|
|
8913
|
+
getTxpoolContent: () => Rh(n),
|
|
8914
8914
|
getTxpoolStatus: () => qh(n),
|
|
8915
8915
|
impersonateAccount: (r) => Gf(n, r),
|
|
8916
8916
|
increaseTime: (r) => jf(n, r),
|
|
@@ -8959,7 +8959,7 @@ function pl(e) {
|
|
|
8959
8959
|
getAddresses: () => Qf(e),
|
|
8960
8960
|
getChainId: () => zn(e),
|
|
8961
8961
|
getPermissions: () => eh(e),
|
|
8962
|
-
prepareTransactionRequest: (t) =>
|
|
8962
|
+
prepareTransactionRequest: (t) => Rn(e, t),
|
|
8963
8963
|
requestAddresses: () => Lh(e),
|
|
8964
8964
|
requestPermissions: (t) => zh(e, t),
|
|
8965
8965
|
sendRawTransaction: (t) => Ta(e, t),
|
|
@@ -9183,7 +9183,7 @@ function Xa(e = {}) {
|
|
|
9183
9183
|
}
|
|
9184
9184
|
throw new St();
|
|
9185
9185
|
}
|
|
9186
|
-
return !!(await
|
|
9186
|
+
return !!(await Dr(() => this.getAccounts())).length;
|
|
9187
9187
|
} catch {
|
|
9188
9188
|
return !1;
|
|
9189
9189
|
}
|
|
@@ -9323,7 +9323,7 @@ function f0() {
|
|
|
9323
9323
|
}
|
|
9324
9324
|
};
|
|
9325
9325
|
}
|
|
9326
|
-
const h0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, m0 = (e) => (t, n, r) => {
|
|
9326
|
+
const h0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, m0 = (e) => (t, n, r) => {
|
|
9327
9327
|
const s = r.subscribe;
|
|
9328
9328
|
return r.subscribe = (o, i, c) => {
|
|
9329
9329
|
let l = o;
|
|
@@ -9361,12 +9361,12 @@ function y0(e, t) {
|
|
|
9361
9361
|
removeItem: (s) => n.removeItem(s)
|
|
9362
9362
|
};
|
|
9363
9363
|
}
|
|
9364
|
-
const
|
|
9364
|
+
const Fn = (e) => (t) => {
|
|
9365
9365
|
try {
|
|
9366
9366
|
const n = e(t);
|
|
9367
9367
|
return n instanceof Promise ? n : {
|
|
9368
9368
|
then(r) {
|
|
9369
|
-
return
|
|
9369
|
+
return Fn(r)(n);
|
|
9370
9370
|
},
|
|
9371
9371
|
catch(r) {
|
|
9372
9372
|
return this;
|
|
@@ -9378,7 +9378,7 @@ const $n = (e) => (t) => {
|
|
|
9378
9378
|
return this;
|
|
9379
9379
|
},
|
|
9380
9380
|
catch(r) {
|
|
9381
|
-
return
|
|
9381
|
+
return Fn(r)(n);
|
|
9382
9382
|
}
|
|
9383
9383
|
};
|
|
9384
9384
|
}
|
|
@@ -9411,7 +9411,7 @@ const $n = (e) => (t) => {
|
|
|
9411
9411
|
r,
|
|
9412
9412
|
s
|
|
9413
9413
|
);
|
|
9414
|
-
const d =
|
|
9414
|
+
const d = Fn(a.serialize), u = () => {
|
|
9415
9415
|
const m = a.partialize({ ...r() });
|
|
9416
9416
|
let y;
|
|
9417
9417
|
const w = d({ state: m, version: a.version }).then(
|
|
@@ -9440,7 +9440,7 @@ const $n = (e) => (t) => {
|
|
|
9440
9440
|
return;
|
|
9441
9441
|
o = !1, i.forEach((w) => w(r()));
|
|
9442
9442
|
const y = ((m = a.onRehydrateStorage) == null ? void 0 : m.call(a, r())) || void 0;
|
|
9443
|
-
return
|
|
9443
|
+
return Fn(l.getItem.bind(l))(a.name).then((w) => {
|
|
9444
9444
|
if (w)
|
|
9445
9445
|
return a.deserialize(w);
|
|
9446
9446
|
}).then((w) => {
|
|
@@ -9538,7 +9538,7 @@ const $n = (e) => (t) => {
|
|
|
9538
9538
|
return w((x = r()) != null ? x : p);
|
|
9539
9539
|
});
|
|
9540
9540
|
const y = ((m = a.onRehydrateStorage) == null ? void 0 : m.call(a, (f = r()) != null ? f : p)) || void 0;
|
|
9541
|
-
return
|
|
9541
|
+
return Fn(l.getItem.bind(l))(a.name).then((w) => {
|
|
9542
9542
|
if (w)
|
|
9543
9543
|
if (typeof w.version == "number" && w.version !== a.version) {
|
|
9544
9544
|
if (a.migrate)
|
|
@@ -9585,7 +9585,7 @@ const $n = (e) => (t) => {
|
|
|
9585
9585
|
}, a.skipHydration || b(), g || p;
|
|
9586
9586
|
}, w0 = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((h0 ? "production" : void 0) !== "production" && console.warn(
|
|
9587
9587
|
"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
|
|
9588
|
-
), g0(e, t)) : x0(e, t), E0 = w0, v0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" },
|
|
9588
|
+
), g0(e, t)) : x0(e, t), E0 = w0, v0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, Ro = (e) => {
|
|
9589
9589
|
let t;
|
|
9590
9590
|
const n = /* @__PURE__ */ new Set(), r = (c, l) => {
|
|
9591
9591
|
const d = typeof c == "function" ? c(t) : c;
|
|
@@ -9599,7 +9599,7 @@ const $n = (e) => (t) => {
|
|
|
9599
9599
|
), n.clear();
|
|
9600
9600
|
} };
|
|
9601
9601
|
return t = e(r, s, i), i;
|
|
9602
|
-
}, xs = (e) => e ?
|
|
9602
|
+
}, xs = (e) => e ? Ro(e) : Ro;
|
|
9603
9603
|
function k0(e) {
|
|
9604
9604
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9605
9605
|
}
|
|
@@ -9810,7 +9810,7 @@ const hl = {
|
|
|
9810
9810
|
}
|
|
9811
9811
|
}, ea = 256;
|
|
9812
9812
|
let ir = ea, cr;
|
|
9813
|
-
function
|
|
9813
|
+
function F0(e = 11) {
|
|
9814
9814
|
if (!cr || ir + e > ea * 2) {
|
|
9815
9815
|
cr = "", ir = 0;
|
|
9816
9816
|
for (let t = 0; t < ea; t++)
|
|
@@ -9818,7 +9818,7 @@ function $0(e = 11) {
|
|
|
9818
9818
|
}
|
|
9819
9819
|
return cr.substring(ir, ir++ + e);
|
|
9820
9820
|
}
|
|
9821
|
-
function
|
|
9821
|
+
function $0(e) {
|
|
9822
9822
|
const { multiInjectedProviderDiscovery: t = !0, storage: n = P0({
|
|
9823
9823
|
storage: typeof window < "u" && window.localStorage ? window.localStorage : hl
|
|
9824
9824
|
}), syncConnectedChain: r = !0, ssr: s = !1, ...a } = e, o = typeof window < "u" && t ? f0() : void 0, i = xs(() => a.chains), c = xs(() => [
|
|
@@ -9827,7 +9827,7 @@ function F0(e) {
|
|
|
9827
9827
|
].map(l));
|
|
9828
9828
|
function l(E) {
|
|
9829
9829
|
var B;
|
|
9830
|
-
const v = T0(
|
|
9830
|
+
const v = T0(F0()), k = {
|
|
9831
9831
|
...E({
|
|
9832
9832
|
emitter: v,
|
|
9833
9833
|
chains: i.getState(),
|
|
@@ -9864,14 +9864,14 @@ function F0(e) {
|
|
|
9864
9864
|
if (a.client)
|
|
9865
9865
|
B = a.client({ chain: k });
|
|
9866
9866
|
else {
|
|
9867
|
-
const S = k.id,
|
|
9867
|
+
const S = k.id, F = i.getState().map((N) => N.id), U = {}, z = Object.entries(a);
|
|
9868
9868
|
for (const [N, G] of z)
|
|
9869
9869
|
if (!(N === "chains" || N === "client" || N === "connectors" || N === "transports"))
|
|
9870
9870
|
if (typeof G == "object")
|
|
9871
9871
|
if (S in G)
|
|
9872
9872
|
U[N] = G[S];
|
|
9873
9873
|
else {
|
|
9874
|
-
if (
|
|
9874
|
+
if (F.some((T) => T in G))
|
|
9875
9875
|
continue;
|
|
9876
9876
|
U[N] = G;
|
|
9877
9877
|
}
|
|
@@ -9912,8 +9912,8 @@ function F0(e) {
|
|
|
9912
9912
|
connections: {
|
|
9913
9913
|
__type: "Map",
|
|
9914
9914
|
value: Array.from(E.connections.entries()).map(([v, k]) => {
|
|
9915
|
-
const { id: B, name: S, type:
|
|
9916
|
-
return [v, { ...k, connector: { id: B, name: S, type:
|
|
9915
|
+
const { id: B, name: S, type: F, uid: U } = k.connector;
|
|
9916
|
+
return [v, { ...k, connector: { id: B, name: S, type: F, uid: U } }];
|
|
9917
9917
|
})
|
|
9918
9918
|
},
|
|
9919
9919
|
chainId: E.chainId,
|
|
@@ -10062,7 +10062,7 @@ function F0(e) {
|
|
|
10062
10062
|
}
|
|
10063
10063
|
};
|
|
10064
10064
|
}
|
|
10065
|
-
const [_0, N0] =
|
|
10065
|
+
const [_0, N0] = R.split([
|
|
10066
10066
|
"0x428a2f98d728ae22",
|
|
10067
10067
|
"0x7137449123ef65cd",
|
|
10068
10068
|
"0xb5c0fbcfec4d3b2f",
|
|
@@ -10161,17 +10161,17 @@ let O0 = class extends Ba {
|
|
|
10161
10161
|
for (let x = 0; x < 16; x++, n += 4)
|
|
10162
10162
|
et[x] = t.getUint32(n), tt[x] = t.getUint32(n += 4);
|
|
10163
10163
|
for (let x = 16; x < 80; x++) {
|
|
10164
|
-
const C = et[x - 15] | 0, E = tt[x - 15] | 0, v =
|
|
10164
|
+
const C = et[x - 15] | 0, E = tt[x - 15] | 0, v = R.rotrSH(C, E, 1) ^ R.rotrSH(C, E, 8) ^ R.shrSH(C, E, 7), k = R.rotrSL(C, E, 1) ^ R.rotrSL(C, E, 8) ^ R.shrSL(C, E, 7), B = et[x - 2] | 0, S = tt[x - 2] | 0, F = R.rotrSH(B, S, 19) ^ R.rotrBH(B, S, 61) ^ R.shrSH(B, S, 6), U = R.rotrSL(B, S, 19) ^ R.rotrBL(B, S, 61) ^ R.shrSL(B, S, 6), z = R.add4L(k, U, tt[x - 7], tt[x - 16]), N = R.add4H(z, v, F, et[x - 7], et[x - 16]);
|
|
10165
10165
|
et[x] = N | 0, tt[x] = z | 0;
|
|
10166
10166
|
}
|
|
10167
10167
|
let { Ah: r, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: d, Eh: u, El: p, Fh: g, Fl: b, Gh: f, Gl: m, Hh: y, Hl: w } = this;
|
|
10168
10168
|
for (let x = 0; x < 80; x++) {
|
|
10169
|
-
const C =
|
|
10170
|
-
y = f | 0, w = m | 0, f = g | 0, m = b | 0, g = u | 0, b = p | 0, { h: u, l: p } =
|
|
10171
|
-
const A =
|
|
10172
|
-
r =
|
|
10169
|
+
const C = R.rotrSH(u, p, 14) ^ R.rotrSH(u, p, 18) ^ R.rotrBH(u, p, 41), E = R.rotrSL(u, p, 14) ^ R.rotrSL(u, p, 18) ^ R.rotrBL(u, p, 41), v = u & g ^ ~u & f, k = p & b ^ ~p & m, B = R.add5L(w, E, k, N0[x], tt[x]), S = R.add5H(B, y, C, v, _0[x], et[x]), F = B | 0, U = R.rotrSH(r, s, 28) ^ R.rotrBH(r, s, 34) ^ R.rotrBH(r, s, 39), z = R.rotrSL(r, s, 28) ^ R.rotrBL(r, s, 34) ^ R.rotrBL(r, s, 39), N = r & a ^ r & i ^ a & i, G = s & o ^ s & c ^ o & c;
|
|
10170
|
+
y = f | 0, w = m | 0, f = g | 0, m = b | 0, g = u | 0, b = p | 0, { h: u, l: p } = R.add(l | 0, d | 0, S | 0, F | 0), l = i | 0, d = c | 0, i = a | 0, c = o | 0, a = r | 0, o = s | 0;
|
|
10171
|
+
const A = R.add3L(F, z, G);
|
|
10172
|
+
r = R.add3H(A, S, U, N), s = A | 0;
|
|
10173
10173
|
}
|
|
10174
|
-
({ h: r, l: s } =
|
|
10174
|
+
({ h: r, l: s } = R.add(this.Ah | 0, this.Al | 0, r | 0, s | 0)), { h: a, l: o } = R.add(this.Bh | 0, this.Bl | 0, a | 0, o | 0), { h: i, l: c } = R.add(this.Ch | 0, this.Cl | 0, i | 0, c | 0), { h: l, l: d } = R.add(this.Dh | 0, this.Dl | 0, l | 0, d | 0), { h: u, l: p } = R.add(this.Eh | 0, this.El | 0, u | 0, p | 0), { h: g, l: b } = R.add(this.Fh | 0, this.Fl | 0, g | 0, b | 0), { h: f, l: m } = R.add(this.Gh | 0, this.Gl | 0, f | 0, m | 0), { h: y, l: w } = R.add(this.Hh | 0, this.Hl | 0, y | 0, w | 0), this.set(r, s, a, o, i, c, l, d, u, p, g, b, f, m, y, w);
|
|
10175
10175
|
}
|
|
10176
10176
|
roundClean() {
|
|
10177
10177
|
et.fill(0), tt.fill(0);
|
|
@@ -10191,7 +10191,7 @@ function Yn(e) {
|
|
|
10191
10191
|
throw new Error("Uint8Array expected");
|
|
10192
10192
|
}
|
|
10193
10193
|
const L0 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
10194
|
-
function
|
|
10194
|
+
function Rt(e) {
|
|
10195
10195
|
Yn(e);
|
|
10196
10196
|
let t = "";
|
|
10197
10197
|
for (let n = 0; n < e.length; n++)
|
|
@@ -10207,14 +10207,14 @@ function Ya(e) {
|
|
|
10207
10207
|
throw new Error("hex string expected, got " + typeof e);
|
|
10208
10208
|
return BigInt(e === "" ? "0" : `0x${e}`);
|
|
10209
10209
|
}
|
|
10210
|
-
const
|
|
10210
|
+
const Re = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
|
|
10211
10211
|
function Ko(e) {
|
|
10212
|
-
if (e >=
|
|
10213
|
-
return e -
|
|
10214
|
-
if (e >=
|
|
10215
|
-
return e - (
|
|
10216
|
-
if (e >=
|
|
10217
|
-
return e - (
|
|
10212
|
+
if (e >= Re._0 && e <= Re._9)
|
|
10213
|
+
return e - Re._0;
|
|
10214
|
+
if (e >= Re._A && e <= Re._F)
|
|
10215
|
+
return e - (Re._A - 10);
|
|
10216
|
+
if (e >= Re._a && e <= Re._f)
|
|
10217
|
+
return e - (Re._a - 10);
|
|
10218
10218
|
}
|
|
10219
10219
|
function qt(e) {
|
|
10220
10220
|
if (typeof e != "string")
|
|
@@ -10234,10 +10234,10 @@ function qt(e) {
|
|
|
10234
10234
|
return r;
|
|
10235
10235
|
}
|
|
10236
10236
|
function xt(e) {
|
|
10237
|
-
return Ya(
|
|
10237
|
+
return Ya(Rt(e));
|
|
10238
10238
|
}
|
|
10239
10239
|
function Ja(e) {
|
|
10240
|
-
return Yn(e), Ya(
|
|
10240
|
+
return Yn(e), Ya(Rt(Uint8Array.from(e).reverse()));
|
|
10241
10241
|
}
|
|
10242
10242
|
function Gt(e, t) {
|
|
10243
10243
|
return qt(e.toString(16).padStart(t * 2, "0"));
|
|
@@ -10265,7 +10265,7 @@ function Ue(e, t, n) {
|
|
|
10265
10265
|
throw new Error(`${e} expected ${n} bytes, got ${s}`);
|
|
10266
10266
|
return r;
|
|
10267
10267
|
}
|
|
10268
|
-
function
|
|
10268
|
+
function $n(...e) {
|
|
10269
10269
|
let t = 0;
|
|
10270
10270
|
for (let r = 0; r < e.length; r++) {
|
|
10271
10271
|
const s = e[r];
|
|
@@ -10286,12 +10286,12 @@ function H0(e, t) {
|
|
|
10286
10286
|
n |= e[r] ^ t[r];
|
|
10287
10287
|
return n === 0;
|
|
10288
10288
|
}
|
|
10289
|
-
function
|
|
10289
|
+
function D0(e) {
|
|
10290
10290
|
if (typeof e != "string")
|
|
10291
10291
|
throw new Error(`utf8ToBytes expected string, got ${typeof e}`);
|
|
10292
10292
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
10293
10293
|
}
|
|
10294
|
-
function
|
|
10294
|
+
function R0(e) {
|
|
10295
10295
|
let t;
|
|
10296
10296
|
for (t = 0; e > ml; e >>= os, t += 1)
|
|
10297
10297
|
;
|
|
@@ -10326,7 +10326,7 @@ function yl(e, t, n) {
|
|
|
10326
10326
|
const g = r.slice();
|
|
10327
10327
|
p.push(g), u += r.length;
|
|
10328
10328
|
}
|
|
10329
|
-
return
|
|
10329
|
+
return $n(...p);
|
|
10330
10330
|
};
|
|
10331
10331
|
return (u, p) => {
|
|
10332
10332
|
o(), c(u);
|
|
@@ -10366,13 +10366,13 @@ const K0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10366
10366
|
__proto__: null,
|
|
10367
10367
|
abytes: Yn,
|
|
10368
10368
|
bitGet: q0,
|
|
10369
|
-
bitLen:
|
|
10369
|
+
bitLen: R0,
|
|
10370
10370
|
bitMask: eo,
|
|
10371
10371
|
bitSet: G0,
|
|
10372
|
-
bytesToHex:
|
|
10372
|
+
bytesToHex: Rt,
|
|
10373
10373
|
bytesToNumberBE: xt,
|
|
10374
10374
|
bytesToNumberLE: Ja,
|
|
10375
|
-
concatBytes:
|
|
10375
|
+
concatBytes: $n,
|
|
10376
10376
|
createHmacDrbg: yl,
|
|
10377
10377
|
ensureBytes: Ue,
|
|
10378
10378
|
equalBytes: H0,
|
|
@@ -10383,7 +10383,7 @@ const K0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10383
10383
|
numberToBytesLE: Qa,
|
|
10384
10384
|
numberToHexUnpadded: bl,
|
|
10385
10385
|
numberToVarBytesBE: z0,
|
|
10386
|
-
utf8ToBytes:
|
|
10386
|
+
utf8ToBytes: D0,
|
|
10387
10387
|
validateObject: Jn
|
|
10388
10388
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10389
10389
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
@@ -10743,7 +10743,7 @@ BigInt(4);
|
|
|
10743
10743
|
function cb(e) {
|
|
10744
10744
|
const t = ab(e), { Fp: n } = t, r = t.toBytes || ((b, f, m) => {
|
|
10745
10745
|
const y = f.toAffine();
|
|
10746
|
-
return
|
|
10746
|
+
return $n(Uint8Array.from([4]), n.toBytes(y.x), n.toBytes(y.y));
|
|
10747
10747
|
}), s = t.fromBytes || ((b) => {
|
|
10748
10748
|
const f = b.subarray(1), m = n.fromBytes(f.subarray(0, n.BYTES)), y = n.fromBytes(f.subarray(n.BYTES, 2 * n.BYTES));
|
|
10749
10749
|
return { x: m, y };
|
|
@@ -10764,7 +10764,7 @@ function cb(e) {
|
|
|
10764
10764
|
function c(b) {
|
|
10765
10765
|
const { allowedPrivateKeyLengths: f, nByteLength: m, wrapPrivateKey: y, n: w } = t;
|
|
10766
10766
|
if (f && typeof b != "bigint") {
|
|
10767
|
-
if (Ct(b) && (b =
|
|
10767
|
+
if (Ct(b) && (b = Rt(b)), typeof b != "string" || !f.includes(b.length))
|
|
10768
10768
|
throw new Error("Invalid key");
|
|
10769
10769
|
b = b.padStart(m * 2, "0");
|
|
10770
10770
|
}
|
|
@@ -10875,8 +10875,8 @@ function cb(e) {
|
|
|
10875
10875
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
10876
10876
|
double() {
|
|
10877
10877
|
const { a: f, b: m } = t, y = n.mul(m, Xo), { px: w, py: x, pz: C } = this;
|
|
10878
|
-
let E = n.ZERO, v = n.ZERO, k = n.ZERO, B = n.mul(w, w), S = n.mul(x, x),
|
|
10879
|
-
return U = n.add(U, U), k = n.mul(w, C), k = n.add(k, k), E = n.mul(f, k), v = n.mul(y,
|
|
10878
|
+
let E = n.ZERO, v = n.ZERO, k = n.ZERO, B = n.mul(w, w), S = n.mul(x, x), F = n.mul(C, C), U = n.mul(w, x);
|
|
10879
|
+
return U = n.add(U, U), k = n.mul(w, C), k = n.add(k, k), E = n.mul(f, k), v = n.mul(y, F), v = n.add(E, v), E = n.sub(S, v), v = n.add(S, v), v = n.mul(E, v), E = n.mul(U, E), k = n.mul(y, k), F = n.mul(f, F), U = n.sub(B, F), U = n.mul(f, U), U = n.add(U, k), k = n.add(B, B), B = n.add(k, B), B = n.add(B, F), B = n.mul(B, U), v = n.add(v, B), F = n.mul(x, C), F = n.add(F, F), B = n.mul(F, U), E = n.sub(E, B), k = n.mul(F, S), k = n.add(k, k), k = n.add(k, k), new u(E, v, k);
|
|
10880
10880
|
}
|
|
10881
10881
|
// Renes-Costello-Batina exception-free addition formula.
|
|
10882
10882
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -10886,11 +10886,11 @@ function cb(e) {
|
|
|
10886
10886
|
d(f);
|
|
10887
10887
|
const { px: m, py: y, pz: w } = this, { px: x, py: C, pz: E } = f;
|
|
10888
10888
|
let v = n.ZERO, k = n.ZERO, B = n.ZERO;
|
|
10889
|
-
const S = t.a,
|
|
10889
|
+
const S = t.a, F = n.mul(t.b, Xo);
|
|
10890
10890
|
let U = n.mul(m, x), z = n.mul(y, C), N = n.mul(w, E), G = n.add(m, y), A = n.add(x, C);
|
|
10891
10891
|
G = n.mul(G, A), A = n.add(U, z), G = n.sub(G, A), A = n.add(m, w);
|
|
10892
10892
|
let T = n.add(x, E);
|
|
10893
|
-
return A = n.mul(A, T), T = n.add(U, N), A = n.sub(A, T), T = n.add(y, w), v = n.add(C, E), T = n.mul(T, v), v = n.add(z, N), T = n.sub(T, v), B = n.mul(S, A), v = n.mul(
|
|
10893
|
+
return A = n.mul(A, T), T = n.add(U, N), A = n.sub(A, T), T = n.add(y, w), v = n.add(C, E), T = n.mul(T, v), v = n.add(z, N), T = n.sub(T, v), B = n.mul(S, A), v = n.mul(F, N), B = n.add(v, B), v = n.sub(z, B), B = n.add(z, B), k = n.mul(v, B), z = n.add(U, U), z = n.add(z, U), N = n.mul(S, N), A = n.mul(F, A), z = n.add(z, N), N = n.sub(U, N), N = n.mul(S, N), A = n.add(A, N), U = n.mul(z, A), k = n.add(k, U), U = n.mul(T, A), v = n.mul(G, v), v = n.sub(v, U), U = n.mul(G, z), B = n.mul(T, B), B = n.add(B, U), new u(v, k, B);
|
|
10894
10894
|
}
|
|
10895
10895
|
subtract(f) {
|
|
10896
10896
|
return this.add(f.negate());
|
|
@@ -10938,8 +10938,8 @@ function cb(e) {
|
|
|
10938
10938
|
const { endo: x } = t;
|
|
10939
10939
|
if (x) {
|
|
10940
10940
|
const { k1neg: C, k1: E, k2neg: v, k2: k } = x.splitScalar(m);
|
|
10941
|
-
let { p: B, f: S } = this.wNAF(E), { p:
|
|
10942
|
-
B = g.constTimeNegate(C, B),
|
|
10941
|
+
let { p: B, f: S } = this.wNAF(E), { p: F, f: U } = this.wNAF(k);
|
|
10942
|
+
B = g.constTimeNegate(C, B), F = g.constTimeNegate(v, F), F = new u(n.mul(F.px, x.beta), F.py, F.pz), y = B.add(F), w = S.add(U);
|
|
10943
10943
|
} else {
|
|
10944
10944
|
const { p: C, f: E } = this.wNAF(m);
|
|
10945
10945
|
y = C, w = E;
|
|
@@ -10985,7 +10985,7 @@ function cb(e) {
|
|
|
10985
10985
|
return this.assertValidity(), r(u, this, f);
|
|
10986
10986
|
}
|
|
10987
10987
|
toHex(f = !0) {
|
|
10988
|
-
return
|
|
10988
|
+
return Rt(this.toRawBytes(f));
|
|
10989
10989
|
}
|
|
10990
10990
|
}
|
|
10991
10991
|
u.BASE = new u(t.Gx, t.Gy, n.ONE), u.ZERO = new u(n.ZERO, n.ONE, n.ZERO);
|
|
@@ -11024,8 +11024,8 @@ function ub(e) {
|
|
|
11024
11024
|
const { ProjectivePoint: l, normPrivateKeyToScalar: d, weierstrassEquation: u, isWithinCurveOrder: p } = cb({
|
|
11025
11025
|
...t,
|
|
11026
11026
|
toBytes(A, T, P) {
|
|
11027
|
-
const O = T.toAffine(), L = n.toBytes(O.x),
|
|
11028
|
-
return P ?
|
|
11027
|
+
const O = T.toAffine(), L = n.toBytes(O.x), D = $n;
|
|
11028
|
+
return P ? D(Uint8Array.from([T.hasEvenY() ? 2 : 3]), L) : D(Uint8Array.from([4]), L, n.toBytes(O.y));
|
|
11029
11029
|
},
|
|
11030
11030
|
fromBytes(A) {
|
|
11031
11031
|
const T = A.length, P = A[0], O = A.subarray(1);
|
|
@@ -11033,10 +11033,10 @@ function ub(e) {
|
|
|
11033
11033
|
const L = xt(O);
|
|
11034
11034
|
if (!o(L))
|
|
11035
11035
|
throw new Error("Point is not on curve");
|
|
11036
|
-
const
|
|
11036
|
+
const D = u(L);
|
|
11037
11037
|
let K;
|
|
11038
11038
|
try {
|
|
11039
|
-
K = n.sqrt(
|
|
11039
|
+
K = n.sqrt(D);
|
|
11040
11040
|
} catch (W) {
|
|
11041
11041
|
const oe = W instanceof Error ? ": " + W.message : "";
|
|
11042
11042
|
throw new Error("Point is not on curve" + oe);
|
|
@@ -11044,12 +11044,12 @@ function ub(e) {
|
|
|
11044
11044
|
const j = (K & Ce) === Ce;
|
|
11045
11045
|
return (P & 1) === 1 !== j && (K = n.neg(K)), { x: L, y: K };
|
|
11046
11046
|
} else if (T === a && P === 4) {
|
|
11047
|
-
const L = n.fromBytes(O.subarray(0, n.BYTES)),
|
|
11048
|
-
return { x: L, y:
|
|
11047
|
+
const L = n.fromBytes(O.subarray(0, n.BYTES)), D = n.fromBytes(O.subarray(n.BYTES, 2 * n.BYTES));
|
|
11048
|
+
return { x: L, y: D };
|
|
11049
11049
|
} else
|
|
11050
11050
|
throw new Error(`Point of length ${T} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`);
|
|
11051
11051
|
}
|
|
11052
|
-
}), g = (A) =>
|
|
11052
|
+
}), g = (A) => Rt(Gt(A, t.nByteLength));
|
|
11053
11053
|
function b(A) {
|
|
11054
11054
|
const T = r >> Ce;
|
|
11055
11055
|
return A > T;
|
|
@@ -11083,13 +11083,13 @@ function ub(e) {
|
|
|
11083
11083
|
return new y(this.r, this.s, T);
|
|
11084
11084
|
}
|
|
11085
11085
|
recoverPublicKey(T) {
|
|
11086
|
-
const { r: P, s: O, recovery: L } = this,
|
|
11086
|
+
const { r: P, s: O, recovery: L } = this, D = k(Ue("msgHash", T));
|
|
11087
11087
|
if (L == null || ![0, 1, 2, 3].includes(L))
|
|
11088
11088
|
throw new Error("recovery id invalid");
|
|
11089
11089
|
const K = L === 2 || L === 3 ? P + t.n : P;
|
|
11090
11090
|
if (K >= n.ORDER)
|
|
11091
11091
|
throw new Error("recovery id 2 or 3 invalid");
|
|
11092
|
-
const j = L & 1 ? "03" : "02", ae = l.fromHex(j + g(K)), W = c(K), oe = i(-
|
|
11092
|
+
const j = L & 1 ? "03" : "02", ae = l.fromHex(j + g(K)), W = c(K), oe = i(-D * W), Se = i(O * W), ie = l.BASE.multiplyAndAddUnsafe(ae, oe, Se);
|
|
11093
11093
|
if (!ie)
|
|
11094
11094
|
throw new Error("point at infinify");
|
|
11095
11095
|
return ie.assertValidity(), ie;
|
|
@@ -11172,18 +11172,18 @@ function ub(e) {
|
|
|
11172
11172
|
throw new Error(`bigint expected < 2^${t.nBitLength}`);
|
|
11173
11173
|
return Gt(A, t.nByteLength);
|
|
11174
11174
|
}
|
|
11175
|
-
function
|
|
11175
|
+
function F(A, T, P = U) {
|
|
11176
11176
|
if (["recovered", "canonical"].some((le) => le in P))
|
|
11177
11177
|
throw new Error("sign() legacy options not supported");
|
|
11178
11178
|
const { hash: O, randomBytes: L } = t;
|
|
11179
|
-
let { lowS:
|
|
11180
|
-
|
|
11179
|
+
let { lowS: D, prehash: K, extraEntropy: j } = P;
|
|
11180
|
+
D == null && (D = !0), A = Ue("msgHash", A), K && (A = Ue("prehashed msgHash", O(A)));
|
|
11181
11181
|
const ae = k(A), W = d(T), oe = [S(W), S(ae)];
|
|
11182
11182
|
if (j != null && j !== !1) {
|
|
11183
11183
|
const le = j === !0 ? L(n.BYTES) : j;
|
|
11184
11184
|
oe.push(Ue("extraEntropy", le));
|
|
11185
11185
|
}
|
|
11186
|
-
const Se =
|
|
11186
|
+
const Se = $n(...oe), ie = ae;
|
|
11187
11187
|
function ut(le) {
|
|
11188
11188
|
const ye = v(le);
|
|
11189
11189
|
if (!p(ye))
|
|
@@ -11195,14 +11195,14 @@ function ub(e) {
|
|
|
11195
11195
|
if (xe === Ge)
|
|
11196
11196
|
return;
|
|
11197
11197
|
let en = (ge.x === X ? 0 : 2) | Number(ge.y & Ce), tn = xe;
|
|
11198
|
-
return
|
|
11198
|
+
return D && b(xe) && (tn = f(xe), en ^= 1), new y(X, tn, en);
|
|
11199
11199
|
}
|
|
11200
11200
|
return { seed: Se, k2sig: ut };
|
|
11201
11201
|
}
|
|
11202
11202
|
const U = { lowS: t.lowS, prehash: !1 }, z = { lowS: t.lowS, prehash: !1 };
|
|
11203
11203
|
function N(A, T, P = U) {
|
|
11204
|
-
const { seed: O, k2sig: L } =
|
|
11205
|
-
return yl(
|
|
11204
|
+
const { seed: O, k2sig: L } = F(A, T, P), D = t;
|
|
11205
|
+
return yl(D.hash.outputLen, D.nByteLength, D.hmac)(O, L);
|
|
11206
11206
|
}
|
|
11207
11207
|
l.BASE._setWindowSize(8);
|
|
11208
11208
|
function G(A, T, P, O = z) {
|
|
@@ -11210,7 +11210,7 @@ function ub(e) {
|
|
|
11210
11210
|
const L = A;
|
|
11211
11211
|
if (T = Ue("msgHash", T), P = Ue("publicKey", P), "strict" in O)
|
|
11212
11212
|
throw new Error("options.strict was renamed to lowS");
|
|
11213
|
-
const { lowS:
|
|
11213
|
+
const { lowS: D, prehash: K } = O;
|
|
11214
11214
|
let j, ae;
|
|
11215
11215
|
try {
|
|
11216
11216
|
if (typeof L == "string" || Ct(L))
|
|
@@ -11232,7 +11232,7 @@ function ub(e) {
|
|
|
11232
11232
|
throw new Error("signature must be Signature instance, Uint8Array or hex string");
|
|
11233
11233
|
return !1;
|
|
11234
11234
|
}
|
|
11235
|
-
if (
|
|
11235
|
+
if (D && j.hasHighS())
|
|
11236
11236
|
return !1;
|
|
11237
11237
|
K && (T = t.hash(T));
|
|
11238
11238
|
const { r: W, s: oe } = j, Se = k(T), ie = c(oe), ut = i(Se * ie), le = i(W * ie), ye = (ge = l.BASE.multiplyAndAddUnsafe(ae, ut, le)) == null ? void 0 : ge.toAffine();
|
|
@@ -11302,7 +11302,7 @@ const sa = tb(vl, void 0, void 0, { sqrt: hb }), Ne = pb({
|
|
|
11302
11302
|
return { k1neg: u, k1: l, k2neg: p, k2: d };
|
|
11303
11303
|
}
|
|
11304
11304
|
}
|
|
11305
|
-
},
|
|
11305
|
+
}, Dn);
|
|
11306
11306
|
BigInt(0);
|
|
11307
11307
|
Ne.ProjectivePoint;
|
|
11308
11308
|
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
@@ -11435,18 +11435,18 @@ function gb(e, t) {
|
|
|
11435
11435
|
}
|
|
11436
11436
|
const xb = (e) => /* @__PURE__ */ kl(/* @__PURE__ */ yb(58), /* @__PURE__ */ mb(e), /* @__PURE__ */ bb("")), wb = /* @__PURE__ */ xb("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"), Eb = (e) => /* @__PURE__ */ kl(/* @__PURE__ */ gb(4, (t) => e(e(t))), wb);
|
|
11437
11437
|
/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
|
|
11438
|
-
const lr = Ne.ProjectivePoint, vs = Eb(
|
|
11438
|
+
const lr = Ne.ProjectivePoint, vs = Eb(Dn);
|
|
11439
11439
|
function ei(e) {
|
|
11440
11440
|
return BigInt(`0x${Uu(e)}`);
|
|
11441
11441
|
}
|
|
11442
11442
|
function vb(e) {
|
|
11443
11443
|
return Pu(e.toString(16).padStart(64, "0"));
|
|
11444
11444
|
}
|
|
11445
|
-
const kb = Ci("Bitcoin seed"), ks = { private: 76066276, public: 76067358 }, Cs = 2147483648, Cb = (e) => xh(
|
|
11445
|
+
const kb = Ci("Bitcoin seed"), ks = { private: 76066276, public: 76067358 }, Cs = 2147483648, Cb = (e) => xh(Dn(e)), Bb = (e) => Ft(e).getUint32(0, !1), ur = (e) => {
|
|
11446
11446
|
if (!Number.isSafeInteger(e) || e < 0 || e > 2 ** 32 - 1)
|
|
11447
11447
|
throw new Error(`Invalid number=${e}. Should be from 0 to 2 ** 32 - 1`);
|
|
11448
11448
|
const t = new Uint8Array(4);
|
|
11449
|
-
return
|
|
11449
|
+
return Ft(t).setUint32(0, e, !1), t;
|
|
11450
11450
|
};
|
|
11451
11451
|
class ht {
|
|
11452
11452
|
get fingerprint() {
|
|
@@ -11488,7 +11488,7 @@ class ht {
|
|
|
11488
11488
|
});
|
|
11489
11489
|
}
|
|
11490
11490
|
static fromExtendedKey(t, n = ks) {
|
|
11491
|
-
const r = vs.decode(t), s =
|
|
11491
|
+
const r = vs.decode(t), s = Ft(r), a = s.getUint32(0, !1), o = {
|
|
11492
11492
|
versions: n,
|
|
11493
11493
|
depth: r[4],
|
|
11494
11494
|
parentFingerprint: s.getUint32(5, !1),
|
|
@@ -11700,7 +11700,7 @@ class Al extends Bl {
|
|
|
11700
11700
|
}
|
|
11701
11701
|
const Tl = (e, t, n) => new Al(e, t).update(n).digest();
|
|
11702
11702
|
Tl.create = (e, t) => new Al(e, t);
|
|
11703
|
-
function
|
|
11703
|
+
function Fb(e, t, n, r) {
|
|
11704
11704
|
Cl(e);
|
|
11705
11705
|
const s = Ub({ dkLen: 32, asyncTick: 10 }, r), { c: a, dkLen: o, asyncTick: i } = s;
|
|
11706
11706
|
if (hn(a), hn(o), hn(i), a < 1)
|
|
@@ -11708,11 +11708,11 @@ function $b(e, t, n, r) {
|
|
|
11708
11708
|
const c = _n(t), l = _n(n), d = new Uint8Array(o), u = Tl.create(e, c), p = u._cloneInto().update(l);
|
|
11709
11709
|
return { c: a, dkLen: o, asyncTick: i, DK: d, PRF: u, PRFSalt: p };
|
|
11710
11710
|
}
|
|
11711
|
-
function
|
|
11711
|
+
function $b(e, t, n, r, s) {
|
|
11712
11712
|
return e.destroy(), t.destroy(), r && r.destroy(), s.fill(0), n;
|
|
11713
11713
|
}
|
|
11714
11714
|
function _b(e, t, n, r) {
|
|
11715
|
-
const { c: s, dkLen: a, DK: o, PRF: i, PRFSalt: c } =
|
|
11715
|
+
const { c: s, dkLen: a, DK: o, PRF: i, PRFSalt: c } = Fb(e, t, n, r);
|
|
11716
11716
|
let l;
|
|
11717
11717
|
const d = new Uint8Array(4), u = Lr(d), p = new Uint8Array(i.outputLen);
|
|
11718
11718
|
for (let g = 1, b = 0; b < a; g++, b += i.outputLen) {
|
|
@@ -11724,7 +11724,7 @@ function _b(e, t, n, r) {
|
|
|
11724
11724
|
f[y] ^= p[y];
|
|
11725
11725
|
}
|
|
11726
11726
|
}
|
|
11727
|
-
return
|
|
11727
|
+
return $b(i, c, o, l, p);
|
|
11728
11728
|
}
|
|
11729
11729
|
function Nb(e, t, n, r) {
|
|
11730
11730
|
if (typeof e.setBigUint64 == "function")
|
|
@@ -11794,7 +11794,7 @@ function Mb(e, t = !1) {
|
|
|
11794
11794
|
}
|
|
11795
11795
|
return [n, r];
|
|
11796
11796
|
}
|
|
11797
|
-
const Lb = (e, t) => BigInt(e >>> 0) << oa | BigInt(t >>> 0), zb = (e, t, n) => e >>> n, Hb = (e, t, n) => e << 32 - n | t >>> n,
|
|
11797
|
+
const Lb = (e, t) => BigInt(e >>> 0) << oa | BigInt(t >>> 0), zb = (e, t, n) => e >>> n, Hb = (e, t, n) => e << 32 - n | t >>> n, Db = (e, t, n) => e >>> n | t << 32 - n, Rb = (e, t, n) => e << 32 - n | t >>> n, qb = (e, t, n) => e << 64 - n | t >>> n - 32, Gb = (e, t, n) => e >>> n - 32 | t << 64 - n, jb = (e, t) => t, Kb = (e, t) => e, Vb = (e, t, n) => e << n | t >>> 32 - n, Zb = (e, t, n) => t << n | e >>> 32 - n, Wb = (e, t, n) => t << n - 32 | e >>> 64 - n, Xb = (e, t, n) => e << n - 32 | t >>> 64 - n;
|
|
11798
11798
|
function Yb(e, t, n, r) {
|
|
11799
11799
|
const s = (t >>> 0) + (r >>> 0);
|
|
11800
11800
|
return { h: e + n + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
@@ -11805,8 +11805,8 @@ const Jb = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Qb = (e, t, n, r) =>
|
|
|
11805
11805
|
toBig: Lb,
|
|
11806
11806
|
shrSH: zb,
|
|
11807
11807
|
shrSL: Hb,
|
|
11808
|
-
rotrSH:
|
|
11809
|
-
rotrSL:
|
|
11808
|
+
rotrSH: Db,
|
|
11809
|
+
rotrSL: Rb,
|
|
11810
11810
|
rotrBH: qb,
|
|
11811
11811
|
rotrBL: Gb,
|
|
11812
11812
|
rotr32H: jb,
|
|
@@ -11921,14 +11921,14 @@ class o1 extends Ob {
|
|
|
11921
11921
|
for (let x = 0; x < 16; x++, n += 4)
|
|
11922
11922
|
nt[x] = t.getUint32(n), rt[x] = t.getUint32(n += 4);
|
|
11923
11923
|
for (let x = 16; x < 80; x++) {
|
|
11924
|
-
const C = nt[x - 15] | 0, E = rt[x - 15] | 0, v = q.rotrSH(C, E, 1) ^ q.rotrSH(C, E, 8) ^ q.shrSH(C, E, 7), k = q.rotrSL(C, E, 1) ^ q.rotrSL(C, E, 8) ^ q.shrSL(C, E, 7), B = nt[x - 2] | 0, S = rt[x - 2] | 0,
|
|
11924
|
+
const C = nt[x - 15] | 0, E = rt[x - 15] | 0, v = q.rotrSH(C, E, 1) ^ q.rotrSH(C, E, 8) ^ q.shrSH(C, E, 7), k = q.rotrSL(C, E, 1) ^ q.rotrSL(C, E, 8) ^ q.shrSL(C, E, 7), B = nt[x - 2] | 0, S = rt[x - 2] | 0, F = q.rotrSH(B, S, 19) ^ q.rotrBH(B, S, 61) ^ q.shrSH(B, S, 6), U = q.rotrSL(B, S, 19) ^ q.rotrBL(B, S, 61) ^ q.shrSL(B, S, 6), z = q.add4L(k, U, rt[x - 7], rt[x - 16]), N = q.add4H(z, v, F, nt[x - 7], nt[x - 16]);
|
|
11925
11925
|
nt[x] = N | 0, rt[x] = z | 0;
|
|
11926
11926
|
}
|
|
11927
11927
|
let { Ah: r, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: d, Eh: u, El: p, Fh: g, Fl: b, Gh: f, Gl: m, Hh: y, Hl: w } = this;
|
|
11928
11928
|
for (let x = 0; x < 80; x++) {
|
|
11929
|
-
const C = q.rotrSH(u, p, 14) ^ q.rotrSH(u, p, 18) ^ q.rotrBH(u, p, 41), E = q.rotrSL(u, p, 14) ^ q.rotrSL(u, p, 18) ^ q.rotrBL(u, p, 41), v = u & g ^ ~u & f, k = p & b ^ ~p & m, B = q.add5L(w, E, k, a1[x], rt[x]), S = q.add5H(B, y, C, v, s1[x], nt[x]),
|
|
11930
|
-
y = f | 0, w = m | 0, f = g | 0, m = b | 0, g = u | 0, b = p | 0, { h: u, l: p } = q.add(l | 0, d | 0, S | 0,
|
|
11931
|
-
const A = q.add3L(
|
|
11929
|
+
const C = q.rotrSH(u, p, 14) ^ q.rotrSH(u, p, 18) ^ q.rotrBH(u, p, 41), E = q.rotrSL(u, p, 14) ^ q.rotrSL(u, p, 18) ^ q.rotrBL(u, p, 41), v = u & g ^ ~u & f, k = p & b ^ ~p & m, B = q.add5L(w, E, k, a1[x], rt[x]), S = q.add5H(B, y, C, v, s1[x], nt[x]), F = B | 0, U = q.rotrSH(r, s, 28) ^ q.rotrBH(r, s, 34) ^ q.rotrBH(r, s, 39), z = q.rotrSL(r, s, 28) ^ q.rotrBL(r, s, 34) ^ q.rotrBL(r, s, 39), N = r & a ^ r & i ^ a & i, G = s & o ^ s & c ^ o & c;
|
|
11930
|
+
y = f | 0, w = m | 0, f = g | 0, m = b | 0, g = u | 0, b = p | 0, { h: u, l: p } = q.add(l | 0, d | 0, S | 0, F | 0), l = i | 0, d = c | 0, i = a | 0, c = o | 0, a = r | 0, o = s | 0;
|
|
11931
|
+
const A = q.add3L(F, z, G);
|
|
11932
11932
|
r = q.add3H(A, S, U, N), s = A | 0;
|
|
11933
11933
|
}
|
|
11934
11934
|
({ h: r, l: s } = q.add(this.Ah | 0, this.Al | 0, r | 0, s | 0)), { h: a, l: o } = q.add(this.Bh | 0, this.Bl | 0, a | 0, o | 0), { h: i, l: c } = q.add(this.Ch | 0, this.Cl | 0, i | 0, c | 0), { h: l, l: d } = q.add(this.Dh | 0, this.Dl | 0, l | 0, d | 0), { h: u, l: p } = q.add(this.Eh | 0, this.El | 0, u | 0, p | 0), { h: g, l: b } = q.add(this.Fh | 0, this.Fl | 0, g | 0, b | 0), { h: f, l: m } = q.add(this.Gh | 0, this.Gl | 0, f | 0, m | 0), { h: y, l: w } = q.add(this.Hh | 0, this.Hl | 0, y | 0, w | 0), this.set(r, s, a, o, i, c, l, d, u, p, g, b, f, m, y, w);
|
|
@@ -12003,7 +12003,7 @@ async function p1(e) {
|
|
|
12003
12003
|
} : o;
|
|
12004
12004
|
}
|
|
12005
12005
|
async function f1({ message: e, privateKey: t }) {
|
|
12006
|
-
return await Qn({ hash:
|
|
12006
|
+
return await Qn({ hash: Da(e), privateKey: t, to: "hex" });
|
|
12007
12007
|
}
|
|
12008
12008
|
async function h1(e) {
|
|
12009
12009
|
const { privateKey: t, transaction: n, serializer: r = qa } = e, s = n.type === "eip4844" ? {
|
|
@@ -12018,13 +12018,13 @@ async function h1(e) {
|
|
|
12018
12018
|
async function m1(e) {
|
|
12019
12019
|
const { privateKey: t, ...n } = e;
|
|
12020
12020
|
return await Qn({
|
|
12021
|
-
hash:
|
|
12021
|
+
hash: Dc(n),
|
|
12022
12022
|
privateKey: t,
|
|
12023
12023
|
to: "hex"
|
|
12024
12024
|
});
|
|
12025
12025
|
}
|
|
12026
12026
|
function Ul(e, t = {}) {
|
|
12027
|
-
const { nonceManager: n } = t, r =
|
|
12027
|
+
const { nonceManager: n } = t, r = $(Xn.getPublicKey(e.slice(2), !1)), s = $i(r);
|
|
12028
12028
|
return {
|
|
12029
12029
|
...d1({
|
|
12030
12030
|
address: s,
|
|
@@ -12052,7 +12052,7 @@ function Ul(e, t = {}) {
|
|
|
12052
12052
|
function b1(e, { accountIndex: t = 0, addressIndex: n = 0, changeIndex: r = 0, path: s, ...a } = {}) {
|
|
12053
12053
|
const o = e.derive(s || `m/44'/60'/${t}'/${r}/${n}`);
|
|
12054
12054
|
return {
|
|
12055
|
-
...Ul(
|
|
12055
|
+
...Ul($(o.privateKey), a),
|
|
12056
12056
|
getHdKey: () => o,
|
|
12057
12057
|
source: "hd"
|
|
12058
12058
|
};
|
|
@@ -12127,7 +12127,7 @@ const no = 50000n, ti = gd * 32n, Pl = {
|
|
|
12127
12127
|
format(e) {
|
|
12128
12128
|
return e.gasPerPubdata || e.paymaster && e.paymasterInput || e.factoryDeps || e.customSignature ? {
|
|
12129
12129
|
eip712Meta: {
|
|
12130
|
-
...e.gasPerPubdata ? { gasPerPubdata:
|
|
12130
|
+
...e.gasPerPubdata ? { gasPerPubdata: $(e.gasPerPubdata) } : { gasPerPubdata: $(no) },
|
|
12131
12131
|
...e.paymaster && e.paymasterInput ? {
|
|
12132
12132
|
paymasterParams: {
|
|
12133
12133
|
paymaster: e.paymaster,
|
|
@@ -12158,12 +12158,12 @@ class g1 extends I {
|
|
|
12158
12158
|
`), { name: "InvalidEip712TransactionError" });
|
|
12159
12159
|
}
|
|
12160
12160
|
}
|
|
12161
|
-
function
|
|
12161
|
+
function Fl(e) {
|
|
12162
12162
|
return !!(e.type === "eip712" || "customSignature" in e && e.customSignature || "paymaster" in e && e.paymaster || "paymasterInput" in e && e.paymasterInput || "gasPerPubdata" in e && typeof e.gasPerPubdata == "bigint" || "factoryDeps" in e && e.factoryDeps);
|
|
12163
12163
|
}
|
|
12164
|
-
function
|
|
12164
|
+
function $l(e) {
|
|
12165
12165
|
const { chainId: t, to: n, from: r, paymaster: s, paymasterInput: a } = e;
|
|
12166
|
-
if (
|
|
12166
|
+
if (!Fl(e))
|
|
12167
12167
|
throw new g1();
|
|
12168
12168
|
if (!t || t <= 0)
|
|
12169
12169
|
throw new Vt({ chainId: t });
|
|
@@ -12179,28 +12179,28 @@ function Fl(e) {
|
|
|
12179
12179
|
throw new I("`paymaster` must be provided when `paymasterInput` is defined");
|
|
12180
12180
|
}
|
|
12181
12181
|
function x1(e, t) {
|
|
12182
|
-
return
|
|
12182
|
+
return Fl(e) ? E1(e) : qa(e, t);
|
|
12183
12183
|
}
|
|
12184
12184
|
const w1 = {
|
|
12185
12185
|
transaction: x1
|
|
12186
12186
|
};
|
|
12187
12187
|
function E1(e) {
|
|
12188
12188
|
const { chainId: t, gas: n, nonce: r, to: s, from: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, customSignature: l, factoryDeps: d, paymaster: u, paymasterInput: p, gasPerPubdata: g, data: b } = e;
|
|
12189
|
-
|
|
12189
|
+
$l(e);
|
|
12190
12190
|
const f = [
|
|
12191
|
-
r ?
|
|
12192
|
-
c ?
|
|
12193
|
-
i ?
|
|
12194
|
-
n ?
|
|
12191
|
+
r ? $(r) : "0x",
|
|
12192
|
+
c ? $(c) : "0x",
|
|
12193
|
+
i ? $(i) : "0x",
|
|
12194
|
+
n ? $(n) : "0x",
|
|
12195
12195
|
s ?? "0x",
|
|
12196
|
-
o ?
|
|
12196
|
+
o ? $(o) : "0x",
|
|
12197
12197
|
b ?? "0x0",
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12198
|
+
$(t),
|
|
12199
|
+
$(""),
|
|
12200
|
+
$(""),
|
|
12201
|
+
$(t),
|
|
12202
12202
|
a ?? "0x",
|
|
12203
|
-
|
|
12203
|
+
$(g || no),
|
|
12204
12204
|
d ?? [],
|
|
12205
12205
|
l ?? "0x",
|
|
12206
12206
|
// EIP712 signature
|
|
@@ -12227,7 +12227,7 @@ class C1 extends I {
|
|
|
12227
12227
|
}
|
|
12228
12228
|
}
|
|
12229
12229
|
function B1(e) {
|
|
12230
|
-
const t =
|
|
12230
|
+
const t = $e(e);
|
|
12231
12231
|
if (t.length % 32 !== 0)
|
|
12232
12232
|
throw new C1({
|
|
12233
12233
|
givenLength: t.length
|
|
@@ -12237,16 +12237,16 @@ function B1(e) {
|
|
|
12237
12237
|
givenLength: t.length,
|
|
12238
12238
|
maxBytecodeSize: ti
|
|
12239
12239
|
});
|
|
12240
|
-
const n = Qi(t), r =
|
|
12240
|
+
const n = Qi(t), r = $e(n), s = t.length / 32;
|
|
12241
12241
|
if (s % 2 === 0)
|
|
12242
12242
|
throw new k1({
|
|
12243
12243
|
givenLengthInWords: s
|
|
12244
12244
|
});
|
|
12245
|
-
const a =
|
|
12245
|
+
const a = $e(s), o = Bt(a, { size: 2 }), i = new Uint8Array([1, 0]);
|
|
12246
12246
|
return r.set(i, 0), r.set(o, 2), r;
|
|
12247
12247
|
}
|
|
12248
12248
|
const A1 = (e) => {
|
|
12249
|
-
|
|
12249
|
+
$l(e);
|
|
12250
12250
|
const t = T1(e);
|
|
12251
12251
|
return {
|
|
12252
12252
|
domain: {
|
|
@@ -12289,7 +12289,7 @@ function T1(e) {
|
|
|
12289
12289
|
nonce: n ? BigInt(n) : 0n,
|
|
12290
12290
|
value: a ?? 0n,
|
|
12291
12291
|
data: p || "0x0",
|
|
12292
|
-
factoryDeps: (c == null ? void 0 : c.map((g) =>
|
|
12292
|
+
factoryDeps: (c == null ? void 0 : c.map((g) => $(B1(g)))) ?? [],
|
|
12293
12293
|
paymasterInput: d || "0x"
|
|
12294
12294
|
};
|
|
12295
12295
|
}
|
|
@@ -12375,7 +12375,7 @@ const Tt = {
|
|
|
12375
12375
|
}
|
|
12376
12376
|
},
|
|
12377
12377
|
testnet: !0
|
|
12378
|
-
}),
|
|
12378
|
+
}), F1 = {
|
|
12379
12379
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
12380
12380
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
12381
12381
|
l2CrossDomainMessenger: {
|
|
@@ -12421,7 +12421,7 @@ const Tt = {
|
|
|
12421
12421
|
function _l(e, t) {
|
|
12422
12422
|
return N1(e) ? _1(e) : qa(e, t);
|
|
12423
12423
|
}
|
|
12424
|
-
const
|
|
12424
|
+
const $1 = {
|
|
12425
12425
|
transaction: _l
|
|
12426
12426
|
};
|
|
12427
12427
|
function _1(e) {
|
|
@@ -12430,9 +12430,9 @@ function _1(e) {
|
|
|
12430
12430
|
t,
|
|
12431
12431
|
r,
|
|
12432
12432
|
i ?? "0x",
|
|
12433
|
-
o ?
|
|
12434
|
-
c ?
|
|
12435
|
-
s ?
|
|
12433
|
+
o ? $(o) : "0x",
|
|
12434
|
+
c ? $(c) : "0x",
|
|
12435
|
+
s ? $(s) : "0x",
|
|
12436
12436
|
a ? "0x1" : "0x",
|
|
12437
12437
|
n ?? "0x"
|
|
12438
12438
|
];
|
|
@@ -12452,9 +12452,9 @@ function O1(e) {
|
|
|
12452
12452
|
throw new ee({ address: n });
|
|
12453
12453
|
}
|
|
12454
12454
|
const M = {
|
|
12455
|
-
contracts:
|
|
12455
|
+
contracts: F1,
|
|
12456
12456
|
formatters: ro,
|
|
12457
|
-
serializers:
|
|
12457
|
+
serializers: $1
|
|
12458
12458
|
}, pr = 1, M1 = /* @__PURE__ */ h({
|
|
12459
12459
|
...M,
|
|
12460
12460
|
id: 888888888,
|
|
@@ -12568,7 +12568,7 @@ const M = {
|
|
|
12568
12568
|
}
|
|
12569
12569
|
},
|
|
12570
12570
|
testnet: !0
|
|
12571
|
-
}),
|
|
12571
|
+
}), D1 = /* @__PURE__ */ h({
|
|
12572
12572
|
id: 42161,
|
|
12573
12573
|
name: "Arbitrum One",
|
|
12574
12574
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -12590,7 +12590,7 @@ const M = {
|
|
|
12590
12590
|
blockCreated: 7654707
|
|
12591
12591
|
}
|
|
12592
12592
|
}
|
|
12593
|
-
}),
|
|
12593
|
+
}), R1 = /* @__PURE__ */ h({
|
|
12594
12594
|
id: 421613,
|
|
12595
12595
|
name: "Arbitrum Goerli",
|
|
12596
12596
|
nativeCurrency: {
|
|
@@ -13574,7 +13574,7 @@ const M = {
|
|
|
13574
13574
|
}
|
|
13575
13575
|
},
|
|
13576
13576
|
testnet: !0
|
|
13577
|
-
}),
|
|
13577
|
+
}), Fy = /* @__PURE__ */ h({
|
|
13578
13578
|
id: 6001,
|
|
13579
13579
|
name: "BounceBit Mainnet",
|
|
13580
13580
|
nativeCurrency: { name: "BounceBit", symbol: "BB", decimals: 18 },
|
|
@@ -13588,7 +13588,7 @@ const M = {
|
|
|
13588
13588
|
}
|
|
13589
13589
|
},
|
|
13590
13590
|
testnet: !1
|
|
13591
|
-
}),
|
|
13591
|
+
}), $y = /* @__PURE__ */ h({
|
|
13592
13592
|
id: 6e3,
|
|
13593
13593
|
name: "BounceBit Testnet",
|
|
13594
13594
|
nativeCurrency: { name: "BounceBit", symbol: "BB", decimals: 18 },
|
|
@@ -13752,7 +13752,7 @@ const M = {
|
|
|
13752
13752
|
}
|
|
13753
13753
|
},
|
|
13754
13754
|
testnet: !0
|
|
13755
|
-
}),
|
|
13755
|
+
}), Dy = /* @__PURE__ */ h({
|
|
13756
13756
|
id: 4999,
|
|
13757
13757
|
name: "BlackFort Exchange Network",
|
|
13758
13758
|
nativeCurrency: { name: "BlackFort Token", symbol: "BXN", decimals: 18 },
|
|
@@ -13768,7 +13768,7 @@ const M = {
|
|
|
13768
13768
|
apiUrl: "https://explorer.blackfort.network/api"
|
|
13769
13769
|
}
|
|
13770
13770
|
}
|
|
13771
|
-
}),
|
|
13771
|
+
}), Ry = /* @__PURE__ */ h({
|
|
13772
13772
|
id: 4777,
|
|
13773
13773
|
name: "BlackFort Exchange Network Testnet",
|
|
13774
13774
|
nativeCurrency: {
|
|
@@ -13919,13 +13919,13 @@ const Yy = {
|
|
|
13919
13919
|
function Jy(e, t) {
|
|
13920
13920
|
eg(e);
|
|
13921
13921
|
const { chainId: n, gas: r, nonce: s, to: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: l, feeCurrency: d, data: u } = e, p = [
|
|
13922
|
-
|
|
13923
|
-
s ?
|
|
13924
|
-
c ?
|
|
13925
|
-
i ?
|
|
13926
|
-
r ?
|
|
13922
|
+
$(n),
|
|
13923
|
+
s ? $(s) : "0x",
|
|
13924
|
+
c ? $(c) : "0x",
|
|
13925
|
+
i ? $(i) : "0x",
|
|
13926
|
+
r ? $(r) : "0x",
|
|
13927
13927
|
a ?? "0x",
|
|
13928
|
-
o ?
|
|
13928
|
+
o ? $(o) : "0x",
|
|
13929
13929
|
u ?? "0x",
|
|
13930
13930
|
Vn(l),
|
|
13931
13931
|
d,
|
|
@@ -14640,7 +14640,7 @@ const Ml = {
|
|
|
14640
14640
|
blockCreated: 18117872
|
|
14641
14641
|
}
|
|
14642
14642
|
}
|
|
14643
|
-
}),
|
|
14643
|
+
}), Fg = /* @__PURE__ */ h({
|
|
14644
14644
|
id: 2022,
|
|
14645
14645
|
name: "Beresheet BereEVM Testnet",
|
|
14646
14646
|
nativeCurrency: {
|
|
@@ -14658,7 +14658,7 @@ const Ml = {
|
|
|
14658
14658
|
apiUrl: "https://testnet.edgscan.live/api"
|
|
14659
14659
|
}
|
|
14660
14660
|
}
|
|
14661
|
-
}),
|
|
14661
|
+
}), $g = /* @__PURE__ */ h({
|
|
14662
14662
|
...M,
|
|
14663
14663
|
id: 1338,
|
|
14664
14664
|
name: "Elysium Testnet",
|
|
@@ -14821,7 +14821,7 @@ const Ml = {
|
|
|
14821
14821
|
url: "https://evm.evmos.dev/"
|
|
14822
14822
|
}
|
|
14823
14823
|
}
|
|
14824
|
-
}),
|
|
14824
|
+
}), Dg = /* @__PURE__ */ h({
|
|
14825
14825
|
id: 1994,
|
|
14826
14826
|
name: "Ekta",
|
|
14827
14827
|
nativeCurrency: {
|
|
@@ -14839,7 +14839,7 @@ const Ml = {
|
|
|
14839
14839
|
apiUrl: "https://ektascan.io/api"
|
|
14840
14840
|
}
|
|
14841
14841
|
}
|
|
14842
|
-
}),
|
|
14842
|
+
}), Rg = /* @__PURE__ */ h({
|
|
14843
14843
|
id: 1004,
|
|
14844
14844
|
name: "Ekta Testnet",
|
|
14845
14845
|
nativeCurrency: {
|
|
@@ -15802,7 +15802,7 @@ const Ml = {
|
|
|
15802
15802
|
apiUrl: "https://explorer.haqq.network/api"
|
|
15803
15803
|
}
|
|
15804
15804
|
}
|
|
15805
|
-
}),
|
|
15805
|
+
}), F2 = /* @__PURE__ */ h({
|
|
15806
15806
|
id: 54211,
|
|
15807
15807
|
name: "HAQQ Testedge 2",
|
|
15808
15808
|
nativeCurrency: {
|
|
@@ -15822,7 +15822,7 @@ const Ml = {
|
|
|
15822
15822
|
apiUrl: "https://explorer.testedge2.haqq.network/api"
|
|
15823
15823
|
}
|
|
15824
15824
|
}
|
|
15825
|
-
}),
|
|
15825
|
+
}), $2 = /* @__PURE__ */ h({
|
|
15826
15826
|
id: 295,
|
|
15827
15827
|
name: "Hedera Mainnet",
|
|
15828
15828
|
network: "hedera-mainnet",
|
|
@@ -15996,7 +15996,7 @@ const Ml = {
|
|
|
15996
15996
|
}
|
|
15997
15997
|
},
|
|
15998
15998
|
testnet: !0
|
|
15999
|
-
}),
|
|
15999
|
+
}), D2 = /* @__PURE__ */ h({
|
|
16000
16000
|
id: 2525,
|
|
16001
16001
|
name: "inEVM Mainnet",
|
|
16002
16002
|
nativeCurrency: {
|
|
@@ -16020,7 +16020,7 @@ const Ml = {
|
|
|
16020
16020
|
blockCreated: 118606
|
|
16021
16021
|
}
|
|
16022
16022
|
}
|
|
16023
|
-
}),
|
|
16023
|
+
}), R2 = /* @__PURE__ */ h({
|
|
16024
16024
|
id: 8822,
|
|
16025
16025
|
name: "IOTA EVM",
|
|
16026
16026
|
network: "iotaevm",
|
|
@@ -16417,7 +16417,7 @@ async function ox(e, t) {
|
|
|
16417
16417
|
throw new Kt();
|
|
16418
16418
|
const r = me(n);
|
|
16419
16419
|
try {
|
|
16420
|
-
const { accessList: i, blockNumber: c, blockTag: l, data: d, gas: u, gasPrice: p, maxFeePerGas: g, maxPriorityFeePerGas: b, nonce: f, to: m, value: y, ...w } = (r == null ? void 0 : r.type) === "local" ? await
|
|
16420
|
+
const { accessList: i, blockNumber: c, blockTag: l, data: d, gas: u, gasPrice: p, maxFeePerGas: g, maxPriorityFeePerGas: b, nonce: f, to: m, value: y, ...w } = (r == null ? void 0 : r.type) === "local" ? await Rn(e, t) : t, C = (c ? _(c) : void 0) || l;
|
|
16421
16421
|
Wt(t);
|
|
16422
16422
|
const E = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, k = (E || At)({
|
|
16423
16423
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
@@ -16432,14 +16432,14 @@ async function ox(e, t) {
|
|
|
16432
16432
|
nonce: f,
|
|
16433
16433
|
to: m,
|
|
16434
16434
|
value: y
|
|
16435
|
-
}), { baseFeePerGas: B, gasLimit: S, priorityFeePerGas:
|
|
16435
|
+
}), { baseFeePerGas: B, gasLimit: S, priorityFeePerGas: F } = await e.request({
|
|
16436
16436
|
method: "linea_estimateGas",
|
|
16437
16437
|
params: C ? [k, C] : [k]
|
|
16438
16438
|
});
|
|
16439
16439
|
return {
|
|
16440
16440
|
baseFeePerGas: BigInt(B),
|
|
16441
16441
|
gasLimit: BigInt(S),
|
|
16442
|
-
priorityFeePerGas: BigInt(
|
|
16442
|
+
priorityFeePerGas: BigInt(F)
|
|
16443
16443
|
};
|
|
16444
16444
|
} catch (i) {
|
|
16445
16445
|
throw Sc(i, {
|
|
@@ -17112,7 +17112,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
17112
17112
|
url: "https://scan-warringstakes.meter.io"
|
|
17113
17113
|
}
|
|
17114
17114
|
}
|
|
17115
|
-
}),
|
|
17115
|
+
}), Fx = /* @__PURE__ */ h({
|
|
17116
17116
|
id: 1088,
|
|
17117
17117
|
name: "Metis",
|
|
17118
17118
|
nativeCurrency: {
|
|
@@ -17136,7 +17136,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
17136
17136
|
blockCreated: 2338552
|
|
17137
17137
|
}
|
|
17138
17138
|
}
|
|
17139
|
-
}),
|
|
17139
|
+
}), $x = /* @__PURE__ */ h({
|
|
17140
17140
|
id: 599,
|
|
17141
17141
|
name: "Metis Goerli",
|
|
17142
17142
|
nativeCurrency: {
|
|
@@ -17352,7 +17352,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
17352
17352
|
}
|
|
17353
17353
|
},
|
|
17354
17354
|
testnet: !0
|
|
17355
|
-
}),
|
|
17355
|
+
}), Dx = /* @__PURE__ */ h({
|
|
17356
17356
|
id: 1284,
|
|
17357
17357
|
name: "Moonbeam",
|
|
17358
17358
|
nativeCurrency: {
|
|
@@ -17380,7 +17380,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
17380
17380
|
}
|
|
17381
17381
|
},
|
|
17382
17382
|
testnet: !1
|
|
17383
|
-
}),
|
|
17383
|
+
}), Rx = /* @__PURE__ */ h({
|
|
17384
17384
|
id: 1281,
|
|
17385
17385
|
name: "Moonbeam Development Node",
|
|
17386
17386
|
nativeCurrency: {
|
|
@@ -18419,7 +18419,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
18419
18419
|
}
|
|
18420
18420
|
},
|
|
18421
18421
|
testnet: !0
|
|
18422
|
-
}), Sr = 1,
|
|
18422
|
+
}), Sr = 1, Fw = h({
|
|
18423
18423
|
...M,
|
|
18424
18424
|
name: "Redstone",
|
|
18425
18425
|
id: 690,
|
|
@@ -18461,7 +18461,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
18461
18461
|
}
|
|
18462
18462
|
}
|
|
18463
18463
|
}
|
|
18464
|
-
}),
|
|
18464
|
+
}), $w = /* @__PURE__ */ h({
|
|
18465
18465
|
id: 1729,
|
|
18466
18466
|
name: "Reya Network",
|
|
18467
18467
|
nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" },
|
|
@@ -18649,7 +18649,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
18649
18649
|
}
|
|
18650
18650
|
},
|
|
18651
18651
|
testnet: !0
|
|
18652
|
-
}), Ir = 1,
|
|
18652
|
+
}), Ir = 1, Dw = /* @__PURE__ */ h({
|
|
18653
18653
|
...M,
|
|
18654
18654
|
id: 12553,
|
|
18655
18655
|
name: "RSS3 VSL Mainnet",
|
|
@@ -18690,7 +18690,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
18690
18690
|
}
|
|
18691
18691
|
},
|
|
18692
18692
|
sourceId: Ir
|
|
18693
|
-
}), Ur = 11155111,
|
|
18693
|
+
}), Ur = 11155111, Rw = /* @__PURE__ */ h({
|
|
18694
18694
|
...M,
|
|
18695
18695
|
id: 2331,
|
|
18696
18696
|
name: "RSS3 VSL Sepolia Testnet",
|
|
@@ -19689,7 +19689,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
19689
19689
|
url: "https://scope.silicon.network"
|
|
19690
19690
|
}
|
|
19691
19691
|
}
|
|
19692
|
-
}),
|
|
19692
|
+
}), F6 = /* @__PURE__ */ h({
|
|
19693
19693
|
id: 1722641160,
|
|
19694
19694
|
name: "Silicon Sepolia zkEVM",
|
|
19695
19695
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -19708,7 +19708,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
19708
19708
|
}
|
|
19709
19709
|
},
|
|
19710
19710
|
testnet: !0
|
|
19711
|
-
}),
|
|
19711
|
+
}), $6 = /* @__PURE__ */ h({
|
|
19712
19712
|
id: 105105,
|
|
19713
19713
|
name: "Stratis Mainnet",
|
|
19714
19714
|
network: "stratis",
|
|
@@ -19854,7 +19854,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
19854
19854
|
url: "https://explorer.mainnet.taraxa.io"
|
|
19855
19855
|
}
|
|
19856
19856
|
}
|
|
19857
|
-
}),
|
|
19857
|
+
}), D6 = /* @__PURE__ */ h({
|
|
19858
19858
|
id: 167e3,
|
|
19859
19859
|
name: "Taiko Mainnet",
|
|
19860
19860
|
nativeCurrency: {
|
|
@@ -19880,7 +19880,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
19880
19880
|
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D"
|
|
19881
19881
|
}
|
|
19882
19882
|
}
|
|
19883
|
-
}),
|
|
19883
|
+
}), R6 = /* @__PURE__ */ h({
|
|
19884
19884
|
id: 167009,
|
|
19885
19885
|
name: "Taiko Hekla L2",
|
|
19886
19886
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -20733,7 +20733,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
20733
20733
|
url: "https://explorer.zklink.io"
|
|
20734
20734
|
}
|
|
20735
20735
|
}
|
|
20736
|
-
}),
|
|
20736
|
+
}), F3 = /* @__PURE__ */ h({
|
|
20737
20737
|
id: 810181,
|
|
20738
20738
|
name: "zkLink Nova Sepolia Testnet",
|
|
20739
20739
|
nativeCurrency: {
|
|
@@ -20837,7 +20837,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
20837
20837
|
}
|
|
20838
20838
|
},
|
|
20839
20839
|
testnet: !0
|
|
20840
|
-
}),
|
|
20840
|
+
}), Fr = 1, $3 = /* @__PURE__ */ h({
|
|
20841
20841
|
...M,
|
|
20842
20842
|
id: 7777777,
|
|
20843
20843
|
name: "Zora",
|
|
@@ -20862,7 +20862,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
20862
20862
|
contracts: {
|
|
20863
20863
|
...M.contracts,
|
|
20864
20864
|
l2OutputOracle: {
|
|
20865
|
-
[
|
|
20865
|
+
[Fr]: {
|
|
20866
20866
|
address: "0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"
|
|
20867
20867
|
}
|
|
20868
20868
|
},
|
|
@@ -20871,18 +20871,18 @@ const ix = /* @__PURE__ */ h({
|
|
|
20871
20871
|
blockCreated: 5882
|
|
20872
20872
|
},
|
|
20873
20873
|
portal: {
|
|
20874
|
-
[
|
|
20874
|
+
[Fr]: {
|
|
20875
20875
|
address: "0x1a0ad011913A150f69f6A19DF447A0CfD9551054"
|
|
20876
20876
|
}
|
|
20877
20877
|
},
|
|
20878
20878
|
l1StandardBridge: {
|
|
20879
|
-
[
|
|
20879
|
+
[Fr]: {
|
|
20880
20880
|
address: "0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"
|
|
20881
20881
|
}
|
|
20882
20882
|
}
|
|
20883
20883
|
},
|
|
20884
|
-
sourceId:
|
|
20885
|
-
}),
|
|
20884
|
+
sourceId: Fr
|
|
20885
|
+
}), $r = 11155111, _3 = /* @__PURE__ */ h({
|
|
20886
20886
|
...M,
|
|
20887
20887
|
id: 999999999,
|
|
20888
20888
|
name: "Zora Sepolia",
|
|
@@ -20908,7 +20908,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
20908
20908
|
contracts: {
|
|
20909
20909
|
...M.contracts,
|
|
20910
20910
|
l2OutputOracle: {
|
|
20911
|
-
[
|
|
20911
|
+
[$r]: {
|
|
20912
20912
|
address: "0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"
|
|
20913
20913
|
}
|
|
20914
20914
|
},
|
|
@@ -20917,17 +20917,17 @@ const ix = /* @__PURE__ */ h({
|
|
|
20917
20917
|
blockCreated: 83160
|
|
20918
20918
|
},
|
|
20919
20919
|
portal: {
|
|
20920
|
-
[
|
|
20920
|
+
[$r]: {
|
|
20921
20921
|
address: "0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"
|
|
20922
20922
|
}
|
|
20923
20923
|
},
|
|
20924
20924
|
l1StandardBridge: {
|
|
20925
|
-
[
|
|
20925
|
+
[$r]: {
|
|
20926
20926
|
address: "0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"
|
|
20927
20927
|
}
|
|
20928
20928
|
}
|
|
20929
20929
|
},
|
|
20930
|
-
sourceId:
|
|
20930
|
+
sourceId: $r,
|
|
20931
20931
|
testnet: !0
|
|
20932
20932
|
}), ci = 5, N3 = /* @__PURE__ */ h({
|
|
20933
20933
|
...M,
|
|
@@ -20996,8 +20996,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
20996
20996
|
ancient8Sepolia: L1,
|
|
20997
20997
|
anvil: z1,
|
|
20998
20998
|
apexTestnet: H1,
|
|
20999
|
-
arbitrum:
|
|
21000
|
-
arbitrumGoerli:
|
|
20999
|
+
arbitrum: D1,
|
|
21000
|
+
arbitrumGoerli: R1,
|
|
21001
21001
|
arbitrumNova: q1,
|
|
21002
21002
|
arbitrumSepolia: Z1,
|
|
21003
21003
|
areonNetwork: W1,
|
|
@@ -21037,8 +21037,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21037
21037
|
boba: Iy,
|
|
21038
21038
|
bobaSepolia: Uy,
|
|
21039
21039
|
botanixTestnet: Py,
|
|
21040
|
-
bounceBit:
|
|
21041
|
-
bounceBitTestnet:
|
|
21040
|
+
bounceBit: Fy,
|
|
21041
|
+
bounceBitTestnet: $y,
|
|
21042
21042
|
bronos: _y,
|
|
21043
21043
|
bronosTestnet: Ny,
|
|
21044
21044
|
bsc: Oy,
|
|
@@ -21046,8 +21046,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21046
21046
|
bscTestnet: My,
|
|
21047
21047
|
btr: zy,
|
|
21048
21048
|
btrTestnet: Hy,
|
|
21049
|
-
bxn:
|
|
21050
|
-
bxnTestnet:
|
|
21049
|
+
bxn: Dy,
|
|
21050
|
+
bxnTestnet: Ry,
|
|
21051
21051
|
cannon: qy,
|
|
21052
21052
|
canto: Gy,
|
|
21053
21053
|
celo: tg,
|
|
@@ -21081,10 +21081,10 @@ const ix = /* @__PURE__ */ h({
|
|
|
21081
21081
|
edgeless: Ig,
|
|
21082
21082
|
edgelessTestnet: Ug,
|
|
21083
21083
|
edgeware: Pg,
|
|
21084
|
-
edgewareTestnet:
|
|
21085
|
-
ekta:
|
|
21086
|
-
ektaTestnet:
|
|
21087
|
-
elysiumTestnet:
|
|
21084
|
+
edgewareTestnet: Fg,
|
|
21085
|
+
ekta: Dg,
|
|
21086
|
+
ektaTestnet: Rg,
|
|
21087
|
+
elysiumTestnet: $g,
|
|
21088
21088
|
eon: _g,
|
|
21089
21089
|
eos: Ng,
|
|
21090
21090
|
eosTestnet: Og,
|
|
@@ -21125,11 +21125,11 @@ const ix = /* @__PURE__ */ h({
|
|
|
21125
21125
|
gravity: A2,
|
|
21126
21126
|
ham: T2,
|
|
21127
21127
|
haqqMainnet: P2,
|
|
21128
|
-
haqqTestedge2:
|
|
21128
|
+
haqqTestedge2: F2,
|
|
21129
21129
|
hardhat: S2,
|
|
21130
21130
|
harmonyOne: I2,
|
|
21131
21131
|
hashkeyTestnet: U2,
|
|
21132
|
-
hedera:
|
|
21132
|
+
hedera: $2,
|
|
21133
21133
|
hederaPreviewnet: N2,
|
|
21134
21134
|
hederaTestnet: _2,
|
|
21135
21135
|
holesky: O2,
|
|
@@ -21137,8 +21137,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21137
21137
|
hychainTestnet: L2,
|
|
21138
21138
|
immutableZkEvm: z2,
|
|
21139
21139
|
immutableZkEvmTestnet: H2,
|
|
21140
|
-
inEVM:
|
|
21141
|
-
iota:
|
|
21140
|
+
inEVM: D2,
|
|
21141
|
+
iota: R2,
|
|
21142
21142
|
iotaTestnet: q2,
|
|
21143
21143
|
iotex: b2,
|
|
21144
21144
|
iotexTestnet: y2,
|
|
@@ -21186,8 +21186,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21186
21186
|
metalL2: Ix,
|
|
21187
21187
|
meter: Ux,
|
|
21188
21188
|
meterTestnet: Px,
|
|
21189
|
-
metis:
|
|
21190
|
-
metisGoerli:
|
|
21189
|
+
metis: Fx,
|
|
21190
|
+
metisGoerli: $x,
|
|
21191
21191
|
mev: _x,
|
|
21192
21192
|
mevTestnet: Nx,
|
|
21193
21193
|
mint: Ox,
|
|
@@ -21195,8 +21195,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21195
21195
|
mode: Lx,
|
|
21196
21196
|
modeTestnet: zx,
|
|
21197
21197
|
moonbaseAlpha: Hx,
|
|
21198
|
-
moonbeam:
|
|
21199
|
-
moonbeamDev:
|
|
21198
|
+
moonbeam: Dx,
|
|
21199
|
+
moonbeamDev: Rx,
|
|
21200
21200
|
moonriver: qx,
|
|
21201
21201
|
morphHolesky: Gx,
|
|
21202
21202
|
morphSepolia: jx,
|
|
@@ -21239,8 +21239,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21239
21239
|
qTestnet: Iw,
|
|
21240
21240
|
real: Uw,
|
|
21241
21241
|
redbellyTestnet: Pw,
|
|
21242
|
-
redstone:
|
|
21243
|
-
reyaNetwork:
|
|
21242
|
+
redstone: Fw,
|
|
21243
|
+
reyaNetwork: $w,
|
|
21244
21244
|
rollux: _w,
|
|
21245
21245
|
rolluxTestnet: Nw,
|
|
21246
21246
|
ronin: Ow,
|
|
@@ -21248,8 +21248,8 @@ const ix = /* @__PURE__ */ h({
|
|
|
21248
21248
|
rootPorcini: Lw,
|
|
21249
21249
|
rootstock: zw,
|
|
21250
21250
|
rootstockTestnet: Hw,
|
|
21251
|
-
rss3:
|
|
21252
|
-
rss3Sepolia:
|
|
21251
|
+
rss3: Dw,
|
|
21252
|
+
rss3Sepolia: Rw,
|
|
21253
21253
|
saigon: qw,
|
|
21254
21254
|
sapphire: Gw,
|
|
21255
21255
|
sapphireTestnet: jw,
|
|
@@ -21269,7 +21269,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
21269
21269
|
shimmer: r6,
|
|
21270
21270
|
shimmerTestnet: s6,
|
|
21271
21271
|
silicon: P6,
|
|
21272
|
-
siliconSepolia:
|
|
21272
|
+
siliconSepolia: F6,
|
|
21273
21273
|
skaleBlockBrawlers: a6,
|
|
21274
21274
|
skaleCalypso: o6,
|
|
21275
21275
|
skaleCalypsoTestnet: i6,
|
|
@@ -21293,15 +21293,15 @@ const ix = /* @__PURE__ */ h({
|
|
|
21293
21293
|
sophonTestnet: B6,
|
|
21294
21294
|
spicy: A6,
|
|
21295
21295
|
storyTestnet: U6,
|
|
21296
|
-
stratis:
|
|
21296
|
+
stratis: $6,
|
|
21297
21297
|
superlumio: _6,
|
|
21298
21298
|
swan: N6,
|
|
21299
21299
|
swanProximaTestnet: O6,
|
|
21300
21300
|
swanSaturnTestnet: M6,
|
|
21301
21301
|
syscoin: L6,
|
|
21302
21302
|
syscoinTestnet: z6,
|
|
21303
|
-
taiko:
|
|
21304
|
-
taikoHekla:
|
|
21303
|
+
taiko: D6,
|
|
21304
|
+
taikoHekla: R6,
|
|
21305
21305
|
taikoJolnir: q6,
|
|
21306
21306
|
taikoKatla: G6,
|
|
21307
21307
|
taikoTestnetSepolia: j6,
|
|
@@ -21349,7 +21349,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
21349
21349
|
zkFair: I3,
|
|
21350
21350
|
zkFairTestnet: U3,
|
|
21351
21351
|
zkLinkNova: P3,
|
|
21352
|
-
zkLinkNovaSepoliaTestnet:
|
|
21352
|
+
zkLinkNovaSepoliaTestnet: F3,
|
|
21353
21353
|
zkSync: si,
|
|
21354
21354
|
zkSyncInMemoryNode: ai,
|
|
21355
21355
|
zkSyncLocalNode: oi,
|
|
@@ -21358,7 +21358,7 @@ const ix = /* @__PURE__ */ h({
|
|
|
21358
21358
|
zksyncInMemoryNode: ai,
|
|
21359
21359
|
zksyncLocalNode: oi,
|
|
21360
21360
|
zksyncSepoliaTestnet: ii,
|
|
21361
|
-
zora:
|
|
21361
|
+
zora: $3,
|
|
21362
21362
|
zoraSepolia: _3,
|
|
21363
21363
|
zoraTestnet: N3
|
|
21364
21364
|
}, Symbol.toStringTag, { value: "Module" })), _r = M3;
|
|
@@ -21404,11 +21404,11 @@ function J3({
|
|
|
21404
21404
|
mode: s === _r.hardhat ? "hardhat" : "anvil",
|
|
21405
21405
|
account: a,
|
|
21406
21406
|
key: t
|
|
21407
|
-
}).extend(
|
|
21407
|
+
}).extend(Do).extend(pl) : o = l0({
|
|
21408
21408
|
account: a,
|
|
21409
21409
|
chain: s,
|
|
21410
21410
|
transport: r ? gs(r, { retryCount: 0 }) : gs()
|
|
21411
|
-
}).extend(
|
|
21411
|
+
}).extend(Do), [{ config: $0({
|
|
21412
21412
|
chains: [s],
|
|
21413
21413
|
// biome-ignore lint/suspicious/noExplicitAny: Client will not be undefined
|
|
21414
21414
|
client: () => o
|
|
@@ -21423,7 +21423,7 @@ export {
|
|
|
21423
21423
|
Ze as F,
|
|
21424
21424
|
jt as G,
|
|
21425
21425
|
fn as H,
|
|
21426
|
-
|
|
21426
|
+
R3 as a,
|
|
21427
21427
|
G3 as b,
|
|
21428
21428
|
Ut as c,
|
|
21429
21429
|
q3 as d,
|