@pufferfinance/puffer-sdk 1.22.2 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/api/puffer-client-helpers.cjs +1 -1
  2. package/dist/api/puffer-client-helpers.js +13 -13
  3. package/dist/api/puffer-client.cjs +1 -1
  4. package/dist/api/puffer-client.cjs.map +1 -1
  5. package/dist/api/puffer-client.d.ts +3 -0
  6. package/dist/api/puffer-client.js +30 -23
  7. package/dist/api/puffer-client.js.map +1 -1
  8. package/dist/{ccip-ChHXXL5d.js → ccip-CiQCCFUl.js} +14 -14
  9. package/dist/{ccip-ChHXXL5d.js.map → ccip-CiQCCFUl.js.map} +1 -1
  10. package/dist/{ccip-oOJ9rRj3.cjs → ccip-DIWF4nDh.cjs} +2 -2
  11. package/dist/{ccip-oOJ9rRj3.cjs.map → ccip-DIWF4nDh.cjs.map} +1 -1
  12. package/dist/chains/constants.cjs +1 -1
  13. package/dist/chains/constants.js +1 -1
  14. package/dist/{constants-LC89CXNv.js → constants-BaHwPdbi.js} +60 -60
  15. package/dist/{constants-LC89CXNv.js.map → constants-BaHwPdbi.js.map} +1 -1
  16. package/dist/{constants-BI6T6ZbJ.cjs → constants-c-vATmlG.cjs} +2 -2
  17. package/dist/{constants-BI6T6ZbJ.cjs.map → constants-c-vATmlG.cjs.map} +1 -1
  18. package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs +2 -0
  19. package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs.map +1 -0
  20. package/dist/contracts/abis/mainnet/InstitutionalAccessManager.d.ts +513 -0
  21. package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js +310 -0
  22. package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js.map +1 -0
  23. package/dist/contracts/addresses.cjs +1 -1
  24. package/dist/contracts/addresses.js +1 -1
  25. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  26. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  27. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  28. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  29. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  30. package/dist/contracts/handlers/distributor-handler.js +2 -2
  31. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  32. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  33. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  34. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  35. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +2 -0
  36. package/dist/contracts/handlers/institutional-access-manager-handler.cjs.map +1 -0
  37. package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +15374 -0
  38. package/dist/contracts/handlers/institutional-access-manager-handler.js +504 -0
  39. package/dist/contracts/handlers/institutional-access-manager-handler.js.map +1 -0
  40. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  41. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  42. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  43. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  44. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  45. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  46. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  47. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  48. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  49. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  50. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  51. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  52. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  53. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  54. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  55. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  56. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  57. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  58. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  59. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  60. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  61. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  62. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  63. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  64. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  65. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  66. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  67. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  68. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  69. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  70. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  71. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  72. package/dist/contracts/tokens.cjs +1 -1
  73. package/dist/contracts/tokens.js +1 -1
  74. package/dist/contracts/vaults-addresses.cjs +1 -1
  75. package/dist/contracts/vaults-addresses.js +1 -1
  76. package/dist/{createWalletClient-BI9ya5Hq.js → createWalletClient-D74YRepQ.js} +44 -44
  77. package/dist/{createWalletClient-BI9ya5Hq.js.map → createWalletClient-D74YRepQ.js.map} +1 -1
  78. package/dist/{createWalletClient-KYWq_Sx_.cjs → createWalletClient-DKSH6l9_.cjs} +2 -2
  79. package/dist/{createWalletClient-KYWq_Sx_.cjs.map → createWalletClient-DKSH6l9_.cjs.map} +1 -1
  80. package/dist/{getContract-Ck2VtUkY.js → getContract-DGV8J5xI.js} +11 -11
  81. package/dist/{getContract-Ck2VtUkY.js.map → getContract-DGV8J5xI.js.map} +1 -1
  82. package/dist/{getContract-CPwqa1sR.cjs → getContract-RNLlK54b.cjs} +2 -2
  83. package/dist/{getContract-CPwqa1sR.cjs.map → getContract-RNLlK54b.cjs.map} +1 -1
  84. package/dist/main.cjs +1 -1
  85. package/dist/main.js +1 -1
  86. package/dist/{secp256k1-rB-jsNOU.js → secp256k1-B-LxKJrQ.js} +2 -2
  87. package/dist/{secp256k1-rB-jsNOU.js.map → secp256k1-B-LxKJrQ.js.map} +1 -1
  88. package/dist/secp256k1-CC-cv1vD.cjs +2 -0
  89. package/dist/{secp256k1-93KDDbJS.cjs.map → secp256k1-CC-cv1vD.cjs.map} +1 -1
  90. package/dist/utils/version.cjs +1 -1
  91. package/dist/utils/version.js +1 -1
  92. package/dist/{writeContract-DlZ0jYhZ.js → writeContract-BU3yK-Xj.js} +513 -512
  93. package/dist/{writeContract-DlZ0jYhZ.js.map → writeContract-BU3yK-Xj.js.map} +1 -1
  94. package/dist/{writeContract-DPtg3nGu.cjs → writeContract-CKqv1dsa.cjs} +17 -17
  95. package/dist/{writeContract-DPtg3nGu.cjs.map → writeContract-CKqv1dsa.cjs.map} +1 -1
  96. package/package.json +1 -1
  97. package/dist/secp256k1-93KDDbJS.cjs +0 -2
@@ -1,6 +1,6 @@
1
- import { p as nt, m as zr, n as Fr, I as Dr, g as T, r as H, o as V, l as qr, M as ie, f as D, H as te, q as Or, U as ve, S as st, C as at, P as ot, t as it, u as ct, J as ut, L as Ee, T as ft, R as dt, v as lt, x as Ae, y as Te, z as pt, A as ht, B as mt, D as gt, E as bt, F as _r, G as Mr, K as yt, N as jr, O as ae, Q as X, V as wt, W as kt, X as he, Y as vt, Z as Lr, _ as qe, $ as Oe, a0 as Hr, a1 as Ur, a2 as _e, a3 as St, a4 as Gr, k as Me, a5 as Vr, a6 as Wr, a7 as Zr, a8 as me, a9 as Ie, aa as Jr, ab as Bt, ac as zt, ad as Kr, ae as Qr, af as Pe, ag as Xr, ah as xt, ai as Ft, aj as Yr, j as Dt, i as qt, ak as en, al as tn, am as Q, an as ge, ao as rn, ap as J, aq as nn, ar as sn, as as an, at as on, au as je, av as Ot, aw as Le, w as cn, s as un, ax as _t, ay as Mt, az as fn, aA as dn, aB as ln, aC as pn, a as hn, aD as He, aE as mn, aF as gn, e as bn, c as yn, aG as jt, aH as Ue, aI as wn, b as vn } from "./writeContract-DlZ0jYhZ.js";
2
- import { B as F, n as B, ae as xn, m as le, i as Lt, v as ne, g as En, k as O, af as re, c as Ge, M as W, x as An, w as Ht, a8 as pe, h as Tn, I as In, f as Re, ag as Pn, q as Rn, A as Ut, ah as Gt, ai as Cn, aj as Vt, ak as $n, a1 as Nn, Z as kn, al as Sn, z as se, am as Bn, an as Wt, ao as zn, F as Fn } from "./constants-LC89CXNv.js";
3
- import { secp256k1 as Dn } from "./secp256k1-rB-jsNOU.js";
1
+ import { p as nt, n as zr, o as Fr, I as Dr, g as T, r as H, q as V, m as qr, M as ie, h as D, H as te, t as Or, U as ve, S as st, C as at, P as ot, u as it, v as ct, J as ut, L as Ee, T as ft, R as dt, x as lt, y as Ae, z as Te, A as pt, B as ht, D as mt, E as gt, F as bt, G as _r, K as Mr, N as yt, O as jr, Q as ae, V as X, W as wt, X as kt, Y as he, Z as vt, _ as Lr, $ as qe, a0 as Oe, a1 as Hr, a2 as Ur, a3 as _e, a4 as St, a5 as Gr, l as Me, a6 as Vr, a7 as Wr, a8 as Jr, a9 as me, aa as Ie, ab as Zr, ac as Bt, ad as zt, ae as Kr, af as Qr, ag as Pe, ah as Xr, ai as xt, aj as Ft, ak as Yr, k as Dt, j as qt, al as en, am as tn, an as Q, ao as ge, ap as rn, aq as Z, ar as nn, as as sn, at as an, au as on, av as je, aw as Ot, ax as Le, w as cn, s as un, ay as _t, az as Mt, aA as fn, aB as dn, aC as ln, aD as pn, a as hn, aE as He, aF as mn, aG as gn, e as bn, c as yn, aH as jt, aI as Ue, aJ as wn, d as vn } from "./writeContract-BU3yK-Xj.js";
2
+ import { B as F, n as B, af as xn, v as le, i as Lt, b as ne, a as En, m as O, s as re, c as Ge, t as W, z as An, A as Ht, a9 as pe, o as Tn, I as In, l as Re, ag as Pn, x as Rn, F as Ut, ah as Gt, ai as Cn, aj as Vt, ak as $n, a2 as Nn, _ as kn, al as Sn, h as se, am as Bn, an as Wt, ao as zn, J as Fn } from "./constants-BaHwPdbi.js";
3
+ import { secp256k1 as Dn } from "./secp256k1-B-LxKJrQ.js";
4
4
  function Et(e) {
5
5
  let t;
6
6
  if (typeof e == "string")
@@ -92,7 +92,7 @@ async function Mn(e, { chain: t }) {
92
92
  }
93
93
  const Ce = 256;
94
94
  let ce = Ce, ue;
95
- function Zt(e = 11) {
95
+ function Jt(e = 11) {
96
96
  if (!ue || ce + e > Ce * 2) {
97
97
  ue = "", ce = 0;
98
98
  for (let t = 0; t < Ce; t++)
@@ -100,7 +100,7 @@ function Zt(e = 11) {
100
100
  }
101
101
  return ue.substring(ce, ce++ + e);
102
102
  }
103
- function Jt(e) {
103
+ function Zt(e) {
104
104
  const { batch: t, cacheTime: r = e.pollingInterval ?? 4e3, ccipRead: n, key: s = "base", name: a = "Base Client", pollingInterval: o = 4e3, type: c = "base" } = e, u = e.chain, i = e.account ? V(e.account) : void 0, { config: d, request: f, value: l } = e.transport({
105
105
  chain: u,
106
106
  pollingInterval: o
@@ -116,7 +116,7 @@ function Jt(e) {
116
116
  request: f,
117
117
  transport: p,
118
118
  type: c,
119
- uid: Zt()
119
+ uid: Jt()
120
120
  };
121
121
  function g(v) {
122
122
  return (h) => {
@@ -262,7 +262,7 @@ function Hn(e) {
262
262
  return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === Ee.code || e.code === Te.code : e instanceof te && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
263
263
  }
264
264
  function Un({ key: e, methods: t, name: r, request: n, retryCount: s = 3, retryDelay: a = 150, timeout: o, type: c }, u) {
265
- const i = Zt();
265
+ const i = Jt();
266
266
  return {
267
267
  config: {
268
268
  key: e,
@@ -315,7 +315,7 @@ function Wn() {
315
315
  };
316
316
  }
317
317
  const At = /* @__PURE__ */ Wn();
318
- function Zn(e, t = {}) {
318
+ function Jn(e, t = {}) {
319
319
  return {
320
320
  async request(r) {
321
321
  var f;
@@ -388,7 +388,7 @@ function lo(e, t = {}) {
388
388
  const { batchSize: m = 1e3, wait: g = 0 } = typeof r == "object" ? r : {}, v = t.retryCount ?? l, h = p ?? t.timeout ?? 1e4, b = e || (f == null ? void 0 : f.rpcUrls.default.http[0]);
389
389
  if (!b)
390
390
  throw new Gn();
391
- const y = Zn(b, {
391
+ const y = Jn(b, {
392
392
  fetchOptions: n,
393
393
  onRequest: c,
394
394
  onResponse: u,
@@ -458,7 +458,7 @@ function de(e) {
458
458
  }
459
459
  return ne(t);
460
460
  }
461
- function Jn(e) {
461
+ function Zn(e) {
462
462
  return `[${e.slice(2)}]`;
463
463
  }
464
464
  function Kn(e) {
@@ -474,7 +474,7 @@ function be(e) {
474
474
  const s = t.split(".");
475
475
  for (let a = 0; a < s.length; a++) {
476
476
  let o = re(s[a]);
477
- o.byteLength > 255 && (o = re(Jn(Kn(s[a])))), r[n] = o.length, r.set(o, n + 1), n += o.length + 1;
477
+ o.byteLength > 255 && (o = re(Zn(Kn(s[a])))), r[n] = o.length, r.set(o, n + 1), n += o.length + 1;
478
478
  }
479
479
  return r.byteLength !== n + 1 ? r.slice(0, n + 1) : r;
480
480
  }
@@ -612,7 +612,7 @@ function Xt(e) {
612
612
  async function as({ gatewayUrls: e, uri: t }) {
613
613
  try {
614
614
  const r = await fetch(t).then((s) => s.json());
615
- return await Ze({
615
+ return await Je({
616
616
  gatewayUrls: e,
617
617
  uri: Xt(r)
618
618
  });
@@ -620,7 +620,7 @@ async function as({ gatewayUrls: e, uri: t }) {
620
620
  throw new We({ uri: t });
621
621
  }
622
622
  }
623
- async function Ze({ gatewayUrls: e, uri: t }) {
623
+ async function Je({ gatewayUrls: e, uri: t }) {
624
624
  const { uri: r, isOnChain: n } = Qt({ uri: t, gatewayUrls: e });
625
625
  if (n || await ss(r))
626
626
  return r;
@@ -683,7 +683,7 @@ async function is(e, { nft: t }) {
683
683
  throw new Yn({ namespace: t.namespace });
684
684
  }
685
685
  async function cs(e, { gatewayUrls: t, record: r }) {
686
- return /eip155:/i.test(r) ? us(e, { gatewayUrls: t, record: r }) : Ze({ uri: r, gatewayUrls: t });
686
+ return /eip155:/i.test(r) ? us(e, { gatewayUrls: t, record: r }) : Je({ uri: r, gatewayUrls: t });
687
687
  }
688
688
  async function us(e, { gatewayUrls: t, record: r }) {
689
689
  const n = os(r), s = await is(e, { nft: n }), { uri: a, isOnChain: o, isEncoded: c } = Qt({ uri: s, gatewayUrls: t });
@@ -695,7 +695,7 @@ async function us(e, { gatewayUrls: t, record: r }) {
695
695
  // if it isn't encoded assume it is a JSON string, but it could be anything (it will error if it is)
696
696
  a
697
697
  ), d = JSON.parse(i);
698
- return Ze({ uri: Xt(d), gatewayUrls: t });
698
+ return Je({ uri: Xt(d), gatewayUrls: t });
699
699
  }
700
700
  let u = n.tokenID;
701
701
  return n.namespace === "erc1155" && (u = u.replace("0x", "").padStart(64, "0")), as({
@@ -1120,7 +1120,7 @@ function ir(e) {
1120
1120
  if (p) {
1121
1121
  const [g, v] = p;
1122
1122
  if (v && Re(f) !== Number.parseInt(v))
1123
- throw new Zr({
1123
+ throw new Jr({
1124
1124
  expectedSize: Number.parseInt(v),
1125
1125
  givenSize: Re(f)
1126
1126
  });
@@ -1207,7 +1207,7 @@ async function Fs(e, { address: t, blockNumber: r, blockTag: n = "latest", slot:
1207
1207
  params: [t, s, a || n]
1208
1208
  });
1209
1209
  }
1210
- async function Je(e, { blockHash: t, blockNumber: r, blockTag: n, hash: s, index: a }) {
1210
+ async function Ze(e, { blockHash: t, blockNumber: r, blockTag: n, hash: s, index: a }) {
1211
1211
  var d, f, l;
1212
1212
  const o = n || "latest", c = r !== void 0 ? B(r) : void 0;
1213
1213
  let u = null;
@@ -1233,7 +1233,7 @@ async function Je(e, { blockHash: t, blockNumber: r, blockTag: n, hash: s, index
1233
1233
  async function Ds(e, { hash: t, transactionReceipt: r }) {
1234
1234
  const [n, s] = await Promise.all([
1235
1235
  T(e, me, "getBlockNumber")({}),
1236
- t ? T(e, Je, "getTransaction")({ hash: t }) : void 0
1236
+ t ? T(e, Ze, "getTransaction")({ hash: t }) : void 0
1237
1237
  ]), a = (r == null ? void 0 : r.blockNumber) || (s == null ? void 0 : s.blockNumber);
1238
1238
  return a ? n - a + 1n : 0n;
1239
1239
  }
@@ -1298,7 +1298,7 @@ async function qs(e, t) {
1298
1298
  }
1299
1299
  }
1300
1300
  const m = await Promise.allSettled(f.map((h) => T(e, H, "readContract")({
1301
- abi: Jr,
1301
+ abi: Zr,
1302
1302
  address: d,
1303
1303
  args: [h],
1304
1304
  blockNumber: s,
@@ -1503,12 +1503,12 @@ function lr(e, t = {}) {
1503
1503
  }
1504
1504
  const Vs = /* @__PURE__ */ new TextEncoder();
1505
1505
  function Ws(e) {
1506
- return e instanceof Uint8Array ? e : typeof e == "string" ? Js(e) : Zs(e);
1506
+ return e instanceof Uint8Array ? e : typeof e == "string" ? Zs(e) : Js(e);
1507
1507
  }
1508
- function Zs(e) {
1508
+ function Js(e) {
1509
1509
  return e instanceof Uint8Array ? e : new Uint8Array(e);
1510
1510
  }
1511
- function Js(e, t = {}) {
1511
+ function Zs(e, t = {}) {
1512
1512
  const { size: r } = t;
1513
1513
  let n = e;
1514
1514
  r && (Ke(e, r), n = G(e, r));
@@ -2360,7 +2360,7 @@ function Sa(e, ...t) {
2360
2360
  }) : e, s = za(n), a = t.length > 0 ? Er(n.inputs, t[0]) : void 0;
2361
2361
  return a ? j(s, a) : s;
2362
2362
  }
2363
- function Z(e, t = {}) {
2363
+ function J(e, t = {}) {
2364
2364
  return wr(e, t);
2365
2365
  }
2366
2366
  function Ba(e, t, r) {
@@ -2381,7 +2381,7 @@ async function qa(e, t) {
2381
2381
  bytecode: Xr,
2382
2382
  args: [
2383
2383
  Da,
2384
- Sa(Z("function getBalance(address)"), [i.address])
2384
+ Sa(J("function getBalance(address)"), [i.address])
2385
2385
  ]
2386
2386
  }) : void 0, f = o ? await Promise.all(t.calls.map(async (w) => {
2387
2387
  if (!w.data && !w.abi)
@@ -2409,7 +2409,7 @@ async function qa(e, t) {
2409
2409
  {
2410
2410
  calls: f.map((w, S) => ({
2411
2411
  abi: [
2412
- Z("function balanceOf(address) returns (uint256)")
2412
+ J("function balanceOf(address) returns (uint256)")
2413
2413
  ],
2414
2414
  functionName: "balanceOf",
2415
2415
  args: [i.address],
@@ -2442,7 +2442,7 @@ async function qa(e, t) {
2442
2442
  {
2443
2443
  calls: f.map((w, S) => ({
2444
2444
  abi: [
2445
- Z("function balanceOf(address) returns (uint256)")
2445
+ J("function balanceOf(address) returns (uint256)")
2446
2446
  ],
2447
2447
  functionName: "balanceOf",
2448
2448
  args: [i.address],
@@ -2462,7 +2462,7 @@ async function qa(e, t) {
2462
2462
  calls: f.map((w, S) => ({
2463
2463
  to: w,
2464
2464
  abi: [
2465
- Z("function decimals() returns (uint256)")
2465
+ J("function decimals() returns (uint256)")
2466
2466
  ],
2467
2467
  functionName: "decimals",
2468
2468
  from: M,
@@ -2480,7 +2480,7 @@ async function qa(e, t) {
2480
2480
  calls: f.map((w, S) => ({
2481
2481
  to: w,
2482
2482
  abi: [
2483
- Z("function tokenURI(uint256) returns (string)")
2483
+ J("function tokenURI(uint256) returns (string)")
2484
2484
  ],
2485
2485
  functionName: "tokenURI",
2486
2486
  args: [0n],
@@ -2498,7 +2498,7 @@ async function qa(e, t) {
2498
2498
  {
2499
2499
  calls: f.map((w, S) => ({
2500
2500
  to: w,
2501
- abi: [Z("function symbol() returns (string)")],
2501
+ abi: [J("function symbol() returns (string)")],
2502
2502
  functionName: "symbol",
2503
2503
  from: M,
2504
2504
  nonce: S
@@ -2712,7 +2712,7 @@ async function ja(e, {
2712
2712
  return;
2713
2713
  }
2714
2714
  if (i || (l = !0, await $e(async () => {
2715
- i = await T(e, Je, "getTransaction")({ hash: r }), i.blockNumber && (A = i.blockNumber);
2715
+ i = await T(e, Ze, "getTransaction")({ hash: r }), i.blockNumber && (A = i.blockNumber);
2716
2716
  }, {
2717
2717
  delay: o,
2718
2718
  retryCount: a
@@ -2727,7 +2727,7 @@ async function ja(e, {
2727
2727
  }
2728
2728
  try {
2729
2729
  d = i, l = !0;
2730
- const C = await $e(() => T(e, J, "getBlock")({
2730
+ const C = await $e(() => T(e, Z, "getBlock")({
2731
2731
  blockNumber: A,
2732
2732
  includeTransactions: !0
2733
2733
  }), {
@@ -2778,7 +2778,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
2778
2778
  return Q(m, { onBlock: s, onError: a }, (g) => ge(async () => {
2779
2779
  var v;
2780
2780
  try {
2781
- const h = await T(e, J, "getBlock")({
2781
+ const h = await T(e, Z, "getBlock")({
2782
2782
  blockTag: t,
2783
2783
  includeTransactions: d
2784
2784
  });
@@ -2787,7 +2787,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
2787
2787
  return;
2788
2788
  if (h.number - f.number > 1 && r)
2789
2789
  for (let b = (f == null ? void 0 : f.number) + 1n; b < h.number; b++) {
2790
- const y = await T(e, J, "getBlock")({
2790
+ const y = await T(e, Z, "getBlock")({
2791
2791
  blockNumber: b,
2792
2792
  includeTransactions: d
2793
2793
  });
@@ -2810,7 +2810,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
2810
2810
  let m = !0, g = !0, v = () => m = !1;
2811
2811
  return (async () => {
2812
2812
  try {
2813
- n && T(e, J, "getBlock")({
2813
+ n && T(e, Z, "getBlock")({
2814
2814
  blockTag: t,
2815
2815
  includeTransactions: d
2816
2816
  }).then((y) => {
@@ -2827,7 +2827,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
2827
2827
  async onData(y) {
2828
2828
  if (!m)
2829
2829
  return;
2830
- const x = await T(e, J, "getBlock")({
2830
+ const x = await T(e, Z, "getBlock")({
2831
2831
  blockNumber: y.blockNumber,
2832
2832
  includeTransactions: d
2833
2833
  }).catch(() => {
@@ -3049,7 +3049,7 @@ function Ga(e) {
3049
3049
  };
3050
3050
  }
3051
3051
  const Va = /^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/, Wa = /(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;
3052
- function Za(e) {
3052
+ function Ja(e) {
3053
3053
  const { address: t, domain: r, message: n, nonce: s, scheme: a, time: o = /* @__PURE__ */ new Date() } = e;
3054
3054
  if (r && n.domain !== r || s && n.nonce !== s || a && n.scheme !== a || n.expirationTime && o >= n.expirationTime || n.notBefore && o < n.notBefore)
3055
3055
  return !1;
@@ -3061,9 +3061,9 @@ function Za(e) {
3061
3061
  }
3062
3062
  return !0;
3063
3063
  }
3064
- async function Ja(e, t) {
3064
+ async function Za(e, t) {
3065
3065
  const { address: r, domain: n, message: s, nonce: a, scheme: o, signature: c, time: u = /* @__PURE__ */ new Date(), ...i } = t, d = Ga(s);
3066
- if (!d.address || !Za({
3066
+ if (!d.address || !Ja({
3067
3067
  address: r,
3068
3068
  domain: n,
3069
3069
  message: d,
@@ -3092,7 +3092,7 @@ function Ka(e) {
3092
3092
  estimateGas: (t) => gn(e, t),
3093
3093
  getBalance: (t) => mn(e, t),
3094
3094
  getBlobBaseFee: () => hs(e),
3095
- getBlock: (t) => J(e, t),
3095
+ getBlock: (t) => Z(e, t),
3096
3096
  getBlockNumber: (t) => me(e, t),
3097
3097
  getBlockTransactionCount: (t) => ms(e, t),
3098
3098
  getBytecode: (t) => It(e, t),
@@ -3114,7 +3114,7 @@ function Ka(e) {
3114
3114
  getProof: (t) => zs(e, t),
3115
3115
  estimateMaxPriorityFeePerGas: (t) => dn(e, t),
3116
3116
  getStorageAt: (t) => Fs(e, t),
3117
- getTransaction: (t) => Je(e, t),
3117
+ getTransaction: (t) => Ze(e, t),
3118
3118
  getTransactionConfirmations: (t) => Ds(e, t),
3119
3119
  getTransactionCount: (t) => fn(e, t),
3120
3120
  getTransactionReceipt: (t) => Ne(e, t),
@@ -3127,7 +3127,7 @@ function Ka(e) {
3127
3127
  simulateCalls: (t) => qa(e, t),
3128
3128
  simulateContract: (t) => un(e, t),
3129
3129
  verifyMessage: (t) => _a(e, t),
3130
- verifySiweMessage: (t) => Ja(e, t),
3130
+ verifySiweMessage: (t) => Za(e, t),
3131
3131
  verifyTypedData: (t) => Ma(e, t),
3132
3132
  uninstallFilter: (t) => Le(e, t),
3133
3133
  waitForTransactionReceipt: (t) => ja(e, t),
@@ -3140,7 +3140,7 @@ function Ka(e) {
3140
3140
  }
3141
3141
  function mo(e) {
3142
3142
  const { key: t = "public", name: r = "Public Client" } = e;
3143
- return Jt({
3143
+ return Zt({
3144
3144
  ...e,
3145
3145
  key: t,
3146
3146
  name: r,
@@ -3273,7 +3273,7 @@ function io(e) {
3273
3273
  }
3274
3274
  function go(e) {
3275
3275
  const { key: t = "wallet", name: r = "Wallet Client", transport: n } = e;
3276
- return Jt({
3276
+ return Zt({
3277
3277
  ...e,
3278
3278
  key: t,
3279
3279
  name: r,
@@ -3287,4 +3287,4 @@ export {
3287
3287
  go as c,
3288
3288
  lo as h
3289
3289
  };
3290
- //# sourceMappingURL=createWalletClient-BI9ya5Hq.js.map
3290
+ //# sourceMappingURL=createWalletClient-D74YRepQ.js.map