@typeberry/lib 0.1.2 → 0.1.3-6edad4a
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.cjs +565 -89
- package/index.d.ts +1233 -656
- package/index.js +546 -71
- package/package.json +1 -1
- package/bin/lib/index.d.ts +0 -29
- package/configs/index.d.ts +0 -76
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$
|
|
712
|
-
declare const index$
|
|
713
|
-
declare const index$
|
|
714
|
-
type index$
|
|
715
|
-
declare const index$
|
|
716
|
-
declare const index$
|
|
717
|
-
declare const index$
|
|
718
|
-
type index$
|
|
719
|
-
type index$
|
|
720
|
-
type index$
|
|
721
|
-
type index$
|
|
722
|
-
declare const index$
|
|
723
|
-
type index$
|
|
724
|
-
declare const index$
|
|
725
|
-
type index$
|
|
726
|
-
type index$
|
|
727
|
-
type index$
|
|
728
|
-
type index$
|
|
729
|
-
declare const index$
|
|
730
|
-
type index$
|
|
731
|
-
declare const index$
|
|
732
|
-
type index$
|
|
733
|
-
type index$
|
|
734
|
-
declare const index$
|
|
735
|
-
type index$
|
|
736
|
-
type index$
|
|
737
|
-
type index$
|
|
738
|
-
declare const index$
|
|
739
|
-
type index$
|
|
740
|
-
declare const index$
|
|
741
|
-
declare const index$
|
|
742
|
-
declare const index$
|
|
743
|
-
declare const index$
|
|
744
|
-
declare const index$
|
|
745
|
-
declare const index$
|
|
746
|
-
declare const index$
|
|
747
|
-
declare const index$
|
|
748
|
-
declare const index$
|
|
749
|
-
declare const index$
|
|
750
|
-
declare const index$
|
|
751
|
-
declare const index$
|
|
752
|
-
declare const index$
|
|
753
|
-
declare const index$
|
|
754
|
-
declare const index$
|
|
755
|
-
declare const index$
|
|
756
|
-
declare const index$
|
|
757
|
-
declare const index$
|
|
758
|
-
declare const index$
|
|
759
|
-
declare const index$
|
|
760
|
-
declare const index$
|
|
761
|
-
declare namespace index$
|
|
762
|
-
export { index$
|
|
763
|
-
export type { index$
|
|
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$
|
|
817
|
-
type index$
|
|
818
|
-
declare const index$
|
|
819
|
-
type index$
|
|
820
|
-
declare const index$
|
|
821
|
-
declare namespace index$
|
|
822
|
-
export { index$
|
|
823
|
-
export type { index$
|
|
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$
|
|
1217
|
-
declare const index$
|
|
1218
|
-
type index$
|
|
1219
|
-
declare const index$
|
|
1220
|
-
type index$
|
|
1221
|
-
declare const index$
|
|
1222
|
-
declare const index$
|
|
1223
|
-
declare const index$
|
|
1224
|
-
declare const index$
|
|
1225
|
-
declare const index$
|
|
1226
|
-
declare const index$
|
|
1227
|
-
declare const index$
|
|
1228
|
-
declare const index$
|
|
1229
|
-
declare const index$
|
|
1230
|
-
declare const index$
|
|
1231
|
-
declare const index$
|
|
1232
|
-
declare const index$
|
|
1233
|
-
declare const index$
|
|
1234
|
-
declare namespace index$
|
|
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$
|
|
1237
|
-
index$
|
|
1238
|
-
index$
|
|
1239
|
-
index$
|
|
1240
|
-
index$
|
|
1241
|
-
index$
|
|
1242
|
-
index$
|
|
1243
|
-
index$
|
|
1244
|
-
index$
|
|
1245
|
-
index$
|
|
1246
|
-
index$
|
|
1247
|
-
index$
|
|
1248
|
-
index$
|
|
1249
|
-
index$
|
|
1250
|
-
index$
|
|
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$
|
|
1399
|
-
declare const index$
|
|
1400
|
-
declare const index$
|
|
1401
|
-
declare const index$
|
|
1402
|
-
declare const index$
|
|
1403
|
-
type index$
|
|
1404
|
-
type index$
|
|
1405
|
-
type index$
|
|
1406
|
-
type index$
|
|
1407
|
-
type index$
|
|
1408
|
-
declare const index$
|
|
1409
|
-
declare const index$
|
|
1410
|
-
declare const index$
|
|
1411
|
-
declare const index$
|
|
1412
|
-
declare const index$
|
|
1413
|
-
declare const index$
|
|
1414
|
-
declare const index$
|
|
1415
|
-
declare const index$
|
|
1416
|
-
declare const index$
|
|
1417
|
-
declare const index$
|
|
1418
|
-
declare const index$
|
|
1419
|
-
declare const index$
|
|
1420
|
-
declare const index$
|
|
1421
|
-
declare const index$
|
|
1422
|
-
declare const index$
|
|
1423
|
-
declare const index$
|
|
1424
|
-
declare const index$
|
|
1425
|
-
declare const index$
|
|
1426
|
-
declare namespace index$
|
|
1427
|
-
export { index$
|
|
1428
|
-
export type { index$
|
|
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$
|
|
3404
|
-
type index$
|
|
3405
|
-
type index$
|
|
3406
|
-
declare const index$
|
|
3407
|
-
type index$
|
|
3408
|
-
type index$
|
|
3409
|
-
declare const index$
|
|
3410
|
-
type index$
|
|
3411
|
-
type index$
|
|
3412
|
-
declare const index$
|
|
3413
|
-
type index$
|
|
3414
|
-
type index$
|
|
3415
|
-
type index$
|
|
3416
|
-
declare const index$
|
|
3417
|
-
type index$
|
|
3418
|
-
declare const index$
|
|
3419
|
-
declare const index$
|
|
3420
|
-
type index$
|
|
3421
|
-
declare const index$
|
|
3422
|
-
type index$
|
|
3423
|
-
type index$
|
|
3424
|
-
type index$
|
|
3425
|
-
declare const index$
|
|
3426
|
-
type index$
|
|
3427
|
-
type index$
|
|
3428
|
-
declare const index$
|
|
3429
|
-
declare const index$
|
|
3430
|
-
type index$
|
|
3431
|
-
declare const index$
|
|
3432
|
-
type index$
|
|
3433
|
-
declare const index$
|
|
3434
|
-
declare const index$
|
|
3435
|
-
declare const index$
|
|
3436
|
-
declare const index$
|
|
3437
|
-
declare const index$
|
|
3438
|
-
declare const index$
|
|
3439
|
-
declare const index$
|
|
3440
|
-
declare const index$
|
|
3441
|
-
declare const index$
|
|
3442
|
-
declare const index$
|
|
3443
|
-
declare const index$
|
|
3444
|
-
declare namespace index$
|
|
3445
|
-
export { index$
|
|
3446
|
-
export type { index$
|
|
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$
|
|
3670
|
-
type index$
|
|
3671
|
-
type index$
|
|
3672
|
-
type index$
|
|
3673
|
-
type index$
|
|
3674
|
-
type index$
|
|
3675
|
-
declare const index$
|
|
3676
|
-
type index$
|
|
3677
|
-
declare const index$
|
|
3678
|
-
type index$
|
|
3679
|
-
type index$
|
|
3680
|
-
type index$
|
|
3681
|
-
declare const index$
|
|
3682
|
-
type index$
|
|
3683
|
-
declare const index$
|
|
3684
|
-
declare const index$
|
|
3685
|
-
declare const index$
|
|
3686
|
-
declare const index$
|
|
3687
|
-
declare const index$
|
|
3688
|
-
declare namespace index$
|
|
3689
|
-
export { index$
|
|
3690
|
-
export type { index$
|
|
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$
|
|
4468
|
-
declare const index$
|
|
4469
|
-
type index$
|
|
4470
|
-
declare const index$
|
|
4471
|
-
type index$
|
|
4472
|
-
declare const index$
|
|
4473
|
-
type index$
|
|
4474
|
-
type index$
|
|
4475
|
-
type index$
|
|
4476
|
-
type index$
|
|
4477
|
-
type index$
|
|
4478
|
-
type index$
|
|
4479
|
-
type index$
|
|
4480
|
-
type index$
|
|
4481
|
-
type index$
|
|
4482
|
-
type index$
|
|
4483
|
-
type index$
|
|
4484
|
-
declare const index$
|
|
4485
|
-
type index$
|
|
4486
|
-
type index$
|
|
4487
|
-
declare const index$
|
|
4488
|
-
type index$
|
|
4489
|
-
declare const index$
|
|
4490
|
-
type index$
|
|
4491
|
-
declare const index$
|
|
4492
|
-
declare const index$
|
|
4493
|
-
declare namespace index$
|
|
4494
|
-
export { index$
|
|
4495
|
-
export type { index$
|
|
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$
|
|
4862
|
-
type index$
|
|
4863
|
-
type index$
|
|
4864
|
-
type index$
|
|
4865
|
-
type index$
|
|
4866
|
-
type index$
|
|
4867
|
-
type index$
|
|
4868
|
-
type index$
|
|
4869
|
-
type index$
|
|
4870
|
-
type index$
|
|
4871
|
-
type index$
|
|
4872
|
-
type index$
|
|
4873
|
-
type index$
|
|
4874
|
-
type index$
|
|
4875
|
-
type index$
|
|
4876
|
-
type index$
|
|
4877
|
-
declare const index$
|
|
4878
|
-
type index$
|
|
4879
|
-
type index$
|
|
4880
|
-
type index$
|
|
4881
|
-
declare const index$
|
|
4882
|
-
declare const index$
|
|
4883
|
-
declare const index$
|
|
4884
|
-
declare namespace index$
|
|
4885
|
-
export { index$
|
|
4886
|
-
export type { index$
|
|
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$
|
|
5084
|
-
declare const index$
|
|
5085
|
-
type index$
|
|
5086
|
-
declare const index$
|
|
5087
|
-
declare const index$
|
|
5088
|
-
declare const index$
|
|
5089
|
-
declare const index$
|
|
5090
|
-
declare const index$
|
|
5091
|
-
declare const index$
|
|
5092
|
-
type index$
|
|
5093
|
-
type index$
|
|
5094
|
-
type index$
|
|
5095
|
-
declare const index$
|
|
5096
|
-
declare const index$
|
|
5097
|
-
declare const index$
|
|
5098
|
-
declare namespace index$
|
|
5099
|
-
export { index$
|
|
5100
|
-
export type { index$
|
|
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
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
declare const index$
|
|
6897
|
-
type index$
|
|
6898
|
-
type index$
|
|
6899
|
-
type index$
|
|
6900
|
-
type index$
|
|
6901
|
-
type index$
|
|
6902
|
-
type index$
|
|
6903
|
-
|
|
6904
|
-
type index$
|
|
6905
|
-
type index$
|
|
6906
|
-
declare const index$
|
|
6907
|
-
type index$
|
|
6908
|
-
type index$
|
|
6909
|
-
type index$
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
declare const index$
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
declare const index$
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
declare const index$
|
|
6931
|
-
declare const index$
|
|
6932
|
-
declare const index$
|
|
6933
|
-
|
|
6934
|
-
declare const index$
|
|
6935
|
-
declare const index$
|
|
6936
|
-
declare const index$
|
|
6937
|
-
declare const index$
|
|
6938
|
-
declare const index$
|
|
6939
|
-
declare
|
|
6940
|
-
|
|
6941
|
-
|
|
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$
|
|
7240
|
-
type index$
|
|
7241
|
-
type index$
|
|
7242
|
-
type index$
|
|
7243
|
-
type index$
|
|
7244
|
-
declare const index$
|
|
7245
|
-
type index$
|
|
7246
|
-
type index$
|
|
7247
|
-
declare const index$
|
|
7248
|
-
import index$
|
|
7249
|
-
declare const index$
|
|
7250
|
-
declare const index$
|
|
7251
|
-
declare namespace index$
|
|
7252
|
-
export { index$
|
|
7253
|
-
export type { index$
|
|
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$
|
|
7757
|
-
type index$
|
|
7758
|
-
type index$
|
|
7759
|
-
type index$
|
|
7760
|
-
type index$
|
|
7761
|
-
type index$
|
|
7762
|
-
type index$
|
|
7763
|
-
type index$
|
|
7764
|
-
type index$
|
|
7765
|
-
type index$
|
|
7766
|
-
type index$
|
|
7767
|
-
type index$
|
|
7768
|
-
type index$
|
|
7769
|
-
type index$
|
|
7770
|
-
declare const index$
|
|
7771
|
-
declare const index$
|
|
7772
|
-
declare const index$
|
|
7773
|
-
declare const index$
|
|
7774
|
-
declare const index$
|
|
7775
|
-
declare const index$
|
|
7776
|
-
import index$
|
|
7777
|
-
declare const index$
|
|
7778
|
-
declare const index$
|
|
7779
|
-
declare const index$
|
|
7780
|
-
declare const index$
|
|
7781
|
-
declare const index$
|
|
7782
|
-
declare const index$
|
|
7783
|
-
declare const index$
|
|
7784
|
-
declare const index$
|
|
7785
|
-
declare const index$
|
|
7786
|
-
declare const index$
|
|
7787
|
-
declare const index$
|
|
7788
|
-
declare const index$
|
|
7789
|
-
declare const index$
|
|
7790
|
-
declare const index$
|
|
7791
|
-
declare const index$
|
|
7792
|
-
declare const index$
|
|
7793
|
-
declare const index$
|
|
7794
|
-
declare const index$
|
|
7795
|
-
declare const index$
|
|
7796
|
-
declare const index$
|
|
7797
|
-
declare const index$
|
|
7798
|
-
declare const index$
|
|
7799
|
-
declare namespace index$
|
|
7800
|
-
export { index$
|
|
7801
|
-
export type { index$
|
|
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$
|
|
8050
|
-
declare const index$
|
|
8051
|
-
type index$
|
|
8052
|
-
declare const index$
|
|
8053
|
-
declare const index$
|
|
8054
|
-
declare namespace index$
|
|
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$
|
|
8057
|
-
index$
|
|
8058
|
-
index$
|
|
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$
|
|
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$
|
|
8164
|
-
declare const index$
|
|
8165
|
-
type index$
|
|
8166
|
-
declare const index$
|
|
8167
|
-
type index$
|
|
8168
|
-
declare const index$
|
|
8169
|
-
declare const index$
|
|
8170
|
-
type index$
|
|
8171
|
-
declare const index$
|
|
8172
|
-
declare const index$
|
|
8173
|
-
declare const index$
|
|
8174
|
-
declare const index$
|
|
8175
|
-
declare namespace index$
|
|
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$
|
|
8178
|
-
index$
|
|
8179
|
-
index$
|
|
8180
|
-
index$
|
|
8181
|
-
index$
|
|
8182
|
-
index$
|
|
8183
|
-
index$
|
|
8184
|
-
index$
|
|
8185
|
-
logger$
|
|
8186
|
-
index$
|
|
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$
|
|
8974
|
-
declare const index$
|
|
8975
|
-
type index$
|
|
8976
|
-
declare const index$
|
|
8977
|
-
type index$
|
|
8978
|
-
type index$
|
|
8979
|
-
declare const index$
|
|
8980
|
-
type index$
|
|
8981
|
-
declare const index$
|
|
8982
|
-
type index$
|
|
8983
|
-
declare const index$
|
|
8984
|
-
declare const index$
|
|
8985
|
-
declare const index$
|
|
8986
|
-
type index$
|
|
8987
|
-
type index$
|
|
8988
|
-
declare const index$
|
|
8989
|
-
type index$
|
|
8990
|
-
type index$
|
|
8991
|
-
declare const index$
|
|
8992
|
-
type index$
|
|
8993
|
-
type index$
|
|
8994
|
-
type index$
|
|
8995
|
-
type index$
|
|
8996
|
-
declare const index$
|
|
8997
|
-
declare const index$
|
|
8998
|
-
declare const index$
|
|
8999
|
-
declare const index$
|
|
9000
|
-
declare const index$
|
|
9001
|
-
declare const index$
|
|
9002
|
-
declare const index$
|
|
9003
|
-
declare const index$
|
|
9004
|
-
declare const index$
|
|
9005
|
-
declare const index$
|
|
9006
|
-
declare const index$
|
|
9007
|
-
declare namespace index$
|
|
9008
|
-
export { index$
|
|
9009
|
-
export type { index$
|
|
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$
|
|
9452
|
-
declare const index$
|
|
9453
|
-
type index$
|
|
9454
|
-
type index$
|
|
9455
|
-
type index$
|
|
9456
|
-
declare const index$
|
|
9457
|
-
declare const index$
|
|
9458
|
-
declare namespace index$
|
|
9459
|
-
export { index$
|
|
9460
|
-
export type { index$
|
|
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$
|
|
11159
|
-
declare const index$
|
|
11160
|
-
type index$
|
|
11161
|
-
declare const index$
|
|
11162
|
-
type index$
|
|
11163
|
-
declare const index$
|
|
11164
|
-
declare const index$
|
|
11165
|
-
type index$
|
|
11166
|
-
declare const index$
|
|
11167
|
-
type index$
|
|
11168
|
-
type index$
|
|
11169
|
-
declare const index$
|
|
11170
|
-
type index$
|
|
11171
|
-
declare const index$
|
|
11172
|
-
declare const index$
|
|
11173
|
-
declare const index$
|
|
11174
|
-
type index$
|
|
11175
|
-
type index$
|
|
11176
|
-
type index$
|
|
11177
|
-
type index$
|
|
11178
|
-
declare const index$
|
|
11179
|
-
type index$
|
|
11180
|
-
declare const index$
|
|
11181
|
-
type index$
|
|
11182
|
-
type index$
|
|
11183
|
-
declare const index$
|
|
11184
|
-
type index$
|
|
11185
|
-
declare const index$
|
|
11186
|
-
type index$
|
|
11187
|
-
type index$
|
|
11188
|
-
type index$
|
|
11189
|
-
declare const index$
|
|
11190
|
-
type index$
|
|
11191
|
-
declare const index$
|
|
11192
|
-
type index$
|
|
11193
|
-
declare const index$
|
|
11194
|
-
type index$
|
|
11195
|
-
declare const index$
|
|
11196
|
-
type index$
|
|
11197
|
-
declare const index$
|
|
11198
|
-
type index$
|
|
11199
|
-
type index$
|
|
11200
|
-
declare const index$
|
|
11201
|
-
type index$
|
|
11202
|
-
declare const index$
|
|
11203
|
-
type index$
|
|
11204
|
-
type index$
|
|
11205
|
-
declare const index$
|
|
11206
|
-
type index$
|
|
11207
|
-
type index$
|
|
11208
|
-
type index$
|
|
11209
|
-
declare const index$
|
|
11210
|
-
type index$
|
|
11211
|
-
type index$
|
|
11212
|
-
type index$
|
|
11213
|
-
declare const index$
|
|
11214
|
-
type index$
|
|
11215
|
-
declare const index$
|
|
11216
|
-
type index$
|
|
11217
|
-
type index$
|
|
11218
|
-
declare const index$
|
|
11219
|
-
type index$
|
|
11220
|
-
declare const index$
|
|
11221
|
-
type index$
|
|
11222
|
-
declare const index$
|
|
11223
|
-
type index$
|
|
11224
|
-
declare const index$
|
|
11225
|
-
type index$
|
|
11226
|
-
declare const index$
|
|
11227
|
-
type index$
|
|
11228
|
-
declare const index$
|
|
11229
|
-
type index$
|
|
11230
|
-
declare const index$
|
|
11231
|
-
type index$
|
|
11232
|
-
type index$
|
|
11233
|
-
declare const index$
|
|
11234
|
-
type index$
|
|
11235
|
-
declare const index$
|
|
11236
|
-
declare const index$
|
|
11237
|
-
declare const index$
|
|
11238
|
-
declare const index$
|
|
11239
|
-
declare const index$
|
|
11240
|
-
declare const index$
|
|
11241
|
-
declare const index$
|
|
11242
|
-
declare const index$
|
|
11243
|
-
declare const index$
|
|
11244
|
-
declare const index$
|
|
11245
|
-
declare const index$
|
|
11246
|
-
declare const index$
|
|
11247
|
-
declare const index$
|
|
11248
|
-
declare const index$
|
|
11249
|
-
declare const index$
|
|
11250
|
-
declare const index$
|
|
11251
|
-
declare const index$
|
|
11252
|
-
declare namespace index$
|
|
11253
|
-
export { index$
|
|
11254
|
-
export type { index$
|
|
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$
|
|
12193
|
-
type index$
|
|
12194
|
-
type index$
|
|
12195
|
-
type index$
|
|
12196
|
-
declare const index$
|
|
12197
|
-
type index$
|
|
12198
|
-
declare const index$
|
|
12199
|
-
type index$
|
|
12200
|
-
type index$
|
|
12201
|
-
type index$
|
|
12202
|
-
declare const index$
|
|
12203
|
-
type index$
|
|
12204
|
-
type index$
|
|
12205
|
-
declare const index$
|
|
12206
|
-
type index$
|
|
12207
|
-
type index$
|
|
12208
|
-
declare const index$
|
|
12209
|
-
declare const index$
|
|
12210
|
-
declare const index$
|
|
12211
|
-
declare const index$
|
|
12212
|
-
declare const index$
|
|
12213
|
-
declare const index$
|
|
12214
|
-
declare const index$
|
|
12215
|
-
declare const index$
|
|
12216
|
-
declare const index$
|
|
12217
|
-
declare const index$
|
|
12218
|
-
import index$
|
|
12219
|
-
declare const index$
|
|
12220
|
-
declare const index$
|
|
12221
|
-
declare const index$
|
|
12222
|
-
declare const index$
|
|
12223
|
-
declare const index$
|
|
12224
|
-
declare const index$
|
|
12225
|
-
declare const index$
|
|
12226
|
-
import index$
|
|
12227
|
-
declare namespace index$
|
|
12228
|
-
export { index$
|
|
12229
|
-
export type { index$
|
|
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$
|
|
12438
|
-
type index$
|
|
12439
|
-
declare const index$
|
|
12440
|
-
type index$
|
|
12441
|
-
declare const index$
|
|
12442
|
-
type index$
|
|
12443
|
-
declare const index$
|
|
12444
|
-
type index$
|
|
12445
|
-
declare const index$
|
|
12446
|
-
type index$
|
|
12447
|
-
type index$
|
|
12448
|
-
declare const index$
|
|
12449
|
-
type index$
|
|
12450
|
-
declare const index$
|
|
12451
|
-
type index$
|
|
12452
|
-
type index$
|
|
12453
|
-
declare namespace index$
|
|
12454
|
-
export { index$
|
|
12455
|
-
export type { index$
|
|
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$
|
|
12878
|
-
declare const index$
|
|
12879
|
-
type index$
|
|
12880
|
-
type index$
|
|
12881
|
-
type index$
|
|
12882
|
-
declare const index$
|
|
12883
|
-
type index$
|
|
12884
|
-
declare const index$
|
|
12885
|
-
declare const index$
|
|
12886
|
-
declare const index$
|
|
12887
|
-
declare const index$
|
|
12888
|
-
declare const index$
|
|
12889
|
-
declare const index$
|
|
12890
|
-
declare const index$
|
|
12891
|
-
declare const index$
|
|
12892
|
-
declare const index$
|
|
12893
|
-
declare const index$
|
|
12894
|
-
declare const index$
|
|
12895
|
-
declare const index$
|
|
12896
|
-
declare const index$
|
|
12897
|
-
declare const index$
|
|
12898
|
-
declare const index$
|
|
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$
|
|
12901
|
-
export type { index$
|
|
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
|
|
14784
|
-
const
|
|
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
|
|
14787
|
-
if (
|
|
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$
|
|
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$
|
|
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 };
|