@boostxyz/cli 7.0.0 → 7.0.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.
@@ -169,7 +169,7 @@ const g = I.arrayToEnum([
169
169
  "not_multiple_of",
170
170
  "not_finite"
171
171
  ]), _a = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
172
- class H extends Error {
172
+ class W extends Error {
173
173
  get errors() {
174
174
  return this.issues;
175
175
  }
@@ -206,7 +206,7 @@ class H extends Error {
206
206
  return s(this), r;
207
207
  }
208
208
  static assert(e) {
209
- if (!(e instanceof H))
209
+ if (!(e instanceof W))
210
210
  throw new Error(`Not a ZodError: ${e}`);
211
211
  }
212
212
  toString() {
@@ -228,7 +228,7 @@ class H extends Error {
228
228
  return this.flatten();
229
229
  }
230
230
  }
231
- H.create = (t) => new H(t);
231
+ W.create = (t) => new W(t);
232
232
  const Ve = (t, e) => {
233
233
  let n;
234
234
  switch (t.code) {
@@ -406,7 +406,7 @@ const vr = (t, e) => {
406
406
  get error() {
407
407
  if (this._error)
408
408
  return this._error;
409
- const n = new H(t.common.issues);
409
+ const n = new W(t.common.issues);
410
410
  return this._error = n, this._error;
411
411
  }
412
412
  };
@@ -608,7 +608,7 @@ class T {
608
608
  });
609
609
  }
610
610
  brand() {
611
- return new Hn({
611
+ return new Wn({
612
612
  typeName: x.ZodBranded,
613
613
  type: this,
614
614
  ...E(this._def)
@@ -1558,7 +1558,7 @@ me.create = (t) => new me({
1558
1558
  typeName: x.ZodNever,
1559
1559
  ...E(t)
1560
1560
  });
1561
- class Wt extends T {
1561
+ class Ht extends T {
1562
1562
  _parse(e) {
1563
1563
  if (this._getType(e) !== g.undefined) {
1564
1564
  const r = this._getOrReturnCtx(e);
@@ -1571,7 +1571,7 @@ class Wt extends T {
1571
1571
  return Z(e.data);
1572
1572
  }
1573
1573
  }
1574
- Wt.create = (t) => new Wt({
1574
+ Ht.create = (t) => new Ht({
1575
1575
  typeName: x.ZodVoid,
1576
1576
  ...E(t)
1577
1577
  });
@@ -1961,7 +1961,7 @@ class ut extends T {
1961
1961
  for (const o of a)
1962
1962
  if (o.result.status === "dirty")
1963
1963
  return n.common.issues.push(...o.ctx.common.issues), o.result;
1964
- const i = a.map((o) => new H(o.ctx.common.issues));
1964
+ const i = a.map((o) => new W(o.ctx.common.issues));
1965
1965
  return b(n, {
1966
1966
  code: p.invalid_union,
1967
1967
  unionErrors: i
@@ -2008,7 +2008,7 @@ class ut extends T {
2008
2008
  }
2009
2009
  if (a)
2010
2010
  return n.common.issues.push(...a.ctx.common.issues), a.result;
2011
- const o = i.map((u) => new H(u));
2011
+ const o = i.map((u) => new W(u));
2012
2012
  return b(n, {
2013
2013
  code: p.invalid_union,
2014
2014
  unionErrors: o
@@ -2024,7 +2024,7 @@ ut.create = (t, e) => new ut({
2024
2024
  typeName: x.ZodUnion,
2025
2025
  ...E(e)
2026
2026
  });
2027
- const fe = (t) => t instanceof ft ? fe(t.schema) : t instanceof ne ? fe(t.innerType()) : t instanceof ht ? [t.value] : t instanceof xe ? t.options : t instanceof pt ? I.objectValues(t.enum) : t instanceof mt ? fe(t._def.innerType) : t instanceof ot ? [void 0] : t instanceof ct ? [null] : t instanceof ae ? [void 0, ...fe(t.unwrap())] : t instanceof _e ? [null, ...fe(t.unwrap())] : t instanceof Hn || t instanceof bt ? fe(t.unwrap()) : t instanceof yt ? fe(t._def.innerType) : [];
2027
+ const fe = (t) => t instanceof ft ? fe(t.schema) : t instanceof ne ? fe(t.innerType()) : t instanceof ht ? [t.value] : t instanceof xe ? t.options : t instanceof pt ? I.objectValues(t.enum) : t instanceof mt ? fe(t._def.innerType) : t instanceof ot ? [void 0] : t instanceof ct ? [null] : t instanceof ae ? [void 0, ...fe(t.unwrap())] : t instanceof _e ? [null, ...fe(t.unwrap())] : t instanceof Wn || t instanceof bt ? fe(t.unwrap()) : t instanceof yt ? fe(t._def.innerType) : [];
2028
2028
  class nn extends T {
2029
2029
  _parse(e) {
2030
2030
  const { ctx: n } = this._processInputParams(e);
@@ -2242,7 +2242,7 @@ class lt extends T {
2242
2242
  });
2243
2243
  }
2244
2244
  }
2245
- class Ht extends T {
2245
+ class Wt extends T {
2246
2246
  get keySchema() {
2247
2247
  return this._def.keyType;
2248
2248
  }
@@ -2284,7 +2284,7 @@ class Ht extends T {
2284
2284
  }
2285
2285
  }
2286
2286
  }
2287
- Ht.create = (t, e, n) => new Ht({
2287
+ Wt.create = (t, e, n) => new Wt({
2288
2288
  valueType: e,
2289
2289
  keyType: t,
2290
2290
  typeName: x.ZodMap,
@@ -2402,7 +2402,7 @@ class Le extends T {
2402
2402
  if (this._def.returns instanceof Ge) {
2403
2403
  const o = this;
2404
2404
  return Z(async function(...u) {
2405
- const c = new H([]), d = await o._def.args.parseAsync(u, a).catch((m) => {
2405
+ const c = new W([]), d = await o._def.args.parseAsync(u, a).catch((m) => {
2406
2406
  throw c.addIssue(r(u, m)), c;
2407
2407
  }), f = await Reflect.apply(i, this, d);
2408
2408
  return await o._def.returns._def.type.parseAsync(f, a).catch((m) => {
@@ -2414,10 +2414,10 @@ class Le extends T {
2414
2414
  return Z(function(...u) {
2415
2415
  const c = o._def.args.safeParse(u, a);
2416
2416
  if (!c.success)
2417
- throw new H([r(u, c.error)]);
2417
+ throw new W([r(u, c.error)]);
2418
2418
  const d = Reflect.apply(i, this, c.data), f = o._def.returns.safeParse(d, a);
2419
2419
  if (!f.success)
2420
- throw new H([s(d, f.error)]);
2420
+ throw new W([s(d, f.error)]);
2421
2421
  return f.data;
2422
2422
  });
2423
2423
  }
@@ -2768,7 +2768,7 @@ class yt extends T {
2768
2768
  status: "valid",
2769
2769
  value: a.status === "valid" ? a.value : this._def.catchValue({
2770
2770
  get error() {
2771
- return new H(r.common.issues);
2771
+ return new W(r.common.issues);
2772
2772
  },
2773
2773
  input: r.data
2774
2774
  })
@@ -2776,7 +2776,7 @@ class yt extends T {
2776
2776
  status: "valid",
2777
2777
  value: s.status === "valid" ? s.value : this._def.catchValue({
2778
2778
  get error() {
2779
- return new H(r.common.issues);
2779
+ return new W(r.common.issues);
2780
2780
  },
2781
2781
  input: r.data
2782
2782
  })
@@ -2809,8 +2809,8 @@ qt.create = (t) => new qt({
2809
2809
  typeName: x.ZodNaN,
2810
2810
  ...E(t)
2811
2811
  });
2812
- const Wa = Symbol("zod_brand");
2813
- class Hn extends T {
2812
+ const Ha = Symbol("zod_brand");
2813
+ class Wn extends T {
2814
2814
  _parse(e) {
2815
2815
  const { ctx: n } = this._processInputParams(e), r = n.data;
2816
2816
  return this._def.type._parse({
@@ -2877,7 +2877,7 @@ bt.create = (t, e) => new bt({
2877
2877
  typeName: x.ZodReadonly,
2878
2878
  ...E(e)
2879
2879
  });
2880
- function Wr(t, e = {}, n) {
2880
+ function Hr(t, e = {}, n) {
2881
2881
  return t ? Ue.create().superRefine((r, s) => {
2882
2882
  var a, i;
2883
2883
  if (!t(r)) {
@@ -2886,7 +2886,7 @@ function Wr(t, e = {}, n) {
2886
2886
  }
2887
2887
  }) : Ue.create();
2888
2888
  }
2889
- const Ha = {
2889
+ const Wa = {
2890
2890
  object: j.lazycreate
2891
2891
  };
2892
2892
  var x;
@@ -2895,7 +2895,7 @@ var x;
2895
2895
  })(x || (x = {}));
2896
2896
  const qa = (t, e = {
2897
2897
  message: `Input not instance of ${t.name}`
2898
- }) => Wr((n) => n instanceof t, e), Hr = ee.create, qr = ve.create, Ka = qt.create, Ya = we.create, Kr = it.create, Ja = Se.create, Qa = Gt.create, Xa = ot.create, ei = ct.create, ti = Ue.create, ni = ke.create, ri = me.create, si = Wt.create, ai = te.create, ii = j.create, oi = j.strictCreate, ci = ut.create, ui = nn.create, di = dt.create, li = oe.create, fi = lt.create, hi = Ht.create, pi = Re.create, mi = Le.create, yi = ft.create, bi = ht.create, gi = xe.create, vi = pt.create, wi = Ge.create, wr = ne.create, xi = ae.create, _i = _e.create, Pi = ne.createWithPreprocess, Ei = Bt.create, Ai = () => Hr().optional(), Ci = () => qr().optional(), Ti = () => Kr().optional(), $i = {
2898
+ }) => Hr((n) => n instanceof t, e), Wr = ee.create, qr = ve.create, Ka = qt.create, Ya = we.create, Kr = it.create, Ja = Se.create, Qa = Gt.create, Xa = ot.create, ei = ct.create, ti = Ue.create, ni = ke.create, ri = me.create, si = Ht.create, ai = te.create, ii = j.create, oi = j.strictCreate, ci = ut.create, ui = nn.create, di = dt.create, li = oe.create, fi = lt.create, hi = Wt.create, pi = Re.create, mi = Le.create, yi = ft.create, bi = ht.create, gi = xe.create, vi = pt.create, wi = Ge.create, wr = ne.create, xi = ae.create, _i = _e.create, Pi = ne.createWithPreprocess, Ei = Bt.create, Ai = () => Wr().optional(), Ci = () => qr().optional(), Ti = () => Kr().optional(), $i = {
2899
2899
  string: (t) => ee.create({ ...t, coerce: !0 }),
2900
2900
  number: (t) => ve.create({ ...t, coerce: !0 }),
2901
2901
  boolean: (t) => it.create({
@@ -2942,7 +2942,7 @@ var l = /* @__PURE__ */ Object.freeze({
2942
2942
  ZodAny: Ue,
2943
2943
  ZodUnknown: ke,
2944
2944
  ZodNever: me,
2945
- ZodVoid: Wt,
2945
+ ZodVoid: Ht,
2946
2946
  ZodArray: te,
2947
2947
  ZodObject: j,
2948
2948
  ZodUnion: ut,
@@ -2950,7 +2950,7 @@ var l = /* @__PURE__ */ Object.freeze({
2950
2950
  ZodIntersection: dt,
2951
2951
  ZodTuple: oe,
2952
2952
  ZodRecord: lt,
2953
- ZodMap: Ht,
2953
+ ZodMap: Wt,
2954
2954
  ZodSet: Re,
2955
2955
  ZodFunction: Le,
2956
2956
  ZodLazy: ft,
@@ -2965,14 +2965,14 @@ var l = /* @__PURE__ */ Object.freeze({
2965
2965
  ZodDefault: mt,
2966
2966
  ZodCatch: yt,
2967
2967
  ZodNaN: qt,
2968
- BRAND: Wa,
2969
- ZodBranded: Hn,
2968
+ BRAND: Ha,
2969
+ ZodBranded: Wn,
2970
2970
  ZodPipeline: Bt,
2971
2971
  ZodReadonly: bt,
2972
- custom: Wr,
2972
+ custom: Hr,
2973
2973
  Schema: T,
2974
2974
  ZodSchema: T,
2975
- late: Ha,
2975
+ late: Wa,
2976
2976
  get ZodFirstPartyTypeKind() {
2977
2977
  return x;
2978
2978
  },
@@ -3008,7 +3008,7 @@ var l = /* @__PURE__ */ Object.freeze({
3008
3008
  record: fi,
3009
3009
  set: pi,
3010
3010
  strictObject: oi,
3011
- string: Hr,
3011
+ string: Wr,
3012
3012
  symbol: Qa,
3013
3013
  transformer: wr,
3014
3014
  tuple: li,
@@ -3019,7 +3019,7 @@ var l = /* @__PURE__ */ Object.freeze({
3019
3019
  NEVER: ki,
3020
3020
  ZodIssueCode: p,
3021
3021
  quotelessJson: _a,
3022
- ZodError: H
3022
+ ZodError: W
3023
3023
  });
3024
3024
  const Yr = "2.22.1";
3025
3025
  let Qe = {
@@ -3216,7 +3216,7 @@ function gt(t, e = {}) {
3216
3216
  const s = (t.length - 2) / 2, a = (1n << BigInt(s) * 8n - 1n) - 1n;
3217
3217
  return r <= a ? r : r - BigInt(`0x${"f".padStart(s * 2, "f")}`) - 1n;
3218
3218
  }
3219
- function We(t, e = {}) {
3219
+ function He(t, e = {}) {
3220
3220
  return Number(gt(t, e));
3221
3221
  }
3222
3222
  const Bi = /* @__PURE__ */ Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0"));
@@ -3257,7 +3257,7 @@ function Yn(t, e = {}) {
3257
3257
  const n = Ni.encode(t);
3258
3258
  return G(n, e);
3259
3259
  }
3260
- function He(t, { includeName: e = !1 } = {}) {
3260
+ function We(t, { includeName: e = !1 } = {}) {
3261
3261
  if (t.type !== "function" && t.type !== "event" && t.type !== "error")
3262
3262
  throw new Ki(t.type);
3263
3263
  return `${t.name}(${Jn(t.inputs, { includeName: e })})`;
@@ -3398,8 +3398,8 @@ class Gi extends y {
3398
3398
  constructor(e, n) {
3399
3399
  super("Found ambiguous types in overloaded ABI items.", {
3400
3400
  metaMessages: [
3401
- `\`${e.type}\` in \`${He(e.abiItem)}\`, and`,
3402
- `\`${n.type}\` in \`${He(n.abiItem)}\``,
3401
+ `\`${e.type}\` in \`${We(e.abiItem)}\`, and`,
3402
+ `\`${n.type}\` in \`${We(n.abiItem)}\``,
3403
3403
  "",
3404
3404
  "These types encode differently and cannot be distinguished at runtime.",
3405
3405
  "Remove one of the ambiguous items in the ABI."
@@ -3408,7 +3408,7 @@ class Gi extends y {
3408
3408
  });
3409
3409
  }
3410
3410
  }
3411
- class Wi extends y {
3411
+ class Hi extends y {
3412
3412
  constructor(e, { docsPath: n }) {
3413
3413
  super([
3414
3414
  `Type "${e}" is not a valid encoding type.`,
@@ -3417,7 +3417,7 @@ class Wi extends y {
3417
3417
  `), { docsPath: n, name: "InvalidAbiEncodingType" });
3418
3418
  }
3419
3419
  }
3420
- class Hi extends y {
3420
+ class Wi extends y {
3421
3421
  constructor(e, { docsPath: n }) {
3422
3422
  super([
3423
3423
  `Type "${e}" is not a valid decoding type.`,
@@ -3595,7 +3595,7 @@ function Xn({ param: t, value: e }) {
3595
3595
  return so(e, { param: t });
3596
3596
  if (t.type === "string")
3597
3597
  return oo(e);
3598
- throw new Wi(t.type, {
3598
+ throw new Hi(t.type, {
3599
3599
  docsPath: "/docs/contract/encodeAbiParameters"
3600
3600
  });
3601
3601
  }
@@ -3782,7 +3782,7 @@ async function lo({ hash: t, signature: e }) {
3782
3782
  const { r: c, s: d, v: f, yParity: h } = e, m = Number(h ?? f), v = Er(m);
3783
3783
  return new r.Signature(gt(c), gt(d)).addRecoveryBit(v);
3784
3784
  }
3785
- const i = Pe(e) ? e : Sn(e), o = We(`0x${i.slice(130)}`), u = Er(o);
3785
+ const i = Pe(e) ? e : Sn(e), o = He(`0x${i.slice(130)}`), u = Er(o);
3786
3786
  return r.Signature.fromCompact(i.substring(2, 130)).addRecoveryBit(u);
3787
3787
  })().recoverPublicKey(n.substring(2)).toHex(!1)}`;
3788
3788
  }
@@ -4374,7 +4374,7 @@ class bs extends y {
4374
4374
  }
4375
4375
  }
4376
4376
  const ko = -1;
4377
- class W extends y {
4377
+ class H extends y {
4378
4378
  constructor(e, { code: n, docsPath: r, metaMessages: s, name: a, shortMessage: i }) {
4379
4379
  super(i, {
4380
4380
  cause: e,
@@ -4389,7 +4389,7 @@ class W extends y {
4389
4389
  }), this.name = a || e.name, this.code = e instanceof bs ? e.code : n ?? ko;
4390
4390
  }
4391
4391
  }
4392
- class Je extends W {
4392
+ class Je extends H {
4393
4393
  constructor(e, n) {
4394
4394
  super(e, n), Object.defineProperty(this, "data", {
4395
4395
  enumerable: !0,
@@ -4399,7 +4399,7 @@ class Je extends W {
4399
4399
  }), this.data = n.data;
4400
4400
  }
4401
4401
  }
4402
- class wt extends W {
4402
+ class wt extends H {
4403
4403
  constructor(e) {
4404
4404
  super(e, {
4405
4405
  code: wt.code,
@@ -4414,7 +4414,7 @@ Object.defineProperty(wt, "code", {
4414
4414
  writable: !0,
4415
4415
  value: -32700
4416
4416
  });
4417
- class xt extends W {
4417
+ class xt extends H {
4418
4418
  constructor(e) {
4419
4419
  super(e, {
4420
4420
  code: xt.code,
@@ -4429,7 +4429,7 @@ Object.defineProperty(xt, "code", {
4429
4429
  writable: !0,
4430
4430
  value: -32600
4431
4431
  });
4432
- class _t extends W {
4432
+ class _t extends H {
4433
4433
  constructor(e, { method: n } = {}) {
4434
4434
  super(e, {
4435
4435
  code: _t.code,
@@ -4444,7 +4444,7 @@ Object.defineProperty(_t, "code", {
4444
4444
  writable: !0,
4445
4445
  value: -32601
4446
4446
  });
4447
- class Pt extends W {
4447
+ class Pt extends H {
4448
4448
  constructor(e) {
4449
4449
  super(e, {
4450
4450
  code: Pt.code,
@@ -4463,7 +4463,7 @@ Object.defineProperty(Pt, "code", {
4463
4463
  writable: !0,
4464
4464
  value: -32602
4465
4465
  });
4466
- class Oe extends W {
4466
+ class Oe extends H {
4467
4467
  constructor(e) {
4468
4468
  super(e, {
4469
4469
  code: Oe.code,
@@ -4478,7 +4478,7 @@ Object.defineProperty(Oe, "code", {
4478
4478
  writable: !0,
4479
4479
  value: -32603
4480
4480
  });
4481
- class Et extends W {
4481
+ class Et extends H {
4482
4482
  constructor(e) {
4483
4483
  super(e, {
4484
4484
  code: Et.code,
@@ -4497,7 +4497,7 @@ Object.defineProperty(Et, "code", {
4497
4497
  writable: !0,
4498
4498
  value: -32e3
4499
4499
  });
4500
- class At extends W {
4500
+ class At extends H {
4501
4501
  constructor(e) {
4502
4502
  super(e, {
4503
4503
  code: At.code,
@@ -4517,7 +4517,7 @@ Object.defineProperty(At, "code", {
4517
4517
  writable: !0,
4518
4518
  value: -32001
4519
4519
  });
4520
- class Ct extends W {
4520
+ class Ct extends H {
4521
4521
  constructor(e) {
4522
4522
  super(e, {
4523
4523
  code: Ct.code,
@@ -4532,7 +4532,7 @@ Object.defineProperty(Ct, "code", {
4532
4532
  writable: !0,
4533
4533
  value: -32002
4534
4534
  });
4535
- class Tt extends W {
4535
+ class Tt extends H {
4536
4536
  constructor(e) {
4537
4537
  super(e, {
4538
4538
  code: Tt.code,
@@ -4547,7 +4547,7 @@ Object.defineProperty(Tt, "code", {
4547
4547
  writable: !0,
4548
4548
  value: -32003
4549
4549
  });
4550
- class $t extends W {
4550
+ class $t extends H {
4551
4551
  constructor(e, { method: n } = {}) {
4552
4552
  super(e, {
4553
4553
  code: $t.code,
@@ -4562,7 +4562,7 @@ Object.defineProperty($t, "code", {
4562
4562
  writable: !0,
4563
4563
  value: -32004
4564
4564
  });
4565
- class Ke extends W {
4565
+ class Ke extends H {
4566
4566
  constructor(e) {
4567
4567
  super(e, {
4568
4568
  code: Ke.code,
@@ -4577,7 +4577,7 @@ Object.defineProperty(Ke, "code", {
4577
4577
  writable: !0,
4578
4578
  value: -32005
4579
4579
  });
4580
- class kt extends W {
4580
+ class kt extends H {
4581
4581
  constructor(e) {
4582
4582
  super(e, {
4583
4583
  code: kt.code,
@@ -4682,7 +4682,7 @@ Object.defineProperty(Mt, "code", {
4682
4682
  writable: !0,
4683
4683
  value: 4902
4684
4684
  });
4685
- class Io extends W {
4685
+ class Io extends H {
4686
4686
  constructor(e) {
4687
4687
  super(e, {
4688
4688
  name: "UnknownRpcError",
@@ -4781,7 +4781,7 @@ async function gs(t) {
4781
4781
  const e = await t.request({
4782
4782
  method: "eth_chainId"
4783
4783
  }, { dedupe: !0 });
4784
- return We(e);
4784
+ return He(e);
4785
4785
  }
4786
4786
  class jo extends y {
4787
4787
  constructor() {
@@ -4820,13 +4820,13 @@ function zo(t) {
4820
4820
  ...t,
4821
4821
  blockHash: t.blockHash ? t.blockHash : null,
4822
4822
  blockNumber: t.blockNumber ? BigInt(t.blockNumber) : null,
4823
- chainId: t.chainId ? We(t.chainId) : void 0,
4823
+ chainId: t.chainId ? He(t.chainId) : void 0,
4824
4824
  gas: t.gas ? BigInt(t.gas) : void 0,
4825
4825
  gasPrice: t.gasPrice ? BigInt(t.gasPrice) : void 0,
4826
4826
  maxFeePerBlobGas: t.maxFeePerBlobGas ? BigInt(t.maxFeePerBlobGas) : void 0,
4827
4827
  maxFeePerGas: t.maxFeePerGas ? BigInt(t.maxFeePerGas) : void 0,
4828
4828
  maxPriorityFeePerGas: t.maxPriorityFeePerGas ? BigInt(t.maxPriorityFeePerGas) : void 0,
4829
- nonce: t.nonce ? We(t.nonce) : void 0,
4829
+ nonce: t.nonce ? He(t.nonce) : void 0,
4830
4830
  to: t.to ? t.to : null,
4831
4831
  transactionIndex: t.transactionIndex ? Number(t.transactionIndex) : null,
4832
4832
  type: t.type ? Fo[t.type] : void 0,
@@ -5018,7 +5018,7 @@ class Go extends y {
5018
5018
  });
5019
5019
  }
5020
5020
  }
5021
- class Wo extends y {
5021
+ class Ho extends y {
5022
5022
  constructor() {
5023
5023
  super("state and stateDiff are set on the same account.", {
5024
5024
  name: "StateAssignmentConflictError"
@@ -5029,7 +5029,7 @@ function Tr(t) {
5029
5029
  return t.reduce((e, { slot: n, value: r }) => `${e} ${n}: ${r}
5030
5030
  `, "");
5031
5031
  }
5032
- function Ho(t) {
5032
+ function Wo(t) {
5033
5033
  return t.reduce((e, { address: n, ...r }) => {
5034
5034
  let s = `${e} ${n}:
5035
5035
  `;
@@ -5064,7 +5064,7 @@ function qo(t) {
5064
5064
  const { balance: e, nonce: n, state: r, stateDiff: s, code: a } = t, i = {};
5065
5065
  if (a !== void 0 && (i.code = a), e !== void 0 && (i.balance = O(e)), n !== void 0 && (i.nonce = O(n)), r !== void 0 && (i.state = $r(r)), s !== void 0) {
5066
5066
  if (i.state)
5067
- throw new Wo();
5067
+ throw new Ho();
5068
5068
  i.stateDiff = $r(s);
5069
5069
  }
5070
5070
  return i;
@@ -5168,7 +5168,7 @@ async function Jo(t, { address: e, blockTag: n = "latest", blockNumber: r }) {
5168
5168
  method: "eth_getTransactionCount",
5169
5169
  params: [e, r ? O(r) : n]
5170
5170
  }, { dedupe: !!r });
5171
- return We(s);
5171
+ return He(s);
5172
5172
  }
5173
5173
  function xs(t) {
5174
5174
  const { kzg: e } = t, n = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), r = typeof t.blobs[0] == "string" ? t.blobs.map((a) => ye(a)) : t.blobs, s = [];
@@ -5525,7 +5525,7 @@ function uc(t, e = {}) {
5525
5525
  function pe(t, e = {}) {
5526
5526
  typeof e.size < "u" && ce(t, { size: e.size });
5527
5527
  const n = G(t, e);
5528
- return We(n, e);
5528
+ return He(n, e);
5529
5529
  }
5530
5530
  function dc(t, e = {}) {
5531
5531
  let n = t;
@@ -5571,7 +5571,7 @@ function De(t, e, { staticPosition: n }) {
5571
5571
  return mc(t, e);
5572
5572
  if (e.type === "string")
5573
5573
  return bc(t, { staticPosition: n });
5574
- throw new Hi(e.type, {
5574
+ throw new Wi(e.type, {
5575
5575
  docsPath: "/docs/contract/decodeAbiParameters"
5576
5576
  });
5577
5577
  }
@@ -5956,7 +5956,7 @@ class Gc extends D {
5956
5956
  });
5957
5957
  }
5958
5958
  }
5959
- class Wc extends D {
5959
+ class Hc extends D {
5960
5960
  constructor({ current: e, depth: n }) {
5961
5961
  super("Unbalanced parentheses.", {
5962
5962
  metaMessages: [
@@ -5971,7 +5971,7 @@ class Wc extends D {
5971
5971
  });
5972
5972
  }
5973
5973
  }
5974
- function Hc(t, e, n) {
5974
+ function Wc(t, e, n) {
5975
5975
  let r = "";
5976
5976
  if (n)
5977
5977
  for (const s of Object.entries(n)) {
@@ -6115,7 +6115,7 @@ function qc(t, e = {}) {
6115
6115
  const Kc = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Yc = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Jc = /^u?int$/;
6116
6116
  function $e(t, e) {
6117
6117
  var f, h;
6118
- const n = Hc(t, e == null ? void 0 : e.type, e == null ? void 0 : e.structs);
6118
+ const n = Wc(t, e == null ? void 0 : e.type, e == null ? void 0 : e.structs);
6119
6119
  if (wn.has(n))
6120
6120
  return wn.get(n);
6121
6121
  const r = Is.test(t), s = Ae(r ? Yc : Kc, t);
@@ -6177,7 +6177,7 @@ function X(t, e = [], n = "", r = 0) {
6177
6177
  if (n === "")
6178
6178
  return e;
6179
6179
  if (r !== 0)
6180
- throw new Wc({ current: n, depth: r });
6180
+ throw new Hc({ current: n, depth: r });
6181
6181
  return e.push(n.trim()), e;
6182
6182
  }
6183
6183
  function Ns(t) {
@@ -6393,7 +6393,7 @@ function iu(t) {
6393
6393
  throw new Kt(void 0, { docsPath: Mr });
6394
6394
  return {
6395
6395
  abi: [s],
6396
- functionName: ur(He(s))
6396
+ functionName: ur(We(s))
6397
6397
  };
6398
6398
  }
6399
6399
  function dn(t) {
@@ -6455,7 +6455,7 @@ function lu(t) {
6455
6455
  const { abi: e, data: n } = t, r = Yt(n, 0, 4);
6456
6456
  if (r === "0x")
6457
6457
  throw new Qn();
6458
- const a = [...e || [], uu, du].find((i) => i.type === "error" && r === ur(He(i)));
6458
+ const a = [...e || [], uu, du].find((i) => i.type === "error" && r === ur(We(i)));
6459
6459
  if (!a)
6460
6460
  throw new rs(r, {
6461
6461
  docsPath: "/docs/contract/decodeErrorResult"
@@ -6486,7 +6486,7 @@ class fu extends y {
6486
6486
  nonce: d
6487
6487
  });
6488
6488
  m && ($ += `
6489
- ${Ho(m)}`), super(e.shortMessage, {
6489
+ ${Wo(m)}`), super(e.shortMessage, {
6490
6490
  cause: e,
6491
6491
  docsPath: r,
6492
6492
  metaMessages: [
@@ -6510,7 +6510,7 @@ class hu extends y {
6510
6510
  args: r,
6511
6511
  includeFunctionName: !1,
6512
6512
  includeName: !1
6513
- }) : void 0, d = u ? He(u, { includeName: !0 }) : void 0, f = Ft({
6513
+ }) : void 0, d = u ? We(u, { includeName: !0 }) : void 0, f = Ft({
6514
6514
  address: s && $o(s),
6515
6515
  function: d,
6516
6516
  args: c && c !== "()" && `${[...Array((i == null ? void 0 : i.length) ?? 0).keys()].map(() => " ").join("")}${c}`,
@@ -6576,7 +6576,7 @@ class pu extends y {
6576
6576
  const [m] = h;
6577
6577
  u = cu[m];
6578
6578
  } else {
6579
- const m = d ? He(d, { includeName: !0 }) : void 0, v = d && h ? Ds({
6579
+ const m = d ? We(d, { includeName: !0 }) : void 0, v = d && h ? Ds({
6580
6580
  abiItem: d,
6581
6581
  args: h,
6582
6582
  includeFunctionName: !1,
@@ -6780,7 +6780,7 @@ async function Us(t, e) {
6780
6780
  });
6781
6781
  return br === "0x" ? { data: void 0 } : { data: br };
6782
6782
  } catch (se) {
6783
- const V = $u(se), { offchainLookup: Q, offchainLookupSignature: Y } = await import("./ccip-BZMQ5y3q.js");
6783
+ const V = $u(se), { offchainLookup: Q, offchainLookupSignature: Y } = await import("./ccip-DVTtfch_.js");
6784
6784
  if (t.ccipRead !== !1 && (V == null ? void 0 : V.slice(0, 10)) === Y && R)
6785
6785
  return { data: await Q(t, { data: V, to: R }) };
6786
6786
  throw C && (V == null ? void 0 : V.slice(0, 10)) === "0x101bb98d" ? new yu({ factory: d }) : xu(se, {
@@ -7201,11 +7201,11 @@ function pr(t, e, n) {
7201
7201
  return typeof s == "function" ? s : (a) => e(t, a);
7202
7202
  }
7203
7203
  const Lu = "2.13.8", Zu = () => `@wagmi/core@${Lu}`;
7204
- var Ws = function(t, e, n, r) {
7204
+ var Hs = function(t, e, n, r) {
7205
7205
  if (n === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
7206
7206
  if (typeof e == "function" ? t !== e || !r : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7207
7207
  return n === "m" ? r : n === "a" ? r.call(t) : r ? r.value : e.get(t);
7208
- }, en, Hs;
7208
+ }, en, Ws;
7209
7209
  class Me extends Error {
7210
7210
  get docsBaseUrl() {
7211
7211
  return "https://wagmi.sh/core";
@@ -7255,11 +7255,11 @@ class Me extends Error {
7255
7255
  `), n.cause && (this.cause = n.cause), this.details = s, this.docsPath = a, this.metaMessages = n.metaMessages, this.shortMessage = e;
7256
7256
  }
7257
7257
  walk(e) {
7258
- return Ws(this, en, "m", Hs).call(this, this, e);
7258
+ return Hs(this, en, "m", Ws).call(this, this, e);
7259
7259
  }
7260
7260
  }
7261
- en = /* @__PURE__ */ new WeakSet(), Hs = function t(e, n) {
7262
- return n != null && n(e) ? e : e.cause ? Ws(this, en, "m", t).call(this, e.cause, n) : e;
7261
+ en = /* @__PURE__ */ new WeakSet(), Ws = function t(e, n) {
7262
+ return n != null && n(e) ? e : e.cause ? Hs(this, en, "m", t).call(this, e.cause, n) : e;
7263
7263
  };
7264
7264
  class Du extends Me {
7265
7265
  constructor() {
@@ -7354,7 +7354,7 @@ async function qs(t, e = {}) {
7354
7354
  transport: (c) => zu(u)({ ...c, retryCount: 0 })
7355
7355
  });
7356
7356
  }
7357
- async function Wn(t, e) {
7357
+ async function Hn(t, e) {
7358
7358
  const { abi: n, chainId: r, connector: s, ...a } = e;
7359
7359
  let i;
7360
7360
  e.account ? i = e.account : i = (await qs(t, {
@@ -7372,13 +7372,13 @@ function mr(t) {
7372
7372
  return t.address !== void 0 && typeof t.address == "object" ? (e, n) => {
7373
7373
  var r;
7374
7374
  const s = hr(e), a = ln(e), i = (n == null ? void 0 : n.chainId) ?? a.chainId ?? s;
7375
- return Wn(e, {
7375
+ return Hn(e, {
7376
7376
  ...n,
7377
7377
  ...t.functionName ? { functionName: t.functionName } : {},
7378
7378
  address: (r = t.address) == null ? void 0 : r[i],
7379
7379
  abi: t.abi
7380
7380
  });
7381
- } : (e, n) => Wn(e, {
7381
+ } : (e, n) => Hn(e, {
7382
7382
  ...n,
7383
7383
  ...t.address ? { address: t.address } : {},
7384
7384
  ...t.functionName ? { functionName: t.functionName } : {},
@@ -7415,7 +7415,7 @@ async function Br(t, e) {
7415
7415
  if (a === "prepared" || u != null && u.supportsSimulation)
7416
7416
  c = i;
7417
7417
  else {
7418
- const { request: d } = await Wn(t, {
7418
+ const { request: d } = await Hn(t, {
7419
7419
  ...i,
7420
7420
  account: n,
7421
7421
  chainId: r
@@ -7620,10 +7620,10 @@ const be = [
7620
7620
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
7621
7621
  stateMutability: "nonpayable"
7622
7622
  }
7623
- ], Wu = /* @__PURE__ */ Ks({
7623
+ ], Hu = /* @__PURE__ */ Ks({
7624
7624
  abi: be,
7625
7625
  functionName: "allowance"
7626
- }), Hu = /* @__PURE__ */ Ks({
7626
+ }), Wu = /* @__PURE__ */ Ks({
7627
7627
  abi: be,
7628
7628
  functionName: "balanceOf"
7629
7629
  }), qu = /* @__PURE__ */ yr({
@@ -7647,7 +7647,7 @@ const be = [
7647
7647
  }), ed = "0x6080604052348015600e575f80fd5b50610b398061001c5f395ff3fe6080604052600436106100d9575f3560e01c806340c10f191161007c57806395d89b411161005757806395d89b4114610323578063a9059cbb14610368578063d505accf14610387578063dd62ed3e146103a6575f80fd5b806340c10f19146102a257806370a08231146102c15780637ecebe00146102f2575f80fd5b806318160ddd116100b757806318160ddd1461017857806323b872dd1461019e578063313ce567146101bd5780633644e515146101d8575f80fd5b806306fdde03146100dd578063095ea7b31461013457806317d304b014610163575b5f80fd5b3480156100e8575f80fd5b5060408051808201909152600a81527f4d6f636b2045524332300000000000000000000000000000000000000000000060208201525b60405161012b9190610930565b60405180910390f35b34801561013f575f80fd5b5061015361014e3660046109ab565b6103c5565b604051901515815260200161012b565b6101766101713660046109ab565b610452565b005b348015610183575f80fd5b506805345cdf77eb68f44c545b60405190815260200161012b565b3480156101a9575f80fd5b506101536101b83660046109d3565b6104d8565b3480156101c8575f80fd5b506040516012815260200161012b565b3480156101e3575f80fd5b50604080518082018252600a81527f4d6f636b2045524332300000000000000000000000000000000000000000000060209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527fa5c9260bf133e670eeaf4d41f5c4289fc23bb146bf11ba8fa70a2ea91ba1a330918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69181019190915246606082015230608082015260a09020610190565b3480156102ad575f80fd5b506101766102bc3660046109ab565b6104ca565b3480156102cc575f80fd5b506101906102db366004610a0d565b6387a211a2600c9081525f91909152602090205490565b3480156102fd575f80fd5b5061019061030c366004610a0d565b6338377508600c9081525f91909152602090205490565b34801561032e575f80fd5b5060408051808201909152600481527f4d4f434b00000000000000000000000000000000000000000000000000000000602082015261011e565b348015610373575f80fd5b506101536103823660046109ab565b6105a7565b348015610392575f80fd5b506101766103a1366004610a2d565b61061e565b3480156103b1575f80fd5b506101906103c0366004610a9a565b610834565b5f73ffffffffffffffffffffffffffffffffffffffff83166e22d473030f116ddee9f6b43ac78ba3188219151761040357633f68539a5f526004601cfd5b82602052637f5e9f20600c52335f52816034600c2055815f52602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560205fa35060015b92915050565b61045d606482610acb565b3410156104ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4d6f636b45524332303a2067696d6d65206d6f7265206d6f6e65792100000000604482015260640160405180910390fd5b6104d482826108b4565b5050565b5f8360601b6e22d473030f116ddee9f6b43ac78ba3331461052d5733602052637f5e9f208117600c526034600c20805480191561052a5780851115610524576313be252b5f526004601cfd5b84810382555b50505b6387a211a28117600c526020600c208054808511156105535763f4d678b85f526004601cfd5b84810382555050835f526020600c208381540181555082602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505060019392505050565b5f6387a211a2600c52335f526020600c208054808411156105cf5763f4d678b85f526004601cfd5b83810382555050825f526020600c208281540181555081602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff86166e22d473030f116ddee9f6b43ac78ba3188519151761065b57633f68539a5f526004601cfd5b60408051808201909152600a81527f4d6f636b204552433230000000000000000000000000000000000000000000006020909101527fa5c9260bf133e670eeaf4d41f5c4289fc23bb146bf11ba8fa70a2ea91ba1a3307fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6428610156106e757631a15a3cc5f526004601cfd5b6040518960601b60601c99508860601b60601c985065383775081901600e52895f526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835284602084015283604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528b60208401528a60408401528960608401528060808401528860a084015260c08320604e526042602c205f528760ff16602052866040528560605260208060805f60015afa8c3d51146107cf5763ddafbaef5f526004601cfd5b019055777f5e9f20000000000000000000000000000000000000000089176040526034602c20889055888a7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608501a360405250505f60605250505050505050565b5f7fffffffffffffffffffffffffffffffffffdd2b8cfcf0ee922116094bc538745d73ffffffffffffffffffffffffffffffffffffffff83160161089957507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61044c565b50602052637f5e9f20600c9081525f91909152603490205490565b6805345cdf77eb68f44c54818101818110156108d75763e5cfe9575f526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52815f526020600c208181540181555080602052600c5160601c5f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b803573ffffffffffffffffffffffffffffffffffffffff811681146109a6575f80fd5b919050565b5f80604083850312156109bc575f80fd5b6109c583610983565b946020939093013593505050565b5f805f606084860312156109e5575f80fd5b6109ee84610983565b92506109fc60208501610983565b929592945050506040919091013590565b5f60208284031215610a1d575f80fd5b610a2682610983565b9392505050565b5f805f805f805f60e0888a031215610a43575f80fd5b610a4c88610983565b9650610a5a60208901610983565b95506040880135945060608801359350608088013560ff81168114610a7d575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215610aab575f80fd5b610ab483610983565b9150610ac260208401610983565b90509250929050565b5f82610afe577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea2646970667358221220dcec948e703d7841a9bac2a0a714923268527cd72b6ee68975fb52d9176ce95b64736f6c634300081a0033";
7648
7648
  class Ys extends ra {
7649
7649
  async balanceOf(e, n) {
7650
- return await Hu(this._config, {
7650
+ return await Wu(this._config, {
7651
7651
  address: this.assertValidAddress(),
7652
7652
  args: [e],
7653
7653
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -7655,7 +7655,7 @@ class Ys extends ra {
7655
7655
  });
7656
7656
  }
7657
7657
  async allowance(e, n, r) {
7658
- return await Wu(this._config, {
7658
+ return await Hu(this._config, {
7659
7659
  address: this.assertValidAddress(),
7660
7660
  args: [e, n],
7661
7661
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally