@typeberry/lib 0.1.2 → 0.1.3-707962d

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.
package/index.d.ts CHANGED
@@ -708,59 +708,59 @@ declare function isResult(x: unknown): x is Result$2<unknown, unknown> {
708
708
  * as an afterthought.
709
709
  */
710
710
 
711
- declare const index$s_ALL_VERSIONS_IN_ORDER: typeof ALL_VERSIONS_IN_ORDER;
712
- declare const index$s_CURRENT_SUITE: typeof CURRENT_SUITE;
713
- declare const index$s_CURRENT_VERSION: typeof CURRENT_VERSION;
714
- type index$s_Compatibility = Compatibility;
715
- declare const index$s_Compatibility: typeof Compatibility;
716
- declare const index$s_DEFAULT_SUITE: typeof DEFAULT_SUITE;
717
- declare const index$s_DEFAULT_VERSION: typeof DEFAULT_VERSION;
718
- type index$s_DeepEqualOptions = DeepEqualOptions;
719
- type index$s_EnumMapping = EnumMapping;
720
- type index$s_ErrorResult<Error> = ErrorResult<Error>;
721
- type index$s_ErrorsCollector = ErrorsCollector;
722
- declare const index$s_ErrorsCollector: typeof ErrorsCollector;
723
- type index$s_GpVersion = GpVersion;
724
- declare const index$s_GpVersion: typeof GpVersion;
725
- type index$s_OK = OK;
726
- type index$s_OkResult<Ok> = OkResult<Ok>;
727
- type index$s_Opaque<Type, Token extends string> = Opaque<Type, Token>;
728
- type index$s_RichTaggedError<Kind extends string | number, Nested> = RichTaggedError<Kind, Nested>;
729
- declare const index$s_RichTaggedError: typeof RichTaggedError;
730
- type index$s_StringLiteral<Type> = StringLiteral<Type>;
731
- declare const index$s_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
732
- type index$s_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
733
- type index$s_TestSuite = TestSuite;
734
- declare const index$s_TestSuite: typeof TestSuite;
735
- type index$s_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
736
- type index$s_Uninstantiable = Uninstantiable;
737
- type index$s_WithDebug = WithDebug;
738
- declare const index$s_WithDebug: typeof WithDebug;
739
- type index$s_WithOpaque<Token extends string> = WithOpaque<Token>;
740
- declare const index$s___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
741
- declare const index$s_asOpaqueType: typeof asOpaqueType;
742
- declare const index$s_assertEmpty: typeof assertEmpty;
743
- declare const index$s_assertNever: typeof assertNever;
744
- declare const index$s_callCompareFunction: typeof callCompareFunction;
745
- declare const index$s_check: typeof check;
746
- declare const index$s_deepEqual: typeof deepEqual;
747
- declare const index$s_getAllKeysSorted: typeof getAllKeysSorted;
748
- declare const index$s_inspect: typeof inspect;
749
- declare const index$s_isBrowser: typeof isBrowser;
750
- declare const index$s_isResult: typeof isResult;
751
- declare const index$s_isTaggedError: typeof isTaggedError;
752
- declare const index$s_maybeTaggedErrorToString: typeof maybeTaggedErrorToString;
753
- declare const index$s_measure: typeof measure;
754
- declare const index$s_oomWarningPrinted: typeof oomWarningPrinted;
755
- declare const index$s_parseCurrentSuite: typeof parseCurrentSuite;
756
- declare const index$s_parseCurrentVersion: typeof parseCurrentVersion;
757
- declare const index$s_resultToString: typeof resultToString;
758
- declare const index$s_seeThrough: typeof seeThrough;
759
- declare const index$s_trimStack: typeof trimStack;
760
- declare const index$s_workspacePathFix: typeof workspacePathFix;
761
- declare namespace index$s {
762
- export { index$s_ALL_VERSIONS_IN_ORDER as ALL_VERSIONS_IN_ORDER, index$s_CURRENT_SUITE as CURRENT_SUITE, index$s_CURRENT_VERSION as CURRENT_VERSION, index$s_Compatibility as Compatibility, index$s_DEFAULT_SUITE as DEFAULT_SUITE, index$s_DEFAULT_VERSION as DEFAULT_VERSION, index$s_ErrorsCollector as ErrorsCollector, index$s_GpVersion as GpVersion, Result$2 as Result, index$s_RichTaggedError as RichTaggedError, index$s_TEST_COMPARE_USING as TEST_COMPARE_USING, index$s_TestSuite as TestSuite, index$s_WithDebug as WithDebug, index$s___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$s_asOpaqueType as asOpaqueType, index$s_assertEmpty as assertEmpty, index$s_assertNever as assertNever, index$s_callCompareFunction as callCompareFunction, index$s_check as check, index$s_deepEqual as deepEqual, index$s_getAllKeysSorted as getAllKeysSorted, index$s_inspect as inspect, index$s_isBrowser as isBrowser, index$s_isResult as isResult, index$s_isTaggedError as isTaggedError, index$s_maybeTaggedErrorToString as maybeTaggedErrorToString, index$s_measure as measure, index$s_oomWarningPrinted as oomWarningPrinted, index$s_parseCurrentSuite as parseCurrentSuite, index$s_parseCurrentVersion as parseCurrentVersion, index$s_resultToString as resultToString, index$s_seeThrough as seeThrough, index$s_trimStack as trimStack, index$s_workspacePathFix as workspacePathFix };
763
- export type { index$s_DeepEqualOptions as DeepEqualOptions, index$s_EnumMapping as EnumMapping, index$s_ErrorResult as ErrorResult, index$s_OK as OK, index$s_OkResult as OkResult, index$s_Opaque as Opaque, index$s_StringLiteral as StringLiteral, index$s_TaggedError as TaggedError, index$s_TokenOf as TokenOf, index$s_Uninstantiable as Uninstantiable, index$s_WithOpaque as WithOpaque };
711
+ declare const index$u_ALL_VERSIONS_IN_ORDER: typeof ALL_VERSIONS_IN_ORDER;
712
+ declare const index$u_CURRENT_SUITE: typeof CURRENT_SUITE;
713
+ declare const index$u_CURRENT_VERSION: typeof CURRENT_VERSION;
714
+ type index$u_Compatibility = Compatibility;
715
+ declare const index$u_Compatibility: typeof Compatibility;
716
+ declare const index$u_DEFAULT_SUITE: typeof DEFAULT_SUITE;
717
+ declare const index$u_DEFAULT_VERSION: typeof DEFAULT_VERSION;
718
+ type index$u_DeepEqualOptions = DeepEqualOptions;
719
+ type index$u_EnumMapping = EnumMapping;
720
+ type index$u_ErrorResult<Error> = ErrorResult<Error>;
721
+ type index$u_ErrorsCollector = ErrorsCollector;
722
+ declare const index$u_ErrorsCollector: typeof ErrorsCollector;
723
+ type index$u_GpVersion = GpVersion;
724
+ declare const index$u_GpVersion: typeof GpVersion;
725
+ type index$u_OK = OK;
726
+ type index$u_OkResult<Ok> = OkResult<Ok>;
727
+ type index$u_Opaque<Type, Token extends string> = Opaque<Type, Token>;
728
+ type index$u_RichTaggedError<Kind extends string | number, Nested> = RichTaggedError<Kind, Nested>;
729
+ declare const index$u_RichTaggedError: typeof RichTaggedError;
730
+ type index$u_StringLiteral<Type> = StringLiteral<Type>;
731
+ declare const index$u_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
732
+ type index$u_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
733
+ type index$u_TestSuite = TestSuite;
734
+ declare const index$u_TestSuite: typeof TestSuite;
735
+ type index$u_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
736
+ type index$u_Uninstantiable = Uninstantiable;
737
+ type index$u_WithDebug = WithDebug;
738
+ declare const index$u_WithDebug: typeof WithDebug;
739
+ type index$u_WithOpaque<Token extends string> = WithOpaque<Token>;
740
+ declare const index$u___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
741
+ declare const index$u_asOpaqueType: typeof asOpaqueType;
742
+ declare const index$u_assertEmpty: typeof assertEmpty;
743
+ declare const index$u_assertNever: typeof assertNever;
744
+ declare const index$u_callCompareFunction: typeof callCompareFunction;
745
+ declare const index$u_check: typeof check;
746
+ declare const index$u_deepEqual: typeof deepEqual;
747
+ declare const index$u_getAllKeysSorted: typeof getAllKeysSorted;
748
+ declare const index$u_inspect: typeof inspect;
749
+ declare const index$u_isBrowser: typeof isBrowser;
750
+ declare const index$u_isResult: typeof isResult;
751
+ declare const index$u_isTaggedError: typeof isTaggedError;
752
+ declare const index$u_maybeTaggedErrorToString: typeof maybeTaggedErrorToString;
753
+ declare const index$u_measure: typeof measure;
754
+ declare const index$u_oomWarningPrinted: typeof oomWarningPrinted;
755
+ declare const index$u_parseCurrentSuite: typeof parseCurrentSuite;
756
+ declare const index$u_parseCurrentVersion: typeof parseCurrentVersion;
757
+ declare const index$u_resultToString: typeof resultToString;
758
+ declare const index$u_seeThrough: typeof seeThrough;
759
+ declare const index$u_trimStack: typeof trimStack;
760
+ declare const index$u_workspacePathFix: typeof workspacePathFix;
761
+ declare namespace index$u {
762
+ export { index$u_ALL_VERSIONS_IN_ORDER as ALL_VERSIONS_IN_ORDER, index$u_CURRENT_SUITE as CURRENT_SUITE, index$u_CURRENT_VERSION as CURRENT_VERSION, index$u_Compatibility as Compatibility, index$u_DEFAULT_SUITE as DEFAULT_SUITE, index$u_DEFAULT_VERSION as DEFAULT_VERSION, index$u_ErrorsCollector as ErrorsCollector, index$u_GpVersion as GpVersion, Result$2 as Result, index$u_RichTaggedError as RichTaggedError, index$u_TEST_COMPARE_USING as TEST_COMPARE_USING, index$u_TestSuite as TestSuite, index$u_WithDebug as WithDebug, index$u___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$u_asOpaqueType as asOpaqueType, index$u_assertEmpty as assertEmpty, index$u_assertNever as assertNever, index$u_callCompareFunction as callCompareFunction, index$u_check as check, index$u_deepEqual as deepEqual, index$u_getAllKeysSorted as getAllKeysSorted, index$u_inspect as inspect, index$u_isBrowser as isBrowser, index$u_isResult as isResult, index$u_isTaggedError as isTaggedError, index$u_maybeTaggedErrorToString as maybeTaggedErrorToString, index$u_measure as measure, index$u_oomWarningPrinted as oomWarningPrinted, index$u_parseCurrentSuite as parseCurrentSuite, index$u_parseCurrentVersion as parseCurrentVersion, index$u_resultToString as resultToString, index$u_seeThrough as seeThrough, index$u_trimStack as trimStack, index$u_workspacePathFix as workspacePathFix };
763
+ export type { index$u_DeepEqualOptions as DeepEqualOptions, index$u_EnumMapping as EnumMapping, index$u_ErrorResult as ErrorResult, index$u_OK as OK, index$u_OkResult as OkResult, index$u_Opaque as Opaque, index$u_StringLiteral as StringLiteral, index$u_TaggedError as TaggedError, index$u_TokenOf as TokenOf, index$u_Uninstantiable as Uninstantiable, index$u_WithOpaque as WithOpaque };
764
764
  }
765
765
 
766
766
  /** A return value of some comparator. */
@@ -813,14 +813,14 @@ declare class Ordering {
813
813
  */
814
814
  type Comparator<V> = (self: V, other: V) => Ordering;
815
815
 
816
- type index$r_Comparator<V> = Comparator<V>;
817
- type index$r_Ordering = Ordering;
818
- declare const index$r_Ordering: typeof Ordering;
819
- type index$r_OrderingValue = OrderingValue;
820
- declare const index$r_OrderingValue: typeof OrderingValue;
821
- declare namespace index$r {
822
- export { index$r_Ordering as Ordering, index$r_OrderingValue as OrderingValue };
823
- export type { index$r_Comparator as Comparator };
816
+ type index$t_Comparator<V> = Comparator<V>;
817
+ type index$t_Ordering = Ordering;
818
+ declare const index$t_Ordering: typeof Ordering;
819
+ type index$t_OrderingValue = OrderingValue;
820
+ declare const index$t_OrderingValue: typeof OrderingValue;
821
+ declare namespace index$t {
822
+ export { index$t_Ordering as Ordering, index$t_OrderingValue as OrderingValue };
823
+ export type { index$t_Comparator as Comparator };
824
824
  }
825
825
 
826
826
  // TODO: [MaSo] Update BytesBlob and Bytes, so they return Result (not throw error)
@@ -1213,41 +1213,41 @@ declare class BitVec {
1213
1213
  }
1214
1214
  }
1215
1215
 
1216
- type index$q_BitVec = BitVec;
1217
- declare const index$q_BitVec: typeof BitVec;
1218
- type index$q_Bytes<T extends number> = Bytes<T>;
1219
- declare const index$q_Bytes: typeof Bytes;
1220
- type index$q_BytesBlob = BytesBlob;
1221
- declare const index$q_BytesBlob: typeof BytesBlob;
1222
- declare const index$q_CODE_OF_0: typeof CODE_OF_0;
1223
- declare const index$q_CODE_OF_9: typeof CODE_OF_9;
1224
- declare const index$q_CODE_OF_A: typeof CODE_OF_A;
1225
- declare const index$q_CODE_OF_F: typeof CODE_OF_F;
1226
- declare const index$q_CODE_OF_a: typeof CODE_OF_a;
1227
- declare const index$q_CODE_OF_f: typeof CODE_OF_f;
1228
- declare const index$q_VALUE_OF_A: typeof VALUE_OF_A;
1229
- declare const index$q_byteFromString: typeof byteFromString;
1230
- declare const index$q_bytesBlobComparator: typeof bytesBlobComparator;
1231
- declare const index$q_bytesToHexString: typeof bytesToHexString;
1232
- declare const index$q_numberFromCharCode: typeof numberFromCharCode;
1233
- declare const index$q_u8ArraySameLengthEqual: typeof u8ArraySameLengthEqual;
1234
- declare namespace index$q {
1216
+ type index$s_BitVec = BitVec;
1217
+ declare const index$s_BitVec: typeof BitVec;
1218
+ type index$s_Bytes<T extends number> = Bytes<T>;
1219
+ declare const index$s_Bytes: typeof Bytes;
1220
+ type index$s_BytesBlob = BytesBlob;
1221
+ declare const index$s_BytesBlob: typeof BytesBlob;
1222
+ declare const index$s_CODE_OF_0: typeof CODE_OF_0;
1223
+ declare const index$s_CODE_OF_9: typeof CODE_OF_9;
1224
+ declare const index$s_CODE_OF_A: typeof CODE_OF_A;
1225
+ declare const index$s_CODE_OF_F: typeof CODE_OF_F;
1226
+ declare const index$s_CODE_OF_a: typeof CODE_OF_a;
1227
+ declare const index$s_CODE_OF_f: typeof CODE_OF_f;
1228
+ declare const index$s_VALUE_OF_A: typeof VALUE_OF_A;
1229
+ declare const index$s_byteFromString: typeof byteFromString;
1230
+ declare const index$s_bytesBlobComparator: typeof bytesBlobComparator;
1231
+ declare const index$s_bytesToHexString: typeof bytesToHexString;
1232
+ declare const index$s_numberFromCharCode: typeof numberFromCharCode;
1233
+ declare const index$s_u8ArraySameLengthEqual: typeof u8ArraySameLengthEqual;
1234
+ declare namespace index$s {
1235
1235
  export {
1236
- index$q_BitVec as BitVec,
1237
- index$q_Bytes as Bytes,
1238
- index$q_BytesBlob as BytesBlob,
1239
- index$q_CODE_OF_0 as CODE_OF_0,
1240
- index$q_CODE_OF_9 as CODE_OF_9,
1241
- index$q_CODE_OF_A as CODE_OF_A,
1242
- index$q_CODE_OF_F as CODE_OF_F,
1243
- index$q_CODE_OF_a as CODE_OF_a,
1244
- index$q_CODE_OF_f as CODE_OF_f,
1245
- index$q_VALUE_OF_A as VALUE_OF_A,
1246
- index$q_byteFromString as byteFromString,
1247
- index$q_bytesBlobComparator as bytesBlobComparator,
1248
- index$q_bytesToHexString as bytesToHexString,
1249
- index$q_numberFromCharCode as numberFromCharCode,
1250
- index$q_u8ArraySameLengthEqual as u8ArraySameLengthEqual,
1236
+ index$s_BitVec as BitVec,
1237
+ index$s_Bytes as Bytes,
1238
+ index$s_BytesBlob as BytesBlob,
1239
+ index$s_CODE_OF_0 as CODE_OF_0,
1240
+ index$s_CODE_OF_9 as CODE_OF_9,
1241
+ index$s_CODE_OF_A as CODE_OF_A,
1242
+ index$s_CODE_OF_F as CODE_OF_F,
1243
+ index$s_CODE_OF_a as CODE_OF_a,
1244
+ index$s_CODE_OF_f as CODE_OF_f,
1245
+ index$s_VALUE_OF_A as VALUE_OF_A,
1246
+ index$s_byteFromString as byteFromString,
1247
+ index$s_bytesBlobComparator as bytesBlobComparator,
1248
+ index$s_bytesToHexString as bytesToHexString,
1249
+ index$s_numberFromCharCode as numberFromCharCode,
1250
+ index$s_u8ArraySameLengthEqual as u8ArraySameLengthEqual,
1251
1251
  };
1252
1252
  }
1253
1253
 
@@ -1395,37 +1395,37 @@ declare const minU64 = (a: U64, ...values: U64[]): U64 => values.reduce((min, va
1395
1395
  /** Get the biggest value between U64 a and values given as input parameters. */
1396
1396
  declare const maxU64 = (a: U64, ...values: U64[]): U64 => values.reduce((max, value) => (value < max ? max : value), a);
1397
1397
 
1398
- type index$p_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
1399
- declare const index$p_MAX_VALUE_U16: typeof MAX_VALUE_U16;
1400
- declare const index$p_MAX_VALUE_U32: typeof MAX_VALUE_U32;
1401
- declare const index$p_MAX_VALUE_U64: typeof MAX_VALUE_U64;
1402
- declare const index$p_MAX_VALUE_U8: typeof MAX_VALUE_U8;
1403
- type index$p_U16 = U16;
1404
- type index$p_U32 = U32;
1405
- type index$p_U64 = U64;
1406
- type index$p_U8 = U8;
1407
- type index$p_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
1408
- declare const index$p___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
1409
- declare const index$p_asTypedNumber: typeof asTypedNumber;
1410
- declare const index$p_isU16: typeof isU16;
1411
- declare const index$p_isU32: typeof isU32;
1412
- declare const index$p_isU64: typeof isU64;
1413
- declare const index$p_isU8: typeof isU8;
1414
- declare const index$p_leBytesAsU32: typeof leBytesAsU32;
1415
- declare const index$p_maxU64: typeof maxU64;
1416
- declare const index$p_minU64: typeof minU64;
1417
- declare const index$p_sumU32: typeof sumU32;
1418
- declare const index$p_sumU64: typeof sumU64;
1419
- declare const index$p_tryAsU16: typeof tryAsU16;
1420
- declare const index$p_tryAsU32: typeof tryAsU32;
1421
- declare const index$p_tryAsU64: typeof tryAsU64;
1422
- declare const index$p_tryAsU8: typeof tryAsU8;
1423
- declare const index$p_u32AsLeBytes: typeof u32AsLeBytes;
1424
- declare const index$p_u64FromParts: typeof u64FromParts;
1425
- declare const index$p_u64IntoParts: typeof u64IntoParts;
1426
- declare namespace index$p {
1427
- export { index$p_MAX_VALUE_U16 as MAX_VALUE_U16, index$p_MAX_VALUE_U32 as MAX_VALUE_U32, index$p_MAX_VALUE_U64 as MAX_VALUE_U64, index$p_MAX_VALUE_U8 as MAX_VALUE_U8, index$p___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, index$p_asTypedNumber as asTypedNumber, index$p_isU16 as isU16, index$p_isU32 as isU32, index$p_isU64 as isU64, index$p_isU8 as isU8, index$p_leBytesAsU32 as leBytesAsU32, index$p_maxU64 as maxU64, index$p_minU64 as minU64, index$p_sumU32 as sumU32, index$p_sumU64 as sumU64, index$p_tryAsU16 as tryAsU16, index$p_tryAsU32 as tryAsU32, index$p_tryAsU64 as tryAsU64, index$p_tryAsU8 as tryAsU8, index$p_u32AsLeBytes as u32AsLeBytes, index$p_u64FromParts as u64FromParts, index$p_u64IntoParts as u64IntoParts };
1428
- export type { index$p_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, index$p_U16 as U16, index$p_U32 as U32, index$p_U64 as U64, index$p_U8 as U8, index$p_WithBytesRepresentation as WithBytesRepresentation };
1398
+ type index$r_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
1399
+ declare const index$r_MAX_VALUE_U16: typeof MAX_VALUE_U16;
1400
+ declare const index$r_MAX_VALUE_U32: typeof MAX_VALUE_U32;
1401
+ declare const index$r_MAX_VALUE_U64: typeof MAX_VALUE_U64;
1402
+ declare const index$r_MAX_VALUE_U8: typeof MAX_VALUE_U8;
1403
+ type index$r_U16 = U16;
1404
+ type index$r_U32 = U32;
1405
+ type index$r_U64 = U64;
1406
+ type index$r_U8 = U8;
1407
+ type index$r_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
1408
+ declare const index$r___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
1409
+ declare const index$r_asTypedNumber: typeof asTypedNumber;
1410
+ declare const index$r_isU16: typeof isU16;
1411
+ declare const index$r_isU32: typeof isU32;
1412
+ declare const index$r_isU64: typeof isU64;
1413
+ declare const index$r_isU8: typeof isU8;
1414
+ declare const index$r_leBytesAsU32: typeof leBytesAsU32;
1415
+ declare const index$r_maxU64: typeof maxU64;
1416
+ declare const index$r_minU64: typeof minU64;
1417
+ declare const index$r_sumU32: typeof sumU32;
1418
+ declare const index$r_sumU64: typeof sumU64;
1419
+ declare const index$r_tryAsU16: typeof tryAsU16;
1420
+ declare const index$r_tryAsU32: typeof tryAsU32;
1421
+ declare const index$r_tryAsU64: typeof tryAsU64;
1422
+ declare const index$r_tryAsU8: typeof tryAsU8;
1423
+ declare const index$r_u32AsLeBytes: typeof u32AsLeBytes;
1424
+ declare const index$r_u64FromParts: typeof u64FromParts;
1425
+ declare const index$r_u64IntoParts: typeof u64IntoParts;
1426
+ declare namespace index$r {
1427
+ export { index$r_MAX_VALUE_U16 as MAX_VALUE_U16, index$r_MAX_VALUE_U32 as MAX_VALUE_U32, index$r_MAX_VALUE_U64 as MAX_VALUE_U64, index$r_MAX_VALUE_U8 as MAX_VALUE_U8, index$r___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, index$r_asTypedNumber as asTypedNumber, index$r_isU16 as isU16, index$r_isU32 as isU32, index$r_isU64 as isU64, index$r_isU8 as isU8, index$r_leBytesAsU32 as leBytesAsU32, index$r_maxU64 as maxU64, index$r_minU64 as minU64, index$r_sumU32 as sumU32, index$r_sumU64 as sumU64, index$r_tryAsU16 as tryAsU16, index$r_tryAsU32 as tryAsU32, index$r_tryAsU64 as tryAsU64, index$r_tryAsU8 as tryAsU8, index$r_u32AsLeBytes as u32AsLeBytes, index$r_u64FromParts as u64FromParts, index$r_u64IntoParts as u64IntoParts };
1428
+ export type { index$r_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, index$r_U16 as U16, index$r_U32 as U32, index$r_U64 as U64, index$r_U8 as U8, index$r_WithBytesRepresentation as WithBytesRepresentation };
1429
1429
  }
1430
1430
 
1431
1431
  /** A decoder for some specific type `T` */
@@ -2527,6 +2527,7 @@ declare class ViewField<T, V> implements ViewField<T, V> {
2527
2527
  private cachedBlob: BytesBlob | undefined;
2528
2528
 
2529
2529
  constructor(
2530
+ private readonly name: string,
2530
2531
  private readonly getView: () => V,
2531
2532
  private readonly getValue: () => T,
2532
2533
  private readonly getEncoded: () => BytesBlob,
@@ -2555,6 +2556,10 @@ declare class ViewField<T, V> implements ViewField<T, V> {
2555
2556
  }
2556
2557
  return this.cachedBlob;
2557
2558
  }
2559
+
2560
+ toString() {
2561
+ return `ViewField<${this.name}>`;
2562
+ }
2558
2563
  }
2559
2564
 
2560
2565
  /**
@@ -2638,6 +2643,7 @@ declare abstract class ObjectView<T> {
2638
2643
  const field = this.descriptorsKeys[i];
2639
2644
  const type = this.descriptors[field as keyof DescriptorRecord<T>];
2640
2645
  lastItem = new ViewField(
2646
+ `${this.toString()}.${String(field)}`,
2641
2647
  () => type.View.decode(fieldDecoder.clone()),
2642
2648
  () => type.decode(fieldDecoder.clone()),
2643
2649
  () => type.skipEncoded(fieldDecoder.clone()),
@@ -2655,6 +2661,10 @@ declare abstract class ObjectView<T> {
2655
2661
 
2656
2662
  return lastItem as ViewField<T[K], unknown>;
2657
2663
  }
2664
+
2665
+ toString() {
2666
+ return `View<${this.materializedConstructor.name}>(cache: ${this.cache.size})`;
2667
+ }
2658
2668
  }
2659
2669
 
2660
2670
  /**
@@ -2755,6 +2765,7 @@ declare class SequenceView<T, V = T> {
2755
2765
  const fieldDecoder = skipper.decoder.clone();
2756
2766
  const type = this.descriptor;
2757
2767
  lastItem = new ViewField(
2768
+ `${this.toString()}[${index}]`,
2758
2769
  () => type.View.decode(fieldDecoder.clone()),
2759
2770
  () => type.decode(fieldDecoder.clone()),
2760
2771
  () => type.skipEncoded(fieldDecoder.clone()),
@@ -2771,6 +2782,10 @@ declare class SequenceView<T, V = T> {
2771
2782
  }
2772
2783
  return lastItem;
2773
2784
  }
2785
+
2786
+ toString() {
2787
+ return `SequenceView<${this.descriptor.name}>(cache: ${this.cache.size})`;
2788
+ }
2774
2789
  }
2775
2790
 
2776
2791
  /**
@@ -3400,50 +3415,50 @@ declare function sequenceViewFixLen<T, V>(
3400
3415
  );
3401
3416
  }
3402
3417
 
3403
- type index$o_ClassConstructor<T> = ClassConstructor<T>;
3404
- type index$o_Codec<T> = Codec<T>;
3405
- type index$o_CodecRecord<T> = CodecRecord<T>;
3406
- declare const index$o_DEFAULT_START_LENGTH: typeof DEFAULT_START_LENGTH;
3407
- type index$o_Decode<T> = Decode<T>;
3408
- type index$o_Decoder = Decoder;
3409
- declare const index$o_Decoder: typeof Decoder;
3410
- type index$o_DescribedBy<T> = DescribedBy<T>;
3411
- type index$o_Descriptor<T, V = T> = Descriptor<T, V>;
3412
- declare const index$o_Descriptor: typeof Descriptor;
3413
- type index$o_DescriptorRecord<T> = DescriptorRecord<T>;
3414
- type index$o_Encode<T> = Encode<T>;
3415
- type index$o_Encoder = Encoder;
3416
- declare const index$o_Encoder: typeof Encoder;
3417
- type index$o_LengthRange = LengthRange;
3418
- declare const index$o_MASKS: typeof MASKS;
3419
- declare const index$o_MAX_LENGTH: typeof MAX_LENGTH;
3420
- type index$o_ObjectView<T> = ObjectView<T>;
3421
- declare const index$o_ObjectView: typeof ObjectView;
3422
- type index$o_OptionalRecord<T> = OptionalRecord<T>;
3423
- type index$o_PropertyKeys<T> = PropertyKeys<T>;
3424
- type index$o_SequenceView<T, V = T> = SequenceView<T, V>;
3425
- declare const index$o_SequenceView: typeof SequenceView;
3426
- type index$o_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
3427
- type index$o_SizeHint = SizeHint;
3428
- declare const index$o_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
3429
- declare const index$o_TYPICAL_SEQUENCE_LENGTH: typeof TYPICAL_SEQUENCE_LENGTH;
3430
- type index$o_ViewField<T, V> = ViewField<T, V>;
3431
- declare const index$o_ViewField: typeof ViewField;
3432
- type index$o_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
3433
- declare const index$o_addSizeHints: typeof addSizeHints;
3434
- declare const index$o_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
3435
- declare const index$o_exactHint: typeof exactHint;
3436
- declare const index$o_forEachDescriptor: typeof forEachDescriptor;
3437
- declare const index$o_hasUniqueView: typeof hasUniqueView;
3438
- declare const index$o_objectView: typeof objectView;
3439
- declare const index$o_readonlyArray: typeof readonlyArray;
3440
- declare const index$o_sequenceViewFixLen: typeof sequenceViewFixLen;
3441
- declare const index$o_sequenceViewVarLen: typeof sequenceViewVarLen;
3442
- declare const index$o_tryAsExactBytes: typeof tryAsExactBytes;
3443
- declare const index$o_validateLength: typeof validateLength;
3444
- declare namespace index$o {
3445
- export { index$o_DEFAULT_START_LENGTH as DEFAULT_START_LENGTH, index$o_Decoder as Decoder, index$o_Descriptor as Descriptor, index$o_Encoder as Encoder, index$o_MASKS as MASKS, index$o_MAX_LENGTH as MAX_LENGTH, index$o_ObjectView as ObjectView, index$o_SequenceView as SequenceView, index$o_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, index$o_TYPICAL_SEQUENCE_LENGTH as TYPICAL_SEQUENCE_LENGTH, index$o_ViewField as ViewField, index$o_addSizeHints as addSizeHints, codec$1 as codec, index$o_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$o_exactHint as exactHint, index$o_forEachDescriptor as forEachDescriptor, index$o_hasUniqueView as hasUniqueView, index$o_objectView as objectView, index$o_readonlyArray as readonlyArray, index$o_sequenceViewFixLen as sequenceViewFixLen, index$o_sequenceViewVarLen as sequenceViewVarLen, index$o_tryAsExactBytes as tryAsExactBytes, index$o_validateLength as validateLength };
3446
- export type { index$o_ClassConstructor as ClassConstructor, index$o_Codec as Codec, index$o_CodecRecord as CodecRecord, index$o_Decode as Decode, index$o_DescribedBy as DescribedBy, index$o_DescriptorRecord as DescriptorRecord, index$o_Encode as Encode, index$o_LengthRange as LengthRange, index$o_OptionalRecord as OptionalRecord, Options$1 as Options, index$o_PropertyKeys as PropertyKeys, index$o_SimpleDescriptorRecord as SimpleDescriptorRecord, index$o_SizeHint as SizeHint, index$o_ViewOf as ViewOf };
3418
+ type index$q_ClassConstructor<T> = ClassConstructor<T>;
3419
+ type index$q_Codec<T> = Codec<T>;
3420
+ type index$q_CodecRecord<T> = CodecRecord<T>;
3421
+ declare const index$q_DEFAULT_START_LENGTH: typeof DEFAULT_START_LENGTH;
3422
+ type index$q_Decode<T> = Decode<T>;
3423
+ type index$q_Decoder = Decoder;
3424
+ declare const index$q_Decoder: typeof Decoder;
3425
+ type index$q_DescribedBy<T> = DescribedBy<T>;
3426
+ type index$q_Descriptor<T, V = T> = Descriptor<T, V>;
3427
+ declare const index$q_Descriptor: typeof Descriptor;
3428
+ type index$q_DescriptorRecord<T> = DescriptorRecord<T>;
3429
+ type index$q_Encode<T> = Encode<T>;
3430
+ type index$q_Encoder = Encoder;
3431
+ declare const index$q_Encoder: typeof Encoder;
3432
+ type index$q_LengthRange = LengthRange;
3433
+ declare const index$q_MASKS: typeof MASKS;
3434
+ declare const index$q_MAX_LENGTH: typeof MAX_LENGTH;
3435
+ type index$q_ObjectView<T> = ObjectView<T>;
3436
+ declare const index$q_ObjectView: typeof ObjectView;
3437
+ type index$q_OptionalRecord<T> = OptionalRecord<T>;
3438
+ type index$q_PropertyKeys<T> = PropertyKeys<T>;
3439
+ type index$q_SequenceView<T, V = T> = SequenceView<T, V>;
3440
+ declare const index$q_SequenceView: typeof SequenceView;
3441
+ type index$q_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
3442
+ type index$q_SizeHint = SizeHint;
3443
+ declare const index$q_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
3444
+ declare const index$q_TYPICAL_SEQUENCE_LENGTH: typeof TYPICAL_SEQUENCE_LENGTH;
3445
+ type index$q_ViewField<T, V> = ViewField<T, V>;
3446
+ declare const index$q_ViewField: typeof ViewField;
3447
+ type index$q_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
3448
+ declare const index$q_addSizeHints: typeof addSizeHints;
3449
+ declare const index$q_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
3450
+ declare const index$q_exactHint: typeof exactHint;
3451
+ declare const index$q_forEachDescriptor: typeof forEachDescriptor;
3452
+ declare const index$q_hasUniqueView: typeof hasUniqueView;
3453
+ declare const index$q_objectView: typeof objectView;
3454
+ declare const index$q_readonlyArray: typeof readonlyArray;
3455
+ declare const index$q_sequenceViewFixLen: typeof sequenceViewFixLen;
3456
+ declare const index$q_sequenceViewVarLen: typeof sequenceViewVarLen;
3457
+ declare const index$q_tryAsExactBytes: typeof tryAsExactBytes;
3458
+ declare const index$q_validateLength: typeof validateLength;
3459
+ declare namespace index$q {
3460
+ export { index$q_DEFAULT_START_LENGTH as DEFAULT_START_LENGTH, index$q_Decoder as Decoder, index$q_Descriptor as Descriptor, index$q_Encoder as Encoder, index$q_MASKS as MASKS, index$q_MAX_LENGTH as MAX_LENGTH, index$q_ObjectView as ObjectView, index$q_SequenceView as SequenceView, index$q_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, index$q_TYPICAL_SEQUENCE_LENGTH as TYPICAL_SEQUENCE_LENGTH, index$q_ViewField as ViewField, index$q_addSizeHints as addSizeHints, codec$1 as codec, index$q_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$q_exactHint as exactHint, index$q_forEachDescriptor as forEachDescriptor, index$q_hasUniqueView as hasUniqueView, index$q_objectView as objectView, index$q_readonlyArray as readonlyArray, index$q_sequenceViewFixLen as sequenceViewFixLen, index$q_sequenceViewVarLen as sequenceViewVarLen, index$q_tryAsExactBytes as tryAsExactBytes, index$q_validateLength as validateLength };
3461
+ export type { index$q_ClassConstructor as ClassConstructor, index$q_Codec as Codec, index$q_CodecRecord as CodecRecord, index$q_Decode as Decode, index$q_DescribedBy as DescribedBy, index$q_DescriptorRecord as DescriptorRecord, index$q_Encode as Encode, index$q_LengthRange as LengthRange, index$q_OptionalRecord as OptionalRecord, Options$1 as Options, index$q_PropertyKeys as PropertyKeys, index$q_SimpleDescriptorRecord as SimpleDescriptorRecord, index$q_SizeHint as SizeHint, index$q_ViewOf as ViewOf };
3447
3462
  }
3448
3463
 
3449
3464
  /**
@@ -3666,28 +3681,28 @@ declare namespace keccak {
3666
3681
  };
3667
3682
  }
3668
3683
 
3669
- type index$n_Blake2bHash = Blake2bHash;
3670
- type index$n_HASH_SIZE = HASH_SIZE;
3671
- type index$n_HashAllocator = HashAllocator;
3672
- type index$n_KeccakHash = KeccakHash;
3673
- type index$n_OpaqueHash = OpaqueHash;
3674
- type index$n_PageAllocator = PageAllocator;
3675
- declare const index$n_PageAllocator: typeof PageAllocator;
3676
- type index$n_SimpleAllocator = SimpleAllocator;
3677
- declare const index$n_SimpleAllocator: typeof SimpleAllocator;
3678
- type index$n_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
3679
- type index$n_TruncatedHash = TruncatedHash;
3680
- type index$n_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
3681
- declare const index$n_WithHash: typeof WithHash;
3682
- type index$n_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
3683
- declare const index$n_WithHashAndBytes: typeof WithHashAndBytes;
3684
- declare const index$n_ZERO_HASH: typeof ZERO_HASH;
3685
- declare const index$n_blake2b: typeof blake2b;
3686
- declare const index$n_defaultAllocator: typeof defaultAllocator;
3687
- declare const index$n_keccak: typeof keccak;
3688
- declare namespace index$n {
3689
- export { index$n_PageAllocator as PageAllocator, index$n_SimpleAllocator as SimpleAllocator, index$n_WithHash as WithHash, index$n_WithHashAndBytes as WithHashAndBytes, index$n_ZERO_HASH as ZERO_HASH, index$n_blake2b as blake2b, index$n_defaultAllocator as defaultAllocator, index$n_keccak as keccak };
3690
- export type { index$n_Blake2bHash as Blake2bHash, index$n_HASH_SIZE as HASH_SIZE, index$n_HashAllocator as HashAllocator, index$n_KeccakHash as KeccakHash, index$n_OpaqueHash as OpaqueHash, index$n_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, index$n_TruncatedHash as TruncatedHash };
3684
+ type index$p_Blake2bHash = Blake2bHash;
3685
+ type index$p_HASH_SIZE = HASH_SIZE;
3686
+ type index$p_HashAllocator = HashAllocator;
3687
+ type index$p_KeccakHash = KeccakHash;
3688
+ type index$p_OpaqueHash = OpaqueHash;
3689
+ type index$p_PageAllocator = PageAllocator;
3690
+ declare const index$p_PageAllocator: typeof PageAllocator;
3691
+ type index$p_SimpleAllocator = SimpleAllocator;
3692
+ declare const index$p_SimpleAllocator: typeof SimpleAllocator;
3693
+ type index$p_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
3694
+ type index$p_TruncatedHash = TruncatedHash;
3695
+ type index$p_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
3696
+ declare const index$p_WithHash: typeof WithHash;
3697
+ type index$p_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
3698
+ declare const index$p_WithHashAndBytes: typeof WithHashAndBytes;
3699
+ declare const index$p_ZERO_HASH: typeof ZERO_HASH;
3700
+ declare const index$p_blake2b: typeof blake2b;
3701
+ declare const index$p_defaultAllocator: typeof defaultAllocator;
3702
+ declare const index$p_keccak: typeof keccak;
3703
+ declare namespace index$p {
3704
+ export { index$p_PageAllocator as PageAllocator, index$p_SimpleAllocator as SimpleAllocator, index$p_WithHash as WithHash, index$p_WithHashAndBytes as WithHashAndBytes, index$p_ZERO_HASH as ZERO_HASH, index$p_blake2b as blake2b, index$p_defaultAllocator as defaultAllocator, index$p_keccak as keccak };
3705
+ export type { index$p_Blake2bHash as Blake2bHash, index$p_HASH_SIZE as HASH_SIZE, index$p_HashAllocator as HashAllocator, index$p_KeccakHash as KeccakHash, index$p_OpaqueHash as OpaqueHash, index$p_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, index$p_TruncatedHash as TruncatedHash };
3691
3706
  }
3692
3707
 
3693
3708
  /** Immutable view of the `HashDictionary`. */
@@ -4464,35 +4479,35 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
4464
4479
  }
4465
4480
  }
4466
4481
 
4467
- type index$m_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
4468
- declare const index$m_FixedSizeArray: typeof FixedSizeArray;
4469
- type index$m_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
4470
- declare const index$m_HashDictionary: typeof HashDictionary;
4471
- type index$m_HashSet<V extends OpaqueHash> = HashSet<V>;
4472
- declare const index$m_HashSet: typeof HashSet;
4473
- type index$m_HashWithZeroedBit<T extends OpaqueHash> = HashWithZeroedBit<T>;
4474
- type index$m_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
4475
- type index$m_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
4476
- type index$m_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
4477
- type index$m_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
4478
- type index$m_KeyMapper<K> = KeyMapper<K>;
4479
- type index$m_KeyMappers<TKeys extends readonly unknown[]> = KeyMappers<TKeys>;
4480
- type index$m_KnownSize<T, F extends string> = KnownSize<T, F>;
4481
- type index$m_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
4482
- type index$m_KnownSizeId<X> = KnownSizeId<X>;
4483
- type index$m_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
4484
- declare const index$m_MultiMap: typeof MultiMap;
4485
- type index$m_NestedMaps<TKeys extends readonly unknown[], TValue> = NestedMaps<TKeys, TValue>;
4486
- type index$m_SortedArray<V> = SortedArray<V>;
4487
- declare const index$m_SortedArray: typeof SortedArray;
4488
- type index$m_SortedSet<V> = SortedSet<V>;
4489
- declare const index$m_SortedSet: typeof SortedSet;
4490
- type index$m_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
4491
- declare const index$m_TruncatedHashDictionary: typeof TruncatedHashDictionary;
4492
- declare const index$m_asKnownSize: typeof asKnownSize;
4493
- declare namespace index$m {
4494
- export { index$m_FixedSizeArray as FixedSizeArray, index$m_HashDictionary as HashDictionary, index$m_HashSet as HashSet, index$m_MultiMap as MultiMap, index$m_SortedArray as SortedArray, index$m_SortedSet as SortedSet, index$m_TruncatedHashDictionary as TruncatedHashDictionary, index$m_asKnownSize as asKnownSize };
4495
- export type { index$m_HashWithZeroedBit as HashWithZeroedBit, index$m_ImmutableHashDictionary as ImmutableHashDictionary, index$m_ImmutableHashSet as ImmutableHashSet, index$m_ImmutableSortedArray as ImmutableSortedArray, index$m_ImmutableSortedSet as ImmutableSortedSet, index$m_KeyMapper as KeyMapper, index$m_KeyMappers as KeyMappers, index$m_KnownSize as KnownSize, index$m_KnownSizeArray as KnownSizeArray, index$m_KnownSizeId as KnownSizeId, index$m_NestedMaps as NestedMaps };
4482
+ type index$o_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
4483
+ declare const index$o_FixedSizeArray: typeof FixedSizeArray;
4484
+ type index$o_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
4485
+ declare const index$o_HashDictionary: typeof HashDictionary;
4486
+ type index$o_HashSet<V extends OpaqueHash> = HashSet<V>;
4487
+ declare const index$o_HashSet: typeof HashSet;
4488
+ type index$o_HashWithZeroedBit<T extends OpaqueHash> = HashWithZeroedBit<T>;
4489
+ type index$o_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
4490
+ type index$o_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
4491
+ type index$o_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
4492
+ type index$o_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
4493
+ type index$o_KeyMapper<K> = KeyMapper<K>;
4494
+ type index$o_KeyMappers<TKeys extends readonly unknown[]> = KeyMappers<TKeys>;
4495
+ type index$o_KnownSize<T, F extends string> = KnownSize<T, F>;
4496
+ type index$o_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
4497
+ type index$o_KnownSizeId<X> = KnownSizeId<X>;
4498
+ type index$o_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
4499
+ declare const index$o_MultiMap: typeof MultiMap;
4500
+ type index$o_NestedMaps<TKeys extends readonly unknown[], TValue> = NestedMaps<TKeys, TValue>;
4501
+ type index$o_SortedArray<V> = SortedArray<V>;
4502
+ declare const index$o_SortedArray: typeof SortedArray;
4503
+ type index$o_SortedSet<V> = SortedSet<V>;
4504
+ declare const index$o_SortedSet: typeof SortedSet;
4505
+ type index$o_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
4506
+ declare const index$o_TruncatedHashDictionary: typeof TruncatedHashDictionary;
4507
+ declare const index$o_asKnownSize: typeof asKnownSize;
4508
+ declare namespace index$o {
4509
+ export { index$o_FixedSizeArray as FixedSizeArray, index$o_HashDictionary as HashDictionary, index$o_HashSet as HashSet, index$o_MultiMap as MultiMap, index$o_SortedArray as SortedArray, index$o_SortedSet as SortedSet, index$o_TruncatedHashDictionary as TruncatedHashDictionary, index$o_asKnownSize as asKnownSize };
4510
+ export type { index$o_HashWithZeroedBit as HashWithZeroedBit, index$o_ImmutableHashDictionary as ImmutableHashDictionary, index$o_ImmutableHashSet as ImmutableHashSet, index$o_ImmutableSortedArray as ImmutableSortedArray, index$o_ImmutableSortedSet as ImmutableSortedSet, index$o_KeyMapper as KeyMapper, index$o_KeyMappers as KeyMappers, index$o_KnownSize as KnownSize, index$o_KnownSizeArray as KnownSizeArray, index$o_KnownSizeId as KnownSizeId, index$o_NestedMaps as NestedMaps };
4496
4511
  }
4497
4512
 
4498
4513
  declare namespace bandersnatch_d_exports {
@@ -4858,32 +4873,32 @@ declare namespace keyDerivation {
4858
4873
  export type { keyDerivation_BandersnatchSecretSeed as BandersnatchSecretSeed, keyDerivation_Ed25519SecretSeed as Ed25519SecretSeed, keyDerivation_KeySeed as KeySeed, keyDerivation_SEED_SIZE as SEED_SIZE };
4859
4874
  }
4860
4875
 
4861
- type index$l_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
4862
- type index$l_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
4863
- type index$l_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
4864
- type index$l_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
4865
- type index$l_BLS_KEY_BYTES = BLS_KEY_BYTES;
4866
- type index$l_BandersnatchKey = BandersnatchKey;
4867
- type index$l_BandersnatchProof = BandersnatchProof;
4868
- type index$l_BandersnatchRingRoot = BandersnatchRingRoot;
4869
- type index$l_BandersnatchSecretSeed = BandersnatchSecretSeed;
4870
- type index$l_BandersnatchVrfSignature = BandersnatchVrfSignature;
4871
- type index$l_BlsKey = BlsKey;
4872
- type index$l_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
4873
- type index$l_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
4874
- type index$l_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
4875
- type index$l_Ed25519Key = Ed25519Key;
4876
- type index$l_Ed25519Pair = Ed25519Pair;
4877
- declare const index$l_Ed25519Pair: typeof Ed25519Pair;
4878
- type index$l_Ed25519SecretSeed = Ed25519SecretSeed;
4879
- type index$l_Ed25519Signature = Ed25519Signature;
4880
- type index$l_SEED_SIZE = SEED_SIZE;
4881
- declare const index$l_bandersnatch: typeof bandersnatch;
4882
- declare const index$l_ed25519: typeof ed25519;
4883
- declare const index$l_keyDerivation: typeof keyDerivation;
4884
- declare namespace index$l {
4885
- export { index$l_Ed25519Pair as Ed25519Pair, index$l_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, index$l_ed25519 as ed25519, initAll as initWasm, index$l_keyDerivation as keyDerivation };
4886
- export type { index$l_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, index$l_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, index$l_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, index$l_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, index$l_BLS_KEY_BYTES as BLS_KEY_BYTES, index$l_BandersnatchKey as BandersnatchKey, index$l_BandersnatchProof as BandersnatchProof, index$l_BandersnatchRingRoot as BandersnatchRingRoot, index$l_BandersnatchSecretSeed as BandersnatchSecretSeed, index$l_BandersnatchVrfSignature as BandersnatchVrfSignature, index$l_BlsKey as BlsKey, index$l_ED25519_KEY_BYTES as ED25519_KEY_BYTES, index$l_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, index$l_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, index$l_Ed25519Key as Ed25519Key, index$l_Ed25519SecretSeed as Ed25519SecretSeed, index$l_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, index$l_SEED_SIZE as SEED_SIZE };
4876
+ type index$n_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
4877
+ type index$n_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
4878
+ type index$n_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
4879
+ type index$n_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
4880
+ type index$n_BLS_KEY_BYTES = BLS_KEY_BYTES;
4881
+ type index$n_BandersnatchKey = BandersnatchKey;
4882
+ type index$n_BandersnatchProof = BandersnatchProof;
4883
+ type index$n_BandersnatchRingRoot = BandersnatchRingRoot;
4884
+ type index$n_BandersnatchSecretSeed = BandersnatchSecretSeed;
4885
+ type index$n_BandersnatchVrfSignature = BandersnatchVrfSignature;
4886
+ type index$n_BlsKey = BlsKey;
4887
+ type index$n_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
4888
+ type index$n_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
4889
+ type index$n_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
4890
+ type index$n_Ed25519Key = Ed25519Key;
4891
+ type index$n_Ed25519Pair = Ed25519Pair;
4892
+ declare const index$n_Ed25519Pair: typeof Ed25519Pair;
4893
+ type index$n_Ed25519SecretSeed = Ed25519SecretSeed;
4894
+ type index$n_Ed25519Signature = Ed25519Signature;
4895
+ type index$n_SEED_SIZE = SEED_SIZE;
4896
+ declare const index$n_bandersnatch: typeof bandersnatch;
4897
+ declare const index$n_ed25519: typeof ed25519;
4898
+ declare const index$n_keyDerivation: typeof keyDerivation;
4899
+ declare namespace index$n {
4900
+ export { index$n_Ed25519Pair as Ed25519Pair, index$n_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, index$n_ed25519 as ed25519, initAll as initWasm, index$n_keyDerivation as keyDerivation };
4901
+ export type { index$n_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, index$n_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, index$n_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, index$n_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, index$n_BLS_KEY_BYTES as BLS_KEY_BYTES, index$n_BandersnatchKey as BandersnatchKey, index$n_BandersnatchProof as BandersnatchProof, index$n_BandersnatchRingRoot as BandersnatchRingRoot, index$n_BandersnatchSecretSeed as BandersnatchSecretSeed, index$n_BandersnatchVrfSignature as BandersnatchVrfSignature, index$n_BlsKey as BlsKey, index$n_ED25519_KEY_BYTES as ED25519_KEY_BYTES, index$n_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, index$n_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, index$n_Ed25519Key as Ed25519Key, index$n_Ed25519SecretSeed as Ed25519SecretSeed, index$n_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, index$n_SEED_SIZE as SEED_SIZE };
4887
4902
  }
4888
4903
 
4889
4904
  /**
@@ -5080,24 +5095,24 @@ declare class Bootnode implements PeerAddress {
5080
5095
  }
5081
5096
  }
5082
5097
 
5083
- type index$k_Bootnode = Bootnode;
5084
- declare const index$k_Bootnode: typeof Bootnode;
5085
- type index$k_ChainSpec = ChainSpec;
5086
- declare const index$k_ChainSpec: typeof ChainSpec;
5087
- declare const index$k_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
5088
- declare const index$k_EST_CORES: typeof EST_CORES;
5089
- declare const index$k_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
5090
- declare const index$k_EST_VALIDATORS: typeof EST_VALIDATORS;
5091
- declare const index$k_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
5092
- type index$k_PeerAddress = PeerAddress;
5093
- type index$k_PeerId = PeerId;
5094
- type index$k_WorkerConfig = WorkerConfig;
5095
- declare const index$k_WorkerConfig: typeof WorkerConfig;
5096
- declare const index$k_fullChainSpec: typeof fullChainSpec;
5097
- declare const index$k_tinyChainSpec: typeof tinyChainSpec;
5098
- declare namespace index$k {
5099
- export { index$k_Bootnode as Bootnode, index$k_ChainSpec as ChainSpec, index$k_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, index$k_EST_CORES as EST_CORES, index$k_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, index$k_EST_VALIDATORS as EST_VALIDATORS, index$k_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, index$k_WorkerConfig as WorkerConfig, index$k_fullChainSpec as fullChainSpec, index$k_tinyChainSpec as tinyChainSpec };
5100
- export type { index$k_PeerAddress as PeerAddress, index$k_PeerId as PeerId };
5098
+ type index$m_Bootnode = Bootnode;
5099
+ declare const index$m_Bootnode: typeof Bootnode;
5100
+ type index$m_ChainSpec = ChainSpec;
5101
+ declare const index$m_ChainSpec: typeof ChainSpec;
5102
+ declare const index$m_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
5103
+ declare const index$m_EST_CORES: typeof EST_CORES;
5104
+ declare const index$m_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
5105
+ declare const index$m_EST_VALIDATORS: typeof EST_VALIDATORS;
5106
+ declare const index$m_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
5107
+ type index$m_PeerAddress = PeerAddress;
5108
+ type index$m_PeerId = PeerId;
5109
+ type index$m_WorkerConfig = WorkerConfig;
5110
+ declare const index$m_WorkerConfig: typeof WorkerConfig;
5111
+ declare const index$m_fullChainSpec: typeof fullChainSpec;
5112
+ declare const index$m_tinyChainSpec: typeof tinyChainSpec;
5113
+ declare namespace index$m {
5114
+ export { index$m_Bootnode as Bootnode, index$m_ChainSpec as ChainSpec, index$m_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, index$m_EST_CORES as EST_CORES, index$m_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, index$m_EST_VALIDATORS as EST_VALIDATORS, index$m_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, index$m_WorkerConfig as WorkerConfig, index$m_fullChainSpec as fullChainSpec, index$m_tinyChainSpec as tinyChainSpec };
5115
+ export type { index$m_PeerAddress as PeerAddress, index$m_PeerId as PeerId };
5101
5116
  }
5102
5117
 
5103
5118
  /**
@@ -6873,72 +6888,92 @@ declare class Block extends WithDebug {
6873
6888
  /** Undecoded View of a [`Block`]. */
6874
6889
  type BlockView = DescribedBy<typeof Block.Codec.View>;
6875
6890
 
6876
- type index$j_Block = Block;
6877
- declare const index$j_Block: typeof Block;
6878
- type index$j_BlockView = BlockView;
6879
- type index$j_CodeHash = CodeHash;
6880
- type index$j_CoreIndex = CoreIndex;
6881
- type index$j_EntropyHash = EntropyHash;
6882
- type index$j_Epoch = Epoch;
6883
- type index$j_EpochMarker = EpochMarker;
6884
- declare const index$j_EpochMarker: typeof EpochMarker;
6885
- type index$j_EpochMarkerView = EpochMarkerView;
6886
- type index$j_Extrinsic = Extrinsic;
6887
- declare const index$j_Extrinsic: typeof Extrinsic;
6888
- type index$j_ExtrinsicHash = ExtrinsicHash;
6889
- type index$j_ExtrinsicView = ExtrinsicView;
6890
- type index$j_Header = Header;
6891
- declare const index$j_Header: typeof Header;
6892
- type index$j_HeaderHash = HeaderHash;
6893
- type index$j_HeaderView = HeaderView;
6894
- type index$j_HeaderViewWithHash = HeaderViewWithHash;
6895
- declare const index$j_HeaderViewWithHash: typeof HeaderViewWithHash;
6896
- declare const index$j_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
6897
- type index$j_PerEpochBlock<T> = PerEpochBlock<T>;
6898
- type index$j_PerValidator<T> = PerValidator<T>;
6899
- type index$j_SEGMENT_BYTES = SEGMENT_BYTES;
6900
- type index$j_Segment = Segment;
6901
- type index$j_SegmentIndex = SegmentIndex;
6902
- type index$j_ServiceGas = ServiceGas;
6903
- type index$j_ServiceId = ServiceId;
6904
- type index$j_StateRootHash = StateRootHash;
6905
- type index$j_TicketsMarker = TicketsMarker;
6906
- declare const index$j_TicketsMarker: typeof TicketsMarker;
6907
- type index$j_TicketsMarkerView = TicketsMarkerView;
6908
- type index$j_TimeSlot = TimeSlot;
6909
- type index$j_ValidatorIndex = ValidatorIndex;
6910
- type index$j_ValidatorKeys = ValidatorKeys;
6911
- declare const index$j_ValidatorKeys: typeof ValidatorKeys;
6912
- declare const index$j_W_E: typeof W_E;
6913
- declare const index$j_W_S: typeof W_S;
6914
- type index$j_WorkReportHash = WorkReportHash;
6915
- declare const index$j_assurances: typeof assurances;
6916
- declare const index$j_codecPerEpochBlock: typeof codecPerEpochBlock;
6917
- declare const index$j_codecPerValidator: typeof codecPerValidator;
6918
- declare const index$j_disputes: typeof disputes;
6919
- declare const index$j_encodeUnsealedHeader: typeof encodeUnsealedHeader;
6920
- declare const index$j_guarantees: typeof guarantees;
6921
- declare const index$j_headerViewWithHashCodec: typeof headerViewWithHashCodec;
6922
- declare const index$j_legacyDescriptor: typeof legacyDescriptor;
6923
- declare const index$j_preimage: typeof preimage;
6924
- declare const index$j_refineContext: typeof refineContext;
6925
- declare const index$j_tickets: typeof tickets;
6926
- declare const index$j_tryAsCoreIndex: typeof tryAsCoreIndex;
6927
- declare const index$j_tryAsEpoch: typeof tryAsEpoch;
6928
- declare const index$j_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
6929
- declare const index$j_tryAsPerValidator: typeof tryAsPerValidator;
6930
- declare const index$j_tryAsSegmentIndex: typeof tryAsSegmentIndex;
6931
- declare const index$j_tryAsServiceGas: typeof tryAsServiceGas;
6932
- declare const index$j_tryAsServiceId: typeof tryAsServiceId;
6933
- declare const index$j_tryAsTimeSlot: typeof tryAsTimeSlot;
6934
- declare const index$j_tryAsValidatorIndex: typeof tryAsValidatorIndex;
6935
- declare const index$j_workItem: typeof workItem;
6936
- declare const index$j_workPackage: typeof workPackage;
6937
- declare const index$j_workReport: typeof workReport;
6938
- declare const index$j_workResult: typeof workResult;
6939
- declare namespace index$j {
6940
- export { index$j_Block as Block, index$j_EpochMarker as EpochMarker, index$j_Extrinsic as Extrinsic, index$j_Header as Header, index$j_HeaderViewWithHash as HeaderViewWithHash, index$j_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, index$j_TicketsMarker as TicketsMarker, index$j_ValidatorKeys as ValidatorKeys, index$j_W_E as W_E, index$j_W_S as W_S, index$j_assurances as assurances, index$j_codecPerEpochBlock as codecPerEpochBlock, index$j_codecPerValidator as codecPerValidator, codec as codecUtils, index$j_disputes as disputes, index$j_encodeUnsealedHeader as encodeUnsealedHeader, index$j_guarantees as guarantees, index$j_headerViewWithHashCodec as headerViewWithHashCodec, index$j_legacyDescriptor as legacyDescriptor, index$j_preimage as preimage, index$j_refineContext as refineContext, index$j_tickets as tickets, index$j_tryAsCoreIndex as tryAsCoreIndex, index$j_tryAsEpoch as tryAsEpoch, index$j_tryAsPerEpochBlock as tryAsPerEpochBlock, index$j_tryAsPerValidator as tryAsPerValidator, index$j_tryAsSegmentIndex as tryAsSegmentIndex, index$j_tryAsServiceGas as tryAsServiceGas, index$j_tryAsServiceId as tryAsServiceId, index$j_tryAsTimeSlot as tryAsTimeSlot, index$j_tryAsValidatorIndex as tryAsValidatorIndex, index$j_workItem as workItem, index$j_workPackage as workPackage, index$j_workReport as workReport, index$j_workResult as workResult };
6941
- export type { index$j_BlockView as BlockView, index$j_CodeHash as CodeHash, index$j_CoreIndex as CoreIndex, index$j_EntropyHash as EntropyHash, index$j_Epoch as Epoch, index$j_EpochMarkerView as EpochMarkerView, index$j_ExtrinsicHash as ExtrinsicHash, index$j_ExtrinsicView as ExtrinsicView, index$j_HeaderHash as HeaderHash, index$j_HeaderView as HeaderView, index$j_PerEpochBlock as PerEpochBlock, index$j_PerValidator as PerValidator, index$j_SEGMENT_BYTES as SEGMENT_BYTES, index$j_Segment as Segment, index$j_SegmentIndex as SegmentIndex, index$j_ServiceGas as ServiceGas, index$j_ServiceId as ServiceId, index$j_StateRootHash as StateRootHash, index$j_TicketsMarkerView as TicketsMarkerView, index$j_TimeSlot as TimeSlot, index$j_ValidatorIndex as ValidatorIndex, index$j_WorkReportHash as WorkReportHash };
6891
+ declare function emptyBlock(slot: TimeSlot = tryAsTimeSlot(0)) {
6892
+ const header = Header.empty();
6893
+ header.timeSlotIndex = slot;
6894
+ return Block.create({
6895
+ header,
6896
+ extrinsic: Extrinsic.create({
6897
+ tickets: asKnownSize([]),
6898
+ preimages: [],
6899
+ assurances: asKnownSize([]),
6900
+ guarantees: asKnownSize([]),
6901
+ disputes: {
6902
+ verdicts: [],
6903
+ culprits: [],
6904
+ faults: [],
6905
+ },
6906
+ }),
6907
+ });
6908
+ }
6909
+
6910
+ type index$l_Block = Block;
6911
+ declare const index$l_Block: typeof Block;
6912
+ type index$l_BlockView = BlockView;
6913
+ type index$l_CodeHash = CodeHash;
6914
+ type index$l_CoreIndex = CoreIndex;
6915
+ type index$l_EntropyHash = EntropyHash;
6916
+ type index$l_Epoch = Epoch;
6917
+ type index$l_EpochMarker = EpochMarker;
6918
+ declare const index$l_EpochMarker: typeof EpochMarker;
6919
+ type index$l_EpochMarkerView = EpochMarkerView;
6920
+ type index$l_Extrinsic = Extrinsic;
6921
+ declare const index$l_Extrinsic: typeof Extrinsic;
6922
+ type index$l_ExtrinsicHash = ExtrinsicHash;
6923
+ type index$l_ExtrinsicView = ExtrinsicView;
6924
+ type index$l_Header = Header;
6925
+ declare const index$l_Header: typeof Header;
6926
+ type index$l_HeaderHash = HeaderHash;
6927
+ type index$l_HeaderView = HeaderView;
6928
+ type index$l_HeaderViewWithHash = HeaderViewWithHash;
6929
+ declare const index$l_HeaderViewWithHash: typeof HeaderViewWithHash;
6930
+ declare const index$l_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
6931
+ type index$l_PerEpochBlock<T> = PerEpochBlock<T>;
6932
+ type index$l_PerValidator<T> = PerValidator<T>;
6933
+ type index$l_SEGMENT_BYTES = SEGMENT_BYTES;
6934
+ type index$l_Segment = Segment;
6935
+ type index$l_SegmentIndex = SegmentIndex;
6936
+ type index$l_ServiceGas = ServiceGas;
6937
+ type index$l_ServiceId = ServiceId;
6938
+ type index$l_StateRootHash = StateRootHash;
6939
+ type index$l_TicketsMarker = TicketsMarker;
6940
+ declare const index$l_TicketsMarker: typeof TicketsMarker;
6941
+ type index$l_TicketsMarkerView = TicketsMarkerView;
6942
+ type index$l_TimeSlot = TimeSlot;
6943
+ type index$l_ValidatorIndex = ValidatorIndex;
6944
+ type index$l_ValidatorKeys = ValidatorKeys;
6945
+ declare const index$l_ValidatorKeys: typeof ValidatorKeys;
6946
+ declare const index$l_W_E: typeof W_E;
6947
+ declare const index$l_W_S: typeof W_S;
6948
+ type index$l_WorkReportHash = WorkReportHash;
6949
+ declare const index$l_assurances: typeof assurances;
6950
+ declare const index$l_codecPerEpochBlock: typeof codecPerEpochBlock;
6951
+ declare const index$l_codecPerValidator: typeof codecPerValidator;
6952
+ declare const index$l_disputes: typeof disputes;
6953
+ declare const index$l_emptyBlock: typeof emptyBlock;
6954
+ declare const index$l_encodeUnsealedHeader: typeof encodeUnsealedHeader;
6955
+ declare const index$l_guarantees: typeof guarantees;
6956
+ declare const index$l_headerViewWithHashCodec: typeof headerViewWithHashCodec;
6957
+ declare const index$l_legacyDescriptor: typeof legacyDescriptor;
6958
+ declare const index$l_preimage: typeof preimage;
6959
+ declare const index$l_refineContext: typeof refineContext;
6960
+ declare const index$l_tickets: typeof tickets;
6961
+ declare const index$l_tryAsCoreIndex: typeof tryAsCoreIndex;
6962
+ declare const index$l_tryAsEpoch: typeof tryAsEpoch;
6963
+ declare const index$l_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
6964
+ declare const index$l_tryAsPerValidator: typeof tryAsPerValidator;
6965
+ declare const index$l_tryAsSegmentIndex: typeof tryAsSegmentIndex;
6966
+ declare const index$l_tryAsServiceGas: typeof tryAsServiceGas;
6967
+ declare const index$l_tryAsServiceId: typeof tryAsServiceId;
6968
+ declare const index$l_tryAsTimeSlot: typeof tryAsTimeSlot;
6969
+ declare const index$l_tryAsValidatorIndex: typeof tryAsValidatorIndex;
6970
+ declare const index$l_workItem: typeof workItem;
6971
+ declare const index$l_workPackage: typeof workPackage;
6972
+ declare const index$l_workReport: typeof workReport;
6973
+ declare const index$l_workResult: typeof workResult;
6974
+ declare namespace index$l {
6975
+ export { index$l_Block as Block, index$l_EpochMarker as EpochMarker, index$l_Extrinsic as Extrinsic, index$l_Header as Header, index$l_HeaderViewWithHash as HeaderViewWithHash, index$l_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, index$l_TicketsMarker as TicketsMarker, index$l_ValidatorKeys as ValidatorKeys, index$l_W_E as W_E, index$l_W_S as W_S, index$l_assurances as assurances, index$l_codecPerEpochBlock as codecPerEpochBlock, index$l_codecPerValidator as codecPerValidator, codec as codecUtils, index$l_disputes as disputes, index$l_emptyBlock as emptyBlock, index$l_encodeUnsealedHeader as encodeUnsealedHeader, index$l_guarantees as guarantees, index$l_headerViewWithHashCodec as headerViewWithHashCodec, index$l_legacyDescriptor as legacyDescriptor, index$l_preimage as preimage, index$l_refineContext as refineContext, index$l_tickets as tickets, index$l_tryAsCoreIndex as tryAsCoreIndex, index$l_tryAsEpoch as tryAsEpoch, index$l_tryAsPerEpochBlock as tryAsPerEpochBlock, index$l_tryAsPerValidator as tryAsPerValidator, index$l_tryAsSegmentIndex as tryAsSegmentIndex, index$l_tryAsServiceGas as tryAsServiceGas, index$l_tryAsServiceId as tryAsServiceId, index$l_tryAsTimeSlot as tryAsTimeSlot, index$l_tryAsValidatorIndex as tryAsValidatorIndex, index$l_workItem as workItem, index$l_workPackage as workPackage, index$l_workReport as workReport, index$l_workResult as workResult };
6976
+ export type { index$l_BlockView as BlockView, index$l_CodeHash as CodeHash, index$l_CoreIndex as CoreIndex, index$l_EntropyHash as EntropyHash, index$l_Epoch as Epoch, index$l_EpochMarkerView as EpochMarkerView, index$l_ExtrinsicHash as ExtrinsicHash, index$l_ExtrinsicView as ExtrinsicView, index$l_HeaderHash as HeaderHash, index$l_HeaderView as HeaderView, index$l_PerEpochBlock as PerEpochBlock, index$l_PerValidator as PerValidator, index$l_SEGMENT_BYTES as SEGMENT_BYTES, index$l_Segment as Segment, index$l_SegmentIndex as SegmentIndex, index$l_ServiceGas as ServiceGas, index$l_ServiceId as ServiceId, index$l_StateRootHash as StateRootHash, index$l_TicketsMarkerView as TicketsMarkerView, index$l_TimeSlot as TimeSlot, index$l_ValidatorIndex as ValidatorIndex, index$l_WorkReportHash as WorkReportHash };
6942
6977
  }
6943
6978
 
6944
6979
  /** A type that can be read from a JSON-parsed object. */
@@ -7236,21 +7271,21 @@ declare namespace json {
7236
7271
  }
7237
7272
  }
7238
7273
 
7239
- type index$i_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
7240
- type index$i_FromJson<T> = FromJson<T>;
7241
- type index$i_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
7242
- type index$i_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
7243
- type index$i_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
7244
- declare const index$i_NO_KEY: typeof NO_KEY;
7245
- type index$i_ObjectFromJson<T> = ObjectFromJson<T>;
7246
- type index$i_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
7247
- declare const index$i_diffKeys: typeof diffKeys;
7248
- import index$i_json = json;
7249
- declare const index$i_parseFromJson: typeof parseFromJson;
7250
- declare const index$i_parseOrThrow: typeof parseOrThrow;
7251
- declare namespace index$i {
7252
- export { index$i_NO_KEY as NO_KEY, index$i_diffKeys as diffKeys, index$i_json as json, index$i_parseFromJson as parseFromJson, index$i_parseOrThrow as parseOrThrow };
7253
- export type { index$i_Builder as Builder, index$i_FromJson as FromJson, index$i_FromJsonOptional as FromJsonOptional, index$i_FromJsonPrimitive as FromJsonPrimitive, index$i_FromJsonWithParser as FromJsonWithParser, index$i_ObjectFromJson as ObjectFromJson, index$i_Parser as Parser };
7274
+ type index$k_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
7275
+ type index$k_FromJson<T> = FromJson<T>;
7276
+ type index$k_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
7277
+ type index$k_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
7278
+ type index$k_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
7279
+ declare const index$k_NO_KEY: typeof NO_KEY;
7280
+ type index$k_ObjectFromJson<T> = ObjectFromJson<T>;
7281
+ type index$k_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
7282
+ declare const index$k_diffKeys: typeof diffKeys;
7283
+ import index$k_json = json;
7284
+ declare const index$k_parseFromJson: typeof parseFromJson;
7285
+ declare const index$k_parseOrThrow: typeof parseOrThrow;
7286
+ declare namespace index$k {
7287
+ export { index$k_NO_KEY as NO_KEY, index$k_diffKeys as diffKeys, index$k_json as json, index$k_parseFromJson as parseFromJson, index$k_parseOrThrow as parseOrThrow };
7288
+ export type { index$k_Builder as Builder, index$k_FromJson as FromJson, index$k_FromJsonOptional as FromJsonOptional, index$k_FromJsonPrimitive as FromJsonPrimitive, index$k_FromJsonWithParser as FromJsonWithParser, index$k_ObjectFromJson as ObjectFromJson, index$k_Parser as Parser };
7254
7289
  }
7255
7290
 
7256
7291
  declare namespace fromJson {
@@ -7753,52 +7788,52 @@ declare const blockFromJson = (spec: ChainSpec) =>
7753
7788
  ({ header, extrinsic }) => Block.create({ header, extrinsic }),
7754
7789
  );
7755
7790
 
7756
- type index$h_CamelToSnake<S extends string> = CamelToSnake<S>;
7757
- type index$h_JsonCulprit = JsonCulprit;
7758
- type index$h_JsonEpochMarker = JsonEpochMarker;
7759
- type index$h_JsonFault = JsonFault;
7760
- type index$h_JsonHeader = JsonHeader;
7761
- type index$h_JsonJudgement = JsonJudgement;
7762
- type index$h_JsonObject<T> = JsonObject<T>;
7763
- type index$h_JsonRefineContext = JsonRefineContext;
7764
- type index$h_JsonReportGuarantee = JsonReportGuarantee;
7765
- type index$h_JsonVerdict = JsonVerdict;
7766
- type index$h_JsonWorkExecResult = JsonWorkExecResult;
7767
- type index$h_JsonWorkRefineLoad = JsonWorkRefineLoad;
7768
- type index$h_JsonWorkReport = JsonWorkReport;
7769
- type index$h_JsonWorkResult = JsonWorkResult;
7770
- declare const index$h_bandersnatchVrfSignature: typeof bandersnatchVrfSignature;
7771
- declare const index$h_blockFromJson: typeof blockFromJson;
7772
- declare const index$h_culpritFromJson: typeof culpritFromJson;
7773
- declare const index$h_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
7774
- declare const index$h_epochMark: typeof epochMark;
7775
- declare const index$h_faultFromJson: typeof faultFromJson;
7776
- import index$h_fromJson = fromJson;
7777
- declare const index$h_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
7778
- declare const index$h_getAvailabilityAssuranceFromJson: typeof getAvailabilityAssuranceFromJson;
7779
- declare const index$h_getExtrinsicFromJson: typeof getExtrinsicFromJson;
7780
- declare const index$h_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
7781
- declare const index$h_headerFromJson: typeof headerFromJson;
7782
- declare const index$h_judgementFromJson: typeof judgementFromJson;
7783
- declare const index$h_preimageFromJson: typeof preimageFromJson;
7784
- declare const index$h_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
7785
- declare const index$h_refineContextFromJson: typeof refineContextFromJson;
7786
- declare const index$h_reportGuaranteeFromJson: typeof reportGuaranteeFromJson;
7787
- declare const index$h_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
7788
- declare const index$h_ticket: typeof ticket;
7789
- declare const index$h_ticketEnvelopeFromJson: typeof ticketEnvelopeFromJson;
7790
- declare const index$h_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
7791
- declare const index$h_validatorKeysFromJson: typeof validatorKeysFromJson;
7792
- declare const index$h_validatorSignatureFromJson: typeof validatorSignatureFromJson;
7793
- declare const index$h_verdictFromJson: typeof verdictFromJson;
7794
- declare const index$h_workExecResultFromJson: typeof workExecResultFromJson;
7795
- declare const index$h_workPackageSpecFromJson: typeof workPackageSpecFromJson;
7796
- declare const index$h_workRefineLoadFromJson: typeof workRefineLoadFromJson;
7797
- declare const index$h_workReportFromJson: typeof workReportFromJson;
7798
- declare const index$h_workResultFromJson: typeof workResultFromJson;
7799
- declare namespace index$h {
7800
- export { index$h_bandersnatchVrfSignature as bandersnatchVrfSignature, index$h_blockFromJson as blockFromJson, index$h_culpritFromJson as culpritFromJson, index$h_disputesExtrinsicFromJson as disputesExtrinsicFromJson, index$h_epochMark as epochMark, index$h_faultFromJson as faultFromJson, index$h_fromJson as fromJson, index$h_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, index$h_getAvailabilityAssuranceFromJson as getAvailabilityAssuranceFromJson, index$h_getExtrinsicFromJson as getExtrinsicFromJson, index$h_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, index$h_headerFromJson as headerFromJson, index$h_judgementFromJson as judgementFromJson, index$h_preimageFromJson as preimageFromJson, index$h_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, index$h_refineContextFromJson as refineContextFromJson, index$h_reportGuaranteeFromJson as reportGuaranteeFromJson, index$h_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, index$h_ticket as ticket, index$h_ticketEnvelopeFromJson as ticketEnvelopeFromJson, index$h_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, index$h_validatorKeysFromJson as validatorKeysFromJson, index$h_validatorSignatureFromJson as validatorSignatureFromJson, index$h_verdictFromJson as verdictFromJson, index$h_workExecResultFromJson as workExecResultFromJson, index$h_workPackageSpecFromJson as workPackageSpecFromJson, index$h_workRefineLoadFromJson as workRefineLoadFromJson, index$h_workReportFromJson as workReportFromJson, index$h_workResultFromJson as workResultFromJson };
7801
- export type { index$h_CamelToSnake as CamelToSnake, index$h_JsonCulprit as JsonCulprit, index$h_JsonEpochMarker as JsonEpochMarker, index$h_JsonFault as JsonFault, index$h_JsonHeader as JsonHeader, index$h_JsonJudgement as JsonJudgement, index$h_JsonObject as JsonObject, index$h_JsonRefineContext as JsonRefineContext, index$h_JsonReportGuarantee as JsonReportGuarantee, index$h_JsonVerdict as JsonVerdict, index$h_JsonWorkExecResult as JsonWorkExecResult, index$h_JsonWorkRefineLoad as JsonWorkRefineLoad, index$h_JsonWorkReport as JsonWorkReport, index$h_JsonWorkResult as JsonWorkResult };
7791
+ type index$j_CamelToSnake<S extends string> = CamelToSnake<S>;
7792
+ type index$j_JsonCulprit = JsonCulprit;
7793
+ type index$j_JsonEpochMarker = JsonEpochMarker;
7794
+ type index$j_JsonFault = JsonFault;
7795
+ type index$j_JsonHeader = JsonHeader;
7796
+ type index$j_JsonJudgement = JsonJudgement;
7797
+ type index$j_JsonObject<T> = JsonObject<T>;
7798
+ type index$j_JsonRefineContext = JsonRefineContext;
7799
+ type index$j_JsonReportGuarantee = JsonReportGuarantee;
7800
+ type index$j_JsonVerdict = JsonVerdict;
7801
+ type index$j_JsonWorkExecResult = JsonWorkExecResult;
7802
+ type index$j_JsonWorkRefineLoad = JsonWorkRefineLoad;
7803
+ type index$j_JsonWorkReport = JsonWorkReport;
7804
+ type index$j_JsonWorkResult = JsonWorkResult;
7805
+ declare const index$j_bandersnatchVrfSignature: typeof bandersnatchVrfSignature;
7806
+ declare const index$j_blockFromJson: typeof blockFromJson;
7807
+ declare const index$j_culpritFromJson: typeof culpritFromJson;
7808
+ declare const index$j_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
7809
+ declare const index$j_epochMark: typeof epochMark;
7810
+ declare const index$j_faultFromJson: typeof faultFromJson;
7811
+ import index$j_fromJson = fromJson;
7812
+ declare const index$j_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
7813
+ declare const index$j_getAvailabilityAssuranceFromJson: typeof getAvailabilityAssuranceFromJson;
7814
+ declare const index$j_getExtrinsicFromJson: typeof getExtrinsicFromJson;
7815
+ declare const index$j_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
7816
+ declare const index$j_headerFromJson: typeof headerFromJson;
7817
+ declare const index$j_judgementFromJson: typeof judgementFromJson;
7818
+ declare const index$j_preimageFromJson: typeof preimageFromJson;
7819
+ declare const index$j_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
7820
+ declare const index$j_refineContextFromJson: typeof refineContextFromJson;
7821
+ declare const index$j_reportGuaranteeFromJson: typeof reportGuaranteeFromJson;
7822
+ declare const index$j_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
7823
+ declare const index$j_ticket: typeof ticket;
7824
+ declare const index$j_ticketEnvelopeFromJson: typeof ticketEnvelopeFromJson;
7825
+ declare const index$j_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
7826
+ declare const index$j_validatorKeysFromJson: typeof validatorKeysFromJson;
7827
+ declare const index$j_validatorSignatureFromJson: typeof validatorSignatureFromJson;
7828
+ declare const index$j_verdictFromJson: typeof verdictFromJson;
7829
+ declare const index$j_workExecResultFromJson: typeof workExecResultFromJson;
7830
+ declare const index$j_workPackageSpecFromJson: typeof workPackageSpecFromJson;
7831
+ declare const index$j_workRefineLoadFromJson: typeof workRefineLoadFromJson;
7832
+ declare const index$j_workReportFromJson: typeof workReportFromJson;
7833
+ declare const index$j_workResultFromJson: typeof workResultFromJson;
7834
+ declare namespace index$j {
7835
+ export { index$j_bandersnatchVrfSignature as bandersnatchVrfSignature, index$j_blockFromJson as blockFromJson, index$j_culpritFromJson as culpritFromJson, index$j_disputesExtrinsicFromJson as disputesExtrinsicFromJson, index$j_epochMark as epochMark, index$j_faultFromJson as faultFromJson, index$j_fromJson as fromJson, index$j_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, index$j_getAvailabilityAssuranceFromJson as getAvailabilityAssuranceFromJson, index$j_getExtrinsicFromJson as getExtrinsicFromJson, index$j_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, index$j_headerFromJson as headerFromJson, index$j_judgementFromJson as judgementFromJson, index$j_preimageFromJson as preimageFromJson, index$j_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, index$j_refineContextFromJson as refineContextFromJson, index$j_reportGuaranteeFromJson as reportGuaranteeFromJson, index$j_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, index$j_ticket as ticket, index$j_ticketEnvelopeFromJson as ticketEnvelopeFromJson, index$j_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, index$j_validatorKeysFromJson as validatorKeysFromJson, index$j_validatorSignatureFromJson as validatorSignatureFromJson, index$j_verdictFromJson as verdictFromJson, index$j_workExecResultFromJson as workExecResultFromJson, index$j_workPackageSpecFromJson as workPackageSpecFromJson, index$j_workRefineLoadFromJson as workRefineLoadFromJson, index$j_workReportFromJson as workReportFromJson, index$j_workResultFromJson as workResultFromJson };
7836
+ export type { index$j_CamelToSnake as CamelToSnake, index$j_JsonCulprit as JsonCulprit, index$j_JsonEpochMarker as JsonEpochMarker, index$j_JsonFault as JsonFault, index$j_JsonHeader as JsonHeader, index$j_JsonJudgement as JsonJudgement, index$j_JsonObject as JsonObject, index$j_JsonRefineContext as JsonRefineContext, index$j_JsonReportGuarantee as JsonReportGuarantee, index$j_JsonVerdict as JsonVerdict, index$j_JsonWorkExecResult as JsonWorkExecResult, index$j_JsonWorkRefineLoad as JsonWorkRefineLoad, index$j_JsonWorkReport as JsonWorkReport, index$j_JsonWorkResult as JsonWorkResult };
7802
7837
  }
7803
7838
 
7804
7839
  declare function parseBootnode(v: string): Bootnode {
@@ -8046,16 +8081,16 @@ declare class Logger {
8046
8081
  }
8047
8082
  }
8048
8083
 
8049
- type index$g_Level = Level;
8050
- declare const index$g_Level: typeof Level;
8051
- type index$g_Logger = Logger;
8052
- declare const index$g_Logger: typeof Logger;
8053
- declare const index$g_parseLoggerOptions: typeof parseLoggerOptions;
8054
- declare namespace index$g {
8084
+ type index$i_Level = Level;
8085
+ declare const index$i_Level: typeof Level;
8086
+ type index$i_Logger = Logger;
8087
+ declare const index$i_Logger: typeof Logger;
8088
+ declare const index$i_parseLoggerOptions: typeof parseLoggerOptions;
8089
+ declare namespace index$i {
8055
8090
  export {
8056
- index$g_Level as Level,
8057
- index$g_Logger as Logger,
8058
- index$g_parseLoggerOptions as parseLoggerOptions,
8091
+ index$i_Level as Level,
8092
+ index$i_Logger as Logger,
8093
+ index$i_parseLoggerOptions as parseLoggerOptions,
8059
8094
  };
8060
8095
  }
8061
8096
 
@@ -8078,7 +8113,7 @@ declare class AuthorshipOptions {
8078
8113
  ) {}
8079
8114
  }
8080
8115
 
8081
- declare const logger$1 = Logger.new(import.meta.filename, "config");
8116
+ declare const logger$2 = Logger.new(import.meta.filename, "config");
8082
8117
 
8083
8118
  /** Development config. Will accept unsealed blocks for now. */
8084
8119
  declare const DEV_CONFIG = "dev";
@@ -8160,30 +8195,30 @@ declare function loadConfig(configPath: string): NodeConfiguration {
8160
8195
  }
8161
8196
  }
8162
8197
 
8163
- declare const index$f_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
8164
- declare const index$f_DEV_CONFIG: typeof DEV_CONFIG;
8165
- type index$f_JipChainSpec = JipChainSpec;
8166
- declare const index$f_JipChainSpec: typeof JipChainSpec;
8167
- type index$f_KnownChainSpec = KnownChainSpec;
8168
- declare const index$f_KnownChainSpec: typeof KnownChainSpec;
8169
- declare const index$f_NODE_DEFAULTS: typeof NODE_DEFAULTS;
8170
- type index$f_NodeConfiguration = NodeConfiguration;
8171
- declare const index$f_NodeConfiguration: typeof NodeConfiguration;
8172
- declare const index$f_knownChainSpecFromJson: typeof knownChainSpecFromJson;
8173
- declare const index$f_loadConfig: typeof loadConfig;
8174
- declare const index$f_parseBootnode: typeof parseBootnode;
8175
- declare namespace index$f {
8198
+ declare const index$h_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
8199
+ declare const index$h_DEV_CONFIG: typeof DEV_CONFIG;
8200
+ type index$h_JipChainSpec = JipChainSpec;
8201
+ declare const index$h_JipChainSpec: typeof JipChainSpec;
8202
+ type index$h_KnownChainSpec = KnownChainSpec;
8203
+ declare const index$h_KnownChainSpec: typeof KnownChainSpec;
8204
+ declare const index$h_NODE_DEFAULTS: typeof NODE_DEFAULTS;
8205
+ type index$h_NodeConfiguration = NodeConfiguration;
8206
+ declare const index$h_NodeConfiguration: typeof NodeConfiguration;
8207
+ declare const index$h_knownChainSpecFromJson: typeof knownChainSpecFromJson;
8208
+ declare const index$h_loadConfig: typeof loadConfig;
8209
+ declare const index$h_parseBootnode: typeof parseBootnode;
8210
+ declare namespace index$h {
8176
8211
  export {
8177
- index$f_DEFAULT_CONFIG as DEFAULT_CONFIG,
8178
- index$f_DEV_CONFIG as DEV_CONFIG,
8179
- index$f_JipChainSpec as JipChainSpec,
8180
- index$f_KnownChainSpec as KnownChainSpec,
8181
- index$f_NODE_DEFAULTS as NODE_DEFAULTS,
8182
- index$f_NodeConfiguration as NodeConfiguration,
8183
- index$f_knownChainSpecFromJson as knownChainSpecFromJson,
8184
- index$f_loadConfig as loadConfig,
8185
- logger$1 as logger,
8186
- index$f_parseBootnode as parseBootnode,
8212
+ index$h_DEFAULT_CONFIG as DEFAULT_CONFIG,
8213
+ index$h_DEV_CONFIG as DEV_CONFIG,
8214
+ index$h_JipChainSpec as JipChainSpec,
8215
+ index$h_KnownChainSpec as KnownChainSpec,
8216
+ index$h_NODE_DEFAULTS as NODE_DEFAULTS,
8217
+ index$h_NodeConfiguration as NodeConfiguration,
8218
+ index$h_knownChainSpecFromJson as knownChainSpecFromJson,
8219
+ index$h_loadConfig as loadConfig,
8220
+ logger$2 as logger,
8221
+ index$h_parseBootnode as parseBootnode,
8187
8222
  };
8188
8223
  }
8189
8224
 
@@ -8970,43 +9005,43 @@ declare const bitLookup = [
8970
9005
  [0b00000000, 8],
8971
9006
  ];
8972
9007
 
8973
- type index$e_BranchNode = BranchNode;
8974
- declare const index$e_BranchNode: typeof BranchNode;
8975
- type index$e_InMemoryTrie = InMemoryTrie;
8976
- declare const index$e_InMemoryTrie: typeof InMemoryTrie;
8977
- type index$e_InputKey = InputKey;
8978
- type index$e_LeafNode = LeafNode;
8979
- declare const index$e_LeafNode: typeof LeafNode;
8980
- type index$e_NodeType = NodeType;
8981
- declare const index$e_NodeType: typeof NodeType;
8982
- type index$e_NodesDb = NodesDb;
8983
- declare const index$e_NodesDb: typeof NodesDb;
8984
- declare const index$e_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
8985
- declare const index$e_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
8986
- type index$e_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
8987
- type index$e_TraversedPath = TraversedPath;
8988
- declare const index$e_TraversedPath: typeof TraversedPath;
8989
- type index$e_TrieHasher = TrieHasher;
8990
- type index$e_TrieNode = TrieNode;
8991
- declare const index$e_TrieNode: typeof TrieNode;
8992
- type index$e_TrieNodeHash = TrieNodeHash;
8993
- type index$e_TruncatedStateKey = TruncatedStateKey;
8994
- type index$e_ValueHash = ValueHash;
8995
- type index$e_WriteableNodesDb = WriteableNodesDb;
8996
- declare const index$e_WriteableNodesDb: typeof WriteableNodesDb;
8997
- declare const index$e_bitLookup: typeof bitLookup;
8998
- declare const index$e_createSubtreeForBothLeaves: typeof createSubtreeForBothLeaves;
8999
- declare const index$e_findNodeToReplace: typeof findNodeToReplace;
9000
- declare const index$e_findSharedPrefix: typeof findSharedPrefix;
9001
- declare const index$e_getBit: typeof getBit;
9002
- declare const index$e_leafComparator: typeof leafComparator;
9003
- declare const index$e_parseInputKey: typeof parseInputKey;
9004
- declare const index$e_trieInsert: typeof trieInsert;
9005
- declare const index$e_trieStringify: typeof trieStringify;
9006
- declare const index$e_zero: typeof zero;
9007
- declare namespace index$e {
9008
- export { index$e_BranchNode as BranchNode, index$e_InMemoryTrie as InMemoryTrie, index$e_LeafNode as LeafNode, index$e_NodeType as NodeType, index$e_NodesDb as NodesDb, index$e_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$e_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$e_TraversedPath as TraversedPath, index$e_TrieNode as TrieNode, index$e_WriteableNodesDb as WriteableNodesDb, index$e_bitLookup as bitLookup, index$e_createSubtreeForBothLeaves as createSubtreeForBothLeaves, index$e_findNodeToReplace as findNodeToReplace, index$e_findSharedPrefix as findSharedPrefix, index$e_getBit as getBit, index$e_leafComparator as leafComparator, index$e_parseInputKey as parseInputKey, index$e_trieInsert as trieInsert, index$e_trieStringify as trieStringify, index$e_zero as zero };
9009
- export type { index$e_InputKey as InputKey, StateKey$1 as StateKey, index$e_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$e_TrieHasher as TrieHasher, index$e_TrieNodeHash as TrieNodeHash, index$e_TruncatedStateKey as TruncatedStateKey, index$e_ValueHash as ValueHash };
9008
+ type index$g_BranchNode = BranchNode;
9009
+ declare const index$g_BranchNode: typeof BranchNode;
9010
+ type index$g_InMemoryTrie = InMemoryTrie;
9011
+ declare const index$g_InMemoryTrie: typeof InMemoryTrie;
9012
+ type index$g_InputKey = InputKey;
9013
+ type index$g_LeafNode = LeafNode;
9014
+ declare const index$g_LeafNode: typeof LeafNode;
9015
+ type index$g_NodeType = NodeType;
9016
+ declare const index$g_NodeType: typeof NodeType;
9017
+ type index$g_NodesDb = NodesDb;
9018
+ declare const index$g_NodesDb: typeof NodesDb;
9019
+ declare const index$g_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
9020
+ declare const index$g_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
9021
+ type index$g_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
9022
+ type index$g_TraversedPath = TraversedPath;
9023
+ declare const index$g_TraversedPath: typeof TraversedPath;
9024
+ type index$g_TrieHasher = TrieHasher;
9025
+ type index$g_TrieNode = TrieNode;
9026
+ declare const index$g_TrieNode: typeof TrieNode;
9027
+ type index$g_TrieNodeHash = TrieNodeHash;
9028
+ type index$g_TruncatedStateKey = TruncatedStateKey;
9029
+ type index$g_ValueHash = ValueHash;
9030
+ type index$g_WriteableNodesDb = WriteableNodesDb;
9031
+ declare const index$g_WriteableNodesDb: typeof WriteableNodesDb;
9032
+ declare const index$g_bitLookup: typeof bitLookup;
9033
+ declare const index$g_createSubtreeForBothLeaves: typeof createSubtreeForBothLeaves;
9034
+ declare const index$g_findNodeToReplace: typeof findNodeToReplace;
9035
+ declare const index$g_findSharedPrefix: typeof findSharedPrefix;
9036
+ declare const index$g_getBit: typeof getBit;
9037
+ declare const index$g_leafComparator: typeof leafComparator;
9038
+ declare const index$g_parseInputKey: typeof parseInputKey;
9039
+ declare const index$g_trieInsert: typeof trieInsert;
9040
+ declare const index$g_trieStringify: typeof trieStringify;
9041
+ declare const index$g_zero: typeof zero;
9042
+ declare namespace index$g {
9043
+ export { index$g_BranchNode as BranchNode, index$g_InMemoryTrie as InMemoryTrie, index$g_LeafNode as LeafNode, index$g_NodeType as NodeType, index$g_NodesDb as NodesDb, index$g_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$g_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$g_TraversedPath as TraversedPath, index$g_TrieNode as TrieNode, index$g_WriteableNodesDb as WriteableNodesDb, index$g_bitLookup as bitLookup, index$g_createSubtreeForBothLeaves as createSubtreeForBothLeaves, index$g_findNodeToReplace as findNodeToReplace, index$g_findSharedPrefix as findSharedPrefix, index$g_getBit as getBit, index$g_leafComparator as leafComparator, index$g_parseInputKey as parseInputKey, index$g_trieInsert as trieInsert, index$g_trieStringify as trieStringify, index$g_zero as zero };
9044
+ export type { index$g_InputKey as InputKey, StateKey$1 as StateKey, index$g_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$g_TrieHasher as TrieHasher, index$g_TrieNodeHash as TrieNodeHash, index$g_TruncatedStateKey as TruncatedStateKey, index$g_ValueHash as ValueHash };
9010
9045
  }
9011
9046
 
9012
9047
  /**
@@ -9448,16 +9483,16 @@ declare class Mountain<H extends OpaqueHash> {
9448
9483
  }
9449
9484
  }
9450
9485
 
9451
- type index$d_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
9452
- declare const index$d_MerkleMountainRange: typeof MerkleMountainRange;
9453
- type index$d_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
9454
- type index$d_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
9455
- type index$d_Mountain<H extends OpaqueHash> = Mountain<H>;
9456
- declare const index$d_Mountain: typeof Mountain;
9457
- declare const index$d_SUPER_PEAK_STRING: typeof SUPER_PEAK_STRING;
9458
- declare namespace index$d {
9459
- export { index$d_MerkleMountainRange as MerkleMountainRange, index$d_Mountain as Mountain, index$d_SUPER_PEAK_STRING as SUPER_PEAK_STRING };
9460
- export type { index$d_MmrHasher as MmrHasher, index$d_MmrPeaks as MmrPeaks };
9486
+ type index$f_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
9487
+ declare const index$f_MerkleMountainRange: typeof MerkleMountainRange;
9488
+ type index$f_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
9489
+ type index$f_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
9490
+ type index$f_Mountain<H extends OpaqueHash> = Mountain<H>;
9491
+ declare const index$f_Mountain: typeof Mountain;
9492
+ declare const index$f_SUPER_PEAK_STRING: typeof SUPER_PEAK_STRING;
9493
+ declare namespace index$f {
9494
+ export { index$f_MerkleMountainRange as MerkleMountainRange, index$f_Mountain as Mountain, index$f_SUPER_PEAK_STRING as SUPER_PEAK_STRING };
9495
+ export type { index$f_MmrHasher as MmrHasher, index$f_MmrPeaks as MmrPeaks };
9461
9496
  }
9462
9497
 
9463
9498
  /**
@@ -11155,103 +11190,103 @@ type FieldNames<T> = {
11155
11190
  [K in keyof T]: T[K] extends Function ? never : K;
11156
11191
  }[keyof T];
11157
11192
 
11158
- type index$c_AccumulationOutput = AccumulationOutput;
11159
- declare const index$c_AccumulationOutput: typeof AccumulationOutput;
11160
- type index$c_AutoAccumulate = AutoAccumulate;
11161
- declare const index$c_AutoAccumulate: typeof AutoAccumulate;
11162
- type index$c_AvailabilityAssignment = AvailabilityAssignment;
11163
- declare const index$c_AvailabilityAssignment: typeof AvailabilityAssignment;
11164
- declare const index$c_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
11165
- type index$c_BlockState = BlockState;
11166
- declare const index$c_BlockState: typeof BlockState;
11167
- type index$c_BlocksState = BlocksState;
11168
- type index$c_CoreStatistics = CoreStatistics;
11169
- declare const index$c_CoreStatistics: typeof CoreStatistics;
11170
- type index$c_DisputesRecords = DisputesRecords;
11171
- declare const index$c_DisputesRecords: typeof DisputesRecords;
11172
- declare const index$c_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
11173
- declare const index$c_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
11174
- type index$c_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
11175
- type index$c_EnumerableState = EnumerableState;
11176
- type index$c_FieldNames<T> = FieldNames<T>;
11177
- type index$c_InMemoryService = InMemoryService;
11178
- declare const index$c_InMemoryService: typeof InMemoryService;
11179
- type index$c_InMemoryState = InMemoryState;
11180
- declare const index$c_InMemoryState: typeof InMemoryState;
11181
- type index$c_InMemoryStateFields = InMemoryStateFields;
11182
- type index$c_LookupHistoryItem = LookupHistoryItem;
11183
- declare const index$c_LookupHistoryItem: typeof LookupHistoryItem;
11184
- type index$c_LookupHistorySlots = LookupHistorySlots;
11185
- declare const index$c_MAX_LOOKUP_HISTORY_SLOTS: typeof MAX_LOOKUP_HISTORY_SLOTS;
11186
- type index$c_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
11187
- type index$c_PerCore<T> = PerCore<T>;
11188
- type index$c_PreimageItem = PreimageItem;
11189
- declare const index$c_PreimageItem: typeof PreimageItem;
11190
- type index$c_PrivilegedServices = PrivilegedServices;
11191
- declare const index$c_PrivilegedServices: typeof PrivilegedServices;
11192
- type index$c_RecentBlocks = RecentBlocks;
11193
- declare const index$c_RecentBlocks: typeof RecentBlocks;
11194
- type index$c_RecentBlocksHistory = RecentBlocksHistory;
11195
- declare const index$c_RecentBlocksHistory: typeof RecentBlocksHistory;
11196
- type index$c_SafroleData = SafroleData;
11197
- declare const index$c_SafroleData: typeof SafroleData;
11198
- type index$c_SafroleSealingKeys = SafroleSealingKeys;
11199
- type index$c_SafroleSealingKeysData = SafroleSealingKeysData;
11200
- declare const index$c_SafroleSealingKeysData: typeof SafroleSealingKeysData;
11201
- type index$c_SafroleSealingKeysKind = SafroleSealingKeysKind;
11202
- declare const index$c_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
11203
- type index$c_Service = Service;
11204
- type index$c_ServiceAccountInfo = ServiceAccountInfo;
11205
- declare const index$c_ServiceAccountInfo: typeof ServiceAccountInfo;
11206
- type index$c_ServiceData = ServiceData;
11207
- type index$c_ServiceEntries = ServiceEntries;
11208
- type index$c_ServiceStatistics = ServiceStatistics;
11209
- declare const index$c_ServiceStatistics: typeof ServiceStatistics;
11210
- type index$c_ServicesUpdate = ServicesUpdate;
11211
- type index$c_State = State;
11212
- type index$c_StatisticsData = StatisticsData;
11213
- declare const index$c_StatisticsData: typeof StatisticsData;
11214
- type index$c_StorageItem = StorageItem;
11215
- declare const index$c_StorageItem: typeof StorageItem;
11216
- type index$c_StorageKey = StorageKey;
11217
- type index$c_UpdateError = UpdateError;
11218
- declare const index$c_UpdateError: typeof UpdateError;
11219
- type index$c_UpdatePreimage = UpdatePreimage;
11220
- declare const index$c_UpdatePreimage: typeof UpdatePreimage;
11221
- type index$c_UpdatePreimageKind = UpdatePreimageKind;
11222
- declare const index$c_UpdatePreimageKind: typeof UpdatePreimageKind;
11223
- type index$c_UpdateService = UpdateService;
11224
- declare const index$c_UpdateService: typeof UpdateService;
11225
- type index$c_UpdateServiceKind = UpdateServiceKind;
11226
- declare const index$c_UpdateServiceKind: typeof UpdateServiceKind;
11227
- type index$c_UpdateStorage = UpdateStorage;
11228
- declare const index$c_UpdateStorage: typeof UpdateStorage;
11229
- type index$c_UpdateStorageKind = UpdateStorageKind;
11230
- declare const index$c_UpdateStorageKind: typeof UpdateStorageKind;
11231
- type index$c_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
11232
- type index$c_ValidatorData = ValidatorData;
11233
- declare const index$c_ValidatorData: typeof ValidatorData;
11234
- type index$c_ValidatorStatistics = ValidatorStatistics;
11235
- declare const index$c_ValidatorStatistics: typeof ValidatorStatistics;
11236
- declare const index$c_accumulationOutputComparator: typeof accumulationOutputComparator;
11237
- declare const index$c_codecBandersnatchKey: typeof codecBandersnatchKey;
11238
- declare const index$c_codecPerCore: typeof codecPerCore;
11239
- declare const index$c_codecServiceId: typeof codecServiceId;
11240
- declare const index$c_codecVarGas: typeof codecVarGas;
11241
- declare const index$c_codecVarU16: typeof codecVarU16;
11242
- declare const index$c_codecWithHash: typeof codecWithHash;
11243
- declare const index$c_hashComparator: typeof hashComparator;
11244
- declare const index$c_ignoreValueWithDefault: typeof ignoreValueWithDefault;
11245
- declare const index$c_serviceDataCodec: typeof serviceDataCodec;
11246
- declare const index$c_serviceEntriesCodec: typeof serviceEntriesCodec;
11247
- declare const index$c_sortedSetCodec: typeof sortedSetCodec;
11248
- declare const index$c_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
11249
- declare const index$c_tryAsPerCore: typeof tryAsPerCore;
11250
- declare const index$c_workReportsSortedSetCodec: typeof workReportsSortedSetCodec;
11251
- declare const index$c_zeroSizeHint: typeof zeroSizeHint;
11252
- declare namespace index$c {
11253
- export { index$c_AccumulationOutput as AccumulationOutput, index$c_AutoAccumulate as AutoAccumulate, index$c_AvailabilityAssignment as AvailabilityAssignment, index$c_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$c_BlockState as BlockState, index$c_CoreStatistics as CoreStatistics, index$c_DisputesRecords as DisputesRecords, index$c_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$c_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$c_InMemoryService as InMemoryService, index$c_InMemoryState as InMemoryState, index$c_LookupHistoryItem as LookupHistoryItem, index$c_MAX_LOOKUP_HISTORY_SLOTS as MAX_LOOKUP_HISTORY_SLOTS, index$c_PreimageItem as PreimageItem, index$c_PrivilegedServices as PrivilegedServices, index$c_RecentBlocks as RecentBlocks, index$c_RecentBlocksHistory as RecentBlocksHistory, index$c_SafroleData as SafroleData, index$c_SafroleSealingKeysData as SafroleSealingKeysData, index$c_SafroleSealingKeysKind as SafroleSealingKeysKind, index$c_ServiceAccountInfo as ServiceAccountInfo, index$c_ServiceStatistics as ServiceStatistics, index$c_StatisticsData as StatisticsData, index$c_StorageItem as StorageItem, index$c_UpdateError as UpdateError, index$c_UpdatePreimage as UpdatePreimage, index$c_UpdatePreimageKind as UpdatePreimageKind, index$c_UpdateService as UpdateService, index$c_UpdateServiceKind as UpdateServiceKind, index$c_UpdateStorage as UpdateStorage, index$c_UpdateStorageKind as UpdateStorageKind, index$c_ValidatorData as ValidatorData, index$c_ValidatorStatistics as ValidatorStatistics, index$c_accumulationOutputComparator as accumulationOutputComparator, index$c_codecBandersnatchKey as codecBandersnatchKey, index$c_codecPerCore as codecPerCore, index$c_codecServiceId as codecServiceId, index$c_codecVarGas as codecVarGas, index$c_codecVarU16 as codecVarU16, index$c_codecWithHash as codecWithHash, index$c_hashComparator as hashComparator, index$c_ignoreValueWithDefault as ignoreValueWithDefault, index$c_serviceDataCodec as serviceDataCodec, index$c_serviceEntriesCodec as serviceEntriesCodec, index$c_sortedSetCodec as sortedSetCodec, index$c_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$c_tryAsPerCore as tryAsPerCore, index$c_workReportsSortedSetCodec as workReportsSortedSetCodec, index$c_zeroSizeHint as zeroSizeHint };
11254
- export type { index$c_BlocksState as BlocksState, index$c_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$c_EnumerableState as EnumerableState, index$c_FieldNames as FieldNames, index$c_InMemoryStateFields as InMemoryStateFields, index$c_LookupHistorySlots as LookupHistorySlots, index$c_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$c_PerCore as PerCore, index$c_SafroleSealingKeys as SafroleSealingKeys, index$c_Service as Service, index$c_ServiceData as ServiceData, index$c_ServiceEntries as ServiceEntries, index$c_ServicesUpdate as ServicesUpdate, index$c_State as State, index$c_StorageKey as StorageKey, index$c_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES };
11193
+ type index$e_AccumulationOutput = AccumulationOutput;
11194
+ declare const index$e_AccumulationOutput: typeof AccumulationOutput;
11195
+ type index$e_AutoAccumulate = AutoAccumulate;
11196
+ declare const index$e_AutoAccumulate: typeof AutoAccumulate;
11197
+ type index$e_AvailabilityAssignment = AvailabilityAssignment;
11198
+ declare const index$e_AvailabilityAssignment: typeof AvailabilityAssignment;
11199
+ declare const index$e_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
11200
+ type index$e_BlockState = BlockState;
11201
+ declare const index$e_BlockState: typeof BlockState;
11202
+ type index$e_BlocksState = BlocksState;
11203
+ type index$e_CoreStatistics = CoreStatistics;
11204
+ declare const index$e_CoreStatistics: typeof CoreStatistics;
11205
+ type index$e_DisputesRecords = DisputesRecords;
11206
+ declare const index$e_DisputesRecords: typeof DisputesRecords;
11207
+ declare const index$e_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
11208
+ declare const index$e_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
11209
+ type index$e_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
11210
+ type index$e_EnumerableState = EnumerableState;
11211
+ type index$e_FieldNames<T> = FieldNames<T>;
11212
+ type index$e_InMemoryService = InMemoryService;
11213
+ declare const index$e_InMemoryService: typeof InMemoryService;
11214
+ type index$e_InMemoryState = InMemoryState;
11215
+ declare const index$e_InMemoryState: typeof InMemoryState;
11216
+ type index$e_InMemoryStateFields = InMemoryStateFields;
11217
+ type index$e_LookupHistoryItem = LookupHistoryItem;
11218
+ declare const index$e_LookupHistoryItem: typeof LookupHistoryItem;
11219
+ type index$e_LookupHistorySlots = LookupHistorySlots;
11220
+ declare const index$e_MAX_LOOKUP_HISTORY_SLOTS: typeof MAX_LOOKUP_HISTORY_SLOTS;
11221
+ type index$e_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
11222
+ type index$e_PerCore<T> = PerCore<T>;
11223
+ type index$e_PreimageItem = PreimageItem;
11224
+ declare const index$e_PreimageItem: typeof PreimageItem;
11225
+ type index$e_PrivilegedServices = PrivilegedServices;
11226
+ declare const index$e_PrivilegedServices: typeof PrivilegedServices;
11227
+ type index$e_RecentBlocks = RecentBlocks;
11228
+ declare const index$e_RecentBlocks: typeof RecentBlocks;
11229
+ type index$e_RecentBlocksHistory = RecentBlocksHistory;
11230
+ declare const index$e_RecentBlocksHistory: typeof RecentBlocksHistory;
11231
+ type index$e_SafroleData = SafroleData;
11232
+ declare const index$e_SafroleData: typeof SafroleData;
11233
+ type index$e_SafroleSealingKeys = SafroleSealingKeys;
11234
+ type index$e_SafroleSealingKeysData = SafroleSealingKeysData;
11235
+ declare const index$e_SafroleSealingKeysData: typeof SafroleSealingKeysData;
11236
+ type index$e_SafroleSealingKeysKind = SafroleSealingKeysKind;
11237
+ declare const index$e_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
11238
+ type index$e_Service = Service;
11239
+ type index$e_ServiceAccountInfo = ServiceAccountInfo;
11240
+ declare const index$e_ServiceAccountInfo: typeof ServiceAccountInfo;
11241
+ type index$e_ServiceData = ServiceData;
11242
+ type index$e_ServiceEntries = ServiceEntries;
11243
+ type index$e_ServiceStatistics = ServiceStatistics;
11244
+ declare const index$e_ServiceStatistics: typeof ServiceStatistics;
11245
+ type index$e_ServicesUpdate = ServicesUpdate;
11246
+ type index$e_State = State;
11247
+ type index$e_StatisticsData = StatisticsData;
11248
+ declare const index$e_StatisticsData: typeof StatisticsData;
11249
+ type index$e_StorageItem = StorageItem;
11250
+ declare const index$e_StorageItem: typeof StorageItem;
11251
+ type index$e_StorageKey = StorageKey;
11252
+ type index$e_UpdateError = UpdateError;
11253
+ declare const index$e_UpdateError: typeof UpdateError;
11254
+ type index$e_UpdatePreimage = UpdatePreimage;
11255
+ declare const index$e_UpdatePreimage: typeof UpdatePreimage;
11256
+ type index$e_UpdatePreimageKind = UpdatePreimageKind;
11257
+ declare const index$e_UpdatePreimageKind: typeof UpdatePreimageKind;
11258
+ type index$e_UpdateService = UpdateService;
11259
+ declare const index$e_UpdateService: typeof UpdateService;
11260
+ type index$e_UpdateServiceKind = UpdateServiceKind;
11261
+ declare const index$e_UpdateServiceKind: typeof UpdateServiceKind;
11262
+ type index$e_UpdateStorage = UpdateStorage;
11263
+ declare const index$e_UpdateStorage: typeof UpdateStorage;
11264
+ type index$e_UpdateStorageKind = UpdateStorageKind;
11265
+ declare const index$e_UpdateStorageKind: typeof UpdateStorageKind;
11266
+ type index$e_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
11267
+ type index$e_ValidatorData = ValidatorData;
11268
+ declare const index$e_ValidatorData: typeof ValidatorData;
11269
+ type index$e_ValidatorStatistics = ValidatorStatistics;
11270
+ declare const index$e_ValidatorStatistics: typeof ValidatorStatistics;
11271
+ declare const index$e_accumulationOutputComparator: typeof accumulationOutputComparator;
11272
+ declare const index$e_codecBandersnatchKey: typeof codecBandersnatchKey;
11273
+ declare const index$e_codecPerCore: typeof codecPerCore;
11274
+ declare const index$e_codecServiceId: typeof codecServiceId;
11275
+ declare const index$e_codecVarGas: typeof codecVarGas;
11276
+ declare const index$e_codecVarU16: typeof codecVarU16;
11277
+ declare const index$e_codecWithHash: typeof codecWithHash;
11278
+ declare const index$e_hashComparator: typeof hashComparator;
11279
+ declare const index$e_ignoreValueWithDefault: typeof ignoreValueWithDefault;
11280
+ declare const index$e_serviceDataCodec: typeof serviceDataCodec;
11281
+ declare const index$e_serviceEntriesCodec: typeof serviceEntriesCodec;
11282
+ declare const index$e_sortedSetCodec: typeof sortedSetCodec;
11283
+ declare const index$e_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
11284
+ declare const index$e_tryAsPerCore: typeof tryAsPerCore;
11285
+ declare const index$e_workReportsSortedSetCodec: typeof workReportsSortedSetCodec;
11286
+ declare const index$e_zeroSizeHint: typeof zeroSizeHint;
11287
+ declare namespace index$e {
11288
+ export { index$e_AccumulationOutput as AccumulationOutput, index$e_AutoAccumulate as AutoAccumulate, index$e_AvailabilityAssignment as AvailabilityAssignment, index$e_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$e_BlockState as BlockState, index$e_CoreStatistics as CoreStatistics, index$e_DisputesRecords as DisputesRecords, index$e_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$e_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$e_InMemoryService as InMemoryService, index$e_InMemoryState as InMemoryState, index$e_LookupHistoryItem as LookupHistoryItem, index$e_MAX_LOOKUP_HISTORY_SLOTS as MAX_LOOKUP_HISTORY_SLOTS, index$e_PreimageItem as PreimageItem, index$e_PrivilegedServices as PrivilegedServices, index$e_RecentBlocks as RecentBlocks, index$e_RecentBlocksHistory as RecentBlocksHistory, index$e_SafroleData as SafroleData, index$e_SafroleSealingKeysData as SafroleSealingKeysData, index$e_SafroleSealingKeysKind as SafroleSealingKeysKind, index$e_ServiceAccountInfo as ServiceAccountInfo, index$e_ServiceStatistics as ServiceStatistics, index$e_StatisticsData as StatisticsData, index$e_StorageItem as StorageItem, index$e_UpdateError as UpdateError, index$e_UpdatePreimage as UpdatePreimage, index$e_UpdatePreimageKind as UpdatePreimageKind, index$e_UpdateService as UpdateService, index$e_UpdateServiceKind as UpdateServiceKind, index$e_UpdateStorage as UpdateStorage, index$e_UpdateStorageKind as UpdateStorageKind, index$e_ValidatorData as ValidatorData, index$e_ValidatorStatistics as ValidatorStatistics, index$e_accumulationOutputComparator as accumulationOutputComparator, index$e_codecBandersnatchKey as codecBandersnatchKey, index$e_codecPerCore as codecPerCore, index$e_codecServiceId as codecServiceId, index$e_codecVarGas as codecVarGas, index$e_codecVarU16 as codecVarU16, index$e_codecWithHash as codecWithHash, index$e_hashComparator as hashComparator, index$e_ignoreValueWithDefault as ignoreValueWithDefault, index$e_serviceDataCodec as serviceDataCodec, index$e_serviceEntriesCodec as serviceEntriesCodec, index$e_sortedSetCodec as sortedSetCodec, index$e_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$e_tryAsPerCore as tryAsPerCore, index$e_workReportsSortedSetCodec as workReportsSortedSetCodec, index$e_zeroSizeHint as zeroSizeHint };
11289
+ export type { index$e_BlocksState as BlocksState, index$e_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$e_EnumerableState as EnumerableState, index$e_FieldNames as FieldNames, index$e_InMemoryStateFields as InMemoryStateFields, index$e_LookupHistorySlots as LookupHistorySlots, index$e_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$e_PerCore as PerCore, index$e_SafroleSealingKeys as SafroleSealingKeys, index$e_Service as Service, index$e_ServiceData as ServiceData, index$e_ServiceEntries as ServiceEntries, index$e_ServicesUpdate as ServicesUpdate, index$e_State as State, index$e_StorageKey as StorageKey, index$e_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES };
11255
11290
  }
11256
11291
 
11257
11292
  type StateKey = Opaque<OpaqueHash, "stateKey">;
@@ -12189,44 +12224,44 @@ declare function loadState(spec: ChainSpec, entries: Iterable<[StateKey | Trunca
12189
12224
  * hashmap of `key -> value` entries.
12190
12225
  */
12191
12226
 
12192
- declare const index$b_EMPTY_BLOB: typeof EMPTY_BLOB;
12193
- type index$b_EncodeFun = EncodeFun;
12194
- type index$b_KeyAndCodec<T> = KeyAndCodec<T>;
12195
- type index$b_SerializedService = SerializedService;
12196
- declare const index$b_SerializedService: typeof SerializedService;
12197
- type index$b_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
12198
- declare const index$b_SerializedState: typeof SerializedState;
12199
- type index$b_SerializedStateBackend = SerializedStateBackend;
12200
- type index$b_StateCodec<T> = StateCodec<T>;
12201
- type index$b_StateEntries = StateEntries;
12202
- declare const index$b_StateEntries: typeof StateEntries;
12203
- type index$b_StateEntryUpdate = StateEntryUpdate;
12204
- type index$b_StateEntryUpdateAction = StateEntryUpdateAction;
12205
- declare const index$b_StateEntryUpdateAction: typeof StateEntryUpdateAction;
12206
- type index$b_StateKey = StateKey;
12207
- type index$b_StateKeyIdx = StateKeyIdx;
12208
- declare const index$b_StateKeyIdx: typeof StateKeyIdx;
12209
- declare const index$b_TYPICAL_STATE_ITEMS: typeof TYPICAL_STATE_ITEMS;
12210
- declare const index$b_TYPICAL_STATE_ITEM_LEN: typeof TYPICAL_STATE_ITEM_LEN;
12211
- declare const index$b_U32_BYTES: typeof U32_BYTES;
12212
- declare const index$b_binaryMerkleization: typeof binaryMerkleization;
12213
- declare const index$b_convertInMemoryStateToDictionary: typeof convertInMemoryStateToDictionary;
12214
- declare const index$b_dumpCodec: typeof dumpCodec;
12215
- declare const index$b_getSafroleData: typeof getSafroleData;
12216
- declare const index$b_legacyServiceNested: typeof legacyServiceNested;
12217
- declare const index$b_loadState: typeof loadState;
12218
- import index$b_serialize = serialize;
12219
- declare const index$b_serializeBasicKeys: typeof serializeBasicKeys;
12220
- declare const index$b_serializePreimages: typeof serializePreimages;
12221
- declare const index$b_serializeRemovedServices: typeof serializeRemovedServices;
12222
- declare const index$b_serializeServiceUpdates: typeof serializeServiceUpdates;
12223
- declare const index$b_serializeStateUpdate: typeof serializeStateUpdate;
12224
- declare const index$b_serializeStorage: typeof serializeStorage;
12225
- declare const index$b_stateEntriesSequenceCodec: typeof stateEntriesSequenceCodec;
12226
- import index$b_stateKeys = stateKeys;
12227
- declare namespace index$b {
12228
- export { index$b_EMPTY_BLOB as EMPTY_BLOB, index$b_SerializedService as SerializedService, index$b_SerializedState as SerializedState, index$b_StateEntries as StateEntries, index$b_StateEntryUpdateAction as StateEntryUpdateAction, index$b_StateKeyIdx as StateKeyIdx, index$b_TYPICAL_STATE_ITEMS as TYPICAL_STATE_ITEMS, index$b_TYPICAL_STATE_ITEM_LEN as TYPICAL_STATE_ITEM_LEN, index$b_U32_BYTES as U32_BYTES, index$b_binaryMerkleization as binaryMerkleization, index$b_convertInMemoryStateToDictionary as convertInMemoryStateToDictionary, index$b_dumpCodec as dumpCodec, index$b_getSafroleData as getSafroleData, index$b_legacyServiceNested as legacyServiceNested, index$b_loadState as loadState, index$b_serialize as serialize, index$b_serializeBasicKeys as serializeBasicKeys, index$b_serializePreimages as serializePreimages, index$b_serializeRemovedServices as serializeRemovedServices, index$b_serializeServiceUpdates as serializeServiceUpdates, index$b_serializeStateUpdate as serializeStateUpdate, index$b_serializeStorage as serializeStorage, index$b_stateEntriesSequenceCodec as stateEntriesSequenceCodec, index$b_stateKeys as stateKeys };
12229
- export type { index$b_EncodeFun as EncodeFun, index$b_KeyAndCodec as KeyAndCodec, index$b_SerializedStateBackend as SerializedStateBackend, index$b_StateCodec as StateCodec, index$b_StateEntryUpdate as StateEntryUpdate, index$b_StateKey as StateKey };
12227
+ declare const index$d_EMPTY_BLOB: typeof EMPTY_BLOB;
12228
+ type index$d_EncodeFun = EncodeFun;
12229
+ type index$d_KeyAndCodec<T> = KeyAndCodec<T>;
12230
+ type index$d_SerializedService = SerializedService;
12231
+ declare const index$d_SerializedService: typeof SerializedService;
12232
+ type index$d_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
12233
+ declare const index$d_SerializedState: typeof SerializedState;
12234
+ type index$d_SerializedStateBackend = SerializedStateBackend;
12235
+ type index$d_StateCodec<T> = StateCodec<T>;
12236
+ type index$d_StateEntries = StateEntries;
12237
+ declare const index$d_StateEntries: typeof StateEntries;
12238
+ type index$d_StateEntryUpdate = StateEntryUpdate;
12239
+ type index$d_StateEntryUpdateAction = StateEntryUpdateAction;
12240
+ declare const index$d_StateEntryUpdateAction: typeof StateEntryUpdateAction;
12241
+ type index$d_StateKey = StateKey;
12242
+ type index$d_StateKeyIdx = StateKeyIdx;
12243
+ declare const index$d_StateKeyIdx: typeof StateKeyIdx;
12244
+ declare const index$d_TYPICAL_STATE_ITEMS: typeof TYPICAL_STATE_ITEMS;
12245
+ declare const index$d_TYPICAL_STATE_ITEM_LEN: typeof TYPICAL_STATE_ITEM_LEN;
12246
+ declare const index$d_U32_BYTES: typeof U32_BYTES;
12247
+ declare const index$d_binaryMerkleization: typeof binaryMerkleization;
12248
+ declare const index$d_convertInMemoryStateToDictionary: typeof convertInMemoryStateToDictionary;
12249
+ declare const index$d_dumpCodec: typeof dumpCodec;
12250
+ declare const index$d_getSafroleData: typeof getSafroleData;
12251
+ declare const index$d_legacyServiceNested: typeof legacyServiceNested;
12252
+ declare const index$d_loadState: typeof loadState;
12253
+ import index$d_serialize = serialize;
12254
+ declare const index$d_serializeBasicKeys: typeof serializeBasicKeys;
12255
+ declare const index$d_serializePreimages: typeof serializePreimages;
12256
+ declare const index$d_serializeRemovedServices: typeof serializeRemovedServices;
12257
+ declare const index$d_serializeServiceUpdates: typeof serializeServiceUpdates;
12258
+ declare const index$d_serializeStateUpdate: typeof serializeStateUpdate;
12259
+ declare const index$d_serializeStorage: typeof serializeStorage;
12260
+ declare const index$d_stateEntriesSequenceCodec: typeof stateEntriesSequenceCodec;
12261
+ import index$d_stateKeys = stateKeys;
12262
+ declare namespace index$d {
12263
+ export { index$d_EMPTY_BLOB as EMPTY_BLOB, index$d_SerializedService as SerializedService, index$d_SerializedState as SerializedState, index$d_StateEntries as StateEntries, index$d_StateEntryUpdateAction as StateEntryUpdateAction, index$d_StateKeyIdx as StateKeyIdx, index$d_TYPICAL_STATE_ITEMS as TYPICAL_STATE_ITEMS, index$d_TYPICAL_STATE_ITEM_LEN as TYPICAL_STATE_ITEM_LEN, index$d_U32_BYTES as U32_BYTES, index$d_binaryMerkleization as binaryMerkleization, index$d_convertInMemoryStateToDictionary as convertInMemoryStateToDictionary, index$d_dumpCodec as dumpCodec, index$d_getSafroleData as getSafroleData, index$d_legacyServiceNested as legacyServiceNested, index$d_loadState as loadState, index$d_serialize as serialize, index$d_serializeBasicKeys as serializeBasicKeys, index$d_serializePreimages as serializePreimages, index$d_serializeRemovedServices as serializeRemovedServices, index$d_serializeServiceUpdates as serializeServiceUpdates, index$d_serializeStateUpdate as serializeStateUpdate, index$d_serializeStorage as serializeStorage, index$d_stateEntriesSequenceCodec as stateEntriesSequenceCodec, index$d_stateKeys as stateKeys };
12264
+ export type { index$d_EncodeFun as EncodeFun, index$d_KeyAndCodec as KeyAndCodec, index$d_SerializedStateBackend as SerializedStateBackend, index$d_StateCodec as StateCodec, index$d_StateEntryUpdate as StateEntryUpdate, index$d_StateKey as StateKey };
12230
12265
  }
12231
12266
 
12232
12267
  /** Error during `LeafDb` creation. */
@@ -12434,25 +12469,25 @@ declare class InMemoryStates implements StatesDb<InMemoryState> {
12434
12469
  }
12435
12470
  }
12436
12471
 
12437
- type index$a_BlocksDb = BlocksDb;
12438
- type index$a_InMemoryBlocks = InMemoryBlocks;
12439
- declare const index$a_InMemoryBlocks: typeof InMemoryBlocks;
12440
- type index$a_InMemoryStates = InMemoryStates;
12441
- declare const index$a_InMemoryStates: typeof InMemoryStates;
12442
- type index$a_LeafDb = LeafDb;
12443
- declare const index$a_LeafDb: typeof LeafDb;
12444
- type index$a_LeafDbError = LeafDbError;
12445
- declare const index$a_LeafDbError: typeof LeafDbError;
12446
- type index$a_Lookup = Lookup;
12447
- type index$a_LookupKind = LookupKind;
12448
- declare const index$a_LookupKind: typeof LookupKind;
12449
- type index$a_StateUpdateError = StateUpdateError;
12450
- declare const index$a_StateUpdateError: typeof StateUpdateError;
12451
- type index$a_StatesDb<T extends State = State> = StatesDb<T>;
12452
- type index$a_ValuesDb = ValuesDb;
12453
- declare namespace index$a {
12454
- export { index$a_InMemoryBlocks as InMemoryBlocks, index$a_InMemoryStates as InMemoryStates, index$a_LeafDb as LeafDb, index$a_LeafDbError as LeafDbError, index$a_LookupKind as LookupKind, index$a_StateUpdateError as StateUpdateError };
12455
- export type { index$a_BlocksDb as BlocksDb, index$a_Lookup as Lookup, index$a_StatesDb as StatesDb, index$a_ValuesDb as ValuesDb };
12472
+ type index$c_BlocksDb = BlocksDb;
12473
+ type index$c_InMemoryBlocks = InMemoryBlocks;
12474
+ declare const index$c_InMemoryBlocks: typeof InMemoryBlocks;
12475
+ type index$c_InMemoryStates = InMemoryStates;
12476
+ declare const index$c_InMemoryStates: typeof InMemoryStates;
12477
+ type index$c_LeafDb = LeafDb;
12478
+ declare const index$c_LeafDb: typeof LeafDb;
12479
+ type index$c_LeafDbError = LeafDbError;
12480
+ declare const index$c_LeafDbError: typeof LeafDbError;
12481
+ type index$c_Lookup = Lookup;
12482
+ type index$c_LookupKind = LookupKind;
12483
+ declare const index$c_LookupKind: typeof LookupKind;
12484
+ type index$c_StateUpdateError = StateUpdateError;
12485
+ declare const index$c_StateUpdateError: typeof StateUpdateError;
12486
+ type index$c_StatesDb<T extends State = State> = StatesDb<T>;
12487
+ type index$c_ValuesDb = ValuesDb;
12488
+ declare namespace index$c {
12489
+ export { index$c_InMemoryBlocks as InMemoryBlocks, index$c_InMemoryStates as InMemoryStates, index$c_LeafDb as LeafDb, index$c_LeafDbError as LeafDbError, index$c_LookupKind as LookupKind, index$c_StateUpdateError as StateUpdateError };
12490
+ export type { index$c_BlocksDb as BlocksDb, index$c_Lookup as Lookup, index$c_StatesDb as StatesDb, index$c_ValuesDb as ValuesDb };
12456
12491
  }
12457
12492
 
12458
12493
  /**
@@ -12874,31 +12909,572 @@ declare const initEc = async () => {
12874
12909
  await init.reedSolomon();
12875
12910
  };
12876
12911
 
12877
- declare const index$9_HALF_POINT_SIZE: typeof HALF_POINT_SIZE;
12878
- declare const index$9_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
12879
- type index$9_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
12880
- type index$9_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
12881
- type index$9_PIECE_SIZE = PIECE_SIZE;
12882
- declare const index$9_POINT_ALIGNMENT: typeof POINT_ALIGNMENT;
12883
- type index$9_POINT_LENGTH = POINT_LENGTH;
12884
- declare const index$9_checkConsistency: typeof checkConsistency;
12885
- declare const index$9_chunkingFunction: typeof chunkingFunction;
12886
- declare const index$9_chunksToShards: typeof chunksToShards;
12887
- declare const index$9_decodeData: typeof decodeData;
12888
- declare const index$9_decodeDataAndTrim: typeof decodeDataAndTrim;
12889
- declare const index$9_decodePiece: typeof decodePiece;
12890
- declare const index$9_encodePoints: typeof encodePoints;
12891
- declare const index$9_initEc: typeof initEc;
12892
- declare const index$9_join: typeof join;
12893
- declare const index$9_lace: typeof lace;
12894
- declare const index$9_padAndEncodeData: typeof padAndEncodeData;
12895
- declare const index$9_shardsToChunks: typeof shardsToChunks;
12896
- declare const index$9_split: typeof split;
12897
- declare const index$9_transpose: typeof transpose;
12898
- declare const index$9_unzip: typeof unzip;
12912
+ declare const index$b_HALF_POINT_SIZE: typeof HALF_POINT_SIZE;
12913
+ declare const index$b_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
12914
+ type index$b_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
12915
+ type index$b_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
12916
+ type index$b_PIECE_SIZE = PIECE_SIZE;
12917
+ declare const index$b_POINT_ALIGNMENT: typeof POINT_ALIGNMENT;
12918
+ type index$b_POINT_LENGTH = POINT_LENGTH;
12919
+ declare const index$b_checkConsistency: typeof checkConsistency;
12920
+ declare const index$b_chunkingFunction: typeof chunkingFunction;
12921
+ declare const index$b_chunksToShards: typeof chunksToShards;
12922
+ declare const index$b_decodeData: typeof decodeData;
12923
+ declare const index$b_decodeDataAndTrim: typeof decodeDataAndTrim;
12924
+ declare const index$b_decodePiece: typeof decodePiece;
12925
+ declare const index$b_encodePoints: typeof encodePoints;
12926
+ declare const index$b_initEc: typeof initEc;
12927
+ declare const index$b_join: typeof join;
12928
+ declare const index$b_lace: typeof lace;
12929
+ declare const index$b_padAndEncodeData: typeof padAndEncodeData;
12930
+ declare const index$b_shardsToChunks: typeof shardsToChunks;
12931
+ declare const index$b_split: typeof split;
12932
+ declare const index$b_transpose: typeof transpose;
12933
+ declare const index$b_unzip: typeof unzip;
12934
+ declare namespace index$b {
12935
+ export { index$b_HALF_POINT_SIZE as HALF_POINT_SIZE, index$b_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$b_POINT_ALIGNMENT as POINT_ALIGNMENT, index$b_checkConsistency as checkConsistency, index$b_chunkingFunction as chunkingFunction, index$b_chunksToShards as chunksToShards, index$b_decodeData as decodeData, index$b_decodeDataAndTrim as decodeDataAndTrim, index$b_decodePiece as decodePiece, index$b_encodePoints as encodePoints, index$b_initEc as initEc, index$b_join as join, index$b_lace as lace, index$b_padAndEncodeData as padAndEncodeData, index$b_shardsToChunks as shardsToChunks, index$b_split as split, index$b_transpose as transpose, index$b_unzip as unzip };
12936
+ export type { index$b_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$b_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$b_PIECE_SIZE as PIECE_SIZE, index$b_POINT_LENGTH as POINT_LENGTH };
12937
+ }
12938
+
12939
+ /** A per-client handler of incoming socket messages. */
12940
+ interface IpcHandler {
12941
+ /** New data on the socket received. */
12942
+ onSocketMessage(msg: Uint8Array): Promise<void>;
12943
+
12944
+ /** Socket closed or errored. */
12945
+ onClose(reason: { error?: Error }): void;
12946
+ }
12947
+
12948
+ /** Sending data abstraction on a socket. */
12949
+ interface IpcSender {
12950
+ /** Write given data to the outgoing socket. */
12951
+ send(data: BytesBlob): void;
12952
+
12953
+ /** Close the socket. */
12954
+ close(): void;
12955
+ }
12956
+
12957
+ /**
12958
+ * Version ::= SEQUENCE {
12959
+ * major INTEGER (0..255),
12960
+ * minor INTEGER (0..255),
12961
+ * patch INTEGER (0..255)
12962
+ * }
12963
+ */
12964
+ declare class Version extends WithDebug {
12965
+ static Codec = codec.Class(Version, {
12966
+ major: codec.u8,
12967
+ minor: codec.u8,
12968
+ patch: codec.u8,
12969
+ });
12970
+
12971
+ static tryFromString(str: string): Version {
12972
+ const parse = (v: string) => tryAsU8(Number(v));
12973
+ try {
12974
+ const [major, minor, patch] = str.trim().split(".").map(parse);
12975
+
12976
+ return Version.create({
12977
+ major,
12978
+ minor,
12979
+ patch,
12980
+ });
12981
+ } catch (e) {
12982
+ throw new Error(`Unable to parse ${str} as Version: ${e}`);
12983
+ }
12984
+ }
12985
+
12986
+ static create({ major, minor, patch }: CodecRecord<Version>) {
12987
+ return new Version(major, minor, patch);
12988
+ }
12989
+
12990
+ private constructor(
12991
+ public readonly major: U8,
12992
+ public readonly minor: U8,
12993
+ public readonly patch: U8,
12994
+ ) {
12995
+ super();
12996
+ }
12997
+ }
12998
+
12999
+ /**
13000
+ * Fuzzer Protocol V1
13001
+ * Reference: https://github.com/davxy/jam-conformance/blob/main/fuzz-proto/fuzz.asn
13002
+ */
13003
+ // Feature bit constants
13004
+ declare enum Features {
13005
+ Ancestry = 1, // 2^0
13006
+ Fork = 2, // 2^1
13007
+ Reserved = 2147483648, // 2^31
13008
+ }
13009
+
13010
+ /**
13011
+ * PeerInfo ::= SEQUENCE {
13012
+ * fuzz-version U8,
13013
+ * features Features,
13014
+ * jam-version Version,
13015
+ * app-version Version,
13016
+ * name UTF8String
13017
+ * }
13018
+ */
13019
+ declare class PeerInfo extends WithDebug {
13020
+ static Codec = codec.Class(PeerInfo, {
13021
+ fuzzVersion: codec.u8,
13022
+ features: codec.u32,
13023
+ jamVersion: Version.Codec,
13024
+ appVersion: Version.Codec,
13025
+ name: codec.string,
13026
+ });
13027
+
13028
+ static create({ fuzzVersion, features, appVersion, jamVersion, name }: CodecRecord<PeerInfo>) {
13029
+ return new PeerInfo(fuzzVersion, features, jamVersion, appVersion, name);
13030
+ }
13031
+
13032
+ private constructor(
13033
+ public readonly fuzzVersion: U8,
13034
+ public readonly features: U32,
13035
+ public readonly jamVersion: Version,
13036
+ public readonly appVersion: Version,
13037
+ public readonly name: string,
13038
+ ) {
13039
+ super();
13040
+ }
13041
+ }
13042
+
13043
+ /**
13044
+ * AncestryItem ::= SEQUENCE {
13045
+ * slot TimeSlot,
13046
+ * header-hash HeaderHash
13047
+ * }
13048
+ */
13049
+ declare class AncestryItem extends WithDebug {
13050
+ static Codec = codec.Class(AncestryItem, {
13051
+ slot: codec.u32.asOpaque<TimeSlot>(),
13052
+ headerHash: codec.bytes(HASH_SIZE).asOpaque<HeaderHash>(),
13053
+ });
13054
+
13055
+ static create({ slot, headerHash }: CodecRecord<AncestryItem>) {
13056
+ return new AncestryItem(slot, headerHash);
13057
+ }
13058
+
13059
+ private constructor(
13060
+ public readonly slot: TimeSlot,
13061
+ public readonly headerHash: HeaderHash,
13062
+ ) {
13063
+ super();
13064
+ }
13065
+ }
13066
+
13067
+ /**
13068
+ * KeyValue ::= SEQUENCE {
13069
+ * key TrieKey,
13070
+ * value OCTET STRING
13071
+ * }
13072
+ */
13073
+ declare class KeyValue extends WithDebug {
13074
+ static Codec = codec.Class(KeyValue, {
13075
+ key: codec.bytes(TRUNCATED_HASH_SIZE),
13076
+ value: codec.blob,
13077
+ });
13078
+
13079
+ static create({ key, value }: CodecRecord<KeyValue>) {
13080
+ return new KeyValue(key, value);
13081
+ }
13082
+
13083
+ private constructor(
13084
+ public readonly key: TruncatedHash,
13085
+ public readonly value: BytesBlob,
13086
+ ) {
13087
+ super();
13088
+ }
13089
+ }
13090
+
13091
+ /** State ::= SEQUENCE OF KeyValue */
13092
+ declare const stateCodec = codec.sequenceVarLen(KeyValue.Codec);
13093
+
13094
+ /**
13095
+ * Ancestry ::= SEQUENCE (SIZE(0..24)) OF AncestryItem
13096
+ * Empty when `feature-ancestry` is not supported by both parties
13097
+ */
13098
+ declare const ancestryCodec = codec.sequenceVarLen(AncestryItem.Codec, {
13099
+ minLength: 0,
13100
+ maxLength: 24,
13101
+ });
13102
+ type Ancestry = AncestryItem[];
13103
+
13104
+ /**
13105
+ * Initialize ::= SEQUENCE {
13106
+ * header Header,
13107
+ * keyvals State,
13108
+ * ancestry Ancestry
13109
+ * }
13110
+ */
13111
+ declare class Initialize extends WithDebug {
13112
+ static Codec = codec.Class(Initialize, {
13113
+ header: Header.Codec,
13114
+ keyvals: stateCodec,
13115
+ ancestry: ancestryCodec,
13116
+ });
13117
+
13118
+ static create({ header, keyvals, ancestry }: CodecRecord<Initialize>) {
13119
+ return new Initialize(header, keyvals, ancestry);
13120
+ }
13121
+
13122
+ private constructor(
13123
+ public readonly header: Header,
13124
+ public readonly keyvals: KeyValue[],
13125
+ public readonly ancestry: Ancestry,
13126
+ ) {
13127
+ super();
13128
+ }
13129
+ }
13130
+
13131
+ /** GetState ::= HeaderHash */
13132
+ declare const getStateCodec = codec.bytes(HASH_SIZE).asOpaque<HeaderHash>();
13133
+ type GetState = HeaderHash;
13134
+
13135
+ /** StateRoot ::= StateRootHash */
13136
+ declare const stateRootCodec = codec.bytes(HASH_SIZE).asOpaque<StateRootHash>();
13137
+ type StateRoot = StateRootHash;
13138
+
13139
+ /** Error ::= UTF8String */
13140
+ declare class ErrorMessage extends WithDebug {
13141
+ static Codec = codec.Class(ErrorMessage, {
13142
+ message: codec.string,
13143
+ });
13144
+
13145
+ static create({ message }: CodecRecord<ErrorMessage>): ErrorMessage {
13146
+ return new ErrorMessage(message);
13147
+ }
13148
+
13149
+ private constructor(public readonly message: string) {
13150
+ super();
13151
+ }
13152
+ }
13153
+
13154
+ /** Message choice type tags */
13155
+ declare enum MessageType {
13156
+ PeerInfo = 0,
13157
+ Initialize = 1,
13158
+ StateRoot = 2,
13159
+ ImportBlock = 3,
13160
+ GetState = 4,
13161
+ State = 5,
13162
+ Error = 255,
13163
+ }
13164
+
13165
+ /** Message data union */
13166
+ type MessageData =
13167
+ | { type: MessageType.PeerInfo; value: PeerInfo }
13168
+ | { type: MessageType.Initialize; value: Initialize }
13169
+ | { type: MessageType.StateRoot; value: StateRoot }
13170
+ | { type: MessageType.ImportBlock; value: BlockView }
13171
+ | { type: MessageType.GetState; value: GetState }
13172
+ | { type: MessageType.State; value: KeyValue[] }
13173
+ | { type: MessageType.Error; value: ErrorMessage };
13174
+
13175
+ /**
13176
+ * Message ::= CHOICE {
13177
+ * peer-info [0] PeerInfo,
13178
+ * initialize [1] Initialize,
13179
+ * state-root [2] StateRoot,
13180
+ * import-block [3] ImportBlock,
13181
+ * get-state [4] GetState,
13182
+ * state [5] State,
13183
+ * error [255] Error
13184
+ * }
13185
+ */
13186
+ declare const messageCodec = codec.custom<MessageData>(
13187
+ {
13188
+ name: "Message",
13189
+ sizeHint: { bytes: 1, isExact: false },
13190
+ },
13191
+ (e, msg) => {
13192
+ e.i8(msg.type);
13193
+ switch (msg.type) {
13194
+ case MessageType.PeerInfo:
13195
+ PeerInfo.Codec.encode(e, msg.value);
13196
+ break;
13197
+ case MessageType.Initialize:
13198
+ Initialize.Codec.encode(e, msg.value);
13199
+ break;
13200
+ case MessageType.StateRoot:
13201
+ stateRootCodec.encode(e, msg.value);
13202
+ break;
13203
+ case MessageType.ImportBlock:
13204
+ Block.Codec.View.encode(e, msg.value);
13205
+ break;
13206
+ case MessageType.GetState:
13207
+ getStateCodec.encode(e, msg.value);
13208
+ break;
13209
+ case MessageType.State:
13210
+ stateCodec.encode(e, msg.value);
13211
+ break;
13212
+ case MessageType.Error:
13213
+ ErrorMessage.Codec.encode(e, msg.value);
13214
+ break;
13215
+ default:
13216
+ throw new Error(`Unknown message type: ${msg}`);
13217
+ }
13218
+ },
13219
+ (d): MessageData => {
13220
+ const type = d.u8();
13221
+ switch (type) {
13222
+ case MessageType.PeerInfo:
13223
+ return { type: MessageType.PeerInfo, value: PeerInfo.Codec.decode(d) };
13224
+ case MessageType.Initialize:
13225
+ return { type: MessageType.Initialize, value: Initialize.Codec.decode(d) };
13226
+ case MessageType.StateRoot:
13227
+ return { type: MessageType.StateRoot, value: stateRootCodec.decode(d) };
13228
+ case MessageType.ImportBlock:
13229
+ return { type: MessageType.ImportBlock, value: Block.Codec.View.decode(d) };
13230
+ case MessageType.GetState:
13231
+ return { type: MessageType.GetState, value: getStateCodec.decode(d) };
13232
+ case MessageType.State:
13233
+ return { type: MessageType.State, value: stateCodec.decode(d) };
13234
+ case MessageType.Error:
13235
+ return { type: MessageType.Error, value: ErrorMessage.Codec.decode(d) };
13236
+ default:
13237
+ throw new Error(`Unknown message type: ${type}`);
13238
+ }
13239
+ },
13240
+ (s) => {
13241
+ const type = s.decoder.u8();
13242
+ switch (type) {
13243
+ case MessageType.PeerInfo:
13244
+ PeerInfo.Codec.View.skip(s);
13245
+ break;
13246
+ case MessageType.Initialize:
13247
+ Initialize.Codec.View.skip(s);
13248
+ break;
13249
+ case MessageType.StateRoot:
13250
+ stateRootCodec.View.skip(s);
13251
+ break;
13252
+ case MessageType.ImportBlock:
13253
+ Block.Codec.View.skip(s);
13254
+ break;
13255
+ case MessageType.GetState:
13256
+ getStateCodec.View.skip(s);
13257
+ break;
13258
+ case MessageType.State:
13259
+ stateCodec.View.skip(s);
13260
+ break;
13261
+ case MessageType.Error:
13262
+ ErrorMessage.Codec.View.skip(s);
13263
+ break;
13264
+ default:
13265
+ throw new Error(`Unknown message type: ${type}`);
13266
+ }
13267
+ },
13268
+ );
13269
+
13270
+ type Message = MessageData;
13271
+
13272
+ declare const logger$1 = Logger.new(import.meta.filename, "ext-ipc-fuzz-v1");
13273
+
13274
+ /**
13275
+ * Handler interface for v1 fuzzer protocol messages.
13276
+ * https://github.com/davxy/jam-conformance/blob/main/fuzz-proto/fuzz-v1.asn
13277
+ */
13278
+ interface FuzzMessageHandler {
13279
+ /**
13280
+ * Handshake and versioning exchange.
13281
+ * Target waits to receive the fuzzer's PeerInfo message before sending its own.
13282
+ */
13283
+ getPeerInfo(value: PeerInfo): Promise<PeerInfo>;
13284
+
13285
+ /**
13286
+ * Initialize or reset target state.
13287
+ * Returns the state root of the initialized state.
13288
+ */
13289
+ initialize(header: Initialize): Promise<StateRootHash>;
13290
+
13291
+ /**
13292
+ * Process block and return resulting state root.
13293
+ * May return an Error if the block import fails.
13294
+ */
13295
+ importBlock(value: BlockView): Promise<Result$2<StateRootHash, ErrorMessage>>;
13296
+
13297
+ /** Retrieve posterior state associated to given header hash. */
13298
+ getSerializedState(value: HeaderHash): Promise<KeyValue[]>;
13299
+ }
13300
+
13301
+ declare class FuzzTarget implements IpcHandler {
13302
+ private sessionFeatures = 0;
13303
+
13304
+ constructor(
13305
+ public readonly msgHandler: FuzzMessageHandler,
13306
+ public readonly sender: IpcSender,
13307
+ public readonly spec: ChainSpec,
13308
+ ) {}
13309
+
13310
+ async onSocketMessage(msg: Uint8Array): Promise<void> {
13311
+ // attempt to decode the messsage
13312
+ try {
13313
+ const message = Decoder.decodeObject(messageCodec, msg, this.spec);
13314
+ logger.log`[${message.type}] incoming message`;
13315
+
13316
+ await this.processAndRespond(message);
13317
+ } catch (e) {
13318
+ logger.error`Error while processing fuzz v1 message: ${e}`;
13319
+ logger.error`${e}`;
13320
+ if (e instanceof Error) {
13321
+ logger.error`${e.stack ?? ""}`;
13322
+ }
13323
+ this.sender.close();
13324
+ }
13325
+ }
13326
+
13327
+ private async processAndRespond(message: MessageData): Promise<void> {
13328
+ let response: Message | null = null;
13329
+
13330
+ switch (message.type) {
13331
+ case MessageType.PeerInfo: {
13332
+ // only support V1
13333
+ if (message.value.fuzzVersion !== 1) {
13334
+ logger.warn`Unsupported fuzzer protocol version: ${message.value.fuzzVersion}. Closing`;
13335
+ this.sender.close();
13336
+ return;
13337
+ }
13338
+
13339
+ // Handle handshake
13340
+ const ourPeerInfo = await this.msgHandler.getPeerInfo(message.value);
13341
+
13342
+ // Calculate session features (intersection of both peer features)
13343
+ this.sessionFeatures = message.value.features & ourPeerInfo.features;
13344
+
13345
+ logger.info`Handshake completed. Shared features: 0b${this.sessionFeatures.toString(2)}`;
13346
+ logger.log`Feature ancestry: ${(this.sessionFeatures & Features.Ancestry) !== 0}`;
13347
+ logger.log`Feature fork: ${(this.sessionFeatures & Features.Fork) !== 0}`;
13348
+
13349
+ response = {
13350
+ type: MessageType.PeerInfo,
13351
+ value: ourPeerInfo,
13352
+ };
13353
+ break;
13354
+ }
13355
+
13356
+ case MessageType.Initialize: {
13357
+ const stateRoot = await this.msgHandler.initialize(message.value);
13358
+ response = {
13359
+ type: MessageType.StateRoot,
13360
+ value: stateRoot,
13361
+ };
13362
+ break;
13363
+ }
13364
+
13365
+ case MessageType.ImportBlock: {
13366
+ const result = await this.msgHandler.importBlock(message.value);
13367
+
13368
+ if (result.isOk) {
13369
+ response = {
13370
+ type: MessageType.StateRoot,
13371
+ value: result.ok,
13372
+ };
13373
+ } else {
13374
+ response = {
13375
+ type: MessageType.Error,
13376
+ value: result.error,
13377
+ };
13378
+ }
13379
+ break;
13380
+ }
13381
+
13382
+ case MessageType.GetState: {
13383
+ const state = await this.msgHandler.getSerializedState(message.value);
13384
+ response = {
13385
+ type: MessageType.State,
13386
+ value: state,
13387
+ };
13388
+ break;
13389
+ }
13390
+
13391
+ case MessageType.StateRoot: {
13392
+ logger.log`--> Received unexpected 'StateRoot' message from the fuzzer. Closing.`;
13393
+ this.sender.close();
13394
+ return;
13395
+ }
13396
+
13397
+ case MessageType.State: {
13398
+ logger.log`--> Received unexpected 'State' message from the fuzzer. Closing.`;
13399
+ this.sender.close();
13400
+ return;
13401
+ }
13402
+
13403
+ case MessageType.Error: {
13404
+ logger.log`--> Received unexpected 'Error' message from the fuzzer. Closing.`;
13405
+ this.sender.close();
13406
+ return;
13407
+ }
13408
+
13409
+ default: {
13410
+ logger.log`--> Received unexpected message type ${JSON.stringify(message)} from the fuzzer. Closing.`;
13411
+ this.sender.close();
13412
+ try {
13413
+ assertNever(message);
13414
+ } catch {
13415
+ return;
13416
+ }
13417
+ }
13418
+ }
13419
+
13420
+ if (response !== null) {
13421
+ logger.trace`<-- responding with: ${response.type}`;
13422
+ const encoded = Encoder.encodeObject(messageCodec, response, this.spec);
13423
+ this.sender.send(encoded);
13424
+ } else {
13425
+ logger.warn`<-- no response generated for: ${message.type}`;
13426
+ }
13427
+ }
13428
+
13429
+ onClose({ error }: { error?: Error }): void {
13430
+ logger.log`Closing the v1 handler. Reason: ${error !== undefined ? error.message : "close"}.`;
13431
+ }
13432
+
13433
+ /** Check if a specific feature is enabled in the session */
13434
+ hasFeature(feature: number): boolean {
13435
+ return (this.sessionFeatures & feature) !== 0;
13436
+ }
13437
+ }
13438
+
13439
+ type index$a_Ancestry = Ancestry;
13440
+ type index$a_AncestryItem = AncestryItem;
13441
+ declare const index$a_AncestryItem: typeof AncestryItem;
13442
+ type index$a_ErrorMessage = ErrorMessage;
13443
+ declare const index$a_ErrorMessage: typeof ErrorMessage;
13444
+ type index$a_Features = Features;
13445
+ declare const index$a_Features: typeof Features;
13446
+ type index$a_FuzzMessageHandler = FuzzMessageHandler;
13447
+ type index$a_FuzzTarget = FuzzTarget;
13448
+ declare const index$a_FuzzTarget: typeof FuzzTarget;
13449
+ type index$a_GetState = GetState;
13450
+ type index$a_Initialize = Initialize;
13451
+ declare const index$a_Initialize: typeof Initialize;
13452
+ type index$a_KeyValue = KeyValue;
13453
+ declare const index$a_KeyValue: typeof KeyValue;
13454
+ type index$a_Message = Message;
13455
+ type index$a_MessageData = MessageData;
13456
+ type index$a_MessageType = MessageType;
13457
+ declare const index$a_MessageType: typeof MessageType;
13458
+ type index$a_PeerInfo = PeerInfo;
13459
+ declare const index$a_PeerInfo: typeof PeerInfo;
13460
+ type index$a_StateRoot = StateRoot;
13461
+ type index$a_Version = Version;
13462
+ declare const index$a_Version: typeof Version;
13463
+ declare const index$a_ancestryCodec: typeof ancestryCodec;
13464
+ declare const index$a_getStateCodec: typeof getStateCodec;
13465
+ declare const index$a_messageCodec: typeof messageCodec;
13466
+ declare const index$a_stateCodec: typeof stateCodec;
13467
+ declare const index$a_stateRootCodec: typeof stateRootCodec;
13468
+ declare namespace index$a {
13469
+ export { index$a_AncestryItem as AncestryItem, index$a_ErrorMessage as ErrorMessage, index$a_Features as Features, index$a_FuzzTarget as FuzzTarget, index$a_Initialize as Initialize, index$a_KeyValue as KeyValue, index$a_MessageType as MessageType, index$a_PeerInfo as PeerInfo, index$a_Version as Version, index$a_ancestryCodec as ancestryCodec, index$a_getStateCodec as getStateCodec, logger$1 as logger, index$a_messageCodec as messageCodec, index$a_stateCodec as stateCodec, index$a_stateRootCodec as stateRootCodec };
13470
+ export type { index$a_Ancestry as Ancestry, index$a_FuzzMessageHandler as FuzzMessageHandler, index$a_GetState as GetState, index$a_Message as Message, index$a_MessageData as MessageData, index$a_StateRoot as StateRoot };
13471
+ }
13472
+
13473
+ type index$9_IpcHandler = IpcHandler;
13474
+ type index$9_IpcSender = IpcSender;
12899
13475
  declare namespace index$9 {
12900
- export { index$9_HALF_POINT_SIZE as HALF_POINT_SIZE, index$9_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$9_POINT_ALIGNMENT as POINT_ALIGNMENT, index$9_checkConsistency as checkConsistency, index$9_chunkingFunction as chunkingFunction, index$9_chunksToShards as chunksToShards, index$9_decodeData as decodeData, index$9_decodeDataAndTrim as decodeDataAndTrim, index$9_decodePiece as decodePiece, index$9_encodePoints as encodePoints, index$9_initEc as initEc, index$9_join as join, index$9_lace as lace, index$9_padAndEncodeData as padAndEncodeData, index$9_shardsToChunks as shardsToChunks, index$9_split as split, index$9_transpose as transpose, index$9_unzip as unzip };
12901
- export type { index$9_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$9_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$9_PIECE_SIZE as PIECE_SIZE, index$9_POINT_LENGTH as POINT_LENGTH };
13476
+ export { index$a as v1 };
13477
+ export type { index$9_IpcHandler as IpcHandler, index$9_IpcSender as IpcSender };
12902
13478
  }
12903
13479
 
12904
13480
  /** Size of the transfer memo. */
@@ -14780,11 +15356,12 @@ declare class MemoryBuilder {
14780
15356
  `;
14781
15357
  this.ensureNotFinalized();
14782
15358
 
14783
- const range = MemoryRange.fromStartAndLength(startHeapIndex, endHeapIndex - startHeapIndex);
14784
- const pages = PageRange.fromMemoryRange(range);
15359
+ const heapRange = MemoryRange.fromStartAndLength(startHeapIndex, endHeapIndex - startHeapIndex);
15360
+ const heapPagesRange = PageRange.fromMemoryRange(heapRange);
15361
+ const initializedPageNumbers = Array.from(this.initialMemory.keys());
14785
15362
 
14786
- for (const pageNumber of pages) {
14787
- if (this.initialMemory.has(pageNumber)) {
15363
+ for (const pageNumber of initializedPageNumbers) {
15364
+ if (heapPagesRange.isInRange(pageNumber)) {
14788
15365
  throw new IncorrectSbrkIndex();
14789
15366
  }
14790
15367
  }
@@ -18256,7 +18833,7 @@ declare const index$3_tryAsMachineId: typeof tryAsMachineId;
18256
18833
  declare const index$3_tryAsProgramCounter: typeof tryAsProgramCounter;
18257
18834
  declare const index$3_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
18258
18835
  declare namespace index$3 {
18259
- export { index$3_AccumulationStateUpdate as AccumulationStateUpdate, index$3_ArgsDecoder as ArgsDecoder, index$3_ArgumentType as ArgumentType, index$3_BasicBlocks as BasicBlocks, index$3_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$3_EjectError as EjectError, index$3_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$3_ForgetPreimageError as ForgetPreimageError, index$3_HostCallMemory as HostCallMemory, index$3_HostCallRegisters as HostCallRegisters, index$3_HostCallResult as HostCallResult, index$3_ImmediateDecoder as ImmediateDecoder, index$3_MAX_U32 as MAX_U32, index$3_MAX_U32_BIG_INT as MAX_U32_BIG_INT, index$3_MachineInstance as MachineInstance, index$3_Mask as Mask, index$3_MemoryOperation as MemoryOperation, index$3_MemorySegment as MemorySegment, NO_OF_REGISTERS$1 as NO_OF_REGISTERS, index$3_NewServiceError as NewServiceError, index$3_NibblesDecoder as NibblesDecoder, index$3_PagesError as PagesError, index$3_PartiallyUpdatedState as PartiallyUpdatedState, index$3_PeekPokeError as PeekPokeError, index$3_PendingTransfer as PendingTransfer, index$3_PreimageStatusKind as PreimageStatusKind, index$3_Program as Program, index$3_ProgramDecoder as ProgramDecoder, index$3_ProvidePreimageError as ProvidePreimageError, DebuggerAdapter as Pvm, index$3_Registers as Registers, index$3_RequestPreimageError as RequestPreimageError, Result$2 as Result, index$3_RichTaggedError as RichTaggedError, index$3_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$3_SpiMemory as SpiMemory, index$3_SpiProgram as SpiProgram, index$3_TransferError as TransferError, index$3_UpdatePrivilegesError as UpdatePrivilegesError, index$3_WithDebug as WithDebug, index$3_ZeroVoidError as ZeroVoidError, index$3___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$3_asOpaqueType as asOpaqueType, index$3_assertEmpty as assertEmpty, index$3_assertNever as assertNever, index$j as block, index$q as bytes, index$3_check as check, index$3_clampU64ToU32 as clampU64ToU32, index$3_createResults as createResults, index$3_decodeStandardProgram as decodeStandardProgram, index$3_extractCodeAndMetadata as extractCodeAndMetadata, index$3_getServiceId as getServiceId, index$3_getServiceIdOrCurrent as getServiceIdOrCurrent, index$n as hash, index$3_inspect as inspect, index$3_instructionArgumentTypeMap as instructionArgumentTypeMap, index$8 as interpreter, index$3_isBrowser as isBrowser, index$3_isTaggedError as isTaggedError, index$3_maybeTaggedErrorToString as maybeTaggedErrorToString, index$3_measure as measure, index$p as numbers, index$3_preimageLenAsU32 as preimageLenAsU32, index$3_resultToString as resultToString, index$3_seeThrough as seeThrough, index$3_slotsToPreimageStatus as slotsToPreimageStatus, index$3_toMemoryOperation as toMemoryOperation, index$3_tryAsMachineId as tryAsMachineId, index$3_tryAsProgramCounter as tryAsProgramCounter, index$3_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
18836
+ export { index$3_AccumulationStateUpdate as AccumulationStateUpdate, index$3_ArgsDecoder as ArgsDecoder, index$3_ArgumentType as ArgumentType, index$3_BasicBlocks as BasicBlocks, index$3_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$3_EjectError as EjectError, index$3_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$3_ForgetPreimageError as ForgetPreimageError, index$3_HostCallMemory as HostCallMemory, index$3_HostCallRegisters as HostCallRegisters, index$3_HostCallResult as HostCallResult, index$3_ImmediateDecoder as ImmediateDecoder, index$3_MAX_U32 as MAX_U32, index$3_MAX_U32_BIG_INT as MAX_U32_BIG_INT, index$3_MachineInstance as MachineInstance, index$3_Mask as Mask, index$3_MemoryOperation as MemoryOperation, index$3_MemorySegment as MemorySegment, NO_OF_REGISTERS$1 as NO_OF_REGISTERS, index$3_NewServiceError as NewServiceError, index$3_NibblesDecoder as NibblesDecoder, index$3_PagesError as PagesError, index$3_PartiallyUpdatedState as PartiallyUpdatedState, index$3_PeekPokeError as PeekPokeError, index$3_PendingTransfer as PendingTransfer, index$3_PreimageStatusKind as PreimageStatusKind, index$3_Program as Program, index$3_ProgramDecoder as ProgramDecoder, index$3_ProvidePreimageError as ProvidePreimageError, DebuggerAdapter as Pvm, index$3_Registers as Registers, index$3_RequestPreimageError as RequestPreimageError, Result$2 as Result, index$3_RichTaggedError as RichTaggedError, index$3_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$3_SpiMemory as SpiMemory, index$3_SpiProgram as SpiProgram, index$3_TransferError as TransferError, index$3_UpdatePrivilegesError as UpdatePrivilegesError, index$3_WithDebug as WithDebug, index$3_ZeroVoidError as ZeroVoidError, index$3___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$3_asOpaqueType as asOpaqueType, index$3_assertEmpty as assertEmpty, index$3_assertNever as assertNever, index$l as block, index$s as bytes, index$3_check as check, index$3_clampU64ToU32 as clampU64ToU32, index$3_createResults as createResults, index$3_decodeStandardProgram as decodeStandardProgram, index$3_extractCodeAndMetadata as extractCodeAndMetadata, index$3_getServiceId as getServiceId, index$3_getServiceIdOrCurrent as getServiceIdOrCurrent, index$p as hash, index$3_inspect as inspect, index$3_instructionArgumentTypeMap as instructionArgumentTypeMap, index$8 as interpreter, index$3_isBrowser as isBrowser, index$3_isTaggedError as isTaggedError, index$3_maybeTaggedErrorToString as maybeTaggedErrorToString, index$3_measure as measure, index$r as numbers, index$3_preimageLenAsU32 as preimageLenAsU32, index$3_resultToString as resultToString, index$3_seeThrough as seeThrough, index$3_slotsToPreimageStatus as slotsToPreimageStatus, index$3_toMemoryOperation as toMemoryOperation, index$3_tryAsMachineId as tryAsMachineId, index$3_tryAsProgramCounter as tryAsProgramCounter, index$3_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
18260
18837
  export type { index$3_Args as Args, index$3_EnumMapping as EnumMapping, index$3_ErrorResult as ErrorResult, index$3_IHostCallMemory as IHostCallMemory, index$3_IHostCallRegisters as IHostCallRegisters, index$3_InsufficientFundsError as InsufficientFundsError, index$3_MachineId as MachineId, index$3_MachineResult as MachineResult, index$3_MachineStatus as MachineStatus, index$3_NoMachineError as NoMachineError, index$3_OK as OK, index$3_OkResult as OkResult, index$3_Opaque as Opaque, index$3_PartialState as PartialState, index$3_PreimageStatus as PreimageStatus, index$3_ProgramCounter as ProgramCounter, index$3_RefineExternalities as RefineExternalities, index$3_SegmentExportError as SegmentExportError, index$3_ServiceStateUpdate as ServiceStateUpdate, index$3_StateSlice as StateSlice, index$3_StringLiteral as StringLiteral, index$3_TRANSFER_MEMO_BYTES as TRANSFER_MEMO_BYTES, index$3_TaggedError as TaggedError, index$3_TokenOf as TokenOf, index$3_Uninstantiable as Uninstantiable, index$3_UnprivilegedError as UnprivilegedError, index$3_WithOpaque as WithOpaque };
18261
18838
  }
18262
18839
 
@@ -19249,4 +19826,4 @@ declare namespace index {
19249
19826
  export type { index_PreimagesInput as PreimagesInput, index_PreimagesState as PreimagesState, index_PreimagesStateUpdate as PreimagesStateUpdate };
19250
19827
  }
19251
19828
 
19252
- export { index$j as block, index$h as block_json, index$q as bytes, index$o as codec, index$m as collections, index$k as config, index$f as config_node, index$l as crypto, index$a as database, index$9 as erasure_coding, index$n as hash, index$6 as jam_host_calls, index$i as json_parser, index$g as logger, index$d as mmr, index$p as numbers, index$r as ordering, index$3 as pvm, index$7 as pvm_host_calls, index$8 as pvm_interpreter, index$4 as pvm_program, index$5 as pvm_spi_decoder, index$2 as shuffling, index$c as state, index$1 as state_json, index$b as state_merkleization, index as transition, index$e as trie, index$s as utils };
19829
+ export { index$l as block, index$j as block_json, index$s as bytes, index$q as codec, index$o as collections, index$m as config, index$h as config_node, index$n as crypto, index$c as database, index$b as erasure_coding, index$9 as fuzz_proto, index$p as hash, index$6 as jam_host_calls, index$k as json_parser, index$i as logger, index$f as mmr, index$r as numbers, index$t as ordering, index$3 as pvm, index$7 as pvm_host_calls, index$8 as pvm_interpreter, index$4 as pvm_program, index$5 as pvm_spi_decoder, index$2 as shuffling, index$e as state, index$1 as state_json, index$d as state_merkleization, index as transition, index$g as trie, index$u as utils };