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

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 (46) hide show
  1. package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +3 -3
  2. package/dist/neutral/block/hydrate/createBoundWitnessHydrator.d.ts +12 -12
  3. package/dist/neutral/block/primitives/frames/deepCalculateFramesFromRange.d.ts +7 -1
  4. package/dist/neutral/block/primitives/frames/deepCalculateFramesFromRange.d.ts.map +1 -1
  5. package/dist/neutral/config/Actor.d.ts +18 -18
  6. package/dist/neutral/config/Actors.d.ts +3 -3
  7. package/dist/neutral/config/Base.d.ts +3 -3
  8. package/dist/neutral/config/Chain.d.ts +1 -1
  9. package/dist/neutral/config/Config.d.ts +12 -12
  10. package/dist/neutral/config/HostActor.d.ts +18 -18
  11. package/dist/neutral/config/Validation.d.ts +2 -2
  12. package/dist/neutral/context/Actor.d.ts +18 -18
  13. package/dist/neutral/context/HostActor.d.ts +18 -18
  14. package/dist/neutral/getFileConfig.d.ts +6 -6
  15. package/dist/neutral/index.mjs +46 -32
  16. package/dist/neutral/index.mjs.map +4 -4
  17. package/dist/neutral/model/CreatableProviderContext.zod.d.ts +18 -18
  18. package/dist/neutral/payloads/netBalancesForPayloads.d.ts +1 -1
  19. package/dist/neutral/payloads/netBalancesForPayloads.d.ts.map +1 -1
  20. package/dist/neutral/payloads/netSchemasForPayloads.d.ts +1 -1
  21. package/dist/neutral/payloads/netSchemasForPayloads.d.ts.map +1 -1
  22. package/dist/neutral/primitives/uncle/findUncles.d.ts +2 -2
  23. package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +8 -8
  24. package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +1 -1
  25. package/dist/neutral/simple/block/SimpleBlockViewer.d.ts +2 -2
  26. package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts +2 -2
  27. package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts +2 -2
  28. package/dist/neutral/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts +10 -10
  29. package/dist/neutral/summary/primitives/balances/balancesMaxStep.d.ts +9 -0
  30. package/dist/neutral/summary/primitives/balances/balancesMaxStep.d.ts.map +1 -0
  31. package/dist/neutral/summary/primitives/balances/balancesSummary.d.ts.map +1 -1
  32. package/dist/neutral/summary/primitives/balances/index.d.ts +1 -0
  33. package/dist/neutral/summary/primitives/balances/index.d.ts.map +1 -1
  34. package/dist/neutral/summary/primitives/schemas/index.d.ts +1 -0
  35. package/dist/neutral/summary/primitives/schemas/index.d.ts.map +1 -1
  36. package/dist/neutral/summary/primitives/schemas/schemasMaxStep.d.ts +8 -0
  37. package/dist/neutral/summary/primitives/schemas/schemasMaxStep.d.ts.map +1 -0
  38. package/dist/neutral/summary/primitives/schemas/schemasSummary.d.ts.map +1 -1
  39. package/dist/neutral/summary/primitives/transfers/index.d.ts +1 -0
  40. package/dist/neutral/summary/primitives/transfers/index.d.ts.map +1 -1
  41. package/dist/neutral/summary/primitives/transfers/transfersMaxStep.d.ts +10 -0
  42. package/dist/neutral/summary/primitives/transfers/transfersMaxStep.d.ts.map +1 -0
  43. package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts.map +1 -1
  44. package/dist/neutral/transaction/TransactionBuilder.d.ts +6 -6
  45. package/dist/neutral/transaction/signTransaction.d.ts +3 -3
  46. package/package.json +11 -11
@@ -15,7 +15,7 @@ export declare const ActorConfigContext: z.ZodMiniObject<{
15
15
  readonly __hex: true;
16
16
  } & {
17
17
  readonly __address: true;
18
- }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>;
18
+ }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuantAddress, string>>]>>;
19
19
  }, z.core.$strip>>;
20
20
  dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
21
21
  evm: z.ZodMiniDefault<import("zod").ZodObject<{
@@ -79,12 +79,12 @@ export declare const ActorConfigContext: z.ZodMiniObject<{
79
79
  readonly __hex: true;
80
80
  } & {
81
81
  readonly __address: true;
82
- }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
82
+ }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuantAddress, string>>]>>>;
83
83
  allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
84
84
  readonly __hex: true;
85
85
  } & {
86
86
  readonly __address: true;
87
- }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
87
+ }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuantAddress, string>>]>>>;
88
88
  minCandidates: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
89
89
  backoffMs: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
90
90
  }, z.core.$strip>>;
@@ -105,7 +105,7 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
105
105
  readonly __hex: true;
106
106
  } & {
107
107
  readonly __address: true;
108
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
108
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
109
109
  };
110
110
  evm: {
111
111
  chainId?: string | undefined;
@@ -164,12 +164,12 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
164
164
  readonly __hex: true;
165
165
  } & {
166
166
  readonly __address: true;
167
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
167
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
168
168
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
169
169
  readonly __hex: true;
170
170
  } & {
171
171
  readonly __address: true;
172
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
172
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
173
173
  };
174
174
  name: string;
175
175
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
@@ -193,7 +193,7 @@ export declare const asActorConfigContext: {
193
193
  readonly __hex: true;
194
194
  } & {
195
195
  readonly __address: true;
196
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
196
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
197
197
  };
198
198
  evm: {
199
199
  chainId?: string | undefined;
@@ -252,12 +252,12 @@ export declare const asActorConfigContext: {
252
252
  readonly __hex: true;
253
253
  } & {
254
254
  readonly __address: true;
255
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
255
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
256
256
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
257
257
  readonly __hex: true;
258
258
  } & {
259
259
  readonly __address: true;
260
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
260
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
261
261
  };
262
262
  name: string;
263
263
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
@@ -279,7 +279,7 @@ export declare const asActorConfigContext: {
279
279
  readonly __hex: true;
280
280
  } & {
281
281
  readonly __address: true;
282
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
282
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
283
283
  };
284
284
  evm: {
285
285
  chainId?: string | undefined;
@@ -338,12 +338,12 @@ export declare const asActorConfigContext: {
338
338
  readonly __hex: true;
339
339
  } & {
340
340
  readonly __address: true;
341
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
341
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
342
342
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
343
343
  readonly __hex: true;
344
344
  } & {
345
345
  readonly __address: true;
346
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
346
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
347
347
  };
348
348
  name: string;
349
349
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
@@ -368,7 +368,7 @@ export declare const toActorConfigContext: {
368
368
  readonly __hex: true;
369
369
  } & {
370
370
  readonly __address: true;
371
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
371
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
372
372
  };
373
373
  evm: {
374
374
  chainId?: string | undefined;
@@ -427,12 +427,12 @@ export declare const toActorConfigContext: {
427
427
  readonly __hex: true;
428
428
  } & {
429
429
  readonly __address: true;
430
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
430
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
431
431
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
432
432
  readonly __hex: true;
433
433
  } & {
434
434
  readonly __address: true;
435
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
435
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
436
436
  };
437
437
  name: string;
438
438
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
@@ -454,7 +454,7 @@ export declare const toActorConfigContext: {
454
454
  readonly __hex: true;
455
455
  } & {
456
456
  readonly __address: true;
457
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
457
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
458
458
  };
459
459
  evm: {
460
460
  chainId?: string | undefined;
@@ -513,12 +513,12 @@ export declare const toActorConfigContext: {
513
513
  readonly __hex: true;
514
514
  } & {
515
515
  readonly __address: true;
516
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
516
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
517
517
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
518
518
  readonly __hex: true;
519
519
  } & {
520
520
  readonly __address: true;
521
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
521
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
522
522
  };
523
523
  name: string;
524
524
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
@@ -15,7 +15,7 @@ export declare const HostActorConfigContext: z.ZodMiniObject<{
15
15
  readonly __hex: true;
16
16
  } & {
17
17
  readonly __address: true;
18
- }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>;
18
+ }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuantAddress, string>>]>>;
19
19
  }, z.core.$strip>>;
20
20
  dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
21
21
  evm: z.ZodMiniDefault<import("zod").ZodObject<{
@@ -79,12 +79,12 @@ export declare const HostActorConfigContext: z.ZodMiniObject<{
79
79
  readonly __hex: true;
80
80
  } & {
81
81
  readonly __address: true;
82
- }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
82
+ }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuantAddress, string>>]>>>;
83
83
  allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
84
84
  readonly __hex: true;
85
85
  } & {
86
86
  readonly __address: true;
87
- }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
87
+ }, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuantAddress, string>>]>>>;
88
88
  minCandidates: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
89
89
  backoffMs: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
90
90
  }, z.core.$strip>>;
@@ -107,7 +107,7 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
107
107
  readonly __hex: true;
108
108
  } & {
109
109
  readonly __address: true;
110
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
110
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
111
111
  };
112
112
  evm: {
113
113
  chainId?: string | undefined;
@@ -166,12 +166,12 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
166
166
  readonly __hex: true;
167
167
  } & {
168
168
  readonly __address: true;
169
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
169
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
170
170
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
171
171
  readonly __hex: true;
172
172
  } & {
173
173
  readonly __address: true;
174
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
174
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
175
175
  };
176
176
  name: string;
177
177
  host: string;
@@ -197,7 +197,7 @@ export declare const asHostActorConfigContext: {
197
197
  readonly __hex: true;
198
198
  } & {
199
199
  readonly __address: true;
200
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
200
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
201
201
  };
202
202
  evm: {
203
203
  chainId?: string | undefined;
@@ -256,12 +256,12 @@ export declare const asHostActorConfigContext: {
256
256
  readonly __hex: true;
257
257
  } & {
258
258
  readonly __address: true;
259
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
259
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
260
260
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
261
261
  readonly __hex: true;
262
262
  } & {
263
263
  readonly __address: true;
264
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
264
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
265
265
  };
266
266
  name: string;
267
267
  host: string;
@@ -285,7 +285,7 @@ export declare const asHostActorConfigContext: {
285
285
  readonly __hex: true;
286
286
  } & {
287
287
  readonly __address: true;
288
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
288
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
289
289
  };
290
290
  evm: {
291
291
  chainId?: string | undefined;
@@ -344,12 +344,12 @@ export declare const asHostActorConfigContext: {
344
344
  readonly __hex: true;
345
345
  } & {
346
346
  readonly __address: true;
347
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
347
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
348
348
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
349
349
  readonly __hex: true;
350
350
  } & {
351
351
  readonly __address: true;
352
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
352
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
353
353
  };
354
354
  name: string;
355
355
  host: string;
@@ -376,7 +376,7 @@ export declare const toHostActorConfigContext: {
376
376
  readonly __hex: true;
377
377
  } & {
378
378
  readonly __address: true;
379
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
379
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
380
380
  };
381
381
  evm: {
382
382
  chainId?: string | undefined;
@@ -435,12 +435,12 @@ export declare const toHostActorConfigContext: {
435
435
  readonly __hex: true;
436
436
  } & {
437
437
  readonly __address: true;
438
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
438
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
439
439
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
440
440
  readonly __hex: true;
441
441
  } & {
442
442
  readonly __address: true;
443
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
443
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
444
444
  };
445
445
  name: string;
446
446
  host: string;
@@ -464,7 +464,7 @@ export declare const toHostActorConfigContext: {
464
464
  readonly __hex: true;
465
465
  } & {
466
466
  readonly __address: true;
467
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
467
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
468
468
  };
469
469
  evm: {
470
470
  chainId?: string | undefined;
@@ -523,12 +523,12 @@ export declare const toHostActorConfigContext: {
523
523
  readonly __hex: true;
524
524
  } & {
525
525
  readonly __address: true;
526
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
526
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
527
527
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
528
528
  readonly __hex: true;
529
529
  } & {
530
530
  readonly __address: true;
531
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
531
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
532
532
  };
533
533
  name: string;
534
534
  host: string;
@@ -9,7 +9,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
9
9
  readonly __hex: true;
10
10
  } & {
11
11
  readonly __address: true;
12
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
12
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
13
13
  };
14
14
  evm: {
15
15
  chainId?: string | undefined;
@@ -68,12 +68,12 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
68
68
  readonly __hex: true;
69
69
  } & {
70
70
  readonly __address: true;
71
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
71
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
72
72
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
73
73
  readonly __hex: true;
74
74
  } & {
75
75
  readonly __address: true;
76
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
76
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
77
77
  };
78
78
  actors: {
79
79
  [x: string]: unknown;
@@ -83,7 +83,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
83
83
  readonly __hex: true;
84
84
  } & {
85
85
  readonly __address: true;
86
- }) | import("@xyo-network/address").XyoQuant1Address | undefined;
86
+ }) | import("@xyo-network/address").XyoQuantAddress | undefined;
87
87
  };
88
88
  evm: {
89
89
  chainId?: string | undefined;
@@ -142,12 +142,12 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
142
142
  readonly __hex: true;
143
143
  } & {
144
144
  readonly __address: true;
145
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
145
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
146
146
  allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
147
147
  readonly __hex: true;
148
148
  } & {
149
149
  readonly __address: true;
150
- }) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
150
+ }) | import("@xyo-network/address").XyoQuantAddress)[] | undefined;
151
151
  };
152
152
  name: string;
153
153
  dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
@@ -873,10 +873,11 @@ function calculateFramesFromRange(range, step) {
873
873
  }
874
874
 
875
875
  // src/block/primitives/frames/deepCalculateFramesFromRange.ts
876
- function deepCalculateFramesFromRange(range, startingStep = 4) {
876
+ import { StepSizes as StepSizes2 } from "@xyo-network/xl1-protocol-lib";
877
+ function deepCalculateFramesFromRange(range, startingStep = StepSizes2.length - 1) {
877
878
  const fitted = [];
878
879
  let remaining = [range];
879
- const actualStartingStep = Math.min(startingStep, 4);
880
+ const actualStartingStep = Math.min(startingStep, StepSizes2.length - 1);
880
881
  for (let step = actualStartingStep; step >= 0; step--) {
881
882
  const newRemaining = [];
882
883
  for (const range2 of remaining) {
@@ -1502,11 +1503,11 @@ import { XyoAddressZod as XyoAddressZod2 } from "@xyo-network/address";
1502
1503
  import { globalRegistry as globalRegistry11, z as z15 } from "zod";
1503
1504
 
1504
1505
  // src/primitives/block/range/blockRangeSteps.ts
1505
- import { asXL1BlockNumber as asXL1BlockNumber2, StepSizes as StepSizes2 } from "@xyo-network/xl1-protocol-lib";
1506
+ import { asXL1BlockNumber as asXL1BlockNumber2, StepSizes as StepSizes3 } from "@xyo-network/xl1-protocol-lib";
1506
1507
  function blockRangeSteps(range, steps) {
1507
1508
  const result = [];
1508
1509
  for (const step of steps) {
1509
- const stepSize2 = StepSizes2[step];
1510
+ const stepSize2 = StepSizes3[step];
1510
1511
  const startOfFirstStepCandidate = range[0] - range[0] % stepSize2 + stepSize2;
1511
1512
  const startOfFirstStep = asXL1BlockNumber2(
1512
1513
  startOfFirstStepCandidate,
@@ -1619,7 +1620,7 @@ import { assertEx as assertEx9 } from "@xylabs/sdk-js";
1619
1620
  import {
1620
1621
  asXL1BlockRange as asXL1BlockRange2,
1621
1622
  isValidStep,
1622
- StepSizes as StepSizes3
1623
+ StepSizes as StepSizes4
1623
1624
  } from "@xyo-network/xl1-protocol-lib";
1624
1625
  var stepRate = async (viewer, start, step, count = 1, timeUnit) => {
1625
1626
  const end = start + step * count;
@@ -1628,7 +1629,7 @@ var stepRate = async (viewer, start, step, count = 1, timeUnit) => {
1628
1629
  };
1629
1630
  var calculateStepSizeRate = async (viewer, start, stepIndex, count = 1, timeUnit) => {
1630
1631
  assertEx9(isValidStep(stepIndex), () => `Invalid step index: ${stepIndex}`);
1631
- const step = StepSizes3[stepIndex];
1632
+ const step = StepSizes4[stepIndex];
1632
1633
  return await stepRate(viewer, start, step, count, timeUnit);
1633
1634
  };
1634
1635
 
@@ -1768,23 +1769,23 @@ function mergeTransfers(transfers) {
1768
1769
  }
1769
1770
 
1770
1771
  // src/primitives/step/stepBlockRange.ts
1771
- import { asXL1BlockRange as asXL1BlockRange4, StepSizes as StepSizes4 } from "@xyo-network/xl1-protocol-lib";
1772
+ import { asXL1BlockRange as asXL1BlockRange4, StepSizes as StepSizes5 } from "@xyo-network/xl1-protocol-lib";
1772
1773
  function stepBlockRange({ block, step }) {
1773
- const stepSize2 = StepSizes4[step];
1774
+ const stepSize2 = StepSizes5[step];
1774
1775
  const start = block - stepSize2;
1775
1776
  return asXL1BlockRange4([start, start + stepSize2 - 1], { name: "stepBlockRange" });
1776
1777
  }
1777
1778
 
1778
1779
  // src/primitives/step/stepTransferIndex.ts
1779
1780
  import { assertEx as assertEx12 } from "@xylabs/sdk-js";
1780
- import { StepSizes as StepSizes5 } from "@xyo-network/xl1-protocol-lib";
1781
+ import { StepSizes as StepSizes6 } from "@xyo-network/xl1-protocol-lib";
1781
1782
  function stepTransferIndex(block, step) {
1782
1783
  let rewardTransferCount = 0;
1783
1784
  let rewardTransferIndex = -1;
1784
- for (let i = 3; i < StepSizes5.length; i++) {
1785
- const stepSize2 = StepSizes5[i];
1785
+ for (let i = 3; i < StepSizes6.length; i++) {
1786
+ const stepSize2 = StepSizes6[i];
1786
1787
  if (block % stepSize2 === 0) {
1787
- if (stepSize2 === StepSizes5[step]) {
1788
+ if (stepSize2 === StepSizes6[step]) {
1788
1789
  rewardTransferIndex = rewardTransferCount;
1789
1790
  }
1790
1791
  rewardTransferCount++;
@@ -1796,9 +1797,9 @@ function stepTransferIndex(block, step) {
1796
1797
 
1797
1798
  // src/primitives/chain/step/stepRewardBlock.ts
1798
1799
  import { assertEx as assertEx13 } from "@xylabs/sdk-js";
1799
- import { StepSizes as StepSizes6 } from "@xyo-network/xl1-protocol-lib";
1800
+ import { StepSizes as StepSizes7 } from "@xyo-network/xl1-protocol-lib";
1800
1801
  async function stepRewardBlock(context, blockViewer, { block, step }) {
1801
- assertEx13(block % StepSizes6[step] === 0, () => `Block must be the first block of the step [${StepSizes6[step]}], got ${block}`);
1802
+ assertEx13(block % StepSizes7[step] === 0, () => `Block must be the first block of the step [${StepSizes7[step]}], got ${block}`);
1802
1803
  return assertEx13(await blockViewer.blockByNumber(block), () => `Could not find block for block number ${block}`);
1803
1804
  }
1804
1805
 
@@ -3618,7 +3619,7 @@ import {
3618
3619
  BlockViewerMoniker,
3619
3620
  isChainQualifiedHeadConfig as isChainQualifiedHeadConfig4,
3620
3621
  isChainQualifiedRangeConfig as isChainQualifiedRangeConfig4,
3621
- StepSizes as StepSizes10,
3622
+ StepSizes as StepSizes12,
3622
3623
  TransferSchema as TransferSchema2
3623
3624
  } from "@xyo-network/xl1-protocol-lib";
3624
3625
  import { Semaphore } from "async-mutex";
@@ -3674,10 +3675,13 @@ var isTransfersStepSummaryWithStorageMeta = (value) => {
3674
3675
  };
3675
3676
  var asTransfersStepSummaryWithStorageMeta = AsObjectFactory7.create(isTransfersStepSummaryWithStorageMeta);
3676
3677
 
3678
+ // src/summary/primitives/balances/balancesMaxStep.ts
3679
+ var balancesMaxStep = 5;
3680
+
3677
3681
  // src/summary/primitives/balances/balancesStepSummaryFromRange.ts
3678
3682
  import { assertEx as assertEx26, spanRootAsync as spanRootAsync2 } from "@xylabs/sdk-js";
3679
3683
  import { isAnyPayload as isAnyPayload3 } from "@xyo-network/sdk-js";
3680
- import { asXL1BlockNumber as asXL1BlockNumber5, StepSizes as StepSizes7 } from "@xyo-network/xl1-protocol-lib";
3684
+ import { asXL1BlockNumber as asXL1BlockNumber5, StepSizes as StepSizes8 } from "@xyo-network/xl1-protocol-lib";
3681
3685
  async function balancesStepSummaryFromRange(context, semaphores, blockViewer, summaryMap, range) {
3682
3686
  const cacheKey = `${range[0]}|${range[1]}`;
3683
3687
  return await withContextCacheResponse(context, "balancesStepSummaryFromRange", cacheKey, async () => {
@@ -3698,8 +3702,8 @@ async function balancesStepSummaryFromRange(context, semaphores, blockViewer, su
3698
3702
  balances
3699
3703
  };
3700
3704
  }, { ...context, timeBudgetLimit: 500 }) : await spanRootAsync2(`balancesStepSummaryFromRange.frameSize>1[${key}]`, async () => {
3701
- const step = StepSizes7.indexOf(asXL1BlockNumber5(frameSize, true));
3702
- assertEx26(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes7.join(", ")}`);
3705
+ const step = StepSizes8.indexOf(asXL1BlockNumber5(frameSize, true));
3706
+ assertEx26(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes8.join(", ")}`);
3703
3707
  const summaryResult = await summaryMap.get(`${frameHead._hash}|${frameSize}`);
3704
3708
  if (isAnyPayload3(summaryResult)) {
3705
3709
  return summaryResult;
@@ -3760,7 +3764,7 @@ async function balancesSummary(context, semaphores, blockViewer, summaryMap, con
3760
3764
  const ranges = deepCalculateFramesFromRange(asXL1BlockRange7(
3761
3765
  range,
3762
3766
  { name: "balancesSummary" }
3763
- ));
3767
+ ), balancesMaxStep);
3764
3768
  const summaries = await Promise.all(ranges.map((range2) => balancesStepSummaryFromRange(context, semaphores, blockViewer, summaryMap, range2)));
3765
3769
  const balances = {};
3766
3770
  for (const summary of summaries) {
@@ -3773,6 +3777,10 @@ async function balancesSummary(context, semaphores, blockViewer, summaryMap, con
3773
3777
  }, { ...context, timeBudgetLimit: 500 });
3774
3778
  }
3775
3779
 
3780
+ // src/summary/primitives/schemas/schemasMaxStep.ts
3781
+ import { StepSizes as StepSizes9 } from "@xyo-network/xl1-protocol-lib";
3782
+ var schemasMaxStep = StepSizes9.length - 1;
3783
+
3776
3784
  // src/summary/primitives/schemas/schemasStepSummaryFromRange.ts
3777
3785
  import { assertEx as assertEx28 } from "@xylabs/sdk-js";
3778
3786
  import {
@@ -3781,7 +3789,7 @@ import {
3781
3789
  isHashMeta,
3782
3790
  PayloadBuilder as PayloadBuilder17
3783
3791
  } from "@xyo-network/sdk-js";
3784
- import { StepSizes as StepSizes8 } from "@xyo-network/xl1-protocol-lib";
3792
+ import { StepSizes as StepSizes10 } from "@xyo-network/xl1-protocol-lib";
3785
3793
  async function schemasStepSummaryFromRange(context, semaphores, blockViewer, summaryMap, range) {
3786
3794
  const [frameHead] = assertEx28(await blockViewer.blockByNumber(range[1]), () => `Block not found for number: ${range[1]}`);
3787
3795
  const frameSize = range[1] - range[0] + 1;
@@ -3803,8 +3811,8 @@ async function schemasStepSummaryFromRange(context, semaphores, blockViewer, sum
3803
3811
  schemas
3804
3812
  });
3805
3813
  } else {
3806
- const step = StepSizes8.indexOf(frameSize);
3807
- assertEx28(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes8.join(", ")}`);
3814
+ const step = StepSizes10.indexOf(frameSize);
3815
+ assertEx28(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes10.join(", ")}`);
3808
3816
  const summaryResult = await summaryMap.get(`${frameHead._hash}|${frameSize}`);
3809
3817
  if (isAnyPayload4(summaryResult)) {
3810
3818
  result = summaryResult;
@@ -3859,7 +3867,7 @@ async function schemasSummary(context, semaphores, blockViewer, summaryMap, conf
3859
3867
  const ranges = deepCalculateFramesFromRange(asXL1BlockRange8(
3860
3868
  range,
3861
3869
  { name: "schemasSummary" }
3862
- ));
3870
+ ), schemasMaxStep);
3863
3871
  const summaries = await Promise.all(ranges.map((range2) => schemasStepSummaryFromRange(context, semaphores, blockViewer, summaryMap, range2)));
3864
3872
  const results = {};
3865
3873
  for (const summary of summaries) {
@@ -3872,10 +3880,13 @@ async function schemasSummary(context, semaphores, blockViewer, summaryMap, conf
3872
3880
  }, context);
3873
3881
  }
3874
3882
 
3883
+ // src/summary/primitives/transfers/transfersMaxStep.ts
3884
+ var transfersMaxStep = 4;
3885
+
3875
3886
  // src/summary/primitives/transfers/transfersStepSummaryFromRange.ts
3876
3887
  import { assertEx as assertEx30, spanRootAsync as spanRootAsync5 } from "@xylabs/sdk-js";
3877
3888
  import { isAnyPayload as isAnyPayload5 } from "@xyo-network/sdk-js";
3878
- import { asXL1BlockNumber as asXL1BlockNumber6, StepSizes as StepSizes9 } from "@xyo-network/xl1-protocol-lib";
3889
+ import { asXL1BlockNumber as asXL1BlockNumber6, StepSizes as StepSizes11 } from "@xyo-network/xl1-protocol-lib";
3879
3890
  function transfersSummaryKey(frameHeadHash, frameSize) {
3880
3891
  return `${frameHeadHash}|${frameSize}`;
3881
3892
  }
@@ -3902,8 +3913,8 @@ async function transfersStepSummaryFromRange(context, semaphores, blockViewer, s
3902
3913
  transfers
3903
3914
  };
3904
3915
  } else {
3905
- const step = StepSizes9.indexOf(asXL1BlockNumber6(frameSize, true));
3906
- assertEx30(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes9.join(", ")}`);
3916
+ const step = StepSizes11.indexOf(asXL1BlockNumber6(frameSize, true));
3917
+ assertEx30(step !== -1, () => `Invalid step size: ${frameSize}. Must be one of ${StepSizes11.join(", ")}`);
3907
3918
  const key = transfersSummaryKey(frameHead._hash, frameSize);
3908
3919
  const summaryResult = await summaryMap.get(key);
3909
3920
  if (isAnyPayload5(summaryResult)) {
@@ -3971,7 +3982,7 @@ async function transfersSummary(context, semaphores, blockViewer, summaryMap, co
3971
3982
  const ranges = deepCalculateFramesFromRange(asXL1BlockRange9(
3972
3983
  range,
3973
3984
  { name: "transfersSummary" }
3974
- ));
3985
+ ), transfersMaxStep);
3975
3986
  const summaries = await Promise.all(ranges.map((range2) => transfersStepSummaryFromRange(context, semaphores, blockViewer, summaryMap, range2)));
3976
3987
  const transfers = {};
3977
3988
  for (const summary of summaries) {
@@ -3991,9 +4002,9 @@ async function transfersSummary(context, semaphores, blockViewer, summaryMap, co
3991
4002
  // src/simple/accountBalance/SimpleAccountBalanceViewer.ts
3992
4003
  var SimpleAccountBalanceViewer = class extends AbstractCreatableProvider {
3993
4004
  moniker = SimpleAccountBalanceViewer.defaultMoniker;
3994
- _balanceStepSemaphores = StepSizes10.map(() => new Semaphore(20));
4005
+ _balanceStepSemaphores = StepSizes12.map(() => new Semaphore(20));
3995
4006
  _blockViewer;
3996
- _transferStepSemaphores = StepSizes10.map(() => new Semaphore(20));
4007
+ _transferStepSemaphores = StepSizes12.map(() => new Semaphore(20));
3997
4008
  get balancesSummaryMap() {
3998
4009
  return this.params.balancesSummaryMap;
3999
4010
  }
@@ -4114,10 +4125,10 @@ var SimpleAccountBalanceViewer = class extends AbstractCreatableProvider {
4114
4125
  }
4115
4126
  async distillTransferHistory(address, range, max = 50) {
4116
4127
  return await this.spanAsync("distillTransferHistory", async () => {
4117
- if (range[1] - range[0] <= StepSizes10[0] || max <= 1) {
4128
+ if (range[1] - range[0] <= StepSizes12[0] || max <= 1) {
4118
4129
  return Array.from({ length: range[1] - range[0] + 1 }, (_, i) => range[1] - i).slice(0, max).map((n) => asXL1BlockNumber7(n, true));
4119
4130
  }
4120
- const frames = deepCalculateFramesFromRange(asXL1BlockRange10(range, true));
4131
+ const frames = deepCalculateFramesFromRange(asXL1BlockRange10(range, true), transfersMaxStep);
4121
4132
  const transferSummaryPairs = await Promise.all(frames.map(
4122
4133
  async (frame) => {
4123
4134
  return [frame, await transfersStepSummaryFromRange(this.context, this._transferStepSemaphores, this.blockViewer, this.transfersSummaryMap, frame)];
@@ -4129,7 +4140,7 @@ var SimpleAccountBalanceViewer = class extends AbstractCreatableProvider {
4129
4140
  });
4130
4141
  const resultBlockNumbers = /* @__PURE__ */ new Set();
4131
4142
  for (const [frame] of sortedTransferSummaryPairs) {
4132
- if (frame[1] - frame[0] + 1 > StepSizes10[0]) {
4143
+ if (frame[1] - frame[0] + 1 > StepSizes12[0]) {
4133
4144
  const values = await this.distillTransferHistory(address, asXL1BlockRange10([frame[0], frame[1] - 1], true), max - resultBlockNumbers.size);
4134
4145
  for (const value of values) {
4135
4146
  resultBlockNumbers.add(value);
@@ -7059,6 +7070,7 @@ export {
7059
7070
  asTransfersStepSummaryWithStorageMeta,
7060
7071
  backedFactory,
7061
7072
  backingsSatisfied,
7073
+ balancesMaxStep,
7062
7074
  balancesStepSummaryFromRange,
7063
7075
  balancesSummary,
7064
7076
  blockFromBlockNumber,
@@ -7162,6 +7174,7 @@ export {
7162
7174
  resolveConfig,
7163
7175
  resolveProviders,
7164
7176
  rewardFromBlockNumber,
7177
+ schemasMaxStep,
7165
7178
  schemasStepSummaryFromRange,
7166
7179
  schemasSummary,
7167
7180
  scoreUncle,
@@ -7195,6 +7208,7 @@ export {
7195
7208
  transactionElevatedPayloads,
7196
7209
  transactionRequiredGas,
7197
7210
  transactionsFromHydratedBlock,
7211
+ transfersMaxStep,
7198
7212
  transfersStepSummaryFromRange,
7199
7213
  transfersSummary,
7200
7214
  transfersSummaryKey,