@typeberry/lib 0.1.2-a90b655 → 0.1.2-b25cc82
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 +117 -520
- package/index.d.ts +677 -1197
- package/index.js +99 -501
- package/package.json +1 -1
- package/bin/lib/index.d.ts +0 -30
- 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$s_ALL_VERSIONS_IN_ORDER: typeof ALL_VERSIONS_IN_ORDER;
|
|
712
|
+
declare const index$s_CURRENT_SUITE: typeof CURRENT_SUITE;
|
|
713
|
+
declare const index$s_CURRENT_VERSION: typeof CURRENT_VERSION;
|
|
714
|
+
type index$s_Compatibility = Compatibility;
|
|
715
|
+
declare const index$s_Compatibility: typeof Compatibility;
|
|
716
|
+
declare const index$s_DEFAULT_SUITE: typeof DEFAULT_SUITE;
|
|
717
|
+
declare const index$s_DEFAULT_VERSION: typeof DEFAULT_VERSION;
|
|
718
|
+
type index$s_DeepEqualOptions = DeepEqualOptions;
|
|
719
|
+
type index$s_EnumMapping = EnumMapping;
|
|
720
|
+
type index$s_ErrorResult<Error> = ErrorResult<Error>;
|
|
721
|
+
type index$s_ErrorsCollector = ErrorsCollector;
|
|
722
|
+
declare const index$s_ErrorsCollector: typeof ErrorsCollector;
|
|
723
|
+
type index$s_GpVersion = GpVersion;
|
|
724
|
+
declare const index$s_GpVersion: typeof GpVersion;
|
|
725
|
+
type index$s_OK = OK;
|
|
726
|
+
type index$s_OkResult<Ok> = OkResult<Ok>;
|
|
727
|
+
type index$s_Opaque<Type, Token extends string> = Opaque<Type, Token>;
|
|
728
|
+
type index$s_RichTaggedError<Kind extends string | number, Nested> = RichTaggedError<Kind, Nested>;
|
|
729
|
+
declare const index$s_RichTaggedError: typeof RichTaggedError;
|
|
730
|
+
type index$s_StringLiteral<Type> = StringLiteral<Type>;
|
|
731
|
+
declare const index$s_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
|
|
732
|
+
type index$s_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
|
|
733
|
+
type index$s_TestSuite = TestSuite;
|
|
734
|
+
declare const index$s_TestSuite: typeof TestSuite;
|
|
735
|
+
type index$s_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
|
|
736
|
+
type index$s_Uninstantiable = Uninstantiable;
|
|
737
|
+
type index$s_WithDebug = WithDebug;
|
|
738
|
+
declare const index$s_WithDebug: typeof WithDebug;
|
|
739
|
+
type index$s_WithOpaque<Token extends string> = WithOpaque<Token>;
|
|
740
|
+
declare const index$s___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
|
|
741
|
+
declare const index$s_asOpaqueType: typeof asOpaqueType;
|
|
742
|
+
declare const index$s_assertEmpty: typeof assertEmpty;
|
|
743
|
+
declare const index$s_assertNever: typeof assertNever;
|
|
744
|
+
declare const index$s_callCompareFunction: typeof callCompareFunction;
|
|
745
|
+
declare const index$s_check: typeof check;
|
|
746
|
+
declare const index$s_deepEqual: typeof deepEqual;
|
|
747
|
+
declare const index$s_getAllKeysSorted: typeof getAllKeysSorted;
|
|
748
|
+
declare const index$s_inspect: typeof inspect;
|
|
749
|
+
declare const index$s_isBrowser: typeof isBrowser;
|
|
750
|
+
declare const index$s_isResult: typeof isResult;
|
|
751
|
+
declare const index$s_isTaggedError: typeof isTaggedError;
|
|
752
|
+
declare const index$s_maybeTaggedErrorToString: typeof maybeTaggedErrorToString;
|
|
753
|
+
declare const index$s_measure: typeof measure;
|
|
754
|
+
declare const index$s_oomWarningPrinted: typeof oomWarningPrinted;
|
|
755
|
+
declare const index$s_parseCurrentSuite: typeof parseCurrentSuite;
|
|
756
|
+
declare const index$s_parseCurrentVersion: typeof parseCurrentVersion;
|
|
757
|
+
declare const index$s_resultToString: typeof resultToString;
|
|
758
|
+
declare const index$s_seeThrough: typeof seeThrough;
|
|
759
|
+
declare const index$s_trimStack: typeof trimStack;
|
|
760
|
+
declare const index$s_workspacePathFix: typeof workspacePathFix;
|
|
761
|
+
declare namespace index$s {
|
|
762
|
+
export { index$s_ALL_VERSIONS_IN_ORDER as ALL_VERSIONS_IN_ORDER, index$s_CURRENT_SUITE as CURRENT_SUITE, index$s_CURRENT_VERSION as CURRENT_VERSION, index$s_Compatibility as Compatibility, index$s_DEFAULT_SUITE as DEFAULT_SUITE, index$s_DEFAULT_VERSION as DEFAULT_VERSION, index$s_ErrorsCollector as ErrorsCollector, index$s_GpVersion as GpVersion, Result$2 as Result, index$s_RichTaggedError as RichTaggedError, index$s_TEST_COMPARE_USING as TEST_COMPARE_USING, index$s_TestSuite as TestSuite, index$s_WithDebug as WithDebug, index$s___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$s_asOpaqueType as asOpaqueType, index$s_assertEmpty as assertEmpty, index$s_assertNever as assertNever, index$s_callCompareFunction as callCompareFunction, index$s_check as check, index$s_deepEqual as deepEqual, index$s_getAllKeysSorted as getAllKeysSorted, index$s_inspect as inspect, index$s_isBrowser as isBrowser, index$s_isResult as isResult, index$s_isTaggedError as isTaggedError, index$s_maybeTaggedErrorToString as maybeTaggedErrorToString, index$s_measure as measure, index$s_oomWarningPrinted as oomWarningPrinted, index$s_parseCurrentSuite as parseCurrentSuite, index$s_parseCurrentVersion as parseCurrentVersion, index$s_resultToString as resultToString, index$s_seeThrough as seeThrough, index$s_trimStack as trimStack, index$s_workspacePathFix as workspacePathFix };
|
|
763
|
+
export type { index$s_DeepEqualOptions as DeepEqualOptions, index$s_EnumMapping as EnumMapping, index$s_ErrorResult as ErrorResult, index$s_OK as OK, index$s_OkResult as OkResult, index$s_Opaque as Opaque, index$s_StringLiteral as StringLiteral, index$s_TaggedError as TaggedError, index$s_TokenOf as TokenOf, index$s_Uninstantiable as Uninstantiable, index$s_WithOpaque as WithOpaque };
|
|
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$r_Comparator<V> = Comparator<V>;
|
|
817
|
+
type index$r_Ordering = Ordering;
|
|
818
|
+
declare const index$r_Ordering: typeof Ordering;
|
|
819
|
+
type index$r_OrderingValue = OrderingValue;
|
|
820
|
+
declare const index$r_OrderingValue: typeof OrderingValue;
|
|
821
|
+
declare namespace index$r {
|
|
822
|
+
export { index$r_Ordering as Ordering, index$r_OrderingValue as OrderingValue };
|
|
823
|
+
export type { index$r_Comparator as Comparator };
|
|
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$q_BitVec = BitVec;
|
|
1217
|
+
declare const index$q_BitVec: typeof BitVec;
|
|
1218
|
+
type index$q_Bytes<T extends number> = Bytes<T>;
|
|
1219
|
+
declare const index$q_Bytes: typeof Bytes;
|
|
1220
|
+
type index$q_BytesBlob = BytesBlob;
|
|
1221
|
+
declare const index$q_BytesBlob: typeof BytesBlob;
|
|
1222
|
+
declare const index$q_CODE_OF_0: typeof CODE_OF_0;
|
|
1223
|
+
declare const index$q_CODE_OF_9: typeof CODE_OF_9;
|
|
1224
|
+
declare const index$q_CODE_OF_A: typeof CODE_OF_A;
|
|
1225
|
+
declare const index$q_CODE_OF_F: typeof CODE_OF_F;
|
|
1226
|
+
declare const index$q_CODE_OF_a: typeof CODE_OF_a;
|
|
1227
|
+
declare const index$q_CODE_OF_f: typeof CODE_OF_f;
|
|
1228
|
+
declare const index$q_VALUE_OF_A: typeof VALUE_OF_A;
|
|
1229
|
+
declare const index$q_byteFromString: typeof byteFromString;
|
|
1230
|
+
declare const index$q_bytesBlobComparator: typeof bytesBlobComparator;
|
|
1231
|
+
declare const index$q_bytesToHexString: typeof bytesToHexString;
|
|
1232
|
+
declare const index$q_numberFromCharCode: typeof numberFromCharCode;
|
|
1233
|
+
declare const index$q_u8ArraySameLengthEqual: typeof u8ArraySameLengthEqual;
|
|
1234
|
+
declare namespace index$q {
|
|
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$q_BitVec as BitVec,
|
|
1237
|
+
index$q_Bytes as Bytes,
|
|
1238
|
+
index$q_BytesBlob as BytesBlob,
|
|
1239
|
+
index$q_CODE_OF_0 as CODE_OF_0,
|
|
1240
|
+
index$q_CODE_OF_9 as CODE_OF_9,
|
|
1241
|
+
index$q_CODE_OF_A as CODE_OF_A,
|
|
1242
|
+
index$q_CODE_OF_F as CODE_OF_F,
|
|
1243
|
+
index$q_CODE_OF_a as CODE_OF_a,
|
|
1244
|
+
index$q_CODE_OF_f as CODE_OF_f,
|
|
1245
|
+
index$q_VALUE_OF_A as VALUE_OF_A,
|
|
1246
|
+
index$q_byteFromString as byteFromString,
|
|
1247
|
+
index$q_bytesBlobComparator as bytesBlobComparator,
|
|
1248
|
+
index$q_bytesToHexString as bytesToHexString,
|
|
1249
|
+
index$q_numberFromCharCode as numberFromCharCode,
|
|
1250
|
+
index$q_u8ArraySameLengthEqual as u8ArraySameLengthEqual,
|
|
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$p_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
|
|
1399
|
+
declare const index$p_MAX_VALUE_U16: typeof MAX_VALUE_U16;
|
|
1400
|
+
declare const index$p_MAX_VALUE_U32: typeof MAX_VALUE_U32;
|
|
1401
|
+
declare const index$p_MAX_VALUE_U64: typeof MAX_VALUE_U64;
|
|
1402
|
+
declare const index$p_MAX_VALUE_U8: typeof MAX_VALUE_U8;
|
|
1403
|
+
type index$p_U16 = U16;
|
|
1404
|
+
type index$p_U32 = U32;
|
|
1405
|
+
type index$p_U64 = U64;
|
|
1406
|
+
type index$p_U8 = U8;
|
|
1407
|
+
type index$p_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
|
|
1408
|
+
declare const index$p___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
|
|
1409
|
+
declare const index$p_asTypedNumber: typeof asTypedNumber;
|
|
1410
|
+
declare const index$p_isU16: typeof isU16;
|
|
1411
|
+
declare const index$p_isU32: typeof isU32;
|
|
1412
|
+
declare const index$p_isU64: typeof isU64;
|
|
1413
|
+
declare const index$p_isU8: typeof isU8;
|
|
1414
|
+
declare const index$p_leBytesAsU32: typeof leBytesAsU32;
|
|
1415
|
+
declare const index$p_maxU64: typeof maxU64;
|
|
1416
|
+
declare const index$p_minU64: typeof minU64;
|
|
1417
|
+
declare const index$p_sumU32: typeof sumU32;
|
|
1418
|
+
declare const index$p_sumU64: typeof sumU64;
|
|
1419
|
+
declare const index$p_tryAsU16: typeof tryAsU16;
|
|
1420
|
+
declare const index$p_tryAsU32: typeof tryAsU32;
|
|
1421
|
+
declare const index$p_tryAsU64: typeof tryAsU64;
|
|
1422
|
+
declare const index$p_tryAsU8: typeof tryAsU8;
|
|
1423
|
+
declare const index$p_u32AsLeBytes: typeof u32AsLeBytes;
|
|
1424
|
+
declare const index$p_u64FromParts: typeof u64FromParts;
|
|
1425
|
+
declare const index$p_u64IntoParts: typeof u64IntoParts;
|
|
1426
|
+
declare namespace index$p {
|
|
1427
|
+
export { index$p_MAX_VALUE_U16 as MAX_VALUE_U16, index$p_MAX_VALUE_U32 as MAX_VALUE_U32, index$p_MAX_VALUE_U64 as MAX_VALUE_U64, index$p_MAX_VALUE_U8 as MAX_VALUE_U8, index$p___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, index$p_asTypedNumber as asTypedNumber, index$p_isU16 as isU16, index$p_isU32 as isU32, index$p_isU64 as isU64, index$p_isU8 as isU8, index$p_leBytesAsU32 as leBytesAsU32, index$p_maxU64 as maxU64, index$p_minU64 as minU64, index$p_sumU32 as sumU32, index$p_sumU64 as sumU64, index$p_tryAsU16 as tryAsU16, index$p_tryAsU32 as tryAsU32, index$p_tryAsU64 as tryAsU64, index$p_tryAsU8 as tryAsU8, index$p_u32AsLeBytes as u32AsLeBytes, index$p_u64FromParts as u64FromParts, index$p_u64IntoParts as u64IntoParts };
|
|
1428
|
+
export type { index$p_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, index$p_U16 as U16, index$p_U32 as U32, index$p_U64 as U64, index$p_U8 as U8, index$p_WithBytesRepresentation as WithBytesRepresentation };
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
1431
|
/** A decoder for some specific type `T` */
|
|
@@ -3400,50 +3400,50 @@ declare function sequenceViewFixLen<T, V>(
|
|
|
3400
3400
|
);
|
|
3401
3401
|
}
|
|
3402
3402
|
|
|
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$
|
|
3403
|
+
type index$o_ClassConstructor<T> = ClassConstructor<T>;
|
|
3404
|
+
type index$o_Codec<T> = Codec<T>;
|
|
3405
|
+
type index$o_CodecRecord<T> = CodecRecord<T>;
|
|
3406
|
+
declare const index$o_DEFAULT_START_LENGTH: typeof DEFAULT_START_LENGTH;
|
|
3407
|
+
type index$o_Decode<T> = Decode<T>;
|
|
3408
|
+
type index$o_Decoder = Decoder;
|
|
3409
|
+
declare const index$o_Decoder: typeof Decoder;
|
|
3410
|
+
type index$o_DescribedBy<T> = DescribedBy<T>;
|
|
3411
|
+
type index$o_Descriptor<T, V = T> = Descriptor<T, V>;
|
|
3412
|
+
declare const index$o_Descriptor: typeof Descriptor;
|
|
3413
|
+
type index$o_DescriptorRecord<T> = DescriptorRecord<T>;
|
|
3414
|
+
type index$o_Encode<T> = Encode<T>;
|
|
3415
|
+
type index$o_Encoder = Encoder;
|
|
3416
|
+
declare const index$o_Encoder: typeof Encoder;
|
|
3417
|
+
type index$o_LengthRange = LengthRange;
|
|
3418
|
+
declare const index$o_MASKS: typeof MASKS;
|
|
3419
|
+
declare const index$o_MAX_LENGTH: typeof MAX_LENGTH;
|
|
3420
|
+
type index$o_ObjectView<T> = ObjectView<T>;
|
|
3421
|
+
declare const index$o_ObjectView: typeof ObjectView;
|
|
3422
|
+
type index$o_OptionalRecord<T> = OptionalRecord<T>;
|
|
3423
|
+
type index$o_PropertyKeys<T> = PropertyKeys<T>;
|
|
3424
|
+
type index$o_SequenceView<T, V = T> = SequenceView<T, V>;
|
|
3425
|
+
declare const index$o_SequenceView: typeof SequenceView;
|
|
3426
|
+
type index$o_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
|
|
3427
|
+
type index$o_SizeHint = SizeHint;
|
|
3428
|
+
declare const index$o_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
|
|
3429
|
+
declare const index$o_TYPICAL_SEQUENCE_LENGTH: typeof TYPICAL_SEQUENCE_LENGTH;
|
|
3430
|
+
type index$o_ViewField<T, V> = ViewField<T, V>;
|
|
3431
|
+
declare const index$o_ViewField: typeof ViewField;
|
|
3432
|
+
type index$o_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
|
|
3433
|
+
declare const index$o_addSizeHints: typeof addSizeHints;
|
|
3434
|
+
declare const index$o_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
|
|
3435
|
+
declare const index$o_exactHint: typeof exactHint;
|
|
3436
|
+
declare const index$o_forEachDescriptor: typeof forEachDescriptor;
|
|
3437
|
+
declare const index$o_hasUniqueView: typeof hasUniqueView;
|
|
3438
|
+
declare const index$o_objectView: typeof objectView;
|
|
3439
|
+
declare const index$o_readonlyArray: typeof readonlyArray;
|
|
3440
|
+
declare const index$o_sequenceViewFixLen: typeof sequenceViewFixLen;
|
|
3441
|
+
declare const index$o_sequenceViewVarLen: typeof sequenceViewVarLen;
|
|
3442
|
+
declare const index$o_tryAsExactBytes: typeof tryAsExactBytes;
|
|
3443
|
+
declare const index$o_validateLength: typeof validateLength;
|
|
3444
|
+
declare namespace index$o {
|
|
3445
|
+
export { index$o_DEFAULT_START_LENGTH as DEFAULT_START_LENGTH, index$o_Decoder as Decoder, index$o_Descriptor as Descriptor, index$o_Encoder as Encoder, index$o_MASKS as MASKS, index$o_MAX_LENGTH as MAX_LENGTH, index$o_ObjectView as ObjectView, index$o_SequenceView as SequenceView, index$o_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, index$o_TYPICAL_SEQUENCE_LENGTH as TYPICAL_SEQUENCE_LENGTH, index$o_ViewField as ViewField, index$o_addSizeHints as addSizeHints, codec$1 as codec, index$o_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$o_exactHint as exactHint, index$o_forEachDescriptor as forEachDescriptor, index$o_hasUniqueView as hasUniqueView, index$o_objectView as objectView, index$o_readonlyArray as readonlyArray, index$o_sequenceViewFixLen as sequenceViewFixLen, index$o_sequenceViewVarLen as sequenceViewVarLen, index$o_tryAsExactBytes as tryAsExactBytes, index$o_validateLength as validateLength };
|
|
3446
|
+
export type { index$o_ClassConstructor as ClassConstructor, index$o_Codec as Codec, index$o_CodecRecord as CodecRecord, index$o_Decode as Decode, index$o_DescribedBy as DescribedBy, index$o_DescriptorRecord as DescriptorRecord, index$o_Encode as Encode, index$o_LengthRange as LengthRange, index$o_OptionalRecord as OptionalRecord, Options$1 as Options, index$o_PropertyKeys as PropertyKeys, index$o_SimpleDescriptorRecord as SimpleDescriptorRecord, index$o_SizeHint as SizeHint, index$o_ViewOf as ViewOf };
|
|
3447
3447
|
}
|
|
3448
3448
|
|
|
3449
3449
|
/**
|
|
@@ -3666,28 +3666,28 @@ declare namespace keccak {
|
|
|
3666
3666
|
};
|
|
3667
3667
|
}
|
|
3668
3668
|
|
|
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$
|
|
3669
|
+
type index$n_Blake2bHash = Blake2bHash;
|
|
3670
|
+
type index$n_HASH_SIZE = HASH_SIZE;
|
|
3671
|
+
type index$n_HashAllocator = HashAllocator;
|
|
3672
|
+
type index$n_KeccakHash = KeccakHash;
|
|
3673
|
+
type index$n_OpaqueHash = OpaqueHash;
|
|
3674
|
+
type index$n_PageAllocator = PageAllocator;
|
|
3675
|
+
declare const index$n_PageAllocator: typeof PageAllocator;
|
|
3676
|
+
type index$n_SimpleAllocator = SimpleAllocator;
|
|
3677
|
+
declare const index$n_SimpleAllocator: typeof SimpleAllocator;
|
|
3678
|
+
type index$n_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
|
|
3679
|
+
type index$n_TruncatedHash = TruncatedHash;
|
|
3680
|
+
type index$n_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
|
|
3681
|
+
declare const index$n_WithHash: typeof WithHash;
|
|
3682
|
+
type index$n_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
|
|
3683
|
+
declare const index$n_WithHashAndBytes: typeof WithHashAndBytes;
|
|
3684
|
+
declare const index$n_ZERO_HASH: typeof ZERO_HASH;
|
|
3685
|
+
declare const index$n_blake2b: typeof blake2b;
|
|
3686
|
+
declare const index$n_defaultAllocator: typeof defaultAllocator;
|
|
3687
|
+
declare const index$n_keccak: typeof keccak;
|
|
3688
|
+
declare namespace index$n {
|
|
3689
|
+
export { index$n_PageAllocator as PageAllocator, index$n_SimpleAllocator as SimpleAllocator, index$n_WithHash as WithHash, index$n_WithHashAndBytes as WithHashAndBytes, index$n_ZERO_HASH as ZERO_HASH, index$n_blake2b as blake2b, index$n_defaultAllocator as defaultAllocator, index$n_keccak as keccak };
|
|
3690
|
+
export type { index$n_Blake2bHash as Blake2bHash, index$n_HASH_SIZE as HASH_SIZE, index$n_HashAllocator as HashAllocator, index$n_KeccakHash as KeccakHash, index$n_OpaqueHash as OpaqueHash, index$n_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, index$n_TruncatedHash as TruncatedHash };
|
|
3691
3691
|
}
|
|
3692
3692
|
|
|
3693
3693
|
/** Immutable view of the `HashDictionary`. */
|
|
@@ -4464,35 +4464,35 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
|
|
|
4464
4464
|
}
|
|
4465
4465
|
}
|
|
4466
4466
|
|
|
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$
|
|
4467
|
+
type index$m_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
|
|
4468
|
+
declare const index$m_FixedSizeArray: typeof FixedSizeArray;
|
|
4469
|
+
type index$m_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
|
|
4470
|
+
declare const index$m_HashDictionary: typeof HashDictionary;
|
|
4471
|
+
type index$m_HashSet<V extends OpaqueHash> = HashSet<V>;
|
|
4472
|
+
declare const index$m_HashSet: typeof HashSet;
|
|
4473
|
+
type index$m_HashWithZeroedBit<T extends OpaqueHash> = HashWithZeroedBit<T>;
|
|
4474
|
+
type index$m_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
|
|
4475
|
+
type index$m_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
|
|
4476
|
+
type index$m_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
|
|
4477
|
+
type index$m_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
|
|
4478
|
+
type index$m_KeyMapper<K> = KeyMapper<K>;
|
|
4479
|
+
type index$m_KeyMappers<TKeys extends readonly unknown[]> = KeyMappers<TKeys>;
|
|
4480
|
+
type index$m_KnownSize<T, F extends string> = KnownSize<T, F>;
|
|
4481
|
+
type index$m_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
|
|
4482
|
+
type index$m_KnownSizeId<X> = KnownSizeId<X>;
|
|
4483
|
+
type index$m_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
|
|
4484
|
+
declare const index$m_MultiMap: typeof MultiMap;
|
|
4485
|
+
type index$m_NestedMaps<TKeys extends readonly unknown[], TValue> = NestedMaps<TKeys, TValue>;
|
|
4486
|
+
type index$m_SortedArray<V> = SortedArray<V>;
|
|
4487
|
+
declare const index$m_SortedArray: typeof SortedArray;
|
|
4488
|
+
type index$m_SortedSet<V> = SortedSet<V>;
|
|
4489
|
+
declare const index$m_SortedSet: typeof SortedSet;
|
|
4490
|
+
type index$m_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
|
|
4491
|
+
declare const index$m_TruncatedHashDictionary: typeof TruncatedHashDictionary;
|
|
4492
|
+
declare const index$m_asKnownSize: typeof asKnownSize;
|
|
4493
|
+
declare namespace index$m {
|
|
4494
|
+
export { index$m_FixedSizeArray as FixedSizeArray, index$m_HashDictionary as HashDictionary, index$m_HashSet as HashSet, index$m_MultiMap as MultiMap, index$m_SortedArray as SortedArray, index$m_SortedSet as SortedSet, index$m_TruncatedHashDictionary as TruncatedHashDictionary, index$m_asKnownSize as asKnownSize };
|
|
4495
|
+
export type { index$m_HashWithZeroedBit as HashWithZeroedBit, index$m_ImmutableHashDictionary as ImmutableHashDictionary, index$m_ImmutableHashSet as ImmutableHashSet, index$m_ImmutableSortedArray as ImmutableSortedArray, index$m_ImmutableSortedSet as ImmutableSortedSet, index$m_KeyMapper as KeyMapper, index$m_KeyMappers as KeyMappers, index$m_KnownSize as KnownSize, index$m_KnownSizeArray as KnownSizeArray, index$m_KnownSizeId as KnownSizeId, index$m_NestedMaps as NestedMaps };
|
|
4496
4496
|
}
|
|
4497
4497
|
|
|
4498
4498
|
declare namespace bandersnatch_d_exports {
|
|
@@ -4858,32 +4858,32 @@ declare namespace keyDerivation {
|
|
|
4858
4858
|
export type { keyDerivation_BandersnatchSecretSeed as BandersnatchSecretSeed, keyDerivation_Ed25519SecretSeed as Ed25519SecretSeed, keyDerivation_KeySeed as KeySeed, keyDerivation_SEED_SIZE as SEED_SIZE };
|
|
4859
4859
|
}
|
|
4860
4860
|
|
|
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$
|
|
4861
|
+
type index$l_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
|
|
4862
|
+
type index$l_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
|
|
4863
|
+
type index$l_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
|
|
4864
|
+
type index$l_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
|
|
4865
|
+
type index$l_BLS_KEY_BYTES = BLS_KEY_BYTES;
|
|
4866
|
+
type index$l_BandersnatchKey = BandersnatchKey;
|
|
4867
|
+
type index$l_BandersnatchProof = BandersnatchProof;
|
|
4868
|
+
type index$l_BandersnatchRingRoot = BandersnatchRingRoot;
|
|
4869
|
+
type index$l_BandersnatchSecretSeed = BandersnatchSecretSeed;
|
|
4870
|
+
type index$l_BandersnatchVrfSignature = BandersnatchVrfSignature;
|
|
4871
|
+
type index$l_BlsKey = BlsKey;
|
|
4872
|
+
type index$l_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
|
|
4873
|
+
type index$l_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
|
|
4874
|
+
type index$l_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
|
|
4875
|
+
type index$l_Ed25519Key = Ed25519Key;
|
|
4876
|
+
type index$l_Ed25519Pair = Ed25519Pair;
|
|
4877
|
+
declare const index$l_Ed25519Pair: typeof Ed25519Pair;
|
|
4878
|
+
type index$l_Ed25519SecretSeed = Ed25519SecretSeed;
|
|
4879
|
+
type index$l_Ed25519Signature = Ed25519Signature;
|
|
4880
|
+
type index$l_SEED_SIZE = SEED_SIZE;
|
|
4881
|
+
declare const index$l_bandersnatch: typeof bandersnatch;
|
|
4882
|
+
declare const index$l_ed25519: typeof ed25519;
|
|
4883
|
+
declare const index$l_keyDerivation: typeof keyDerivation;
|
|
4884
|
+
declare namespace index$l {
|
|
4885
|
+
export { index$l_Ed25519Pair as Ed25519Pair, index$l_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, index$l_ed25519 as ed25519, initAll as initWasm, index$l_keyDerivation as keyDerivation };
|
|
4886
|
+
export type { index$l_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, index$l_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, index$l_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, index$l_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, index$l_BLS_KEY_BYTES as BLS_KEY_BYTES, index$l_BandersnatchKey as BandersnatchKey, index$l_BandersnatchProof as BandersnatchProof, index$l_BandersnatchRingRoot as BandersnatchRingRoot, index$l_BandersnatchSecretSeed as BandersnatchSecretSeed, index$l_BandersnatchVrfSignature as BandersnatchVrfSignature, index$l_BlsKey as BlsKey, index$l_ED25519_KEY_BYTES as ED25519_KEY_BYTES, index$l_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, index$l_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, index$l_Ed25519Key as Ed25519Key, index$l_Ed25519SecretSeed as Ed25519SecretSeed, index$l_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, index$l_SEED_SIZE as SEED_SIZE };
|
|
4887
4887
|
}
|
|
4888
4888
|
|
|
4889
4889
|
/**
|
|
@@ -5080,24 +5080,24 @@ declare class Bootnode implements PeerAddress {
|
|
|
5080
5080
|
}
|
|
5081
5081
|
}
|
|
5082
5082
|
|
|
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$
|
|
5083
|
+
type index$k_Bootnode = Bootnode;
|
|
5084
|
+
declare const index$k_Bootnode: typeof Bootnode;
|
|
5085
|
+
type index$k_ChainSpec = ChainSpec;
|
|
5086
|
+
declare const index$k_ChainSpec: typeof ChainSpec;
|
|
5087
|
+
declare const index$k_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
|
|
5088
|
+
declare const index$k_EST_CORES: typeof EST_CORES;
|
|
5089
|
+
declare const index$k_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
|
|
5090
|
+
declare const index$k_EST_VALIDATORS: typeof EST_VALIDATORS;
|
|
5091
|
+
declare const index$k_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
|
|
5092
|
+
type index$k_PeerAddress = PeerAddress;
|
|
5093
|
+
type index$k_PeerId = PeerId;
|
|
5094
|
+
type index$k_WorkerConfig = WorkerConfig;
|
|
5095
|
+
declare const index$k_WorkerConfig: typeof WorkerConfig;
|
|
5096
|
+
declare const index$k_fullChainSpec: typeof fullChainSpec;
|
|
5097
|
+
declare const index$k_tinyChainSpec: typeof tinyChainSpec;
|
|
5098
|
+
declare namespace index$k {
|
|
5099
|
+
export { index$k_Bootnode as Bootnode, index$k_ChainSpec as ChainSpec, index$k_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, index$k_EST_CORES as EST_CORES, index$k_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, index$k_EST_VALIDATORS as EST_VALIDATORS, index$k_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, index$k_WorkerConfig as WorkerConfig, index$k_fullChainSpec as fullChainSpec, index$k_tinyChainSpec as tinyChainSpec };
|
|
5100
|
+
export type { index$k_PeerAddress as PeerAddress, index$k_PeerId as PeerId };
|
|
5101
5101
|
}
|
|
5102
5102
|
|
|
5103
5103
|
/**
|
|
@@ -6873,72 +6873,92 @@ declare class Block extends WithDebug {
|
|
|
6873
6873
|
/** Undecoded View of a [`Block`]. */
|
|
6874
6874
|
type BlockView = DescribedBy<typeof Block.Codec.View>;
|
|
6875
6875
|
|
|
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
|
-
|
|
6876
|
+
declare function emptyBlock(slot: TimeSlot = tryAsTimeSlot(0)) {
|
|
6877
|
+
const header = Header.empty();
|
|
6878
|
+
header.timeSlotIndex = slot;
|
|
6879
|
+
return Block.create({
|
|
6880
|
+
header,
|
|
6881
|
+
extrinsic: Extrinsic.create({
|
|
6882
|
+
tickets: asKnownSize([]),
|
|
6883
|
+
preimages: [],
|
|
6884
|
+
assurances: asKnownSize([]),
|
|
6885
|
+
guarantees: asKnownSize([]),
|
|
6886
|
+
disputes: {
|
|
6887
|
+
verdicts: [],
|
|
6888
|
+
culprits: [],
|
|
6889
|
+
faults: [],
|
|
6890
|
+
},
|
|
6891
|
+
}),
|
|
6892
|
+
});
|
|
6893
|
+
}
|
|
6894
|
+
|
|
6895
|
+
type index$j_Block = Block;
|
|
6896
|
+
declare const index$j_Block: typeof Block;
|
|
6897
|
+
type index$j_BlockView = BlockView;
|
|
6898
|
+
type index$j_CodeHash = CodeHash;
|
|
6899
|
+
type index$j_CoreIndex = CoreIndex;
|
|
6900
|
+
type index$j_EntropyHash = EntropyHash;
|
|
6901
|
+
type index$j_Epoch = Epoch;
|
|
6902
|
+
type index$j_EpochMarker = EpochMarker;
|
|
6903
|
+
declare const index$j_EpochMarker: typeof EpochMarker;
|
|
6904
|
+
type index$j_EpochMarkerView = EpochMarkerView;
|
|
6905
|
+
type index$j_Extrinsic = Extrinsic;
|
|
6906
|
+
declare const index$j_Extrinsic: typeof Extrinsic;
|
|
6907
|
+
type index$j_ExtrinsicHash = ExtrinsicHash;
|
|
6908
|
+
type index$j_ExtrinsicView = ExtrinsicView;
|
|
6909
|
+
type index$j_Header = Header;
|
|
6910
|
+
declare const index$j_Header: typeof Header;
|
|
6911
|
+
type index$j_HeaderHash = HeaderHash;
|
|
6912
|
+
type index$j_HeaderView = HeaderView;
|
|
6913
|
+
type index$j_HeaderViewWithHash = HeaderViewWithHash;
|
|
6914
|
+
declare const index$j_HeaderViewWithHash: typeof HeaderViewWithHash;
|
|
6915
|
+
declare const index$j_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
|
|
6916
|
+
type index$j_PerEpochBlock<T> = PerEpochBlock<T>;
|
|
6917
|
+
type index$j_PerValidator<T> = PerValidator<T>;
|
|
6918
|
+
type index$j_SEGMENT_BYTES = SEGMENT_BYTES;
|
|
6919
|
+
type index$j_Segment = Segment;
|
|
6920
|
+
type index$j_SegmentIndex = SegmentIndex;
|
|
6921
|
+
type index$j_ServiceGas = ServiceGas;
|
|
6922
|
+
type index$j_ServiceId = ServiceId;
|
|
6923
|
+
type index$j_StateRootHash = StateRootHash;
|
|
6924
|
+
type index$j_TicketsMarker = TicketsMarker;
|
|
6925
|
+
declare const index$j_TicketsMarker: typeof TicketsMarker;
|
|
6926
|
+
type index$j_TicketsMarkerView = TicketsMarkerView;
|
|
6927
|
+
type index$j_TimeSlot = TimeSlot;
|
|
6928
|
+
type index$j_ValidatorIndex = ValidatorIndex;
|
|
6929
|
+
type index$j_ValidatorKeys = ValidatorKeys;
|
|
6930
|
+
declare const index$j_ValidatorKeys: typeof ValidatorKeys;
|
|
6931
|
+
declare const index$j_W_E: typeof W_E;
|
|
6932
|
+
declare const index$j_W_S: typeof W_S;
|
|
6933
|
+
type index$j_WorkReportHash = WorkReportHash;
|
|
6934
|
+
declare const index$j_assurances: typeof assurances;
|
|
6935
|
+
declare const index$j_codecPerEpochBlock: typeof codecPerEpochBlock;
|
|
6936
|
+
declare const index$j_codecPerValidator: typeof codecPerValidator;
|
|
6937
|
+
declare const index$j_disputes: typeof disputes;
|
|
6938
|
+
declare const index$j_emptyBlock: typeof emptyBlock;
|
|
6939
|
+
declare const index$j_encodeUnsealedHeader: typeof encodeUnsealedHeader;
|
|
6940
|
+
declare const index$j_guarantees: typeof guarantees;
|
|
6941
|
+
declare const index$j_headerViewWithHashCodec: typeof headerViewWithHashCodec;
|
|
6942
|
+
declare const index$j_legacyDescriptor: typeof legacyDescriptor;
|
|
6943
|
+
declare const index$j_preimage: typeof preimage;
|
|
6944
|
+
declare const index$j_refineContext: typeof refineContext;
|
|
6945
|
+
declare const index$j_tickets: typeof tickets;
|
|
6946
|
+
declare const index$j_tryAsCoreIndex: typeof tryAsCoreIndex;
|
|
6947
|
+
declare const index$j_tryAsEpoch: typeof tryAsEpoch;
|
|
6948
|
+
declare const index$j_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
|
|
6949
|
+
declare const index$j_tryAsPerValidator: typeof tryAsPerValidator;
|
|
6950
|
+
declare const index$j_tryAsSegmentIndex: typeof tryAsSegmentIndex;
|
|
6951
|
+
declare const index$j_tryAsServiceGas: typeof tryAsServiceGas;
|
|
6952
|
+
declare const index$j_tryAsServiceId: typeof tryAsServiceId;
|
|
6953
|
+
declare const index$j_tryAsTimeSlot: typeof tryAsTimeSlot;
|
|
6954
|
+
declare const index$j_tryAsValidatorIndex: typeof tryAsValidatorIndex;
|
|
6955
|
+
declare const index$j_workItem: typeof workItem;
|
|
6956
|
+
declare const index$j_workPackage: typeof workPackage;
|
|
6957
|
+
declare const index$j_workReport: typeof workReport;
|
|
6958
|
+
declare const index$j_workResult: typeof workResult;
|
|
6959
|
+
declare namespace index$j {
|
|
6960
|
+
export { index$j_Block as Block, index$j_EpochMarker as EpochMarker, index$j_Extrinsic as Extrinsic, index$j_Header as Header, index$j_HeaderViewWithHash as HeaderViewWithHash, index$j_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, index$j_TicketsMarker as TicketsMarker, index$j_ValidatorKeys as ValidatorKeys, index$j_W_E as W_E, index$j_W_S as W_S, index$j_assurances as assurances, index$j_codecPerEpochBlock as codecPerEpochBlock, index$j_codecPerValidator as codecPerValidator, codec as codecUtils, index$j_disputes as disputes, index$j_emptyBlock as emptyBlock, index$j_encodeUnsealedHeader as encodeUnsealedHeader, index$j_guarantees as guarantees, index$j_headerViewWithHashCodec as headerViewWithHashCodec, index$j_legacyDescriptor as legacyDescriptor, index$j_preimage as preimage, index$j_refineContext as refineContext, index$j_tickets as tickets, index$j_tryAsCoreIndex as tryAsCoreIndex, index$j_tryAsEpoch as tryAsEpoch, index$j_tryAsPerEpochBlock as tryAsPerEpochBlock, index$j_tryAsPerValidator as tryAsPerValidator, index$j_tryAsSegmentIndex as tryAsSegmentIndex, index$j_tryAsServiceGas as tryAsServiceGas, index$j_tryAsServiceId as tryAsServiceId, index$j_tryAsTimeSlot as tryAsTimeSlot, index$j_tryAsValidatorIndex as tryAsValidatorIndex, index$j_workItem as workItem, index$j_workPackage as workPackage, index$j_workReport as workReport, index$j_workResult as workResult };
|
|
6961
|
+
export type { index$j_BlockView as BlockView, index$j_CodeHash as CodeHash, index$j_CoreIndex as CoreIndex, index$j_EntropyHash as EntropyHash, index$j_Epoch as Epoch, index$j_EpochMarkerView as EpochMarkerView, index$j_ExtrinsicHash as ExtrinsicHash, index$j_ExtrinsicView as ExtrinsicView, index$j_HeaderHash as HeaderHash, index$j_HeaderView as HeaderView, index$j_PerEpochBlock as PerEpochBlock, index$j_PerValidator as PerValidator, index$j_SEGMENT_BYTES as SEGMENT_BYTES, index$j_Segment as Segment, index$j_SegmentIndex as SegmentIndex, index$j_ServiceGas as ServiceGas, index$j_ServiceId as ServiceId, index$j_StateRootHash as StateRootHash, index$j_TicketsMarkerView as TicketsMarkerView, index$j_TimeSlot as TimeSlot, index$j_ValidatorIndex as ValidatorIndex, index$j_WorkReportHash as WorkReportHash };
|
|
6942
6962
|
}
|
|
6943
6963
|
|
|
6944
6964
|
/** A type that can be read from a JSON-parsed object. */
|
|
@@ -7236,21 +7256,21 @@ declare namespace json {
|
|
|
7236
7256
|
}
|
|
7237
7257
|
}
|
|
7238
7258
|
|
|
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$
|
|
7259
|
+
type index$i_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
|
|
7260
|
+
type index$i_FromJson<T> = FromJson<T>;
|
|
7261
|
+
type index$i_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
|
|
7262
|
+
type index$i_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
|
|
7263
|
+
type index$i_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
|
|
7264
|
+
declare const index$i_NO_KEY: typeof NO_KEY;
|
|
7265
|
+
type index$i_ObjectFromJson<T> = ObjectFromJson<T>;
|
|
7266
|
+
type index$i_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
|
|
7267
|
+
declare const index$i_diffKeys: typeof diffKeys;
|
|
7268
|
+
import index$i_json = json;
|
|
7269
|
+
declare const index$i_parseFromJson: typeof parseFromJson;
|
|
7270
|
+
declare const index$i_parseOrThrow: typeof parseOrThrow;
|
|
7271
|
+
declare namespace index$i {
|
|
7272
|
+
export { index$i_NO_KEY as NO_KEY, index$i_diffKeys as diffKeys, index$i_json as json, index$i_parseFromJson as parseFromJson, index$i_parseOrThrow as parseOrThrow };
|
|
7273
|
+
export type { index$i_Builder as Builder, index$i_FromJson as FromJson, index$i_FromJsonOptional as FromJsonOptional, index$i_FromJsonPrimitive as FromJsonPrimitive, index$i_FromJsonWithParser as FromJsonWithParser, index$i_ObjectFromJson as ObjectFromJson, index$i_Parser as Parser };
|
|
7254
7274
|
}
|
|
7255
7275
|
|
|
7256
7276
|
declare namespace fromJson {
|
|
@@ -7753,52 +7773,52 @@ declare const blockFromJson = (spec: ChainSpec) =>
|
|
|
7753
7773
|
({ header, extrinsic }) => Block.create({ header, extrinsic }),
|
|
7754
7774
|
);
|
|
7755
7775
|
|
|
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$
|
|
7776
|
+
type index$h_CamelToSnake<S extends string> = CamelToSnake<S>;
|
|
7777
|
+
type index$h_JsonCulprit = JsonCulprit;
|
|
7778
|
+
type index$h_JsonEpochMarker = JsonEpochMarker;
|
|
7779
|
+
type index$h_JsonFault = JsonFault;
|
|
7780
|
+
type index$h_JsonHeader = JsonHeader;
|
|
7781
|
+
type index$h_JsonJudgement = JsonJudgement;
|
|
7782
|
+
type index$h_JsonObject<T> = JsonObject<T>;
|
|
7783
|
+
type index$h_JsonRefineContext = JsonRefineContext;
|
|
7784
|
+
type index$h_JsonReportGuarantee = JsonReportGuarantee;
|
|
7785
|
+
type index$h_JsonVerdict = JsonVerdict;
|
|
7786
|
+
type index$h_JsonWorkExecResult = JsonWorkExecResult;
|
|
7787
|
+
type index$h_JsonWorkRefineLoad = JsonWorkRefineLoad;
|
|
7788
|
+
type index$h_JsonWorkReport = JsonWorkReport;
|
|
7789
|
+
type index$h_JsonWorkResult = JsonWorkResult;
|
|
7790
|
+
declare const index$h_bandersnatchVrfSignature: typeof bandersnatchVrfSignature;
|
|
7791
|
+
declare const index$h_blockFromJson: typeof blockFromJson;
|
|
7792
|
+
declare const index$h_culpritFromJson: typeof culpritFromJson;
|
|
7793
|
+
declare const index$h_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
|
|
7794
|
+
declare const index$h_epochMark: typeof epochMark;
|
|
7795
|
+
declare const index$h_faultFromJson: typeof faultFromJson;
|
|
7796
|
+
import index$h_fromJson = fromJson;
|
|
7797
|
+
declare const index$h_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
|
|
7798
|
+
declare const index$h_getAvailabilityAssuranceFromJson: typeof getAvailabilityAssuranceFromJson;
|
|
7799
|
+
declare const index$h_getExtrinsicFromJson: typeof getExtrinsicFromJson;
|
|
7800
|
+
declare const index$h_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
|
|
7801
|
+
declare const index$h_headerFromJson: typeof headerFromJson;
|
|
7802
|
+
declare const index$h_judgementFromJson: typeof judgementFromJson;
|
|
7803
|
+
declare const index$h_preimageFromJson: typeof preimageFromJson;
|
|
7804
|
+
declare const index$h_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
|
|
7805
|
+
declare const index$h_refineContextFromJson: typeof refineContextFromJson;
|
|
7806
|
+
declare const index$h_reportGuaranteeFromJson: typeof reportGuaranteeFromJson;
|
|
7807
|
+
declare const index$h_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
|
|
7808
|
+
declare const index$h_ticket: typeof ticket;
|
|
7809
|
+
declare const index$h_ticketEnvelopeFromJson: typeof ticketEnvelopeFromJson;
|
|
7810
|
+
declare const index$h_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
|
|
7811
|
+
declare const index$h_validatorKeysFromJson: typeof validatorKeysFromJson;
|
|
7812
|
+
declare const index$h_validatorSignatureFromJson: typeof validatorSignatureFromJson;
|
|
7813
|
+
declare const index$h_verdictFromJson: typeof verdictFromJson;
|
|
7814
|
+
declare const index$h_workExecResultFromJson: typeof workExecResultFromJson;
|
|
7815
|
+
declare const index$h_workPackageSpecFromJson: typeof workPackageSpecFromJson;
|
|
7816
|
+
declare const index$h_workRefineLoadFromJson: typeof workRefineLoadFromJson;
|
|
7817
|
+
declare const index$h_workReportFromJson: typeof workReportFromJson;
|
|
7818
|
+
declare const index$h_workResultFromJson: typeof workResultFromJson;
|
|
7819
|
+
declare namespace index$h {
|
|
7820
|
+
export { index$h_bandersnatchVrfSignature as bandersnatchVrfSignature, index$h_blockFromJson as blockFromJson, index$h_culpritFromJson as culpritFromJson, index$h_disputesExtrinsicFromJson as disputesExtrinsicFromJson, index$h_epochMark as epochMark, index$h_faultFromJson as faultFromJson, index$h_fromJson as fromJson, index$h_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, index$h_getAvailabilityAssuranceFromJson as getAvailabilityAssuranceFromJson, index$h_getExtrinsicFromJson as getExtrinsicFromJson, index$h_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, index$h_headerFromJson as headerFromJson, index$h_judgementFromJson as judgementFromJson, index$h_preimageFromJson as preimageFromJson, index$h_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, index$h_refineContextFromJson as refineContextFromJson, index$h_reportGuaranteeFromJson as reportGuaranteeFromJson, index$h_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, index$h_ticket as ticket, index$h_ticketEnvelopeFromJson as ticketEnvelopeFromJson, index$h_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, index$h_validatorKeysFromJson as validatorKeysFromJson, index$h_validatorSignatureFromJson as validatorSignatureFromJson, index$h_verdictFromJson as verdictFromJson, index$h_workExecResultFromJson as workExecResultFromJson, index$h_workPackageSpecFromJson as workPackageSpecFromJson, index$h_workRefineLoadFromJson as workRefineLoadFromJson, index$h_workReportFromJson as workReportFromJson, index$h_workResultFromJson as workResultFromJson };
|
|
7821
|
+
export type { index$h_CamelToSnake as CamelToSnake, index$h_JsonCulprit as JsonCulprit, index$h_JsonEpochMarker as JsonEpochMarker, index$h_JsonFault as JsonFault, index$h_JsonHeader as JsonHeader, index$h_JsonJudgement as JsonJudgement, index$h_JsonObject as JsonObject, index$h_JsonRefineContext as JsonRefineContext, index$h_JsonReportGuarantee as JsonReportGuarantee, index$h_JsonVerdict as JsonVerdict, index$h_JsonWorkExecResult as JsonWorkExecResult, index$h_JsonWorkRefineLoad as JsonWorkRefineLoad, index$h_JsonWorkReport as JsonWorkReport, index$h_JsonWorkResult as JsonWorkResult };
|
|
7802
7822
|
}
|
|
7803
7823
|
|
|
7804
7824
|
declare function parseBootnode(v: string): Bootnode {
|
|
@@ -8046,16 +8066,16 @@ declare class Logger {
|
|
|
8046
8066
|
}
|
|
8047
8067
|
}
|
|
8048
8068
|
|
|
8049
|
-
type index$
|
|
8050
|
-
declare const index$
|
|
8051
|
-
type index$
|
|
8052
|
-
declare const index$
|
|
8053
|
-
declare const index$
|
|
8054
|
-
declare namespace index$
|
|
8069
|
+
type index$g_Level = Level;
|
|
8070
|
+
declare const index$g_Level: typeof Level;
|
|
8071
|
+
type index$g_Logger = Logger;
|
|
8072
|
+
declare const index$g_Logger: typeof Logger;
|
|
8073
|
+
declare const index$g_parseLoggerOptions: typeof parseLoggerOptions;
|
|
8074
|
+
declare namespace index$g {
|
|
8055
8075
|
export {
|
|
8056
|
-
index$
|
|
8057
|
-
index$
|
|
8058
|
-
index$
|
|
8076
|
+
index$g_Level as Level,
|
|
8077
|
+
index$g_Logger as Logger,
|
|
8078
|
+
index$g_parseLoggerOptions as parseLoggerOptions,
|
|
8059
8079
|
};
|
|
8060
8080
|
}
|
|
8061
8081
|
|
|
@@ -8078,7 +8098,7 @@ declare class AuthorshipOptions {
|
|
|
8078
8098
|
) {}
|
|
8079
8099
|
}
|
|
8080
8100
|
|
|
8081
|
-
declare const logger$
|
|
8101
|
+
declare const logger$1 = Logger.new(import.meta.filename, "config");
|
|
8082
8102
|
|
|
8083
8103
|
/** Development config. Will accept unsealed blocks for now. */
|
|
8084
8104
|
declare const DEV_CONFIG = "dev";
|
|
@@ -8160,30 +8180,30 @@ declare function loadConfig(configPath: string): NodeConfiguration {
|
|
|
8160
8180
|
}
|
|
8161
8181
|
}
|
|
8162
8182
|
|
|
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$
|
|
8183
|
+
declare const index$f_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
|
|
8184
|
+
declare const index$f_DEV_CONFIG: typeof DEV_CONFIG;
|
|
8185
|
+
type index$f_JipChainSpec = JipChainSpec;
|
|
8186
|
+
declare const index$f_JipChainSpec: typeof JipChainSpec;
|
|
8187
|
+
type index$f_KnownChainSpec = KnownChainSpec;
|
|
8188
|
+
declare const index$f_KnownChainSpec: typeof KnownChainSpec;
|
|
8189
|
+
declare const index$f_NODE_DEFAULTS: typeof NODE_DEFAULTS;
|
|
8190
|
+
type index$f_NodeConfiguration = NodeConfiguration;
|
|
8191
|
+
declare const index$f_NodeConfiguration: typeof NodeConfiguration;
|
|
8192
|
+
declare const index$f_knownChainSpecFromJson: typeof knownChainSpecFromJson;
|
|
8193
|
+
declare const index$f_loadConfig: typeof loadConfig;
|
|
8194
|
+
declare const index$f_parseBootnode: typeof parseBootnode;
|
|
8195
|
+
declare namespace index$f {
|
|
8176
8196
|
export {
|
|
8177
|
-
index$
|
|
8178
|
-
index$
|
|
8179
|
-
index$
|
|
8180
|
-
index$
|
|
8181
|
-
index$
|
|
8182
|
-
index$
|
|
8183
|
-
index$
|
|
8184
|
-
index$
|
|
8185
|
-
logger$
|
|
8186
|
-
index$
|
|
8197
|
+
index$f_DEFAULT_CONFIG as DEFAULT_CONFIG,
|
|
8198
|
+
index$f_DEV_CONFIG as DEV_CONFIG,
|
|
8199
|
+
index$f_JipChainSpec as JipChainSpec,
|
|
8200
|
+
index$f_KnownChainSpec as KnownChainSpec,
|
|
8201
|
+
index$f_NODE_DEFAULTS as NODE_DEFAULTS,
|
|
8202
|
+
index$f_NodeConfiguration as NodeConfiguration,
|
|
8203
|
+
index$f_knownChainSpecFromJson as knownChainSpecFromJson,
|
|
8204
|
+
index$f_loadConfig as loadConfig,
|
|
8205
|
+
logger$1 as logger,
|
|
8206
|
+
index$f_parseBootnode as parseBootnode,
|
|
8187
8207
|
};
|
|
8188
8208
|
}
|
|
8189
8209
|
|
|
@@ -8970,43 +8990,43 @@ declare const bitLookup = [
|
|
|
8970
8990
|
[0b00000000, 8],
|
|
8971
8991
|
];
|
|
8972
8992
|
|
|
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$
|
|
8993
|
+
type index$e_BranchNode = BranchNode;
|
|
8994
|
+
declare const index$e_BranchNode: typeof BranchNode;
|
|
8995
|
+
type index$e_InMemoryTrie = InMemoryTrie;
|
|
8996
|
+
declare const index$e_InMemoryTrie: typeof InMemoryTrie;
|
|
8997
|
+
type index$e_InputKey = InputKey;
|
|
8998
|
+
type index$e_LeafNode = LeafNode;
|
|
8999
|
+
declare const index$e_LeafNode: typeof LeafNode;
|
|
9000
|
+
type index$e_NodeType = NodeType;
|
|
9001
|
+
declare const index$e_NodeType: typeof NodeType;
|
|
9002
|
+
type index$e_NodesDb = NodesDb;
|
|
9003
|
+
declare const index$e_NodesDb: typeof NodesDb;
|
|
9004
|
+
declare const index$e_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
|
|
9005
|
+
declare const index$e_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
|
|
9006
|
+
type index$e_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
|
|
9007
|
+
type index$e_TraversedPath = TraversedPath;
|
|
9008
|
+
declare const index$e_TraversedPath: typeof TraversedPath;
|
|
9009
|
+
type index$e_TrieHasher = TrieHasher;
|
|
9010
|
+
type index$e_TrieNode = TrieNode;
|
|
9011
|
+
declare const index$e_TrieNode: typeof TrieNode;
|
|
9012
|
+
type index$e_TrieNodeHash = TrieNodeHash;
|
|
9013
|
+
type index$e_TruncatedStateKey = TruncatedStateKey;
|
|
9014
|
+
type index$e_ValueHash = ValueHash;
|
|
9015
|
+
type index$e_WriteableNodesDb = WriteableNodesDb;
|
|
9016
|
+
declare const index$e_WriteableNodesDb: typeof WriteableNodesDb;
|
|
9017
|
+
declare const index$e_bitLookup: typeof bitLookup;
|
|
9018
|
+
declare const index$e_createSubtreeForBothLeaves: typeof createSubtreeForBothLeaves;
|
|
9019
|
+
declare const index$e_findNodeToReplace: typeof findNodeToReplace;
|
|
9020
|
+
declare const index$e_findSharedPrefix: typeof findSharedPrefix;
|
|
9021
|
+
declare const index$e_getBit: typeof getBit;
|
|
9022
|
+
declare const index$e_leafComparator: typeof leafComparator;
|
|
9023
|
+
declare const index$e_parseInputKey: typeof parseInputKey;
|
|
9024
|
+
declare const index$e_trieInsert: typeof trieInsert;
|
|
9025
|
+
declare const index$e_trieStringify: typeof trieStringify;
|
|
9026
|
+
declare const index$e_zero: typeof zero;
|
|
9027
|
+
declare namespace index$e {
|
|
9028
|
+
export { index$e_BranchNode as BranchNode, index$e_InMemoryTrie as InMemoryTrie, index$e_LeafNode as LeafNode, index$e_NodeType as NodeType, index$e_NodesDb as NodesDb, index$e_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$e_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$e_TraversedPath as TraversedPath, index$e_TrieNode as TrieNode, index$e_WriteableNodesDb as WriteableNodesDb, index$e_bitLookup as bitLookup, index$e_createSubtreeForBothLeaves as createSubtreeForBothLeaves, index$e_findNodeToReplace as findNodeToReplace, index$e_findSharedPrefix as findSharedPrefix, index$e_getBit as getBit, index$e_leafComparator as leafComparator, index$e_parseInputKey as parseInputKey, index$e_trieInsert as trieInsert, index$e_trieStringify as trieStringify, index$e_zero as zero };
|
|
9029
|
+
export type { index$e_InputKey as InputKey, StateKey$1 as StateKey, index$e_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$e_TrieHasher as TrieHasher, index$e_TrieNodeHash as TrieNodeHash, index$e_TruncatedStateKey as TruncatedStateKey, index$e_ValueHash as ValueHash };
|
|
9010
9030
|
}
|
|
9011
9031
|
|
|
9012
9032
|
/**
|
|
@@ -9448,16 +9468,16 @@ declare class Mountain<H extends OpaqueHash> {
|
|
|
9448
9468
|
}
|
|
9449
9469
|
}
|
|
9450
9470
|
|
|
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$
|
|
9471
|
+
type index$d_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
|
|
9472
|
+
declare const index$d_MerkleMountainRange: typeof MerkleMountainRange;
|
|
9473
|
+
type index$d_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
|
|
9474
|
+
type index$d_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
|
|
9475
|
+
type index$d_Mountain<H extends OpaqueHash> = Mountain<H>;
|
|
9476
|
+
declare const index$d_Mountain: typeof Mountain;
|
|
9477
|
+
declare const index$d_SUPER_PEAK_STRING: typeof SUPER_PEAK_STRING;
|
|
9478
|
+
declare namespace index$d {
|
|
9479
|
+
export { index$d_MerkleMountainRange as MerkleMountainRange, index$d_Mountain as Mountain, index$d_SUPER_PEAK_STRING as SUPER_PEAK_STRING };
|
|
9480
|
+
export type { index$d_MmrHasher as MmrHasher, index$d_MmrPeaks as MmrPeaks };
|
|
9461
9481
|
}
|
|
9462
9482
|
|
|
9463
9483
|
/**
|
|
@@ -11155,103 +11175,103 @@ type FieldNames<T> = {
|
|
|
11155
11175
|
[K in keyof T]: T[K] extends Function ? never : K;
|
|
11156
11176
|
}[keyof T];
|
|
11157
11177
|
|
|
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$
|
|
11178
|
+
type index$c_AccumulationOutput = AccumulationOutput;
|
|
11179
|
+
declare const index$c_AccumulationOutput: typeof AccumulationOutput;
|
|
11180
|
+
type index$c_AutoAccumulate = AutoAccumulate;
|
|
11181
|
+
declare const index$c_AutoAccumulate: typeof AutoAccumulate;
|
|
11182
|
+
type index$c_AvailabilityAssignment = AvailabilityAssignment;
|
|
11183
|
+
declare const index$c_AvailabilityAssignment: typeof AvailabilityAssignment;
|
|
11184
|
+
declare const index$c_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
|
|
11185
|
+
type index$c_BlockState = BlockState;
|
|
11186
|
+
declare const index$c_BlockState: typeof BlockState;
|
|
11187
|
+
type index$c_BlocksState = BlocksState;
|
|
11188
|
+
type index$c_CoreStatistics = CoreStatistics;
|
|
11189
|
+
declare const index$c_CoreStatistics: typeof CoreStatistics;
|
|
11190
|
+
type index$c_DisputesRecords = DisputesRecords;
|
|
11191
|
+
declare const index$c_DisputesRecords: typeof DisputesRecords;
|
|
11192
|
+
declare const index$c_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
|
|
11193
|
+
declare const index$c_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
|
|
11194
|
+
type index$c_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
|
|
11195
|
+
type index$c_EnumerableState = EnumerableState;
|
|
11196
|
+
type index$c_FieldNames<T> = FieldNames<T>;
|
|
11197
|
+
type index$c_InMemoryService = InMemoryService;
|
|
11198
|
+
declare const index$c_InMemoryService: typeof InMemoryService;
|
|
11199
|
+
type index$c_InMemoryState = InMemoryState;
|
|
11200
|
+
declare const index$c_InMemoryState: typeof InMemoryState;
|
|
11201
|
+
type index$c_InMemoryStateFields = InMemoryStateFields;
|
|
11202
|
+
type index$c_LookupHistoryItem = LookupHistoryItem;
|
|
11203
|
+
declare const index$c_LookupHistoryItem: typeof LookupHistoryItem;
|
|
11204
|
+
type index$c_LookupHistorySlots = LookupHistorySlots;
|
|
11205
|
+
declare const index$c_MAX_LOOKUP_HISTORY_SLOTS: typeof MAX_LOOKUP_HISTORY_SLOTS;
|
|
11206
|
+
type index$c_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
|
|
11207
|
+
type index$c_PerCore<T> = PerCore<T>;
|
|
11208
|
+
type index$c_PreimageItem = PreimageItem;
|
|
11209
|
+
declare const index$c_PreimageItem: typeof PreimageItem;
|
|
11210
|
+
type index$c_PrivilegedServices = PrivilegedServices;
|
|
11211
|
+
declare const index$c_PrivilegedServices: typeof PrivilegedServices;
|
|
11212
|
+
type index$c_RecentBlocks = RecentBlocks;
|
|
11213
|
+
declare const index$c_RecentBlocks: typeof RecentBlocks;
|
|
11214
|
+
type index$c_RecentBlocksHistory = RecentBlocksHistory;
|
|
11215
|
+
declare const index$c_RecentBlocksHistory: typeof RecentBlocksHistory;
|
|
11216
|
+
type index$c_SafroleData = SafroleData;
|
|
11217
|
+
declare const index$c_SafroleData: typeof SafroleData;
|
|
11218
|
+
type index$c_SafroleSealingKeys = SafroleSealingKeys;
|
|
11219
|
+
type index$c_SafroleSealingKeysData = SafroleSealingKeysData;
|
|
11220
|
+
declare const index$c_SafroleSealingKeysData: typeof SafroleSealingKeysData;
|
|
11221
|
+
type index$c_SafroleSealingKeysKind = SafroleSealingKeysKind;
|
|
11222
|
+
declare const index$c_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
|
|
11223
|
+
type index$c_Service = Service;
|
|
11224
|
+
type index$c_ServiceAccountInfo = ServiceAccountInfo;
|
|
11225
|
+
declare const index$c_ServiceAccountInfo: typeof ServiceAccountInfo;
|
|
11226
|
+
type index$c_ServiceData = ServiceData;
|
|
11227
|
+
type index$c_ServiceEntries = ServiceEntries;
|
|
11228
|
+
type index$c_ServiceStatistics = ServiceStatistics;
|
|
11229
|
+
declare const index$c_ServiceStatistics: typeof ServiceStatistics;
|
|
11230
|
+
type index$c_ServicesUpdate = ServicesUpdate;
|
|
11231
|
+
type index$c_State = State;
|
|
11232
|
+
type index$c_StatisticsData = StatisticsData;
|
|
11233
|
+
declare const index$c_StatisticsData: typeof StatisticsData;
|
|
11234
|
+
type index$c_StorageItem = StorageItem;
|
|
11235
|
+
declare const index$c_StorageItem: typeof StorageItem;
|
|
11236
|
+
type index$c_StorageKey = StorageKey;
|
|
11237
|
+
type index$c_UpdateError = UpdateError;
|
|
11238
|
+
declare const index$c_UpdateError: typeof UpdateError;
|
|
11239
|
+
type index$c_UpdatePreimage = UpdatePreimage;
|
|
11240
|
+
declare const index$c_UpdatePreimage: typeof UpdatePreimage;
|
|
11241
|
+
type index$c_UpdatePreimageKind = UpdatePreimageKind;
|
|
11242
|
+
declare const index$c_UpdatePreimageKind: typeof UpdatePreimageKind;
|
|
11243
|
+
type index$c_UpdateService = UpdateService;
|
|
11244
|
+
declare const index$c_UpdateService: typeof UpdateService;
|
|
11245
|
+
type index$c_UpdateServiceKind = UpdateServiceKind;
|
|
11246
|
+
declare const index$c_UpdateServiceKind: typeof UpdateServiceKind;
|
|
11247
|
+
type index$c_UpdateStorage = UpdateStorage;
|
|
11248
|
+
declare const index$c_UpdateStorage: typeof UpdateStorage;
|
|
11249
|
+
type index$c_UpdateStorageKind = UpdateStorageKind;
|
|
11250
|
+
declare const index$c_UpdateStorageKind: typeof UpdateStorageKind;
|
|
11251
|
+
type index$c_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
|
|
11252
|
+
type index$c_ValidatorData = ValidatorData;
|
|
11253
|
+
declare const index$c_ValidatorData: typeof ValidatorData;
|
|
11254
|
+
type index$c_ValidatorStatistics = ValidatorStatistics;
|
|
11255
|
+
declare const index$c_ValidatorStatistics: typeof ValidatorStatistics;
|
|
11256
|
+
declare const index$c_accumulationOutputComparator: typeof accumulationOutputComparator;
|
|
11257
|
+
declare const index$c_codecBandersnatchKey: typeof codecBandersnatchKey;
|
|
11258
|
+
declare const index$c_codecPerCore: typeof codecPerCore;
|
|
11259
|
+
declare const index$c_codecServiceId: typeof codecServiceId;
|
|
11260
|
+
declare const index$c_codecVarGas: typeof codecVarGas;
|
|
11261
|
+
declare const index$c_codecVarU16: typeof codecVarU16;
|
|
11262
|
+
declare const index$c_codecWithHash: typeof codecWithHash;
|
|
11263
|
+
declare const index$c_hashComparator: typeof hashComparator;
|
|
11264
|
+
declare const index$c_ignoreValueWithDefault: typeof ignoreValueWithDefault;
|
|
11265
|
+
declare const index$c_serviceDataCodec: typeof serviceDataCodec;
|
|
11266
|
+
declare const index$c_serviceEntriesCodec: typeof serviceEntriesCodec;
|
|
11267
|
+
declare const index$c_sortedSetCodec: typeof sortedSetCodec;
|
|
11268
|
+
declare const index$c_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
|
|
11269
|
+
declare const index$c_tryAsPerCore: typeof tryAsPerCore;
|
|
11270
|
+
declare const index$c_workReportsSortedSetCodec: typeof workReportsSortedSetCodec;
|
|
11271
|
+
declare const index$c_zeroSizeHint: typeof zeroSizeHint;
|
|
11272
|
+
declare namespace index$c {
|
|
11273
|
+
export { index$c_AccumulationOutput as AccumulationOutput, index$c_AutoAccumulate as AutoAccumulate, index$c_AvailabilityAssignment as AvailabilityAssignment, index$c_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$c_BlockState as BlockState, index$c_CoreStatistics as CoreStatistics, index$c_DisputesRecords as DisputesRecords, index$c_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$c_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$c_InMemoryService as InMemoryService, index$c_InMemoryState as InMemoryState, index$c_LookupHistoryItem as LookupHistoryItem, index$c_MAX_LOOKUP_HISTORY_SLOTS as MAX_LOOKUP_HISTORY_SLOTS, index$c_PreimageItem as PreimageItem, index$c_PrivilegedServices as PrivilegedServices, index$c_RecentBlocks as RecentBlocks, index$c_RecentBlocksHistory as RecentBlocksHistory, index$c_SafroleData as SafroleData, index$c_SafroleSealingKeysData as SafroleSealingKeysData, index$c_SafroleSealingKeysKind as SafroleSealingKeysKind, index$c_ServiceAccountInfo as ServiceAccountInfo, index$c_ServiceStatistics as ServiceStatistics, index$c_StatisticsData as StatisticsData, index$c_StorageItem as StorageItem, index$c_UpdateError as UpdateError, index$c_UpdatePreimage as UpdatePreimage, index$c_UpdatePreimageKind as UpdatePreimageKind, index$c_UpdateService as UpdateService, index$c_UpdateServiceKind as UpdateServiceKind, index$c_UpdateStorage as UpdateStorage, index$c_UpdateStorageKind as UpdateStorageKind, index$c_ValidatorData as ValidatorData, index$c_ValidatorStatistics as ValidatorStatistics, index$c_accumulationOutputComparator as accumulationOutputComparator, index$c_codecBandersnatchKey as codecBandersnatchKey, index$c_codecPerCore as codecPerCore, index$c_codecServiceId as codecServiceId, index$c_codecVarGas as codecVarGas, index$c_codecVarU16 as codecVarU16, index$c_codecWithHash as codecWithHash, index$c_hashComparator as hashComparator, index$c_ignoreValueWithDefault as ignoreValueWithDefault, index$c_serviceDataCodec as serviceDataCodec, index$c_serviceEntriesCodec as serviceEntriesCodec, index$c_sortedSetCodec as sortedSetCodec, index$c_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$c_tryAsPerCore as tryAsPerCore, index$c_workReportsSortedSetCodec as workReportsSortedSetCodec, index$c_zeroSizeHint as zeroSizeHint };
|
|
11274
|
+
export type { index$c_BlocksState as BlocksState, index$c_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$c_EnumerableState as EnumerableState, index$c_FieldNames as FieldNames, index$c_InMemoryStateFields as InMemoryStateFields, index$c_LookupHistorySlots as LookupHistorySlots, index$c_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$c_PerCore as PerCore, index$c_SafroleSealingKeys as SafroleSealingKeys, index$c_Service as Service, index$c_ServiceData as ServiceData, index$c_ServiceEntries as ServiceEntries, index$c_ServicesUpdate as ServicesUpdate, index$c_State as State, index$c_StorageKey as StorageKey, index$c_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES };
|
|
11255
11275
|
}
|
|
11256
11276
|
|
|
11257
11277
|
type StateKey = Opaque<OpaqueHash, "stateKey">;
|
|
@@ -12189,44 +12209,44 @@ declare function loadState(spec: ChainSpec, entries: Iterable<[StateKey | Trunca
|
|
|
12189
12209
|
* hashmap of `key -> value` entries.
|
|
12190
12210
|
*/
|
|
12191
12211
|
|
|
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$
|
|
12212
|
+
declare const index$b_EMPTY_BLOB: typeof EMPTY_BLOB;
|
|
12213
|
+
type index$b_EncodeFun = EncodeFun;
|
|
12214
|
+
type index$b_KeyAndCodec<T> = KeyAndCodec<T>;
|
|
12215
|
+
type index$b_SerializedService = SerializedService;
|
|
12216
|
+
declare const index$b_SerializedService: typeof SerializedService;
|
|
12217
|
+
type index$b_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
|
|
12218
|
+
declare const index$b_SerializedState: typeof SerializedState;
|
|
12219
|
+
type index$b_SerializedStateBackend = SerializedStateBackend;
|
|
12220
|
+
type index$b_StateCodec<T> = StateCodec<T>;
|
|
12221
|
+
type index$b_StateEntries = StateEntries;
|
|
12222
|
+
declare const index$b_StateEntries: typeof StateEntries;
|
|
12223
|
+
type index$b_StateEntryUpdate = StateEntryUpdate;
|
|
12224
|
+
type index$b_StateEntryUpdateAction = StateEntryUpdateAction;
|
|
12225
|
+
declare const index$b_StateEntryUpdateAction: typeof StateEntryUpdateAction;
|
|
12226
|
+
type index$b_StateKey = StateKey;
|
|
12227
|
+
type index$b_StateKeyIdx = StateKeyIdx;
|
|
12228
|
+
declare const index$b_StateKeyIdx: typeof StateKeyIdx;
|
|
12229
|
+
declare const index$b_TYPICAL_STATE_ITEMS: typeof TYPICAL_STATE_ITEMS;
|
|
12230
|
+
declare const index$b_TYPICAL_STATE_ITEM_LEN: typeof TYPICAL_STATE_ITEM_LEN;
|
|
12231
|
+
declare const index$b_U32_BYTES: typeof U32_BYTES;
|
|
12232
|
+
declare const index$b_binaryMerkleization: typeof binaryMerkleization;
|
|
12233
|
+
declare const index$b_convertInMemoryStateToDictionary: typeof convertInMemoryStateToDictionary;
|
|
12234
|
+
declare const index$b_dumpCodec: typeof dumpCodec;
|
|
12235
|
+
declare const index$b_getSafroleData: typeof getSafroleData;
|
|
12236
|
+
declare const index$b_legacyServiceNested: typeof legacyServiceNested;
|
|
12237
|
+
declare const index$b_loadState: typeof loadState;
|
|
12238
|
+
import index$b_serialize = serialize;
|
|
12239
|
+
declare const index$b_serializeBasicKeys: typeof serializeBasicKeys;
|
|
12240
|
+
declare const index$b_serializePreimages: typeof serializePreimages;
|
|
12241
|
+
declare const index$b_serializeRemovedServices: typeof serializeRemovedServices;
|
|
12242
|
+
declare const index$b_serializeServiceUpdates: typeof serializeServiceUpdates;
|
|
12243
|
+
declare const index$b_serializeStateUpdate: typeof serializeStateUpdate;
|
|
12244
|
+
declare const index$b_serializeStorage: typeof serializeStorage;
|
|
12245
|
+
declare const index$b_stateEntriesSequenceCodec: typeof stateEntriesSequenceCodec;
|
|
12246
|
+
import index$b_stateKeys = stateKeys;
|
|
12247
|
+
declare namespace index$b {
|
|
12248
|
+
export { index$b_EMPTY_BLOB as EMPTY_BLOB, index$b_SerializedService as SerializedService, index$b_SerializedState as SerializedState, index$b_StateEntries as StateEntries, index$b_StateEntryUpdateAction as StateEntryUpdateAction, index$b_StateKeyIdx as StateKeyIdx, index$b_TYPICAL_STATE_ITEMS as TYPICAL_STATE_ITEMS, index$b_TYPICAL_STATE_ITEM_LEN as TYPICAL_STATE_ITEM_LEN, index$b_U32_BYTES as U32_BYTES, index$b_binaryMerkleization as binaryMerkleization, index$b_convertInMemoryStateToDictionary as convertInMemoryStateToDictionary, index$b_dumpCodec as dumpCodec, index$b_getSafroleData as getSafroleData, index$b_legacyServiceNested as legacyServiceNested, index$b_loadState as loadState, index$b_serialize as serialize, index$b_serializeBasicKeys as serializeBasicKeys, index$b_serializePreimages as serializePreimages, index$b_serializeRemovedServices as serializeRemovedServices, index$b_serializeServiceUpdates as serializeServiceUpdates, index$b_serializeStateUpdate as serializeStateUpdate, index$b_serializeStorage as serializeStorage, index$b_stateEntriesSequenceCodec as stateEntriesSequenceCodec, index$b_stateKeys as stateKeys };
|
|
12249
|
+
export type { index$b_EncodeFun as EncodeFun, index$b_KeyAndCodec as KeyAndCodec, index$b_SerializedStateBackend as SerializedStateBackend, index$b_StateCodec as StateCodec, index$b_StateEntryUpdate as StateEntryUpdate, index$b_StateKey as StateKey };
|
|
12230
12250
|
}
|
|
12231
12251
|
|
|
12232
12252
|
/** Error during `LeafDb` creation. */
|
|
@@ -12434,25 +12454,25 @@ declare class InMemoryStates implements StatesDb<InMemoryState> {
|
|
|
12434
12454
|
}
|
|
12435
12455
|
}
|
|
12436
12456
|
|
|
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$
|
|
12457
|
+
type index$a_BlocksDb = BlocksDb;
|
|
12458
|
+
type index$a_InMemoryBlocks = InMemoryBlocks;
|
|
12459
|
+
declare const index$a_InMemoryBlocks: typeof InMemoryBlocks;
|
|
12460
|
+
type index$a_InMemoryStates = InMemoryStates;
|
|
12461
|
+
declare const index$a_InMemoryStates: typeof InMemoryStates;
|
|
12462
|
+
type index$a_LeafDb = LeafDb;
|
|
12463
|
+
declare const index$a_LeafDb: typeof LeafDb;
|
|
12464
|
+
type index$a_LeafDbError = LeafDbError;
|
|
12465
|
+
declare const index$a_LeafDbError: typeof LeafDbError;
|
|
12466
|
+
type index$a_Lookup = Lookup;
|
|
12467
|
+
type index$a_LookupKind = LookupKind;
|
|
12468
|
+
declare const index$a_LookupKind: typeof LookupKind;
|
|
12469
|
+
type index$a_StateUpdateError = StateUpdateError;
|
|
12470
|
+
declare const index$a_StateUpdateError: typeof StateUpdateError;
|
|
12471
|
+
type index$a_StatesDb<T extends State = State> = StatesDb<T>;
|
|
12472
|
+
type index$a_ValuesDb = ValuesDb;
|
|
12473
|
+
declare namespace index$a {
|
|
12474
|
+
export { index$a_InMemoryBlocks as InMemoryBlocks, index$a_InMemoryStates as InMemoryStates, index$a_LeafDb as LeafDb, index$a_LeafDbError as LeafDbError, index$a_LookupKind as LookupKind, index$a_StateUpdateError as StateUpdateError };
|
|
12475
|
+
export type { index$a_BlocksDb as BlocksDb, index$a_Lookup as Lookup, index$a_StatesDb as StatesDb, index$a_ValuesDb as ValuesDb };
|
|
12456
12476
|
}
|
|
12457
12477
|
|
|
12458
12478
|
/**
|
|
@@ -12874,572 +12894,31 @@ declare const initEc = async () => {
|
|
|
12874
12894
|
await init.reedSolomon();
|
|
12875
12895
|
};
|
|
12876
12896
|
|
|
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$
|
|
12899
|
-
declare namespace index$b {
|
|
12900
|
-
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 };
|
|
12901
|
-
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 };
|
|
12902
|
-
}
|
|
12903
|
-
|
|
12904
|
-
/** A per-client handler of incoming socket messages. */
|
|
12905
|
-
interface IpcHandler {
|
|
12906
|
-
/** New data on the socket received. */
|
|
12907
|
-
onSocketMessage(msg: Uint8Array): Promise<void>;
|
|
12908
|
-
|
|
12909
|
-
/** Socket closed or errored. */
|
|
12910
|
-
onClose(reason: { error?: Error }): void;
|
|
12911
|
-
}
|
|
12912
|
-
|
|
12913
|
-
/** Sending data abstraction on a socket. */
|
|
12914
|
-
interface IpcSender {
|
|
12915
|
-
/** Write given data to the outgoing socket. */
|
|
12916
|
-
send(data: BytesBlob): void;
|
|
12917
|
-
|
|
12918
|
-
/** Close the socket. */
|
|
12919
|
-
close(): void;
|
|
12920
|
-
}
|
|
12921
|
-
|
|
12922
|
-
/**
|
|
12923
|
-
* Version ::= SEQUENCE {
|
|
12924
|
-
* major INTEGER (0..255),
|
|
12925
|
-
* minor INTEGER (0..255),
|
|
12926
|
-
* patch INTEGER (0..255)
|
|
12927
|
-
* }
|
|
12928
|
-
*/
|
|
12929
|
-
declare class Version extends WithDebug {
|
|
12930
|
-
static Codec = codec.Class(Version, {
|
|
12931
|
-
major: codec.u8,
|
|
12932
|
-
minor: codec.u8,
|
|
12933
|
-
patch: codec.u8,
|
|
12934
|
-
});
|
|
12935
|
-
|
|
12936
|
-
static tryFromString(str: string): Version {
|
|
12937
|
-
const parse = (v: string) => tryAsU8(Number(v));
|
|
12938
|
-
try {
|
|
12939
|
-
const [major, minor, patch] = str.trim().split(".").map(parse);
|
|
12940
|
-
|
|
12941
|
-
return Version.create({
|
|
12942
|
-
major,
|
|
12943
|
-
minor,
|
|
12944
|
-
patch,
|
|
12945
|
-
});
|
|
12946
|
-
} catch (e) {
|
|
12947
|
-
throw new Error(`Unable to parse ${str} as Version: ${e}`);
|
|
12948
|
-
}
|
|
12949
|
-
}
|
|
12950
|
-
|
|
12951
|
-
static create({ major, minor, patch }: CodecRecord<Version>) {
|
|
12952
|
-
return new Version(major, minor, patch);
|
|
12953
|
-
}
|
|
12954
|
-
|
|
12955
|
-
private constructor(
|
|
12956
|
-
public readonly major: U8,
|
|
12957
|
-
public readonly minor: U8,
|
|
12958
|
-
public readonly patch: U8,
|
|
12959
|
-
) {
|
|
12960
|
-
super();
|
|
12961
|
-
}
|
|
12962
|
-
}
|
|
12963
|
-
|
|
12964
|
-
/**
|
|
12965
|
-
* Fuzzer Protocol V1
|
|
12966
|
-
* Reference: https://github.com/davxy/jam-conformance/blob/main/fuzz-proto/fuzz.asn
|
|
12967
|
-
*/
|
|
12968
|
-
// Feature bit constants
|
|
12969
|
-
declare enum Features {
|
|
12970
|
-
Ancestry = 1, // 2^0
|
|
12971
|
-
Fork = 2, // 2^1
|
|
12972
|
-
Reserved = 2147483648, // 2^31
|
|
12973
|
-
}
|
|
12974
|
-
|
|
12975
|
-
/**
|
|
12976
|
-
* PeerInfo ::= SEQUENCE {
|
|
12977
|
-
* fuzz-version U8,
|
|
12978
|
-
* features Features,
|
|
12979
|
-
* jam-version Version,
|
|
12980
|
-
* app-version Version,
|
|
12981
|
-
* name UTF8String
|
|
12982
|
-
* }
|
|
12983
|
-
*/
|
|
12984
|
-
declare class PeerInfo extends WithDebug {
|
|
12985
|
-
static Codec = codec.Class(PeerInfo, {
|
|
12986
|
-
fuzzVersion: codec.u8,
|
|
12987
|
-
features: codec.u32,
|
|
12988
|
-
jamVersion: Version.Codec,
|
|
12989
|
-
appVersion: Version.Codec,
|
|
12990
|
-
name: codec.string,
|
|
12991
|
-
});
|
|
12992
|
-
|
|
12993
|
-
static create({ fuzzVersion, features, appVersion, jamVersion, name }: CodecRecord<PeerInfo>) {
|
|
12994
|
-
return new PeerInfo(fuzzVersion, features, jamVersion, appVersion, name);
|
|
12995
|
-
}
|
|
12996
|
-
|
|
12997
|
-
private constructor(
|
|
12998
|
-
public readonly fuzzVersion: U8,
|
|
12999
|
-
public readonly features: U32,
|
|
13000
|
-
public readonly jamVersion: Version,
|
|
13001
|
-
public readonly appVersion: Version,
|
|
13002
|
-
public readonly name: string,
|
|
13003
|
-
) {
|
|
13004
|
-
super();
|
|
13005
|
-
}
|
|
13006
|
-
}
|
|
13007
|
-
|
|
13008
|
-
/**
|
|
13009
|
-
* AncestryItem ::= SEQUENCE {
|
|
13010
|
-
* slot TimeSlot,
|
|
13011
|
-
* header-hash HeaderHash
|
|
13012
|
-
* }
|
|
13013
|
-
*/
|
|
13014
|
-
declare class AncestryItem extends WithDebug {
|
|
13015
|
-
static Codec = codec.Class(AncestryItem, {
|
|
13016
|
-
slot: codec.u32.asOpaque<TimeSlot>(),
|
|
13017
|
-
headerHash: codec.bytes(HASH_SIZE).asOpaque<HeaderHash>(),
|
|
13018
|
-
});
|
|
13019
|
-
|
|
13020
|
-
static create({ slot, headerHash }: CodecRecord<AncestryItem>) {
|
|
13021
|
-
return new AncestryItem(slot, headerHash);
|
|
13022
|
-
}
|
|
13023
|
-
|
|
13024
|
-
private constructor(
|
|
13025
|
-
public readonly slot: TimeSlot,
|
|
13026
|
-
public readonly headerHash: HeaderHash,
|
|
13027
|
-
) {
|
|
13028
|
-
super();
|
|
13029
|
-
}
|
|
13030
|
-
}
|
|
13031
|
-
|
|
13032
|
-
/**
|
|
13033
|
-
* KeyValue ::= SEQUENCE {
|
|
13034
|
-
* key TrieKey,
|
|
13035
|
-
* value OCTET STRING
|
|
13036
|
-
* }
|
|
13037
|
-
*/
|
|
13038
|
-
declare class KeyValue extends WithDebug {
|
|
13039
|
-
static Codec = codec.Class(KeyValue, {
|
|
13040
|
-
key: codec.bytes(TRUNCATED_HASH_SIZE),
|
|
13041
|
-
value: codec.blob,
|
|
13042
|
-
});
|
|
13043
|
-
|
|
13044
|
-
static create({ key, value }: CodecRecord<KeyValue>) {
|
|
13045
|
-
return new KeyValue(key, value);
|
|
13046
|
-
}
|
|
13047
|
-
|
|
13048
|
-
private constructor(
|
|
13049
|
-
public readonly key: TruncatedHash,
|
|
13050
|
-
public readonly value: BytesBlob,
|
|
13051
|
-
) {
|
|
13052
|
-
super();
|
|
13053
|
-
}
|
|
13054
|
-
}
|
|
13055
|
-
|
|
13056
|
-
/** State ::= SEQUENCE OF KeyValue */
|
|
13057
|
-
declare const stateCodec = codec.sequenceVarLen(KeyValue.Codec);
|
|
13058
|
-
|
|
13059
|
-
/**
|
|
13060
|
-
* Ancestry ::= SEQUENCE (SIZE(0..24)) OF AncestryItem
|
|
13061
|
-
* Empty when `feature-ancestry` is not supported by both parties
|
|
13062
|
-
*/
|
|
13063
|
-
declare const ancestryCodec = codec.sequenceVarLen(AncestryItem.Codec, {
|
|
13064
|
-
minLength: 0,
|
|
13065
|
-
maxLength: 24,
|
|
13066
|
-
});
|
|
13067
|
-
type Ancestry = AncestryItem[];
|
|
13068
|
-
|
|
13069
|
-
/**
|
|
13070
|
-
* Initialize ::= SEQUENCE {
|
|
13071
|
-
* header Header,
|
|
13072
|
-
* keyvals State,
|
|
13073
|
-
* ancestry Ancestry
|
|
13074
|
-
* }
|
|
13075
|
-
*/
|
|
13076
|
-
declare class Initialize extends WithDebug {
|
|
13077
|
-
static Codec = codec.Class(Initialize, {
|
|
13078
|
-
header: Header.Codec,
|
|
13079
|
-
keyvals: stateCodec,
|
|
13080
|
-
ancestry: ancestryCodec,
|
|
13081
|
-
});
|
|
13082
|
-
|
|
13083
|
-
static create({ header, keyvals, ancestry }: CodecRecord<Initialize>) {
|
|
13084
|
-
return new Initialize(header, keyvals, ancestry);
|
|
13085
|
-
}
|
|
13086
|
-
|
|
13087
|
-
private constructor(
|
|
13088
|
-
public readonly header: Header,
|
|
13089
|
-
public readonly keyvals: KeyValue[],
|
|
13090
|
-
public readonly ancestry: Ancestry,
|
|
13091
|
-
) {
|
|
13092
|
-
super();
|
|
13093
|
-
}
|
|
13094
|
-
}
|
|
13095
|
-
|
|
13096
|
-
/** GetState ::= HeaderHash */
|
|
13097
|
-
declare const getStateCodec = codec.bytes(HASH_SIZE).asOpaque<HeaderHash>();
|
|
13098
|
-
type GetState = HeaderHash;
|
|
13099
|
-
|
|
13100
|
-
/** StateRoot ::= StateRootHash */
|
|
13101
|
-
declare const stateRootCodec = codec.bytes(HASH_SIZE).asOpaque<StateRootHash>();
|
|
13102
|
-
type StateRoot = StateRootHash;
|
|
13103
|
-
|
|
13104
|
-
/** Error ::= UTF8String */
|
|
13105
|
-
declare class ErrorMessage extends WithDebug {
|
|
13106
|
-
static Codec = codec.Class(ErrorMessage, {
|
|
13107
|
-
message: codec.string,
|
|
13108
|
-
});
|
|
13109
|
-
|
|
13110
|
-
static create({ message }: CodecRecord<ErrorMessage>): ErrorMessage {
|
|
13111
|
-
return new ErrorMessage(message);
|
|
13112
|
-
}
|
|
13113
|
-
|
|
13114
|
-
private constructor(public readonly message: string) {
|
|
13115
|
-
super();
|
|
13116
|
-
}
|
|
13117
|
-
}
|
|
13118
|
-
|
|
13119
|
-
/** Message choice type tags */
|
|
13120
|
-
declare enum MessageType {
|
|
13121
|
-
PeerInfo = 0,
|
|
13122
|
-
Initialize = 1,
|
|
13123
|
-
StateRoot = 2,
|
|
13124
|
-
ImportBlock = 3,
|
|
13125
|
-
GetState = 4,
|
|
13126
|
-
State = 5,
|
|
13127
|
-
Error = 255,
|
|
13128
|
-
}
|
|
13129
|
-
|
|
13130
|
-
/** Message data union */
|
|
13131
|
-
type MessageData =
|
|
13132
|
-
| { type: MessageType.PeerInfo; value: PeerInfo }
|
|
13133
|
-
| { type: MessageType.Initialize; value: Initialize }
|
|
13134
|
-
| { type: MessageType.StateRoot; value: StateRoot }
|
|
13135
|
-
| { type: MessageType.ImportBlock; value: BlockView }
|
|
13136
|
-
| { type: MessageType.GetState; value: GetState }
|
|
13137
|
-
| { type: MessageType.State; value: KeyValue[] }
|
|
13138
|
-
| { type: MessageType.Error; value: ErrorMessage };
|
|
13139
|
-
|
|
13140
|
-
/**
|
|
13141
|
-
* Message ::= CHOICE {
|
|
13142
|
-
* peer-info [0] PeerInfo,
|
|
13143
|
-
* initialize [1] Initialize,
|
|
13144
|
-
* state-root [2] StateRoot,
|
|
13145
|
-
* import-block [3] ImportBlock,
|
|
13146
|
-
* get-state [4] GetState,
|
|
13147
|
-
* state [5] State,
|
|
13148
|
-
* error [255] Error
|
|
13149
|
-
* }
|
|
13150
|
-
*/
|
|
13151
|
-
declare const messageCodec = codec.custom<MessageData>(
|
|
13152
|
-
{
|
|
13153
|
-
name: "Message",
|
|
13154
|
-
sizeHint: { bytes: 1, isExact: false },
|
|
13155
|
-
},
|
|
13156
|
-
(e, msg) => {
|
|
13157
|
-
e.i8(msg.type);
|
|
13158
|
-
switch (msg.type) {
|
|
13159
|
-
case MessageType.PeerInfo:
|
|
13160
|
-
PeerInfo.Codec.encode(e, msg.value);
|
|
13161
|
-
break;
|
|
13162
|
-
case MessageType.Initialize:
|
|
13163
|
-
Initialize.Codec.encode(e, msg.value);
|
|
13164
|
-
break;
|
|
13165
|
-
case MessageType.StateRoot:
|
|
13166
|
-
stateRootCodec.encode(e, msg.value);
|
|
13167
|
-
break;
|
|
13168
|
-
case MessageType.ImportBlock:
|
|
13169
|
-
Block.Codec.View.encode(e, msg.value);
|
|
13170
|
-
break;
|
|
13171
|
-
case MessageType.GetState:
|
|
13172
|
-
getStateCodec.encode(e, msg.value);
|
|
13173
|
-
break;
|
|
13174
|
-
case MessageType.State:
|
|
13175
|
-
stateCodec.encode(e, msg.value);
|
|
13176
|
-
break;
|
|
13177
|
-
case MessageType.Error:
|
|
13178
|
-
ErrorMessage.Codec.encode(e, msg.value);
|
|
13179
|
-
break;
|
|
13180
|
-
default:
|
|
13181
|
-
throw new Error(`Unknown message type: ${msg}`);
|
|
13182
|
-
}
|
|
13183
|
-
},
|
|
13184
|
-
(d): MessageData => {
|
|
13185
|
-
const type = d.u8();
|
|
13186
|
-
switch (type) {
|
|
13187
|
-
case MessageType.PeerInfo:
|
|
13188
|
-
return { type: MessageType.PeerInfo, value: PeerInfo.Codec.decode(d) };
|
|
13189
|
-
case MessageType.Initialize:
|
|
13190
|
-
return { type: MessageType.Initialize, value: Initialize.Codec.decode(d) };
|
|
13191
|
-
case MessageType.StateRoot:
|
|
13192
|
-
return { type: MessageType.StateRoot, value: stateRootCodec.decode(d) };
|
|
13193
|
-
case MessageType.ImportBlock:
|
|
13194
|
-
return { type: MessageType.ImportBlock, value: Block.Codec.View.decode(d) };
|
|
13195
|
-
case MessageType.GetState:
|
|
13196
|
-
return { type: MessageType.GetState, value: getStateCodec.decode(d) };
|
|
13197
|
-
case MessageType.State:
|
|
13198
|
-
return { type: MessageType.State, value: stateCodec.decode(d) };
|
|
13199
|
-
case MessageType.Error:
|
|
13200
|
-
return { type: MessageType.Error, value: ErrorMessage.Codec.decode(d) };
|
|
13201
|
-
default:
|
|
13202
|
-
throw new Error(`Unknown message type: ${type}`);
|
|
13203
|
-
}
|
|
13204
|
-
},
|
|
13205
|
-
(s) => {
|
|
13206
|
-
const type = s.decoder.u8();
|
|
13207
|
-
switch (type) {
|
|
13208
|
-
case MessageType.PeerInfo:
|
|
13209
|
-
PeerInfo.Codec.View.skip(s);
|
|
13210
|
-
break;
|
|
13211
|
-
case MessageType.Initialize:
|
|
13212
|
-
Initialize.Codec.View.skip(s);
|
|
13213
|
-
break;
|
|
13214
|
-
case MessageType.StateRoot:
|
|
13215
|
-
stateRootCodec.View.skip(s);
|
|
13216
|
-
break;
|
|
13217
|
-
case MessageType.ImportBlock:
|
|
13218
|
-
Block.Codec.View.skip(s);
|
|
13219
|
-
break;
|
|
13220
|
-
case MessageType.GetState:
|
|
13221
|
-
getStateCodec.View.skip(s);
|
|
13222
|
-
break;
|
|
13223
|
-
case MessageType.State:
|
|
13224
|
-
stateCodec.View.skip(s);
|
|
13225
|
-
break;
|
|
13226
|
-
case MessageType.Error:
|
|
13227
|
-
ErrorMessage.Codec.View.skip(s);
|
|
13228
|
-
break;
|
|
13229
|
-
default:
|
|
13230
|
-
throw new Error(`Unknown message type: ${type}`);
|
|
13231
|
-
}
|
|
13232
|
-
},
|
|
13233
|
-
);
|
|
13234
|
-
|
|
13235
|
-
type Message = MessageData;
|
|
13236
|
-
|
|
13237
|
-
declare const logger$1 = Logger.new(import.meta.filename, "ext-ipc-fuzz-v1");
|
|
13238
|
-
|
|
13239
|
-
/**
|
|
13240
|
-
* Handler interface for v1 fuzzer protocol messages.
|
|
13241
|
-
* https://github.com/davxy/jam-conformance/blob/main/fuzz-proto/fuzz-v1.asn
|
|
13242
|
-
*/
|
|
13243
|
-
interface FuzzMessageHandler {
|
|
13244
|
-
/**
|
|
13245
|
-
* Handshake and versioning exchange.
|
|
13246
|
-
* Target waits to receive the fuzzer's PeerInfo message before sending its own.
|
|
13247
|
-
*/
|
|
13248
|
-
getPeerInfo(value: PeerInfo): Promise<PeerInfo>;
|
|
13249
|
-
|
|
13250
|
-
/**
|
|
13251
|
-
* Initialize or reset target state.
|
|
13252
|
-
* Returns the state root of the initialized state.
|
|
13253
|
-
*/
|
|
13254
|
-
initialize(header: Initialize): Promise<StateRootHash>;
|
|
13255
|
-
|
|
13256
|
-
/**
|
|
13257
|
-
* Process block and return resulting state root.
|
|
13258
|
-
* May return an Error if the block import fails.
|
|
13259
|
-
*/
|
|
13260
|
-
importBlock(value: BlockView): Promise<Result$2<StateRootHash, ErrorMessage>>;
|
|
13261
|
-
|
|
13262
|
-
/** Retrieve posterior state associated to given header hash. */
|
|
13263
|
-
getSerializedState(value: HeaderHash): Promise<KeyValue[]>;
|
|
13264
|
-
}
|
|
13265
|
-
|
|
13266
|
-
declare class FuzzTarget implements IpcHandler {
|
|
13267
|
-
private sessionFeatures = 0;
|
|
13268
|
-
|
|
13269
|
-
constructor(
|
|
13270
|
-
public readonly msgHandler: FuzzMessageHandler,
|
|
13271
|
-
public readonly sender: IpcSender,
|
|
13272
|
-
public readonly spec: ChainSpec,
|
|
13273
|
-
) {}
|
|
13274
|
-
|
|
13275
|
-
async onSocketMessage(msg: Uint8Array): Promise<void> {
|
|
13276
|
-
// attempt to decode the messsage
|
|
13277
|
-
try {
|
|
13278
|
-
const message = Decoder.decodeObject(messageCodec, msg, this.spec);
|
|
13279
|
-
logger.log`[${message.type}] incoming message`;
|
|
13280
|
-
|
|
13281
|
-
await this.processAndRespond(message);
|
|
13282
|
-
} catch (e) {
|
|
13283
|
-
logger.error`Error while processing fuzz v1 message: ${e}`;
|
|
13284
|
-
logger.error`${e}`;
|
|
13285
|
-
if (e instanceof Error) {
|
|
13286
|
-
logger.error`${e.stack ?? ""}`;
|
|
13287
|
-
}
|
|
13288
|
-
this.sender.close();
|
|
13289
|
-
}
|
|
13290
|
-
}
|
|
13291
|
-
|
|
13292
|
-
private async processAndRespond(message: MessageData): Promise<void> {
|
|
13293
|
-
let response: Message | null = null;
|
|
13294
|
-
|
|
13295
|
-
switch (message.type) {
|
|
13296
|
-
case MessageType.PeerInfo: {
|
|
13297
|
-
// only support V1
|
|
13298
|
-
if (message.value.fuzzVersion !== 1) {
|
|
13299
|
-
logger.warn`Unsupported fuzzer protocol version: ${message.value.fuzzVersion}. Closing`;
|
|
13300
|
-
this.sender.close();
|
|
13301
|
-
return;
|
|
13302
|
-
}
|
|
13303
|
-
|
|
13304
|
-
// Handle handshake
|
|
13305
|
-
const ourPeerInfo = await this.msgHandler.getPeerInfo(message.value);
|
|
13306
|
-
|
|
13307
|
-
// Calculate session features (intersection of both peer features)
|
|
13308
|
-
this.sessionFeatures = message.value.features & ourPeerInfo.features;
|
|
13309
|
-
|
|
13310
|
-
logger.info`Handshake completed. Shared features: 0b${this.sessionFeatures.toString(2)}`;
|
|
13311
|
-
logger.log`Feature ancestry: ${(this.sessionFeatures & Features.Ancestry) !== 0}`;
|
|
13312
|
-
logger.log`Feature fork: ${(this.sessionFeatures & Features.Fork) !== 0}`;
|
|
13313
|
-
|
|
13314
|
-
response = {
|
|
13315
|
-
type: MessageType.PeerInfo,
|
|
13316
|
-
value: ourPeerInfo,
|
|
13317
|
-
};
|
|
13318
|
-
break;
|
|
13319
|
-
}
|
|
13320
|
-
|
|
13321
|
-
case MessageType.Initialize: {
|
|
13322
|
-
const stateRoot = await this.msgHandler.initialize(message.value);
|
|
13323
|
-
response = {
|
|
13324
|
-
type: MessageType.StateRoot,
|
|
13325
|
-
value: stateRoot,
|
|
13326
|
-
};
|
|
13327
|
-
break;
|
|
13328
|
-
}
|
|
13329
|
-
|
|
13330
|
-
case MessageType.ImportBlock: {
|
|
13331
|
-
const result = await this.msgHandler.importBlock(message.value);
|
|
13332
|
-
|
|
13333
|
-
if (result.isOk) {
|
|
13334
|
-
response = {
|
|
13335
|
-
type: MessageType.StateRoot,
|
|
13336
|
-
value: result.ok,
|
|
13337
|
-
};
|
|
13338
|
-
} else {
|
|
13339
|
-
response = {
|
|
13340
|
-
type: MessageType.Error,
|
|
13341
|
-
value: result.error,
|
|
13342
|
-
};
|
|
13343
|
-
}
|
|
13344
|
-
break;
|
|
13345
|
-
}
|
|
13346
|
-
|
|
13347
|
-
case MessageType.GetState: {
|
|
13348
|
-
const state = await this.msgHandler.getSerializedState(message.value);
|
|
13349
|
-
response = {
|
|
13350
|
-
type: MessageType.State,
|
|
13351
|
-
value: state,
|
|
13352
|
-
};
|
|
13353
|
-
break;
|
|
13354
|
-
}
|
|
13355
|
-
|
|
13356
|
-
case MessageType.StateRoot: {
|
|
13357
|
-
logger.log`--> Received unexpected 'StateRoot' message from the fuzzer. Closing.`;
|
|
13358
|
-
this.sender.close();
|
|
13359
|
-
return;
|
|
13360
|
-
}
|
|
13361
|
-
|
|
13362
|
-
case MessageType.State: {
|
|
13363
|
-
logger.log`--> Received unexpected 'State' message from the fuzzer. Closing.`;
|
|
13364
|
-
this.sender.close();
|
|
13365
|
-
return;
|
|
13366
|
-
}
|
|
13367
|
-
|
|
13368
|
-
case MessageType.Error: {
|
|
13369
|
-
logger.log`--> Received unexpected 'Error' message from the fuzzer. Closing.`;
|
|
13370
|
-
this.sender.close();
|
|
13371
|
-
return;
|
|
13372
|
-
}
|
|
13373
|
-
|
|
13374
|
-
default: {
|
|
13375
|
-
logger.log`--> Received unexpected message type ${JSON.stringify(message)} from the fuzzer. Closing.`;
|
|
13376
|
-
this.sender.close();
|
|
13377
|
-
try {
|
|
13378
|
-
assertNever(message);
|
|
13379
|
-
} catch {
|
|
13380
|
-
return;
|
|
13381
|
-
}
|
|
13382
|
-
}
|
|
13383
|
-
}
|
|
13384
|
-
|
|
13385
|
-
if (response !== null) {
|
|
13386
|
-
logger.trace`<-- responding with: ${response.type}`;
|
|
13387
|
-
const encoded = Encoder.encodeObject(messageCodec, response, this.spec);
|
|
13388
|
-
this.sender.send(encoded);
|
|
13389
|
-
} else {
|
|
13390
|
-
logger.warn`<-- no response generated for: ${message.type}`;
|
|
13391
|
-
}
|
|
13392
|
-
}
|
|
13393
|
-
|
|
13394
|
-
onClose({ error }: { error?: Error }): void {
|
|
13395
|
-
logger.log`Closing the v1 handler. Reason: ${error !== undefined ? error.message : "close"}.`;
|
|
13396
|
-
}
|
|
13397
|
-
|
|
13398
|
-
/** Check if a specific feature is enabled in the session */
|
|
13399
|
-
hasFeature(feature: number): boolean {
|
|
13400
|
-
return (this.sessionFeatures & feature) !== 0;
|
|
13401
|
-
}
|
|
13402
|
-
}
|
|
13403
|
-
|
|
13404
|
-
type index$a_Ancestry = Ancestry;
|
|
13405
|
-
type index$a_AncestryItem = AncestryItem;
|
|
13406
|
-
declare const index$a_AncestryItem: typeof AncestryItem;
|
|
13407
|
-
type index$a_ErrorMessage = ErrorMessage;
|
|
13408
|
-
declare const index$a_ErrorMessage: typeof ErrorMessage;
|
|
13409
|
-
type index$a_Features = Features;
|
|
13410
|
-
declare const index$a_Features: typeof Features;
|
|
13411
|
-
type index$a_FuzzMessageHandler = FuzzMessageHandler;
|
|
13412
|
-
type index$a_FuzzTarget = FuzzTarget;
|
|
13413
|
-
declare const index$a_FuzzTarget: typeof FuzzTarget;
|
|
13414
|
-
type index$a_GetState = GetState;
|
|
13415
|
-
type index$a_Initialize = Initialize;
|
|
13416
|
-
declare const index$a_Initialize: typeof Initialize;
|
|
13417
|
-
type index$a_KeyValue = KeyValue;
|
|
13418
|
-
declare const index$a_KeyValue: typeof KeyValue;
|
|
13419
|
-
type index$a_Message = Message;
|
|
13420
|
-
type index$a_MessageData = MessageData;
|
|
13421
|
-
type index$a_MessageType = MessageType;
|
|
13422
|
-
declare const index$a_MessageType: typeof MessageType;
|
|
13423
|
-
type index$a_PeerInfo = PeerInfo;
|
|
13424
|
-
declare const index$a_PeerInfo: typeof PeerInfo;
|
|
13425
|
-
type index$a_StateRoot = StateRoot;
|
|
13426
|
-
type index$a_Version = Version;
|
|
13427
|
-
declare const index$a_Version: typeof Version;
|
|
13428
|
-
declare const index$a_ancestryCodec: typeof ancestryCodec;
|
|
13429
|
-
declare const index$a_getStateCodec: typeof getStateCodec;
|
|
13430
|
-
declare const index$a_messageCodec: typeof messageCodec;
|
|
13431
|
-
declare const index$a_stateCodec: typeof stateCodec;
|
|
13432
|
-
declare const index$a_stateRootCodec: typeof stateRootCodec;
|
|
13433
|
-
declare namespace index$a {
|
|
13434
|
-
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 };
|
|
13435
|
-
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 };
|
|
13436
|
-
}
|
|
13437
|
-
|
|
13438
|
-
type index$9_IpcHandler = IpcHandler;
|
|
13439
|
-
type index$9_IpcSender = IpcSender;
|
|
12897
|
+
declare const index$9_HALF_POINT_SIZE: typeof HALF_POINT_SIZE;
|
|
12898
|
+
declare const index$9_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
|
|
12899
|
+
type index$9_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
|
|
12900
|
+
type index$9_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
|
|
12901
|
+
type index$9_PIECE_SIZE = PIECE_SIZE;
|
|
12902
|
+
declare const index$9_POINT_ALIGNMENT: typeof POINT_ALIGNMENT;
|
|
12903
|
+
type index$9_POINT_LENGTH = POINT_LENGTH;
|
|
12904
|
+
declare const index$9_checkConsistency: typeof checkConsistency;
|
|
12905
|
+
declare const index$9_chunkingFunction: typeof chunkingFunction;
|
|
12906
|
+
declare const index$9_chunksToShards: typeof chunksToShards;
|
|
12907
|
+
declare const index$9_decodeData: typeof decodeData;
|
|
12908
|
+
declare const index$9_decodeDataAndTrim: typeof decodeDataAndTrim;
|
|
12909
|
+
declare const index$9_decodePiece: typeof decodePiece;
|
|
12910
|
+
declare const index$9_encodePoints: typeof encodePoints;
|
|
12911
|
+
declare const index$9_initEc: typeof initEc;
|
|
12912
|
+
declare const index$9_join: typeof join;
|
|
12913
|
+
declare const index$9_lace: typeof lace;
|
|
12914
|
+
declare const index$9_padAndEncodeData: typeof padAndEncodeData;
|
|
12915
|
+
declare const index$9_shardsToChunks: typeof shardsToChunks;
|
|
12916
|
+
declare const index$9_split: typeof split;
|
|
12917
|
+
declare const index$9_transpose: typeof transpose;
|
|
12918
|
+
declare const index$9_unzip: typeof unzip;
|
|
13440
12919
|
declare namespace index$9 {
|
|
13441
|
-
export { index$
|
|
13442
|
-
export type { index$
|
|
12920
|
+
export { index$9_HALF_POINT_SIZE as HALF_POINT_SIZE, index$9_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$9_POINT_ALIGNMENT as POINT_ALIGNMENT, index$9_checkConsistency as checkConsistency, index$9_chunkingFunction as chunkingFunction, index$9_chunksToShards as chunksToShards, index$9_decodeData as decodeData, index$9_decodeDataAndTrim as decodeDataAndTrim, index$9_decodePiece as decodePiece, index$9_encodePoints as encodePoints, index$9_initEc as initEc, index$9_join as join, index$9_lace as lace, index$9_padAndEncodeData as padAndEncodeData, index$9_shardsToChunks as shardsToChunks, index$9_split as split, index$9_transpose as transpose, index$9_unzip as unzip };
|
|
12921
|
+
export type { index$9_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$9_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$9_PIECE_SIZE as PIECE_SIZE, index$9_POINT_LENGTH as POINT_LENGTH };
|
|
13443
12922
|
}
|
|
13444
12923
|
|
|
13445
12924
|
/** Size of the transfer memo. */
|
|
@@ -15321,11 +14800,12 @@ declare class MemoryBuilder {
|
|
|
15321
14800
|
`;
|
|
15322
14801
|
this.ensureNotFinalized();
|
|
15323
14802
|
|
|
15324
|
-
const
|
|
15325
|
-
const
|
|
14803
|
+
const heapRange = MemoryRange.fromStartAndLength(startHeapIndex, endHeapIndex - startHeapIndex);
|
|
14804
|
+
const heapPagesRange = PageRange.fromMemoryRange(heapRange);
|
|
14805
|
+
const initializedPageNumbers = Array.from(this.initialMemory.keys());
|
|
15326
14806
|
|
|
15327
|
-
for (const pageNumber of
|
|
15328
|
-
if (
|
|
14807
|
+
for (const pageNumber of initializedPageNumbers) {
|
|
14808
|
+
if (heapPagesRange.isInRange(pageNumber)) {
|
|
15329
14809
|
throw new IncorrectSbrkIndex();
|
|
15330
14810
|
}
|
|
15331
14811
|
}
|
|
@@ -18797,7 +18277,7 @@ declare const index$3_tryAsMachineId: typeof tryAsMachineId;
|
|
|
18797
18277
|
declare const index$3_tryAsProgramCounter: typeof tryAsProgramCounter;
|
|
18798
18278
|
declare const index$3_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
|
|
18799
18279
|
declare namespace index$3 {
|
|
18800
|
-
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$
|
|
18280
|
+
export { index$3_AccumulationStateUpdate as AccumulationStateUpdate, index$3_ArgsDecoder as ArgsDecoder, index$3_ArgumentType as ArgumentType, index$3_BasicBlocks as BasicBlocks, index$3_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$3_EjectError as EjectError, index$3_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$3_ForgetPreimageError as ForgetPreimageError, index$3_HostCallMemory as HostCallMemory, index$3_HostCallRegisters as HostCallRegisters, index$3_HostCallResult as HostCallResult, index$3_ImmediateDecoder as ImmediateDecoder, index$3_MAX_U32 as MAX_U32, index$3_MAX_U32_BIG_INT as MAX_U32_BIG_INT, index$3_MachineInstance as MachineInstance, index$3_Mask as Mask, index$3_MemoryOperation as MemoryOperation, index$3_MemorySegment as MemorySegment, NO_OF_REGISTERS$1 as NO_OF_REGISTERS, index$3_NewServiceError as NewServiceError, index$3_NibblesDecoder as NibblesDecoder, index$3_PagesError as PagesError, index$3_PartiallyUpdatedState as PartiallyUpdatedState, index$3_PeekPokeError as PeekPokeError, index$3_PendingTransfer as PendingTransfer, index$3_PreimageStatusKind as PreimageStatusKind, index$3_Program as Program, index$3_ProgramDecoder as ProgramDecoder, index$3_ProvidePreimageError as ProvidePreimageError, DebuggerAdapter as Pvm, index$3_Registers as Registers, index$3_RequestPreimageError as RequestPreimageError, Result$2 as Result, index$3_RichTaggedError as RichTaggedError, index$3_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$3_SpiMemory as SpiMemory, index$3_SpiProgram as SpiProgram, index$3_TransferError as TransferError, index$3_UpdatePrivilegesError as UpdatePrivilegesError, index$3_WithDebug as WithDebug, index$3_ZeroVoidError as ZeroVoidError, index$3___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$3_asOpaqueType as asOpaqueType, index$3_assertEmpty as assertEmpty, index$3_assertNever as assertNever, index$j as block, index$q as bytes, index$3_check as check, index$3_clampU64ToU32 as clampU64ToU32, index$3_createResults as createResults, index$3_decodeStandardProgram as decodeStandardProgram, index$3_extractCodeAndMetadata as extractCodeAndMetadata, index$3_getServiceId as getServiceId, index$3_getServiceIdOrCurrent as getServiceIdOrCurrent, index$n as hash, index$3_inspect as inspect, index$3_instructionArgumentTypeMap as instructionArgumentTypeMap, index$8 as interpreter, index$3_isBrowser as isBrowser, index$3_isTaggedError as isTaggedError, index$3_maybeTaggedErrorToString as maybeTaggedErrorToString, index$3_measure as measure, index$p as numbers, index$3_preimageLenAsU32 as preimageLenAsU32, index$3_resultToString as resultToString, index$3_seeThrough as seeThrough, index$3_slotsToPreimageStatus as slotsToPreimageStatus, index$3_toMemoryOperation as toMemoryOperation, index$3_tryAsMachineId as tryAsMachineId, index$3_tryAsProgramCounter as tryAsProgramCounter, index$3_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
|
|
18801
18281
|
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 };
|
|
18802
18282
|
}
|
|
18803
18283
|
|
|
@@ -19790,4 +19270,4 @@ declare namespace index {
|
|
|
19790
19270
|
export type { index_PreimagesInput as PreimagesInput, index_PreimagesState as PreimagesState, index_PreimagesStateUpdate as PreimagesStateUpdate };
|
|
19791
19271
|
}
|
|
19792
19272
|
|
|
19793
|
-
export { index$
|
|
19273
|
+
export { index$j as block, index$h as block_json, index$q as bytes, index$o as codec, index$m as collections, index$k as config, index$f as config_node, index$l as crypto, index$a as database, index$9 as erasure_coding, index$n as hash, index$6 as jam_host_calls, index$i as json_parser, index$g as logger, index$d as mmr, index$p as numbers, index$r as ordering, index$3 as pvm, index$7 as pvm_host_calls, index$8 as pvm_interpreter, index$4 as pvm_program, index$5 as pvm_spi_decoder, index$2 as shuffling, index$c as state, index$1 as state_json, index$b as state_merkleization, index as transition, index$e as trie, index$s as utils };
|