@xyo-network/xl1-protocol-sdk 2.1.8 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +26 -5
  2. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -1
  3. package/dist/neutral/config/Actor.d.ts +156 -30
  4. package/dist/neutral/config/Actor.d.ts.map +1 -1
  5. package/dist/neutral/config/Actors.d.ts +26 -5
  6. package/dist/neutral/config/Actors.d.ts.map +1 -1
  7. package/dist/neutral/config/Base.d.ts +26 -5
  8. package/dist/neutral/config/Base.d.ts.map +1 -1
  9. package/dist/neutral/config/Config.d.ts +104 -20
  10. package/dist/neutral/config/Config.d.ts.map +1 -1
  11. package/dist/neutral/config/HostActor.d.ts +156 -30
  12. package/dist/neutral/config/HostActor.d.ts.map +1 -1
  13. package/dist/neutral/config/index.d.ts +2 -1
  14. package/dist/neutral/config/index.d.ts.map +1 -1
  15. package/dist/neutral/config/storage/Storage.d.ts +26 -5
  16. package/dist/neutral/config/storage/Storage.d.ts.map +1 -1
  17. package/dist/neutral/config/storage/driver/S3.d.ts +77 -0
  18. package/dist/neutral/config/storage/driver/S3.d.ts.map +1 -0
  19. package/dist/neutral/config/storage/driver/index.d.ts +1 -1
  20. package/dist/neutral/context/Actor.d.ts +156 -30
  21. package/dist/neutral/context/Actor.d.ts.map +1 -1
  22. package/dist/neutral/context/HostActor.d.ts +156 -30
  23. package/dist/neutral/context/HostActor.d.ts.map +1 -1
  24. package/dist/neutral/getFileConfig.d.ts +52 -10
  25. package/dist/neutral/getFileConfig.d.ts.map +1 -1
  26. package/dist/neutral/getFileConfig.mjs +36 -56
  27. package/dist/neutral/getFileConfig.mjs.map +4 -4
  28. package/dist/neutral/index.mjs +71 -74
  29. package/dist/neutral/index.mjs.map +4 -4
  30. package/dist/neutral/model/CreatableProviderContext.zod.d.ts +156 -30
  31. package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +1 -1
  32. package/dist/neutral/test/index.mjs +40 -60
  33. package/dist/neutral/test/index.mjs.map +4 -4
  34. package/package.json +14 -14
  35. package/dist/neutral/config/storage/driver/R2.d.ts +0 -27
  36. package/dist/neutral/config/storage/driver/R2.d.ts.map +0 -1
@@ -75,16 +75,37 @@ export declare const BaseConfigContextZod: z.ZodMiniObject<{
75
75
  password: import("zod").ZodOptional<import("zod").ZodString>;
76
76
  username: import("zod").ZodOptional<import("zod").ZodString>;
77
77
  }, z.core.$strip>>;
78
- r2: import("zod").ZodOptional<import("zod").ZodObject<{
78
+ root: import("zod").ZodOptional<import("zod").ZodString>;
79
+ s3: import("zod").ZodOptional<import("zod").ZodObject<{
79
80
  accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
80
81
  accountId: import("zod").ZodOptional<import("zod").ZodString>;
81
- bucket: import("zod").ZodOptional<import("zod").ZodString>;
82
- chainStateBucket: import("zod").ZodOptional<import("zod").ZodString>;
83
- indexBucket: import("zod").ZodOptional<import("zod").ZodString>;
82
+ chainState: import("zod").ZodOptional<import("zod").ZodObject<{
83
+ accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
84
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
85
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
86
+ prefix: import("zod").ZodOptional<import("zod").ZodString>;
87
+ readUrl: import("zod").ZodOptional<import("zod").ZodString>;
88
+ secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
89
+ }, z.core.$strip>>;
90
+ finalized: import("zod").ZodOptional<import("zod").ZodObject<{
91
+ accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
92
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
93
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
94
+ prefix: import("zod").ZodOptional<import("zod").ZodString>;
95
+ readUrl: import("zod").ZodOptional<import("zod").ZodString>;
96
+ secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
97
+ }, z.core.$strip>>;
98
+ index: import("zod").ZodOptional<import("zod").ZodObject<{
99
+ accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
100
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
101
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
102
+ prefix: import("zod").ZodOptional<import("zod").ZodString>;
103
+ readUrl: import("zod").ZodOptional<import("zod").ZodString>;
104
+ secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
105
+ }, z.core.$strip>>;
84
106
  prefix: import("zod").ZodOptional<import("zod").ZodString>;
85
107
  secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
86
108
  }, z.core.$strip>>;
87
- root: import("zod").ZodOptional<import("zod").ZodString>;
88
109
  }, z.core.$strip>>;
89
110
  telemetry: z.ZodMiniDefault<import("zod").ZodObject<{
90
111
  metrics: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -169,16 +190,37 @@ export declare const isBaseConfigContext: <T>(value: T) => value is T & {
169
190
  password?: string | undefined;
170
191
  username?: string | undefined;
171
192
  } | undefined;
172
- r2?: {
193
+ root?: string | undefined;
194
+ s3?: {
173
195
  accessKeyId?: string | undefined;
174
196
  accountId?: string | undefined;
175
- bucket?: string | undefined;
176
- chainStateBucket?: string | undefined;
177
- indexBucket?: string | undefined;
197
+ chainState?: {
198
+ accessKeyId?: string | undefined;
199
+ accountId?: string | undefined;
200
+ bucket?: string | undefined;
201
+ prefix?: string | undefined;
202
+ readUrl?: string | undefined;
203
+ secretAccessKey?: string | undefined;
204
+ } | undefined;
205
+ finalized?: {
206
+ accessKeyId?: string | undefined;
207
+ accountId?: string | undefined;
208
+ bucket?: string | undefined;
209
+ prefix?: string | undefined;
210
+ readUrl?: string | undefined;
211
+ secretAccessKey?: string | undefined;
212
+ } | undefined;
213
+ index?: {
214
+ accessKeyId?: string | undefined;
215
+ accountId?: string | undefined;
216
+ bucket?: string | undefined;
217
+ prefix?: string | undefined;
218
+ readUrl?: string | undefined;
219
+ secretAccessKey?: string | undefined;
220
+ } | undefined;
178
221
  prefix?: string | undefined;
179
222
  secretAccessKey?: string | undefined;
180
223
  } | undefined;
181
- root?: string | undefined;
182
224
  };
183
225
  telemetry: {
184
226
  metrics?: {
@@ -265,16 +307,37 @@ export declare const asBaseConfigContext: {
265
307
  password?: string | undefined;
266
308
  username?: string | undefined;
267
309
  } | undefined;
268
- r2?: {
310
+ root?: string | undefined;
311
+ s3?: {
269
312
  accessKeyId?: string | undefined;
270
313
  accountId?: string | undefined;
271
- bucket?: string | undefined;
272
- chainStateBucket?: string | undefined;
273
- indexBucket?: string | undefined;
314
+ chainState?: {
315
+ accessKeyId?: string | undefined;
316
+ accountId?: string | undefined;
317
+ bucket?: string | undefined;
318
+ prefix?: string | undefined;
319
+ readUrl?: string | undefined;
320
+ secretAccessKey?: string | undefined;
321
+ } | undefined;
322
+ finalized?: {
323
+ accessKeyId?: string | undefined;
324
+ accountId?: string | undefined;
325
+ bucket?: string | undefined;
326
+ prefix?: string | undefined;
327
+ readUrl?: string | undefined;
328
+ secretAccessKey?: string | undefined;
329
+ } | undefined;
330
+ index?: {
331
+ accessKeyId?: string | undefined;
332
+ accountId?: string | undefined;
333
+ bucket?: string | undefined;
334
+ prefix?: string | undefined;
335
+ readUrl?: string | undefined;
336
+ secretAccessKey?: string | undefined;
337
+ } | undefined;
274
338
  prefix?: string | undefined;
275
339
  secretAccessKey?: string | undefined;
276
340
  } | undefined;
277
- root?: string | undefined;
278
341
  };
279
342
  telemetry: {
280
343
  metrics?: {
@@ -359,16 +422,37 @@ export declare const asBaseConfigContext: {
359
422
  password?: string | undefined;
360
423
  username?: string | undefined;
361
424
  } | undefined;
362
- r2?: {
425
+ root?: string | undefined;
426
+ s3?: {
363
427
  accessKeyId?: string | undefined;
364
428
  accountId?: string | undefined;
365
- bucket?: string | undefined;
366
- chainStateBucket?: string | undefined;
367
- indexBucket?: string | undefined;
429
+ chainState?: {
430
+ accessKeyId?: string | undefined;
431
+ accountId?: string | undefined;
432
+ bucket?: string | undefined;
433
+ prefix?: string | undefined;
434
+ readUrl?: string | undefined;
435
+ secretAccessKey?: string | undefined;
436
+ } | undefined;
437
+ finalized?: {
438
+ accessKeyId?: string | undefined;
439
+ accountId?: string | undefined;
440
+ bucket?: string | undefined;
441
+ prefix?: string | undefined;
442
+ readUrl?: string | undefined;
443
+ secretAccessKey?: string | undefined;
444
+ } | undefined;
445
+ index?: {
446
+ accessKeyId?: string | undefined;
447
+ accountId?: string | undefined;
448
+ bucket?: string | undefined;
449
+ prefix?: string | undefined;
450
+ readUrl?: string | undefined;
451
+ secretAccessKey?: string | undefined;
452
+ } | undefined;
368
453
  prefix?: string | undefined;
369
454
  secretAccessKey?: string | undefined;
370
455
  } | undefined;
371
- root?: string | undefined;
372
456
  };
373
457
  telemetry: {
374
458
  metrics?: {
@@ -456,16 +540,37 @@ export declare const toBaseConfigContext: {
456
540
  password?: string | undefined;
457
541
  username?: string | undefined;
458
542
  } | undefined;
459
- r2?: {
543
+ root?: string | undefined;
544
+ s3?: {
460
545
  accessKeyId?: string | undefined;
461
546
  accountId?: string | undefined;
462
- bucket?: string | undefined;
463
- chainStateBucket?: string | undefined;
464
- indexBucket?: string | undefined;
547
+ chainState?: {
548
+ accessKeyId?: string | undefined;
549
+ accountId?: string | undefined;
550
+ bucket?: string | undefined;
551
+ prefix?: string | undefined;
552
+ readUrl?: string | undefined;
553
+ secretAccessKey?: string | undefined;
554
+ } | undefined;
555
+ finalized?: {
556
+ accessKeyId?: string | undefined;
557
+ accountId?: string | undefined;
558
+ bucket?: string | undefined;
559
+ prefix?: string | undefined;
560
+ readUrl?: string | undefined;
561
+ secretAccessKey?: string | undefined;
562
+ } | undefined;
563
+ index?: {
564
+ accessKeyId?: string | undefined;
565
+ accountId?: string | undefined;
566
+ bucket?: string | undefined;
567
+ prefix?: string | undefined;
568
+ readUrl?: string | undefined;
569
+ secretAccessKey?: string | undefined;
570
+ } | undefined;
465
571
  prefix?: string | undefined;
466
572
  secretAccessKey?: string | undefined;
467
573
  } | undefined;
468
- root?: string | undefined;
469
574
  };
470
575
  telemetry: {
471
576
  metrics?: {
@@ -550,16 +655,37 @@ export declare const toBaseConfigContext: {
550
655
  password?: string | undefined;
551
656
  username?: string | undefined;
552
657
  } | undefined;
553
- r2?: {
658
+ root?: string | undefined;
659
+ s3?: {
554
660
  accessKeyId?: string | undefined;
555
661
  accountId?: string | undefined;
556
- bucket?: string | undefined;
557
- chainStateBucket?: string | undefined;
558
- indexBucket?: string | undefined;
662
+ chainState?: {
663
+ accessKeyId?: string | undefined;
664
+ accountId?: string | undefined;
665
+ bucket?: string | undefined;
666
+ prefix?: string | undefined;
667
+ readUrl?: string | undefined;
668
+ secretAccessKey?: string | undefined;
669
+ } | undefined;
670
+ finalized?: {
671
+ accessKeyId?: string | undefined;
672
+ accountId?: string | undefined;
673
+ bucket?: string | undefined;
674
+ prefix?: string | undefined;
675
+ readUrl?: string | undefined;
676
+ secretAccessKey?: string | undefined;
677
+ } | undefined;
678
+ index?: {
679
+ accessKeyId?: string | undefined;
680
+ accountId?: string | undefined;
681
+ bucket?: string | undefined;
682
+ prefix?: string | undefined;
683
+ readUrl?: string | undefined;
684
+ secretAccessKey?: string | undefined;
685
+ } | undefined;
559
686
  prefix?: string | undefined;
560
687
  secretAccessKey?: string | undefined;
561
688
  } | undefined;
562
- root?: string | undefined;
563
689
  };
564
690
  telemetry: {
565
691
  metrics?: {
@@ -1 +1 @@
1
- {"version":3,"file":"CreatableProviderContext.zod.d.ts","sourceRoot":"","sources":["../../../src/model/CreatableProviderContext.zod.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+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,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAE5F,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B;;;;;;;;UA9B/B,MAAM;YACJ,UAAU;aACT,8BAA8B;qBACtB,oBAAoB;CA2B4C,CAAA;AACnF,yEAAyE;AACzE,eAAO,MAAM,0BAA0B;;;;;;;;;cAhC/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;;;;;;;;;cAH/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;CA6B0E,CAAA;AACjH,2CAA2C;AAC3C,eAAO,MAAM,0BAA0B;;;;;;;;;cAlC/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;;;;;;;;;cAH/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;CA+B0E,CAAA"}
@@ -990,7 +990,7 @@ import {
990
990
  zodIsFactory as zodIsFactory2,
991
991
  zodToFactory as zodToFactory2
992
992
  } from "@xylabs/sdk-js";
993
- import { globalRegistry as globalRegistry13, z as z17 } from "zod/mini";
993
+ import { globalRegistry as globalRegistry12, z as z17 } from "zod/mini";
994
994
 
995
995
  // src/config/Base.ts
996
996
  import { z as z16 } from "zod/mini";
@@ -1194,69 +1194,49 @@ var MongoConfigZod = z11.object({
1194
1194
  })
1195
1195
  });
1196
1196
 
1197
- // src/config/storage/driver/R2.ts
1198
- import { isDefined as isDefined5, isUndefined as isUndefined3 } from "@xylabs/sdk-js";
1199
- import { globalRegistry as globalRegistry9, z as z12 } from "zod";
1200
- var R2ConfigZod = z12.object({
1201
- accessKeyId: z12.string().nonempty().optional().register(globalRegistry9, {
1202
- description: "Cloudflare R2 access key id (from an R2 API token)",
1203
- title: "storage.r2.accessKeyId",
1204
- type: "string"
1205
- }),
1206
- accountId: z12.string().nonempty().optional().register(globalRegistry9, {
1207
- description: "Cloudflare account id; determines the R2 endpoint https://<accountId>.r2.cloudflarestorage.com",
1208
- title: "storage.r2.accountId",
1209
- type: "string"
1210
- }),
1211
- bucket: z12.string().nonempty().optional().register(globalRegistry9, {
1212
- description: "Cloudflare R2 bucket name",
1213
- title: "storage.r2.bucket",
1214
- type: "string"
1215
- }),
1216
- chainStateBucket: z12.string().nonempty().optional().register(globalRegistry9, {
1217
- description: "Cloudflare R2 bucket for the mutable chain state (the head pointer); defaults to `bucket` when unset",
1218
- title: "storage.r2.chainStateBucket",
1219
- type: "string"
1220
- }),
1221
- indexBucket: z12.string().nonempty().optional().register(globalRegistry9, {
1222
- description: "Cloudflare R2 bucket for the chain index (the step-summary families); defaults to `bucket` when unset",
1223
- title: "storage.r2.indexBucket",
1224
- type: "string"
1225
- }),
1226
- prefix: z12.string().nonempty().optional().register(globalRegistry9, {
1227
- description: "Optional key prefix namespacing this store within the bucket",
1228
- title: "storage.r2.prefix",
1229
- type: "string"
1230
- }),
1231
- secretAccessKey: z12.string().nonempty().optional().register(globalRegistry9, {
1232
- description: "Cloudflare R2 secret access key (from an R2 API token)",
1233
- title: "storage.r2.secretAccessKey",
1234
- type: "string"
1235
- })
1197
+ // src/config/storage/driver/S3.ts
1198
+ import { isDefined as isDefined5 } from "@xylabs/sdk-js";
1199
+ import { z as z12 } from "zod";
1200
+ var S3BucketConfigZod = z12.object({
1201
+ accessKeyId: z12.string().nonempty().optional().describe("S3-compatible access key id for this bucket (overrides the shared default)"),
1202
+ accountId: z12.string().nonempty().optional().describe("Account id for this bucket; on Cloudflare R2 it forms the endpoint (overrides the shared default)"),
1203
+ bucket: z12.string().nonempty().optional().describe("S3-compatible bucket name"),
1204
+ prefix: z12.string().nonempty().optional().describe("Optional key prefix within the bucket"),
1205
+ readUrl: z12.string().nonempty().optional().describe("Public HTTP/CDN base URL for anonymous reads of this bucket"),
1206
+ secretAccessKey: z12.string().nonempty().optional().describe("S3-compatible secret access key for this bucket (overrides the shared default)")
1207
+ });
1208
+ var S3ConfigZod = z12.object({
1209
+ accessKeyId: z12.string().nonempty().optional().describe("Shared S3-compatible access key id (default for all buckets)"),
1210
+ accountId: z12.string().nonempty().optional().describe("Shared account id (default for all buckets; on Cloudflare R2 it forms the endpoint)"),
1211
+ chainState: S3BucketConfigZod.optional().describe("Bucket for the mutable chain state (the head pointer)"),
1212
+ finalized: S3BucketConfigZod.optional().describe("Bucket for the finalized files (blocks, payloads, manifest)"),
1213
+ index: S3BucketConfigZod.optional().describe("Bucket for the chain index (the step-summary families)"),
1214
+ prefix: z12.string().nonempty().optional().describe("Shared key prefix (default for all buckets)"),
1215
+ secretAccessKey: z12.string().nonempty().optional().describe("Shared S3-compatible secret access key (default for all buckets)")
1236
1216
  });
1237
1217
 
1238
1218
  // src/config/storage/Storage.ts
1239
- import { globalRegistry as globalRegistry10, z as z13 } from "zod";
1219
+ import { globalRegistry as globalRegistry9, z as z13 } from "zod";
1240
1220
  var StorageConfigZod = z13.object({
1241
1221
  mongo: MongoConfigZod.optional().describe("Configuration for the MongoD storage driver"),
1242
- r2: R2ConfigZod.optional().describe("Configuration for the Cloudflare R2 storage driver"),
1243
- root: z13.string().optional().register(globalRegistry10, {
1222
+ root: z13.string().optional().register(globalRegistry9, {
1244
1223
  description: "Root directory for local storage",
1245
1224
  title: "storage.root",
1246
1225
  type: "string"
1247
- })
1226
+ }),
1227
+ s3: S3ConfigZod.optional().describe("Configuration for S3-compatible object storage (e.g. Cloudflare R2)")
1248
1228
  }).describe("Storage configuration options");
1249
1229
 
1250
1230
  // src/config/Telemetry.ts
1251
- import { globalRegistry as globalRegistry11, z as z14 } from "zod";
1231
+ import { globalRegistry as globalRegistry10, z as z14 } from "zod";
1252
1232
  var MetricsScrapeConfigZod = z14.object({
1253
- path: z14.string().default("/metrics").register(globalRegistry11, {
1233
+ path: z14.string().default("/metrics").register(globalRegistry10, {
1254
1234
  default: "/metrics",
1255
1235
  description: "Path for the metrics scrape endpoint",
1256
1236
  title: "telemetry.metrics.scrape.path",
1257
1237
  type: "string"
1258
1238
  }),
1259
- port: z14.coerce.number().int().positive().optional().register(globalRegistry11, {
1239
+ port: z14.coerce.number().int().positive().optional().register(globalRegistry10, {
1260
1240
  description: "Port for the metrics scrape endpoint",
1261
1241
  title: "telemetry.metrics.scrape.port",
1262
1242
  type: "number"
@@ -1265,7 +1245,7 @@ var MetricsScrapeConfigZod = z14.object({
1265
1245
  var MetricsConfigZod = z14.object({ scrape: MetricsScrapeConfigZod }).describe("Metrics configuration options");
1266
1246
  var OpenTelemetryConfigZod = z14.object({
1267
1247
  // OpenTelemetry options
1268
- otlpEndpoint: z14.url().optional().register(globalRegistry11, {
1248
+ otlpEndpoint: z14.url().optional().register(globalRegistry10, {
1269
1249
  description: "OTLP endpoint for exporting telemetry data",
1270
1250
  title: "telemetry.otel.otlpEndpoint",
1271
1251
  type: "string"
@@ -1280,7 +1260,7 @@ var TelemetryConfigZod = z14.object({
1280
1260
 
1281
1261
  // src/config/Validation.ts
1282
1262
  import { XyoAddressZod as XyoAddressZod2 } from "@xyo-network/address";
1283
- import { globalRegistry as globalRegistry12, z as z15 } from "zod";
1263
+ import { globalRegistry as globalRegistry11, z as z15 } from "zod";
1284
1264
 
1285
1265
  // src/primitives/block/rate/blockRate.ts
1286
1266
  import { isDefined as isDefined7, isFalsy } from "@xylabs/sdk-js";
@@ -1520,23 +1500,23 @@ var DEFAULT_BACKOFF_MS = 12e4;
1520
1500
 
1521
1501
  // src/config/Validation.ts
1522
1502
  var ValidationConfigZod = z15.object({
1523
- allowedRewardRedeemers: z15.array(XyoAddressZod2).optional().register(globalRegistry12, {
1503
+ allowedRewardRedeemers: z15.array(XyoAddressZod2).optional().register(globalRegistry11, {
1524
1504
  description: "List of allowed reward redeemer addresses, if undefined anyone can participate",
1525
1505
  title: "allowedRewardRedeemers",
1526
1506
  type: "array"
1527
1507
  }),
1528
- allowedRewardEscrowAccountSigners: z15.array(XyoAddressZod2).optional().register(globalRegistry12, {
1508
+ allowedRewardEscrowAccountSigners: z15.array(XyoAddressZod2).optional().register(globalRegistry11, {
1529
1509
  description: "List of allowed reward escrow account signer addresses, if undefined anyone can participate",
1530
1510
  title: "allowedRewardEscrowAccountSigners",
1531
1511
  type: "array"
1532
1512
  }),
1533
- minCandidates: z15.coerce.number().default(DEFAULT_MIN_CANDIDATES).register(globalRegistry12, {
1513
+ minCandidates: z15.coerce.number().default(DEFAULT_MIN_CANDIDATES).register(globalRegistry11, {
1534
1514
  default: DEFAULT_MIN_CANDIDATES,
1535
1515
  description: "Minimum number of uncle candidates before selecting the best uncle",
1536
1516
  title: "validation.minCandidates",
1537
1517
  type: "number"
1538
1518
  }),
1539
- backoffMs: z15.coerce.number().default(DEFAULT_BACKOFF_MS).register(globalRegistry12, {
1519
+ backoffMs: z15.coerce.number().default(DEFAULT_BACKOFF_MS).register(globalRegistry11, {
1540
1520
  default: DEFAULT_BACKOFF_MS,
1541
1521
  description: "Back-off timeout in ms. If head age exceeds this, minCandidates is ignored",
1542
1522
  title: "validation.backoffMs",
@@ -1564,7 +1544,7 @@ var AccountPathZod = z17.string().check(z17.regex(
1564
1544
  ));
1565
1545
  var ActorConfigZod = z17.extend(BaseConfigZod, {
1566
1546
  name: z17.string(),
1567
- accountPath: z17.optional(AccountPathZod).register(globalRegistry13, {
1547
+ accountPath: z17.optional(AccountPathZod).register(globalRegistry12, {
1568
1548
  description: 'BIP-32 derivation path for the actor wallet. Absolute when it starts with "m/"; otherwise relative to the root wallet base path. Each actor must derive to a distinct path.',
1569
1549
  title: "accountPath",
1570
1550
  type: "string"
@@ -1582,10 +1562,10 @@ var ActorsConfigZod = z18._default(
1582
1562
  );
1583
1563
 
1584
1564
  // src/config/Config.ts
1585
- import { globalRegistry as globalRegistry14, z as z19 } from "zod/mini";
1565
+ import { globalRegistry as globalRegistry13, z as z19 } from "zod/mini";
1586
1566
  var ConfigZod = z19.extend(BaseConfigZod, {
1587
1567
  actors: ActorsConfigZod,
1588
- healthCheckPort: z19.optional(z19.coerce.number()).register(globalRegistry14, {
1568
+ healthCheckPort: z19.optional(z19.coerce.number()).register(globalRegistry13, {
1589
1569
  description: "Port for the system-wide health, readiness, and liveness endpoints (/healthz, /livez, /readyz). Set to 0 to disable.",
1590
1570
  title: "healthCheckPort",
1591
1571
  type: "number"
@@ -1665,7 +1645,7 @@ async function blocksStepSummaryFromRange(context, semaphores, blockViewer, summ
1665
1645
  import {
1666
1646
  assertEx as assertEx15,
1667
1647
  exists,
1668
- isUndefined as isUndefined4
1648
+ isUndefined as isUndefined3
1669
1649
  } from "@xylabs/sdk-js";
1670
1650
  import { LruCacheMap as LruCacheMap2 } from "@xyo-network/xl1-driver-memory";
1671
1651
  import {
@@ -1768,7 +1748,7 @@ var SimpleBlockViewer = class extends AbstractCreatableProvider {
1768
1748
  async blockByNumber(blockNumber) {
1769
1749
  return await this.spanAsync("blockByNumber", async () => {
1770
1750
  const chainContext = await this.getChainContextRead();
1771
- if (isUndefined4(chainContext.head)) {
1751
+ if (isUndefined3(chainContext.head)) {
1772
1752
  return null;
1773
1753
  }
1774
1754
  return await this.blockByNumberWithContext(chainContext, blockNumber);
@@ -1794,7 +1774,7 @@ var SimpleBlockViewer = class extends AbstractCreatableProvider {
1794
1774
  assertEx15(limit > 0, () => "limit must be greater than 0");
1795
1775
  assertEx15(limit <= 100, () => "limit must be less than 100");
1796
1776
  const chainContext = await this.getChainContextRead();
1797
- if (isUndefined4(chainContext.head)) {
1777
+ if (isUndefined3(chainContext.head)) {
1798
1778
  return [];
1799
1779
  }
1800
1780
  const blocks = [];
@@ -1817,7 +1797,7 @@ var SimpleBlockViewer = class extends AbstractCreatableProvider {
1817
1797
  () => `blocksByStep does not support step levels above ${blocksMaxStep} (requested ${stepLevel})`
1818
1798
  );
1819
1799
  const chainContext = await this.getChainContextRead();
1820
- if (isUndefined4(chainContext.head)) {
1800
+ if (isUndefined3(chainContext.head)) {
1821
1801
  return [];
1822
1802
  }
1823
1803
  const start = stepIndex * size;