@typeberry/lib 0.5.0 → 0.5.1-31343a9

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 (122) 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 +389 -26727
  65. package/index.d.ts +1867 -1320
  66. package/index.mjs +450 -0
  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 +160 -3
  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
  122. package/index.js +0 -26836
package/index.d.ts CHANGED
@@ -75,81 +75,13 @@ 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
- V0_6_7 = "0.6.7",
146
79
  V0_7_0 = "0.7.0",
147
80
  V0_7_1 = "0.7.1",
148
81
  V0_7_2 = "0.7.2"
149
82
  }
150
83
  declare enum TestSuite {
151
- W3F_DAVXY = "w3f-davxy",
152
- JAMDUNA = "jamduna"
84
+ W3F_DAVXY = "w3f-davxy"
153
85
  }
154
86
  declare const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
155
87
  declare const DEFAULT_VERSION = GpVersion.V0_7_2;
@@ -161,7 +93,6 @@ declare class Compatibility {
161
93
  static is(...version: GpVersion[]): boolean;
162
94
  static isSuite(suite: TestSuite, version?: GpVersion): boolean;
163
95
  static isGreaterOrEqual(version: GpVersion): boolean;
164
- static isLessThan(version: GpVersion): boolean;
165
96
  /**
166
97
  * Allows selecting different values for different Gray Paper versions from one record.
167
98
  *
@@ -363,64 +294,35 @@ declare class ErrorsCollector {
363
294
  exitOrThrow(): this;
364
295
  }
365
296
 
366
- /**
367
- * Utilities that are widely used across typeberry.
368
- *
369
- * BIG FAT NOTE: Please think twice or thrice before adding something here.
370
- * The package should really contain only things that are pretty much essential
371
- * and used everywhere.
372
- *
373
- * It might be much better to create a small package just for the thing you
374
- * are thinking about adding here. It's easier to later consolide smaller
375
- * things into this `utils` package than to split it into separate parts
376
- * as an afterthought.
377
- */
378
-
379
- declare const index$z_CURRENT_SUITE: typeof CURRENT_SUITE;
380
- declare const index$z_CURRENT_VERSION: typeof CURRENT_VERSION;
381
- type index$z_Compatibility = Compatibility;
382
- declare const index$z_Compatibility: typeof Compatibility;
383
- declare const index$z_DEFAULT_SUITE: typeof DEFAULT_SUITE;
384
- declare const index$z_DEFAULT_VERSION: typeof DEFAULT_VERSION;
385
- type index$z_DeepEqualOptions = DeepEqualOptions;
386
- type index$z_ErrorResult<Error> = ErrorResult<Error>;
387
- type index$z_ErrorsCollector = ErrorsCollector;
388
- declare const index$z_ErrorsCollector: typeof ErrorsCollector;
389
- type index$z_GpVersion = GpVersion;
390
- declare const index$z_GpVersion: typeof GpVersion;
391
- declare const index$z_MAX_LENGTH: typeof MAX_LENGTH;
392
- type index$z_OK = OK;
393
- type index$z_OkResult<Ok> = OkResult<Ok>;
394
- type index$z_Opaque<Type, Token extends string> = Opaque<Type, Token>;
395
- declare const index$z_Result: typeof Result;
396
- declare const index$z_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
397
- type index$z_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
398
- type index$z_TestSuite = TestSuite;
399
- declare const index$z_TestSuite: typeof TestSuite;
400
- type index$z_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
401
- type index$z_WithDebug = WithDebug;
402
- declare const index$z_WithDebug: typeof WithDebug;
403
- type index$z_WithOpaque<Token extends string> = WithOpaque<Token>;
404
- declare const index$z___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
405
- declare const index$z_asOpaqueType: typeof asOpaqueType;
406
- declare const index$z_assertEmpty: typeof assertEmpty;
407
- declare const index$z_assertNever: typeof assertNever;
408
- declare const index$z_check: typeof check;
409
- declare const index$z_deepEqual: typeof deepEqual;
410
- declare const index$z_env: typeof env;
411
- declare const index$z_inspect: typeof inspect;
412
- declare const index$z_isBrowser: typeof isBrowser;
413
- declare const index$z_lazyInspect: typeof lazyInspect;
414
- declare const index$z_measure: typeof measure;
415
- declare const index$z_now: typeof now;
416
- declare const index$z_resultToString: typeof resultToString;
417
- declare const index$z_safeAllocUint8Array: typeof safeAllocUint8Array;
418
- declare const index$z_seeThrough: typeof seeThrough;
419
- declare const index$z_workspacePathFix: typeof workspacePathFix;
420
- declare namespace index$z {
421
- 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 };
422
- 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
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;
423
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;
424
326
 
425
327
  /**
426
328
  * A variable-length blob of bytes with a concise text representation.
@@ -531,22 +433,6 @@ declare class BitVec {
531
433
  indicesOfSetBits(): Generator<number, void, unknown>;
532
434
  }
533
435
 
534
- type index$y_BitVec = BitVec;
535
- declare const index$y_BitVec: typeof BitVec;
536
- type index$y_Bytes<T extends number> = Bytes<T>;
537
- declare const index$y_Bytes: typeof Bytes;
538
- type index$y_BytesBlob = BytesBlob;
539
- declare const index$y_BytesBlob: typeof BytesBlob;
540
- declare const index$y_bytesBlobComparator: typeof bytesBlobComparator;
541
- declare namespace index$y {
542
- export {
543
- index$y_BitVec as BitVec,
544
- index$y_Bytes as Bytes,
545
- index$y_BytesBlob as BytesBlob,
546
- index$y_bytesBlobComparator as bytesBlobComparator,
547
- };
548
- }
549
-
550
436
  /** A decoder for some specific type `T` */
551
437
  type Decode<T> = {
552
438
  /** Decode object of type `T`. */
@@ -957,7 +843,7 @@ declare class Skipper {
957
843
  }
958
844
 
959
845
  /** Infer the type that is described by given descriptor `T` */
960
- type DescribedBy<T> = T extends Descriptor<infer V> ? V : never;
846
+ type DescribedBy<T> = T extends Descriptor<infer V, infer _> ? V : never;
961
847
  /**
962
848
  * Converts a class `T` into an object with the same fields as the class.
963
849
  */
@@ -1151,7 +1037,7 @@ declare const TYPICAL_DICTIONARY_LENGTH = 32;
1151
1037
  */
1152
1038
  declare function readonlyArray<T, V>(desc: Descriptor<T[], V>): Descriptor<readonly T[], V>;
1153
1039
  /** Fixed-length bytes sequence. */
1154
- declare const bytes: <N extends number>(len: N) => Descriptor<Bytes<N>>;
1040
+ declare const bytes$1: <N extends number>(len: N) => Descriptor<Bytes<N>>;
1155
1041
  /** Zero-size `void` value. */
1156
1042
  declare const nothing: Descriptor<void, void>;
1157
1043
  /** Variable-length U32. */
@@ -1209,6 +1095,21 @@ declare const custom: <T>({ name, sizeHint, }: {
1209
1095
  name: string;
1210
1096
  sizeHint: SizeHint;
1211
1097
  }, encode: (e: Encoder, x: T) => void, decode: (d: Decoder) => T, skip: (s: Skipper) => void) => Descriptor<T>;
1098
+ /**
1099
+ * Descriptor record for union variants.
1100
+ * Each variant can have its own view type, but the union itself won't expose views.
1101
+ */
1102
+ type UnionDescriptorRecord<TKind extends number, T extends {
1103
+ kind: TKind;
1104
+ }> = {
1105
+ [K in TKind]: Descriptor<Omit<Extract<T, {
1106
+ kind: K;
1107
+ }>, "kind">, unknown>;
1108
+ };
1109
+ /** Tagged union type encoding. */
1110
+ declare const union: <TKind extends number, T extends {
1111
+ kind: TKind;
1112
+ }, TVariants extends UnionDescriptorRecord<TKind, T> = UnionDescriptorRecord<TKind, T>>(name: string, variants: TVariants) => Descriptor<T>;
1212
1113
  /** Choose a descriptor depending on the encoding/decoding context. */
1213
1114
  declare const select: <T, V = T>({ name, sizeHint, }: {
1214
1115
  name: string;
@@ -1242,7 +1143,6 @@ declare const descriptors_bitVecFixLen: typeof bitVecFixLen;
1242
1143
  declare const descriptors_bitVecVarLen: typeof bitVecVarLen;
1243
1144
  declare const descriptors_blob: typeof blob;
1244
1145
  declare const descriptors_bool: typeof bool;
1245
- declare const descriptors_bytes: typeof bytes;
1246
1146
  declare const descriptors_custom: typeof custom;
1247
1147
  declare const descriptors_dictionary: typeof dictionary;
1248
1148
  declare const descriptors_forEachDescriptor: typeof forEachDescriptor;
@@ -1265,49 +1165,15 @@ declare const descriptors_u24: typeof u24;
1265
1165
  declare const descriptors_u32: typeof u32;
1266
1166
  declare const descriptors_u64: typeof u64;
1267
1167
  declare const descriptors_u8: typeof u8;
1168
+ declare const descriptors_union: typeof union;
1268
1169
  declare const descriptors_varU32: typeof varU32;
1269
1170
  declare const descriptors_varU64: typeof varU64;
1270
1171
  declare namespace descriptors {
1271
- 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_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 };
1272
1173
  export type { descriptors_SequenceVarLenOptions as SequenceVarLenOptions };
1273
1174
  }
1274
1175
 
1275
- type index$x_ClassConstructor<T> = ClassConstructor<T>;
1276
- type index$x_Codec<T> = Codec<T>;
1277
- type index$x_CodecRecord<T> = CodecRecord<T>;
1278
- type index$x_CodecWithView<T, V> = CodecWithView<T, V>;
1279
- type index$x_Decode<T> = Decode<T>;
1280
- type index$x_Decoder = Decoder;
1281
- declare const index$x_Decoder: typeof Decoder;
1282
- type index$x_DescribedBy<T> = DescribedBy<T>;
1283
- type index$x_Descriptor<T, V = T> = Descriptor<T, V>;
1284
- declare const index$x_Descriptor: typeof Descriptor;
1285
- type index$x_DescriptorRecord<T> = DescriptorRecord<T>;
1286
- type index$x_Encode<T> = Encode<T>;
1287
- type index$x_Encoder = Encoder;
1288
- declare const index$x_Encoder: typeof Encoder;
1289
- type index$x_EndOfDataError = EndOfDataError;
1290
- declare const index$x_EndOfDataError: typeof EndOfDataError;
1291
- type index$x_LengthRange = LengthRange;
1292
- type index$x_ObjectView<T> = ObjectView<T>;
1293
- declare const index$x_ObjectView: typeof ObjectView;
1294
- type index$x_OptionalRecord<T> = OptionalRecord<T>;
1295
- type index$x_PropertyKeys<T> = PropertyKeys<T>;
1296
- type index$x_SequenceView<T, V = T> = SequenceView<T, V>;
1297
- declare const index$x_SequenceView: typeof SequenceView;
1298
- type index$x_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
1299
- type index$x_SizeHint = SizeHint;
1300
- type index$x_ViewField<T, V> = ViewField<T, V>;
1301
- declare const index$x_ViewField: typeof ViewField;
1302
- type index$x_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
1303
- declare const index$x_addSizeHints: typeof addSizeHints;
1304
- declare const index$x_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
1305
- declare const index$x_tryAsExactBytes: typeof tryAsExactBytes;
1306
- declare const index$x_validateLength: typeof validateLength;
1307
- declare namespace index$x {
1308
- export { 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_ViewField as ViewField, index$x_addSizeHints as addSizeHints, descriptors as codec, index$x_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$x_tryAsExactBytes as tryAsExactBytes, index$x_validateLength as validateLength };
1309
- 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_SimpleDescriptorRecord as SimpleDescriptorRecord, index$x_SizeHint as SizeHint, index$x_ViewOf as ViewOf };
1310
- }
1176
+ declare const codec$1: typeof descriptors;
1311
1177
 
1312
1178
  /**
1313
1179
  * A utility class providing a readonly view over a portion of an array without copying it.
@@ -1653,25 +1519,6 @@ declare namespace keccak {
1653
1519
  };
1654
1520
  }
1655
1521
 
1656
- type index$w_Blake2b = Blake2b;
1657
- declare const index$w_Blake2b: typeof Blake2b;
1658
- type index$w_Blake2bHash = Blake2bHash;
1659
- type index$w_HASH_SIZE = HASH_SIZE;
1660
- type index$w_KeccakHash = KeccakHash;
1661
- type index$w_OpaqueHash = OpaqueHash;
1662
- type index$w_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
1663
- type index$w_TruncatedHash = TruncatedHash;
1664
- type index$w_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
1665
- declare const index$w_WithHash: typeof WithHash;
1666
- type index$w_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
1667
- declare const index$w_WithHashAndBytes: typeof WithHashAndBytes;
1668
- declare const index$w_ZERO_HASH: typeof ZERO_HASH;
1669
- declare const index$w_keccak: typeof keccak;
1670
- declare namespace index$w {
1671
- 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 };
1672
- 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 };
1673
- }
1674
-
1675
1522
  /** Immutable view of the `HashDictionary`. */
1676
1523
  interface ImmutableHashDictionary<K extends OpaqueHash, V> extends Iterable<[K, V]> {
1677
1524
  /** Return number of items in the dictionary. */
@@ -1963,6 +1810,8 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
1963
1810
  set(key: T | TruncatedHash, value: V): void;
1964
1811
  /** Remove a value that matches the key on `TRUNCATED_HASH_SIZE`. */
1965
1812
  delete(key: T | TruncatedHash): void;
1813
+ /** Iterator over keys of the dictionary. */
1814
+ keys(): Iterator<TruncatedHash, any, any> & Iterable<TruncatedHash>;
1966
1815
  /** Iterator over values of the dictionary. */
1967
1816
  values(): Iterator<V, any, any> & Iterable<V>;
1968
1817
  /** Iterator over entries of the dictionary (with truncated keys) */
@@ -1970,59 +1819,44 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
1970
1819
  [Symbol.iterator](): Generator<[TruncatedHash, V], any, any>;
1971
1820
  }
1972
1821
 
1973
- type index$v_ArrayView<T> = ArrayView<T>;
1974
- declare const index$v_ArrayView: typeof ArrayView;
1975
- type index$v_BlobDictionary<K extends BytesBlob, V> = BlobDictionary<K, V>;
1976
- declare const index$v_BlobDictionary: typeof BlobDictionary;
1977
- type index$v_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
1978
- declare const index$v_FixedSizeArray: typeof FixedSizeArray;
1979
- type index$v_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
1980
- declare const index$v_HashDictionary: typeof HashDictionary;
1981
- type index$v_HashSet<V extends OpaqueHash> = HashSet<V>;
1982
- declare const index$v_HashSet: typeof HashSet;
1983
- type index$v_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
1984
- type index$v_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
1985
- type index$v_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
1986
- type index$v_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
1987
- type index$v_KeyMapper<K> = KeyMapper<K>;
1988
- type index$v_KnownSize<T, F extends string> = KnownSize<T, F>;
1989
- type index$v_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
1990
- type index$v_KnownSizeId<X> = KnownSizeId<X>;
1991
- type index$v_ListChildren<K extends BytesBlob, V> = ListChildren<K, V>;
1992
- declare const index$v_ListChildren: typeof ListChildren;
1993
- type index$v_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
1994
- declare const index$v_MultiMap: typeof MultiMap;
1995
- type index$v_SortedArray<V> = SortedArray<V>;
1996
- declare const index$v_SortedArray: typeof SortedArray;
1997
- type index$v_SortedSet<V> = SortedSet<V>;
1998
- declare const index$v_SortedSet: typeof SortedSet;
1999
- type index$v_StringHashDictionary<K extends OpaqueHash, V> = StringHashDictionary<K, V>;
2000
- declare const index$v_StringHashDictionary: typeof StringHashDictionary;
2001
- type index$v_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
2002
- declare const index$v_TruncatedHashDictionary: typeof TruncatedHashDictionary;
2003
- declare const index$v_asKnownSize: typeof asKnownSize;
2004
- declare const index$v_bytesAsU48: typeof bytesAsU48;
2005
- declare namespace index$v {
2006
- 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 };
2007
- 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 };
2008
- }
2009
-
2010
1822
  declare namespace bandersnatch_d_exports {
2011
- export { batch_verify_tickets, __wbg_init$2 as default, derive_public_key, initSync$2 as initSync, ring_commitment, verify_seal };
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 };
2012
1824
  export type { InitInput$2 as InitInput, InitOutput$2 as InitOutput, SyncInitInput$2 as SyncInitInput };
2013
1825
  }
2014
1826
  /* tslint:disable */
2015
1827
  /* eslint-disable */
2016
1828
  /**
2017
- * Generate ring commitment given concatenation of ring keys.
1829
+ * Compute VRF output hash from a secret seed and input data.
1830
+ *
1831
+ * This function derives a deterministic VRF output hash without generating a proof.
1832
+ * Unlike `generate_seal`, this produces only the output hash, not a verifiable signature.
1833
+ *
1834
+ * # Arguments
1835
+ * * `secret_seed` - Seed used to derive the secret key
1836
+ * * `input` - VRF input data to be hashed
1837
+ *
1838
+ * # Returns
1839
+ * A byte vector with the following format:
1840
+ * - On success (33 bytes):
1841
+ * - Byte 0: Status code `0` (RESULT_OK)
1842
+ * - Bytes 1-32: VRF output hash (32 bytes)
1843
+ * - On error (1 byte):
1844
+ * - Byte 0: Status code `1` (RESULT_ERR)
1845
+ *
1846
+ * Returns an error if the input cannot be converted to a valid VRF input point.
2018
1847
  */
2019
- declare function ring_commitment(keys: Uint8Array): Uint8Array;
1848
+ declare function vrf_output_hash(secret_seed: Uint8Array, input: Uint8Array): Uint8Array;
2020
1849
  /**
2021
- * Derive Private and Public Key from Seed
1850
+ * Verify multiple tickets at once as defined in:
1851
+ * https://graypaper.fluffylabs.dev/#/68eaa1f/0f3e000f3e00?v=0.6.4
2022
1852
  *
2023
- * returns: `Vec<u8>` containing the exit (1 byte) status followed by the (32 bytes) public key
1853
+ * NOTE: the aux_data of VRF function is empty!
2024
1854
  */
2025
- declare function derive_public_key(seed: Uint8Array): Uint8Array;
1855
+ declare function batch_verify_tickets(ring_size: number, commitment: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
1856
+ /**
1857
+ * Generate ring commitment given concatenation of ring keys.
1858
+ */
1859
+ declare function ring_commitment(keys: Uint8Array): Uint8Array;
2026
1860
  /**
2027
1861
  * Seal verification as defined in:
2028
1862
  * https://graypaper.fluffylabs.dev/#/68eaa1f/0eff000eff00?v=0.6.4
@@ -2031,19 +1865,41 @@ declare function derive_public_key(seed: Uint8Array): Uint8Array;
2031
1865
  */
2032
1866
  declare function verify_seal(signer_key: Uint8Array, seal_data: Uint8Array, payload: Uint8Array, aux_data: Uint8Array): Uint8Array;
2033
1867
  /**
2034
- * Verify multiple tickets at once as defined in:
2035
- * https://graypaper.fluffylabs.dev/#/68eaa1f/0f3e000f3e00?v=0.6.4
1868
+ * Generate seal that is verifiable using `verify_seal` function.
2036
1869
  *
2037
- * NOTE: the aux_data of VRF function is empty!
1870
+ * # Arguments
1871
+ * * `secret_seed` - Seed used to derive the secret key
1872
+ * * `input` - VRF input data
1873
+ * * `aux_data` - Auxiliary data for the VRF proof
1874
+ *
1875
+ * # Returns
1876
+ * A byte vector with the following format:
1877
+ * - On success (97 bytes):
1878
+ * - Byte 0: Status code `0` (RESULT_OK)
1879
+ * - Bytes 1-32: Serialized VRF output (32 bytes, compressed) NOTE: not output hash!
1880
+ * - Bytes 33-96: Serialized IETF VRF proof (64 bytes, compressed)
1881
+ * - On error (1 byte):
1882
+ * - Byte 0: Status code `1` (RESULT_ERR)
1883
+ *
1884
+ * Returns an error if the input cannot be converted to a valid VRF input point
1885
+ * or if serialization of the output or proof fails.
2038
1886
  */
2039
- declare function batch_verify_tickets(ring_size: number, commitment: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
1887
+ declare function generate_seal(secret_seed: Uint8Array, input: Uint8Array, aux_data: Uint8Array): Uint8Array;
1888
+ /**
1889
+ * Derive Private and Public Key from Seed
1890
+ *
1891
+ * returns: `Vec<u8>` containing the exit (1 byte) status followed by the (32 bytes) public key
1892
+ */
1893
+ declare function derive_public_key(seed: Uint8Array): Uint8Array;
2040
1894
  type InitInput$2 = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2041
1895
  interface InitOutput$2 {
2042
1896
  readonly memory: WebAssembly.Memory;
2043
- readonly ring_commitment: (a: number, b: number) => [number, number];
1897
+ readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2044
1898
  readonly derive_public_key: (a: number, b: number) => [number, number];
1899
+ readonly generate_seal: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1900
+ readonly ring_commitment: (a: number, b: number) => [number, number];
2045
1901
  readonly verify_seal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
2046
- readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1902
+ readonly vrf_output_hash: (a: number, b: number, c: number, d: number) => [number, number];
2047
1903
  readonly __wbindgen_export_0: WebAssembly.Table;
2048
1904
  readonly __wbindgen_malloc: (a: number, b: number) => number;
2049
1905
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -2268,34 +2124,6 @@ declare namespace keyDerivation {
2268
2124
  export type { keyDerivation_BandersnatchSecretSeed as BandersnatchSecretSeed, keyDerivation_Ed25519SecretSeed as Ed25519SecretSeed, keyDerivation_KeySeed as KeySeed, keyDerivation_SEED_SIZE as SEED_SIZE };
2269
2125
  }
2270
2126
 
2271
- type index$u_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
2272
- type index$u_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
2273
- type index$u_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
2274
- type index$u_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
2275
- type index$u_BLS_KEY_BYTES = BLS_KEY_BYTES;
2276
- type index$u_BandersnatchKey = BandersnatchKey;
2277
- type index$u_BandersnatchProof = BandersnatchProof;
2278
- type index$u_BandersnatchRingRoot = BandersnatchRingRoot;
2279
- type index$u_BandersnatchSecretSeed = BandersnatchSecretSeed;
2280
- type index$u_BandersnatchVrfSignature = BandersnatchVrfSignature;
2281
- type index$u_BlsKey = BlsKey;
2282
- type index$u_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
2283
- type index$u_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
2284
- type index$u_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
2285
- type index$u_Ed25519Key = Ed25519Key;
2286
- type index$u_Ed25519Pair = Ed25519Pair;
2287
- declare const index$u_Ed25519Pair: typeof Ed25519Pair;
2288
- type index$u_Ed25519SecretSeed = Ed25519SecretSeed;
2289
- type index$u_Ed25519Signature = Ed25519Signature;
2290
- type index$u_SEED_SIZE = SEED_SIZE;
2291
- declare const index$u_bandersnatch: typeof bandersnatch;
2292
- declare const index$u_ed25519: typeof ed25519;
2293
- declare const index$u_keyDerivation: typeof keyDerivation;
2294
- declare namespace index$u {
2295
- 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 };
2296
- 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 };
2297
- }
2298
-
2299
2127
  /**
2300
2128
  * Estimated number of validators.
2301
2129
  *
@@ -2422,27 +2250,6 @@ declare enum PvmBackend {
2422
2250
  Ananas = 1
2423
2251
  }
2424
2252
 
2425
- type index$t_Bootnode = Bootnode;
2426
- declare const index$t_Bootnode: typeof Bootnode;
2427
- type index$t_ChainSpec = ChainSpec;
2428
- declare const index$t_ChainSpec: typeof ChainSpec;
2429
- declare const index$t_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
2430
- declare const index$t_EST_CORES: typeof EST_CORES;
2431
- declare const index$t_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
2432
- declare const index$t_EST_VALIDATORS: typeof EST_VALIDATORS;
2433
- declare const index$t_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
2434
- type index$t_PeerAddress = PeerAddress;
2435
- type index$t_PeerId = PeerId;
2436
- type index$t_PvmBackend = PvmBackend;
2437
- declare const index$t_PvmBackend: typeof PvmBackend;
2438
- declare const index$t_PvmBackendNames: typeof PvmBackendNames;
2439
- declare const index$t_fullChainSpec: typeof fullChainSpec;
2440
- declare const index$t_tinyChainSpec: typeof tinyChainSpec;
2441
- declare namespace index$t {
2442
- 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 };
2443
- export type { index$t_PeerAddress as PeerAddress, index$t_PeerId as PeerId };
2444
- }
2445
-
2446
2253
  /**
2447
2254
  * Time slot index.
2448
2255
  *
@@ -2693,7 +2500,7 @@ declare const encodeUnsealedHeader: (view: HeaderView) => BytesBlob;
2693
2500
  /**
2694
2501
  * The header of the JAM block.
2695
2502
  *
2696
- * https://graypaper.fluffylabs.dev/#/579bd12/0c66000c7200
2503
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/0c66000c7200?v=0.7.2
2697
2504
  */
2698
2505
  declare class Header extends WithDebug {
2699
2506
  static Codec: Descriptor<Header & CodecRecord<Header>, ViewOf<Header & CodecRecord<Header>, {
@@ -2715,9 +2522,9 @@ declare class Header extends WithDebug {
2715
2522
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2716
2523
  }>>>;
2717
2524
  }> | null>;
2718
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2719
2525
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2720
2526
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2527
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2721
2528
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2722
2529
  }>>;
2723
2530
  static create(h: CodecRecord<Header>): Header & CodecRecord<Header>;
@@ -2726,35 +2533,35 @@ declare class Header extends WithDebug {
2726
2533
  *
2727
2534
  * In case of the genesis block, the hash will be zero.
2728
2535
  */
2729
- parentHeaderHash: HeaderHash;
2536
+ readonly parentHeaderHash: HeaderHash;
2730
2537
  /** `H_r`: The state trie root hash before executing that block. */
2731
- priorStateRoot: StateRootHash;
2538
+ readonly priorStateRoot: StateRootHash;
2732
2539
  /** `H_x`: The hash of block extrinsic. */
2733
- extrinsicHash: ExtrinsicHash;
2540
+ readonly extrinsicHash: ExtrinsicHash;
2734
2541
  /** `H_t`: JAM time-slot index. */
2735
- timeSlotIndex: TimeSlot;
2542
+ readonly timeSlotIndex: TimeSlot;
2736
2543
  /**
2737
2544
  * `H_e`: Key and entropy relevant to the following epoch in case the ticket
2738
2545
  * contest does not complete adequately.
2739
2546
  */
2740
- epochMarker: EpochMarker | null;
2547
+ readonly epochMarker: EpochMarker | null;
2741
2548
  /**
2742
2549
  * `H_w`: Winning tickets provides the series of 600 slot sealing "tickets"
2743
2550
  * for the next epoch.
2744
2551
  */
2745
- ticketsMarker: TicketsMarker | null;
2552
+ readonly ticketsMarker: TicketsMarker | null;
2746
2553
  /** `H_i`: Block author's index in the current validator set. */
2747
- bandersnatchBlockAuthorIndex: ValidatorIndex;
2554
+ readonly bandersnatchBlockAuthorIndex: ValidatorIndex;
2748
2555
  /** `H_v`: Entropy-yielding VRF signature. */
2749
- entropySource: BandersnatchVrfSignature;
2556
+ readonly entropySource: BandersnatchVrfSignature;
2750
2557
  /** `H_o`: Sequence of keys of newly misbehaving validators. */
2751
- offendersMarker: Ed25519Key[];
2558
+ readonly offendersMarker: Ed25519Key[];
2752
2559
  /**
2753
2560
  * `H_s`: Block seal.
2754
2561
  *
2755
2562
  * https://graypaper.fluffylabs.dev/#/579bd12/0d0c010d1101
2756
2563
  */
2757
- seal: BandersnatchVrfSignature;
2564
+ readonly seal: BandersnatchVrfSignature;
2758
2565
  private constructor();
2759
2566
  /** Create an empty header with some dummy values. */
2760
2567
  static empty(): Header;
@@ -2781,9 +2588,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2781
2588
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2782
2589
  }>>>;
2783
2590
  }> | null>;
2784
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2785
2591
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2786
2592
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2593
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2787
2594
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2788
2595
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
2789
2596
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2804,9 +2611,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2804
2611
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2805
2612
  }>>>;
2806
2613
  }> | null>;
2807
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2808
2614
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2809
2615
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2616
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2810
2617
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2811
2618
  }>>, {
2812
2619
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2829,9 +2636,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2829
2636
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2830
2637
  }>>>;
2831
2638
  }> | null>;
2832
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2833
2639
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2834
2640
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2641
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2835
2642
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2836
2643
  }>, ViewOf<Header & CodecRecord<Header>, {
2837
2644
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2852,9 +2659,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2852
2659
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2853
2660
  }>>>;
2854
2661
  }> | null>;
2855
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2856
2662
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2857
2663
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2664
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2858
2665
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2859
2666
  }>>;
2860
2667
  }>>;
@@ -3045,13 +2852,29 @@ declare enum WorkExecResultKind {
3045
2852
  /** `BIG`: the code was too big (beyond the maximum allowed size `W_C`) */
3046
2853
  codeOversize = 6
3047
2854
  }
2855
+ type WorkExecResultUnion = {
2856
+ kind: WorkExecResultKind.ok;
2857
+ okBlob: BytesBlob;
2858
+ } | {
2859
+ kind: WorkExecResultKind.outOfGas;
2860
+ } | {
2861
+ kind: WorkExecResultKind.panic;
2862
+ } | {
2863
+ kind: WorkExecResultKind.incorrectNumberOfExports;
2864
+ } | {
2865
+ kind: WorkExecResultKind.digestTooBig;
2866
+ } | {
2867
+ kind: WorkExecResultKind.badCode;
2868
+ } | {
2869
+ kind: WorkExecResultKind.codeOversize;
2870
+ };
3048
2871
  /** The execution result of some work-package. */
3049
2872
  declare class WorkExecResult extends WithDebug {
3050
2873
  /** The execution result tag. */
3051
2874
  readonly kind: WorkExecResultKind;
3052
2875
  /** Optional octet sequence - available only if `kind === ok` */
3053
2876
  readonly okBlob: BytesBlob | null;
3054
- static Codec: Descriptor<WorkExecResult, WorkExecResult>;
2877
+ static Codec: Descriptor<WorkExecResult, WorkExecResultUnion>;
3055
2878
  constructor(
3056
2879
  /** The execution result tag. */
3057
2880
  kind: WorkExecResultKind,
@@ -3126,7 +2949,7 @@ declare class WorkResult {
3126
2949
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3127
2950
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3128
2951
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3129
- result: Descriptor<WorkExecResult, WorkExecResult>;
2952
+ result: Descriptor<WorkExecResult, WorkExecResultUnion>;
3130
2953
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3131
2954
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3132
2955
  importedSegments: Descriptor<U32, U32>;
@@ -3290,7 +3113,7 @@ declare function workItemExtrinsicsCodec(workItems: WorkItem[]): Descriptor<read
3290
3113
  /**
3291
3114
  * Work Item which is a part of some work package.
3292
3115
  *
3293
- * https://graypaper.fluffylabs.dev/#/579bd12/198b00199600
3116
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/1a86001a9100?v=0.7.2
3294
3117
  */
3295
3118
  declare class WorkItem extends WithDebug {
3296
3119
  /** `s`: related service */
@@ -3457,16 +3280,16 @@ declare class WorkPackageSpec extends WithDebug {
3457
3280
  /**
3458
3281
  * A report of execution of some work package.
3459
3282
  *
3460
- * https://graypaper.fluffylabs.dev/#/cc517d7/131c01132401?v=0.6.5
3283
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/13bb0113c301?v=0.7.2
3461
3284
  */
3462
- declare class WorkReportNoCodec extends WithDebug {
3285
+ declare class WorkReport extends WithDebug {
3463
3286
  /** `s`: Work package specification. */
3464
3287
  readonly workPackageSpec: WorkPackageSpec;
3465
- /** `x`: Refinement context. */
3288
+ /** `c`: Refinement context. */
3466
3289
  readonly context: RefineContext;
3467
- /** `c`: Core index on which the work is done. */
3290
+ /** *`c`*: Core index on which the work is done. */
3468
3291
  readonly coreIndex: CoreIndex;
3469
- /** `a`: Hash of the authorizer. */
3292
+ /** *`a`*: Hash of the authorizer. */
3470
3293
  readonly authorizerHash: AuthorizerHash;
3471
3294
  /** `o`: Authorization output. */
3472
3295
  readonly authorizationOutput: BytesBlob;
@@ -3477,17 +3300,71 @@ declare class WorkReportNoCodec extends WithDebug {
3477
3300
  readonly segmentRootLookup: readonly WorkPackageInfo[];
3478
3301
  /** `r`: The results of evaluation of each of the items in the work package. */
3479
3302
  readonly results: FixedSizeArray<WorkResult, WorkItemsCount>;
3480
- /** `g`: Gas used during authorization. */
3303
+ /** *`g`*: Gas used during authorization. */
3481
3304
  readonly authorizationGasUsed: ServiceGas;
3482
- static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReportNoCodec>): WorkReportNoCodec;
3305
+ static Codec: Descriptor<WorkReport, ViewOf<WorkReport, {
3306
+ workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3307
+ hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3308
+ length: Descriptor<U32, Bytes<4>>;
3309
+ erasureRoot: Descriptor<Bytes<32>, Bytes<32>>;
3310
+ exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3311
+ exportsCount: Descriptor<U16, Bytes<2>>;
3312
+ }>>;
3313
+ context: Descriptor<RefineContext, ViewOf<RefineContext, {
3314
+ anchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3315
+ stateRoot: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
3316
+ beefyRoot: Descriptor<Bytes<32> & WithOpaque<"BeefyHash">, Bytes<32>>;
3317
+ lookupAnchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3318
+ lookupAnchorSlot: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">, Bytes<4>>;
3319
+ prerequisites: Descriptor<(Bytes<32> & WithOpaque<"WorkPackageHash">)[], SequenceView<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>>;
3320
+ }>>;
3321
+ coreIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"CoreIndex[u16]">, U32>;
3322
+ authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
3323
+ authorizationGasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3324
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
3325
+ segmentRootLookup: Descriptor<readonly WorkPackageInfo[], SequenceView<WorkPackageInfo, ViewOf<WorkPackageInfo, {
3326
+ workPackageHash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3327
+ segmentTreeRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3328
+ }>>>;
3329
+ results: Descriptor<FixedSizeArray<WorkResult, U8>, SequenceView<WorkResult, ViewOf<WorkResult, {
3330
+ serviceId: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">, Bytes<4>>;
3331
+ codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3332
+ payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3333
+ gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3334
+ result: Descriptor<WorkExecResult, {
3335
+ kind: WorkExecResultKind.ok;
3336
+ okBlob: BytesBlob;
3337
+ } | {
3338
+ kind: WorkExecResultKind.outOfGas;
3339
+ } | {
3340
+ kind: WorkExecResultKind.panic;
3341
+ } | {
3342
+ kind: WorkExecResultKind.incorrectNumberOfExports;
3343
+ } | {
3344
+ kind: WorkExecResultKind.digestTooBig;
3345
+ } | {
3346
+ kind: WorkExecResultKind.badCode;
3347
+ } | {
3348
+ kind: WorkExecResultKind.codeOversize;
3349
+ }>;
3350
+ load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3351
+ gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3352
+ importedSegments: Descriptor<U32, U32>;
3353
+ extrinsicCount: Descriptor<U32, U32>;
3354
+ extrinsicSize: Descriptor<U32, U32>;
3355
+ exportedSegments: Descriptor<U32, U32>;
3356
+ }>>;
3357
+ }>>>;
3358
+ }>>;
3359
+ static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReport>): WorkReport;
3483
3360
  protected constructor(
3484
3361
  /** `s`: Work package specification. */
3485
3362
  workPackageSpec: WorkPackageSpec,
3486
- /** `x`: Refinement context. */
3363
+ /** `c`: Refinement context. */
3487
3364
  context: RefineContext,
3488
- /** `c`: Core index on which the work is done. */
3365
+ /** *`c`*: Core index on which the work is done. */
3489
3366
  coreIndex: CoreIndex,
3490
- /** `a`: Hash of the authorizer. */
3367
+ /** *`a`*: Hash of the authorizer. */
3491
3368
  authorizerHash: AuthorizerHash,
3492
3369
  /** `o`: Authorization output. */
3493
3370
  authorizationOutput: BytesBlob,
@@ -3498,63 +3375,18 @@ declare class WorkReportNoCodec extends WithDebug {
3498
3375
  segmentRootLookup: readonly WorkPackageInfo[],
3499
3376
  /** `r`: The results of evaluation of each of the items in the work package. */
3500
3377
  results: FixedSizeArray<WorkResult, WorkItemsCount>,
3501
- /** `g`: Gas used during authorization. */
3378
+ /** *`g`*: Gas used during authorization. */
3502
3379
  authorizationGasUsed: ServiceGas);
3503
3380
  }
3504
- declare const WorkReportCodec: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3505
- workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3506
- hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3507
- length: Descriptor<U32, Bytes<4>>;
3508
- erasureRoot: Descriptor<Bytes<32>, Bytes<32>>;
3509
- exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3510
- exportsCount: Descriptor<U16, Bytes<2>>;
3511
- }>>;
3512
- context: Descriptor<RefineContext, ViewOf<RefineContext, {
3513
- anchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3514
- stateRoot: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
3515
- beefyRoot: Descriptor<Bytes<32> & WithOpaque<"BeefyHash">, Bytes<32>>;
3516
- lookupAnchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3517
- lookupAnchorSlot: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">, Bytes<4>>;
3518
- prerequisites: Descriptor<(Bytes<32> & WithOpaque<"WorkPackageHash">)[], SequenceView<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>>;
3519
- }>>;
3520
- coreIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"CoreIndex[u16]">, U32>;
3521
- authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
3522
- authorizationGasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3523
- authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
3524
- segmentRootLookup: Descriptor<readonly WorkPackageInfo[], SequenceView<WorkPackageInfo, ViewOf<WorkPackageInfo, {
3525
- workPackageHash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3526
- segmentTreeRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3527
- }>>>;
3528
- results: Descriptor<FixedSizeArray<WorkResult, U8>, SequenceView<WorkResult, ViewOf<WorkResult, {
3529
- serviceId: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">, Bytes<4>>;
3530
- codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3531
- payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3532
- gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3533
- result: Descriptor<WorkExecResult, WorkExecResult>;
3534
- load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3535
- gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3536
- importedSegments: Descriptor<U32, U32>;
3537
- extrinsicCount: Descriptor<U32, U32>;
3538
- extrinsicSize: Descriptor<U32, U32>;
3539
- exportedSegments: Descriptor<U32, U32>;
3540
- }>>;
3541
- }>>>;
3542
- }>>;
3543
- declare class WorkReport extends WorkReportNoCodec {
3544
- static Codec: typeof WorkReportCodec;
3545
- }
3546
3381
 
3547
3382
  type workReport_WorkPackageSpec = WorkPackageSpec;
3548
3383
  declare const workReport_WorkPackageSpec: typeof WorkPackageSpec;
3549
3384
  type workReport_WorkReport = WorkReport;
3550
3385
  declare const workReport_WorkReport: typeof WorkReport;
3551
- type workReport_WorkReportNoCodec = WorkReportNoCodec;
3552
- declare const workReport_WorkReportNoCodec: typeof WorkReportNoCodec;
3553
3386
  declare namespace workReport {
3554
3387
  export {
3555
3388
  workReport_WorkPackageSpec as WorkPackageSpec,
3556
3389
  workReport_WorkReport as WorkReport,
3557
- workReport_WorkReportNoCodec as WorkReportNoCodec,
3558
3390
  };
3559
3391
  }
3560
3392
 
@@ -3566,7 +3398,7 @@ declare namespace workReport {
3566
3398
  * Since GP defines that value explicitly as "two or three",
3567
3399
  * we do that as well.
3568
3400
  *
3569
- * https://graypaper.fluffylabs.dev/#/579bd12/14b90214bb02
3401
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/152b01152d01?v=0.7.2
3570
3402
  */
3571
3403
  type REQUIRED_CREDENTIALS = 2 | 3;
3572
3404
  declare const REQUIRED_CREDENTIALS_RANGE: number[];
@@ -3586,7 +3418,7 @@ declare class Credential extends WithDebug {
3586
3418
  /**
3587
3419
  * Tuple of work-report, a credential and it's corresponding timeslot.
3588
3420
  *
3589
- * https://graypaper.fluffylabs.dev/#/579bd12/147102149102
3421
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/15df00150301?v=0.7.2
3590
3422
  */
3591
3423
  declare class ReportGuarantee extends WithDebug {
3592
3424
  /** The work-report being guaranteed. */
@@ -3598,11 +3430,11 @@ declare class ReportGuarantee extends WithDebug {
3598
3430
  * validator index and a signature.
3599
3431
  * Credentials must be ordered by their validator index.
3600
3432
  *
3601
- * https://graypaper.fluffylabs.dev/#/579bd12/14b90214bb02
3433
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/152b01152d01?v=0.7.2
3602
3434
  */
3603
3435
  readonly credentials: KnownSizeArray<Credential, `${REQUIRED_CREDENTIALS}`>;
3604
3436
  static Codec: Descriptor<ReportGuarantee, ViewOf<ReportGuarantee, {
3605
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3437
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3606
3438
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3607
3439
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3608
3440
  length: Descriptor<U32, Bytes<4>>;
@@ -3631,7 +3463,22 @@ declare class ReportGuarantee extends WithDebug {
3631
3463
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3632
3464
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3633
3465
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3634
- result: Descriptor<WorkExecResult, WorkExecResult>;
3466
+ result: Descriptor<WorkExecResult, {
3467
+ kind: WorkExecResultKind.ok;
3468
+ okBlob: BytesBlob;
3469
+ } | {
3470
+ kind: WorkExecResultKind.outOfGas;
3471
+ } | {
3472
+ kind: WorkExecResultKind.panic;
3473
+ } | {
3474
+ kind: WorkExecResultKind.incorrectNumberOfExports;
3475
+ } | {
3476
+ kind: WorkExecResultKind.digestTooBig;
3477
+ } | {
3478
+ kind: WorkExecResultKind.badCode;
3479
+ } | {
3480
+ kind: WorkExecResultKind.codeOversize;
3481
+ }>;
3635
3482
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3636
3483
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3637
3484
  importedSegments: Descriptor<U32, U32>;
@@ -3657,11 +3504,11 @@ declare const GuaranteesExtrinsicBounds = "[0..CoresCount)";
3657
3504
  * Each core index (within work-report) must be unique and guarantees
3658
3505
  * must be in ascending order of this.
3659
3506
  *
3660
- * https://graypaper.fluffylabs.dev/#/579bd12/146402146702
3507
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/15d10015d400?v=0.7.2
3661
3508
  */
3662
3509
  type GuaranteesExtrinsic = KnownSizeArray<ReportGuarantee, typeof GuaranteesExtrinsicBounds>;
3663
3510
  declare const guaranteesExtrinsicCodec: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3664
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3511
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3665
3512
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3666
3513
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3667
3514
  length: Descriptor<U32, Bytes<4>>;
@@ -3690,7 +3537,22 @@ declare const guaranteesExtrinsicCodec: Descriptor<readonly ReportGuarantee[] &
3690
3537
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3691
3538
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3692
3539
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3693
- result: Descriptor<WorkExecResult, WorkExecResult>;
3540
+ result: Descriptor<WorkExecResult, {
3541
+ kind: WorkExecResultKind.ok;
3542
+ okBlob: BytesBlob;
3543
+ } | {
3544
+ kind: WorkExecResultKind.outOfGas;
3545
+ } | {
3546
+ kind: WorkExecResultKind.panic;
3547
+ } | {
3548
+ kind: WorkExecResultKind.incorrectNumberOfExports;
3549
+ } | {
3550
+ kind: WorkExecResultKind.digestTooBig;
3551
+ } | {
3552
+ kind: WorkExecResultKind.badCode;
3553
+ } | {
3554
+ kind: WorkExecResultKind.codeOversize;
3555
+ }>;
3694
3556
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3695
3557
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3696
3558
  importedSegments: Descriptor<U32, U32>;
@@ -3806,7 +3668,7 @@ declare class Extrinsic extends WithDebug {
3806
3668
  blob: Descriptor<BytesBlob, BytesBlob>;
3807
3669
  }>>>;
3808
3670
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3809
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3671
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3810
3672
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3811
3673
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3812
3674
  length: Descriptor<U32, Bytes<4>>;
@@ -3835,7 +3697,22 @@ declare class Extrinsic extends WithDebug {
3835
3697
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3836
3698
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3837
3699
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3838
- result: Descriptor<WorkExecResult, WorkExecResult>;
3700
+ result: Descriptor<WorkExecResult, {
3701
+ kind: WorkExecResultKind.ok;
3702
+ okBlob: BytesBlob;
3703
+ } | {
3704
+ kind: WorkExecResultKind.outOfGas;
3705
+ } | {
3706
+ kind: WorkExecResultKind.panic;
3707
+ } | {
3708
+ kind: WorkExecResultKind.incorrectNumberOfExports;
3709
+ } | {
3710
+ kind: WorkExecResultKind.digestTooBig;
3711
+ } | {
3712
+ kind: WorkExecResultKind.badCode;
3713
+ } | {
3714
+ kind: WorkExecResultKind.codeOversize;
3715
+ }>;
3839
3716
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3840
3717
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3841
3718
  importedSegments: Descriptor<U32, U32>;
@@ -3916,9 +3793,9 @@ declare class Block extends WithDebug {
3916
3793
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
3917
3794
  }>>>;
3918
3795
  }> | null>;
3919
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3920
3796
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
3921
3797
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3798
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3922
3799
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3923
3800
  }>>;
3924
3801
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -3931,7 +3808,7 @@ declare class Block extends WithDebug {
3931
3808
  blob: Descriptor<BytesBlob, BytesBlob>;
3932
3809
  }>>>;
3933
3810
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3934
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3811
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3935
3812
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3936
3813
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3937
3814
  length: Descriptor<U32, Bytes<4>>;
@@ -3960,7 +3837,22 @@ declare class Block extends WithDebug {
3960
3837
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3961
3838
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3962
3839
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3963
- result: Descriptor<WorkExecResult, WorkExecResult>;
3840
+ result: Descriptor<WorkExecResult, {
3841
+ kind: WorkExecResultKind.ok;
3842
+ okBlob: BytesBlob;
3843
+ } | {
3844
+ kind: WorkExecResultKind.outOfGas;
3845
+ } | {
3846
+ kind: WorkExecResultKind.panic;
3847
+ } | {
3848
+ kind: WorkExecResultKind.incorrectNumberOfExports;
3849
+ } | {
3850
+ kind: WorkExecResultKind.digestTooBig;
3851
+ } | {
3852
+ kind: WorkExecResultKind.badCode;
3853
+ } | {
3854
+ kind: WorkExecResultKind.codeOversize;
3855
+ }>;
3964
3856
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3965
3857
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3966
3858
  importedSegments: Descriptor<U32, U32>;
@@ -4050,72 +3942,81 @@ declare namespace codecUtils {
4050
3942
  */
4051
3943
  declare function reencodeAsView<T, V>(codec: Descriptor<T, V>, object: T, chainSpec?: ChainSpec): V;
4052
3944
 
4053
- type index$s_Block = Block;
4054
- declare const index$s_Block: typeof Block;
4055
- type index$s_BlockView = BlockView;
4056
- type index$s_CodeHash = CodeHash;
4057
- type index$s_CoreIndex = CoreIndex;
4058
- type index$s_EntropyHash = EntropyHash;
4059
- type index$s_Epoch = Epoch;
4060
- type index$s_EpochMarker = EpochMarker;
4061
- declare const index$s_EpochMarker: typeof EpochMarker;
4062
- type index$s_EpochMarkerView = EpochMarkerView;
4063
- type index$s_Extrinsic = Extrinsic;
4064
- declare const index$s_Extrinsic: typeof Extrinsic;
4065
- type index$s_ExtrinsicHash = ExtrinsicHash;
4066
- type index$s_ExtrinsicView = ExtrinsicView;
4067
- type index$s_Header = Header;
4068
- declare const index$s_Header: typeof Header;
4069
- type index$s_HeaderHash = HeaderHash;
4070
- type index$s_HeaderView = HeaderView;
4071
- declare const index$s_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
4072
- type index$s_PerEpochBlock<T> = PerEpochBlock<T>;
4073
- type index$s_PerValidator<T> = PerValidator<T>;
4074
- type index$s_SEGMENT_BYTES = SEGMENT_BYTES;
4075
- type index$s_Segment = Segment;
4076
- type index$s_SegmentIndex = SegmentIndex;
4077
- type index$s_ServiceGas = ServiceGas;
4078
- type index$s_ServiceId = ServiceId;
4079
- type index$s_StateRootHash = StateRootHash;
4080
- type index$s_TicketsMarker = TicketsMarker;
4081
- declare const index$s_TicketsMarker: typeof TicketsMarker;
4082
- type index$s_TicketsMarkerView = TicketsMarkerView;
4083
- type index$s_TimeSlot = TimeSlot;
4084
- type index$s_ValidatorIndex = ValidatorIndex;
4085
- type index$s_ValidatorKeys = ValidatorKeys;
4086
- declare const index$s_ValidatorKeys: typeof ValidatorKeys;
4087
- declare const index$s_W_E: typeof W_E;
4088
- declare const index$s_W_S: typeof W_S;
4089
- type index$s_WorkReportHash = WorkReportHash;
4090
- declare const index$s_assurances: typeof assurances;
4091
- declare const index$s_codecPerEpochBlock: typeof codecPerEpochBlock;
4092
- declare const index$s_codecPerValidator: typeof codecPerValidator;
4093
- declare const index$s_codecUtils: typeof codecUtils;
4094
- declare const index$s_disputes: typeof disputes;
4095
- declare const index$s_emptyBlock: typeof emptyBlock;
4096
- declare const index$s_encodeUnsealedHeader: typeof encodeUnsealedHeader;
4097
- declare const index$s_guarantees: typeof guarantees;
4098
- declare const index$s_headerViewWithHashCodec: typeof headerViewWithHashCodec;
4099
- declare const index$s_preimage: typeof preimage;
4100
- declare const index$s_reencodeAsView: typeof reencodeAsView;
4101
- declare const index$s_refineContext: typeof refineContext;
4102
- declare const index$s_tickets: typeof tickets;
4103
- declare const index$s_tryAsCoreIndex: typeof tryAsCoreIndex;
4104
- declare const index$s_tryAsEpoch: typeof tryAsEpoch;
4105
- declare const index$s_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
4106
- declare const index$s_tryAsPerValidator: typeof tryAsPerValidator;
4107
- declare const index$s_tryAsSegmentIndex: typeof tryAsSegmentIndex;
4108
- declare const index$s_tryAsServiceGas: typeof tryAsServiceGas;
4109
- declare const index$s_tryAsServiceId: typeof tryAsServiceId;
4110
- declare const index$s_tryAsTimeSlot: typeof tryAsTimeSlot;
4111
- declare const index$s_tryAsValidatorIndex: typeof tryAsValidatorIndex;
4112
- declare const index$s_workItem: typeof workItem;
4113
- declare const index$s_workPackage: typeof workPackage;
4114
- declare const index$s_workReport: typeof workReport;
4115
- declare const index$s_workResult: typeof workResult;
4116
- declare namespace index$s {
4117
- 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 };
4118
- 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 };
4119
4020
  }
4120
4021
 
4121
4022
  /** A type that can be read from a JSON-parsed object. */
@@ -4163,20 +4064,6 @@ declare namespace json {
4163
4064
  /** Given already parsed JSON, parse & validate it further to match the expected `jsonDescription` type. */
4164
4065
  declare function parseFromJson<T>(jsonType: unknown, jsonDescription: FromJson<T>, context?: string): T;
4165
4066
 
4166
- type index$r_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
4167
- type index$r_FromJson<T> = FromJson<T>;
4168
- type index$r_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
4169
- type index$r_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
4170
- type index$r_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
4171
- type index$r_ObjectFromJson<T> = ObjectFromJson<T>;
4172
- type index$r_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
4173
- import index$r_json = json;
4174
- declare const index$r_parseFromJson: typeof parseFromJson;
4175
- declare namespace index$r {
4176
- export { index$r_json as json, index$r_parseFromJson as parseFromJson };
4177
- 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 };
4178
- }
4179
-
4180
4067
  declare const getAssurancesExtrinsicFromJson: (ctx: ChainSpec) => ["array", FromJsonWithParser<unknown, AvailabilityAssurance> | FromJsonWithParser<string, AvailabilityAssurance> | FromJsonWithParser<number, AvailabilityAssurance> | ObjectFromJson<AvailabilityAssurance> | FromJsonOptional<AvailabilityAssurance> | Parser<unknown, AvailabilityAssurance[]>];
4181
4068
 
4182
4069
  declare const blockFromJson: (spec: ChainSpec) => FromJsonWithParser<unknown, Block>;
@@ -4219,23 +4106,211 @@ declare const workReportFromJson: FromJsonWithParser<unknown, WorkReport>;
4219
4106
 
4220
4107
  declare const workResultFromJson: FromJsonWithParser<unknown, WorkResult>;
4221
4108
 
4222
- type index$q_JsonObject<T> = JsonObject<T>;
4223
- declare const index$q_blockFromJson: typeof blockFromJson;
4224
- declare const index$q_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
4225
- import index$q_fromJson = fromJson;
4226
- declare const index$q_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
4227
- declare const index$q_getExtrinsicFromJson: typeof getExtrinsicFromJson;
4228
- declare const index$q_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
4229
- declare const index$q_headerFromJson: typeof headerFromJson;
4230
- declare const index$q_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
4231
- declare const index$q_refineContextFromJson: typeof refineContextFromJson;
4232
- declare const index$q_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
4233
- declare const index$q_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
4234
- declare const index$q_workReportFromJson: typeof workReportFromJson;
4235
- declare const index$q_workResultFromJson: typeof workResultFromJson;
4236
- declare namespace index$q {
4237
- 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 };
4238
- 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 };
4239
4314
  }
4240
4315
 
4241
4316
  declare function parseBootnode(v: string): Bootnode;
@@ -4273,10 +4348,8 @@ declare class JipChainSpec extends WithDebug {
4273
4348
 
4274
4349
  /** Block authorship options. */
4275
4350
  declare class AuthorshipOptions {
4276
- /** Use fake seal verification instead of running bandersnatch. */
4277
- readonly omitSealVerification: boolean;
4278
4351
  static fromJson: FromJsonWithParser<unknown, AuthorshipOptions>;
4279
- static new({ omit_seal_verification }: JsonObject<AuthorshipOptions>): AuthorshipOptions;
4352
+ static new(): AuthorshipOptions;
4280
4353
  private constructor();
4281
4354
  }
4282
4355
 
@@ -4311,32 +4384,78 @@ declare class NodeConfiguration {
4311
4384
  }
4312
4385
  declare function loadConfig(config: string[], withRelPath: (p: string) => string): NodeConfiguration;
4313
4386
 
4314
- declare const index$p_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
4315
- declare const index$p_DEV_CONFIG: typeof DEV_CONFIG;
4316
- type index$p_JipChainSpec = JipChainSpec;
4317
- declare const index$p_JipChainSpec: typeof JipChainSpec;
4318
- type index$p_KnownChainSpec = KnownChainSpec;
4319
- declare const index$p_KnownChainSpec: typeof KnownChainSpec;
4320
- declare const index$p_NODE_DEFAULTS: typeof NODE_DEFAULTS;
4321
- type index$p_NodeConfiguration = NodeConfiguration;
4322
- declare const index$p_NodeConfiguration: typeof NodeConfiguration;
4323
- declare const index$p_knownChainSpecFromJson: typeof knownChainSpecFromJson;
4324
- declare const index$p_loadConfig: typeof loadConfig;
4325
- declare const index$p_parseBootnode: typeof parseBootnode;
4326
- 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 {
4327
4409
  export {
4328
- index$p_DEFAULT_CONFIG as DEFAULT_CONFIG,
4329
- index$p_DEV_CONFIG as DEV_CONFIG,
4330
- index$p_JipChainSpec as JipChainSpec,
4331
- index$p_KnownChainSpec as KnownChainSpec,
4332
- index$p_NODE_DEFAULTS as NODE_DEFAULTS,
4333
- index$p_NodeConfiguration as NodeConfiguration,
4334
- index$p_knownChainSpecFromJson as knownChainSpecFromJson,
4335
- index$p_loadConfig as loadConfig,
4336
- 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,
4337
4419
  };
4338
4420
  }
4339
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
+
4340
4459
  /**
4341
4460
  * Blockchain database interface.
4342
4461
  */
@@ -4577,36 +4696,6 @@ declare class InMemoryTrie {
4577
4696
  }
4578
4697
  declare function findSharedPrefix(a: TruncatedStateKey, b: TruncatedStateKey): number;
4579
4698
 
4580
- type index$o_BranchNode = BranchNode;
4581
- declare const index$o_BranchNode: typeof BranchNode;
4582
- type index$o_InMemoryTrie = InMemoryTrie;
4583
- declare const index$o_InMemoryTrie: typeof InMemoryTrie;
4584
- type index$o_InputKey = InputKey;
4585
- type index$o_LeafNode = LeafNode;
4586
- declare const index$o_LeafNode: typeof LeafNode;
4587
- type index$o_NodeType = NodeType;
4588
- declare const index$o_NodeType: typeof NodeType;
4589
- type index$o_NodesDb = NodesDb;
4590
- declare const index$o_NodesDb: typeof NodesDb;
4591
- declare const index$o_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
4592
- declare const index$o_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
4593
- type index$o_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
4594
- type index$o_TrieHasher = TrieHasher;
4595
- type index$o_TrieNode = TrieNode;
4596
- declare const index$o_TrieNode: typeof TrieNode;
4597
- type index$o_TrieNodeHash = TrieNodeHash;
4598
- type index$o_TruncatedStateKey = TruncatedStateKey;
4599
- type index$o_ValueHash = ValueHash;
4600
- type index$o_WriteableNodesDb = WriteableNodesDb;
4601
- declare const index$o_WriteableNodesDb: typeof WriteableNodesDb;
4602
- declare const index$o_findSharedPrefix: typeof findSharedPrefix;
4603
- declare const index$o_leafComparator: typeof leafComparator;
4604
- declare const index$o_parseInputKey: typeof parseInputKey;
4605
- declare namespace index$o {
4606
- 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 };
4607
- 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 };
4608
- }
4609
-
4610
4699
  /**
4611
4700
  *. Binary merkleization for well-balanced trees.
4612
4701
  *
@@ -4658,7 +4747,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4658
4747
  */
4659
4748
  readonly dependencies: KnownSizeArray<WorkPackageHash, `[0..${MAX_REPORT_DEPENDENCIES})`>;
4660
4749
  static Codec: Descriptor<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4661
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4750
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4662
4751
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4663
4752
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4664
4753
  length: Descriptor<U32, Bytes<4>>;
@@ -4687,7 +4776,22 @@ declare class NotYetAccumulatedReport extends WithDebug {
4687
4776
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
4688
4777
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
4689
4778
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
4690
- result: Descriptor<WorkExecResult, WorkExecResult>;
4779
+ result: Descriptor<WorkExecResult, {
4780
+ kind: WorkExecResultKind.ok;
4781
+ okBlob: BytesBlob;
4782
+ } | {
4783
+ kind: WorkExecResultKind.outOfGas;
4784
+ } | {
4785
+ kind: WorkExecResultKind.panic;
4786
+ } | {
4787
+ kind: WorkExecResultKind.incorrectNumberOfExports;
4788
+ } | {
4789
+ kind: WorkExecResultKind.digestTooBig;
4790
+ } | {
4791
+ kind: WorkExecResultKind.badCode;
4792
+ } | {
4793
+ kind: WorkExecResultKind.codeOversize;
4794
+ }>;
4691
4795
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
4692
4796
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
4693
4797
  importedSegments: Descriptor<U32, U32>;
@@ -4707,7 +4811,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4707
4811
  */
4708
4812
  type AccumulationQueue = PerEpochBlock<readonly NotYetAccumulatedReport[]>;
4709
4813
  declare const accumulationQueueCodec: Descriptor<readonly (readonly NotYetAccumulatedReport[])[] & WithOpaque<"EpochLength">, SequenceView<readonly NotYetAccumulatedReport[], SequenceView<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4710
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4814
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4711
4815
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4712
4816
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4713
4817
  length: Descriptor<U32, Bytes<4>>;
@@ -4736,7 +4840,22 @@ declare const accumulationQueueCodec: Descriptor<readonly (readonly NotYetAccumu
4736
4840
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
4737
4841
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
4738
4842
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
4739
- result: Descriptor<WorkExecResult, WorkExecResult>;
4843
+ result: Descriptor<WorkExecResult, {
4844
+ kind: WorkExecResultKind.ok;
4845
+ okBlob: BytesBlob;
4846
+ } | {
4847
+ kind: WorkExecResultKind.outOfGas;
4848
+ } | {
4849
+ kind: WorkExecResultKind.panic;
4850
+ } | {
4851
+ kind: WorkExecResultKind.incorrectNumberOfExports;
4852
+ } | {
4853
+ kind: WorkExecResultKind.digestTooBig;
4854
+ } | {
4855
+ kind: WorkExecResultKind.badCode;
4856
+ } | {
4857
+ kind: WorkExecResultKind.codeOversize;
4858
+ }>;
4740
4859
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
4741
4860
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
4742
4861
  importedSegments: Descriptor<U32, U32>;
@@ -4764,7 +4883,7 @@ declare class AvailabilityAssignment extends WithDebug {
4764
4883
  /** Time slot at which the report becomes obsolete. */
4765
4884
  readonly timeout: TimeSlot;
4766
4885
  static Codec: Descriptor<AvailabilityAssignment, ViewOf<AvailabilityAssignment, {
4767
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4886
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4768
4887
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4769
4888
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4770
4889
  length: Descriptor<U32, Bytes<4>>;
@@ -4793,7 +4912,22 @@ declare class AvailabilityAssignment extends WithDebug {
4793
4912
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
4794
4913
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
4795
4914
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
4796
- result: Descriptor<WorkExecResult, WorkExecResult>;
4915
+ result: Descriptor<WorkExecResult, {
4916
+ kind: WorkExecResultKind.ok;
4917
+ okBlob: BytesBlob;
4918
+ } | {
4919
+ kind: WorkExecResultKind.outOfGas;
4920
+ } | {
4921
+ kind: WorkExecResultKind.panic;
4922
+ } | {
4923
+ kind: WorkExecResultKind.incorrectNumberOfExports;
4924
+ } | {
4925
+ kind: WorkExecResultKind.digestTooBig;
4926
+ } | {
4927
+ kind: WorkExecResultKind.badCode;
4928
+ } | {
4929
+ kind: WorkExecResultKind.codeOversize;
4930
+ }>;
4797
4931
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
4798
4932
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
4799
4933
  importedSegments: Descriptor<U32, U32>;
@@ -4809,7 +4943,7 @@ declare class AvailabilityAssignment extends WithDebug {
4809
4943
  private constructor();
4810
4944
  }
4811
4945
  declare const availabilityAssignmentsCodec: Descriptor<readonly (AvailabilityAssignment | null)[] & WithOpaque<"number of cores">, SequenceView<AvailabilityAssignment | null, ViewOf<AvailabilityAssignment, {
4812
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4946
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4813
4947
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4814
4948
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4815
4949
  length: Descriptor<U32, Bytes<4>>;
@@ -4838,7 +4972,22 @@ declare const availabilityAssignmentsCodec: Descriptor<readonly (AvailabilityAss
4838
4972
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
4839
4973
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
4840
4974
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
4841
- result: Descriptor<WorkExecResult, WorkExecResult>;
4975
+ result: Descriptor<WorkExecResult, {
4976
+ kind: WorkExecResultKind.ok;
4977
+ okBlob: BytesBlob;
4978
+ } | {
4979
+ kind: WorkExecResultKind.outOfGas;
4980
+ } | {
4981
+ kind: WorkExecResultKind.panic;
4982
+ } | {
4983
+ kind: WorkExecResultKind.incorrectNumberOfExports;
4984
+ } | {
4985
+ kind: WorkExecResultKind.digestTooBig;
4986
+ } | {
4987
+ kind: WorkExecResultKind.badCode;
4988
+ } | {
4989
+ kind: WorkExecResultKind.codeOversize;
4990
+ }>;
4842
4991
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
4843
4992
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
4844
4993
  importedSegments: Descriptor<U32, U32>;
@@ -4996,15 +5145,6 @@ declare class MerkleMountainRange<H extends OpaqueHash> {
4996
5145
  getPeaks(): MmrPeaks<H>;
4997
5146
  }
4998
5147
 
4999
- type index$n_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
5000
- declare const index$n_MerkleMountainRange: typeof MerkleMountainRange;
5001
- type index$n_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
5002
- type index$n_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
5003
- declare namespace index$n {
5004
- export { index$n_MerkleMountainRange as MerkleMountainRange };
5005
- export type { index$n_MmrHasher as MmrHasher, index$n_MmrPeaks as MmrPeaks };
5006
- }
5007
-
5008
5148
  /**
5009
5149
  * `H = 8`: The size of recent history, in blocks.
5010
5150
  *
@@ -5305,7 +5445,7 @@ declare class ValidatorStatistics {
5305
5445
  * Single core statistics.
5306
5446
  * Updated per block, based on incoming work reports (`w`).
5307
5447
  *
5308
- * https://graypaper.fluffylabs.dev/#/68eaa1f/18f10318f103?v=0.6.4
5448
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/197902197902?v=0.7.2
5309
5449
  * https://github.com/gavofyork/graypaper/blob/9bffb08f3ea7b67832019176754df4fb36b9557d/text/statistics.tex#L65
5310
5450
  */
5311
5451
  declare class CoreStatistics {
@@ -5343,7 +5483,7 @@ declare class CoreStatistics {
5343
5483
  * Service statistics.
5344
5484
  * Updated per block, based on available work reports (`W`).
5345
5485
  *
5346
- * https://graypaper.fluffylabs.dev/#/1c979cb/199802199802?v=0.7.1
5486
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/19e20219e202?v=0.7.2
5347
5487
  */
5348
5488
  declare class ServiceStatistics {
5349
5489
  /** `p.0` */
@@ -5988,116 +6128,6 @@ type FieldNames<T> = {
5988
6128
  [K in keyof T]: T[K] extends Function ? never : K;
5989
6129
  }[keyof T];
5990
6130
 
5991
- type index$m_AUTHORIZATION_QUEUE_SIZE = AUTHORIZATION_QUEUE_SIZE;
5992
- type index$m_AccumulationOutput = AccumulationOutput;
5993
- declare const index$m_AccumulationOutput: typeof AccumulationOutput;
5994
- type index$m_AccumulationQueue = AccumulationQueue;
5995
- type index$m_AccumulationQueueView = AccumulationQueueView;
5996
- type index$m_AuthorizationPool = AuthorizationPool;
5997
- type index$m_AuthorizationQueue = AuthorizationQueue;
5998
- type index$m_AvailabilityAssignment = AvailabilityAssignment;
5999
- declare const index$m_AvailabilityAssignment: typeof AvailabilityAssignment;
6000
- type index$m_AvailabilityAssignmentsView = AvailabilityAssignmentsView;
6001
- declare const index$m_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
6002
- type index$m_BlockState = BlockState;
6003
- declare const index$m_BlockState: typeof BlockState;
6004
- type index$m_BlocksState = BlocksState;
6005
- type index$m_CoreStatistics = CoreStatistics;
6006
- declare const index$m_CoreStatistics: typeof CoreStatistics;
6007
- type index$m_DisputesRecords = DisputesRecords;
6008
- declare const index$m_DisputesRecords: typeof DisputesRecords;
6009
- declare const index$m_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
6010
- declare const index$m_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
6011
- type index$m_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
6012
- type index$m_EnumerableState = EnumerableState;
6013
- type index$m_InMemoryService = InMemoryService;
6014
- declare const index$m_InMemoryService: typeof InMemoryService;
6015
- type index$m_InMemoryState = InMemoryState;
6016
- declare const index$m_InMemoryState: typeof InMemoryState;
6017
- type index$m_InMemoryStateFields = InMemoryStateFields;
6018
- type index$m_LookupHistoryItem = LookupHistoryItem;
6019
- declare const index$m_LookupHistoryItem: typeof LookupHistoryItem;
6020
- type index$m_LookupHistorySlots = LookupHistorySlots;
6021
- type index$m_MAX_AUTH_POOL_SIZE = MAX_AUTH_POOL_SIZE;
6022
- type index$m_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
6023
- type index$m_NotYetAccumulatedReport = NotYetAccumulatedReport;
6024
- declare const index$m_NotYetAccumulatedReport: typeof NotYetAccumulatedReport;
6025
- type index$m_PerCore<T> = PerCore<T>;
6026
- type index$m_PreimageItem = PreimageItem;
6027
- declare const index$m_PreimageItem: typeof PreimageItem;
6028
- type index$m_PrivilegedServices = PrivilegedServices;
6029
- declare const index$m_PrivilegedServices: typeof PrivilegedServices;
6030
- type index$m_RecentBlocks = RecentBlocks;
6031
- declare const index$m_RecentBlocks: typeof RecentBlocks;
6032
- type index$m_RecentBlocksView = RecentBlocksView;
6033
- type index$m_RecentlyAccumulated = RecentlyAccumulated;
6034
- type index$m_RecentlyAccumulatedView = RecentlyAccumulatedView;
6035
- type index$m_SafroleData = SafroleData;
6036
- declare const index$m_SafroleData: typeof SafroleData;
6037
- type index$m_SafroleDataView = SafroleDataView;
6038
- type index$m_SafroleSealingKeys = SafroleSealingKeys;
6039
- type index$m_SafroleSealingKeysData = SafroleSealingKeysData;
6040
- declare const index$m_SafroleSealingKeysData: typeof SafroleSealingKeysData;
6041
- type index$m_SafroleSealingKeysKind = SafroleSealingKeysKind;
6042
- declare const index$m_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
6043
- type index$m_Service = Service;
6044
- type index$m_ServiceAccountInfo = ServiceAccountInfo;
6045
- declare const index$m_ServiceAccountInfo: typeof ServiceAccountInfo;
6046
- type index$m_ServiceAccountInfoView = ServiceAccountInfoView;
6047
- type index$m_ServiceData = ServiceData;
6048
- type index$m_ServiceEntries = ServiceEntries;
6049
- type index$m_ServiceStatistics = ServiceStatistics;
6050
- declare const index$m_ServiceStatistics: typeof ServiceStatistics;
6051
- type index$m_ServicesUpdate = ServicesUpdate;
6052
- type index$m_State = State;
6053
- type index$m_StateView = StateView;
6054
- type index$m_StatisticsData = StatisticsData;
6055
- declare const index$m_StatisticsData: typeof StatisticsData;
6056
- type index$m_StatisticsDataView = StatisticsDataView;
6057
- type index$m_StorageItem = StorageItem;
6058
- declare const index$m_StorageItem: typeof StorageItem;
6059
- type index$m_StorageKey = StorageKey;
6060
- type index$m_UpdateError = UpdateError;
6061
- declare const index$m_UpdateError: typeof UpdateError;
6062
- type index$m_UpdatePreimage = UpdatePreimage;
6063
- declare const index$m_UpdatePreimage: typeof UpdatePreimage;
6064
- type index$m_UpdatePreimageKind = UpdatePreimageKind;
6065
- declare const index$m_UpdatePreimageKind: typeof UpdatePreimageKind;
6066
- type index$m_UpdateService = UpdateService;
6067
- declare const index$m_UpdateService: typeof UpdateService;
6068
- type index$m_UpdateServiceKind = UpdateServiceKind;
6069
- declare const index$m_UpdateServiceKind: typeof UpdateServiceKind;
6070
- type index$m_UpdateStorage = UpdateStorage;
6071
- declare const index$m_UpdateStorage: typeof UpdateStorage;
6072
- type index$m_UpdateStorageKind = UpdateStorageKind;
6073
- declare const index$m_UpdateStorageKind: typeof UpdateStorageKind;
6074
- type index$m_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
6075
- type index$m_ValidatorData = ValidatorData;
6076
- declare const index$m_ValidatorData: typeof ValidatorData;
6077
- type index$m_ValidatorDataView = ValidatorDataView;
6078
- type index$m_ValidatorStatistics = ValidatorStatistics;
6079
- declare const index$m_ValidatorStatistics: typeof ValidatorStatistics;
6080
- type index$m_WithStateView<V = StateView> = WithStateView<V>;
6081
- declare const index$m_accumulationOutputComparator: typeof accumulationOutputComparator;
6082
- declare const index$m_accumulationQueueCodec: typeof accumulationQueueCodec;
6083
- declare const index$m_authPoolsCodec: typeof authPoolsCodec;
6084
- declare const index$m_authQueuesCodec: typeof authQueuesCodec;
6085
- declare const index$m_availabilityAssignmentsCodec: typeof availabilityAssignmentsCodec;
6086
- declare const index$m_codecPerCore: typeof codecPerCore;
6087
- declare const index$m_codecWithVersion: typeof codecWithVersion;
6088
- declare const index$m_hashComparator: typeof hashComparator;
6089
- declare const index$m_ignoreValueWithDefault: typeof ignoreValueWithDefault;
6090
- declare const index$m_recentlyAccumulatedCodec: typeof recentlyAccumulatedCodec;
6091
- declare const index$m_serviceDataCodec: typeof serviceDataCodec;
6092
- declare const index$m_serviceEntriesCodec: typeof serviceEntriesCodec;
6093
- declare const index$m_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
6094
- declare const index$m_tryAsPerCore: typeof tryAsPerCore;
6095
- declare const index$m_validatorsDataCodec: typeof validatorsDataCodec;
6096
- declare namespace index$m {
6097
- 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 };
6098
- 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 };
6099
- }
6100
-
6101
6131
  type StateKey = Opaque<OpaqueHash, "stateKey">;
6102
6132
  /** Numeric mapping for state entries. */
6103
6133
  declare enum StateKeyIdx {
@@ -6204,7 +6234,7 @@ declare function serializeStateUpdate(spec: ChainSpec, blake2b: Blake2b, update:
6204
6234
  * State entries may be wrapped into `SerializedState` to access the contained values.
6205
6235
  */
6206
6236
  declare class StateEntries {
6207
- private readonly entries;
6237
+ private readonly dictionary;
6208
6238
  static Codec: Descriptor<StateEntries, StateEntries>;
6209
6239
  /** Turn in-memory state into it's serialized form. */
6210
6240
  static serializeInMemory(spec: ChainSpec, blake2b: Blake2b, state: InMemoryState): StateEntries;
@@ -6225,6 +6255,12 @@ declare class StateEntries {
6225
6255
  private constructor();
6226
6256
  /** When comparing, we can safely ignore `trieCache` and just use entries. */
6227
6257
  [TEST_COMPARE_USING](): any;
6258
+ /** Iterator over entries */
6259
+ entries(): Generator<[TruncatedHash, BytesBlob]>;
6260
+ /** Iterator over entries keys */
6261
+ keys(): Generator<TruncatedHash>;
6262
+ /** Iterator over entries values */
6263
+ values(): Generator<BytesBlob>;
6228
6264
  /** Dump state entries to JSON string (format compatible with stf vectors). */
6229
6265
  toString(): string;
6230
6266
  [Symbol.iterator](): Generator<[TruncatedHash, BytesBlob], any, any>;
@@ -6401,60 +6437,6 @@ declare namespace serialize {
6401
6437
  */
6402
6438
  declare const dumpCodec: Descriptor<BytesBlob, BytesBlob>;
6403
6439
 
6404
- /**
6405
- * JAM State Serialization & Merkleization.
6406
- *
6407
- * https://graypaper.fluffylabs.dev/#/5f542d7/389f00389f00
6408
- *
6409
- * State representations:
6410
- *
6411
- * We maintain two "views" of our chain state:
6412
- *
6413
- * - **InMemoryState**
6414
- * - Full, canonical state held entirely in memory.
6415
- * - Complete info on every field, plus lists of services, modules, etc.
6416
- *
6417
- * - **SerializedState<T>**
6418
- * - Generic wrapper around a serialized snapshot of the state.
6419
- * - Only the bytes (and minimal metadata) are held up front.
6420
- * - Three instantiations:
6421
- * - `SerializedState<Persistence>`: Pure "black-box" serialized blob
6422
- * (incomplete in-memory view).
6423
- * - `SerializedState<LeafDb>`: Disk-backed trie storage-leaf nodes live on
6424
- * disk and load on demand; cheap to update (no data duplication) and re-compute
6425
- * the `stateRoot`. Used in LMDB.
6426
- * - `SerializedState<StateEntries>`: serialized state represented as a simple in-memory
6427
- * hashmap of `key -> value` entries.
6428
- */
6429
-
6430
- type index$l_SerializedService = SerializedService;
6431
- declare const index$l_SerializedService: typeof SerializedService;
6432
- type index$l_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
6433
- declare const index$l_SerializedState: typeof SerializedState;
6434
- type index$l_SerializedStateBackend = SerializedStateBackend;
6435
- type index$l_SerializedStateView<T extends SerializedStateBackend> = SerializedStateView<T>;
6436
- declare const index$l_SerializedStateView: typeof SerializedStateView;
6437
- type index$l_StateCodec<T, V = T> = StateCodec<T, V>;
6438
- type index$l_StateEntries = StateEntries;
6439
- declare const index$l_StateEntries: typeof StateEntries;
6440
- type index$l_StateEntryUpdate = StateEntryUpdate;
6441
- type index$l_StateEntryUpdateAction = StateEntryUpdateAction;
6442
- declare const index$l_StateEntryUpdateAction: typeof StateEntryUpdateAction;
6443
- type index$l_StateKey = StateKey;
6444
- type index$l_StateKeyIdx = StateKeyIdx;
6445
- declare const index$l_StateKeyIdx: typeof StateKeyIdx;
6446
- declare const index$l_binaryMerkleization: typeof binaryMerkleization;
6447
- declare const index$l_dumpCodec: typeof dumpCodec;
6448
- declare const index$l_legacyServiceNested: typeof legacyServiceNested;
6449
- declare const index$l_loadState: typeof loadState;
6450
- import index$l_serialize = serialize;
6451
- declare const index$l_serializeStateUpdate: typeof serializeStateUpdate;
6452
- import index$l_stateKeys = stateKeys;
6453
- declare namespace index$l {
6454
- 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 };
6455
- export type { index$l_SerializedStateBackend as SerializedStateBackend, index$l_StateCodec as StateCodec, index$l_StateEntryUpdate as StateEntryUpdate, index$l_StateKey as StateKey };
6456
- }
6457
-
6458
6440
  /** Error during `LeafDb` creation. */
6459
6441
  declare enum LeafDbError {
6460
6442
  InvalidLeafData = 0
@@ -6577,28 +6559,37 @@ declare class InMemorySerializedStates implements StatesDb<SerializedState<LeafD
6577
6559
  close(): Promise<void>;
6578
6560
  }
6579
6561
 
6580
- type index$k_BlocksDb = BlocksDb;
6581
- type index$k_InMemoryBlocks = InMemoryBlocks;
6582
- declare const index$k_InMemoryBlocks: typeof InMemoryBlocks;
6583
- type index$k_InMemorySerializedStates = InMemorySerializedStates;
6584
- declare const index$k_InMemorySerializedStates: typeof InMemorySerializedStates;
6585
- type index$k_InMemoryStates = InMemoryStates;
6586
- declare const index$k_InMemoryStates: typeof InMemoryStates;
6587
- type index$k_InitStatesDb<T = State> = InitStatesDb<T>;
6588
- type index$k_LeafDb = LeafDb;
6589
- declare const index$k_LeafDb: typeof LeafDb;
6590
- type index$k_LeafDbError = LeafDbError;
6591
- declare const index$k_LeafDbError: typeof LeafDbError;
6592
- type index$k_RootDb<TBlocks = BlocksDb, TStates = StatesDb> = RootDb<TBlocks, TStates>;
6593
- type index$k_SerializedStatesDb = SerializedStatesDb;
6594
- type index$k_StateUpdateError = StateUpdateError;
6595
- declare const index$k_StateUpdateError: typeof StateUpdateError;
6596
- type index$k_StatesDb<T extends State = State> = StatesDb<T>;
6597
- type index$k_ValuesDb = ValuesDb;
6598
- declare const index$k_updateLeafs: typeof updateLeafs;
6599
- declare namespace index$k {
6600
- 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 };
6601
- 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 };
6602
6593
  }
6603
6594
 
6604
6595
  /**
@@ -6741,29 +6732,38 @@ declare function chunksToShards(spec: ChainSpec, chunks: FixedSizeArray<BytesBlo
6741
6732
 
6742
6733
  declare const initEc: () => Promise<void>;
6743
6734
 
6744
- declare const index$j_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
6745
- type index$j_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
6746
- type index$j_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
6747
- type index$j_PIECE_SIZE = PIECE_SIZE;
6748
- type index$j_POINT_LENGTH = POINT_LENGTH;
6749
- declare const index$j_checkConsistency: typeof checkConsistency;
6750
- declare const index$j_chunkingFunction: typeof chunkingFunction;
6751
- declare const index$j_chunksToShards: typeof chunksToShards;
6752
- declare const index$j_decodeData: typeof decodeData;
6753
- declare const index$j_decodeDataAndTrim: typeof decodeDataAndTrim;
6754
- declare const index$j_decodePiece: typeof decodePiece;
6755
- declare const index$j_encodePoints: typeof encodePoints;
6756
- declare const index$j_initEc: typeof initEc;
6757
- declare const index$j_join: typeof join;
6758
- declare const index$j_lace: typeof lace;
6759
- declare const index$j_padAndEncodeData: typeof padAndEncodeData;
6760
- declare const index$j_shardsToChunks: typeof shardsToChunks;
6761
- declare const index$j_split: typeof split;
6762
- declare const index$j_transpose: typeof transpose;
6763
- declare const index$j_unzip: typeof unzip;
6764
- declare namespace index$j {
6765
- 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 };
6766
- 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 };
6767
6767
  }
6768
6768
 
6769
6769
  /** A per-client handler of incoming socket messages. */
@@ -6922,9 +6922,9 @@ declare class Initialize extends WithDebug {
6922
6922
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
6923
6923
  }>>>;
6924
6924
  }> | null>;
6925
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6926
6925
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
6927
6926
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6927
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6928
6928
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6929
6929
  }>>;
6930
6930
  keyvals: Descriptor<KeyValue[], SequenceView<KeyValue, ViewOf<KeyValue, {
@@ -7039,45 +7039,82 @@ declare class FuzzTarget implements IpcHandler {
7039
7039
  hasFeature(feature: number): boolean;
7040
7040
  }
7041
7041
 
7042
- type index$i_Ancestry = Ancestry;
7043
- type index$i_AncestryItem = AncestryItem;
7044
- declare const index$i_AncestryItem: typeof AncestryItem;
7045
- type index$i_ErrorMessage = ErrorMessage;
7046
- declare const index$i_ErrorMessage: typeof ErrorMessage;
7047
- type index$i_Features = Features;
7048
- declare const index$i_Features: typeof Features;
7049
- type index$i_FuzzMessageHandler = FuzzMessageHandler;
7050
- type index$i_FuzzTarget = FuzzTarget;
7051
- declare const index$i_FuzzTarget: typeof FuzzTarget;
7052
- type index$i_GetState = GetState;
7053
- type index$i_Initialize = Initialize;
7054
- declare const index$i_Initialize: typeof Initialize;
7055
- type index$i_KeyValue = KeyValue;
7056
- declare const index$i_KeyValue: typeof KeyValue;
7057
- type index$i_Message = Message;
7058
- type index$i_MessageData = MessageData;
7059
- type index$i_MessageType = MessageType;
7060
- declare const index$i_MessageType: typeof MessageType;
7061
- type index$i_PeerInfo = PeerInfo;
7062
- declare const index$i_PeerInfo: typeof PeerInfo;
7063
- type index$i_StateRoot = StateRoot;
7064
- type index$i_Version = Version;
7065
- declare const index$i_Version: typeof Version;
7066
- declare const index$i_ancestryCodec: typeof ancestryCodec;
7067
- declare const index$i_getStateCodec: typeof getStateCodec;
7068
- declare const index$i_messageCodec: typeof messageCodec;
7069
- declare const index$i_stateCodec: typeof stateCodec;
7070
- declare const index$i_stateRootCodec: typeof stateRootCodec;
7071
- declare namespace index$i {
7072
- 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 };
7073
- 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 };
7074
- }
7075
-
7076
- type index$h_IpcHandler = IpcHandler;
7077
- type index$h_IpcSender = IpcSender;
7078
- declare namespace index$h {
7079
- export { index$i as v1 };
7080
- 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 };
7081
7118
  }
7082
7119
 
7083
7120
  /**
@@ -7229,12 +7266,12 @@ declare class DirectWorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = S
7229
7266
  readonly workerParams: TParams;
7230
7267
  private readonly blocksDb;
7231
7268
  private readonly statesDb;
7232
- static new<T, B, S>({ nodeName, chainSpec, blocksDb, statesDb, params, }: {
7269
+ static new<T, B, S>({ nodeName, chainSpec, blocksDb, statesDb, workerParams: params, }: {
7233
7270
  nodeName: string;
7234
7271
  chainSpec: ChainSpec;
7235
7272
  blocksDb: B;
7236
7273
  statesDb: S;
7237
- params: T;
7274
+ workerParams: T;
7238
7275
  }): DirectWorkerConfig<T, B, S>;
7239
7276
  private constructor();
7240
7277
  openDatabase(_options?: {
@@ -7251,37 +7288,6 @@ declare function startSameThread<To, From>(protocol: LousyProtocol<To, From>): {
7251
7288
  internal: Internal<LousyProtocol<To, From>>;
7252
7289
  };
7253
7290
 
7254
- type index$g_Api<T> = Api<T>;
7255
- type index$g_Channel = Channel;
7256
- declare const index$g_Channel: typeof Channel;
7257
- type index$g_Destroy = Destroy;
7258
- type index$g_DirectPort = DirectPort;
7259
- declare const index$g_DirectPort: typeof DirectPort;
7260
- type index$g_DirectWorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = DirectWorkerConfig<TParams, TBlocks, TStates>;
7261
- declare const index$g_DirectWorkerConfig: typeof DirectWorkerConfig;
7262
- type index$g_Envelope<T> = Envelope<T>;
7263
- type index$g_Handler<Req, Res> = Handler<Req, Res>;
7264
- type index$g_HandlerKey<K> = HandlerKey<K>;
7265
- type index$g_Handlers<In> = Handlers<In>;
7266
- type index$g_Internal<T> = Internal<T>;
7267
- type index$g_LousyProtocol<To, From> = LousyProtocol<To, From>;
7268
- type index$g_MessageCodecs<Req, Res> = MessageCodecs<Req, Res>;
7269
- type index$g_MessagesList<T> = MessagesList<T>;
7270
- type index$g_Port = Port;
7271
- type index$g_Protocol<To, From> = Protocol<To, From>;
7272
- type index$g_Rx<To, From> = Rx<To, From>;
7273
- type index$g_Sender<Req, Res> = Sender<Req, Res>;
7274
- type index$g_SenderKey<K> = SenderKey<K>;
7275
- type index$g_Senders<Out> = Senders<Out>;
7276
- type index$g_Tx<To, From> = Tx<To, From>;
7277
- type index$g_WorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = WorkerConfig<TParams, TBlocks, TStates>;
7278
- declare const index$g_createProtocol: typeof createProtocol;
7279
- declare const index$g_startSameThread: typeof startSameThread;
7280
- declare namespace index$g {
7281
- 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 };
7282
- 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 };
7283
- }
7284
-
7285
7291
  declare enum Level {
7286
7292
  INSANE = 1,
7287
7293
  TRACE = 2,
@@ -7410,22 +7416,6 @@ declare class Logger {
7410
7416
  error(strings: TemplateStringsArray, ...data: unknown[]): void;
7411
7417
  }
7412
7418
 
7413
- type index$f_ConsoleTransport = ConsoleTransport;
7414
- declare const index$f_ConsoleTransport: typeof ConsoleTransport;
7415
- type index$f_Level = Level;
7416
- declare const index$f_Level: typeof Level;
7417
- type index$f_Logger = Logger;
7418
- declare const index$f_Logger: typeof Logger;
7419
- type index$f_Options = Options;
7420
- type index$f_Transport = Transport;
7421
- type index$f_TransportBuilder = TransportBuilder;
7422
- declare const index$f_findLevel: typeof findLevel;
7423
- declare const index$f_parseLoggerOptions: typeof parseLoggerOptions;
7424
- declare namespace index$f {
7425
- 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 };
7426
- export type { index$f_Options as Options, index$f_Transport as Transport, index$f_TransportBuilder as TransportBuilder };
7427
- }
7428
-
7429
7419
  /** A U64 version of `Gas`. */
7430
7420
  type BigGas = Opaque<U64, "BigGas[U64]">;
7431
7421
  /** A U32 version of `Gas`. */
@@ -7543,28 +7533,6 @@ interface IPvmInterpreter {
7543
7533
  getExitParam(): U32 | null;
7544
7534
  }
7545
7535
 
7546
- type index$e_BigGas = BigGas;
7547
- type index$e_Gas = Gas;
7548
- type index$e_IGasCounter = IGasCounter;
7549
- type index$e_IMemory = IMemory;
7550
- type index$e_IPvmInterpreter = IPvmInterpreter;
7551
- type index$e_IRegisters = IRegisters;
7552
- declare const index$e_MAX_MEMORY_INDEX: typeof MAX_MEMORY_INDEX;
7553
- declare const index$e_MEMORY_SIZE: typeof MEMORY_SIZE;
7554
- declare const index$e_NO_OF_REGISTERS: typeof NO_OF_REGISTERS;
7555
- declare const index$e_REGISTER_BYTE_SIZE: typeof REGISTER_BYTE_SIZE;
7556
- type index$e_SmallGas = SmallGas;
7557
- type index$e_Status = Status;
7558
- declare const index$e_Status: typeof Status;
7559
- declare const index$e_getPageStartAddress: typeof getPageStartAddress;
7560
- declare const index$e_tryAsBigGas: typeof tryAsBigGas;
7561
- declare const index$e_tryAsGas: typeof tryAsGas;
7562
- declare const index$e_tryAsSmallGas: typeof tryAsSmallGas;
7563
- declare namespace index$e {
7564
- 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 };
7565
- 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 };
7566
- }
7567
-
7568
7536
  type RegisterIndex = Opaque<number, "register index">;
7569
7537
  declare const tryAsRegisterIndex: (index: number) => RegisterIndex;
7570
7538
  declare class Registers implements IRegisters {
@@ -7706,20 +7674,6 @@ declare class HostCalls {
7706
7674
  runProgram(program: Uint8Array, args: Uint8Array, initialPc: number, initialGas: Gas): Promise<ReturnValue>;
7707
7675
  }
7708
7676
 
7709
- type index$d_HostCallHandler = HostCallHandler;
7710
- type index$d_HostCallMemory = HostCallMemory;
7711
- declare const index$d_HostCallMemory: typeof HostCallMemory;
7712
- type index$d_HostCallRegisters = HostCallRegisters;
7713
- declare const index$d_HostCallRegisters: typeof HostCallRegisters;
7714
- type index$d_PvmExecution = PvmExecution;
7715
- declare const index$d_PvmExecution: typeof PvmExecution;
7716
- declare const index$d_traceRegisters: typeof traceRegisters;
7717
- declare const index$d_tryAsHostCallIndex: typeof tryAsHostCallIndex;
7718
- declare namespace index$d {
7719
- 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 };
7720
- export type { index$d_HostCallHandler as HostCallHandler };
7721
- }
7722
-
7723
7677
  /** Size of the transfer memo. */
7724
7678
  declare const TRANSFER_MEMO_BYTES = 128;
7725
7679
  type TRANSFER_MEMO_BYTES = typeof TRANSFER_MEMO_BYTES;
@@ -8125,49 +8079,49 @@ declare class Yield implements HostCallHandler {
8125
8079
  execute(_gas: IGasCounter, regs: HostCallRegisters, memory: HostCallMemory): Promise<PvmExecution | undefined>;
8126
8080
  }
8127
8081
 
8128
- type index$c_Assign = Assign;
8129
- declare const index$c_Assign: typeof Assign;
8130
- type index$c_Bless = Bless;
8131
- declare const index$c_Bless: typeof Bless;
8132
- type index$c_Checkpoint = Checkpoint;
8133
- declare const index$c_Checkpoint: typeof Checkpoint;
8134
- type index$c_Designate = Designate;
8135
- declare const index$c_Designate: typeof Designate;
8136
- type index$c_Eject = Eject;
8137
- declare const index$c_Eject: typeof Eject;
8138
- type index$c_Forget = Forget;
8139
- declare const index$c_Forget: typeof Forget;
8140
- type index$c_New = New;
8141
- declare const index$c_New: typeof New;
8142
- type index$c_Provide = Provide;
8143
- declare const index$c_Provide: typeof Provide;
8144
- type index$c_Query = Query;
8145
- declare const index$c_Query: typeof Query;
8146
- type index$c_Solicit = Solicit;
8147
- declare const index$c_Solicit: typeof Solicit;
8148
- type index$c_Transfer = Transfer;
8149
- declare const index$c_Transfer: typeof Transfer;
8150
- type index$c_Upgrade = Upgrade;
8151
- declare const index$c_Upgrade: typeof Upgrade;
8152
- declare const index$c_VALIDATOR_DATA_BYTES: typeof VALIDATOR_DATA_BYTES;
8153
- type index$c_Yield = Yield;
8154
- declare const index$c_Yield: typeof Yield;
8155
- 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 {
8156
8110
  export {
8157
- index$c_Assign as Assign,
8158
- index$c_Bless as Bless,
8159
- index$c_Checkpoint as Checkpoint,
8160
- index$c_Designate as Designate,
8161
- index$c_Eject as Eject,
8162
- index$c_Forget as Forget,
8163
- index$c_New as New,
8164
- index$c_Provide as Provide,
8165
- index$c_Query as Query,
8166
- index$c_Solicit as Solicit,
8167
- index$c_Transfer as Transfer,
8168
- index$c_Upgrade as Upgrade,
8169
- index$c_VALIDATOR_DATA_BYTES as VALIDATOR_DATA_BYTES,
8170
- 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,
8171
8125
  };
8172
8126
  }
8173
8127
 
@@ -8892,35 +8846,35 @@ declare class Write implements HostCallHandler {
8892
8846
  execute(_gas: IGasCounter, regs: HostCallRegisters, memory: HostCallMemory): Promise<undefined | PvmExecution>;
8893
8847
  }
8894
8848
 
8895
- type index$b_AccountsInfo = AccountsInfo;
8896
- type index$b_AccountsLookup = AccountsLookup;
8897
- type index$b_AccountsRead = AccountsRead;
8898
- type index$b_AccountsWrite = AccountsWrite;
8899
- type index$b_Fetch = Fetch;
8900
- declare const index$b_Fetch: typeof Fetch;
8901
- type index$b_FetchKind = FetchKind;
8902
- declare const index$b_FetchKind: typeof FetchKind;
8903
- type index$b_GasHostCall = GasHostCall;
8904
- declare const index$b_GasHostCall: typeof GasHostCall;
8905
- declare const index$b_HostCallResult: typeof HostCallResult;
8906
- type index$b_IFetchExternalities = IFetchExternalities;
8907
- type index$b_Info = Info;
8908
- declare const index$b_Info: typeof Info;
8909
- declare const index$b_LEN_REG: typeof LEN_REG;
8910
- type index$b_LogHostCall = LogHostCall;
8911
- declare const index$b_LogHostCall: typeof LogHostCall;
8912
- type index$b_Lookup = Lookup;
8913
- declare const index$b_Lookup: typeof Lookup;
8914
- type index$b_Missing = Missing;
8915
- declare const index$b_Missing: typeof Missing;
8916
- type index$b_Read = Read;
8917
- declare const index$b_Read: typeof Read;
8918
- type index$b_Write = Write;
8919
- declare const index$b_Write: typeof Write;
8920
- declare const index$b_codecServiceAccountInfoWithThresholdBalance: typeof codecServiceAccountInfoWithThresholdBalance;
8921
- declare namespace index$b {
8922
- 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 };
8923
- 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 };
8924
8878
  }
8925
8879
 
8926
8880
  /**
@@ -9044,32 +8998,32 @@ declare class Poke implements HostCallHandler {
9044
8998
  execute(_gas: IGasCounter, regs: HostCallRegisters, memory: HostCallMemory): Promise<PvmExecution | undefined>;
9045
8999
  }
9046
9000
 
9047
- type index$a_Export = Export;
9048
- declare const index$a_Export: typeof Export;
9049
- type index$a_Expunge = Expunge;
9050
- declare const index$a_Expunge: typeof Expunge;
9051
- type index$a_HistoricalLookup = HistoricalLookup;
9052
- declare const index$a_HistoricalLookup: typeof HistoricalLookup;
9053
- type index$a_Invoke = Invoke;
9054
- declare const index$a_Invoke: typeof Invoke;
9055
- type index$a_Machine = Machine;
9056
- declare const index$a_Machine: typeof Machine;
9057
- type index$a_Pages = Pages;
9058
- declare const index$a_Pages: typeof Pages;
9059
- type index$a_Peek = Peek;
9060
- declare const index$a_Peek: typeof Peek;
9061
- type index$a_Poke = Poke;
9062
- declare const index$a_Poke: typeof Poke;
9063
- 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 {
9064
9018
  export {
9065
- index$a_Export as Export,
9066
- index$a_Expunge as Expunge,
9067
- index$a_HistoricalLookup as HistoricalLookup,
9068
- index$a_Invoke as Invoke,
9069
- index$a_Machine as Machine,
9070
- index$a_Pages as Pages,
9071
- index$a_Peek as Peek,
9072
- 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,
9073
9027
  };
9074
9028
  }
9075
9029
 
@@ -9082,68 +9036,6 @@ declare function writeServiceIdAsLeBytes(serviceId: ServiceId, destination: Uint
9082
9036
  declare function clampU64ToU32(value: U64): U32;
9083
9037
  declare function emptyRegistersBuffer(): Uint8Array;
9084
9038
 
9085
- type index$9_AccumulationStateUpdate = AccumulationStateUpdate;
9086
- declare const index$9_AccumulationStateUpdate: typeof AccumulationStateUpdate;
9087
- declare const index$9_CURRENT_SERVICE_ID: typeof CURRENT_SERVICE_ID;
9088
- type index$9_EjectError = EjectError;
9089
- declare const index$9_EjectError: typeof EjectError;
9090
- type index$9_ForgetPreimageError = ForgetPreimageError;
9091
- declare const index$9_ForgetPreimageError: typeof ForgetPreimageError;
9092
- declare const index$9_HostCallResult: typeof HostCallResult;
9093
- type index$9_InsufficientFundsError = InsufficientFundsError;
9094
- type index$9_MachineId = MachineId;
9095
- type index$9_MachineInstance = MachineInstance;
9096
- declare const index$9_MachineInstance: typeof MachineInstance;
9097
- type index$9_MachineResult = MachineResult;
9098
- type index$9_MachineStatus = MachineStatus;
9099
- type index$9_MemoryOperation = MemoryOperation;
9100
- declare const index$9_MemoryOperation: typeof MemoryOperation;
9101
- type index$9_NewServiceError = NewServiceError;
9102
- declare const index$9_NewServiceError: typeof NewServiceError;
9103
- type index$9_NoMachineError = NoMachineError;
9104
- type index$9_PagesError = PagesError;
9105
- declare const index$9_PagesError: typeof PagesError;
9106
- type index$9_PartialState = PartialState;
9107
- type index$9_PartiallyUpdatedState<T extends StateSlice = StateSlice> = PartiallyUpdatedState<T>;
9108
- declare const index$9_PartiallyUpdatedState: typeof PartiallyUpdatedState;
9109
- type index$9_PeekPokeError = PeekPokeError;
9110
- declare const index$9_PeekPokeError: typeof PeekPokeError;
9111
- type index$9_PendingTransfer = PendingTransfer;
9112
- declare const index$9_PendingTransfer: typeof PendingTransfer;
9113
- type index$9_PreimageStatus = PreimageStatus;
9114
- type index$9_PreimageStatusKind = PreimageStatusKind;
9115
- declare const index$9_PreimageStatusKind: typeof PreimageStatusKind;
9116
- type index$9_ProgramCounter = ProgramCounter;
9117
- type index$9_ProvidePreimageError = ProvidePreimageError;
9118
- declare const index$9_ProvidePreimageError: typeof ProvidePreimageError;
9119
- type index$9_RefineExternalities = RefineExternalities;
9120
- type index$9_RequestPreimageError = RequestPreimageError;
9121
- declare const index$9_RequestPreimageError: typeof RequestPreimageError;
9122
- declare const index$9_SERVICE_ID_BYTES: typeof SERVICE_ID_BYTES;
9123
- type index$9_SegmentExportError = SegmentExportError;
9124
- type index$9_ServiceStateUpdate = ServiceStateUpdate;
9125
- type index$9_TRANSFER_MEMO_BYTES = TRANSFER_MEMO_BYTES;
9126
- type index$9_TransferError = TransferError;
9127
- declare const index$9_TransferError: typeof TransferError;
9128
- type index$9_UnprivilegedError = UnprivilegedError;
9129
- type index$9_UpdatePrivilegesError = UpdatePrivilegesError;
9130
- declare const index$9_UpdatePrivilegesError: typeof UpdatePrivilegesError;
9131
- type index$9_ZeroVoidError = ZeroVoidError;
9132
- declare const index$9_ZeroVoidError: typeof ZeroVoidError;
9133
- declare const index$9_clampU64ToU32: typeof clampU64ToU32;
9134
- declare const index$9_emptyRegistersBuffer: typeof emptyRegistersBuffer;
9135
- declare const index$9_getServiceId: typeof getServiceId;
9136
- declare const index$9_getServiceIdOrCurrent: typeof getServiceIdOrCurrent;
9137
- declare const index$9_slotsToPreimageStatus: typeof slotsToPreimageStatus;
9138
- declare const index$9_toMemoryOperation: typeof toMemoryOperation;
9139
- declare const index$9_tryAsMachineId: typeof tryAsMachineId;
9140
- declare const index$9_tryAsProgramCounter: typeof tryAsProgramCounter;
9141
- declare const index$9_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
9142
- declare namespace index$9 {
9143
- 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 };
9144
- 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 };
9145
- }
9146
-
9147
9039
  type Input = {
9148
9040
  slot: TimeSlot;
9149
9041
  authorIndex: ValidatorIndex;
@@ -9174,6 +9066,8 @@ type Input = {
9174
9066
  * https://graypaper.fluffylabs.dev/#/cc517d7/18dd0018dd00?v=0.6.5
9175
9067
  */
9176
9068
  transferStatistics: Map<ServiceId, CountAndGasUsed>;
9069
+ reporters: readonly Ed25519Key[];
9070
+ currentValidatorData: State["currentValidatorData"];
9177
9071
  };
9178
9072
  type CountAndGasUsed = {
9179
9073
  count: U32;
@@ -9240,14 +9134,19 @@ type AccumulateResult = {
9240
9134
  accumulationOutputLog: SortedArray<AccumulationOutput>;
9241
9135
  };
9242
9136
 
9137
+ type AccumulateOptions = {
9138
+ pvm: PvmBackend;
9139
+ accumulateSequentially: boolean;
9140
+ };
9141
+
9243
9142
  declare const ACCUMULATION_ERROR = "duplicate service created";
9244
9143
  type ACCUMULATION_ERROR = typeof ACCUMULATION_ERROR;
9245
9144
  declare class Accumulate {
9246
9145
  readonly chainSpec: ChainSpec;
9247
9146
  readonly blake2b: Blake2b;
9248
9147
  readonly state: AccumulateState;
9249
- readonly pvm: PvmBackend;
9250
- constructor(chainSpec: ChainSpec, blake2b: Blake2b, state: AccumulateState, pvm: PvmBackend);
9148
+ readonly options: AccumulateOptions;
9149
+ constructor(chainSpec: ChainSpec, blake2b: Blake2b, state: AccumulateState, options: AccumulateOptions);
9251
9150
  /**
9252
9151
  * Returns an index that determines how many WorkReports can be processed before exceeding a given gasLimit.
9253
9152
  *
@@ -9686,40 +9585,53 @@ interface HeaderChain {
9686
9585
  * by validators).
9687
9586
  *
9688
9587
  * After enough assurances the work-report is considered available,
9689
- * and the work outputs transform the state of their associated
9588
+ * and the work-digests transform the state of their associated
9690
9589
  * service by virtue of accumulation, covered in section 12.
9691
9590
  * The report may also be timed-out, implying it may be replaced
9692
9591
  * by another report without accumulation.
9693
9592
  *
9694
- * https://graypaper.fluffylabs.dev/#/5f542d7/133d00134200
9593
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/138801138d01?v=0.7.2
9695
9594
  */
9696
9595
  type ReportsInput = {
9697
9596
  /**
9698
9597
  * A work-package, is transformed by validators acting as
9699
9598
  * guarantors into its corresponding work-report, which
9700
- * similarly comprises several work outputs and then
9599
+ * similarly comprises several work-digests and then
9701
9600
  * presented on-chain within the guarantees extrinsic.
9702
9601
  *
9703
- * https://graypaper.fluffylabs.dev/#/5f542d7/133500133900
9602
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/138001138401?v=0.7.2
9704
9603
  */
9705
9604
  guarantees: GuaranteesExtrinsicView;
9706
9605
  /** Current time slot, excerpted from block header. */
9707
9606
  slot: TimeSlot;
9708
9607
  /** `eta_prime`: New entropy, after potential epoch transition. */
9709
9608
  newEntropy: SafroleStateUpdate["entropy"];
9710
- /** Partial update of recent blocks. (β†, https://graypaper.fluffylabs.dev/#/9a08063/0fd8010fdb01?v=0.6.6) */
9609
+ /**
9610
+ * β† - Partial update of recent blocks.
9611
+ *
9612
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/0f56020f6b02?v=0.7.2
9613
+ */
9711
9614
  recentBlocksPartialUpdate: RecentHistoryStateUpdate["recentBlocks"];
9712
9615
  /**
9713
9616
  * ρ‡ - Availability assignment resulting from assurances transition
9714
- * https://graypaper.fluffylabs.dev/#/1c979cb/141302144402?v=0.7.1
9617
+ *
9618
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/141302144402?v=0.7.2
9715
9619
  */
9716
9620
  assurancesAvailAssignment: AssurancesStateUpdate["availabilityAssignment"];
9717
9621
  /**
9718
9622
  * ψ′O - Ed25519 keys of validators that were proven to judge incorrectly.
9719
9623
  *
9720
- * https://graypaper.fluffylabs.dev/#/1c979cb/134201134201?v=0.7.1
9624
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/134201134201?v=0.7.2
9721
9625
  */
9722
9626
  offenders: HashSet<Ed25519Key>;
9627
+ /**
9628
+ * `κ' kappa prime` - Current validator data.
9629
+ */
9630
+ currentValidatorData: SafroleStateUpdate["currentValidatorData"];
9631
+ /**
9632
+ * `λ' lambda prime` - Previous validator data.
9633
+ */
9634
+ previousValidatorData: SafroleStateUpdate["previousValidatorData"];
9723
9635
  };
9724
9636
 
9725
9637
  type GuarantorAssignment = {
@@ -9727,7 +9639,7 @@ type GuarantorAssignment = {
9727
9639
  ed25519: Ed25519Key;
9728
9640
  };
9729
9641
 
9730
- type ReportsState = Pick<State, "availabilityAssignment" | "currentValidatorData" | "previousValidatorData" | "entropy" | "getService" | "recentBlocks" | "accumulationQueue" | "recentlyAccumulated"> & WithStateView<Pick<StateView, "authPoolsView">>;
9642
+ type ReportsState = Pick<State, "availabilityAssignment" | "entropy" | "getService" | "recentBlocks" | "accumulationQueue" | "recentlyAccumulated"> & WithStateView<Pick<StateView, "authPoolsView">>;
9731
9643
  /** Reports state update. */
9732
9644
  type ReportsStateUpdate = Pick<ReportsState, "availabilityAssignment">;
9733
9645
  type ReportsOutput = {
@@ -9739,7 +9651,7 @@ type ReportsOutput = {
9739
9651
  * This dictionary has the same number of items as in the input guarantees extrinsic.
9740
9652
  */
9741
9653
  reported: HashDictionary<WorkPackageHash, WorkPackageInfo>;
9742
- /** A set `R` of work package reporters. */
9654
+ /** A set `M` of work package reporters. */
9743
9655
  reporters: KnownSizeArray<Ed25519Key, "Guarantees * Credentials (at most `cores*3`)">;
9744
9656
  };
9745
9657
  declare class Reports {
@@ -9758,9 +9670,9 @@ declare class Reports {
9758
9670
  * Get the guarantor assignment (both core and validator data)
9759
9671
  * depending on the rotation.
9760
9672
  *
9761
- * https://graypaper.fluffylabs.dev/#/5f542d7/158200158200
9673
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/15df0115df01?v=0.7.2
9762
9674
  */
9763
- getGuarantorAssignment(headerTimeSlot: TimeSlot, guaranteeTimeSlot: TimeSlot, newEntropy: SafroleStateUpdate["entropy"]): Result<PerValidator<GuarantorAssignment>, ReportsError>;
9675
+ getGuarantorAssignment(headerTimeSlot: TimeSlot, guaranteeTimeSlot: TimeSlot, newEntropy: SafroleStateUpdate["entropy"], currentValidatorData: SafroleStateUpdate["currentValidatorData"], previousValidatorData: SafroleStateUpdate["previousValidatorData"]): Result<PerValidator<GuarantorAssignment>, ReportsError>;
9764
9676
  }
9765
9677
 
9766
9678
  declare class DbHeaderChain implements HeaderChain {
@@ -9809,11 +9721,11 @@ declare class OnChain {
9809
9721
  private readonly authorization;
9810
9722
  private readonly statistics;
9811
9723
  private isReadyForNextEpoch;
9812
- constructor(chainSpec: ChainSpec, state: State & WithStateView, hasher: TransitionHasher, pvm: PvmBackend, headerChain: HeaderChain);
9724
+ constructor(chainSpec: ChainSpec, state: State & WithStateView, hasher: TransitionHasher, options: AccumulateOptions, headerChain: HeaderChain);
9813
9725
  /** Pre-populate things worth caching for the next epoch. */
9814
9726
  prepareForNextEpoch(): Promise<void>;
9815
9727
  private verifySeal;
9816
- transition(block: BlockView, headerHash: HeaderHash, omitSealVerification?: boolean): Promise<Result<Ok, StfError>>;
9728
+ transition(block: BlockView, headerHash: HeaderHash): Promise<Result<Ok, StfError>>;
9817
9729
  private getUsedAuthorizerHashes;
9818
9730
  }
9819
9731
 
@@ -9885,20 +9797,35 @@ declare class AccumulateExternalities implements PartialState, AccountsWrite, Ac
9885
9797
  /**
9886
9798
  * The set of wrangled operand tuples, used as an operand to the PVM Accumulation function.
9887
9799
  *
9888
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/173d03173d03?v=0.6.7
9800
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/176b00176b00?v=0.7.2
9889
9801
  */
9890
9802
  declare class Operand extends WithDebug {
9891
9803
  static Codec: Descriptor<Operand, ViewOf<Operand, {
9892
9804
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
9893
9805
  exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
9894
9806
  authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
9895
- authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9896
9807
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
9897
9808
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
9898
- result: Descriptor<WorkExecResult, WorkExecResult>;
9809
+ result: Descriptor<WorkExecResult, {
9810
+ kind: WorkExecResultKind.ok;
9811
+ okBlob: BytesBlob;
9812
+ } | {
9813
+ kind: WorkExecResultKind.outOfGas;
9814
+ } | {
9815
+ kind: WorkExecResultKind.panic;
9816
+ } | {
9817
+ kind: WorkExecResultKind.incorrectNumberOfExports;
9818
+ } | {
9819
+ kind: WorkExecResultKind.digestTooBig;
9820
+ } | {
9821
+ kind: WorkExecResultKind.badCode;
9822
+ } | {
9823
+ kind: WorkExecResultKind.codeOversize;
9824
+ }>;
9825
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9899
9826
  }>>;
9900
9827
  /**
9901
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/181801189d01?v=0.6.7
9828
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/18680118eb01?v=0.7.2
9902
9829
  */
9903
9830
  hash: WorkPackageHash;
9904
9831
  exportsRoot: ExportsRootHash;
@@ -9973,14 +9900,14 @@ declare class FetchExternalities implements IFetchExternalities {
9973
9900
  oneTransferOrOperand(index: U64): BytesBlob | null;
9974
9901
  }
9975
9902
 
9976
- type index$8_AccumulateExternalities = AccumulateExternalities;
9977
- declare const index$8_AccumulateExternalities: typeof AccumulateExternalities;
9978
- type index$8_FetchExternalities = FetchExternalities;
9979
- declare const index$8_FetchExternalities: typeof FetchExternalities;
9980
- type index$8_TransferOrOperand = TransferOrOperand;
9981
- declare namespace index$8 {
9982
- export { index$8_AccumulateExternalities as AccumulateExternalities, index$8_FetchExternalities as FetchExternalities };
9983
- 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 };
9984
9911
  }
9985
9912
 
9986
9913
  /**
@@ -9993,87 +9920,6 @@ declare function copyAndUpdateState<T extends Partial<State>>(preState: T, state
9993
9920
  [K in keyof T]: T[K];
9994
9921
  };
9995
9922
 
9996
- type index$7_ACCUMULATION_ERROR = ACCUMULATION_ERROR;
9997
- type index$7_Accumulate = Accumulate;
9998
- declare const index$7_Accumulate: typeof Accumulate;
9999
- type index$7_AccumulateInput = AccumulateInput;
10000
- type index$7_AccumulateResult = AccumulateResult;
10001
- type index$7_AccumulateRoot = AccumulateRoot;
10002
- type index$7_AccumulateState = AccumulateState;
10003
- type index$7_AccumulateStateUpdate = AccumulateStateUpdate;
10004
- type index$7_Assurances = Assurances;
10005
- declare const index$7_Assurances: typeof Assurances;
10006
- type index$7_AssurancesError = AssurancesError;
10007
- declare const index$7_AssurancesError: typeof AssurancesError;
10008
- type index$7_AssurancesInput = AssurancesInput;
10009
- type index$7_AssurancesState = AssurancesState;
10010
- type index$7_AssurancesStateUpdate = AssurancesStateUpdate;
10011
- type index$7_Authorization = Authorization;
10012
- declare const index$7_Authorization: typeof Authorization;
10013
- type index$7_AuthorizationInput = AuthorizationInput;
10014
- type index$7_AuthorizationState = AuthorizationState;
10015
- type index$7_AuthorizationStateUpdate = AuthorizationStateUpdate;
10016
- type index$7_BlockVerifier = BlockVerifier;
10017
- declare const index$7_BlockVerifier: typeof BlockVerifier;
10018
- type index$7_BlockVerifierError = BlockVerifierError;
10019
- declare const index$7_BlockVerifierError: typeof BlockVerifierError;
10020
- type index$7_CountAndGasUsed = CountAndGasUsed;
10021
- type index$7_DbHeaderChain = DbHeaderChain;
10022
- declare const index$7_DbHeaderChain: typeof DbHeaderChain;
10023
- type index$7_DeferredTransfers = DeferredTransfers;
10024
- declare const index$7_DeferredTransfers: typeof DeferredTransfers;
10025
- type index$7_DeferredTransfersErrorCode = DeferredTransfersErrorCode;
10026
- declare const index$7_DeferredTransfersErrorCode: typeof DeferredTransfersErrorCode;
10027
- type index$7_DeferredTransfersResult = DeferredTransfersResult;
10028
- type index$7_DeferredTransfersState = DeferredTransfersState;
10029
- type index$7_Disputes = Disputes;
10030
- declare const index$7_Disputes: typeof Disputes;
10031
- type index$7_DisputesState = DisputesState;
10032
- type index$7_DisputesStateUpdate = DisputesStateUpdate;
10033
- declare const index$7_GAS_TO_INVOKE_WORK_REPORT: typeof GAS_TO_INVOKE_WORK_REPORT;
10034
- type index$7_HeaderChain = HeaderChain;
10035
- type index$7_Input = Input;
10036
- type index$7_Ok = Ok;
10037
- type index$7_OnChain = OnChain;
10038
- declare const index$7_OnChain: typeof OnChain;
10039
- type index$7_Preimages = Preimages;
10040
- declare const index$7_Preimages: typeof Preimages;
10041
- type index$7_PreimagesErrorCode = PreimagesErrorCode;
10042
- declare const index$7_PreimagesErrorCode: typeof PreimagesErrorCode;
10043
- type index$7_PreimagesInput = PreimagesInput;
10044
- type index$7_PreimagesState = PreimagesState;
10045
- type index$7_PreimagesStateUpdate = PreimagesStateUpdate;
10046
- declare const index$7_REPORT_TIMEOUT_GRACE_PERIOD: typeof REPORT_TIMEOUT_GRACE_PERIOD;
10047
- type index$7_RecentHistory = RecentHistory;
10048
- declare const index$7_RecentHistory: typeof RecentHistory;
10049
- type index$7_RecentHistoryInput = RecentHistoryInput;
10050
- type index$7_RecentHistoryPartialInput = RecentHistoryPartialInput;
10051
- type index$7_RecentHistoryState = RecentHistoryState;
10052
- type index$7_RecentHistoryStateUpdate = RecentHistoryStateUpdate;
10053
- type index$7_Reports = Reports;
10054
- declare const index$7_Reports: typeof Reports;
10055
- type index$7_ReportsError = ReportsError;
10056
- declare const index$7_ReportsError: typeof ReportsError;
10057
- type index$7_ReportsInput = ReportsInput;
10058
- type index$7_ReportsOutput = ReportsOutput;
10059
- type index$7_ReportsState = ReportsState;
10060
- type index$7_ReportsStateUpdate = ReportsStateUpdate;
10061
- type index$7_Statistics = Statistics;
10062
- declare const index$7_Statistics: typeof Statistics;
10063
- type index$7_StatisticsState = StatisticsState;
10064
- type index$7_StatisticsStateUpdate = StatisticsStateUpdate;
10065
- type index$7_StfError = StfError;
10066
- type index$7_StfErrorKind = StfErrorKind;
10067
- declare const index$7_StfErrorKind: typeof StfErrorKind;
10068
- type index$7_TransitionHasher = TransitionHasher;
10069
- declare const index$7_TransitionHasher: typeof TransitionHasher;
10070
- declare const index$7_copyAndUpdateState: typeof copyAndUpdateState;
10071
- declare const index$7_stfError: typeof stfError;
10072
- declare namespace index$7 {
10073
- 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 };
10074
- export type { index$7_ACCUMULATION_ERROR as ACCUMULATION_ERROR, index$7_AccumulateInput as AccumulateInput, 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 };
10075
- }
10076
-
10077
9923
  declare enum ImporterErrorKind {
10078
9924
  Verifier = 0,
10079
9925
  Stf = 1,
@@ -10093,8 +9939,8 @@ declare class Importer {
10093
9939
  constructor(spec: ChainSpec, pvm: PvmBackend, hasher: TransitionHasher, logger: Logger, blocks: BlocksDb, states: StatesDb<SerializedState<LeafDb>>);
10094
9940
  /** Do some extra work for preparation for the next epoch. */
10095
9941
  prepareForNextEpoch(): Promise<void>;
10096
- importBlockWithStateRoot(block: BlockView, omitSealVerification: boolean): Promise<Result<StateRootHash, ImporterError>>;
10097
- importBlock(block: BlockView, omitSealVerification: boolean): Promise<Result<WithHash<HeaderHash, HeaderView>, ImporterError>>;
9942
+ importBlockWithStateRoot(block: BlockView): Promise<Result<StateRootHash, ImporterError>>;
9943
+ importBlock(block: BlockView): Promise<Result<WithHash<HeaderHash, HeaderView>, ImporterError>>;
10098
9944
  private importBlockInternal;
10099
9945
  getBestStateRootHash(): (OpaqueHash & WithOpaque<"StateRootHash">) | null;
10100
9946
  getBestBlockHash(): OpaqueHash & WithOpaque<"HeaderHash">;
@@ -10132,9 +9978,9 @@ declare const protocol: LousyProtocol<{
10132
9978
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10133
9979
  }>>>;
10134
9980
  }> | null>;
10135
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10136
9981
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10137
9982
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
9983
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10138
9984
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10139
9985
  }>>;
10140
9986
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10147,7 +9993,7 @@ declare const protocol: LousyProtocol<{
10147
9993
  blob: Descriptor<BytesBlob, BytesBlob>;
10148
9994
  }>>>;
10149
9995
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10150
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
9996
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10151
9997
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10152
9998
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10153
9999
  length: Descriptor<U32, Bytes<4>>;
@@ -10176,7 +10022,22 @@ declare const protocol: LousyProtocol<{
10176
10022
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
10177
10023
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
10178
10024
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
10179
- result: Descriptor<WorkExecResult, WorkExecResult>;
10025
+ result: Descriptor<WorkExecResult, {
10026
+ kind: WorkExecResultKind.ok;
10027
+ okBlob: BytesBlob;
10028
+ } | {
10029
+ kind: WorkExecResultKind.outOfGas;
10030
+ } | {
10031
+ kind: WorkExecResultKind.panic;
10032
+ } | {
10033
+ kind: WorkExecResultKind.incorrectNumberOfExports;
10034
+ } | {
10035
+ kind: WorkExecResultKind.digestTooBig;
10036
+ } | {
10037
+ kind: WorkExecResultKind.badCode;
10038
+ } | {
10039
+ kind: WorkExecResultKind.codeOversize;
10040
+ }>;
10180
10041
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
10181
10042
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
10182
10043
  importedSegments: Descriptor<U32, U32>;
@@ -10241,9 +10102,9 @@ declare const protocol: LousyProtocol<{
10241
10102
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10242
10103
  }>>>;
10243
10104
  }> | null>;
10244
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10245
10105
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10246
10106
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10107
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10247
10108
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10248
10109
  }>>;
10249
10110
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10256,7 +10117,7 @@ declare const protocol: LousyProtocol<{
10256
10117
  blob: Descriptor<BytesBlob, BytesBlob>;
10257
10118
  }>>>;
10258
10119
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10259
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10120
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10260
10121
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10261
10122
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10262
10123
  length: Descriptor<U32, Bytes<4>>;
@@ -10285,7 +10146,22 @@ declare const protocol: LousyProtocol<{
10285
10146
  codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
10286
10147
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
10287
10148
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
10288
- result: Descriptor<WorkExecResult, WorkExecResult>;
10149
+ result: Descriptor<WorkExecResult, {
10150
+ kind: WorkExecResultKind.ok;
10151
+ okBlob: BytesBlob;
10152
+ } | {
10153
+ kind: WorkExecResultKind.outOfGas;
10154
+ } | {
10155
+ kind: WorkExecResultKind.panic;
10156
+ } | {
10157
+ kind: WorkExecResultKind.incorrectNumberOfExports;
10158
+ } | {
10159
+ kind: WorkExecResultKind.digestTooBig;
10160
+ } | {
10161
+ kind: WorkExecResultKind.badCode;
10162
+ } | {
10163
+ kind: WorkExecResultKind.codeOversize;
10164
+ }>;
10289
10165
  load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
10290
10166
  gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
10291
10167
  importedSegments: Descriptor<U32, U32>;
@@ -10358,9 +10234,9 @@ declare const protocol: LousyProtocol<{
10358
10234
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10359
10235
  }>>>;
10360
10236
  }> | null>;
10361
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10362
10237
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10363
10238
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10239
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10364
10240
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10365
10241
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
10366
10242
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10381,9 +10257,9 @@ declare const protocol: LousyProtocol<{
10381
10257
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10382
10258
  }>>>;
10383
10259
  }> | null>;
10384
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10385
10260
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10386
10261
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10262
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10387
10263
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10388
10264
  }>>, {
10389
10265
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10406,9 +10282,9 @@ declare const protocol: LousyProtocol<{
10406
10282
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10407
10283
  }>>>;
10408
10284
  }> | null>;
10409
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10410
10285
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10411
10286
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10287
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10412
10288
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10413
10289
  }>, ViewOf<Header & CodecRecord<Header>, {
10414
10290
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10429,9 +10305,9 @@ declare const protocol: LousyProtocol<{
10429
10305
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10430
10306
  }>>>;
10431
10307
  }> | null>;
10432
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10433
10308
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10434
10309
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10310
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10435
10311
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10436
10312
  }>>;
10437
10313
  }>>;
@@ -10441,13 +10317,11 @@ declare const protocol: LousyProtocol<{
10441
10317
  type ImporterInternal = Internal<typeof protocol>;
10442
10318
  type ImporterApi = Api<typeof protocol>;
10443
10319
  declare class ImporterConfig {
10444
- readonly omitSealVerification: boolean;
10445
10320
  readonly pvm: PvmBackend;
10446
10321
  static Codec: Descriptor<ImporterConfig, ViewOf<ImporterConfig, {
10447
- omitSealVerification: Descriptor<boolean, boolean>;
10448
10322
  pvm: Descriptor<PvmBackend, U8>;
10449
10323
  }>>;
10450
- static create({ omitSealVerification, pvm }: CodecRecord<ImporterConfig>): ImporterConfig;
10324
+ static create({ pvm }: CodecRecord<ImporterConfig>): ImporterConfig;
10451
10325
  private constructor();
10452
10326
  }
10453
10327
 
@@ -10480,19 +10354,274 @@ declare function createMetrics(): {
10480
10354
 
10481
10355
  declare const WORKER: url.URL;
10482
10356
 
10483
- type index$6_Config = Config;
10484
- type index$6_ImporterApi = ImporterApi;
10485
- type index$6_ImporterConfig = ImporterConfig;
10486
- declare const index$6_ImporterConfig: typeof ImporterConfig;
10487
- type index$6_ImporterInternal = ImporterInternal;
10488
- declare const index$6_WORKER: typeof WORKER;
10489
- declare const index$6_createImporter: typeof createImporter;
10490
- declare const index$6_createMetrics: typeof createMetrics;
10491
- declare const index$6_main: typeof main;
10492
- declare const index$6_protocol: typeof protocol;
10493
- declare namespace index$6 {
10494
- 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 };
10495
- 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 };
10496
10625
  }
10497
10626
 
10498
10627
  declare enum ArgumentType {
@@ -10694,35 +10823,35 @@ declare class NibblesDecoder {
10694
10823
 
10695
10824
  declare const instructionArgumentTypeMap: ArgumentType[];
10696
10825
 
10697
- type index$5_Args = Args;
10698
- type index$5_ArgsDecoder = ArgsDecoder;
10699
- declare const index$5_ArgsDecoder: typeof ArgsDecoder;
10700
- type index$5_ArgumentType = ArgumentType;
10701
- declare const index$5_ArgumentType: typeof ArgumentType;
10702
- type index$5_EmptyArgs = EmptyArgs;
10703
- type index$5_ExtendedWitdthImmediateDecoder = ExtendedWitdthImmediateDecoder;
10704
- declare const index$5_ExtendedWitdthImmediateDecoder: typeof ExtendedWitdthImmediateDecoder;
10705
- type index$5_ImmediateDecoder = ImmediateDecoder;
10706
- declare const index$5_ImmediateDecoder: typeof ImmediateDecoder;
10707
- type index$5_NibblesDecoder = NibblesDecoder;
10708
- declare const index$5_NibblesDecoder: typeof NibblesDecoder;
10709
- type index$5_OneImmediateArgs = OneImmediateArgs;
10710
- type index$5_OneOffsetArgs = OneOffsetArgs;
10711
- type index$5_OneRegisterOneExtendedWidthImmediateArgs = OneRegisterOneExtendedWidthImmediateArgs;
10712
- type index$5_OneRegisterOneImmediateArgs = OneRegisterOneImmediateArgs;
10713
- type index$5_OneRegisterOneImmediateOneOffsetArgs = OneRegisterOneImmediateOneOffsetArgs;
10714
- type index$5_OneRegisterTwoImmediatesArgs = OneRegisterTwoImmediatesArgs;
10715
- type index$5_ThreeRegistersArgs = ThreeRegistersArgs;
10716
- type index$5_TwoImmediatesArgs = TwoImmediatesArgs;
10717
- type index$5_TwoRegistersArgs = TwoRegistersArgs;
10718
- type index$5_TwoRegistersOneImmediateArgs = TwoRegistersOneImmediateArgs;
10719
- type index$5_TwoRegistersOneOffsetArgs = TwoRegistersOneOffsetArgs;
10720
- type index$5_TwoRegistersTwoImmediatesArgs = TwoRegistersTwoImmediatesArgs;
10721
- declare const index$5_createResults: typeof createResults;
10722
- declare const index$5_instructionArgumentTypeMap: typeof instructionArgumentTypeMap;
10723
- declare namespace index$5 {
10724
- 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 };
10725
- 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 };
10726
10855
  }
10727
10856
 
10728
10857
  declare class BasicBlocks {
@@ -10895,7 +11024,7 @@ declare class Interpreter implements IPvmInterpreter {
10895
11024
  constructor({ useSbrkGas }?: InterpreterOptions);
10896
11025
  resetJam(program: Uint8Array, args: Uint8Array, pc: number, gas: Gas, hasMetadata?: boolean): void;
10897
11026
  resetGeneric(rawProgram: Uint8Array, pc: number, gas: Gas, maybeRegisters?: Registers, maybeMemory?: Memory): void;
10898
- printProgram(): (string | number)[][];
11027
+ dumpProgram(): (string | number)[][];
10899
11028
  runProgram(): void;
10900
11029
  nextStep(): Status;
10901
11030
  getPC(): number;
@@ -10969,72 +11098,81 @@ declare const LAST_PAGE = 4294901760;
10969
11098
  declare function alignToSegmentSize(size: number): number;
10970
11099
  declare function alignToPageSize(size: number): number;
10971
11100
 
10972
- declare const index$4_ARGS_SEGMENT: typeof ARGS_SEGMENT;
10973
- declare const index$4_DATA_LEGNTH: typeof DATA_LEGNTH;
10974
- declare const index$4_LAST_PAGE: typeof LAST_PAGE;
10975
- type index$4_MemorySegment = MemorySegment;
10976
- declare const index$4_MemorySegment: typeof MemorySegment;
10977
- declare const index$4_PAGE_SIZE: typeof PAGE_SIZE;
10978
- declare const index$4_SEGMENT_SIZE: typeof SEGMENT_SIZE;
10979
- declare const index$4_STACK_SEGMENT: typeof STACK_SEGMENT;
10980
- type index$4_SpiMemory = SpiMemory;
10981
- declare const index$4_SpiMemory: typeof SpiMemory;
10982
- type index$4_SpiProgram = SpiProgram;
10983
- declare const index$4_SpiProgram: typeof SpiProgram;
10984
- declare const index$4_alignToPageSize: typeof alignToPageSize;
10985
- declare const index$4_alignToSegmentSize: typeof alignToSegmentSize;
10986
- declare const index$4_decodeStandardProgram: typeof decodeStandardProgram;
10987
- 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 {
10988
11117
  export {
10989
- index$4_ARGS_SEGMENT as ARGS_SEGMENT,
10990
- index$4_DATA_LEGNTH as DATA_LEGNTH,
10991
- index$4_LAST_PAGE as LAST_PAGE,
10992
- index$4_MemorySegment as MemorySegment,
10993
- index$4_PAGE_SIZE as PAGE_SIZE,
10994
- index$4_SEGMENT_SIZE as SEGMENT_SIZE,
10995
- index$4_STACK_SEGMENT as STACK_SEGMENT,
10996
- index$4_SpiMemory as SpiMemory,
10997
- index$4_SpiProgram as SpiProgram,
10998
- index$4_alignToPageSize as alignToPageSize,
10999
- index$4_alignToSegmentSize as alignToSegmentSize,
11000
- 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,
11001
11130
  };
11002
11131
  }
11003
11132
 
11004
- type index$3_BasicBlocks = BasicBlocks;
11005
- declare const index$3_BasicBlocks: typeof BasicBlocks;
11006
- type index$3_DebuggerAdapter = DebuggerAdapter;
11007
- declare const index$3_DebuggerAdapter: typeof DebuggerAdapter;
11008
- type index$3_Interpreter = Interpreter;
11009
- declare const index$3_Interpreter: typeof Interpreter;
11010
- type index$3_JumpTable = JumpTable;
11011
- declare const index$3_JumpTable: typeof JumpTable;
11012
- type index$3_Mask = Mask;
11013
- declare const index$3_Mask: typeof Mask;
11014
- type index$3_Memory = Memory;
11015
- declare const index$3_Memory: typeof Memory;
11016
- type index$3_MemoryBuilder = MemoryBuilder;
11017
- declare const index$3_MemoryBuilder: typeof MemoryBuilder;
11018
- type index$3_MemoryIndex = MemoryIndex;
11019
- type index$3_Program = Program;
11020
- declare const index$3_Program: typeof Program;
11021
- type index$3_ProgramDecoder = ProgramDecoder;
11022
- declare const index$3_ProgramDecoder: typeof ProgramDecoder;
11023
- type index$3_ProgramDecoderError = ProgramDecoderError;
11024
- declare const index$3_ProgramDecoderError: typeof ProgramDecoderError;
11025
- type index$3_RegisterIndex = RegisterIndex;
11026
- type index$3_Registers = Registers;
11027
- declare const index$3_Registers: typeof Registers;
11028
- type index$3_SbrkIndex = SbrkIndex;
11029
- declare const index$3_extractCodeAndMetadata: typeof extractCodeAndMetadata;
11030
- declare const index$3_gasCounter: typeof gasCounter;
11031
- declare const index$3_signExtend32To64: typeof signExtend32To64;
11032
- declare const index$3_tryAsMemoryIndex: typeof tryAsMemoryIndex;
11033
- declare const index$3_tryAsRegisterIndex: typeof tryAsRegisterIndex;
11034
- declare const index$3_tryAsSbrkIndex: typeof tryAsSbrkIndex;
11035
- declare namespace index$3 {
11036
- 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 };
11037
- 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 };
11038
11176
  }
11039
11177
 
11040
11178
  declare const ENTROPY_BYTES = 32;
@@ -11046,13 +11184,141 @@ type ENTROPY_BYTES = typeof ENTROPY_BYTES;
11046
11184
  */
11047
11185
  declare function fisherYatesShuffle<T>(blake2b: Blake2b, arr: T[], entropy: Bytes<ENTROPY_BYTES>): T[];
11048
11186
 
11049
- declare const index$2_fisherYatesShuffle: typeof fisherYatesShuffle;
11050
- 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 {
11051
11198
  export {
11052
- index$2_fisherYatesShuffle as fisherYatesShuffle,
11199
+ shuffling_fisherYatesShuffle as fisherYatesShuffle,
11053
11200
  };
11054
11201
  }
11055
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
+
11056
11322
  declare class JsonPreimageItem {
11057
11323
  static fromJson: FromJsonWithParser<unknown, PreimageItem>;
11058
11324
  hash: PreimageHash;
@@ -11134,29 +11400,75 @@ declare class JsonStatisticsData {
11134
11400
 
11135
11401
  declare const validatorDataFromJson: FromJsonWithParser<unknown, ValidatorData>;
11136
11402
 
11137
- type index$1_JsonCoreStatistics = JsonCoreStatistics;
11138
- declare const index$1_JsonCoreStatistics: typeof JsonCoreStatistics;
11139
- type index$1_JsonService = JsonService;
11140
- declare const index$1_JsonService: typeof JsonService;
11141
- type index$1_JsonStatisticsData = JsonStatisticsData;
11142
- declare const index$1_JsonStatisticsData: typeof JsonStatisticsData;
11143
- type index$1_JsonValidatorStatistics = JsonValidatorStatistics;
11144
- declare const index$1_JsonValidatorStatistics: typeof JsonValidatorStatistics;
11145
- type index$1_ServiceStatisticsEntry = ServiceStatisticsEntry;
11146
- type index$1_TicketsOrKeys = TicketsOrKeys;
11147
- declare const index$1_TicketsOrKeys: typeof TicketsOrKeys;
11148
- declare const index$1_availabilityAssignmentFromJson: typeof availabilityAssignmentFromJson;
11149
- declare const index$1_disputesRecordsFromJson: typeof disputesRecordsFromJson;
11150
- declare const index$1_fullStateDumpFromJson: typeof fullStateDumpFromJson;
11151
- declare const index$1_notYetAccumulatedFromJson: typeof notYetAccumulatedFromJson;
11152
- declare const index$1_recentBlocksHistoryFromJson: typeof recentBlocksHistoryFromJson;
11153
- declare const index$1_reportedWorkPackageFromJson: typeof reportedWorkPackageFromJson;
11154
- declare const index$1_serviceStatisticsEntryFromJson: typeof serviceStatisticsEntryFromJson;
11155
- declare const index$1_ticketFromJson: typeof ticketFromJson;
11156
- declare const index$1_validatorDataFromJson: typeof validatorDataFromJson;
11157
- declare namespace index$1 {
11158
- 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 };
11159
- 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 };
11160
11472
  }
11161
11473
 
11162
11474
  declare class StateKeyVal {
@@ -11250,21 +11562,256 @@ declare class StateTransition {
11250
11562
  block: Block;
11251
11563
  }
11252
11564
 
11253
- type index_StateKeyVal = StateKeyVal;
11254
- declare const index_StateKeyVal: typeof StateKeyVal;
11255
- type index_StateTransition = StateTransition;
11256
- declare const index_StateTransition: typeof StateTransition;
11257
- type index_StateTransitionGenesis = StateTransitionGenesis;
11258
- declare const index_StateTransitionGenesis: typeof StateTransitionGenesis;
11259
- type index_TestState = TestState;
11260
- declare const index_TestState: typeof TestState;
11261
- 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 {
11262
11583
  export {
11263
- index_StateKeyVal as StateKeyVal,
11264
- index_StateTransition as StateTransition,
11265
- index_StateTransitionGenesis as StateTransitionGenesis,
11266
- index_TestState as TestState,
11584
+ stateVectors_StateKeyVal as StateKeyVal,
11585
+ stateVectors_StateTransition as StateTransition,
11586
+ stateVectors_StateTransitionGenesis as StateTransitionGenesis,
11587
+ stateVectors_TestState as TestState,
11267
11588
  };
11268
11589
  }
11269
11590
 
11270
- export { 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 };
11817
+ export type { WithBytesRepresentation, WithOpaque };