@pufferfinance/puffer-sdk 1.28.4 → 1.28.6

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 (139) 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-LIGR3N1A.cjs → ccip-Dv8Z-tXr.cjs} +2 -2
  8. package/dist/{ccip-LIGR3N1A.cjs.map → ccip-Dv8Z-tXr.cjs.map} +1 -1
  9. package/dist/{ccip-78YM988s.js → ccip-dYaIZXTj.js} +4 -4
  10. package/dist/{ccip-78YM988s.js.map → ccip-dYaIZXTj.js.map} +1 -1
  11. package/dist/chains/constants.cjs +1 -1
  12. package/dist/chains/constants.js +1 -1
  13. package/dist/constants-4-ehn8UI.cjs +9 -0
  14. package/dist/constants-4-ehn8UI.cjs.map +1 -0
  15. package/dist/{constants-CuIEh_ZS.js → constants-BO_Dvglw.js} +163 -143
  16. package/dist/constants-BO_Dvglw.js.map +1 -0
  17. package/dist/contracts/addresses.cjs +1 -1
  18. package/dist/contracts/addresses.cjs.map +1 -1
  19. package/dist/contracts/addresses.js +2 -2
  20. package/dist/contracts/addresses.js.map +1 -1
  21. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  22. package/dist/contracts/handlers/carrot-staking-handler.d.ts +18 -0
  23. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  24. package/dist/contracts/handlers/carrot-vesting-handler.cjs +1 -1
  25. package/dist/contracts/handlers/carrot-vesting-handler.d.ts +18 -0
  26. package/dist/contracts/handlers/carrot-vesting-handler.js +2 -2
  27. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  28. package/dist/contracts/handlers/concrete-vault-handler.d.ts +18 -0
  29. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  30. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  31. package/dist/contracts/handlers/distributor-handler.d.ts +18 -0
  32. package/dist/contracts/handlers/distributor-handler.js +2 -2
  33. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  34. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  35. package/dist/contracts/handlers/erc20-permit-handler.d.ts +18 -0
  36. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  37. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  38. package/dist/contracts/handlers/gauge-registry-handler.cjs +1 -1
  39. package/dist/contracts/handlers/gauge-registry-handler.d.ts +18 -0
  40. package/dist/contracts/handlers/gauge-registry-handler.js +2 -2
  41. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  42. package/dist/contracts/handlers/guardian-module-handler.d.ts +18 -0
  43. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  44. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
  45. package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +18 -0
  46. package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
  47. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  48. package/dist/contracts/handlers/institutional-vault-handler.d.ts +18 -0
  49. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  50. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  51. package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +18 -0
  52. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  53. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  54. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +18 -0
  55. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  56. package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
  57. package/dist/contracts/handlers/lagoon-vault-handler.d.ts +18 -0
  58. package/dist/contracts/handlers/lagoon-vault-handler.js +2 -2
  59. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  60. package/dist/contracts/handlers/mtw-carrot-handler.d.ts +18 -0
  61. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  62. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  63. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +18 -0
  64. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  65. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  66. package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +18 -0
  67. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  68. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  69. package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +18 -0
  70. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  71. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  72. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +18 -0
  73. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  74. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  75. package/dist/contracts/handlers/puf-locker-handler.d.ts +18 -0
  76. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  77. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  78. package/dist/contracts/handlers/puffer-depositor-handler.d.ts +18 -0
  79. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  80. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  81. package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +18 -0
  82. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  83. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  84. package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +18 -0
  85. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  86. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  87. package/dist/contracts/handlers/puffer-protocol-handler.d.ts +18 -0
  88. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  89. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  90. package/dist/contracts/handlers/puffer-vault-handler.d.ts +18 -0
  91. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  92. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  93. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +18 -0
  94. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  95. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  96. package/dist/contracts/handlers/validator-ticket-handler.d.ts +18 -0
  97. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  98. package/dist/contracts/handlers/vl-puffer-handler.cjs +1 -1
  99. package/dist/contracts/handlers/vl-puffer-handler.d.ts +18 -0
  100. package/dist/contracts/handlers/vl-puffer-handler.js +2 -2
  101. package/dist/contracts/tokens.cjs +1 -1
  102. package/dist/contracts/tokens.cjs.map +1 -1
  103. package/dist/contracts/tokens.js +2 -2
  104. package/dist/contracts/tokens.js.map +1 -1
  105. package/dist/contracts/vaults-addresses.cjs +1 -1
  106. package/dist/contracts/vaults-addresses.js +1 -1
  107. package/dist/{getContract-D4_SEfqa.cjs → getContract-C6a8L2Jd.cjs} +2 -2
  108. package/dist/{getContract-D4_SEfqa.cjs.map → getContract-C6a8L2Jd.cjs.map} +1 -1
  109. package/dist/{getContract-DQN7VDBo.js → getContract-DRjKmuyC.js} +2 -2
  110. package/dist/{getContract-DQN7VDBo.js.map → getContract-DRjKmuyC.js.map} +1 -1
  111. package/dist/http-CRYDzx7w.cjs +5 -0
  112. package/dist/http-CRYDzx7w.cjs.map +1 -0
  113. package/dist/{http-CajzXkt4.js → http-ZcKHvn9V.js} +1313 -1116
  114. package/dist/http-ZcKHvn9V.js.map +1 -0
  115. package/dist/{localBatchGatewayRequest-C7zYTS2c.cjs → localBatchGatewayRequest-BTy8p6qj.cjs} +2 -2
  116. package/dist/{localBatchGatewayRequest-C7zYTS2c.cjs.map → localBatchGatewayRequest-BTy8p6qj.cjs.map} +1 -1
  117. package/dist/{localBatchGatewayRequest-DtOvBmA9.js → localBatchGatewayRequest-Cb0QKL0s.js} +3 -3
  118. package/dist/{localBatchGatewayRequest-DtOvBmA9.js.map → localBatchGatewayRequest-Cb0QKL0s.js.map} +1 -1
  119. package/dist/main.cjs +1 -1
  120. package/dist/main.js +1 -1
  121. package/dist/{secp256k1-CMP_u7qb.cjs → secp256k1-CzsL7iVx.cjs} +2 -2
  122. package/dist/{secp256k1-CMP_u7qb.cjs.map → secp256k1-CzsL7iVx.cjs.map} +1 -1
  123. package/dist/{secp256k1-DCMgMsfV.js → secp256k1-Dx1prb1E.js} +2 -2
  124. package/dist/{secp256k1-DCMgMsfV.js.map → secp256k1-Dx1prb1E.js.map} +1 -1
  125. package/dist/utils/version.cjs +1 -1
  126. package/dist/utils/version.js +1 -1
  127. package/dist/{writeContract-DYAfDrRz.js → writeContract-BFxyLFA9.js} +881 -902
  128. package/dist/writeContract-BFxyLFA9.js.map +1 -0
  129. package/dist/{writeContract-BnmmOPwy.cjs → writeContract-HBsqM_Od.cjs} +22 -22
  130. package/dist/writeContract-HBsqM_Od.cjs.map +1 -0
  131. package/package.json +12 -12
  132. package/dist/constants-6kuRTsbU.cjs +0 -9
  133. package/dist/constants-6kuRTsbU.cjs.map +0 -1
  134. package/dist/constants-CuIEh_ZS.js.map +0 -1
  135. package/dist/http-CajzXkt4.js.map +0 -1
  136. package/dist/http-qhIDc8Dn.cjs +0 -5
  137. package/dist/http-qhIDc8Dn.cjs.map +0 -1
  138. package/dist/writeContract-BnmmOPwy.cjs.map +0 -1
  139. package/dist/writeContract-DYAfDrRz.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  function q(e, { strict: t = !0 } = {}) {
2
2
  return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
3
3
  }
4
- function P(e) {
4
+ function v(e) {
5
5
  return q(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
6
6
  }
7
- const Ae = "2.37.6";
7
+ const Ae = "2.38.5";
8
8
  let ie = {
9
9
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: s }) => t ? `${e ?? "https://viem.sh"}${t}${s ? `#${s}` : ""}` : void 0,
10
10
  version: `viem@${Ae}`
@@ -122,7 +122,7 @@ class Bt extends u {
122
122
  super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
123
123
  }
124
124
  }
125
- class Pt extends u {
125
+ class vt extends u {
126
126
  constructor({ givenSize: t, maxSize: s }) {
127
127
  super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
128
128
  }
@@ -134,9 +134,9 @@ function A(e, { dir: t = "left" } = {}) {
134
134
  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;
135
135
  }
136
136
  function z(e, { size: t }) {
137
- if (P(e) > t)
138
- throw new Pt({
139
- givenSize: P(e),
137
+ if (v(e) > t)
138
+ throw new vt({
139
+ givenSize: v(e),
140
140
  maxSize: t
141
141
  });
142
142
  }
@@ -160,7 +160,7 @@ function xn(e, t = {}) {
160
160
  function Q(e, t = {}) {
161
161
  return Number(L(e, t));
162
162
  }
163
- const vt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
163
+ const Pt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
164
164
  function H(e, t = {}) {
165
165
  return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ? $t(e, t) : typeof e == "boolean" ? It(e, t) : T(e, t);
166
166
  }
@@ -171,7 +171,7 @@ function It(e, t = {}) {
171
171
  function T(e, t = {}) {
172
172
  let s = "";
173
173
  for (let r = 0; r < e.length; r++)
174
- s += vt[e[r]];
174
+ s += Pt[e[r]];
175
175
  const n = `0x${s}`;
176
176
  return typeof t.size == "number" ? (z(n, { size: t.size }), O(n, { dir: "right", size: t.size })) : n;
177
177
  }
@@ -346,28 +346,28 @@ function wn(e = 32) {
346
346
  return Uint8Array.from(S.randomBytes(e));
347
347
  throw new Error("crypto.getRandomValues must be defined");
348
348
  }
349
- const Dt = BigInt(0), D = BigInt(1), jt = BigInt(2), Rt = BigInt(7), Kt = BigInt(256), Wt = BigInt(113), Ge = [], Oe = [], Ne = [];
349
+ const Dt = BigInt(0), D = BigInt(1), Rt = BigInt(2), jt = BigInt(7), Kt = BigInt(256), Wt = BigInt(113), Ge = [], Oe = [], Ne = [];
350
350
  for (let e = 0, t = D, s = 1, n = 0; e < 24; e++) {
351
351
  [s, n] = [n, (2 * s + 3 * n) % 5], Ge.push(2 * (5 * n + s)), Oe.push((e + 1) * (e + 2) / 2 % 64);
352
352
  let r = Dt;
353
353
  for (let i = 0; i < 7; i++)
354
- t = (t << D ^ (t >> Rt) * Wt) % Kt, t & jt && (r ^= D << (D << /* @__PURE__ */ BigInt(i)) - D);
354
+ t = (t << D ^ (t >> jt) * Wt) % Kt, t & Rt && (r ^= D << (D << /* @__PURE__ */ BigInt(i)) - D);
355
355
  Ne.push(r);
356
356
  }
357
- const Me = zt(Ne, !0), Xt = Me[0], qt = Me[1], Pe = (e, t, s) => s > 32 ? Lt(e, t, s) : kt(e, t, s), ve = (e, t, s) => s > 32 ? Ht(e, t, s) : St(e, t, s);
357
+ const Me = zt(Ne, !0), Xt = Me[0], qt = Me[1], ve = (e, t, s) => s > 32 ? Lt(e, t, s) : kt(e, t, s), Pe = (e, t, s) => s > 32 ? Ht(e, t, s) : St(e, t, s);
358
358
  function Zt(e, t = 24) {
359
359
  const s = new Uint32Array(10);
360
360
  for (let n = 24 - t; n < 24; n++) {
361
361
  for (let o = 0; o < 10; o++)
362
362
  s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
363
363
  for (let o = 0; o < 10; o += 2) {
364
- const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = Pe(l, h, 1) ^ s[a], b = ve(l, h, 1) ^ s[a + 1];
364
+ const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = ve(l, h, 1) ^ s[a], b = Pe(l, h, 1) ^ s[a + 1];
365
365
  for (let p = 0; p < 50; p += 10)
366
366
  e[o + p] ^= d, e[o + p + 1] ^= b;
367
367
  }
368
368
  let r = e[2], i = e[3];
369
369
  for (let o = 0; o < 24; o++) {
370
- const a = Oe[o], c = Pe(r, i, a), l = ve(r, i, a), h = Ge[o];
370
+ const a = Oe[o], c = ve(r, i, a), l = Pe(r, i, a), h = Ge[o];
371
371
  r = e[h], i = e[h + 1], e[h] = c, e[h + 1] = l;
372
372
  }
373
373
  for (let o = 0; o < 50; o += 10) {
@@ -450,7 +450,7 @@ function Qt(e, t) {
450
450
  const s = t || "hex", n = Jt(q(e, { strict: !1 }) ? ze(e) : e);
451
451
  return s === "bytes" ? n : H(n);
452
452
  }
453
- class v extends u {
453
+ class P extends u {
454
454
  constructor({ address: t }) {
455
455
  super(`Address "${t}" is invalid.`, {
456
456
  metaMessages: [
@@ -494,7 +494,7 @@ function Ve(e, t) {
494
494
  }
495
495
  function En(e, t) {
496
496
  if (!I(e, { strict: !1 }))
497
- throw new v({ address: e });
497
+ throw new P({ address: e });
498
498
  return Ve(e, t);
499
499
  }
500
500
  const es = /^0x[a-fA-F0-9]{40}$/, ce = /* @__PURE__ */ new _e(8192);
@@ -529,30 +529,30 @@ function ss(e, t, s, { strict: n } = {}) {
529
529
  });
530
530
  }
531
531
  function De(e, t) {
532
- if (typeof t == "number" && t > 0 && t > P(e) - 1)
532
+ if (typeof t == "number" && t > 0 && t > v(e) - 1)
533
533
  throw new Fe({
534
534
  offset: t,
535
535
  position: "start",
536
- size: P(e)
536
+ size: v(e)
537
537
  });
538
538
  }
539
- function je(e, t, s) {
540
- if (typeof t == "number" && typeof s == "number" && P(e) !== s - t)
539
+ function Re(e, t, s) {
540
+ if (typeof t == "number" && typeof s == "number" && v(e) !== s - t)
541
541
  throw new Fe({
542
542
  offset: s,
543
543
  position: "end",
544
- size: P(e)
544
+ size: v(e)
545
545
  });
546
546
  }
547
547
  function ns(e, t, s, { strict: n } = {}) {
548
548
  De(e, t);
549
549
  const r = e.slice(t, s);
550
- return n && je(r, t, s), r;
550
+ return n && Re(r, t, s), r;
551
551
  }
552
552
  function rs(e, t, s, { strict: n } = {}) {
553
553
  De(e, t);
554
554
  const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
555
- return n && je(r, t, s), r;
555
+ return n && Re(r, t, s), r;
556
556
  }
557
557
  class Ie extends u {
558
558
  constructor({ offset: t }) {
@@ -693,7 +693,7 @@ const as = {
693
693
  this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
694
694
  }
695
695
  };
696
- function Re(e, { recursiveReadLimit: t = 8192 } = {}) {
696
+ function je(e, { recursiveReadLimit: t = 8192 } = {}) {
697
697
  const s = Object.create(as);
698
698
  return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
699
699
  }
@@ -725,7 +725,7 @@ function We(e) {
725
725
  return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
726
726
  `);
727
727
  }
728
- class Pn extends u {
728
+ class vn extends u {
729
729
  constructor() {
730
730
  super([
731
731
  "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
@@ -767,7 +767,7 @@ class hs extends u {
767
767
  super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
768
768
  }
769
769
  }
770
- class vn extends u {
770
+ class Pn extends u {
771
771
  constructor(t, { account: s, docsPath: n, chain: r, data: i, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: h, to: d, value: b }) {
772
772
  const p = We({
773
773
  chain: r && `${r?.name} (id: ${r?.id})`,
@@ -814,12 +814,31 @@ class Tn extends u {
814
814
  }
815
815
  }
816
816
  class $n extends u {
817
+ constructor({ receipt: t }) {
818
+ super(`Transaction with hash "${t.transactionHash}" reverted.`, {
819
+ metaMessages: [
820
+ 'The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.',
821
+ " ",
822
+ "You can attempt to extract the revert reason by:",
823
+ "- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract",
824
+ "- using the `call` Action with raw `data`"
825
+ ],
826
+ name: "TransactionReceiptRevertedError"
827
+ }), Object.defineProperty(this, "receipt", {
828
+ enumerable: !0,
829
+ configurable: !0,
830
+ writable: !0,
831
+ value: void 0
832
+ }), this.receipt = t;
833
+ }
834
+ }
835
+ class An extends u {
817
836
  constructor({ hash: t }) {
818
837
  super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
819
838
  }
820
839
  }
821
840
  function C(e, t = "hex") {
822
- const s = Xe(e), n = Re(new Uint8Array(s.length));
841
+ const s = Xe(e), n = je(new Uint8Array(s.length));
823
842
  return s.encode(n), t === "hex" ? T(n.bytes) : n.bytes;
824
843
  }
825
844
  function Xe(e) {
@@ -997,7 +1016,7 @@ Object.defineProperty(Bs, "nodeMessage", {
997
1016
  writable: !0,
998
1017
  value: /intrinsic gas too low/
999
1018
  });
1000
- class Ps extends u {
1019
+ class vs extends u {
1001
1020
  constructor({ cause: t }) {
1002
1021
  super("The transaction type is not supported for this chain.", {
1003
1022
  cause: t,
@@ -1005,7 +1024,7 @@ class Ps extends u {
1005
1024
  });
1006
1025
  }
1007
1026
  }
1008
- Object.defineProperty(Ps, "nodeMessage", {
1027
+ Object.defineProperty(vs, "nodeMessage", {
1009
1028
  enumerable: !0,
1010
1029
  configurable: !0,
1011
1030
  writable: !0,
@@ -1028,7 +1047,7 @@ Object.defineProperty(Ye, "nodeMessage", {
1028
1047
  writable: !0,
1029
1048
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
1030
1049
  });
1031
- class An extends u {
1050
+ class Un extends u {
1032
1051
  constructor({ cause: t }) {
1033
1052
  super(`An error occurred while executing: ${t?.shortMessage}`, {
1034
1053
  cause: t,
@@ -1039,14 +1058,14 @@ class An extends u {
1039
1058
  function fe(e, t) {
1040
1059
  return ({ exclude: s, format: n }) => ({
1041
1060
  exclude: s,
1042
- format: (r) => {
1043
- const i = t(r);
1061
+ format: (r, i) => {
1062
+ const o = t(r, i);
1044
1063
  if (s)
1045
- for (const o of s)
1046
- delete i[o];
1064
+ for (const a of s)
1065
+ delete o[a];
1047
1066
  return {
1048
- ...i,
1049
- ...n(r)
1067
+ ...o,
1068
+ ...n(r, i)
1050
1069
  };
1051
1070
  },
1052
1071
  type: e
@@ -1059,8 +1078,8 @@ const he = 2n ** 256n - 1n, Je = {
1059
1078
  "0x3": "eip4844",
1060
1079
  "0x4": "eip7702"
1061
1080
  };
1062
- function pe(e) {
1063
- const t = {
1081
+ function pe(e, t) {
1082
+ const s = {
1064
1083
  ...e,
1065
1084
  blockHash: e.blockHash ? e.blockHash : null,
1066
1085
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
@@ -1078,20 +1097,20 @@ function pe(e) {
1078
1097
  value: e.value ? BigInt(e.value) : void 0,
1079
1098
  v: e.v ? BigInt(e.v) : void 0
1080
1099
  };
1081
- return e.authorizationList && (t.authorizationList = Is(e.authorizationList)), t.yParity = (() => {
1100
+ return e.authorizationList && (s.authorizationList = Is(e.authorizationList)), s.yParity = (() => {
1082
1101
  if (e.yParity)
1083
1102
  return Number(e.yParity);
1084
- if (typeof t.v == "bigint") {
1085
- if (t.v === 0n || t.v === 27n)
1103
+ if (typeof s.v == "bigint") {
1104
+ if (s.v === 0n || s.v === 27n)
1086
1105
  return 0;
1087
- if (t.v === 1n || t.v === 28n)
1106
+ if (s.v === 1n || s.v === 28n)
1088
1107
  return 1;
1089
- if (t.v >= 35n)
1090
- return t.v % 2n === 0n ? 1 : 0;
1108
+ if (s.v >= 35n)
1109
+ return s.v % 2n === 0n ? 1 : 0;
1091
1110
  }
1092
- })(), 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;
1111
+ })(), s.type === "legacy" && (delete s.accessList, delete s.maxFeePerBlobGas, delete s.maxFeePerGas, delete s.maxPriorityFeePerGas, delete s.yParity), s.type === "eip2930" && (delete s.maxFeePerBlobGas, delete s.maxFeePerGas, delete s.maxPriorityFeePerGas), s.type === "eip1559" && delete s.maxFeePerBlobGas, s;
1093
1112
  }
1094
- const vs = /* @__PURE__ */ fe("transaction", pe);
1113
+ const Ps = /* @__PURE__ */ fe("transaction", pe);
1095
1114
  function Is(e) {
1096
1115
  return e.map((t) => ({
1097
1116
  address: t.address,
@@ -1102,8 +1121,8 @@ function Is(e) {
1102
1121
  yParity: Number(t.yParity)
1103
1122
  }));
1104
1123
  }
1105
- function Ts(e) {
1106
- const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : pe(s));
1124
+ function Ts(e, t) {
1125
+ const s = (e.transactions ?? []).map((n) => typeof n == "string" ? n : pe(n));
1107
1126
  return {
1108
1127
  ...e,
1109
1128
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -1118,7 +1137,7 @@ function Ts(e) {
1118
1137
  number: e.number ? BigInt(e.number) : null,
1119
1138
  size: e.size ? BigInt(e.size) : void 0,
1120
1139
  timestamp: e.timestamp ? BigInt(e.timestamp) : void 0,
1121
- transactions: t,
1140
+ transactions: s,
1122
1141
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
1123
1142
  };
1124
1143
  }
@@ -1362,7 +1381,7 @@ class _s extends u {
1362
1381
  }
1363
1382
  }
1364
1383
  function Vs(e) {
1365
- const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? F(e.data) : e.data, n = P(s);
1384
+ const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? F(e.data) : e.data, n = v(s);
1366
1385
  if (!n)
1367
1386
  throw new rt();
1368
1387
  if (n > $e)
@@ -1373,7 +1392,7 @@ function Vs(e) {
1373
1392
  const r = [];
1374
1393
  let i = !0, o = 0;
1375
1394
  for (; i; ) {
1376
- const a = Re(new Uint8Array(st));
1395
+ const a = je(new Uint8Array(st));
1377
1396
  let c = 0;
1378
1397
  for (; c < be; ) {
1379
1398
  const l = s.slice(o, o + (tt - 1));
@@ -1397,7 +1416,7 @@ function Ds(e) {
1397
1416
  });
1398
1417
  return a;
1399
1418
  }
1400
- function js(e) {
1419
+ function Rs(e) {
1401
1420
  if (e.type)
1402
1421
  return e.type;
1403
1422
  if (typeof e.authorizationList < "u")
@@ -1410,7 +1429,7 @@ function js(e) {
1410
1429
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
1411
1430
  throw new fs({ transaction: e });
1412
1431
  }
1413
- function Rs(e, { args: t, eventName: s } = {}) {
1432
+ function js(e, { args: t, eventName: s } = {}) {
1414
1433
  return {
1415
1434
  ...e,
1416
1435
  blockHash: e.blockHash ? e.blockHash : null,
@@ -1421,7 +1440,7 @@ function Rs(e, { args: t, eventName: s } = {}) {
1421
1440
  ...s ? { args: t, eventName: s } : {}
1422
1441
  };
1423
1442
  }
1424
- class Un extends u {
1443
+ class Fn extends u {
1425
1444
  constructor({ blockNumber: t, chain: s, contract: n }) {
1426
1445
  super(`Chain "${s.name}" does not support contract "${n.name}".`, {
1427
1446
  metaMessages: [
@@ -1436,7 +1455,7 @@ class Un extends u {
1436
1455
  });
1437
1456
  }
1438
1457
  }
1439
- class Fn extends u {
1458
+ class Cn extends u {
1440
1459
  constructor({ chain: t, currentChainId: s }) {
1441
1460
  super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
1442
1461
  metaMessages: [
@@ -1447,7 +1466,7 @@ class Fn extends u {
1447
1466
  });
1448
1467
  }
1449
1468
  }
1450
- class Cn extends u {
1469
+ class zn extends u {
1451
1470
  constructor() {
1452
1471
  super([
1453
1472
  "No chain was provided to the request.",
@@ -1458,7 +1477,7 @@ class Cn extends u {
1458
1477
  });
1459
1478
  }
1460
1479
  }
1461
- class zn extends u {
1480
+ class kn extends u {
1462
1481
  constructor() {
1463
1482
  super("No chain was provided to the Client.", {
1464
1483
  name: "ClientChainNotConfiguredError"
@@ -1474,21 +1493,21 @@ const Ks = {
1474
1493
  "0x0": "reverted",
1475
1494
  "0x1": "success"
1476
1495
  };
1477
- function Ws(e) {
1478
- const t = {
1496
+ function Ws(e, t) {
1497
+ const s = {
1479
1498
  ...e,
1480
1499
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
1481
1500
  contractAddress: e.contractAddress ? e.contractAddress : null,
1482
1501
  cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
1483
1502
  effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
1484
1503
  gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
1485
- logs: e.logs ? e.logs.map((s) => Rs(s)) : null,
1504
+ logs: e.logs ? e.logs.map((n) => js(n)) : null,
1486
1505
  to: e.to ? e.to : null,
1487
1506
  transactionIndex: e.transactionIndex ? Q(e.transactionIndex) : null,
1488
1507
  status: e.status ? Ks[e.status] : null,
1489
1508
  type: e.type ? Je[e.type] || e.type : null
1490
1509
  };
1491
- return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
1510
+ return e.blobGasPrice && (s.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (s.blobGasUsed = BigInt(e.blobGasUsed)), s;
1492
1511
  }
1493
1512
  const Xs = /* @__PURE__ */ fe("transactionReceipt", Ws);
1494
1513
  function qs(e) {
@@ -1497,7 +1516,7 @@ function qs(e) {
1497
1516
  for (const s of t) {
1498
1517
  const { chainId: n } = s, r = s.address;
1499
1518
  if (!I(r))
1500
- throw new v({ address: r });
1519
+ throw new P({ address: r });
1501
1520
  if (n < 0)
1502
1521
  throw new ne({ chainId: n });
1503
1522
  }
@@ -1509,7 +1528,7 @@ function Zs(e) {
1509
1528
  if (t.length === 0)
1510
1529
  throw new rt();
1511
1530
  for (const s of t) {
1512
- const n = P(s), r = Q(ss(s, 0, 1));
1531
+ const n = v(s), r = Q(ss(s, 0, 1));
1513
1532
  if (n !== 32)
1514
1533
  throw new Ms({ hash: s, size: n });
1515
1534
  if (r !== nt)
@@ -1526,7 +1545,7 @@ function me(e) {
1526
1545
  if (t <= 0)
1527
1546
  throw new ne({ chainId: t });
1528
1547
  if (r && !I(r))
1529
- throw new v({ address: r });
1548
+ throw new P({ address: r });
1530
1549
  if (n && n > he)
1531
1550
  throw new se({ maxFeePerGas: n });
1532
1551
  if (s && n && s > n)
@@ -1537,7 +1556,7 @@ function Ys(e) {
1537
1556
  if (t <= 0)
1538
1557
  throw new ne({ chainId: t });
1539
1558
  if (i && !I(i))
1540
- throw new v({ address: i });
1559
+ throw new P({ address: i });
1541
1560
  if (s || r)
1542
1561
  throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
1543
1562
  if (n && n > he)
@@ -1546,7 +1565,7 @@ function Ys(e) {
1546
1565
  function Js(e) {
1547
1566
  const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
1548
1567
  if (i && !I(i))
1549
- throw new v({ address: i });
1568
+ throw new P({ address: i });
1550
1569
  if (typeof t < "u" && t <= 0)
1551
1570
  throw new ne({ chainId: t });
1552
1571
  if (s || r)
@@ -1564,13 +1583,13 @@ function re(e) {
1564
1583
  if (r[i].length - 2 !== 64)
1565
1584
  throw new hs({ storageKey: r[i] });
1566
1585
  if (!I(n, { strict: !1 }))
1567
- throw new v({ address: n });
1586
+ throw new P({ address: n });
1568
1587
  t.push([n, r]);
1569
1588
  }
1570
1589
  return t;
1571
1590
  }
1572
1591
  function Qs(e, t) {
1573
- const s = js(e);
1592
+ const s = Rs(e);
1574
1593
  return s === "eip1559" ? sn(e, t) : s === "eip2930" ? nn(e, t) : s === "eip4844" ? tn(e, t) : s === "eip7702" ? en(e, t) : rn(e, t);
1575
1594
  }
1576
1595
  function en(e, t) {
@@ -1769,7 +1788,7 @@ const an = {
1769
1788
  };
1770
1789
  }
1771
1790
  }),
1772
- transaction: /* @__PURE__ */ vs({
1791
+ transaction: /* @__PURE__ */ Ps({
1773
1792
  format(e) {
1774
1793
  const t = {};
1775
1794
  return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? L(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
@@ -1815,9 +1834,9 @@ function fn(e) {
1815
1834
  function hn(e) {
1816
1835
  const { from: t, to: s } = e;
1817
1836
  if (t && !I(t))
1818
- throw new v({ address: t });
1837
+ throw new P({ address: t });
1819
1838
  if (s && !I(s))
1820
- throw new v({ address: s });
1839
+ throw new P({ address: s });
1821
1840
  }
1822
1841
  const w = {
1823
1842
  blockTime: 2e3,
@@ -1875,7 +1894,7 @@ const w = {
1875
1894
  blockCreated: 7654707
1876
1895
  }
1877
1896
  }
1878
- }), j = 1, at = /* @__PURE__ */ x({
1897
+ }), R = 1, at = /* @__PURE__ */ x({
1879
1898
  ...w,
1880
1899
  id: 8453,
1881
1900
  name: "Base",
@@ -1895,12 +1914,12 @@ const w = {
1895
1914
  contracts: {
1896
1915
  ...w.contracts,
1897
1916
  disputeGameFactory: {
1898
- [j]: {
1917
+ [R]: {
1899
1918
  address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
1900
1919
  }
1901
1920
  },
1902
1921
  l2OutputOracle: {
1903
- [j]: {
1922
+ [R]: {
1904
1923
  address: "0x56315b90c40730925ec5485cf004d835058518A0"
1905
1924
  }
1906
1925
  },
@@ -1909,20 +1928,20 @@ const w = {
1909
1928
  blockCreated: 5022
1910
1929
  },
1911
1930
  portal: {
1912
- [j]: {
1931
+ [R]: {
1913
1932
  address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
1914
1933
  blockCreated: 17482143
1915
1934
  }
1916
1935
  },
1917
1936
  l1StandardBridge: {
1918
- [j]: {
1937
+ [R]: {
1919
1938
  address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
1920
1939
  blockCreated: 17482143
1921
1940
  }
1922
1941
  }
1923
1942
  },
1924
- sourceId: j
1925
- }), R = 11155111, ct = /* @__PURE__ */ x({
1943
+ sourceId: R
1944
+ }), j = 11155111, ct = /* @__PURE__ */ x({
1926
1945
  ...w,
1927
1946
  id: 84532,
1928
1947
  network: "base-sepolia",
@@ -1943,23 +1962,23 @@ const w = {
1943
1962
  contracts: {
1944
1963
  ...w.contracts,
1945
1964
  disputeGameFactory: {
1946
- [R]: {
1965
+ [j]: {
1947
1966
  address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
1948
1967
  }
1949
1968
  },
1950
1969
  l2OutputOracle: {
1951
- [R]: {
1970
+ [j]: {
1952
1971
  address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
1953
1972
  }
1954
1973
  },
1955
1974
  portal: {
1956
- [R]: {
1975
+ [j]: {
1957
1976
  address: "0x49f53e41452c74589e85ca1677426ba426459e85",
1958
1977
  blockCreated: 4446677
1959
1978
  }
1960
1979
  },
1961
1980
  l1StandardBridge: {
1962
- [R]: {
1981
+ [j]: {
1963
1982
  address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
1964
1983
  blockCreated: 4446677
1965
1984
  }
@@ -1970,7 +1989,7 @@ const w = {
1970
1989
  }
1971
1990
  },
1972
1991
  testnet: !0,
1973
- sourceId: R
1992
+ sourceId: j
1974
1993
  }), ut = /* @__PURE__ */ x({
1975
1994
  id: 80094,
1976
1995
  name: "Berachain",
@@ -2158,7 +2177,7 @@ const w = {
2158
2177
  nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
2159
2178
  rpcUrls: {
2160
2179
  default: {
2161
- http: ["https://sepolia.drpc.org"]
2180
+ http: ["https://11155111.rpc.thirdweb.com"]
2162
2181
  }
2163
2182
  },
2164
2183
  blockExplorers: {
@@ -2301,7 +2320,7 @@ const w = {
2301
2320
  testnet: !1
2302
2321
  });
2303
2322
  var m = ((e) => (e[e.Mainnet = ht.id] = "Mainnet", e[e.Holesky = dt.id] = "Holesky", e[e.Base = at.id] = "Base", e[e.Bsc = lt.id] = "Bsc", e[e.Arbitrum = ot.id] = "Arbitrum", e[e.ApeChain = it.id] = "ApeChain", e[e.Soneium = mt.id] = "Soneium", e[e.Sepolia = bt.id] = "Sepolia", e[e.OptimismSepolia = pt.id] = "OptimismSepolia", e[e.BaseSepolia = ct.id] = "BaseSepolia", e[e.Zircuit = gt.id] = "Zircuit", e[e.Berachain = ut.id] = "Berachain", e[e.Hoodi = ft.id] = "Hoodi", e[e.TAC = xt.id] = "TAC", e))(m || {});
2304
- const kn = {
2323
+ const Sn = {
2305
2324
  [m.Mainnet]: ht,
2306
2325
  [m.Holesky]: dt,
2307
2326
  [m.Base]: at,
@@ -2318,63 +2337,64 @@ const kn = {
2318
2337
  [m.TAC]: xt
2319
2338
  };
2320
2339
  export {
2321
- ns as $,
2322
- En as A,
2340
+ Ye as $,
2341
+ z as A,
2323
2342
  u as B,
2324
2343
  m as C,
2325
- $t as D,
2344
+ A as D,
2326
2345
  Ze as E,
2327
- P as F,
2328
- I as G,
2346
+ Q as F,
2347
+ mn as G,
2329
2348
  Le as H,
2330
- v as I,
2331
- Jt as J,
2332
- pe as K,
2333
- _e as L,
2334
- Tn as M,
2335
- Ws as N,
2336
- Ts as O,
2337
- F as P,
2338
- xn as Q,
2339
- Ve as R,
2340
- It as S,
2341
- In as T,
2342
- An as U,
2343
- kn as V,
2344
- $n as W,
2345
- Et as X,
2346
- z as Y,
2347
- mn as Z,
2348
- Re as _,
2349
+ P as I,
2350
+ F as J,
2351
+ je as K,
2352
+ Ve as L,
2353
+ ns as M,
2354
+ We as N,
2355
+ U as O,
2356
+ ls as P,
2357
+ C as Q,
2358
+ se as R,
2359
+ ms as S,
2360
+ xs as T,
2361
+ gs as U,
2362
+ Sn as V,
2363
+ ys as W,
2364
+ ws as X,
2365
+ Es as Y,
2366
+ Bs as Z,
2367
+ vs as _,
2349
2368
  ze as a,
2350
- We as a0,
2351
- U as a1,
2352
- ls as a2,
2353
- C as a3,
2354
- se as a4,
2355
- ms as a5,
2356
- xs as a6,
2357
- gs as a7,
2358
- ys as a8,
2359
- ws as a9,
2360
- Es as aa,
2361
- Bs as ab,
2362
- Ps as ac,
2363
- Ye as ad,
2364
- bn as ae,
2365
- Pn as af,
2366
- he as ag,
2367
- Qe as ah,
2368
- Os as ai,
2369
- et as aj,
2370
- Ds as ak,
2371
- js as al,
2372
- is as am,
2373
- Un as an,
2374
- zn as ao,
2375
- Cn as ap,
2376
- Fn as aq,
2377
- vn as ar,
2369
+ Un as a0,
2370
+ bn as a1,
2371
+ vn as a2,
2372
+ he as a3,
2373
+ Ts as a4,
2374
+ Qe as a5,
2375
+ Os as a6,
2376
+ et as a7,
2377
+ Ds as a8,
2378
+ Rs as a9,
2379
+ is as aa,
2380
+ js as ab,
2381
+ Fn as ac,
2382
+ kn as ad,
2383
+ zn as ae,
2384
+ Cn as af,
2385
+ Pn as ag,
2386
+ _e as ah,
2387
+ Ks as ai,
2388
+ rs as aj,
2389
+ En as ak,
2390
+ Jt as al,
2391
+ In as am,
2392
+ pe as an,
2393
+ Tn as ao,
2394
+ Ws as ap,
2395
+ xn as aq,
2396
+ An as ar,
2397
+ $n as as,
2378
2398
  T as b,
2379
2399
  Bn as c,
2380
2400
  ss as d,
@@ -2394,11 +2414,11 @@ export {
2394
2414
  wn as r,
2395
2415
  ke as s,
2396
2416
  H as t,
2397
- Q as u,
2398
- Ks as v,
2399
- A as w,
2400
- rs as x,
2401
- Qt as y,
2402
- Rs as z
2417
+ v as u,
2418
+ Qt as v,
2419
+ I as w,
2420
+ It as x,
2421
+ Et as y,
2422
+ $t as z
2403
2423
  };
2404
- //# sourceMappingURL=constants-CuIEh_ZS.js.map
2424
+ //# sourceMappingURL=constants-BO_Dvglw.js.map