@pufferfinance/puffer-sdk 1.17.3 → 1.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.js +3 -3
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.js +2 -2
- package/dist/{ccip-BJ1xqhtz.js → ccip-ChHXXL5d.js} +3 -3
- package/dist/{ccip-BJ1xqhtz.js.map → ccip-ChHXXL5d.js.map} +1 -1
- package/dist/{ccip-BxmhlmqV.cjs → ccip-oOJ9rRj3.cjs} +2 -2
- package/dist/{ccip-BxmhlmqV.cjs.map → ccip-oOJ9rRj3.cjs.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +2 -1
- package/dist/chains/constants.js +1 -1
- package/dist/constants-BI6T6ZbJ.cjs +9 -0
- package/dist/constants-BI6T6ZbJ.cjs.map +1 -0
- package/dist/{constants-Bw9JXSap.js → constants-LC89CXNv.js} +341 -308
- package/dist/constants-LC89CXNv.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.js +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.js +2 -2
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.js +2 -2
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.js +5 -4
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{createWalletClient-CsOHhabf.js → createWalletClient-BI9ya5Hq.js} +4 -4
- package/dist/{createWalletClient-CsOHhabf.js.map → createWalletClient-BI9ya5Hq.js.map} +1 -1
- package/dist/{createWalletClient-usZXff24.cjs → createWalletClient-KYWq_Sx_.cjs} +2 -2
- package/dist/{createWalletClient-usZXff24.cjs.map → createWalletClient-KYWq_Sx_.cjs.map} +1 -1
- package/dist/{getContract-Bzdkp3oE.cjs → getContract-CPwqa1sR.cjs} +2 -2
- package/dist/{getContract-Bzdkp3oE.cjs.map → getContract-CPwqa1sR.cjs.map} +1 -1
- package/dist/{getContract-8WqQMpYW.js → getContract-Ck2VtUkY.js} +2 -2
- package/dist/{getContract-8WqQMpYW.js.map → getContract-Ck2VtUkY.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-BCRN0kWE.cjs → secp256k1-93KDDbJS.cjs} +2 -2
- package/dist/{secp256k1-BCRN0kWE.cjs.map → secp256k1-93KDDbJS.cjs.map} +1 -1
- package/dist/{secp256k1-YxK0LcBT.js → secp256k1-rB-jsNOU.js} +2 -2
- package/dist/{secp256k1-YxK0LcBT.js.map → secp256k1-rB-jsNOU.js.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-D_ETLOw6.cjs → writeContract-DPtg3nGu.cjs} +3 -3
- package/dist/{writeContract-D_ETLOw6.cjs.map → writeContract-DPtg3nGu.cjs.map} +1 -1
- package/dist/{writeContract-CYCoIOLc.js → writeContract-DlZ0jYhZ.js} +4 -4
- package/dist/{writeContract-CYCoIOLc.js.map → writeContract-DlZ0jYhZ.js.map} +1 -1
- package/package.json +1 -1
- package/dist/constants-B96CDi8I.cjs +0 -9
- package/dist/constants-B96CDi8I.cjs.map +0 -1
- package/dist/constants-Bw9JXSap.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function W(e, { strict: t = !0 } = {}) {
|
|
2
2
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function v(e) {
|
|
5
5
|
return W(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
6
6
|
}
|
|
7
7
|
const $e = "2.23.13";
|
|
@@ -63,41 +63,41 @@ class u extends Error {
|
|
|
63
63
|
function Ae(e, t) {
|
|
64
64
|
return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Ae(e.cause, t) : t ? null : e;
|
|
65
65
|
}
|
|
66
|
-
class
|
|
66
|
+
class Ce extends u {
|
|
67
67
|
constructor({ offset: t, position: s, size: n }) {
|
|
68
68
|
super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
class
|
|
71
|
+
class Fe extends u {
|
|
72
72
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
73
73
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class un extends u {
|
|
77
77
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
78
78
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${s} ${n} long, but is ${t} ${n} long.`, { name: "InvalidBytesLengthError" });
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function H(e, { dir: t, size: s = 32 } = {}) {
|
|
82
|
-
return typeof e == "string" ?
|
|
82
|
+
return typeof e == "string" ? mt(e, { dir: t, size: s }) : xt(e, { dir: t, size: s });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function mt(e, { dir: t, size: s = 32 } = {}) {
|
|
85
85
|
if (s === null)
|
|
86
86
|
return e;
|
|
87
87
|
const n = e.replace("0x", "");
|
|
88
88
|
if (n.length > s * 2)
|
|
89
|
-
throw new
|
|
89
|
+
throw new Fe({
|
|
90
90
|
size: Math.ceil(n.length / 2),
|
|
91
91
|
targetSize: s,
|
|
92
92
|
type: "hex"
|
|
93
93
|
});
|
|
94
94
|
return `0x${n[t === "right" ? "padEnd" : "padStart"](s * 2, "0")}`;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function xt(e, { dir: t, size: s = 32 } = {}) {
|
|
97
97
|
if (s === null)
|
|
98
98
|
return e;
|
|
99
99
|
if (e.length > s)
|
|
100
|
-
throw new
|
|
100
|
+
throw new Fe({
|
|
101
101
|
size: e.length,
|
|
102
102
|
targetSize: s,
|
|
103
103
|
type: "bytes"
|
|
@@ -109,75 +109,75 @@ function mt(e, { dir: t, size: s = 32 } = {}) {
|
|
|
109
109
|
}
|
|
110
110
|
return n;
|
|
111
111
|
}
|
|
112
|
-
class
|
|
112
|
+
class gt extends u {
|
|
113
113
|
constructor({ max: t, min: s, signed: n, size: r, value: i }) {
|
|
114
114
|
super(`Number "${i}" is not in safe ${r ? `${r * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${s} to ${t})` : `(above ${s})`}`, { name: "IntegerOutOfRangeError" });
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
class
|
|
117
|
+
class ln extends u {
|
|
118
118
|
constructor(t) {
|
|
119
119
|
super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
120
120
|
name: "InvalidBytesBooleanError"
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
class
|
|
124
|
+
class yt extends u {
|
|
125
125
|
constructor(t) {
|
|
126
126
|
super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
class
|
|
129
|
+
class wt extends u {
|
|
130
130
|
constructor({ givenSize: t, maxSize: s }) {
|
|
131
131
|
super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function C(e, { dir: t = "left" } = {}) {
|
|
135
135
|
let s = typeof e == "string" ? e.replace("0x", "") : e, n = 0;
|
|
136
136
|
for (let r = 0; r < s.length - 1 && s[t === "left" ? r : s.length - r - 1].toString() === "0"; r++)
|
|
137
137
|
n++;
|
|
138
138
|
return s = t === "left" ? s.slice(n) : s.slice(0, s.length - n), typeof e == "string" ? (s.length === 1 && t === "right" && (s = `${s}0`), `0x${s.length % 2 === 1 ? `0${s}` : s}`) : s;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
142
|
-
throw new
|
|
143
|
-
givenSize:
|
|
140
|
+
function k(e, { size: t }) {
|
|
141
|
+
if (v(e) > t)
|
|
142
|
+
throw new wt({
|
|
143
|
+
givenSize: v(e),
|
|
144
144
|
maxSize: t
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function G(e, t = {}) {
|
|
148
148
|
const { signed: s } = t;
|
|
149
|
-
t.size &&
|
|
149
|
+
t.size && k(e, { size: t.size });
|
|
150
150
|
const n = BigInt(e);
|
|
151
151
|
if (!s)
|
|
152
152
|
return n;
|
|
153
153
|
const r = (e.length - 2) / 2, i = (1n << BigInt(r) * 8n - 1n) - 1n;
|
|
154
154
|
return n <= i ? n : n - BigInt(`0x${"f".padStart(r * 2, "f")}`) - 1n;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function dn(e, t = {}) {
|
|
157
157
|
let s = e;
|
|
158
|
-
if (t.size && (
|
|
158
|
+
if (t.size && (k(s, { size: t.size }), s = C(s)), C(s) === "0x00")
|
|
159
159
|
return !1;
|
|
160
|
-
if (
|
|
160
|
+
if (C(s) === "0x01")
|
|
161
161
|
return !0;
|
|
162
|
-
throw new
|
|
162
|
+
throw new yt(s);
|
|
163
163
|
}
|
|
164
164
|
function Y(e, t = {}) {
|
|
165
165
|
return Number(G(e, t));
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const Et = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
168
168
|
function f(e, t = {}) {
|
|
169
|
-
return typeof e == "number" || typeof e == "bigint" ? Ue(e, t) : typeof e == "string" ?
|
|
169
|
+
return typeof e == "number" || typeof e == "bigint" ? Ue(e, t) : typeof e == "string" ? vt(e, t) : typeof e == "boolean" ? Bt(e, t) : $(e, t);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Bt(e, t = {}) {
|
|
172
172
|
const s = `0x${Number(e)}`;
|
|
173
|
-
return typeof t.size == "number" ? (
|
|
173
|
+
return typeof t.size == "number" ? (k(s, { size: t.size }), H(s, { size: t.size })) : s;
|
|
174
174
|
}
|
|
175
175
|
function $(e, t = {}) {
|
|
176
176
|
let s = "";
|
|
177
177
|
for (let r = 0; r < e.length; r++)
|
|
178
|
-
s +=
|
|
178
|
+
s += Et[e[r]];
|
|
179
179
|
const n = `0x${s}`;
|
|
180
|
-
return typeof t.size == "number" ? (
|
|
180
|
+
return typeof t.size == "number" ? (k(n, { size: t.size }), H(n, { dir: "right", size: t.size })) : n;
|
|
181
181
|
}
|
|
182
182
|
function Ue(e, t = {}) {
|
|
183
183
|
const { signed: s, size: n } = t, r = BigInt(e);
|
|
@@ -186,7 +186,7 @@ function Ue(e, t = {}) {
|
|
|
186
186
|
const o = typeof i == "bigint" && s ? -i - 1n : 0;
|
|
187
187
|
if (i && r > i || r < o) {
|
|
188
188
|
const c = typeof e == "bigint" ? "n" : "";
|
|
189
|
-
throw new
|
|
189
|
+
throw new gt({
|
|
190
190
|
max: i ? `${i}${c}` : void 0,
|
|
191
191
|
min: `${o}${c}`,
|
|
192
192
|
signed: s,
|
|
@@ -197,18 +197,18 @@ function Ue(e, t = {}) {
|
|
|
197
197
|
const a = `0x${(s && r < 0 ? (1n << BigInt(n * 8)) + BigInt(r) : r).toString(16)}`;
|
|
198
198
|
return n ? H(a, { size: n }) : a;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
function
|
|
202
|
-
const s =
|
|
200
|
+
const Pt = /* @__PURE__ */ new TextEncoder();
|
|
201
|
+
function vt(e, t = {}) {
|
|
202
|
+
const s = Pt.encode(e);
|
|
203
203
|
return $(s, t);
|
|
204
204
|
}
|
|
205
205
|
const It = /* @__PURE__ */ new TextEncoder();
|
|
206
206
|
function ze(e, t = {}) {
|
|
207
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
207
|
+
return typeof e == "number" || typeof e == "bigint" ? $t(e, t) : typeof e == "boolean" ? Tt(e, t) : W(e) ? U(e, t) : ke(e, t);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Tt(e, t = {}) {
|
|
210
210
|
const s = new Uint8Array(1);
|
|
211
|
-
return s[0] = Number(e), typeof t.size == "number" ? (
|
|
211
|
+
return s[0] = Number(e), typeof t.size == "number" ? (k(s, { size: t.size }), H(s, { size: t.size })) : s;
|
|
212
212
|
}
|
|
213
213
|
const y = {
|
|
214
214
|
zero: 48,
|
|
@@ -228,7 +228,7 @@ function ge(e) {
|
|
|
228
228
|
}
|
|
229
229
|
function U(e, t = {}) {
|
|
230
230
|
let s = e;
|
|
231
|
-
t.size && (
|
|
231
|
+
t.size && (k(s, { size: t.size }), s = H(s, { dir: "right", size: t.size }));
|
|
232
232
|
let n = s.slice(2);
|
|
233
233
|
n.length % 2 && (n = `0${n}`);
|
|
234
234
|
const r = n.length / 2, i = new Uint8Array(r);
|
|
@@ -240,28 +240,28 @@ function U(e, t = {}) {
|
|
|
240
240
|
}
|
|
241
241
|
return i;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function $t(e, t) {
|
|
244
244
|
const s = Ue(e, t);
|
|
245
245
|
return U(s);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function ke(e, t = {}) {
|
|
248
248
|
const s = It.encode(e);
|
|
249
|
-
return typeof t.size == "number" ? (
|
|
249
|
+
return typeof t.size == "number" ? (k(s, { size: t.size }), H(s, { dir: "right", size: t.size })) : s;
|
|
250
250
|
}
|
|
251
251
|
function J(e) {
|
|
252
252
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
253
253
|
throw new Error("positive integer expected, got " + e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function At(e) {
|
|
256
256
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
257
257
|
}
|
|
258
258
|
function ee(e, ...t) {
|
|
259
|
-
if (
|
|
259
|
+
if (!At(e))
|
|
260
260
|
throw new Error("Uint8Array expected");
|
|
261
261
|
if (t.length > 0 && !t.includes(e.length))
|
|
262
262
|
throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function fn(e) {
|
|
265
265
|
if (typeof e != "function" || typeof e.create != "function")
|
|
266
266
|
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
267
267
|
J(e.outputLen), J(e.blockLen);
|
|
@@ -272,27 +272,27 @@ function Q(e, t = !0) {
|
|
|
272
272
|
if (t && e.finished)
|
|
273
273
|
throw new Error("Hash#digest() has already been called");
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Se(e, t) {
|
|
276
276
|
ee(e);
|
|
277
277
|
const s = t.outputLen;
|
|
278
278
|
if (e.length < s)
|
|
279
279
|
throw new Error("digestInto() expects output buffer of length at least " + s);
|
|
280
280
|
}
|
|
281
281
|
const q = /* @__PURE__ */ BigInt(2 ** 32 - 1), ye = /* @__PURE__ */ BigInt(32);
|
|
282
|
-
function
|
|
282
|
+
function Ct(e, t = !1) {
|
|
283
283
|
return t ? { h: Number(e & q), l: Number(e >> ye & q) } : { h: Number(e >> ye & q) | 0, l: Number(e & q) | 0 };
|
|
284
284
|
}
|
|
285
285
|
function Ft(e, t = !1) {
|
|
286
286
|
let s = new Uint32Array(e.length), n = new Uint32Array(e.length);
|
|
287
287
|
for (let r = 0; r < e.length; r++) {
|
|
288
|
-
const { h: i, l: o } =
|
|
288
|
+
const { h: i, l: o } = Ct(e[r], t);
|
|
289
289
|
[s[r], n[r]] = [i, o];
|
|
290
290
|
}
|
|
291
291
|
return [s, n];
|
|
292
292
|
}
|
|
293
|
-
const
|
|
293
|
+
const Ut = (e, t, s) => e << s | t >>> 32 - s, zt = (e, t, s) => t << s | e >>> 32 - s, kt = (e, t, s) => t << s - 32 | e >>> 64 - s, St = (e, t, s) => e << s - 32 | t >>> 64 - s, L = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
294
294
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
295
|
-
function
|
|
295
|
+
function Lt(e) {
|
|
296
296
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
297
297
|
}
|
|
298
298
|
function re(e) {
|
|
@@ -302,22 +302,22 @@ function g(e, t) {
|
|
|
302
302
|
return e << 32 - t | e >>> t;
|
|
303
303
|
}
|
|
304
304
|
const we = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
305
|
-
function
|
|
305
|
+
function Gt(e) {
|
|
306
306
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
307
307
|
}
|
|
308
308
|
function Ee(e) {
|
|
309
309
|
for (let t = 0; t < e.length; t++)
|
|
310
|
-
e[t] =
|
|
310
|
+
e[t] = Gt(e[t]);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ht(e) {
|
|
313
313
|
if (typeof e != "string")
|
|
314
314
|
throw new Error("utf8ToBytes expected string, got " + typeof e);
|
|
315
315
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
316
316
|
}
|
|
317
317
|
function ce(e) {
|
|
318
|
-
return typeof e == "string" && (e =
|
|
318
|
+
return typeof e == "string" && (e = Ht(e)), ee(e), e;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function hn(...e) {
|
|
321
321
|
let t = 0;
|
|
322
322
|
for (let n = 0; n < e.length; n++) {
|
|
323
323
|
const r = e[n];
|
|
@@ -340,22 +340,22 @@ function Ge(e) {
|
|
|
340
340
|
const t = (n) => e().update(ce(n)).digest(), s = e();
|
|
341
341
|
return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function pn(e = 32) {
|
|
344
344
|
if (L && typeof L.getRandomValues == "function")
|
|
345
345
|
return L.getRandomValues(new Uint8Array(e));
|
|
346
346
|
if (L && typeof L.randomBytes == "function")
|
|
347
347
|
return L.randomBytes(e);
|
|
348
348
|
throw new Error("crypto.getRandomValues must be defined");
|
|
349
349
|
}
|
|
350
|
-
const He = [], Oe = [], Ne = [],
|
|
350
|
+
const He = [], Oe = [], Ne = [], Ot = /* @__PURE__ */ BigInt(0), V = /* @__PURE__ */ BigInt(1), Nt = /* @__PURE__ */ BigInt(2), Mt = /* @__PURE__ */ BigInt(7), _t = /* @__PURE__ */ BigInt(256), Vt = /* @__PURE__ */ BigInt(113);
|
|
351
351
|
for (let e = 0, t = V, s = 1, n = 0; e < 24; e++) {
|
|
352
352
|
[s, n] = [n, (2 * s + 3 * n) % 5], He.push(2 * (5 * n + s)), Oe.push((e + 1) * (e + 2) / 2 % 64);
|
|
353
|
-
let r =
|
|
353
|
+
let r = Ot;
|
|
354
354
|
for (let i = 0; i < 7; i++)
|
|
355
|
-
t = (t << V ^ (t >>
|
|
355
|
+
t = (t << V ^ (t >> Mt) * Vt) % _t, t & Nt && (r ^= V << (V << /* @__PURE__ */ BigInt(i)) - V);
|
|
356
356
|
Ne.push(r);
|
|
357
357
|
}
|
|
358
|
-
const [
|
|
358
|
+
const [Dt, Rt] = /* @__PURE__ */ Ft(Ne, !0), Be = (e, t, s) => s > 32 ? kt(e, t, s) : Ut(e, t, s), Pe = (e, t, s) => s > 32 ? St(e, t, s) : zt(e, t, s);
|
|
359
359
|
function jt(e, t = 24) {
|
|
360
360
|
const s = new Uint32Array(10);
|
|
361
361
|
for (let n = 24 - t; n < 24; n++) {
|
|
@@ -377,7 +377,7 @@ function jt(e, t = 24) {
|
|
|
377
377
|
for (let a = 0; a < 10; a++)
|
|
378
378
|
e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
|
|
379
379
|
}
|
|
380
|
-
e[0] ^=
|
|
380
|
+
e[0] ^= Dt[n], e[1] ^= Rt[n];
|
|
381
381
|
}
|
|
382
382
|
s.fill(0);
|
|
383
383
|
}
|
|
@@ -386,7 +386,7 @@ class ue extends Le {
|
|
|
386
386
|
constructor(t, s, n, r = !1, i = 24) {
|
|
387
387
|
if (super(), this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = r, this.rounds = i, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, J(n), 0 >= this.blockLen || this.blockLen >= 200)
|
|
388
388
|
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
389
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
389
|
+
this.state = new Uint8Array(200), this.state32 = Lt(this.state);
|
|
390
390
|
}
|
|
391
391
|
keccak() {
|
|
392
392
|
we || Ee(this.state32), jt(this.state32, this.rounds), we || Ee(this.state32), this.posOut = 0, this.pos = 0;
|
|
@@ -430,7 +430,7 @@ class ue extends Le {
|
|
|
430
430
|
return J(t), this.xofInto(new Uint8Array(t));
|
|
431
431
|
}
|
|
432
432
|
digestInto(t) {
|
|
433
|
-
if (
|
|
433
|
+
if (Se(t, this), this.finished)
|
|
434
434
|
throw new Error("digest() was already called");
|
|
435
435
|
return this.writeInto(t), this.destroy(), t;
|
|
436
436
|
}
|
|
@@ -445,12 +445,12 @@ class ue extends Le {
|
|
|
445
445
|
return t || (t = new ue(s, n, r, o, i)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = i, t.suffix = n, t.outputLen = r, t.enableXOF = o, t.destroyed = this.destroyed, t;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
450
|
-
const s = t || "hex", n =
|
|
448
|
+
const Kt = (e, t, s) => Ge(() => new ue(t, e, s)), Wt = /* @__PURE__ */ Kt(1, 136, 256 / 8);
|
|
449
|
+
function Xt(e, t) {
|
|
450
|
+
const s = t || "hex", n = Wt(W(e, { strict: !1 }) ? ze(e) : e);
|
|
451
451
|
return s === "bytes" ? n : f(n);
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class I extends u {
|
|
454
454
|
constructor({ address: t }) {
|
|
455
455
|
super(`Address "${t}" is invalid.`, {
|
|
456
456
|
metaMessages: [
|
|
@@ -486,29 +486,29 @@ const ie = /* @__PURE__ */ new Me(8192);
|
|
|
486
486
|
function _e(e, t) {
|
|
487
487
|
if (ie.has(`${e}.${t}`))
|
|
488
488
|
return ie.get(`${e}.${t}`);
|
|
489
|
-
const s = e.substring(2).toLowerCase(), n =
|
|
489
|
+
const s = e.substring(2).toLowerCase(), n = Xt(ke(s), "bytes"), r = s.split("");
|
|
490
490
|
for (let o = 0; o < 40; o += 2)
|
|
491
491
|
n[o >> 1] >> 4 >= 8 && r[o] && (r[o] = r[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && r[o + 1] && (r[o + 1] = r[o + 1].toUpperCase());
|
|
492
492
|
const i = `0x${r.join("")}`;
|
|
493
493
|
return ie.set(`${e}.${t}`, i), i;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function bn(e, t) {
|
|
496
496
|
if (!T(e, { strict: !1 }))
|
|
497
|
-
throw new
|
|
497
|
+
throw new I({ address: e });
|
|
498
498
|
return _e(e, t);
|
|
499
499
|
}
|
|
500
|
-
const
|
|
500
|
+
const Zt = /^0x[a-fA-F0-9]{40}$/, oe = /* @__PURE__ */ new Me(8192);
|
|
501
501
|
function T(e, t) {
|
|
502
502
|
const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
|
|
503
503
|
if (oe.has(n))
|
|
504
504
|
return oe.get(n);
|
|
505
|
-
const r =
|
|
505
|
+
const r = Zt.test(e) ? e.toLowerCase() === e ? !0 : s ? _e(e) === e : !0 : !1;
|
|
506
506
|
return oe.set(n, r), r;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
return typeof e[0] == "string" ? O(e) :
|
|
508
|
+
function mn(e) {
|
|
509
|
+
return typeof e[0] == "string" ? O(e) : qt(e);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function qt(e) {
|
|
512
512
|
let t = 0;
|
|
513
513
|
for (const r of e)
|
|
514
514
|
t += r.length;
|
|
@@ -521,57 +521,57 @@ function Zt(e) {
|
|
|
521
521
|
function O(e) {
|
|
522
522
|
return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
return W(e, { strict: !1 }) ?
|
|
524
|
+
function Yt(e, t, s, { strict: n } = {}) {
|
|
525
|
+
return W(e, { strict: !1 }) ? Qt(e, t, s, {
|
|
526
526
|
strict: n
|
|
527
|
-
}) :
|
|
527
|
+
}) : Jt(e, t, s, {
|
|
528
528
|
strict: n
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
function Ve(e, t) {
|
|
532
|
-
if (typeof t == "number" && t > 0 && t >
|
|
533
|
-
throw new
|
|
532
|
+
if (typeof t == "number" && t > 0 && t > v(e) - 1)
|
|
533
|
+
throw new Ce({
|
|
534
534
|
offset: t,
|
|
535
535
|
position: "start",
|
|
536
|
-
size:
|
|
536
|
+
size: v(e)
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
function De(e, t, s) {
|
|
540
|
-
if (typeof t == "number" && typeof s == "number" &&
|
|
541
|
-
throw new
|
|
540
|
+
if (typeof t == "number" && typeof s == "number" && v(e) !== s - t)
|
|
541
|
+
throw new Ce({
|
|
542
542
|
offset: s,
|
|
543
543
|
position: "end",
|
|
544
|
-
size:
|
|
544
|
+
size: v(e)
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function Jt(e, t, s, { strict: n } = {}) {
|
|
548
548
|
Ve(e, t);
|
|
549
549
|
const r = e.slice(t, s);
|
|
550
550
|
return n && De(r, t, s), r;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Qt(e, t, s, { strict: n } = {}) {
|
|
553
553
|
Ve(e, t);
|
|
554
554
|
const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
|
|
555
555
|
return n && De(r, t, s), r;
|
|
556
556
|
}
|
|
557
|
-
class
|
|
557
|
+
class ve extends u {
|
|
558
558
|
constructor({ offset: t }) {
|
|
559
559
|
super(`Offset \`${t}\` cannot be negative.`, {
|
|
560
560
|
name: "NegativeOffsetError"
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
class
|
|
564
|
+
class es extends u {
|
|
565
565
|
constructor({ length: t, position: s }) {
|
|
566
566
|
super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class ts extends u {
|
|
570
570
|
constructor({ count: t, limit: s }) {
|
|
571
571
|
super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const ss = {
|
|
575
575
|
bytes: new Uint8Array(),
|
|
576
576
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
577
577
|
position: 0,
|
|
@@ -580,21 +580,21 @@ const ts = {
|
|
|
580
580
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
581
581
|
assertReadLimit() {
|
|
582
582
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
583
|
-
throw new
|
|
583
|
+
throw new ts({
|
|
584
584
|
count: this.recursiveReadCount + 1,
|
|
585
585
|
limit: this.recursiveReadLimit
|
|
586
586
|
});
|
|
587
587
|
},
|
|
588
588
|
assertPosition(e) {
|
|
589
589
|
if (e < 0 || e > this.bytes.length - 1)
|
|
590
|
-
throw new
|
|
590
|
+
throw new es({
|
|
591
591
|
length: this.bytes.length,
|
|
592
592
|
position: e
|
|
593
593
|
});
|
|
594
594
|
},
|
|
595
595
|
decrementPosition(e) {
|
|
596
596
|
if (e < 0)
|
|
597
|
-
throw new
|
|
597
|
+
throw new ve({ offset: e });
|
|
598
598
|
const t = this.position - e;
|
|
599
599
|
this.assertPosition(t), this.position = t;
|
|
600
600
|
},
|
|
@@ -603,7 +603,7 @@ const ts = {
|
|
|
603
603
|
},
|
|
604
604
|
incrementPosition(e) {
|
|
605
605
|
if (e < 0)
|
|
606
|
-
throw new
|
|
606
|
+
throw new ve({ offset: e });
|
|
607
607
|
const t = this.position + e;
|
|
608
608
|
this.assertPosition(t), this.position = t;
|
|
609
609
|
},
|
|
@@ -693,18 +693,18 @@ const ts = {
|
|
|
693
693
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
|
-
function
|
|
697
|
-
const s = Object.create(
|
|
696
|
+
function Re(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
697
|
+
const s = Object.create(ss);
|
|
698
698
|
return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const ns = {
|
|
701
701
|
gwei: 9,
|
|
702
702
|
wei: 18
|
|
703
|
-
},
|
|
703
|
+
}, rs = {
|
|
704
704
|
ether: -9,
|
|
705
705
|
wei: 9
|
|
706
706
|
};
|
|
707
|
-
function
|
|
707
|
+
function je(e, t) {
|
|
708
708
|
let s = e.toString();
|
|
709
709
|
const n = s.startsWith("-");
|
|
710
710
|
n && (s = s.slice(1)), s = s.padStart(t, "0");
|
|
@@ -714,18 +714,18 @@ function Re(e, t) {
|
|
|
714
714
|
];
|
|
715
715
|
return i = i.replace(/(0+)$/, ""), `${n ? "-" : ""}${r || "0"}${i ? `.${i}` : ""}`;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
return
|
|
717
|
+
function is(e, t = "wei") {
|
|
718
|
+
return je(e, ns[t]);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
720
|
+
function F(e, t = "wei") {
|
|
721
|
+
return je(e, rs[t]);
|
|
722
722
|
}
|
|
723
723
|
function Ke(e) {
|
|
724
724
|
const t = Object.entries(e).map(([n, r]) => r === void 0 || r === !1 ? null : [n, r]).filter(Boolean), s = t.reduce((n, [r]) => Math.max(n, r.length), 0);
|
|
725
725
|
return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
|
|
726
726
|
`);
|
|
727
727
|
}
|
|
728
|
-
class
|
|
728
|
+
class xn extends u {
|
|
729
729
|
constructor() {
|
|
730
730
|
super([
|
|
731
731
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -734,14 +734,14 @@ class mn extends u {
|
|
|
734
734
|
`), { name: "FeeConflictError" });
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
class
|
|
737
|
+
class os extends u {
|
|
738
738
|
constructor({ v: t }) {
|
|
739
739
|
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
|
|
740
740
|
name: "InvalidLegacyVError"
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
class
|
|
744
|
+
class as extends u {
|
|
745
745
|
constructor({ transaction: t }) {
|
|
746
746
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
747
747
|
metaMessages: [
|
|
@@ -762,24 +762,24 @@ class os extends u {
|
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
class
|
|
765
|
+
class cs extends u {
|
|
766
766
|
constructor({ storageKey: t }) {
|
|
767
767
|
super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class gn extends u {
|
|
771
771
|
constructor(t, { account: s, docsPath: n, chain: r, data: i, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: h, to: d, value: b }) {
|
|
772
772
|
var E;
|
|
773
773
|
const p = Ke({
|
|
774
774
|
chain: r && `${r == null ? void 0 : r.name} (id: ${r == null ? void 0 : r.id})`,
|
|
775
775
|
from: s == null ? void 0 : s.address,
|
|
776
776
|
to: d,
|
|
777
|
-
value: typeof b < "u" && `${
|
|
777
|
+
value: typeof b < "u" && `${is(b)} ${((E = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : E.symbol) || "ETH"}`,
|
|
778
778
|
data: i,
|
|
779
779
|
gas: o,
|
|
780
|
-
gasPrice: typeof a < "u" && `${
|
|
781
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
782
|
-
maxPriorityFeePerGas: typeof l < "u" && `${
|
|
780
|
+
gasPrice: typeof a < "u" && `${F(a)} gwei`,
|
|
781
|
+
maxFeePerGas: typeof c < "u" && `${F(c)} gwei`,
|
|
782
|
+
maxPriorityFeePerGas: typeof l < "u" && `${F(l)} gwei`,
|
|
783
783
|
nonce: h
|
|
784
784
|
});
|
|
785
785
|
super(t.shortMessage, {
|
|
@@ -799,7 +799,7 @@ class xn extends u {
|
|
|
799
799
|
}), this.cause = t;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
class
|
|
802
|
+
class yn extends u {
|
|
803
803
|
constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: r, index: i }) {
|
|
804
804
|
let o = "Transaction";
|
|
805
805
|
n && i !== void 0 && (o = `Transaction at block time "${n}" at index "${i}"`), t && i !== void 0 && (o = `Transaction at block hash "${t}" at index "${i}"`), s && i !== void 0 && (o = `Transaction at block number "${s}" at index "${i}"`), r && (o = `Transaction with hash "${r}"`), super(`${o} could not be found.`, {
|
|
@@ -807,26 +807,26 @@ class gn extends u {
|
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
class
|
|
810
|
+
class wn extends u {
|
|
811
811
|
constructor({ hash: t }) {
|
|
812
812
|
super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
|
|
813
813
|
name: "TransactionReceiptNotFoundError"
|
|
814
814
|
});
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
class
|
|
817
|
+
class En extends u {
|
|
818
818
|
constructor({ hash: t }) {
|
|
819
819
|
super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
function z(e, t = "hex") {
|
|
823
|
-
const s = We(e), n =
|
|
823
|
+
const s = We(e), n = Re(new Uint8Array(s.length));
|
|
824
824
|
return s.encode(n), t === "hex" ? $(n.bytes) : n.bytes;
|
|
825
825
|
}
|
|
826
826
|
function We(e) {
|
|
827
|
-
return Array.isArray(e) ?
|
|
827
|
+
return Array.isArray(e) ? us(e.map((t) => We(t))) : ls(e);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function us(e) {
|
|
830
830
|
const t = e.reduce((r, i) => r + i.length, 0), s = Xe(t);
|
|
831
831
|
return {
|
|
832
832
|
length: t <= 55 ? 1 + t : 1 + s + t,
|
|
@@ -837,7 +837,7 @@ function cs(e) {
|
|
|
837
837
|
}
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function ls(e) {
|
|
841
841
|
const t = typeof e == "string" ? U(e) : e, s = Xe(t.length);
|
|
842
842
|
return {
|
|
843
843
|
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
|
|
@@ -881,7 +881,7 @@ Object.defineProperty(Ze, "nodeMessage", {
|
|
|
881
881
|
});
|
|
882
882
|
class te extends u {
|
|
883
883
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
884
|
-
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${
|
|
884
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
885
885
|
cause: t,
|
|
886
886
|
name: "FeeCapTooHighError"
|
|
887
887
|
});
|
|
@@ -893,32 +893,32 @@ Object.defineProperty(te, "nodeMessage", {
|
|
|
893
893
|
writable: !0,
|
|
894
894
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
895
895
|
});
|
|
896
|
-
class
|
|
896
|
+
class ds extends u {
|
|
897
897
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
898
|
-
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${
|
|
898
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
899
899
|
cause: t,
|
|
900
900
|
name: "FeeCapTooLowError"
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
Object.defineProperty(
|
|
904
|
+
Object.defineProperty(ds, "nodeMessage", {
|
|
905
905
|
enumerable: !0,
|
|
906
906
|
configurable: !0,
|
|
907
907
|
writable: !0,
|
|
908
908
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
909
909
|
});
|
|
910
|
-
class
|
|
910
|
+
class fs extends u {
|
|
911
911
|
constructor({ cause: t, nonce: s } = {}) {
|
|
912
912
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
Object.defineProperty(
|
|
915
|
+
Object.defineProperty(fs, "nodeMessage", {
|
|
916
916
|
enumerable: !0,
|
|
917
917
|
configurable: !0,
|
|
918
918
|
writable: !0,
|
|
919
919
|
value: /nonce too high/
|
|
920
920
|
});
|
|
921
|
-
class
|
|
921
|
+
class hs extends u {
|
|
922
922
|
constructor({ cause: t, nonce: s } = {}) {
|
|
923
923
|
super([
|
|
924
924
|
`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -927,24 +927,24 @@ class fs extends u {
|
|
|
927
927
|
`), { cause: t, name: "NonceTooLowError" });
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
Object.defineProperty(
|
|
930
|
+
Object.defineProperty(hs, "nodeMessage", {
|
|
931
931
|
enumerable: !0,
|
|
932
932
|
configurable: !0,
|
|
933
933
|
writable: !0,
|
|
934
934
|
value: /nonce too low|transaction already imported|already known/
|
|
935
935
|
});
|
|
936
|
-
class
|
|
936
|
+
class ps extends u {
|
|
937
937
|
constructor({ cause: t, nonce: s } = {}) {
|
|
938
938
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
Object.defineProperty(
|
|
941
|
+
Object.defineProperty(ps, "nodeMessage", {
|
|
942
942
|
enumerable: !0,
|
|
943
943
|
configurable: !0,
|
|
944
944
|
writable: !0,
|
|
945
945
|
value: /nonce has max value/
|
|
946
946
|
});
|
|
947
|
-
class
|
|
947
|
+
class bs extends u {
|
|
948
948
|
constructor({ cause: t } = {}) {
|
|
949
949
|
super([
|
|
950
950
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -965,13 +965,13 @@ class ps extends u {
|
|
|
965
965
|
});
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
Object.defineProperty(
|
|
968
|
+
Object.defineProperty(bs, "nodeMessage", {
|
|
969
969
|
enumerable: !0,
|
|
970
970
|
configurable: !0,
|
|
971
971
|
writable: !0,
|
|
972
972
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
973
973
|
});
|
|
974
|
-
class
|
|
974
|
+
class ms extends u {
|
|
975
975
|
constructor({ cause: t, gas: s } = {}) {
|
|
976
976
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
977
977
|
cause: t,
|
|
@@ -979,13 +979,13 @@ class bs extends u {
|
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
Object.defineProperty(
|
|
982
|
+
Object.defineProperty(ms, "nodeMessage", {
|
|
983
983
|
enumerable: !0,
|
|
984
984
|
configurable: !0,
|
|
985
985
|
writable: !0,
|
|
986
986
|
value: /intrinsic gas too high|gas limit reached/
|
|
987
987
|
});
|
|
988
|
-
class
|
|
988
|
+
class xs extends u {
|
|
989
989
|
constructor({ cause: t, gas: s } = {}) {
|
|
990
990
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
|
|
991
991
|
cause: t,
|
|
@@ -993,13 +993,13 @@ class ms extends u {
|
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
Object.defineProperty(
|
|
996
|
+
Object.defineProperty(xs, "nodeMessage", {
|
|
997
997
|
enumerable: !0,
|
|
998
998
|
configurable: !0,
|
|
999
999
|
writable: !0,
|
|
1000
1000
|
value: /intrinsic gas too low/
|
|
1001
1001
|
});
|
|
1002
|
-
class
|
|
1002
|
+
class gs extends u {
|
|
1003
1003
|
constructor({ cause: t }) {
|
|
1004
1004
|
super("The transaction type is not supported for this chain.", {
|
|
1005
1005
|
cause: t,
|
|
@@ -1007,7 +1007,7 @@ class xs extends u {
|
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
Object.defineProperty(
|
|
1010
|
+
Object.defineProperty(gs, "nodeMessage", {
|
|
1011
1011
|
enumerable: !0,
|
|
1012
1012
|
configurable: !0,
|
|
1013
1013
|
writable: !0,
|
|
@@ -1016,7 +1016,7 @@ Object.defineProperty(xs, "nodeMessage", {
|
|
|
1016
1016
|
class qe extends u {
|
|
1017
1017
|
constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
|
|
1018
1018
|
super([
|
|
1019
|
-
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${
|
|
1019
|
+
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${F(n)} gwei` : ""}).`
|
|
1020
1020
|
].join(`
|
|
1021
1021
|
`), {
|
|
1022
1022
|
cause: t,
|
|
@@ -1030,7 +1030,7 @@ Object.defineProperty(qe, "nodeMessage", {
|
|
|
1030
1030
|
writable: !0,
|
|
1031
1031
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
1032
1032
|
});
|
|
1033
|
-
class
|
|
1033
|
+
class Bn extends u {
|
|
1034
1034
|
constructor({ cause: t }) {
|
|
1035
1035
|
super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
|
|
1036
1036
|
cause: t,
|
|
@@ -1080,7 +1080,7 @@ function fe(e) {
|
|
|
1080
1080
|
value: e.value ? BigInt(e.value) : void 0,
|
|
1081
1081
|
v: e.v ? BigInt(e.v) : void 0
|
|
1082
1082
|
};
|
|
1083
|
-
return e.authorizationList && (t.authorizationList =
|
|
1083
|
+
return e.authorizationList && (t.authorizationList = ws(e.authorizationList)), t.yParity = (() => {
|
|
1084
1084
|
if (e.yParity)
|
|
1085
1085
|
return Number(e.yParity);
|
|
1086
1086
|
if (typeof t.v == "bigint") {
|
|
@@ -1093,8 +1093,8 @@ function fe(e) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
})(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1097
|
-
function
|
|
1096
|
+
const ys = /* @__PURE__ */ le("transaction", fe);
|
|
1097
|
+
function ws(e) {
|
|
1098
1098
|
return e.map((t) => ({
|
|
1099
1099
|
contractAddress: t.address,
|
|
1100
1100
|
chainId: Number(t.chainId),
|
|
@@ -1104,7 +1104,7 @@ function ys(e) {
|
|
|
1104
1104
|
yParity: Number(t.yParity)
|
|
1105
1105
|
}));
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Es(e) {
|
|
1108
1108
|
const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : fe(s));
|
|
1109
1109
|
return {
|
|
1110
1110
|
...e,
|
|
@@ -1124,7 +1124,7 @@ function ws(e) {
|
|
|
1124
1124
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1127
|
+
const Bs = /* @__PURE__ */ le("block", Es);
|
|
1128
1128
|
function Je(e) {
|
|
1129
1129
|
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) => U(i)) : e.blobs, r = [];
|
|
1130
1130
|
for (const i of n)
|
|
@@ -1139,19 +1139,19 @@ function Qe(e) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
return s === "bytes" ? i : i.map((o) => $(o));
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function Ps(e, t, s, n) {
|
|
1143
1143
|
if (typeof e.setBigUint64 == "function")
|
|
1144
1144
|
return e.setBigUint64(t, s, n);
|
|
1145
1145
|
const r = BigInt(32), i = BigInt(4294967295), o = Number(s >> r & i), a = Number(s & i), c = n ? 4 : 0, l = n ? 0 : 4;
|
|
1146
1146
|
e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function vs(e, t, s) {
|
|
1149
1149
|
return e & t ^ ~e & s;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Is(e, t, s) {
|
|
1152
1152
|
return e & t ^ e & s ^ t & s;
|
|
1153
1153
|
}
|
|
1154
|
-
class
|
|
1154
|
+
class Ts extends Le {
|
|
1155
1155
|
constructor(t, s, n, r) {
|
|
1156
1156
|
super(), this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = r, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = re(this.buffer);
|
|
1157
1157
|
}
|
|
@@ -1173,13 +1173,13 @@ class vs extends Le {
|
|
|
1173
1173
|
return this.length += t.length, this.roundClean(), this;
|
|
1174
1174
|
}
|
|
1175
1175
|
digestInto(t) {
|
|
1176
|
-
Q(this),
|
|
1176
|
+
Q(this), Se(t, this), this.finished = !0;
|
|
1177
1177
|
const { buffer: s, view: n, blockLen: r, isLE: i } = this;
|
|
1178
1178
|
let { pos: o } = this;
|
|
1179
1179
|
s[o++] = 128, this.buffer.subarray(o).fill(0), this.padOffset > r - o && (this.process(n, 0), o = 0);
|
|
1180
1180
|
for (let d = o; d < r; d++)
|
|
1181
1181
|
s[d] = 0;
|
|
1182
|
-
|
|
1182
|
+
Ps(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
1183
1183
|
const a = re(t), c = this.outputLen;
|
|
1184
1184
|
if (c % 4)
|
|
1185
1185
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
@@ -1201,7 +1201,7 @@ class vs extends Le {
|
|
|
1201
1201
|
return t.length = r, t.pos = a, t.finished = i, t.destroyed = o, r % s && t.buffer.set(n), t;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const $s = /* @__PURE__ */ new Uint32Array([
|
|
1205
1205
|
1116352408,
|
|
1206
1206
|
1899447441,
|
|
1207
1207
|
3049323471,
|
|
@@ -1276,7 +1276,7 @@ const Ts = /* @__PURE__ */ new Uint32Array([
|
|
|
1276
1276
|
528734635,
|
|
1277
1277
|
1541459225
|
|
1278
1278
|
]), P = /* @__PURE__ */ new Uint32Array(64);
|
|
1279
|
-
class
|
|
1279
|
+
class As extends Ts {
|
|
1280
1280
|
constructor() {
|
|
1281
1281
|
super(64, 32, 8, !1), this.A = B[0] | 0, this.B = B[1] | 0, this.C = B[2] | 0, this.D = B[3] | 0, this.E = B[4] | 0, this.F = B[5] | 0, this.G = B[6] | 0, this.H = B[7] | 0;
|
|
1282
1282
|
}
|
|
@@ -1292,13 +1292,13 @@ class $s extends vs {
|
|
|
1292
1292
|
for (let d = 0; d < 16; d++, s += 4)
|
|
1293
1293
|
P[d] = t.getUint32(s, !1);
|
|
1294
1294
|
for (let d = 16; d < 64; d++) {
|
|
1295
|
-
const b = P[d - 15], p = P[d - 2], E = g(b, 7) ^ g(b, 18) ^ b >>> 3,
|
|
1296
|
-
P[d] =
|
|
1295
|
+
const b = P[d - 15], p = P[d - 2], E = g(b, 7) ^ g(b, 18) ^ b >>> 3, S = g(p, 17) ^ g(p, 19) ^ p >>> 10;
|
|
1296
|
+
P[d] = S + P[d - 7] + E + P[d - 16] | 0;
|
|
1297
1297
|
}
|
|
1298
1298
|
let { A: n, B: r, C: i, D: o, E: a, F: c, G: l, H: h } = this;
|
|
1299
1299
|
for (let d = 0; d < 64; d++) {
|
|
1300
|
-
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b +
|
|
1301
|
-
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p +
|
|
1300
|
+
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b + vs(a, c, l) + $s[d] + P[d] | 0, S = (g(n, 2) ^ g(n, 13) ^ g(n, 22)) + Is(n, r, i) | 0;
|
|
1301
|
+
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p + S | 0;
|
|
1302
1302
|
}
|
|
1303
1303
|
n = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, o = o + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, h = h + this.H | 0, this.set(n, r, i, o, a, c, l, h);
|
|
1304
1304
|
}
|
|
@@ -1309,28 +1309,28 @@ class $s extends vs {
|
|
|
1309
1309
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
const
|
|
1312
|
+
const Cs = /* @__PURE__ */ Ge(() => new As());
|
|
1313
1313
|
function Fs(e, t) {
|
|
1314
|
-
return
|
|
1314
|
+
return Cs(W(e, { strict: !1 }) ? ze(e) : e);
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Us(e) {
|
|
1317
1317
|
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Fs(t);
|
|
1318
1318
|
return r.set([s], 0), n === "bytes" ? r : $(r);
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function zs(e) {
|
|
1321
1321
|
const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), r = [];
|
|
1322
1322
|
for (const i of t)
|
|
1323
|
-
r.push(
|
|
1323
|
+
r.push(Us({
|
|
1324
1324
|
commitment: i,
|
|
1325
1325
|
to: n,
|
|
1326
1326
|
version: s
|
|
1327
1327
|
}));
|
|
1328
1328
|
return r;
|
|
1329
1329
|
}
|
|
1330
|
-
const
|
|
1330
|
+
const Ie = 6, et = 32, he = 4096, tt = et * he, Te = tt * Ie - // terminator byte (0x80).
|
|
1331
1331
|
1 - // zero byte (0x00) appended to each field element.
|
|
1332
|
-
1 * he *
|
|
1333
|
-
class
|
|
1332
|
+
1 * he * Ie, st = 1;
|
|
1333
|
+
class ks extends u {
|
|
1334
1334
|
constructor({ maxSize: t, size: s }) {
|
|
1335
1335
|
super("Blob size is too large.", {
|
|
1336
1336
|
metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
|
|
@@ -1351,7 +1351,7 @@ class Ss extends u {
|
|
|
1351
1351
|
});
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
class
|
|
1354
|
+
class Ls extends u {
|
|
1355
1355
|
constructor({ hash: t, version: s }) {
|
|
1356
1356
|
super(`Versioned hash "${t}" version is invalid.`, {
|
|
1357
1357
|
metaMessages: [
|
|
@@ -1362,19 +1362,19 @@ class ks extends u {
|
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1366
|
-
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? U(e.data) : e.data, n =
|
|
1365
|
+
function Gs(e) {
|
|
1366
|
+
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? U(e.data) : e.data, n = v(s);
|
|
1367
1367
|
if (!n)
|
|
1368
1368
|
throw new nt();
|
|
1369
1369
|
if (n > Te)
|
|
1370
|
-
throw new
|
|
1370
|
+
throw new ks({
|
|
1371
1371
|
maxSize: Te,
|
|
1372
1372
|
size: n
|
|
1373
1373
|
});
|
|
1374
1374
|
const r = [];
|
|
1375
1375
|
let i = !0, o = 0;
|
|
1376
1376
|
for (; i; ) {
|
|
1377
|
-
const a =
|
|
1377
|
+
const a = Re(new Uint8Array(tt));
|
|
1378
1378
|
let c = 0;
|
|
1379
1379
|
for (; c < he; ) {
|
|
1380
1380
|
const l = s.slice(o, o + (et - 1));
|
|
@@ -1388,8 +1388,8 @@ function Ls(e) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) => $(a.bytes));
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
const { data: t, kzg: s, to: n } = e, r = e.blobs ??
|
|
1391
|
+
function Hs(e) {
|
|
1392
|
+
const { data: t, kzg: s, to: n } = e, r = e.blobs ?? Gs({ data: t, to: n }), i = e.commitments ?? Je({ blobs: r, kzg: s, to: n }), o = e.proofs ?? Qe({ blobs: r, commitments: i, kzg: s, to: n }), a = [];
|
|
1393
1393
|
for (let c = 0; c < r.length; c++)
|
|
1394
1394
|
a.push({
|
|
1395
1395
|
blob: r[c],
|
|
@@ -1398,7 +1398,7 @@ function Gs(e) {
|
|
|
1398
1398
|
});
|
|
1399
1399
|
return a;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Os(e) {
|
|
1402
1402
|
if (e.type)
|
|
1403
1403
|
return e.type;
|
|
1404
1404
|
if (typeof e.authorizationList < "u")
|
|
@@ -1409,9 +1409,9 @@ function Hs(e) {
|
|
|
1409
1409
|
return "eip1559";
|
|
1410
1410
|
if (typeof e.gasPrice < "u")
|
|
1411
1411
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
1412
|
-
throw new
|
|
1412
|
+
throw new as({ transaction: e });
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function Ns(e, { args: t, eventName: s } = {}) {
|
|
1415
1415
|
return {
|
|
1416
1416
|
...e,
|
|
1417
1417
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -1422,7 +1422,7 @@ function Os(e, { args: t, eventName: s } = {}) {
|
|
|
1422
1422
|
...s ? { args: t, eventName: s } : {}
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
class
|
|
1425
|
+
class Pn extends u {
|
|
1426
1426
|
constructor({ blockNumber: t, chain: s, contract: n }) {
|
|
1427
1427
|
super(`Chain "${s.name}" does not support contract "${n.name}".`, {
|
|
1428
1428
|
metaMessages: [
|
|
@@ -1437,7 +1437,7 @@ class Bn extends u {
|
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
class
|
|
1440
|
+
class vn extends u {
|
|
1441
1441
|
constructor({ chain: t, currentChainId: s }) {
|
|
1442
1442
|
super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
|
|
1443
1443
|
metaMessages: [
|
|
@@ -1459,7 +1459,7 @@ class In extends u {
|
|
|
1459
1459
|
});
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
class
|
|
1462
|
+
class Tn extends u {
|
|
1463
1463
|
constructor() {
|
|
1464
1464
|
super("No chain was provided to the Client.", {
|
|
1465
1465
|
name: "ClientChainNotConfiguredError"
|
|
@@ -1479,11 +1479,11 @@ function x(e) {
|
|
|
1479
1479
|
...e
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
const
|
|
1482
|
+
const Ms = {
|
|
1483
1483
|
"0x0": "reverted",
|
|
1484
1484
|
"0x1": "success"
|
|
1485
1485
|
};
|
|
1486
|
-
function
|
|
1486
|
+
function _s(e) {
|
|
1487
1487
|
const t = {
|
|
1488
1488
|
...e,
|
|
1489
1489
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1491,38 +1491,38 @@ function Ms(e) {
|
|
|
1491
1491
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1492
1492
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1493
1493
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1494
|
-
logs: e.logs ? e.logs.map((s) =>
|
|
1494
|
+
logs: e.logs ? e.logs.map((s) => Ns(s)) : null,
|
|
1495
1495
|
to: e.to ? e.to : null,
|
|
1496
1496
|
transactionIndex: e.transactionIndex ? Y(e.transactionIndex) : null,
|
|
1497
|
-
status: e.status ?
|
|
1497
|
+
status: e.status ? Ms[e.status] : null,
|
|
1498
1498
|
type: e.type ? Ye[e.type] || e.type : null
|
|
1499
1499
|
};
|
|
1500
1500
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1503
|
-
function
|
|
1502
|
+
const Vs = /* @__PURE__ */ le("transactionReceipt", _s);
|
|
1503
|
+
function Ds(e) {
|
|
1504
1504
|
const { authorizationList: t } = e;
|
|
1505
1505
|
if (t)
|
|
1506
1506
|
for (const s of t) {
|
|
1507
1507
|
const { contractAddress: n, chainId: r } = s;
|
|
1508
1508
|
if (!T(n))
|
|
1509
|
-
throw new
|
|
1509
|
+
throw new I({ address: n });
|
|
1510
1510
|
if (r < 0)
|
|
1511
1511
|
throw new se({ chainId: r });
|
|
1512
1512
|
}
|
|
1513
1513
|
pe(e);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Rs(e) {
|
|
1516
1516
|
const { blobVersionedHashes: t } = e;
|
|
1517
1517
|
if (t) {
|
|
1518
1518
|
if (t.length === 0)
|
|
1519
1519
|
throw new nt();
|
|
1520
1520
|
for (const s of t) {
|
|
1521
|
-
const n =
|
|
1521
|
+
const n = v(s), r = Y(Yt(s, 0, 1));
|
|
1522
1522
|
if (n !== 32)
|
|
1523
1523
|
throw new Ss({ hash: s, size: n });
|
|
1524
1524
|
if (r !== st)
|
|
1525
|
-
throw new
|
|
1525
|
+
throw new Ls({
|
|
1526
1526
|
hash: s,
|
|
1527
1527
|
version: r
|
|
1528
1528
|
});
|
|
@@ -1535,7 +1535,7 @@ function pe(e) {
|
|
|
1535
1535
|
if (t <= 0)
|
|
1536
1536
|
throw new se({ chainId: t });
|
|
1537
1537
|
if (r && !T(r))
|
|
1538
|
-
throw new
|
|
1538
|
+
throw new I({ address: r });
|
|
1539
1539
|
if (n && n > de)
|
|
1540
1540
|
throw new te({ maxFeePerGas: n });
|
|
1541
1541
|
if (s && n && s > n)
|
|
@@ -1546,16 +1546,16 @@ function js(e) {
|
|
|
1546
1546
|
if (t <= 0)
|
|
1547
1547
|
throw new se({ chainId: t });
|
|
1548
1548
|
if (i && !T(i))
|
|
1549
|
-
throw new
|
|
1549
|
+
throw new I({ address: i });
|
|
1550
1550
|
if (s || r)
|
|
1551
1551
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
1552
1552
|
if (n && n > de)
|
|
1553
1553
|
throw new te({ maxFeePerGas: n });
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function Ks(e) {
|
|
1556
1556
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1557
1557
|
if (i && !T(i))
|
|
1558
|
-
throw new
|
|
1558
|
+
throw new I({ address: i });
|
|
1559
1559
|
if (typeof t < "u" && t <= 0)
|
|
1560
1560
|
throw new se({ chainId: t });
|
|
1561
1561
|
if (s || r)
|
|
@@ -1563,7 +1563,7 @@ function Rs(e) {
|
|
|
1563
1563
|
if (n && n > de)
|
|
1564
1564
|
throw new te({ maxFeePerGas: n });
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function Ws(e) {
|
|
1567
1567
|
if (!e || e.length === 0)
|
|
1568
1568
|
return [];
|
|
1569
1569
|
const t = [];
|
|
@@ -1586,21 +1586,21 @@ function ne(e) {
|
|
|
1586
1586
|
const { address: n, storageKeys: r } = e[s];
|
|
1587
1587
|
for (let i = 0; i < r.length; i++)
|
|
1588
1588
|
if (r[i].length - 2 !== 64)
|
|
1589
|
-
throw new
|
|
1589
|
+
throw new cs({ storageKey: r[i] });
|
|
1590
1590
|
if (!T(n, { strict: !1 }))
|
|
1591
|
-
throw new
|
|
1591
|
+
throw new I({ address: n });
|
|
1592
1592
|
t.push([n, r]);
|
|
1593
1593
|
}
|
|
1594
1594
|
return t;
|
|
1595
1595
|
}
|
|
1596
|
-
function Ws(e, t) {
|
|
1597
|
-
const s = Hs(e);
|
|
1598
|
-
return s === "eip1559" ? qs(e, t) : s === "eip2930" ? Ys(e, t) : s === "eip4844" ? Zs(e, t) : s === "eip7702" ? Xs(e, t) : Js(e, t);
|
|
1599
|
-
}
|
|
1600
1596
|
function Xs(e, t) {
|
|
1597
|
+
const s = Os(e);
|
|
1598
|
+
return s === "eip1559" ? Ys(e, t) : s === "eip2930" ? Js(e, t) : s === "eip4844" ? qs(e, t) : s === "eip7702" ? Zs(e, t) : Qs(e, t);
|
|
1599
|
+
}
|
|
1600
|
+
function Zs(e, t) {
|
|
1601
1601
|
const { authorizationList: s, chainId: n, gas: r, nonce: i, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1602
|
-
|
|
1603
|
-
const b = ne(h), p =
|
|
1602
|
+
Ds(e);
|
|
1603
|
+
const b = ne(h), p = Ws(s);
|
|
1604
1604
|
return O([
|
|
1605
1605
|
"0x04",
|
|
1606
1606
|
z([
|
|
@@ -1618,23 +1618,23 @@ function Xs(e, t) {
|
|
|
1618
1618
|
])
|
|
1619
1619
|
]);
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function qs(e, t) {
|
|
1622
1622
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1623
|
-
|
|
1623
|
+
Rs(e);
|
|
1624
1624
|
let b = e.blobVersionedHashes, p = e.sidecars;
|
|
1625
1625
|
if (e.blobs && (typeof b > "u" || typeof p > "u")) {
|
|
1626
1626
|
const A = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((M) => $(M)), Z = e.kzg, N = Je({
|
|
1627
1627
|
blobs: A,
|
|
1628
1628
|
kzg: Z
|
|
1629
1629
|
});
|
|
1630
|
-
if (typeof b > "u" && (b =
|
|
1630
|
+
if (typeof b > "u" && (b = zs({
|
|
1631
1631
|
commitments: N
|
|
1632
1632
|
})), typeof p > "u") {
|
|
1633
1633
|
const M = Qe({ blobs: A, commitments: N, kzg: Z });
|
|
1634
|
-
p =
|
|
1634
|
+
p = Hs({ blobs: A, commitments: N, proofs: M });
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
-
const E = ne(h),
|
|
1637
|
+
const E = ne(h), S = [
|
|
1638
1638
|
f(s),
|
|
1639
1639
|
r ? f(r) : "0x",
|
|
1640
1640
|
l ? f(l) : "0x",
|
|
@@ -1656,10 +1656,10 @@ function Zs(e, t) {
|
|
|
1656
1656
|
return O([
|
|
1657
1657
|
"0x03",
|
|
1658
1658
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
1659
|
-
z(p ? [
|
|
1659
|
+
z(p ? [S, be, me, xe] : S)
|
|
1660
1660
|
]);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Ys(e, t) {
|
|
1663
1663
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
|
|
1664
1664
|
pe(e);
|
|
1665
1665
|
const d = ne(l), b = [
|
|
@@ -1679,7 +1679,7 @@ function qs(e, t) {
|
|
|
1679
1679
|
z(b)
|
|
1680
1680
|
]);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Js(e, t) {
|
|
1683
1683
|
const { chainId: s, gas: n, data: r, nonce: i, to: o, value: a, accessList: c, gasPrice: l } = e;
|
|
1684
1684
|
js(e);
|
|
1685
1685
|
const h = ne(c), d = [
|
|
@@ -1698,9 +1698,9 @@ function Ys(e, t) {
|
|
|
1698
1698
|
z(d)
|
|
1699
1699
|
]);
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function Qs(e, t) {
|
|
1702
1702
|
const { chainId: s = 0, gas: n, data: r, nonce: i, to: o, value: a, gasPrice: c } = e;
|
|
1703
|
-
|
|
1703
|
+
Ks(e);
|
|
1704
1704
|
let l = [
|
|
1705
1705
|
i ? f(i) : "0x",
|
|
1706
1706
|
c ? f(c) : "0x",
|
|
@@ -1717,9 +1717,9 @@ function Js(e, t) {
|
|
|
1717
1717
|
return BigInt(s * 2) + BigInt(35n + t.v - 27n);
|
|
1718
1718
|
const p = 27n + (t.v === 27n ? 0n : 1n);
|
|
1719
1719
|
if (t.v !== p)
|
|
1720
|
-
throw new
|
|
1720
|
+
throw new os({ v: t.v });
|
|
1721
1721
|
return p;
|
|
1722
|
-
})(), d =
|
|
1722
|
+
})(), d = C(t.r), b = C(t.s);
|
|
1723
1723
|
l = [
|
|
1724
1724
|
...l,
|
|
1725
1725
|
f(h),
|
|
@@ -1742,10 +1742,10 @@ function X(e, t) {
|
|
|
1742
1742
|
return [];
|
|
1743
1743
|
if (typeof n > "u" && typeof r > "u")
|
|
1744
1744
|
return [];
|
|
1745
|
-
const i =
|
|
1745
|
+
const i = C(s.r), o = C(s.s);
|
|
1746
1746
|
return [typeof r == "number" ? r ? f(1) : "0x" : n === 0n ? "0x" : n === 1n ? f(1) : n === 27n ? "0x" : f(1), i === "0x00" ? "0x" : i, o === "0x00" ? "0x" : o];
|
|
1747
1747
|
}
|
|
1748
|
-
const
|
|
1748
|
+
const en = {
|
|
1749
1749
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
1750
1750
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
1751
1751
|
l2CrossDomainMessenger: {
|
|
@@ -1756,8 +1756,8 @@ const Qs = {
|
|
|
1756
1756
|
l2ToL1MessagePasser: {
|
|
1757
1757
|
address: "0x4200000000000000000000000000000000000016"
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1760
|
-
block: /* @__PURE__ */
|
|
1759
|
+
}, tn = {
|
|
1760
|
+
block: /* @__PURE__ */ Bs({
|
|
1761
1761
|
format(e) {
|
|
1762
1762
|
var s;
|
|
1763
1763
|
return {
|
|
@@ -1771,13 +1771,13 @@ const Qs = {
|
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
1773
|
}),
|
|
1774
|
-
transaction: /* @__PURE__ */
|
|
1774
|
+
transaction: /* @__PURE__ */ ys({
|
|
1775
1775
|
format(e) {
|
|
1776
1776
|
const t = {};
|
|
1777
1777
|
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? G(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
|
|
1778
1778
|
}
|
|
1779
1779
|
}),
|
|
1780
|
-
transactionReceipt: /* @__PURE__ */
|
|
1780
|
+
transactionReceipt: /* @__PURE__ */ Vs({
|
|
1781
1781
|
format(e) {
|
|
1782
1782
|
return {
|
|
1783
1783
|
l1GasPrice: e.l1GasPrice ? G(e.l1GasPrice) : null,
|
|
@@ -1788,14 +1788,14 @@ const Qs = {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
})
|
|
1790
1790
|
};
|
|
1791
|
-
function
|
|
1792
|
-
return
|
|
1791
|
+
function sn(e, t) {
|
|
1792
|
+
return on(e) ? rn(e) : Xs(e, t);
|
|
1793
1793
|
}
|
|
1794
|
-
const
|
|
1795
|
-
transaction:
|
|
1794
|
+
const nn = {
|
|
1795
|
+
transaction: sn
|
|
1796
1796
|
};
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1797
|
+
function rn(e) {
|
|
1798
|
+
an(e);
|
|
1799
1799
|
const { sourceHash: t, data: s, from: n, gas: r, isSystemTx: i, mint: o, to: a, value: c } = e, l = [
|
|
1800
1800
|
t,
|
|
1801
1801
|
n,
|
|
@@ -1811,21 +1811,21 @@ function nn(e) {
|
|
|
1811
1811
|
z(l)
|
|
1812
1812
|
]);
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function on(e) {
|
|
1815
1815
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function an(e) {
|
|
1818
1818
|
const { from: t, to: s } = e;
|
|
1819
1819
|
if (t && !T(t))
|
|
1820
|
-
throw new
|
|
1820
|
+
throw new I({ address: t });
|
|
1821
1821
|
if (s && !T(s))
|
|
1822
|
-
throw new
|
|
1822
|
+
throw new I({ address: s });
|
|
1823
1823
|
}
|
|
1824
1824
|
const w = {
|
|
1825
|
-
contracts:
|
|
1826
|
-
formatters:
|
|
1827
|
-
serializers:
|
|
1828
|
-
},
|
|
1825
|
+
contracts: en,
|
|
1826
|
+
formatters: tn,
|
|
1827
|
+
serializers: nn
|
|
1828
|
+
}, cn = 42161, rt = /* @__PURE__ */ x({
|
|
1829
1829
|
id: 33139,
|
|
1830
1830
|
name: "Ape Chain",
|
|
1831
1831
|
nativeCurrency: {
|
|
@@ -1852,7 +1852,7 @@ const w = {
|
|
|
1852
1852
|
blockCreated: 20889
|
|
1853
1853
|
}
|
|
1854
1854
|
},
|
|
1855
|
-
sourceId:
|
|
1855
|
+
sourceId: cn
|
|
1856
1856
|
}), it = /* @__PURE__ */ x({
|
|
1857
1857
|
id: 42161,
|
|
1858
1858
|
name: "Arbitrum One",
|
|
@@ -1922,7 +1922,7 @@ const w = {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
},
|
|
1924
1924
|
sourceId: D
|
|
1925
|
-
}),
|
|
1925
|
+
}), R = 11155111, at = /* @__PURE__ */ x({
|
|
1926
1926
|
...w,
|
|
1927
1927
|
id: 84532,
|
|
1928
1928
|
network: "base-sepolia",
|
|
@@ -1943,23 +1943,23 @@ const w = {
|
|
|
1943
1943
|
contracts: {
|
|
1944
1944
|
...w.contracts,
|
|
1945
1945
|
disputeGameFactory: {
|
|
1946
|
-
[
|
|
1946
|
+
[R]: {
|
|
1947
1947
|
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
1948
1948
|
}
|
|
1949
1949
|
},
|
|
1950
1950
|
l2OutputOracle: {
|
|
1951
|
-
[
|
|
1951
|
+
[R]: {
|
|
1952
1952
|
address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
|
|
1953
1953
|
}
|
|
1954
1954
|
},
|
|
1955
1955
|
portal: {
|
|
1956
|
-
[
|
|
1956
|
+
[R]: {
|
|
1957
1957
|
address: "0x49f53e41452c74589e85ca1677426ba426459e85",
|
|
1958
1958
|
blockCreated: 4446677
|
|
1959
1959
|
}
|
|
1960
1960
|
},
|
|
1961
1961
|
l1StandardBridge: {
|
|
1962
|
-
[
|
|
1962
|
+
[R]: {
|
|
1963
1963
|
address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
|
|
1964
1964
|
blockCreated: 4446677
|
|
1965
1965
|
}
|
|
@@ -1970,8 +1970,40 @@ const w = {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
},
|
|
1972
1972
|
testnet: !0,
|
|
1973
|
-
sourceId:
|
|
1973
|
+
sourceId: R
|
|
1974
1974
|
}), ct = /* @__PURE__ */ x({
|
|
1975
|
+
id: 80094,
|
|
1976
|
+
name: "Berachain",
|
|
1977
|
+
nativeCurrency: {
|
|
1978
|
+
decimals: 18,
|
|
1979
|
+
name: "BERA Token",
|
|
1980
|
+
symbol: "BERA"
|
|
1981
|
+
},
|
|
1982
|
+
contracts: {
|
|
1983
|
+
multicall3: {
|
|
1984
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
1985
|
+
blockCreated: 0
|
|
1986
|
+
},
|
|
1987
|
+
ensRegistry: {
|
|
1988
|
+
address: "0x5b22280886a2f5e09a49bea7e320eab0e5320e28",
|
|
1989
|
+
blockCreated: 877007
|
|
1990
|
+
},
|
|
1991
|
+
ensUniversalResolver: {
|
|
1992
|
+
address: "0xddfb18888a9466688235887dec2a10c4f5effee9",
|
|
1993
|
+
blockCreated: 877008
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
rpcUrls: {
|
|
1997
|
+
default: { http: ["https://rpc.berachain.com"] }
|
|
1998
|
+
},
|
|
1999
|
+
blockExplorers: {
|
|
2000
|
+
default: {
|
|
2001
|
+
name: "Berascan",
|
|
2002
|
+
url: "https://berascan.com"
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
testnet: !1
|
|
2006
|
+
}), ut = /* @__PURE__ */ x({
|
|
1975
2007
|
id: 56,
|
|
1976
2008
|
name: "BNB Smart Chain",
|
|
1977
2009
|
nativeCurrency: {
|
|
@@ -1995,7 +2027,7 @@ const w = {
|
|
|
1995
2027
|
blockCreated: 15921452
|
|
1996
2028
|
}
|
|
1997
2029
|
}
|
|
1998
|
-
}),
|
|
2030
|
+
}), lt = /* @__PURE__ */ x({
|
|
1999
2031
|
id: 17e3,
|
|
2000
2032
|
name: "Holesky",
|
|
2001
2033
|
nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2026,7 +2058,7 @@ const w = {
|
|
|
2026
2058
|
}
|
|
2027
2059
|
},
|
|
2028
2060
|
testnet: !0
|
|
2029
|
-
}),
|
|
2061
|
+
}), dt = /* @__PURE__ */ x({
|
|
2030
2062
|
id: 1,
|
|
2031
2063
|
name: "Ethereum",
|
|
2032
2064
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2055,7 +2087,7 @@ const w = {
|
|
|
2055
2087
|
blockCreated: 14353601
|
|
2056
2088
|
}
|
|
2057
2089
|
}
|
|
2058
|
-
}),
|
|
2090
|
+
}), j = 11155111, ft = /* @__PURE__ */ x({
|
|
2059
2091
|
...w,
|
|
2060
2092
|
id: 11155420,
|
|
2061
2093
|
name: "OP Sepolia",
|
|
@@ -2075,12 +2107,12 @@ const w = {
|
|
|
2075
2107
|
contracts: {
|
|
2076
2108
|
...w.contracts,
|
|
2077
2109
|
disputeGameFactory: {
|
|
2078
|
-
[
|
|
2110
|
+
[j]: {
|
|
2079
2111
|
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
2080
2112
|
}
|
|
2081
2113
|
},
|
|
2082
2114
|
l2OutputOracle: {
|
|
2083
|
-
[
|
|
2115
|
+
[j]: {
|
|
2084
2116
|
address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
|
|
2085
2117
|
}
|
|
2086
2118
|
},
|
|
@@ -2089,19 +2121,19 @@ const w = {
|
|
|
2089
2121
|
blockCreated: 1620204
|
|
2090
2122
|
},
|
|
2091
2123
|
portal: {
|
|
2092
|
-
[
|
|
2124
|
+
[j]: {
|
|
2093
2125
|
address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
|
|
2094
2126
|
}
|
|
2095
2127
|
},
|
|
2096
2128
|
l1StandardBridge: {
|
|
2097
|
-
[
|
|
2129
|
+
[j]: {
|
|
2098
2130
|
address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
|
|
2099
2131
|
}
|
|
2100
2132
|
}
|
|
2101
2133
|
},
|
|
2102
2134
|
testnet: !0,
|
|
2103
|
-
sourceId:
|
|
2104
|
-
}),
|
|
2135
|
+
sourceId: j
|
|
2136
|
+
}), ht = /* @__PURE__ */ x({
|
|
2105
2137
|
id: 11155111,
|
|
2106
2138
|
name: "Sepolia",
|
|
2107
2139
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2129,7 +2161,7 @@ const w = {
|
|
|
2129
2161
|
}
|
|
2130
2162
|
},
|
|
2131
2163
|
testnet: !0
|
|
2132
|
-
}), K = 1,
|
|
2164
|
+
}), K = 1, pt = /* @__PURE__ */ x({
|
|
2133
2165
|
...w,
|
|
2134
2166
|
id: 1868,
|
|
2135
2167
|
name: "Soneium Mainnet",
|
|
@@ -2176,7 +2208,7 @@ const w = {
|
|
|
2176
2208
|
}
|
|
2177
2209
|
},
|
|
2178
2210
|
sourceId: K
|
|
2179
|
-
}), ae = 1,
|
|
2211
|
+
}), ae = 1, bt = /* @__PURE__ */ x({
|
|
2180
2212
|
...w,
|
|
2181
2213
|
id: 48900,
|
|
2182
2214
|
name: "Zircuit Mainnet",
|
|
@@ -2222,99 +2254,100 @@ const w = {
|
|
|
2222
2254
|
},
|
|
2223
2255
|
testnet: !1
|
|
2224
2256
|
});
|
|
2225
|
-
var m = ((e) => (e[e.Mainnet =
|
|
2226
|
-
const
|
|
2227
|
-
[m.Mainnet]:
|
|
2228
|
-
[m.Holesky]:
|
|
2257
|
+
var m = ((e) => (e[e.Mainnet = dt.id] = "Mainnet", e[e.Holesky = lt.id] = "Holesky", e[e.Base = ot.id] = "Base", e[e.Bsc = ut.id] = "Bsc", e[e.Arbitrum = it.id] = "Arbitrum", e[e.ApeChain = rt.id] = "ApeChain", e[e.Soneium = pt.id] = "Soneium", e[e.Sepolia = ht.id] = "Sepolia", e[e.OptimismSepolia = ft.id] = "OptimismSepolia", e[e.BaseSepolia = at.id] = "BaseSepolia", e[e.Zircuit = bt.id] = "Zircuit", e[e.Berachain = ct.id] = "Berachain", e))(m || {});
|
|
2258
|
+
const $n = {
|
|
2259
|
+
[m.Mainnet]: dt,
|
|
2260
|
+
[m.Holesky]: lt,
|
|
2229
2261
|
[m.Base]: ot,
|
|
2230
|
-
[m.Bsc]:
|
|
2262
|
+
[m.Bsc]: ut,
|
|
2231
2263
|
[m.Arbitrum]: it,
|
|
2232
2264
|
[m.ApeChain]: rt,
|
|
2233
|
-
[m.Soneium]:
|
|
2234
|
-
[m.Sepolia]:
|
|
2235
|
-
[m.OptimismSepolia]:
|
|
2265
|
+
[m.Soneium]: pt,
|
|
2266
|
+
[m.Sepolia]: ht,
|
|
2267
|
+
[m.OptimismSepolia]: ft,
|
|
2236
2268
|
[m.BaseSepolia]: at,
|
|
2237
|
-
[m.Zircuit]:
|
|
2269
|
+
[m.Zircuit]: bt,
|
|
2270
|
+
[m.Berachain]: ct
|
|
2238
2271
|
};
|
|
2239
2272
|
export {
|
|
2240
|
-
|
|
2273
|
+
xn as $,
|
|
2241
2274
|
U as A,
|
|
2242
2275
|
u as B,
|
|
2243
2276
|
m as C,
|
|
2244
|
-
|
|
2277
|
+
Re as D,
|
|
2245
2278
|
Ze as E,
|
|
2246
2279
|
_e as F,
|
|
2247
|
-
|
|
2280
|
+
Jt as G,
|
|
2248
2281
|
Le as H,
|
|
2249
|
-
|
|
2282
|
+
I,
|
|
2250
2283
|
Ke as J,
|
|
2251
|
-
|
|
2252
|
-
|
|
2284
|
+
F as K,
|
|
2285
|
+
is as L,
|
|
2253
2286
|
f as M,
|
|
2254
2287
|
z as N,
|
|
2255
2288
|
te as O,
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2289
|
+
ds as P,
|
|
2290
|
+
fs as Q,
|
|
2291
|
+
hs as R,
|
|
2292
|
+
ps as S,
|
|
2293
|
+
bs as T,
|
|
2294
|
+
ms as U,
|
|
2295
|
+
$n as V,
|
|
2296
|
+
xs as W,
|
|
2297
|
+
gs as X,
|
|
2265
2298
|
qe as Y,
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2299
|
+
Bn as Z,
|
|
2300
|
+
un as _,
|
|
2301
|
+
fn as a,
|
|
2269
2302
|
de as a0,
|
|
2270
|
-
|
|
2303
|
+
Es as a1,
|
|
2271
2304
|
Je as a2,
|
|
2272
|
-
|
|
2305
|
+
zs as a3,
|
|
2273
2306
|
Qe as a4,
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2307
|
+
Hs as a5,
|
|
2308
|
+
Os as a6,
|
|
2309
|
+
es as a7,
|
|
2310
|
+
Ns as a8,
|
|
2311
|
+
Pn as a9,
|
|
2312
|
+
Tn as aa,
|
|
2280
2313
|
In as ab,
|
|
2281
|
-
|
|
2282
|
-
|
|
2314
|
+
vn as ac,
|
|
2315
|
+
gn as ad,
|
|
2283
2316
|
Me as ae,
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2317
|
+
ke as af,
|
|
2318
|
+
Qt as ag,
|
|
2319
|
+
yn as ah,
|
|
2287
2320
|
fe as ai,
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2321
|
+
wn as aj,
|
|
2322
|
+
_s as ak,
|
|
2323
|
+
Wt as al,
|
|
2324
|
+
dn as am,
|
|
2325
|
+
bn as an,
|
|
2326
|
+
En as ao,
|
|
2294
2327
|
Q as b,
|
|
2295
|
-
|
|
2328
|
+
mn as c,
|
|
2296
2329
|
ee as d,
|
|
2297
|
-
|
|
2298
|
-
|
|
2330
|
+
hn as e,
|
|
2331
|
+
v as f,
|
|
2299
2332
|
ze as g,
|
|
2300
2333
|
T as h,
|
|
2301
2334
|
W as i,
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2335
|
+
Bt as j,
|
|
2336
|
+
Xt as k,
|
|
2337
|
+
gt as l,
|
|
2338
|
+
vt as m,
|
|
2306
2339
|
Ue as n,
|
|
2307
|
-
|
|
2308
|
-
|
|
2340
|
+
Yt as o,
|
|
2341
|
+
mt as p,
|
|
2309
2342
|
O as q,
|
|
2310
|
-
|
|
2311
|
-
|
|
2343
|
+
pn as r,
|
|
2344
|
+
Cs as s,
|
|
2312
2345
|
ce as t,
|
|
2313
|
-
|
|
2346
|
+
k as u,
|
|
2314
2347
|
$ as v,
|
|
2315
2348
|
Y as w,
|
|
2316
|
-
|
|
2317
|
-
|
|
2349
|
+
C as x,
|
|
2350
|
+
ln as y,
|
|
2318
2351
|
G as z
|
|
2319
2352
|
};
|
|
2320
|
-
//# sourceMappingURL=constants-
|
|
2353
|
+
//# sourceMappingURL=constants-LC89CXNv.js.map
|