@boostxyz/cli 1.1.0 → 1.2.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.
@@ -1,17 +1,17 @@
1
- import Tt from "node:fs/promises";
2
- import Ct from "node:path";
3
- import { Deployable as It, SignatureType as se, FilterType as tt, PrimitiveType as nt, StrategyType as Me, BOOST_REGISTRY_ADDRESSES as St, BoostRegistry as At, BOOST_CORE_ADDRESSES as Et, BoostCore as Nt, Roles as at, allowListFromAddress as Ot } from "@boostxyz/sdk";
4
- import { B as Rt, l as Zt, p as jt, c as Mt, f as Pt, h as $t, s as Dt, r as Vt, w as Bt, m as Lt, n as zt, q as ze, t as Ut, u as Wt, x as qt, k as Ht } from "../utils-CX1JpbvX.js";
5
- class Ft extends Rt {
1
+ import Ct from "node:fs/promises";
2
+ import It from "node:path";
3
+ import { Deployable as St, SignatureType as se, FilterType as nt, PrimitiveType as at, StrategyType as Me, BOOST_REGISTRY_ADDRESSES as At, BoostRegistry as Et, BOOST_CORE_ADDRESSES as Nt, BoostCore as Ot, Roles as rt, allowListFromAddress as Rt } from "@boostxyz/sdk";
4
+ import { B as Zt, l as jt, p as Mt, c as Pt, f as $t, h as Dt, s as Vt, r as Bt, w as Lt, m as zt, n as Ut, q as ze, t as Wt, u as qt, x as Ht, k as Ft } from "../utils-CbGtTEVk.js";
5
+ class Gt extends Zt {
6
6
  constructor({ value: e }) {
7
7
  super(`Number \`${e}\` is not a valid decimal number.`, {
8
8
  name: "InvalidDecimalNumberError"
9
9
  });
10
10
  }
11
11
  }
12
- function Gt(n, e) {
12
+ function Jt(n, e) {
13
13
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(n))
14
- throw new Ft({ value: n });
14
+ throw new Gt({ value: n });
15
15
  let [t, a = "0"] = n.split(".");
16
16
  const r = t.startsWith("-");
17
17
  if (r && (t = t.slice(1)), a = a.replace(/(0+)$/, ""), e === 0)
@@ -27,10 +27,10 @@ function Gt(n, e) {
27
27
  a = a.padEnd(e, "0");
28
28
  return BigInt(`${r ? "-" : ""}${t}${a}`);
29
29
  }
30
- function rt(n, e = "wei") {
31
- return Gt(n, Zt[e]);
30
+ function st(n, e = "wei") {
31
+ return Jt(n, jt[e]);
32
32
  }
33
- const Ye = "0x0000000000000000000000000000000000000000";
33
+ const Qe = "0x0000000000000000000000000000000000000000";
34
34
  function Pe(n, e) {
35
35
  if (n === e)
36
36
  return !0;
@@ -132,18 +132,18 @@ function We(n, e, t) {
132
132
  const r = n[t];
133
133
  return typeof r == "function" ? r : (s) => e(n, s);
134
134
  }
135
- const Jt = "2.13.8", Yt = () => `@wagmi/core@${Jt}`;
136
- var st = function(n, e, t, a) {
135
+ const Yt = "2.13.8", Qt = () => `@wagmi/core@${Yt}`;
136
+ var it = function(n, e, t, a) {
137
137
  if (t === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
138
138
  if (typeof e == "function" ? n !== e || !a : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
139
139
  return t === "m" ? a : t === "a" ? a.call(n) : a ? a.value : e.get(n);
140
- }, we, it;
140
+ }, we, ot;
141
141
  class F extends Error {
142
142
  get docsBaseUrl() {
143
143
  return "https://wagmi.sh/core";
144
144
  }
145
145
  get version() {
146
- return Yt();
146
+ return Qt();
147
147
  }
148
148
  constructor(e, t = {}) {
149
149
  var a;
@@ -187,13 +187,13 @@ class F extends Error {
187
187
  `), t.cause && (this.cause = t.cause), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.shortMessage = e;
188
188
  }
189
189
  walk(e) {
190
- return st(this, we, "m", it).call(this, this, e);
190
+ return it(this, we, "m", ot).call(this, this, e);
191
191
  }
192
192
  }
193
- we = /* @__PURE__ */ new WeakSet(), it = function n(e, t) {
194
- return t != null && t(e) ? e : e.cause ? st(this, we, "m", n).call(this, e.cause, t) : e;
193
+ we = /* @__PURE__ */ new WeakSet(), ot = function n(e, t) {
194
+ return t != null && t(e) ? e : e.cause ? it(this, we, "m", n).call(this, e.cause, t) : e;
195
195
  };
196
- class Qt extends F {
196
+ class Kt extends F {
197
197
  constructor() {
198
198
  super("Connector not connected."), Object.defineProperty(this, "name", {
199
199
  enumerable: !0,
@@ -203,7 +203,7 @@ class Qt extends F {
203
203
  });
204
204
  }
205
205
  }
206
- class Kt extends F {
206
+ class Xt extends F {
207
207
  constructor({ address: e, connector: t }) {
208
208
  super(`Account "${e}" not found for connector "${t.name}".`), Object.defineProperty(this, "name", {
209
209
  enumerable: !0,
@@ -213,7 +213,7 @@ class Kt extends F {
213
213
  });
214
214
  }
215
215
  }
216
- class Xt extends F {
216
+ class en extends F {
217
217
  constructor({ connectionChainId: e, connectorChainId: t }) {
218
218
  super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`, {
219
219
  metaMessages: [
@@ -228,7 +228,7 @@ class Xt extends F {
228
228
  });
229
229
  }
230
230
  }
231
- class en extends F {
231
+ class tn extends F {
232
232
  constructor({ connector: e }) {
233
233
  super(`Connector "${e.name}" unavailable while reconnecting.`, {
234
234
  details: [
@@ -244,12 +244,12 @@ class en extends F {
244
244
  });
245
245
  }
246
246
  }
247
- async function ot(n, e = {}) {
247
+ async function ct(n, e = {}) {
248
248
  let t;
249
249
  if (e.connector) {
250
250
  const { connector: c } = e;
251
251
  if (n.state.status === "reconnecting" && !c.getAccounts && !c.getChainId)
252
- throw new en({ connector: c });
252
+ throw new tn({ connector: c });
253
253
  const [m, C] = await Promise.all([
254
254
  c.getAccounts(),
255
255
  c.getChainId()
@@ -262,38 +262,38 @@ async function ot(n, e = {}) {
262
262
  } else
263
263
  t = n.state.connections.get(n.state.current);
264
264
  if (!t)
265
- throw new Qt();
265
+ throw new Kt();
266
266
  const a = e.chainId ?? t.chainId, r = await t.connector.getChainId();
267
267
  if (r !== t.chainId)
268
- throw new Xt({
268
+ throw new en({
269
269
  connectionChainId: t.chainId,
270
270
  connectorChainId: r
271
271
  });
272
272
  const s = t.connector;
273
273
  if (s.getClient)
274
274
  return s.getClient({ chainId: a });
275
- const i = jt(e.account ?? t.accounts[0]);
276
- if (i.address = Mt(i.address), e.account && !t.accounts.some((c) => c.toLowerCase() === i.address.toLowerCase()))
277
- throw new Kt({
275
+ const i = Mt(e.account ?? t.accounts[0]);
276
+ if (i.address = Pt(i.address), e.account && !t.accounts.some((c) => c.toLowerCase() === i.address.toLowerCase()))
277
+ throw new Xt({
278
278
  address: i.address,
279
279
  connector: s
280
280
  });
281
281
  const o = n.chains.find((c) => c.id === a), u = await t.connector.getProvider({ chainId: a });
282
- return Pt({
282
+ return $t({
283
283
  account: i,
284
284
  chain: o,
285
285
  name: "Connector Client",
286
- transport: (c) => $t(u)({ ...c, retryCount: 0 })
286
+ transport: (c) => Dt(u)({ ...c, retryCount: 0 })
287
287
  });
288
288
  }
289
289
  async function $e(n, e) {
290
290
  const { abi: t, chainId: a, connector: r, ...s } = e;
291
291
  let i;
292
- e.account ? i = e.account : i = (await ot(n, {
292
+ e.account ? i = e.account : i = (await ct(n, {
293
293
  chainId: a,
294
294
  connector: r
295
295
  })).account;
296
- const o = n.getClient({ chainId: a }), u = We(o, Dt, "simulateContract"), { result: c, request: m } = await u({ ...s, abi: t, account: i });
296
+ const o = n.getClient({ chainId: a }), u = We(o, Vt, "simulateContract"), { result: c, request: m } = await u({ ...s, abi: t, account: i });
297
297
  return {
298
298
  chainId: o.chain.id,
299
299
  result: c,
@@ -317,31 +317,31 @@ function qe(n) {
317
317
  abi: n.abi
318
318
  });
319
319
  }
320
- function Qe(n, e) {
320
+ function Ke(n, e) {
321
321
  const { chainId: t, ...a } = e, r = n.getClient({ chainId: t });
322
- return We(r, Vt, "readContract")(a);
322
+ return We(r, Bt, "readContract")(a);
323
323
  }
324
- function ct(n) {
324
+ function dt(n) {
325
325
  return n.address !== void 0 && typeof n.address == "object" ? (e, t) => {
326
326
  var a;
327
327
  const r = Ue(e), s = Ne(e), i = (t == null ? void 0 : t.chainId) ?? s.chainId ?? r;
328
- return Qe(e, {
328
+ return Ke(e, {
329
329
  ...t,
330
330
  ...n.functionName ? { functionName: n.functionName } : {},
331
331
  address: (a = n.address) == null ? void 0 : a[i],
332
332
  abi: n.abi
333
333
  });
334
- } : (e, t) => Qe(e, {
334
+ } : (e, t) => Ke(e, {
335
335
  ...t,
336
336
  ...n.address ? { address: n.address } : {},
337
337
  ...n.functionName ? { functionName: n.functionName } : {},
338
338
  abi: n.abi
339
339
  });
340
340
  }
341
- async function Ke(n, e) {
341
+ async function Xe(n, e) {
342
342
  const { account: t, chainId: a, connector: r, __mode: s, ...i } = e;
343
343
  let o;
344
- typeof t == "object" && t.type === "local" ? o = n.getClient({ chainId: a }) : o = await ot(n, { account: t, chainId: a, connector: r });
344
+ typeof t == "object" && t.type === "local" ? o = n.getClient({ chainId: a }) : o = await ct(n, { account: t, chainId: a, connector: r });
345
345
  const { connector: u } = Ne(n);
346
346
  let c;
347
347
  if (s === "prepared" || u != null && u.supportsSimulation)
@@ -354,7 +354,7 @@ async function Ke(n, e) {
354
354
  });
355
355
  c = m;
356
356
  }
357
- return await We(o, Bt, "writeContract")({
357
+ return await We(o, Lt, "writeContract")({
358
358
  ...c,
359
359
  ...t ? { account: t } : {},
360
360
  chain: a ? { id: a } : null
@@ -365,13 +365,13 @@ function He(n) {
365
365
  var a;
366
366
  const r = Ue(e), s = Ne(e);
367
367
  let i;
368
- return t.chainId ? i = t.chainId : t.account && t.account === s.address || t.account === void 0 ? i = s.chainId : i = r, Ke(e, {
368
+ return t.chainId ? i = t.chainId : t.account && t.account === s.address || t.account === void 0 ? i = s.chainId : i = r, Xe(e, {
369
369
  ...t,
370
370
  ...n.functionName ? { functionName: n.functionName } : {},
371
371
  address: i ? (a = n.address) == null ? void 0 : a[i] : void 0,
372
372
  abi: n.abi
373
373
  });
374
- } : (e, t) => Ke(e, {
374
+ } : (e, t) => Xe(e, {
375
375
  ...t,
376
376
  ...n.address ? { address: n.address } : {},
377
377
  ...n.functionName ? { functionName: n.functionName } : {},
@@ -551,34 +551,34 @@ const B = [
551
551
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
552
552
  stateMutability: "nonpayable"
553
553
  }
554
- ], tn = /* @__PURE__ */ ct({
554
+ ], nn = /* @__PURE__ */ dt({
555
555
  abi: B,
556
556
  functionName: "allowance"
557
- }), nn = /* @__PURE__ */ ct({
557
+ }), an = /* @__PURE__ */ dt({
558
558
  abi: B,
559
559
  functionName: "balanceOf"
560
- }), an = /* @__PURE__ */ He({
560
+ }), rn = /* @__PURE__ */ He({
561
561
  abi: B,
562
562
  functionName: "approve"
563
- }), rn = /* @__PURE__ */ He({
563
+ }), sn = /* @__PURE__ */ He({
564
564
  abi: B,
565
565
  functionName: "mint"
566
- }), sn = /* @__PURE__ */ He({
566
+ }), on = /* @__PURE__ */ He({
567
567
  abi: B,
568
568
  functionName: "mintPayable"
569
- }), on = /* @__PURE__ */ qe({
569
+ }), cn = /* @__PURE__ */ qe({
570
570
  abi: B,
571
571
  functionName: "approve"
572
- }), cn = /* @__PURE__ */ qe({
572
+ }), dn = /* @__PURE__ */ qe({
573
573
  abi: B,
574
574
  functionName: "mint"
575
- }), dn = /* @__PURE__ */ qe({
575
+ }), un = /* @__PURE__ */ qe({
576
576
  abi: B,
577
577
  functionName: "mintPayable"
578
- }), un = "0x6080604052348015600e575f80fd5b50610e138061001c5f395ff3fe6080604052600436106100dc575f3560e01c806340c10f191161007e57806395d89b411161005857806395d89b41146102bc578063a9059cbb146102e6578063d505accf14610322578063dd62ed3e1461034a576100dc565b806340c10f191461021c57806370a08231146102445780637ecebe0014610280576100dc565b806318160ddd116100ba57806318160ddd1461016257806323b872dd1461018c578063313ce567146101c85780633644e515146101f2576100dc565b806306fdde03146100e0578063095ea7b31461010a57806317d304b014610146575b5f80fd5b3480156100eb575f80fd5b506100f4610386565b60405161010191906109bf565b60405180910390f35b348015610115575f80fd5b50610130600480360381019061012b9190610a70565b6103c3565b60405161013d9190610ac8565b60405180910390f35b610160600480360381019061015b9190610a70565b610413565b005b34801561016d575f80fd5b50610176610470565b6040516101839190610af0565b60405180910390f35b348015610197575f80fd5b506101b260048036038101906101ad9190610b09565b610481565b6040516101bf9190610ac8565b60405180910390f35b3480156101d3575f80fd5b506101dc610552565b6040516101e99190610b74565b60405180910390f35b3480156101fd575f80fd5b5061020661055a565b6040516102139190610ba5565b60405180910390f35b348015610227575f80fd5b50610242600480360381019061023d9190610a70565b6105ea565b005b34801561024f575f80fd5b5061026a60048036038101906102659190610bbe565b6105f8565b6040516102779190610af0565b60405180910390f35b34801561028b575f80fd5b506102a660048036038101906102a19190610bbe565b610611565b6040516102b39190610af0565b60405180910390f35b3480156102c7575f80fd5b506102d061062a565b6040516102dd91906109bf565b60405180910390f35b3480156102f1575f80fd5b5061030c60048036038101906103079190610a70565b610667565b6040516103199190610ac8565b60405180910390f35b34801561032d575f80fd5b5061034860048036038101906103439190610c3d565b6106f5565b005b348015610355575f80fd5b50610370600480360381019061036b9190610cda565b610891565b60405161037d9190610af0565b60405180910390f35b60606040518060400160405280600a81526020017f4d6f636b20455243323000000000000000000000000000000000000000000000815250905090565b5f82602052637f5e9f20600c52335f52816034600c2055815f52602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560205fa36001905092915050565b6064816104209190610d45565b341015610462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045990610dbf565b60405180910390fd5b61046c82826108af565b5050565b5f6805345cdf77eb68f44c54905090565b5f61048d848484610941565b8360601b33602052637f5e9f208117600c526034600c20805460018101156104ca57808511156104c4576313be252b5f526004601cfd5b84810382555b6387a211a28317600c526020600c208054808711156104f05763f4d678b85f526004601cfd5b8681038255875f526020600c2087815401815587602052600c5160601c8660601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505050505050610547848484610946565b600190509392505050565b5f6012905090565b5f8061056461094b565b90505f801b810361058157610577610386565b8051906020012090505b6040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b6105f482826108af565b5050565b5f6387a211a2600c52815f526020600c20549050919050565b5f6338377508600c52815f526020600c20549050919050565b60606040518060400160405280600481526020017f4d4f434b00000000000000000000000000000000000000000000000000000000815250905090565b5f610673338484610941565b6387a211a2600c52335f526020600c2080548084111561069a5763f4d678b85f526004601cfd5b8381038255845f526020600c2084815401815584602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050506106eb338484610946565b6001905092915050565b5f6106fe61094b565b90505f801b810361071b57610711610386565b8051906020012090505b8442111561073057631a15a3cc5f526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52885f526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c205f528660ff16602052856040528460605260208060805f60015afa8b3d51146108385763ddafbaef5f526004601cfd5b80820183558a637f5e9f2060a01b17604052896034602c20558a8c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608801a3836040525f606052505050505050505050505050565b5f81602052637f5e9f20600c52825f526034600c2054905092915050565b6108ba5f8383610941565b6805345cdf77eb68f44c54818101818110156108dd5763e5cfe9575f526004601cfd5b806805345cdf77eb68f44c556387a211a2600c52835f526020600c2083815401815583602052600c5160601c5f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505061093d5f8383610946565b5050565b505050565b505050565b5f90565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6109918261094f565b61099b8185610959565b93506109ab818560208601610969565b6109b481610977565b840191505092915050565b5f6020820190508181035f8301526109d78184610987565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a0c826109e3565b9050919050565b610a1c81610a02565b8114610a26575f80fd5b50565b5f81359050610a3781610a13565b92915050565b5f819050919050565b610a4f81610a3d565b8114610a59575f80fd5b50565b5f81359050610a6a81610a46565b92915050565b5f8060408385031215610a8657610a856109df565b5b5f610a9385828601610a29565b9250506020610aa485828601610a5c565b9150509250929050565b5f8115159050919050565b610ac281610aae565b82525050565b5f602082019050610adb5f830184610ab9565b92915050565b610aea81610a3d565b82525050565b5f602082019050610b035f830184610ae1565b92915050565b5f805f60608486031215610b2057610b1f6109df565b5b5f610b2d86828701610a29565b9350506020610b3e86828701610a29565b9250506040610b4f86828701610a5c565b9150509250925092565b5f60ff82169050919050565b610b6e81610b59565b82525050565b5f602082019050610b875f830184610b65565b92915050565b5f819050919050565b610b9f81610b8d565b82525050565b5f602082019050610bb85f830184610b96565b92915050565b5f60208284031215610bd357610bd26109df565b5b5f610be084828501610a29565b91505092915050565b610bf281610b59565b8114610bfc575f80fd5b50565b5f81359050610c0d81610be9565b92915050565b610c1c81610b8d565b8114610c26575f80fd5b50565b5f81359050610c3781610c13565b92915050565b5f805f805f805f60e0888a031215610c5857610c576109df565b5b5f610c658a828b01610a29565b9750506020610c768a828b01610a29565b9650506040610c878a828b01610a5c565b9550506060610c988a828b01610a5c565b9450506080610ca98a828b01610bff565b93505060a0610cba8a828b01610c29565b92505060c0610ccb8a828b01610c29565b91505092959891949750929550565b5f8060408385031215610cf057610cef6109df565b5b5f610cfd85828601610a29565b9250506020610d0e85828601610a29565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f610d4f82610a3d565b9150610d5a83610a3d565b925082610d6a57610d69610d18565b5b828204905092915050565b7f4d6f636b45524332303a2067696d6d65206d6f7265206d6f6e657921000000005f82015250565b5f610da9601c83610959565b9150610db482610d75565b602082019050919050565b5f6020820190508181035f830152610dd681610d9d565b905091905056fea2646970667358221220a588f9f821e157f856641e8171dc78ec959e3c73080238aa8696355fc5d4a5d064736f6c634300081a0033";
579
- class dt extends It {
578
+ }), ln = "0x6080604052348015600e575f80fd5b50610e138061001c5f395ff3fe6080604052600436106100dc575f3560e01c806340c10f191161007e57806395d89b411161005857806395d89b41146102bc578063a9059cbb146102e6578063d505accf14610322578063dd62ed3e1461034a576100dc565b806340c10f191461021c57806370a08231146102445780637ecebe0014610280576100dc565b806318160ddd116100ba57806318160ddd1461016257806323b872dd1461018c578063313ce567146101c85780633644e515146101f2576100dc565b806306fdde03146100e0578063095ea7b31461010a57806317d304b014610146575b5f80fd5b3480156100eb575f80fd5b506100f4610386565b60405161010191906109bf565b60405180910390f35b348015610115575f80fd5b50610130600480360381019061012b9190610a70565b6103c3565b60405161013d9190610ac8565b60405180910390f35b610160600480360381019061015b9190610a70565b610413565b005b34801561016d575f80fd5b50610176610470565b6040516101839190610af0565b60405180910390f35b348015610197575f80fd5b506101b260048036038101906101ad9190610b09565b610481565b6040516101bf9190610ac8565b60405180910390f35b3480156101d3575f80fd5b506101dc610552565b6040516101e99190610b74565b60405180910390f35b3480156101fd575f80fd5b5061020661055a565b6040516102139190610ba5565b60405180910390f35b348015610227575f80fd5b50610242600480360381019061023d9190610a70565b6105ea565b005b34801561024f575f80fd5b5061026a60048036038101906102659190610bbe565b6105f8565b6040516102779190610af0565b60405180910390f35b34801561028b575f80fd5b506102a660048036038101906102a19190610bbe565b610611565b6040516102b39190610af0565b60405180910390f35b3480156102c7575f80fd5b506102d061062a565b6040516102dd91906109bf565b60405180910390f35b3480156102f1575f80fd5b5061030c60048036038101906103079190610a70565b610667565b6040516103199190610ac8565b60405180910390f35b34801561032d575f80fd5b5061034860048036038101906103439190610c3d565b6106f5565b005b348015610355575f80fd5b50610370600480360381019061036b9190610cda565b610891565b60405161037d9190610af0565b60405180910390f35b60606040518060400160405280600a81526020017f4d6f636b20455243323000000000000000000000000000000000000000000000815250905090565b5f82602052637f5e9f20600c52335f52816034600c2055815f52602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560205fa36001905092915050565b6064816104209190610d45565b341015610462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045990610dbf565b60405180910390fd5b61046c82826108af565b5050565b5f6805345cdf77eb68f44c54905090565b5f61048d848484610941565b8360601b33602052637f5e9f208117600c526034600c20805460018101156104ca57808511156104c4576313be252b5f526004601cfd5b84810382555b6387a211a28317600c526020600c208054808711156104f05763f4d678b85f526004601cfd5b8681038255875f526020600c2087815401815587602052600c5160601c8660601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505050505050610547848484610946565b600190509392505050565b5f6012905090565b5f8061056461094b565b90505f801b810361058157610577610386565b8051906020012090505b6040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b6105f482826108af565b5050565b5f6387a211a2600c52815f526020600c20549050919050565b5f6338377508600c52815f526020600c20549050919050565b60606040518060400160405280600481526020017f4d4f434b00000000000000000000000000000000000000000000000000000000815250905090565b5f610673338484610941565b6387a211a2600c52335f526020600c2080548084111561069a5763f4d678b85f526004601cfd5b8381038255845f526020600c2084815401815584602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050506106eb338484610946565b6001905092915050565b5f6106fe61094b565b90505f801b810361071b57610711610386565b8051906020012090505b8442111561073057631a15a3cc5f526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52885f526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c205f528660ff16602052856040528460605260208060805f60015afa8b3d51146108385763ddafbaef5f526004601cfd5b80820183558a637f5e9f2060a01b17604052896034602c20558a8c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608801a3836040525f606052505050505050505050505050565b5f81602052637f5e9f20600c52825f526034600c2054905092915050565b6108ba5f8383610941565b6805345cdf77eb68f44c54818101818110156108dd5763e5cfe9575f526004601cfd5b806805345cdf77eb68f44c556387a211a2600c52835f526020600c2083815401815583602052600c5160601c5f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505061093d5f8383610946565b5050565b505050565b505050565b5f90565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6109918261094f565b61099b8185610959565b93506109ab818560208601610969565b6109b481610977565b840191505092915050565b5f6020820190508181035f8301526109d78184610987565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a0c826109e3565b9050919050565b610a1c81610a02565b8114610a26575f80fd5b50565b5f81359050610a3781610a13565b92915050565b5f819050919050565b610a4f81610a3d565b8114610a59575f80fd5b50565b5f81359050610a6a81610a46565b92915050565b5f8060408385031215610a8657610a856109df565b5b5f610a9385828601610a29565b9250506020610aa485828601610a5c565b9150509250929050565b5f8115159050919050565b610ac281610aae565b82525050565b5f602082019050610adb5f830184610ab9565b92915050565b610aea81610a3d565b82525050565b5f602082019050610b035f830184610ae1565b92915050565b5f805f60608486031215610b2057610b1f6109df565b5b5f610b2d86828701610a29565b9350506020610b3e86828701610a29565b9250506040610b4f86828701610a5c565b9150509250925092565b5f60ff82169050919050565b610b6e81610b59565b82525050565b5f602082019050610b875f830184610b65565b92915050565b5f819050919050565b610b9f81610b8d565b82525050565b5f602082019050610bb85f830184610b96565b92915050565b5f60208284031215610bd357610bd26109df565b5b5f610be084828501610a29565b91505092915050565b610bf281610b59565b8114610bfc575f80fd5b50565b5f81359050610c0d81610be9565b92915050565b610c1c81610b8d565b8114610c26575f80fd5b50565b5f81359050610c3781610c13565b92915050565b5f805f805f805f60e0888a031215610c5857610c576109df565b5b5f610c658a828b01610a29565b9750506020610c768a828b01610a29565b9650506040610c878a828b01610a5c565b9550506060610c988a828b01610a5c565b9450506080610ca98a828b01610bff565b93505060a0610cba8a828b01610c29565b92505060c0610ccb8a828b01610c29565b91505092959891949750929550565b5f8060408385031215610cf057610cef6109df565b5b5f610cfd85828601610a29565b9250506020610d0e85828601610a29565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f610d4f82610a3d565b9150610d5a83610a3d565b925082610d6a57610d69610d18565b5b828204905092915050565b7f4d6f636b45524332303a2067696d6d65206d6f7265206d6f6e657921000000005f82015250565b5f610da9601c83610959565b9150610db482610d75565b602082019050919050565b5f6020820190508181035f830152610dd681610d9d565b905091905056fea2646970667358221220a588f9f821e157f856641e8171dc78ec959e3c73080238aa8696355fc5d4a5d064736f6c634300081a0033";
579
+ class ut extends St {
580
580
  async balanceOf(e, t) {
581
- return await nn(this._config, {
581
+ return await an(this._config, {
582
582
  address: this.assertValidAddress(),
583
583
  args: [e],
584
584
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -586,7 +586,7 @@ class dt extends It {
586
586
  });
587
587
  }
588
588
  async allowance(e, t, a) {
589
- return await tn(this._config, {
589
+ return await nn(this._config, {
590
590
  address: this.assertValidAddress(),
591
591
  args: [e, t],
592
592
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -597,27 +597,27 @@ class dt extends It {
597
597
  return await this.awaitResult(this.approveRaw(e, t, a));
598
598
  }
599
599
  async approveRaw(e, t, a) {
600
- const { request: r, result: s } = await on(this._config, {
600
+ const { request: r, result: s } = await cn(this._config, {
601
601
  address: this.assertValidAddress(),
602
602
  args: [e, t],
603
603
  ...this.optionallyAttachAccount(),
604
604
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
605
605
  ...a
606
606
  });
607
- return { hash: await an(this._config, r), result: s };
607
+ return { hash: await rn(this._config, r), result: s };
608
608
  }
609
609
  async mint(e, t, a) {
610
610
  return await this.awaitResult(this.mintRaw(e, t, a));
611
611
  }
612
612
  async mintRaw(e, t, a) {
613
- const { request: r, result: s } = await cn(this._config, {
613
+ const { request: r, result: s } = await dn(this._config, {
614
614
  address: this.assertValidAddress(),
615
615
  args: [e, t],
616
616
  ...this.optionallyAttachAccount(),
617
617
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
618
618
  ...a
619
619
  });
620
- return { hash: await rn(this._config, r), result: s };
620
+ return { hash: await sn(this._config, r), result: s };
621
621
  }
622
622
  async mintPayable(e, t, a) {
623
623
  return await this.awaitResult(
@@ -626,7 +626,7 @@ class dt extends It {
626
626
  );
627
627
  }
628
628
  async mintPayableRaw(e, t, a) {
629
- const { request: r, result: s } = await dn(
629
+ const { request: r, result: s } = await un(
630
630
  this._config,
631
631
  {
632
632
  address: this.assertValidAddress(),
@@ -636,18 +636,18 @@ class dt extends It {
636
636
  ...a
637
637
  }
638
638
  );
639
- return { hash: await sn(this._config, r), result: s };
639
+ return { hash: await on(this._config, r), result: s };
640
640
  }
641
641
  buildParameters(e = {}, t) {
642
642
  const [, a] = this.validateDeploymentConfig(e, t);
643
643
  return {
644
644
  abi: B,
645
- bytecode: un,
645
+ bytecode: ln,
646
646
  ...this.optionallyAttachAccount(a.account)
647
647
  };
648
648
  }
649
649
  }
650
- const ln = [
650
+ const fn = [
651
651
  {
652
652
  account: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
653
653
  key: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
@@ -690,7 +690,7 @@ const ln = [
690
690
  }
691
691
  ].map((n) => ({
692
692
  ...n,
693
- privateKey: Lt(n.key)
693
+ privateKey: zt(n.key)
694
694
  }));
695
695
  var _;
696
696
  (function(n) {
@@ -795,7 +795,7 @@ const h = _.arrayToEnum([
795
795
  "invalid_intersection_types",
796
796
  "not_multiple_of",
797
797
  "not_finite"
798
- ]), fn = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
798
+ ]), hn = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
799
799
  class E extends Error {
800
800
  constructor(e) {
801
801
  super(), this.issues = [], this.addIssue = (a) => {
@@ -912,12 +912,12 @@ const ee = (n, e) => {
912
912
  }
913
913
  return { message: t };
914
914
  };
915
- let ut = ee;
916
- function hn(n) {
917
- ut = n;
915
+ let lt = ee;
916
+ function pn(n) {
917
+ lt = n;
918
918
  }
919
919
  function ke() {
920
- return ut;
920
+ return lt;
921
921
  }
922
922
  const Te = (n) => {
923
923
  const { data: e, path: t, errorMaps: a, issueData: r } = n, s = [...t, ...r.path || []], i = {
@@ -939,7 +939,7 @@ const Te = (n) => {
939
939
  path: s,
940
940
  message: o
941
941
  };
942
- }, pn = [];
942
+ }, mn = [];
943
943
  function f(n, e) {
944
944
  const t = ke(), a = Te({
945
945
  issueData: e,
@@ -1003,7 +1003,7 @@ function Ce(n, e, t, a) {
1003
1003
  if (typeof e == "function" ? n !== e || !a : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1004
1004
  return e.get(n);
1005
1005
  }
1006
- function lt(n, e, t, a, r) {
1006
+ function ft(n, e, t, a, r) {
1007
1007
  if (typeof e == "function" ? n !== e || !r : !e.has(n)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1008
1008
  return e.set(n, t), t;
1009
1009
  }
@@ -1020,7 +1020,7 @@ class j {
1020
1020
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
1021
1021
  }
1022
1022
  }
1023
- const Xe = (n, e) => {
1023
+ const et = (n, e) => {
1024
1024
  if (ie(e))
1025
1025
  return { success: !0, data: e.value };
1026
1026
  if (!n.common.issues.length)
@@ -1110,7 +1110,7 @@ class v {
1110
1110
  data: e,
1111
1111
  parsedType: L(e)
1112
1112
  }, s = this._parseSync({ data: e, path: r.path, parent: r });
1113
- return Xe(r, s);
1113
+ return et(r, s);
1114
1114
  }
1115
1115
  async parseAsync(e, t) {
1116
1116
  const a = await this.safeParseAsync(e, t);
@@ -1131,7 +1131,7 @@ class v {
1131
1131
  data: e,
1132
1132
  parsedType: L(e)
1133
1133
  }, r = this._parse({ data: e, path: a.path, parent: a }), s = await (oe(r) ? r : Promise.resolve(r));
1134
- return Xe(a, s);
1134
+ return et(a, s);
1135
1135
  }
1136
1136
  refine(e, t) {
1137
1137
  const a = (r) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t;
@@ -1230,23 +1230,23 @@ class v {
1230
1230
  return this.safeParse(null).success;
1231
1231
  }
1232
1232
  }
1233
- const mn = /^c[^\s-]{8,}$/i, yn = /^[0-9a-z]+$/, bn = /^[0-9A-HJKMNP-TV-Z]{26}$/, gn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, vn = /^[a-z0-9_-]{21}$/i, _n = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, xn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, wn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1233
+ const yn = /^c[^\s-]{8,}$/i, bn = /^[0-9a-z]+$/, gn = /^[0-9A-HJKMNP-TV-Z]{26}$/, vn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, _n = /^[a-z0-9_-]{21}$/i, xn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, wn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, kn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1234
1234
  let je;
1235
- const kn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Tn = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Cn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ft = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", In = new RegExp(`^${ft}$`);
1236
- function ht(n) {
1235
+ const Tn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Cn = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, In = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ht = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Sn = new RegExp(`^${ht}$`);
1236
+ function pt(n) {
1237
1237
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
1238
1238
  return n.precision ? e = `${e}\\.\\d{${n.precision}}` : n.precision == null && (e = `${e}(\\.\\d+)?`), e;
1239
1239
  }
1240
- function Sn(n) {
1241
- return new RegExp(`^${ht(n)}$`);
1240
+ function An(n) {
1241
+ return new RegExp(`^${pt(n)}$`);
1242
1242
  }
1243
- function pt(n) {
1244
- let e = `${ft}T${ht(n)}`;
1243
+ function mt(n) {
1244
+ let e = `${ht}T${pt(n)}`;
1245
1245
  const t = [];
1246
1246
  return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
1247
1247
  }
1248
- function An(n, e) {
1249
- return !!((e === "v4" || !e) && kn.test(n) || (e === "v6" || !e) && Tn.test(n));
1248
+ function En(n, e) {
1249
+ return !!((e === "v4" || !e) && Tn.test(n) || (e === "v6" || !e) && Cn.test(n));
1250
1250
  }
1251
1251
  class N extends v {
1252
1252
  _parse(e) {
@@ -1297,43 +1297,43 @@ class N extends v {
1297
1297
  message: s.message
1298
1298
  }), a.dirty());
1299
1299
  } else if (s.kind === "email")
1300
- xn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1300
+ wn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1301
1301
  validation: "email",
1302
1302
  code: d.invalid_string,
1303
1303
  message: s.message
1304
1304
  }), a.dirty());
1305
1305
  else if (s.kind === "emoji")
1306
- je || (je = new RegExp(wn, "u")), je.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1306
+ je || (je = new RegExp(kn, "u")), je.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1307
1307
  validation: "emoji",
1308
1308
  code: d.invalid_string,
1309
1309
  message: s.message
1310
1310
  }), a.dirty());
1311
1311
  else if (s.kind === "uuid")
1312
- gn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1312
+ vn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1313
1313
  validation: "uuid",
1314
1314
  code: d.invalid_string,
1315
1315
  message: s.message
1316
1316
  }), a.dirty());
1317
1317
  else if (s.kind === "nanoid")
1318
- vn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1318
+ _n.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1319
1319
  validation: "nanoid",
1320
1320
  code: d.invalid_string,
1321
1321
  message: s.message
1322
1322
  }), a.dirty());
1323
1323
  else if (s.kind === "cuid")
1324
- mn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1324
+ yn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1325
1325
  validation: "cuid",
1326
1326
  code: d.invalid_string,
1327
1327
  message: s.message
1328
1328
  }), a.dirty());
1329
1329
  else if (s.kind === "cuid2")
1330
- yn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1330
+ bn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1331
1331
  validation: "cuid2",
1332
1332
  code: d.invalid_string,
1333
1333
  message: s.message
1334
1334
  }), a.dirty());
1335
1335
  else if (s.kind === "ulid")
1336
- bn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1336
+ gn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1337
1337
  validation: "ulid",
1338
1338
  code: d.invalid_string,
1339
1339
  message: s.message
@@ -1364,27 +1364,27 @@ class N extends v {
1364
1364
  code: d.invalid_string,
1365
1365
  validation: { endsWith: s.value },
1366
1366
  message: s.message
1367
- }), a.dirty()) : s.kind === "datetime" ? pt(s).test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1367
+ }), a.dirty()) : s.kind === "datetime" ? mt(s).test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1368
1368
  code: d.invalid_string,
1369
1369
  validation: "datetime",
1370
1370
  message: s.message
1371
- }), a.dirty()) : s.kind === "date" ? In.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1371
+ }), a.dirty()) : s.kind === "date" ? Sn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1372
1372
  code: d.invalid_string,
1373
1373
  validation: "date",
1374
1374
  message: s.message
1375
- }), a.dirty()) : s.kind === "time" ? Sn(s).test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1375
+ }), a.dirty()) : s.kind === "time" ? An(s).test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1376
1376
  code: d.invalid_string,
1377
1377
  validation: "time",
1378
1378
  message: s.message
1379
- }), a.dirty()) : s.kind === "duration" ? _n.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1379
+ }), a.dirty()) : s.kind === "duration" ? xn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1380
1380
  validation: "duration",
1381
1381
  code: d.invalid_string,
1382
1382
  message: s.message
1383
- }), a.dirty()) : s.kind === "ip" ? An(e.data, s.version) || (r = this._getOrReturnCtx(e, r), f(r, {
1383
+ }), a.dirty()) : s.kind === "ip" ? En(e.data, s.version) || (r = this._getOrReturnCtx(e, r), f(r, {
1384
1384
  validation: "ip",
1385
1385
  code: d.invalid_string,
1386
1386
  message: s.message
1387
- }), a.dirty()) : s.kind === "base64" ? Cn.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1387
+ }), a.dirty()) : s.kind === "base64" ? In.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
1388
1388
  validation: "base64",
1389
1389
  code: d.invalid_string,
1390
1390
  message: s.message
@@ -1606,7 +1606,7 @@ N.create = (n) => {
1606
1606
  ...g(n)
1607
1607
  });
1608
1608
  };
1609
- function En(n, e) {
1609
+ function Nn(n, e) {
1610
1610
  const t = (n.toString().split(".")[1] || "").length, a = (e.toString().split(".")[1] || "").length, r = t > a ? t : a, s = parseInt(n.toFixed(r).replace(".", "")), i = parseInt(e.toFixed(r).replace(".", ""));
1611
1611
  return s % i / Math.pow(10, r);
1612
1612
  }
@@ -1645,7 +1645,7 @@ class z extends v {
1645
1645
  inclusive: s.inclusive,
1646
1646
  exact: !1,
1647
1647
  message: s.message
1648
- }), r.dirty()) : s.kind === "multipleOf" ? En(e.data, s.value) !== 0 && (a = this._getOrReturnCtx(e, a), f(a, {
1648
+ }), r.dirty()) : s.kind === "multipleOf" ? Nn(e.data, s.value) !== 0 && (a = this._getOrReturnCtx(e, a), f(a, {
1649
1649
  code: d.not_multiple_of,
1650
1650
  multipleOf: s.value,
1651
1651
  message: s.message
@@ -2464,7 +2464,7 @@ class k extends v {
2464
2464
  });
2465
2465
  }
2466
2466
  keyof() {
2467
- return mt(_.objectKeys(this.shape));
2467
+ return yt(_.objectKeys(this.shape));
2468
2468
  }
2469
2469
  }
2470
2470
  k.create = (n, e) => new k({
@@ -3027,7 +3027,7 @@ me.create = (n, e) => new me({
3027
3027
  typeName: y.ZodLiteral,
3028
3028
  ...g(e)
3029
3029
  });
3030
- function mt(n, e) {
3030
+ function yt(n, e) {
3031
3031
  return new W({
3032
3032
  values: n,
3033
3033
  typeName: y.ZodEnum,
@@ -3047,7 +3047,7 @@ class W extends v {
3047
3047
  code: d.invalid_type
3048
3048
  }), b;
3049
3049
  }
3050
- if (Ce(this, ae) || lt(this, ae, new Set(this._def.values)), !Ce(this, ae).has(e.data)) {
3050
+ if (Ce(this, ae) || ft(this, ae, new Set(this._def.values)), !Ce(this, ae).has(e.data)) {
3051
3051
  const t = this._getOrReturnCtx(e), a = this._def.values;
3052
3052
  return f(t, {
3053
3053
  received: t.data,
@@ -3092,7 +3092,7 @@ class W extends v {
3092
3092
  }
3093
3093
  }
3094
3094
  ae = /* @__PURE__ */ new WeakMap();
3095
- W.create = mt;
3095
+ W.create = yt;
3096
3096
  class ye extends v {
3097
3097
  constructor() {
3098
3098
  super(...arguments), re.set(this, void 0);
@@ -3107,7 +3107,7 @@ class ye extends v {
3107
3107
  code: d.invalid_type
3108
3108
  }), b;
3109
3109
  }
3110
- if (Ce(this, re) || lt(this, re, new Set(_.getValidEnumValues(this._def.values))), !Ce(this, re).has(e.data)) {
3110
+ if (Ce(this, re) || ft(this, re, new Set(_.getValidEnumValues(this._def.values))), !Ce(this, re).has(e.data)) {
3111
3111
  const r = _.objectValues(t);
3112
3112
  return f(a, {
3113
3113
  received: a.data,
@@ -3346,7 +3346,7 @@ Ee.create = (n) => new Ee({
3346
3346
  typeName: y.ZodNaN,
3347
3347
  ...g(n)
3348
3348
  });
3349
- const Nn = Symbol("zod_brand");
3349
+ const On = Symbol("zod_brand");
3350
3350
  class Fe extends v {
3351
3351
  _parse(e) {
3352
3352
  const { ctx: t } = this._processInputParams(e), a = t.data;
@@ -3414,7 +3414,7 @@ ve.create = (n, e) => new ve({
3414
3414
  typeName: y.ZodReadonly,
3415
3415
  ...g(e)
3416
3416
  });
3417
- function yt(n, e = {}, t) {
3417
+ function bt(n, e = {}, t) {
3418
3418
  return n ? te.create().superRefine((a, r) => {
3419
3419
  var s, i;
3420
3420
  if (!n(a)) {
@@ -3423,16 +3423,16 @@ function yt(n, e = {}, t) {
3423
3423
  }
3424
3424
  }) : te.create();
3425
3425
  }
3426
- const On = {
3426
+ const Rn = {
3427
3427
  object: k.lazycreate
3428
3428
  };
3429
3429
  var y;
3430
3430
  (function(n) {
3431
3431
  n.ZodString = "ZodString", n.ZodNumber = "ZodNumber", n.ZodNaN = "ZodNaN", n.ZodBigInt = "ZodBigInt", n.ZodBoolean = "ZodBoolean", n.ZodDate = "ZodDate", n.ZodSymbol = "ZodSymbol", n.ZodUndefined = "ZodUndefined", n.ZodNull = "ZodNull", n.ZodAny = "ZodAny", n.ZodUnknown = "ZodUnknown", n.ZodNever = "ZodNever", n.ZodVoid = "ZodVoid", n.ZodArray = "ZodArray", n.ZodObject = "ZodObject", n.ZodUnion = "ZodUnion", n.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", n.ZodIntersection = "ZodIntersection", n.ZodTuple = "ZodTuple", n.ZodRecord = "ZodRecord", n.ZodMap = "ZodMap", n.ZodSet = "ZodSet", n.ZodFunction = "ZodFunction", n.ZodLazy = "ZodLazy", n.ZodLiteral = "ZodLiteral", n.ZodEnum = "ZodEnum", n.ZodEffects = "ZodEffects", n.ZodNativeEnum = "ZodNativeEnum", n.ZodOptional = "ZodOptional", n.ZodNullable = "ZodNullable", n.ZodDefault = "ZodDefault", n.ZodCatch = "ZodCatch", n.ZodPromise = "ZodPromise", n.ZodBranded = "ZodBranded", n.ZodPipeline = "ZodPipeline", n.ZodReadonly = "ZodReadonly";
3432
3432
  })(y || (y = {}));
3433
- const Rn = (n, e = {
3433
+ const Zn = (n, e = {
3434
3434
  message: `Input not instance of ${n.name}`
3435
- }) => yt((t) => t instanceof n, e), bt = N.create, gt = z.create, Zn = Ee.create, jn = U.create, vt = ce.create, Mn = G.create, Pn = Ie.create, $n = de.create, Dn = ue.create, Vn = te.create, Bn = H.create, Ln = V.create, zn = Se.create, Un = O.create, Wn = k.create, qn = k.strictCreate, Hn = le.create, Fn = Oe.create, Gn = fe.create, Jn = M.create, Yn = he.create, Qn = Ae.create, Kn = J.create, Xn = X.create, ea = pe.create, ta = me.create, na = W.create, aa = ye.create, ra = ne.create, et = R.create, sa = Z.create, ia = q.create, oa = R.createWithPreprocess, ca = _e.create, da = () => bt().optional(), ua = () => gt().optional(), la = () => vt().optional(), fa = {
3435
+ }) => bt((t) => t instanceof n, e), gt = N.create, vt = z.create, jn = Ee.create, Mn = U.create, _t = ce.create, Pn = G.create, $n = Ie.create, Dn = de.create, Vn = ue.create, Bn = te.create, Ln = H.create, zn = V.create, Un = Se.create, Wn = O.create, qn = k.create, Hn = k.strictCreate, Fn = le.create, Gn = Oe.create, Jn = fe.create, Yn = M.create, Qn = he.create, Kn = Ae.create, Xn = J.create, ea = X.create, ta = pe.create, na = me.create, aa = W.create, ra = ye.create, sa = ne.create, tt = R.create, ia = Z.create, oa = q.create, ca = R.createWithPreprocess, da = _e.create, ua = () => gt().optional(), la = () => vt().optional(), fa = () => _t().optional(), ha = {
3436
3436
  string: (n) => N.create({ ...n, coerce: !0 }),
3437
3437
  number: (n) => z.create({ ...n, coerce: !0 }),
3438
3438
  boolean: (n) => ce.create({
@@ -3441,14 +3441,14 @@ const Rn = (n, e = {
3441
3441
  }),
3442
3442
  bigint: (n) => U.create({ ...n, coerce: !0 }),
3443
3443
  date: (n) => G.create({ ...n, coerce: !0 })
3444
- }, ha = b;
3444
+ }, pa = b;
3445
3445
  var l = /* @__PURE__ */ Object.freeze({
3446
3446
  __proto__: null,
3447
3447
  defaultErrorMap: ee,
3448
- setErrorMap: hn,
3448
+ setErrorMap: pn,
3449
3449
  getErrorMap: ke,
3450
3450
  makeIssue: Te,
3451
- EMPTY_PATH: pn,
3451
+ EMPTY_PATH: mn,
3452
3452
  addIssueToContext: f,
3453
3453
  ParseStatus: S,
3454
3454
  INVALID: b,
@@ -3467,7 +3467,7 @@ var l = /* @__PURE__ */ Object.freeze({
3467
3467
  ZodParsedType: h,
3468
3468
  getParsedType: L,
3469
3469
  ZodType: v,
3470
- datetimeRegex: pt,
3470
+ datetimeRegex: mt,
3471
3471
  ZodString: N,
3472
3472
  ZodNumber: z,
3473
3473
  ZodBigInt: U,
@@ -3502,101 +3502,101 @@ var l = /* @__PURE__ */ Object.freeze({
3502
3502
  ZodDefault: be,
3503
3503
  ZodCatch: ge,
3504
3504
  ZodNaN: Ee,
3505
- BRAND: Nn,
3505
+ BRAND: On,
3506
3506
  ZodBranded: Fe,
3507
3507
  ZodPipeline: _e,
3508
3508
  ZodReadonly: ve,
3509
- custom: yt,
3509
+ custom: bt,
3510
3510
  Schema: v,
3511
3511
  ZodSchema: v,
3512
- late: On,
3512
+ late: Rn,
3513
3513
  get ZodFirstPartyTypeKind() {
3514
3514
  return y;
3515
3515
  },
3516
- coerce: fa,
3517
- any: Vn,
3518
- array: Un,
3519
- bigint: jn,
3520
- boolean: vt,
3521
- date: Mn,
3522
- discriminatedUnion: Fn,
3523
- effect: et,
3524
- enum: na,
3525
- function: Xn,
3526
- instanceof: Rn,
3527
- intersection: Gn,
3528
- lazy: ea,
3529
- literal: ta,
3530
- map: Qn,
3531
- nan: Zn,
3532
- nativeEnum: aa,
3533
- never: Ln,
3534
- null: Dn,
3535
- nullable: ia,
3536
- number: gt,
3537
- object: Wn,
3538
- oboolean: la,
3539
- onumber: ua,
3540
- optional: sa,
3541
- ostring: da,
3542
- pipeline: ca,
3543
- preprocess: oa,
3544
- promise: ra,
3545
- record: Yn,
3546
- set: Kn,
3547
- strictObject: qn,
3548
- string: bt,
3549
- symbol: Pn,
3550
- transformer: et,
3551
- tuple: Jn,
3552
- undefined: $n,
3553
- union: Hn,
3554
- unknown: Bn,
3555
- void: zn,
3556
- NEVER: ha,
3516
+ coerce: ha,
3517
+ any: Bn,
3518
+ array: Wn,
3519
+ bigint: Mn,
3520
+ boolean: _t,
3521
+ date: Pn,
3522
+ discriminatedUnion: Gn,
3523
+ effect: tt,
3524
+ enum: aa,
3525
+ function: ea,
3526
+ instanceof: Zn,
3527
+ intersection: Jn,
3528
+ lazy: ta,
3529
+ literal: na,
3530
+ map: Kn,
3531
+ nan: jn,
3532
+ nativeEnum: ra,
3533
+ never: zn,
3534
+ null: Vn,
3535
+ nullable: oa,
3536
+ number: vt,
3537
+ object: qn,
3538
+ oboolean: fa,
3539
+ onumber: la,
3540
+ optional: ia,
3541
+ ostring: ua,
3542
+ pipeline: da,
3543
+ preprocess: ca,
3544
+ promise: sa,
3545
+ record: Qn,
3546
+ set: Xn,
3547
+ strictObject: Hn,
3548
+ string: gt,
3549
+ symbol: $n,
3550
+ transformer: tt,
3551
+ tuple: Yn,
3552
+ undefined: Dn,
3553
+ union: Fn,
3554
+ unknown: Ln,
3555
+ void: Un,
3556
+ NEVER: pa,
3557
3557
  ZodIssueCode: d,
3558
- quotelessJson: fn,
3558
+ quotelessJson: hn,
3559
3559
  ZodError: E
3560
3560
  });
3561
- const pa = "test test test test test test test test test test test junk", La = async function(e, t) {
3562
- const a = t.privateKey, r = t.mnemonic ?? pa, s = t.chain || "anvil", [{ config: i, account: o }, u] = Ht({
3561
+ const ma = "test test test test test test test test test test test junk", za = async function(e, t) {
3562
+ const a = t.privateKey, r = t.mnemonic ?? ma, s = t.chain || "anvil", [{ config: i, account: o }, u] = Ft({
3563
3563
  chain: s,
3564
3564
  rpcUrl: t.rpcUrl,
3565
3565
  privateKey: a,
3566
3566
  mnemonic: r
3567
3567
  }), c = u.id;
3568
3568
  if (e.at(0) === "generate")
3569
- return Pa({ account: o == null ? void 0 : o.address, chainId: c });
3569
+ return $a({ account: o == null ? void 0 : o.address, chainId: c });
3570
3570
  if (e.at(0) === "erc20") {
3571
- let T = new dt({ config: i, account: o }, {});
3571
+ let T = new ut({ config: i, account: o }, {});
3572
3572
  return await T.deploy(), {
3573
3573
  erc20: T.assertValidAddress()
3574
3574
  };
3575
3575
  }
3576
- const m = St[c];
3576
+ const m = At[c];
3577
3577
  if (!m)
3578
3578
  throw new Error(
3579
3579
  `Unable to select a deployed BoostRegistry with chain ID ${c}`
3580
3580
  );
3581
- const C = new At({
3581
+ const C = new Et({
3582
3582
  config: i,
3583
3583
  account: o,
3584
3584
  address: m
3585
- }), Y = Et[c];
3585
+ }), Y = Nt[c];
3586
3586
  if (!Y)
3587
3587
  throw new Error(
3588
3588
  `Unable to select a deployed BoostCore with chain ID ${c}`
3589
3589
  );
3590
- const I = new Nt({
3590
+ const I = new Ot({
3591
3591
  config: i,
3592
3592
  account: o,
3593
3593
  address: Y
3594
3594
  });
3595
3595
  if (!e.length) throw new Error("No seed provided");
3596
- const _t = await Promise.all(e.map(ma));
3596
+ const xt = await Promise.all(e.map(ya));
3597
3597
  let Ze, Ge;
3598
3598
  const Je = [];
3599
- for (const T of _t) {
3599
+ for (const T of xt) {
3600
3600
  let P;
3601
3601
  if (typeof T.budget == "string" && ze(T.budget))
3602
3602
  P = I.ManagedBudget(T.budget);
@@ -3606,14 +3606,14 @@ const pa = "test test test test test test test test test test test junk", La = a
3606
3606
  const x = {
3607
3607
  ...T.budget,
3608
3608
  authorized: [...T.budget.authorized, Y],
3609
- roles: [...T.budget.roles, at.MANAGER]
3609
+ roles: [...T.budget.roles, rt.MANAGER]
3610
3610
  };
3611
3611
  P = await C.initialize(
3612
3612
  crypto.randomUUID(),
3613
3613
  I.ManagedBudget(x)
3614
3614
  ), Ze = P, Ge = T.budget;
3615
3615
  }
3616
- const xt = T.incentives.map(async (x) => {
3616
+ const wt = T.incentives.map(async (x) => {
3617
3617
  let $ = 0n;
3618
3618
  switch (x.type) {
3619
3619
  case "AllowListIncentive":
@@ -3641,17 +3641,17 @@ const pa = "test test test test test test test test test test test junk", La = a
3641
3641
  account: o
3642
3642
  }), I.CGDAIncentive(x);
3643
3643
  }
3644
- }), wt = await Promise.all(xt), kt = await I.createBoost({
3644
+ }), kt = await Promise.all(wt), Ye = {
3645
3645
  protocolFee: T.protocolFee,
3646
3646
  maxParticipants: T.maxParticipants,
3647
3647
  budget: P,
3648
3648
  action: I.EventAction(T.action),
3649
- validator: I.SignerValidator(T.validator),
3650
- allowList: await ja(T, { core: I }),
3651
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
3652
- incentives: wt
3653
- });
3654
- Je.push(kt.id.toString());
3649
+ allowList: await Ma(T, { core: I }),
3650
+ incentives: kt
3651
+ };
3652
+ T.validator && (Ye.validator = I.SignerValidator(T.validator));
3653
+ const Tt = await I.createBoost(Ye);
3654
+ Je.push(Tt.id.toString());
3655
3655
  }
3656
3656
  return {
3657
3657
  boostIds: Je
@@ -3659,24 +3659,24 @@ const pa = "test test test test test test test test test test test junk", La = a
3659
3659
  };
3660
3660
  async function xe(n, e, t, a) {
3661
3661
  if (t && e) {
3662
- let r = new dt(a, t);
3663
- await Ma(a, r, n, rt(e.toString()));
3662
+ let r = new ut(a, t);
3663
+ await Pa(a, r, n, st(e.toString()));
3664
3664
  }
3665
3665
  }
3666
- async function ma(n) {
3667
- const e = await Tt.readFile(Ct.normalize(n), {
3666
+ async function ya(n) {
3667
+ const e = await Ct.readFile(It.normalize(n), {
3668
3668
  encoding: "utf8"
3669
3669
  });
3670
- return Za.parse(JSON.parse(e));
3670
+ return ja.parse(JSON.parse(e));
3671
3671
  }
3672
- const ya = l.custom(zt, "invalid Hex payload"), w = l.string().transform((n, e) => (/^0x[a-fA-F0-9]{40}$/.test(n) || e.addIssue({
3672
+ const ba = l.custom(Ut, "invalid Hex payload"), w = l.string().transform((n, e) => (/^0x[a-fA-F0-9]{40}$/.test(n) || e.addIssue({
3673
3673
  code: l.ZodIssueCode.custom,
3674
3674
  message: `Invalid Address ${n}`
3675
- }), n)).pipe(l.custom(ze, "invalid eth address")), ba = l.coerce.number().min(1).max(2).transform(BigInt).pipe(l.custom()), ga = l.object({
3675
+ }), n)).pipe(l.custom(ze, "invalid eth address")), ga = l.coerce.number().min(1).max(2).transform(BigInt).pipe(l.custom()), va = l.object({
3676
3676
  type: l.literal("ManagedBudget"),
3677
3677
  owner: w,
3678
3678
  authorized: l.array(w),
3679
- roles: l.array(ba)
3679
+ roles: l.array(ga)
3680
3680
  }).refine(
3681
3681
  (n) => n.authorized.length === n.roles.length,
3682
3682
  "length mismatch authorized and roles"
@@ -3684,49 +3684,50 @@ const ya = l.custom(zt, "invalid Hex payload"), w = l.string().transform((n, e)
3684
3684
  l.string().regex(/^(event|function) .*/, {
3685
3685
  message: "signature must start with `event` or function`"
3686
3686
  }).transform((n) => {
3687
- if (n.startsWith("event")) return Ut(Wt(n));
3688
- if (n.startsWith("function")) return qt(n);
3687
+ if (n.startsWith("function"))
3688
+ return Wt(qt(n));
3689
+ if (n.startsWith("event")) return Ht(n);
3689
3690
  throw new Error("unreachable");
3690
3691
  })
3691
- ), va = l.object({
3692
+ ), _a = l.object({
3692
3693
  signatureType: l.nativeEnum(se),
3693
3694
  signature: Re,
3694
3695
  fieldIndex: l.number().nonnegative(),
3695
3696
  targetContract: w,
3696
3697
  chainid: l.number().nonnegative()
3697
- }), _a = l.object({
3698
- filterType: l.nativeEnum(tt),
3699
- fieldType: l.nativeEnum(nt),
3700
- fieldIndex: l.number().nonnegative(),
3701
- filterData: ya
3702
3698
  }), xa = l.object({
3699
+ filterType: l.nativeEnum(nt),
3700
+ fieldType: l.nativeEnum(at),
3701
+ fieldIndex: l.number().nonnegative(),
3702
+ filterData: ba
3703
+ }), wa = l.object({
3703
3704
  signature: Re,
3704
3705
  signatureType: l.nativeEnum(se),
3705
3706
  actionType: l.number().optional(),
3706
3707
  targetContract: w,
3707
3708
  chainid: l.number().nonnegative(),
3708
- actionParameter: _a
3709
- }), wa = l.object({
3710
- type: l.literal("EventAction"),
3711
- actionClaimant: va,
3712
- actionSteps: l.array(xa).max(4)
3709
+ actionParameter: xa
3713
3710
  }), ka = l.object({
3711
+ type: l.literal("EventAction"),
3712
+ actionClaimant: _a,
3713
+ actionSteps: l.array(wa).max(4)
3714
+ }), Ta = l.object({
3714
3715
  type: l.literal("SignerValidator"),
3715
3716
  signers: l.array(w),
3716
3717
  validatorCaller: w
3717
- }), Ta = l.object({
3718
+ }), Ca = l.object({
3718
3719
  type: l.literal("SimpleDenyList"),
3719
3720
  owner: w,
3720
3721
  denied: l.array(w)
3721
- }), Ca = l.object({
3722
+ }), Ia = l.object({
3722
3723
  type: l.literal("SimpleAllowList"),
3723
3724
  owner: w,
3724
3725
  allowed: l.array(w)
3725
- }), Ia = l.object({
3726
+ }), Sa = l.object({
3726
3727
  type: l.literal("AllowListIncentive"),
3727
3728
  allowList: w,
3728
3729
  limit: l.coerce.bigint()
3729
- }), Sa = l.object({
3730
+ }), Aa = l.object({
3730
3731
  type: l.literal("ERC20Incentive"),
3731
3732
  asset: w,
3732
3733
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -3734,27 +3735,27 @@ const ya = l.custom(zt, "invalid Hex payload"), w = l.string().transform((n, e)
3734
3735
  reward: l.coerce.bigint(),
3735
3736
  limit: l.coerce.bigint(),
3736
3737
  manager: w.optional()
3737
- }), Aa = l.object({
3738
+ }), Ea = l.object({
3738
3739
  type: l.literal("ERC20VariableIncentive"),
3739
3740
  asset: w,
3740
3741
  shouldMintAndAllocate: l.boolean().optional().default(!1),
3741
3742
  reward: l.coerce.bigint(),
3742
3743
  limit: l.coerce.bigint(),
3743
3744
  manager: w
3744
- }), Ea = l.object({
3745
+ }), Na = l.object({
3745
3746
  criteriaType: l.nativeEnum(se),
3746
3747
  signature: Re,
3747
3748
  fieldIndex: l.number().nonnegative(),
3748
3749
  targetContract: w
3749
- }), Na = l.object({
3750
+ }), Oa = l.object({
3750
3751
  type: l.literal("ERC20VariableCriteriaIncentive"),
3751
3752
  asset: w,
3752
3753
  shouldMintAndAllocate: l.boolean().optional().default(!1),
3753
3754
  reward: l.coerce.bigint(),
3754
3755
  limit: l.coerce.bigint(),
3755
3756
  manager: w.optional(),
3756
- criteria: Ea
3757
- }), Oa = l.object({
3757
+ criteria: Na
3758
+ }), Ra = l.object({
3758
3759
  type: l.literal("CGDAIncentive"),
3759
3760
  asset: w,
3760
3761
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -3763,37 +3764,34 @@ const ya = l.custom(zt, "invalid Hex payload"), w = l.string().transform((n, e)
3763
3764
  rewardBoost: l.coerce.bigint(),
3764
3765
  totalBudget: l.coerce.bigint(),
3765
3766
  manager: w
3766
- }), Ra = l.object({
3767
+ }), Za = l.object({
3767
3768
  type: l.literal("PointsIncentive"),
3768
3769
  venue: w,
3769
3770
  selector: Re,
3770
3771
  reward: l.coerce.bigint(),
3771
3772
  limit: l.coerce.bigint()
3772
- }), Za = l.object({
3773
+ }), ja = l.object({
3773
3774
  protocolFee: l.coerce.bigint(),
3774
3775
  maxParticipants: l.coerce.bigint(),
3775
- budget: l.union([w, ga]),
3776
- action: l.union([w, wa]),
3777
- validator: l.union([w, ka]),
3778
- allowList: l.union([
3779
- w,
3780
- Ta,
3781
- Ca
3782
- ]),
3776
+ budget: l.union([w, va]),
3777
+ action: l.union([w, ka]),
3778
+ validator: l.union([w, Ta]).optional(),
3779
+ allowList: l.union([w, Ca, Ia]).optional(),
3783
3780
  incentives: l.array(
3784
3781
  l.union([
3785
- Ia,
3786
3782
  Sa,
3787
- Na,
3788
3783
  Aa,
3789
3784
  Oa,
3790
- Ra
3785
+ Ea,
3786
+ Ra,
3787
+ Za
3791
3788
  ])
3792
3789
  )
3793
3790
  });
3794
- async function ja({ allowList: n }, { core: e }) {
3791
+ async function Ma({ allowList: n }, { core: e }) {
3792
+ if (!n) return e.OpenAllowList();
3795
3793
  if (typeof n == "string" && ze(n))
3796
- return await Ot(
3794
+ return await Rt(
3797
3795
  //@ts-expect-error i do what i want
3798
3796
  { config: e._config, account: e._account },
3799
3797
  n
@@ -3807,16 +3805,16 @@ async function ja({ allowList: n }, { core: e }) {
3807
3805
  throw new Error("unusupported AllowList: " + n);
3808
3806
  }
3809
3807
  }
3810
- async function Ma(n, e, t, a = rt("110")) {
3808
+ async function Pa(n, e, t, a = st("110")) {
3811
3809
  return await e.mint(n.account.address, a), await e.approve(t.assertValidAddress(), a), await t.allocate({
3812
3810
  amount: a,
3813
3811
  asset: e.assertValidAddress(),
3814
3812
  target: n.account.address
3815
3813
  }), { budget: t, erc20: e };
3816
3814
  }
3817
- function Pa({
3815
+ function $a({
3818
3816
  asset: n = "0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D",
3819
- account: e = ln[0].account,
3817
+ account: e = fn[0].account,
3820
3818
  chainId: t
3821
3819
  }) {
3822
3820
  return {
@@ -3826,7 +3824,7 @@ function Pa({
3826
3824
  type: "ManagedBudget",
3827
3825
  owner: e,
3828
3826
  authorized: [e],
3829
- roles: [at.MANAGER]
3827
+ roles: [rt.MANAGER]
3830
3828
  },
3831
3829
  action: {
3832
3830
  type: "EventAction",
@@ -3834,7 +3832,7 @@ function Pa({
3834
3832
  signatureType: se.FUNC,
3835
3833
  signature: "function mint(address to, uint256 amount)",
3836
3834
  fieldIndex: 0,
3837
- targetContract: Ye,
3835
+ targetContract: Qe,
3838
3836
  chainid: t
3839
3837
  },
3840
3838
  actionSteps: [
@@ -3842,11 +3840,11 @@ function Pa({
3842
3840
  signature: "event Minted(address to, uint256 amount)",
3843
3841
  signatureType: se.FUNC,
3844
3842
  actionType: 0,
3845
- targetContract: Ye,
3843
+ targetContract: Qe,
3846
3844
  chainid: t,
3847
3845
  actionParameter: {
3848
- filterType: tt.EQUAL,
3849
- fieldType: nt.ADDRESS,
3846
+ filterType: nt.EQUAL,
3847
+ fieldType: at.ADDRESS,
3850
3848
  fieldIndex: 0,
3851
3849
  filterData: e
3852
3850
  }
@@ -3877,22 +3875,22 @@ function Pa({
3877
3875
  };
3878
3876
  }
3879
3877
  export {
3880
- va as ActionClaimantSchema,
3881
- _a as ActionStepCriteriaSchema,
3882
- xa as ActionStepSchema,
3883
- Ia as AllowListIncentiveSchema,
3884
- Za as BoostSeedConfigSchema,
3885
- Oa as CGDAIncentiveSchema,
3886
- Sa as ERC20IncentiveSchema,
3887
- Na as ERC20VariableCriteriaIncentiveSchema,
3888
- Aa as ERC20VariableIncentiveSchema,
3889
- wa as EventActionSchema,
3890
- Ea as IncentiveCriteriaSchema,
3891
- ga as ManagedBudgetSchema,
3892
- Ra as PointsIncentiveSchema,
3893
- ka as SignerValidatorSchema,
3894
- Ca as SimpleAllowListSchema,
3895
- Ta as SimpleDenyListSchema,
3896
- Pa as makeSeed,
3897
- La as seed
3878
+ _a as ActionClaimantSchema,
3879
+ xa as ActionStepCriteriaSchema,
3880
+ wa as ActionStepSchema,
3881
+ Sa as AllowListIncentiveSchema,
3882
+ ja as BoostSeedConfigSchema,
3883
+ Ra as CGDAIncentiveSchema,
3884
+ Aa as ERC20IncentiveSchema,
3885
+ Oa as ERC20VariableCriteriaIncentiveSchema,
3886
+ Ea as ERC20VariableIncentiveSchema,
3887
+ ka as EventActionSchema,
3888
+ Na as IncentiveCriteriaSchema,
3889
+ va as ManagedBudgetSchema,
3890
+ Za as PointsIncentiveSchema,
3891
+ Ta as SignerValidatorSchema,
3892
+ Ia as SimpleAllowListSchema,
3893
+ Ca as SimpleDenyListSchema,
3894
+ $a as makeSeed,
3895
+ za as seed
3898
3896
  };