@pufferfinance/puffer-sdk 1.23.1 → 1.24.1

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 (136) hide show
  1. package/dist/api/puffer-client-helpers.cjs +1 -1
  2. package/dist/api/puffer-client-helpers.cjs.map +1 -1
  3. package/dist/api/puffer-client-helpers.js +3 -3
  4. package/dist/api/puffer-client-helpers.js.map +1 -1
  5. package/dist/api/puffer-client.cjs +1 -1
  6. package/dist/api/puffer-client.js +2 -2
  7. package/dist/ccip-FdkpGaX4.cjs +2 -0
  8. package/dist/ccip-FdkpGaX4.cjs.map +1 -0
  9. package/dist/{ccip-CiQCCFUl.js → ccip-w5ez1DCx.js} +43 -39
  10. package/dist/ccip-w5ez1DCx.js.map +1 -0
  11. package/dist/chains/constants.cjs +1 -1
  12. package/dist/chains/constants.d.ts +2 -1
  13. package/dist/chains/constants.js +1 -1
  14. package/dist/{constants-BaHwPdbi.js → constants-BweLzNUt.js} +690 -616
  15. package/dist/constants-BweLzNUt.js.map +1 -0
  16. package/dist/constants-JN89aXws.cjs +9 -0
  17. package/dist/constants-JN89aXws.cjs.map +1 -0
  18. package/dist/contracts/addresses.cjs +1 -1
  19. package/dist/contracts/addresses.js +1 -1
  20. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  21. package/dist/contracts/handlers/carrot-staking-handler.d.ts +368 -352
  22. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  23. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  24. package/dist/contracts/handlers/concrete-vault-handler.d.ts +368 -352
  25. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  26. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  27. package/dist/contracts/handlers/distributor-handler.d.ts +368 -352
  28. package/dist/contracts/handlers/distributor-handler.js +2 -2
  29. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  30. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  31. package/dist/contracts/handlers/erc20-permit-handler.d.ts +368 -352
  32. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  33. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  34. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  35. package/dist/contracts/handlers/guardian-module-handler.d.ts +368 -352
  36. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  37. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
  38. package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +368 -352
  39. package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
  40. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  41. package/dist/contracts/handlers/institutional-vault-handler.d.ts +368 -352
  42. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  43. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  44. package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +368 -352
  45. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  46. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  47. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +368 -352
  48. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  49. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  50. package/dist/contracts/handlers/mtw-carrot-handler.d.ts +368 -352
  51. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  52. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  53. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +368 -352
  54. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  55. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  56. package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +368 -352
  57. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  58. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  59. package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +368 -352
  60. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  61. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  62. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +368 -352
  63. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  64. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  65. package/dist/contracts/handlers/puf-locker-handler.d.ts +368 -352
  66. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  67. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  68. package/dist/contracts/handlers/puffer-depositor-handler.d.ts +368 -352
  69. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  70. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  71. package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +368 -352
  72. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  73. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  74. package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +368 -352
  75. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  76. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  77. package/dist/contracts/handlers/puffer-protocol-handler.d.ts +368 -352
  78. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  79. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  80. package/dist/contracts/handlers/puffer-vault-handler.d.ts +368 -352
  81. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  82. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  83. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +368 -352
  84. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  85. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  86. package/dist/contracts/handlers/validator-ticket-handler.d.ts +368 -352
  87. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  88. package/dist/contracts/tokens.cjs +1 -1
  89. package/dist/contracts/tokens.cjs.map +1 -1
  90. package/dist/contracts/tokens.js +7 -6
  91. package/dist/contracts/tokens.js.map +1 -1
  92. package/dist/contracts/vaults-addresses.cjs +1 -1
  93. package/dist/contracts/vaults-addresses.js +1 -1
  94. package/dist/createWalletClient-CYva1_XM.js +3262 -0
  95. package/dist/createWalletClient-CYva1_XM.js.map +1 -0
  96. package/dist/createWalletClient-LeyDLKOH.cjs +5 -0
  97. package/dist/createWalletClient-LeyDLKOH.cjs.map +1 -0
  98. package/dist/{getContract-DGV8J5xI.js → getContract-BES7gSby.js} +2 -2
  99. package/dist/getContract-BES7gSby.js.map +1 -0
  100. package/dist/{getContract-RNLlK54b.cjs → getContract-F-fd_vf7.cjs} +2 -2
  101. package/dist/{getContract-DGV8J5xI.js.map → getContract-F-fd_vf7.cjs.map} +1 -1
  102. package/dist/localBatchGatewayRequest-CCdxn5t3.js +90 -0
  103. package/dist/localBatchGatewayRequest-CCdxn5t3.js.map +1 -0
  104. package/dist/localBatchGatewayRequest-DCWU6kQW.cjs +2 -0
  105. package/dist/localBatchGatewayRequest-DCWU6kQW.cjs.map +1 -0
  106. package/dist/main.cjs +1 -1
  107. package/dist/main.js +1 -1
  108. package/dist/secp256k1-DGP4Y7VW.js +1291 -0
  109. package/dist/secp256k1-DGP4Y7VW.js.map +1 -0
  110. package/dist/secp256k1-QOxLqUEc.cjs +2 -0
  111. package/dist/secp256k1-QOxLqUEc.cjs.map +1 -0
  112. package/dist/utils/version.cjs +1 -1
  113. package/dist/utils/version.js +1 -1
  114. package/dist/writeContract-Cqc9vxbU.cjs +36 -0
  115. package/dist/writeContract-Cqc9vxbU.cjs.map +1 -0
  116. package/dist/{writeContract-BU3yK-Xj.js → writeContract-QAArm5iD.js} +1894 -1361
  117. package/dist/writeContract-QAArm5iD.js.map +1 -0
  118. package/package.json +2 -2
  119. package/dist/ccip-CiQCCFUl.js.map +0 -1
  120. package/dist/ccip-DIWF4nDh.cjs +0 -2
  121. package/dist/ccip-DIWF4nDh.cjs.map +0 -1
  122. package/dist/constants-BaHwPdbi.js.map +0 -1
  123. package/dist/constants-c-vATmlG.cjs +0 -9
  124. package/dist/constants-c-vATmlG.cjs.map +0 -1
  125. package/dist/createWalletClient-D74YRepQ.js +0 -3290
  126. package/dist/createWalletClient-D74YRepQ.js.map +0 -1
  127. package/dist/createWalletClient-DKSH6l9_.cjs +0 -6
  128. package/dist/createWalletClient-DKSH6l9_.cjs.map +0 -1
  129. package/dist/getContract-RNLlK54b.cjs.map +0 -1
  130. package/dist/secp256k1-B-LxKJrQ.js +0 -1340
  131. package/dist/secp256k1-B-LxKJrQ.js.map +0 -1
  132. package/dist/secp256k1-CC-cv1vD.cjs +0 -2
  133. package/dist/secp256k1-CC-cv1vD.cjs.map +0 -1
  134. package/dist/writeContract-BU3yK-Xj.js.map +0 -1
  135. package/dist/writeContract-CKqv1dsa.cjs +0 -32
  136. package/dist/writeContract-CKqv1dsa.cjs.map +0 -1
@@ -1,13 +1,13 @@
1
- function W(e, { strict: t = !0 } = {}) {
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
4
  function v(e) {
5
- return W(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
5
+ return Y(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
6
6
  }
7
- const $e = "2.23.13";
8
- let _ = {
7
+ const Ue = "2.33.1";
8
+ let R = {
9
9
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: s }) => t ? `${e ?? "https://viem.sh"}${t}${s ? `#${s}` : ""}` : void 0,
10
- version: `viem@${$e}`
10
+ version: `viem@${Ue}`
11
11
  };
12
12
  class u extends Error {
13
13
  constructor(t, s = {}) {
@@ -15,13 +15,13 @@ class u extends Error {
15
15
  const n = (() => {
16
16
  var c;
17
17
  return s.cause instanceof u ? s.cause.details : (c = s.cause) != null && c.message ? s.cause.message : s.details;
18
- })(), r = s.cause instanceof u && s.cause.docsPath || s.docsPath, i = (a = _.getDocsUrl) == null ? void 0 : a.call(_, { ...s, docsPath: r }), o = [
18
+ })(), r = s.cause instanceof u && s.cause.docsPath || s.docsPath, i = (a = R.getDocsUrl) == null ? void 0 : a.call(R, { ...s, docsPath: r }), o = [
19
19
  t || "An error occurred.",
20
20
  "",
21
21
  ...s.metaMessages ? [...s.metaMessages, ""] : [],
22
22
  ...i ? [`Docs: ${i}`] : [],
23
23
  ...n ? [`Details: ${n}`] : [],
24
- ..._.version ? [`Version: ${_.version}`] : []
24
+ ...R.version ? [`Version: ${R.version}`] : []
25
25
  ].join(`
26
26
  `);
27
27
  super(o, s.cause ? { cause: s.cause } : void 0), Object.defineProperty(this, "details", {
@@ -54,50 +54,50 @@ class u extends Error {
54
54
  configurable: !0,
55
55
  writable: !0,
56
56
  value: "BaseError"
57
- }), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version = $e;
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 Ae(this, t);
60
+ return Ce(this, t);
61
61
  }
62
62
  }
63
- function Ae(e, t) {
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;
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;
65
65
  }
66
- class Ce extends u {
66
+ class ze 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 Fe extends u {
71
+ class ke 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 un extends u {
76
+ class gn 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
- function H(e, { dir: t, size: s = 32 } = {}) {
82
- return typeof e == "string" ? mt(e, { dir: t, size: s }) : xt(e, { dir: t, size: s });
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 });
83
83
  }
84
- function mt(e, { dir: t, size: s = 32 } = {}) {
84
+ function Et(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 Fe({
89
+ throw new ke({
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 xt(e, { dir: t, size: s = 32 } = {}) {
96
+ function Bt(e, { dir: t, size: s = 32 } = {}) {
97
97
  if (s === null)
98
98
  return e;
99
99
  if (e.length > s)
100
- throw new Fe({
100
+ throw new ke({
101
101
  size: e.length,
102
102
  targetSize: s,
103
103
  type: "bytes"
@@ -109,84 +109,84 @@ function xt(e, { dir: t, size: s = 32 } = {}) {
109
109
  }
110
110
  return n;
111
111
  }
112
- class gt extends u {
112
+ class Pt 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 ln extends u {
117
+ class yn 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 yt extends u {
124
+ class It 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 wt extends u {
129
+ class vt 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 C(e, { dir: t = "left" } = {}) {
134
+ function U(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 k(e, { size: t }) {
140
+ function H(e, { size: t }) {
141
141
  if (v(e) > t)
142
- throw new wt({
142
+ throw new vt({
143
143
  givenSize: v(e),
144
144
  maxSize: t
145
145
  });
146
146
  }
147
- function G(e, t = {}) {
147
+ function O(e, t = {}) {
148
148
  const { signed: s } = t;
149
- t.size && k(e, { size: t.size });
149
+ t.size && H(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 dn(e, t = {}) {
156
+ function wn(e, t = {}) {
157
157
  let s = e;
158
- if (t.size && (k(s, { size: t.size }), s = C(s)), C(s) === "0x00")
158
+ if (t.size && (H(s, { size: t.size }), s = U(s)), U(s) === "0x00")
159
159
  return !1;
160
- if (C(s) === "0x01")
160
+ if (U(s) === "0x01")
161
161
  return !0;
162
- throw new yt(s);
162
+ throw new It(s);
163
163
  }
164
- function Y(e, t = {}) {
165
- return Number(G(e, t));
164
+ function te(e, t = {}) {
165
+ return Number(O(e, t));
166
166
  }
167
- const Et = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
168
- function f(e, t = {}) {
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);
167
+ const Tt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
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);
170
170
  }
171
- function Bt(e, t = {}) {
171
+ function At(e, t = {}) {
172
172
  const s = `0x${Number(e)}`;
173
- return typeof t.size == "number" ? (k(s, { size: t.size }), H(s, { size: t.size })) : s;
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 += Et[e[r]];
178
+ s += Tt[e[r]];
179
179
  const n = `0x${s}`;
180
- return typeof t.size == "number" ? (k(n, { size: t.size }), H(n, { dir: "right", size: t.size })) : n;
180
+ return typeof t.size == "number" ? (H(n, { size: t.size }), M(n, { dir: "right", size: t.size })) : n;
181
181
  }
182
- function Ue(e, t = {}) {
182
+ function f(e, t = {}) {
183
183
  const { signed: s, size: n } = t, r = BigInt(e);
184
184
  let i;
185
185
  n ? s ? i = (1n << BigInt(n) * 8n - 1n) - 1n : i = 2n ** (BigInt(n) * 8n) - 1n : typeof e == "number" && (i = BigInt(Number.MAX_SAFE_INTEGER));
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 gt({
189
+ throw new Pt({
190
190
  max: i ? `${i}${c}` : void 0,
191
191
  min: `${o}${c}`,
192
192
  signed: s,
@@ -195,20 +195,20 @@ function Ue(e, t = {}) {
195
195
  });
196
196
  }
197
197
  const a = `0x${(s && r < 0 ? (1n << BigInt(n * 8)) + BigInt(r) : r).toString(16)}`;
198
- return n ? H(a, { size: n }) : a;
198
+ return n ? M(a, { size: n }) : a;
199
199
  }
200
- const Pt = /* @__PURE__ */ new TextEncoder();
201
- function vt(e, t = {}) {
202
- const s = Pt.encode(e);
200
+ const $t = /* @__PURE__ */ new TextEncoder();
201
+ function Ft(e, t = {}) {
202
+ const s = $t.encode(e);
203
203
  return $(s, t);
204
204
  }
205
- const It = /* @__PURE__ */ new TextEncoder();
206
- function ze(e, t = {}) {
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);
205
+ const Ut = /* @__PURE__ */ new TextEncoder();
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);
208
208
  }
209
- function Tt(e, t = {}) {
209
+ function Ct(e, t = {}) {
210
210
  const s = new Uint8Array(1);
211
- return s[0] = Number(e), typeof t.size == "number" ? (k(s, { size: t.size }), H(s, { size: t.size })) : s;
211
+ return s[0] = Number(e), typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { size: t.size })) : s;
212
212
  }
213
213
  const y = {
214
214
  zero: 48,
@@ -218,7 +218,7 @@ const y = {
218
218
  a: 97,
219
219
  f: 102
220
220
  };
221
- function ge(e) {
221
+ function Ee(e) {
222
222
  if (e >= y.zero && e <= y.nine)
223
223
  return e - y.zero;
224
224
  if (e >= y.A && e <= y.F)
@@ -226,102 +226,145 @@ function ge(e) {
226
226
  if (e >= y.a && e <= y.f)
227
227
  return e - (y.a - 10);
228
228
  }
229
- function U(e, t = {}) {
229
+ function z(e, t = {}) {
230
230
  let s = e;
231
- t.size && (k(s, { size: t.size }), s = H(s, { dir: "right", size: t.size }));
231
+ t.size && (H(s, { size: t.size }), s = M(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);
235
235
  for (let o = 0, a = 0; o < r; o++) {
236
- const c = ge(n.charCodeAt(a++)), l = ge(n.charCodeAt(a++));
236
+ const c = Ee(n.charCodeAt(a++)), l = Ee(n.charCodeAt(a++));
237
237
  if (c === void 0 || l === void 0)
238
238
  throw new u(`Invalid byte sequence ("${n[a - 2]}${n[a - 1]}" in "${n}").`);
239
239
  i[o] = c * 16 + l;
240
240
  }
241
241
  return i;
242
242
  }
243
- function $t(e, t) {
244
- const s = Ue(e, t);
245
- return U(s);
243
+ function zt(e, t) {
244
+ const s = f(e, t);
245
+ return z(s);
246
246
  }
247
- function ke(e, t = {}) {
248
- const s = It.encode(e);
249
- return typeof t.size == "number" ? (k(s, { size: t.size }), H(s, { dir: "right", size: t.size })) : s;
247
+ function He(e, t = {}) {
248
+ const s = Ut.encode(e);
249
+ return typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { dir: "right", size: t.size })) : s;
250
250
  }
251
- function J(e) {
252
- if (!Number.isSafeInteger(e) || e < 0)
253
- throw new Error("positive integer expected, got " + e);
251
+ const ee = /* @__PURE__ */ BigInt(2 ** 32 - 1), Be = /* @__PURE__ */ BigInt(32);
252
+ function kt(e, t = !1) {
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 At(e) {
255
+ function St(e, t = !1) {
256
+ const s = e.length;
257
+ let n = new Uint32Array(s), r = new Uint32Array(s);
258
+ for (let i = 0; i < s; i++) {
259
+ const { h: o, l: a } = kt(e[i], t);
260
+ [n[i], r[i]] = [o, a];
261
+ }
262
+ return [n, r];
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;
265
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
266
+ function Nt(e) {
256
267
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
257
268
  }
258
- function ee(e, ...t) {
259
- if (!At(e))
269
+ function se(e) {
270
+ if (!Number.isSafeInteger(e) || e < 0)
271
+ throw new Error("positive integer expected, got " + e);
272
+ }
273
+ function k(e, ...t) {
274
+ if (!Nt(e))
260
275
  throw new Error("Uint8Array expected");
261
276
  if (t.length > 0 && !t.includes(e.length))
262
277
  throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
263
278
  }
264
- function fn(e) {
279
+ function En(e) {
265
280
  if (typeof e != "function" || typeof e.create != "function")
266
- throw new Error("Hash should be wrapped by utils.wrapConstructor");
267
- J(e.outputLen), J(e.blockLen);
281
+ throw new Error("Hash should be wrapped by utils.createHasher");
282
+ se(e.outputLen), se(e.blockLen);
268
283
  }
269
- function Q(e, t = !0) {
284
+ function ne(e, t = !0) {
270
285
  if (e.destroyed)
271
286
  throw new Error("Hash instance has been destroyed");
272
287
  if (t && e.finished)
273
288
  throw new Error("Hash#digest() has already been called");
274
289
  }
275
- function Se(e, t) {
276
- ee(e);
290
+ function Le(e, t) {
291
+ k(e);
277
292
  const s = t.outputLen;
278
293
  if (e.length < s)
279
294
  throw new Error("digestInto() expects output buffer of length at least " + s);
280
295
  }
281
- const q = /* @__PURE__ */ BigInt(2 ** 32 - 1), ye = /* @__PURE__ */ BigInt(32);
282
- function Ct(e, t = !1) {
283
- return t ? { h: Number(e & q), l: Number(e >> ye & q) } : { h: Number(e >> ye & q) | 0, l: Number(e & q) | 0 };
284
- }
285
- function Ft(e, t = !1) {
286
- let s = new Uint32Array(e.length), n = new Uint32Array(e.length);
287
- for (let r = 0; r < e.length; r++) {
288
- const { h: i, l: o } = Ct(e[r], t);
289
- [s[r], n[r]] = [i, o];
290
- }
291
- return [s, n];
292
- }
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
- /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
295
- function Lt(e) {
296
+ function Mt(e) {
296
297
  return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
297
298
  }
298
- function re(e) {
299
+ function Z(...e) {
300
+ for (let t = 0; t < e.length; t++)
301
+ e[t].fill(0);
302
+ }
303
+ function ae(e) {
299
304
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
300
305
  }
301
306
  function g(e, t) {
302
307
  return e << 32 - t | e >>> t;
303
308
  }
304
- const we = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
305
- function Gt(e) {
309
+ const _t = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
310
+ function Vt(e) {
306
311
  return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
307
312
  }
308
- function Ee(e) {
313
+ function Dt(e) {
309
314
  for (let t = 0; t < e.length; t++)
310
- e[t] = Gt(e[t]);
315
+ e[t] = Vt(e[t]);
316
+ return e;
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) {
320
+ if (k(e), Ge)
321
+ return e.toHex();
322
+ let t = "";
323
+ for (let s = 0; s < e.length; s++)
324
+ t += Rt[e[s]];
325
+ return t;
326
+ }
327
+ const w = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
328
+ function Ie(e) {
329
+ if (e >= w._0 && e <= w._9)
330
+ return e - w._0;
331
+ if (e >= w.A && e <= w.F)
332
+ return e - (w.A - 10);
333
+ if (e >= w.a && e <= w.f)
334
+ return e - (w.a - 10);
335
+ }
336
+ function Pn(e) {
337
+ if (typeof e != "string")
338
+ throw new Error("hex string expected, got " + typeof e);
339
+ if (Ge)
340
+ return Uint8Array.fromHex(e);
341
+ const t = e.length, s = t / 2;
342
+ if (t % 2)
343
+ throw new Error("hex string expected, got unpadded hex of length " + t);
344
+ const n = new Uint8Array(s);
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));
347
+ if (o === void 0 || a === void 0) {
348
+ const c = e[i] + e[i + 1];
349
+ throw new Error('hex string expected, got non-hex character "' + c + '" at index ' + i);
350
+ }
351
+ n[r] = o * 16 + a;
352
+ }
353
+ return n;
311
354
  }
312
- function Ht(e) {
355
+ function jt(e) {
313
356
  if (typeof e != "string")
314
- throw new Error("utf8ToBytes expected string, got " + typeof e);
357
+ throw new Error("string expected");
315
358
  return new Uint8Array(new TextEncoder().encode(e));
316
359
  }
317
- function ce(e) {
318
- return typeof e == "string" && (e = Ht(e)), ee(e), e;
360
+ function de(e) {
361
+ return typeof e == "string" && (e = jt(e)), k(e), e;
319
362
  }
320
- function hn(...e) {
363
+ function In(...e) {
321
364
  let t = 0;
322
365
  for (let n = 0; n < e.length; n++) {
323
366
  const r = e[n];
324
- ee(r), t += r.length;
367
+ k(r), t += r.length;
325
368
  }
326
369
  const s = new Uint8Array(t);
327
370
  for (let n = 0, r = 0; n < e.length; n++) {
@@ -330,45 +373,41 @@ function hn(...e) {
330
373
  }
331
374
  return s;
332
375
  }
333
- class Le {
334
- // Safe version that clones internal state
335
- clone() {
336
- return this._cloneInto();
337
- }
376
+ class Oe {
338
377
  }
339
- function Ge(e) {
340
- const t = (n) => e().update(ce(n)).digest(), s = e();
378
+ function Ne(e) {
379
+ const t = (n) => e().update(de(n)).digest(), s = e();
341
380
  return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
342
381
  }
343
- function pn(e = 32) {
344
- if (L && typeof L.getRandomValues == "function")
345
- return L.getRandomValues(new Uint8Array(e));
346
- if (L && typeof L.randomBytes == "function")
347
- return L.randomBytes(e);
382
+ function vn(e = 32) {
383
+ if (G && typeof G.getRandomValues == "function")
384
+ return G.getRandomValues(new Uint8Array(e));
385
+ if (G && typeof G.randomBytes == "function")
386
+ return Uint8Array.from(G.randomBytes(e));
348
387
  throw new Error("crypto.getRandomValues must be defined");
349
388
  }
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
- for (let e = 0, t = V, s = 1, n = 0; e < 24; e++) {
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 = Ot;
389
+ const Kt = BigInt(0), j = BigInt(1), Wt = BigInt(2), Xt = BigInt(7), qt = BigInt(256), Zt = BigInt(113), Me = [], _e = [], Ve = [];
390
+ for (let e = 0, t = j, s = 1, n = 0; e < 24; e++) {
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;
354
393
  for (let i = 0; i < 7; i++)
355
- t = (t << V ^ (t >> Mt) * Vt) % _t, t & Nt && (r ^= V << (V << /* @__PURE__ */ BigInt(i)) - V);
356
- Ne.push(r);
394
+ t = (t << j ^ (t >> Xt) * Zt) % qt, t & Wt && (r ^= j << (j << /* @__PURE__ */ BigInt(i)) - j);
395
+ Ve.push(r);
357
396
  }
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
- function jt(e, t = 24) {
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) {
360
399
  const s = new Uint32Array(10);
361
400
  for (let n = 24 - t; n < 24; n++) {
362
401
  for (let o = 0; o < 10; o++)
363
402
  s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
364
403
  for (let o = 0; o < 10; o += 2) {
365
- const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = Be(l, h, 1) ^ s[a], b = Pe(l, h, 1) ^ s[a + 1];
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];
366
405
  for (let p = 0; p < 50; p += 10)
367
406
  e[o + p] ^= d, e[o + p + 1] ^= b;
368
407
  }
369
408
  let r = e[2], i = e[3];
370
409
  for (let o = 0; o < 24; o++) {
371
- const a = Oe[o], c = Be(r, i, a), l = Pe(r, i, a), h = He[o];
410
+ const a = _e[o], c = ve(r, i, a), l = Te(r, i, a), h = Me[o];
372
411
  r = e[h], i = e[h + 1], e[h] = c, e[h + 1] = l;
373
412
  }
374
413
  for (let o = 0; o < 50; o += 10) {
@@ -377,25 +416,26 @@ function jt(e, t = 24) {
377
416
  for (let a = 0; a < 10; a++)
378
417
  e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
379
418
  }
380
- e[0] ^= Dt[n], e[1] ^= Rt[n];
419
+ e[0] ^= Yt[n], e[1] ^= Jt[n];
381
420
  }
382
- s.fill(0);
421
+ Z(s);
383
422
  }
384
- class ue extends Le {
423
+ class fe extends Oe {
385
424
  // NOTE: we accept arguments in bytes instead of bits here.
386
425
  constructor(t, s, n, r = !1, i = 24) {
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
- throw new Error("Sha3 supports only keccak-f1600 function");
389
- this.state = new Uint8Array(200), this.state32 = Lt(this.state);
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
+ throw new Error("only keccak-f1600 function is supported");
428
+ this.state = new Uint8Array(200), this.state32 = Mt(this.state);
429
+ }
430
+ clone() {
431
+ return this._cloneInto();
390
432
  }
391
433
  keccak() {
392
- we || Ee(this.state32), jt(this.state32, this.rounds), we || Ee(this.state32), this.posOut = 0, this.pos = 0;
434
+ Pe(this.state32), Qt(this.state32, this.rounds), Pe(this.state32), this.posOut = 0, this.pos = 0;
393
435
  }
394
436
  update(t) {
395
- Q(this);
396
- const { blockLen: s, state: n } = this;
397
- t = ce(t);
398
- const r = t.length;
437
+ ne(this), t = de(t), k(t);
438
+ const { blockLen: s, state: n } = this, r = t.length;
399
439
  for (let i = 0; i < r; ) {
400
440
  const o = Math.min(s - this.pos, r - i);
401
441
  for (let a = 0; a < o; a++)
@@ -412,7 +452,7 @@ class ue extends Le {
412
452
  t[n] ^= s, (s & 128) !== 0 && n === r - 1 && this.keccak(), t[r - 1] ^= 128, this.keccak();
413
453
  }
414
454
  writeInto(t) {
415
- Q(this, !1), ee(t), this.finish();
455
+ ne(this, !1), k(t), this.finish();
416
456
  const s = this.state, { blockLen: n } = this;
417
457
  for (let r = 0, i = t.length; r < i; ) {
418
458
  this.posOut >= n && this.keccak();
@@ -427,10 +467,10 @@ class ue extends Le {
427
467
  return this.writeInto(t);
428
468
  }
429
469
  xof(t) {
430
- return J(t), this.xofInto(new Uint8Array(t));
470
+ return se(t), this.xofInto(new Uint8Array(t));
431
471
  }
432
472
  digestInto(t) {
433
- if (Se(t, this), this.finished)
473
+ if (Le(t, this), this.finished)
434
474
  throw new Error("digest() was already called");
435
475
  return this.writeInto(t), this.destroy(), t;
436
476
  }
@@ -438,19 +478,19 @@ class ue extends Le {
438
478
  return this.digestInto(new Uint8Array(this.outputLen));
439
479
  }
440
480
  destroy() {
441
- this.destroyed = !0, this.state.fill(0);
481
+ this.destroyed = !0, Z(this.state);
442
482
  }
443
483
  _cloneInto(t) {
444
484
  const { blockLen: s, suffix: n, outputLen: r, rounds: i, enableXOF: o } = this;
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;
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;
446
486
  }
447
487
  }
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
- return s === "bytes" ? n : f(n);
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);
491
+ return s === "bytes" ? n : N(n);
452
492
  }
453
- class I extends u {
493
+ class T extends u {
454
494
  constructor({ address: t }) {
455
495
  super(`Address "${t}" is invalid.`, {
456
496
  metaMessages: [
@@ -461,7 +501,7 @@ class I extends u {
461
501
  });
462
502
  }
463
503
  }
464
- class Me extends Map {
504
+ class Re extends Map {
465
505
  constructor(t) {
466
506
  super(), Object.defineProperty(this, "maxSize", {
467
507
  enumerable: !0,
@@ -482,33 +522,33 @@ class Me extends Map {
482
522
  return this;
483
523
  }
484
524
  }
485
- const ie = /* @__PURE__ */ new Me(8192);
486
- function _e(e, t) {
487
- if (ie.has(`${e}.${t}`))
488
- return ie.get(`${e}.${t}`);
489
- const s = e.substring(2).toLowerCase(), n = Xt(ke(s), "bytes"), r = s.split("");
525
+ const ce = /* @__PURE__ */ new Re(8192);
526
+ function je(e, t) {
527
+ if (ce.has(`${e}.${t}`))
528
+ return ce.get(`${e}.${t}`);
529
+ const s = e.substring(2).toLowerCase(), n = ss(He(s), "bytes"), r = s.split("");
490
530
  for (let o = 0; o < 40; o += 2)
491
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());
492
532
  const i = `0x${r.join("")}`;
493
- return ie.set(`${e}.${t}`, i), i;
533
+ return ce.set(`${e}.${t}`, i), i;
494
534
  }
495
- function bn(e, t) {
496
- if (!T(e, { strict: !1 }))
497
- throw new I({ address: e });
498
- return _e(e, t);
535
+ function Tn(e, t) {
536
+ if (!A(e, { strict: !1 }))
537
+ throw new T({ address: e });
538
+ return je(e, t);
499
539
  }
500
- const Zt = /^0x[a-fA-F0-9]{40}$/, oe = /* @__PURE__ */ new Me(8192);
501
- function T(e, t) {
540
+ const ns = /^0x[a-fA-F0-9]{40}$/, ue = /* @__PURE__ */ new Re(8192);
541
+ function A(e, t) {
502
542
  const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
503
- if (oe.has(n))
504
- return oe.get(n);
505
- const r = Zt.test(e) ? e.toLowerCase() === e ? !0 : s ? _e(e) === e : !0 : !1;
506
- return oe.set(n, r), r;
543
+ if (ue.has(n))
544
+ return ue.get(n);
545
+ const r = ns.test(e) ? e.toLowerCase() === e ? !0 : s ? je(e) === e : !0 : !1;
546
+ return ue.set(n, r), r;
507
547
  }
508
- function mn(e) {
509
- return typeof e[0] == "string" ? O(e) : qt(e);
548
+ function An(e) {
549
+ return typeof e[0] == "string" ? _(e) : rs(e);
510
550
  }
511
- function qt(e) {
551
+ function rs(e) {
512
552
  let t = 0;
513
553
  for (const r of e)
514
554
  t += r.length;
@@ -518,60 +558,60 @@ function qt(e) {
518
558
  s.set(r, n), n += r.length;
519
559
  return s;
520
560
  }
521
- function O(e) {
561
+ function _(e) {
522
562
  return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
523
563
  }
524
- function Yt(e, t, s, { strict: n } = {}) {
525
- return W(e, { strict: !1 }) ? Qt(e, t, s, {
564
+ function is(e, t, s, { strict: n } = {}) {
565
+ return Y(e, { strict: !1 }) ? as(e, t, s, {
526
566
  strict: n
527
- }) : Jt(e, t, s, {
567
+ }) : os(e, t, s, {
528
568
  strict: n
529
569
  });
530
570
  }
531
- function Ve(e, t) {
571
+ function Ke(e, t) {
532
572
  if (typeof t == "number" && t > 0 && t > v(e) - 1)
533
- throw new Ce({
573
+ throw new ze({
534
574
  offset: t,
535
575
  position: "start",
536
576
  size: v(e)
537
577
  });
538
578
  }
539
- function De(e, t, s) {
579
+ function We(e, t, s) {
540
580
  if (typeof t == "number" && typeof s == "number" && v(e) !== s - t)
541
- throw new Ce({
581
+ throw new ze({
542
582
  offset: s,
543
583
  position: "end",
544
584
  size: v(e)
545
585
  });
546
586
  }
547
- function Jt(e, t, s, { strict: n } = {}) {
548
- Ve(e, t);
587
+ function os(e, t, s, { strict: n } = {}) {
588
+ Ke(e, t);
549
589
  const r = e.slice(t, s);
550
- return n && De(r, t, s), r;
590
+ return n && We(r, t, s), r;
551
591
  }
552
- function Qt(e, t, s, { strict: n } = {}) {
553
- Ve(e, t);
592
+ function as(e, t, s, { strict: n } = {}) {
593
+ Ke(e, t);
554
594
  const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
555
- return n && De(r, t, s), r;
595
+ return n && We(r, t, s), r;
556
596
  }
557
- class ve extends u {
597
+ class Ae extends u {
558
598
  constructor({ offset: t }) {
559
599
  super(`Offset \`${t}\` cannot be negative.`, {
560
600
  name: "NegativeOffsetError"
561
601
  });
562
602
  }
563
603
  }
564
- class es extends u {
604
+ class cs extends u {
565
605
  constructor({ length: t, position: s }) {
566
606
  super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
567
607
  }
568
608
  }
569
- class ts extends u {
609
+ class us extends u {
570
610
  constructor({ count: t, limit: s }) {
571
611
  super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
572
612
  }
573
613
  }
574
- const ss = {
614
+ const ls = {
575
615
  bytes: new Uint8Array(),
576
616
  dataView: new DataView(new ArrayBuffer(0)),
577
617
  position: 0,
@@ -580,21 +620,21 @@ const ss = {
580
620
  recursiveReadLimit: Number.POSITIVE_INFINITY,
581
621
  assertReadLimit() {
582
622
  if (this.recursiveReadCount >= this.recursiveReadLimit)
583
- throw new ts({
623
+ throw new us({
584
624
  count: this.recursiveReadCount + 1,
585
625
  limit: this.recursiveReadLimit
586
626
  });
587
627
  },
588
628
  assertPosition(e) {
589
629
  if (e < 0 || e > this.bytes.length - 1)
590
- throw new es({
630
+ throw new cs({
591
631
  length: this.bytes.length,
592
632
  position: e
593
633
  });
594
634
  },
595
635
  decrementPosition(e) {
596
636
  if (e < 0)
597
- throw new ve({ offset: e });
637
+ throw new Ae({ offset: e });
598
638
  const t = this.position - e;
599
639
  this.assertPosition(t), this.position = t;
600
640
  },
@@ -603,7 +643,7 @@ const ss = {
603
643
  },
604
644
  incrementPosition(e) {
605
645
  if (e < 0)
606
- throw new ve({ offset: e });
646
+ throw new Ae({ offset: e });
607
647
  const t = this.position + e;
608
648
  this.assertPosition(t), this.position = t;
609
649
  },
@@ -693,18 +733,18 @@ const ss = {
693
733
  this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
694
734
  }
695
735
  };
696
- function Re(e, { recursiveReadLimit: t = 8192 } = {}) {
697
- const s = Object.create(ss);
736
+ function Xe(e, { recursiveReadLimit: t = 8192 } = {}) {
737
+ const s = Object.create(ls);
698
738
  return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
699
739
  }
700
- const ns = {
740
+ const ds = {
701
741
  gwei: 9,
702
742
  wei: 18
703
- }, rs = {
743
+ }, fs = {
704
744
  ether: -9,
705
745
  wei: 9
706
746
  };
707
- function je(e, t) {
747
+ function qe(e, t) {
708
748
  let s = e.toString();
709
749
  const n = s.startsWith("-");
710
750
  n && (s = s.slice(1)), s = s.padStart(t, "0");
@@ -714,18 +754,18 @@ function je(e, t) {
714
754
  ];
715
755
  return i = i.replace(/(0+)$/, ""), `${n ? "-" : ""}${r || "0"}${i ? `.${i}` : ""}`;
716
756
  }
717
- function is(e, t = "wei") {
718
- return je(e, ns[t]);
757
+ function hs(e, t = "wei") {
758
+ return qe(e, ds[t]);
719
759
  }
720
- function F(e, t = "wei") {
721
- return je(e, rs[t]);
760
+ function C(e, t = "wei") {
761
+ return qe(e, fs[t]);
722
762
  }
723
- function Ke(e) {
763
+ function Ze(e) {
724
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);
725
765
  return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
726
766
  `);
727
767
  }
728
- class xn extends u {
768
+ class $n extends u {
729
769
  constructor() {
730
770
  super([
731
771
  "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
@@ -734,20 +774,20 @@ class xn extends u {
734
774
  `), { name: "FeeConflictError" });
735
775
  }
736
776
  }
737
- class os extends u {
777
+ class ps extends u {
738
778
  constructor({ v: t }) {
739
779
  super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
740
780
  name: "InvalidLegacyVError"
741
781
  });
742
782
  }
743
783
  }
744
- class as extends u {
784
+ class bs extends u {
745
785
  constructor({ transaction: t }) {
746
786
  super("Cannot infer a transaction type from provided transaction.", {
747
787
  metaMessages: [
748
788
  "Provided Transaction:",
749
789
  "{",
750
- Ke(t),
790
+ Ze(t),
751
791
  "}",
752
792
  "",
753
793
  "To infer the type, either provide:",
@@ -762,24 +802,24 @@ class as extends u {
762
802
  });
763
803
  }
764
804
  }
765
- class cs extends u {
805
+ class ms extends u {
766
806
  constructor({ storageKey: t }) {
767
807
  super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
768
808
  }
769
809
  }
770
- class gn extends u {
810
+ class Fn extends u {
771
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 }) {
772
- var E;
773
- const p = Ke({
812
+ var B;
813
+ const p = Ze({
774
814
  chain: r && `${r == null ? void 0 : r.name} (id: ${r == null ? void 0 : r.id})`,
775
815
  from: s == null ? void 0 : s.address,
776
816
  to: d,
777
- value: typeof b < "u" && `${is(b)} ${((E = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : E.symbol) || "ETH"}`,
817
+ value: typeof b < "u" && `${hs(b)} ${((B = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : B.symbol) || "ETH"}`,
778
818
  data: i,
779
819
  gas: o,
780
- gasPrice: typeof a < "u" && `${F(a)} gwei`,
781
- maxFeePerGas: typeof c < "u" && `${F(c)} gwei`,
782
- maxPriorityFeePerGas: typeof l < "u" && `${F(l)} gwei`,
820
+ gasPrice: typeof a < "u" && `${C(a)} gwei`,
821
+ maxFeePerGas: typeof c < "u" && `${C(c)} gwei`,
822
+ maxPriorityFeePerGas: typeof l < "u" && `${C(l)} gwei`,
783
823
  nonce: h
784
824
  });
785
825
  super(t.shortMessage, {
@@ -799,7 +839,7 @@ class gn extends u {
799
839
  }), this.cause = t;
800
840
  }
801
841
  }
802
- class yn extends u {
842
+ class Un extends u {
803
843
  constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: r, index: i }) {
804
844
  let o = "Transaction";
805
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.`, {
@@ -807,27 +847,27 @@ class yn extends u {
807
847
  });
808
848
  }
809
849
  }
810
- class wn extends u {
850
+ class Cn extends u {
811
851
  constructor({ hash: t }) {
812
852
  super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
813
853
  name: "TransactionReceiptNotFoundError"
814
854
  });
815
855
  }
816
856
  }
817
- class En extends u {
857
+ class zn extends u {
818
858
  constructor({ hash: t }) {
819
859
  super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
820
860
  }
821
861
  }
822
- function z(e, t = "hex") {
823
- const s = We(e), n = Re(new Uint8Array(s.length));
862
+ function S(e, t = "hex") {
863
+ const s = Ye(e), n = Xe(new Uint8Array(s.length));
824
864
  return s.encode(n), t === "hex" ? $(n.bytes) : n.bytes;
825
865
  }
826
- function We(e) {
827
- return Array.isArray(e) ? us(e.map((t) => We(t))) : ls(e);
866
+ function Ye(e) {
867
+ return Array.isArray(e) ? xs(e.map((t) => Ye(t))) : gs(e);
828
868
  }
829
- function us(e) {
830
- const t = e.reduce((r, i) => r + i.length, 0), s = Xe(t);
869
+ function xs(e) {
870
+ const t = e.reduce((r, i) => r + i.length, 0), s = Je(t);
831
871
  return {
832
872
  length: t <= 55 ? 1 + t : 1 + s + t,
833
873
  encode(r) {
@@ -837,8 +877,8 @@ function us(e) {
837
877
  }
838
878
  };
839
879
  }
840
- function ls(e) {
841
- const t = typeof e == "string" ? U(e) : e, s = Xe(t.length);
880
+ function gs(e) {
881
+ const t = typeof e == "string" ? z(e) : e, s = Je(t.length);
842
882
  return {
843
883
  length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
844
884
  encode(r) {
@@ -846,7 +886,7 @@ function ls(e) {
846
886
  }
847
887
  };
848
888
  }
849
- function Xe(e) {
889
+ function Je(e) {
850
890
  if (e < 2 ** 8)
851
891
  return 1;
852
892
  if (e < 2 ** 16)
@@ -857,7 +897,7 @@ function Xe(e) {
857
897
  return 4;
858
898
  throw new u("Length is too large.");
859
899
  }
860
- class Ze extends u {
900
+ class Qe extends u {
861
901
  constructor({ cause: t, message: s } = {}) {
862
902
  var r;
863
903
  const n = (r = s == null ? void 0 : s.replace("execution reverted: ", "")) == null ? void 0 : r.replace("execution reverted", "");
@@ -867,58 +907,58 @@ class Ze extends u {
867
907
  });
868
908
  }
869
909
  }
870
- Object.defineProperty(Ze, "code", {
910
+ Object.defineProperty(Qe, "code", {
871
911
  enumerable: !0,
872
912
  configurable: !0,
873
913
  writable: !0,
874
914
  value: 3
875
915
  });
876
- Object.defineProperty(Ze, "nodeMessage", {
916
+ Object.defineProperty(Qe, "nodeMessage", {
877
917
  enumerable: !0,
878
918
  configurable: !0,
879
919
  writable: !0,
880
920
  value: /execution reverted/
881
921
  });
882
- class te extends u {
922
+ class re extends u {
883
923
  constructor({ cause: t, maxFeePerGas: s } = {}) {
884
- super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
924
+ super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${C(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
885
925
  cause: t,
886
926
  name: "FeeCapTooHighError"
887
927
  });
888
928
  }
889
929
  }
890
- Object.defineProperty(te, "nodeMessage", {
930
+ Object.defineProperty(re, "nodeMessage", {
891
931
  enumerable: !0,
892
932
  configurable: !0,
893
933
  writable: !0,
894
934
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
895
935
  });
896
- class ds extends u {
936
+ class ys extends u {
897
937
  constructor({ cause: t, maxFeePerGas: s } = {}) {
898
- super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
938
+ super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${C(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
899
939
  cause: t,
900
940
  name: "FeeCapTooLowError"
901
941
  });
902
942
  }
903
943
  }
904
- Object.defineProperty(ds, "nodeMessage", {
944
+ Object.defineProperty(ys, "nodeMessage", {
905
945
  enumerable: !0,
906
946
  configurable: !0,
907
947
  writable: !0,
908
948
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
909
949
  });
910
- class fs extends u {
950
+ class ws extends u {
911
951
  constructor({ cause: t, nonce: s } = {}) {
912
952
  super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
913
953
  }
914
954
  }
915
- Object.defineProperty(fs, "nodeMessage", {
955
+ Object.defineProperty(ws, "nodeMessage", {
916
956
  enumerable: !0,
917
957
  configurable: !0,
918
958
  writable: !0,
919
959
  value: /nonce too high/
920
960
  });
921
- class hs extends u {
961
+ class Es extends u {
922
962
  constructor({ cause: t, nonce: s } = {}) {
923
963
  super([
924
964
  `Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
@@ -927,24 +967,24 @@ class hs extends u {
927
967
  `), { cause: t, name: "NonceTooLowError" });
928
968
  }
929
969
  }
930
- Object.defineProperty(hs, "nodeMessage", {
970
+ Object.defineProperty(Es, "nodeMessage", {
931
971
  enumerable: !0,
932
972
  configurable: !0,
933
973
  writable: !0,
934
974
  value: /nonce too low|transaction already imported|already known/
935
975
  });
936
- class ps extends u {
976
+ class Bs extends u {
937
977
  constructor({ cause: t, nonce: s } = {}) {
938
978
  super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
939
979
  }
940
980
  }
941
- Object.defineProperty(ps, "nodeMessage", {
981
+ Object.defineProperty(Bs, "nodeMessage", {
942
982
  enumerable: !0,
943
983
  configurable: !0,
944
984
  writable: !0,
945
985
  value: /nonce has max value/
946
986
  });
947
- class bs extends u {
987
+ class Ps extends u {
948
988
  constructor({ cause: t } = {}) {
949
989
  super([
950
990
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -965,13 +1005,13 @@ class bs extends u {
965
1005
  });
966
1006
  }
967
1007
  }
968
- Object.defineProperty(bs, "nodeMessage", {
1008
+ Object.defineProperty(Ps, "nodeMessage", {
969
1009
  enumerable: !0,
970
1010
  configurable: !0,
971
1011
  writable: !0,
972
1012
  value: /insufficient funds|exceeds transaction sender account balance/
973
1013
  });
974
- class ms extends u {
1014
+ class Is extends u {
975
1015
  constructor({ cause: t, gas: s } = {}) {
976
1016
  super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
977
1017
  cause: t,
@@ -979,13 +1019,13 @@ class ms extends u {
979
1019
  });
980
1020
  }
981
1021
  }
982
- Object.defineProperty(ms, "nodeMessage", {
1022
+ Object.defineProperty(Is, "nodeMessage", {
983
1023
  enumerable: !0,
984
1024
  configurable: !0,
985
1025
  writable: !0,
986
1026
  value: /intrinsic gas too high|gas limit reached/
987
1027
  });
988
- class xs extends u {
1028
+ class vs extends u {
989
1029
  constructor({ cause: t, gas: s } = {}) {
990
1030
  super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
991
1031
  cause: t,
@@ -993,13 +1033,13 @@ class xs extends u {
993
1033
  });
994
1034
  }
995
1035
  }
996
- Object.defineProperty(xs, "nodeMessage", {
1036
+ Object.defineProperty(vs, "nodeMessage", {
997
1037
  enumerable: !0,
998
1038
  configurable: !0,
999
1039
  writable: !0,
1000
1040
  value: /intrinsic gas too low/
1001
1041
  });
1002
- class gs extends u {
1042
+ class Ts extends u {
1003
1043
  constructor({ cause: t }) {
1004
1044
  super("The transaction type is not supported for this chain.", {
1005
1045
  cause: t,
@@ -1007,16 +1047,16 @@ class gs extends u {
1007
1047
  });
1008
1048
  }
1009
1049
  }
1010
- Object.defineProperty(gs, "nodeMessage", {
1050
+ Object.defineProperty(Ts, "nodeMessage", {
1011
1051
  enumerable: !0,
1012
1052
  configurable: !0,
1013
1053
  writable: !0,
1014
1054
  value: /transaction type not valid/
1015
1055
  });
1016
- class qe extends u {
1056
+ class et extends u {
1017
1057
  constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
1018
1058
  super([
1019
- `The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${F(n)} gwei` : ""}).`
1059
+ `The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${C(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${C(n)} gwei` : ""}).`
1020
1060
  ].join(`
1021
1061
  `), {
1022
1062
  cause: t,
@@ -1024,13 +1064,13 @@ class qe extends u {
1024
1064
  });
1025
1065
  }
1026
1066
  }
1027
- Object.defineProperty(qe, "nodeMessage", {
1067
+ Object.defineProperty(et, "nodeMessage", {
1028
1068
  enumerable: !0,
1029
1069
  configurable: !0,
1030
1070
  writable: !0,
1031
1071
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
1032
1072
  });
1033
- class Bn extends u {
1073
+ class kn extends u {
1034
1074
  constructor({ cause: t }) {
1035
1075
  super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
1036
1076
  cause: t,
@@ -1038,7 +1078,7 @@ class Bn extends u {
1038
1078
  });
1039
1079
  }
1040
1080
  }
1041
- function le(e, t) {
1081
+ function he(e, t) {
1042
1082
  return ({ exclude: s, format: n }) => ({
1043
1083
  exclude: s,
1044
1084
  format: (r) => {
@@ -1054,33 +1094,33 @@ function le(e, t) {
1054
1094
  type: e
1055
1095
  });
1056
1096
  }
1057
- const de = 2n ** 256n - 1n, Ye = {
1097
+ const pe = 2n ** 256n - 1n, tt = {
1058
1098
  "0x0": "legacy",
1059
1099
  "0x1": "eip2930",
1060
1100
  "0x2": "eip1559",
1061
1101
  "0x3": "eip4844",
1062
1102
  "0x4": "eip7702"
1063
1103
  };
1064
- function fe(e) {
1104
+ function be(e) {
1065
1105
  const t = {
1066
1106
  ...e,
1067
1107
  blockHash: e.blockHash ? e.blockHash : null,
1068
1108
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
1069
- chainId: e.chainId ? Y(e.chainId) : void 0,
1109
+ chainId: e.chainId ? te(e.chainId) : void 0,
1070
1110
  gas: e.gas ? BigInt(e.gas) : void 0,
1071
1111
  gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
1072
1112
  maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
1073
1113
  maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
1074
1114
  maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
1075
- nonce: e.nonce ? Y(e.nonce) : void 0,
1115
+ nonce: e.nonce ? te(e.nonce) : void 0,
1076
1116
  to: e.to ? e.to : null,
1077
1117
  transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
1078
- type: e.type ? Ye[e.type] : void 0,
1118
+ type: e.type ? tt[e.type] : void 0,
1079
1119
  typeHex: e.type ? e.type : void 0,
1080
1120
  value: e.value ? BigInt(e.value) : void 0,
1081
1121
  v: e.v ? BigInt(e.v) : void 0
1082
1122
  };
1083
- return e.authorizationList && (t.authorizationList = ws(e.authorizationList)), t.yParity = (() => {
1123
+ return e.authorizationList && (t.authorizationList = $s(e.authorizationList)), t.yParity = (() => {
1084
1124
  if (e.yParity)
1085
1125
  return Number(e.yParity);
1086
1126
  if (typeof t.v == "bigint") {
@@ -1093,10 +1133,10 @@ function fe(e) {
1093
1133
  }
1094
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;
1095
1135
  }
1096
- const ys = /* @__PURE__ */ le("transaction", fe);
1097
- function ws(e) {
1136
+ const As = /* @__PURE__ */ he("transaction", be);
1137
+ function $s(e) {
1098
1138
  return e.map((t) => ({
1099
- contractAddress: t.address,
1139
+ address: t.address,
1100
1140
  chainId: Number(t.chainId),
1101
1141
  nonce: Number(t.nonce),
1102
1142
  r: t.r,
@@ -1104,8 +1144,8 @@ function ws(e) {
1104
1144
  yParity: Number(t.yParity)
1105
1145
  }));
1106
1146
  }
1107
- function Es(e) {
1108
- const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : fe(s));
1147
+ function Fs(e) {
1148
+ const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : be(s));
1109
1149
  return {
1110
1150
  ...e,
1111
1151
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -1124,46 +1164,44 @@ function Es(e) {
1124
1164
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
1125
1165
  };
1126
1166
  }
1127
- const Bs = /* @__PURE__ */ le("block", Es);
1128
- function Je(e) {
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 = [];
1167
+ const Us = /* @__PURE__ */ he("block", Fs);
1168
+ function st(e) {
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 = [];
1130
1170
  for (const i of n)
1131
1171
  r.push(Uint8Array.from(t.blobToKzgCommitment(i)));
1132
1172
  return s === "bytes" ? r : r.map((i) => $(i));
1133
1173
  }
1134
- function Qe(e) {
1135
- const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) => U(o)) : e.blobs, r = typeof e.commitments[0] == "string" ? e.commitments.map((o) => U(o)) : e.commitments, i = [];
1174
+ function nt(e) {
1175
+ const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) => z(o)) : e.blobs, r = typeof e.commitments[0] == "string" ? e.commitments.map((o) => z(o)) : e.commitments, i = [];
1136
1176
  for (let o = 0; o < n.length; o++) {
1137
1177
  const a = n[o], c = r[o];
1138
1178
  i.push(Uint8Array.from(t.computeBlobKzgProof(a, c)));
1139
1179
  }
1140
1180
  return s === "bytes" ? i : i.map((o) => $(o));
1141
1181
  }
1142
- function Ps(e, t, s, n) {
1182
+ function Cs(e, t, s, n) {
1143
1183
  if (typeof e.setBigUint64 == "function")
1144
1184
  return e.setBigUint64(t, s, n);
1145
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;
1146
1186
  e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
1147
1187
  }
1148
- function vs(e, t, s) {
1188
+ function zs(e, t, s) {
1149
1189
  return e & t ^ ~e & s;
1150
1190
  }
1151
- function Is(e, t, s) {
1191
+ function ks(e, t, s) {
1152
1192
  return e & t ^ e & s ^ t & s;
1153
1193
  }
1154
- class Ts extends Le {
1194
+ class Ss extends Oe {
1155
1195
  constructor(t, s, n, r) {
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);
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);
1157
1197
  }
1158
1198
  update(t) {
1159
- Q(this);
1160
- const { view: s, buffer: n, blockLen: r } = this;
1161
- t = ce(t);
1162
- const i = t.length;
1199
+ ne(this), t = de(t), k(t);
1200
+ const { view: s, buffer: n, blockLen: r } = this, i = t.length;
1163
1201
  for (let o = 0; o < i; ) {
1164
1202
  const a = Math.min(r - this.pos, i - o);
1165
1203
  if (a === r) {
1166
- const c = re(t);
1204
+ const c = ae(t);
1167
1205
  for (; r <= i - o; o += r)
1168
1206
  this.process(c, o);
1169
1207
  continue;
@@ -1173,14 +1211,14 @@ class Ts extends Le {
1173
1211
  return this.length += t.length, this.roundClean(), this;
1174
1212
  }
1175
1213
  digestInto(t) {
1176
- Q(this), Se(t, this), this.finished = !0;
1214
+ ne(this), Le(t, this), this.finished = !0;
1177
1215
  const { buffer: s, view: n, blockLen: r, isLE: i } = this;
1178
1216
  let { pos: o } = this;
1179
- s[o++] = 128, this.buffer.subarray(o).fill(0), this.padOffset > r - o && (this.process(n, 0), o = 0);
1217
+ s[o++] = 128, Z(this.buffer.subarray(o)), this.padOffset > r - o && (this.process(n, 0), o = 0);
1180
1218
  for (let d = o; d < r; d++)
1181
1219
  s[d] = 0;
1182
- Ps(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
1183
- const a = re(t), c = this.outputLen;
1220
+ Cs(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
1221
+ const a = ae(t), c = this.outputLen;
1184
1222
  if (c % 4)
1185
1223
  throw new Error("_sha2: outputLen should be aligned to 32bit");
1186
1224
  const l = c / 4, h = this.get();
@@ -1198,10 +1236,22 @@ class Ts extends Le {
1198
1236
  _cloneInto(t) {
1199
1237
  t || (t = new this.constructor()), t.set(...this.get());
1200
1238
  const { blockLen: s, buffer: n, length: r, finished: i, destroyed: o, pos: a } = this;
1201
- return t.length = r, t.pos = a, t.finished = i, t.destroyed = o, r % s && t.buffer.set(n), t;
1239
+ return t.destroyed = o, t.finished = i, t.length = r, t.pos = a, r % s && t.buffer.set(n), t;
1240
+ }
1241
+ clone() {
1242
+ return this._cloneInto();
1202
1243
  }
1203
1244
  }
1204
- const $s = /* @__PURE__ */ new Uint32Array([
1245
+ const P = /* @__PURE__ */ Uint32Array.from([
1246
+ 1779033703,
1247
+ 3144134277,
1248
+ 1013904242,
1249
+ 2773480762,
1250
+ 1359893119,
1251
+ 2600822924,
1252
+ 528734635,
1253
+ 1541459225
1254
+ ]), Hs = /* @__PURE__ */ Uint32Array.from([
1205
1255
  1116352408,
1206
1256
  1899447441,
1207
1257
  3049323471,
@@ -1266,19 +1316,10 @@ const $s = /* @__PURE__ */ new Uint32Array([
1266
1316
  2756734187,
1267
1317
  3204031479,
1268
1318
  3329325298
1269
- ]), B = /* @__PURE__ */ new Uint32Array([
1270
- 1779033703,
1271
- 3144134277,
1272
- 1013904242,
1273
- 2773480762,
1274
- 1359893119,
1275
- 2600822924,
1276
- 528734635,
1277
- 1541459225
1278
- ]), P = /* @__PURE__ */ new Uint32Array(64);
1279
- class As extends Ts {
1280
- constructor() {
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;
1319
+ ]), I = /* @__PURE__ */ new Uint32Array(64);
1320
+ class Ls extends Ss {
1321
+ constructor(t = 32) {
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;
1282
1323
  }
1283
1324
  get() {
1284
1325
  const { A: t, B: s, C: n, D: r, E: i, F: o, G: a, H: c } = this;
@@ -1290,47 +1331,47 @@ class As extends Ts {
1290
1331
  }
1291
1332
  process(t, s) {
1292
1333
  for (let d = 0; d < 16; d++, s += 4)
1293
- P[d] = t.getUint32(s, !1);
1334
+ I[d] = t.getUint32(s, !1);
1294
1335
  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, S = g(p, 17) ^ g(p, 19) ^ p >>> 10;
1296
- P[d] = S + P[d - 7] + E + P[d - 16] | 0;
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;
1297
1338
  }
1298
1339
  let { A: n, B: r, C: i, D: o, E: a, F: c, G: l, H: h } = this;
1299
1340
  for (let d = 0; d < 64; d++) {
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;
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;
1342
+ h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p + L | 0;
1302
1343
  }
1303
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);
1304
1345
  }
1305
1346
  roundClean() {
1306
- P.fill(0);
1347
+ Z(I);
1307
1348
  }
1308
1349
  destroy() {
1309
- this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
1350
+ this.set(0, 0, 0, 0, 0, 0, 0, 0), Z(this.buffer);
1310
1351
  }
1311
1352
  }
1312
- const Cs = /* @__PURE__ */ Ge(() => new As());
1313
- function Fs(e, t) {
1314
- return Cs(W(e, { strict: !1 }) ? ze(e) : e);
1353
+ const Gs = /* @__PURE__ */ Ne(() => new Ls()), Os = Gs;
1354
+ function Ns(e, t) {
1355
+ return Os(Y(e, { strict: !1 }) ? Se(e) : e);
1315
1356
  }
1316
- function Us(e) {
1317
- const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Fs(t);
1357
+ function Ms(e) {
1358
+ const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Ns(t);
1318
1359
  return r.set([s], 0), n === "bytes" ? r : $(r);
1319
1360
  }
1320
- function zs(e) {
1361
+ function _s(e) {
1321
1362
  const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), r = [];
1322
1363
  for (const i of t)
1323
- r.push(Us({
1364
+ r.push(Ms({
1324
1365
  commitment: i,
1325
1366
  to: n,
1326
1367
  version: s
1327
1368
  }));
1328
1369
  return r;
1329
1370
  }
1330
- const Ie = 6, et = 32, he = 4096, tt = et * he, Te = tt * Ie - // terminator byte (0x80).
1371
+ const $e = 6, rt = 32, me = 4096, it = rt * me, Fe = it * $e - // terminator byte (0x80).
1331
1372
  1 - // zero byte (0x00) appended to each field element.
1332
- 1 * he * Ie, st = 1;
1333
- class ks extends u {
1373
+ 1 * me * $e, ot = 1;
1374
+ class Vs extends u {
1334
1375
  constructor({ maxSize: t, size: s }) {
1335
1376
  super("Blob size is too large.", {
1336
1377
  metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
@@ -1338,12 +1379,12 @@ class ks extends u {
1338
1379
  });
1339
1380
  }
1340
1381
  }
1341
- class nt extends u {
1382
+ class at extends u {
1342
1383
  constructor() {
1343
1384
  super("Blob data must not be empty.", { name: "EmptyBlobError" });
1344
1385
  }
1345
1386
  }
1346
- class Ss extends u {
1387
+ class Ds extends u {
1347
1388
  constructor({ hash: t, size: s }) {
1348
1389
  super(`Versioned hash "${t}" size is invalid.`, {
1349
1390
  metaMessages: ["Expected: 32", `Received: ${s}`],
@@ -1351,33 +1392,33 @@ class Ss extends u {
1351
1392
  });
1352
1393
  }
1353
1394
  }
1354
- class Ls extends u {
1395
+ class Rs extends u {
1355
1396
  constructor({ hash: t, version: s }) {
1356
1397
  super(`Versioned hash "${t}" version is invalid.`, {
1357
1398
  metaMessages: [
1358
- `Expected: ${st}`,
1399
+ `Expected: ${ot}`,
1359
1400
  `Received: ${s}`
1360
1401
  ],
1361
1402
  name: "InvalidVersionedHashVersionError"
1362
1403
  });
1363
1404
  }
1364
1405
  }
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);
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);
1367
1408
  if (!n)
1368
- throw new nt();
1369
- if (n > Te)
1370
- throw new ks({
1371
- maxSize: Te,
1409
+ throw new at();
1410
+ if (n > Fe)
1411
+ throw new Vs({
1412
+ maxSize: Fe,
1372
1413
  size: n
1373
1414
  });
1374
1415
  const r = [];
1375
1416
  let i = !0, o = 0;
1376
1417
  for (; i; ) {
1377
- const a = Re(new Uint8Array(tt));
1418
+ const a = Xe(new Uint8Array(it));
1378
1419
  let c = 0;
1379
- for (; c < he; ) {
1380
- const l = s.slice(o, o + (et - 1));
1420
+ for (; c < me; ) {
1421
+ const l = s.slice(o, o + (rt - 1));
1381
1422
  if (a.pushByte(0), a.pushBytes(l), l.length < 31) {
1382
1423
  a.pushByte(128), i = !1;
1383
1424
  break;
@@ -1388,8 +1429,8 @@ function Gs(e) {
1388
1429
  }
1389
1430
  return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) => $(a.bytes));
1390
1431
  }
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 = [];
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 = [];
1393
1434
  for (let c = 0; c < r.length; c++)
1394
1435
  a.push({
1395
1436
  blob: r[c],
@@ -1398,7 +1439,7 @@ function Hs(e) {
1398
1439
  });
1399
1440
  return a;
1400
1441
  }
1401
- function Os(e) {
1442
+ function Ws(e) {
1402
1443
  if (e.type)
1403
1444
  return e.type;
1404
1445
  if (typeof e.authorizationList < "u")
@@ -1409,9 +1450,9 @@ function Os(e) {
1409
1450
  return "eip1559";
1410
1451
  if (typeof e.gasPrice < "u")
1411
1452
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
1412
- throw new as({ transaction: e });
1453
+ throw new bs({ transaction: e });
1413
1454
  }
1414
- function Ns(e, { args: t, eventName: s } = {}) {
1455
+ function Xs(e, { args: t, eventName: s } = {}) {
1415
1456
  return {
1416
1457
  ...e,
1417
1458
  blockHash: e.blockHash ? e.blockHash : null,
@@ -1422,7 +1463,7 @@ function Ns(e, { args: t, eventName: s } = {}) {
1422
1463
  ...s ? { args: t, eventName: s } : {}
1423
1464
  };
1424
1465
  }
1425
- class Pn extends u {
1466
+ class Sn extends u {
1426
1467
  constructor({ blockNumber: t, chain: s, contract: n }) {
1427
1468
  super(`Chain "${s.name}" does not support contract "${n.name}".`, {
1428
1469
  metaMessages: [
@@ -1437,7 +1478,7 @@ class Pn extends u {
1437
1478
  });
1438
1479
  }
1439
1480
  }
1440
- class vn extends u {
1481
+ class Hn extends u {
1441
1482
  constructor({ chain: t, currentChainId: s }) {
1442
1483
  super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
1443
1484
  metaMessages: [
@@ -1448,7 +1489,7 @@ class vn extends u {
1448
1489
  });
1449
1490
  }
1450
1491
  }
1451
- class In extends u {
1492
+ class Ln extends u {
1452
1493
  constructor() {
1453
1494
  super([
1454
1495
  "No chain was provided to the request.",
@@ -1459,31 +1500,23 @@ class In extends u {
1459
1500
  });
1460
1501
  }
1461
1502
  }
1462
- class Tn extends u {
1503
+ class Gn extends u {
1463
1504
  constructor() {
1464
1505
  super("No chain was provided to the Client.", {
1465
1506
  name: "ClientChainNotConfiguredError"
1466
1507
  });
1467
1508
  }
1468
1509
  }
1469
- class se extends u {
1510
+ class ie extends u {
1470
1511
  constructor({ chainId: t }) {
1471
1512
  super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
1472
1513
  }
1473
1514
  }
1474
- function x(e) {
1475
- return {
1476
- formatters: void 0,
1477
- fees: void 0,
1478
- serializers: void 0,
1479
- ...e
1480
- };
1481
- }
1482
- const Ms = {
1515
+ const qs = {
1483
1516
  "0x0": "reverted",
1484
1517
  "0x1": "success"
1485
1518
  };
1486
- function _s(e) {
1519
+ function Zs(e) {
1487
1520
  const t = {
1488
1521
  ...e,
1489
1522
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
@@ -1491,94 +1524,87 @@ function _s(e) {
1491
1524
  cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
1492
1525
  effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
1493
1526
  gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
1494
- logs: e.logs ? e.logs.map((s) => Ns(s)) : null,
1527
+ logs: e.logs ? e.logs.map((s) => Xs(s)) : null,
1495
1528
  to: e.to ? e.to : null,
1496
- transactionIndex: e.transactionIndex ? Y(e.transactionIndex) : null,
1497
- status: e.status ? Ms[e.status] : null,
1498
- type: e.type ? Ye[e.type] || e.type : null
1529
+ transactionIndex: e.transactionIndex ? te(e.transactionIndex) : null,
1530
+ status: e.status ? qs[e.status] : null,
1531
+ type: e.type ? tt[e.type] || e.type : null
1499
1532
  };
1500
1533
  return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
1501
1534
  }
1502
- const Vs = /* @__PURE__ */ le("transactionReceipt", _s);
1503
- function Ds(e) {
1535
+ const Ys = /* @__PURE__ */ he("transactionReceipt", Zs);
1536
+ function x(e) {
1537
+ return {
1538
+ formatters: void 0,
1539
+ fees: void 0,
1540
+ serializers: void 0,
1541
+ ...e
1542
+ };
1543
+ }
1544
+ function Js(e) {
1504
1545
  const { authorizationList: t } = e;
1505
1546
  if (t)
1506
1547
  for (const s of t) {
1507
- const { contractAddress: n, chainId: r } = s;
1508
- if (!T(n))
1509
- throw new I({ address: n });
1510
- if (r < 0)
1511
- throw new se({ chainId: r });
1548
+ const { chainId: n } = s, r = s.address;
1549
+ if (!A(r))
1550
+ throw new T({ address: r });
1551
+ if (n < 0)
1552
+ throw new ie({ chainId: n });
1512
1553
  }
1513
- pe(e);
1554
+ xe(e);
1514
1555
  }
1515
- function Rs(e) {
1556
+ function Qs(e) {
1516
1557
  const { blobVersionedHashes: t } = e;
1517
1558
  if (t) {
1518
1559
  if (t.length === 0)
1519
- throw new nt();
1560
+ throw new at();
1520
1561
  for (const s of t) {
1521
- const n = v(s), r = Y(Yt(s, 0, 1));
1562
+ const n = v(s), r = te(is(s, 0, 1));
1522
1563
  if (n !== 32)
1523
- throw new Ss({ hash: s, size: n });
1524
- if (r !== st)
1525
- throw new Ls({
1564
+ throw new Ds({ hash: s, size: n });
1565
+ if (r !== ot)
1566
+ throw new Rs({
1526
1567
  hash: s,
1527
1568
  version: r
1528
1569
  });
1529
1570
  }
1530
1571
  }
1531
- pe(e);
1572
+ xe(e);
1532
1573
  }
1533
- function pe(e) {
1574
+ function xe(e) {
1534
1575
  const { chainId: t, maxPriorityFeePerGas: s, maxFeePerGas: n, to: r } = e;
1535
1576
  if (t <= 0)
1536
- throw new se({ chainId: t });
1537
- if (r && !T(r))
1538
- throw new I({ address: r });
1539
- if (n && n > de)
1540
- throw new te({ maxFeePerGas: n });
1577
+ throw new ie({ chainId: t });
1578
+ if (r && !A(r))
1579
+ throw new T({ address: r });
1580
+ if (n && n > pe)
1581
+ throw new re({ maxFeePerGas: n });
1541
1582
  if (s && n && s > n)
1542
- throw new qe({ maxFeePerGas: n, maxPriorityFeePerGas: s });
1583
+ throw new et({ maxFeePerGas: n, maxPriorityFeePerGas: s });
1543
1584
  }
1544
- function js(e) {
1585
+ function en(e) {
1545
1586
  const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
1546
1587
  if (t <= 0)
1547
- throw new se({ chainId: t });
1548
- if (i && !T(i))
1549
- throw new I({ address: i });
1588
+ throw new ie({ chainId: t });
1589
+ if (i && !A(i))
1590
+ throw new T({ address: i });
1550
1591
  if (s || r)
1551
1592
  throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
1552
- if (n && n > de)
1553
- throw new te({ maxFeePerGas: n });
1593
+ if (n && n > pe)
1594
+ throw new re({ maxFeePerGas: n });
1554
1595
  }
1555
- function Ks(e) {
1596
+ function tn(e) {
1556
1597
  const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
1557
- if (i && !T(i))
1558
- throw new I({ address: i });
1598
+ if (i && !A(i))
1599
+ throw new T({ address: i });
1559
1600
  if (typeof t < "u" && t <= 0)
1560
- throw new se({ chainId: t });
1601
+ throw new ie({ chainId: t });
1561
1602
  if (s || r)
1562
1603
  throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
1563
- if (n && n > de)
1564
- throw new te({ maxFeePerGas: n });
1565
- }
1566
- function Ws(e) {
1567
- if (!e || e.length === 0)
1568
- return [];
1569
- const t = [];
1570
- for (const s of e) {
1571
- const { contractAddress: n, chainId: r, nonce: i, ...o } = s;
1572
- t.push([
1573
- r ? f(r) : "0x",
1574
- n,
1575
- i ? f(i) : "0x",
1576
- ...X({}, o)
1577
- ]);
1578
- }
1579
- return t;
1604
+ if (n && n > pe)
1605
+ throw new re({ maxFeePerGas: n });
1580
1606
  }
1581
- function ne(e) {
1607
+ function oe(e) {
1582
1608
  if (!e || e.length === 0)
1583
1609
  return [];
1584
1610
  const t = [];
@@ -1586,24 +1612,24 @@ function ne(e) {
1586
1612
  const { address: n, storageKeys: r } = e[s];
1587
1613
  for (let i = 0; i < r.length; i++)
1588
1614
  if (r[i].length - 2 !== 64)
1589
- throw new cs({ storageKey: r[i] });
1590
- if (!T(n, { strict: !1 }))
1591
- throw new I({ address: n });
1615
+ throw new ms({ storageKey: r[i] });
1616
+ if (!A(n, { strict: !1 }))
1617
+ throw new T({ address: n });
1592
1618
  t.push([n, r]);
1593
1619
  }
1594
1620
  return t;
1595
1621
  }
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);
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);
1599
1625
  }
1600
- function Zs(e, t) {
1626
+ function nn(e, t) {
1601
1627
  const { authorizationList: s, chainId: n, gas: r, nonce: i, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
1602
- Ds(e);
1603
- const b = ne(h), p = Ws(s);
1604
- return O([
1628
+ Js(e);
1629
+ const b = oe(h), p = un(s);
1630
+ return _([
1605
1631
  "0x04",
1606
- z([
1632
+ S([
1607
1633
  f(n),
1608
1634
  i ? f(i) : "0x",
1609
1635
  l ? f(l) : "0x",
@@ -1614,27 +1640,27 @@ function Zs(e, t) {
1614
1640
  d ?? "0x",
1615
1641
  b,
1616
1642
  p,
1617
- ...X(e, t)
1643
+ ...J(e, t)
1618
1644
  ])
1619
1645
  ]);
1620
1646
  }
1621
- function qs(e, t) {
1647
+ function rn(e, t) {
1622
1648
  const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
1623
- Rs(e);
1649
+ Qs(e);
1624
1650
  let b = e.blobVersionedHashes, p = e.sidecars;
1625
1651
  if (e.blobs && (typeof b > "u" || typeof p > "u")) {
1626
- const A = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((M) => $(M)), Z = e.kzg, N = Je({
1627
- blobs: A,
1628
- kzg: Z
1652
+ const F = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((D) => $(D)), Q = e.kzg, V = st({
1653
+ blobs: F,
1654
+ kzg: Q
1629
1655
  });
1630
- if (typeof b > "u" && (b = zs({
1631
- commitments: N
1656
+ if (typeof b > "u" && (b = _s({
1657
+ commitments: V
1632
1658
  })), typeof p > "u") {
1633
- const M = Qe({ blobs: A, commitments: N, kzg: Z });
1634
- p = Hs({ blobs: A, commitments: N, proofs: M });
1659
+ const D = nt({ blobs: F, commitments: V, kzg: Q });
1660
+ p = Ks({ blobs: F, commitments: V, proofs: D });
1635
1661
  }
1636
1662
  }
1637
- const E = ne(h), S = [
1663
+ const B = oe(h), L = [
1638
1664
  f(s),
1639
1665
  r ? f(r) : "0x",
1640
1666
  l ? f(l) : "0x",
@@ -1643,26 +1669,26 @@ function qs(e, t) {
1643
1669
  i ?? "0x",
1644
1670
  o ? f(o) : "0x",
1645
1671
  d ?? "0x",
1646
- E,
1672
+ B,
1647
1673
  a ? f(a) : "0x",
1648
1674
  b ?? [],
1649
- ...X(e, t)
1650
- ], be = [], me = [], xe = [];
1675
+ ...J(e, t)
1676
+ ], ge = [], ye = [], we = [];
1651
1677
  if (p)
1652
- for (let A = 0; A < p.length; A++) {
1653
- const { blob: Z, commitment: N, proof: M } = p[A];
1654
- be.push(Z), me.push(N), xe.push(M);
1678
+ for (let F = 0; F < p.length; F++) {
1679
+ const { blob: Q, commitment: V, proof: D } = p[F];
1680
+ ge.push(Q), ye.push(V), we.push(D);
1655
1681
  }
1656
- return O([
1682
+ return _([
1657
1683
  "0x03",
1658
1684
  // If sidecars are enabled, envelope turns into a "wrapper":
1659
- z(p ? [S, be, me, xe] : S)
1685
+ S(p ? [L, ge, ye, we] : L)
1660
1686
  ]);
1661
1687
  }
1662
- function Ys(e, t) {
1688
+ function on(e, t) {
1663
1689
  const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
1664
- pe(e);
1665
- const d = ne(l), b = [
1690
+ xe(e);
1691
+ const d = oe(l), b = [
1666
1692
  f(s),
1667
1693
  r ? f(r) : "0x",
1668
1694
  c ? f(c) : "0x",
@@ -1672,17 +1698,17 @@ function Ys(e, t) {
1672
1698
  o ? f(o) : "0x",
1673
1699
  h ?? "0x",
1674
1700
  d,
1675
- ...X(e, t)
1701
+ ...J(e, t)
1676
1702
  ];
1677
- return O([
1703
+ return _([
1678
1704
  "0x02",
1679
- z(b)
1705
+ S(b)
1680
1706
  ]);
1681
1707
  }
1682
- function Js(e, t) {
1708
+ function an(e, t) {
1683
1709
  const { chainId: s, gas: n, data: r, nonce: i, to: o, value: a, accessList: c, gasPrice: l } = e;
1684
- js(e);
1685
- const h = ne(c), d = [
1710
+ en(e);
1711
+ const h = oe(c), d = [
1686
1712
  f(s),
1687
1713
  i ? f(i) : "0x",
1688
1714
  l ? f(l) : "0x",
@@ -1691,16 +1717,16 @@ function Js(e, t) {
1691
1717
  a ? f(a) : "0x",
1692
1718
  r ?? "0x",
1693
1719
  h,
1694
- ...X(e, t)
1720
+ ...J(e, t)
1695
1721
  ];
1696
- return O([
1722
+ return _([
1697
1723
  "0x01",
1698
- z(d)
1724
+ S(d)
1699
1725
  ]);
1700
1726
  }
1701
- function Qs(e, t) {
1727
+ function cn(e, t) {
1702
1728
  const { chainId: s = 0, gas: n, data: r, nonce: i, to: o, value: a, gasPrice: c } = e;
1703
- Ks(e);
1729
+ tn(e);
1704
1730
  let l = [
1705
1731
  i ? f(i) : "0x",
1706
1732
  c ? f(c) : "0x",
@@ -1717,9 +1743,9 @@ function Qs(e, t) {
1717
1743
  return BigInt(s * 2) + BigInt(35n + t.v - 27n);
1718
1744
  const p = 27n + (t.v === 27n ? 0n : 1n);
1719
1745
  if (t.v !== p)
1720
- throw new os({ v: t.v });
1746
+ throw new ps({ v: t.v });
1721
1747
  return p;
1722
- })(), d = C(t.r), b = C(t.s);
1748
+ })(), d = U(t.r), b = U(t.s);
1723
1749
  l = [
1724
1750
  ...l,
1725
1751
  f(h),
@@ -1732,9 +1758,9 @@ function Qs(e, t) {
1732
1758
  "0x",
1733
1759
  "0x"
1734
1760
  ]);
1735
- return z(l);
1761
+ return S(l);
1736
1762
  }
1737
- function X(e, t) {
1763
+ function J(e, t) {
1738
1764
  const s = t ?? e, { v: n, yParity: r } = s;
1739
1765
  if (typeof s.r > "u")
1740
1766
  return [];
@@ -1742,10 +1768,25 @@ function X(e, t) {
1742
1768
  return [];
1743
1769
  if (typeof n > "u" && typeof r > "u")
1744
1770
  return [];
1745
- const i = C(s.r), o = C(s.s);
1771
+ const i = U(s.r), o = U(s.s);
1746
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];
1747
1773
  }
1748
- const en = {
1774
+ function un(e) {
1775
+ if (!e || e.length === 0)
1776
+ return [];
1777
+ const t = [];
1778
+ for (const s of e) {
1779
+ const { chainId: n, nonce: r, ...i } = s, o = s.address;
1780
+ t.push([
1781
+ n ? N(n) : "0x",
1782
+ o,
1783
+ r ? N(r) : "0x",
1784
+ ...J({}, i)
1785
+ ]);
1786
+ }
1787
+ return t;
1788
+ }
1789
+ const ln = {
1749
1790
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
1750
1791
  l1Block: { address: "0x4200000000000000000000000000000000000015" },
1751
1792
  l2CrossDomainMessenger: {
@@ -1756,76 +1797,77 @@ const en = {
1756
1797
  l2ToL1MessagePasser: {
1757
1798
  address: "0x4200000000000000000000000000000000000016"
1758
1799
  }
1759
- }, tn = {
1760
- block: /* @__PURE__ */ Bs({
1800
+ }, dn = {
1801
+ block: /* @__PURE__ */ Us({
1761
1802
  format(e) {
1762
1803
  var s;
1763
1804
  return {
1764
1805
  transactions: (s = e.transactions) == null ? void 0 : s.map((n) => {
1765
1806
  if (typeof n == "string")
1766
1807
  return n;
1767
- const r = fe(n);
1768
- return r.typeHex === "0x7e" && (r.isSystemTx = n.isSystemTx, r.mint = n.mint ? G(n.mint) : void 0, r.sourceHash = n.sourceHash, r.type = "deposit"), r;
1808
+ const r = be(n);
1809
+ return r.typeHex === "0x7e" && (r.isSystemTx = n.isSystemTx, r.mint = n.mint ? O(n.mint) : void 0, r.sourceHash = n.sourceHash, r.type = "deposit"), r;
1769
1810
  }),
1770
1811
  stateRoot: e.stateRoot
1771
1812
  };
1772
1813
  }
1773
1814
  }),
1774
- transaction: /* @__PURE__ */ ys({
1815
+ transaction: /* @__PURE__ */ As({
1775
1816
  format(e) {
1776
1817
  const t = {};
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;
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;
1778
1819
  }
1779
1820
  }),
1780
- transactionReceipt: /* @__PURE__ */ Vs({
1821
+ transactionReceipt: /* @__PURE__ */ Ys({
1781
1822
  format(e) {
1782
1823
  return {
1783
- l1GasPrice: e.l1GasPrice ? G(e.l1GasPrice) : null,
1784
- l1GasUsed: e.l1GasUsed ? G(e.l1GasUsed) : null,
1785
- l1Fee: e.l1Fee ? G(e.l1Fee) : null,
1824
+ l1GasPrice: e.l1GasPrice ? O(e.l1GasPrice) : null,
1825
+ l1GasUsed: e.l1GasUsed ? O(e.l1GasUsed) : null,
1826
+ l1Fee: e.l1Fee ? O(e.l1Fee) : null,
1786
1827
  l1FeeScalar: e.l1FeeScalar ? Number(e.l1FeeScalar) : null
1787
1828
  };
1788
1829
  }
1789
1830
  })
1790
1831
  };
1791
- function sn(e, t) {
1792
- return on(e) ? rn(e) : Xs(e, t);
1832
+ function fn(e, t) {
1833
+ return bn(e) ? pn(e) : sn(e, t);
1793
1834
  }
1794
- const nn = {
1795
- transaction: sn
1835
+ const hn = {
1836
+ transaction: fn
1796
1837
  };
1797
- function rn(e) {
1798
- an(e);
1838
+ function pn(e) {
1839
+ mn(e);
1799
1840
  const { sourceHash: t, data: s, from: n, gas: r, isSystemTx: i, mint: o, to: a, value: c } = e, l = [
1800
1841
  t,
1801
1842
  n,
1802
1843
  a ?? "0x",
1803
- o ? f(o) : "0x",
1804
- c ? f(c) : "0x",
1805
- r ? f(r) : "0x",
1844
+ o ? N(o) : "0x",
1845
+ c ? N(c) : "0x",
1846
+ r ? N(r) : "0x",
1806
1847
  i ? "0x1" : "0x",
1807
1848
  s ?? "0x"
1808
1849
  ];
1809
- return O([
1850
+ return _([
1810
1851
  "0x7e",
1811
- z(l)
1852
+ S(l)
1812
1853
  ]);
1813
1854
  }
1814
- function on(e) {
1855
+ function bn(e) {
1815
1856
  return e.type === "deposit" || typeof e.sourceHash < "u";
1816
1857
  }
1817
- function an(e) {
1858
+ function mn(e) {
1818
1859
  const { from: t, to: s } = e;
1819
- if (t && !T(t))
1820
- throw new I({ address: t });
1821
- if (s && !T(s))
1822
- throw new I({ address: s });
1823
- }
1824
- const w = {
1825
- contracts: en,
1826
- formatters: tn,
1827
- serializers: nn
1828
- }, cn = 42161, rt = /* @__PURE__ */ x({
1860
+ if (t && !A(t))
1861
+ throw new T({ address: t });
1862
+ if (s && !A(s))
1863
+ throw new T({ address: s });
1864
+ }
1865
+ const E = {
1866
+ blockTime: 2e3,
1867
+ contracts: ln,
1868
+ formatters: dn,
1869
+ serializers: hn
1870
+ }, xn = 42161, ct = /* @__PURE__ */ x({
1829
1871
  id: 33139,
1830
1872
  name: "Ape Chain",
1831
1873
  nativeCurrency: {
@@ -1852,11 +1894,12 @@ const w = {
1852
1894
  blockCreated: 20889
1853
1895
  }
1854
1896
  },
1855
- sourceId: cn
1856
- }), it = /* @__PURE__ */ x({
1897
+ sourceId: xn
1898
+ }), ut = /* @__PURE__ */ x({
1857
1899
  id: 42161,
1858
1900
  name: "Arbitrum One",
1859
1901
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
1902
+ blockTime: 250,
1860
1903
  rpcUrls: {
1861
1904
  default: {
1862
1905
  http: ["https://arb1.arbitrum.io/rpc"]
@@ -1875,8 +1918,8 @@ const w = {
1875
1918
  blockCreated: 7654707
1876
1919
  }
1877
1920
  }
1878
- }), D = 1, ot = /* @__PURE__ */ x({
1879
- ...w,
1921
+ }), K = 1, lt = /* @__PURE__ */ x({
1922
+ ...E,
1880
1923
  id: 8453,
1881
1924
  name: "Base",
1882
1925
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -1893,14 +1936,14 @@ const w = {
1893
1936
  }
1894
1937
  },
1895
1938
  contracts: {
1896
- ...w.contracts,
1939
+ ...E.contracts,
1897
1940
  disputeGameFactory: {
1898
- [D]: {
1941
+ [K]: {
1899
1942
  address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
1900
1943
  }
1901
1944
  },
1902
1945
  l2OutputOracle: {
1903
- [D]: {
1946
+ [K]: {
1904
1947
  address: "0x56315b90c40730925ec5485cf004d835058518A0"
1905
1948
  }
1906
1949
  },
@@ -1909,21 +1952,21 @@ const w = {
1909
1952
  blockCreated: 5022
1910
1953
  },
1911
1954
  portal: {
1912
- [D]: {
1955
+ [K]: {
1913
1956
  address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
1914
1957
  blockCreated: 17482143
1915
1958
  }
1916
1959
  },
1917
1960
  l1StandardBridge: {
1918
- [D]: {
1961
+ [K]: {
1919
1962
  address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
1920
1963
  blockCreated: 17482143
1921
1964
  }
1922
1965
  }
1923
1966
  },
1924
- sourceId: D
1925
- }), R = 11155111, at = /* @__PURE__ */ x({
1926
- ...w,
1967
+ sourceId: K
1968
+ }), W = 11155111, dt = /* @__PURE__ */ x({
1969
+ ...E,
1927
1970
  id: 84532,
1928
1971
  network: "base-sepolia",
1929
1972
  name: "Base Sepolia",
@@ -1941,25 +1984,25 @@ const w = {
1941
1984
  }
1942
1985
  },
1943
1986
  contracts: {
1944
- ...w.contracts,
1987
+ ...E.contracts,
1945
1988
  disputeGameFactory: {
1946
- [R]: {
1989
+ [W]: {
1947
1990
  address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
1948
1991
  }
1949
1992
  },
1950
1993
  l2OutputOracle: {
1951
- [R]: {
1994
+ [W]: {
1952
1995
  address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
1953
1996
  }
1954
1997
  },
1955
1998
  portal: {
1956
- [R]: {
1999
+ [W]: {
1957
2000
  address: "0x49f53e41452c74589e85ca1677426ba426459e85",
1958
2001
  blockCreated: 4446677
1959
2002
  }
1960
2003
  },
1961
2004
  l1StandardBridge: {
1962
- [R]: {
2005
+ [W]: {
1963
2006
  address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
1964
2007
  blockCreated: 4446677
1965
2008
  }
@@ -1970,8 +2013,8 @@ const w = {
1970
2013
  }
1971
2014
  },
1972
2015
  testnet: !0,
1973
- sourceId: R
1974
- }), ct = /* @__PURE__ */ x({
2016
+ sourceId: W
2017
+ }), ft = /* @__PURE__ */ x({
1975
2018
  id: 80094,
1976
2019
  name: "Berachain",
1977
2020
  nativeCurrency: {
@@ -2002,8 +2045,9 @@ const w = {
2002
2045
  url: "https://berascan.com"
2003
2046
  }
2004
2047
  },
2048
+ ensTlds: [".bera"],
2005
2049
  testnet: !1
2006
- }), ut = /* @__PURE__ */ x({
2050
+ }), ht = /* @__PURE__ */ x({
2007
2051
  id: 56,
2008
2052
  name: "BNB Smart Chain",
2009
2053
  nativeCurrency: {
@@ -2027,7 +2071,7 @@ const w = {
2027
2071
  blockCreated: 15921452
2028
2072
  }
2029
2073
  }
2030
- }), lt = /* @__PURE__ */ x({
2074
+ }), pt = /* @__PURE__ */ x({
2031
2075
  id: 17e3,
2032
2076
  name: "Holesky",
2033
2077
  nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
@@ -2058,7 +2102,29 @@ const w = {
2058
2102
  }
2059
2103
  },
2060
2104
  testnet: !0
2061
- }), dt = /* @__PURE__ */ x({
2105
+ }), bt = /* @__PURE__ */ x({
2106
+ id: 560048,
2107
+ name: "Hoodi",
2108
+ nativeCurrency: { name: "Hoodi Ether", symbol: "ETH", decimals: 18 },
2109
+ rpcUrls: {
2110
+ default: {
2111
+ http: ["https://rpc.hoodi.ethpandaops.io"]
2112
+ }
2113
+ },
2114
+ blockExplorers: {
2115
+ default: {
2116
+ name: "Etherscan",
2117
+ url: "https://hoodi.etherscan.io"
2118
+ }
2119
+ },
2120
+ contracts: {
2121
+ multicall3: {
2122
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
2123
+ blockCreated: 2589
2124
+ }
2125
+ },
2126
+ testnet: !0
2127
+ }), mt = /* @__PURE__ */ x({
2062
2128
  id: 1,
2063
2129
  name: "Ethereum",
2064
2130
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -2087,8 +2153,8 @@ const w = {
2087
2153
  blockCreated: 14353601
2088
2154
  }
2089
2155
  }
2090
- }), j = 11155111, ft = /* @__PURE__ */ x({
2091
- ...w,
2156
+ }), X = 11155111, xt = /* @__PURE__ */ x({
2157
+ ...E,
2092
2158
  id: 11155420,
2093
2159
  name: "OP Sepolia",
2094
2160
  nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
@@ -2105,14 +2171,14 @@ const w = {
2105
2171
  }
2106
2172
  },
2107
2173
  contracts: {
2108
- ...w.contracts,
2174
+ ...E.contracts,
2109
2175
  disputeGameFactory: {
2110
- [j]: {
2176
+ [X]: {
2111
2177
  address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
2112
2178
  }
2113
2179
  },
2114
2180
  l2OutputOracle: {
2115
- [j]: {
2181
+ [X]: {
2116
2182
  address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
2117
2183
  }
2118
2184
  },
@@ -2121,19 +2187,19 @@ const w = {
2121
2187
  blockCreated: 1620204
2122
2188
  },
2123
2189
  portal: {
2124
- [j]: {
2190
+ [X]: {
2125
2191
  address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
2126
2192
  }
2127
2193
  },
2128
2194
  l1StandardBridge: {
2129
- [j]: {
2195
+ [X]: {
2130
2196
  address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
2131
2197
  }
2132
2198
  }
2133
2199
  },
2134
2200
  testnet: !0,
2135
- sourceId: j
2136
- }), ht = /* @__PURE__ */ x({
2201
+ sourceId: X
2202
+ }), gt = /* @__PURE__ */ x({
2137
2203
  id: 11155111,
2138
2204
  name: "Sepolia",
2139
2205
  nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
@@ -2161,8 +2227,8 @@ const w = {
2161
2227
  }
2162
2228
  },
2163
2229
  testnet: !0
2164
- }), K = 1, pt = /* @__PURE__ */ x({
2165
- ...w,
2230
+ }), q = 1, yt = /* @__PURE__ */ x({
2231
+ ...E,
2166
2232
  id: 1868,
2167
2233
  name: "Soneium Mainnet",
2168
2234
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -2179,25 +2245,25 @@ const w = {
2179
2245
  }
2180
2246
  },
2181
2247
  contracts: {
2182
- ...w.contracts,
2248
+ ...E.contracts,
2183
2249
  disputeGameFactory: {
2184
- [K]: {
2250
+ [q]: {
2185
2251
  address: "0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"
2186
2252
  }
2187
2253
  },
2188
2254
  l2OutputOracle: {
2189
- [K]: {
2255
+ [q]: {
2190
2256
  address: "0x0000000000000000000000000000000000000000"
2191
2257
  }
2192
2258
  },
2193
2259
  portal: {
2194
- [K]: {
2260
+ [q]: {
2195
2261
  address: "0x88e529a6ccd302c948689cd5156c83d4614fae92",
2196
2262
  blockCreated: 7061266
2197
2263
  }
2198
2264
  },
2199
2265
  l1StandardBridge: {
2200
- [K]: {
2266
+ [q]: {
2201
2267
  address: "0xeb9bf100225c214efc3e7c651ebbadcf85177607",
2202
2268
  blockCreated: 7061266
2203
2269
  }
@@ -2207,9 +2273,9 @@ const w = {
2207
2273
  blockCreated: 1
2208
2274
  }
2209
2275
  },
2210
- sourceId: K
2211
- }), ae = 1, bt = /* @__PURE__ */ x({
2212
- ...w,
2276
+ sourceId: q
2277
+ }), le = 1, wt = /* @__PURE__ */ x({
2278
+ ...E,
2213
2279
  id: 48900,
2214
2280
  name: "Zircuit Mainnet",
2215
2281
  nativeCurrency: {
@@ -2220,8 +2286,9 @@ const w = {
2220
2286
  rpcUrls: {
2221
2287
  default: {
2222
2288
  http: [
2223
- "https://zircuit1-mainnet.p2pify.com",
2289
+ "https://mainnet.zircuit.com",
2224
2290
  "https://zircuit1-mainnet.liquify.com",
2291
+ "https://zircuit1-mainnet.p2pify.com",
2225
2292
  "https://zircuit-mainnet.drpc.org"
2226
2293
  ]
2227
2294
  }
@@ -2237,117 +2304,124 @@ const w = {
2237
2304
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
2238
2305
  },
2239
2306
  l2OutputOracle: {
2240
- [ae]: {
2307
+ [le]: {
2241
2308
  address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
2242
2309
  }
2243
2310
  },
2244
2311
  portal: {
2245
- [ae]: {
2312
+ [le]: {
2246
2313
  address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
2247
2314
  }
2248
2315
  },
2249
2316
  l1StandardBridge: {
2250
- [ae]: {
2317
+ [le]: {
2251
2318
  address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
2252
2319
  }
2253
2320
  }
2254
2321
  },
2255
2322
  testnet: !1
2256
2323
  });
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,
2261
- [m.Base]: ot,
2262
- [m.Bsc]: ut,
2263
- [m.Arbitrum]: it,
2264
- [m.ApeChain]: rt,
2265
- [m.Soneium]: pt,
2266
- [m.Sepolia]: ht,
2267
- [m.OptimismSepolia]: ft,
2268
- [m.BaseSepolia]: at,
2269
- [m.Zircuit]: bt,
2270
- [m.Berachain]: ct
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 = {
2326
+ [m.Mainnet]: mt,
2327
+ [m.Holesky]: pt,
2328
+ [m.Base]: lt,
2329
+ [m.Bsc]: ht,
2330
+ [m.Arbitrum]: ut,
2331
+ [m.ApeChain]: ct,
2332
+ [m.Soneium]: yt,
2333
+ [m.Sepolia]: gt,
2334
+ [m.OptimismSepolia]: xt,
2335
+ [m.BaseSepolia]: dt,
2336
+ [m.Zircuit]: wt,
2337
+ [m.Berachain]: ft,
2338
+ [m.Hoodi]: bt
2271
2339
  };
2272
2340
  export {
2273
- un as $,
2274
- Y as A,
2341
+ H as $,
2342
+ as as A,
2275
2343
  u as B,
2276
2344
  m as C,
2277
- ln as D,
2278
- Ze as E,
2279
- U as F,
2280
- Re as G,
2281
- Le as H,
2282
- I,
2283
- _e as J,
2284
- Jt as K,
2285
- Ke as L,
2286
- F as M,
2287
- is as N,
2288
- z as O,
2289
- te as P,
2290
- ds as Q,
2291
- fs as R,
2292
- hs as S,
2293
- ps as T,
2294
- bs as U,
2295
- $n as V,
2296
- ms as W,
2297
- xs as X,
2298
- gs as Y,
2299
- qe as Z,
2300
- Bn as _,
2301
- ze as a,
2302
- xn as a0,
2303
- de as a1,
2304
- Es as a2,
2305
- Je as a3,
2306
- zs as a4,
2307
- Qe as a5,
2308
- Hs as a6,
2309
- Os as a7,
2310
- es as a8,
2311
- Ns as a9,
2312
- Pn as aa,
2313
- Tn as ab,
2314
- In as ac,
2315
- vn as ad,
2316
- gn as ae,
2317
- Me as af,
2318
- Qt as ag,
2319
- yn as ah,
2320
- fe as ai,
2321
- wn as aj,
2322
- _s as ak,
2323
- Wt as al,
2324
- dn as am,
2325
- bn as an,
2326
- En as ao,
2345
+ Ft as D,
2346
+ Qe as E,
2347
+ ss as F,
2348
+ Xs as G,
2349
+ Oe as H,
2350
+ A as I,
2351
+ T as J,
2352
+ v as K,
2353
+ Re as L,
2354
+ z as M,
2355
+ 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,
2366
+ je as Y,
2367
+ At as Z,
2368
+ Pt as _,
2369
+ Se as a,
2370
+ yn as a0,
2371
+ Xe as a1,
2372
+ os as a2,
2373
+ Ze as a3,
2374
+ C as a4,
2375
+ hs as a5,
2376
+ S as a6,
2377
+ re as a7,
2378
+ ys as a8,
2379
+ ws as a9,
2380
+ Es as aa,
2381
+ Bs as ab,
2382
+ Ps as ac,
2383
+ Is as ad,
2384
+ vs as ae,
2385
+ Ts as af,
2386
+ et as ag,
2387
+ gn as ah,
2388
+ $n as ai,
2389
+ pe as aj,
2390
+ st as ak,
2391
+ _s as al,
2392
+ 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,
2327
2401
  $ as b,
2328
- mn as c,
2329
- fn as d,
2330
- ce as e,
2331
- Q as f,
2332
- ee as g,
2333
- G as h,
2334
- W as i,
2335
- hn as j,
2336
- Cs as k,
2337
- v as l,
2338
- Xt as m,
2339
- Ue as n,
2340
- T as o,
2341
- mt as p,
2342
- Bt as q,
2343
- pn as r,
2344
- ke as s,
2345
- f as t,
2346
- gt as u,
2347
- vt as v,
2348
- Yt as w,
2349
- O as x,
2350
- k as y,
2351
- C as z
2402
+ An as c,
2403
+ is as d,
2404
+ _ as e,
2405
+ Pn as f,
2406
+ Nt as g,
2407
+ O as h,
2408
+ Y as i,
2409
+ k as j,
2410
+ Bn as k,
2411
+ In as l,
2412
+ En as m,
2413
+ f as n,
2414
+ de as o,
2415
+ Et as p,
2416
+ Z as q,
2417
+ ne as r,
2418
+ He as s,
2419
+ N as t,
2420
+ se as u,
2421
+ vn as v,
2422
+ Gs as w,
2423
+ te as x,
2424
+ qs as y,
2425
+ U as z
2352
2426
  };
2353
- //# sourceMappingURL=constants-BaHwPdbi.js.map
2427
+ //# sourceMappingURL=constants-BweLzNUt.js.map