@boostxyz/cli 3.0.0 → 4.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.
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/deploy.cjs +1 -1
- package/dist/commands/deploy.js +43 -43
- package/dist/commands/seed.cjs +2 -2
- package/dist/commands/seed.js +47 -47
- package/package.json +2 -2
package/dist/commands/seed.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Ct from "node:fs/promises";
|
|
2
2
|
import St from "node:path";
|
|
3
3
|
import { Deployable as It, 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
|
|
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 Ft, x as qt, k as Ht } from "../utils-CbGtTEVk.js";
|
|
5
5
|
class Gt extends Zt {
|
|
6
6
|
constructor({ value: e }) {
|
|
7
7
|
super(`Number \`${e}\` is not a valid decimal number.`, {
|
|
@@ -9,7 +9,7 @@ class Gt extends Zt {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Yt(n, e) {
|
|
13
13
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(n))
|
|
14
14
|
throw new Gt({ value: n });
|
|
15
15
|
let [t, a = "0"] = n.split(".");
|
|
@@ -28,7 +28,7 @@ function Ht(n, e) {
|
|
|
28
28
|
return BigInt(`${r ? "-" : ""}${t}${a}`);
|
|
29
29
|
}
|
|
30
30
|
function st(n, e = "wei") {
|
|
31
|
-
return
|
|
31
|
+
return Yt(n, jt[e]);
|
|
32
32
|
}
|
|
33
33
|
const Ke = "0x0000000000000000000000000000000000000000";
|
|
34
34
|
function Pe(n, e) {
|
|
@@ -125,7 +125,7 @@ function Ne(n) {
|
|
|
125
125
|
function Ue(n) {
|
|
126
126
|
return n.state.chainId;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function We(n, e, t) {
|
|
129
129
|
const a = n[e.name];
|
|
130
130
|
if (typeof a == "function")
|
|
131
131
|
return a;
|
|
@@ -138,7 +138,7 @@ var it = function(n, e, t, a) {
|
|
|
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
140
|
}, we, ot;
|
|
141
|
-
class
|
|
141
|
+
class H extends Error {
|
|
142
142
|
get docsBaseUrl() {
|
|
143
143
|
return "https://wagmi.sh/core";
|
|
144
144
|
}
|
|
@@ -173,7 +173,7 @@ class Y extends Error {
|
|
|
173
173
|
writable: !0,
|
|
174
174
|
value: "WagmiCoreError"
|
|
175
175
|
});
|
|
176
|
-
const r = t.cause instanceof
|
|
176
|
+
const r = t.cause instanceof H ? t.cause.details : (a = t.cause) != null && a.message ? t.cause.message : t.details, s = t.cause instanceof H && t.cause.docsPath || t.docsPath;
|
|
177
177
|
this.message = [
|
|
178
178
|
e || "An error occurred.",
|
|
179
179
|
"",
|
|
@@ -193,7 +193,7 @@ class Y extends Error {
|
|
|
193
193
|
we = /* @__PURE__ */ new WeakSet(), ot = function n(e, t) {
|
|
194
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
|
|
196
|
+
class Qt extends H {
|
|
197
197
|
constructor() {
|
|
198
198
|
super("Connector not connected."), Object.defineProperty(this, "name", {
|
|
199
199
|
enumerable: !0,
|
|
@@ -203,7 +203,7 @@ class Qt extends Y {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
class Xt extends
|
|
206
|
+
class Xt extends H {
|
|
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 Xt extends Y {
|
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
class en extends
|
|
216
|
+
class en extends H {
|
|
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 en extends Y {
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
class tn extends
|
|
231
|
+
class tn extends H {
|
|
232
232
|
constructor({ connector: e }) {
|
|
233
233
|
super(`Connector "${e.name}" unavailable while reconnecting.`, {
|
|
234
234
|
details: [
|
|
@@ -293,14 +293,14 @@ async function $e(n, e) {
|
|
|
293
293
|
chainId: a,
|
|
294
294
|
connector: r
|
|
295
295
|
})).account;
|
|
296
|
-
const o = n.getClient({ chainId: a }), u =
|
|
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,
|
|
300
300
|
request: { __mode: "prepared", ...m, chainId: a }
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Fe(n) {
|
|
304
304
|
return n.address !== void 0 && typeof n.address == "object" ? (e, t) => {
|
|
305
305
|
var a;
|
|
306
306
|
const r = Ue(e), s = Ne(e), i = (t == null ? void 0 : t.chainId) ?? s.chainId ?? r;
|
|
@@ -319,7 +319,7 @@ function We(n) {
|
|
|
319
319
|
}
|
|
320
320
|
function Qe(n, e) {
|
|
321
321
|
const { chainId: t, ...a } = e, r = n.getClient({ chainId: t });
|
|
322
|
-
return
|
|
322
|
+
return We(r, Bt, "readContract")(a);
|
|
323
323
|
}
|
|
324
324
|
function dt(n) {
|
|
325
325
|
return n.address !== void 0 && typeof n.address == "object" ? (e, t) => {
|
|
@@ -354,7 +354,7 @@ async function Xe(n, e) {
|
|
|
354
354
|
});
|
|
355
355
|
c = m;
|
|
356
356
|
}
|
|
357
|
-
return await
|
|
357
|
+
return await We(o, Lt, "writeContract")({
|
|
358
358
|
...c,
|
|
359
359
|
...t ? { account: t } : {},
|
|
360
360
|
chain: a ? { id: a } : null
|
|
@@ -566,13 +566,13 @@ const B = [
|
|
|
566
566
|
}), on = /* @__PURE__ */ qe({
|
|
567
567
|
abi: B,
|
|
568
568
|
functionName: "mintPayable"
|
|
569
|
-
}), cn = /* @__PURE__ */
|
|
569
|
+
}), cn = /* @__PURE__ */ Fe({
|
|
570
570
|
abi: B,
|
|
571
571
|
functionName: "approve"
|
|
572
|
-
}), dn = /* @__PURE__ */
|
|
572
|
+
}), dn = /* @__PURE__ */ Fe({
|
|
573
573
|
abi: B,
|
|
574
574
|
functionName: "mint"
|
|
575
|
-
}), un = /* @__PURE__ */
|
|
575
|
+
}), un = /* @__PURE__ */ Fe({
|
|
576
576
|
abi: B,
|
|
577
577
|
functionName: "mintPayable"
|
|
578
578
|
}), ln = "0x6080604052348015600e575f80fd5b50610e138061001c5f395ff3fe6080604052600436106100dc575f3560e01c806340c10f191161007e57806395d89b411161005857806395d89b41146102bc578063a9059cbb146102e6578063d505accf14610322578063dd62ed3e1461034a576100dc565b806340c10f191461021c57806370a08231146102445780637ecebe0014610280576100dc565b806318160ddd116100ba57806318160ddd1461016257806323b872dd1461018c578063313ce567146101c85780633644e515146101f2576100dc565b806306fdde03146100e0578063095ea7b31461010a57806317d304b014610146575b5f80fd5b3480156100eb575f80fd5b506100f4610386565b60405161010191906109bf565b60405180910390f35b348015610115575f80fd5b50610130600480360381019061012b9190610a70565b6103c3565b60405161013d9190610ac8565b60405180910390f35b610160600480360381019061015b9190610a70565b610413565b005b34801561016d575f80fd5b50610176610470565b6040516101839190610af0565b60405180910390f35b348015610197575f80fd5b506101b260048036038101906101ad9190610b09565b610481565b6040516101bf9190610ac8565b60405180910390f35b3480156101d3575f80fd5b506101dc610552565b6040516101e99190610b74565b60405180910390f35b3480156101fd575f80fd5b5061020661055a565b6040516102139190610ba5565b60405180910390f35b348015610227575f80fd5b50610242600480360381019061023d9190610a70565b6105ea565b005b34801561024f575f80fd5b5061026a60048036038101906102659190610bbe565b6105f8565b6040516102779190610af0565b60405180910390f35b34801561028b575f80fd5b506102a660048036038101906102a19190610bbe565b610611565b6040516102b39190610af0565b60405180910390f35b3480156102c7575f80fd5b506102d061062a565b6040516102dd91906109bf565b60405180910390f35b3480156102f1575f80fd5b5061030c60048036038101906103079190610a70565b610667565b6040516103199190610ac8565b60405180910390f35b34801561032d575f80fd5b5061034860048036038101906103439190610c3d565b6106f5565b005b348015610355575f80fd5b50610370600480360381019061036b9190610cda565b610891565b60405161037d9190610af0565b60405180910390f35b60606040518060400160405280600a81526020017f4d6f636b20455243323000000000000000000000000000000000000000000000815250905090565b5f82602052637f5e9f20600c52335f52816034600c2055815f52602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560205fa36001905092915050565b6064816104209190610d45565b341015610462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045990610dbf565b60405180910390fd5b61046c82826108af565b5050565b5f6805345cdf77eb68f44c54905090565b5f61048d848484610941565b8360601b33602052637f5e9f208117600c526034600c20805460018101156104ca57808511156104c4576313be252b5f526004601cfd5b84810382555b6387a211a28317600c526020600c208054808711156104f05763f4d678b85f526004601cfd5b8681038255875f526020600c2087815401815587602052600c5160601c8660601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505050505050610547848484610946565b600190509392505050565b5f6012905090565b5f8061056461094b565b90505f801b810361058157610577610386565b8051906020012090505b6040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b6105f482826108af565b5050565b5f6387a211a2600c52815f526020600c20549050919050565b5f6338377508600c52815f526020600c20549050919050565b60606040518060400160405280600481526020017f4d4f434b00000000000000000000000000000000000000000000000000000000815250905090565b5f610673338484610941565b6387a211a2600c52335f526020600c2080548084111561069a5763f4d678b85f526004601cfd5b8381038255845f526020600c2084815401815584602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050506106eb338484610946565b6001905092915050565b5f6106fe61094b565b90505f801b810361071b57610711610386565b8051906020012090505b8442111561073057631a15a3cc5f526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52885f526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c205f528660ff16602052856040528460605260208060805f60015afa8b3d51146108385763ddafbaef5f526004601cfd5b80820183558a637f5e9f2060a01b17604052896034602c20558a8c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608801a3836040525f606052505050505050505050505050565b5f81602052637f5e9f20600c52825f526034600c2054905092915050565b6108ba5f8383610941565b6805345cdf77eb68f44c54818101818110156108dd5763e5cfe9575f526004601cfd5b806805345cdf77eb68f44c556387a211a2600c52835f526020600c2083815401815583602052600c5160601c5f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505061093d5f8383610946565b5050565b505050565b505050565b5f90565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6109918261094f565b61099b8185610959565b93506109ab818560208601610969565b6109b481610977565b840191505092915050565b5f6020820190508181035f8301526109d78184610987565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a0c826109e3565b9050919050565b610a1c81610a02565b8114610a26575f80fd5b50565b5f81359050610a3781610a13565b92915050565b5f819050919050565b610a4f81610a3d565b8114610a59575f80fd5b50565b5f81359050610a6a81610a46565b92915050565b5f8060408385031215610a8657610a856109df565b5b5f610a9385828601610a29565b9250506020610aa485828601610a5c565b9150509250929050565b5f8115159050919050565b610ac281610aae565b82525050565b5f602082019050610adb5f830184610ab9565b92915050565b610aea81610a3d565b82525050565b5f602082019050610b035f830184610ae1565b92915050565b5f805f60608486031215610b2057610b1f6109df565b5b5f610b2d86828701610a29565b9350506020610b3e86828701610a29565b9250506040610b4f86828701610a5c565b9150509250925092565b5f60ff82169050919050565b610b6e81610b59565b82525050565b5f602082019050610b875f830184610b65565b92915050565b5f819050919050565b610b9f81610b8d565b82525050565b5f602082019050610bb85f830184610b96565b92915050565b5f60208284031215610bd357610bd26109df565b5b5f610be084828501610a29565b91505092915050565b610bf281610b59565b8114610bfc575f80fd5b50565b5f81359050610c0d81610be9565b92915050565b610c1c81610b8d565b8114610c26575f80fd5b50565b5f81359050610c3781610c13565b92915050565b5f805f805f805f60e0888a031215610c5857610c576109df565b5b5f610c658a828b01610a29565b9750506020610c768a828b01610a29565b9650506040610c878a828b01610a5c565b9550506060610c988a828b01610a5c565b9450506080610ca98a828b01610bff565b93505060a0610cba8a828b01610c29565b92505060c0610ccb8a828b01610c29565b91505092959891949750929550565b5f8060408385031215610cf057610cef6109df565b5b5f610cfd85828601610a29565b9250506020610d0e85828601610a29565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f610d4f82610a3d565b9150610d5a83610a3d565b925082610d6a57610d69610d18565b5b828204905092915050565b7f4d6f636b45524332303a2067696d6d65206d6f7265206d6f6e657921000000005f82015250565b5f610da9601c83610959565b9150610db482610d75565b602082019050919050565b5f6020820190508181035f830152610dd681610d9d565b905091905056fea264697066735822122014217224d57712700b62f2706b7c6ccac676419103ff9ccb6b43ece3d5b783f164736f6c634300081a0033";
|
|
@@ -1160,7 +1160,7 @@ class v {
|
|
|
1160
1160
|
return Z.create(this, this._def);
|
|
1161
1161
|
}
|
|
1162
1162
|
nullable() {
|
|
1163
|
-
return
|
|
1163
|
+
return F.create(this, this._def);
|
|
1164
1164
|
}
|
|
1165
1165
|
nullish() {
|
|
1166
1166
|
return this.nullable().optional();
|
|
@@ -1195,7 +1195,7 @@ class v {
|
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
1197
|
brand() {
|
|
1198
|
-
return new
|
|
1198
|
+
return new He({
|
|
1199
1199
|
typeName: y.ZodBranded,
|
|
1200
1200
|
type: this,
|
|
1201
1201
|
...g(this._def)
|
|
@@ -2199,7 +2199,7 @@ function K(n) {
|
|
|
2199
2199
|
} else return n instanceof O ? new O({
|
|
2200
2200
|
...n._def,
|
|
2201
2201
|
type: K(n.element)
|
|
2202
|
-
}) : n instanceof Z ? Z.create(K(n.unwrap())) : n instanceof
|
|
2202
|
+
}) : n instanceof Z ? Z.create(K(n.unwrap())) : n instanceof F ? F.create(K(n.unwrap())) : n instanceof M ? M.create(n.items.map((e) => K(e))) : n;
|
|
2203
2203
|
}
|
|
2204
2204
|
class k extends v {
|
|
2205
2205
|
constructor() {
|
|
@@ -2561,7 +2561,7 @@ le.create = (n, e) => new le({
|
|
|
2561
2561
|
typeName: y.ZodUnion,
|
|
2562
2562
|
...g(e)
|
|
2563
2563
|
});
|
|
2564
|
-
const D = (n) => n instanceof pe ? D(n.schema) : n instanceof R ? D(n.innerType()) : n instanceof me ? [n.value] : n instanceof
|
|
2564
|
+
const D = (n) => n instanceof pe ? D(n.schema) : n instanceof R ? D(n.innerType()) : n instanceof me ? [n.value] : n instanceof W ? n.options : n instanceof ye ? _.objectValues(n.enum) : n instanceof be ? D(n._def.innerType) : n instanceof de ? [void 0] : n instanceof ue ? [null] : n instanceof Z ? [void 0, ...D(n.unwrap())] : n instanceof F ? [null, ...D(n.unwrap())] : n instanceof He || n instanceof ve ? D(n.unwrap()) : n instanceof ge ? D(n._def.innerType) : [];
|
|
2565
2565
|
class Oe extends v {
|
|
2566
2566
|
_parse(e) {
|
|
2567
2567
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -2827,7 +2827,7 @@ Ae.create = (n, e, t) => new Ae({
|
|
|
2827
2827
|
typeName: y.ZodMap,
|
|
2828
2828
|
...g(t)
|
|
2829
2829
|
});
|
|
2830
|
-
class
|
|
2830
|
+
class Y extends v {
|
|
2831
2831
|
_parse(e) {
|
|
2832
2832
|
const { status: t, ctx: a } = this._processInputParams(e);
|
|
2833
2833
|
if (a.parsedType !== h.set)
|
|
@@ -2866,13 +2866,13 @@ class H extends v {
|
|
|
2866
2866
|
return a.common.async ? Promise.all(o).then((u) => i(u)) : i(o);
|
|
2867
2867
|
}
|
|
2868
2868
|
min(e, t) {
|
|
2869
|
-
return new
|
|
2869
|
+
return new Y({
|
|
2870
2870
|
...this._def,
|
|
2871
2871
|
minSize: { value: e, message: p.toString(t) }
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
max(e, t) {
|
|
2875
|
-
return new
|
|
2875
|
+
return new Y({
|
|
2876
2876
|
...this._def,
|
|
2877
2877
|
maxSize: { value: e, message: p.toString(t) }
|
|
2878
2878
|
});
|
|
@@ -2884,7 +2884,7 @@ class H extends v {
|
|
|
2884
2884
|
return this.min(1, e);
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
|
-
|
|
2887
|
+
Y.create = (n, e) => new Y({
|
|
2888
2888
|
valueType: n,
|
|
2889
2889
|
minSize: null,
|
|
2890
2890
|
maxSize: null,
|
|
@@ -3028,13 +3028,13 @@ me.create = (n, e) => new me({
|
|
|
3028
3028
|
...g(e)
|
|
3029
3029
|
});
|
|
3030
3030
|
function yt(n, e) {
|
|
3031
|
-
return new
|
|
3031
|
+
return new W({
|
|
3032
3032
|
values: n,
|
|
3033
3033
|
typeName: y.ZodEnum,
|
|
3034
3034
|
...g(e)
|
|
3035
3035
|
});
|
|
3036
3036
|
}
|
|
3037
|
-
class
|
|
3037
|
+
class W extends v {
|
|
3038
3038
|
constructor() {
|
|
3039
3039
|
super(...arguments), ae.set(this, void 0);
|
|
3040
3040
|
}
|
|
@@ -3079,20 +3079,20 @@ class F extends v {
|
|
|
3079
3079
|
return e;
|
|
3080
3080
|
}
|
|
3081
3081
|
extract(e, t = this._def) {
|
|
3082
|
-
return
|
|
3082
|
+
return W.create(e, {
|
|
3083
3083
|
...this._def,
|
|
3084
3084
|
...t
|
|
3085
3085
|
});
|
|
3086
3086
|
}
|
|
3087
3087
|
exclude(e, t = this._def) {
|
|
3088
|
-
return
|
|
3088
|
+
return W.create(this.options.filter((a) => !e.includes(a)), {
|
|
3089
3089
|
...this._def,
|
|
3090
3090
|
...t
|
|
3091
3091
|
});
|
|
3092
3092
|
}
|
|
3093
3093
|
}
|
|
3094
3094
|
ae = /* @__PURE__ */ new WeakMap();
|
|
3095
|
-
|
|
3095
|
+
W.create = yt;
|
|
3096
3096
|
class ye extends v {
|
|
3097
3097
|
constructor() {
|
|
3098
3098
|
super(...arguments), re.set(this, void 0);
|
|
@@ -3253,7 +3253,7 @@ Z.create = (n, e) => new Z({
|
|
|
3253
3253
|
typeName: y.ZodOptional,
|
|
3254
3254
|
...g(e)
|
|
3255
3255
|
});
|
|
3256
|
-
class
|
|
3256
|
+
class F extends v {
|
|
3257
3257
|
_parse(e) {
|
|
3258
3258
|
return this._getType(e) === h.null ? A(null) : this._def.innerType._parse(e);
|
|
3259
3259
|
}
|
|
@@ -3261,7 +3261,7 @@ class W extends v {
|
|
|
3261
3261
|
return this._def.innerType;
|
|
3262
3262
|
}
|
|
3263
3263
|
}
|
|
3264
|
-
|
|
3264
|
+
F.create = (n, e) => new F({
|
|
3265
3265
|
innerType: n,
|
|
3266
3266
|
typeName: y.ZodNullable,
|
|
3267
3267
|
...g(e)
|
|
@@ -3347,7 +3347,7 @@ Ee.create = (n) => new Ee({
|
|
|
3347
3347
|
...g(n)
|
|
3348
3348
|
});
|
|
3349
3349
|
const On = Symbol("zod_brand");
|
|
3350
|
-
class
|
|
3350
|
+
class He extends v {
|
|
3351
3351
|
_parse(e) {
|
|
3352
3352
|
const { ctx: t } = this._processInputParams(e), a = t.data;
|
|
3353
3353
|
return this._def.type._parse({
|
|
@@ -3432,7 +3432,7 @@ var y;
|
|
|
3432
3432
|
})(y || (y = {}));
|
|
3433
3433
|
const Zn = (n, e = {
|
|
3434
3434
|
message: `Input not instance of ${n.name}`
|
|
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 = Se.create, Dn = de.create, Vn = ue.create, Bn = te.create, Ln = q.create, zn = V.create, Un = Ie.create,
|
|
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 = Se.create, Dn = de.create, Vn = ue.create, Bn = te.create, Ln = q.create, zn = V.create, Un = Ie.create, Wn = O.create, Fn = k.create, qn = k.strictCreate, Hn = le.create, Gn = Oe.create, Yn = fe.create, Jn = M.create, Kn = he.create, Qn = Ae.create, Xn = Y.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 = F.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({
|
|
@@ -3488,22 +3488,22 @@ var l = /* @__PURE__ */ Object.freeze({
|
|
|
3488
3488
|
ZodTuple: M,
|
|
3489
3489
|
ZodRecord: he,
|
|
3490
3490
|
ZodMap: Ae,
|
|
3491
|
-
ZodSet:
|
|
3491
|
+
ZodSet: Y,
|
|
3492
3492
|
ZodFunction: X,
|
|
3493
3493
|
ZodLazy: pe,
|
|
3494
3494
|
ZodLiteral: me,
|
|
3495
|
-
ZodEnum:
|
|
3495
|
+
ZodEnum: W,
|
|
3496
3496
|
ZodNativeEnum: ye,
|
|
3497
3497
|
ZodPromise: ne,
|
|
3498
3498
|
ZodEffects: R,
|
|
3499
3499
|
ZodTransformer: R,
|
|
3500
3500
|
ZodOptional: Z,
|
|
3501
|
-
ZodNullable:
|
|
3501
|
+
ZodNullable: F,
|
|
3502
3502
|
ZodDefault: be,
|
|
3503
3503
|
ZodCatch: ge,
|
|
3504
3504
|
ZodNaN: Ee,
|
|
3505
3505
|
BRAND: On,
|
|
3506
|
-
ZodBranded:
|
|
3506
|
+
ZodBranded: He,
|
|
3507
3507
|
ZodPipeline: _e,
|
|
3508
3508
|
ZodReadonly: ve,
|
|
3509
3509
|
custom: bt,
|
|
@@ -3515,7 +3515,7 @@ var l = /* @__PURE__ */ Object.freeze({
|
|
|
3515
3515
|
},
|
|
3516
3516
|
coerce: ha,
|
|
3517
3517
|
any: Bn,
|
|
3518
|
-
array:
|
|
3518
|
+
array: Wn,
|
|
3519
3519
|
bigint: Mn,
|
|
3520
3520
|
boolean: _t,
|
|
3521
3521
|
date: Pn,
|
|
@@ -3524,7 +3524,7 @@ var l = /* @__PURE__ */ Object.freeze({
|
|
|
3524
3524
|
enum: aa,
|
|
3525
3525
|
function: ea,
|
|
3526
3526
|
instanceof: Zn,
|
|
3527
|
-
intersection:
|
|
3527
|
+
intersection: Yn,
|
|
3528
3528
|
lazy: ta,
|
|
3529
3529
|
literal: na,
|
|
3530
3530
|
map: Qn,
|
|
@@ -3534,7 +3534,7 @@ var l = /* @__PURE__ */ Object.freeze({
|
|
|
3534
3534
|
null: Vn,
|
|
3535
3535
|
nullable: oa,
|
|
3536
3536
|
number: vt,
|
|
3537
|
-
object:
|
|
3537
|
+
object: Fn,
|
|
3538
3538
|
oboolean: fa,
|
|
3539
3539
|
onumber: la,
|
|
3540
3540
|
optional: ia,
|
|
@@ -3550,7 +3550,7 @@ var l = /* @__PURE__ */ Object.freeze({
|
|
|
3550
3550
|
transformer: tt,
|
|
3551
3551
|
tuple: Jn,
|
|
3552
3552
|
undefined: Dn,
|
|
3553
|
-
union:
|
|
3553
|
+
union: Hn,
|
|
3554
3554
|
unknown: Ln,
|
|
3555
3555
|
void: Un,
|
|
3556
3556
|
NEVER: pa,
|
|
@@ -3559,7 +3559,7 @@ var l = /* @__PURE__ */ Object.freeze({
|
|
|
3559
3559
|
ZodError: E
|
|
3560
3560
|
});
|
|
3561
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] =
|
|
3562
|
+
const a = t.privateKey, r = t.mnemonic ?? ma, s = t.chain || "anvil", [{ config: i, account: o }, u] = Ht({
|
|
3563
3563
|
chain: s,
|
|
3564
3564
|
rpcUrl: t.rpcUrl,
|
|
3565
3565
|
privateKey: a,
|
|
@@ -3595,7 +3595,7 @@ const ma = "test test test test test test test test test test test junk", za = a
|
|
|
3595
3595
|
if (!e.length) throw new Error("No seed provided");
|
|
3596
3596
|
const xt = await Promise.all(e.map(ya));
|
|
3597
3597
|
let Ze, Ge;
|
|
3598
|
-
const
|
|
3598
|
+
const Ye = [];
|
|
3599
3599
|
for (const T of xt) {
|
|
3600
3600
|
let P;
|
|
3601
3601
|
if (typeof T.budget == "string" && ze(T.budget))
|
|
@@ -3651,10 +3651,10 @@ const ma = "test test test test test test test test test test test junk", za = a
|
|
|
3651
3651
|
};
|
|
3652
3652
|
T.validator && (Je.validator = S.SignerValidator(T.validator));
|
|
3653
3653
|
const Tt = await S.createBoost(Je);
|
|
3654
|
-
|
|
3654
|
+
Ye.push(Tt.id.toString());
|
|
3655
3655
|
}
|
|
3656
3656
|
return {
|
|
3657
|
-
boostIds:
|
|
3657
|
+
boostIds: Ye
|
|
3658
3658
|
};
|
|
3659
3659
|
};
|
|
3660
3660
|
async function xe(n, e, t, a) {
|
|
@@ -3685,7 +3685,7 @@ const ba = l.custom(Ut, "invalid Hex payload"), w = l.string().transform((n, e)
|
|
|
3685
3685
|
message: "signature must start with `event` or function`"
|
|
3686
3686
|
}).transform((n) => {
|
|
3687
3687
|
if (n.startsWith("function"))
|
|
3688
|
-
return Ft(
|
|
3688
|
+
return Wt(Ft(n));
|
|
3689
3689
|
if (n.startsWith("event")) return qt(n);
|
|
3690
3690
|
throw new Error("unreachable");
|
|
3691
3691
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boostxyz/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A repository of useful scripts to interact with the protocol",
|
|
5
5
|
"repository": "https://github.com/boostxyz/boost-protocol",
|
|
6
6
|
"author": "Boost Team<boost-team@boost.xyz>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"license": "GPL-3.0-or-later",
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@boostxyz/sdk": "
|
|
48
|
+
"@boostxyz/sdk": "5.1.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "vite build",
|