@typeberry/lib 0.2.0-79dc2d4 → 0.2.0-98b01af
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 +545 -419
- package/index.d.ts +1193 -1055
- package/index.js +517 -392
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -296,8 +296,7 @@ type Uninstantiable = void & { __brand: "uninstantiable" };
|
|
|
296
296
|
|
|
297
297
|
type StringLiteral<Type> = Type extends string ? (string extends Type ? never : Type) : never;
|
|
298
298
|
|
|
299
|
-
|
|
300
|
-
declare const __OPAQUE_TYPE__ = "__INTERNAL_OPAQUE_ID__";
|
|
299
|
+
declare const __OPAQUE_TYPE__: unique symbol;
|
|
301
300
|
|
|
302
301
|
type WithOpaque<Token extends string> = {
|
|
303
302
|
readonly [__OPAQUE_TYPE__]: Token;
|
|
@@ -732,61 +731,61 @@ declare function isResult(x: unknown): x is Result$2<unknown, unknown> {
|
|
|
732
731
|
* as an afterthought.
|
|
733
732
|
*/
|
|
734
733
|
|
|
735
|
-
declare const index$
|
|
736
|
-
declare const index$
|
|
737
|
-
declare const index$
|
|
738
|
-
type index$
|
|
739
|
-
declare const index$
|
|
740
|
-
declare const index$
|
|
741
|
-
declare const index$
|
|
742
|
-
type index$
|
|
743
|
-
type index$
|
|
744
|
-
type index$
|
|
745
|
-
type index$
|
|
746
|
-
declare const index$
|
|
747
|
-
type index$
|
|
748
|
-
declare const index$
|
|
749
|
-
type index$
|
|
750
|
-
type index$
|
|
751
|
-
type index$
|
|
752
|
-
type index$
|
|
753
|
-
declare const index$
|
|
754
|
-
type index$
|
|
755
|
-
declare const index$
|
|
756
|
-
type index$
|
|
757
|
-
type index$
|
|
758
|
-
declare const index$
|
|
759
|
-
type index$
|
|
760
|
-
type index$
|
|
761
|
-
type index$
|
|
762
|
-
declare const index$
|
|
763
|
-
type index$
|
|
764
|
-
declare const index$
|
|
765
|
-
declare const index$
|
|
766
|
-
declare const index$
|
|
767
|
-
declare const index$
|
|
768
|
-
declare const index$
|
|
769
|
-
declare const index$
|
|
770
|
-
declare const index$
|
|
771
|
-
declare const index$
|
|
772
|
-
declare const index$
|
|
773
|
-
declare const index$
|
|
774
|
-
declare const index$
|
|
775
|
-
declare const index$
|
|
776
|
-
declare const index$
|
|
777
|
-
declare const index$
|
|
778
|
-
declare const index$
|
|
779
|
-
declare const index$
|
|
780
|
-
declare const index$
|
|
781
|
-
declare const index$
|
|
782
|
-
declare const index$
|
|
783
|
-
declare const index$
|
|
784
|
-
declare const index$
|
|
785
|
-
declare const index$
|
|
786
|
-
declare const index$
|
|
787
|
-
declare namespace index$
|
|
788
|
-
export { index$
|
|
789
|
-
export type { index$
|
|
734
|
+
declare const index$v_ALL_VERSIONS_IN_ORDER: typeof ALL_VERSIONS_IN_ORDER;
|
|
735
|
+
declare const index$v_CURRENT_SUITE: typeof CURRENT_SUITE;
|
|
736
|
+
declare const index$v_CURRENT_VERSION: typeof CURRENT_VERSION;
|
|
737
|
+
type index$v_Compatibility = Compatibility;
|
|
738
|
+
declare const index$v_Compatibility: typeof Compatibility;
|
|
739
|
+
declare const index$v_DEFAULT_SUITE: typeof DEFAULT_SUITE;
|
|
740
|
+
declare const index$v_DEFAULT_VERSION: typeof DEFAULT_VERSION;
|
|
741
|
+
type index$v_DeepEqualOptions = DeepEqualOptions;
|
|
742
|
+
type index$v_EnumMapping = EnumMapping;
|
|
743
|
+
type index$v_ErrorResult<Error> = ErrorResult<Error>;
|
|
744
|
+
type index$v_ErrorsCollector = ErrorsCollector;
|
|
745
|
+
declare const index$v_ErrorsCollector: typeof ErrorsCollector;
|
|
746
|
+
type index$v_GpVersion = GpVersion;
|
|
747
|
+
declare const index$v_GpVersion: typeof GpVersion;
|
|
748
|
+
type index$v_OK = OK;
|
|
749
|
+
type index$v_OkResult<Ok> = OkResult<Ok>;
|
|
750
|
+
type index$v_Opaque<Type, Token extends string> = Opaque<Type, Token>;
|
|
751
|
+
type index$v_RichTaggedError<Kind extends string | number, Nested> = RichTaggedError<Kind, Nested>;
|
|
752
|
+
declare const index$v_RichTaggedError: typeof RichTaggedError;
|
|
753
|
+
type index$v_StringLiteral<Type> = StringLiteral<Type>;
|
|
754
|
+
declare const index$v_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
|
|
755
|
+
type index$v_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
|
|
756
|
+
type index$v_TestSuite = TestSuite;
|
|
757
|
+
declare const index$v_TestSuite: typeof TestSuite;
|
|
758
|
+
type index$v_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
|
|
759
|
+
type index$v_Uninstantiable = Uninstantiable;
|
|
760
|
+
type index$v_WithDebug = WithDebug;
|
|
761
|
+
declare const index$v_WithDebug: typeof WithDebug;
|
|
762
|
+
type index$v_WithOpaque<Token extends string> = WithOpaque<Token>;
|
|
763
|
+
declare const index$v___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
|
|
764
|
+
declare const index$v_asOpaqueType: typeof asOpaqueType;
|
|
765
|
+
declare const index$v_assertEmpty: typeof assertEmpty;
|
|
766
|
+
declare const index$v_assertNever: typeof assertNever;
|
|
767
|
+
declare const index$v_callCompareFunction: typeof callCompareFunction;
|
|
768
|
+
declare const index$v_check: typeof check;
|
|
769
|
+
declare const index$v_deepEqual: typeof deepEqual;
|
|
770
|
+
declare const index$v_getAllKeysSorted: typeof getAllKeysSorted;
|
|
771
|
+
declare const index$v_inspect: typeof inspect;
|
|
772
|
+
declare const index$v_isBrowser: typeof isBrowser;
|
|
773
|
+
declare const index$v_isResult: typeof isResult;
|
|
774
|
+
declare const index$v_isTaggedError: typeof isTaggedError;
|
|
775
|
+
declare const index$v_lazyInspect: typeof lazyInspect;
|
|
776
|
+
declare const index$v_maybeTaggedErrorToString: typeof maybeTaggedErrorToString;
|
|
777
|
+
declare const index$v_measure: typeof measure;
|
|
778
|
+
declare const index$v_oomWarningPrinted: typeof oomWarningPrinted;
|
|
779
|
+
declare const index$v_parseCurrentSuite: typeof parseCurrentSuite;
|
|
780
|
+
declare const index$v_parseCurrentVersion: typeof parseCurrentVersion;
|
|
781
|
+
declare const index$v_resultToString: typeof resultToString;
|
|
782
|
+
declare const index$v_safeAllocUint8Array: typeof safeAllocUint8Array;
|
|
783
|
+
declare const index$v_seeThrough: typeof seeThrough;
|
|
784
|
+
declare const index$v_trimStack: typeof trimStack;
|
|
785
|
+
declare const index$v_workspacePathFix: typeof workspacePathFix;
|
|
786
|
+
declare namespace index$v {
|
|
787
|
+
export { index$v_ALL_VERSIONS_IN_ORDER as ALL_VERSIONS_IN_ORDER, index$v_CURRENT_SUITE as CURRENT_SUITE, index$v_CURRENT_VERSION as CURRENT_VERSION, index$v_Compatibility as Compatibility, index$v_DEFAULT_SUITE as DEFAULT_SUITE, index$v_DEFAULT_VERSION as DEFAULT_VERSION, index$v_ErrorsCollector as ErrorsCollector, index$v_GpVersion as GpVersion, MAX_LENGTH$1 as MAX_LENGTH, Result$2 as Result, index$v_RichTaggedError as RichTaggedError, index$v_TEST_COMPARE_USING as TEST_COMPARE_USING, index$v_TestSuite as TestSuite, index$v_WithDebug as WithDebug, index$v___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$v_asOpaqueType as asOpaqueType, index$v_assertEmpty as assertEmpty, index$v_assertNever as assertNever, index$v_callCompareFunction as callCompareFunction, index$v_check as check, index$v_deepEqual as deepEqual, index$v_getAllKeysSorted as getAllKeysSorted, index$v_inspect as inspect, index$v_isBrowser as isBrowser, index$v_isResult as isResult, index$v_isTaggedError as isTaggedError, index$v_lazyInspect as lazyInspect, index$v_maybeTaggedErrorToString as maybeTaggedErrorToString, index$v_measure as measure, index$v_oomWarningPrinted as oomWarningPrinted, index$v_parseCurrentSuite as parseCurrentSuite, index$v_parseCurrentVersion as parseCurrentVersion, index$v_resultToString as resultToString, index$v_safeAllocUint8Array as safeAllocUint8Array, index$v_seeThrough as seeThrough, index$v_trimStack as trimStack, index$v_workspacePathFix as workspacePathFix };
|
|
788
|
+
export type { index$v_DeepEqualOptions as DeepEqualOptions, index$v_EnumMapping as EnumMapping, index$v_ErrorResult as ErrorResult, index$v_OK as OK, index$v_OkResult as OkResult, index$v_Opaque as Opaque, index$v_StringLiteral as StringLiteral, index$v_TaggedError as TaggedError, index$v_TokenOf as TokenOf, index$v_Uninstantiable as Uninstantiable, index$v_WithOpaque as WithOpaque };
|
|
790
789
|
}
|
|
791
790
|
|
|
792
791
|
/** A return value of some comparator. */
|
|
@@ -839,14 +838,14 @@ declare class Ordering {
|
|
|
839
838
|
*/
|
|
840
839
|
type Comparator<V> = (self: V, other: V) => Ordering;
|
|
841
840
|
|
|
842
|
-
type index$
|
|
843
|
-
type index$
|
|
844
|
-
declare const index$
|
|
845
|
-
type index$
|
|
846
|
-
declare const index$
|
|
847
|
-
declare namespace index$
|
|
848
|
-
export { index$
|
|
849
|
-
export type { index$
|
|
841
|
+
type index$u_Comparator<V> = Comparator<V>;
|
|
842
|
+
type index$u_Ordering = Ordering;
|
|
843
|
+
declare const index$u_Ordering: typeof Ordering;
|
|
844
|
+
type index$u_OrderingValue = OrderingValue;
|
|
845
|
+
declare const index$u_OrderingValue: typeof OrderingValue;
|
|
846
|
+
declare namespace index$u {
|
|
847
|
+
export { index$u_Ordering as Ordering, index$u_OrderingValue as OrderingValue };
|
|
848
|
+
export type { index$u_Comparator as Comparator };
|
|
850
849
|
}
|
|
851
850
|
|
|
852
851
|
// TODO: [MaSo] Update BytesBlob and Bytes, so they return Result (not throw error)
|
|
@@ -878,12 +877,13 @@ declare class BytesBlob {
|
|
|
878
877
|
|
|
879
878
|
/** Display a hex-encoded version of this byte blob, but truncated if it's large. */
|
|
880
879
|
toStringTruncated() {
|
|
880
|
+
const bytes = `${this.raw.length} ${this.raw.length === 1 ? "byte" : "bytes"}`;
|
|
881
881
|
if (this.raw.length > 32) {
|
|
882
882
|
const start = bytesToHexString(this.raw.subarray(0, 16));
|
|
883
883
|
const end = bytesToHexString(this.raw.subarray(this.raw.length - 16));
|
|
884
|
-
return `${start}...${end.substring(2)} (${
|
|
884
|
+
return `${start}...${end.substring(2)} (${bytes})`;
|
|
885
885
|
}
|
|
886
|
-
return this.toString()
|
|
886
|
+
return `${this.toString()} (${bytes})`;
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
toJSON() {
|
|
@@ -1239,53 +1239,50 @@ declare class BitVec {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
|
-
type index$
|
|
1243
|
-
declare const index$
|
|
1244
|
-
type index$
|
|
1245
|
-
declare const index$
|
|
1246
|
-
type index$
|
|
1247
|
-
declare const index$
|
|
1248
|
-
declare const index$
|
|
1249
|
-
declare const index$
|
|
1250
|
-
declare const index$
|
|
1251
|
-
declare const index$
|
|
1252
|
-
declare const index$
|
|
1253
|
-
declare const index$
|
|
1254
|
-
declare const index$
|
|
1255
|
-
declare const index$
|
|
1256
|
-
declare const index$
|
|
1257
|
-
declare const index$
|
|
1258
|
-
declare const index$
|
|
1259
|
-
declare const index$
|
|
1260
|
-
declare namespace index$
|
|
1242
|
+
type index$t_BitVec = BitVec;
|
|
1243
|
+
declare const index$t_BitVec: typeof BitVec;
|
|
1244
|
+
type index$t_Bytes<T extends number> = Bytes<T>;
|
|
1245
|
+
declare const index$t_Bytes: typeof Bytes;
|
|
1246
|
+
type index$t_BytesBlob = BytesBlob;
|
|
1247
|
+
declare const index$t_BytesBlob: typeof BytesBlob;
|
|
1248
|
+
declare const index$t_CODE_OF_0: typeof CODE_OF_0;
|
|
1249
|
+
declare const index$t_CODE_OF_9: typeof CODE_OF_9;
|
|
1250
|
+
declare const index$t_CODE_OF_A: typeof CODE_OF_A;
|
|
1251
|
+
declare const index$t_CODE_OF_F: typeof CODE_OF_F;
|
|
1252
|
+
declare const index$t_CODE_OF_a: typeof CODE_OF_a;
|
|
1253
|
+
declare const index$t_CODE_OF_f: typeof CODE_OF_f;
|
|
1254
|
+
declare const index$t_VALUE_OF_A: typeof VALUE_OF_A;
|
|
1255
|
+
declare const index$t_byteFromString: typeof byteFromString;
|
|
1256
|
+
declare const index$t_bytesBlobComparator: typeof bytesBlobComparator;
|
|
1257
|
+
declare const index$t_bytesToHexString: typeof bytesToHexString;
|
|
1258
|
+
declare const index$t_numberFromCharCode: typeof numberFromCharCode;
|
|
1259
|
+
declare const index$t_u8ArraySameLengthEqual: typeof u8ArraySameLengthEqual;
|
|
1260
|
+
declare namespace index$t {
|
|
1261
1261
|
export {
|
|
1262
|
-
index$
|
|
1263
|
-
index$
|
|
1264
|
-
index$
|
|
1265
|
-
index$
|
|
1266
|
-
index$
|
|
1267
|
-
index$
|
|
1268
|
-
index$
|
|
1269
|
-
index$
|
|
1270
|
-
index$
|
|
1271
|
-
index$
|
|
1272
|
-
index$
|
|
1273
|
-
index$
|
|
1274
|
-
index$
|
|
1275
|
-
index$
|
|
1276
|
-
index$
|
|
1262
|
+
index$t_BitVec as BitVec,
|
|
1263
|
+
index$t_Bytes as Bytes,
|
|
1264
|
+
index$t_BytesBlob as BytesBlob,
|
|
1265
|
+
index$t_CODE_OF_0 as CODE_OF_0,
|
|
1266
|
+
index$t_CODE_OF_9 as CODE_OF_9,
|
|
1267
|
+
index$t_CODE_OF_A as CODE_OF_A,
|
|
1268
|
+
index$t_CODE_OF_F as CODE_OF_F,
|
|
1269
|
+
index$t_CODE_OF_a as CODE_OF_a,
|
|
1270
|
+
index$t_CODE_OF_f as CODE_OF_f,
|
|
1271
|
+
index$t_VALUE_OF_A as VALUE_OF_A,
|
|
1272
|
+
index$t_byteFromString as byteFromString,
|
|
1273
|
+
index$t_bytesBlobComparator as bytesBlobComparator,
|
|
1274
|
+
index$t_bytesToHexString as bytesToHexString,
|
|
1275
|
+
index$t_numberFromCharCode as numberFromCharCode,
|
|
1276
|
+
index$t_u8ArraySameLengthEqual as u8ArraySameLengthEqual,
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
|
-
|
|
1281
|
-
* TODO [ToDr] This should be `unique symbol`, but for some reason
|
|
1282
|
-
* I can't figure out how to build `@typeberry/blocks` package.
|
|
1283
|
-
*/
|
|
1284
|
-
declare const __REPRESENTATION_BYTES__: "REPRESENTATION_BYTES";
|
|
1280
|
+
declare const __REPRESENTATION_BYTES__: unique symbol;
|
|
1285
1281
|
|
|
1286
1282
|
type WithBytesRepresentation<Bytes extends number> = {
|
|
1287
1283
|
readonly [__REPRESENTATION_BYTES__]: Bytes;
|
|
1288
1284
|
};
|
|
1285
|
+
|
|
1289
1286
|
declare const asTypedNumber = <T, N extends number>(v: T): T & WithBytesRepresentation<N> =>
|
|
1290
1287
|
v as T & WithBytesRepresentation<N>;
|
|
1291
1288
|
|
|
@@ -1421,37 +1418,37 @@ declare const minU64 = (a: U64, ...values: U64[]): U64 => values.reduce((min, va
|
|
|
1421
1418
|
/** Get the biggest value between U64 a and values given as input parameters. */
|
|
1422
1419
|
declare const maxU64 = (a: U64, ...values: U64[]): U64 => values.reduce((max, value) => (value < max ? max : value), a);
|
|
1423
1420
|
|
|
1424
|
-
type index$
|
|
1425
|
-
declare const index$
|
|
1426
|
-
declare const index$
|
|
1427
|
-
declare const index$
|
|
1428
|
-
declare const index$
|
|
1429
|
-
type index$
|
|
1430
|
-
type index$
|
|
1431
|
-
type index$
|
|
1432
|
-
type index$
|
|
1433
|
-
type index$
|
|
1434
|
-
declare const index$
|
|
1435
|
-
declare const index$
|
|
1436
|
-
declare const index$
|
|
1437
|
-
declare const index$
|
|
1438
|
-
declare const index$
|
|
1439
|
-
declare const index$
|
|
1440
|
-
declare const index$
|
|
1441
|
-
declare const index$
|
|
1442
|
-
declare const index$
|
|
1443
|
-
declare const index$
|
|
1444
|
-
declare const index$
|
|
1445
|
-
declare const index$
|
|
1446
|
-
declare const index$
|
|
1447
|
-
declare const index$
|
|
1448
|
-
declare const index$
|
|
1449
|
-
declare const index$
|
|
1450
|
-
declare const index$
|
|
1451
|
-
declare const index$
|
|
1452
|
-
declare namespace index$
|
|
1453
|
-
export { index$
|
|
1454
|
-
export type { index$
|
|
1421
|
+
type index$s_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
|
|
1422
|
+
declare const index$s_MAX_VALUE_U16: typeof MAX_VALUE_U16;
|
|
1423
|
+
declare const index$s_MAX_VALUE_U32: typeof MAX_VALUE_U32;
|
|
1424
|
+
declare const index$s_MAX_VALUE_U64: typeof MAX_VALUE_U64;
|
|
1425
|
+
declare const index$s_MAX_VALUE_U8: typeof MAX_VALUE_U8;
|
|
1426
|
+
type index$s_U16 = U16;
|
|
1427
|
+
type index$s_U32 = U32;
|
|
1428
|
+
type index$s_U64 = U64;
|
|
1429
|
+
type index$s_U8 = U8;
|
|
1430
|
+
type index$s_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
|
|
1431
|
+
declare const index$s___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
|
|
1432
|
+
declare const index$s_asTypedNumber: typeof asTypedNumber;
|
|
1433
|
+
declare const index$s_isU16: typeof isU16;
|
|
1434
|
+
declare const index$s_isU32: typeof isU32;
|
|
1435
|
+
declare const index$s_isU64: typeof isU64;
|
|
1436
|
+
declare const index$s_isU8: typeof isU8;
|
|
1437
|
+
declare const index$s_leBytesAsU32: typeof leBytesAsU32;
|
|
1438
|
+
declare const index$s_maxU64: typeof maxU64;
|
|
1439
|
+
declare const index$s_minU64: typeof minU64;
|
|
1440
|
+
declare const index$s_sumU32: typeof sumU32;
|
|
1441
|
+
declare const index$s_sumU64: typeof sumU64;
|
|
1442
|
+
declare const index$s_tryAsU16: typeof tryAsU16;
|
|
1443
|
+
declare const index$s_tryAsU32: typeof tryAsU32;
|
|
1444
|
+
declare const index$s_tryAsU64: typeof tryAsU64;
|
|
1445
|
+
declare const index$s_tryAsU8: typeof tryAsU8;
|
|
1446
|
+
declare const index$s_u32AsLeBytes: typeof u32AsLeBytes;
|
|
1447
|
+
declare const index$s_u64FromParts: typeof u64FromParts;
|
|
1448
|
+
declare const index$s_u64IntoParts: typeof u64IntoParts;
|
|
1449
|
+
declare namespace index$s {
|
|
1450
|
+
export { index$s_MAX_VALUE_U16 as MAX_VALUE_U16, index$s_MAX_VALUE_U32 as MAX_VALUE_U32, index$s_MAX_VALUE_U64 as MAX_VALUE_U64, index$s_MAX_VALUE_U8 as MAX_VALUE_U8, index$s___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, index$s_asTypedNumber as asTypedNumber, index$s_isU16 as isU16, index$s_isU32 as isU32, index$s_isU64 as isU64, index$s_isU8 as isU8, index$s_leBytesAsU32 as leBytesAsU32, index$s_maxU64 as maxU64, index$s_minU64 as minU64, index$s_sumU32 as sumU32, index$s_sumU64 as sumU64, index$s_tryAsU16 as tryAsU16, index$s_tryAsU32 as tryAsU32, index$s_tryAsU64 as tryAsU64, index$s_tryAsU8 as tryAsU8, index$s_u32AsLeBytes as u32AsLeBytes, index$s_u64FromParts as u64FromParts, index$s_u64IntoParts as u64IntoParts };
|
|
1451
|
+
export type { index$s_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, index$s_U16 as U16, index$s_U32 as U32, index$s_U64 as U64, index$s_U8 as U8, index$s_WithBytesRepresentation as WithBytesRepresentation };
|
|
1455
1452
|
}
|
|
1456
1453
|
|
|
1457
1454
|
/** A decoder for some specific type `T` */
|
|
@@ -3473,53 +3470,53 @@ declare function sequenceViewFixLen<T, V>(
|
|
|
3473
3470
|
);
|
|
3474
3471
|
}
|
|
3475
3472
|
|
|
3476
|
-
type index$
|
|
3477
|
-
type index$
|
|
3478
|
-
type index$
|
|
3479
|
-
type index$
|
|
3480
|
-
declare const index$
|
|
3481
|
-
type index$
|
|
3482
|
-
type index$
|
|
3483
|
-
declare const index$
|
|
3484
|
-
type index$
|
|
3485
|
-
type index$
|
|
3486
|
-
declare const index$
|
|
3487
|
-
type index$
|
|
3488
|
-
type index$
|
|
3489
|
-
type index$
|
|
3490
|
-
declare const index$
|
|
3491
|
-
type index$
|
|
3492
|
-
declare const index$
|
|
3493
|
-
type index$
|
|
3494
|
-
declare const index$
|
|
3495
|
-
declare const index$
|
|
3496
|
-
type index$
|
|
3497
|
-
declare const index$
|
|
3498
|
-
type index$
|
|
3499
|
-
type index$
|
|
3500
|
-
type index$
|
|
3501
|
-
declare const index$
|
|
3502
|
-
type index$
|
|
3503
|
-
type index$
|
|
3504
|
-
declare const index$
|
|
3505
|
-
declare const index$
|
|
3506
|
-
type index$
|
|
3507
|
-
declare const index$
|
|
3508
|
-
type index$
|
|
3509
|
-
declare const index$
|
|
3510
|
-
declare const index$
|
|
3511
|
-
declare const index$
|
|
3512
|
-
declare const index$
|
|
3513
|
-
declare const index$
|
|
3514
|
-
declare const index$
|
|
3515
|
-
declare const index$
|
|
3516
|
-
declare const index$
|
|
3517
|
-
declare const index$
|
|
3518
|
-
declare const index$
|
|
3519
|
-
declare const index$
|
|
3520
|
-
declare namespace index$
|
|
3521
|
-
export { index$
|
|
3522
|
-
export type { index$
|
|
3473
|
+
type index$r_ClassConstructor<T> = ClassConstructor<T>;
|
|
3474
|
+
type index$r_Codec<T> = Codec<T>;
|
|
3475
|
+
type index$r_CodecRecord<T> = CodecRecord<T>;
|
|
3476
|
+
type index$r_CodecWithView<T, V> = CodecWithView<T, V>;
|
|
3477
|
+
declare const index$r_DEFAULT_START_LENGTH: typeof DEFAULT_START_LENGTH;
|
|
3478
|
+
type index$r_Decode<T> = Decode<T>;
|
|
3479
|
+
type index$r_Decoder = Decoder;
|
|
3480
|
+
declare const index$r_Decoder: typeof Decoder;
|
|
3481
|
+
type index$r_DescribedBy<T> = DescribedBy<T>;
|
|
3482
|
+
type index$r_Descriptor<T, V = T> = Descriptor<T, V>;
|
|
3483
|
+
declare const index$r_Descriptor: typeof Descriptor;
|
|
3484
|
+
type index$r_DescriptorRecord<T> = DescriptorRecord<T>;
|
|
3485
|
+
type index$r_Encode<T> = Encode<T>;
|
|
3486
|
+
type index$r_Encoder = Encoder;
|
|
3487
|
+
declare const index$r_Encoder: typeof Encoder;
|
|
3488
|
+
type index$r_EndOfDataError = EndOfDataError;
|
|
3489
|
+
declare const index$r_EndOfDataError: typeof EndOfDataError;
|
|
3490
|
+
type index$r_LengthRange = LengthRange;
|
|
3491
|
+
declare const index$r_MASKS: typeof MASKS;
|
|
3492
|
+
declare const index$r_MAX_LENGTH: typeof MAX_LENGTH;
|
|
3493
|
+
type index$r_ObjectView<T> = ObjectView<T>;
|
|
3494
|
+
declare const index$r_ObjectView: typeof ObjectView;
|
|
3495
|
+
type index$r_OptionalRecord<T> = OptionalRecord<T>;
|
|
3496
|
+
type index$r_PropertyKeys<T> = PropertyKeys<T>;
|
|
3497
|
+
type index$r_SequenceView<T, V = T> = SequenceView<T, V>;
|
|
3498
|
+
declare const index$r_SequenceView: typeof SequenceView;
|
|
3499
|
+
type index$r_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
|
|
3500
|
+
type index$r_SizeHint = SizeHint;
|
|
3501
|
+
declare const index$r_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
|
|
3502
|
+
declare const index$r_TYPICAL_SEQUENCE_LENGTH: typeof TYPICAL_SEQUENCE_LENGTH;
|
|
3503
|
+
type index$r_ViewField<T, V> = ViewField<T, V>;
|
|
3504
|
+
declare const index$r_ViewField: typeof ViewField;
|
|
3505
|
+
type index$r_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
|
|
3506
|
+
declare const index$r_addSizeHints: typeof addSizeHints;
|
|
3507
|
+
declare const index$r_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
|
|
3508
|
+
declare const index$r_exactHint: typeof exactHint;
|
|
3509
|
+
declare const index$r_forEachDescriptor: typeof forEachDescriptor;
|
|
3510
|
+
declare const index$r_hasUniqueView: typeof hasUniqueView;
|
|
3511
|
+
declare const index$r_objectView: typeof objectView;
|
|
3512
|
+
declare const index$r_readonlyArray: typeof readonlyArray;
|
|
3513
|
+
declare const index$r_sequenceViewFixLen: typeof sequenceViewFixLen;
|
|
3514
|
+
declare const index$r_sequenceViewVarLen: typeof sequenceViewVarLen;
|
|
3515
|
+
declare const index$r_tryAsExactBytes: typeof tryAsExactBytes;
|
|
3516
|
+
declare const index$r_validateLength: typeof validateLength;
|
|
3517
|
+
declare namespace index$r {
|
|
3518
|
+
export { index$r_DEFAULT_START_LENGTH as DEFAULT_START_LENGTH, index$r_Decoder as Decoder, index$r_Descriptor as Descriptor, index$r_Encoder as Encoder, index$r_EndOfDataError as EndOfDataError, index$r_MASKS as MASKS, index$r_MAX_LENGTH as MAX_LENGTH, index$r_ObjectView as ObjectView, index$r_SequenceView as SequenceView, index$r_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, index$r_TYPICAL_SEQUENCE_LENGTH as TYPICAL_SEQUENCE_LENGTH, index$r_ViewField as ViewField, index$r_addSizeHints as addSizeHints, codec$1 as codec, index$r_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$r_exactHint as exactHint, index$r_forEachDescriptor as forEachDescriptor, index$r_hasUniqueView as hasUniqueView, index$r_objectView as objectView, index$r_readonlyArray as readonlyArray, index$r_sequenceViewFixLen as sequenceViewFixLen, index$r_sequenceViewVarLen as sequenceViewVarLen, index$r_tryAsExactBytes as tryAsExactBytes, index$r_validateLength as validateLength };
|
|
3519
|
+
export type { index$r_ClassConstructor as ClassConstructor, index$r_Codec as Codec, index$r_CodecRecord as CodecRecord, index$r_CodecWithView as CodecWithView, index$r_Decode as Decode, index$r_DescribedBy as DescribedBy, index$r_DescriptorRecord as DescriptorRecord, index$r_Encode as Encode, index$r_LengthRange as LengthRange, index$r_OptionalRecord as OptionalRecord, Options$1 as Options, index$r_PropertyKeys as PropertyKeys, index$r_SimpleDescriptorRecord as SimpleDescriptorRecord, index$r_SizeHint as SizeHint, index$r_ViewOf as ViewOf };
|
|
3523
3520
|
}
|
|
3524
3521
|
|
|
3525
3522
|
/**
|
|
@@ -3740,23 +3737,23 @@ declare namespace keccak {
|
|
|
3740
3737
|
// TODO [ToDr] (#213) this should most likely be moved to a separate
|
|
3741
3738
|
// package to avoid pulling in unnecessary deps.
|
|
3742
3739
|
|
|
3743
|
-
type index$
|
|
3744
|
-
declare const index$
|
|
3745
|
-
type index$
|
|
3746
|
-
type index$
|
|
3747
|
-
type index$
|
|
3748
|
-
type index$
|
|
3749
|
-
type index$
|
|
3750
|
-
type index$
|
|
3751
|
-
type index$
|
|
3752
|
-
declare const index$
|
|
3753
|
-
type index$
|
|
3754
|
-
declare const index$
|
|
3755
|
-
declare const index$
|
|
3756
|
-
declare const index$
|
|
3757
|
-
declare namespace index$
|
|
3758
|
-
export { index$
|
|
3759
|
-
export type { index$
|
|
3740
|
+
type index$q_Blake2b = Blake2b;
|
|
3741
|
+
declare const index$q_Blake2b: typeof Blake2b;
|
|
3742
|
+
type index$q_Blake2bHash = Blake2bHash;
|
|
3743
|
+
type index$q_HASH_SIZE = HASH_SIZE;
|
|
3744
|
+
type index$q_KeccakHash = KeccakHash;
|
|
3745
|
+
type index$q_OpaqueHash = OpaqueHash;
|
|
3746
|
+
type index$q_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
|
|
3747
|
+
type index$q_TruncatedHash = TruncatedHash;
|
|
3748
|
+
type index$q_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
|
|
3749
|
+
declare const index$q_WithHash: typeof WithHash;
|
|
3750
|
+
type index$q_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
|
|
3751
|
+
declare const index$q_WithHashAndBytes: typeof WithHashAndBytes;
|
|
3752
|
+
declare const index$q_ZERO_HASH: typeof ZERO_HASH;
|
|
3753
|
+
declare const index$q_keccak: typeof keccak;
|
|
3754
|
+
declare namespace index$q {
|
|
3755
|
+
export { index$q_Blake2b as Blake2b, index$q_WithHash as WithHash, index$q_WithHashAndBytes as WithHashAndBytes, index$q_ZERO_HASH as ZERO_HASH, index$q_keccak as keccak, zero$1 as zero };
|
|
3756
|
+
export type { index$q_Blake2bHash as Blake2bHash, index$q_HASH_SIZE as HASH_SIZE, index$q_KeccakHash as KeccakHash, index$q_OpaqueHash as OpaqueHash, index$q_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, index$q_TruncatedHash as TruncatedHash };
|
|
3760
3757
|
}
|
|
3761
3758
|
|
|
3762
3759
|
/** Immutable view of the `HashDictionary`. */
|
|
@@ -4533,37 +4530,37 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
|
|
|
4533
4530
|
}
|
|
4534
4531
|
}
|
|
4535
4532
|
|
|
4536
|
-
type index$
|
|
4537
|
-
declare const index$
|
|
4538
|
-
type index$
|
|
4539
|
-
declare const index$
|
|
4540
|
-
type index$
|
|
4541
|
-
declare const index$
|
|
4542
|
-
type index$
|
|
4543
|
-
declare const index$
|
|
4544
|
-
type index$
|
|
4545
|
-
type index$
|
|
4546
|
-
type index$
|
|
4547
|
-
type index$
|
|
4548
|
-
type index$
|
|
4549
|
-
type index$
|
|
4550
|
-
type index$
|
|
4551
|
-
type index$
|
|
4552
|
-
type index$
|
|
4553
|
-
type index$
|
|
4554
|
-
type index$
|
|
4555
|
-
declare const index$
|
|
4556
|
-
type index$
|
|
4557
|
-
type index$
|
|
4558
|
-
declare const index$
|
|
4559
|
-
type index$
|
|
4560
|
-
declare const index$
|
|
4561
|
-
type index$
|
|
4562
|
-
declare const index$
|
|
4563
|
-
declare const index$
|
|
4564
|
-
declare namespace index$
|
|
4565
|
-
export { index$
|
|
4566
|
-
export type { index$
|
|
4533
|
+
type index$p_ArrayView<T> = ArrayView<T>;
|
|
4534
|
+
declare const index$p_ArrayView: typeof ArrayView;
|
|
4535
|
+
type index$p_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
|
|
4536
|
+
declare const index$p_FixedSizeArray: typeof FixedSizeArray;
|
|
4537
|
+
type index$p_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
|
|
4538
|
+
declare const index$p_HashDictionary: typeof HashDictionary;
|
|
4539
|
+
type index$p_HashSet<V extends OpaqueHash> = HashSet<V>;
|
|
4540
|
+
declare const index$p_HashSet: typeof HashSet;
|
|
4541
|
+
type index$p_HashWithZeroedBit<T extends OpaqueHash> = HashWithZeroedBit<T>;
|
|
4542
|
+
type index$p_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
|
|
4543
|
+
type index$p_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
|
|
4544
|
+
type index$p_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
|
|
4545
|
+
type index$p_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
|
|
4546
|
+
type index$p_KeyMapper<K> = KeyMapper<K>;
|
|
4547
|
+
type index$p_KeyMappers<TKeys extends readonly unknown[]> = KeyMappers<TKeys>;
|
|
4548
|
+
type index$p_KnownSize<T, F extends string> = KnownSize<T, F>;
|
|
4549
|
+
type index$p_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
|
|
4550
|
+
type index$p_KnownSizeId<X> = KnownSizeId<X>;
|
|
4551
|
+
type index$p_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
|
|
4552
|
+
declare const index$p_MultiMap: typeof MultiMap;
|
|
4553
|
+
type index$p_NestedMaps<TKeys extends readonly unknown[], TValue> = NestedMaps<TKeys, TValue>;
|
|
4554
|
+
type index$p_SortedArray<V> = SortedArray<V>;
|
|
4555
|
+
declare const index$p_SortedArray: typeof SortedArray;
|
|
4556
|
+
type index$p_SortedSet<V> = SortedSet<V>;
|
|
4557
|
+
declare const index$p_SortedSet: typeof SortedSet;
|
|
4558
|
+
type index$p_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
|
|
4559
|
+
declare const index$p_TruncatedHashDictionary: typeof TruncatedHashDictionary;
|
|
4560
|
+
declare const index$p_asKnownSize: typeof asKnownSize;
|
|
4561
|
+
declare namespace index$p {
|
|
4562
|
+
export { index$p_ArrayView as ArrayView, index$p_FixedSizeArray as FixedSizeArray, index$p_HashDictionary as HashDictionary, index$p_HashSet as HashSet, index$p_MultiMap as MultiMap, index$p_SortedArray as SortedArray, index$p_SortedSet as SortedSet, index$p_TruncatedHashDictionary as TruncatedHashDictionary, index$p_asKnownSize as asKnownSize };
|
|
4563
|
+
export type { index$p_HashWithZeroedBit as HashWithZeroedBit, index$p_ImmutableHashDictionary as ImmutableHashDictionary, index$p_ImmutableHashSet as ImmutableHashSet, index$p_ImmutableSortedArray as ImmutableSortedArray, index$p_ImmutableSortedSet as ImmutableSortedSet, index$p_KeyMapper as KeyMapper, index$p_KeyMappers as KeyMappers, index$p_KnownSize as KnownSize, index$p_KnownSizeArray as KnownSizeArray, index$p_KnownSizeId as KnownSizeId, index$p_NestedMaps as NestedMaps };
|
|
4567
4564
|
}
|
|
4568
4565
|
|
|
4569
4566
|
declare namespace bandersnatch_d_exports {
|
|
@@ -4923,32 +4920,32 @@ declare namespace keyDerivation {
|
|
|
4923
4920
|
export type { keyDerivation_BandersnatchSecretSeed as BandersnatchSecretSeed, keyDerivation_Ed25519SecretSeed as Ed25519SecretSeed, keyDerivation_KeySeed as KeySeed, keyDerivation_SEED_SIZE as SEED_SIZE };
|
|
4924
4921
|
}
|
|
4925
4922
|
|
|
4926
|
-
type index$
|
|
4927
|
-
type index$
|
|
4928
|
-
type index$
|
|
4929
|
-
type index$
|
|
4930
|
-
type index$
|
|
4931
|
-
type index$
|
|
4932
|
-
type index$
|
|
4933
|
-
type index$
|
|
4934
|
-
type index$
|
|
4935
|
-
type index$
|
|
4936
|
-
type index$
|
|
4937
|
-
type index$
|
|
4938
|
-
type index$
|
|
4939
|
-
type index$
|
|
4940
|
-
type index$
|
|
4941
|
-
type index$
|
|
4942
|
-
declare const index$
|
|
4943
|
-
type index$
|
|
4944
|
-
type index$
|
|
4945
|
-
type index$
|
|
4946
|
-
declare const index$
|
|
4947
|
-
declare const index$
|
|
4948
|
-
declare const index$
|
|
4949
|
-
declare namespace index$
|
|
4950
|
-
export { index$
|
|
4951
|
-
export type { index$
|
|
4923
|
+
type index$o_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
|
|
4924
|
+
type index$o_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
|
|
4925
|
+
type index$o_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
|
|
4926
|
+
type index$o_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
|
|
4927
|
+
type index$o_BLS_KEY_BYTES = BLS_KEY_BYTES;
|
|
4928
|
+
type index$o_BandersnatchKey = BandersnatchKey;
|
|
4929
|
+
type index$o_BandersnatchProof = BandersnatchProof;
|
|
4930
|
+
type index$o_BandersnatchRingRoot = BandersnatchRingRoot;
|
|
4931
|
+
type index$o_BandersnatchSecretSeed = BandersnatchSecretSeed;
|
|
4932
|
+
type index$o_BandersnatchVrfSignature = BandersnatchVrfSignature;
|
|
4933
|
+
type index$o_BlsKey = BlsKey;
|
|
4934
|
+
type index$o_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
|
|
4935
|
+
type index$o_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
|
|
4936
|
+
type index$o_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
|
|
4937
|
+
type index$o_Ed25519Key = Ed25519Key;
|
|
4938
|
+
type index$o_Ed25519Pair = Ed25519Pair;
|
|
4939
|
+
declare const index$o_Ed25519Pair: typeof Ed25519Pair;
|
|
4940
|
+
type index$o_Ed25519SecretSeed = Ed25519SecretSeed;
|
|
4941
|
+
type index$o_Ed25519Signature = Ed25519Signature;
|
|
4942
|
+
type index$o_SEED_SIZE = SEED_SIZE;
|
|
4943
|
+
declare const index$o_bandersnatch: typeof bandersnatch;
|
|
4944
|
+
declare const index$o_ed25519: typeof ed25519;
|
|
4945
|
+
declare const index$o_keyDerivation: typeof keyDerivation;
|
|
4946
|
+
declare namespace index$o {
|
|
4947
|
+
export { index$o_Ed25519Pair as Ed25519Pair, index$o_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, index$o_ed25519 as ed25519, initAll as initWasm, index$o_keyDerivation as keyDerivation };
|
|
4948
|
+
export type { index$o_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, index$o_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, index$o_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, index$o_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, index$o_BLS_KEY_BYTES as BLS_KEY_BYTES, index$o_BandersnatchKey as BandersnatchKey, index$o_BandersnatchProof as BandersnatchProof, index$o_BandersnatchRingRoot as BandersnatchRingRoot, index$o_BandersnatchSecretSeed as BandersnatchSecretSeed, index$o_BandersnatchVrfSignature as BandersnatchVrfSignature, index$o_BlsKey as BlsKey, index$o_ED25519_KEY_BYTES as ED25519_KEY_BYTES, index$o_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, index$o_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, index$o_Ed25519Key as Ed25519Key, index$o_Ed25519SecretSeed as Ed25519SecretSeed, index$o_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, index$o_SEED_SIZE as SEED_SIZE };
|
|
4952
4949
|
}
|
|
4953
4950
|
|
|
4954
4951
|
/**
|
|
@@ -4989,6 +4986,8 @@ declare const EC_SEGMENT_SIZE = 4104;
|
|
|
4989
4986
|
* Additional data that has to be passed to the codec to correctly parse incoming bytes.
|
|
4990
4987
|
*/
|
|
4991
4988
|
declare class ChainSpec extends WithDebug {
|
|
4989
|
+
/** Human-readable name of the chain spec. */
|
|
4990
|
+
readonly name: string;
|
|
4992
4991
|
/** Number of validators. */
|
|
4993
4992
|
readonly validatorsCount: U16;
|
|
4994
4993
|
/** 1/3 of number of validators */
|
|
@@ -5033,6 +5032,7 @@ declare class ChainSpec extends WithDebug {
|
|
|
5033
5032
|
constructor(data: Omit<ChainSpec, "validatorsSuperMajority" | "thirdOfValidators" | "erasureCodedPieceSize">) {
|
|
5034
5033
|
super();
|
|
5035
5034
|
|
|
5035
|
+
this.name = data.name;
|
|
5036
5036
|
this.validatorsCount = data.validatorsCount;
|
|
5037
5037
|
this.thirdOfValidators = tryAsU16(Math.floor(data.validatorsCount / 3));
|
|
5038
5038
|
this.validatorsSuperMajority = tryAsU16(Math.floor(data.validatorsCount / 3) * 2 + 1);
|
|
@@ -5054,6 +5054,7 @@ declare class ChainSpec extends WithDebug {
|
|
|
5054
5054
|
|
|
5055
5055
|
/** Set of values for "tiny" chain as defined in JAM test vectors. */
|
|
5056
5056
|
declare const tinyChainSpec = new ChainSpec({
|
|
5057
|
+
name: "tiny",
|
|
5057
5058
|
validatorsCount: tryAsU16(6),
|
|
5058
5059
|
coresCount: tryAsU16(2),
|
|
5059
5060
|
epochLength: tryAsU32(12),
|
|
@@ -5076,6 +5077,7 @@ declare const tinyChainSpec = new ChainSpec({
|
|
|
5076
5077
|
* Please note that only validatorsCount and epochLength are "full", the rest is copied from "tiny".
|
|
5077
5078
|
*/
|
|
5078
5079
|
declare const fullChainSpec = new ChainSpec({
|
|
5080
|
+
name: "full",
|
|
5079
5081
|
validatorsCount: tryAsU16(1023),
|
|
5080
5082
|
coresCount: tryAsU16(341),
|
|
5081
5083
|
epochLength: tryAsU32(600),
|
|
@@ -5133,25 +5135,25 @@ declare enum PvmBackend {
|
|
|
5133
5135
|
Ananas = 1,
|
|
5134
5136
|
}
|
|
5135
5137
|
|
|
5136
|
-
type index$
|
|
5137
|
-
declare const index$
|
|
5138
|
-
type index$
|
|
5139
|
-
declare const index$
|
|
5140
|
-
declare const index$
|
|
5141
|
-
declare const index$
|
|
5142
|
-
declare const index$
|
|
5143
|
-
declare const index$
|
|
5144
|
-
declare const index$
|
|
5145
|
-
type index$
|
|
5146
|
-
type index$
|
|
5147
|
-
type index$
|
|
5148
|
-
declare const index$
|
|
5149
|
-
declare const index$
|
|
5150
|
-
declare const index$
|
|
5151
|
-
declare const index$
|
|
5152
|
-
declare namespace index$
|
|
5153
|
-
export { index$
|
|
5154
|
-
export type { index$
|
|
5138
|
+
type index$n_Bootnode = Bootnode;
|
|
5139
|
+
declare const index$n_Bootnode: typeof Bootnode;
|
|
5140
|
+
type index$n_ChainSpec = ChainSpec;
|
|
5141
|
+
declare const index$n_ChainSpec: typeof ChainSpec;
|
|
5142
|
+
declare const index$n_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
|
|
5143
|
+
declare const index$n_EST_CORES: typeof EST_CORES;
|
|
5144
|
+
declare const index$n_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
|
|
5145
|
+
declare const index$n_EST_VALIDATORS: typeof EST_VALIDATORS;
|
|
5146
|
+
declare const index$n_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
|
|
5147
|
+
type index$n_PeerAddress = PeerAddress;
|
|
5148
|
+
type index$n_PeerId = PeerId;
|
|
5149
|
+
type index$n_PvmBackend = PvmBackend;
|
|
5150
|
+
declare const index$n_PvmBackend: typeof PvmBackend;
|
|
5151
|
+
declare const index$n_PvmBackendNames: typeof PvmBackendNames;
|
|
5152
|
+
declare const index$n_fullChainSpec: typeof fullChainSpec;
|
|
5153
|
+
declare const index$n_tinyChainSpec: typeof tinyChainSpec;
|
|
5154
|
+
declare namespace index$n {
|
|
5155
|
+
export { index$n_Bootnode as Bootnode, index$n_ChainSpec as ChainSpec, index$n_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, index$n_EST_CORES as EST_CORES, index$n_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, index$n_EST_VALIDATORS as EST_VALIDATORS, index$n_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, index$n_PvmBackend as PvmBackend, index$n_PvmBackendNames as PvmBackendNames, index$n_fullChainSpec as fullChainSpec, index$n_tinyChainSpec as tinyChainSpec };
|
|
5156
|
+
export type { index$n_PeerAddress as PeerAddress, index$n_PeerId as PeerId };
|
|
5155
5157
|
}
|
|
5156
5158
|
|
|
5157
5159
|
/**
|
|
@@ -6957,74 +6959,74 @@ declare function reencodeAsView<T, V>(codec: Descriptor<T, V>, object: T, chainS
|
|
|
6957
6959
|
return Decoder.decodeObject(codec.View, encoded, chainSpec);
|
|
6958
6960
|
}
|
|
6959
6961
|
|
|
6960
|
-
type index$
|
|
6961
|
-
declare const index$
|
|
6962
|
-
type index$
|
|
6963
|
-
type index$
|
|
6964
|
-
type index$
|
|
6965
|
-
type index$
|
|
6966
|
-
type index$
|
|
6967
|
-
type index$
|
|
6968
|
-
declare const index$
|
|
6969
|
-
type index$
|
|
6970
|
-
type index$
|
|
6971
|
-
declare const index$
|
|
6972
|
-
type index$
|
|
6973
|
-
type index$
|
|
6974
|
-
type index$
|
|
6975
|
-
declare const index$
|
|
6976
|
-
type index$
|
|
6977
|
-
type index$
|
|
6978
|
-
type index$
|
|
6979
|
-
declare const index$
|
|
6980
|
-
declare const index$
|
|
6981
|
-
type index$
|
|
6982
|
-
type index$
|
|
6983
|
-
type index$
|
|
6984
|
-
type index$
|
|
6985
|
-
type index$
|
|
6986
|
-
type index$
|
|
6987
|
-
type index$
|
|
6988
|
-
type index$
|
|
6989
|
-
type index$
|
|
6990
|
-
declare const index$
|
|
6991
|
-
type index$
|
|
6992
|
-
type index$
|
|
6993
|
-
type index$
|
|
6994
|
-
type index$
|
|
6995
|
-
declare const index$
|
|
6996
|
-
declare const index$
|
|
6997
|
-
declare const index$
|
|
6998
|
-
type index$
|
|
6999
|
-
declare const index$
|
|
7000
|
-
declare const index$
|
|
7001
|
-
declare const index$
|
|
7002
|
-
declare const index$
|
|
7003
|
-
declare const index$
|
|
7004
|
-
declare const index$
|
|
7005
|
-
declare const index$
|
|
7006
|
-
declare const index$
|
|
7007
|
-
declare const index$
|
|
7008
|
-
declare const index$
|
|
7009
|
-
declare const index$
|
|
7010
|
-
declare const index$
|
|
7011
|
-
declare const index$
|
|
7012
|
-
declare const index$
|
|
7013
|
-
declare const index$
|
|
7014
|
-
declare const index$
|
|
7015
|
-
declare const index$
|
|
7016
|
-
declare const index$
|
|
7017
|
-
declare const index$
|
|
7018
|
-
declare const index$
|
|
7019
|
-
declare const index$
|
|
7020
|
-
declare const index$
|
|
7021
|
-
declare const index$
|
|
7022
|
-
declare const index$
|
|
7023
|
-
declare const index$
|
|
7024
|
-
declare const index$
|
|
7025
|
-
declare namespace index$
|
|
7026
|
-
export { index$
|
|
7027
|
-
export type { index$
|
|
6962
|
+
type index$m_Block = Block;
|
|
6963
|
+
declare const index$m_Block: typeof Block;
|
|
6964
|
+
type index$m_BlockView = BlockView;
|
|
6965
|
+
type index$m_CodeHash = CodeHash;
|
|
6966
|
+
type index$m_CoreIndex = CoreIndex;
|
|
6967
|
+
type index$m_EntropyHash = EntropyHash;
|
|
6968
|
+
type index$m_Epoch = Epoch;
|
|
6969
|
+
type index$m_EpochMarker = EpochMarker;
|
|
6970
|
+
declare const index$m_EpochMarker: typeof EpochMarker;
|
|
6971
|
+
type index$m_EpochMarkerView = EpochMarkerView;
|
|
6972
|
+
type index$m_Extrinsic = Extrinsic;
|
|
6973
|
+
declare const index$m_Extrinsic: typeof Extrinsic;
|
|
6974
|
+
type index$m_ExtrinsicHash = ExtrinsicHash;
|
|
6975
|
+
type index$m_ExtrinsicView = ExtrinsicView;
|
|
6976
|
+
type index$m_Header = Header;
|
|
6977
|
+
declare const index$m_Header: typeof Header;
|
|
6978
|
+
type index$m_HeaderHash = HeaderHash;
|
|
6979
|
+
type index$m_HeaderView = HeaderView;
|
|
6980
|
+
type index$m_HeaderViewWithHash = HeaderViewWithHash;
|
|
6981
|
+
declare const index$m_HeaderViewWithHash: typeof HeaderViewWithHash;
|
|
6982
|
+
declare const index$m_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
|
|
6983
|
+
type index$m_PerEpochBlock<T> = PerEpochBlock<T>;
|
|
6984
|
+
type index$m_PerValidator<T> = PerValidator<T>;
|
|
6985
|
+
type index$m_SEGMENT_BYTES = SEGMENT_BYTES;
|
|
6986
|
+
type index$m_Segment = Segment;
|
|
6987
|
+
type index$m_SegmentIndex = SegmentIndex;
|
|
6988
|
+
type index$m_ServiceGas = ServiceGas;
|
|
6989
|
+
type index$m_ServiceId = ServiceId;
|
|
6990
|
+
type index$m_StateRootHash = StateRootHash;
|
|
6991
|
+
type index$m_TicketsMarker = TicketsMarker;
|
|
6992
|
+
declare const index$m_TicketsMarker: typeof TicketsMarker;
|
|
6993
|
+
type index$m_TicketsMarkerView = TicketsMarkerView;
|
|
6994
|
+
type index$m_TimeSlot = TimeSlot;
|
|
6995
|
+
type index$m_ValidatorIndex = ValidatorIndex;
|
|
6996
|
+
type index$m_ValidatorKeys = ValidatorKeys;
|
|
6997
|
+
declare const index$m_ValidatorKeys: typeof ValidatorKeys;
|
|
6998
|
+
declare const index$m_W_E: typeof W_E;
|
|
6999
|
+
declare const index$m_W_S: typeof W_S;
|
|
7000
|
+
type index$m_WorkReportHash = WorkReportHash;
|
|
7001
|
+
declare const index$m_assurances: typeof assurances;
|
|
7002
|
+
declare const index$m_codecPerEpochBlock: typeof codecPerEpochBlock;
|
|
7003
|
+
declare const index$m_codecPerValidator: typeof codecPerValidator;
|
|
7004
|
+
declare const index$m_disputes: typeof disputes;
|
|
7005
|
+
declare const index$m_emptyBlock: typeof emptyBlock;
|
|
7006
|
+
declare const index$m_encodeUnsealedHeader: typeof encodeUnsealedHeader;
|
|
7007
|
+
declare const index$m_guarantees: typeof guarantees;
|
|
7008
|
+
declare const index$m_headerViewWithHashCodec: typeof headerViewWithHashCodec;
|
|
7009
|
+
declare const index$m_legacyDescriptor: typeof legacyDescriptor;
|
|
7010
|
+
declare const index$m_preimage: typeof preimage;
|
|
7011
|
+
declare const index$m_reencodeAsView: typeof reencodeAsView;
|
|
7012
|
+
declare const index$m_refineContext: typeof refineContext;
|
|
7013
|
+
declare const index$m_tickets: typeof tickets;
|
|
7014
|
+
declare const index$m_tryAsCoreIndex: typeof tryAsCoreIndex;
|
|
7015
|
+
declare const index$m_tryAsEpoch: typeof tryAsEpoch;
|
|
7016
|
+
declare const index$m_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
|
|
7017
|
+
declare const index$m_tryAsPerValidator: typeof tryAsPerValidator;
|
|
7018
|
+
declare const index$m_tryAsSegmentIndex: typeof tryAsSegmentIndex;
|
|
7019
|
+
declare const index$m_tryAsServiceGas: typeof tryAsServiceGas;
|
|
7020
|
+
declare const index$m_tryAsServiceId: typeof tryAsServiceId;
|
|
7021
|
+
declare const index$m_tryAsTimeSlot: typeof tryAsTimeSlot;
|
|
7022
|
+
declare const index$m_tryAsValidatorIndex: typeof tryAsValidatorIndex;
|
|
7023
|
+
declare const index$m_workItem: typeof workItem;
|
|
7024
|
+
declare const index$m_workPackage: typeof workPackage;
|
|
7025
|
+
declare const index$m_workReport: typeof workReport;
|
|
7026
|
+
declare const index$m_workResult: typeof workResult;
|
|
7027
|
+
declare namespace index$m {
|
|
7028
|
+
export { index$m_Block as Block, index$m_EpochMarker as EpochMarker, index$m_Extrinsic as Extrinsic, index$m_Header as Header, index$m_HeaderViewWithHash as HeaderViewWithHash, index$m_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, index$m_TicketsMarker as TicketsMarker, index$m_ValidatorKeys as ValidatorKeys, index$m_W_E as W_E, index$m_W_S as W_S, index$m_assurances as assurances, index$m_codecPerEpochBlock as codecPerEpochBlock, index$m_codecPerValidator as codecPerValidator, codec as codecUtils, index$m_disputes as disputes, index$m_emptyBlock as emptyBlock, index$m_encodeUnsealedHeader as encodeUnsealedHeader, index$m_guarantees as guarantees, index$m_headerViewWithHashCodec as headerViewWithHashCodec, index$m_legacyDescriptor as legacyDescriptor, index$m_preimage as preimage, index$m_reencodeAsView as reencodeAsView, index$m_refineContext as refineContext, index$m_tickets as tickets, index$m_tryAsCoreIndex as tryAsCoreIndex, index$m_tryAsEpoch as tryAsEpoch, index$m_tryAsPerEpochBlock as tryAsPerEpochBlock, index$m_tryAsPerValidator as tryAsPerValidator, index$m_tryAsSegmentIndex as tryAsSegmentIndex, index$m_tryAsServiceGas as tryAsServiceGas, index$m_tryAsServiceId as tryAsServiceId, index$m_tryAsTimeSlot as tryAsTimeSlot, index$m_tryAsValidatorIndex as tryAsValidatorIndex, index$m_workItem as workItem, index$m_workPackage as workPackage, index$m_workReport as workReport, index$m_workResult as workResult };
|
|
7029
|
+
export type { index$m_BlockView as BlockView, index$m_CodeHash as CodeHash, index$m_CoreIndex as CoreIndex, index$m_EntropyHash as EntropyHash, index$m_Epoch as Epoch, index$m_EpochMarkerView as EpochMarkerView, index$m_ExtrinsicHash as ExtrinsicHash, index$m_ExtrinsicView as ExtrinsicView, index$m_HeaderHash as HeaderHash, index$m_HeaderView as HeaderView, index$m_PerEpochBlock as PerEpochBlock, index$m_PerValidator as PerValidator, index$m_SEGMENT_BYTES as SEGMENT_BYTES, index$m_Segment as Segment, index$m_SegmentIndex as SegmentIndex, index$m_ServiceGas as ServiceGas, index$m_ServiceId as ServiceId, index$m_StateRootHash as StateRootHash, index$m_TicketsMarkerView as TicketsMarkerView, index$m_TimeSlot as TimeSlot, index$m_ValidatorIndex as ValidatorIndex, index$m_WorkReportHash as WorkReportHash };
|
|
7028
7030
|
}
|
|
7029
7031
|
|
|
7030
7032
|
/** A type that can be read from a JSON-parsed object. */
|
|
@@ -7257,6 +7259,19 @@ declare namespace json {
|
|
|
7257
7259
|
return ["number", parser];
|
|
7258
7260
|
}
|
|
7259
7261
|
|
|
7262
|
+
/** Parse a JSON bigint or number into the expected type. */
|
|
7263
|
+
export function fromBigInt<TInto>(parser: Parser<bigint, TInto>): FromJsonWithParser<unknown, TInto> {
|
|
7264
|
+
return [
|
|
7265
|
+
"object",
|
|
7266
|
+
(x) => {
|
|
7267
|
+
if (typeof x === "number" || typeof x === "bigint") {
|
|
7268
|
+
return parser(BigInt(x));
|
|
7269
|
+
}
|
|
7270
|
+
throw new Error(`Expected number or bigint got: ${typeof x} (${x})`);
|
|
7271
|
+
},
|
|
7272
|
+
];
|
|
7273
|
+
}
|
|
7274
|
+
|
|
7260
7275
|
/** Cast the JSON number into the expected type. */
|
|
7261
7276
|
export function castNumber<TInto extends number>() {
|
|
7262
7277
|
return fromNumber((v) => v as TInto);
|
|
@@ -7322,21 +7337,21 @@ declare namespace json {
|
|
|
7322
7337
|
}
|
|
7323
7338
|
}
|
|
7324
7339
|
|
|
7325
|
-
type index$
|
|
7326
|
-
type index$
|
|
7327
|
-
type index$
|
|
7328
|
-
type index$
|
|
7329
|
-
type index$
|
|
7330
|
-
declare const index$
|
|
7331
|
-
type index$
|
|
7332
|
-
type index$
|
|
7333
|
-
declare const index$
|
|
7334
|
-
import index$
|
|
7335
|
-
declare const index$
|
|
7336
|
-
declare const index$
|
|
7337
|
-
declare namespace index$
|
|
7338
|
-
export { index$
|
|
7339
|
-
export type { index$
|
|
7340
|
+
type index$l_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
|
|
7341
|
+
type index$l_FromJson<T> = FromJson<T>;
|
|
7342
|
+
type index$l_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
|
|
7343
|
+
type index$l_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
|
|
7344
|
+
type index$l_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
|
|
7345
|
+
declare const index$l_NO_KEY: typeof NO_KEY;
|
|
7346
|
+
type index$l_ObjectFromJson<T> = ObjectFromJson<T>;
|
|
7347
|
+
type index$l_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
|
|
7348
|
+
declare const index$l_diffKeys: typeof diffKeys;
|
|
7349
|
+
import index$l_json = json;
|
|
7350
|
+
declare const index$l_parseFromJson: typeof parseFromJson;
|
|
7351
|
+
declare const index$l_parseOrThrow: typeof parseOrThrow;
|
|
7352
|
+
declare namespace index$l {
|
|
7353
|
+
export { index$l_NO_KEY as NO_KEY, index$l_diffKeys as diffKeys, index$l_json as json, index$l_parseFromJson as parseFromJson, index$l_parseOrThrow as parseOrThrow };
|
|
7354
|
+
export type { index$l_Builder as Builder, index$l_FromJson as FromJson, index$l_FromJsonOptional as FromJsonOptional, index$l_FromJsonPrimitive as FromJsonPrimitive, index$l_FromJsonWithParser as FromJsonWithParser, index$l_ObjectFromJson as ObjectFromJson, index$l_Parser as Parser };
|
|
7340
7355
|
}
|
|
7341
7356
|
|
|
7342
7357
|
declare namespace fromJson {
|
|
@@ -7586,7 +7601,7 @@ declare const workResultFromJson = json.object<JsonWorkResult, WorkResult>(
|
|
|
7586
7601
|
service_id: "number",
|
|
7587
7602
|
code_hash: fromJson.bytes32(),
|
|
7588
7603
|
payload_hash: fromJson.bytes32(),
|
|
7589
|
-
accumulate_gas: json.
|
|
7604
|
+
accumulate_gas: json.fromBigInt((x) => tryAsServiceGas(x)),
|
|
7590
7605
|
result: workExecResultFromJson,
|
|
7591
7606
|
refine_load: workRefineLoadFromJson,
|
|
7592
7607
|
},
|
|
@@ -7646,7 +7661,7 @@ declare const workReportFromJson = json.object<JsonWorkReport, WorkReport>(
|
|
|
7646
7661
|
auth_output: json.fromString(BytesBlob.parseBlob),
|
|
7647
7662
|
segment_root_lookup: json.array(segmentRootLookupItemFromJson),
|
|
7648
7663
|
results: json.array(workResultFromJson),
|
|
7649
|
-
auth_gas_used: json.
|
|
7664
|
+
auth_gas_used: json.fromBigInt((x) => tryAsServiceGas(x)),
|
|
7650
7665
|
},
|
|
7651
7666
|
({
|
|
7652
7667
|
package_spec,
|
|
@@ -7839,52 +7854,52 @@ declare const blockFromJson = (spec: ChainSpec) =>
|
|
|
7839
7854
|
({ header, extrinsic }) => Block.create({ header, extrinsic }),
|
|
7840
7855
|
);
|
|
7841
7856
|
|
|
7842
|
-
type index$
|
|
7843
|
-
type index$
|
|
7844
|
-
type index$
|
|
7845
|
-
type index$
|
|
7846
|
-
type index$
|
|
7847
|
-
type index$
|
|
7848
|
-
type index$
|
|
7849
|
-
type index$
|
|
7850
|
-
type index$
|
|
7851
|
-
type index$
|
|
7852
|
-
type index$
|
|
7853
|
-
type index$
|
|
7854
|
-
type index$
|
|
7855
|
-
type index$
|
|
7856
|
-
declare const index$
|
|
7857
|
-
declare const index$
|
|
7858
|
-
declare const index$
|
|
7859
|
-
declare const index$
|
|
7860
|
-
declare const index$
|
|
7861
|
-
declare const index$
|
|
7862
|
-
import index$
|
|
7863
|
-
declare const index$
|
|
7864
|
-
declare const index$
|
|
7865
|
-
declare const index$
|
|
7866
|
-
declare const index$
|
|
7867
|
-
declare const index$
|
|
7868
|
-
declare const index$
|
|
7869
|
-
declare const index$
|
|
7870
|
-
declare const index$
|
|
7871
|
-
declare const index$
|
|
7872
|
-
declare const index$
|
|
7873
|
-
declare const index$
|
|
7874
|
-
declare const index$
|
|
7875
|
-
declare const index$
|
|
7876
|
-
declare const index$
|
|
7877
|
-
declare const index$
|
|
7878
|
-
declare const index$
|
|
7879
|
-
declare const index$
|
|
7880
|
-
declare const index$
|
|
7881
|
-
declare const index$
|
|
7882
|
-
declare const index$
|
|
7883
|
-
declare const index$
|
|
7884
|
-
declare const index$
|
|
7885
|
-
declare namespace index$
|
|
7886
|
-
export { index$
|
|
7887
|
-
export type { index$
|
|
7857
|
+
type index$k_CamelToSnake<S extends string> = CamelToSnake<S>;
|
|
7858
|
+
type index$k_JsonCulprit = JsonCulprit;
|
|
7859
|
+
type index$k_JsonEpochMarker = JsonEpochMarker;
|
|
7860
|
+
type index$k_JsonFault = JsonFault;
|
|
7861
|
+
type index$k_JsonHeader = JsonHeader;
|
|
7862
|
+
type index$k_JsonJudgement = JsonJudgement;
|
|
7863
|
+
type index$k_JsonObject<T> = JsonObject<T>;
|
|
7864
|
+
type index$k_JsonRefineContext = JsonRefineContext;
|
|
7865
|
+
type index$k_JsonReportGuarantee = JsonReportGuarantee;
|
|
7866
|
+
type index$k_JsonVerdict = JsonVerdict;
|
|
7867
|
+
type index$k_JsonWorkExecResult = JsonWorkExecResult;
|
|
7868
|
+
type index$k_JsonWorkRefineLoad = JsonWorkRefineLoad;
|
|
7869
|
+
type index$k_JsonWorkReport = JsonWorkReport;
|
|
7870
|
+
type index$k_JsonWorkResult = JsonWorkResult;
|
|
7871
|
+
declare const index$k_bandersnatchVrfSignature: typeof bandersnatchVrfSignature;
|
|
7872
|
+
declare const index$k_blockFromJson: typeof blockFromJson;
|
|
7873
|
+
declare const index$k_culpritFromJson: typeof culpritFromJson;
|
|
7874
|
+
declare const index$k_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
|
|
7875
|
+
declare const index$k_epochMark: typeof epochMark;
|
|
7876
|
+
declare const index$k_faultFromJson: typeof faultFromJson;
|
|
7877
|
+
import index$k_fromJson = fromJson;
|
|
7878
|
+
declare const index$k_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
|
|
7879
|
+
declare const index$k_getAvailabilityAssuranceFromJson: typeof getAvailabilityAssuranceFromJson;
|
|
7880
|
+
declare const index$k_getExtrinsicFromJson: typeof getExtrinsicFromJson;
|
|
7881
|
+
declare const index$k_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
|
|
7882
|
+
declare const index$k_headerFromJson: typeof headerFromJson;
|
|
7883
|
+
declare const index$k_judgementFromJson: typeof judgementFromJson;
|
|
7884
|
+
declare const index$k_preimageFromJson: typeof preimageFromJson;
|
|
7885
|
+
declare const index$k_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
|
|
7886
|
+
declare const index$k_refineContextFromJson: typeof refineContextFromJson;
|
|
7887
|
+
declare const index$k_reportGuaranteeFromJson: typeof reportGuaranteeFromJson;
|
|
7888
|
+
declare const index$k_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
|
|
7889
|
+
declare const index$k_ticket: typeof ticket;
|
|
7890
|
+
declare const index$k_ticketEnvelopeFromJson: typeof ticketEnvelopeFromJson;
|
|
7891
|
+
declare const index$k_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
|
|
7892
|
+
declare const index$k_validatorKeysFromJson: typeof validatorKeysFromJson;
|
|
7893
|
+
declare const index$k_validatorSignatureFromJson: typeof validatorSignatureFromJson;
|
|
7894
|
+
declare const index$k_verdictFromJson: typeof verdictFromJson;
|
|
7895
|
+
declare const index$k_workExecResultFromJson: typeof workExecResultFromJson;
|
|
7896
|
+
declare const index$k_workPackageSpecFromJson: typeof workPackageSpecFromJson;
|
|
7897
|
+
declare const index$k_workRefineLoadFromJson: typeof workRefineLoadFromJson;
|
|
7898
|
+
declare const index$k_workReportFromJson: typeof workReportFromJson;
|
|
7899
|
+
declare const index$k_workResultFromJson: typeof workResultFromJson;
|
|
7900
|
+
declare namespace index$k {
|
|
7901
|
+
export { index$k_bandersnatchVrfSignature as bandersnatchVrfSignature, index$k_blockFromJson as blockFromJson, index$k_culpritFromJson as culpritFromJson, index$k_disputesExtrinsicFromJson as disputesExtrinsicFromJson, index$k_epochMark as epochMark, index$k_faultFromJson as faultFromJson, index$k_fromJson as fromJson, index$k_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, index$k_getAvailabilityAssuranceFromJson as getAvailabilityAssuranceFromJson, index$k_getExtrinsicFromJson as getExtrinsicFromJson, index$k_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, index$k_headerFromJson as headerFromJson, index$k_judgementFromJson as judgementFromJson, index$k_preimageFromJson as preimageFromJson, index$k_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, index$k_refineContextFromJson as refineContextFromJson, index$k_reportGuaranteeFromJson as reportGuaranteeFromJson, index$k_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, index$k_ticket as ticket, index$k_ticketEnvelopeFromJson as ticketEnvelopeFromJson, index$k_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, index$k_validatorKeysFromJson as validatorKeysFromJson, index$k_validatorSignatureFromJson as validatorSignatureFromJson, index$k_verdictFromJson as verdictFromJson, index$k_workExecResultFromJson as workExecResultFromJson, index$k_workPackageSpecFromJson as workPackageSpecFromJson, index$k_workRefineLoadFromJson as workRefineLoadFromJson, index$k_workReportFromJson as workReportFromJson, index$k_workResultFromJson as workResultFromJson };
|
|
7902
|
+
export type { index$k_CamelToSnake as CamelToSnake, index$k_JsonCulprit as JsonCulprit, index$k_JsonEpochMarker as JsonEpochMarker, index$k_JsonFault as JsonFault, index$k_JsonHeader as JsonHeader, index$k_JsonJudgement as JsonJudgement, index$k_JsonObject as JsonObject, index$k_JsonRefineContext as JsonRefineContext, index$k_JsonReportGuarantee as JsonReportGuarantee, index$k_JsonVerdict as JsonVerdict, index$k_JsonWorkExecResult as JsonWorkExecResult, index$k_JsonWorkRefineLoad as JsonWorkRefineLoad, index$k_JsonWorkReport as JsonWorkReport, index$k_JsonWorkResult as JsonWorkResult };
|
|
7888
7903
|
}
|
|
7889
7904
|
|
|
7890
7905
|
declare function parseBootnode(v: string): Bootnode {
|
|
@@ -8132,16 +8147,16 @@ declare class Logger {
|
|
|
8132
8147
|
}
|
|
8133
8148
|
}
|
|
8134
8149
|
|
|
8135
|
-
type index$
|
|
8136
|
-
declare const index$
|
|
8137
|
-
type index$
|
|
8138
|
-
declare const index$
|
|
8139
|
-
declare const index$
|
|
8140
|
-
declare namespace index$
|
|
8150
|
+
type index$j_Level = Level;
|
|
8151
|
+
declare const index$j_Level: typeof Level;
|
|
8152
|
+
type index$j_Logger = Logger;
|
|
8153
|
+
declare const index$j_Logger: typeof Logger;
|
|
8154
|
+
declare const index$j_parseLoggerOptions: typeof parseLoggerOptions;
|
|
8155
|
+
declare namespace index$j {
|
|
8141
8156
|
export {
|
|
8142
|
-
index$
|
|
8143
|
-
index$
|
|
8144
|
-
index$
|
|
8157
|
+
index$j_Level as Level,
|
|
8158
|
+
index$j_Logger as Logger,
|
|
8159
|
+
index$j_parseLoggerOptions as parseLoggerOptions,
|
|
8145
8160
|
};
|
|
8146
8161
|
}
|
|
8147
8162
|
|
|
@@ -8373,27 +8388,27 @@ declare function isJsonObject(value: JsonValue): value is AnyJsonObject {
|
|
|
8373
8388
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8374
8389
|
}
|
|
8375
8390
|
|
|
8376
|
-
type index$
|
|
8377
|
-
declare const index$
|
|
8378
|
-
declare const index$
|
|
8379
|
-
type index$
|
|
8380
|
-
declare const index$
|
|
8381
|
-
type index$
|
|
8382
|
-
type index$
|
|
8383
|
-
type index$
|
|
8384
|
-
declare const index$
|
|
8385
|
-
declare const index$
|
|
8386
|
-
type index$
|
|
8387
|
-
declare const index$
|
|
8388
|
-
declare const index$
|
|
8389
|
-
declare const index$
|
|
8390
|
-
declare const index$
|
|
8391
|
-
declare const index$
|
|
8392
|
-
declare const index$
|
|
8393
|
-
declare const index$
|
|
8394
|
-
declare namespace index$
|
|
8395
|
-
export { index$
|
|
8396
|
-
export type { index$
|
|
8391
|
+
type index$i_AnyJsonObject = AnyJsonObject;
|
|
8392
|
+
declare const index$i_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
|
|
8393
|
+
declare const index$i_DEV_CONFIG: typeof DEV_CONFIG;
|
|
8394
|
+
type index$i_JipChainSpec = JipChainSpec;
|
|
8395
|
+
declare const index$i_JipChainSpec: typeof JipChainSpec;
|
|
8396
|
+
type index$i_JsonArray = JsonArray;
|
|
8397
|
+
type index$i_JsonValue = JsonValue;
|
|
8398
|
+
type index$i_KnownChainSpec = KnownChainSpec;
|
|
8399
|
+
declare const index$i_KnownChainSpec: typeof KnownChainSpec;
|
|
8400
|
+
declare const index$i_NODE_DEFAULTS: typeof NODE_DEFAULTS;
|
|
8401
|
+
type index$i_NodeConfiguration = NodeConfiguration;
|
|
8402
|
+
declare const index$i_NodeConfiguration: typeof NodeConfiguration;
|
|
8403
|
+
declare const index$i_deepMerge: typeof deepMerge;
|
|
8404
|
+
declare const index$i_isJsonObject: typeof isJsonObject;
|
|
8405
|
+
declare const index$i_knownChainSpecFromJson: typeof knownChainSpecFromJson;
|
|
8406
|
+
declare const index$i_loadConfig: typeof loadConfig;
|
|
8407
|
+
declare const index$i_parseBootnode: typeof parseBootnode;
|
|
8408
|
+
declare const index$i_processQuery: typeof processQuery;
|
|
8409
|
+
declare namespace index$i {
|
|
8410
|
+
export { index$i_DEFAULT_CONFIG as DEFAULT_CONFIG, index$i_DEV_CONFIG as DEV_CONFIG, index$i_JipChainSpec as JipChainSpec, index$i_KnownChainSpec as KnownChainSpec, index$i_NODE_DEFAULTS as NODE_DEFAULTS, index$i_NodeConfiguration as NodeConfiguration, index$i_deepMerge as deepMerge, index$i_isJsonObject as isJsonObject, index$i_knownChainSpecFromJson as knownChainSpecFromJson, index$i_loadConfig as loadConfig, logger$2 as logger, index$i_parseBootnode as parseBootnode, index$i_processQuery as processQuery };
|
|
8411
|
+
export type { index$i_AnyJsonObject as AnyJsonObject, index$i_JsonArray as JsonArray, index$i_JsonValue as JsonValue };
|
|
8397
8412
|
}
|
|
8398
8413
|
|
|
8399
8414
|
/**
|
|
@@ -9183,43 +9198,43 @@ declare const bitLookup = [
|
|
|
9183
9198
|
[0b00000000, 8],
|
|
9184
9199
|
];
|
|
9185
9200
|
|
|
9186
|
-
type index$
|
|
9187
|
-
declare const index$
|
|
9188
|
-
type index$
|
|
9189
|
-
declare const index$
|
|
9190
|
-
type index$
|
|
9191
|
-
type index$
|
|
9192
|
-
declare const index$
|
|
9193
|
-
type index$
|
|
9194
|
-
declare const index$
|
|
9195
|
-
type index$
|
|
9196
|
-
declare const index$
|
|
9197
|
-
declare const index$
|
|
9198
|
-
declare const index$
|
|
9199
|
-
type index$
|
|
9200
|
-
type index$
|
|
9201
|
-
declare const index$
|
|
9202
|
-
type index$
|
|
9203
|
-
type index$
|
|
9204
|
-
declare const index$
|
|
9205
|
-
type index$
|
|
9206
|
-
type index$
|
|
9207
|
-
type index$
|
|
9208
|
-
type index$
|
|
9209
|
-
declare const index$
|
|
9210
|
-
declare const index$
|
|
9211
|
-
declare const index$
|
|
9212
|
-
declare const index$
|
|
9213
|
-
declare const index$
|
|
9214
|
-
declare const index$
|
|
9215
|
-
declare const index$
|
|
9216
|
-
declare const index$
|
|
9217
|
-
declare const index$
|
|
9218
|
-
declare const index$
|
|
9219
|
-
declare const index$
|
|
9220
|
-
declare namespace index$
|
|
9221
|
-
export { index$
|
|
9222
|
-
export type { index$
|
|
9201
|
+
type index$h_BranchNode = BranchNode;
|
|
9202
|
+
declare const index$h_BranchNode: typeof BranchNode;
|
|
9203
|
+
type index$h_InMemoryTrie = InMemoryTrie;
|
|
9204
|
+
declare const index$h_InMemoryTrie: typeof InMemoryTrie;
|
|
9205
|
+
type index$h_InputKey = InputKey;
|
|
9206
|
+
type index$h_LeafNode = LeafNode;
|
|
9207
|
+
declare const index$h_LeafNode: typeof LeafNode;
|
|
9208
|
+
type index$h_NodeType = NodeType;
|
|
9209
|
+
declare const index$h_NodeType: typeof NodeType;
|
|
9210
|
+
type index$h_NodesDb = NodesDb;
|
|
9211
|
+
declare const index$h_NodesDb: typeof NodesDb;
|
|
9212
|
+
declare const index$h_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
|
|
9213
|
+
declare const index$h_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
|
|
9214
|
+
type index$h_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
|
|
9215
|
+
type index$h_TraversedPath = TraversedPath;
|
|
9216
|
+
declare const index$h_TraversedPath: typeof TraversedPath;
|
|
9217
|
+
type index$h_TrieHasher = TrieHasher;
|
|
9218
|
+
type index$h_TrieNode = TrieNode;
|
|
9219
|
+
declare const index$h_TrieNode: typeof TrieNode;
|
|
9220
|
+
type index$h_TrieNodeHash = TrieNodeHash;
|
|
9221
|
+
type index$h_TruncatedStateKey = TruncatedStateKey;
|
|
9222
|
+
type index$h_ValueHash = ValueHash;
|
|
9223
|
+
type index$h_WriteableNodesDb = WriteableNodesDb;
|
|
9224
|
+
declare const index$h_WriteableNodesDb: typeof WriteableNodesDb;
|
|
9225
|
+
declare const index$h_bitLookup: typeof bitLookup;
|
|
9226
|
+
declare const index$h_createSubtreeForBothLeaves: typeof createSubtreeForBothLeaves;
|
|
9227
|
+
declare const index$h_findNodeToReplace: typeof findNodeToReplace;
|
|
9228
|
+
declare const index$h_findSharedPrefix: typeof findSharedPrefix;
|
|
9229
|
+
declare const index$h_getBit: typeof getBit;
|
|
9230
|
+
declare const index$h_leafComparator: typeof leafComparator;
|
|
9231
|
+
declare const index$h_parseInputKey: typeof parseInputKey;
|
|
9232
|
+
declare const index$h_trieInsert: typeof trieInsert;
|
|
9233
|
+
declare const index$h_trieStringify: typeof trieStringify;
|
|
9234
|
+
declare const index$h_zero: typeof zero;
|
|
9235
|
+
declare namespace index$h {
|
|
9236
|
+
export { index$h_BranchNode as BranchNode, index$h_InMemoryTrie as InMemoryTrie, index$h_LeafNode as LeafNode, index$h_NodeType as NodeType, index$h_NodesDb as NodesDb, index$h_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$h_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$h_TraversedPath as TraversedPath, index$h_TrieNode as TrieNode, index$h_WriteableNodesDb as WriteableNodesDb, index$h_bitLookup as bitLookup, index$h_createSubtreeForBothLeaves as createSubtreeForBothLeaves, index$h_findNodeToReplace as findNodeToReplace, index$h_findSharedPrefix as findSharedPrefix, index$h_getBit as getBit, index$h_leafComparator as leafComparator, index$h_parseInputKey as parseInputKey, index$h_trieInsert as trieInsert, index$h_trieStringify as trieStringify, index$h_zero as zero };
|
|
9237
|
+
export type { index$h_InputKey as InputKey, StateKey$1 as StateKey, index$h_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$h_TrieHasher as TrieHasher, index$h_TrieNodeHash as TrieNodeHash, index$h_TruncatedStateKey as TruncatedStateKey, index$h_ValueHash as ValueHash };
|
|
9223
9238
|
}
|
|
9224
9239
|
|
|
9225
9240
|
/**
|
|
@@ -9286,7 +9301,7 @@ declare function accumulationOutputComparator(a: AccumulationOutput, b: Accumula
|
|
|
9286
9301
|
return Ordering.Greater;
|
|
9287
9302
|
}
|
|
9288
9303
|
|
|
9289
|
-
return
|
|
9304
|
+
return a.output.compare(b.output);
|
|
9290
9305
|
}
|
|
9291
9306
|
|
|
9292
9307
|
/**
|
|
@@ -9649,16 +9664,16 @@ declare class Mountain<H extends OpaqueHash> {
|
|
|
9649
9664
|
}
|
|
9650
9665
|
}
|
|
9651
9666
|
|
|
9652
|
-
type index$
|
|
9653
|
-
declare const index$
|
|
9654
|
-
type index$
|
|
9655
|
-
type index$
|
|
9656
|
-
type index$
|
|
9657
|
-
declare const index$
|
|
9658
|
-
declare const index$
|
|
9659
|
-
declare namespace index$
|
|
9660
|
-
export { index$
|
|
9661
|
-
export type { index$
|
|
9667
|
+
type index$g_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
|
|
9668
|
+
declare const index$g_MerkleMountainRange: typeof MerkleMountainRange;
|
|
9669
|
+
type index$g_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
|
|
9670
|
+
type index$g_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
|
|
9671
|
+
type index$g_Mountain<H extends OpaqueHash> = Mountain<H>;
|
|
9672
|
+
declare const index$g_Mountain: typeof Mountain;
|
|
9673
|
+
declare const index$g_SUPER_PEAK_STRING: typeof SUPER_PEAK_STRING;
|
|
9674
|
+
declare namespace index$g {
|
|
9675
|
+
export { index$g_MerkleMountainRange as MerkleMountainRange, index$g_Mountain as Mountain, index$g_SUPER_PEAK_STRING as SUPER_PEAK_STRING };
|
|
9676
|
+
export type { index$g_MmrHasher as MmrHasher, index$g_MmrPeaks as MmrPeaks };
|
|
9662
9677
|
}
|
|
9663
9678
|
|
|
9664
9679
|
/**
|
|
@@ -10785,6 +10800,7 @@ declare class UpdatePreimage {
|
|
|
10785
10800
|
preimage: PreimageItem;
|
|
10786
10801
|
// optionally set lookup history of that preimage to "available"
|
|
10787
10802
|
slot: TimeSlot | null;
|
|
10803
|
+
providedFor: ServiceId;
|
|
10788
10804
|
}
|
|
10789
10805
|
| {
|
|
10790
10806
|
kind: UpdatePreimageKind.Remove;
|
|
@@ -10798,11 +10814,20 @@ declare class UpdatePreimage {
|
|
|
10798
10814
|
) {}
|
|
10799
10815
|
|
|
10800
10816
|
/** A preimage is provided. We should update the lookuphistory and add the preimage to db. */
|
|
10801
|
-
static provide({
|
|
10817
|
+
static provide({
|
|
10818
|
+
preimage,
|
|
10819
|
+
slot,
|
|
10820
|
+
providedFor,
|
|
10821
|
+
}: {
|
|
10822
|
+
preimage: PreimageItem;
|
|
10823
|
+
slot: TimeSlot | null;
|
|
10824
|
+
providedFor: ServiceId;
|
|
10825
|
+
}) {
|
|
10802
10826
|
return new UpdatePreimage({
|
|
10803
10827
|
kind: UpdatePreimageKind.Provide,
|
|
10804
10828
|
preimage,
|
|
10805
10829
|
slot,
|
|
10830
|
+
providedFor,
|
|
10806
10831
|
});
|
|
10807
10832
|
}
|
|
10808
10833
|
|
|
@@ -11021,6 +11046,18 @@ declare class InMemoryService extends WithDebug implements Service {
|
|
|
11021
11046
|
};
|
|
11022
11047
|
}
|
|
11023
11048
|
|
|
11049
|
+
/** Return identical `InMemoryService` which does not share any references. */
|
|
11050
|
+
clone(): InMemoryService {
|
|
11051
|
+
return new InMemoryService(this.serviceId, {
|
|
11052
|
+
info: ServiceAccountInfo.create(this.data.info),
|
|
11053
|
+
preimages: HashDictionary.fromEntries(Array.from(this.data.preimages.entries())),
|
|
11054
|
+
lookupHistory: HashDictionary.fromEntries(
|
|
11055
|
+
Array.from(this.data.lookupHistory.entries()).map(([k, v]) => [k, v.slice()]),
|
|
11056
|
+
),
|
|
11057
|
+
storage: new Map(this.data.storage.entries()),
|
|
11058
|
+
});
|
|
11059
|
+
}
|
|
11060
|
+
|
|
11024
11061
|
/**
|
|
11025
11062
|
* Create a new in-memory service from another state service
|
|
11026
11063
|
* by copying all given entries.
|
|
@@ -11523,123 +11560,123 @@ type FieldNames<T> = {
|
|
|
11523
11560
|
[K in keyof T]: T[K] extends Function ? never : K;
|
|
11524
11561
|
}[keyof T];
|
|
11525
11562
|
|
|
11526
|
-
type index$
|
|
11527
|
-
type index$
|
|
11528
|
-
declare const index$
|
|
11529
|
-
type index$
|
|
11530
|
-
type index$
|
|
11531
|
-
type index$
|
|
11532
|
-
type index$
|
|
11533
|
-
type index$
|
|
11534
|
-
declare const index$
|
|
11535
|
-
type index$
|
|
11536
|
-
declare const index$
|
|
11537
|
-
type index$
|
|
11538
|
-
declare const index$
|
|
11539
|
-
type index$
|
|
11540
|
-
type index$
|
|
11541
|
-
declare const index$
|
|
11542
|
-
type index$
|
|
11543
|
-
declare const index$
|
|
11544
|
-
declare const index$
|
|
11545
|
-
declare const index$
|
|
11546
|
-
type index$
|
|
11547
|
-
type index$
|
|
11548
|
-
type index$
|
|
11549
|
-
type index$
|
|
11550
|
-
declare const index$
|
|
11551
|
-
type index$
|
|
11552
|
-
declare const index$
|
|
11553
|
-
type index$
|
|
11554
|
-
type index$
|
|
11555
|
-
declare const index$
|
|
11556
|
-
type index$
|
|
11557
|
-
type index$
|
|
11558
|
-
declare const index$
|
|
11559
|
-
type index$
|
|
11560
|
-
type index$
|
|
11561
|
-
declare const index$
|
|
11562
|
-
type index$
|
|
11563
|
-
type index$
|
|
11564
|
-
declare const index$
|
|
11565
|
-
type index$
|
|
11566
|
-
declare const index$
|
|
11567
|
-
type index$
|
|
11568
|
-
declare const index$
|
|
11569
|
-
type index$
|
|
11570
|
-
type index$
|
|
11571
|
-
type index$
|
|
11572
|
-
type index$
|
|
11573
|
-
declare const index$
|
|
11574
|
-
type index$
|
|
11575
|
-
type index$
|
|
11576
|
-
type index$
|
|
11577
|
-
declare const index$
|
|
11578
|
-
type index$
|
|
11579
|
-
declare const index$
|
|
11580
|
-
type index$
|
|
11581
|
-
type index$
|
|
11582
|
-
declare const index$
|
|
11583
|
-
type index$
|
|
11584
|
-
type index$
|
|
11585
|
-
type index$
|
|
11586
|
-
type index$
|
|
11587
|
-
declare const index$
|
|
11588
|
-
type index$
|
|
11589
|
-
type index$
|
|
11590
|
-
type index$
|
|
11591
|
-
type index$
|
|
11592
|
-
declare const index$
|
|
11593
|
-
type index$
|
|
11594
|
-
type index$
|
|
11595
|
-
declare const index$
|
|
11596
|
-
type index$
|
|
11597
|
-
type index$
|
|
11598
|
-
declare const index$
|
|
11599
|
-
type index$
|
|
11600
|
-
declare const index$
|
|
11601
|
-
type index$
|
|
11602
|
-
declare const index$
|
|
11603
|
-
type index$
|
|
11604
|
-
declare const index$
|
|
11605
|
-
type index$
|
|
11606
|
-
declare const index$
|
|
11607
|
-
type index$
|
|
11608
|
-
declare const index$
|
|
11609
|
-
type index$
|
|
11610
|
-
declare const index$
|
|
11611
|
-
type index$
|
|
11612
|
-
type index$
|
|
11613
|
-
declare const index$
|
|
11614
|
-
type index$
|
|
11615
|
-
type index$
|
|
11616
|
-
declare const index$
|
|
11617
|
-
type index$
|
|
11618
|
-
declare const index$
|
|
11619
|
-
declare const index$
|
|
11620
|
-
declare const index$
|
|
11621
|
-
declare const index$
|
|
11622
|
-
declare const index$
|
|
11623
|
-
declare const index$
|
|
11624
|
-
declare const index$
|
|
11625
|
-
declare const index$
|
|
11626
|
-
declare const index$
|
|
11627
|
-
declare const index$
|
|
11628
|
-
declare const index$
|
|
11629
|
-
declare const index$
|
|
11630
|
-
declare const index$
|
|
11631
|
-
declare const index$
|
|
11632
|
-
declare const index$
|
|
11633
|
-
declare const index$
|
|
11634
|
-
declare const index$
|
|
11635
|
-
declare const index$
|
|
11636
|
-
declare const index$
|
|
11637
|
-
declare const index$
|
|
11638
|
-
declare const index$
|
|
11639
|
-
declare const index$
|
|
11640
|
-
declare namespace index$
|
|
11641
|
-
export { index$
|
|
11642
|
-
export type { index$
|
|
11563
|
+
type index$f_AUTHORIZATION_QUEUE_SIZE = AUTHORIZATION_QUEUE_SIZE;
|
|
11564
|
+
type index$f_AccumulationOutput = AccumulationOutput;
|
|
11565
|
+
declare const index$f_AccumulationOutput: typeof AccumulationOutput;
|
|
11566
|
+
type index$f_AccumulationQueue = AccumulationQueue;
|
|
11567
|
+
type index$f_AccumulationQueueView = AccumulationQueueView;
|
|
11568
|
+
type index$f_AuthorizationPool = AuthorizationPool;
|
|
11569
|
+
type index$f_AuthorizationQueue = AuthorizationQueue;
|
|
11570
|
+
type index$f_AvailabilityAssignment = AvailabilityAssignment;
|
|
11571
|
+
declare const index$f_AvailabilityAssignment: typeof AvailabilityAssignment;
|
|
11572
|
+
type index$f_AvailabilityAssignmentsView = AvailabilityAssignmentsView;
|
|
11573
|
+
declare const index$f_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
|
|
11574
|
+
type index$f_BlockState = BlockState;
|
|
11575
|
+
declare const index$f_BlockState: typeof BlockState;
|
|
11576
|
+
type index$f_BlocksState = BlocksState;
|
|
11577
|
+
type index$f_CoreStatistics = CoreStatistics;
|
|
11578
|
+
declare const index$f_CoreStatistics: typeof CoreStatistics;
|
|
11579
|
+
type index$f_DisputesRecords = DisputesRecords;
|
|
11580
|
+
declare const index$f_DisputesRecords: typeof DisputesRecords;
|
|
11581
|
+
declare const index$f_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
|
|
11582
|
+
declare const index$f_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
|
|
11583
|
+
type index$f_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
|
|
11584
|
+
type index$f_EnumerableState = EnumerableState;
|
|
11585
|
+
type index$f_FieldNames<T> = FieldNames<T>;
|
|
11586
|
+
type index$f_InMemoryService = InMemoryService;
|
|
11587
|
+
declare const index$f_InMemoryService: typeof InMemoryService;
|
|
11588
|
+
type index$f_InMemoryState = InMemoryState;
|
|
11589
|
+
declare const index$f_InMemoryState: typeof InMemoryState;
|
|
11590
|
+
type index$f_InMemoryStateFields = InMemoryStateFields;
|
|
11591
|
+
type index$f_LookupHistoryItem = LookupHistoryItem;
|
|
11592
|
+
declare const index$f_LookupHistoryItem: typeof LookupHistoryItem;
|
|
11593
|
+
type index$f_LookupHistorySlots = LookupHistorySlots;
|
|
11594
|
+
type index$f_MAX_AUTH_POOL_SIZE = MAX_AUTH_POOL_SIZE;
|
|
11595
|
+
declare const index$f_MAX_LOOKUP_HISTORY_SLOTS: typeof MAX_LOOKUP_HISTORY_SLOTS;
|
|
11596
|
+
type index$f_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
|
|
11597
|
+
type index$f_NotYetAccumulatedReport = NotYetAccumulatedReport;
|
|
11598
|
+
declare const index$f_NotYetAccumulatedReport: typeof NotYetAccumulatedReport;
|
|
11599
|
+
type index$f_PerCore<T> = PerCore<T>;
|
|
11600
|
+
type index$f_PreimageItem = PreimageItem;
|
|
11601
|
+
declare const index$f_PreimageItem: typeof PreimageItem;
|
|
11602
|
+
type index$f_PrivilegedServices = PrivilegedServices;
|
|
11603
|
+
declare const index$f_PrivilegedServices: typeof PrivilegedServices;
|
|
11604
|
+
type index$f_RecentBlocks = RecentBlocks;
|
|
11605
|
+
declare const index$f_RecentBlocks: typeof RecentBlocks;
|
|
11606
|
+
type index$f_RecentBlocksView = RecentBlocksView;
|
|
11607
|
+
type index$f_RecentlyAccumulated = RecentlyAccumulated;
|
|
11608
|
+
type index$f_RecentlyAccumulatedView = RecentlyAccumulatedView;
|
|
11609
|
+
type index$f_SafroleData = SafroleData;
|
|
11610
|
+
declare const index$f_SafroleData: typeof SafroleData;
|
|
11611
|
+
type index$f_SafroleDataView = SafroleDataView;
|
|
11612
|
+
type index$f_SafroleSealingKeys = SafroleSealingKeys;
|
|
11613
|
+
type index$f_SafroleSealingKeysData = SafroleSealingKeysData;
|
|
11614
|
+
declare const index$f_SafroleSealingKeysData: typeof SafroleSealingKeysData;
|
|
11615
|
+
type index$f_SafroleSealingKeysKind = SafroleSealingKeysKind;
|
|
11616
|
+
declare const index$f_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
|
|
11617
|
+
type index$f_Service = Service;
|
|
11618
|
+
type index$f_ServiceAccountInfo = ServiceAccountInfo;
|
|
11619
|
+
declare const index$f_ServiceAccountInfo: typeof ServiceAccountInfo;
|
|
11620
|
+
type index$f_ServiceAccountInfoView = ServiceAccountInfoView;
|
|
11621
|
+
type index$f_ServiceData = ServiceData;
|
|
11622
|
+
type index$f_ServiceEntries = ServiceEntries;
|
|
11623
|
+
type index$f_ServiceStatistics = ServiceStatistics;
|
|
11624
|
+
declare const index$f_ServiceStatistics: typeof ServiceStatistics;
|
|
11625
|
+
type index$f_ServicesUpdate = ServicesUpdate;
|
|
11626
|
+
type index$f_State = State;
|
|
11627
|
+
type index$f_StateView = StateView;
|
|
11628
|
+
type index$f_StatisticsData = StatisticsData;
|
|
11629
|
+
declare const index$f_StatisticsData: typeof StatisticsData;
|
|
11630
|
+
type index$f_StatisticsDataView = StatisticsDataView;
|
|
11631
|
+
type index$f_StorageItem = StorageItem;
|
|
11632
|
+
declare const index$f_StorageItem: typeof StorageItem;
|
|
11633
|
+
type index$f_StorageKey = StorageKey;
|
|
11634
|
+
type index$f_UpdateError = UpdateError;
|
|
11635
|
+
declare const index$f_UpdateError: typeof UpdateError;
|
|
11636
|
+
type index$f_UpdatePreimage = UpdatePreimage;
|
|
11637
|
+
declare const index$f_UpdatePreimage: typeof UpdatePreimage;
|
|
11638
|
+
type index$f_UpdatePreimageKind = UpdatePreimageKind;
|
|
11639
|
+
declare const index$f_UpdatePreimageKind: typeof UpdatePreimageKind;
|
|
11640
|
+
type index$f_UpdateService = UpdateService;
|
|
11641
|
+
declare const index$f_UpdateService: typeof UpdateService;
|
|
11642
|
+
type index$f_UpdateServiceKind = UpdateServiceKind;
|
|
11643
|
+
declare const index$f_UpdateServiceKind: typeof UpdateServiceKind;
|
|
11644
|
+
type index$f_UpdateStorage = UpdateStorage;
|
|
11645
|
+
declare const index$f_UpdateStorage: typeof UpdateStorage;
|
|
11646
|
+
type index$f_UpdateStorageKind = UpdateStorageKind;
|
|
11647
|
+
declare const index$f_UpdateStorageKind: typeof UpdateStorageKind;
|
|
11648
|
+
type index$f_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
|
|
11649
|
+
type index$f_ValidatorData = ValidatorData;
|
|
11650
|
+
declare const index$f_ValidatorData: typeof ValidatorData;
|
|
11651
|
+
type index$f_ValidatorDataView = ValidatorDataView;
|
|
11652
|
+
type index$f_ValidatorStatistics = ValidatorStatistics;
|
|
11653
|
+
declare const index$f_ValidatorStatistics: typeof ValidatorStatistics;
|
|
11654
|
+
type index$f_WithStateView<V = StateView> = WithStateView<V>;
|
|
11655
|
+
declare const index$f_accumulationOutputComparator: typeof accumulationOutputComparator;
|
|
11656
|
+
declare const index$f_accumulationQueueCodec: typeof accumulationQueueCodec;
|
|
11657
|
+
declare const index$f_authPoolsCodec: typeof authPoolsCodec;
|
|
11658
|
+
declare const index$f_authQueuesCodec: typeof authQueuesCodec;
|
|
11659
|
+
declare const index$f_availabilityAssignmentsCodec: typeof availabilityAssignmentsCodec;
|
|
11660
|
+
declare const index$f_codecBandersnatchKey: typeof codecBandersnatchKey;
|
|
11661
|
+
declare const index$f_codecPerCore: typeof codecPerCore;
|
|
11662
|
+
declare const index$f_codecServiceId: typeof codecServiceId;
|
|
11663
|
+
declare const index$f_codecVarGas: typeof codecVarGas;
|
|
11664
|
+
declare const index$f_codecVarU16: typeof codecVarU16;
|
|
11665
|
+
declare const index$f_codecWithVersion: typeof codecWithVersion;
|
|
11666
|
+
declare const index$f_hashComparator: typeof hashComparator;
|
|
11667
|
+
declare const index$f_ignoreValueWithDefault: typeof ignoreValueWithDefault;
|
|
11668
|
+
declare const index$f_recentlyAccumulatedCodec: typeof recentlyAccumulatedCodec;
|
|
11669
|
+
declare const index$f_serviceDataCodec: typeof serviceDataCodec;
|
|
11670
|
+
declare const index$f_serviceEntriesCodec: typeof serviceEntriesCodec;
|
|
11671
|
+
declare const index$f_sortedSetCodec: typeof sortedSetCodec;
|
|
11672
|
+
declare const index$f_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
|
|
11673
|
+
declare const index$f_tryAsPerCore: typeof tryAsPerCore;
|
|
11674
|
+
declare const index$f_validatorsDataCodec: typeof validatorsDataCodec;
|
|
11675
|
+
declare const index$f_workReportsSortedSetCodec: typeof workReportsSortedSetCodec;
|
|
11676
|
+
declare const index$f_zeroSizeHint: typeof zeroSizeHint;
|
|
11677
|
+
declare namespace index$f {
|
|
11678
|
+
export { index$f_AccumulationOutput as AccumulationOutput, index$f_AvailabilityAssignment as AvailabilityAssignment, index$f_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$f_BlockState as BlockState, index$f_CoreStatistics as CoreStatistics, index$f_DisputesRecords as DisputesRecords, index$f_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$f_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$f_InMemoryService as InMemoryService, index$f_InMemoryState as InMemoryState, index$f_LookupHistoryItem as LookupHistoryItem, index$f_MAX_LOOKUP_HISTORY_SLOTS as MAX_LOOKUP_HISTORY_SLOTS, index$f_NotYetAccumulatedReport as NotYetAccumulatedReport, index$f_PreimageItem as PreimageItem, index$f_PrivilegedServices as PrivilegedServices, index$f_RecentBlocks as RecentBlocks, index$f_SafroleData as SafroleData, index$f_SafroleSealingKeysData as SafroleSealingKeysData, index$f_SafroleSealingKeysKind as SafroleSealingKeysKind, index$f_ServiceAccountInfo as ServiceAccountInfo, index$f_ServiceStatistics as ServiceStatistics, index$f_StatisticsData as StatisticsData, index$f_StorageItem as StorageItem, index$f_UpdateError as UpdateError, index$f_UpdatePreimage as UpdatePreimage, index$f_UpdatePreimageKind as UpdatePreimageKind, index$f_UpdateService as UpdateService, index$f_UpdateServiceKind as UpdateServiceKind, index$f_UpdateStorage as UpdateStorage, index$f_UpdateStorageKind as UpdateStorageKind, index$f_ValidatorData as ValidatorData, index$f_ValidatorStatistics as ValidatorStatistics, index$f_accumulationOutputComparator as accumulationOutputComparator, index$f_accumulationQueueCodec as accumulationQueueCodec, index$f_authPoolsCodec as authPoolsCodec, index$f_authQueuesCodec as authQueuesCodec, index$f_availabilityAssignmentsCodec as availabilityAssignmentsCodec, index$f_codecBandersnatchKey as codecBandersnatchKey, index$f_codecPerCore as codecPerCore, index$f_codecServiceId as codecServiceId, index$f_codecVarGas as codecVarGas, index$f_codecVarU16 as codecVarU16, index$f_codecWithVersion as codecWithVersion, index$f_hashComparator as hashComparator, index$f_ignoreValueWithDefault as ignoreValueWithDefault, index$f_recentlyAccumulatedCodec as recentlyAccumulatedCodec, index$f_serviceDataCodec as serviceDataCodec, index$f_serviceEntriesCodec as serviceEntriesCodec, index$f_sortedSetCodec as sortedSetCodec, index$f_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$f_tryAsPerCore as tryAsPerCore, index$f_validatorsDataCodec as validatorsDataCodec, index$f_workReportsSortedSetCodec as workReportsSortedSetCodec, index$f_zeroSizeHint as zeroSizeHint };
|
|
11679
|
+
export type { index$f_AUTHORIZATION_QUEUE_SIZE as AUTHORIZATION_QUEUE_SIZE, index$f_AccumulationQueue as AccumulationQueue, index$f_AccumulationQueueView as AccumulationQueueView, index$f_AuthorizationPool as AuthorizationPool, index$f_AuthorizationQueue as AuthorizationQueue, index$f_AvailabilityAssignmentsView as AvailabilityAssignmentsView, index$f_BlocksState as BlocksState, index$f_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$f_EnumerableState as EnumerableState, index$f_FieldNames as FieldNames, index$f_InMemoryStateFields as InMemoryStateFields, index$f_LookupHistorySlots as LookupHistorySlots, index$f_MAX_AUTH_POOL_SIZE as MAX_AUTH_POOL_SIZE, index$f_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$f_PerCore as PerCore, index$f_RecentBlocksView as RecentBlocksView, index$f_RecentlyAccumulated as RecentlyAccumulated, index$f_RecentlyAccumulatedView as RecentlyAccumulatedView, index$f_SafroleDataView as SafroleDataView, index$f_SafroleSealingKeys as SafroleSealingKeys, index$f_Service as Service, index$f_ServiceAccountInfoView as ServiceAccountInfoView, index$f_ServiceData as ServiceData, index$f_ServiceEntries as ServiceEntries, index$f_ServicesUpdate as ServicesUpdate, index$f_State as State, index$f_StateView as StateView, index$f_StatisticsDataView as StatisticsDataView, index$f_StorageKey as StorageKey, index$f_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES, index$f_ValidatorDataView as ValidatorDataView, index$f_WithStateView as WithStateView };
|
|
11643
11680
|
}
|
|
11644
11681
|
|
|
11645
11682
|
type StateKey = Opaque<OpaqueHash, "stateKey">;
|
|
@@ -12108,7 +12145,6 @@ declare function* serializeRemovedServices(servicesRemoved: ServiceId[] | undefi
|
|
|
12108
12145
|
return;
|
|
12109
12146
|
}
|
|
12110
12147
|
for (const serviceId of servicesRemoved) {
|
|
12111
|
-
// TODO [ToDr] what about all data associated with a service?
|
|
12112
12148
|
const codec = serialize.serviceData(serviceId);
|
|
12113
12149
|
yield [StateEntryUpdateAction.Remove, codec.key, EMPTY_BLOB];
|
|
12114
12150
|
}
|
|
@@ -12739,47 +12775,47 @@ declare function loadState(spec: ChainSpec, blake2b: Blake2b, entries: Iterable<
|
|
|
12739
12775
|
* hashmap of `key -> value` entries.
|
|
12740
12776
|
*/
|
|
12741
12777
|
|
|
12742
|
-
declare const index$
|
|
12743
|
-
type index$
|
|
12744
|
-
type index$
|
|
12745
|
-
type index$
|
|
12746
|
-
type index$
|
|
12747
|
-
declare const index$
|
|
12748
|
-
type index$
|
|
12749
|
-
declare const index$
|
|
12750
|
-
type index$
|
|
12751
|
-
type index$
|
|
12752
|
-
declare const index$
|
|
12753
|
-
type index$
|
|
12754
|
-
type index$
|
|
12755
|
-
declare const index$
|
|
12756
|
-
type index$
|
|
12757
|
-
type index$
|
|
12758
|
-
declare const index$
|
|
12759
|
-
type index$
|
|
12760
|
-
type index$
|
|
12761
|
-
declare const index$
|
|
12762
|
-
declare const index$
|
|
12763
|
-
declare const index$
|
|
12764
|
-
declare const index$
|
|
12765
|
-
declare const index$
|
|
12766
|
-
declare const index$
|
|
12767
|
-
declare const index$
|
|
12768
|
-
declare const index$
|
|
12769
|
-
declare const index$
|
|
12770
|
-
declare const index$
|
|
12771
|
-
import index$
|
|
12772
|
-
declare const index$
|
|
12773
|
-
declare const index$
|
|
12774
|
-
declare const index$
|
|
12775
|
-
declare const index$
|
|
12776
|
-
declare const index$
|
|
12777
|
-
declare const index$
|
|
12778
|
-
declare const index$
|
|
12779
|
-
import index$
|
|
12780
|
-
declare namespace index$
|
|
12781
|
-
export { index$
|
|
12782
|
-
export type { index$
|
|
12778
|
+
declare const index$e_EMPTY_BLOB: typeof EMPTY_BLOB;
|
|
12779
|
+
type index$e_EncodeFun = EncodeFun;
|
|
12780
|
+
type index$e_KeyAndCodec<T> = KeyAndCodec<T>;
|
|
12781
|
+
type index$e_KeyAndCodecWithView<T, V> = KeyAndCodecWithView<T, V>;
|
|
12782
|
+
type index$e_SerializedService = SerializedService;
|
|
12783
|
+
declare const index$e_SerializedService: typeof SerializedService;
|
|
12784
|
+
type index$e_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
|
|
12785
|
+
declare const index$e_SerializedState: typeof SerializedState;
|
|
12786
|
+
type index$e_SerializedStateBackend = SerializedStateBackend;
|
|
12787
|
+
type index$e_SerializedStateView<T extends SerializedStateBackend> = SerializedStateView<T>;
|
|
12788
|
+
declare const index$e_SerializedStateView: typeof SerializedStateView;
|
|
12789
|
+
type index$e_StateCodec<T, V = T> = StateCodec<T, V>;
|
|
12790
|
+
type index$e_StateEntries = StateEntries;
|
|
12791
|
+
declare const index$e_StateEntries: typeof StateEntries;
|
|
12792
|
+
type index$e_StateEntryUpdate = StateEntryUpdate;
|
|
12793
|
+
type index$e_StateEntryUpdateAction = StateEntryUpdateAction;
|
|
12794
|
+
declare const index$e_StateEntryUpdateAction: typeof StateEntryUpdateAction;
|
|
12795
|
+
type index$e_StateKey = StateKey;
|
|
12796
|
+
type index$e_StateKeyIdx = StateKeyIdx;
|
|
12797
|
+
declare const index$e_StateKeyIdx: typeof StateKeyIdx;
|
|
12798
|
+
declare const index$e_TYPICAL_STATE_ITEMS: typeof TYPICAL_STATE_ITEMS;
|
|
12799
|
+
declare const index$e_TYPICAL_STATE_ITEM_LEN: typeof TYPICAL_STATE_ITEM_LEN;
|
|
12800
|
+
declare const index$e_U32_BYTES: typeof U32_BYTES;
|
|
12801
|
+
declare const index$e_binaryMerkleization: typeof binaryMerkleization;
|
|
12802
|
+
declare const index$e_convertInMemoryStateToDictionary: typeof convertInMemoryStateToDictionary;
|
|
12803
|
+
declare const index$e_dumpCodec: typeof dumpCodec;
|
|
12804
|
+
declare const index$e_getSafroleData: typeof getSafroleData;
|
|
12805
|
+
declare const index$e_legacyServiceNested: typeof legacyServiceNested;
|
|
12806
|
+
declare const index$e_loadState: typeof loadState;
|
|
12807
|
+
import index$e_serialize = serialize;
|
|
12808
|
+
declare const index$e_serializeBasicKeys: typeof serializeBasicKeys;
|
|
12809
|
+
declare const index$e_serializePreimages: typeof serializePreimages;
|
|
12810
|
+
declare const index$e_serializeRemovedServices: typeof serializeRemovedServices;
|
|
12811
|
+
declare const index$e_serializeServiceUpdates: typeof serializeServiceUpdates;
|
|
12812
|
+
declare const index$e_serializeStateUpdate: typeof serializeStateUpdate;
|
|
12813
|
+
declare const index$e_serializeStorage: typeof serializeStorage;
|
|
12814
|
+
declare const index$e_stateEntriesSequenceCodec: typeof stateEntriesSequenceCodec;
|
|
12815
|
+
import index$e_stateKeys = stateKeys;
|
|
12816
|
+
declare namespace index$e {
|
|
12817
|
+
export { index$e_EMPTY_BLOB as EMPTY_BLOB, index$e_SerializedService as SerializedService, index$e_SerializedState as SerializedState, index$e_SerializedStateView as SerializedStateView, index$e_StateEntries as StateEntries, index$e_StateEntryUpdateAction as StateEntryUpdateAction, index$e_StateKeyIdx as StateKeyIdx, index$e_TYPICAL_STATE_ITEMS as TYPICAL_STATE_ITEMS, index$e_TYPICAL_STATE_ITEM_LEN as TYPICAL_STATE_ITEM_LEN, index$e_U32_BYTES as U32_BYTES, index$e_binaryMerkleization as binaryMerkleization, index$e_convertInMemoryStateToDictionary as convertInMemoryStateToDictionary, index$e_dumpCodec as dumpCodec, index$e_getSafroleData as getSafroleData, index$e_legacyServiceNested as legacyServiceNested, index$e_loadState as loadState, index$e_serialize as serialize, index$e_serializeBasicKeys as serializeBasicKeys, index$e_serializePreimages as serializePreimages, index$e_serializeRemovedServices as serializeRemovedServices, index$e_serializeServiceUpdates as serializeServiceUpdates, index$e_serializeStateUpdate as serializeStateUpdate, index$e_serializeStorage as serializeStorage, index$e_stateEntriesSequenceCodec as stateEntriesSequenceCodec, index$e_stateKeys as stateKeys };
|
|
12818
|
+
export type { index$e_EncodeFun as EncodeFun, index$e_KeyAndCodec as KeyAndCodec, index$e_KeyAndCodecWithView as KeyAndCodecWithView, index$e_SerializedStateBackend as SerializedStateBackend, index$e_StateCodec as StateCodec, index$e_StateEntryUpdate as StateEntryUpdate, index$e_StateKey as StateKey };
|
|
12783
12819
|
}
|
|
12784
12820
|
|
|
12785
12821
|
/** Error during `LeafDb` creation. */
|
|
@@ -13131,31 +13167,31 @@ declare class InMemorySerializedStates implements StatesDb<SerializedState<LeafD
|
|
|
13131
13167
|
async close() {}
|
|
13132
13168
|
}
|
|
13133
13169
|
|
|
13134
|
-
type index$
|
|
13135
|
-
type index$
|
|
13136
|
-
declare const index$
|
|
13137
|
-
type index$
|
|
13138
|
-
declare const index$
|
|
13139
|
-
type index$
|
|
13140
|
-
declare const index$
|
|
13141
|
-
type index$
|
|
13142
|
-
type index$
|
|
13143
|
-
declare const index$
|
|
13144
|
-
type index$
|
|
13145
|
-
declare const index$
|
|
13146
|
-
type index$
|
|
13147
|
-
type index$
|
|
13148
|
-
declare const index$
|
|
13149
|
-
type index$
|
|
13150
|
-
type index$
|
|
13151
|
-
type index$
|
|
13152
|
-
declare const index$
|
|
13153
|
-
type index$
|
|
13154
|
-
type index$
|
|
13155
|
-
declare const index$
|
|
13156
|
-
declare namespace index$
|
|
13157
|
-
export { index$
|
|
13158
|
-
export type { index$
|
|
13170
|
+
type index$d_BlocksDb = BlocksDb;
|
|
13171
|
+
type index$d_InMemoryBlocks = InMemoryBlocks;
|
|
13172
|
+
declare const index$d_InMemoryBlocks: typeof InMemoryBlocks;
|
|
13173
|
+
type index$d_InMemorySerializedStates = InMemorySerializedStates;
|
|
13174
|
+
declare const index$d_InMemorySerializedStates: typeof InMemorySerializedStates;
|
|
13175
|
+
type index$d_InMemoryStates = InMemoryStates;
|
|
13176
|
+
declare const index$d_InMemoryStates: typeof InMemoryStates;
|
|
13177
|
+
type index$d_InitStatesDb<T = State> = InitStatesDb<T>;
|
|
13178
|
+
type index$d_LeafDb = LeafDb;
|
|
13179
|
+
declare const index$d_LeafDb: typeof LeafDb;
|
|
13180
|
+
type index$d_LeafDbError = LeafDbError;
|
|
13181
|
+
declare const index$d_LeafDbError: typeof LeafDbError;
|
|
13182
|
+
type index$d_Lookup = Lookup;
|
|
13183
|
+
type index$d_LookupKind = LookupKind;
|
|
13184
|
+
declare const index$d_LookupKind: typeof LookupKind;
|
|
13185
|
+
type index$d_RootDb<TBlocks = BlocksDb, TStates = StatesDb> = RootDb<TBlocks, TStates>;
|
|
13186
|
+
type index$d_SerializedStatesDb = SerializedStatesDb;
|
|
13187
|
+
type index$d_StateUpdateError = StateUpdateError;
|
|
13188
|
+
declare const index$d_StateUpdateError: typeof StateUpdateError;
|
|
13189
|
+
type index$d_StatesDb<T extends State = State> = StatesDb<T>;
|
|
13190
|
+
type index$d_ValuesDb = ValuesDb;
|
|
13191
|
+
declare const index$d_updateLeafs: typeof updateLeafs;
|
|
13192
|
+
declare namespace index$d {
|
|
13193
|
+
export { index$d_InMemoryBlocks as InMemoryBlocks, index$d_InMemorySerializedStates as InMemorySerializedStates, index$d_InMemoryStates as InMemoryStates, index$d_LeafDb as LeafDb, index$d_LeafDbError as LeafDbError, index$d_LookupKind as LookupKind, index$d_StateUpdateError as StateUpdateError, index$d_updateLeafs as updateLeafs };
|
|
13194
|
+
export type { index$d_BlocksDb as BlocksDb, index$d_InitStatesDb as InitStatesDb, index$d_Lookup as Lookup, index$d_RootDb as RootDb, index$d_SerializedStatesDb as SerializedStatesDb, index$d_StatesDb as StatesDb, index$d_ValuesDb as ValuesDb };
|
|
13159
13195
|
}
|
|
13160
13196
|
|
|
13161
13197
|
/**
|
|
@@ -13577,31 +13613,31 @@ declare const initEc = async () => {
|
|
|
13577
13613
|
await init.reedSolomon();
|
|
13578
13614
|
};
|
|
13579
13615
|
|
|
13580
|
-
declare const index$
|
|
13581
|
-
declare const index$
|
|
13582
|
-
type index$
|
|
13583
|
-
type index$
|
|
13584
|
-
type index$
|
|
13585
|
-
declare const index$
|
|
13586
|
-
type index$
|
|
13587
|
-
declare const index$
|
|
13588
|
-
declare const index$
|
|
13589
|
-
declare const index$
|
|
13590
|
-
declare const index$
|
|
13591
|
-
declare const index$
|
|
13592
|
-
declare const index$
|
|
13593
|
-
declare const index$
|
|
13594
|
-
declare const index$
|
|
13595
|
-
declare const index$
|
|
13596
|
-
declare const index$
|
|
13597
|
-
declare const index$
|
|
13598
|
-
declare const index$
|
|
13599
|
-
declare const index$
|
|
13600
|
-
declare const index$
|
|
13601
|
-
declare const index$
|
|
13602
|
-
declare namespace index$
|
|
13603
|
-
export { index$
|
|
13604
|
-
export type { index$
|
|
13616
|
+
declare const index$c_HALF_POINT_SIZE: typeof HALF_POINT_SIZE;
|
|
13617
|
+
declare const index$c_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
|
|
13618
|
+
type index$c_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
|
|
13619
|
+
type index$c_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
|
|
13620
|
+
type index$c_PIECE_SIZE = PIECE_SIZE;
|
|
13621
|
+
declare const index$c_POINT_ALIGNMENT: typeof POINT_ALIGNMENT;
|
|
13622
|
+
type index$c_POINT_LENGTH = POINT_LENGTH;
|
|
13623
|
+
declare const index$c_checkConsistency: typeof checkConsistency;
|
|
13624
|
+
declare const index$c_chunkingFunction: typeof chunkingFunction;
|
|
13625
|
+
declare const index$c_chunksToShards: typeof chunksToShards;
|
|
13626
|
+
declare const index$c_decodeData: typeof decodeData;
|
|
13627
|
+
declare const index$c_decodeDataAndTrim: typeof decodeDataAndTrim;
|
|
13628
|
+
declare const index$c_decodePiece: typeof decodePiece;
|
|
13629
|
+
declare const index$c_encodePoints: typeof encodePoints;
|
|
13630
|
+
declare const index$c_initEc: typeof initEc;
|
|
13631
|
+
declare const index$c_join: typeof join;
|
|
13632
|
+
declare const index$c_lace: typeof lace;
|
|
13633
|
+
declare const index$c_padAndEncodeData: typeof padAndEncodeData;
|
|
13634
|
+
declare const index$c_shardsToChunks: typeof shardsToChunks;
|
|
13635
|
+
declare const index$c_split: typeof split;
|
|
13636
|
+
declare const index$c_transpose: typeof transpose;
|
|
13637
|
+
declare const index$c_unzip: typeof unzip;
|
|
13638
|
+
declare namespace index$c {
|
|
13639
|
+
export { index$c_HALF_POINT_SIZE as HALF_POINT_SIZE, index$c_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$c_POINT_ALIGNMENT as POINT_ALIGNMENT, index$c_checkConsistency as checkConsistency, index$c_chunkingFunction as chunkingFunction, index$c_chunksToShards as chunksToShards, index$c_decodeData as decodeData, index$c_decodeDataAndTrim as decodeDataAndTrim, index$c_decodePiece as decodePiece, index$c_encodePoints as encodePoints, index$c_initEc as initEc, index$c_join as join, index$c_lace as lace, index$c_padAndEncodeData as padAndEncodeData, index$c_shardsToChunks as shardsToChunks, index$c_split as split, index$c_transpose as transpose, index$c_unzip as unzip };
|
|
13640
|
+
export type { index$c_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$c_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$c_PIECE_SIZE as PIECE_SIZE, index$c_POINT_LENGTH as POINT_LENGTH };
|
|
13605
13641
|
}
|
|
13606
13642
|
|
|
13607
13643
|
/** A per-client handler of incoming socket messages. */
|
|
@@ -14104,45 +14140,45 @@ declare class FuzzTarget implements IpcHandler {
|
|
|
14104
14140
|
}
|
|
14105
14141
|
}
|
|
14106
14142
|
|
|
14107
|
-
type index$
|
|
14108
|
-
type index$
|
|
14109
|
-
declare const index$
|
|
14110
|
-
type index$
|
|
14111
|
-
declare const index$
|
|
14112
|
-
type index$
|
|
14113
|
-
declare const index$
|
|
14114
|
-
type index$
|
|
14115
|
-
type index$
|
|
14116
|
-
declare const index$
|
|
14117
|
-
type index$
|
|
14118
|
-
type index$
|
|
14119
|
-
declare const index$
|
|
14120
|
-
type index$
|
|
14121
|
-
declare const index$
|
|
14122
|
-
type index$
|
|
14123
|
-
type index$
|
|
14124
|
-
type index$
|
|
14125
|
-
declare const index$
|
|
14126
|
-
type index$
|
|
14127
|
-
declare const index$
|
|
14128
|
-
type index$
|
|
14129
|
-
type index$
|
|
14130
|
-
declare const index$
|
|
14131
|
-
declare const index$
|
|
14132
|
-
declare const index$
|
|
14133
|
-
declare const index$
|
|
14134
|
-
declare const index$
|
|
14135
|
-
declare const index$
|
|
14136
|
-
declare namespace index$
|
|
14137
|
-
export { index$
|
|
14138
|
-
export type { index$
|
|
14143
|
+
type index$b_Ancestry = Ancestry;
|
|
14144
|
+
type index$b_AncestryItem = AncestryItem;
|
|
14145
|
+
declare const index$b_AncestryItem: typeof AncestryItem;
|
|
14146
|
+
type index$b_ErrorMessage = ErrorMessage;
|
|
14147
|
+
declare const index$b_ErrorMessage: typeof ErrorMessage;
|
|
14148
|
+
type index$b_Features = Features;
|
|
14149
|
+
declare const index$b_Features: typeof Features;
|
|
14150
|
+
type index$b_FuzzMessageHandler = FuzzMessageHandler;
|
|
14151
|
+
type index$b_FuzzTarget = FuzzTarget;
|
|
14152
|
+
declare const index$b_FuzzTarget: typeof FuzzTarget;
|
|
14153
|
+
type index$b_GetState = GetState;
|
|
14154
|
+
type index$b_Initialize = Initialize;
|
|
14155
|
+
declare const index$b_Initialize: typeof Initialize;
|
|
14156
|
+
type index$b_KeyValue = KeyValue;
|
|
14157
|
+
declare const index$b_KeyValue: typeof KeyValue;
|
|
14158
|
+
type index$b_Message = Message;
|
|
14159
|
+
type index$b_MessageData = MessageData;
|
|
14160
|
+
type index$b_MessageType = MessageType;
|
|
14161
|
+
declare const index$b_MessageType: typeof MessageType;
|
|
14162
|
+
type index$b_PeerInfo = PeerInfo;
|
|
14163
|
+
declare const index$b_PeerInfo: typeof PeerInfo;
|
|
14164
|
+
type index$b_StateRoot = StateRoot;
|
|
14165
|
+
type index$b_Version = Version;
|
|
14166
|
+
declare const index$b_Version: typeof Version;
|
|
14167
|
+
declare const index$b_ancestryCodec: typeof ancestryCodec;
|
|
14168
|
+
declare const index$b_getStateCodec: typeof getStateCodec;
|
|
14169
|
+
declare const index$b_messageCodec: typeof messageCodec;
|
|
14170
|
+
declare const index$b_stateCodec: typeof stateCodec;
|
|
14171
|
+
declare const index$b_stateRootCodec: typeof stateRootCodec;
|
|
14172
|
+
declare namespace index$b {
|
|
14173
|
+
export { index$b_AncestryItem as AncestryItem, index$b_ErrorMessage as ErrorMessage, index$b_Features as Features, index$b_FuzzTarget as FuzzTarget, index$b_Initialize as Initialize, index$b_KeyValue as KeyValue, index$b_MessageType as MessageType, index$b_PeerInfo as PeerInfo, index$b_Version as Version, index$b_ancestryCodec as ancestryCodec, index$b_getStateCodec as getStateCodec, logger$1 as logger, index$b_messageCodec as messageCodec, index$b_stateCodec as stateCodec, index$b_stateRootCodec as stateRootCodec };
|
|
14174
|
+
export type { index$b_Ancestry as Ancestry, index$b_FuzzMessageHandler as FuzzMessageHandler, index$b_GetState as GetState, index$b_Message as Message, index$b_MessageData as MessageData, index$b_StateRoot as StateRoot };
|
|
14139
14175
|
}
|
|
14140
14176
|
|
|
14141
|
-
type index$
|
|
14142
|
-
type index$
|
|
14143
|
-
declare namespace index$
|
|
14144
|
-
export { index$
|
|
14145
|
-
export type { index$
|
|
14177
|
+
type index$a_IpcHandler = IpcHandler;
|
|
14178
|
+
type index$a_IpcSender = IpcSender;
|
|
14179
|
+
declare namespace index$a {
|
|
14180
|
+
export { index$b as v1 };
|
|
14181
|
+
export type { index$a_IpcHandler as IpcHandler, index$a_IpcSender as IpcSender };
|
|
14146
14182
|
}
|
|
14147
14183
|
|
|
14148
14184
|
/** Size of the transfer memo. */
|
|
@@ -14243,13 +14279,6 @@ declare enum ForgetPreimageError {
|
|
|
14243
14279
|
|
|
14244
14280
|
/**
|
|
14245
14281
|
* Errors that may occur when the transfer is invoked.
|
|
14246
|
-
*
|
|
14247
|
-
* TODO [ToDr] Since I don't fully understand yet which of these
|
|
14248
|
-
* could be checked directly in the host call (i.e. if we will
|
|
14249
|
-
* have access to the service account state there) for now I keep
|
|
14250
|
-
* them safely in the `AccumulationPartialState` implementation.
|
|
14251
|
-
* However, if possible, these should be moved directly to the
|
|
14252
|
-
* host call implementation.
|
|
14253
14282
|
*/
|
|
14254
14283
|
declare enum TransferError {
|
|
14255
14284
|
/** The destination service does not exist. */
|
|
@@ -15434,25 +15463,25 @@ declare function getRegisters(argsLength: number) {
|
|
|
15434
15463
|
return regs;
|
|
15435
15464
|
}
|
|
15436
15465
|
|
|
15437
|
-
type index$
|
|
15438
|
-
declare const index$
|
|
15439
|
-
declare const index$
|
|
15440
|
-
type index$
|
|
15441
|
-
declare const index$
|
|
15442
|
-
type index$
|
|
15443
|
-
declare const index$
|
|
15444
|
-
declare const index$
|
|
15445
|
-
declare const index$
|
|
15446
|
-
declare const index$
|
|
15447
|
-
declare namespace index$
|
|
15466
|
+
type index$9_MemorySegment = MemorySegment;
|
|
15467
|
+
declare const index$9_MemorySegment: typeof MemorySegment;
|
|
15468
|
+
declare const index$9_NO_OF_REGISTERS: typeof NO_OF_REGISTERS;
|
|
15469
|
+
type index$9_SpiMemory = SpiMemory;
|
|
15470
|
+
declare const index$9_SpiMemory: typeof SpiMemory;
|
|
15471
|
+
type index$9_SpiProgram = SpiProgram;
|
|
15472
|
+
declare const index$9_SpiProgram: typeof SpiProgram;
|
|
15473
|
+
declare const index$9_decodeStandardProgram: typeof decodeStandardProgram;
|
|
15474
|
+
declare const index$9_getMemorySegment: typeof getMemorySegment;
|
|
15475
|
+
declare const index$9_getRegisters: typeof getRegisters;
|
|
15476
|
+
declare namespace index$9 {
|
|
15448
15477
|
export {
|
|
15449
|
-
index$
|
|
15450
|
-
index$
|
|
15451
|
-
index$
|
|
15452
|
-
index$
|
|
15453
|
-
index$
|
|
15454
|
-
index$
|
|
15455
|
-
index$
|
|
15478
|
+
index$9_MemorySegment as MemorySegment,
|
|
15479
|
+
index$9_NO_OF_REGISTERS as NO_OF_REGISTERS,
|
|
15480
|
+
index$9_SpiMemory as SpiMemory,
|
|
15481
|
+
index$9_SpiProgram as SpiProgram,
|
|
15482
|
+
index$9_decodeStandardProgram as decodeStandardProgram,
|
|
15483
|
+
index$9_getMemorySegment as getMemorySegment,
|
|
15484
|
+
index$9_getRegisters as getRegisters,
|
|
15456
15485
|
};
|
|
15457
15486
|
}
|
|
15458
15487
|
|
|
@@ -15510,13 +15539,13 @@ declare function extractCodeAndMetadata(blobWithMetadata: Uint8Array) {
|
|
|
15510
15539
|
return { metadata, code };
|
|
15511
15540
|
}
|
|
15512
15541
|
|
|
15513
|
-
type index$
|
|
15514
|
-
declare const index$
|
|
15515
|
-
declare const index$
|
|
15516
|
-
declare namespace index$
|
|
15542
|
+
type index$8_Program = Program;
|
|
15543
|
+
declare const index$8_Program: typeof Program;
|
|
15544
|
+
declare const index$8_extractCodeAndMetadata: typeof extractCodeAndMetadata;
|
|
15545
|
+
declare namespace index$8 {
|
|
15517
15546
|
export {
|
|
15518
|
-
index$
|
|
15519
|
-
index$
|
|
15547
|
+
index$8_Program as Program,
|
|
15548
|
+
index$8_extractCodeAndMetadata as extractCodeAndMetadata,
|
|
15520
15549
|
};
|
|
15521
15550
|
}
|
|
15522
15551
|
|
|
@@ -18569,24 +18598,24 @@ declare class Interpreter implements IPvmInterpreter {
|
|
|
18569
18598
|
}
|
|
18570
18599
|
}
|
|
18571
18600
|
|
|
18572
|
-
type index$
|
|
18573
|
-
declare const index$
|
|
18574
|
-
type index$
|
|
18575
|
-
type index$
|
|
18576
|
-
declare const index$
|
|
18577
|
-
type index$
|
|
18578
|
-
declare const index$
|
|
18579
|
-
type index$
|
|
18580
|
-
type index$
|
|
18581
|
-
declare const index$
|
|
18582
|
-
type index$
|
|
18583
|
-
declare const index$
|
|
18584
|
-
declare const index$
|
|
18585
|
-
declare const index$
|
|
18586
|
-
declare const index$
|
|
18587
|
-
declare namespace index$
|
|
18588
|
-
export { index$
|
|
18589
|
-
export type { index$
|
|
18601
|
+
type index$7_Interpreter = Interpreter;
|
|
18602
|
+
declare const index$7_Interpreter: typeof Interpreter;
|
|
18603
|
+
type index$7_InterpreterOptions = InterpreterOptions;
|
|
18604
|
+
type index$7_Memory = Memory;
|
|
18605
|
+
declare const index$7_Memory: typeof Memory;
|
|
18606
|
+
type index$7_MemoryBuilder = MemoryBuilder;
|
|
18607
|
+
declare const index$7_MemoryBuilder: typeof MemoryBuilder;
|
|
18608
|
+
type index$7_MemoryIndex = MemoryIndex;
|
|
18609
|
+
type index$7_Registers = Registers;
|
|
18610
|
+
declare const index$7_Registers: typeof Registers;
|
|
18611
|
+
type index$7_SbrkIndex = SbrkIndex;
|
|
18612
|
+
declare const index$7_gasCounter: typeof gasCounter;
|
|
18613
|
+
declare const index$7_logger: typeof logger;
|
|
18614
|
+
declare const index$7_tryAsMemoryIndex: typeof tryAsMemoryIndex;
|
|
18615
|
+
declare const index$7_tryAsSbrkIndex: typeof tryAsSbrkIndex;
|
|
18616
|
+
declare namespace index$7 {
|
|
18617
|
+
export { index$7_Interpreter as Interpreter, index$7_Memory as Memory, index$7_MemoryBuilder as MemoryBuilder, index$7_Registers as Registers, index$7_gasCounter as gasCounter, index$7_logger as logger, index$7_tryAsMemoryIndex as tryAsMemoryIndex, index$7_tryAsSbrkIndex as tryAsSbrkIndex };
|
|
18618
|
+
export type { index$7_InterpreterOptions as InterpreterOptions, index$7_MemoryIndex as MemoryIndex, index$7_SbrkIndex as SbrkIndex };
|
|
18590
18619
|
}
|
|
18591
18620
|
|
|
18592
18621
|
type ResolveFn = (pvm: IPvmInterpreter) => void;
|
|
@@ -18772,18 +18801,18 @@ declare class HostCalls {
|
|
|
18772
18801
|
}
|
|
18773
18802
|
}
|
|
18774
18803
|
|
|
18775
|
-
type index$
|
|
18776
|
-
type index$
|
|
18777
|
-
declare const index$
|
|
18778
|
-
type index$
|
|
18779
|
-
declare const index$
|
|
18780
|
-
type index$
|
|
18781
|
-
declare const index$
|
|
18782
|
-
declare const index$
|
|
18783
|
-
declare const index$
|
|
18784
|
-
declare namespace index$
|
|
18785
|
-
export { index$
|
|
18786
|
-
export type { index$
|
|
18804
|
+
type index$6_HostCallHandler = HostCallHandler;
|
|
18805
|
+
type index$6_HostCallMemory = HostCallMemory;
|
|
18806
|
+
declare const index$6_HostCallMemory: typeof HostCallMemory;
|
|
18807
|
+
type index$6_HostCallRegisters = HostCallRegisters;
|
|
18808
|
+
declare const index$6_HostCallRegisters: typeof HostCallRegisters;
|
|
18809
|
+
type index$6_PvmExecution = PvmExecution;
|
|
18810
|
+
declare const index$6_PvmExecution: typeof PvmExecution;
|
|
18811
|
+
declare const index$6_traceRegisters: typeof traceRegisters;
|
|
18812
|
+
declare const index$6_tryAsHostCallIndex: typeof tryAsHostCallIndex;
|
|
18813
|
+
declare namespace index$6 {
|
|
18814
|
+
export { index$6_HostCallMemory as HostCallMemory, index$6_HostCallRegisters as HostCallRegisters, HostCallsManager as HostCalls, index$6_PvmExecution as PvmExecution, HostCalls as PvmHostCallExtension, InterpreterInstanceManager as PvmInstanceManager, index$6_traceRegisters as traceRegisters, index$6_tryAsHostCallIndex as tryAsHostCallIndex };
|
|
18815
|
+
export type { index$6_HostCallHandler as HostCallHandler };
|
|
18787
18816
|
}
|
|
18788
18817
|
|
|
18789
18818
|
/**
|
|
@@ -18980,7 +19009,7 @@ declare class AccumulationStateUpdate {
|
|
|
18980
19009
|
/** Pending transfers. */
|
|
18981
19010
|
public transfers: PendingTransfer[],
|
|
18982
19011
|
/** Yielded accumulation root. */
|
|
18983
|
-
public
|
|
19012
|
+
public yieldedRoot: OpaqueHash | null = null,
|
|
18984
19013
|
) {}
|
|
18985
19014
|
|
|
18986
19015
|
/** Create new empty state update. */
|
|
@@ -19019,7 +19048,7 @@ declare class AccumulationStateUpdate {
|
|
|
19019
19048
|
storage: deepCloneMapWithArray(from.services.storage),
|
|
19020
19049
|
};
|
|
19021
19050
|
const transfers = [...from.transfers];
|
|
19022
|
-
const update = new AccumulationStateUpdate(serviceUpdates, transfers,
|
|
19051
|
+
const update = new AccumulationStateUpdate(serviceUpdates, transfers, from.yieldedRoot);
|
|
19023
19052
|
|
|
19024
19053
|
// update entries
|
|
19025
19054
|
for (const [k, v] of from.authorizationQueues) {
|
|
@@ -19045,6 +19074,13 @@ declare class AccumulationStateUpdate {
|
|
|
19045
19074
|
this.transfers = [];
|
|
19046
19075
|
return transfers;
|
|
19047
19076
|
}
|
|
19077
|
+
|
|
19078
|
+
/** Retrieve and clear yielded root. */
|
|
19079
|
+
takeYieldedRoot() {
|
|
19080
|
+
const yieldedRoot = this.yieldedRoot;
|
|
19081
|
+
this.yieldedRoot = null;
|
|
19082
|
+
return yieldedRoot;
|
|
19083
|
+
}
|
|
19048
19084
|
}
|
|
19049
19085
|
|
|
19050
19086
|
type StateSlice = Pick<State, "getService" | "privilegedServices">;
|
|
@@ -19145,6 +19181,21 @@ declare class PartiallyUpdatedState<T extends StateSlice = StateSlice> {
|
|
|
19145
19181
|
hash: PreimageHash,
|
|
19146
19182
|
length: U64,
|
|
19147
19183
|
): LookupHistoryItem | null {
|
|
19184
|
+
const updatedService = this.stateUpdate.services.updated.get(serviceId);
|
|
19185
|
+
|
|
19186
|
+
/** Return lookup history item for newly created service */
|
|
19187
|
+
if (updatedService !== undefined && updatedService.action.kind === UpdateServiceKind.Create) {
|
|
19188
|
+
const lookupHistoryItem = updatedService.action.lookupHistory;
|
|
19189
|
+
|
|
19190
|
+
if (
|
|
19191
|
+
lookupHistoryItem !== null &&
|
|
19192
|
+
hash.isEqualTo(lookupHistoryItem.hash) &&
|
|
19193
|
+
length === BigInt(lookupHistoryItem.length)
|
|
19194
|
+
) {
|
|
19195
|
+
return lookupHistoryItem;
|
|
19196
|
+
}
|
|
19197
|
+
}
|
|
19198
|
+
|
|
19148
19199
|
const preimages = this.stateUpdate.services.preimages.get(serviceId) ?? [];
|
|
19149
19200
|
// TODO [ToDr] This is most likely wrong. We may have `provide` and `remove` within
|
|
19150
19201
|
// the same state update. We should however switch to proper "updated state"
|
|
@@ -19377,71 +19428,95 @@ declare function emptyRegistersBuffer(): Uint8Array {
|
|
|
19377
19428
|
return safeAllocUint8Array(NO_OF_REGISTERS * REGISTER_BYTE_SIZE);
|
|
19378
19429
|
}
|
|
19379
19430
|
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
declare const
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
type index$
|
|
19405
|
-
declare const index$
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
type index$
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
type index$
|
|
19421
|
-
|
|
19422
|
-
type index$
|
|
19423
|
-
|
|
19424
|
-
type index$
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
type index$
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
declare const index$
|
|
19432
|
-
|
|
19433
|
-
declare const index$
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
declare const index$
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
declare const index$
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
declare
|
|
19443
|
-
|
|
19444
|
-
|
|
19431
|
+
/**
|
|
19432
|
+
* Service account details with threshold balance.
|
|
19433
|
+
*
|
|
19434
|
+
* Used exclusively by `info` host call.
|
|
19435
|
+
*
|
|
19436
|
+
* https://graypaper.fluffylabs.dev/#/ab2cdbd/33920033b500?v=0.7.2
|
|
19437
|
+
*/
|
|
19438
|
+
declare const codecServiceAccountInfoWithThresholdBalance = codec.object(
|
|
19439
|
+
{
|
|
19440
|
+
codeHash: codec.bytes(HASH_SIZE),
|
|
19441
|
+
balance: codec.u64,
|
|
19442
|
+
thresholdBalance: codec.u64,
|
|
19443
|
+
accumulateMinGas: codec.u64.convert((i) => i, tryAsServiceGas),
|
|
19444
|
+
onTransferMinGas: codec.u64.convert((i) => i, tryAsServiceGas),
|
|
19445
|
+
storageUtilisationBytes: codec.u64,
|
|
19446
|
+
storageUtilisationCount: codec.u32,
|
|
19447
|
+
gratisStorage: codec.u64,
|
|
19448
|
+
created: codec.u32.convert((x) => x, tryAsTimeSlot),
|
|
19449
|
+
lastAccumulation: codec.u32.convert((x) => x, tryAsTimeSlot),
|
|
19450
|
+
parentService: codec.u32.convert((x) => x, tryAsServiceId),
|
|
19451
|
+
},
|
|
19452
|
+
"ServiceAccountInfoWithThresholdBalance",
|
|
19453
|
+
);
|
|
19454
|
+
|
|
19455
|
+
type index$5_AccumulationStateUpdate = AccumulationStateUpdate;
|
|
19456
|
+
declare const index$5_AccumulationStateUpdate: typeof AccumulationStateUpdate;
|
|
19457
|
+
declare const index$5_CURRENT_SERVICE_ID: typeof CURRENT_SERVICE_ID;
|
|
19458
|
+
type index$5_EjectError = EjectError;
|
|
19459
|
+
declare const index$5_EjectError: typeof EjectError;
|
|
19460
|
+
type index$5_ForgetPreimageError = ForgetPreimageError;
|
|
19461
|
+
declare const index$5_ForgetPreimageError: typeof ForgetPreimageError;
|
|
19462
|
+
declare const index$5_HostCallResult: typeof HostCallResult;
|
|
19463
|
+
type index$5_InsufficientFundsError = InsufficientFundsError;
|
|
19464
|
+
declare const index$5_MAX_U32: typeof MAX_U32;
|
|
19465
|
+
declare const index$5_MAX_U32_BIG_INT: typeof MAX_U32_BIG_INT;
|
|
19466
|
+
type index$5_MachineId = MachineId;
|
|
19467
|
+
type index$5_MachineInstance = MachineInstance;
|
|
19468
|
+
declare const index$5_MachineInstance: typeof MachineInstance;
|
|
19469
|
+
type index$5_MachineResult = MachineResult;
|
|
19470
|
+
type index$5_MachineStatus = MachineStatus;
|
|
19471
|
+
type index$5_MemoryOperation = MemoryOperation;
|
|
19472
|
+
declare const index$5_MemoryOperation: typeof MemoryOperation;
|
|
19473
|
+
type index$5_NewServiceError = NewServiceError;
|
|
19474
|
+
declare const index$5_NewServiceError: typeof NewServiceError;
|
|
19475
|
+
type index$5_NoMachineError = NoMachineError;
|
|
19476
|
+
type index$5_PagesError = PagesError;
|
|
19477
|
+
declare const index$5_PagesError: typeof PagesError;
|
|
19478
|
+
type index$5_PartialState = PartialState;
|
|
19479
|
+
type index$5_PartiallyUpdatedState<T extends StateSlice = StateSlice> = PartiallyUpdatedState<T>;
|
|
19480
|
+
declare const index$5_PartiallyUpdatedState: typeof PartiallyUpdatedState;
|
|
19481
|
+
type index$5_PeekPokeError = PeekPokeError;
|
|
19482
|
+
declare const index$5_PeekPokeError: typeof PeekPokeError;
|
|
19483
|
+
type index$5_PendingTransfer = PendingTransfer;
|
|
19484
|
+
declare const index$5_PendingTransfer: typeof PendingTransfer;
|
|
19485
|
+
type index$5_PreimageStatus = PreimageStatus;
|
|
19486
|
+
type index$5_PreimageStatusKind = PreimageStatusKind;
|
|
19487
|
+
declare const index$5_PreimageStatusKind: typeof PreimageStatusKind;
|
|
19488
|
+
type index$5_ProgramCounter = ProgramCounter;
|
|
19489
|
+
type index$5_ProvidePreimageError = ProvidePreimageError;
|
|
19490
|
+
declare const index$5_ProvidePreimageError: typeof ProvidePreimageError;
|
|
19491
|
+
type index$5_RefineExternalities = RefineExternalities;
|
|
19492
|
+
type index$5_RequestPreimageError = RequestPreimageError;
|
|
19493
|
+
declare const index$5_RequestPreimageError: typeof RequestPreimageError;
|
|
19494
|
+
declare const index$5_SERVICE_ID_BYTES: typeof SERVICE_ID_BYTES;
|
|
19495
|
+
type index$5_SegmentExportError = SegmentExportError;
|
|
19496
|
+
type index$5_ServiceStateUpdate = ServiceStateUpdate;
|
|
19497
|
+
type index$5_StateSlice = StateSlice;
|
|
19498
|
+
type index$5_TRANSFER_MEMO_BYTES = TRANSFER_MEMO_BYTES;
|
|
19499
|
+
type index$5_TransferError = TransferError;
|
|
19500
|
+
declare const index$5_TransferError: typeof TransferError;
|
|
19501
|
+
type index$5_UnprivilegedError = UnprivilegedError;
|
|
19502
|
+
type index$5_UpdatePrivilegesError = UpdatePrivilegesError;
|
|
19503
|
+
declare const index$5_UpdatePrivilegesError: typeof UpdatePrivilegesError;
|
|
19504
|
+
type index$5_ZeroVoidError = ZeroVoidError;
|
|
19505
|
+
declare const index$5_ZeroVoidError: typeof ZeroVoidError;
|
|
19506
|
+
declare const index$5_clampU64ToU32: typeof clampU64ToU32;
|
|
19507
|
+
declare const index$5_deepCloneMapWithArray: typeof deepCloneMapWithArray;
|
|
19508
|
+
declare const index$5_emptyRegistersBuffer: typeof emptyRegistersBuffer;
|
|
19509
|
+
declare const index$5_getServiceId: typeof getServiceId;
|
|
19510
|
+
declare const index$5_getServiceIdOrCurrent: typeof getServiceIdOrCurrent;
|
|
19511
|
+
declare const index$5_preimageLenAsU32: typeof preimageLenAsU32;
|
|
19512
|
+
declare const index$5_slotsToPreimageStatus: typeof slotsToPreimageStatus;
|
|
19513
|
+
declare const index$5_toMemoryOperation: typeof toMemoryOperation;
|
|
19514
|
+
declare const index$5_tryAsMachineId: typeof tryAsMachineId;
|
|
19515
|
+
declare const index$5_tryAsProgramCounter: typeof tryAsProgramCounter;
|
|
19516
|
+
declare const index$5_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
|
|
19517
|
+
declare namespace index$5 {
|
|
19518
|
+
export { index$5_AccumulationStateUpdate as AccumulationStateUpdate, index$5_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$5_EjectError as EjectError, index$5_ForgetPreimageError as ForgetPreimageError, index$5_HostCallResult as HostCallResult, index$5_MAX_U32 as MAX_U32, index$5_MAX_U32_BIG_INT as MAX_U32_BIG_INT, index$5_MachineInstance as MachineInstance, index$5_MemoryOperation as MemoryOperation, index$5_NewServiceError as NewServiceError, index$5_PagesError as PagesError, index$5_PartiallyUpdatedState as PartiallyUpdatedState, index$5_PeekPokeError as PeekPokeError, index$5_PendingTransfer as PendingTransfer, index$5_PreimageStatusKind as PreimageStatusKind, index$5_ProvidePreimageError as ProvidePreimageError, index$5_RequestPreimageError as RequestPreimageError, index$5_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$5_TransferError as TransferError, index$5_UpdatePrivilegesError as UpdatePrivilegesError, index$5_ZeroVoidError as ZeroVoidError, index$5_clampU64ToU32 as clampU64ToU32, index$5_deepCloneMapWithArray as deepCloneMapWithArray, index$5_emptyRegistersBuffer as emptyRegistersBuffer, index$5_getServiceId as getServiceId, index$5_getServiceIdOrCurrent as getServiceIdOrCurrent, codecServiceAccountInfoWithThresholdBalance as hostCallInfoAccount, index$5_preimageLenAsU32 as preimageLenAsU32, index$5_slotsToPreimageStatus as slotsToPreimageStatus, index$5_toMemoryOperation as toMemoryOperation, index$5_tryAsMachineId as tryAsMachineId, index$5_tryAsProgramCounter as tryAsProgramCounter, index$5_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
|
|
19519
|
+
export type { index$5_InsufficientFundsError as InsufficientFundsError, index$5_MachineId as MachineId, index$5_MachineResult as MachineResult, index$5_MachineStatus as MachineStatus, index$5_NoMachineError as NoMachineError, index$5_PartialState as PartialState, index$5_PreimageStatus as PreimageStatus, index$5_ProgramCounter as ProgramCounter, index$5_RefineExternalities as RefineExternalities, index$5_SegmentExportError as SegmentExportError, index$5_ServiceStateUpdate as ServiceStateUpdate, index$5_StateSlice as StateSlice, index$5_TRANSFER_MEMO_BYTES as TRANSFER_MEMO_BYTES, index$5_UnprivilegedError as UnprivilegedError };
|
|
19445
19520
|
}
|
|
19446
19521
|
|
|
19447
19522
|
declare class DebuggerAdapter {
|
|
@@ -19451,11 +19526,6 @@ declare class DebuggerAdapter {
|
|
|
19451
19526
|
this.pvm = new Interpreter({ useSbrkGas });
|
|
19452
19527
|
}
|
|
19453
19528
|
|
|
19454
|
-
// TODO [MaSi]: a temporary solution that is needed to implement host calls in PVM debugger
|
|
19455
|
-
getInterpreter() {
|
|
19456
|
-
return this.pvm;
|
|
19457
|
-
}
|
|
19458
|
-
|
|
19459
19529
|
resetGeneric(rawProgram: Uint8Array, flatRegisters: Uint8Array, initialGas: bigint) {
|
|
19460
19530
|
this.pvm.resetGeneric(rawProgram, 0, tryAsGas(initialGas), new Registers(flatRegisters));
|
|
19461
19531
|
}
|
|
@@ -19535,133 +19605,133 @@ declare class DebuggerAdapter {
|
|
|
19535
19605
|
}
|
|
19536
19606
|
}
|
|
19537
19607
|
|
|
19538
|
-
type index$
|
|
19539
|
-
declare const index$
|
|
19540
|
-
type index$
|
|
19541
|
-
type index$
|
|
19542
|
-
declare const index$
|
|
19543
|
-
type index$
|
|
19544
|
-
declare const index$
|
|
19545
|
-
type index$
|
|
19546
|
-
declare const index$
|
|
19547
|
-
declare const index$
|
|
19548
|
-
type index$
|
|
19549
|
-
declare const index$
|
|
19550
|
-
type index$
|
|
19551
|
-
type index$
|
|
19552
|
-
type index$
|
|
19553
|
-
declare const index$
|
|
19554
|
-
type index$
|
|
19555
|
-
declare const index$
|
|
19556
|
-
type index$
|
|
19557
|
-
declare const index$
|
|
19558
|
-
type index$
|
|
19559
|
-
declare const index$
|
|
19560
|
-
declare const index$
|
|
19561
|
-
type index$
|
|
19562
|
-
declare const index$
|
|
19563
|
-
type index$
|
|
19564
|
-
declare const index$
|
|
19565
|
-
declare const index$
|
|
19566
|
-
type index$
|
|
19567
|
-
type index$
|
|
19568
|
-
declare const index$
|
|
19569
|
-
type index$
|
|
19570
|
-
type index$
|
|
19571
|
-
type index$
|
|
19572
|
-
declare const index$
|
|
19573
|
-
type index$
|
|
19574
|
-
declare const index$
|
|
19575
|
-
type index$
|
|
19576
|
-
declare const index$
|
|
19577
|
-
type index$
|
|
19578
|
-
declare const index$
|
|
19579
|
-
type index$
|
|
19580
|
-
declare const index$
|
|
19581
|
-
type index$
|
|
19582
|
-
type index$
|
|
19583
|
-
type index$
|
|
19584
|
-
type index$
|
|
19585
|
-
type index$
|
|
19586
|
-
declare const index$
|
|
19587
|
-
type index$
|
|
19588
|
-
type index$
|
|
19589
|
-
declare const index$
|
|
19590
|
-
type index$
|
|
19591
|
-
declare const index$
|
|
19592
|
-
type index$
|
|
19593
|
-
declare const index$
|
|
19594
|
-
type index$
|
|
19595
|
-
type index$
|
|
19596
|
-
declare const index$
|
|
19597
|
-
type index$
|
|
19598
|
-
declare const index$
|
|
19599
|
-
type index$
|
|
19600
|
-
type index$
|
|
19601
|
-
declare const index$
|
|
19602
|
-
type index$
|
|
19603
|
-
declare const index$
|
|
19604
|
-
type index$
|
|
19605
|
-
type index$
|
|
19606
|
-
declare const index$
|
|
19607
|
-
type index$
|
|
19608
|
-
declare const index$
|
|
19609
|
-
type index$
|
|
19610
|
-
declare const index$
|
|
19611
|
-
declare const index$
|
|
19612
|
-
type index$
|
|
19613
|
-
type index$
|
|
19614
|
-
type index$
|
|
19615
|
-
declare const index$
|
|
19616
|
-
type index$
|
|
19617
|
-
declare const index$
|
|
19618
|
-
type index$
|
|
19619
|
-
type index$
|
|
19620
|
-
type index$
|
|
19621
|
-
type index$
|
|
19622
|
-
type index$
|
|
19623
|
-
type index$
|
|
19624
|
-
declare const index$
|
|
19625
|
-
type index$
|
|
19626
|
-
type index$
|
|
19627
|
-
type index$
|
|
19628
|
-
declare const index$
|
|
19629
|
-
type index$
|
|
19630
|
-
declare const index$
|
|
19631
|
-
type index$
|
|
19632
|
-
type index$
|
|
19633
|
-
declare const index$
|
|
19634
|
-
declare const index$
|
|
19635
|
-
declare const index$
|
|
19636
|
-
declare const index$
|
|
19637
|
-
declare const index$
|
|
19638
|
-
declare const index$
|
|
19639
|
-
declare const index$
|
|
19640
|
-
declare const index$
|
|
19641
|
-
declare const index$
|
|
19642
|
-
declare const index$
|
|
19643
|
-
declare const index$
|
|
19644
|
-
declare const index$
|
|
19645
|
-
declare const index$
|
|
19646
|
-
declare const index$
|
|
19647
|
-
declare const index$
|
|
19648
|
-
declare const index$
|
|
19649
|
-
declare const index$
|
|
19650
|
-
declare const index$
|
|
19651
|
-
declare const index$
|
|
19652
|
-
declare const index$
|
|
19653
|
-
declare const index$
|
|
19654
|
-
declare const index$
|
|
19655
|
-
declare const index$
|
|
19656
|
-
declare const index$
|
|
19657
|
-
declare const index$
|
|
19658
|
-
declare const index$
|
|
19659
|
-
declare const index$
|
|
19660
|
-
declare const index$
|
|
19661
|
-
declare const index$
|
|
19662
|
-
declare namespace index$
|
|
19663
|
-
export { index$
|
|
19664
|
-
export type { index$
|
|
19608
|
+
type index$4_AccumulationStateUpdate = AccumulationStateUpdate;
|
|
19609
|
+
declare const index$4_AccumulationStateUpdate: typeof AccumulationStateUpdate;
|
|
19610
|
+
type index$4_Args = Args;
|
|
19611
|
+
type index$4_ArgsDecoder = ArgsDecoder;
|
|
19612
|
+
declare const index$4_ArgsDecoder: typeof ArgsDecoder;
|
|
19613
|
+
type index$4_ArgumentType = ArgumentType;
|
|
19614
|
+
declare const index$4_ArgumentType: typeof ArgumentType;
|
|
19615
|
+
type index$4_BasicBlocks = BasicBlocks;
|
|
19616
|
+
declare const index$4_BasicBlocks: typeof BasicBlocks;
|
|
19617
|
+
declare const index$4_CURRENT_SERVICE_ID: typeof CURRENT_SERVICE_ID;
|
|
19618
|
+
type index$4_EjectError = EjectError;
|
|
19619
|
+
declare const index$4_EjectError: typeof EjectError;
|
|
19620
|
+
type index$4_EnumMapping = EnumMapping;
|
|
19621
|
+
type index$4_ErrorResult<Error> = ErrorResult<Error>;
|
|
19622
|
+
type index$4_ExtendedWitdthImmediateDecoder = ExtendedWitdthImmediateDecoder;
|
|
19623
|
+
declare const index$4_ExtendedWitdthImmediateDecoder: typeof ExtendedWitdthImmediateDecoder;
|
|
19624
|
+
type index$4_ForgetPreimageError = ForgetPreimageError;
|
|
19625
|
+
declare const index$4_ForgetPreimageError: typeof ForgetPreimageError;
|
|
19626
|
+
type index$4_HostCallMemory = HostCallMemory;
|
|
19627
|
+
declare const index$4_HostCallMemory: typeof HostCallMemory;
|
|
19628
|
+
type index$4_HostCallRegisters = HostCallRegisters;
|
|
19629
|
+
declare const index$4_HostCallRegisters: typeof HostCallRegisters;
|
|
19630
|
+
declare const index$4_HostCallResult: typeof HostCallResult;
|
|
19631
|
+
type index$4_ImmediateDecoder = ImmediateDecoder;
|
|
19632
|
+
declare const index$4_ImmediateDecoder: typeof ImmediateDecoder;
|
|
19633
|
+
type index$4_InsufficientFundsError = InsufficientFundsError;
|
|
19634
|
+
declare const index$4_MAX_U32: typeof MAX_U32;
|
|
19635
|
+
declare const index$4_MAX_U32_BIG_INT: typeof MAX_U32_BIG_INT;
|
|
19636
|
+
type index$4_MachineId = MachineId;
|
|
19637
|
+
type index$4_MachineInstance = MachineInstance;
|
|
19638
|
+
declare const index$4_MachineInstance: typeof MachineInstance;
|
|
19639
|
+
type index$4_MachineResult = MachineResult;
|
|
19640
|
+
type index$4_MachineStatus = MachineStatus;
|
|
19641
|
+
type index$4_Mask = Mask;
|
|
19642
|
+
declare const index$4_Mask: typeof Mask;
|
|
19643
|
+
type index$4_MemoryOperation = MemoryOperation;
|
|
19644
|
+
declare const index$4_MemoryOperation: typeof MemoryOperation;
|
|
19645
|
+
type index$4_MemorySegment = MemorySegment;
|
|
19646
|
+
declare const index$4_MemorySegment: typeof MemorySegment;
|
|
19647
|
+
type index$4_NewServiceError = NewServiceError;
|
|
19648
|
+
declare const index$4_NewServiceError: typeof NewServiceError;
|
|
19649
|
+
type index$4_NibblesDecoder = NibblesDecoder;
|
|
19650
|
+
declare const index$4_NibblesDecoder: typeof NibblesDecoder;
|
|
19651
|
+
type index$4_NoMachineError = NoMachineError;
|
|
19652
|
+
type index$4_OK = OK;
|
|
19653
|
+
type index$4_OkResult<Ok> = OkResult<Ok>;
|
|
19654
|
+
type index$4_Opaque<Type, Token extends string> = Opaque<Type, Token>;
|
|
19655
|
+
type index$4_PagesError = PagesError;
|
|
19656
|
+
declare const index$4_PagesError: typeof PagesError;
|
|
19657
|
+
type index$4_PartialState = PartialState;
|
|
19658
|
+
type index$4_PartiallyUpdatedState<T extends StateSlice = StateSlice> = PartiallyUpdatedState<T>;
|
|
19659
|
+
declare const index$4_PartiallyUpdatedState: typeof PartiallyUpdatedState;
|
|
19660
|
+
type index$4_PeekPokeError = PeekPokeError;
|
|
19661
|
+
declare const index$4_PeekPokeError: typeof PeekPokeError;
|
|
19662
|
+
type index$4_PendingTransfer = PendingTransfer;
|
|
19663
|
+
declare const index$4_PendingTransfer: typeof PendingTransfer;
|
|
19664
|
+
type index$4_PreimageStatus = PreimageStatus;
|
|
19665
|
+
type index$4_PreimageStatusKind = PreimageStatusKind;
|
|
19666
|
+
declare const index$4_PreimageStatusKind: typeof PreimageStatusKind;
|
|
19667
|
+
type index$4_Program = Program;
|
|
19668
|
+
declare const index$4_Program: typeof Program;
|
|
19669
|
+
type index$4_ProgramCounter = ProgramCounter;
|
|
19670
|
+
type index$4_ProgramDecoder = ProgramDecoder;
|
|
19671
|
+
declare const index$4_ProgramDecoder: typeof ProgramDecoder;
|
|
19672
|
+
type index$4_ProvidePreimageError = ProvidePreimageError;
|
|
19673
|
+
declare const index$4_ProvidePreimageError: typeof ProvidePreimageError;
|
|
19674
|
+
type index$4_RefineExternalities = RefineExternalities;
|
|
19675
|
+
type index$4_Registers = Registers;
|
|
19676
|
+
declare const index$4_Registers: typeof Registers;
|
|
19677
|
+
type index$4_RequestPreimageError = RequestPreimageError;
|
|
19678
|
+
declare const index$4_RequestPreimageError: typeof RequestPreimageError;
|
|
19679
|
+
type index$4_RichTaggedError<Kind extends string | number, Nested> = RichTaggedError<Kind, Nested>;
|
|
19680
|
+
declare const index$4_RichTaggedError: typeof RichTaggedError;
|
|
19681
|
+
declare const index$4_SERVICE_ID_BYTES: typeof SERVICE_ID_BYTES;
|
|
19682
|
+
type index$4_SegmentExportError = SegmentExportError;
|
|
19683
|
+
type index$4_ServiceStateUpdate = ServiceStateUpdate;
|
|
19684
|
+
type index$4_SpiMemory = SpiMemory;
|
|
19685
|
+
declare const index$4_SpiMemory: typeof SpiMemory;
|
|
19686
|
+
type index$4_SpiProgram = SpiProgram;
|
|
19687
|
+
declare const index$4_SpiProgram: typeof SpiProgram;
|
|
19688
|
+
type index$4_StateSlice = StateSlice;
|
|
19689
|
+
type index$4_StringLiteral<Type> = StringLiteral<Type>;
|
|
19690
|
+
type index$4_TRANSFER_MEMO_BYTES = TRANSFER_MEMO_BYTES;
|
|
19691
|
+
type index$4_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
|
|
19692
|
+
type index$4_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
|
|
19693
|
+
type index$4_TransferError = TransferError;
|
|
19694
|
+
declare const index$4_TransferError: typeof TransferError;
|
|
19695
|
+
type index$4_Uninstantiable = Uninstantiable;
|
|
19696
|
+
type index$4_UnprivilegedError = UnprivilegedError;
|
|
19697
|
+
type index$4_UpdatePrivilegesError = UpdatePrivilegesError;
|
|
19698
|
+
declare const index$4_UpdatePrivilegesError: typeof UpdatePrivilegesError;
|
|
19699
|
+
type index$4_WithDebug = WithDebug;
|
|
19700
|
+
declare const index$4_WithDebug: typeof WithDebug;
|
|
19701
|
+
type index$4_WithOpaque<Token extends string> = WithOpaque<Token>;
|
|
19702
|
+
type index$4_ZeroVoidError = ZeroVoidError;
|
|
19703
|
+
declare const index$4_ZeroVoidError: typeof ZeroVoidError;
|
|
19704
|
+
declare const index$4___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
|
|
19705
|
+
declare const index$4_asOpaqueType: typeof asOpaqueType;
|
|
19706
|
+
declare const index$4_assertEmpty: typeof assertEmpty;
|
|
19707
|
+
declare const index$4_assertNever: typeof assertNever;
|
|
19708
|
+
declare const index$4_check: typeof check;
|
|
19709
|
+
declare const index$4_clampU64ToU32: typeof clampU64ToU32;
|
|
19710
|
+
declare const index$4_createResults: typeof createResults;
|
|
19711
|
+
declare const index$4_decodeStandardProgram: typeof decodeStandardProgram;
|
|
19712
|
+
declare const index$4_deepCloneMapWithArray: typeof deepCloneMapWithArray;
|
|
19713
|
+
declare const index$4_emptyRegistersBuffer: typeof emptyRegistersBuffer;
|
|
19714
|
+
declare const index$4_extractCodeAndMetadata: typeof extractCodeAndMetadata;
|
|
19715
|
+
declare const index$4_getServiceId: typeof getServiceId;
|
|
19716
|
+
declare const index$4_getServiceIdOrCurrent: typeof getServiceIdOrCurrent;
|
|
19717
|
+
declare const index$4_inspect: typeof inspect;
|
|
19718
|
+
declare const index$4_instructionArgumentTypeMap: typeof instructionArgumentTypeMap;
|
|
19719
|
+
declare const index$4_isBrowser: typeof isBrowser;
|
|
19720
|
+
declare const index$4_isTaggedError: typeof isTaggedError;
|
|
19721
|
+
declare const index$4_lazyInspect: typeof lazyInspect;
|
|
19722
|
+
declare const index$4_maybeTaggedErrorToString: typeof maybeTaggedErrorToString;
|
|
19723
|
+
declare const index$4_measure: typeof measure;
|
|
19724
|
+
declare const index$4_preimageLenAsU32: typeof preimageLenAsU32;
|
|
19725
|
+
declare const index$4_resultToString: typeof resultToString;
|
|
19726
|
+
declare const index$4_seeThrough: typeof seeThrough;
|
|
19727
|
+
declare const index$4_slotsToPreimageStatus: typeof slotsToPreimageStatus;
|
|
19728
|
+
declare const index$4_toMemoryOperation: typeof toMemoryOperation;
|
|
19729
|
+
declare const index$4_tryAsMachineId: typeof tryAsMachineId;
|
|
19730
|
+
declare const index$4_tryAsProgramCounter: typeof tryAsProgramCounter;
|
|
19731
|
+
declare const index$4_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
|
|
19732
|
+
declare namespace index$4 {
|
|
19733
|
+
export { index$4_AccumulationStateUpdate as AccumulationStateUpdate, index$4_ArgsDecoder as ArgsDecoder, index$4_ArgumentType as ArgumentType, index$4_BasicBlocks as BasicBlocks, index$4_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$4_EjectError as EjectError, index$4_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$4_ForgetPreimageError as ForgetPreimageError, index$4_HostCallMemory as HostCallMemory, index$4_HostCallRegisters as HostCallRegisters, index$4_HostCallResult as HostCallResult, index$4_ImmediateDecoder as ImmediateDecoder, index$4_MAX_U32 as MAX_U32, index$4_MAX_U32_BIG_INT as MAX_U32_BIG_INT, index$4_MachineInstance as MachineInstance, index$4_Mask as Mask, index$4_MemoryOperation as MemoryOperation, index$4_MemorySegment as MemorySegment, NO_OF_REGISTERS$1 as NO_OF_REGISTERS, index$4_NewServiceError as NewServiceError, index$4_NibblesDecoder as NibblesDecoder, index$4_PagesError as PagesError, index$4_PartiallyUpdatedState as PartiallyUpdatedState, index$4_PeekPokeError as PeekPokeError, index$4_PendingTransfer as PendingTransfer, index$4_PreimageStatusKind as PreimageStatusKind, index$4_Program as Program, index$4_ProgramDecoder as ProgramDecoder, index$4_ProvidePreimageError as ProvidePreimageError, DebuggerAdapter as Pvm, index$4_Registers as Registers, index$4_RequestPreimageError as RequestPreimageError, Result$2 as Result, index$4_RichTaggedError as RichTaggedError, index$4_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$4_SpiMemory as SpiMemory, index$4_SpiProgram as SpiProgram, index$4_TransferError as TransferError, index$4_UpdatePrivilegesError as UpdatePrivilegesError, index$4_WithDebug as WithDebug, index$4_ZeroVoidError as ZeroVoidError, index$4___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$4_asOpaqueType as asOpaqueType, index$4_assertEmpty as assertEmpty, index$4_assertNever as assertNever, index$m as block, index$t as bytes, index$4_check as check, index$4_clampU64ToU32 as clampU64ToU32, index$4_createResults as createResults, index$4_decodeStandardProgram as decodeStandardProgram, index$4_deepCloneMapWithArray as deepCloneMapWithArray, index$4_emptyRegistersBuffer as emptyRegistersBuffer, index$4_extractCodeAndMetadata as extractCodeAndMetadata, index$4_getServiceId as getServiceId, index$4_getServiceIdOrCurrent as getServiceIdOrCurrent, index$q as hash, codecServiceAccountInfoWithThresholdBalance as hostCallInfoAccount, index$4_inspect as inspect, index$4_instructionArgumentTypeMap as instructionArgumentTypeMap, index$7 as interpreter, index$4_isBrowser as isBrowser, index$4_isTaggedError as isTaggedError, index$4_lazyInspect as lazyInspect, index$4_maybeTaggedErrorToString as maybeTaggedErrorToString, index$4_measure as measure, index$s as numbers, index$4_preimageLenAsU32 as preimageLenAsU32, index$4_resultToString as resultToString, index$4_seeThrough as seeThrough, index$4_slotsToPreimageStatus as slotsToPreimageStatus, index$4_toMemoryOperation as toMemoryOperation, index$4_tryAsMachineId as tryAsMachineId, index$4_tryAsProgramCounter as tryAsProgramCounter, index$4_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
|
|
19734
|
+
export type { index$4_Args as Args, index$4_EnumMapping as EnumMapping, index$4_ErrorResult as ErrorResult, index$4_InsufficientFundsError as InsufficientFundsError, index$4_MachineId as MachineId, index$4_MachineResult as MachineResult, index$4_MachineStatus as MachineStatus, index$4_NoMachineError as NoMachineError, index$4_OK as OK, index$4_OkResult as OkResult, index$4_Opaque as Opaque, index$4_PartialState as PartialState, index$4_PreimageStatus as PreimageStatus, index$4_ProgramCounter as ProgramCounter, index$4_RefineExternalities as RefineExternalities, index$4_SegmentExportError as SegmentExportError, index$4_ServiceStateUpdate as ServiceStateUpdate, index$4_StateSlice as StateSlice, index$4_StringLiteral as StringLiteral, index$4_TRANSFER_MEMO_BYTES as TRANSFER_MEMO_BYTES, index$4_TaggedError as TaggedError, index$4_TokenOf as TokenOf, index$4_Uninstantiable as Uninstantiable, index$4_UnprivilegedError as UnprivilegedError, index$4_WithOpaque as WithOpaque };
|
|
19665
19735
|
}
|
|
19666
19736
|
|
|
19667
19737
|
declare const ENTROPY_BYTES = 32;
|
|
@@ -19691,10 +19761,10 @@ declare function fisherYatesShuffle<T>(blake2b: Blake2b, arr: T[], entropy: Byte
|
|
|
19691
19761
|
return result;
|
|
19692
19762
|
}
|
|
19693
19763
|
|
|
19694
|
-
declare const index$
|
|
19695
|
-
declare namespace index$
|
|
19764
|
+
declare const index$3_fisherYatesShuffle: typeof fisherYatesShuffle;
|
|
19765
|
+
declare namespace index$3 {
|
|
19696
19766
|
export {
|
|
19697
|
-
index$
|
|
19767
|
+
index$3_fisherYatesShuffle as fisherYatesShuffle,
|
|
19698
19768
|
};
|
|
19699
19769
|
}
|
|
19700
19770
|
|
|
@@ -20057,7 +20127,7 @@ declare class JsonCoreStatistics {
|
|
|
20057
20127
|
extrinsic_size: "number",
|
|
20058
20128
|
extrinsic_count: "number",
|
|
20059
20129
|
bundle_size: "number",
|
|
20060
|
-
gas_used: json.
|
|
20130
|
+
gas_used: json.fromBigInt(tryAsServiceGas),
|
|
20061
20131
|
},
|
|
20062
20132
|
({ da_load, popularity, imports, exports, extrinsic_size, extrinsic_count, bundle_size, gas_used }) => {
|
|
20063
20133
|
return CoreStatistics.create({
|
|
@@ -20089,17 +20159,17 @@ declare class JsonServiceStatistics {
|
|
|
20089
20159
|
provided_count: "number",
|
|
20090
20160
|
provided_size: "number",
|
|
20091
20161
|
refinement_count: "number",
|
|
20092
|
-
refinement_gas_used: json.
|
|
20162
|
+
refinement_gas_used: json.fromBigInt(tryAsServiceGas),
|
|
20093
20163
|
imports: "number",
|
|
20094
20164
|
exports: "number",
|
|
20095
20165
|
extrinsic_size: "number",
|
|
20096
20166
|
extrinsic_count: "number",
|
|
20097
20167
|
accumulate_count: "number",
|
|
20098
|
-
accumulate_gas_used: json.
|
|
20168
|
+
accumulate_gas_used: json.fromBigInt(tryAsServiceGas),
|
|
20099
20169
|
...(Compatibility.isLessThan(GpVersion.V0_7_1)
|
|
20100
20170
|
? {
|
|
20101
20171
|
on_transfers_count: "number",
|
|
20102
|
-
on_transfers_gas_used: json.
|
|
20172
|
+
on_transfers_gas_used: json.fromBigInt(tryAsServiceGas),
|
|
20103
20173
|
}
|
|
20104
20174
|
: {}),
|
|
20105
20175
|
},
|
|
@@ -20338,49 +20408,128 @@ declare const fullStateDumpFromJson = (spec: ChainSpec) =>
|
|
|
20338
20408
|
},
|
|
20339
20409
|
);
|
|
20340
20410
|
|
|
20341
|
-
type index$
|
|
20342
|
-
type index$
|
|
20343
|
-
declare const index$
|
|
20344
|
-
type index$
|
|
20345
|
-
declare const index$
|
|
20346
|
-
type index$
|
|
20347
|
-
type index$
|
|
20348
|
-
declare const index$
|
|
20349
|
-
type index$
|
|
20350
|
-
type index$
|
|
20351
|
-
type index$
|
|
20352
|
-
type index$
|
|
20353
|
-
type index$
|
|
20354
|
-
declare const index$
|
|
20355
|
-
type index$
|
|
20356
|
-
declare const index$
|
|
20357
|
-
type index$
|
|
20358
|
-
declare const index$
|
|
20359
|
-
type index$
|
|
20360
|
-
type index$
|
|
20361
|
-
declare const index$
|
|
20362
|
-
type index$
|
|
20363
|
-
declare const index$
|
|
20364
|
-
type index$
|
|
20365
|
-
declare const index$
|
|
20366
|
-
type index$
|
|
20367
|
-
type index$
|
|
20368
|
-
declare const index$
|
|
20369
|
-
declare const index$
|
|
20370
|
-
declare const index$
|
|
20371
|
-
declare const index$
|
|
20372
|
-
declare const index$
|
|
20373
|
-
declare const index$
|
|
20374
|
-
declare const index$
|
|
20375
|
-
declare const index$
|
|
20376
|
-
declare const index$
|
|
20377
|
-
declare const index$
|
|
20378
|
-
declare const index$
|
|
20379
|
-
declare const index$
|
|
20380
|
-
declare const index$
|
|
20411
|
+
type index$2_JsonAvailabilityAssignment = JsonAvailabilityAssignment;
|
|
20412
|
+
type index$2_JsonCoreStatistics = JsonCoreStatistics;
|
|
20413
|
+
declare const index$2_JsonCoreStatistics: typeof JsonCoreStatistics;
|
|
20414
|
+
type index$2_JsonDisputesRecords = JsonDisputesRecords;
|
|
20415
|
+
declare const index$2_JsonDisputesRecords: typeof JsonDisputesRecords;
|
|
20416
|
+
type index$2_JsonLookupMeta = JsonLookupMeta;
|
|
20417
|
+
type index$2_JsonPreimageItem = JsonPreimageItem;
|
|
20418
|
+
declare const index$2_JsonPreimageItem: typeof JsonPreimageItem;
|
|
20419
|
+
type index$2_JsonPreimageStatus = JsonPreimageStatus;
|
|
20420
|
+
type index$2_JsonRecentBlockState = JsonRecentBlockState;
|
|
20421
|
+
type index$2_JsonRecentBlocks = JsonRecentBlocks;
|
|
20422
|
+
type index$2_JsonReportedWorkPackageInfo = JsonReportedWorkPackageInfo;
|
|
20423
|
+
type index$2_JsonService = JsonService;
|
|
20424
|
+
declare const index$2_JsonService: typeof JsonService;
|
|
20425
|
+
type index$2_JsonServiceInfo = JsonServiceInfo;
|
|
20426
|
+
declare const index$2_JsonServiceInfo: typeof JsonServiceInfo;
|
|
20427
|
+
type index$2_JsonServiceStatistics = JsonServiceStatistics;
|
|
20428
|
+
declare const index$2_JsonServiceStatistics: typeof JsonServiceStatistics;
|
|
20429
|
+
type index$2_JsonStateDump = JsonStateDump;
|
|
20430
|
+
type index$2_JsonStatisticsData = JsonStatisticsData;
|
|
20431
|
+
declare const index$2_JsonStatisticsData: typeof JsonStatisticsData;
|
|
20432
|
+
type index$2_JsonStorageItem = JsonStorageItem;
|
|
20433
|
+
declare const index$2_JsonStorageItem: typeof JsonStorageItem;
|
|
20434
|
+
type index$2_JsonValidatorStatistics = JsonValidatorStatistics;
|
|
20435
|
+
declare const index$2_JsonValidatorStatistics: typeof JsonValidatorStatistics;
|
|
20436
|
+
type index$2_ServiceStatisticsEntry = ServiceStatisticsEntry;
|
|
20437
|
+
type index$2_TicketsOrKeys = TicketsOrKeys;
|
|
20438
|
+
declare const index$2_TicketsOrKeys: typeof TicketsOrKeys;
|
|
20439
|
+
declare const index$2_availabilityAssignmentFromJson: typeof availabilityAssignmentFromJson;
|
|
20440
|
+
declare const index$2_disputesRecordsFromJson: typeof disputesRecordsFromJson;
|
|
20441
|
+
declare const index$2_fullStateDumpFromJson: typeof fullStateDumpFromJson;
|
|
20442
|
+
declare const index$2_lookupMetaFromJson: typeof lookupMetaFromJson;
|
|
20443
|
+
declare const index$2_notYetAccumulatedFromJson: typeof notYetAccumulatedFromJson;
|
|
20444
|
+
declare const index$2_preimageStatusFromJson: typeof preimageStatusFromJson;
|
|
20445
|
+
declare const index$2_recentBlockStateFromJson: typeof recentBlockStateFromJson;
|
|
20446
|
+
declare const index$2_recentBlocksHistoryFromJson: typeof recentBlocksHistoryFromJson;
|
|
20447
|
+
declare const index$2_reportedWorkPackageFromJson: typeof reportedWorkPackageFromJson;
|
|
20448
|
+
declare const index$2_serviceStatisticsEntryFromJson: typeof serviceStatisticsEntryFromJson;
|
|
20449
|
+
declare const index$2_ticketFromJson: typeof ticketFromJson;
|
|
20450
|
+
declare const index$2_validatorDataFromJson: typeof validatorDataFromJson;
|
|
20451
|
+
declare namespace index$2 {
|
|
20452
|
+
export { index$2_JsonCoreStatistics as JsonCoreStatistics, index$2_JsonDisputesRecords as JsonDisputesRecords, index$2_JsonPreimageItem as JsonPreimageItem, index$2_JsonService as JsonService, index$2_JsonServiceInfo as JsonServiceInfo, index$2_JsonServiceStatistics as JsonServiceStatistics, index$2_JsonStatisticsData as JsonStatisticsData, index$2_JsonStorageItem as JsonStorageItem, index$2_JsonValidatorStatistics as JsonValidatorStatistics, index$2_TicketsOrKeys as TicketsOrKeys, index$2_availabilityAssignmentFromJson as availabilityAssignmentFromJson, index$2_disputesRecordsFromJson as disputesRecordsFromJson, index$2_fullStateDumpFromJson as fullStateDumpFromJson, index$2_lookupMetaFromJson as lookupMetaFromJson, index$2_notYetAccumulatedFromJson as notYetAccumulatedFromJson, index$2_preimageStatusFromJson as preimageStatusFromJson, index$2_recentBlockStateFromJson as recentBlockStateFromJson, index$2_recentBlocksHistoryFromJson as recentBlocksHistoryFromJson, index$2_reportedWorkPackageFromJson as reportedWorkPackageFromJson, index$2_serviceStatisticsEntryFromJson as serviceStatisticsEntryFromJson, index$2_ticketFromJson as ticketFromJson, index$2_validatorDataFromJson as validatorDataFromJson };
|
|
20453
|
+
export type { index$2_JsonAvailabilityAssignment as JsonAvailabilityAssignment, index$2_JsonLookupMeta as JsonLookupMeta, index$2_JsonPreimageStatus as JsonPreimageStatus, index$2_JsonRecentBlockState as JsonRecentBlockState, index$2_JsonRecentBlocks as JsonRecentBlocks, index$2_JsonReportedWorkPackageInfo as JsonReportedWorkPackageInfo, index$2_JsonStateDump as JsonStateDump, index$2_ServiceStatisticsEntry as ServiceStatisticsEntry };
|
|
20454
|
+
}
|
|
20455
|
+
|
|
20456
|
+
declare class StateKeyVal {
|
|
20457
|
+
static fromJson: FromJson<StateKeyVal> = {
|
|
20458
|
+
key: fromJson.bytesN(TRUNCATED_HASH_SIZE),
|
|
20459
|
+
value: fromJson.bytesBlob,
|
|
20460
|
+
};
|
|
20461
|
+
key!: TruncatedHash;
|
|
20462
|
+
value!: BytesBlob;
|
|
20463
|
+
}
|
|
20464
|
+
|
|
20465
|
+
declare class TestState {
|
|
20466
|
+
static fromJson: FromJson<TestState> = {
|
|
20467
|
+
state_root: fromJson.bytes32(),
|
|
20468
|
+
keyvals: json.array(StateKeyVal.fromJson),
|
|
20469
|
+
};
|
|
20470
|
+
|
|
20471
|
+
static Codec = codec.object({
|
|
20472
|
+
state_root: codec.bytes(HASH_SIZE).asOpaque<StateRootHash>(),
|
|
20473
|
+
keyvals: codec.sequenceVarLen(
|
|
20474
|
+
codec.object({
|
|
20475
|
+
key: codec.bytes(TRUNCATED_HASH_SIZE),
|
|
20476
|
+
value: codec.blob,
|
|
20477
|
+
}),
|
|
20478
|
+
),
|
|
20479
|
+
});
|
|
20480
|
+
|
|
20481
|
+
state_root!: StateRootHash;
|
|
20482
|
+
keyvals!: StateKeyVal[];
|
|
20483
|
+
}
|
|
20484
|
+
|
|
20485
|
+
declare class StateTransitionGenesis {
|
|
20486
|
+
static fromJson: FromJson<StateTransitionGenesis> = {
|
|
20487
|
+
header: headerFromJson,
|
|
20488
|
+
state: TestState.fromJson,
|
|
20489
|
+
};
|
|
20490
|
+
|
|
20491
|
+
static Codec = codec.object({
|
|
20492
|
+
header: Header.Codec,
|
|
20493
|
+
state: TestState.Codec,
|
|
20494
|
+
});
|
|
20495
|
+
|
|
20496
|
+
header!: Header;
|
|
20497
|
+
state!: TestState;
|
|
20498
|
+
}
|
|
20499
|
+
|
|
20500
|
+
declare class StateTransition {
|
|
20501
|
+
static fromJson: FromJson<StateTransition> = {
|
|
20502
|
+
pre_state: TestState.fromJson,
|
|
20503
|
+
post_state: TestState.fromJson,
|
|
20504
|
+
block: blockFromJson(tinyChainSpec),
|
|
20505
|
+
};
|
|
20506
|
+
|
|
20507
|
+
static Codec = codec.object({
|
|
20508
|
+
pre_state: TestState.Codec,
|
|
20509
|
+
block: Block.Codec,
|
|
20510
|
+
post_state: TestState.Codec,
|
|
20511
|
+
});
|
|
20512
|
+
|
|
20513
|
+
pre_state!: TestState;
|
|
20514
|
+
post_state!: TestState;
|
|
20515
|
+
block!: Block;
|
|
20516
|
+
}
|
|
20517
|
+
|
|
20518
|
+
type index$1_StateKeyVal = StateKeyVal;
|
|
20519
|
+
declare const index$1_StateKeyVal: typeof StateKeyVal;
|
|
20520
|
+
type index$1_StateTransition = StateTransition;
|
|
20521
|
+
declare const index$1_StateTransition: typeof StateTransition;
|
|
20522
|
+
type index$1_StateTransitionGenesis = StateTransitionGenesis;
|
|
20523
|
+
declare const index$1_StateTransitionGenesis: typeof StateTransitionGenesis;
|
|
20524
|
+
type index$1_TestState = TestState;
|
|
20525
|
+
declare const index$1_TestState: typeof TestState;
|
|
20381
20526
|
declare namespace index$1 {
|
|
20382
|
-
export {
|
|
20383
|
-
|
|
20527
|
+
export {
|
|
20528
|
+
index$1_StateKeyVal as StateKeyVal,
|
|
20529
|
+
index$1_StateTransition as StateTransition,
|
|
20530
|
+
index$1_StateTransitionGenesis as StateTransitionGenesis,
|
|
20531
|
+
index$1_TestState as TestState,
|
|
20532
|
+
};
|
|
20384
20533
|
}
|
|
20385
20534
|
|
|
20386
20535
|
/** Helper function to create most used hashes in the block */
|
|
@@ -20438,17 +20587,6 @@ declare class TransitionHasher implements MmrHasher<KeccakHash> {
|
|
|
20438
20587
|
|
|
20439
20588
|
return new WithHashAndBytes(this.blake2b.hashBytes(encoded).asOpaque(), extrinsicView, encoded);
|
|
20440
20589
|
}
|
|
20441
|
-
|
|
20442
|
-
/** Creates hash for given WorkPackage */
|
|
20443
|
-
workPackage(workPackage: WorkPackage): WithHashAndBytes<WorkPackageHash, WorkPackage> {
|
|
20444
|
-
return this.encode(WorkPackage.Codec, workPackage);
|
|
20445
|
-
}
|
|
20446
|
-
|
|
20447
|
-
private encode<T, THash extends OpaqueHash>(codec: Codec<T>, data: T): WithHashAndBytes<THash, T> {
|
|
20448
|
-
// TODO [ToDr] Use already allocated encoding destination and hash bytes from some arena.
|
|
20449
|
-
const encoded = Encoder.encodeObject(codec, data, this.context);
|
|
20450
|
-
return new WithHashAndBytes(this.blake2b.hashBytes(encoded).asOpaque(), data, encoded);
|
|
20451
|
-
}
|
|
20452
20590
|
}
|
|
20453
20591
|
|
|
20454
20592
|
type PreimagesState = Pick<State, "getService">;
|
|
@@ -20466,7 +20604,6 @@ declare enum PreimagesErrorCode {
|
|
|
20466
20604
|
AccountNotFound = "account_not_found",
|
|
20467
20605
|
}
|
|
20468
20606
|
|
|
20469
|
-
// TODO [SeKo] consider whether this module is the right place to remove expired preimages
|
|
20470
20607
|
declare class Preimages {
|
|
20471
20608
|
constructor(
|
|
20472
20609
|
public readonly state: PreimagesState,
|
|
@@ -20528,6 +20665,7 @@ declare class Preimages {
|
|
|
20528
20665
|
UpdatePreimage.provide({
|
|
20529
20666
|
preimage: PreimageItem.create({ hash, blob }),
|
|
20530
20667
|
slot,
|
|
20668
|
+
providedFor: requester,
|
|
20531
20669
|
}),
|
|
20532
20670
|
);
|
|
20533
20671
|
pendingChanges.set(requester, updates);
|
|
@@ -20553,4 +20691,4 @@ declare namespace index {
|
|
|
20553
20691
|
export type { index_PreimagesInput as PreimagesInput, index_PreimagesState as PreimagesState, index_PreimagesStateUpdate as PreimagesStateUpdate };
|
|
20554
20692
|
}
|
|
20555
20693
|
|
|
20556
|
-
export { index$
|
|
20694
|
+
export { index$m as block, index$k as block_json, index$t as bytes, index$r as codec, index$p as collections, index$n as config, index$i as config_node, index$o as crypto, index$d as database, index$c as erasure_coding, index$a as fuzz_proto, index$q as hash, index$5 as jam_host_calls, index$l as json_parser, index$j as logger, index$g as mmr, index$s as numbers, index$u as ordering, index$4 as pvm, index$6 as pvm_host_calls, index$7 as pvm_interpreter, index$8 as pvm_program, index$9 as pvm_spi_decoder, index$3 as shuffling, index$f as state, index$2 as state_json, index$e as state_merkleization, index$1 as state_vectors, index as transition, index$h as trie, index$v as utils };
|