@xyo-network/xl1-protocol-sdk 2.0.10 → 2.0.12

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 (69) hide show
  1. package/README.md +3 -6
  2. package/dist/neutral/ChainContextHelpers.d.ts.map +1 -1
  3. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +8 -1
  4. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -1
  5. package/dist/neutral/config/Actor.d.ts +48 -6
  6. package/dist/neutral/config/Actor.d.ts.map +1 -1
  7. package/dist/neutral/config/Actors.d.ts +8 -1
  8. package/dist/neutral/config/Actors.d.ts.map +1 -1
  9. package/dist/neutral/config/Base.d.ts +8 -1
  10. package/dist/neutral/config/Base.d.ts.map +1 -1
  11. package/dist/neutral/config/Config.d.ts +32 -4
  12. package/dist/neutral/config/Config.d.ts.map +1 -1
  13. package/dist/neutral/config/HostActor.d.ts +48 -6
  14. package/dist/neutral/config/HostActor.d.ts.map +1 -1
  15. package/dist/neutral/config/Log.d.ts +1 -1
  16. package/dist/neutral/config/index.d.ts +1 -1
  17. package/dist/neutral/config/index.d.ts.map +1 -1
  18. package/dist/neutral/config/storage/Storage.d.ts +7 -0
  19. package/dist/neutral/config/storage/Storage.d.ts.map +1 -1
  20. package/dist/neutral/config/storage/driver/R2.d.ts +25 -0
  21. package/dist/neutral/config/storage/driver/R2.d.ts.map +1 -0
  22. package/dist/neutral/config/storage/driver/index.d.ts +1 -0
  23. package/dist/neutral/config/storage/driver/index.d.ts.map +1 -1
  24. package/dist/neutral/context/Actor.d.ts +48 -6
  25. package/dist/neutral/context/Actor.d.ts.map +1 -1
  26. package/dist/neutral/context/HostActor.d.ts +48 -6
  27. package/dist/neutral/context/HostActor.d.ts.map +1 -1
  28. package/dist/neutral/getFileConfig.d.ts +16 -2
  29. package/dist/neutral/getFileConfig.d.ts.map +1 -1
  30. package/dist/neutral/getFileConfig.mjs +76 -44
  31. package/dist/neutral/getFileConfig.mjs.map +4 -4
  32. package/dist/neutral/index.d.ts +2 -1
  33. package/dist/neutral/index.d.ts.map +1 -1
  34. package/dist/neutral/index.mjs +820 -358
  35. package/dist/neutral/index.mjs.map +4 -4
  36. package/dist/neutral/model/CreatableProviderContext.zod.d.ts +48 -6
  37. package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +1 -1
  38. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts +13 -2
  39. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts.map +1 -1
  40. package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
  41. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts +33 -0
  42. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts.map +1 -1
  43. package/dist/neutral/summary/model/BlocksStepSummary.d.ts +26 -0
  44. package/dist/neutral/summary/model/BlocksStepSummary.d.ts.map +1 -0
  45. package/dist/neutral/summary/model/index.d.ts +1 -0
  46. package/dist/neutral/summary/model/index.d.ts.map +1 -1
  47. package/dist/neutral/summary/primitives/blocks/blocksMaxStep.d.ts +13 -0
  48. package/dist/neutral/summary/primitives/blocks/blocksMaxStep.d.ts.map +1 -0
  49. package/dist/neutral/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts +13 -0
  50. package/dist/neutral/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts.map +1 -0
  51. package/dist/neutral/summary/primitives/blocks/index.d.ts +3 -0
  52. package/dist/neutral/summary/primitives/blocks/index.d.ts.map +1 -0
  53. package/dist/neutral/summary/primitives/index.d.ts +1 -0
  54. package/dist/neutral/summary/primitives/index.d.ts.map +1 -1
  55. package/dist/neutral/test/index.d.ts +1 -0
  56. package/dist/neutral/test/index.d.ts.map +1 -1
  57. package/dist/neutral/test/index.mjs +1164 -1044
  58. package/dist/neutral/test/index.mjs.map +4 -4
  59. package/package.json +19 -20
  60. package/dist/neutral/driver/cache/LruCacheMap.d.ts +0 -15
  61. package/dist/neutral/driver/cache/LruCacheMap.d.ts.map +0 -1
  62. package/dist/neutral/driver/cache/index.d.ts +0 -2
  63. package/dist/neutral/driver/cache/index.d.ts.map +0 -1
  64. package/dist/neutral/driver/index.d.ts +0 -3
  65. package/dist/neutral/driver/index.d.ts.map +0 -1
  66. package/dist/neutral/driver/memory/MemoryMap.d.ts +0 -14
  67. package/dist/neutral/driver/memory/MemoryMap.d.ts.map +0 -1
  68. package/dist/neutral/driver/memory/index.d.ts +0 -2
  69. package/dist/neutral/driver/memory/index.d.ts.map +0 -1
@@ -30,9 +30,9 @@ export declare const ActorConfigContext: z.ZodMiniObject<{
30
30
  }, z.core.$strip>>;
31
31
  log: z.ZodMiniDefault<import("zod").ZodObject<{
32
32
  logLevel: import("zod").ZodDefault<import("zod").ZodEnum<{
33
- info: "info";
34
33
  error: "error";
35
34
  warn: "warn";
35
+ info: "info";
36
36
  log: "log";
37
37
  debug: "debug";
38
38
  trace: "trace";
@@ -61,6 +61,13 @@ export declare const ActorConfigContext: z.ZodMiniObject<{
61
61
  password: import("zod").ZodOptional<import("zod").ZodString>;
62
62
  username: import("zod").ZodOptional<import("zod").ZodString>;
63
63
  }, z.core.$strip>>;
64
+ r2: import("zod").ZodOptional<import("zod").ZodObject<{
65
+ accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
66
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
67
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
68
+ prefix: import("zod").ZodOptional<import("zod").ZodString>;
69
+ secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
70
+ }, z.core.$strip>>;
64
71
  root: import("zod").ZodOptional<import("zod").ZodString>;
65
72
  }, z.core.$strip>>;
66
73
  telemetry: z.ZodMiniDefault<import("zod").ZodObject<{
@@ -118,7 +125,7 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
118
125
  } | undefined;
119
126
  };
120
127
  log: {
121
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
128
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
122
129
  silent: boolean;
123
130
  };
124
131
  providers: {
@@ -144,6 +151,13 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
144
151
  password?: string | undefined;
145
152
  username?: string | undefined;
146
153
  } | undefined;
154
+ r2?: {
155
+ accessKeyId?: string | undefined;
156
+ accountId?: string | undefined;
157
+ bucket?: string | undefined;
158
+ prefix?: string | undefined;
159
+ secretAccessKey?: string | undefined;
160
+ } | undefined;
147
161
  root?: string | undefined;
148
162
  };
149
163
  telemetry: {
@@ -206,7 +220,7 @@ export declare const asActorConfigContext: {
206
220
  } | undefined;
207
221
  };
208
222
  log: {
209
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
223
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
210
224
  silent: boolean;
211
225
  };
212
226
  providers: {
@@ -232,6 +246,13 @@ export declare const asActorConfigContext: {
232
246
  password?: string | undefined;
233
247
  username?: string | undefined;
234
248
  } | undefined;
249
+ r2?: {
250
+ accessKeyId?: string | undefined;
251
+ accountId?: string | undefined;
252
+ bucket?: string | undefined;
253
+ prefix?: string | undefined;
254
+ secretAccessKey?: string | undefined;
255
+ } | undefined;
235
256
  root?: string | undefined;
236
257
  };
237
258
  telemetry: {
@@ -292,7 +313,7 @@ export declare const asActorConfigContext: {
292
313
  } | undefined;
293
314
  };
294
315
  log: {
295
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
316
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
296
317
  silent: boolean;
297
318
  };
298
319
  providers: {
@@ -318,6 +339,13 @@ export declare const asActorConfigContext: {
318
339
  password?: string | undefined;
319
340
  username?: string | undefined;
320
341
  } | undefined;
342
+ r2?: {
343
+ accessKeyId?: string | undefined;
344
+ accountId?: string | undefined;
345
+ bucket?: string | undefined;
346
+ prefix?: string | undefined;
347
+ secretAccessKey?: string | undefined;
348
+ } | undefined;
321
349
  root?: string | undefined;
322
350
  };
323
351
  telemetry: {
@@ -381,7 +409,7 @@ export declare const toActorConfigContext: {
381
409
  } | undefined;
382
410
  };
383
411
  log: {
384
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
412
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
385
413
  silent: boolean;
386
414
  };
387
415
  providers: {
@@ -407,6 +435,13 @@ export declare const toActorConfigContext: {
407
435
  password?: string | undefined;
408
436
  username?: string | undefined;
409
437
  } | undefined;
438
+ r2?: {
439
+ accessKeyId?: string | undefined;
440
+ accountId?: string | undefined;
441
+ bucket?: string | undefined;
442
+ prefix?: string | undefined;
443
+ secretAccessKey?: string | undefined;
444
+ } | undefined;
410
445
  root?: string | undefined;
411
446
  };
412
447
  telemetry: {
@@ -467,7 +502,7 @@ export declare const toActorConfigContext: {
467
502
  } | undefined;
468
503
  };
469
504
  log: {
470
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
505
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
471
506
  silent: boolean;
472
507
  };
473
508
  providers: {
@@ -493,6 +528,13 @@ export declare const toActorConfigContext: {
493
528
  password?: string | undefined;
494
529
  username?: string | undefined;
495
530
  } | undefined;
531
+ r2?: {
532
+ accessKeyId?: string | undefined;
533
+ accountId?: string | undefined;
534
+ bucket?: string | undefined;
535
+ prefix?: string | undefined;
536
+ secretAccessKey?: string | undefined;
537
+ } | undefined;
496
538
  root?: string | undefined;
497
539
  };
498
540
  telemetry: {
@@ -1 +1 @@
1
- {"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/context/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,mCAAmC;AACnC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6D,CAAA;AAE5F,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,uEAAuE;AACvE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA;AACpE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA;AAC5F,qCAAqC;AACrC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA"}
1
+ {"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/context/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,mCAAmC;AACnC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6D,CAAA;AAE5F,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,uEAAuE;AACvE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA;AACpE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA;AAC5F,qCAAqC;AACrC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA"}
@@ -30,9 +30,9 @@ export declare const HostActorConfigContext: z.ZodMiniObject<{
30
30
  }, z.core.$strip>>;
31
31
  log: z.ZodMiniDefault<import("zod").ZodObject<{
32
32
  logLevel: import("zod").ZodDefault<import("zod").ZodEnum<{
33
- info: "info";
34
33
  error: "error";
35
34
  warn: "warn";
35
+ info: "info";
36
36
  log: "log";
37
37
  debug: "debug";
38
38
  trace: "trace";
@@ -61,6 +61,13 @@ export declare const HostActorConfigContext: z.ZodMiniObject<{
61
61
  password: import("zod").ZodOptional<import("zod").ZodString>;
62
62
  username: import("zod").ZodOptional<import("zod").ZodString>;
63
63
  }, z.core.$strip>>;
64
+ r2: import("zod").ZodOptional<import("zod").ZodObject<{
65
+ accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
66
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
67
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
68
+ prefix: import("zod").ZodOptional<import("zod").ZodString>;
69
+ secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
70
+ }, z.core.$strip>>;
64
71
  root: import("zod").ZodOptional<import("zod").ZodString>;
65
72
  }, z.core.$strip>>;
66
73
  telemetry: z.ZodMiniDefault<import("zod").ZodObject<{
@@ -120,7 +127,7 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
120
127
  } | undefined;
121
128
  };
122
129
  log: {
123
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
130
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
124
131
  silent: boolean;
125
132
  };
126
133
  providers: {
@@ -146,6 +153,13 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
146
153
  password?: string | undefined;
147
154
  username?: string | undefined;
148
155
  } | undefined;
156
+ r2?: {
157
+ accessKeyId?: string | undefined;
158
+ accountId?: string | undefined;
159
+ bucket?: string | undefined;
160
+ prefix?: string | undefined;
161
+ secretAccessKey?: string | undefined;
162
+ } | undefined;
149
163
  root?: string | undefined;
150
164
  };
151
165
  telemetry: {
@@ -210,7 +224,7 @@ export declare const asHostActorConfigContext: {
210
224
  } | undefined;
211
225
  };
212
226
  log: {
213
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
227
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
214
228
  silent: boolean;
215
229
  };
216
230
  providers: {
@@ -236,6 +250,13 @@ export declare const asHostActorConfigContext: {
236
250
  password?: string | undefined;
237
251
  username?: string | undefined;
238
252
  } | undefined;
253
+ r2?: {
254
+ accessKeyId?: string | undefined;
255
+ accountId?: string | undefined;
256
+ bucket?: string | undefined;
257
+ prefix?: string | undefined;
258
+ secretAccessKey?: string | undefined;
259
+ } | undefined;
239
260
  root?: string | undefined;
240
261
  };
241
262
  telemetry: {
@@ -298,7 +319,7 @@ export declare const asHostActorConfigContext: {
298
319
  } | undefined;
299
320
  };
300
321
  log: {
301
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
322
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
302
323
  silent: boolean;
303
324
  };
304
325
  providers: {
@@ -324,6 +345,13 @@ export declare const asHostActorConfigContext: {
324
345
  password?: string | undefined;
325
346
  username?: string | undefined;
326
347
  } | undefined;
348
+ r2?: {
349
+ accessKeyId?: string | undefined;
350
+ accountId?: string | undefined;
351
+ bucket?: string | undefined;
352
+ prefix?: string | undefined;
353
+ secretAccessKey?: string | undefined;
354
+ } | undefined;
327
355
  root?: string | undefined;
328
356
  };
329
357
  telemetry: {
@@ -389,7 +417,7 @@ export declare const toHostActorConfigContext: {
389
417
  } | undefined;
390
418
  };
391
419
  log: {
392
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
420
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
393
421
  silent: boolean;
394
422
  };
395
423
  providers: {
@@ -415,6 +443,13 @@ export declare const toHostActorConfigContext: {
415
443
  password?: string | undefined;
416
444
  username?: string | undefined;
417
445
  } | undefined;
446
+ r2?: {
447
+ accessKeyId?: string | undefined;
448
+ accountId?: string | undefined;
449
+ bucket?: string | undefined;
450
+ prefix?: string | undefined;
451
+ secretAccessKey?: string | undefined;
452
+ } | undefined;
418
453
  root?: string | undefined;
419
454
  };
420
455
  telemetry: {
@@ -477,7 +512,7 @@ export declare const toHostActorConfigContext: {
477
512
  } | undefined;
478
513
  };
479
514
  log: {
480
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
515
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
481
516
  silent: boolean;
482
517
  };
483
518
  providers: {
@@ -503,6 +538,13 @@ export declare const toHostActorConfigContext: {
503
538
  password?: string | undefined;
504
539
  username?: string | undefined;
505
540
  } | undefined;
541
+ r2?: {
542
+ accessKeyId?: string | undefined;
543
+ accountId?: string | undefined;
544
+ bucket?: string | undefined;
545
+ prefix?: string | undefined;
546
+ secretAccessKey?: string | undefined;
547
+ } | undefined;
506
548
  root?: string | undefined;
507
549
  };
508
550
  telemetry: {
@@ -1 +1 @@
1
- {"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/context/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,uCAAuC;AACvC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiE,CAAA;AAEpG,mCAAmC;AACnC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAC5E,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmE,CAAA;AACxG,yCAAyC;AACzC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmE,CAAA"}
1
+ {"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/context/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,uCAAuC;AACvC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiE,CAAA;AAEpG,mCAAmC;AACnC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAC5E,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmE,CAAA;AACxG,yCAAyC;AACzC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmE,CAAA"}
@@ -22,7 +22,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
22
22
  } | undefined;
23
23
  };
24
24
  log: {
25
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
25
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
26
26
  silent: boolean;
27
27
  };
28
28
  providers: {
@@ -48,6 +48,13 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
48
48
  password?: string | undefined;
49
49
  username?: string | undefined;
50
50
  } | undefined;
51
+ r2?: {
52
+ accessKeyId?: string | undefined;
53
+ accountId?: string | undefined;
54
+ bucket?: string | undefined;
55
+ prefix?: string | undefined;
56
+ secretAccessKey?: string | undefined;
57
+ } | undefined;
51
58
  root?: string | undefined;
52
59
  };
53
60
  telemetry: {
@@ -96,7 +103,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
96
103
  } | undefined;
97
104
  };
98
105
  log: {
99
- logLevel: "info" | "error" | "warn" | "log" | "debug" | "trace";
106
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
100
107
  silent: boolean;
101
108
  };
102
109
  providers: {
@@ -122,6 +129,13 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
122
129
  password?: string | undefined;
123
130
  username?: string | undefined;
124
131
  } | undefined;
132
+ r2?: {
133
+ accessKeyId?: string | undefined;
134
+ accountId?: string | undefined;
135
+ bucket?: string | undefined;
136
+ prefix?: string | undefined;
137
+ secretAccessKey?: string | undefined;
138
+ } | undefined;
125
139
  root?: string | undefined;
126
140
  };
127
141
  telemetry: {
@@ -1 +1 @@
1
- {"version":3,"file":"getFileConfig.d.ts","sourceRoot":"","sources":["../../src/getFileConfig.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAsB,aAAa,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB1D"}
1
+ {"version":3,"file":"getFileConfig.d.ts","sourceRoot":"","sources":["../../src/getFileConfig.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAsB,aAAa,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB1D"}
@@ -1,7 +1,7 @@
1
1
  // src/getFileConfig.ts
2
- import { isDefined as isDefined2, isNull } from "@xylabs/sdk-js";
2
+ import { isDefined as isDefined3, isNull } from "@xylabs/sdk-js";
3
3
  import { cosmiconfig } from "cosmiconfig";
4
- import { z as z19 } from "zod/mini";
4
+ import { z as z20 } from "zod/mini";
5
5
 
6
6
  // src/config/Actor.ts
7
7
  import {
@@ -9,10 +9,10 @@ import {
9
9
  zodIsFactory as zodIsFactory2,
10
10
  zodToFactory as zodToFactory2
11
11
  } from "@xylabs/sdk-js";
12
- import { globalRegistry as globalRegistry12, z as z16 } from "zod/mini";
12
+ import { globalRegistry as globalRegistry13, z as z17 } from "zod/mini";
13
13
 
14
14
  // src/config/Base.ts
15
- import { z as z15 } from "zod/mini";
15
+ import { z as z16 } from "zod/mini";
16
16
 
17
17
  // src/config/Chain.ts
18
18
  import { HexZod } from "@xylabs/sdk-js";
@@ -213,11 +213,43 @@ var MongoConfigZod = z11.object({
213
213
  })
214
214
  });
215
215
 
216
- // src/config/storage/Storage.ts
216
+ // src/config/storage/driver/R2.ts
217
+ import { isDefined as isDefined2, isUndefined as isUndefined2 } from "@xylabs/sdk-js";
217
218
  import { globalRegistry as globalRegistry9, z as z12 } from "zod";
218
- var StorageConfigZod = z12.object({
219
+ var R2ConfigZod = z12.object({
220
+ accessKeyId: z12.string().nonempty().optional().register(globalRegistry9, {
221
+ description: "Cloudflare R2 access key id (from an R2 API token)",
222
+ title: "storage.r2.accessKeyId",
223
+ type: "string"
224
+ }),
225
+ accountId: z12.string().nonempty().optional().register(globalRegistry9, {
226
+ description: "Cloudflare account id; determines the R2 endpoint https://<accountId>.r2.cloudflarestorage.com",
227
+ title: "storage.r2.accountId",
228
+ type: "string"
229
+ }),
230
+ bucket: z12.string().nonempty().optional().register(globalRegistry9, {
231
+ description: "Cloudflare R2 bucket name",
232
+ title: "storage.r2.bucket",
233
+ type: "string"
234
+ }),
235
+ prefix: z12.string().nonempty().optional().register(globalRegistry9, {
236
+ description: "Optional key prefix namespacing this store within the bucket",
237
+ title: "storage.r2.prefix",
238
+ type: "string"
239
+ }),
240
+ secretAccessKey: z12.string().nonempty().optional().register(globalRegistry9, {
241
+ description: "Cloudflare R2 secret access key (from an R2 API token)",
242
+ title: "storage.r2.secretAccessKey",
243
+ type: "string"
244
+ })
245
+ });
246
+
247
+ // src/config/storage/Storage.ts
248
+ import { globalRegistry as globalRegistry10, z as z13 } from "zod";
249
+ var StorageConfigZod = z13.object({
219
250
  mongo: MongoConfigZod.optional().describe("Configuration for the MongoD storage driver"),
220
- root: z12.string().optional().register(globalRegistry9, {
251
+ r2: R2ConfigZod.optional().describe("Configuration for the Cloudflare R2 storage driver"),
252
+ root: z13.string().optional().register(globalRegistry10, {
221
253
  description: "Root directory for local storage",
222
254
  title: "storage.root",
223
255
  type: "string"
@@ -225,30 +257,30 @@ var StorageConfigZod = z12.object({
225
257
  }).describe("Storage configuration options");
226
258
 
227
259
  // src/config/Telemetry.ts
228
- import { globalRegistry as globalRegistry10, z as z13 } from "zod";
229
- var MetricsScrapeConfigZod = z13.object({
230
- path: z13.string().default("/metrics").register(globalRegistry10, {
260
+ import { globalRegistry as globalRegistry11, z as z14 } from "zod";
261
+ var MetricsScrapeConfigZod = z14.object({
262
+ path: z14.string().default("/metrics").register(globalRegistry11, {
231
263
  default: "/metrics",
232
264
  description: "Path for the metrics scrape endpoint",
233
265
  title: "telemetry.metrics.scrape.path",
234
266
  type: "string"
235
267
  }),
236
- port: z13.coerce.number().int().positive().optional().register(globalRegistry10, {
268
+ port: z14.coerce.number().int().positive().optional().register(globalRegistry11, {
237
269
  description: "Port for the metrics scrape endpoint",
238
270
  title: "telemetry.metrics.scrape.port",
239
271
  type: "number"
240
272
  })
241
273
  }).describe("Metrics scrape configuration");
242
- var MetricsConfigZod = z13.object({ scrape: MetricsScrapeConfigZod }).describe("Metrics configuration options");
243
- var OpenTelemetryConfigZod = z13.object({
274
+ var MetricsConfigZod = z14.object({ scrape: MetricsScrapeConfigZod }).describe("Metrics configuration options");
275
+ var OpenTelemetryConfigZod = z14.object({
244
276
  // OpenTelemetry options
245
- otlpEndpoint: z13.url().optional().register(globalRegistry10, {
277
+ otlpEndpoint: z14.url().optional().register(globalRegistry11, {
246
278
  description: "OTLP endpoint for exporting telemetry data",
247
279
  title: "telemetry.otel.otlpEndpoint",
248
280
  type: "string"
249
281
  })
250
282
  });
251
- var TelemetryConfigZod = z13.object({
283
+ var TelemetryConfigZod = z14.object({
252
284
  // Metrics configuration
253
285
  metrics: MetricsConfigZod.optional().describe("Metrics configuration"),
254
286
  // OpenTelemetry configuration
@@ -257,31 +289,31 @@ var TelemetryConfigZod = z13.object({
257
289
 
258
290
  // src/config/Validation.ts
259
291
  import { XyoAddressZod as XyoAddressZod2 } from "@xyo-network/address";
260
- import { globalRegistry as globalRegistry11, z as z14 } from "zod";
292
+ import { globalRegistry as globalRegistry12, z as z15 } from "zod";
261
293
 
262
294
  // src/primitives/uncle/findBestUncle.ts
263
295
  var DEFAULT_MIN_CANDIDATES = 1;
264
296
  var DEFAULT_BACKOFF_MS = 12e4;
265
297
 
266
298
  // src/config/Validation.ts
267
- var ValidationConfigZod = z14.object({
268
- allowedRewardRedeemers: z14.array(XyoAddressZod2).optional().register(globalRegistry11, {
299
+ var ValidationConfigZod = z15.object({
300
+ allowedRewardRedeemers: z15.array(XyoAddressZod2).optional().register(globalRegistry12, {
269
301
  description: "List of allowed reward redeemer addresses, if undefined anyone can participate",
270
302
  title: "allowedRewardRedeemers",
271
303
  type: "array"
272
304
  }),
273
- allowedRewardEscrowAccountSigners: z14.array(XyoAddressZod2).optional().register(globalRegistry11, {
305
+ allowedRewardEscrowAccountSigners: z15.array(XyoAddressZod2).optional().register(globalRegistry12, {
274
306
  description: "List of allowed reward escrow account signer addresses, if undefined anyone can participate",
275
307
  title: "allowedRewardEscrowAccountSigners",
276
308
  type: "array"
277
309
  }),
278
- minCandidates: z14.coerce.number().default(DEFAULT_MIN_CANDIDATES).register(globalRegistry11, {
310
+ minCandidates: z15.coerce.number().default(DEFAULT_MIN_CANDIDATES).register(globalRegistry12, {
279
311
  default: DEFAULT_MIN_CANDIDATES,
280
312
  description: "Minimum number of uncle candidates before selecting the best uncle",
281
313
  title: "validation.minCandidates",
282
314
  type: "number"
283
315
  }),
284
- backoffMs: z14.coerce.number().default(DEFAULT_BACKOFF_MS).register(globalRegistry11, {
316
+ backoffMs: z15.coerce.number().default(DEFAULT_BACKOFF_MS).register(globalRegistry12, {
285
317
  default: DEFAULT_BACKOFF_MS,
286
318
  description: "Back-off timeout in ms. If head age exceeds this, minCandidates is ignored",
287
319
  title: "validation.backoffMs",
@@ -290,26 +322,26 @@ var ValidationConfigZod = z14.object({
290
322
  });
291
323
 
292
324
  // src/config/Base.ts
293
- var BaseConfigZod = z15.object({
294
- chain: z15._default(ChainConfigZod, ChainConfigZod.parse({})).check(z15.describe("Configuration for the chain")),
295
- dataLake: z15.optional(DataLakeConfigZod).check(z15.describe("Configuration for data lakes")),
296
- evm: z15._default(EvmConfigZod, EvmConfigZod.parse({})).check(z15.describe("Configuration for EVM-backed services")),
297
- log: z15._default(LogConfigZod, LogConfigZod.parse({})).check(z15.describe("Configuration for logging")),
298
- providers: z15._default(ProvidersConfigZod, ProvidersConfigZod.parse([])).check(z15.describe("Configuration for providers")),
299
- remote: z15._default(RemoteConfigZod, RemoteConfigZod.parse({})).check(z15.describe("Configuration for remote services")),
300
- storage: z15._default(StorageConfigZod, StorageConfigZod.parse({})).check(z15.describe("Configuration for the storage")),
301
- telemetry: z15._default(TelemetryConfigZod, TelemetryConfigZod.parse({})).check(z15.describe("Configuration for telemetry")),
302
- validation: z15._default(ValidationConfigZod, ValidationConfigZod.parse({})).check(z15.describe("Configuration for validation"))
325
+ var BaseConfigZod = z16.object({
326
+ chain: z16._default(ChainConfigZod, ChainConfigZod.parse({})).check(z16.describe("Configuration for the chain")),
327
+ dataLake: z16.optional(DataLakeConfigZod).check(z16.describe("Configuration for data lakes")),
328
+ evm: z16._default(EvmConfigZod, EvmConfigZod.parse({})).check(z16.describe("Configuration for EVM-backed services")),
329
+ log: z16._default(LogConfigZod, LogConfigZod.parse({})).check(z16.describe("Configuration for logging")),
330
+ providers: z16._default(ProvidersConfigZod, ProvidersConfigZod.parse([])).check(z16.describe("Configuration for providers")),
331
+ remote: z16._default(RemoteConfigZod, RemoteConfigZod.parse({})).check(z16.describe("Configuration for remote services")),
332
+ storage: z16._default(StorageConfigZod, StorageConfigZod.parse({})).check(z16.describe("Configuration for the storage")),
333
+ telemetry: z16._default(TelemetryConfigZod, TelemetryConfigZod.parse({})).check(z16.describe("Configuration for telemetry")),
334
+ validation: z16._default(ValidationConfigZod, ValidationConfigZod.parse({})).check(z16.describe("Configuration for validation"))
303
335
  });
304
336
 
305
337
  // src/config/Actor.ts
306
- var AccountPathZod = z16.string().check(z16.regex(
338
+ var AccountPathZod = z17.string().check(z17.regex(
307
339
  /^(m(\/\d+'?)+|\d+'?(\/\d+'?)*)$/,
308
340
  `Invalid BIP-32 derivation path. Use either an absolute path like "m/44'/60'/0'/0/0" or a relative path like "0", "0/1", or "44'/60'/0'/0/0".`
309
341
  ));
310
- var ActorConfigZod = z16.extend(BaseConfigZod, {
311
- name: z16.string(),
312
- accountPath: z16.optional(AccountPathZod).register(globalRegistry12, {
342
+ var ActorConfigZod = z17.extend(BaseConfigZod, {
343
+ name: z17.string(),
344
+ accountPath: z17.optional(AccountPathZod).register(globalRegistry13, {
313
345
  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.',
314
346
  title: "accountPath",
315
347
  type: "string"
@@ -320,22 +352,22 @@ var asActorConfig = zodAsFactory2(ActorConfigZod, "asActorConfig");
320
352
  var toActorConfig = zodToFactory2(ActorConfigZod, "toActorConfig");
321
353
 
322
354
  // src/config/Actors.ts
323
- import { z as z17 } from "zod/mini";
324
- var ActorsConfigZod = z17._default(
325
- z17.array(z17.looseObject(ActorConfigZod.shape)).check(z17.describe("Actor-specific configurations that override the base configuration when the actor is running")),
355
+ import { z as z18 } from "zod/mini";
356
+ var ActorsConfigZod = z18._default(
357
+ z18.array(z18.looseObject(ActorConfigZod.shape)).check(z18.describe("Actor-specific configurations that override the base configuration when the actor is running")),
326
358
  []
327
359
  );
328
360
 
329
361
  // src/config/Config.ts
330
- import { globalRegistry as globalRegistry13, z as z18 } from "zod/mini";
331
- var ConfigZod = z18.extend(BaseConfigZod, {
362
+ import { globalRegistry as globalRegistry14, z as z19 } from "zod/mini";
363
+ var ConfigZod = z19.extend(BaseConfigZod, {
332
364
  actors: ActorsConfigZod,
333
- healthCheckPort: z18.optional(z18.coerce.number()).register(globalRegistry13, {
365
+ healthCheckPort: z19.optional(z19.coerce.number()).register(globalRegistry14, {
334
366
  description: "Port for the system-wide health, readiness, and liveness endpoints (/healthz, /livez, /readyz). Set to 0 to disable.",
335
367
  title: "healthCheckPort",
336
368
  type: "number"
337
369
  })
338
- }).check(z18.describe("The complete configuration for the protocol, including global settings and actor-specific overrides"));
370
+ }).check(z19.describe("The complete configuration for the protocol, including global settings and actor-specific overrides"));
339
371
 
340
372
  // src/getFileConfig.ts
341
373
  var configName = "xyo";
@@ -351,8 +383,8 @@ async function getFileConfig(searchPlaces) {
351
383
  const result = (await explorer.search())?.config;
352
384
  if (!isNull(result)) {
353
385
  const section = result[configSection];
354
- if (isDefined2(section) && typeof section === "object") {
355
- return z19.looseObject(ConfigZod.shape).parse(section);
386
+ if (isDefined3(section) && typeof section === "object") {
387
+ return z20.looseObject(ConfigZod.shape).parse(section);
356
388
  }
357
389
  }
358
390
  return ConfigZod.parse({});