@xyo-network/xl1-protocol-sdk 1.22.18 → 1.22.19

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,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ApiConfigZod: z.ZodObject<{
3
3
  host: z.ZodDefault<z.ZodString>;
4
- initRewardsCache: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<boolean, string | number>>>;
4
+ initRewardsCache: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>, z.ZodTransform<boolean, string | number | boolean>>>;
5
5
  mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
6
6
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7
7
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"Api.d.ts","sourceRoot":"","sources":["../../../src/config/Api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,YAAY;;;;;iBAuBvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
1
+ {"version":3,"file":"Api.d.ts","sourceRoot":"","sources":["../../../src/config/Api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,YAAY;;;;;iBAyBvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -13,7 +13,7 @@ export declare const Xl1CommonConfigSchema: z.ZodObject<{
13
13
  export declare const ConfigZod: z.ZodObject<{
14
14
  api: z.ZodDefault<z.ZodObject<{
15
15
  host: z.ZodDefault<z.ZodString>;
16
- initRewardsCache: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<boolean, string | number>>>;
16
+ initRewardsCache: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>, z.ZodTransform<boolean, string | number | boolean>>>;
17
17
  mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
18
18
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
19
19
  }, z.core.$strip>>;
@@ -68,7 +68,7 @@ export declare const ConfigZod: z.ZodObject<{
68
68
  }, z.core.$strip>>;
69
69
  }, z.core.$strip>>;
70
70
  mempool: z.ZodDefault<z.ZodObject<{
71
- enabled: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<boolean, string>>;
71
+ enabled: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>, z.ZodTransform<boolean, string | boolean>>;
72
72
  host: z.ZodDefault<z.ZodString>;
73
73
  mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
74
74
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MempoolConfigZod: z.ZodObject<{
3
- enabled: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<boolean, string>>;
3
+ enabled: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>, z.ZodTransform<boolean, string | boolean>>;
4
4
  host: z.ZodDefault<z.ZodString>;
5
5
  mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
6
6
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Mempool.d.ts","sourceRoot":"","sources":["../../../src/config/Mempool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,gBAAgB;;;;;iBAkC3B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"Mempool.d.ts","sourceRoot":"","sources":["../../../src/config/Mempool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,gBAAgB;;;;;iBAmC3B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -191,7 +191,9 @@ var ApiConfigZod = z3.object({
191
191
  title: "api.host",
192
192
  type: "string"
193
193
  }),
194
- initRewardsCache: z3.union([z3.number(), z3.string()]).transform((v) => v !== "0" && v !== "false").default(true).register(globalRegistry2, {
194
+ initRewardsCache: z3.union([z3.number(), z3.string(), z3.boolean()]).transform(
195
+ (v) => v !== "0" && v !== "false" && v !== false && v != 0
196
+ ).default(true).register(globalRegistry2, {
195
197
  description: "Whether to initialize the rewards cache on startup",
196
198
  title: "api.initRewardsCache",
197
199
  type: "boolean"
@@ -279,7 +281,8 @@ var LogConfigZod = z6.object({
279
281
  // src/config/Mempool.ts
280
282
  import { globalRegistry as globalRegistry6, z as z7 } from "zod";
281
283
  var MempoolConfigZod = z7.object({
282
- enabled: z7.string().default("false").transform((val, ctx) => {
284
+ enabled: z7.union([z7.string(), z7.boolean()]).default("false").transform((val, ctx) => {
285
+ if (typeof val === "boolean") return val;
283
286
  const normalized = val.toLowerCase().trim();
284
287
  if (["true", "1", "yes", "on"].includes(normalized)) return true;
285
288
  if (["false", "0", "no", "off"].includes(normalized)) return false;