@typeberry/lib 0.5.1-52ed6dc → 0.5.1-a175c9e

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 (121) hide show
  1. package/benchmarks/bytes/bytes-to-number.d.ts +6 -0
  2. package/benchmarks/bytes/compare.d.ts +6 -0
  3. package/benchmarks/bytes/hex-from.d.ts +1 -0
  4. package/benchmarks/bytes/hex-to.d.ts +1 -0
  5. package/benchmarks/codec/bigint.compare.d.ts +1 -0
  6. package/benchmarks/codec/bigint.decode.d.ts +1 -0
  7. package/benchmarks/codec/decoding.d.ts +1 -0
  8. package/benchmarks/codec/encoding.d.ts +1 -0
  9. package/benchmarks/codec/view_vs_collection.d.ts +1 -0
  10. package/benchmarks/codec/view_vs_object.d.ts +1 -0
  11. package/benchmarks/collections/hash-dict-vs-blob-dict_delete.d.ts +1 -0
  12. package/benchmarks/collections/hash-dict-vs-blob-dict_get.d.ts +1 -0
  13. package/benchmarks/collections/hash-dict-vs-blob-dict_set.d.ts +1 -0
  14. package/benchmarks/collections/map-set.d.ts +1 -0
  15. package/benchmarks/collections/map_vs_sorted.d.ts +1 -0
  16. package/benchmarks/crypto/ed25519.d.ts +1 -0
  17. package/benchmarks/hash/blake2b.d.ts +1 -0
  18. package/benchmarks/hash/index.d.ts +1 -0
  19. package/benchmarks/logger/index.d.ts +1 -0
  20. package/benchmarks/math/add_one_overflow.d.ts +1 -0
  21. package/benchmarks/math/count-bits-u32.d.ts +1 -0
  22. package/benchmarks/math/count-bits-u64.d.ts +2 -0
  23. package/benchmarks/math/mul_overflow.d.ts +1 -0
  24. package/benchmarks/math/switch.d.ts +1 -0
  25. package/block-json.cjs +1 -0
  26. package/block-json.d.ts +1 -0
  27. package/block-json.mjs +1 -0
  28. package/block.cjs +1 -0
  29. package/block.d.ts +1 -0
  30. package/block.mjs +1 -0
  31. package/bytes.cjs +1 -0
  32. package/bytes.d.ts +1 -0
  33. package/bytes.mjs +1 -0
  34. package/codec.cjs +1 -0
  35. package/codec.d.ts +1 -0
  36. package/codec.mjs +1 -0
  37. package/collections.cjs +1 -0
  38. package/collections.d.ts +1 -0
  39. package/collections.mjs +1 -0
  40. package/config-node.cjs +1 -0
  41. package/config-node.d.ts +1 -0
  42. package/config-node.mjs +1 -0
  43. package/config.cjs +1 -0
  44. package/config.d.ts +1 -0
  45. package/config.mjs +1 -0
  46. package/crypto.cjs +1 -0
  47. package/crypto.d.ts +1 -0
  48. package/crypto.mjs +1 -0
  49. package/database.cjs +1 -0
  50. package/database.d.ts +1 -0
  51. package/database.mjs +1 -0
  52. package/erasure-coding.cjs +1 -0
  53. package/erasure-coding.d.ts +1 -0
  54. package/erasure-coding.mjs +1 -0
  55. package/fuzz-proto.cjs +1 -0
  56. package/fuzz-proto.d.ts +1 -0
  57. package/fuzz-proto.mjs +1 -0
  58. package/hash.cjs +1 -0
  59. package/hash.d.ts +1 -0
  60. package/hash.mjs +1 -0
  61. package/importer.cjs +1 -0
  62. package/importer.d.ts +1 -0
  63. package/importer.mjs +1 -0
  64. package/index.cjs +391 -26763
  65. package/index.d.ts +1439 -1201
  66. package/index.mjs +312 -26732
  67. package/jam-host-calls.cjs +1 -0
  68. package/jam-host-calls.d.ts +1 -0
  69. package/jam-host-calls.mjs +1 -0
  70. package/json-parser.cjs +1 -0
  71. package/json-parser.d.ts +1 -0
  72. package/json-parser.mjs +1 -0
  73. package/logger.cjs +1 -0
  74. package/logger.d.ts +1 -0
  75. package/logger.mjs +1 -0
  76. package/mmr.cjs +1 -0
  77. package/mmr.d.ts +1 -0
  78. package/mmr.mjs +1 -0
  79. package/numbers.cjs +1 -0
  80. package/numbers.d.ts +1 -0
  81. package/numbers.mjs +1 -0
  82. package/ordering.cjs +1 -0
  83. package/ordering.d.ts +1 -0
  84. package/ordering.mjs +1 -0
  85. package/package.json +156 -1
  86. package/pvm-host-calls.cjs +1 -0
  87. package/pvm-host-calls.d.ts +1 -0
  88. package/pvm-host-calls.mjs +1 -0
  89. package/pvm-interface.cjs +1 -0
  90. package/pvm-interface.d.ts +1 -0
  91. package/pvm-interface.mjs +1 -0
  92. package/pvm-interpreter.cjs +1 -0
  93. package/pvm-interpreter.d.ts +1 -0
  94. package/pvm-interpreter.mjs +1 -0
  95. package/shuffling.cjs +1 -0
  96. package/shuffling.d.ts +1 -0
  97. package/shuffling.mjs +1 -0
  98. package/state-json.cjs +1 -0
  99. package/state-json.d.ts +1 -0
  100. package/state-json.mjs +1 -0
  101. package/state-merkleization.cjs +1 -0
  102. package/state-merkleization.d.ts +1 -0
  103. package/state-merkleization.mjs +1 -0
  104. package/state-vectors.cjs +1 -0
  105. package/state-vectors.d.ts +1 -0
  106. package/state-vectors.mjs +1 -0
  107. package/state.cjs +1 -0
  108. package/state.d.ts +1 -0
  109. package/state.mjs +1 -0
  110. package/transition.cjs +1 -0
  111. package/transition.d.ts +1 -0
  112. package/transition.mjs +1 -0
  113. package/trie.cjs +1 -0
  114. package/trie.d.ts +1 -0
  115. package/trie.mjs +1 -0
  116. package/utils.cjs +1 -0
  117. package/utils.d.ts +1 -0
  118. package/utils.mjs +1 -0
  119. package/workers-api.cjs +1 -0
  120. package/workers-api.d.ts +1 -0
  121. package/workers-api.mjs +1 -0
package/index.d.ts CHANGED
@@ -75,72 +75,6 @@ declare const minU64: (a: U64, ...values: U64[]) => U64;
75
75
  /** Get the biggest value between U64 a and values given as input parameters. */
76
76
  declare const maxU64: (a: U64, ...values: U64[]) => U64;
77
77
 
78
- type index$B_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
79
- type index$B_U16 = U16;
80
- type index$B_U32 = U32;
81
- type index$B_U64 = U64;
82
- type index$B_U8 = U8;
83
- type index$B_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
84
- declare const index$B___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
85
- declare const index$B_isU16: typeof isU16;
86
- declare const index$B_isU32: typeof isU32;
87
- declare const index$B_isU64: typeof isU64;
88
- declare const index$B_isU8: typeof isU8;
89
- declare const index$B_leBytesAsU32: typeof leBytesAsU32;
90
- declare const index$B_maxU64: typeof maxU64;
91
- declare const index$B_minU64: typeof minU64;
92
- declare const index$B_sumU32: typeof sumU32;
93
- declare const index$B_sumU64: typeof sumU64;
94
- declare const index$B_tryAsU16: typeof tryAsU16;
95
- declare const index$B_tryAsU32: typeof tryAsU32;
96
- declare const index$B_tryAsU64: typeof tryAsU64;
97
- declare const index$B_tryAsU8: typeof tryAsU8;
98
- declare const index$B_u32AsLeBytes: typeof u32AsLeBytes;
99
- declare const index$B_u64FromParts: typeof u64FromParts;
100
- declare const index$B_u64IntoParts: typeof u64IntoParts;
101
- declare namespace index$B {
102
- export { index$B___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, index$B_isU16 as isU16, index$B_isU32 as isU32, index$B_isU64 as isU64, index$B_isU8 as isU8, index$B_leBytesAsU32 as leBytesAsU32, index$B_maxU64 as maxU64, index$B_minU64 as minU64, index$B_sumU32 as sumU32, index$B_sumU64 as sumU64, index$B_tryAsU16 as tryAsU16, index$B_tryAsU32 as tryAsU32, index$B_tryAsU64 as tryAsU64, index$B_tryAsU8 as tryAsU8, index$B_u32AsLeBytes as u32AsLeBytes, index$B_u64FromParts as u64FromParts, index$B_u64IntoParts as u64IntoParts };
103
- export type { index$B_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, index$B_U16 as U16, index$B_U32 as U32, index$B_U64 as U64, index$B_U8 as U8, index$B_WithBytesRepresentation as WithBytesRepresentation };
104
- }
105
-
106
- /** A return value of some comparator. */
107
- declare enum OrderingValue {
108
- /** `self < other` */
109
- Less = -1,
110
- /** `self === other` */
111
- Equal = 0,
112
- /** `self > other` */
113
- Greater = 1
114
- }
115
- /** A class that provides utility methods to check the type of ordering. */
116
- declare class Ordering {
117
- readonly value: OrderingValue;
118
- private constructor();
119
- static Less: Ordering;
120
- static Greater: Ordering;
121
- static Equal: Ordering;
122
- isLess(): boolean;
123
- isGreater(): boolean;
124
- isEqual(): boolean;
125
- isNotEqual(): boolean;
126
- isGreaterOrEqual(): boolean;
127
- isLessOrEqual(): boolean;
128
- }
129
- /**
130
- * A type that compares the `self` value to `other` and returns an ordering in respect to `self`.
131
- *
132
- * e.g. `self < other => Ordering.Less`, `self > other => Ordering.Greater`
133
- */
134
- type Comparator<V> = (self: V, other: V) => Ordering;
135
-
136
- type index$A_Comparator<V> = Comparator<V>;
137
- type index$A_Ordering = Ordering;
138
- declare const index$A_Ordering: typeof Ordering;
139
- declare namespace index$A {
140
- export { index$A_Ordering as Ordering };
141
- export type { index$A_Comparator as Comparator };
142
- }
143
-
144
78
  declare enum GpVersion {
145
79
  V0_7_0 = "0.7.0",
146
80
  V0_7_1 = "0.7.1",
@@ -360,64 +294,35 @@ declare class ErrorsCollector {
360
294
  exitOrThrow(): this;
361
295
  }
362
296
 
363
- /**
364
- * Utilities that are widely used across typeberry.
365
- *
366
- * BIG FAT NOTE: Please think twice or thrice before adding something here.
367
- * The package should really contain only things that are pretty much essential
368
- * and used everywhere.
369
- *
370
- * It might be much better to create a small package just for the thing you
371
- * are thinking about adding here. It's easier to later consolide smaller
372
- * things into this `utils` package than to split it into separate parts
373
- * as an afterthought.
374
- */
375
-
376
- declare const index$z_CURRENT_SUITE: typeof CURRENT_SUITE;
377
- declare const index$z_CURRENT_VERSION: typeof CURRENT_VERSION;
378
- type index$z_Compatibility = Compatibility;
379
- declare const index$z_Compatibility: typeof Compatibility;
380
- declare const index$z_DEFAULT_SUITE: typeof DEFAULT_SUITE;
381
- declare const index$z_DEFAULT_VERSION: typeof DEFAULT_VERSION;
382
- type index$z_DeepEqualOptions = DeepEqualOptions;
383
- type index$z_ErrorResult<Error> = ErrorResult<Error>;
384
- type index$z_ErrorsCollector = ErrorsCollector;
385
- declare const index$z_ErrorsCollector: typeof ErrorsCollector;
386
- type index$z_GpVersion = GpVersion;
387
- declare const index$z_GpVersion: typeof GpVersion;
388
- declare const index$z_MAX_LENGTH: typeof MAX_LENGTH;
389
- type index$z_OK = OK;
390
- type index$z_OkResult<Ok> = OkResult<Ok>;
391
- type index$z_Opaque<Type, Token extends string> = Opaque<Type, Token>;
392
- declare const index$z_Result: typeof Result;
393
- declare const index$z_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
394
- type index$z_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
395
- type index$z_TestSuite = TestSuite;
396
- declare const index$z_TestSuite: typeof TestSuite;
397
- type index$z_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
398
- type index$z_WithDebug = WithDebug;
399
- declare const index$z_WithDebug: typeof WithDebug;
400
- type index$z_WithOpaque<Token extends string> = WithOpaque<Token>;
401
- declare const index$z___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
402
- declare const index$z_asOpaqueType: typeof asOpaqueType;
403
- declare const index$z_assertEmpty: typeof assertEmpty;
404
- declare const index$z_assertNever: typeof assertNever;
405
- declare const index$z_check: typeof check;
406
- declare const index$z_deepEqual: typeof deepEqual;
407
- declare const index$z_env: typeof env;
408
- declare const index$z_inspect: typeof inspect;
409
- declare const index$z_isBrowser: typeof isBrowser;
410
- declare const index$z_lazyInspect: typeof lazyInspect;
411
- declare const index$z_measure: typeof measure;
412
- declare const index$z_now: typeof now;
413
- declare const index$z_resultToString: typeof resultToString;
414
- declare const index$z_safeAllocUint8Array: typeof safeAllocUint8Array;
415
- declare const index$z_seeThrough: typeof seeThrough;
416
- declare const index$z_workspacePathFix: typeof workspacePathFix;
417
- declare namespace index$z {
418
- export { index$z_CURRENT_SUITE as CURRENT_SUITE, index$z_CURRENT_VERSION as CURRENT_VERSION, index$z_Compatibility as Compatibility, index$z_DEFAULT_SUITE as DEFAULT_SUITE, index$z_DEFAULT_VERSION as DEFAULT_VERSION, index$z_ErrorsCollector as ErrorsCollector, index$z_GpVersion as GpVersion, index$z_MAX_LENGTH as MAX_LENGTH, index$z_Result as Result, index$z_TEST_COMPARE_USING as TEST_COMPARE_USING, index$z_TestSuite as TestSuite, index$z_WithDebug as WithDebug, index$z___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$z_asOpaqueType as asOpaqueType, index$z_assertEmpty as assertEmpty, index$z_assertNever as assertNever, index$z_check as check, index$z_deepEqual as deepEqual, index$z_env as env, index$z_inspect as inspect, index$z_isBrowser as isBrowser, index$z_lazyInspect as lazyInspect, index$z_measure as measure, index$z_now as now, index$z_resultToString as resultToString, index$z_safeAllocUint8Array as safeAllocUint8Array, index$z_seeThrough as seeThrough, index$z_workspacePathFix as workspacePathFix };
419
- export type { index$z_DeepEqualOptions as DeepEqualOptions, index$z_ErrorResult as ErrorResult, index$z_OK as OK, index$z_OkResult as OkResult, index$z_Opaque as Opaque, index$z_TaggedError as TaggedError, index$z_TokenOf as TokenOf, index$z_WithOpaque as WithOpaque };
297
+ /** A return value of some comparator. */
298
+ declare enum OrderingValue {
299
+ /** `self < other` */
300
+ Less = -1,
301
+ /** `self === other` */
302
+ Equal = 0,
303
+ /** `self > other` */
304
+ Greater = 1
420
305
  }
306
+ /** A class that provides utility methods to check the type of ordering. */
307
+ declare class Ordering {
308
+ readonly value: OrderingValue;
309
+ private constructor();
310
+ static Less: Ordering;
311
+ static Greater: Ordering;
312
+ static Equal: Ordering;
313
+ isLess(): boolean;
314
+ isGreater(): boolean;
315
+ isEqual(): boolean;
316
+ isNotEqual(): boolean;
317
+ isGreaterOrEqual(): boolean;
318
+ isLessOrEqual(): boolean;
319
+ }
320
+ /**
321
+ * A type that compares the `self` value to `other` and returns an ordering in respect to `self`.
322
+ *
323
+ * e.g. `self < other => Ordering.Less`, `self > other => Ordering.Greater`
324
+ */
325
+ type Comparator<V> = (self: V, other: V) => Ordering;
421
326
 
422
327
  /**
423
328
  * A variable-length blob of bytes with a concise text representation.
@@ -528,22 +433,6 @@ declare class BitVec {
528
433
  indicesOfSetBits(): Generator<number, void, unknown>;
529
434
  }
530
435
 
531
- type index$y_BitVec = BitVec;
532
- declare const index$y_BitVec: typeof BitVec;
533
- type index$y_Bytes<T extends number> = Bytes<T>;
534
- declare const index$y_Bytes: typeof Bytes;
535
- type index$y_BytesBlob = BytesBlob;
536
- declare const index$y_BytesBlob: typeof BytesBlob;
537
- declare const index$y_bytesBlobComparator: typeof bytesBlobComparator;
538
- declare namespace index$y {
539
- export {
540
- index$y_BitVec as BitVec,
541
- index$y_Bytes as Bytes,
542
- index$y_BytesBlob as BytesBlob,
543
- index$y_bytesBlobComparator as bytesBlobComparator,
544
- };
545
- }
546
-
547
436
  /** A decoder for some specific type `T` */
548
437
  type Decode<T> = {
549
438
  /** Decode object of type `T`. */
@@ -1148,7 +1037,7 @@ declare const TYPICAL_DICTIONARY_LENGTH = 32;
1148
1037
  */
1149
1038
  declare function readonlyArray<T, V>(desc: Descriptor<T[], V>): Descriptor<readonly T[], V>;
1150
1039
  /** Fixed-length bytes sequence. */
1151
- declare const bytes: <N extends number>(len: N) => Descriptor<Bytes<N>>;
1040
+ declare const bytes$1: <N extends number>(len: N) => Descriptor<Bytes<N>>;
1152
1041
  /** Zero-size `void` value. */
1153
1042
  declare const nothing: Descriptor<void, void>;
1154
1043
  /** Variable-length U32. */
@@ -1254,7 +1143,6 @@ declare const descriptors_bitVecFixLen: typeof bitVecFixLen;
1254
1143
  declare const descriptors_bitVecVarLen: typeof bitVecVarLen;
1255
1144
  declare const descriptors_blob: typeof blob;
1256
1145
  declare const descriptors_bool: typeof bool;
1257
- declare const descriptors_bytes: typeof bytes;
1258
1146
  declare const descriptors_custom: typeof custom;
1259
1147
  declare const descriptors_dictionary: typeof dictionary;
1260
1148
  declare const descriptors_forEachDescriptor: typeof forEachDescriptor;
@@ -1281,82 +1169,11 @@ declare const descriptors_union: typeof union;
1281
1169
  declare const descriptors_varU32: typeof varU32;
1282
1170
  declare const descriptors_varU64: typeof varU64;
1283
1171
  declare namespace descriptors {
1284
- export { descriptors_Class as Class, descriptors_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, descriptors_bitVecFixLen as bitVecFixLen, descriptors_bitVecVarLen as bitVecVarLen, descriptors_blob as blob, descriptors_bool as bool, descriptors_bytes as bytes, descriptors_custom as custom, descriptors_dictionary as dictionary, descriptors_forEachDescriptor as forEachDescriptor, descriptors_i16 as i16, descriptors_i24 as i24, descriptors_i32 as i32, descriptors_i64 as i64, descriptors_i8 as i8, descriptors_nothing as nothing, descriptors_object as object, descriptors_optional as optional, descriptors_pair as pair, descriptors_readonlyArray as readonlyArray, descriptors_select as select, descriptors_sequenceFixLen as sequenceFixLen, descriptors_sequenceVarLen as sequenceVarLen, descriptors_string as string, descriptors_u16 as u16, descriptors_u24 as u24, descriptors_u32 as u32, descriptors_u64 as u64, descriptors_u8 as u8, descriptors_union as union, descriptors_varU32 as varU32, descriptors_varU64 as varU64 };
1172
+ export { descriptors_Class as Class, descriptors_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, descriptors_bitVecFixLen as bitVecFixLen, descriptors_bitVecVarLen as bitVecVarLen, descriptors_blob as blob, descriptors_bool as bool, bytes$1 as bytes, descriptors_custom as custom, descriptors_dictionary as dictionary, descriptors_forEachDescriptor as forEachDescriptor, descriptors_i16 as i16, descriptors_i24 as i24, descriptors_i32 as i32, descriptors_i64 as i64, descriptors_i8 as i8, descriptors_nothing as nothing, descriptors_object as object, descriptors_optional as optional, descriptors_pair as pair, descriptors_readonlyArray as readonlyArray, descriptors_select as select, descriptors_sequenceFixLen as sequenceFixLen, descriptors_sequenceVarLen as sequenceVarLen, descriptors_string as string, descriptors_u16 as u16, descriptors_u24 as u24, descriptors_u32 as u32, descriptors_u64 as u64, descriptors_u8 as u8, descriptors_union as union, descriptors_varU32 as varU32, descriptors_varU64 as varU64 };
1285
1173
  export type { descriptors_SequenceVarLenOptions as SequenceVarLenOptions };
1286
1174
  }
1287
1175
 
1288
- declare const codec: typeof descriptors;
1289
-
1290
- declare const index$x_Class: typeof Class;
1291
- type index$x_ClassConstructor<T> = ClassConstructor<T>;
1292
- type index$x_Codec<T> = Codec<T>;
1293
- type index$x_CodecRecord<T> = CodecRecord<T>;
1294
- type index$x_CodecWithView<T, V> = CodecWithView<T, V>;
1295
- type index$x_Decode<T> = Decode<T>;
1296
- type index$x_Decoder = Decoder;
1297
- declare const index$x_Decoder: typeof Decoder;
1298
- type index$x_DescribedBy<T> = DescribedBy<T>;
1299
- type index$x_Descriptor<T, V = T> = Descriptor<T, V>;
1300
- declare const index$x_Descriptor: typeof Descriptor;
1301
- type index$x_DescriptorRecord<T> = DescriptorRecord<T>;
1302
- type index$x_Encode<T> = Encode<T>;
1303
- type index$x_Encoder = Encoder;
1304
- declare const index$x_Encoder: typeof Encoder;
1305
- type index$x_EndOfDataError = EndOfDataError;
1306
- declare const index$x_EndOfDataError: typeof EndOfDataError;
1307
- type index$x_LengthRange = LengthRange;
1308
- type index$x_ObjectView<T> = ObjectView<T>;
1309
- declare const index$x_ObjectView: typeof ObjectView;
1310
- type index$x_OptionalRecord<T> = OptionalRecord<T>;
1311
- type index$x_PropertyKeys<T> = PropertyKeys<T>;
1312
- type index$x_SequenceVarLenOptions = SequenceVarLenOptions;
1313
- type index$x_SequenceView<T, V = T> = SequenceView<T, V>;
1314
- declare const index$x_SequenceView: typeof SequenceView;
1315
- type index$x_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
1316
- type index$x_SizeHint = SizeHint;
1317
- declare const index$x_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
1318
- type index$x_ViewField<T, V> = ViewField<T, V>;
1319
- declare const index$x_ViewField: typeof ViewField;
1320
- type index$x_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
1321
- declare const index$x_addSizeHints: typeof addSizeHints;
1322
- declare const index$x_bitVecFixLen: typeof bitVecFixLen;
1323
- declare const index$x_bitVecVarLen: typeof bitVecVarLen;
1324
- declare const index$x_blob: typeof blob;
1325
- declare const index$x_bool: typeof bool;
1326
- declare const index$x_bytes: typeof bytes;
1327
- declare const index$x_codec: typeof codec;
1328
- declare const index$x_custom: typeof custom;
1329
- declare const index$x_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
1330
- declare const index$x_dictionary: typeof dictionary;
1331
- declare const index$x_forEachDescriptor: typeof forEachDescriptor;
1332
- declare const index$x_i16: typeof i16;
1333
- declare const index$x_i24: typeof i24;
1334
- declare const index$x_i32: typeof i32;
1335
- declare const index$x_i64: typeof i64;
1336
- declare const index$x_i8: typeof i8;
1337
- declare const index$x_nothing: typeof nothing;
1338
- declare const index$x_object: typeof object;
1339
- declare const index$x_optional: typeof optional;
1340
- declare const index$x_pair: typeof pair;
1341
- declare const index$x_readonlyArray: typeof readonlyArray;
1342
- declare const index$x_select: typeof select;
1343
- declare const index$x_sequenceFixLen: typeof sequenceFixLen;
1344
- declare const index$x_sequenceVarLen: typeof sequenceVarLen;
1345
- declare const index$x_string: typeof string;
1346
- declare const index$x_tryAsExactBytes: typeof tryAsExactBytes;
1347
- declare const index$x_u16: typeof u16;
1348
- declare const index$x_u24: typeof u24;
1349
- declare const index$x_u32: typeof u32;
1350
- declare const index$x_u64: typeof u64;
1351
- declare const index$x_u8: typeof u8;
1352
- declare const index$x_union: typeof union;
1353
- declare const index$x_validateLength: typeof validateLength;
1354
- declare const index$x_varU32: typeof varU32;
1355
- declare const index$x_varU64: typeof varU64;
1356
- declare namespace index$x {
1357
- export { index$x_Class as Class, index$x_Decoder as Decoder, index$x_Descriptor as Descriptor, index$x_Encoder as Encoder, index$x_EndOfDataError as EndOfDataError, index$x_ObjectView as ObjectView, index$x_SequenceView as SequenceView, index$x_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, index$x_ViewField as ViewField, index$x_addSizeHints as addSizeHints, index$x_bitVecFixLen as bitVecFixLen, index$x_bitVecVarLen as bitVecVarLen, index$x_blob as blob, index$x_bool as bool, index$x_bytes as bytes, index$x_codec as codec, index$x_custom as custom, index$x_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$x_dictionary as dictionary, index$x_forEachDescriptor as forEachDescriptor, index$x_i16 as i16, index$x_i24 as i24, index$x_i32 as i32, index$x_i64 as i64, index$x_i8 as i8, index$x_nothing as nothing, index$x_object as object, index$x_optional as optional, index$x_pair as pair, index$x_readonlyArray as readonlyArray, index$x_select as select, index$x_sequenceFixLen as sequenceFixLen, index$x_sequenceVarLen as sequenceVarLen, index$x_string as string, index$x_tryAsExactBytes as tryAsExactBytes, index$x_u16 as u16, index$x_u24 as u24, index$x_u32 as u32, index$x_u64 as u64, index$x_u8 as u8, index$x_union as union, index$x_validateLength as validateLength, index$x_varU32 as varU32, index$x_varU64 as varU64 };
1358
- export type { index$x_ClassConstructor as ClassConstructor, index$x_Codec as Codec, index$x_CodecRecord as CodecRecord, index$x_CodecWithView as CodecWithView, index$x_Decode as Decode, index$x_DescribedBy as DescribedBy, index$x_DescriptorRecord as DescriptorRecord, index$x_Encode as Encode, index$x_LengthRange as LengthRange, index$x_OptionalRecord as OptionalRecord, Options$1 as Options, index$x_PropertyKeys as PropertyKeys, index$x_SequenceVarLenOptions as SequenceVarLenOptions, index$x_SimpleDescriptorRecord as SimpleDescriptorRecord, index$x_SizeHint as SizeHint, index$x_ViewOf as ViewOf };
1359
- }
1176
+ declare const codec$1: typeof descriptors;
1360
1177
 
1361
1178
  /**
1362
1179
  * A utility class providing a readonly view over a portion of an array without copying it.
@@ -1702,25 +1519,6 @@ declare namespace keccak {
1702
1519
  };
1703
1520
  }
1704
1521
 
1705
- type index$w_Blake2b = Blake2b;
1706
- declare const index$w_Blake2b: typeof Blake2b;
1707
- type index$w_Blake2bHash = Blake2bHash;
1708
- type index$w_HASH_SIZE = HASH_SIZE;
1709
- type index$w_KeccakHash = KeccakHash;
1710
- type index$w_OpaqueHash = OpaqueHash;
1711
- type index$w_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
1712
- type index$w_TruncatedHash = TruncatedHash;
1713
- type index$w_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
1714
- declare const index$w_WithHash: typeof WithHash;
1715
- type index$w_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
1716
- declare const index$w_WithHashAndBytes: typeof WithHashAndBytes;
1717
- declare const index$w_ZERO_HASH: typeof ZERO_HASH;
1718
- declare const index$w_keccak: typeof keccak;
1719
- declare namespace index$w {
1720
- export { index$w_Blake2b as Blake2b, index$w_WithHash as WithHash, index$w_WithHashAndBytes as WithHashAndBytes, index$w_ZERO_HASH as ZERO_HASH, index$w_keccak as keccak };
1721
- export type { index$w_Blake2bHash as Blake2bHash, index$w_HASH_SIZE as HASH_SIZE, index$w_KeccakHash as KeccakHash, index$w_OpaqueHash as OpaqueHash, index$w_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, index$w_TruncatedHash as TruncatedHash };
1722
- }
1723
-
1724
1522
  /** Immutable view of the `HashDictionary`. */
1725
1523
  interface ImmutableHashDictionary<K extends OpaqueHash, V> extends Iterable<[K, V]> {
1726
1524
  /** Return number of items in the dictionary. */
@@ -2021,43 +1819,6 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
2021
1819
  [Symbol.iterator](): Generator<[TruncatedHash, V], any, any>;
2022
1820
  }
2023
1821
 
2024
- type index$v_ArrayView<T> = ArrayView<T>;
2025
- declare const index$v_ArrayView: typeof ArrayView;
2026
- type index$v_BlobDictionary<K extends BytesBlob, V> = BlobDictionary<K, V>;
2027
- declare const index$v_BlobDictionary: typeof BlobDictionary;
2028
- type index$v_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
2029
- declare const index$v_FixedSizeArray: typeof FixedSizeArray;
2030
- type index$v_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
2031
- declare const index$v_HashDictionary: typeof HashDictionary;
2032
- type index$v_HashSet<V extends OpaqueHash> = HashSet<V>;
2033
- declare const index$v_HashSet: typeof HashSet;
2034
- type index$v_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
2035
- type index$v_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
2036
- type index$v_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
2037
- type index$v_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
2038
- type index$v_KeyMapper<K> = KeyMapper<K>;
2039
- type index$v_KnownSize<T, F extends string> = KnownSize<T, F>;
2040
- type index$v_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
2041
- type index$v_KnownSizeId<X> = KnownSizeId<X>;
2042
- type index$v_ListChildren<K extends BytesBlob, V> = ListChildren<K, V>;
2043
- declare const index$v_ListChildren: typeof ListChildren;
2044
- type index$v_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
2045
- declare const index$v_MultiMap: typeof MultiMap;
2046
- type index$v_SortedArray<V> = SortedArray<V>;
2047
- declare const index$v_SortedArray: typeof SortedArray;
2048
- type index$v_SortedSet<V> = SortedSet<V>;
2049
- declare const index$v_SortedSet: typeof SortedSet;
2050
- type index$v_StringHashDictionary<K extends OpaqueHash, V> = StringHashDictionary<K, V>;
2051
- declare const index$v_StringHashDictionary: typeof StringHashDictionary;
2052
- type index$v_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
2053
- declare const index$v_TruncatedHashDictionary: typeof TruncatedHashDictionary;
2054
- declare const index$v_asKnownSize: typeof asKnownSize;
2055
- declare const index$v_bytesAsU48: typeof bytesAsU48;
2056
- declare namespace index$v {
2057
- export { index$v_ArrayView as ArrayView, index$v_BlobDictionary as BlobDictionary, index$v_FixedSizeArray as FixedSizeArray, index$v_HashDictionary as HashDictionary, index$v_HashSet as HashSet, index$v_ListChildren as ListChildren, index$v_MultiMap as MultiMap, index$v_SortedArray as SortedArray, index$v_SortedSet as SortedSet, index$v_StringHashDictionary as StringHashDictionary, index$v_TruncatedHashDictionary as TruncatedHashDictionary, index$v_asKnownSize as asKnownSize, index$v_bytesAsU48 as bytesAsU48 };
2058
- export type { index$v_ImmutableHashDictionary as ImmutableHashDictionary, index$v_ImmutableHashSet as ImmutableHashSet, index$v_ImmutableSortedArray as ImmutableSortedArray, index$v_ImmutableSortedSet as ImmutableSortedSet, index$v_KeyMapper as KeyMapper, index$v_KnownSize as KnownSize, index$v_KnownSizeArray as KnownSizeArray, index$v_KnownSizeId as KnownSizeId };
2059
- }
2060
-
2061
1822
  declare namespace bandersnatch_d_exports {
2062
1823
  export { batch_verify_tickets, __wbg_init$2 as default, derive_public_key, generate_seal, initSync$2 as initSync, ring_commitment, verify_seal, vrf_output_hash };
2063
1824
  export type { InitInput$2 as InitInput, InitOutput$2 as InitOutput, SyncInitInput$2 as SyncInitInput };
@@ -2363,34 +2124,6 @@ declare namespace keyDerivation {
2363
2124
  export type { keyDerivation_BandersnatchSecretSeed as BandersnatchSecretSeed, keyDerivation_Ed25519SecretSeed as Ed25519SecretSeed, keyDerivation_KeySeed as KeySeed, keyDerivation_SEED_SIZE as SEED_SIZE };
2364
2125
  }
2365
2126
 
2366
- type index$u_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
2367
- type index$u_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
2368
- type index$u_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
2369
- type index$u_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
2370
- type index$u_BLS_KEY_BYTES = BLS_KEY_BYTES;
2371
- type index$u_BandersnatchKey = BandersnatchKey;
2372
- type index$u_BandersnatchProof = BandersnatchProof;
2373
- type index$u_BandersnatchRingRoot = BandersnatchRingRoot;
2374
- type index$u_BandersnatchSecretSeed = BandersnatchSecretSeed;
2375
- type index$u_BandersnatchVrfSignature = BandersnatchVrfSignature;
2376
- type index$u_BlsKey = BlsKey;
2377
- type index$u_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
2378
- type index$u_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
2379
- type index$u_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
2380
- type index$u_Ed25519Key = Ed25519Key;
2381
- type index$u_Ed25519Pair = Ed25519Pair;
2382
- declare const index$u_Ed25519Pair: typeof Ed25519Pair;
2383
- type index$u_Ed25519SecretSeed = Ed25519SecretSeed;
2384
- type index$u_Ed25519Signature = Ed25519Signature;
2385
- type index$u_SEED_SIZE = SEED_SIZE;
2386
- declare const index$u_bandersnatch: typeof bandersnatch;
2387
- declare const index$u_ed25519: typeof ed25519;
2388
- declare const index$u_keyDerivation: typeof keyDerivation;
2389
- declare namespace index$u {
2390
- export { index$u_Ed25519Pair as Ed25519Pair, index$u_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, index$u_ed25519 as ed25519, initAll as initWasm, index$u_keyDerivation as keyDerivation };
2391
- export type { index$u_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, index$u_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, index$u_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, index$u_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, index$u_BLS_KEY_BYTES as BLS_KEY_BYTES, index$u_BandersnatchKey as BandersnatchKey, index$u_BandersnatchProof as BandersnatchProof, index$u_BandersnatchRingRoot as BandersnatchRingRoot, index$u_BandersnatchSecretSeed as BandersnatchSecretSeed, index$u_BandersnatchVrfSignature as BandersnatchVrfSignature, index$u_BlsKey as BlsKey, index$u_ED25519_KEY_BYTES as ED25519_KEY_BYTES, index$u_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, index$u_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, index$u_Ed25519Key as Ed25519Key, index$u_Ed25519SecretSeed as Ed25519SecretSeed, index$u_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, index$u_SEED_SIZE as SEED_SIZE };
2392
- }
2393
-
2394
2127
  /**
2395
2128
  * Estimated number of validators.
2396
2129
  *
@@ -2517,27 +2250,6 @@ declare enum PvmBackend {
2517
2250
  Ananas = 1
2518
2251
  }
2519
2252
 
2520
- type index$t_Bootnode = Bootnode;
2521
- declare const index$t_Bootnode: typeof Bootnode;
2522
- type index$t_ChainSpec = ChainSpec;
2523
- declare const index$t_ChainSpec: typeof ChainSpec;
2524
- declare const index$t_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
2525
- declare const index$t_EST_CORES: typeof EST_CORES;
2526
- declare const index$t_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
2527
- declare const index$t_EST_VALIDATORS: typeof EST_VALIDATORS;
2528
- declare const index$t_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
2529
- type index$t_PeerAddress = PeerAddress;
2530
- type index$t_PeerId = PeerId;
2531
- type index$t_PvmBackend = PvmBackend;
2532
- declare const index$t_PvmBackend: typeof PvmBackend;
2533
- declare const index$t_PvmBackendNames: typeof PvmBackendNames;
2534
- declare const index$t_fullChainSpec: typeof fullChainSpec;
2535
- declare const index$t_tinyChainSpec: typeof tinyChainSpec;
2536
- declare namespace index$t {
2537
- export { index$t_Bootnode as Bootnode, index$t_ChainSpec as ChainSpec, index$t_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, index$t_EST_CORES as EST_CORES, index$t_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, index$t_EST_VALIDATORS as EST_VALIDATORS, index$t_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, index$t_PvmBackend as PvmBackend, index$t_PvmBackendNames as PvmBackendNames, index$t_fullChainSpec as fullChainSpec, index$t_tinyChainSpec as tinyChainSpec };
2538
- export type { index$t_PeerAddress as PeerAddress, index$t_PeerId as PeerId };
2539
- }
2540
-
2541
2253
  /**
2542
2254
  * Time slot index.
2543
2255
  *
@@ -4230,72 +3942,81 @@ declare namespace codecUtils {
4230
3942
  */
4231
3943
  declare function reencodeAsView<T, V>(codec: Descriptor<T, V>, object: T, chainSpec?: ChainSpec): V;
4232
3944
 
4233
- type index$s_Block = Block;
4234
- declare const index$s_Block: typeof Block;
4235
- type index$s_BlockView = BlockView;
4236
- type index$s_CodeHash = CodeHash;
4237
- type index$s_CoreIndex = CoreIndex;
4238
- type index$s_EntropyHash = EntropyHash;
4239
- type index$s_Epoch = Epoch;
4240
- type index$s_EpochMarker = EpochMarker;
4241
- declare const index$s_EpochMarker: typeof EpochMarker;
4242
- type index$s_EpochMarkerView = EpochMarkerView;
4243
- type index$s_Extrinsic = Extrinsic;
4244
- declare const index$s_Extrinsic: typeof Extrinsic;
4245
- type index$s_ExtrinsicHash = ExtrinsicHash;
4246
- type index$s_ExtrinsicView = ExtrinsicView;
4247
- type index$s_Header = Header;
4248
- declare const index$s_Header: typeof Header;
4249
- type index$s_HeaderHash = HeaderHash;
4250
- type index$s_HeaderView = HeaderView;
4251
- declare const index$s_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
4252
- type index$s_PerEpochBlock<T> = PerEpochBlock<T>;
4253
- type index$s_PerValidator<T> = PerValidator<T>;
4254
- type index$s_SEGMENT_BYTES = SEGMENT_BYTES;
4255
- type index$s_Segment = Segment;
4256
- type index$s_SegmentIndex = SegmentIndex;
4257
- type index$s_ServiceGas = ServiceGas;
4258
- type index$s_ServiceId = ServiceId;
4259
- type index$s_StateRootHash = StateRootHash;
4260
- type index$s_TicketsMarker = TicketsMarker;
4261
- declare const index$s_TicketsMarker: typeof TicketsMarker;
4262
- type index$s_TicketsMarkerView = TicketsMarkerView;
4263
- type index$s_TimeSlot = TimeSlot;
4264
- type index$s_ValidatorIndex = ValidatorIndex;
4265
- type index$s_ValidatorKeys = ValidatorKeys;
4266
- declare const index$s_ValidatorKeys: typeof ValidatorKeys;
4267
- declare const index$s_W_E: typeof W_E;
4268
- declare const index$s_W_S: typeof W_S;
4269
- type index$s_WorkReportHash = WorkReportHash;
4270
- declare const index$s_assurances: typeof assurances;
4271
- declare const index$s_codecPerEpochBlock: typeof codecPerEpochBlock;
4272
- declare const index$s_codecPerValidator: typeof codecPerValidator;
4273
- declare const index$s_codecUtils: typeof codecUtils;
4274
- declare const index$s_disputes: typeof disputes;
4275
- declare const index$s_emptyBlock: typeof emptyBlock;
4276
- declare const index$s_encodeUnsealedHeader: typeof encodeUnsealedHeader;
4277
- declare const index$s_guarantees: typeof guarantees;
4278
- declare const index$s_headerViewWithHashCodec: typeof headerViewWithHashCodec;
4279
- declare const index$s_preimage: typeof preimage;
4280
- declare const index$s_reencodeAsView: typeof reencodeAsView;
4281
- declare const index$s_refineContext: typeof refineContext;
4282
- declare const index$s_tickets: typeof tickets;
4283
- declare const index$s_tryAsCoreIndex: typeof tryAsCoreIndex;
4284
- declare const index$s_tryAsEpoch: typeof tryAsEpoch;
4285
- declare const index$s_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
4286
- declare const index$s_tryAsPerValidator: typeof tryAsPerValidator;
4287
- declare const index$s_tryAsSegmentIndex: typeof tryAsSegmentIndex;
4288
- declare const index$s_tryAsServiceGas: typeof tryAsServiceGas;
4289
- declare const index$s_tryAsServiceId: typeof tryAsServiceId;
4290
- declare const index$s_tryAsTimeSlot: typeof tryAsTimeSlot;
4291
- declare const index$s_tryAsValidatorIndex: typeof tryAsValidatorIndex;
4292
- declare const index$s_workItem: typeof workItem;
4293
- declare const index$s_workPackage: typeof workPackage;
4294
- declare const index$s_workReport: typeof workReport;
4295
- declare const index$s_workResult: typeof workResult;
4296
- declare namespace index$s {
4297
- export { index$s_Block as Block, index$s_EpochMarker as EpochMarker, index$s_Extrinsic as Extrinsic, index$s_Header as Header, index$s_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, index$s_TicketsMarker as TicketsMarker, index$s_ValidatorKeys as ValidatorKeys, index$s_W_E as W_E, index$s_W_S as W_S, index$s_assurances as assurances, index$s_codecPerEpochBlock as codecPerEpochBlock, index$s_codecPerValidator as codecPerValidator, index$s_codecUtils as codecUtils, index$s_disputes as disputes, index$s_emptyBlock as emptyBlock, index$s_encodeUnsealedHeader as encodeUnsealedHeader, index$s_guarantees as guarantees, index$s_headerViewWithHashCodec as headerViewWithHashCodec, index$s_preimage as preimage, index$s_reencodeAsView as reencodeAsView, index$s_refineContext as refineContext, index$s_tickets as tickets, index$s_tryAsCoreIndex as tryAsCoreIndex, index$s_tryAsEpoch as tryAsEpoch, index$s_tryAsPerEpochBlock as tryAsPerEpochBlock, index$s_tryAsPerValidator as tryAsPerValidator, index$s_tryAsSegmentIndex as tryAsSegmentIndex, index$s_tryAsServiceGas as tryAsServiceGas, index$s_tryAsServiceId as tryAsServiceId, index$s_tryAsTimeSlot as tryAsTimeSlot, index$s_tryAsValidatorIndex as tryAsValidatorIndex, index$s_workItem as workItem, index$s_workPackage as workPackage, index$s_workReport as workReport, index$s_workResult as workResult };
4298
- export type { index$s_BlockView as BlockView, index$s_CodeHash as CodeHash, index$s_CoreIndex as CoreIndex, index$s_EntropyHash as EntropyHash, index$s_Epoch as Epoch, index$s_EpochMarkerView as EpochMarkerView, index$s_ExtrinsicHash as ExtrinsicHash, index$s_ExtrinsicView as ExtrinsicView, index$s_HeaderHash as HeaderHash, index$s_HeaderView as HeaderView, index$s_PerEpochBlock as PerEpochBlock, index$s_PerValidator as PerValidator, index$s_SEGMENT_BYTES as SEGMENT_BYTES, index$s_Segment as Segment, index$s_SegmentIndex as SegmentIndex, index$s_ServiceGas as ServiceGas, index$s_ServiceId as ServiceId, index$s_StateRootHash as StateRootHash, index$s_TicketsMarkerView as TicketsMarkerView, index$s_TimeSlot as TimeSlot, index$s_ValidatorIndex as ValidatorIndex, index$s_WorkReportHash as WorkReportHash };
3945
+ /**
3946
+ * Block structures and types for JAM protocol.
3947
+ *
3948
+ * This module provides the core block data structures used in the JAM protocol,
3949
+ * including block headers, bodies, and related types.
3950
+ *
3951
+ * @module block
3952
+ */
3953
+
3954
+ type block_Block = Block;
3955
+ declare const block_Block: typeof Block;
3956
+ type block_BlockView = BlockView;
3957
+ type block_CodeHash = CodeHash;
3958
+ type block_CoreIndex = CoreIndex;
3959
+ type block_EntropyHash = EntropyHash;
3960
+ type block_Epoch = Epoch;
3961
+ type block_EpochMarker = EpochMarker;
3962
+ declare const block_EpochMarker: typeof EpochMarker;
3963
+ type block_EpochMarkerView = EpochMarkerView;
3964
+ type block_Extrinsic = Extrinsic;
3965
+ declare const block_Extrinsic: typeof Extrinsic;
3966
+ type block_ExtrinsicHash = ExtrinsicHash;
3967
+ type block_ExtrinsicView = ExtrinsicView;
3968
+ type block_Header = Header;
3969
+ declare const block_Header: typeof Header;
3970
+ type block_HeaderHash = HeaderHash;
3971
+ type block_HeaderView = HeaderView;
3972
+ declare const block_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
3973
+ type block_PerEpochBlock<T> = PerEpochBlock<T>;
3974
+ type block_PerValidator<T> = PerValidator<T>;
3975
+ type block_SEGMENT_BYTES = SEGMENT_BYTES;
3976
+ type block_Segment = Segment;
3977
+ type block_SegmentIndex = SegmentIndex;
3978
+ type block_ServiceGas = ServiceGas;
3979
+ type block_ServiceId = ServiceId;
3980
+ type block_StateRootHash = StateRootHash;
3981
+ type block_TicketsMarker = TicketsMarker;
3982
+ declare const block_TicketsMarker: typeof TicketsMarker;
3983
+ type block_TicketsMarkerView = TicketsMarkerView;
3984
+ type block_TimeSlot = TimeSlot;
3985
+ type block_ValidatorIndex = ValidatorIndex;
3986
+ type block_ValidatorKeys = ValidatorKeys;
3987
+ declare const block_ValidatorKeys: typeof ValidatorKeys;
3988
+ declare const block_W_E: typeof W_E;
3989
+ declare const block_W_S: typeof W_S;
3990
+ type block_WorkReportHash = WorkReportHash;
3991
+ declare const block_assurances: typeof assurances;
3992
+ declare const block_codecPerEpochBlock: typeof codecPerEpochBlock;
3993
+ declare const block_codecPerValidator: typeof codecPerValidator;
3994
+ declare const block_codecUtils: typeof codecUtils;
3995
+ declare const block_disputes: typeof disputes;
3996
+ declare const block_emptyBlock: typeof emptyBlock;
3997
+ declare const block_encodeUnsealedHeader: typeof encodeUnsealedHeader;
3998
+ declare const block_guarantees: typeof guarantees;
3999
+ declare const block_headerViewWithHashCodec: typeof headerViewWithHashCodec;
4000
+ declare const block_preimage: typeof preimage;
4001
+ declare const block_reencodeAsView: typeof reencodeAsView;
4002
+ declare const block_refineContext: typeof refineContext;
4003
+ declare const block_tickets: typeof tickets;
4004
+ declare const block_tryAsCoreIndex: typeof tryAsCoreIndex;
4005
+ declare const block_tryAsEpoch: typeof tryAsEpoch;
4006
+ declare const block_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
4007
+ declare const block_tryAsPerValidator: typeof tryAsPerValidator;
4008
+ declare const block_tryAsSegmentIndex: typeof tryAsSegmentIndex;
4009
+ declare const block_tryAsServiceGas: typeof tryAsServiceGas;
4010
+ declare const block_tryAsServiceId: typeof tryAsServiceId;
4011
+ declare const block_tryAsTimeSlot: typeof tryAsTimeSlot;
4012
+ declare const block_tryAsValidatorIndex: typeof tryAsValidatorIndex;
4013
+ declare const block_workItem: typeof workItem;
4014
+ declare const block_workPackage: typeof workPackage;
4015
+ declare const block_workReport: typeof workReport;
4016
+ declare const block_workResult: typeof workResult;
4017
+ declare namespace block {
4018
+ export { block_Block as Block, block_EpochMarker as EpochMarker, block_Extrinsic as Extrinsic, block_Header as Header, block_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, block_TicketsMarker as TicketsMarker, block_ValidatorKeys as ValidatorKeys, block_W_E as W_E, block_W_S as W_S, block_assurances as assurances, block_codecPerEpochBlock as codecPerEpochBlock, block_codecPerValidator as codecPerValidator, block_codecUtils as codecUtils, block_disputes as disputes, block_emptyBlock as emptyBlock, block_encodeUnsealedHeader as encodeUnsealedHeader, block_guarantees as guarantees, block_headerViewWithHashCodec as headerViewWithHashCodec, block_preimage as preimage, block_reencodeAsView as reencodeAsView, block_refineContext as refineContext, block_tickets as tickets, block_tryAsCoreIndex as tryAsCoreIndex, block_tryAsEpoch as tryAsEpoch, block_tryAsPerEpochBlock as tryAsPerEpochBlock, block_tryAsPerValidator as tryAsPerValidator, block_tryAsSegmentIndex as tryAsSegmentIndex, block_tryAsServiceGas as tryAsServiceGas, block_tryAsServiceId as tryAsServiceId, block_tryAsTimeSlot as tryAsTimeSlot, block_tryAsValidatorIndex as tryAsValidatorIndex, block_workItem as workItem, block_workPackage as workPackage, block_workReport as workReport, block_workResult as workResult };
4019
+ export type { block_BlockView as BlockView, block_CodeHash as CodeHash, block_CoreIndex as CoreIndex, block_EntropyHash as EntropyHash, block_Epoch as Epoch, block_EpochMarkerView as EpochMarkerView, block_ExtrinsicHash as ExtrinsicHash, block_ExtrinsicView as ExtrinsicView, block_HeaderHash as HeaderHash, block_HeaderView as HeaderView, block_PerEpochBlock as PerEpochBlock, block_PerValidator as PerValidator, block_SEGMENT_BYTES as SEGMENT_BYTES, block_Segment as Segment, block_SegmentIndex as SegmentIndex, block_ServiceGas as ServiceGas, block_ServiceId as ServiceId, block_StateRootHash as StateRootHash, block_TicketsMarkerView as TicketsMarkerView, block_TimeSlot as TimeSlot, block_ValidatorIndex as ValidatorIndex, block_WorkReportHash as WorkReportHash };
4299
4020
  }
4300
4021
 
4301
4022
  /** A type that can be read from a JSON-parsed object. */
@@ -4343,20 +4064,6 @@ declare namespace json {
4343
4064
  /** Given already parsed JSON, parse & validate it further to match the expected `jsonDescription` type. */
4344
4065
  declare function parseFromJson<T>(jsonType: unknown, jsonDescription: FromJson<T>, context?: string): T;
4345
4066
 
4346
- type index$r_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
4347
- type index$r_FromJson<T> = FromJson<T>;
4348
- type index$r_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
4349
- type index$r_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
4350
- type index$r_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
4351
- type index$r_ObjectFromJson<T> = ObjectFromJson<T>;
4352
- type index$r_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
4353
- import index$r_json = json;
4354
- declare const index$r_parseFromJson: typeof parseFromJson;
4355
- declare namespace index$r {
4356
- export { index$r_json as json, index$r_parseFromJson as parseFromJson };
4357
- export type { index$r_Builder as Builder, index$r_FromJson as FromJson, index$r_FromJsonOptional as FromJsonOptional, index$r_FromJsonPrimitive as FromJsonPrimitive, index$r_FromJsonWithParser as FromJsonWithParser, index$r_ObjectFromJson as ObjectFromJson, index$r_Parser as Parser };
4358
- }
4359
-
4360
4067
  declare const getAssurancesExtrinsicFromJson: (ctx: ChainSpec) => ["array", FromJsonWithParser<unknown, AvailabilityAssurance> | FromJsonWithParser<string, AvailabilityAssurance> | FromJsonWithParser<number, AvailabilityAssurance> | ObjectFromJson<AvailabilityAssurance> | FromJsonOptional<AvailabilityAssurance> | Parser<unknown, AvailabilityAssurance[]>];
4361
4068
 
4362
4069
  declare const blockFromJson: (spec: ChainSpec) => FromJsonWithParser<unknown, Block>;
@@ -4399,23 +4106,211 @@ declare const workReportFromJson: FromJsonWithParser<unknown, WorkReport>;
4399
4106
 
4400
4107
  declare const workResultFromJson: FromJsonWithParser<unknown, WorkResult>;
4401
4108
 
4402
- type index$q_JsonObject<T> = JsonObject<T>;
4403
- declare const index$q_blockFromJson: typeof blockFromJson;
4404
- declare const index$q_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
4405
- import index$q_fromJson = fromJson;
4406
- declare const index$q_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
4407
- declare const index$q_getExtrinsicFromJson: typeof getExtrinsicFromJson;
4408
- declare const index$q_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
4409
- declare const index$q_headerFromJson: typeof headerFromJson;
4410
- declare const index$q_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
4411
- declare const index$q_refineContextFromJson: typeof refineContextFromJson;
4412
- declare const index$q_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
4413
- declare const index$q_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
4414
- declare const index$q_workReportFromJson: typeof workReportFromJson;
4415
- declare const index$q_workResultFromJson: typeof workResultFromJson;
4416
- declare namespace index$q {
4417
- export { index$q_blockFromJson as blockFromJson, index$q_disputesExtrinsicFromJson as disputesExtrinsicFromJson, index$q_fromJson as fromJson, index$q_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, index$q_getExtrinsicFromJson as getExtrinsicFromJson, index$q_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, index$q_headerFromJson as headerFromJson, index$q_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, index$q_refineContextFromJson as refineContextFromJson, index$q_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, index$q_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, index$q_workReportFromJson as workReportFromJson, index$q_workResultFromJson as workResultFromJson };
4418
- export type { index$q_JsonObject as JsonObject };
4109
+ /**
4110
+ * JSON serialization and deserialization for block structures.
4111
+ *
4112
+ * This module provides utilities for converting JAM block structures to and from
4113
+ * JSON format, useful for debugging, logging, and data interchange.
4114
+ *
4115
+ * @module block-json
4116
+ */
4117
+
4118
+ type blockJson_JsonObject<T> = JsonObject<T>;
4119
+ declare const blockJson_blockFromJson: typeof blockFromJson;
4120
+ declare const blockJson_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
4121
+ import blockJson_fromJson = fromJson;
4122
+ declare const blockJson_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
4123
+ declare const blockJson_getExtrinsicFromJson: typeof getExtrinsicFromJson;
4124
+ declare const blockJson_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
4125
+ declare const blockJson_headerFromJson: typeof headerFromJson;
4126
+ declare const blockJson_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
4127
+ declare const blockJson_refineContextFromJson: typeof refineContextFromJson;
4128
+ declare const blockJson_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
4129
+ declare const blockJson_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
4130
+ declare const blockJson_workReportFromJson: typeof workReportFromJson;
4131
+ declare const blockJson_workResultFromJson: typeof workResultFromJson;
4132
+ declare namespace blockJson {
4133
+ export { blockJson_blockFromJson as blockFromJson, blockJson_disputesExtrinsicFromJson as disputesExtrinsicFromJson, blockJson_fromJson as fromJson, blockJson_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, blockJson_getExtrinsicFromJson as getExtrinsicFromJson, blockJson_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, blockJson_headerFromJson as headerFromJson, blockJson_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, blockJson_refineContextFromJson as refineContextFromJson, blockJson_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, blockJson_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, blockJson_workReportFromJson as workReportFromJson, blockJson_workResultFromJson as workResultFromJson };
4134
+ export type { blockJson_JsonObject as JsonObject };
4135
+ }
4136
+
4137
+ /**
4138
+ * Byte array utilities and operations.
4139
+ *
4140
+ * This module provides utilities for working with byte arrays, including
4141
+ * conversions, comparisons, and manipulations of binary data.
4142
+ *
4143
+ * @module bytes
4144
+ */
4145
+
4146
+ type bytes_BitVec = BitVec;
4147
+ declare const bytes_BitVec: typeof BitVec;
4148
+ type bytes_Bytes<T extends number> = Bytes<T>;
4149
+ declare const bytes_Bytes: typeof Bytes;
4150
+ type bytes_BytesBlob = BytesBlob;
4151
+ declare const bytes_BytesBlob: typeof BytesBlob;
4152
+ declare const bytes_bytesBlobComparator: typeof bytesBlobComparator;
4153
+ declare namespace bytes {
4154
+ export {
4155
+ bytes_BitVec as BitVec,
4156
+ bytes_Bytes as Bytes,
4157
+ bytes_BytesBlob as BytesBlob,
4158
+ bytes_bytesBlobComparator as bytesBlobComparator,
4159
+ };
4160
+ }
4161
+
4162
+ /**
4163
+ * JAM/GP codec implementation for encoding and decoding data.
4164
+ *
4165
+ * This module provides the JAM/GP codec used throughout the
4166
+ * JAM protocol for efficient binary serialization.
4167
+ *
4168
+ * @module codec
4169
+ */
4170
+
4171
+ declare const codec_Class: typeof Class;
4172
+ type codec_ClassConstructor<T> = ClassConstructor<T>;
4173
+ type codec_Codec<T> = Codec<T>;
4174
+ type codec_CodecRecord<T> = CodecRecord<T>;
4175
+ type codec_CodecWithView<T, V> = CodecWithView<T, V>;
4176
+ type codec_Decode<T> = Decode<T>;
4177
+ type codec_Decoder = Decoder;
4178
+ declare const codec_Decoder: typeof Decoder;
4179
+ type codec_DescribedBy<T> = DescribedBy<T>;
4180
+ type codec_Descriptor<T, V = T> = Descriptor<T, V>;
4181
+ declare const codec_Descriptor: typeof Descriptor;
4182
+ type codec_DescriptorRecord<T> = DescriptorRecord<T>;
4183
+ type codec_Encode<T> = Encode<T>;
4184
+ type codec_Encoder = Encoder;
4185
+ declare const codec_Encoder: typeof Encoder;
4186
+ type codec_EndOfDataError = EndOfDataError;
4187
+ declare const codec_EndOfDataError: typeof EndOfDataError;
4188
+ type codec_LengthRange = LengthRange;
4189
+ type codec_ObjectView<T> = ObjectView<T>;
4190
+ declare const codec_ObjectView: typeof ObjectView;
4191
+ type codec_OptionalRecord<T> = OptionalRecord<T>;
4192
+ type codec_PropertyKeys<T> = PropertyKeys<T>;
4193
+ type codec_SequenceVarLenOptions = SequenceVarLenOptions;
4194
+ type codec_SequenceView<T, V = T> = SequenceView<T, V>;
4195
+ declare const codec_SequenceView: typeof SequenceView;
4196
+ type codec_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
4197
+ type codec_SizeHint = SizeHint;
4198
+ declare const codec_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
4199
+ type codec_ViewField<T, V> = ViewField<T, V>;
4200
+ declare const codec_ViewField: typeof ViewField;
4201
+ type codec_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
4202
+ declare const codec_addSizeHints: typeof addSizeHints;
4203
+ declare const codec_bitVecFixLen: typeof bitVecFixLen;
4204
+ declare const codec_bitVecVarLen: typeof bitVecVarLen;
4205
+ declare const codec_blob: typeof blob;
4206
+ declare const codec_bool: typeof bool;
4207
+ declare const codec_custom: typeof custom;
4208
+ declare const codec_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
4209
+ declare const codec_dictionary: typeof dictionary;
4210
+ declare const codec_forEachDescriptor: typeof forEachDescriptor;
4211
+ declare const codec_i16: typeof i16;
4212
+ declare const codec_i24: typeof i24;
4213
+ declare const codec_i32: typeof i32;
4214
+ declare const codec_i64: typeof i64;
4215
+ declare const codec_i8: typeof i8;
4216
+ declare const codec_nothing: typeof nothing;
4217
+ declare const codec_object: typeof object;
4218
+ declare const codec_optional: typeof optional;
4219
+ declare const codec_pair: typeof pair;
4220
+ declare const codec_readonlyArray: typeof readonlyArray;
4221
+ declare const codec_select: typeof select;
4222
+ declare const codec_sequenceFixLen: typeof sequenceFixLen;
4223
+ declare const codec_sequenceVarLen: typeof sequenceVarLen;
4224
+ declare const codec_string: typeof string;
4225
+ declare const codec_tryAsExactBytes: typeof tryAsExactBytes;
4226
+ declare const codec_u16: typeof u16;
4227
+ declare const codec_u24: typeof u24;
4228
+ declare const codec_u32: typeof u32;
4229
+ declare const codec_u64: typeof u64;
4230
+ declare const codec_u8: typeof u8;
4231
+ declare const codec_union: typeof union;
4232
+ declare const codec_validateLength: typeof validateLength;
4233
+ declare const codec_varU32: typeof varU32;
4234
+ declare const codec_varU64: typeof varU64;
4235
+ declare namespace codec {
4236
+ export { codec_Class as Class, codec_Decoder as Decoder, codec_Descriptor as Descriptor, codec_Encoder as Encoder, codec_EndOfDataError as EndOfDataError, codec_ObjectView as ObjectView, codec_SequenceView as SequenceView, codec_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, codec_ViewField as ViewField, codec_addSizeHints as addSizeHints, codec_bitVecFixLen as bitVecFixLen, codec_bitVecVarLen as bitVecVarLen, codec_blob as blob, codec_bool as bool, bytes$1 as bytes, codec$1 as codec, codec_custom as custom, codec_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, codec_dictionary as dictionary, codec_forEachDescriptor as forEachDescriptor, codec_i16 as i16, codec_i24 as i24, codec_i32 as i32, codec_i64 as i64, codec_i8 as i8, codec_nothing as nothing, codec_object as object, codec_optional as optional, codec_pair as pair, codec_readonlyArray as readonlyArray, codec_select as select, codec_sequenceFixLen as sequenceFixLen, codec_sequenceVarLen as sequenceVarLen, codec_string as string, codec_tryAsExactBytes as tryAsExactBytes, codec_u16 as u16, codec_u24 as u24, codec_u32 as u32, codec_u64 as u64, codec_u8 as u8, codec_union as union, codec_validateLength as validateLength, codec_varU32 as varU32, codec_varU64 as varU64 };
4237
+ export type { codec_ClassConstructor as ClassConstructor, codec_Codec as Codec, codec_CodecRecord as CodecRecord, codec_CodecWithView as CodecWithView, codec_Decode as Decode, codec_DescribedBy as DescribedBy, codec_DescriptorRecord as DescriptorRecord, codec_Encode as Encode, codec_LengthRange as LengthRange, codec_OptionalRecord as OptionalRecord, Options$1 as Options, codec_PropertyKeys as PropertyKeys, codec_SequenceVarLenOptions as SequenceVarLenOptions, codec_SimpleDescriptorRecord as SimpleDescriptorRecord, codec_SizeHint as SizeHint, codec_ViewOf as ViewOf };
4238
+ }
4239
+
4240
+ /**
4241
+ * Specialized data structures and collections.
4242
+ *
4243
+ * This module provides custom data structures optimized for JAM protocol operations,
4244
+ * including specialized maps, sets, and other collection types.
4245
+ *
4246
+ * @module collections
4247
+ */
4248
+
4249
+ type collections_ArrayView<T> = ArrayView<T>;
4250
+ declare const collections_ArrayView: typeof ArrayView;
4251
+ type collections_BlobDictionary<K extends BytesBlob, V> = BlobDictionary<K, V>;
4252
+ declare const collections_BlobDictionary: typeof BlobDictionary;
4253
+ type collections_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
4254
+ declare const collections_FixedSizeArray: typeof FixedSizeArray;
4255
+ type collections_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
4256
+ declare const collections_HashDictionary: typeof HashDictionary;
4257
+ type collections_HashSet<V extends OpaqueHash> = HashSet<V>;
4258
+ declare const collections_HashSet: typeof HashSet;
4259
+ type collections_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
4260
+ type collections_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
4261
+ type collections_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
4262
+ type collections_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
4263
+ type collections_KeyMapper<K> = KeyMapper<K>;
4264
+ type collections_KnownSize<T, F extends string> = KnownSize<T, F>;
4265
+ type collections_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
4266
+ type collections_KnownSizeId<X> = KnownSizeId<X>;
4267
+ type collections_ListChildren<K extends BytesBlob, V> = ListChildren<K, V>;
4268
+ declare const collections_ListChildren: typeof ListChildren;
4269
+ type collections_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
4270
+ declare const collections_MultiMap: typeof MultiMap;
4271
+ type collections_SortedArray<V> = SortedArray<V>;
4272
+ declare const collections_SortedArray: typeof SortedArray;
4273
+ type collections_SortedSet<V> = SortedSet<V>;
4274
+ declare const collections_SortedSet: typeof SortedSet;
4275
+ type collections_StringHashDictionary<K extends OpaqueHash, V> = StringHashDictionary<K, V>;
4276
+ declare const collections_StringHashDictionary: typeof StringHashDictionary;
4277
+ type collections_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
4278
+ declare const collections_TruncatedHashDictionary: typeof TruncatedHashDictionary;
4279
+ declare const collections_asKnownSize: typeof asKnownSize;
4280
+ declare const collections_bytesAsU48: typeof bytesAsU48;
4281
+ declare namespace collections {
4282
+ export { collections_ArrayView as ArrayView, collections_BlobDictionary as BlobDictionary, collections_FixedSizeArray as FixedSizeArray, collections_HashDictionary as HashDictionary, collections_HashSet as HashSet, collections_ListChildren as ListChildren, collections_MultiMap as MultiMap, collections_SortedArray as SortedArray, collections_SortedSet as SortedSet, collections_StringHashDictionary as StringHashDictionary, collections_TruncatedHashDictionary as TruncatedHashDictionary, collections_asKnownSize as asKnownSize, collections_bytesAsU48 as bytesAsU48 };
4283
+ export type { collections_ImmutableHashDictionary as ImmutableHashDictionary, collections_ImmutableHashSet as ImmutableHashSet, collections_ImmutableSortedArray as ImmutableSortedArray, collections_ImmutableSortedSet as ImmutableSortedSet, collections_KeyMapper as KeyMapper, collections_KnownSize as KnownSize, collections_KnownSizeArray as KnownSizeArray, collections_KnownSizeId as KnownSizeId };
4284
+ }
4285
+
4286
+ /**
4287
+ * Configuration types and constants for JAM protocol.
4288
+ *
4289
+ * This module defines the core configuration parameters, constants, and types
4290
+ * used throughout the JAM protocol implementation.
4291
+ *
4292
+ * @module config
4293
+ */
4294
+
4295
+ type config_Bootnode = Bootnode;
4296
+ declare const config_Bootnode: typeof Bootnode;
4297
+ type config_ChainSpec = ChainSpec;
4298
+ declare const config_ChainSpec: typeof ChainSpec;
4299
+ declare const config_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
4300
+ declare const config_EST_CORES: typeof EST_CORES;
4301
+ declare const config_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
4302
+ declare const config_EST_VALIDATORS: typeof EST_VALIDATORS;
4303
+ declare const config_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
4304
+ type config_PeerAddress = PeerAddress;
4305
+ type config_PeerId = PeerId;
4306
+ type config_PvmBackend = PvmBackend;
4307
+ declare const config_PvmBackend: typeof PvmBackend;
4308
+ declare const config_PvmBackendNames: typeof PvmBackendNames;
4309
+ declare const config_fullChainSpec: typeof fullChainSpec;
4310
+ declare const config_tinyChainSpec: typeof tinyChainSpec;
4311
+ declare namespace config {
4312
+ export { config_Bootnode as Bootnode, config_ChainSpec as ChainSpec, config_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, config_EST_CORES as EST_CORES, config_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, config_EST_VALIDATORS as EST_VALIDATORS, config_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, config_PvmBackend as PvmBackend, config_PvmBackendNames as PvmBackendNames, config_fullChainSpec as fullChainSpec, config_tinyChainSpec as tinyChainSpec };
4313
+ export type { config_PeerAddress as PeerAddress, config_PeerId as PeerId };
4419
4314
  }
4420
4315
 
4421
4316
  declare function parseBootnode(v: string): Bootnode;
@@ -4489,32 +4384,78 @@ declare class NodeConfiguration {
4489
4384
  }
4490
4385
  declare function loadConfig(config: string[], withRelPath: (p: string) => string): NodeConfiguration;
4491
4386
 
4492
- declare const index$p_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
4493
- declare const index$p_DEV_CONFIG: typeof DEV_CONFIG;
4494
- type index$p_JipChainSpec = JipChainSpec;
4495
- declare const index$p_JipChainSpec: typeof JipChainSpec;
4496
- type index$p_KnownChainSpec = KnownChainSpec;
4497
- declare const index$p_KnownChainSpec: typeof KnownChainSpec;
4498
- declare const index$p_NODE_DEFAULTS: typeof NODE_DEFAULTS;
4499
- type index$p_NodeConfiguration = NodeConfiguration;
4500
- declare const index$p_NodeConfiguration: typeof NodeConfiguration;
4501
- declare const index$p_knownChainSpecFromJson: typeof knownChainSpecFromJson;
4502
- declare const index$p_loadConfig: typeof loadConfig;
4503
- declare const index$p_parseBootnode: typeof parseBootnode;
4504
- declare namespace index$p {
4387
+ /**
4388
+ * Node-specific configuration utilities.
4389
+ *
4390
+ * This module provides configuration utilities specific to Node.js environments,
4391
+ * including environment variable handling and runtime configuration.
4392
+ *
4393
+ * @module config-node
4394
+ */
4395
+
4396
+ declare const configNode_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
4397
+ declare const configNode_DEV_CONFIG: typeof DEV_CONFIG;
4398
+ type configNode_JipChainSpec = JipChainSpec;
4399
+ declare const configNode_JipChainSpec: typeof JipChainSpec;
4400
+ type configNode_KnownChainSpec = KnownChainSpec;
4401
+ declare const configNode_KnownChainSpec: typeof KnownChainSpec;
4402
+ declare const configNode_NODE_DEFAULTS: typeof NODE_DEFAULTS;
4403
+ type configNode_NodeConfiguration = NodeConfiguration;
4404
+ declare const configNode_NodeConfiguration: typeof NodeConfiguration;
4405
+ declare const configNode_knownChainSpecFromJson: typeof knownChainSpecFromJson;
4406
+ declare const configNode_loadConfig: typeof loadConfig;
4407
+ declare const configNode_parseBootnode: typeof parseBootnode;
4408
+ declare namespace configNode {
4505
4409
  export {
4506
- index$p_DEFAULT_CONFIG as DEFAULT_CONFIG,
4507
- index$p_DEV_CONFIG as DEV_CONFIG,
4508
- index$p_JipChainSpec as JipChainSpec,
4509
- index$p_KnownChainSpec as KnownChainSpec,
4510
- index$p_NODE_DEFAULTS as NODE_DEFAULTS,
4511
- index$p_NodeConfiguration as NodeConfiguration,
4512
- index$p_knownChainSpecFromJson as knownChainSpecFromJson,
4513
- index$p_loadConfig as loadConfig,
4514
- index$p_parseBootnode as parseBootnode,
4410
+ configNode_DEFAULT_CONFIG as DEFAULT_CONFIG,
4411
+ configNode_DEV_CONFIG as DEV_CONFIG,
4412
+ configNode_JipChainSpec as JipChainSpec,
4413
+ configNode_KnownChainSpec as KnownChainSpec,
4414
+ configNode_NODE_DEFAULTS as NODE_DEFAULTS,
4415
+ configNode_NodeConfiguration as NodeConfiguration,
4416
+ configNode_knownChainSpecFromJson as knownChainSpecFromJson,
4417
+ configNode_loadConfig as loadConfig,
4418
+ configNode_parseBootnode as parseBootnode,
4515
4419
  };
4516
4420
  }
4517
4421
 
4422
+ /**
4423
+ * Cryptographic primitives and operations.
4424
+ *
4425
+ * This module provides cryptographic functionality including Ed25519, Sr25519,
4426
+ * and BLS signature schemes, key generation, and signing operations.
4427
+ *
4428
+ * @module crypto
4429
+ */
4430
+
4431
+ type crypto_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
4432
+ type crypto_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
4433
+ type crypto_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
4434
+ type crypto_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
4435
+ type crypto_BLS_KEY_BYTES = BLS_KEY_BYTES;
4436
+ type crypto_BandersnatchKey = BandersnatchKey;
4437
+ type crypto_BandersnatchProof = BandersnatchProof;
4438
+ type crypto_BandersnatchRingRoot = BandersnatchRingRoot;
4439
+ type crypto_BandersnatchSecretSeed = BandersnatchSecretSeed;
4440
+ type crypto_BandersnatchVrfSignature = BandersnatchVrfSignature;
4441
+ type crypto_BlsKey = BlsKey;
4442
+ type crypto_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
4443
+ type crypto_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
4444
+ type crypto_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
4445
+ type crypto_Ed25519Key = Ed25519Key;
4446
+ type crypto_Ed25519Pair = Ed25519Pair;
4447
+ declare const crypto_Ed25519Pair: typeof Ed25519Pair;
4448
+ type crypto_Ed25519SecretSeed = Ed25519SecretSeed;
4449
+ type crypto_Ed25519Signature = Ed25519Signature;
4450
+ type crypto_SEED_SIZE = SEED_SIZE;
4451
+ declare const crypto_bandersnatch: typeof bandersnatch;
4452
+ declare const crypto_ed25519: typeof ed25519;
4453
+ declare const crypto_keyDerivation: typeof keyDerivation;
4454
+ declare namespace crypto {
4455
+ export { crypto_Ed25519Pair as Ed25519Pair, crypto_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, crypto_ed25519 as ed25519, initAll as initWasm, crypto_keyDerivation as keyDerivation };
4456
+ export type { crypto_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, crypto_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, crypto_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, crypto_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, crypto_BLS_KEY_BYTES as BLS_KEY_BYTES, crypto_BandersnatchKey as BandersnatchKey, crypto_BandersnatchProof as BandersnatchProof, crypto_BandersnatchRingRoot as BandersnatchRingRoot, crypto_BandersnatchSecretSeed as BandersnatchSecretSeed, crypto_BandersnatchVrfSignature as BandersnatchVrfSignature, crypto_BlsKey as BlsKey, crypto_ED25519_KEY_BYTES as ED25519_KEY_BYTES, crypto_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, crypto_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, crypto_Ed25519Key as Ed25519Key, crypto_Ed25519SecretSeed as Ed25519SecretSeed, crypto_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, crypto_SEED_SIZE as SEED_SIZE };
4457
+ }
4458
+
4518
4459
  /**
4519
4460
  * Blockchain database interface.
4520
4461
  */
@@ -4755,36 +4696,6 @@ declare class InMemoryTrie {
4755
4696
  }
4756
4697
  declare function findSharedPrefix(a: TruncatedStateKey, b: TruncatedStateKey): number;
4757
4698
 
4758
- type index$o_BranchNode = BranchNode;
4759
- declare const index$o_BranchNode: typeof BranchNode;
4760
- type index$o_InMemoryTrie = InMemoryTrie;
4761
- declare const index$o_InMemoryTrie: typeof InMemoryTrie;
4762
- type index$o_InputKey = InputKey;
4763
- type index$o_LeafNode = LeafNode;
4764
- declare const index$o_LeafNode: typeof LeafNode;
4765
- type index$o_NodeType = NodeType;
4766
- declare const index$o_NodeType: typeof NodeType;
4767
- type index$o_NodesDb = NodesDb;
4768
- declare const index$o_NodesDb: typeof NodesDb;
4769
- declare const index$o_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
4770
- declare const index$o_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
4771
- type index$o_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
4772
- type index$o_TrieHasher = TrieHasher;
4773
- type index$o_TrieNode = TrieNode;
4774
- declare const index$o_TrieNode: typeof TrieNode;
4775
- type index$o_TrieNodeHash = TrieNodeHash;
4776
- type index$o_TruncatedStateKey = TruncatedStateKey;
4777
- type index$o_ValueHash = ValueHash;
4778
- type index$o_WriteableNodesDb = WriteableNodesDb;
4779
- declare const index$o_WriteableNodesDb: typeof WriteableNodesDb;
4780
- declare const index$o_findSharedPrefix: typeof findSharedPrefix;
4781
- declare const index$o_leafComparator: typeof leafComparator;
4782
- declare const index$o_parseInputKey: typeof parseInputKey;
4783
- declare namespace index$o {
4784
- export { index$o_BranchNode as BranchNode, index$o_InMemoryTrie as InMemoryTrie, index$o_LeafNode as LeafNode, index$o_NodeType as NodeType, index$o_NodesDb as NodesDb, index$o_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$o_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$o_TrieNode as TrieNode, index$o_WriteableNodesDb as WriteableNodesDb, index$o_findSharedPrefix as findSharedPrefix, index$o_leafComparator as leafComparator, index$o_parseInputKey as parseInputKey };
4785
- export type { index$o_InputKey as InputKey, StateKey$1 as StateKey, index$o_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$o_TrieHasher as TrieHasher, index$o_TrieNodeHash as TrieNodeHash, index$o_TruncatedStateKey as TruncatedStateKey, index$o_ValueHash as ValueHash };
4786
- }
4787
-
4788
4699
  /**
4789
4700
  *. Binary merkleization for well-balanced trees.
4790
4701
  *
@@ -5234,15 +5145,6 @@ declare class MerkleMountainRange<H extends OpaqueHash> {
5234
5145
  getPeaks(): MmrPeaks<H>;
5235
5146
  }
5236
5147
 
5237
- type index$n_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
5238
- declare const index$n_MerkleMountainRange: typeof MerkleMountainRange;
5239
- type index$n_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
5240
- type index$n_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
5241
- declare namespace index$n {
5242
- export { index$n_MerkleMountainRange as MerkleMountainRange };
5243
- export type { index$n_MmrHasher as MmrHasher, index$n_MmrPeaks as MmrPeaks };
5244
- }
5245
-
5246
5148
  /**
5247
5149
  * `H = 8`: The size of recent history, in blocks.
5248
5150
  *
@@ -6226,116 +6128,6 @@ type FieldNames<T> = {
6226
6128
  [K in keyof T]: T[K] extends Function ? never : K;
6227
6129
  }[keyof T];
6228
6130
 
6229
- type index$m_AUTHORIZATION_QUEUE_SIZE = AUTHORIZATION_QUEUE_SIZE;
6230
- type index$m_AccumulationOutput = AccumulationOutput;
6231
- declare const index$m_AccumulationOutput: typeof AccumulationOutput;
6232
- type index$m_AccumulationQueue = AccumulationQueue;
6233
- type index$m_AccumulationQueueView = AccumulationQueueView;
6234
- type index$m_AuthorizationPool = AuthorizationPool;
6235
- type index$m_AuthorizationQueue = AuthorizationQueue;
6236
- type index$m_AvailabilityAssignment = AvailabilityAssignment;
6237
- declare const index$m_AvailabilityAssignment: typeof AvailabilityAssignment;
6238
- type index$m_AvailabilityAssignmentsView = AvailabilityAssignmentsView;
6239
- declare const index$m_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
6240
- type index$m_BlockState = BlockState;
6241
- declare const index$m_BlockState: typeof BlockState;
6242
- type index$m_BlocksState = BlocksState;
6243
- type index$m_CoreStatistics = CoreStatistics;
6244
- declare const index$m_CoreStatistics: typeof CoreStatistics;
6245
- type index$m_DisputesRecords = DisputesRecords;
6246
- declare const index$m_DisputesRecords: typeof DisputesRecords;
6247
- declare const index$m_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
6248
- declare const index$m_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
6249
- type index$m_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
6250
- type index$m_EnumerableState = EnumerableState;
6251
- type index$m_InMemoryService = InMemoryService;
6252
- declare const index$m_InMemoryService: typeof InMemoryService;
6253
- type index$m_InMemoryState = InMemoryState;
6254
- declare const index$m_InMemoryState: typeof InMemoryState;
6255
- type index$m_InMemoryStateFields = InMemoryStateFields;
6256
- type index$m_LookupHistoryItem = LookupHistoryItem;
6257
- declare const index$m_LookupHistoryItem: typeof LookupHistoryItem;
6258
- type index$m_LookupHistorySlots = LookupHistorySlots;
6259
- type index$m_MAX_AUTH_POOL_SIZE = MAX_AUTH_POOL_SIZE;
6260
- type index$m_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
6261
- type index$m_NotYetAccumulatedReport = NotYetAccumulatedReport;
6262
- declare const index$m_NotYetAccumulatedReport: typeof NotYetAccumulatedReport;
6263
- type index$m_PerCore<T> = PerCore<T>;
6264
- type index$m_PreimageItem = PreimageItem;
6265
- declare const index$m_PreimageItem: typeof PreimageItem;
6266
- type index$m_PrivilegedServices = PrivilegedServices;
6267
- declare const index$m_PrivilegedServices: typeof PrivilegedServices;
6268
- type index$m_RecentBlocks = RecentBlocks;
6269
- declare const index$m_RecentBlocks: typeof RecentBlocks;
6270
- type index$m_RecentBlocksView = RecentBlocksView;
6271
- type index$m_RecentlyAccumulated = RecentlyAccumulated;
6272
- type index$m_RecentlyAccumulatedView = RecentlyAccumulatedView;
6273
- type index$m_SafroleData = SafroleData;
6274
- declare const index$m_SafroleData: typeof SafroleData;
6275
- type index$m_SafroleDataView = SafroleDataView;
6276
- type index$m_SafroleSealingKeys = SafroleSealingKeys;
6277
- type index$m_SafroleSealingKeysData = SafroleSealingKeysData;
6278
- declare const index$m_SafroleSealingKeysData: typeof SafroleSealingKeysData;
6279
- type index$m_SafroleSealingKeysKind = SafroleSealingKeysKind;
6280
- declare const index$m_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
6281
- type index$m_Service = Service;
6282
- type index$m_ServiceAccountInfo = ServiceAccountInfo;
6283
- declare const index$m_ServiceAccountInfo: typeof ServiceAccountInfo;
6284
- type index$m_ServiceAccountInfoView = ServiceAccountInfoView;
6285
- type index$m_ServiceData = ServiceData;
6286
- type index$m_ServiceEntries = ServiceEntries;
6287
- type index$m_ServiceStatistics = ServiceStatistics;
6288
- declare const index$m_ServiceStatistics: typeof ServiceStatistics;
6289
- type index$m_ServicesUpdate = ServicesUpdate;
6290
- type index$m_State = State;
6291
- type index$m_StateView = StateView;
6292
- type index$m_StatisticsData = StatisticsData;
6293
- declare const index$m_StatisticsData: typeof StatisticsData;
6294
- type index$m_StatisticsDataView = StatisticsDataView;
6295
- type index$m_StorageItem = StorageItem;
6296
- declare const index$m_StorageItem: typeof StorageItem;
6297
- type index$m_StorageKey = StorageKey;
6298
- type index$m_UpdateError = UpdateError;
6299
- declare const index$m_UpdateError: typeof UpdateError;
6300
- type index$m_UpdatePreimage = UpdatePreimage;
6301
- declare const index$m_UpdatePreimage: typeof UpdatePreimage;
6302
- type index$m_UpdatePreimageKind = UpdatePreimageKind;
6303
- declare const index$m_UpdatePreimageKind: typeof UpdatePreimageKind;
6304
- type index$m_UpdateService = UpdateService;
6305
- declare const index$m_UpdateService: typeof UpdateService;
6306
- type index$m_UpdateServiceKind = UpdateServiceKind;
6307
- declare const index$m_UpdateServiceKind: typeof UpdateServiceKind;
6308
- type index$m_UpdateStorage = UpdateStorage;
6309
- declare const index$m_UpdateStorage: typeof UpdateStorage;
6310
- type index$m_UpdateStorageKind = UpdateStorageKind;
6311
- declare const index$m_UpdateStorageKind: typeof UpdateStorageKind;
6312
- type index$m_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
6313
- type index$m_ValidatorData = ValidatorData;
6314
- declare const index$m_ValidatorData: typeof ValidatorData;
6315
- type index$m_ValidatorDataView = ValidatorDataView;
6316
- type index$m_ValidatorStatistics = ValidatorStatistics;
6317
- declare const index$m_ValidatorStatistics: typeof ValidatorStatistics;
6318
- type index$m_WithStateView<V = StateView> = WithStateView<V>;
6319
- declare const index$m_accumulationOutputComparator: typeof accumulationOutputComparator;
6320
- declare const index$m_accumulationQueueCodec: typeof accumulationQueueCodec;
6321
- declare const index$m_authPoolsCodec: typeof authPoolsCodec;
6322
- declare const index$m_authQueuesCodec: typeof authQueuesCodec;
6323
- declare const index$m_availabilityAssignmentsCodec: typeof availabilityAssignmentsCodec;
6324
- declare const index$m_codecPerCore: typeof codecPerCore;
6325
- declare const index$m_codecWithVersion: typeof codecWithVersion;
6326
- declare const index$m_hashComparator: typeof hashComparator;
6327
- declare const index$m_ignoreValueWithDefault: typeof ignoreValueWithDefault;
6328
- declare const index$m_recentlyAccumulatedCodec: typeof recentlyAccumulatedCodec;
6329
- declare const index$m_serviceDataCodec: typeof serviceDataCodec;
6330
- declare const index$m_serviceEntriesCodec: typeof serviceEntriesCodec;
6331
- declare const index$m_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
6332
- declare const index$m_tryAsPerCore: typeof tryAsPerCore;
6333
- declare const index$m_validatorsDataCodec: typeof validatorsDataCodec;
6334
- declare namespace index$m {
6335
- export { index$m_AccumulationOutput as AccumulationOutput, index$m_AvailabilityAssignment as AvailabilityAssignment, index$m_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$m_BlockState as BlockState, index$m_CoreStatistics as CoreStatistics, index$m_DisputesRecords as DisputesRecords, index$m_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$m_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$m_InMemoryService as InMemoryService, index$m_InMemoryState as InMemoryState, index$m_LookupHistoryItem as LookupHistoryItem, index$m_NotYetAccumulatedReport as NotYetAccumulatedReport, index$m_PreimageItem as PreimageItem, index$m_PrivilegedServices as PrivilegedServices, index$m_RecentBlocks as RecentBlocks, index$m_SafroleData as SafroleData, index$m_SafroleSealingKeysData as SafroleSealingKeysData, index$m_SafroleSealingKeysKind as SafroleSealingKeysKind, index$m_ServiceAccountInfo as ServiceAccountInfo, index$m_ServiceStatistics as ServiceStatistics, index$m_StatisticsData as StatisticsData, index$m_StorageItem as StorageItem, index$m_UpdateError as UpdateError, index$m_UpdatePreimage as UpdatePreimage, index$m_UpdatePreimageKind as UpdatePreimageKind, index$m_UpdateService as UpdateService, index$m_UpdateServiceKind as UpdateServiceKind, index$m_UpdateStorage as UpdateStorage, index$m_UpdateStorageKind as UpdateStorageKind, index$m_ValidatorData as ValidatorData, index$m_ValidatorStatistics as ValidatorStatistics, index$m_accumulationOutputComparator as accumulationOutputComparator, index$m_accumulationQueueCodec as accumulationQueueCodec, index$m_authPoolsCodec as authPoolsCodec, index$m_authQueuesCodec as authQueuesCodec, index$m_availabilityAssignmentsCodec as availabilityAssignmentsCodec, index$m_codecPerCore as codecPerCore, index$m_codecWithVersion as codecWithVersion, index$m_hashComparator as hashComparator, index$m_ignoreValueWithDefault as ignoreValueWithDefault, index$m_recentlyAccumulatedCodec as recentlyAccumulatedCodec, index$m_serviceDataCodec as serviceDataCodec, index$m_serviceEntriesCodec as serviceEntriesCodec, index$m_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$m_tryAsPerCore as tryAsPerCore, index$m_validatorsDataCodec as validatorsDataCodec };
6336
- export type { index$m_AUTHORIZATION_QUEUE_SIZE as AUTHORIZATION_QUEUE_SIZE, index$m_AccumulationQueue as AccumulationQueue, index$m_AccumulationQueueView as AccumulationQueueView, index$m_AuthorizationPool as AuthorizationPool, index$m_AuthorizationQueue as AuthorizationQueue, index$m_AvailabilityAssignmentsView as AvailabilityAssignmentsView, index$m_BlocksState as BlocksState, index$m_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$m_EnumerableState as EnumerableState, index$m_InMemoryStateFields as InMemoryStateFields, index$m_LookupHistorySlots as LookupHistorySlots, index$m_MAX_AUTH_POOL_SIZE as MAX_AUTH_POOL_SIZE, index$m_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$m_PerCore as PerCore, index$m_RecentBlocksView as RecentBlocksView, index$m_RecentlyAccumulated as RecentlyAccumulated, index$m_RecentlyAccumulatedView as RecentlyAccumulatedView, index$m_SafroleDataView as SafroleDataView, index$m_SafroleSealingKeys as SafroleSealingKeys, index$m_Service as Service, index$m_ServiceAccountInfoView as ServiceAccountInfoView, index$m_ServiceData as ServiceData, index$m_ServiceEntries as ServiceEntries, index$m_ServicesUpdate as ServicesUpdate, index$m_State as State, index$m_StateView as StateView, index$m_StatisticsDataView as StatisticsDataView, index$m_StorageKey as StorageKey, index$m_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES, index$m_ValidatorDataView as ValidatorDataView, index$m_WithStateView as WithStateView };
6337
- }
6338
-
6339
6131
  type StateKey = Opaque<OpaqueHash, "stateKey">;
6340
6132
  /** Numeric mapping for state entries. */
6341
6133
  declare enum StateKeyIdx {
@@ -6645,60 +6437,6 @@ declare namespace serialize {
6645
6437
  */
6646
6438
  declare const dumpCodec: Descriptor<BytesBlob, BytesBlob>;
6647
6439
 
6648
- /**
6649
- * JAM State Serialization & Merkleization.
6650
- *
6651
- * https://graypaper.fluffylabs.dev/#/5f542d7/389f00389f00
6652
- *
6653
- * State representations:
6654
- *
6655
- * We maintain two "views" of our chain state:
6656
- *
6657
- * - **InMemoryState**
6658
- * - Full, canonical state held entirely in memory.
6659
- * - Complete info on every field, plus lists of services, modules, etc.
6660
- *
6661
- * - **SerializedState<T>**
6662
- * - Generic wrapper around a serialized snapshot of the state.
6663
- * - Only the bytes (and minimal metadata) are held up front.
6664
- * - Three instantiations:
6665
- * - `SerializedState<Persistence>`: Pure "black-box" serialized blob
6666
- * (incomplete in-memory view).
6667
- * - `SerializedState<LeafDb>`: Disk-backed trie storage-leaf nodes live on
6668
- * disk and load on demand; cheap to update (no data duplication) and re-compute
6669
- * the `stateRoot`. Used in LMDB.
6670
- * - `SerializedState<StateEntries>`: serialized state represented as a simple in-memory
6671
- * hashmap of `key -> value` entries.
6672
- */
6673
-
6674
- type index$l_SerializedService = SerializedService;
6675
- declare const index$l_SerializedService: typeof SerializedService;
6676
- type index$l_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
6677
- declare const index$l_SerializedState: typeof SerializedState;
6678
- type index$l_SerializedStateBackend = SerializedStateBackend;
6679
- type index$l_SerializedStateView<T extends SerializedStateBackend> = SerializedStateView<T>;
6680
- declare const index$l_SerializedStateView: typeof SerializedStateView;
6681
- type index$l_StateCodec<T, V = T> = StateCodec<T, V>;
6682
- type index$l_StateEntries = StateEntries;
6683
- declare const index$l_StateEntries: typeof StateEntries;
6684
- type index$l_StateEntryUpdate = StateEntryUpdate;
6685
- type index$l_StateEntryUpdateAction = StateEntryUpdateAction;
6686
- declare const index$l_StateEntryUpdateAction: typeof StateEntryUpdateAction;
6687
- type index$l_StateKey = StateKey;
6688
- type index$l_StateKeyIdx = StateKeyIdx;
6689
- declare const index$l_StateKeyIdx: typeof StateKeyIdx;
6690
- declare const index$l_binaryMerkleization: typeof binaryMerkleization;
6691
- declare const index$l_dumpCodec: typeof dumpCodec;
6692
- declare const index$l_legacyServiceNested: typeof legacyServiceNested;
6693
- declare const index$l_loadState: typeof loadState;
6694
- import index$l_serialize = serialize;
6695
- declare const index$l_serializeStateUpdate: typeof serializeStateUpdate;
6696
- import index$l_stateKeys = stateKeys;
6697
- declare namespace index$l {
6698
- export { index$l_SerializedService as SerializedService, index$l_SerializedState as SerializedState, index$l_SerializedStateView as SerializedStateView, index$l_StateEntries as StateEntries, index$l_StateEntryUpdateAction as StateEntryUpdateAction, index$l_StateKeyIdx as StateKeyIdx, index$l_binaryMerkleization as binaryMerkleization, index$l_dumpCodec as dumpCodec, index$l_legacyServiceNested as legacyServiceNested, index$l_loadState as loadState, index$l_serialize as serialize, index$l_serializeStateUpdate as serializeStateUpdate, index$l_stateKeys as stateKeys };
6699
- export type { index$l_SerializedStateBackend as SerializedStateBackend, index$l_StateCodec as StateCodec, index$l_StateEntryUpdate as StateEntryUpdate, index$l_StateKey as StateKey };
6700
- }
6701
-
6702
6440
  /** Error during `LeafDb` creation. */
6703
6441
  declare enum LeafDbError {
6704
6442
  InvalidLeafData = 0
@@ -6821,28 +6559,37 @@ declare class InMemorySerializedStates implements StatesDb<SerializedState<LeafD
6821
6559
  close(): Promise<void>;
6822
6560
  }
6823
6561
 
6824
- type index$k_BlocksDb = BlocksDb;
6825
- type index$k_InMemoryBlocks = InMemoryBlocks;
6826
- declare const index$k_InMemoryBlocks: typeof InMemoryBlocks;
6827
- type index$k_InMemorySerializedStates = InMemorySerializedStates;
6828
- declare const index$k_InMemorySerializedStates: typeof InMemorySerializedStates;
6829
- type index$k_InMemoryStates = InMemoryStates;
6830
- declare const index$k_InMemoryStates: typeof InMemoryStates;
6831
- type index$k_InitStatesDb<T = State> = InitStatesDb<T>;
6832
- type index$k_LeafDb = LeafDb;
6833
- declare const index$k_LeafDb: typeof LeafDb;
6834
- type index$k_LeafDbError = LeafDbError;
6835
- declare const index$k_LeafDbError: typeof LeafDbError;
6836
- type index$k_RootDb<TBlocks = BlocksDb, TStates = StatesDb> = RootDb<TBlocks, TStates>;
6837
- type index$k_SerializedStatesDb = SerializedStatesDb;
6838
- type index$k_StateUpdateError = StateUpdateError;
6839
- declare const index$k_StateUpdateError: typeof StateUpdateError;
6840
- type index$k_StatesDb<T extends State = State> = StatesDb<T>;
6841
- type index$k_ValuesDb = ValuesDb;
6842
- declare const index$k_updateLeafs: typeof updateLeafs;
6843
- declare namespace index$k {
6844
- export { index$k_InMemoryBlocks as InMemoryBlocks, index$k_InMemorySerializedStates as InMemorySerializedStates, index$k_InMemoryStates as InMemoryStates, index$k_LeafDb as LeafDb, index$k_LeafDbError as LeafDbError, index$k_StateUpdateError as StateUpdateError, index$k_updateLeafs as updateLeafs };
6845
- export type { index$k_BlocksDb as BlocksDb, index$k_InitStatesDb as InitStatesDb, index$k_RootDb as RootDb, index$k_SerializedStatesDb as SerializedStatesDb, index$k_StatesDb as StatesDb, index$k_ValuesDb as ValuesDb };
6562
+ /**
6563
+ * Database abstractions and storage interfaces.
6564
+ *
6565
+ * This module provides database interfaces and abstractions for persistent storage,
6566
+ * supporting various backend implementations.
6567
+ *
6568
+ * @module database
6569
+ */
6570
+
6571
+ type database_BlocksDb = BlocksDb;
6572
+ type database_InMemoryBlocks = InMemoryBlocks;
6573
+ declare const database_InMemoryBlocks: typeof InMemoryBlocks;
6574
+ type database_InMemorySerializedStates = InMemorySerializedStates;
6575
+ declare const database_InMemorySerializedStates: typeof InMemorySerializedStates;
6576
+ type database_InMemoryStates = InMemoryStates;
6577
+ declare const database_InMemoryStates: typeof InMemoryStates;
6578
+ type database_InitStatesDb<T = State> = InitStatesDb<T>;
6579
+ type database_LeafDb = LeafDb;
6580
+ declare const database_LeafDb: typeof LeafDb;
6581
+ type database_LeafDbError = LeafDbError;
6582
+ declare const database_LeafDbError: typeof LeafDbError;
6583
+ type database_RootDb<TBlocks = BlocksDb, TStates = StatesDb> = RootDb<TBlocks, TStates>;
6584
+ type database_SerializedStatesDb = SerializedStatesDb;
6585
+ type database_StateUpdateError = StateUpdateError;
6586
+ declare const database_StateUpdateError: typeof StateUpdateError;
6587
+ type database_StatesDb<T extends State = State> = StatesDb<T>;
6588
+ type database_ValuesDb = ValuesDb;
6589
+ declare const database_updateLeafs: typeof updateLeafs;
6590
+ declare namespace database {
6591
+ export { database_InMemoryBlocks as InMemoryBlocks, database_InMemorySerializedStates as InMemorySerializedStates, database_InMemoryStates as InMemoryStates, database_LeafDb as LeafDb, database_LeafDbError as LeafDbError, database_StateUpdateError as StateUpdateError, database_updateLeafs as updateLeafs };
6592
+ export type { database_BlocksDb as BlocksDb, database_InitStatesDb as InitStatesDb, database_RootDb as RootDb, database_SerializedStatesDb as SerializedStatesDb, database_StatesDb as StatesDb, database_ValuesDb as ValuesDb };
6846
6593
  }
6847
6594
 
6848
6595
  /**
@@ -6985,29 +6732,38 @@ declare function chunksToShards(spec: ChainSpec, chunks: FixedSizeArray<BytesBlo
6985
6732
 
6986
6733
  declare const initEc: () => Promise<void>;
6987
6734
 
6988
- declare const index$j_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
6989
- type index$j_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
6990
- type index$j_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
6991
- type index$j_PIECE_SIZE = PIECE_SIZE;
6992
- type index$j_POINT_LENGTH = POINT_LENGTH;
6993
- declare const index$j_checkConsistency: typeof checkConsistency;
6994
- declare const index$j_chunkingFunction: typeof chunkingFunction;
6995
- declare const index$j_chunksToShards: typeof chunksToShards;
6996
- declare const index$j_decodeData: typeof decodeData;
6997
- declare const index$j_decodeDataAndTrim: typeof decodeDataAndTrim;
6998
- declare const index$j_decodePiece: typeof decodePiece;
6999
- declare const index$j_encodePoints: typeof encodePoints;
7000
- declare const index$j_initEc: typeof initEc;
7001
- declare const index$j_join: typeof join;
7002
- declare const index$j_lace: typeof lace;
7003
- declare const index$j_padAndEncodeData: typeof padAndEncodeData;
7004
- declare const index$j_shardsToChunks: typeof shardsToChunks;
7005
- declare const index$j_split: typeof split;
7006
- declare const index$j_transpose: typeof transpose;
7007
- declare const index$j_unzip: typeof unzip;
7008
- declare namespace index$j {
7009
- export { index$j_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$j_checkConsistency as checkConsistency, index$j_chunkingFunction as chunkingFunction, index$j_chunksToShards as chunksToShards, index$j_decodeData as decodeData, index$j_decodeDataAndTrim as decodeDataAndTrim, index$j_decodePiece as decodePiece, index$j_encodePoints as encodePoints, index$j_initEc as initEc, index$j_join as join, index$j_lace as lace, index$j_padAndEncodeData as padAndEncodeData, index$j_shardsToChunks as shardsToChunks, index$j_split as split, index$j_transpose as transpose, index$j_unzip as unzip };
7010
- export type { index$j_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$j_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$j_PIECE_SIZE as PIECE_SIZE, index$j_POINT_LENGTH as POINT_LENGTH };
6735
+ /**
6736
+ * Erasure coding implementation for data availability.
6737
+ *
6738
+ * This module provides erasure coding functionality used in JAM's data availability
6739
+ * system, enabling data reconstruction from partial information.
6740
+ *
6741
+ * @module erasure-coding
6742
+ */
6743
+
6744
+ declare const erasureCoding_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
6745
+ type erasureCoding_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
6746
+ type erasureCoding_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
6747
+ type erasureCoding_PIECE_SIZE = PIECE_SIZE;
6748
+ type erasureCoding_POINT_LENGTH = POINT_LENGTH;
6749
+ declare const erasureCoding_checkConsistency: typeof checkConsistency;
6750
+ declare const erasureCoding_chunkingFunction: typeof chunkingFunction;
6751
+ declare const erasureCoding_chunksToShards: typeof chunksToShards;
6752
+ declare const erasureCoding_decodeData: typeof decodeData;
6753
+ declare const erasureCoding_decodeDataAndTrim: typeof decodeDataAndTrim;
6754
+ declare const erasureCoding_decodePiece: typeof decodePiece;
6755
+ declare const erasureCoding_encodePoints: typeof encodePoints;
6756
+ declare const erasureCoding_initEc: typeof initEc;
6757
+ declare const erasureCoding_join: typeof join;
6758
+ declare const erasureCoding_lace: typeof lace;
6759
+ declare const erasureCoding_padAndEncodeData: typeof padAndEncodeData;
6760
+ declare const erasureCoding_shardsToChunks: typeof shardsToChunks;
6761
+ declare const erasureCoding_split: typeof split;
6762
+ declare const erasureCoding_transpose: typeof transpose;
6763
+ declare const erasureCoding_unzip: typeof unzip;
6764
+ declare namespace erasureCoding {
6765
+ export { erasureCoding_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, erasureCoding_checkConsistency as checkConsistency, erasureCoding_chunkingFunction as chunkingFunction, erasureCoding_chunksToShards as chunksToShards, erasureCoding_decodeData as decodeData, erasureCoding_decodeDataAndTrim as decodeDataAndTrim, erasureCoding_decodePiece as decodePiece, erasureCoding_encodePoints as encodePoints, erasureCoding_initEc as initEc, erasureCoding_join as join, erasureCoding_lace as lace, erasureCoding_padAndEncodeData as padAndEncodeData, erasureCoding_shardsToChunks as shardsToChunks, erasureCoding_split as split, erasureCoding_transpose as transpose, erasureCoding_unzip as unzip };
6766
+ export type { erasureCoding_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, erasureCoding_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, erasureCoding_PIECE_SIZE as PIECE_SIZE, erasureCoding_POINT_LENGTH as POINT_LENGTH };
7011
6767
  }
7012
6768
 
7013
6769
  /** A per-client handler of incoming socket messages. */
@@ -7283,45 +7039,82 @@ declare class FuzzTarget implements IpcHandler {
7283
7039
  hasFeature(feature: number): boolean;
7284
7040
  }
7285
7041
 
7286
- type index$i_Ancestry = Ancestry;
7287
- type index$i_AncestryItem = AncestryItem;
7288
- declare const index$i_AncestryItem: typeof AncestryItem;
7289
- type index$i_ErrorMessage = ErrorMessage;
7290
- declare const index$i_ErrorMessage: typeof ErrorMessage;
7291
- type index$i_Features = Features;
7292
- declare const index$i_Features: typeof Features;
7293
- type index$i_FuzzMessageHandler = FuzzMessageHandler;
7294
- type index$i_FuzzTarget = FuzzTarget;
7295
- declare const index$i_FuzzTarget: typeof FuzzTarget;
7296
- type index$i_GetState = GetState;
7297
- type index$i_Initialize = Initialize;
7298
- declare const index$i_Initialize: typeof Initialize;
7299
- type index$i_KeyValue = KeyValue;
7300
- declare const index$i_KeyValue: typeof KeyValue;
7301
- type index$i_Message = Message;
7302
- type index$i_MessageData = MessageData;
7303
- type index$i_MessageType = MessageType;
7304
- declare const index$i_MessageType: typeof MessageType;
7305
- type index$i_PeerInfo = PeerInfo;
7306
- declare const index$i_PeerInfo: typeof PeerInfo;
7307
- type index$i_StateRoot = StateRoot;
7308
- type index$i_Version = Version;
7309
- declare const index$i_Version: typeof Version;
7310
- declare const index$i_ancestryCodec: typeof ancestryCodec;
7311
- declare const index$i_getStateCodec: typeof getStateCodec;
7312
- declare const index$i_messageCodec: typeof messageCodec;
7313
- declare const index$i_stateCodec: typeof stateCodec;
7314
- declare const index$i_stateRootCodec: typeof stateRootCodec;
7315
- declare namespace index$i {
7316
- export { index$i_AncestryItem as AncestryItem, index$i_ErrorMessage as ErrorMessage, index$i_Features as Features, index$i_FuzzTarget as FuzzTarget, index$i_Initialize as Initialize, index$i_KeyValue as KeyValue, index$i_MessageType as MessageType, index$i_PeerInfo as PeerInfo, index$i_Version as Version, index$i_ancestryCodec as ancestryCodec, index$i_getStateCodec as getStateCodec, index$i_messageCodec as messageCodec, index$i_stateCodec as stateCodec, index$i_stateRootCodec as stateRootCodec };
7317
- export type { index$i_Ancestry as Ancestry, index$i_FuzzMessageHandler as FuzzMessageHandler, index$i_GetState as GetState, index$i_Message as Message, index$i_MessageData as MessageData, index$i_StateRoot as StateRoot };
7318
- }
7319
-
7320
- type index$h_IpcHandler = IpcHandler;
7321
- type index$h_IpcSender = IpcSender;
7322
- declare namespace index$h {
7323
- export { index$i as v1 };
7324
- export type { index$h_IpcHandler as IpcHandler, index$h_IpcSender as IpcSender };
7042
+ type index$6_Ancestry = Ancestry;
7043
+ type index$6_AncestryItem = AncestryItem;
7044
+ declare const index$6_AncestryItem: typeof AncestryItem;
7045
+ type index$6_ErrorMessage = ErrorMessage;
7046
+ declare const index$6_ErrorMessage: typeof ErrorMessage;
7047
+ type index$6_Features = Features;
7048
+ declare const index$6_Features: typeof Features;
7049
+ type index$6_FuzzMessageHandler = FuzzMessageHandler;
7050
+ type index$6_FuzzTarget = FuzzTarget;
7051
+ declare const index$6_FuzzTarget: typeof FuzzTarget;
7052
+ type index$6_GetState = GetState;
7053
+ type index$6_Initialize = Initialize;
7054
+ declare const index$6_Initialize: typeof Initialize;
7055
+ type index$6_KeyValue = KeyValue;
7056
+ declare const index$6_KeyValue: typeof KeyValue;
7057
+ type index$6_Message = Message;
7058
+ type index$6_MessageData = MessageData;
7059
+ type index$6_MessageType = MessageType;
7060
+ declare const index$6_MessageType: typeof MessageType;
7061
+ type index$6_PeerInfo = PeerInfo;
7062
+ declare const index$6_PeerInfo: typeof PeerInfo;
7063
+ type index$6_StateRoot = StateRoot;
7064
+ type index$6_Version = Version;
7065
+ declare const index$6_Version: typeof Version;
7066
+ declare const index$6_ancestryCodec: typeof ancestryCodec;
7067
+ declare const index$6_getStateCodec: typeof getStateCodec;
7068
+ declare const index$6_messageCodec: typeof messageCodec;
7069
+ declare const index$6_stateCodec: typeof stateCodec;
7070
+ declare const index$6_stateRootCodec: typeof stateRootCodec;
7071
+ declare namespace index$6 {
7072
+ export { index$6_AncestryItem as AncestryItem, index$6_ErrorMessage as ErrorMessage, index$6_Features as Features, index$6_FuzzTarget as FuzzTarget, index$6_Initialize as Initialize, index$6_KeyValue as KeyValue, index$6_MessageType as MessageType, index$6_PeerInfo as PeerInfo, index$6_Version as Version, index$6_ancestryCodec as ancestryCodec, index$6_getStateCodec as getStateCodec, index$6_messageCodec as messageCodec, index$6_stateCodec as stateCodec, index$6_stateRootCodec as stateRootCodec };
7073
+ export type { index$6_Ancestry as Ancestry, index$6_FuzzMessageHandler as FuzzMessageHandler, index$6_GetState as GetState, index$6_Message as Message, index$6_MessageData as MessageData, index$6_StateRoot as StateRoot };
7074
+ }
7075
+
7076
+ /**
7077
+ * Fuzzing protocol support and utilities.
7078
+ *
7079
+ * This module provides utilities and types for protocol fuzzing and testing,
7080
+ * helping ensure robustness of the JAM implementation.
7081
+ *
7082
+ * @module fuzz-proto
7083
+ */
7084
+
7085
+ type fuzzProto_IpcHandler = IpcHandler;
7086
+ type fuzzProto_IpcSender = IpcSender;
7087
+ declare namespace fuzzProto {
7088
+ export { index$6 as v1 };
7089
+ export type { fuzzProto_IpcHandler as IpcHandler, fuzzProto_IpcSender as IpcSender };
7090
+ }
7091
+
7092
+ /**
7093
+ * Hashing functions and utilities.
7094
+ *
7095
+ * This module provides cryptographic hash functions including Blake2b and other
7096
+ * hashing algorithms used throughout the JAM protocol.
7097
+ *
7098
+ * @module hash
7099
+ */
7100
+
7101
+ type hash_Blake2b = Blake2b;
7102
+ declare const hash_Blake2b: typeof Blake2b;
7103
+ type hash_Blake2bHash = Blake2bHash;
7104
+ type hash_HASH_SIZE = HASH_SIZE;
7105
+ type hash_KeccakHash = KeccakHash;
7106
+ type hash_OpaqueHash = OpaqueHash;
7107
+ type hash_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
7108
+ type hash_TruncatedHash = TruncatedHash;
7109
+ type hash_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
7110
+ declare const hash_WithHash: typeof WithHash;
7111
+ type hash_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
7112
+ declare const hash_WithHashAndBytes: typeof WithHashAndBytes;
7113
+ declare const hash_ZERO_HASH: typeof ZERO_HASH;
7114
+ declare const hash_keccak: typeof keccak;
7115
+ declare namespace hash {
7116
+ export { hash_Blake2b as Blake2b, hash_WithHash as WithHash, hash_WithHashAndBytes as WithHashAndBytes, hash_ZERO_HASH as ZERO_HASH, hash_keccak as keccak };
7117
+ export type { hash_Blake2bHash as Blake2bHash, hash_HASH_SIZE as HASH_SIZE, hash_KeccakHash as KeccakHash, hash_OpaqueHash as OpaqueHash, hash_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, hash_TruncatedHash as TruncatedHash };
7325
7118
  }
7326
7119
 
7327
7120
  /**
@@ -7495,37 +7288,6 @@ declare function startSameThread<To, From>(protocol: LousyProtocol<To, From>): {
7495
7288
  internal: Internal<LousyProtocol<To, From>>;
7496
7289
  };
7497
7290
 
7498
- type index$g_Api<T> = Api<T>;
7499
- type index$g_Channel = Channel;
7500
- declare const index$g_Channel: typeof Channel;
7501
- type index$g_Destroy = Destroy;
7502
- type index$g_DirectPort = DirectPort;
7503
- declare const index$g_DirectPort: typeof DirectPort;
7504
- type index$g_DirectWorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = DirectWorkerConfig<TParams, TBlocks, TStates>;
7505
- declare const index$g_DirectWorkerConfig: typeof DirectWorkerConfig;
7506
- type index$g_Envelope<T> = Envelope<T>;
7507
- type index$g_Handler<Req, Res> = Handler<Req, Res>;
7508
- type index$g_HandlerKey<K> = HandlerKey<K>;
7509
- type index$g_Handlers<In> = Handlers<In>;
7510
- type index$g_Internal<T> = Internal<T>;
7511
- type index$g_LousyProtocol<To, From> = LousyProtocol<To, From>;
7512
- type index$g_MessageCodecs<Req, Res> = MessageCodecs<Req, Res>;
7513
- type index$g_MessagesList<T> = MessagesList<T>;
7514
- type index$g_Port = Port;
7515
- type index$g_Protocol<To, From> = Protocol<To, From>;
7516
- type index$g_Rx<To, From> = Rx<To, From>;
7517
- type index$g_Sender<Req, Res> = Sender<Req, Res>;
7518
- type index$g_SenderKey<K> = SenderKey<K>;
7519
- type index$g_Senders<Out> = Senders<Out>;
7520
- type index$g_Tx<To, From> = Tx<To, From>;
7521
- type index$g_WorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = WorkerConfig<TParams, TBlocks, TStates>;
7522
- declare const index$g_createProtocol: typeof createProtocol;
7523
- declare const index$g_startSameThread: typeof startSameThread;
7524
- declare namespace index$g {
7525
- export { index$g_Channel as Channel, index$g_DirectPort as DirectPort, index$g_DirectWorkerConfig as DirectWorkerConfig, index$g_createProtocol as createProtocol, index$g_startSameThread as startSameThread };
7526
- export type { index$g_Api as Api, index$g_Destroy as Destroy, index$g_Envelope as Envelope, index$g_Handler as Handler, index$g_HandlerKey as HandlerKey, index$g_Handlers as Handlers, index$g_Internal as Internal, index$g_LousyProtocol as LousyProtocol, index$g_MessageCodecs as MessageCodecs, index$g_MessagesList as MessagesList, index$g_Port as Port, index$g_Protocol as Protocol, index$g_Rx as Rx, index$g_Sender as Sender, index$g_SenderKey as SenderKey, index$g_Senders as Senders, index$g_Tx as Tx, index$g_WorkerConfig as WorkerConfig };
7527
- }
7528
-
7529
7291
  declare enum Level {
7530
7292
  INSANE = 1,
7531
7293
  TRACE = 2,
@@ -7654,22 +7416,6 @@ declare class Logger {
7654
7416
  error(strings: TemplateStringsArray, ...data: unknown[]): void;
7655
7417
  }
7656
7418
 
7657
- type index$f_ConsoleTransport = ConsoleTransport;
7658
- declare const index$f_ConsoleTransport: typeof ConsoleTransport;
7659
- type index$f_Level = Level;
7660
- declare const index$f_Level: typeof Level;
7661
- type index$f_Logger = Logger;
7662
- declare const index$f_Logger: typeof Logger;
7663
- type index$f_Options = Options;
7664
- type index$f_Transport = Transport;
7665
- type index$f_TransportBuilder = TransportBuilder;
7666
- declare const index$f_findLevel: typeof findLevel;
7667
- declare const index$f_parseLoggerOptions: typeof parseLoggerOptions;
7668
- declare namespace index$f {
7669
- export { index$f_ConsoleTransport as ConsoleTransport, index$f_Level as Level, index$f_Logger as Logger, index$f_findLevel as findLevel, index$f_parseLoggerOptions as parseLoggerOptions };
7670
- export type { index$f_Options as Options, index$f_Transport as Transport, index$f_TransportBuilder as TransportBuilder };
7671
- }
7672
-
7673
7419
  /** A U64 version of `Gas`. */
7674
7420
  type BigGas = Opaque<U64, "BigGas[U64]">;
7675
7421
  /** A U32 version of `Gas`. */
@@ -7787,28 +7533,6 @@ interface IPvmInterpreter {
7787
7533
  getExitParam(): U32 | null;
7788
7534
  }
7789
7535
 
7790
- type index$e_BigGas = BigGas;
7791
- type index$e_Gas = Gas;
7792
- type index$e_IGasCounter = IGasCounter;
7793
- type index$e_IMemory = IMemory;
7794
- type index$e_IPvmInterpreter = IPvmInterpreter;
7795
- type index$e_IRegisters = IRegisters;
7796
- declare const index$e_MAX_MEMORY_INDEX: typeof MAX_MEMORY_INDEX;
7797
- declare const index$e_MEMORY_SIZE: typeof MEMORY_SIZE;
7798
- declare const index$e_NO_OF_REGISTERS: typeof NO_OF_REGISTERS;
7799
- declare const index$e_REGISTER_BYTE_SIZE: typeof REGISTER_BYTE_SIZE;
7800
- type index$e_SmallGas = SmallGas;
7801
- type index$e_Status = Status;
7802
- declare const index$e_Status: typeof Status;
7803
- declare const index$e_getPageStartAddress: typeof getPageStartAddress;
7804
- declare const index$e_tryAsBigGas: typeof tryAsBigGas;
7805
- declare const index$e_tryAsGas: typeof tryAsGas;
7806
- declare const index$e_tryAsSmallGas: typeof tryAsSmallGas;
7807
- declare namespace index$e {
7808
- export { index$e_MAX_MEMORY_INDEX as MAX_MEMORY_INDEX, index$e_MEMORY_SIZE as MEMORY_SIZE, index$e_NO_OF_REGISTERS as NO_OF_REGISTERS, index$e_REGISTER_BYTE_SIZE as REGISTER_BYTE_SIZE, index$e_Status as Status, index$e_getPageStartAddress as getPageStartAddress, index$e_tryAsBigGas as tryAsBigGas, index$e_tryAsGas as tryAsGas, index$e_tryAsSmallGas as tryAsSmallGas };
7809
- export type { index$e_BigGas as BigGas, index$e_Gas as Gas, index$e_IGasCounter as IGasCounter, index$e_IMemory as IMemory, index$e_IPvmInterpreter as IPvmInterpreter, index$e_IRegisters as IRegisters, PageFault$1 as PageFault, index$e_SmallGas as SmallGas };
7810
- }
7811
-
7812
7536
  type RegisterIndex = Opaque<number, "register index">;
7813
7537
  declare const tryAsRegisterIndex: (index: number) => RegisterIndex;
7814
7538
  declare class Registers implements IRegisters {
@@ -7950,20 +7674,6 @@ declare class HostCalls {
7950
7674
  runProgram(program: Uint8Array, args: Uint8Array, initialPc: number, initialGas: Gas): Promise<ReturnValue>;
7951
7675
  }
7952
7676
 
7953
- type index$d_HostCallHandler = HostCallHandler;
7954
- type index$d_HostCallMemory = HostCallMemory;
7955
- declare const index$d_HostCallMemory: typeof HostCallMemory;
7956
- type index$d_HostCallRegisters = HostCallRegisters;
7957
- declare const index$d_HostCallRegisters: typeof HostCallRegisters;
7958
- type index$d_PvmExecution = PvmExecution;
7959
- declare const index$d_PvmExecution: typeof PvmExecution;
7960
- declare const index$d_traceRegisters: typeof traceRegisters;
7961
- declare const index$d_tryAsHostCallIndex: typeof tryAsHostCallIndex;
7962
- declare namespace index$d {
7963
- export { index$d_HostCallMemory as HostCallMemory, index$d_HostCallRegisters as HostCallRegisters, HostCallsManager as HostCalls, index$d_PvmExecution as PvmExecution, HostCalls as PvmHostCallExtension, InterpreterInstanceManager as PvmInstanceManager, index$d_traceRegisters as traceRegisters, index$d_tryAsHostCallIndex as tryAsHostCallIndex };
7964
- export type { index$d_HostCallHandler as HostCallHandler };
7965
- }
7966
-
7967
7677
  /** Size of the transfer memo. */
7968
7678
  declare const TRANSFER_MEMO_BYTES = 128;
7969
7679
  type TRANSFER_MEMO_BYTES = typeof TRANSFER_MEMO_BYTES;
@@ -8369,49 +8079,49 @@ declare class Yield implements HostCallHandler {
8369
8079
  execute(_gas: IGasCounter, regs: HostCallRegisters, memory: HostCallMemory): Promise<PvmExecution | undefined>;
8370
8080
  }
8371
8081
 
8372
- type index$c_Assign = Assign;
8373
- declare const index$c_Assign: typeof Assign;
8374
- type index$c_Bless = Bless;
8375
- declare const index$c_Bless: typeof Bless;
8376
- type index$c_Checkpoint = Checkpoint;
8377
- declare const index$c_Checkpoint: typeof Checkpoint;
8378
- type index$c_Designate = Designate;
8379
- declare const index$c_Designate: typeof Designate;
8380
- type index$c_Eject = Eject;
8381
- declare const index$c_Eject: typeof Eject;
8382
- type index$c_Forget = Forget;
8383
- declare const index$c_Forget: typeof Forget;
8384
- type index$c_New = New;
8385
- declare const index$c_New: typeof New;
8386
- type index$c_Provide = Provide;
8387
- declare const index$c_Provide: typeof Provide;
8388
- type index$c_Query = Query;
8389
- declare const index$c_Query: typeof Query;
8390
- type index$c_Solicit = Solicit;
8391
- declare const index$c_Solicit: typeof Solicit;
8392
- type index$c_Transfer = Transfer;
8393
- declare const index$c_Transfer: typeof Transfer;
8394
- type index$c_Upgrade = Upgrade;
8395
- declare const index$c_Upgrade: typeof Upgrade;
8396
- declare const index$c_VALIDATOR_DATA_BYTES: typeof VALIDATOR_DATA_BYTES;
8397
- type index$c_Yield = Yield;
8398
- declare const index$c_Yield: typeof Yield;
8399
- declare namespace index$c {
8082
+ type index$5_Assign = Assign;
8083
+ declare const index$5_Assign: typeof Assign;
8084
+ type index$5_Bless = Bless;
8085
+ declare const index$5_Bless: typeof Bless;
8086
+ type index$5_Checkpoint = Checkpoint;
8087
+ declare const index$5_Checkpoint: typeof Checkpoint;
8088
+ type index$5_Designate = Designate;
8089
+ declare const index$5_Designate: typeof Designate;
8090
+ type index$5_Eject = Eject;
8091
+ declare const index$5_Eject: typeof Eject;
8092
+ type index$5_Forget = Forget;
8093
+ declare const index$5_Forget: typeof Forget;
8094
+ type index$5_New = New;
8095
+ declare const index$5_New: typeof New;
8096
+ type index$5_Provide = Provide;
8097
+ declare const index$5_Provide: typeof Provide;
8098
+ type index$5_Query = Query;
8099
+ declare const index$5_Query: typeof Query;
8100
+ type index$5_Solicit = Solicit;
8101
+ declare const index$5_Solicit: typeof Solicit;
8102
+ type index$5_Transfer = Transfer;
8103
+ declare const index$5_Transfer: typeof Transfer;
8104
+ type index$5_Upgrade = Upgrade;
8105
+ declare const index$5_Upgrade: typeof Upgrade;
8106
+ declare const index$5_VALIDATOR_DATA_BYTES: typeof VALIDATOR_DATA_BYTES;
8107
+ type index$5_Yield = Yield;
8108
+ declare const index$5_Yield: typeof Yield;
8109
+ declare namespace index$5 {
8400
8110
  export {
8401
- index$c_Assign as Assign,
8402
- index$c_Bless as Bless,
8403
- index$c_Checkpoint as Checkpoint,
8404
- index$c_Designate as Designate,
8405
- index$c_Eject as Eject,
8406
- index$c_Forget as Forget,
8407
- index$c_New as New,
8408
- index$c_Provide as Provide,
8409
- index$c_Query as Query,
8410
- index$c_Solicit as Solicit,
8411
- index$c_Transfer as Transfer,
8412
- index$c_Upgrade as Upgrade,
8413
- index$c_VALIDATOR_DATA_BYTES as VALIDATOR_DATA_BYTES,
8414
- index$c_Yield as Yield,
8111
+ index$5_Assign as Assign,
8112
+ index$5_Bless as Bless,
8113
+ index$5_Checkpoint as Checkpoint,
8114
+ index$5_Designate as Designate,
8115
+ index$5_Eject as Eject,
8116
+ index$5_Forget as Forget,
8117
+ index$5_New as New,
8118
+ index$5_Provide as Provide,
8119
+ index$5_Query as Query,
8120
+ index$5_Solicit as Solicit,
8121
+ index$5_Transfer as Transfer,
8122
+ index$5_Upgrade as Upgrade,
8123
+ index$5_VALIDATOR_DATA_BYTES as VALIDATOR_DATA_BYTES,
8124
+ index$5_Yield as Yield,
8415
8125
  };
8416
8126
  }
8417
8127
 
@@ -9136,35 +8846,35 @@ declare class Write implements HostCallHandler {
9136
8846
  execute(_gas: IGasCounter, regs: HostCallRegisters, memory: HostCallMemory): Promise<undefined | PvmExecution>;
9137
8847
  }
9138
8848
 
9139
- type index$b_AccountsInfo = AccountsInfo;
9140
- type index$b_AccountsLookup = AccountsLookup;
9141
- type index$b_AccountsRead = AccountsRead;
9142
- type index$b_AccountsWrite = AccountsWrite;
9143
- type index$b_Fetch = Fetch;
9144
- declare const index$b_Fetch: typeof Fetch;
9145
- type index$b_FetchKind = FetchKind;
9146
- declare const index$b_FetchKind: typeof FetchKind;
9147
- type index$b_GasHostCall = GasHostCall;
9148
- declare const index$b_GasHostCall: typeof GasHostCall;
9149
- declare const index$b_HostCallResult: typeof HostCallResult;
9150
- type index$b_IFetchExternalities = IFetchExternalities;
9151
- type index$b_Info = Info;
9152
- declare const index$b_Info: typeof Info;
9153
- declare const index$b_LEN_REG: typeof LEN_REG;
9154
- type index$b_LogHostCall = LogHostCall;
9155
- declare const index$b_LogHostCall: typeof LogHostCall;
9156
- type index$b_Lookup = Lookup;
9157
- declare const index$b_Lookup: typeof Lookup;
9158
- type index$b_Missing = Missing;
9159
- declare const index$b_Missing: typeof Missing;
9160
- type index$b_Read = Read;
9161
- declare const index$b_Read: typeof Read;
9162
- type index$b_Write = Write;
9163
- declare const index$b_Write: typeof Write;
9164
- declare const index$b_codecServiceAccountInfoWithThresholdBalance: typeof codecServiceAccountInfoWithThresholdBalance;
9165
- declare namespace index$b {
9166
- export { index$b_Fetch as Fetch, index$b_FetchKind as FetchKind, index$b_GasHostCall as GasHostCall, index$b_HostCallResult as HostCallResult, index$b_Info as Info, index$b_LEN_REG as LEN_REG, index$b_LogHostCall as LogHostCall, index$b_Lookup as Lookup, index$b_Missing as Missing, index$b_Read as Read, index$b_Write as Write, index$b_codecServiceAccountInfoWithThresholdBalance as codecServiceAccountInfoWithThresholdBalance };
9167
- export type { index$b_AccountsInfo as AccountsInfo, index$b_AccountsLookup as AccountsLookup, index$b_AccountsRead as AccountsRead, index$b_AccountsWrite as AccountsWrite, index$b_IFetchExternalities as IFetchExternalities };
8849
+ type index$4_AccountsInfo = AccountsInfo;
8850
+ type index$4_AccountsLookup = AccountsLookup;
8851
+ type index$4_AccountsRead = AccountsRead;
8852
+ type index$4_AccountsWrite = AccountsWrite;
8853
+ type index$4_Fetch = Fetch;
8854
+ declare const index$4_Fetch: typeof Fetch;
8855
+ type index$4_FetchKind = FetchKind;
8856
+ declare const index$4_FetchKind: typeof FetchKind;
8857
+ type index$4_GasHostCall = GasHostCall;
8858
+ declare const index$4_GasHostCall: typeof GasHostCall;
8859
+ declare const index$4_HostCallResult: typeof HostCallResult;
8860
+ type index$4_IFetchExternalities = IFetchExternalities;
8861
+ type index$4_Info = Info;
8862
+ declare const index$4_Info: typeof Info;
8863
+ declare const index$4_LEN_REG: typeof LEN_REG;
8864
+ type index$4_LogHostCall = LogHostCall;
8865
+ declare const index$4_LogHostCall: typeof LogHostCall;
8866
+ type index$4_Lookup = Lookup;
8867
+ declare const index$4_Lookup: typeof Lookup;
8868
+ type index$4_Missing = Missing;
8869
+ declare const index$4_Missing: typeof Missing;
8870
+ type index$4_Read = Read;
8871
+ declare const index$4_Read: typeof Read;
8872
+ type index$4_Write = Write;
8873
+ declare const index$4_Write: typeof Write;
8874
+ declare const index$4_codecServiceAccountInfoWithThresholdBalance: typeof codecServiceAccountInfoWithThresholdBalance;
8875
+ declare namespace index$4 {
8876
+ export { index$4_Fetch as Fetch, index$4_FetchKind as FetchKind, index$4_GasHostCall as GasHostCall, index$4_HostCallResult as HostCallResult, index$4_Info as Info, index$4_LEN_REG as LEN_REG, index$4_LogHostCall as LogHostCall, index$4_Lookup as Lookup, index$4_Missing as Missing, index$4_Read as Read, index$4_Write as Write, index$4_codecServiceAccountInfoWithThresholdBalance as codecServiceAccountInfoWithThresholdBalance };
8877
+ export type { index$4_AccountsInfo as AccountsInfo, index$4_AccountsLookup as AccountsLookup, index$4_AccountsRead as AccountsRead, index$4_AccountsWrite as AccountsWrite, index$4_IFetchExternalities as IFetchExternalities };
9168
8878
  }
9169
8879
 
9170
8880
  /**
@@ -9288,32 +8998,32 @@ declare class Poke implements HostCallHandler {
9288
8998
  execute(_gas: IGasCounter, regs: HostCallRegisters, memory: HostCallMemory): Promise<PvmExecution | undefined>;
9289
8999
  }
9290
9000
 
9291
- type index$a_Export = Export;
9292
- declare const index$a_Export: typeof Export;
9293
- type index$a_Expunge = Expunge;
9294
- declare const index$a_Expunge: typeof Expunge;
9295
- type index$a_HistoricalLookup = HistoricalLookup;
9296
- declare const index$a_HistoricalLookup: typeof HistoricalLookup;
9297
- type index$a_Invoke = Invoke;
9298
- declare const index$a_Invoke: typeof Invoke;
9299
- type index$a_Machine = Machine;
9300
- declare const index$a_Machine: typeof Machine;
9301
- type index$a_Pages = Pages;
9302
- declare const index$a_Pages: typeof Pages;
9303
- type index$a_Peek = Peek;
9304
- declare const index$a_Peek: typeof Peek;
9305
- type index$a_Poke = Poke;
9306
- declare const index$a_Poke: typeof Poke;
9307
- declare namespace index$a {
9001
+ type index$3_Export = Export;
9002
+ declare const index$3_Export: typeof Export;
9003
+ type index$3_Expunge = Expunge;
9004
+ declare const index$3_Expunge: typeof Expunge;
9005
+ type index$3_HistoricalLookup = HistoricalLookup;
9006
+ declare const index$3_HistoricalLookup: typeof HistoricalLookup;
9007
+ type index$3_Invoke = Invoke;
9008
+ declare const index$3_Invoke: typeof Invoke;
9009
+ type index$3_Machine = Machine;
9010
+ declare const index$3_Machine: typeof Machine;
9011
+ type index$3_Pages = Pages;
9012
+ declare const index$3_Pages: typeof Pages;
9013
+ type index$3_Peek = Peek;
9014
+ declare const index$3_Peek: typeof Peek;
9015
+ type index$3_Poke = Poke;
9016
+ declare const index$3_Poke: typeof Poke;
9017
+ declare namespace index$3 {
9308
9018
  export {
9309
- index$a_Export as Export,
9310
- index$a_Expunge as Expunge,
9311
- index$a_HistoricalLookup as HistoricalLookup,
9312
- index$a_Invoke as Invoke,
9313
- index$a_Machine as Machine,
9314
- index$a_Pages as Pages,
9315
- index$a_Peek as Peek,
9316
- index$a_Poke as Poke,
9019
+ index$3_Export as Export,
9020
+ index$3_Expunge as Expunge,
9021
+ index$3_HistoricalLookup as HistoricalLookup,
9022
+ index$3_Invoke as Invoke,
9023
+ index$3_Machine as Machine,
9024
+ index$3_Pages as Pages,
9025
+ index$3_Peek as Peek,
9026
+ index$3_Poke as Poke,
9317
9027
  };
9318
9028
  }
9319
9029
 
@@ -9326,68 +9036,6 @@ declare function writeServiceIdAsLeBytes(serviceId: ServiceId, destination: Uint
9326
9036
  declare function clampU64ToU32(value: U64): U32;
9327
9037
  declare function emptyRegistersBuffer(): Uint8Array;
9328
9038
 
9329
- type index$9_AccumulationStateUpdate = AccumulationStateUpdate;
9330
- declare const index$9_AccumulationStateUpdate: typeof AccumulationStateUpdate;
9331
- declare const index$9_CURRENT_SERVICE_ID: typeof CURRENT_SERVICE_ID;
9332
- type index$9_EjectError = EjectError;
9333
- declare const index$9_EjectError: typeof EjectError;
9334
- type index$9_ForgetPreimageError = ForgetPreimageError;
9335
- declare const index$9_ForgetPreimageError: typeof ForgetPreimageError;
9336
- declare const index$9_HostCallResult: typeof HostCallResult;
9337
- type index$9_InsufficientFundsError = InsufficientFundsError;
9338
- type index$9_MachineId = MachineId;
9339
- type index$9_MachineInstance = MachineInstance;
9340
- declare const index$9_MachineInstance: typeof MachineInstance;
9341
- type index$9_MachineResult = MachineResult;
9342
- type index$9_MachineStatus = MachineStatus;
9343
- type index$9_MemoryOperation = MemoryOperation;
9344
- declare const index$9_MemoryOperation: typeof MemoryOperation;
9345
- type index$9_NewServiceError = NewServiceError;
9346
- declare const index$9_NewServiceError: typeof NewServiceError;
9347
- type index$9_NoMachineError = NoMachineError;
9348
- type index$9_PagesError = PagesError;
9349
- declare const index$9_PagesError: typeof PagesError;
9350
- type index$9_PartialState = PartialState;
9351
- type index$9_PartiallyUpdatedState<T extends StateSlice = StateSlice> = PartiallyUpdatedState<T>;
9352
- declare const index$9_PartiallyUpdatedState: typeof PartiallyUpdatedState;
9353
- type index$9_PeekPokeError = PeekPokeError;
9354
- declare const index$9_PeekPokeError: typeof PeekPokeError;
9355
- type index$9_PendingTransfer = PendingTransfer;
9356
- declare const index$9_PendingTransfer: typeof PendingTransfer;
9357
- type index$9_PreimageStatus = PreimageStatus;
9358
- type index$9_PreimageStatusKind = PreimageStatusKind;
9359
- declare const index$9_PreimageStatusKind: typeof PreimageStatusKind;
9360
- type index$9_ProgramCounter = ProgramCounter;
9361
- type index$9_ProvidePreimageError = ProvidePreimageError;
9362
- declare const index$9_ProvidePreimageError: typeof ProvidePreimageError;
9363
- type index$9_RefineExternalities = RefineExternalities;
9364
- type index$9_RequestPreimageError = RequestPreimageError;
9365
- declare const index$9_RequestPreimageError: typeof RequestPreimageError;
9366
- declare const index$9_SERVICE_ID_BYTES: typeof SERVICE_ID_BYTES;
9367
- type index$9_SegmentExportError = SegmentExportError;
9368
- type index$9_ServiceStateUpdate = ServiceStateUpdate;
9369
- type index$9_TRANSFER_MEMO_BYTES = TRANSFER_MEMO_BYTES;
9370
- type index$9_TransferError = TransferError;
9371
- declare const index$9_TransferError: typeof TransferError;
9372
- type index$9_UnprivilegedError = UnprivilegedError;
9373
- type index$9_UpdatePrivilegesError = UpdatePrivilegesError;
9374
- declare const index$9_UpdatePrivilegesError: typeof UpdatePrivilegesError;
9375
- type index$9_ZeroVoidError = ZeroVoidError;
9376
- declare const index$9_ZeroVoidError: typeof ZeroVoidError;
9377
- declare const index$9_clampU64ToU32: typeof clampU64ToU32;
9378
- declare const index$9_emptyRegistersBuffer: typeof emptyRegistersBuffer;
9379
- declare const index$9_getServiceId: typeof getServiceId;
9380
- declare const index$9_getServiceIdOrCurrent: typeof getServiceIdOrCurrent;
9381
- declare const index$9_slotsToPreimageStatus: typeof slotsToPreimageStatus;
9382
- declare const index$9_toMemoryOperation: typeof toMemoryOperation;
9383
- declare const index$9_tryAsMachineId: typeof tryAsMachineId;
9384
- declare const index$9_tryAsProgramCounter: typeof tryAsProgramCounter;
9385
- declare const index$9_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
9386
- declare namespace index$9 {
9387
- export { index$9_AccumulationStateUpdate as AccumulationStateUpdate, index$9_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$9_EjectError as EjectError, index$9_ForgetPreimageError as ForgetPreimageError, index$9_HostCallResult as HostCallResult, index$9_MachineInstance as MachineInstance, index$9_MemoryOperation as MemoryOperation, index$9_NewServiceError as NewServiceError, index$9_PagesError as PagesError, index$9_PartiallyUpdatedState as PartiallyUpdatedState, index$9_PeekPokeError as PeekPokeError, index$9_PendingTransfer as PendingTransfer, index$9_PreimageStatusKind as PreimageStatusKind, index$9_ProvidePreimageError as ProvidePreimageError, index$9_RequestPreimageError as RequestPreimageError, index$9_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$9_TransferError as TransferError, index$9_UpdatePrivilegesError as UpdatePrivilegesError, index$9_ZeroVoidError as ZeroVoidError, index$c as accumulate, index$9_clampU64ToU32 as clampU64ToU32, index$9_emptyRegistersBuffer as emptyRegistersBuffer, index$b as general, index$9_getServiceId as getServiceId, index$9_getServiceIdOrCurrent as getServiceIdOrCurrent, codecServiceAccountInfoWithThresholdBalance as hostCallInfoAccount, index$a as refine, index$9_slotsToPreimageStatus as slotsToPreimageStatus, index$9_toMemoryOperation as toMemoryOperation, index$9_tryAsMachineId as tryAsMachineId, index$9_tryAsProgramCounter as tryAsProgramCounter, index$9_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
9388
- export type { index$9_InsufficientFundsError as InsufficientFundsError, index$9_MachineId as MachineId, index$9_MachineResult as MachineResult, index$9_MachineStatus as MachineStatus, index$9_NoMachineError as NoMachineError, index$9_PartialState as PartialState, index$9_PreimageStatus as PreimageStatus, index$9_ProgramCounter as ProgramCounter, index$9_RefineExternalities as RefineExternalities, index$9_SegmentExportError as SegmentExportError, index$9_ServiceStateUpdate as ServiceStateUpdate, index$9_TRANSFER_MEMO_BYTES as TRANSFER_MEMO_BYTES, index$9_UnprivilegedError as UnprivilegedError };
9389
- }
9390
-
9391
9039
  type Input = {
9392
9040
  slot: TimeSlot;
9393
9041
  authorIndex: ValidatorIndex;
@@ -10252,14 +9900,14 @@ declare class FetchExternalities implements IFetchExternalities {
10252
9900
  oneTransferOrOperand(index: U64): BytesBlob | null;
10253
9901
  }
10254
9902
 
10255
- type index$8_AccumulateExternalities = AccumulateExternalities;
10256
- declare const index$8_AccumulateExternalities: typeof AccumulateExternalities;
10257
- type index$8_FetchExternalities = FetchExternalities;
10258
- declare const index$8_FetchExternalities: typeof FetchExternalities;
10259
- type index$8_TransferOrOperand = TransferOrOperand;
10260
- declare namespace index$8 {
10261
- export { index$8_AccumulateExternalities as AccumulateExternalities, index$8_FetchExternalities as FetchExternalities };
10262
- export type { index$8_TransferOrOperand as TransferOrOperand };
9903
+ type index$2_AccumulateExternalities = AccumulateExternalities;
9904
+ declare const index$2_AccumulateExternalities: typeof AccumulateExternalities;
9905
+ type index$2_FetchExternalities = FetchExternalities;
9906
+ declare const index$2_FetchExternalities: typeof FetchExternalities;
9907
+ type index$2_TransferOrOperand = TransferOrOperand;
9908
+ declare namespace index$2 {
9909
+ export { index$2_AccumulateExternalities as AccumulateExternalities, index$2_FetchExternalities as FetchExternalities };
9910
+ export type { index$2_TransferOrOperand as TransferOrOperand };
10263
9911
  }
10264
9912
 
10265
9913
  /**
@@ -10272,88 +9920,6 @@ declare function copyAndUpdateState<T extends Partial<State>>(preState: T, state
10272
9920
  [K in keyof T]: T[K];
10273
9921
  };
10274
9922
 
10275
- type index$7_ACCUMULATION_ERROR = ACCUMULATION_ERROR;
10276
- type index$7_Accumulate = Accumulate;
10277
- declare const index$7_Accumulate: typeof Accumulate;
10278
- type index$7_AccumulateInput = AccumulateInput;
10279
- type index$7_AccumulateOptions = AccumulateOptions;
10280
- type index$7_AccumulateResult = AccumulateResult;
10281
- type index$7_AccumulateRoot = AccumulateRoot;
10282
- type index$7_AccumulateState = AccumulateState;
10283
- type index$7_AccumulateStateUpdate = AccumulateStateUpdate;
10284
- type index$7_Assurances = Assurances;
10285
- declare const index$7_Assurances: typeof Assurances;
10286
- type index$7_AssurancesError = AssurancesError;
10287
- declare const index$7_AssurancesError: typeof AssurancesError;
10288
- type index$7_AssurancesInput = AssurancesInput;
10289
- type index$7_AssurancesState = AssurancesState;
10290
- type index$7_AssurancesStateUpdate = AssurancesStateUpdate;
10291
- type index$7_Authorization = Authorization;
10292
- declare const index$7_Authorization: typeof Authorization;
10293
- type index$7_AuthorizationInput = AuthorizationInput;
10294
- type index$7_AuthorizationState = AuthorizationState;
10295
- type index$7_AuthorizationStateUpdate = AuthorizationStateUpdate;
10296
- type index$7_BlockVerifier = BlockVerifier;
10297
- declare const index$7_BlockVerifier: typeof BlockVerifier;
10298
- type index$7_BlockVerifierError = BlockVerifierError;
10299
- declare const index$7_BlockVerifierError: typeof BlockVerifierError;
10300
- type index$7_CountAndGasUsed = CountAndGasUsed;
10301
- type index$7_DbHeaderChain = DbHeaderChain;
10302
- declare const index$7_DbHeaderChain: typeof DbHeaderChain;
10303
- type index$7_DeferredTransfers = DeferredTransfers;
10304
- declare const index$7_DeferredTransfers: typeof DeferredTransfers;
10305
- type index$7_DeferredTransfersErrorCode = DeferredTransfersErrorCode;
10306
- declare const index$7_DeferredTransfersErrorCode: typeof DeferredTransfersErrorCode;
10307
- type index$7_DeferredTransfersResult = DeferredTransfersResult;
10308
- type index$7_DeferredTransfersState = DeferredTransfersState;
10309
- type index$7_Disputes = Disputes;
10310
- declare const index$7_Disputes: typeof Disputes;
10311
- type index$7_DisputesState = DisputesState;
10312
- type index$7_DisputesStateUpdate = DisputesStateUpdate;
10313
- declare const index$7_GAS_TO_INVOKE_WORK_REPORT: typeof GAS_TO_INVOKE_WORK_REPORT;
10314
- type index$7_HeaderChain = HeaderChain;
10315
- type index$7_Input = Input;
10316
- type index$7_Ok = Ok;
10317
- type index$7_OnChain = OnChain;
10318
- declare const index$7_OnChain: typeof OnChain;
10319
- type index$7_Preimages = Preimages;
10320
- declare const index$7_Preimages: typeof Preimages;
10321
- type index$7_PreimagesErrorCode = PreimagesErrorCode;
10322
- declare const index$7_PreimagesErrorCode: typeof PreimagesErrorCode;
10323
- type index$7_PreimagesInput = PreimagesInput;
10324
- type index$7_PreimagesState = PreimagesState;
10325
- type index$7_PreimagesStateUpdate = PreimagesStateUpdate;
10326
- declare const index$7_REPORT_TIMEOUT_GRACE_PERIOD: typeof REPORT_TIMEOUT_GRACE_PERIOD;
10327
- type index$7_RecentHistory = RecentHistory;
10328
- declare const index$7_RecentHistory: typeof RecentHistory;
10329
- type index$7_RecentHistoryInput = RecentHistoryInput;
10330
- type index$7_RecentHistoryPartialInput = RecentHistoryPartialInput;
10331
- type index$7_RecentHistoryState = RecentHistoryState;
10332
- type index$7_RecentHistoryStateUpdate = RecentHistoryStateUpdate;
10333
- type index$7_Reports = Reports;
10334
- declare const index$7_Reports: typeof Reports;
10335
- type index$7_ReportsError = ReportsError;
10336
- declare const index$7_ReportsError: typeof ReportsError;
10337
- type index$7_ReportsInput = ReportsInput;
10338
- type index$7_ReportsOutput = ReportsOutput;
10339
- type index$7_ReportsState = ReportsState;
10340
- type index$7_ReportsStateUpdate = ReportsStateUpdate;
10341
- type index$7_Statistics = Statistics;
10342
- declare const index$7_Statistics: typeof Statistics;
10343
- type index$7_StatisticsState = StatisticsState;
10344
- type index$7_StatisticsStateUpdate = StatisticsStateUpdate;
10345
- type index$7_StfError = StfError;
10346
- type index$7_StfErrorKind = StfErrorKind;
10347
- declare const index$7_StfErrorKind: typeof StfErrorKind;
10348
- type index$7_TransitionHasher = TransitionHasher;
10349
- declare const index$7_TransitionHasher: typeof TransitionHasher;
10350
- declare const index$7_copyAndUpdateState: typeof copyAndUpdateState;
10351
- declare const index$7_stfError: typeof stfError;
10352
- declare namespace index$7 {
10353
- export { index$7_Accumulate as Accumulate, index$7_Assurances as Assurances, index$7_AssurancesError as AssurancesError, index$7_Authorization as Authorization, index$7_BlockVerifier as BlockVerifier, index$7_BlockVerifierError as BlockVerifierError, index$7_DbHeaderChain as DbHeaderChain, index$7_DeferredTransfers as DeferredTransfers, index$7_DeferredTransfersErrorCode as DeferredTransfersErrorCode, index$7_Disputes as Disputes, index$7_GAS_TO_INVOKE_WORK_REPORT as GAS_TO_INVOKE_WORK_REPORT, index$7_OnChain as OnChain, index$7_Preimages as Preimages, index$7_PreimagesErrorCode as PreimagesErrorCode, index$7_REPORT_TIMEOUT_GRACE_PERIOD as REPORT_TIMEOUT_GRACE_PERIOD, index$7_RecentHistory as RecentHistory, index$7_Reports as Reports, index$7_ReportsError as ReportsError, index$7_Statistics as Statistics, index$7_StfErrorKind as StfErrorKind, index$7_TransitionHasher as TransitionHasher, index$7_copyAndUpdateState as copyAndUpdateState, index$8 as externalities, index$7_stfError as stfError };
10354
- export type { index$7_ACCUMULATION_ERROR as ACCUMULATION_ERROR, index$7_AccumulateInput as AccumulateInput, index$7_AccumulateOptions as AccumulateOptions, index$7_AccumulateResult as AccumulateResult, index$7_AccumulateRoot as AccumulateRoot, index$7_AccumulateState as AccumulateState, index$7_AccumulateStateUpdate as AccumulateStateUpdate, index$7_AssurancesInput as AssurancesInput, index$7_AssurancesState as AssurancesState, index$7_AssurancesStateUpdate as AssurancesStateUpdate, index$7_AuthorizationInput as AuthorizationInput, index$7_AuthorizationState as AuthorizationState, index$7_AuthorizationStateUpdate as AuthorizationStateUpdate, index$7_CountAndGasUsed as CountAndGasUsed, index$7_DeferredTransfersResult as DeferredTransfersResult, index$7_DeferredTransfersState as DeferredTransfersState, index$7_DisputesState as DisputesState, index$7_DisputesStateUpdate as DisputesStateUpdate, index$7_HeaderChain as HeaderChain, index$7_Input as Input, index$7_Ok as Ok, index$7_PreimagesInput as PreimagesInput, index$7_PreimagesState as PreimagesState, index$7_PreimagesStateUpdate as PreimagesStateUpdate, index$7_RecentHistoryInput as RecentHistoryInput, index$7_RecentHistoryPartialInput as RecentHistoryPartialInput, index$7_RecentHistoryState as RecentHistoryState, index$7_RecentHistoryStateUpdate as RecentHistoryStateUpdate, index$7_ReportsInput as ReportsInput, index$7_ReportsOutput as ReportsOutput, index$7_ReportsState as ReportsState, index$7_ReportsStateUpdate as ReportsStateUpdate, index$7_StatisticsState as StatisticsState, index$7_StatisticsStateUpdate as StatisticsStateUpdate, index$7_StfError as StfError };
10355
- }
10356
-
10357
9923
  declare enum ImporterErrorKind {
10358
9924
  Verifier = 0,
10359
9925
  Stf = 1,
@@ -10788,19 +10354,274 @@ declare function createMetrics(): {
10788
10354
 
10789
10355
  declare const WORKER: url.URL;
10790
10356
 
10791
- type index$6_Config = Config;
10792
- type index$6_ImporterApi = ImporterApi;
10793
- type index$6_ImporterConfig = ImporterConfig;
10794
- declare const index$6_ImporterConfig: typeof ImporterConfig;
10795
- type index$6_ImporterInternal = ImporterInternal;
10796
- declare const index$6_WORKER: typeof WORKER;
10797
- declare const index$6_createImporter: typeof createImporter;
10798
- declare const index$6_createMetrics: typeof createMetrics;
10799
- declare const index$6_main: typeof main;
10800
- declare const index$6_protocol: typeof protocol;
10801
- declare namespace index$6 {
10802
- export { index$6_ImporterConfig as ImporterConfig, index$6_WORKER as WORKER, index$6_createImporter as createImporter, index$6_createMetrics as createMetrics, index$6_main as main, index$6_protocol as protocol };
10803
- export type { index$6_Config as Config, index$6_ImporterApi as ImporterApi, index$6_ImporterInternal as ImporterInternal };
10357
+ /**
10358
+ * JAM block importer utilities.
10359
+ *
10360
+ * This is the main module implementing JAM blocks importing.
10361
+ *
10362
+ * @module importer
10363
+ */
10364
+
10365
+ type importer_Config = Config;
10366
+ type importer_ImporterApi = ImporterApi;
10367
+ type importer_ImporterConfig = ImporterConfig;
10368
+ declare const importer_ImporterConfig: typeof ImporterConfig;
10369
+ type importer_ImporterInternal = ImporterInternal;
10370
+ declare const importer_WORKER: typeof WORKER;
10371
+ declare const importer_createImporter: typeof createImporter;
10372
+ declare const importer_createMetrics: typeof createMetrics;
10373
+ declare const importer_main: typeof main;
10374
+ declare const importer_protocol: typeof protocol;
10375
+ declare namespace importer {
10376
+ export { importer_ImporterConfig as ImporterConfig, importer_WORKER as WORKER, importer_createImporter as createImporter, importer_createMetrics as createMetrics, importer_main as main, importer_protocol as protocol };
10377
+ export type { importer_Config as Config, importer_ImporterApi as ImporterApi, importer_ImporterInternal as ImporterInternal };
10378
+ }
10379
+
10380
+ /**
10381
+ * JAM-specific host call implementations.
10382
+ *
10383
+ * This module provides the host call interface implementations specific to JAM,
10384
+ * enabling communication between the host and guest environments.
10385
+ *
10386
+ * @module jam-host-calls
10387
+ */
10388
+
10389
+ type jamHostCalls_AccumulationStateUpdate = AccumulationStateUpdate;
10390
+ declare const jamHostCalls_AccumulationStateUpdate: typeof AccumulationStateUpdate;
10391
+ declare const jamHostCalls_CURRENT_SERVICE_ID: typeof CURRENT_SERVICE_ID;
10392
+ type jamHostCalls_EjectError = EjectError;
10393
+ declare const jamHostCalls_EjectError: typeof EjectError;
10394
+ type jamHostCalls_ForgetPreimageError = ForgetPreimageError;
10395
+ declare const jamHostCalls_ForgetPreimageError: typeof ForgetPreimageError;
10396
+ declare const jamHostCalls_HostCallResult: typeof HostCallResult;
10397
+ type jamHostCalls_InsufficientFundsError = InsufficientFundsError;
10398
+ type jamHostCalls_MachineId = MachineId;
10399
+ type jamHostCalls_MachineInstance = MachineInstance;
10400
+ declare const jamHostCalls_MachineInstance: typeof MachineInstance;
10401
+ type jamHostCalls_MachineResult = MachineResult;
10402
+ type jamHostCalls_MachineStatus = MachineStatus;
10403
+ type jamHostCalls_MemoryOperation = MemoryOperation;
10404
+ declare const jamHostCalls_MemoryOperation: typeof MemoryOperation;
10405
+ type jamHostCalls_NewServiceError = NewServiceError;
10406
+ declare const jamHostCalls_NewServiceError: typeof NewServiceError;
10407
+ type jamHostCalls_NoMachineError = NoMachineError;
10408
+ type jamHostCalls_PagesError = PagesError;
10409
+ declare const jamHostCalls_PagesError: typeof PagesError;
10410
+ type jamHostCalls_PartialState = PartialState;
10411
+ type jamHostCalls_PartiallyUpdatedState<T extends StateSlice = StateSlice> = PartiallyUpdatedState<T>;
10412
+ declare const jamHostCalls_PartiallyUpdatedState: typeof PartiallyUpdatedState;
10413
+ type jamHostCalls_PeekPokeError = PeekPokeError;
10414
+ declare const jamHostCalls_PeekPokeError: typeof PeekPokeError;
10415
+ type jamHostCalls_PendingTransfer = PendingTransfer;
10416
+ declare const jamHostCalls_PendingTransfer: typeof PendingTransfer;
10417
+ type jamHostCalls_PreimageStatus = PreimageStatus;
10418
+ type jamHostCalls_PreimageStatusKind = PreimageStatusKind;
10419
+ declare const jamHostCalls_PreimageStatusKind: typeof PreimageStatusKind;
10420
+ type jamHostCalls_ProgramCounter = ProgramCounter;
10421
+ type jamHostCalls_ProvidePreimageError = ProvidePreimageError;
10422
+ declare const jamHostCalls_ProvidePreimageError: typeof ProvidePreimageError;
10423
+ type jamHostCalls_RefineExternalities = RefineExternalities;
10424
+ type jamHostCalls_RequestPreimageError = RequestPreimageError;
10425
+ declare const jamHostCalls_RequestPreimageError: typeof RequestPreimageError;
10426
+ declare const jamHostCalls_SERVICE_ID_BYTES: typeof SERVICE_ID_BYTES;
10427
+ type jamHostCalls_SegmentExportError = SegmentExportError;
10428
+ type jamHostCalls_ServiceStateUpdate = ServiceStateUpdate;
10429
+ type jamHostCalls_TRANSFER_MEMO_BYTES = TRANSFER_MEMO_BYTES;
10430
+ type jamHostCalls_TransferError = TransferError;
10431
+ declare const jamHostCalls_TransferError: typeof TransferError;
10432
+ type jamHostCalls_UnprivilegedError = UnprivilegedError;
10433
+ type jamHostCalls_UpdatePrivilegesError = UpdatePrivilegesError;
10434
+ declare const jamHostCalls_UpdatePrivilegesError: typeof UpdatePrivilegesError;
10435
+ type jamHostCalls_ZeroVoidError = ZeroVoidError;
10436
+ declare const jamHostCalls_ZeroVoidError: typeof ZeroVoidError;
10437
+ declare const jamHostCalls_clampU64ToU32: typeof clampU64ToU32;
10438
+ declare const jamHostCalls_emptyRegistersBuffer: typeof emptyRegistersBuffer;
10439
+ declare const jamHostCalls_getServiceId: typeof getServiceId;
10440
+ declare const jamHostCalls_getServiceIdOrCurrent: typeof getServiceIdOrCurrent;
10441
+ declare const jamHostCalls_slotsToPreimageStatus: typeof slotsToPreimageStatus;
10442
+ declare const jamHostCalls_toMemoryOperation: typeof toMemoryOperation;
10443
+ declare const jamHostCalls_tryAsMachineId: typeof tryAsMachineId;
10444
+ declare const jamHostCalls_tryAsProgramCounter: typeof tryAsProgramCounter;
10445
+ declare const jamHostCalls_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
10446
+ declare namespace jamHostCalls {
10447
+ export { jamHostCalls_AccumulationStateUpdate as AccumulationStateUpdate, jamHostCalls_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, jamHostCalls_EjectError as EjectError, jamHostCalls_ForgetPreimageError as ForgetPreimageError, jamHostCalls_HostCallResult as HostCallResult, jamHostCalls_MachineInstance as MachineInstance, jamHostCalls_MemoryOperation as MemoryOperation, jamHostCalls_NewServiceError as NewServiceError, jamHostCalls_PagesError as PagesError, jamHostCalls_PartiallyUpdatedState as PartiallyUpdatedState, jamHostCalls_PeekPokeError as PeekPokeError, jamHostCalls_PendingTransfer as PendingTransfer, jamHostCalls_PreimageStatusKind as PreimageStatusKind, jamHostCalls_ProvidePreimageError as ProvidePreimageError, jamHostCalls_RequestPreimageError as RequestPreimageError, jamHostCalls_SERVICE_ID_BYTES as SERVICE_ID_BYTES, jamHostCalls_TransferError as TransferError, jamHostCalls_UpdatePrivilegesError as UpdatePrivilegesError, jamHostCalls_ZeroVoidError as ZeroVoidError, index$5 as accumulate, jamHostCalls_clampU64ToU32 as clampU64ToU32, jamHostCalls_emptyRegistersBuffer as emptyRegistersBuffer, index$4 as general, jamHostCalls_getServiceId as getServiceId, jamHostCalls_getServiceIdOrCurrent as getServiceIdOrCurrent, codecServiceAccountInfoWithThresholdBalance as hostCallInfoAccount, index$3 as refine, jamHostCalls_slotsToPreimageStatus as slotsToPreimageStatus, jamHostCalls_toMemoryOperation as toMemoryOperation, jamHostCalls_tryAsMachineId as tryAsMachineId, jamHostCalls_tryAsProgramCounter as tryAsProgramCounter, jamHostCalls_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
10448
+ export type { jamHostCalls_InsufficientFundsError as InsufficientFundsError, jamHostCalls_MachineId as MachineId, jamHostCalls_MachineResult as MachineResult, jamHostCalls_MachineStatus as MachineStatus, jamHostCalls_NoMachineError as NoMachineError, jamHostCalls_PartialState as PartialState, jamHostCalls_PreimageStatus as PreimageStatus, jamHostCalls_ProgramCounter as ProgramCounter, jamHostCalls_RefineExternalities as RefineExternalities, jamHostCalls_SegmentExportError as SegmentExportError, jamHostCalls_ServiceStateUpdate as ServiceStateUpdate, jamHostCalls_TRANSFER_MEMO_BYTES as TRANSFER_MEMO_BYTES, jamHostCalls_UnprivilegedError as UnprivilegedError };
10449
+ }
10450
+
10451
+ /**
10452
+ * JSON parsing utilities and helpers.
10453
+ *
10454
+ * This module provides enhanced JSON parsing capabilities with support for
10455
+ * JAM-specific data types and structures.
10456
+ *
10457
+ * @module json-parser
10458
+ */
10459
+
10460
+ type jsonParser_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
10461
+ type jsonParser_FromJson<T> = FromJson<T>;
10462
+ type jsonParser_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
10463
+ type jsonParser_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
10464
+ type jsonParser_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
10465
+ type jsonParser_ObjectFromJson<T> = ObjectFromJson<T>;
10466
+ type jsonParser_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
10467
+ import jsonParser_json = json;
10468
+ declare const jsonParser_parseFromJson: typeof parseFromJson;
10469
+ declare namespace jsonParser {
10470
+ export { jsonParser_json as json, jsonParser_parseFromJson as parseFromJson };
10471
+ export type { jsonParser_Builder as Builder, jsonParser_FromJson as FromJson, jsonParser_FromJsonOptional as FromJsonOptional, jsonParser_FromJsonPrimitive as FromJsonPrimitive, jsonParser_FromJsonWithParser as FromJsonWithParser, jsonParser_ObjectFromJson as ObjectFromJson, jsonParser_Parser as Parser };
10472
+ }
10473
+
10474
+ /**
10475
+ * Logging framework and utilities.
10476
+ *
10477
+ * This module provides a structured logging framework with support for different
10478
+ * log levels, formatting, and output targets.
10479
+ *
10480
+ * @module logger
10481
+ */
10482
+
10483
+ type logger_ConsoleTransport = ConsoleTransport;
10484
+ declare const logger_ConsoleTransport: typeof ConsoleTransport;
10485
+ type logger_Level = Level;
10486
+ declare const logger_Level: typeof Level;
10487
+ type logger_Logger = Logger;
10488
+ declare const logger_Logger: typeof Logger;
10489
+ type logger_Options = Options;
10490
+ type logger_Transport = Transport;
10491
+ type logger_TransportBuilder = TransportBuilder;
10492
+ declare const logger_findLevel: typeof findLevel;
10493
+ declare const logger_parseLoggerOptions: typeof parseLoggerOptions;
10494
+ declare namespace logger {
10495
+ export { logger_ConsoleTransport as ConsoleTransport, logger_Level as Level, logger_Logger as Logger, logger_findLevel as findLevel, logger_parseLoggerOptions as parseLoggerOptions };
10496
+ export type { logger_Options as Options, logger_Transport as Transport, logger_TransportBuilder as TransportBuilder };
10497
+ }
10498
+
10499
+ /**
10500
+ * Merkle Mountain Range implementation.
10501
+ *
10502
+ * This module provides an implementation of Merkle Mountain Range (MMR),
10503
+ * a data structure for efficient append-only Merkle tree operations.
10504
+ *
10505
+ * @module mmr
10506
+ */
10507
+
10508
+ type mmr_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
10509
+ declare const mmr_MerkleMountainRange: typeof MerkleMountainRange;
10510
+ type mmr_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
10511
+ type mmr_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
10512
+ declare namespace mmr {
10513
+ export { mmr_MerkleMountainRange as MerkleMountainRange };
10514
+ export type { mmr_MmrHasher as MmrHasher, mmr_MmrPeaks as MmrPeaks };
10515
+ }
10516
+
10517
+ /**
10518
+ * Fixed-size numeric types and operations.
10519
+ *
10520
+ * This module provides fixed-size integer types (U8, U16, U32, U64, etc.) and
10521
+ * operations, ensuring consistent numeric behavior across platforms.
10522
+ *
10523
+ * @module numbers
10524
+ */
10525
+
10526
+ type numbers_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
10527
+ type numbers_U16 = U16;
10528
+ type numbers_U32 = U32;
10529
+ type numbers_U64 = U64;
10530
+ type numbers_U8 = U8;
10531
+ type numbers_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
10532
+ declare const numbers___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
10533
+ declare const numbers_isU16: typeof isU16;
10534
+ declare const numbers_isU32: typeof isU32;
10535
+ declare const numbers_isU64: typeof isU64;
10536
+ declare const numbers_isU8: typeof isU8;
10537
+ declare const numbers_leBytesAsU32: typeof leBytesAsU32;
10538
+ declare const numbers_maxU64: typeof maxU64;
10539
+ declare const numbers_minU64: typeof minU64;
10540
+ declare const numbers_sumU32: typeof sumU32;
10541
+ declare const numbers_sumU64: typeof sumU64;
10542
+ declare const numbers_tryAsU16: typeof tryAsU16;
10543
+ declare const numbers_tryAsU32: typeof tryAsU32;
10544
+ declare const numbers_tryAsU64: typeof tryAsU64;
10545
+ declare const numbers_tryAsU8: typeof tryAsU8;
10546
+ declare const numbers_u32AsLeBytes: typeof u32AsLeBytes;
10547
+ declare const numbers_u64FromParts: typeof u64FromParts;
10548
+ declare const numbers_u64IntoParts: typeof u64IntoParts;
10549
+ declare namespace numbers {
10550
+ export { numbers___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, numbers_isU16 as isU16, numbers_isU32 as isU32, numbers_isU64 as isU64, numbers_isU8 as isU8, numbers_leBytesAsU32 as leBytesAsU32, numbers_maxU64 as maxU64, numbers_minU64 as minU64, numbers_sumU32 as sumU32, numbers_sumU64 as sumU64, numbers_tryAsU16 as tryAsU16, numbers_tryAsU32 as tryAsU32, numbers_tryAsU64 as tryAsU64, numbers_tryAsU8 as tryAsU8, numbers_u32AsLeBytes as u32AsLeBytes, numbers_u64FromParts as u64FromParts, numbers_u64IntoParts as u64IntoParts };
10551
+ export type { numbers_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, numbers_U16 as U16, numbers_U32 as U32, numbers_U64 as U64, numbers_U8 as U8, numbers_WithBytesRepresentation as WithBytesRepresentation };
10552
+ }
10553
+
10554
+ /**
10555
+ * Ordering and comparison utilities.
10556
+ *
10557
+ * This module provides utilities for ordering, sorting, and comparing values
10558
+ * with support for custom comparison logic.
10559
+ *
10560
+ * @module ordering
10561
+ */
10562
+
10563
+ type ordering_Comparator<V> = Comparator<V>;
10564
+ type ordering_Ordering = Ordering;
10565
+ declare const ordering_Ordering: typeof Ordering;
10566
+ type ordering_OrderingValue = OrderingValue;
10567
+ declare const ordering_OrderingValue: typeof OrderingValue;
10568
+ declare namespace ordering {
10569
+ export { ordering_Ordering as Ordering, ordering_OrderingValue as OrderingValue };
10570
+ export type { ordering_Comparator as Comparator };
10571
+ }
10572
+
10573
+ /**
10574
+ * PVM host call implementations.
10575
+ *
10576
+ * This module provides the Polka Virtual Machine (PVM) host call interface,
10577
+ * enabling guest programs to interact with the host environment.
10578
+ *
10579
+ * @module pvm-host-calls
10580
+ */
10581
+
10582
+ type pvmHostCalls_HostCallHandler = HostCallHandler;
10583
+ type pvmHostCalls_HostCallMemory = HostCallMemory;
10584
+ declare const pvmHostCalls_HostCallMemory: typeof HostCallMemory;
10585
+ type pvmHostCalls_HostCallRegisters = HostCallRegisters;
10586
+ declare const pvmHostCalls_HostCallRegisters: typeof HostCallRegisters;
10587
+ type pvmHostCalls_PvmExecution = PvmExecution;
10588
+ declare const pvmHostCalls_PvmExecution: typeof PvmExecution;
10589
+ declare const pvmHostCalls_traceRegisters: typeof traceRegisters;
10590
+ declare const pvmHostCalls_tryAsHostCallIndex: typeof tryAsHostCallIndex;
10591
+ declare namespace pvmHostCalls {
10592
+ export { pvmHostCalls_HostCallMemory as HostCallMemory, pvmHostCalls_HostCallRegisters as HostCallRegisters, HostCallsManager as HostCalls, pvmHostCalls_PvmExecution as PvmExecution, HostCalls as PvmHostCallExtension, InterpreterInstanceManager as PvmInstanceManager, pvmHostCalls_traceRegisters as traceRegisters, pvmHostCalls_tryAsHostCallIndex as tryAsHostCallIndex };
10593
+ export type { pvmHostCalls_HostCallHandler as HostCallHandler };
10594
+ }
10595
+
10596
+ /**
10597
+ * PVM interface and program utilities.
10598
+ *
10599
+ * This module provides the core PVM interface definitions, program structures,
10600
+ * and utilities for working with PVM bytecode.
10601
+ *
10602
+ * @module pvm-interface
10603
+ */
10604
+
10605
+ type pvmInterface_BigGas = BigGas;
10606
+ type pvmInterface_Gas = Gas;
10607
+ type pvmInterface_IGasCounter = IGasCounter;
10608
+ type pvmInterface_IMemory = IMemory;
10609
+ type pvmInterface_IPvmInterpreter = IPvmInterpreter;
10610
+ type pvmInterface_IRegisters = IRegisters;
10611
+ declare const pvmInterface_MAX_MEMORY_INDEX: typeof MAX_MEMORY_INDEX;
10612
+ declare const pvmInterface_MEMORY_SIZE: typeof MEMORY_SIZE;
10613
+ declare const pvmInterface_NO_OF_REGISTERS: typeof NO_OF_REGISTERS;
10614
+ declare const pvmInterface_REGISTER_BYTE_SIZE: typeof REGISTER_BYTE_SIZE;
10615
+ type pvmInterface_SmallGas = SmallGas;
10616
+ type pvmInterface_Status = Status;
10617
+ declare const pvmInterface_Status: typeof Status;
10618
+ declare const pvmInterface_getPageStartAddress: typeof getPageStartAddress;
10619
+ declare const pvmInterface_tryAsBigGas: typeof tryAsBigGas;
10620
+ declare const pvmInterface_tryAsGas: typeof tryAsGas;
10621
+ declare const pvmInterface_tryAsSmallGas: typeof tryAsSmallGas;
10622
+ declare namespace pvmInterface {
10623
+ export { pvmInterface_MAX_MEMORY_INDEX as MAX_MEMORY_INDEX, pvmInterface_MEMORY_SIZE as MEMORY_SIZE, pvmInterface_NO_OF_REGISTERS as NO_OF_REGISTERS, pvmInterface_REGISTER_BYTE_SIZE as REGISTER_BYTE_SIZE, pvmInterface_Status as Status, pvmInterface_getPageStartAddress as getPageStartAddress, pvmInterface_tryAsBigGas as tryAsBigGas, pvmInterface_tryAsGas as tryAsGas, pvmInterface_tryAsSmallGas as tryAsSmallGas };
10624
+ export type { pvmInterface_BigGas as BigGas, pvmInterface_Gas as Gas, pvmInterface_IGasCounter as IGasCounter, pvmInterface_IMemory as IMemory, pvmInterface_IPvmInterpreter as IPvmInterpreter, pvmInterface_IRegisters as IRegisters, PageFault$1 as PageFault, pvmInterface_SmallGas as SmallGas };
10804
10625
  }
10805
10626
 
10806
10627
  declare enum ArgumentType {
@@ -11002,35 +10823,35 @@ declare class NibblesDecoder {
11002
10823
 
11003
10824
  declare const instructionArgumentTypeMap: ArgumentType[];
11004
10825
 
11005
- type index$5_Args = Args;
11006
- type index$5_ArgsDecoder = ArgsDecoder;
11007
- declare const index$5_ArgsDecoder: typeof ArgsDecoder;
11008
- type index$5_ArgumentType = ArgumentType;
11009
- declare const index$5_ArgumentType: typeof ArgumentType;
11010
- type index$5_EmptyArgs = EmptyArgs;
11011
- type index$5_ExtendedWitdthImmediateDecoder = ExtendedWitdthImmediateDecoder;
11012
- declare const index$5_ExtendedWitdthImmediateDecoder: typeof ExtendedWitdthImmediateDecoder;
11013
- type index$5_ImmediateDecoder = ImmediateDecoder;
11014
- declare const index$5_ImmediateDecoder: typeof ImmediateDecoder;
11015
- type index$5_NibblesDecoder = NibblesDecoder;
11016
- declare const index$5_NibblesDecoder: typeof NibblesDecoder;
11017
- type index$5_OneImmediateArgs = OneImmediateArgs;
11018
- type index$5_OneOffsetArgs = OneOffsetArgs;
11019
- type index$5_OneRegisterOneExtendedWidthImmediateArgs = OneRegisterOneExtendedWidthImmediateArgs;
11020
- type index$5_OneRegisterOneImmediateArgs = OneRegisterOneImmediateArgs;
11021
- type index$5_OneRegisterOneImmediateOneOffsetArgs = OneRegisterOneImmediateOneOffsetArgs;
11022
- type index$5_OneRegisterTwoImmediatesArgs = OneRegisterTwoImmediatesArgs;
11023
- type index$5_ThreeRegistersArgs = ThreeRegistersArgs;
11024
- type index$5_TwoImmediatesArgs = TwoImmediatesArgs;
11025
- type index$5_TwoRegistersArgs = TwoRegistersArgs;
11026
- type index$5_TwoRegistersOneImmediateArgs = TwoRegistersOneImmediateArgs;
11027
- type index$5_TwoRegistersOneOffsetArgs = TwoRegistersOneOffsetArgs;
11028
- type index$5_TwoRegistersTwoImmediatesArgs = TwoRegistersTwoImmediatesArgs;
11029
- declare const index$5_createResults: typeof createResults;
11030
- declare const index$5_instructionArgumentTypeMap: typeof instructionArgumentTypeMap;
11031
- declare namespace index$5 {
11032
- export { index$5_ArgsDecoder as ArgsDecoder, index$5_ArgumentType as ArgumentType, index$5_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$5_ImmediateDecoder as ImmediateDecoder, index$5_NibblesDecoder as NibblesDecoder, index$5_createResults as createResults, index$5_instructionArgumentTypeMap as instructionArgumentTypeMap };
11033
- export type { index$5_Args as Args, index$5_EmptyArgs as EmptyArgs, index$5_OneImmediateArgs as OneImmediateArgs, index$5_OneOffsetArgs as OneOffsetArgs, index$5_OneRegisterOneExtendedWidthImmediateArgs as OneRegisterOneExtendedWidthImmediateArgs, index$5_OneRegisterOneImmediateArgs as OneRegisterOneImmediateArgs, index$5_OneRegisterOneImmediateOneOffsetArgs as OneRegisterOneImmediateOneOffsetArgs, index$5_OneRegisterTwoImmediatesArgs as OneRegisterTwoImmediatesArgs, index$5_ThreeRegistersArgs as ThreeRegistersArgs, index$5_TwoImmediatesArgs as TwoImmediatesArgs, index$5_TwoRegistersArgs as TwoRegistersArgs, index$5_TwoRegistersOneImmediateArgs as TwoRegistersOneImmediateArgs, index$5_TwoRegistersOneOffsetArgs as TwoRegistersOneOffsetArgs, index$5_TwoRegistersTwoImmediatesArgs as TwoRegistersTwoImmediatesArgs };
10826
+ type index$1_Args = Args;
10827
+ type index$1_ArgsDecoder = ArgsDecoder;
10828
+ declare const index$1_ArgsDecoder: typeof ArgsDecoder;
10829
+ type index$1_ArgumentType = ArgumentType;
10830
+ declare const index$1_ArgumentType: typeof ArgumentType;
10831
+ type index$1_EmptyArgs = EmptyArgs;
10832
+ type index$1_ExtendedWitdthImmediateDecoder = ExtendedWitdthImmediateDecoder;
10833
+ declare const index$1_ExtendedWitdthImmediateDecoder: typeof ExtendedWitdthImmediateDecoder;
10834
+ type index$1_ImmediateDecoder = ImmediateDecoder;
10835
+ declare const index$1_ImmediateDecoder: typeof ImmediateDecoder;
10836
+ type index$1_NibblesDecoder = NibblesDecoder;
10837
+ declare const index$1_NibblesDecoder: typeof NibblesDecoder;
10838
+ type index$1_OneImmediateArgs = OneImmediateArgs;
10839
+ type index$1_OneOffsetArgs = OneOffsetArgs;
10840
+ type index$1_OneRegisterOneExtendedWidthImmediateArgs = OneRegisterOneExtendedWidthImmediateArgs;
10841
+ type index$1_OneRegisterOneImmediateArgs = OneRegisterOneImmediateArgs;
10842
+ type index$1_OneRegisterOneImmediateOneOffsetArgs = OneRegisterOneImmediateOneOffsetArgs;
10843
+ type index$1_OneRegisterTwoImmediatesArgs = OneRegisterTwoImmediatesArgs;
10844
+ type index$1_ThreeRegistersArgs = ThreeRegistersArgs;
10845
+ type index$1_TwoImmediatesArgs = TwoImmediatesArgs;
10846
+ type index$1_TwoRegistersArgs = TwoRegistersArgs;
10847
+ type index$1_TwoRegistersOneImmediateArgs = TwoRegistersOneImmediateArgs;
10848
+ type index$1_TwoRegistersOneOffsetArgs = TwoRegistersOneOffsetArgs;
10849
+ type index$1_TwoRegistersTwoImmediatesArgs = TwoRegistersTwoImmediatesArgs;
10850
+ declare const index$1_createResults: typeof createResults;
10851
+ declare const index$1_instructionArgumentTypeMap: typeof instructionArgumentTypeMap;
10852
+ declare namespace index$1 {
10853
+ export { index$1_ArgsDecoder as ArgsDecoder, index$1_ArgumentType as ArgumentType, index$1_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$1_ImmediateDecoder as ImmediateDecoder, index$1_NibblesDecoder as NibblesDecoder, index$1_createResults as createResults, index$1_instructionArgumentTypeMap as instructionArgumentTypeMap };
10854
+ export type { index$1_Args as Args, index$1_EmptyArgs as EmptyArgs, index$1_OneImmediateArgs as OneImmediateArgs, index$1_OneOffsetArgs as OneOffsetArgs, index$1_OneRegisterOneExtendedWidthImmediateArgs as OneRegisterOneExtendedWidthImmediateArgs, index$1_OneRegisterOneImmediateArgs as OneRegisterOneImmediateArgs, index$1_OneRegisterOneImmediateOneOffsetArgs as OneRegisterOneImmediateOneOffsetArgs, index$1_OneRegisterTwoImmediatesArgs as OneRegisterTwoImmediatesArgs, index$1_ThreeRegistersArgs as ThreeRegistersArgs, index$1_TwoImmediatesArgs as TwoImmediatesArgs, index$1_TwoRegistersArgs as TwoRegistersArgs, index$1_TwoRegistersOneImmediateArgs as TwoRegistersOneImmediateArgs, index$1_TwoRegistersOneOffsetArgs as TwoRegistersOneOffsetArgs, index$1_TwoRegistersTwoImmediatesArgs as TwoRegistersTwoImmediatesArgs };
11034
10855
  }
11035
10856
 
11036
10857
  declare class BasicBlocks {
@@ -11203,7 +11024,7 @@ declare class Interpreter implements IPvmInterpreter {
11203
11024
  constructor({ useSbrkGas }?: InterpreterOptions);
11204
11025
  resetJam(program: Uint8Array, args: Uint8Array, pc: number, gas: Gas, hasMetadata?: boolean): void;
11205
11026
  resetGeneric(rawProgram: Uint8Array, pc: number, gas: Gas, maybeRegisters?: Registers, maybeMemory?: Memory): void;
11206
- printProgram(): (string | number)[][];
11027
+ dumpProgram(): (string | number)[][];
11207
11028
  runProgram(): void;
11208
11029
  nextStep(): Status;
11209
11030
  getPC(): number;
@@ -11277,72 +11098,81 @@ declare const LAST_PAGE = 4294901760;
11277
11098
  declare function alignToSegmentSize(size: number): number;
11278
11099
  declare function alignToPageSize(size: number): number;
11279
11100
 
11280
- declare const index$4_ARGS_SEGMENT: typeof ARGS_SEGMENT;
11281
- declare const index$4_DATA_LEGNTH: typeof DATA_LEGNTH;
11282
- declare const index$4_LAST_PAGE: typeof LAST_PAGE;
11283
- type index$4_MemorySegment = MemorySegment;
11284
- declare const index$4_MemorySegment: typeof MemorySegment;
11285
- declare const index$4_PAGE_SIZE: typeof PAGE_SIZE;
11286
- declare const index$4_SEGMENT_SIZE: typeof SEGMENT_SIZE;
11287
- declare const index$4_STACK_SEGMENT: typeof STACK_SEGMENT;
11288
- type index$4_SpiMemory = SpiMemory;
11289
- declare const index$4_SpiMemory: typeof SpiMemory;
11290
- type index$4_SpiProgram = SpiProgram;
11291
- declare const index$4_SpiProgram: typeof SpiProgram;
11292
- declare const index$4_alignToPageSize: typeof alignToPageSize;
11293
- declare const index$4_alignToSegmentSize: typeof alignToSegmentSize;
11294
- declare const index$4_decodeStandardProgram: typeof decodeStandardProgram;
11295
- declare namespace index$4 {
11101
+ declare const index_ARGS_SEGMENT: typeof ARGS_SEGMENT;
11102
+ declare const index_DATA_LEGNTH: typeof DATA_LEGNTH;
11103
+ declare const index_LAST_PAGE: typeof LAST_PAGE;
11104
+ type index_MemorySegment = MemorySegment;
11105
+ declare const index_MemorySegment: typeof MemorySegment;
11106
+ declare const index_PAGE_SIZE: typeof PAGE_SIZE;
11107
+ declare const index_SEGMENT_SIZE: typeof SEGMENT_SIZE;
11108
+ declare const index_STACK_SEGMENT: typeof STACK_SEGMENT;
11109
+ type index_SpiMemory = SpiMemory;
11110
+ declare const index_SpiMemory: typeof SpiMemory;
11111
+ type index_SpiProgram = SpiProgram;
11112
+ declare const index_SpiProgram: typeof SpiProgram;
11113
+ declare const index_alignToPageSize: typeof alignToPageSize;
11114
+ declare const index_alignToSegmentSize: typeof alignToSegmentSize;
11115
+ declare const index_decodeStandardProgram: typeof decodeStandardProgram;
11116
+ declare namespace index {
11296
11117
  export {
11297
- index$4_ARGS_SEGMENT as ARGS_SEGMENT,
11298
- index$4_DATA_LEGNTH as DATA_LEGNTH,
11299
- index$4_LAST_PAGE as LAST_PAGE,
11300
- index$4_MemorySegment as MemorySegment,
11301
- index$4_PAGE_SIZE as PAGE_SIZE,
11302
- index$4_SEGMENT_SIZE as SEGMENT_SIZE,
11303
- index$4_STACK_SEGMENT as STACK_SEGMENT,
11304
- index$4_SpiMemory as SpiMemory,
11305
- index$4_SpiProgram as SpiProgram,
11306
- index$4_alignToPageSize as alignToPageSize,
11307
- index$4_alignToSegmentSize as alignToSegmentSize,
11308
- index$4_decodeStandardProgram as decodeStandardProgram,
11118
+ index_ARGS_SEGMENT as ARGS_SEGMENT,
11119
+ index_DATA_LEGNTH as DATA_LEGNTH,
11120
+ index_LAST_PAGE as LAST_PAGE,
11121
+ index_MemorySegment as MemorySegment,
11122
+ index_PAGE_SIZE as PAGE_SIZE,
11123
+ index_SEGMENT_SIZE as SEGMENT_SIZE,
11124
+ index_STACK_SEGMENT as STACK_SEGMENT,
11125
+ index_SpiMemory as SpiMemory,
11126
+ index_SpiProgram as SpiProgram,
11127
+ index_alignToPageSize as alignToPageSize,
11128
+ index_alignToSegmentSize as alignToSegmentSize,
11129
+ index_decodeStandardProgram as decodeStandardProgram,
11309
11130
  };
11310
11131
  }
11311
11132
 
11312
- type index$3_BasicBlocks = BasicBlocks;
11313
- declare const index$3_BasicBlocks: typeof BasicBlocks;
11314
- type index$3_DebuggerAdapter = DebuggerAdapter;
11315
- declare const index$3_DebuggerAdapter: typeof DebuggerAdapter;
11316
- type index$3_Interpreter = Interpreter;
11317
- declare const index$3_Interpreter: typeof Interpreter;
11318
- type index$3_JumpTable = JumpTable;
11319
- declare const index$3_JumpTable: typeof JumpTable;
11320
- type index$3_Mask = Mask;
11321
- declare const index$3_Mask: typeof Mask;
11322
- type index$3_Memory = Memory;
11323
- declare const index$3_Memory: typeof Memory;
11324
- type index$3_MemoryBuilder = MemoryBuilder;
11325
- declare const index$3_MemoryBuilder: typeof MemoryBuilder;
11326
- type index$3_MemoryIndex = MemoryIndex;
11327
- type index$3_Program = Program;
11328
- declare const index$3_Program: typeof Program;
11329
- type index$3_ProgramDecoder = ProgramDecoder;
11330
- declare const index$3_ProgramDecoder: typeof ProgramDecoder;
11331
- type index$3_ProgramDecoderError = ProgramDecoderError;
11332
- declare const index$3_ProgramDecoderError: typeof ProgramDecoderError;
11333
- type index$3_RegisterIndex = RegisterIndex;
11334
- type index$3_Registers = Registers;
11335
- declare const index$3_Registers: typeof Registers;
11336
- type index$3_SbrkIndex = SbrkIndex;
11337
- declare const index$3_extractCodeAndMetadata: typeof extractCodeAndMetadata;
11338
- declare const index$3_gasCounter: typeof gasCounter;
11339
- declare const index$3_signExtend32To64: typeof signExtend32To64;
11340
- declare const index$3_tryAsMemoryIndex: typeof tryAsMemoryIndex;
11341
- declare const index$3_tryAsRegisterIndex: typeof tryAsRegisterIndex;
11342
- declare const index$3_tryAsSbrkIndex: typeof tryAsSbrkIndex;
11343
- declare namespace index$3 {
11344
- export { index$3_BasicBlocks as BasicBlocks, index$3_DebuggerAdapter as DebuggerAdapter, index$3_Interpreter as Interpreter, index$3_JumpTable as JumpTable, index$3_Mask as Mask, index$3_Memory as Memory, index$3_MemoryBuilder as MemoryBuilder, index$3_Program as Program, index$3_ProgramDecoder as ProgramDecoder, index$3_ProgramDecoderError as ProgramDecoderError, index$3_Registers as Registers, index$5 as args, index$3_extractCodeAndMetadata as extractCodeAndMetadata, index$3_gasCounter as gasCounter, index$3_signExtend32To64 as signExtend32To64, index$4 as spi, index$3_tryAsMemoryIndex as tryAsMemoryIndex, index$3_tryAsRegisterIndex as tryAsRegisterIndex, index$3_tryAsSbrkIndex as tryAsSbrkIndex };
11345
- export type { index$3_MemoryIndex as MemoryIndex, index$3_RegisterIndex as RegisterIndex, index$3_SbrkIndex as SbrkIndex };
11133
+ /**
11134
+ * Typeberry PVM interpreter.
11135
+ *
11136
+ * This module provides the Polka Virtual Machine interpreter that executes
11137
+ * PVM bytecode with support for all standard PVM operations.
11138
+ *
11139
+ * @module pvm-interpreter
11140
+ */
11141
+
11142
+ type pvmInterpreter_BasicBlocks = BasicBlocks;
11143
+ declare const pvmInterpreter_BasicBlocks: typeof BasicBlocks;
11144
+ type pvmInterpreter_DebuggerAdapter = DebuggerAdapter;
11145
+ declare const pvmInterpreter_DebuggerAdapter: typeof DebuggerAdapter;
11146
+ type pvmInterpreter_Interpreter = Interpreter;
11147
+ declare const pvmInterpreter_Interpreter: typeof Interpreter;
11148
+ type pvmInterpreter_JumpTable = JumpTable;
11149
+ declare const pvmInterpreter_JumpTable: typeof JumpTable;
11150
+ type pvmInterpreter_Mask = Mask;
11151
+ declare const pvmInterpreter_Mask: typeof Mask;
11152
+ type pvmInterpreter_Memory = Memory;
11153
+ declare const pvmInterpreter_Memory: typeof Memory;
11154
+ type pvmInterpreter_MemoryBuilder = MemoryBuilder;
11155
+ declare const pvmInterpreter_MemoryBuilder: typeof MemoryBuilder;
11156
+ type pvmInterpreter_MemoryIndex = MemoryIndex;
11157
+ type pvmInterpreter_Program = Program;
11158
+ declare const pvmInterpreter_Program: typeof Program;
11159
+ type pvmInterpreter_ProgramDecoder = ProgramDecoder;
11160
+ declare const pvmInterpreter_ProgramDecoder: typeof ProgramDecoder;
11161
+ type pvmInterpreter_ProgramDecoderError = ProgramDecoderError;
11162
+ declare const pvmInterpreter_ProgramDecoderError: typeof ProgramDecoderError;
11163
+ type pvmInterpreter_RegisterIndex = RegisterIndex;
11164
+ type pvmInterpreter_Registers = Registers;
11165
+ declare const pvmInterpreter_Registers: typeof Registers;
11166
+ type pvmInterpreter_SbrkIndex = SbrkIndex;
11167
+ declare const pvmInterpreter_extractCodeAndMetadata: typeof extractCodeAndMetadata;
11168
+ declare const pvmInterpreter_gasCounter: typeof gasCounter;
11169
+ declare const pvmInterpreter_signExtend32To64: typeof signExtend32To64;
11170
+ declare const pvmInterpreter_tryAsMemoryIndex: typeof tryAsMemoryIndex;
11171
+ declare const pvmInterpreter_tryAsRegisterIndex: typeof tryAsRegisterIndex;
11172
+ declare const pvmInterpreter_tryAsSbrkIndex: typeof tryAsSbrkIndex;
11173
+ declare namespace pvmInterpreter {
11174
+ export { pvmInterpreter_BasicBlocks as BasicBlocks, pvmInterpreter_DebuggerAdapter as DebuggerAdapter, pvmInterpreter_Interpreter as Interpreter, pvmInterpreter_JumpTable as JumpTable, pvmInterpreter_Mask as Mask, pvmInterpreter_Memory as Memory, pvmInterpreter_MemoryBuilder as MemoryBuilder, pvmInterpreter_Program as Program, pvmInterpreter_ProgramDecoder as ProgramDecoder, pvmInterpreter_ProgramDecoderError as ProgramDecoderError, pvmInterpreter_Registers as Registers, index$1 as args, pvmInterpreter_extractCodeAndMetadata as extractCodeAndMetadata, pvmInterpreter_gasCounter as gasCounter, pvmInterpreter_signExtend32To64 as signExtend32To64, index as spi, pvmInterpreter_tryAsMemoryIndex as tryAsMemoryIndex, pvmInterpreter_tryAsRegisterIndex as tryAsRegisterIndex, pvmInterpreter_tryAsSbrkIndex as tryAsSbrkIndex };
11175
+ export type { pvmInterpreter_MemoryIndex as MemoryIndex, pvmInterpreter_RegisterIndex as RegisterIndex, pvmInterpreter_SbrkIndex as SbrkIndex };
11346
11176
  }
11347
11177
 
11348
11178
  declare const ENTROPY_BYTES = 32;
@@ -11354,13 +11184,141 @@ type ENTROPY_BYTES = typeof ENTROPY_BYTES;
11354
11184
  */
11355
11185
  declare function fisherYatesShuffle<T>(blake2b: Blake2b, arr: T[], entropy: Bytes<ENTROPY_BYTES>): T[];
11356
11186
 
11357
- declare const index$2_fisherYatesShuffle: typeof fisherYatesShuffle;
11358
- declare namespace index$2 {
11187
+ /**
11188
+ * Shuffling algorithms and utilities.
11189
+ *
11190
+ * This module provides deterministic shuffling algorithms used for validator
11191
+ * selection and other randomization needs in the JAM protocol.
11192
+ *
11193
+ * @module shuffling
11194
+ */
11195
+
11196
+ declare const shuffling_fisherYatesShuffle: typeof fisherYatesShuffle;
11197
+ declare namespace shuffling {
11359
11198
  export {
11360
- index$2_fisherYatesShuffle as fisherYatesShuffle,
11199
+ shuffling_fisherYatesShuffle as fisherYatesShuffle,
11361
11200
  };
11362
11201
  }
11363
11202
 
11203
+ /**
11204
+ * State management and data structures.
11205
+ *
11206
+ * This module provides the core state management functionality for JAM,
11207
+ * including state types, transitions, and persistence operations.
11208
+ *
11209
+ * @module state
11210
+ */
11211
+
11212
+ type state_AUTHORIZATION_QUEUE_SIZE = AUTHORIZATION_QUEUE_SIZE;
11213
+ type state_AccumulationOutput = AccumulationOutput;
11214
+ declare const state_AccumulationOutput: typeof AccumulationOutput;
11215
+ type state_AccumulationQueue = AccumulationQueue;
11216
+ type state_AccumulationQueueView = AccumulationQueueView;
11217
+ type state_AuthorizationPool = AuthorizationPool;
11218
+ type state_AuthorizationQueue = AuthorizationQueue;
11219
+ type state_AvailabilityAssignment = AvailabilityAssignment;
11220
+ declare const state_AvailabilityAssignment: typeof AvailabilityAssignment;
11221
+ type state_AvailabilityAssignmentsView = AvailabilityAssignmentsView;
11222
+ declare const state_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
11223
+ type state_BlockState = BlockState;
11224
+ declare const state_BlockState: typeof BlockState;
11225
+ type state_BlocksState = BlocksState;
11226
+ type state_CoreStatistics = CoreStatistics;
11227
+ declare const state_CoreStatistics: typeof CoreStatistics;
11228
+ type state_DisputesRecords = DisputesRecords;
11229
+ declare const state_DisputesRecords: typeof DisputesRecords;
11230
+ declare const state_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
11231
+ declare const state_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
11232
+ type state_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
11233
+ type state_EnumerableState = EnumerableState;
11234
+ type state_InMemoryService = InMemoryService;
11235
+ declare const state_InMemoryService: typeof InMemoryService;
11236
+ type state_InMemoryState = InMemoryState;
11237
+ declare const state_InMemoryState: typeof InMemoryState;
11238
+ type state_InMemoryStateFields = InMemoryStateFields;
11239
+ type state_LookupHistoryItem = LookupHistoryItem;
11240
+ declare const state_LookupHistoryItem: typeof LookupHistoryItem;
11241
+ type state_LookupHistorySlots = LookupHistorySlots;
11242
+ type state_MAX_AUTH_POOL_SIZE = MAX_AUTH_POOL_SIZE;
11243
+ type state_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
11244
+ type state_NotYetAccumulatedReport = NotYetAccumulatedReport;
11245
+ declare const state_NotYetAccumulatedReport: typeof NotYetAccumulatedReport;
11246
+ type state_PerCore<T> = PerCore<T>;
11247
+ type state_PreimageItem = PreimageItem;
11248
+ declare const state_PreimageItem: typeof PreimageItem;
11249
+ type state_PrivilegedServices = PrivilegedServices;
11250
+ declare const state_PrivilegedServices: typeof PrivilegedServices;
11251
+ type state_RecentBlocks = RecentBlocks;
11252
+ declare const state_RecentBlocks: typeof RecentBlocks;
11253
+ type state_RecentBlocksView = RecentBlocksView;
11254
+ type state_RecentlyAccumulated = RecentlyAccumulated;
11255
+ type state_RecentlyAccumulatedView = RecentlyAccumulatedView;
11256
+ type state_SafroleData = SafroleData;
11257
+ declare const state_SafroleData: typeof SafroleData;
11258
+ type state_SafroleDataView = SafroleDataView;
11259
+ type state_SafroleSealingKeys = SafroleSealingKeys;
11260
+ type state_SafroleSealingKeysData = SafroleSealingKeysData;
11261
+ declare const state_SafroleSealingKeysData: typeof SafroleSealingKeysData;
11262
+ type state_SafroleSealingKeysKind = SafroleSealingKeysKind;
11263
+ declare const state_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
11264
+ type state_Service = Service;
11265
+ type state_ServiceAccountInfo = ServiceAccountInfo;
11266
+ declare const state_ServiceAccountInfo: typeof ServiceAccountInfo;
11267
+ type state_ServiceAccountInfoView = ServiceAccountInfoView;
11268
+ type state_ServiceData = ServiceData;
11269
+ type state_ServiceEntries = ServiceEntries;
11270
+ type state_ServiceStatistics = ServiceStatistics;
11271
+ declare const state_ServiceStatistics: typeof ServiceStatistics;
11272
+ type state_ServicesUpdate = ServicesUpdate;
11273
+ type state_State = State;
11274
+ type state_StateView = StateView;
11275
+ type state_StatisticsData = StatisticsData;
11276
+ declare const state_StatisticsData: typeof StatisticsData;
11277
+ type state_StatisticsDataView = StatisticsDataView;
11278
+ type state_StorageItem = StorageItem;
11279
+ declare const state_StorageItem: typeof StorageItem;
11280
+ type state_StorageKey = StorageKey;
11281
+ type state_UpdateError = UpdateError;
11282
+ declare const state_UpdateError: typeof UpdateError;
11283
+ type state_UpdatePreimage = UpdatePreimage;
11284
+ declare const state_UpdatePreimage: typeof UpdatePreimage;
11285
+ type state_UpdatePreimageKind = UpdatePreimageKind;
11286
+ declare const state_UpdatePreimageKind: typeof UpdatePreimageKind;
11287
+ type state_UpdateService = UpdateService;
11288
+ declare const state_UpdateService: typeof UpdateService;
11289
+ type state_UpdateServiceKind = UpdateServiceKind;
11290
+ declare const state_UpdateServiceKind: typeof UpdateServiceKind;
11291
+ type state_UpdateStorage = UpdateStorage;
11292
+ declare const state_UpdateStorage: typeof UpdateStorage;
11293
+ type state_UpdateStorageKind = UpdateStorageKind;
11294
+ declare const state_UpdateStorageKind: typeof UpdateStorageKind;
11295
+ type state_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
11296
+ type state_ValidatorData = ValidatorData;
11297
+ declare const state_ValidatorData: typeof ValidatorData;
11298
+ type state_ValidatorDataView = ValidatorDataView;
11299
+ type state_ValidatorStatistics = ValidatorStatistics;
11300
+ declare const state_ValidatorStatistics: typeof ValidatorStatistics;
11301
+ type state_WithStateView<V = StateView> = WithStateView<V>;
11302
+ declare const state_accumulationOutputComparator: typeof accumulationOutputComparator;
11303
+ declare const state_accumulationQueueCodec: typeof accumulationQueueCodec;
11304
+ declare const state_authPoolsCodec: typeof authPoolsCodec;
11305
+ declare const state_authQueuesCodec: typeof authQueuesCodec;
11306
+ declare const state_availabilityAssignmentsCodec: typeof availabilityAssignmentsCodec;
11307
+ declare const state_codecPerCore: typeof codecPerCore;
11308
+ declare const state_codecWithVersion: typeof codecWithVersion;
11309
+ declare const state_hashComparator: typeof hashComparator;
11310
+ declare const state_ignoreValueWithDefault: typeof ignoreValueWithDefault;
11311
+ declare const state_recentlyAccumulatedCodec: typeof recentlyAccumulatedCodec;
11312
+ declare const state_serviceDataCodec: typeof serviceDataCodec;
11313
+ declare const state_serviceEntriesCodec: typeof serviceEntriesCodec;
11314
+ declare const state_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
11315
+ declare const state_tryAsPerCore: typeof tryAsPerCore;
11316
+ declare const state_validatorsDataCodec: typeof validatorsDataCodec;
11317
+ declare namespace state {
11318
+ export { state_AccumulationOutput as AccumulationOutput, state_AvailabilityAssignment as AvailabilityAssignment, state_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, state_BlockState as BlockState, state_CoreStatistics as CoreStatistics, state_DisputesRecords as DisputesRecords, state_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, state_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, state_InMemoryService as InMemoryService, state_InMemoryState as InMemoryState, state_LookupHistoryItem as LookupHistoryItem, state_NotYetAccumulatedReport as NotYetAccumulatedReport, state_PreimageItem as PreimageItem, state_PrivilegedServices as PrivilegedServices, state_RecentBlocks as RecentBlocks, state_SafroleData as SafroleData, state_SafroleSealingKeysData as SafroleSealingKeysData, state_SafroleSealingKeysKind as SafroleSealingKeysKind, state_ServiceAccountInfo as ServiceAccountInfo, state_ServiceStatistics as ServiceStatistics, state_StatisticsData as StatisticsData, state_StorageItem as StorageItem, state_UpdateError as UpdateError, state_UpdatePreimage as UpdatePreimage, state_UpdatePreimageKind as UpdatePreimageKind, state_UpdateService as UpdateService, state_UpdateServiceKind as UpdateServiceKind, state_UpdateStorage as UpdateStorage, state_UpdateStorageKind as UpdateStorageKind, state_ValidatorData as ValidatorData, state_ValidatorStatistics as ValidatorStatistics, state_accumulationOutputComparator as accumulationOutputComparator, state_accumulationQueueCodec as accumulationQueueCodec, state_authPoolsCodec as authPoolsCodec, state_authQueuesCodec as authQueuesCodec, state_availabilityAssignmentsCodec as availabilityAssignmentsCodec, state_codecPerCore as codecPerCore, state_codecWithVersion as codecWithVersion, state_hashComparator as hashComparator, state_ignoreValueWithDefault as ignoreValueWithDefault, state_recentlyAccumulatedCodec as recentlyAccumulatedCodec, state_serviceDataCodec as serviceDataCodec, state_serviceEntriesCodec as serviceEntriesCodec, state_tryAsLookupHistorySlots as tryAsLookupHistorySlots, state_tryAsPerCore as tryAsPerCore, state_validatorsDataCodec as validatorsDataCodec };
11319
+ export type { state_AUTHORIZATION_QUEUE_SIZE as AUTHORIZATION_QUEUE_SIZE, state_AccumulationQueue as AccumulationQueue, state_AccumulationQueueView as AccumulationQueueView, state_AuthorizationPool as AuthorizationPool, state_AuthorizationQueue as AuthorizationQueue, state_AvailabilityAssignmentsView as AvailabilityAssignmentsView, state_BlocksState as BlocksState, state_ENTROPY_ENTRIES as ENTROPY_ENTRIES, state_EnumerableState as EnumerableState, state_InMemoryStateFields as InMemoryStateFields, state_LookupHistorySlots as LookupHistorySlots, state_MAX_AUTH_POOL_SIZE as MAX_AUTH_POOL_SIZE, state_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, state_PerCore as PerCore, state_RecentBlocksView as RecentBlocksView, state_RecentlyAccumulated as RecentlyAccumulated, state_RecentlyAccumulatedView as RecentlyAccumulatedView, state_SafroleDataView as SafroleDataView, state_SafroleSealingKeys as SafroleSealingKeys, state_Service as Service, state_ServiceAccountInfoView as ServiceAccountInfoView, state_ServiceData as ServiceData, state_ServiceEntries as ServiceEntries, state_ServicesUpdate as ServicesUpdate, state_State as State, state_StateView as StateView, state_StatisticsDataView as StatisticsDataView, state_StorageKey as StorageKey, state_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES, state_ValidatorDataView as ValidatorDataView, state_WithStateView as WithStateView };
11320
+ }
11321
+
11364
11322
  declare class JsonPreimageItem {
11365
11323
  static fromJson: FromJsonWithParser<unknown, PreimageItem>;
11366
11324
  hash: PreimageHash;
@@ -11442,29 +11400,75 @@ declare class JsonStatisticsData {
11442
11400
 
11443
11401
  declare const validatorDataFromJson: FromJsonWithParser<unknown, ValidatorData>;
11444
11402
 
11445
- type index$1_JsonCoreStatistics = JsonCoreStatistics;
11446
- declare const index$1_JsonCoreStatistics: typeof JsonCoreStatistics;
11447
- type index$1_JsonService = JsonService;
11448
- declare const index$1_JsonService: typeof JsonService;
11449
- type index$1_JsonStatisticsData = JsonStatisticsData;
11450
- declare const index$1_JsonStatisticsData: typeof JsonStatisticsData;
11451
- type index$1_JsonValidatorStatistics = JsonValidatorStatistics;
11452
- declare const index$1_JsonValidatorStatistics: typeof JsonValidatorStatistics;
11453
- type index$1_ServiceStatisticsEntry = ServiceStatisticsEntry;
11454
- type index$1_TicketsOrKeys = TicketsOrKeys;
11455
- declare const index$1_TicketsOrKeys: typeof TicketsOrKeys;
11456
- declare const index$1_availabilityAssignmentFromJson: typeof availabilityAssignmentFromJson;
11457
- declare const index$1_disputesRecordsFromJson: typeof disputesRecordsFromJson;
11458
- declare const index$1_fullStateDumpFromJson: typeof fullStateDumpFromJson;
11459
- declare const index$1_notYetAccumulatedFromJson: typeof notYetAccumulatedFromJson;
11460
- declare const index$1_recentBlocksHistoryFromJson: typeof recentBlocksHistoryFromJson;
11461
- declare const index$1_reportedWorkPackageFromJson: typeof reportedWorkPackageFromJson;
11462
- declare const index$1_serviceStatisticsEntryFromJson: typeof serviceStatisticsEntryFromJson;
11463
- declare const index$1_ticketFromJson: typeof ticketFromJson;
11464
- declare const index$1_validatorDataFromJson: typeof validatorDataFromJson;
11465
- declare namespace index$1 {
11466
- export { index$1_JsonCoreStatistics as JsonCoreStatistics, index$1_JsonService as JsonService, index$1_JsonStatisticsData as JsonStatisticsData, index$1_JsonValidatorStatistics as JsonValidatorStatistics, index$1_TicketsOrKeys as TicketsOrKeys, index$1_availabilityAssignmentFromJson as availabilityAssignmentFromJson, index$1_disputesRecordsFromJson as disputesRecordsFromJson, index$1_fullStateDumpFromJson as fullStateDumpFromJson, index$1_notYetAccumulatedFromJson as notYetAccumulatedFromJson, index$1_recentBlocksHistoryFromJson as recentBlocksHistoryFromJson, index$1_reportedWorkPackageFromJson as reportedWorkPackageFromJson, index$1_serviceStatisticsEntryFromJson as serviceStatisticsEntryFromJson, index$1_ticketFromJson as ticketFromJson, index$1_validatorDataFromJson as validatorDataFromJson };
11467
- export type { index$1_ServiceStatisticsEntry as ServiceStatisticsEntry };
11403
+ /**
11404
+ * JSON serialization for state structures.
11405
+ *
11406
+ * This module provides utilities for converting JAM state structures to and from
11407
+ * JSON format for debugging, testing, and data interchange.
11408
+ *
11409
+ * @module state-json
11410
+ */
11411
+
11412
+ type stateJson_JsonCoreStatistics = JsonCoreStatistics;
11413
+ declare const stateJson_JsonCoreStatistics: typeof JsonCoreStatistics;
11414
+ type stateJson_JsonService = JsonService;
11415
+ declare const stateJson_JsonService: typeof JsonService;
11416
+ type stateJson_JsonStatisticsData = JsonStatisticsData;
11417
+ declare const stateJson_JsonStatisticsData: typeof JsonStatisticsData;
11418
+ type stateJson_JsonValidatorStatistics = JsonValidatorStatistics;
11419
+ declare const stateJson_JsonValidatorStatistics: typeof JsonValidatorStatistics;
11420
+ type stateJson_ServiceStatisticsEntry = ServiceStatisticsEntry;
11421
+ type stateJson_TicketsOrKeys = TicketsOrKeys;
11422
+ declare const stateJson_TicketsOrKeys: typeof TicketsOrKeys;
11423
+ declare const stateJson_availabilityAssignmentFromJson: typeof availabilityAssignmentFromJson;
11424
+ declare const stateJson_disputesRecordsFromJson: typeof disputesRecordsFromJson;
11425
+ declare const stateJson_fullStateDumpFromJson: typeof fullStateDumpFromJson;
11426
+ declare const stateJson_notYetAccumulatedFromJson: typeof notYetAccumulatedFromJson;
11427
+ declare const stateJson_recentBlocksHistoryFromJson: typeof recentBlocksHistoryFromJson;
11428
+ declare const stateJson_reportedWorkPackageFromJson: typeof reportedWorkPackageFromJson;
11429
+ declare const stateJson_serviceStatisticsEntryFromJson: typeof serviceStatisticsEntryFromJson;
11430
+ declare const stateJson_ticketFromJson: typeof ticketFromJson;
11431
+ declare const stateJson_validatorDataFromJson: typeof validatorDataFromJson;
11432
+ declare namespace stateJson {
11433
+ export { stateJson_JsonCoreStatistics as JsonCoreStatistics, stateJson_JsonService as JsonService, stateJson_JsonStatisticsData as JsonStatisticsData, stateJson_JsonValidatorStatistics as JsonValidatorStatistics, stateJson_TicketsOrKeys as TicketsOrKeys, stateJson_availabilityAssignmentFromJson as availabilityAssignmentFromJson, stateJson_disputesRecordsFromJson as disputesRecordsFromJson, stateJson_fullStateDumpFromJson as fullStateDumpFromJson, stateJson_notYetAccumulatedFromJson as notYetAccumulatedFromJson, stateJson_recentBlocksHistoryFromJson as recentBlocksHistoryFromJson, stateJson_reportedWorkPackageFromJson as reportedWorkPackageFromJson, stateJson_serviceStatisticsEntryFromJson as serviceStatisticsEntryFromJson, stateJson_ticketFromJson as ticketFromJson, stateJson_validatorDataFromJson as validatorDataFromJson };
11434
+ export type { stateJson_ServiceStatisticsEntry as ServiceStatisticsEntry };
11435
+ }
11436
+
11437
+ /**
11438
+ * State Merkleization and proof generation.
11439
+ *
11440
+ * This module provides functionality for computing Merkle roots of state data
11441
+ * and generating/verifying Merkle proofs.
11442
+ *
11443
+ * @module state-merkleization
11444
+ */
11445
+
11446
+ type stateMerkleization_SerializedService = SerializedService;
11447
+ declare const stateMerkleization_SerializedService: typeof SerializedService;
11448
+ type stateMerkleization_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
11449
+ declare const stateMerkleization_SerializedState: typeof SerializedState;
11450
+ type stateMerkleization_SerializedStateBackend = SerializedStateBackend;
11451
+ type stateMerkleization_SerializedStateView<T extends SerializedStateBackend> = SerializedStateView<T>;
11452
+ declare const stateMerkleization_SerializedStateView: typeof SerializedStateView;
11453
+ type stateMerkleization_StateCodec<T, V = T> = StateCodec<T, V>;
11454
+ type stateMerkleization_StateEntries = StateEntries;
11455
+ declare const stateMerkleization_StateEntries: typeof StateEntries;
11456
+ type stateMerkleization_StateEntryUpdate = StateEntryUpdate;
11457
+ type stateMerkleization_StateEntryUpdateAction = StateEntryUpdateAction;
11458
+ declare const stateMerkleization_StateEntryUpdateAction: typeof StateEntryUpdateAction;
11459
+ type stateMerkleization_StateKey = StateKey;
11460
+ type stateMerkleization_StateKeyIdx = StateKeyIdx;
11461
+ declare const stateMerkleization_StateKeyIdx: typeof StateKeyIdx;
11462
+ declare const stateMerkleization_binaryMerkleization: typeof binaryMerkleization;
11463
+ declare const stateMerkleization_dumpCodec: typeof dumpCodec;
11464
+ declare const stateMerkleization_legacyServiceNested: typeof legacyServiceNested;
11465
+ declare const stateMerkleization_loadState: typeof loadState;
11466
+ import stateMerkleization_serialize = serialize;
11467
+ declare const stateMerkleization_serializeStateUpdate: typeof serializeStateUpdate;
11468
+ import stateMerkleization_stateKeys = stateKeys;
11469
+ declare namespace stateMerkleization {
11470
+ export { stateMerkleization_SerializedService as SerializedService, stateMerkleization_SerializedState as SerializedState, stateMerkleization_SerializedStateView as SerializedStateView, stateMerkleization_StateEntries as StateEntries, stateMerkleization_StateEntryUpdateAction as StateEntryUpdateAction, stateMerkleization_StateKeyIdx as StateKeyIdx, stateMerkleization_binaryMerkleization as binaryMerkleization, stateMerkleization_dumpCodec as dumpCodec, stateMerkleization_legacyServiceNested as legacyServiceNested, stateMerkleization_loadState as loadState, stateMerkleization_serialize as serialize, stateMerkleization_serializeStateUpdate as serializeStateUpdate, stateMerkleization_stateKeys as stateKeys };
11471
+ export type { stateMerkleization_SerializedStateBackend as SerializedStateBackend, stateMerkleization_StateCodec as StateCodec, stateMerkleization_StateEntryUpdate as StateEntryUpdate, stateMerkleization_StateKey as StateKey };
11468
11472
  }
11469
11473
 
11470
11474
  declare class StateKeyVal {
@@ -11558,22 +11562,256 @@ declare class StateTransition {
11558
11562
  block: Block;
11559
11563
  }
11560
11564
 
11561
- type index_StateKeyVal = StateKeyVal;
11562
- declare const index_StateKeyVal: typeof StateKeyVal;
11563
- type index_StateTransition = StateTransition;
11564
- declare const index_StateTransition: typeof StateTransition;
11565
- type index_StateTransitionGenesis = StateTransitionGenesis;
11566
- declare const index_StateTransitionGenesis: typeof StateTransitionGenesis;
11567
- type index_TestState = TestState;
11568
- declare const index_TestState: typeof TestState;
11569
- declare namespace index {
11565
+ /**
11566
+ * State test vectors and fixtures.
11567
+ *
11568
+ * This module provides test vectors and fixtures for validating state
11569
+ * operations and ensuring conformance with the JAM specification.
11570
+ *
11571
+ * @module state-vectors
11572
+ */
11573
+
11574
+ type stateVectors_StateKeyVal = StateKeyVal;
11575
+ declare const stateVectors_StateKeyVal: typeof StateKeyVal;
11576
+ type stateVectors_StateTransition = StateTransition;
11577
+ declare const stateVectors_StateTransition: typeof StateTransition;
11578
+ type stateVectors_StateTransitionGenesis = StateTransitionGenesis;
11579
+ declare const stateVectors_StateTransitionGenesis: typeof StateTransitionGenesis;
11580
+ type stateVectors_TestState = TestState;
11581
+ declare const stateVectors_TestState: typeof TestState;
11582
+ declare namespace stateVectors {
11570
11583
  export {
11571
- index_StateKeyVal as StateKeyVal,
11572
- index_StateTransition as StateTransition,
11573
- index_StateTransitionGenesis as StateTransitionGenesis,
11574
- index_TestState as TestState,
11584
+ stateVectors_StateKeyVal as StateKeyVal,
11585
+ stateVectors_StateTransition as StateTransition,
11586
+ stateVectors_StateTransitionGenesis as StateTransitionGenesis,
11587
+ stateVectors_TestState as TestState,
11575
11588
  };
11576
11589
  }
11577
11590
 
11578
- export { TEST_COMPARE_USING, __OPAQUE_TYPE__, __REPRESENTATION_BYTES__, index$s as block, index$q as block_json, index$y as bytes, index$x as codec, index$v as collections, index$t as config, index$p as config_node, index$u as crypto, index$k as database, index$j as erasure_coding, index$h as fuzz_proto, index$w as hash, index$9 as jam_host_calls, index$r as json_parser, index$f as logger, index$n as mmr, index$B as numbers, index$A as ordering, index$e as pvm, index$d as pvm_host_calls, index$3 as pvm_interpreter, index$2 as shuffling, index$m as state, index$1 as state_json, index$l as state_merkleization, index as state_vectors, index$7 as transition, index$o as trie, index$6 as typeberry, index$z as utils, index$g as workers };
11591
+ /**
11592
+ * State transition functions and logic.
11593
+ *
11594
+ * This module provides the state transition functions that define how JAM state
11595
+ * evolves in response to blocks, extrinsics, and other events.
11596
+ *
11597
+ * @module transition
11598
+ */
11599
+
11600
+ type transition_ACCUMULATION_ERROR = ACCUMULATION_ERROR;
11601
+ type transition_Accumulate = Accumulate;
11602
+ declare const transition_Accumulate: typeof Accumulate;
11603
+ type transition_AccumulateInput = AccumulateInput;
11604
+ type transition_AccumulateOptions = AccumulateOptions;
11605
+ type transition_AccumulateResult = AccumulateResult;
11606
+ type transition_AccumulateRoot = AccumulateRoot;
11607
+ type transition_AccumulateState = AccumulateState;
11608
+ type transition_AccumulateStateUpdate = AccumulateStateUpdate;
11609
+ type transition_Assurances = Assurances;
11610
+ declare const transition_Assurances: typeof Assurances;
11611
+ type transition_AssurancesError = AssurancesError;
11612
+ declare const transition_AssurancesError: typeof AssurancesError;
11613
+ type transition_AssurancesInput = AssurancesInput;
11614
+ type transition_AssurancesState = AssurancesState;
11615
+ type transition_AssurancesStateUpdate = AssurancesStateUpdate;
11616
+ type transition_Authorization = Authorization;
11617
+ declare const transition_Authorization: typeof Authorization;
11618
+ type transition_AuthorizationInput = AuthorizationInput;
11619
+ type transition_AuthorizationState = AuthorizationState;
11620
+ type transition_AuthorizationStateUpdate = AuthorizationStateUpdate;
11621
+ type transition_BlockVerifier = BlockVerifier;
11622
+ declare const transition_BlockVerifier: typeof BlockVerifier;
11623
+ type transition_BlockVerifierError = BlockVerifierError;
11624
+ declare const transition_BlockVerifierError: typeof BlockVerifierError;
11625
+ type transition_CountAndGasUsed = CountAndGasUsed;
11626
+ type transition_DbHeaderChain = DbHeaderChain;
11627
+ declare const transition_DbHeaderChain: typeof DbHeaderChain;
11628
+ type transition_DeferredTransfers = DeferredTransfers;
11629
+ declare const transition_DeferredTransfers: typeof DeferredTransfers;
11630
+ type transition_DeferredTransfersErrorCode = DeferredTransfersErrorCode;
11631
+ declare const transition_DeferredTransfersErrorCode: typeof DeferredTransfersErrorCode;
11632
+ type transition_DeferredTransfersResult = DeferredTransfersResult;
11633
+ type transition_DeferredTransfersState = DeferredTransfersState;
11634
+ type transition_Disputes = Disputes;
11635
+ declare const transition_Disputes: typeof Disputes;
11636
+ type transition_DisputesState = DisputesState;
11637
+ type transition_DisputesStateUpdate = DisputesStateUpdate;
11638
+ declare const transition_GAS_TO_INVOKE_WORK_REPORT: typeof GAS_TO_INVOKE_WORK_REPORT;
11639
+ type transition_HeaderChain = HeaderChain;
11640
+ type transition_Input = Input;
11641
+ type transition_Ok = Ok;
11642
+ type transition_OnChain = OnChain;
11643
+ declare const transition_OnChain: typeof OnChain;
11644
+ type transition_Preimages = Preimages;
11645
+ declare const transition_Preimages: typeof Preimages;
11646
+ type transition_PreimagesErrorCode = PreimagesErrorCode;
11647
+ declare const transition_PreimagesErrorCode: typeof PreimagesErrorCode;
11648
+ type transition_PreimagesInput = PreimagesInput;
11649
+ type transition_PreimagesState = PreimagesState;
11650
+ type transition_PreimagesStateUpdate = PreimagesStateUpdate;
11651
+ declare const transition_REPORT_TIMEOUT_GRACE_PERIOD: typeof REPORT_TIMEOUT_GRACE_PERIOD;
11652
+ type transition_RecentHistory = RecentHistory;
11653
+ declare const transition_RecentHistory: typeof RecentHistory;
11654
+ type transition_RecentHistoryInput = RecentHistoryInput;
11655
+ type transition_RecentHistoryPartialInput = RecentHistoryPartialInput;
11656
+ type transition_RecentHistoryState = RecentHistoryState;
11657
+ type transition_RecentHistoryStateUpdate = RecentHistoryStateUpdate;
11658
+ type transition_Reports = Reports;
11659
+ declare const transition_Reports: typeof Reports;
11660
+ type transition_ReportsError = ReportsError;
11661
+ declare const transition_ReportsError: typeof ReportsError;
11662
+ type transition_ReportsInput = ReportsInput;
11663
+ type transition_ReportsOutput = ReportsOutput;
11664
+ type transition_ReportsState = ReportsState;
11665
+ type transition_ReportsStateUpdate = ReportsStateUpdate;
11666
+ type transition_Statistics = Statistics;
11667
+ declare const transition_Statistics: typeof Statistics;
11668
+ type transition_StatisticsState = StatisticsState;
11669
+ type transition_StatisticsStateUpdate = StatisticsStateUpdate;
11670
+ type transition_StfError = StfError;
11671
+ type transition_StfErrorKind = StfErrorKind;
11672
+ declare const transition_StfErrorKind: typeof StfErrorKind;
11673
+ type transition_TransitionHasher = TransitionHasher;
11674
+ declare const transition_TransitionHasher: typeof TransitionHasher;
11675
+ declare const transition_copyAndUpdateState: typeof copyAndUpdateState;
11676
+ declare const transition_stfError: typeof stfError;
11677
+ declare namespace transition {
11678
+ export { transition_Accumulate as Accumulate, transition_Assurances as Assurances, transition_AssurancesError as AssurancesError, transition_Authorization as Authorization, transition_BlockVerifier as BlockVerifier, transition_BlockVerifierError as BlockVerifierError, transition_DbHeaderChain as DbHeaderChain, transition_DeferredTransfers as DeferredTransfers, transition_DeferredTransfersErrorCode as DeferredTransfersErrorCode, transition_Disputes as Disputes, transition_GAS_TO_INVOKE_WORK_REPORT as GAS_TO_INVOKE_WORK_REPORT, transition_OnChain as OnChain, transition_Preimages as Preimages, transition_PreimagesErrorCode as PreimagesErrorCode, transition_REPORT_TIMEOUT_GRACE_PERIOD as REPORT_TIMEOUT_GRACE_PERIOD, transition_RecentHistory as RecentHistory, transition_Reports as Reports, transition_ReportsError as ReportsError, transition_Statistics as Statistics, transition_StfErrorKind as StfErrorKind, transition_TransitionHasher as TransitionHasher, transition_copyAndUpdateState as copyAndUpdateState, index$2 as externalities, transition_stfError as stfError };
11679
+ export type { transition_ACCUMULATION_ERROR as ACCUMULATION_ERROR, transition_AccumulateInput as AccumulateInput, transition_AccumulateOptions as AccumulateOptions, transition_AccumulateResult as AccumulateResult, transition_AccumulateRoot as AccumulateRoot, transition_AccumulateState as AccumulateState, transition_AccumulateStateUpdate as AccumulateStateUpdate, transition_AssurancesInput as AssurancesInput, transition_AssurancesState as AssurancesState, transition_AssurancesStateUpdate as AssurancesStateUpdate, transition_AuthorizationInput as AuthorizationInput, transition_AuthorizationState as AuthorizationState, transition_AuthorizationStateUpdate as AuthorizationStateUpdate, transition_CountAndGasUsed as CountAndGasUsed, transition_DeferredTransfersResult as DeferredTransfersResult, transition_DeferredTransfersState as DeferredTransfersState, transition_DisputesState as DisputesState, transition_DisputesStateUpdate as DisputesStateUpdate, transition_HeaderChain as HeaderChain, transition_Input as Input, transition_Ok as Ok, transition_PreimagesInput as PreimagesInput, transition_PreimagesState as PreimagesState, transition_PreimagesStateUpdate as PreimagesStateUpdate, transition_RecentHistoryInput as RecentHistoryInput, transition_RecentHistoryPartialInput as RecentHistoryPartialInput, transition_RecentHistoryState as RecentHistoryState, transition_RecentHistoryStateUpdate as RecentHistoryStateUpdate, transition_ReportsInput as ReportsInput, transition_ReportsOutput as ReportsOutput, transition_ReportsState as ReportsState, transition_ReportsStateUpdate as ReportsStateUpdate, transition_StatisticsState as StatisticsState, transition_StatisticsStateUpdate as StatisticsStateUpdate, transition_StfError as StfError };
11680
+ }
11681
+
11682
+ /**
11683
+ * Trie data structures and operations.
11684
+ *
11685
+ * This module provides trie (prefix tree) data structures used for efficient
11686
+ * key-value storage and Merkle proof generation.
11687
+ *
11688
+ * @module trie
11689
+ */
11690
+
11691
+ type trie_BranchNode = BranchNode;
11692
+ declare const trie_BranchNode: typeof BranchNode;
11693
+ type trie_InMemoryTrie = InMemoryTrie;
11694
+ declare const trie_InMemoryTrie: typeof InMemoryTrie;
11695
+ type trie_InputKey = InputKey;
11696
+ type trie_LeafNode = LeafNode;
11697
+ declare const trie_LeafNode: typeof LeafNode;
11698
+ type trie_NodeType = NodeType;
11699
+ declare const trie_NodeType: typeof NodeType;
11700
+ type trie_NodesDb = NodesDb;
11701
+ declare const trie_NodesDb: typeof NodesDb;
11702
+ declare const trie_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
11703
+ declare const trie_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
11704
+ type trie_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
11705
+ type trie_TrieHasher = TrieHasher;
11706
+ type trie_TrieNode = TrieNode;
11707
+ declare const trie_TrieNode: typeof TrieNode;
11708
+ type trie_TrieNodeHash = TrieNodeHash;
11709
+ type trie_TruncatedStateKey = TruncatedStateKey;
11710
+ type trie_ValueHash = ValueHash;
11711
+ type trie_WriteableNodesDb = WriteableNodesDb;
11712
+ declare const trie_WriteableNodesDb: typeof WriteableNodesDb;
11713
+ declare const trie_findSharedPrefix: typeof findSharedPrefix;
11714
+ declare const trie_leafComparator: typeof leafComparator;
11715
+ declare const trie_parseInputKey: typeof parseInputKey;
11716
+ declare namespace trie {
11717
+ export { trie_BranchNode as BranchNode, trie_InMemoryTrie as InMemoryTrie, trie_LeafNode as LeafNode, trie_NodeType as NodeType, trie_NodesDb as NodesDb, trie_TRIE_NODE_BYTES as TRIE_NODE_BYTES, trie_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, trie_TrieNode as TrieNode, trie_WriteableNodesDb as WriteableNodesDb, trie_findSharedPrefix as findSharedPrefix, trie_leafComparator as leafComparator, trie_parseInputKey as parseInputKey };
11718
+ export type { trie_InputKey as InputKey, StateKey$1 as StateKey, trie_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, trie_TrieHasher as TrieHasher, trie_TrieNodeHash as TrieNodeHash, trie_TruncatedStateKey as TruncatedStateKey, trie_ValueHash as ValueHash };
11719
+ }
11720
+
11721
+ /**
11722
+ * General utility functions and helpers.
11723
+ *
11724
+ * This module provides a collection of general-purpose utility functions,
11725
+ * type helpers, and common operations used throughout Typeberry.
11726
+ *
11727
+ * @module utils
11728
+ */
11729
+
11730
+ declare const utils_CURRENT_SUITE: typeof CURRENT_SUITE;
11731
+ declare const utils_CURRENT_VERSION: typeof CURRENT_VERSION;
11732
+ type utils_Compatibility = Compatibility;
11733
+ declare const utils_Compatibility: typeof Compatibility;
11734
+ declare const utils_DEFAULT_SUITE: typeof DEFAULT_SUITE;
11735
+ declare const utils_DEFAULT_VERSION: typeof DEFAULT_VERSION;
11736
+ type utils_DeepEqualOptions = DeepEqualOptions;
11737
+ type utils_ErrorResult<Error> = ErrorResult<Error>;
11738
+ type utils_ErrorsCollector = ErrorsCollector;
11739
+ declare const utils_ErrorsCollector: typeof ErrorsCollector;
11740
+ type utils_GpVersion = GpVersion;
11741
+ declare const utils_GpVersion: typeof GpVersion;
11742
+ declare const utils_MAX_LENGTH: typeof MAX_LENGTH;
11743
+ type utils_OK = OK;
11744
+ type utils_OkResult<Ok> = OkResult<Ok>;
11745
+ type utils_Opaque<Type, Token extends string> = Opaque<Type, Token>;
11746
+ declare const utils_Result: typeof Result;
11747
+ declare const utils_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
11748
+ type utils_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
11749
+ type utils_TestSuite = TestSuite;
11750
+ declare const utils_TestSuite: typeof TestSuite;
11751
+ type utils_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
11752
+ type utils_WithDebug = WithDebug;
11753
+ declare const utils_WithDebug: typeof WithDebug;
11754
+ type utils_WithOpaque<Token extends string> = WithOpaque<Token>;
11755
+ declare const utils___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
11756
+ declare const utils_asOpaqueType: typeof asOpaqueType;
11757
+ declare const utils_assertEmpty: typeof assertEmpty;
11758
+ declare const utils_assertNever: typeof assertNever;
11759
+ declare const utils_check: typeof check;
11760
+ declare const utils_deepEqual: typeof deepEqual;
11761
+ declare const utils_env: typeof env;
11762
+ declare const utils_inspect: typeof inspect;
11763
+ declare const utils_isBrowser: typeof isBrowser;
11764
+ declare const utils_lazyInspect: typeof lazyInspect;
11765
+ declare const utils_measure: typeof measure;
11766
+ declare const utils_now: typeof now;
11767
+ declare const utils_resultToString: typeof resultToString;
11768
+ declare const utils_safeAllocUint8Array: typeof safeAllocUint8Array;
11769
+ declare const utils_seeThrough: typeof seeThrough;
11770
+ declare const utils_workspacePathFix: typeof workspacePathFix;
11771
+ declare namespace utils {
11772
+ export { utils_CURRENT_SUITE as CURRENT_SUITE, utils_CURRENT_VERSION as CURRENT_VERSION, utils_Compatibility as Compatibility, utils_DEFAULT_SUITE as DEFAULT_SUITE, utils_DEFAULT_VERSION as DEFAULT_VERSION, utils_ErrorsCollector as ErrorsCollector, utils_GpVersion as GpVersion, utils_MAX_LENGTH as MAX_LENGTH, utils_Result as Result, utils_TEST_COMPARE_USING as TEST_COMPARE_USING, utils_TestSuite as TestSuite, utils_WithDebug as WithDebug, utils___OPAQUE_TYPE__ as __OPAQUE_TYPE__, utils_asOpaqueType as asOpaqueType, utils_assertEmpty as assertEmpty, utils_assertNever as assertNever, utils_check as check, utils_deepEqual as deepEqual, utils_env as env, utils_inspect as inspect, utils_isBrowser as isBrowser, utils_lazyInspect as lazyInspect, utils_measure as measure, utils_now as now, utils_resultToString as resultToString, utils_safeAllocUint8Array as safeAllocUint8Array, utils_seeThrough as seeThrough, utils_workspacePathFix as workspacePathFix };
11773
+ export type { utils_DeepEqualOptions as DeepEqualOptions, utils_ErrorResult as ErrorResult, utils_OK as OK, utils_OkResult as OkResult, utils_Opaque as Opaque, utils_TaggedError as TaggedError, utils_TokenOf as TokenOf, utils_WithOpaque as WithOpaque };
11774
+ }
11775
+
11776
+ /**
11777
+ * Workers API and multi-threading utilities.
11778
+ *
11779
+ * This module provides the Workers API for parallel processing and multi-threading,
11780
+ * enabling efficient utilization of system resources.
11781
+ *
11782
+ * @module workers-api
11783
+ */
11784
+
11785
+ type workersApi_Api<T> = Api<T>;
11786
+ type workersApi_Channel = Channel;
11787
+ declare const workersApi_Channel: typeof Channel;
11788
+ type workersApi_Destroy = Destroy;
11789
+ type workersApi_DirectPort = DirectPort;
11790
+ declare const workersApi_DirectPort: typeof DirectPort;
11791
+ type workersApi_DirectWorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = DirectWorkerConfig<TParams, TBlocks, TStates>;
11792
+ declare const workersApi_DirectWorkerConfig: typeof DirectWorkerConfig;
11793
+ type workersApi_Envelope<T> = Envelope<T>;
11794
+ type workersApi_Handler<Req, Res> = Handler<Req, Res>;
11795
+ type workersApi_HandlerKey<K> = HandlerKey<K>;
11796
+ type workersApi_Handlers<In> = Handlers<In>;
11797
+ type workersApi_Internal<T> = Internal<T>;
11798
+ type workersApi_LousyProtocol<To, From> = LousyProtocol<To, From>;
11799
+ type workersApi_MessageCodecs<Req, Res> = MessageCodecs<Req, Res>;
11800
+ type workersApi_MessagesList<T> = MessagesList<T>;
11801
+ type workersApi_Port = Port;
11802
+ type workersApi_Protocol<To, From> = Protocol<To, From>;
11803
+ type workersApi_Rx<To, From> = Rx<To, From>;
11804
+ type workersApi_Sender<Req, Res> = Sender<Req, Res>;
11805
+ type workersApi_SenderKey<K> = SenderKey<K>;
11806
+ type workersApi_Senders<Out> = Senders<Out>;
11807
+ type workersApi_Tx<To, From> = Tx<To, From>;
11808
+ type workersApi_WorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = WorkerConfig<TParams, TBlocks, TStates>;
11809
+ declare const workersApi_createProtocol: typeof createProtocol;
11810
+ declare const workersApi_startSameThread: typeof startSameThread;
11811
+ declare namespace workersApi {
11812
+ export { workersApi_Channel as Channel, workersApi_DirectPort as DirectPort, workersApi_DirectWorkerConfig as DirectWorkerConfig, workersApi_createProtocol as createProtocol, workersApi_startSameThread as startSameThread };
11813
+ export type { workersApi_Api as Api, workersApi_Destroy as Destroy, workersApi_Envelope as Envelope, workersApi_Handler as Handler, workersApi_HandlerKey as HandlerKey, workersApi_Handlers as Handlers, workersApi_Internal as Internal, workersApi_LousyProtocol as LousyProtocol, workersApi_MessageCodecs as MessageCodecs, workersApi_MessagesList as MessagesList, workersApi_Port as Port, workersApi_Protocol as Protocol, workersApi_Rx as Rx, workersApi_Sender as Sender, workersApi_SenderKey as SenderKey, workersApi_Senders as Senders, workersApi_Tx as Tx, workersApi_WorkerConfig as WorkerConfig };
11814
+ }
11815
+
11816
+ export { TEST_COMPARE_USING, __OPAQUE_TYPE__, __REPRESENTATION_BYTES__, block, blockJson as block_json, bytes, codec, collections, config, configNode as config_node, crypto, database, erasureCoding as erasure_coding, fuzzProto as fuzz_proto, hash, jamHostCalls as jam_host_calls, jsonParser as json_parser, logger, mmr, numbers, ordering, pvmInterface as pvm, pvmHostCalls as pvm_host_calls, pvmInterpreter as pvm_interpreter, shuffling, state, stateJson as state_json, stateMerkleization as state_merkleization, stateVectors as state_vectors, transition, trie, importer as typeberry, utils, workersApi as workers };
11579
11817
  export type { WithBytesRepresentation, WithOpaque };