@pufferfinance/puffer-sdk 1.25.1 → 1.25.3

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.
Files changed (100) hide show
  1. package/dist/api/puffer-client-helpers.cjs +1 -1
  2. package/dist/api/puffer-client-helpers.js +3 -3
  3. package/dist/api/puffer-client.cjs +1 -1
  4. package/dist/api/puffer-client.js +2 -2
  5. package/dist/{ccip-w5ez1DCx.js → ccip-C76-YhQK.js} +4 -4
  6. package/dist/{ccip-w5ez1DCx.js.map → ccip-C76-YhQK.js.map} +1 -1
  7. package/dist/{ccip-FdkpGaX4.cjs → ccip-CEodLZ4s.cjs} +2 -2
  8. package/dist/{ccip-FdkpGaX4.cjs.map → ccip-CEodLZ4s.cjs.map} +1 -1
  9. package/dist/chains/constants.cjs +1 -1
  10. package/dist/chains/constants.d.ts +2 -1
  11. package/dist/chains/constants.js +1 -1
  12. package/dist/{constants-BweLzNUt.js → constants-C9YZ6Ewc.js} +302 -274
  13. package/dist/constants-C9YZ6Ewc.js.map +1 -0
  14. package/dist/{constants-JN89aXws.cjs → constants-CxSgz27h.cjs} +6 -6
  15. package/dist/constants-CxSgz27h.cjs.map +1 -0
  16. package/dist/contracts/addresses.cjs +1 -1
  17. package/dist/contracts/addresses.js +1 -1
  18. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  19. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  20. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  21. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  22. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  23. package/dist/contracts/handlers/distributor-handler.js +2 -2
  24. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  25. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  26. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  27. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  28. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
  29. package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
  30. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  31. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  32. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  33. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  34. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  35. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  36. package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
  37. package/dist/contracts/handlers/lagoon-vault-handler.cjs.map +1 -1
  38. package/dist/contracts/handlers/lagoon-vault-handler.d.ts +16 -0
  39. package/dist/contracts/handlers/lagoon-vault-handler.js +25 -5
  40. package/dist/contracts/handlers/lagoon-vault-handler.js.map +1 -1
  41. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  42. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  43. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  44. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  45. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  46. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  47. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  48. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  49. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  50. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  51. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  52. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  53. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  54. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  55. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  56. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  57. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  58. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  59. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  60. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  61. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  62. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  63. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  64. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  65. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  66. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  67. package/dist/contracts/tokens.cjs +1 -1
  68. package/dist/contracts/tokens.js +1 -1
  69. package/dist/contracts/vaults-addresses.cjs +1 -1
  70. package/dist/contracts/vaults-addresses.cjs.map +1 -1
  71. package/dist/contracts/vaults-addresses.d.ts +3 -0
  72. package/dist/contracts/vaults-addresses.js +4 -1
  73. package/dist/contracts/vaults-addresses.js.map +1 -1
  74. package/dist/{createWalletClient-LeyDLKOH.cjs → createWalletClient-Cct6ojqI.cjs} +2 -2
  75. package/dist/{createWalletClient-LeyDLKOH.cjs.map → createWalletClient-Cct6ojqI.cjs.map} +1 -1
  76. package/dist/{createWalletClient-CYva1_XM.js → createWalletClient-DAuQCrLq.js} +5 -5
  77. package/dist/{createWalletClient-CYva1_XM.js.map → createWalletClient-DAuQCrLq.js.map} +1 -1
  78. package/dist/{getContract-BES7gSby.js → getContract-DEPNMZxg.js} +2 -2
  79. package/dist/{getContract-BES7gSby.js.map → getContract-DEPNMZxg.js.map} +1 -1
  80. package/dist/{getContract-F-fd_vf7.cjs → getContract-DUA3M2pm.cjs} +2 -2
  81. package/dist/{getContract-F-fd_vf7.cjs.map → getContract-DUA3M2pm.cjs.map} +1 -1
  82. package/dist/{localBatchGatewayRequest-CCdxn5t3.js → localBatchGatewayRequest-C0QtijkB.js} +3 -3
  83. package/dist/{localBatchGatewayRequest-CCdxn5t3.js.map → localBatchGatewayRequest-C0QtijkB.js.map} +1 -1
  84. package/dist/{localBatchGatewayRequest-DCWU6kQW.cjs → localBatchGatewayRequest-CKLnLqib.cjs} +2 -2
  85. package/dist/{localBatchGatewayRequest-DCWU6kQW.cjs.map → localBatchGatewayRequest-CKLnLqib.cjs.map} +1 -1
  86. package/dist/main.cjs +1 -1
  87. package/dist/main.js +1 -1
  88. package/dist/{secp256k1-DGP4Y7VW.js → secp256k1-ClOw2ksU.js} +2 -2
  89. package/dist/{secp256k1-DGP4Y7VW.js.map → secp256k1-ClOw2ksU.js.map} +1 -1
  90. package/dist/{secp256k1-QOxLqUEc.cjs → secp256k1-YUzyTLhP.cjs} +2 -2
  91. package/dist/{secp256k1-QOxLqUEc.cjs.map → secp256k1-YUzyTLhP.cjs.map} +1 -1
  92. package/dist/utils/version.cjs +1 -1
  93. package/dist/utils/version.js +1 -1
  94. package/dist/{writeContract-Cqc9vxbU.cjs → writeContract-BfAYISeL.cjs} +4 -4
  95. package/dist/{writeContract-Cqc9vxbU.cjs.map → writeContract-BfAYISeL.cjs.map} +1 -1
  96. package/dist/{writeContract-QAArm5iD.js → writeContract-DkC9wV5p.js} +4 -4
  97. package/dist/{writeContract-QAArm5iD.js.map → writeContract-DkC9wV5p.js.map} +1 -1
  98. package/package.json +1 -1
  99. package/dist/constants-BweLzNUt.js.map +0 -1
  100. package/dist/constants-JN89aXws.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  function Y(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 v(e) {
4
+ function I(e) {
5
5
  return Y(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
6
6
  }
7
7
  const Ue = "2.33.1";
@@ -57,11 +57,11 @@ class u extends Error {
57
57
  }), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version = Ue;
58
58
  }
59
59
  walk(t) {
60
- return Ce(this, t);
60
+ return Fe(this, t);
61
61
  }
62
62
  }
63
- function Ce(e, t) {
64
- return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Ce(e.cause, t) : t ? null : e;
63
+ function Fe(e, t) {
64
+ return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Fe(e.cause, t) : t ? null : e;
65
65
  }
66
66
  class ze extends u {
67
67
  constructor({ offset: t, position: s, size: n }) {
@@ -73,15 +73,15 @@ class ke extends u {
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 gn extends u {
76
+ class yn 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 M(e, { dir: t, size: s = 32 } = {}) {
82
- return typeof e == "string" ? Et(e, { dir: t, size: s }) : Bt(e, { dir: t, size: s });
82
+ return typeof e == "string" ? Bt(e, { dir: t, size: s }) : Pt(e, { dir: t, size: s });
83
83
  }
84
- function Et(e, { dir: t, size: s = 32 } = {}) {
84
+ function Bt(e, { dir: t, size: s = 32 } = {}) {
85
85
  if (s === null)
86
86
  return e;
87
87
  const n = e.replace("0x", "");
@@ -93,7 +93,7 @@ function Et(e, { dir: t, size: s = 32 } = {}) {
93
93
  });
94
94
  return `0x${n[t === "right" ? "padEnd" : "padStart"](s * 2, "0")}`;
95
95
  }
96
- function Bt(e, { dir: t, size: s = 32 } = {}) {
96
+ function Pt(e, { dir: t, size: s = 32 } = {}) {
97
97
  if (s === null)
98
98
  return e;
99
99
  if (e.length > s)
@@ -109,12 +109,12 @@ function Bt(e, { dir: t, size: s = 32 } = {}) {
109
109
  }
110
110
  return n;
111
111
  }
112
- class Pt extends u {
112
+ class vt 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 yn extends u {
117
+ class wn 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"
@@ -126,7 +126,7 @@ class It extends u {
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 vt extends u {
129
+ class Tt 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
  }
@@ -138,9 +138,9 @@ function U(e, { dir: t = "left" } = {}) {
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
140
  function H(e, { size: t }) {
141
- if (v(e) > t)
142
- throw new vt({
143
- givenSize: v(e),
141
+ if (I(e) > t)
142
+ throw new Tt({
143
+ givenSize: I(e),
144
144
  maxSize: t
145
145
  });
146
146
  }
@@ -153,7 +153,7 @@ function O(e, t = {}) {
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 wn(e, t = {}) {
156
+ function En(e, t = {}) {
157
157
  let s = e;
158
158
  if (t.size && (H(s, { size: t.size }), s = U(s)), U(s) === "0x00")
159
159
  return !1;
@@ -164,18 +164,18 @@ function wn(e, t = {}) {
164
164
  function te(e, t = {}) {
165
165
  return Number(O(e, t));
166
166
  }
167
- const Tt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
167
+ const At = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
168
168
  function N(e, t = {}) {
169
- return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ? Ft(e, t) : typeof e == "boolean" ? At(e, t) : $(e, t);
169
+ return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ? Ut(e, t) : typeof e == "boolean" ? $t(e, t) : $(e, t);
170
170
  }
171
- function At(e, t = {}) {
171
+ function $t(e, t = {}) {
172
172
  const s = `0x${Number(e)}`;
173
173
  return typeof t.size == "number" ? (H(s, { size: t.size }), M(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 += Tt[e[r]];
178
+ s += At[e[r]];
179
179
  const n = `0x${s}`;
180
180
  return typeof t.size == "number" ? (H(n, { size: t.size }), M(n, { dir: "right", size: t.size })) : n;
181
181
  }
@@ -186,7 +186,7 @@ function f(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 Pt({
189
+ throw new vt({
190
190
  max: i ? `${i}${c}` : void 0,
191
191
  min: `${o}${c}`,
192
192
  signed: s,
@@ -197,16 +197,16 @@ function f(e, t = {}) {
197
197
  const a = `0x${(s && r < 0 ? (1n << BigInt(n * 8)) + BigInt(r) : r).toString(16)}`;
198
198
  return n ? M(a, { size: n }) : a;
199
199
  }
200
- const $t = /* @__PURE__ */ new TextEncoder();
201
- function Ft(e, t = {}) {
202
- const s = $t.encode(e);
200
+ const Ct = /* @__PURE__ */ new TextEncoder();
201
+ function Ut(e, t = {}) {
202
+ const s = Ct.encode(e);
203
203
  return $(s, t);
204
204
  }
205
- const Ut = /* @__PURE__ */ new TextEncoder();
205
+ const Ft = /* @__PURE__ */ new TextEncoder();
206
206
  function Se(e, t = {}) {
207
- return typeof e == "number" || typeof e == "bigint" ? zt(e, t) : typeof e == "boolean" ? Ct(e, t) : Y(e) ? z(e, t) : He(e, t);
207
+ return typeof e == "number" || typeof e == "bigint" ? kt(e, t) : typeof e == "boolean" ? zt(e, t) : Y(e) ? z(e, t) : He(e, t);
208
208
  }
209
- function Ct(e, t = {}) {
209
+ function zt(e, t = {}) {
210
210
  const s = new Uint8Array(1);
211
211
  return s[0] = Number(e), typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { size: t.size })) : s;
212
212
  }
@@ -240,30 +240,30 @@ function z(e, t = {}) {
240
240
  }
241
241
  return i;
242
242
  }
243
- function zt(e, t) {
243
+ function kt(e, t) {
244
244
  const s = f(e, t);
245
245
  return z(s);
246
246
  }
247
247
  function He(e, t = {}) {
248
- const s = Ut.encode(e);
248
+ const s = Ft.encode(e);
249
249
  return typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { dir: "right", size: t.size })) : s;
250
250
  }
251
251
  const ee = /* @__PURE__ */ BigInt(2 ** 32 - 1), Be = /* @__PURE__ */ BigInt(32);
252
- function kt(e, t = !1) {
252
+ function St(e, t = !1) {
253
253
  return t ? { h: Number(e & ee), l: Number(e >> Be & ee) } : { h: Number(e >> Be & ee) | 0, l: Number(e & ee) | 0 };
254
254
  }
255
- function St(e, t = !1) {
255
+ function Ht(e, t = !1) {
256
256
  const s = e.length;
257
257
  let n = new Uint32Array(s), r = new Uint32Array(s);
258
258
  for (let i = 0; i < s; i++) {
259
- const { h: o, l: a } = kt(e[i], t);
259
+ const { h: o, l: a } = St(e[i], t);
260
260
  [n[i], r[i]] = [o, a];
261
261
  }
262
262
  return [n, r];
263
263
  }
264
- const Ht = (e, t, s) => e << s | t >>> 32 - s, Lt = (e, t, s) => t << s | e >>> 32 - s, Gt = (e, t, s) => t << s - 32 | e >>> 64 - s, Ot = (e, t, s) => e << s - 32 | t >>> 64 - s, G = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
264
+ const Lt = (e, t, s) => e << s | t >>> 32 - s, Gt = (e, t, s) => t << s | e >>> 32 - s, Ot = (e, t, s) => t << s - 32 | e >>> 64 - s, Nt = (e, t, s) => e << s - 32 | t >>> 64 - s, G = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
265
265
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
266
- function Nt(e) {
266
+ function Mt(e) {
267
267
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
268
268
  }
269
269
  function se(e) {
@@ -271,12 +271,12 @@ function se(e) {
271
271
  throw new Error("positive integer expected, got " + e);
272
272
  }
273
273
  function k(e, ...t) {
274
- if (!Nt(e))
274
+ if (!Mt(e))
275
275
  throw new Error("Uint8Array expected");
276
276
  if (t.length > 0 && !t.includes(e.length))
277
277
  throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
278
278
  }
279
- function En(e) {
279
+ function Bn(e) {
280
280
  if (typeof e != "function" || typeof e.create != "function")
281
281
  throw new Error("Hash should be wrapped by utils.createHasher");
282
282
  se(e.outputLen), se(e.blockLen);
@@ -293,7 +293,7 @@ function Le(e, t) {
293
293
  if (e.length < s)
294
294
  throw new Error("digestInto() expects output buffer of length at least " + s);
295
295
  }
296
- function Mt(e) {
296
+ function _t(e) {
297
297
  return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
298
298
  }
299
299
  function Z(...e) {
@@ -306,26 +306,26 @@ function ae(e) {
306
306
  function g(e, t) {
307
307
  return e << 32 - t | e >>> t;
308
308
  }
309
- const _t = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
310
- function Vt(e) {
309
+ const Vt = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
310
+ function Dt(e) {
311
311
  return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
312
312
  }
313
- function Dt(e) {
313
+ function Rt(e) {
314
314
  for (let t = 0; t < e.length; t++)
315
- e[t] = Vt(e[t]);
315
+ e[t] = Dt(e[t]);
316
316
  return e;
317
317
  }
318
- const Pe = _t ? (e) => e : Dt, Ge = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", Rt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
319
- function Bn(e) {
318
+ const Pe = Vt ? (e) => e : Rt, Ge = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", jt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
319
+ function Pn(e) {
320
320
  if (k(e), Ge)
321
321
  return e.toHex();
322
322
  let t = "";
323
323
  for (let s = 0; s < e.length; s++)
324
- t += Rt[e[s]];
324
+ t += jt[e[s]];
325
325
  return t;
326
326
  }
327
327
  const w = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
328
- function Ie(e) {
328
+ function ve(e) {
329
329
  if (e >= w._0 && e <= w._9)
330
330
  return e - w._0;
331
331
  if (e >= w.A && e <= w.F)
@@ -333,7 +333,7 @@ function Ie(e) {
333
333
  if (e >= w.a && e <= w.f)
334
334
  return e - (w.a - 10);
335
335
  }
336
- function Pn(e) {
336
+ function vn(e) {
337
337
  if (typeof e != "string")
338
338
  throw new Error("hex string expected, got " + typeof e);
339
339
  if (Ge)
@@ -343,7 +343,7 @@ function Pn(e) {
343
343
  throw new Error("hex string expected, got unpadded hex of length " + t);
344
344
  const n = new Uint8Array(s);
345
345
  for (let r = 0, i = 0; r < s; r++, i += 2) {
346
- const o = Ie(e.charCodeAt(i)), a = Ie(e.charCodeAt(i + 1));
346
+ const o = ve(e.charCodeAt(i)), a = ve(e.charCodeAt(i + 1));
347
347
  if (o === void 0 || a === void 0) {
348
348
  const c = e[i] + e[i + 1];
349
349
  throw new Error('hex string expected, got non-hex character "' + c + '" at index ' + i);
@@ -352,13 +352,13 @@ function Pn(e) {
352
352
  }
353
353
  return n;
354
354
  }
355
- function jt(e) {
355
+ function Kt(e) {
356
356
  if (typeof e != "string")
357
357
  throw new Error("string expected");
358
358
  return new Uint8Array(new TextEncoder().encode(e));
359
359
  }
360
360
  function de(e) {
361
- return typeof e == "string" && (e = jt(e)), k(e), e;
361
+ return typeof e == "string" && (e = Kt(e)), k(e), e;
362
362
  }
363
363
  function In(...e) {
364
364
  let t = 0;
@@ -379,35 +379,35 @@ function Ne(e) {
379
379
  const t = (n) => e().update(de(n)).digest(), s = e();
380
380
  return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
381
381
  }
382
- function vn(e = 32) {
382
+ function Tn(e = 32) {
383
383
  if (G && typeof G.getRandomValues == "function")
384
384
  return G.getRandomValues(new Uint8Array(e));
385
385
  if (G && typeof G.randomBytes == "function")
386
386
  return Uint8Array.from(G.randomBytes(e));
387
387
  throw new Error("crypto.getRandomValues must be defined");
388
388
  }
389
- const Kt = BigInt(0), j = BigInt(1), Wt = BigInt(2), Xt = BigInt(7), qt = BigInt(256), Zt = BigInt(113), Me = [], _e = [], Ve = [];
389
+ const Wt = BigInt(0), j = BigInt(1), Xt = BigInt(2), qt = BigInt(7), Zt = BigInt(256), Yt = BigInt(113), Me = [], _e = [], Ve = [];
390
390
  for (let e = 0, t = j, s = 1, n = 0; e < 24; e++) {
391
391
  [s, n] = [n, (2 * s + 3 * n) % 5], Me.push(2 * (5 * n + s)), _e.push((e + 1) * (e + 2) / 2 % 64);
392
- let r = Kt;
392
+ let r = Wt;
393
393
  for (let i = 0; i < 7; i++)
394
- t = (t << j ^ (t >> Xt) * Zt) % qt, t & Wt && (r ^= j << (j << /* @__PURE__ */ BigInt(i)) - j);
394
+ t = (t << j ^ (t >> qt) * Yt) % Zt, t & Xt && (r ^= j << (j << /* @__PURE__ */ BigInt(i)) - j);
395
395
  Ve.push(r);
396
396
  }
397
- const De = St(Ve, !0), Yt = De[0], Jt = De[1], ve = (e, t, s) => s > 32 ? Gt(e, t, s) : Ht(e, t, s), Te = (e, t, s) => s > 32 ? Ot(e, t, s) : Lt(e, t, s);
398
- function Qt(e, t = 24) {
397
+ const De = Ht(Ve, !0), Jt = De[0], Qt = De[1], Ie = (e, t, s) => s > 32 ? Ot(e, t, s) : Lt(e, t, s), Te = (e, t, s) => s > 32 ? Nt(e, t, s) : Gt(e, t, s);
398
+ function es(e, t = 24) {
399
399
  const s = new Uint32Array(10);
400
400
  for (let n = 24 - t; n < 24; n++) {
401
401
  for (let o = 0; o < 10; o++)
402
402
  s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
403
403
  for (let o = 0; o < 10; o += 2) {
404
- const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = ve(l, h, 1) ^ s[a], b = Te(l, h, 1) ^ s[a + 1];
404
+ const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = Ie(l, h, 1) ^ s[a], b = Te(l, h, 1) ^ s[a + 1];
405
405
  for (let p = 0; p < 50; p += 10)
406
406
  e[o + p] ^= d, e[o + p + 1] ^= b;
407
407
  }
408
408
  let r = e[2], i = e[3];
409
409
  for (let o = 0; o < 24; o++) {
410
- const a = _e[o], c = ve(r, i, a), l = Te(r, i, a), h = Me[o];
410
+ const a = _e[o], c = Ie(r, i, a), l = Te(r, i, a), h = Me[o];
411
411
  r = e[h], i = e[h + 1], e[h] = c, e[h + 1] = l;
412
412
  }
413
413
  for (let o = 0; o < 50; o += 10) {
@@ -416,7 +416,7 @@ function Qt(e, t = 24) {
416
416
  for (let a = 0; a < 10; a++)
417
417
  e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
418
418
  }
419
- e[0] ^= Yt[n], e[1] ^= Jt[n];
419
+ e[0] ^= Jt[n], e[1] ^= Qt[n];
420
420
  }
421
421
  Z(s);
422
422
  }
@@ -425,13 +425,13 @@ class fe extends Oe {
425
425
  constructor(t, s, n, r = !1, i = 24) {
426
426
  if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = r, this.rounds = i, se(n), !(0 < t && t < 200))
427
427
  throw new Error("only keccak-f1600 function is supported");
428
- this.state = new Uint8Array(200), this.state32 = Mt(this.state);
428
+ this.state = new Uint8Array(200), this.state32 = _t(this.state);
429
429
  }
430
430
  clone() {
431
431
  return this._cloneInto();
432
432
  }
433
433
  keccak() {
434
- Pe(this.state32), Qt(this.state32, this.rounds), Pe(this.state32), this.posOut = 0, this.pos = 0;
434
+ Pe(this.state32), es(this.state32, this.rounds), Pe(this.state32), this.posOut = 0, this.pos = 0;
435
435
  }
436
436
  update(t) {
437
437
  ne(this), t = de(t), k(t);
@@ -485,9 +485,9 @@ class fe extends Oe {
485
485
  return t || (t = new fe(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;
486
486
  }
487
487
  }
488
- const es = (e, t, s) => Ne(() => new fe(t, e, s)), ts = es(1, 136, 256 / 8);
489
- function ss(e, t) {
490
- const s = t || "hex", n = ts(Y(e, { strict: !1 }) ? Se(e) : e);
488
+ const ts = (e, t, s) => Ne(() => new fe(t, e, s)), ss = ts(1, 136, 256 / 8);
489
+ function ns(e, t) {
490
+ const s = t || "hex", n = ss(Y(e, { strict: !1 }) ? Se(e) : e);
491
491
  return s === "bytes" ? n : N(n);
492
492
  }
493
493
  class T extends u {
@@ -526,29 +526,29 @@ const ce = /* @__PURE__ */ new Re(8192);
526
526
  function je(e, t) {
527
527
  if (ce.has(`${e}.${t}`))
528
528
  return ce.get(`${e}.${t}`);
529
- const s = e.substring(2).toLowerCase(), n = ss(He(s), "bytes"), r = s.split("");
529
+ const s = e.substring(2).toLowerCase(), n = ns(He(s), "bytes"), r = s.split("");
530
530
  for (let o = 0; o < 40; o += 2)
531
531
  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());
532
532
  const i = `0x${r.join("")}`;
533
533
  return ce.set(`${e}.${t}`, i), i;
534
534
  }
535
- function Tn(e, t) {
535
+ function An(e, t) {
536
536
  if (!A(e, { strict: !1 }))
537
537
  throw new T({ address: e });
538
538
  return je(e, t);
539
539
  }
540
- const ns = /^0x[a-fA-F0-9]{40}$/, ue = /* @__PURE__ */ new Re(8192);
540
+ const rs = /^0x[a-fA-F0-9]{40}$/, ue = /* @__PURE__ */ new Re(8192);
541
541
  function A(e, t) {
542
542
  const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
543
543
  if (ue.has(n))
544
544
  return ue.get(n);
545
- const r = ns.test(e) ? e.toLowerCase() === e ? !0 : s ? je(e) === e : !0 : !1;
545
+ const r = rs.test(e) ? e.toLowerCase() === e ? !0 : s ? je(e) === e : !0 : !1;
546
546
  return ue.set(n, r), r;
547
547
  }
548
- function An(e) {
549
- return typeof e[0] == "string" ? _(e) : rs(e);
548
+ function $n(e) {
549
+ return typeof e[0] == "string" ? _(e) : is(e);
550
550
  }
551
- function rs(e) {
551
+ function is(e) {
552
552
  let t = 0;
553
553
  for (const r of e)
554
554
  t += r.length;
@@ -561,35 +561,35 @@ function rs(e) {
561
561
  function _(e) {
562
562
  return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
563
563
  }
564
- function is(e, t, s, { strict: n } = {}) {
565
- return Y(e, { strict: !1 }) ? as(e, t, s, {
564
+ function os(e, t, s, { strict: n } = {}) {
565
+ return Y(e, { strict: !1 }) ? cs(e, t, s, {
566
566
  strict: n
567
- }) : os(e, t, s, {
567
+ }) : as(e, t, s, {
568
568
  strict: n
569
569
  });
570
570
  }
571
571
  function Ke(e, t) {
572
- if (typeof t == "number" && t > 0 && t > v(e) - 1)
572
+ if (typeof t == "number" && t > 0 && t > I(e) - 1)
573
573
  throw new ze({
574
574
  offset: t,
575
575
  position: "start",
576
- size: v(e)
576
+ size: I(e)
577
577
  });
578
578
  }
579
579
  function We(e, t, s) {
580
- if (typeof t == "number" && typeof s == "number" && v(e) !== s - t)
580
+ if (typeof t == "number" && typeof s == "number" && I(e) !== s - t)
581
581
  throw new ze({
582
582
  offset: s,
583
583
  position: "end",
584
- size: v(e)
584
+ size: I(e)
585
585
  });
586
586
  }
587
- function os(e, t, s, { strict: n } = {}) {
587
+ function as(e, t, s, { strict: n } = {}) {
588
588
  Ke(e, t);
589
589
  const r = e.slice(t, s);
590
590
  return n && We(r, t, s), r;
591
591
  }
592
- function as(e, t, s, { strict: n } = {}) {
592
+ function cs(e, t, s, { strict: n } = {}) {
593
593
  Ke(e, t);
594
594
  const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
595
595
  return n && We(r, t, s), r;
@@ -601,17 +601,17 @@ class Ae extends u {
601
601
  });
602
602
  }
603
603
  }
604
- class cs extends u {
604
+ class us extends u {
605
605
  constructor({ length: t, position: s }) {
606
606
  super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
607
607
  }
608
608
  }
609
- class us extends u {
609
+ class ls extends u {
610
610
  constructor({ count: t, limit: s }) {
611
611
  super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
612
612
  }
613
613
  }
614
- const ls = {
614
+ const ds = {
615
615
  bytes: new Uint8Array(),
616
616
  dataView: new DataView(new ArrayBuffer(0)),
617
617
  position: 0,
@@ -620,14 +620,14 @@ const ls = {
620
620
  recursiveReadLimit: Number.POSITIVE_INFINITY,
621
621
  assertReadLimit() {
622
622
  if (this.recursiveReadCount >= this.recursiveReadLimit)
623
- throw new us({
623
+ throw new ls({
624
624
  count: this.recursiveReadCount + 1,
625
625
  limit: this.recursiveReadLimit
626
626
  });
627
627
  },
628
628
  assertPosition(e) {
629
629
  if (e < 0 || e > this.bytes.length - 1)
630
- throw new cs({
630
+ throw new us({
631
631
  length: this.bytes.length,
632
632
  position: e
633
633
  });
@@ -734,13 +734,13 @@ const ls = {
734
734
  }
735
735
  };
736
736
  function Xe(e, { recursiveReadLimit: t = 8192 } = {}) {
737
- const s = Object.create(ls);
737
+ const s = Object.create(ds);
738
738
  return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
739
739
  }
740
- const ds = {
740
+ const fs = {
741
741
  gwei: 9,
742
742
  wei: 18
743
- }, fs = {
743
+ }, hs = {
744
744
  ether: -9,
745
745
  wei: 9
746
746
  };
@@ -754,18 +754,18 @@ function qe(e, t) {
754
754
  ];
755
755
  return i = i.replace(/(0+)$/, ""), `${n ? "-" : ""}${r || "0"}${i ? `.${i}` : ""}`;
756
756
  }
757
- function hs(e, t = "wei") {
758
- return qe(e, ds[t]);
759
- }
760
- function C(e, t = "wei") {
757
+ function ps(e, t = "wei") {
761
758
  return qe(e, fs[t]);
762
759
  }
760
+ function F(e, t = "wei") {
761
+ return qe(e, hs[t]);
762
+ }
763
763
  function Ze(e) {
764
764
  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);
765
765
  return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
766
766
  `);
767
767
  }
768
- class $n extends u {
768
+ class Cn extends u {
769
769
  constructor() {
770
770
  super([
771
771
  "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
@@ -774,14 +774,14 @@ class $n extends u {
774
774
  `), { name: "FeeConflictError" });
775
775
  }
776
776
  }
777
- class ps extends u {
777
+ class bs extends u {
778
778
  constructor({ v: t }) {
779
779
  super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
780
780
  name: "InvalidLegacyVError"
781
781
  });
782
782
  }
783
783
  }
784
- class bs extends u {
784
+ class ms extends u {
785
785
  constructor({ transaction: t }) {
786
786
  super("Cannot infer a transaction type from provided transaction.", {
787
787
  metaMessages: [
@@ -802,24 +802,24 @@ class bs extends u {
802
802
  });
803
803
  }
804
804
  }
805
- class ms extends u {
805
+ class xs extends u {
806
806
  constructor({ storageKey: t }) {
807
807
  super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
808
808
  }
809
809
  }
810
- class Fn extends u {
810
+ class Un extends u {
811
811
  constructor(t, { account: s, docsPath: n, chain: r, data: i, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: h, to: d, value: b }) {
812
812
  var B;
813
813
  const p = Ze({
814
814
  chain: r && `${r == null ? void 0 : r.name} (id: ${r == null ? void 0 : r.id})`,
815
815
  from: s == null ? void 0 : s.address,
816
816
  to: d,
817
- value: typeof b < "u" && `${hs(b)} ${((B = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : B.symbol) || "ETH"}`,
817
+ value: typeof b < "u" && `${ps(b)} ${((B = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : B.symbol) || "ETH"}`,
818
818
  data: i,
819
819
  gas: o,
820
- gasPrice: typeof a < "u" && `${C(a)} gwei`,
821
- maxFeePerGas: typeof c < "u" && `${C(c)} gwei`,
822
- maxPriorityFeePerGas: typeof l < "u" && `${C(l)} gwei`,
820
+ gasPrice: typeof a < "u" && `${F(a)} gwei`,
821
+ maxFeePerGas: typeof c < "u" && `${F(c)} gwei`,
822
+ maxPriorityFeePerGas: typeof l < "u" && `${F(l)} gwei`,
823
823
  nonce: h
824
824
  });
825
825
  super(t.shortMessage, {
@@ -839,7 +839,7 @@ class Fn extends u {
839
839
  }), this.cause = t;
840
840
  }
841
841
  }
842
- class Un extends u {
842
+ class Fn extends u {
843
843
  constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: r, index: i }) {
844
844
  let o = "Transaction";
845
845
  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.`, {
@@ -847,14 +847,14 @@ class Un extends u {
847
847
  });
848
848
  }
849
849
  }
850
- class Cn extends u {
850
+ class zn extends u {
851
851
  constructor({ hash: t }) {
852
852
  super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
853
853
  name: "TransactionReceiptNotFoundError"
854
854
  });
855
855
  }
856
856
  }
857
- class zn extends u {
857
+ class kn extends u {
858
858
  constructor({ hash: t }) {
859
859
  super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
860
860
  }
@@ -864,9 +864,9 @@ function S(e, t = "hex") {
864
864
  return s.encode(n), t === "hex" ? $(n.bytes) : n.bytes;
865
865
  }
866
866
  function Ye(e) {
867
- return Array.isArray(e) ? xs(e.map((t) => Ye(t))) : gs(e);
867
+ return Array.isArray(e) ? gs(e.map((t) => Ye(t))) : ys(e);
868
868
  }
869
- function xs(e) {
869
+ function gs(e) {
870
870
  const t = e.reduce((r, i) => r + i.length, 0), s = Je(t);
871
871
  return {
872
872
  length: t <= 55 ? 1 + t : 1 + s + t,
@@ -877,7 +877,7 @@ function xs(e) {
877
877
  }
878
878
  };
879
879
  }
880
- function gs(e) {
880
+ function ys(e) {
881
881
  const t = typeof e == "string" ? z(e) : e, s = Je(t.length);
882
882
  return {
883
883
  length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
@@ -921,7 +921,7 @@ Object.defineProperty(Qe, "nodeMessage", {
921
921
  });
922
922
  class re extends u {
923
923
  constructor({ cause: t, maxFeePerGas: s } = {}) {
924
- super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${C(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
924
+ super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
925
925
  cause: t,
926
926
  name: "FeeCapTooHighError"
927
927
  });
@@ -933,32 +933,32 @@ Object.defineProperty(re, "nodeMessage", {
933
933
  writable: !0,
934
934
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
935
935
  });
936
- class ys extends u {
936
+ class ws extends u {
937
937
  constructor({ cause: t, maxFeePerGas: s } = {}) {
938
- super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${C(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
938
+ super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
939
939
  cause: t,
940
940
  name: "FeeCapTooLowError"
941
941
  });
942
942
  }
943
943
  }
944
- Object.defineProperty(ys, "nodeMessage", {
944
+ Object.defineProperty(ws, "nodeMessage", {
945
945
  enumerable: !0,
946
946
  configurable: !0,
947
947
  writable: !0,
948
948
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
949
949
  });
950
- class ws extends u {
950
+ class Es extends u {
951
951
  constructor({ cause: t, nonce: s } = {}) {
952
952
  super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
953
953
  }
954
954
  }
955
- Object.defineProperty(ws, "nodeMessage", {
955
+ Object.defineProperty(Es, "nodeMessage", {
956
956
  enumerable: !0,
957
957
  configurable: !0,
958
958
  writable: !0,
959
959
  value: /nonce too high/
960
960
  });
961
- class Es extends u {
961
+ class Bs extends u {
962
962
  constructor({ cause: t, nonce: s } = {}) {
963
963
  super([
964
964
  `Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
@@ -967,24 +967,24 @@ class Es extends u {
967
967
  `), { cause: t, name: "NonceTooLowError" });
968
968
  }
969
969
  }
970
- Object.defineProperty(Es, "nodeMessage", {
970
+ Object.defineProperty(Bs, "nodeMessage", {
971
971
  enumerable: !0,
972
972
  configurable: !0,
973
973
  writable: !0,
974
974
  value: /nonce too low|transaction already imported|already known/
975
975
  });
976
- class Bs extends u {
976
+ class Ps extends u {
977
977
  constructor({ cause: t, nonce: s } = {}) {
978
978
  super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
979
979
  }
980
980
  }
981
- Object.defineProperty(Bs, "nodeMessage", {
981
+ Object.defineProperty(Ps, "nodeMessage", {
982
982
  enumerable: !0,
983
983
  configurable: !0,
984
984
  writable: !0,
985
985
  value: /nonce has max value/
986
986
  });
987
- class Ps extends u {
987
+ class vs extends u {
988
988
  constructor({ cause: t } = {}) {
989
989
  super([
990
990
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -1005,7 +1005,7 @@ class Ps extends u {
1005
1005
  });
1006
1006
  }
1007
1007
  }
1008
- Object.defineProperty(Ps, "nodeMessage", {
1008
+ Object.defineProperty(vs, "nodeMessage", {
1009
1009
  enumerable: !0,
1010
1010
  configurable: !0,
1011
1011
  writable: !0,
@@ -1025,7 +1025,7 @@ Object.defineProperty(Is, "nodeMessage", {
1025
1025
  writable: !0,
1026
1026
  value: /intrinsic gas too high|gas limit reached/
1027
1027
  });
1028
- class vs extends u {
1028
+ class Ts extends u {
1029
1029
  constructor({ cause: t, gas: s } = {}) {
1030
1030
  super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
1031
1031
  cause: t,
@@ -1033,13 +1033,13 @@ class vs extends u {
1033
1033
  });
1034
1034
  }
1035
1035
  }
1036
- Object.defineProperty(vs, "nodeMessage", {
1036
+ Object.defineProperty(Ts, "nodeMessage", {
1037
1037
  enumerable: !0,
1038
1038
  configurable: !0,
1039
1039
  writable: !0,
1040
1040
  value: /intrinsic gas too low/
1041
1041
  });
1042
- class Ts extends u {
1042
+ class As extends u {
1043
1043
  constructor({ cause: t }) {
1044
1044
  super("The transaction type is not supported for this chain.", {
1045
1045
  cause: t,
@@ -1047,7 +1047,7 @@ class Ts extends u {
1047
1047
  });
1048
1048
  }
1049
1049
  }
1050
- Object.defineProperty(Ts, "nodeMessage", {
1050
+ Object.defineProperty(As, "nodeMessage", {
1051
1051
  enumerable: !0,
1052
1052
  configurable: !0,
1053
1053
  writable: !0,
@@ -1056,7 +1056,7 @@ Object.defineProperty(Ts, "nodeMessage", {
1056
1056
  class et extends u {
1057
1057
  constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
1058
1058
  super([
1059
- `The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${C(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${C(n)} gwei` : ""}).`
1059
+ `The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${F(n)} gwei` : ""}).`
1060
1060
  ].join(`
1061
1061
  `), {
1062
1062
  cause: t,
@@ -1070,7 +1070,7 @@ Object.defineProperty(et, "nodeMessage", {
1070
1070
  writable: !0,
1071
1071
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
1072
1072
  });
1073
- class kn extends u {
1073
+ class Sn extends u {
1074
1074
  constructor({ cause: t }) {
1075
1075
  super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
1076
1076
  cause: t,
@@ -1120,7 +1120,7 @@ function be(e) {
1120
1120
  value: e.value ? BigInt(e.value) : void 0,
1121
1121
  v: e.v ? BigInt(e.v) : void 0
1122
1122
  };
1123
- return e.authorizationList && (t.authorizationList = $s(e.authorizationList)), t.yParity = (() => {
1123
+ return e.authorizationList && (t.authorizationList = Cs(e.authorizationList)), t.yParity = (() => {
1124
1124
  if (e.yParity)
1125
1125
  return Number(e.yParity);
1126
1126
  if (typeof t.v == "bigint") {
@@ -1133,8 +1133,8 @@ function be(e) {
1133
1133
  }
1134
1134
  })(), 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;
1135
1135
  }
1136
- const As = /* @__PURE__ */ he("transaction", be);
1137
- function $s(e) {
1136
+ const $s = /* @__PURE__ */ he("transaction", be);
1137
+ function Cs(e) {
1138
1138
  return e.map((t) => ({
1139
1139
  address: t.address,
1140
1140
  chainId: Number(t.chainId),
@@ -1144,7 +1144,7 @@ function $s(e) {
1144
1144
  yParity: Number(t.yParity)
1145
1145
  }));
1146
1146
  }
1147
- function Fs(e) {
1147
+ function Us(e) {
1148
1148
  const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : be(s));
1149
1149
  return {
1150
1150
  ...e,
@@ -1164,7 +1164,7 @@ function Fs(e) {
1164
1164
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
1165
1165
  };
1166
1166
  }
1167
- const Us = /* @__PURE__ */ he("block", Fs);
1167
+ const Fs = /* @__PURE__ */ he("block", Us);
1168
1168
  function st(e) {
1169
1169
  const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) => z(i)) : e.blobs, r = [];
1170
1170
  for (const i of n)
@@ -1179,19 +1179,19 @@ function nt(e) {
1179
1179
  }
1180
1180
  return s === "bytes" ? i : i.map((o) => $(o));
1181
1181
  }
1182
- function Cs(e, t, s, n) {
1182
+ function zs(e, t, s, n) {
1183
1183
  if (typeof e.setBigUint64 == "function")
1184
1184
  return e.setBigUint64(t, s, n);
1185
1185
  const r = BigInt(32), i = BigInt(4294967295), o = Number(s >> r & i), a = Number(s & i), c = n ? 4 : 0, l = n ? 0 : 4;
1186
1186
  e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
1187
1187
  }
1188
- function zs(e, t, s) {
1188
+ function ks(e, t, s) {
1189
1189
  return e & t ^ ~e & s;
1190
1190
  }
1191
- function ks(e, t, s) {
1191
+ function Ss(e, t, s) {
1192
1192
  return e & t ^ e & s ^ t & s;
1193
1193
  }
1194
- class Ss extends Oe {
1194
+ class Hs extends Oe {
1195
1195
  constructor(t, s, n, r) {
1196
1196
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(t), this.view = ae(this.buffer);
1197
1197
  }
@@ -1217,7 +1217,7 @@ class Ss extends Oe {
1217
1217
  s[o++] = 128, Z(this.buffer.subarray(o)), this.padOffset > r - o && (this.process(n, 0), o = 0);
1218
1218
  for (let d = o; d < r; d++)
1219
1219
  s[d] = 0;
1220
- Cs(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
1220
+ zs(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
1221
1221
  const a = ae(t), c = this.outputLen;
1222
1222
  if (c % 4)
1223
1223
  throw new Error("_sha2: outputLen should be aligned to 32bit");
@@ -1251,7 +1251,7 @@ const P = /* @__PURE__ */ Uint32Array.from([
1251
1251
  2600822924,
1252
1252
  528734635,
1253
1253
  1541459225
1254
- ]), Hs = /* @__PURE__ */ Uint32Array.from([
1254
+ ]), Ls = /* @__PURE__ */ Uint32Array.from([
1255
1255
  1116352408,
1256
1256
  1899447441,
1257
1257
  3049323471,
@@ -1316,8 +1316,8 @@ const P = /* @__PURE__ */ Uint32Array.from([
1316
1316
  2756734187,
1317
1317
  3204031479,
1318
1318
  3329325298
1319
- ]), I = /* @__PURE__ */ new Uint32Array(64);
1320
- class Ls extends Ss {
1319
+ ]), v = /* @__PURE__ */ new Uint32Array(64);
1320
+ class Gs extends Hs {
1321
1321
  constructor(t = 32) {
1322
1322
  super(64, t, 8, !1), this.A = P[0] | 0, this.B = P[1] | 0, this.C = P[2] | 0, this.D = P[3] | 0, this.E = P[4] | 0, this.F = P[5] | 0, this.G = P[6] | 0, this.H = P[7] | 0;
1323
1323
  }
@@ -1331,47 +1331,47 @@ class Ls extends Ss {
1331
1331
  }
1332
1332
  process(t, s) {
1333
1333
  for (let d = 0; d < 16; d++, s += 4)
1334
- I[d] = t.getUint32(s, !1);
1334
+ v[d] = t.getUint32(s, !1);
1335
1335
  for (let d = 16; d < 64; d++) {
1336
- const b = I[d - 15], p = I[d - 2], B = g(b, 7) ^ g(b, 18) ^ b >>> 3, L = g(p, 17) ^ g(p, 19) ^ p >>> 10;
1337
- I[d] = L + I[d - 7] + B + I[d - 16] | 0;
1336
+ const b = v[d - 15], p = v[d - 2], B = g(b, 7) ^ g(b, 18) ^ b >>> 3, L = g(p, 17) ^ g(p, 19) ^ p >>> 10;
1337
+ v[d] = L + v[d - 7] + B + v[d - 16] | 0;
1338
1338
  }
1339
1339
  let { A: n, B: r, C: i, D: o, E: a, F: c, G: l, H: h } = this;
1340
1340
  for (let d = 0; d < 64; d++) {
1341
- const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b + zs(a, c, l) + Hs[d] + I[d] | 0, L = (g(n, 2) ^ g(n, 13) ^ g(n, 22)) + ks(n, r, i) | 0;
1341
+ const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b + ks(a, c, l) + Ls[d] + v[d] | 0, L = (g(n, 2) ^ g(n, 13) ^ g(n, 22)) + Ss(n, r, i) | 0;
1342
1342
  h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p + L | 0;
1343
1343
  }
1344
1344
  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);
1345
1345
  }
1346
1346
  roundClean() {
1347
- Z(I);
1347
+ Z(v);
1348
1348
  }
1349
1349
  destroy() {
1350
1350
  this.set(0, 0, 0, 0, 0, 0, 0, 0), Z(this.buffer);
1351
1351
  }
1352
1352
  }
1353
- const Gs = /* @__PURE__ */ Ne(() => new Ls()), Os = Gs;
1354
- function Ns(e, t) {
1355
- return Os(Y(e, { strict: !1 }) ? Se(e) : e);
1353
+ const Os = /* @__PURE__ */ Ne(() => new Gs()), Ns = Os;
1354
+ function Ms(e, t) {
1355
+ return Ns(Y(e, { strict: !1 }) ? Se(e) : e);
1356
1356
  }
1357
- function Ms(e) {
1358
- const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Ns(t);
1357
+ function _s(e) {
1358
+ const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Ms(t);
1359
1359
  return r.set([s], 0), n === "bytes" ? r : $(r);
1360
1360
  }
1361
- function _s(e) {
1361
+ function Vs(e) {
1362
1362
  const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), r = [];
1363
1363
  for (const i of t)
1364
- r.push(Ms({
1364
+ r.push(_s({
1365
1365
  commitment: i,
1366
1366
  to: n,
1367
1367
  version: s
1368
1368
  }));
1369
1369
  return r;
1370
1370
  }
1371
- const $e = 6, rt = 32, me = 4096, it = rt * me, Fe = it * $e - // terminator byte (0x80).
1371
+ const $e = 6, rt = 32, me = 4096, it = rt * me, Ce = it * $e - // terminator byte (0x80).
1372
1372
  1 - // zero byte (0x00) appended to each field element.
1373
1373
  1 * me * $e, ot = 1;
1374
- class Vs extends u {
1374
+ class Ds extends u {
1375
1375
  constructor({ maxSize: t, size: s }) {
1376
1376
  super("Blob size is too large.", {
1377
1377
  metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
@@ -1384,7 +1384,7 @@ class at extends u {
1384
1384
  super("Blob data must not be empty.", { name: "EmptyBlobError" });
1385
1385
  }
1386
1386
  }
1387
- class Ds extends u {
1387
+ class Rs extends u {
1388
1388
  constructor({ hash: t, size: s }) {
1389
1389
  super(`Versioned hash "${t}" size is invalid.`, {
1390
1390
  metaMessages: ["Expected: 32", `Received: ${s}`],
@@ -1392,7 +1392,7 @@ class Ds extends u {
1392
1392
  });
1393
1393
  }
1394
1394
  }
1395
- class Rs extends u {
1395
+ class js extends u {
1396
1396
  constructor({ hash: t, version: s }) {
1397
1397
  super(`Versioned hash "${t}" version is invalid.`, {
1398
1398
  metaMessages: [
@@ -1403,13 +1403,13 @@ class Rs extends u {
1403
1403
  });
1404
1404
  }
1405
1405
  }
1406
- function js(e) {
1407
- const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? z(e.data) : e.data, n = v(s);
1406
+ function Ks(e) {
1407
+ const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? z(e.data) : e.data, n = I(s);
1408
1408
  if (!n)
1409
1409
  throw new at();
1410
- if (n > Fe)
1411
- throw new Vs({
1412
- maxSize: Fe,
1410
+ if (n > Ce)
1411
+ throw new Ds({
1412
+ maxSize: Ce,
1413
1413
  size: n
1414
1414
  });
1415
1415
  const r = [];
@@ -1429,8 +1429,8 @@ function js(e) {
1429
1429
  }
1430
1430
  return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) => $(a.bytes));
1431
1431
  }
1432
- function Ks(e) {
1433
- const { data: t, kzg: s, to: n } = e, r = e.blobs ?? js({ data: t, to: n }), i = e.commitments ?? st({ blobs: r, kzg: s, to: n }), o = e.proofs ?? nt({ blobs: r, commitments: i, kzg: s, to: n }), a = [];
1432
+ function Ws(e) {
1433
+ const { data: t, kzg: s, to: n } = e, r = e.blobs ?? Ks({ data: t, to: n }), i = e.commitments ?? st({ blobs: r, kzg: s, to: n }), o = e.proofs ?? nt({ blobs: r, commitments: i, kzg: s, to: n }), a = [];
1434
1434
  for (let c = 0; c < r.length; c++)
1435
1435
  a.push({
1436
1436
  blob: r[c],
@@ -1439,7 +1439,7 @@ function Ks(e) {
1439
1439
  });
1440
1440
  return a;
1441
1441
  }
1442
- function Ws(e) {
1442
+ function Xs(e) {
1443
1443
  if (e.type)
1444
1444
  return e.type;
1445
1445
  if (typeof e.authorizationList < "u")
@@ -1450,9 +1450,9 @@ function Ws(e) {
1450
1450
  return "eip1559";
1451
1451
  if (typeof e.gasPrice < "u")
1452
1452
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
1453
- throw new bs({ transaction: e });
1453
+ throw new ms({ transaction: e });
1454
1454
  }
1455
- function Xs(e, { args: t, eventName: s } = {}) {
1455
+ function qs(e, { args: t, eventName: s } = {}) {
1456
1456
  return {
1457
1457
  ...e,
1458
1458
  blockHash: e.blockHash ? e.blockHash : null,
@@ -1463,7 +1463,7 @@ function Xs(e, { args: t, eventName: s } = {}) {
1463
1463
  ...s ? { args: t, eventName: s } : {}
1464
1464
  };
1465
1465
  }
1466
- class Sn extends u {
1466
+ class Hn extends u {
1467
1467
  constructor({ blockNumber: t, chain: s, contract: n }) {
1468
1468
  super(`Chain "${s.name}" does not support contract "${n.name}".`, {
1469
1469
  metaMessages: [
@@ -1478,7 +1478,7 @@ class Sn extends u {
1478
1478
  });
1479
1479
  }
1480
1480
  }
1481
- class Hn extends u {
1481
+ class Ln extends u {
1482
1482
  constructor({ chain: t, currentChainId: s }) {
1483
1483
  super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
1484
1484
  metaMessages: [
@@ -1489,7 +1489,7 @@ class Hn extends u {
1489
1489
  });
1490
1490
  }
1491
1491
  }
1492
- class Ln extends u {
1492
+ class Gn extends u {
1493
1493
  constructor() {
1494
1494
  super([
1495
1495
  "No chain was provided to the request.",
@@ -1500,7 +1500,7 @@ class Ln extends u {
1500
1500
  });
1501
1501
  }
1502
1502
  }
1503
- class Gn extends u {
1503
+ class On extends u {
1504
1504
  constructor() {
1505
1505
  super("No chain was provided to the Client.", {
1506
1506
  name: "ClientChainNotConfiguredError"
@@ -1512,11 +1512,11 @@ class ie extends u {
1512
1512
  super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
1513
1513
  }
1514
1514
  }
1515
- const qs = {
1515
+ const Zs = {
1516
1516
  "0x0": "reverted",
1517
1517
  "0x1": "success"
1518
1518
  };
1519
- function Zs(e) {
1519
+ function Ys(e) {
1520
1520
  const t = {
1521
1521
  ...e,
1522
1522
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
@@ -1524,15 +1524,15 @@ function Zs(e) {
1524
1524
  cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
1525
1525
  effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
1526
1526
  gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
1527
- logs: e.logs ? e.logs.map((s) => Xs(s)) : null,
1527
+ logs: e.logs ? e.logs.map((s) => qs(s)) : null,
1528
1528
  to: e.to ? e.to : null,
1529
1529
  transactionIndex: e.transactionIndex ? te(e.transactionIndex) : null,
1530
- status: e.status ? qs[e.status] : null,
1530
+ status: e.status ? Zs[e.status] : null,
1531
1531
  type: e.type ? tt[e.type] || e.type : null
1532
1532
  };
1533
1533
  return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
1534
1534
  }
1535
- const Ys = /* @__PURE__ */ he("transactionReceipt", Zs);
1535
+ const Js = /* @__PURE__ */ he("transactionReceipt", Ys);
1536
1536
  function x(e) {
1537
1537
  return {
1538
1538
  formatters: void 0,
@@ -1541,7 +1541,7 @@ function x(e) {
1541
1541
  ...e
1542
1542
  };
1543
1543
  }
1544
- function Js(e) {
1544
+ function Qs(e) {
1545
1545
  const { authorizationList: t } = e;
1546
1546
  if (t)
1547
1547
  for (const s of t) {
@@ -1553,17 +1553,17 @@ function Js(e) {
1553
1553
  }
1554
1554
  xe(e);
1555
1555
  }
1556
- function Qs(e) {
1556
+ function en(e) {
1557
1557
  const { blobVersionedHashes: t } = e;
1558
1558
  if (t) {
1559
1559
  if (t.length === 0)
1560
1560
  throw new at();
1561
1561
  for (const s of t) {
1562
- const n = v(s), r = te(is(s, 0, 1));
1562
+ const n = I(s), r = te(os(s, 0, 1));
1563
1563
  if (n !== 32)
1564
- throw new Ds({ hash: s, size: n });
1564
+ throw new Rs({ hash: s, size: n });
1565
1565
  if (r !== ot)
1566
- throw new Rs({
1566
+ throw new js({
1567
1567
  hash: s,
1568
1568
  version: r
1569
1569
  });
@@ -1582,7 +1582,7 @@ function xe(e) {
1582
1582
  if (s && n && s > n)
1583
1583
  throw new et({ maxFeePerGas: n, maxPriorityFeePerGas: s });
1584
1584
  }
1585
- function en(e) {
1585
+ function tn(e) {
1586
1586
  const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
1587
1587
  if (t <= 0)
1588
1588
  throw new ie({ chainId: t });
@@ -1593,7 +1593,7 @@ function en(e) {
1593
1593
  if (n && n > pe)
1594
1594
  throw new re({ maxFeePerGas: n });
1595
1595
  }
1596
- function tn(e) {
1596
+ function sn(e) {
1597
1597
  const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
1598
1598
  if (i && !A(i))
1599
1599
  throw new T({ address: i });
@@ -1612,21 +1612,21 @@ function oe(e) {
1612
1612
  const { address: n, storageKeys: r } = e[s];
1613
1613
  for (let i = 0; i < r.length; i++)
1614
1614
  if (r[i].length - 2 !== 64)
1615
- throw new ms({ storageKey: r[i] });
1615
+ throw new xs({ storageKey: r[i] });
1616
1616
  if (!A(n, { strict: !1 }))
1617
1617
  throw new T({ address: n });
1618
1618
  t.push([n, r]);
1619
1619
  }
1620
1620
  return t;
1621
1621
  }
1622
- function sn(e, t) {
1623
- const s = Ws(e);
1624
- return s === "eip1559" ? on(e, t) : s === "eip2930" ? an(e, t) : s === "eip4844" ? rn(e, t) : s === "eip7702" ? nn(e, t) : cn(e, t);
1625
- }
1626
1622
  function nn(e, t) {
1623
+ const s = Xs(e);
1624
+ return s === "eip1559" ? an(e, t) : s === "eip2930" ? cn(e, t) : s === "eip4844" ? on(e, t) : s === "eip7702" ? rn(e, t) : un(e, t);
1625
+ }
1626
+ function rn(e, t) {
1627
1627
  const { authorizationList: s, chainId: n, gas: r, nonce: i, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
1628
- Js(e);
1629
- const b = oe(h), p = un(s);
1628
+ Qs(e);
1629
+ const b = oe(h), p = ln(s);
1630
1630
  return _([
1631
1631
  "0x04",
1632
1632
  S([
@@ -1644,20 +1644,20 @@ function nn(e, t) {
1644
1644
  ])
1645
1645
  ]);
1646
1646
  }
1647
- function rn(e, t) {
1647
+ function on(e, t) {
1648
1648
  const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
1649
- Qs(e);
1649
+ en(e);
1650
1650
  let b = e.blobVersionedHashes, p = e.sidecars;
1651
1651
  if (e.blobs && (typeof b > "u" || typeof p > "u")) {
1652
- const F = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((D) => $(D)), Q = e.kzg, V = st({
1653
- blobs: F,
1652
+ const C = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((D) => $(D)), Q = e.kzg, V = st({
1653
+ blobs: C,
1654
1654
  kzg: Q
1655
1655
  });
1656
- if (typeof b > "u" && (b = _s({
1656
+ if (typeof b > "u" && (b = Vs({
1657
1657
  commitments: V
1658
1658
  })), typeof p > "u") {
1659
- const D = nt({ blobs: F, commitments: V, kzg: Q });
1660
- p = Ks({ blobs: F, commitments: V, proofs: D });
1659
+ const D = nt({ blobs: C, commitments: V, kzg: Q });
1660
+ p = Ws({ blobs: C, commitments: V, proofs: D });
1661
1661
  }
1662
1662
  }
1663
1663
  const B = oe(h), L = [
@@ -1675,8 +1675,8 @@ function rn(e, t) {
1675
1675
  ...J(e, t)
1676
1676
  ], ge = [], ye = [], we = [];
1677
1677
  if (p)
1678
- for (let F = 0; F < p.length; F++) {
1679
- const { blob: Q, commitment: V, proof: D } = p[F];
1678
+ for (let C = 0; C < p.length; C++) {
1679
+ const { blob: Q, commitment: V, proof: D } = p[C];
1680
1680
  ge.push(Q), ye.push(V), we.push(D);
1681
1681
  }
1682
1682
  return _([
@@ -1685,7 +1685,7 @@ function rn(e, t) {
1685
1685
  S(p ? [L, ge, ye, we] : L)
1686
1686
  ]);
1687
1687
  }
1688
- function on(e, t) {
1688
+ function an(e, t) {
1689
1689
  const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
1690
1690
  xe(e);
1691
1691
  const d = oe(l), b = [
@@ -1705,9 +1705,9 @@ function on(e, t) {
1705
1705
  S(b)
1706
1706
  ]);
1707
1707
  }
1708
- function an(e, t) {
1708
+ function cn(e, t) {
1709
1709
  const { chainId: s, gas: n, data: r, nonce: i, to: o, value: a, accessList: c, gasPrice: l } = e;
1710
- en(e);
1710
+ tn(e);
1711
1711
  const h = oe(c), d = [
1712
1712
  f(s),
1713
1713
  i ? f(i) : "0x",
@@ -1724,9 +1724,9 @@ function an(e, t) {
1724
1724
  S(d)
1725
1725
  ]);
1726
1726
  }
1727
- function cn(e, t) {
1727
+ function un(e, t) {
1728
1728
  const { chainId: s = 0, gas: n, data: r, nonce: i, to: o, value: a, gasPrice: c } = e;
1729
- tn(e);
1729
+ sn(e);
1730
1730
  let l = [
1731
1731
  i ? f(i) : "0x",
1732
1732
  c ? f(c) : "0x",
@@ -1743,7 +1743,7 @@ function cn(e, t) {
1743
1743
  return BigInt(s * 2) + BigInt(35n + t.v - 27n);
1744
1744
  const p = 27n + (t.v === 27n ? 0n : 1n);
1745
1745
  if (t.v !== p)
1746
- throw new ps({ v: t.v });
1746
+ throw new bs({ v: t.v });
1747
1747
  return p;
1748
1748
  })(), d = U(t.r), b = U(t.s);
1749
1749
  l = [
@@ -1771,7 +1771,7 @@ function J(e, t) {
1771
1771
  const i = U(s.r), o = U(s.s);
1772
1772
  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];
1773
1773
  }
1774
- function un(e) {
1774
+ function ln(e) {
1775
1775
  if (!e || e.length === 0)
1776
1776
  return [];
1777
1777
  const t = [];
@@ -1786,7 +1786,7 @@ function un(e) {
1786
1786
  }
1787
1787
  return t;
1788
1788
  }
1789
- const ln = {
1789
+ const dn = {
1790
1790
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
1791
1791
  l1Block: { address: "0x4200000000000000000000000000000000000015" },
1792
1792
  l2CrossDomainMessenger: {
@@ -1797,8 +1797,8 @@ const ln = {
1797
1797
  l2ToL1MessagePasser: {
1798
1798
  address: "0x4200000000000000000000000000000000000016"
1799
1799
  }
1800
- }, dn = {
1801
- block: /* @__PURE__ */ Us({
1800
+ }, fn = {
1801
+ block: /* @__PURE__ */ Fs({
1802
1802
  format(e) {
1803
1803
  var s;
1804
1804
  return {
@@ -1812,13 +1812,13 @@ const ln = {
1812
1812
  };
1813
1813
  }
1814
1814
  }),
1815
- transaction: /* @__PURE__ */ As({
1815
+ transaction: /* @__PURE__ */ $s({
1816
1816
  format(e) {
1817
1817
  const t = {};
1818
1818
  return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? O(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
1819
1819
  }
1820
1820
  }),
1821
- transactionReceipt: /* @__PURE__ */ Ys({
1821
+ transactionReceipt: /* @__PURE__ */ Js({
1822
1822
  format(e) {
1823
1823
  return {
1824
1824
  l1GasPrice: e.l1GasPrice ? O(e.l1GasPrice) : null,
@@ -1829,14 +1829,14 @@ const ln = {
1829
1829
  }
1830
1830
  })
1831
1831
  };
1832
- function fn(e, t) {
1833
- return bn(e) ? pn(e) : sn(e, t);
1832
+ function hn(e, t) {
1833
+ return mn(e) ? bn(e) : nn(e, t);
1834
1834
  }
1835
- const hn = {
1836
- transaction: fn
1835
+ const pn = {
1836
+ transaction: hn
1837
1837
  };
1838
- function pn(e) {
1839
- mn(e);
1838
+ function bn(e) {
1839
+ xn(e);
1840
1840
  const { sourceHash: t, data: s, from: n, gas: r, isSystemTx: i, mint: o, to: a, value: c } = e, l = [
1841
1841
  t,
1842
1842
  n,
@@ -1852,10 +1852,10 @@ function pn(e) {
1852
1852
  S(l)
1853
1853
  ]);
1854
1854
  }
1855
- function bn(e) {
1855
+ function mn(e) {
1856
1856
  return e.type === "deposit" || typeof e.sourceHash < "u";
1857
1857
  }
1858
- function mn(e) {
1858
+ function xn(e) {
1859
1859
  const { from: t, to: s } = e;
1860
1860
  if (t && !A(t))
1861
1861
  throw new T({ address: t });
@@ -1864,10 +1864,10 @@ function mn(e) {
1864
1864
  }
1865
1865
  const E = {
1866
1866
  blockTime: 2e3,
1867
- contracts: ln,
1868
- formatters: dn,
1869
- serializers: hn
1870
- }, xn = 42161, ct = /* @__PURE__ */ x({
1867
+ contracts: dn,
1868
+ formatters: fn,
1869
+ serializers: pn
1870
+ }, gn = 42161, ct = /* @__PURE__ */ x({
1871
1871
  id: 33139,
1872
1872
  name: "Ape Chain",
1873
1873
  nativeCurrency: {
@@ -1894,7 +1894,7 @@ const E = {
1894
1894
  blockCreated: 20889
1895
1895
  }
1896
1896
  },
1897
- sourceId: xn
1897
+ sourceId: gn
1898
1898
  }), ut = /* @__PURE__ */ x({
1899
1899
  id: 42161,
1900
1900
  name: "Arbitrum One",
@@ -2274,7 +2274,34 @@ const E = {
2274
2274
  }
2275
2275
  },
2276
2276
  sourceId: q
2277
- }), le = 1, wt = /* @__PURE__ */ x({
2277
+ }), wt = /* @__PURE__ */ x({
2278
+ id: 239,
2279
+ name: "TAC",
2280
+ nativeCurrency: { name: "TAC", symbol: "TAC", decimals: 18 },
2281
+ rpcUrls: {
2282
+ default: {
2283
+ http: ["https://rpc.ankr.com/tac"]
2284
+ }
2285
+ },
2286
+ blockExplorers: {
2287
+ default: {
2288
+ name: "Blockscout",
2289
+ url: "https://tac.blockscout.com",
2290
+ apiUrl: "https://tac.blockscout.com/api"
2291
+ },
2292
+ native: {
2293
+ name: "TAC Explorer",
2294
+ url: "https://explorer.tac.build",
2295
+ apiUrl: "https://explorer.tac.build/api"
2296
+ }
2297
+ },
2298
+ contracts: {
2299
+ multicall3: {
2300
+ address: "0xca11bde05977b3631167028862be2a173976ca11",
2301
+ blockCreated: 0
2302
+ }
2303
+ }
2304
+ }), le = 1, Et = /* @__PURE__ */ x({
2278
2305
  ...E,
2279
2306
  id: 48900,
2280
2307
  name: "Zircuit Mainnet",
@@ -2321,8 +2348,8 @@ const E = {
2321
2348
  },
2322
2349
  testnet: !1
2323
2350
  });
2324
- var m = ((e) => (e[e.Mainnet = mt.id] = "Mainnet", e[e.Holesky = pt.id] = "Holesky", e[e.Base = lt.id] = "Base", e[e.Bsc = ht.id] = "Bsc", e[e.Arbitrum = ut.id] = "Arbitrum", e[e.ApeChain = ct.id] = "ApeChain", e[e.Soneium = yt.id] = "Soneium", e[e.Sepolia = gt.id] = "Sepolia", e[e.OptimismSepolia = xt.id] = "OptimismSepolia", e[e.BaseSepolia = dt.id] = "BaseSepolia", e[e.Zircuit = wt.id] = "Zircuit", e[e.Berachain = ft.id] = "Berachain", e[e.Hoodi = bt.id] = "Hoodi", e))(m || {});
2325
- const On = {
2351
+ var m = ((e) => (e[e.Mainnet = mt.id] = "Mainnet", e[e.Holesky = pt.id] = "Holesky", e[e.Base = lt.id] = "Base", e[e.Bsc = ht.id] = "Bsc", e[e.Arbitrum = ut.id] = "Arbitrum", e[e.ApeChain = ct.id] = "ApeChain", e[e.Soneium = yt.id] = "Soneium", e[e.Sepolia = gt.id] = "Sepolia", e[e.OptimismSepolia = xt.id] = "OptimismSepolia", e[e.BaseSepolia = dt.id] = "BaseSepolia", e[e.Zircuit = Et.id] = "Zircuit", e[e.Berachain = ft.id] = "Berachain", e[e.Hoodi = bt.id] = "Hoodi", e[e.TAC = wt.id] = "TAC", e))(m || {});
2352
+ const Nn = {
2326
2353
  [m.Mainnet]: mt,
2327
2354
  [m.Holesky]: pt,
2328
2355
  [m.Base]: lt,
@@ -2333,95 +2360,96 @@ const On = {
2333
2360
  [m.Sepolia]: gt,
2334
2361
  [m.OptimismSepolia]: xt,
2335
2362
  [m.BaseSepolia]: dt,
2336
- [m.Zircuit]: wt,
2363
+ [m.Zircuit]: Et,
2337
2364
  [m.Berachain]: ft,
2338
- [m.Hoodi]: bt
2365
+ [m.Hoodi]: bt,
2366
+ [m.TAC]: wt
2339
2367
  };
2340
2368
  export {
2341
2369
  H as $,
2342
- as as A,
2370
+ cs as A,
2343
2371
  u as B,
2344
2372
  m as C,
2345
- Ft as D,
2373
+ Ut as D,
2346
2374
  Qe as E,
2347
- ss as F,
2348
- Xs as G,
2375
+ ns as F,
2376
+ qs as G,
2349
2377
  Oe as H,
2350
2378
  A as I,
2351
2379
  T as J,
2352
- v as K,
2380
+ I as K,
2353
2381
  Re as L,
2354
2382
  z as M,
2355
2383
  be as N,
2356
- Cn as O,
2357
- Zs as P,
2358
- Fs as Q,
2359
- ts as R,
2360
- wn as S,
2361
- Un as T,
2362
- kn as U,
2363
- On as V,
2364
- Tn as W,
2365
- zn as X,
2384
+ zn as O,
2385
+ Ys as P,
2386
+ Us as Q,
2387
+ ss as R,
2388
+ En as S,
2389
+ Fn as T,
2390
+ Sn as U,
2391
+ Nn as V,
2392
+ An as W,
2393
+ kn as X,
2366
2394
  je as Y,
2367
- At as Z,
2368
- Pt as _,
2395
+ $t as Z,
2396
+ vt as _,
2369
2397
  Se as a,
2370
- yn as a0,
2398
+ wn as a0,
2371
2399
  Xe as a1,
2372
- os as a2,
2400
+ as as a2,
2373
2401
  Ze as a3,
2374
- C as a4,
2375
- hs as a5,
2402
+ F as a4,
2403
+ ps as a5,
2376
2404
  S as a6,
2377
2405
  re as a7,
2378
- ys as a8,
2379
- ws as a9,
2380
- Es as aa,
2381
- Bs as ab,
2382
- Ps as ac,
2406
+ ws as a8,
2407
+ Es as a9,
2408
+ Bs as aa,
2409
+ Ps as ab,
2410
+ vs as ac,
2383
2411
  Is as ad,
2384
- vs as ae,
2385
- Ts as af,
2412
+ Ts as ae,
2413
+ As as af,
2386
2414
  et as ag,
2387
- gn as ah,
2388
- $n as ai,
2415
+ yn as ah,
2416
+ Cn as ai,
2389
2417
  pe as aj,
2390
2418
  st as ak,
2391
- _s as al,
2419
+ Vs as al,
2392
2420
  nt as am,
2393
- Ks as an,
2394
- Ws as ao,
2395
- cs as ap,
2396
- Sn as aq,
2397
- Gn as ar,
2398
- Ln as as,
2399
- Hn as at,
2400
- Fn as au,
2421
+ Ws as an,
2422
+ Xs as ao,
2423
+ us as ap,
2424
+ Hn as aq,
2425
+ On as ar,
2426
+ Gn as as,
2427
+ Ln as at,
2428
+ Un as au,
2401
2429
  $ as b,
2402
- An as c,
2403
- is as d,
2430
+ $n as c,
2431
+ os as d,
2404
2432
  _ as e,
2405
- Pn as f,
2406
- Nt as g,
2433
+ vn as f,
2434
+ Mt as g,
2407
2435
  O as h,
2408
2436
  Y as i,
2409
2437
  k as j,
2410
- Bn as k,
2438
+ Pn as k,
2411
2439
  In as l,
2412
- En as m,
2440
+ Bn as m,
2413
2441
  f as n,
2414
2442
  de as o,
2415
- Et as p,
2443
+ Bt as p,
2416
2444
  Z as q,
2417
2445
  ne as r,
2418
2446
  He as s,
2419
2447
  N as t,
2420
2448
  se as u,
2421
- vn as v,
2422
- Gs as w,
2449
+ Tn as v,
2450
+ Os as w,
2423
2451
  te as x,
2424
- qs as y,
2452
+ Zs as y,
2425
2453
  U as z
2426
2454
  };
2427
- //# sourceMappingURL=constants-BweLzNUt.js.map
2455
+ //# sourceMappingURL=constants-C9YZ6Ewc.js.map