@typeberry/lib 0.4.1-818bae8 → 0.4.1-8a21145
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 +2707 -1795
- package/index.d.ts +1057 -672
- package/index.js +2686 -1773
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -75,32 +75,32 @@ declare const minU64: (a: U64, ...values: U64[]) => U64;
|
|
|
75
75
|
/** Get the biggest value between U64 a and values given as input parameters. */
|
|
76
76
|
declare const maxU64: (a: U64, ...values: U64[]) => U64;
|
|
77
77
|
|
|
78
|
-
type index$
|
|
79
|
-
type index$
|
|
80
|
-
type index$
|
|
81
|
-
type index$
|
|
82
|
-
type index$
|
|
83
|
-
type index$
|
|
84
|
-
declare const index$
|
|
85
|
-
declare const index$
|
|
86
|
-
declare const index$
|
|
87
|
-
declare const index$
|
|
88
|
-
declare const index$
|
|
89
|
-
declare const index$
|
|
90
|
-
declare const index$
|
|
91
|
-
declare const index$
|
|
92
|
-
declare const index$
|
|
93
|
-
declare const index$
|
|
94
|
-
declare const index$
|
|
95
|
-
declare const index$
|
|
96
|
-
declare const index$
|
|
97
|
-
declare const index$
|
|
98
|
-
declare const index$
|
|
99
|
-
declare const index$
|
|
100
|
-
declare const index$
|
|
101
|
-
declare namespace index$
|
|
102
|
-
export { index$
|
|
103
|
-
export type { index$
|
|
78
|
+
type index$y_FixedSizeNumber<Bytes extends number> = FixedSizeNumber<Bytes>;
|
|
79
|
+
type index$y_U16 = U16;
|
|
80
|
+
type index$y_U32 = U32;
|
|
81
|
+
type index$y_U64 = U64;
|
|
82
|
+
type index$y_U8 = U8;
|
|
83
|
+
type index$y_WithBytesRepresentation<Bytes extends number> = WithBytesRepresentation<Bytes>;
|
|
84
|
+
declare const index$y___REPRESENTATION_BYTES__: typeof __REPRESENTATION_BYTES__;
|
|
85
|
+
declare const index$y_isU16: typeof isU16;
|
|
86
|
+
declare const index$y_isU32: typeof isU32;
|
|
87
|
+
declare const index$y_isU64: typeof isU64;
|
|
88
|
+
declare const index$y_isU8: typeof isU8;
|
|
89
|
+
declare const index$y_leBytesAsU32: typeof leBytesAsU32;
|
|
90
|
+
declare const index$y_maxU64: typeof maxU64;
|
|
91
|
+
declare const index$y_minU64: typeof minU64;
|
|
92
|
+
declare const index$y_sumU32: typeof sumU32;
|
|
93
|
+
declare const index$y_sumU64: typeof sumU64;
|
|
94
|
+
declare const index$y_tryAsU16: typeof tryAsU16;
|
|
95
|
+
declare const index$y_tryAsU32: typeof tryAsU32;
|
|
96
|
+
declare const index$y_tryAsU64: typeof tryAsU64;
|
|
97
|
+
declare const index$y_tryAsU8: typeof tryAsU8;
|
|
98
|
+
declare const index$y_u32AsLeBytes: typeof u32AsLeBytes;
|
|
99
|
+
declare const index$y_u64FromParts: typeof u64FromParts;
|
|
100
|
+
declare const index$y_u64IntoParts: typeof u64IntoParts;
|
|
101
|
+
declare namespace index$y {
|
|
102
|
+
export { index$y___REPRESENTATION_BYTES__ as __REPRESENTATION_BYTES__, index$y_isU16 as isU16, index$y_isU32 as isU32, index$y_isU64 as isU64, index$y_isU8 as isU8, index$y_leBytesAsU32 as leBytesAsU32, index$y_maxU64 as maxU64, index$y_minU64 as minU64, index$y_sumU32 as sumU32, index$y_sumU64 as sumU64, index$y_tryAsU16 as tryAsU16, index$y_tryAsU32 as tryAsU32, index$y_tryAsU64 as tryAsU64, index$y_tryAsU8 as tryAsU8, index$y_u32AsLeBytes as u32AsLeBytes, index$y_u64FromParts as u64FromParts, index$y_u64IntoParts as u64IntoParts };
|
|
103
|
+
export type { index$y_FixedSizeNumber as FixedSizeNumber, Result$1 as Result, index$y_U16 as U16, index$y_U32 as U32, index$y_U64 as U64, index$y_U8 as U8, index$y_WithBytesRepresentation as WithBytesRepresentation };
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/** A return value of some comparator. */
|
|
@@ -133,12 +133,12 @@ declare class Ordering {
|
|
|
133
133
|
*/
|
|
134
134
|
type Comparator<V> = (self: V, other: V) => Ordering;
|
|
135
135
|
|
|
136
|
-
type index$
|
|
137
|
-
type index$
|
|
138
|
-
declare const index$
|
|
139
|
-
declare namespace index$
|
|
140
|
-
export { index$
|
|
141
|
-
export type { index$
|
|
136
|
+
type index$x_Comparator<V> = Comparator<V>;
|
|
137
|
+
type index$x_Ordering = Ordering;
|
|
138
|
+
declare const index$x_Ordering: typeof Ordering;
|
|
139
|
+
declare namespace index$x {
|
|
140
|
+
export { index$x_Ordering as Ordering };
|
|
141
|
+
export type { index$x_Comparator as Comparator };
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
declare enum GpVersion {
|
|
@@ -180,6 +180,15 @@ declare class Compatibility {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
declare function isBrowser(): boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Get current time in milliseconds (works in both Node and browser).
|
|
185
|
+
*
|
|
186
|
+
* Node.js implementation converts hrtime bigint nanoseconds to milliseconds.
|
|
187
|
+
* This is safe because dividing nanoseconds by 1_000_000 yields milliseconds,
|
|
188
|
+
* which remain well below Number.MAX_SAFE_INTEGER for practical runtimes
|
|
189
|
+
* (would take ~285 years to overflow).
|
|
190
|
+
*/
|
|
191
|
+
declare const now: () => number;
|
|
183
192
|
/**
|
|
184
193
|
* A function to perform runtime assertions.
|
|
185
194
|
*
|
|
@@ -212,7 +221,7 @@ declare function assertEmpty<T extends Record<string, never>>(value: T): void;
|
|
|
212
221
|
/** Debug print an object. */
|
|
213
222
|
declare function inspect<T>(val: T): string;
|
|
214
223
|
/** Utility function to measure time taken for some operation [ms]. */
|
|
215
|
-
declare
|
|
224
|
+
declare function measure(id: string): () => string;
|
|
216
225
|
/** A class that adds `toString` method that prints all properties of an object. */
|
|
217
226
|
declare abstract class WithDebug {
|
|
218
227
|
toString(): string;
|
|
@@ -240,6 +249,8 @@ declare function lazyInspect<T>(obj: T): {
|
|
|
240
249
|
*/
|
|
241
250
|
declare const workspacePathFix: (workspacePath: string) => (p: string) => string;
|
|
242
251
|
|
|
252
|
+
declare const env: NodeJS.ProcessEnv;
|
|
253
|
+
|
|
243
254
|
/**
|
|
244
255
|
* `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
|
|
245
256
|
* specified unique token Token. It means that base type cannot be assigned to unique type by accident.
|
|
@@ -369,48 +380,50 @@ declare class ErrorsCollector {
|
|
|
369
380
|
* as an afterthought.
|
|
370
381
|
*/
|
|
371
382
|
|
|
372
|
-
declare const index$
|
|
373
|
-
declare const index$
|
|
374
|
-
type index$
|
|
375
|
-
declare const index$
|
|
376
|
-
declare const index$
|
|
377
|
-
declare const index$
|
|
378
|
-
type index$
|
|
379
|
-
type index$
|
|
380
|
-
type index$
|
|
381
|
-
declare const index$
|
|
382
|
-
type index$
|
|
383
|
-
declare const index$
|
|
384
|
-
declare const index$
|
|
385
|
-
type index$
|
|
386
|
-
type index$
|
|
387
|
-
type index$
|
|
388
|
-
declare const index$
|
|
389
|
-
declare const index$
|
|
390
|
-
type index$
|
|
391
|
-
type index$
|
|
392
|
-
declare const index$
|
|
393
|
-
type index$
|
|
394
|
-
type index$
|
|
395
|
-
declare const index$
|
|
396
|
-
type index$
|
|
397
|
-
declare const index$
|
|
398
|
-
declare const index$
|
|
399
|
-
declare const index$
|
|
400
|
-
declare const index$
|
|
401
|
-
declare const index$
|
|
402
|
-
declare const index$
|
|
403
|
-
declare const index$
|
|
404
|
-
declare const index$
|
|
405
|
-
declare const index$
|
|
406
|
-
declare const index$
|
|
407
|
-
declare const index$
|
|
408
|
-
declare const index$
|
|
409
|
-
declare const index$
|
|
410
|
-
declare const index$
|
|
411
|
-
declare
|
|
412
|
-
|
|
413
|
-
|
|
383
|
+
declare const index$w_CURRENT_SUITE: typeof CURRENT_SUITE;
|
|
384
|
+
declare const index$w_CURRENT_VERSION: typeof CURRENT_VERSION;
|
|
385
|
+
type index$w_Compatibility = Compatibility;
|
|
386
|
+
declare const index$w_Compatibility: typeof Compatibility;
|
|
387
|
+
declare const index$w_DEFAULT_SUITE: typeof DEFAULT_SUITE;
|
|
388
|
+
declare const index$w_DEFAULT_VERSION: typeof DEFAULT_VERSION;
|
|
389
|
+
type index$w_DeepEqualOptions = DeepEqualOptions;
|
|
390
|
+
type index$w_ErrorResult<Error> = ErrorResult<Error>;
|
|
391
|
+
type index$w_ErrorsCollector = ErrorsCollector;
|
|
392
|
+
declare const index$w_ErrorsCollector: typeof ErrorsCollector;
|
|
393
|
+
type index$w_GpVersion = GpVersion;
|
|
394
|
+
declare const index$w_GpVersion: typeof GpVersion;
|
|
395
|
+
declare const index$w_MAX_LENGTH: typeof MAX_LENGTH;
|
|
396
|
+
type index$w_OK = OK;
|
|
397
|
+
type index$w_OkResult<Ok> = OkResult<Ok>;
|
|
398
|
+
type index$w_Opaque<Type, Token extends string> = Opaque<Type, Token>;
|
|
399
|
+
declare const index$w_Result: typeof Result;
|
|
400
|
+
declare const index$w_TEST_COMPARE_USING: typeof TEST_COMPARE_USING;
|
|
401
|
+
type index$w_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
|
|
402
|
+
type index$w_TestSuite = TestSuite;
|
|
403
|
+
declare const index$w_TestSuite: typeof TestSuite;
|
|
404
|
+
type index$w_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
|
|
405
|
+
type index$w_WithDebug = WithDebug;
|
|
406
|
+
declare const index$w_WithDebug: typeof WithDebug;
|
|
407
|
+
type index$w_WithOpaque<Token extends string> = WithOpaque<Token>;
|
|
408
|
+
declare const index$w___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
|
|
409
|
+
declare const index$w_asOpaqueType: typeof asOpaqueType;
|
|
410
|
+
declare const index$w_assertEmpty: typeof assertEmpty;
|
|
411
|
+
declare const index$w_assertNever: typeof assertNever;
|
|
412
|
+
declare const index$w_check: typeof check;
|
|
413
|
+
declare const index$w_deepEqual: typeof deepEqual;
|
|
414
|
+
declare const index$w_env: typeof env;
|
|
415
|
+
declare const index$w_inspect: typeof inspect;
|
|
416
|
+
declare const index$w_isBrowser: typeof isBrowser;
|
|
417
|
+
declare const index$w_lazyInspect: typeof lazyInspect;
|
|
418
|
+
declare const index$w_measure: typeof measure;
|
|
419
|
+
declare const index$w_now: typeof now;
|
|
420
|
+
declare const index$w_resultToString: typeof resultToString;
|
|
421
|
+
declare const index$w_safeAllocUint8Array: typeof safeAllocUint8Array;
|
|
422
|
+
declare const index$w_seeThrough: typeof seeThrough;
|
|
423
|
+
declare const index$w_workspacePathFix: typeof workspacePathFix;
|
|
424
|
+
declare namespace index$w {
|
|
425
|
+
export { index$w_CURRENT_SUITE as CURRENT_SUITE, index$w_CURRENT_VERSION as CURRENT_VERSION, index$w_Compatibility as Compatibility, index$w_DEFAULT_SUITE as DEFAULT_SUITE, index$w_DEFAULT_VERSION as DEFAULT_VERSION, index$w_ErrorsCollector as ErrorsCollector, index$w_GpVersion as GpVersion, index$w_MAX_LENGTH as MAX_LENGTH, index$w_Result as Result, index$w_TEST_COMPARE_USING as TEST_COMPARE_USING, index$w_TestSuite as TestSuite, index$w_WithDebug as WithDebug, index$w___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$w_asOpaqueType as asOpaqueType, index$w_assertEmpty as assertEmpty, index$w_assertNever as assertNever, index$w_check as check, index$w_deepEqual as deepEqual, index$w_env as env, index$w_inspect as inspect, index$w_isBrowser as isBrowser, index$w_lazyInspect as lazyInspect, index$w_measure as measure, index$w_now as now, index$w_resultToString as resultToString, index$w_safeAllocUint8Array as safeAllocUint8Array, index$w_seeThrough as seeThrough, index$w_workspacePathFix as workspacePathFix };
|
|
426
|
+
export type { index$w_DeepEqualOptions as DeepEqualOptions, index$w_ErrorResult as ErrorResult, index$w_OK as OK, index$w_OkResult as OkResult, index$w_Opaque as Opaque, index$w_TaggedError as TaggedError, index$w_TokenOf as TokenOf, index$w_WithOpaque as WithOpaque };
|
|
414
427
|
}
|
|
415
428
|
|
|
416
429
|
/**
|
|
@@ -522,19 +535,19 @@ declare class BitVec {
|
|
|
522
535
|
indicesOfSetBits(): Generator<number, void, unknown>;
|
|
523
536
|
}
|
|
524
537
|
|
|
525
|
-
type index$
|
|
526
|
-
declare const index$
|
|
527
|
-
type index$
|
|
528
|
-
declare const index$
|
|
529
|
-
type index$
|
|
530
|
-
declare const index$
|
|
531
|
-
declare const index$
|
|
532
|
-
declare namespace index$
|
|
538
|
+
type index$v_BitVec = BitVec;
|
|
539
|
+
declare const index$v_BitVec: typeof BitVec;
|
|
540
|
+
type index$v_Bytes<T extends number> = Bytes<T>;
|
|
541
|
+
declare const index$v_Bytes: typeof Bytes;
|
|
542
|
+
type index$v_BytesBlob = BytesBlob;
|
|
543
|
+
declare const index$v_BytesBlob: typeof BytesBlob;
|
|
544
|
+
declare const index$v_bytesBlobComparator: typeof bytesBlobComparator;
|
|
545
|
+
declare namespace index$v {
|
|
533
546
|
export {
|
|
534
|
-
index$
|
|
535
|
-
index$
|
|
536
|
-
index$
|
|
537
|
-
index$
|
|
547
|
+
index$v_BitVec as BitVec,
|
|
548
|
+
index$v_Bytes as Bytes,
|
|
549
|
+
index$v_BytesBlob as BytesBlob,
|
|
550
|
+
index$v_bytesBlobComparator as bytesBlobComparator,
|
|
538
551
|
};
|
|
539
552
|
}
|
|
540
553
|
|
|
@@ -1263,41 +1276,41 @@ declare namespace descriptors {
|
|
|
1263
1276
|
export type { descriptors_SequenceVarLenOptions as SequenceVarLenOptions };
|
|
1264
1277
|
}
|
|
1265
1278
|
|
|
1266
|
-
type index$
|
|
1267
|
-
type index$
|
|
1268
|
-
type index$
|
|
1269
|
-
type index$
|
|
1270
|
-
type index$
|
|
1271
|
-
type index$
|
|
1272
|
-
declare const index$
|
|
1273
|
-
type index$
|
|
1274
|
-
type index$
|
|
1275
|
-
declare const index$
|
|
1276
|
-
type index$
|
|
1277
|
-
type index$
|
|
1278
|
-
type index$
|
|
1279
|
-
declare const index$
|
|
1280
|
-
type index$
|
|
1281
|
-
declare const index$
|
|
1282
|
-
type index$
|
|
1283
|
-
type index$
|
|
1284
|
-
declare const index$
|
|
1285
|
-
type index$
|
|
1286
|
-
type index$
|
|
1287
|
-
type index$
|
|
1288
|
-
declare const index$
|
|
1289
|
-
type index$
|
|
1290
|
-
type index$
|
|
1291
|
-
type index$
|
|
1292
|
-
declare const index$
|
|
1293
|
-
type index$
|
|
1294
|
-
declare const index$
|
|
1295
|
-
declare const index$
|
|
1296
|
-
declare const index$
|
|
1297
|
-
declare const index$
|
|
1298
|
-
declare namespace index$
|
|
1299
|
-
export { index$
|
|
1300
|
-
export type { index$
|
|
1279
|
+
type index$u_ClassConstructor<T> = ClassConstructor<T>;
|
|
1280
|
+
type index$u_Codec<T> = Codec<T>;
|
|
1281
|
+
type index$u_CodecRecord<T> = CodecRecord<T>;
|
|
1282
|
+
type index$u_CodecWithView<T, V> = CodecWithView<T, V>;
|
|
1283
|
+
type index$u_Decode<T> = Decode<T>;
|
|
1284
|
+
type index$u_Decoder = Decoder;
|
|
1285
|
+
declare const index$u_Decoder: typeof Decoder;
|
|
1286
|
+
type index$u_DescribedBy<T> = DescribedBy<T>;
|
|
1287
|
+
type index$u_Descriptor<T, V = T> = Descriptor<T, V>;
|
|
1288
|
+
declare const index$u_Descriptor: typeof Descriptor;
|
|
1289
|
+
type index$u_DescriptorRecord<T> = DescriptorRecord<T>;
|
|
1290
|
+
type index$u_Encode<T> = Encode<T>;
|
|
1291
|
+
type index$u_Encoder = Encoder;
|
|
1292
|
+
declare const index$u_Encoder: typeof Encoder;
|
|
1293
|
+
type index$u_EndOfDataError = EndOfDataError;
|
|
1294
|
+
declare const index$u_EndOfDataError: typeof EndOfDataError;
|
|
1295
|
+
type index$u_LengthRange = LengthRange;
|
|
1296
|
+
type index$u_ObjectView<T> = ObjectView<T>;
|
|
1297
|
+
declare const index$u_ObjectView: typeof ObjectView;
|
|
1298
|
+
type index$u_OptionalRecord<T> = OptionalRecord<T>;
|
|
1299
|
+
type index$u_PropertyKeys<T> = PropertyKeys<T>;
|
|
1300
|
+
type index$u_SequenceView<T, V = T> = SequenceView<T, V>;
|
|
1301
|
+
declare const index$u_SequenceView: typeof SequenceView;
|
|
1302
|
+
type index$u_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
|
|
1303
|
+
type index$u_SizeHint = SizeHint;
|
|
1304
|
+
type index$u_ViewField<T, V> = ViewField<T, V>;
|
|
1305
|
+
declare const index$u_ViewField: typeof ViewField;
|
|
1306
|
+
type index$u_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
|
|
1307
|
+
declare const index$u_addSizeHints: typeof addSizeHints;
|
|
1308
|
+
declare const index$u_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
|
|
1309
|
+
declare const index$u_tryAsExactBytes: typeof tryAsExactBytes;
|
|
1310
|
+
declare const index$u_validateLength: typeof validateLength;
|
|
1311
|
+
declare namespace index$u {
|
|
1312
|
+
export { index$u_Decoder as Decoder, index$u_Descriptor as Descriptor, index$u_Encoder as Encoder, index$u_EndOfDataError as EndOfDataError, index$u_ObjectView as ObjectView, index$u_SequenceView as SequenceView, index$u_ViewField as ViewField, index$u_addSizeHints as addSizeHints, descriptors as codec, index$u_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$u_tryAsExactBytes as tryAsExactBytes, index$u_validateLength as validateLength };
|
|
1313
|
+
export type { index$u_ClassConstructor as ClassConstructor, index$u_Codec as Codec, index$u_CodecRecord as CodecRecord, index$u_CodecWithView as CodecWithView, index$u_Decode as Decode, index$u_DescribedBy as DescribedBy, index$u_DescriptorRecord as DescriptorRecord, index$u_Encode as Encode, index$u_LengthRange as LengthRange, index$u_OptionalRecord as OptionalRecord, Options$1 as Options, index$u_PropertyKeys as PropertyKeys, index$u_SimpleDescriptorRecord as SimpleDescriptorRecord, index$u_SizeHint as SizeHint, index$u_ViewOf as ViewOf };
|
|
1301
1314
|
}
|
|
1302
1315
|
|
|
1303
1316
|
/**
|
|
@@ -1644,23 +1657,23 @@ declare namespace keccak {
|
|
|
1644
1657
|
};
|
|
1645
1658
|
}
|
|
1646
1659
|
|
|
1647
|
-
type index$
|
|
1648
|
-
declare const index$
|
|
1649
|
-
type index$
|
|
1650
|
-
type index$
|
|
1651
|
-
type index$
|
|
1652
|
-
type index$
|
|
1653
|
-
type index$
|
|
1654
|
-
type index$
|
|
1655
|
-
type index$
|
|
1656
|
-
declare const index$
|
|
1657
|
-
type index$
|
|
1658
|
-
declare const index$
|
|
1659
|
-
declare const index$
|
|
1660
|
-
declare const index$
|
|
1661
|
-
declare namespace index$
|
|
1662
|
-
export { index$
|
|
1663
|
-
export type { index$
|
|
1660
|
+
type index$t_Blake2b = Blake2b;
|
|
1661
|
+
declare const index$t_Blake2b: typeof Blake2b;
|
|
1662
|
+
type index$t_Blake2bHash = Blake2bHash;
|
|
1663
|
+
type index$t_HASH_SIZE = HASH_SIZE;
|
|
1664
|
+
type index$t_KeccakHash = KeccakHash;
|
|
1665
|
+
type index$t_OpaqueHash = OpaqueHash;
|
|
1666
|
+
type index$t_TRUNCATED_HASH_SIZE = TRUNCATED_HASH_SIZE;
|
|
1667
|
+
type index$t_TruncatedHash = TruncatedHash;
|
|
1668
|
+
type index$t_WithHash<THash extends OpaqueHash, TData> = WithHash<THash, TData>;
|
|
1669
|
+
declare const index$t_WithHash: typeof WithHash;
|
|
1670
|
+
type index$t_WithHashAndBytes<THash extends OpaqueHash, TData> = WithHashAndBytes<THash, TData>;
|
|
1671
|
+
declare const index$t_WithHashAndBytes: typeof WithHashAndBytes;
|
|
1672
|
+
declare const index$t_ZERO_HASH: typeof ZERO_HASH;
|
|
1673
|
+
declare const index$t_keccak: typeof keccak;
|
|
1674
|
+
declare namespace index$t {
|
|
1675
|
+
export { index$t_Blake2b as Blake2b, index$t_WithHash as WithHash, index$t_WithHashAndBytes as WithHashAndBytes, index$t_ZERO_HASH as ZERO_HASH, index$t_keccak as keccak };
|
|
1676
|
+
export type { index$t_Blake2bHash as Blake2bHash, index$t_HASH_SIZE as HASH_SIZE, index$t_KeccakHash as KeccakHash, index$t_OpaqueHash as OpaqueHash, index$t_TRUNCATED_HASH_SIZE as TRUNCATED_HASH_SIZE, index$t_TruncatedHash as TruncatedHash };
|
|
1664
1677
|
}
|
|
1665
1678
|
|
|
1666
1679
|
/** Immutable view of the `HashDictionary`. */
|
|
@@ -1961,41 +1974,41 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
|
|
|
1961
1974
|
[Symbol.iterator](): Generator<[TruncatedHash, V], any, any>;
|
|
1962
1975
|
}
|
|
1963
1976
|
|
|
1964
|
-
type index$
|
|
1965
|
-
declare const index$
|
|
1966
|
-
type index$
|
|
1967
|
-
declare const index$
|
|
1968
|
-
type index$
|
|
1969
|
-
declare const index$
|
|
1970
|
-
type index$
|
|
1971
|
-
declare const index$
|
|
1972
|
-
type index$
|
|
1973
|
-
declare const index$
|
|
1974
|
-
type index$
|
|
1975
|
-
type index$
|
|
1976
|
-
type index$
|
|
1977
|
-
type index$
|
|
1978
|
-
type index$
|
|
1979
|
-
type index$
|
|
1980
|
-
type index$
|
|
1981
|
-
type index$
|
|
1982
|
-
type index$
|
|
1983
|
-
declare const index$
|
|
1984
|
-
type index$
|
|
1985
|
-
declare const index$
|
|
1986
|
-
type index$
|
|
1987
|
-
declare const index$
|
|
1988
|
-
type index$
|
|
1989
|
-
declare const index$
|
|
1990
|
-
type index$
|
|
1991
|
-
declare const index$
|
|
1992
|
-
type index$
|
|
1993
|
-
declare const index$
|
|
1994
|
-
declare const index$
|
|
1995
|
-
declare const index$
|
|
1996
|
-
declare namespace index$
|
|
1997
|
-
export { index$
|
|
1998
|
-
export type { index$
|
|
1977
|
+
type index$s_ArrayView<T> = ArrayView<T>;
|
|
1978
|
+
declare const index$s_ArrayView: typeof ArrayView;
|
|
1979
|
+
type index$s_BlobDictionary<K extends BytesBlob, V> = BlobDictionary<K, V>;
|
|
1980
|
+
declare const index$s_BlobDictionary: typeof BlobDictionary;
|
|
1981
|
+
type index$s_FixedSizeArray<T, N extends number> = FixedSizeArray<T, N>;
|
|
1982
|
+
declare const index$s_FixedSizeArray: typeof FixedSizeArray;
|
|
1983
|
+
type index$s_HashDictionary<K extends OpaqueHash, V> = HashDictionary<K, V>;
|
|
1984
|
+
declare const index$s_HashDictionary: typeof HashDictionary;
|
|
1985
|
+
type index$s_HashSet<V extends OpaqueHash> = HashSet<V>;
|
|
1986
|
+
declare const index$s_HashSet: typeof HashSet;
|
|
1987
|
+
type index$s_ImmutableHashDictionary<K extends OpaqueHash, V> = ImmutableHashDictionary<K, V>;
|
|
1988
|
+
type index$s_ImmutableHashSet<V extends OpaqueHash> = ImmutableHashSet<V>;
|
|
1989
|
+
type index$s_ImmutableSortedArray<V> = ImmutableSortedArray<V>;
|
|
1990
|
+
type index$s_ImmutableSortedSet<V> = ImmutableSortedSet<V>;
|
|
1991
|
+
type index$s_KeyMapper<K> = KeyMapper<K>;
|
|
1992
|
+
type index$s_KnownSize<T, F extends string> = KnownSize<T, F>;
|
|
1993
|
+
type index$s_KnownSizeArray<T, F extends string> = KnownSizeArray<T, F>;
|
|
1994
|
+
type index$s_KnownSizeId<X> = KnownSizeId<X>;
|
|
1995
|
+
type index$s_ListChildren<K extends BytesBlob, V> = ListChildren<K, V>;
|
|
1996
|
+
declare const index$s_ListChildren: typeof ListChildren;
|
|
1997
|
+
type index$s_MultiMap<TKeys extends readonly unknown[], TValue> = MultiMap<TKeys, TValue>;
|
|
1998
|
+
declare const index$s_MultiMap: typeof MultiMap;
|
|
1999
|
+
type index$s_SortedArray<V> = SortedArray<V>;
|
|
2000
|
+
declare const index$s_SortedArray: typeof SortedArray;
|
|
2001
|
+
type index$s_SortedSet<V> = SortedSet<V>;
|
|
2002
|
+
declare const index$s_SortedSet: typeof SortedSet;
|
|
2003
|
+
type index$s_StringHashDictionary<K extends OpaqueHash, V> = StringHashDictionary<K, V>;
|
|
2004
|
+
declare const index$s_StringHashDictionary: typeof StringHashDictionary;
|
|
2005
|
+
type index$s_TruncatedHashDictionary<T extends OpaqueHash, V> = TruncatedHashDictionary<T, V>;
|
|
2006
|
+
declare const index$s_TruncatedHashDictionary: typeof TruncatedHashDictionary;
|
|
2007
|
+
declare const index$s_asKnownSize: typeof asKnownSize;
|
|
2008
|
+
declare const index$s_bytesAsU48: typeof bytesAsU48;
|
|
2009
|
+
declare namespace index$s {
|
|
2010
|
+
export { index$s_ArrayView as ArrayView, index$s_BlobDictionary as BlobDictionary, index$s_FixedSizeArray as FixedSizeArray, index$s_HashDictionary as HashDictionary, index$s_HashSet as HashSet, index$s_ListChildren as ListChildren, index$s_MultiMap as MultiMap, index$s_SortedArray as SortedArray, index$s_SortedSet as SortedSet, index$s_StringHashDictionary as StringHashDictionary, index$s_TruncatedHashDictionary as TruncatedHashDictionary, index$s_asKnownSize as asKnownSize, index$s_bytesAsU48 as bytesAsU48 };
|
|
2011
|
+
export type { index$s_ImmutableHashDictionary as ImmutableHashDictionary, index$s_ImmutableHashSet as ImmutableHashSet, index$s_ImmutableSortedArray as ImmutableSortedArray, index$s_ImmutableSortedSet as ImmutableSortedSet, index$s_KeyMapper as KeyMapper, index$s_KnownSize as KnownSize, index$s_KnownSizeArray as KnownSizeArray, index$s_KnownSizeId as KnownSizeId };
|
|
1999
2012
|
}
|
|
2000
2013
|
|
|
2001
2014
|
declare namespace bandersnatch_d_exports {
|
|
@@ -2259,32 +2272,32 @@ declare namespace keyDerivation {
|
|
|
2259
2272
|
export type { keyDerivation_BandersnatchSecretSeed as BandersnatchSecretSeed, keyDerivation_Ed25519SecretSeed as Ed25519SecretSeed, keyDerivation_KeySeed as KeySeed, keyDerivation_SEED_SIZE as SEED_SIZE };
|
|
2260
2273
|
}
|
|
2261
2274
|
|
|
2262
|
-
type index$
|
|
2263
|
-
type index$
|
|
2264
|
-
type index$
|
|
2265
|
-
type index$
|
|
2266
|
-
type index$
|
|
2267
|
-
type index$
|
|
2268
|
-
type index$
|
|
2269
|
-
type index$
|
|
2270
|
-
type index$
|
|
2271
|
-
type index$
|
|
2272
|
-
type index$
|
|
2273
|
-
type index$
|
|
2274
|
-
type index$
|
|
2275
|
-
type index$
|
|
2276
|
-
type index$
|
|
2277
|
-
type index$
|
|
2278
|
-
declare const index$
|
|
2279
|
-
type index$
|
|
2280
|
-
type index$
|
|
2281
|
-
type index$
|
|
2282
|
-
declare const index$
|
|
2283
|
-
declare const index$
|
|
2284
|
-
declare const index$
|
|
2285
|
-
declare namespace index$
|
|
2286
|
-
export { index$
|
|
2287
|
-
export type { index$
|
|
2275
|
+
type index$r_BANDERSNATCH_KEY_BYTES = BANDERSNATCH_KEY_BYTES;
|
|
2276
|
+
type index$r_BANDERSNATCH_PROOF_BYTES = BANDERSNATCH_PROOF_BYTES;
|
|
2277
|
+
type index$r_BANDERSNATCH_RING_ROOT_BYTES = BANDERSNATCH_RING_ROOT_BYTES;
|
|
2278
|
+
type index$r_BANDERSNATCH_VRF_SIGNATURE_BYTES = BANDERSNATCH_VRF_SIGNATURE_BYTES;
|
|
2279
|
+
type index$r_BLS_KEY_BYTES = BLS_KEY_BYTES;
|
|
2280
|
+
type index$r_BandersnatchKey = BandersnatchKey;
|
|
2281
|
+
type index$r_BandersnatchProof = BandersnatchProof;
|
|
2282
|
+
type index$r_BandersnatchRingRoot = BandersnatchRingRoot;
|
|
2283
|
+
type index$r_BandersnatchSecretSeed = BandersnatchSecretSeed;
|
|
2284
|
+
type index$r_BandersnatchVrfSignature = BandersnatchVrfSignature;
|
|
2285
|
+
type index$r_BlsKey = BlsKey;
|
|
2286
|
+
type index$r_ED25519_KEY_BYTES = ED25519_KEY_BYTES;
|
|
2287
|
+
type index$r_ED25519_PRIV_KEY_BYTES = ED25519_PRIV_KEY_BYTES;
|
|
2288
|
+
type index$r_ED25519_SIGNATURE_BYTES = ED25519_SIGNATURE_BYTES;
|
|
2289
|
+
type index$r_Ed25519Key = Ed25519Key;
|
|
2290
|
+
type index$r_Ed25519Pair = Ed25519Pair;
|
|
2291
|
+
declare const index$r_Ed25519Pair: typeof Ed25519Pair;
|
|
2292
|
+
type index$r_Ed25519SecretSeed = Ed25519SecretSeed;
|
|
2293
|
+
type index$r_Ed25519Signature = Ed25519Signature;
|
|
2294
|
+
type index$r_SEED_SIZE = SEED_SIZE;
|
|
2295
|
+
declare const index$r_bandersnatch: typeof bandersnatch;
|
|
2296
|
+
declare const index$r_ed25519: typeof ed25519;
|
|
2297
|
+
declare const index$r_keyDerivation: typeof keyDerivation;
|
|
2298
|
+
declare namespace index$r {
|
|
2299
|
+
export { index$r_Ed25519Pair as Ed25519Pair, index$r_bandersnatch as bandersnatch, bandersnatch_d_exports as bandersnatchWasm, index$r_ed25519 as ed25519, initAll as initWasm, index$r_keyDerivation as keyDerivation };
|
|
2300
|
+
export type { index$r_BANDERSNATCH_KEY_BYTES as BANDERSNATCH_KEY_BYTES, index$r_BANDERSNATCH_PROOF_BYTES as BANDERSNATCH_PROOF_BYTES, index$r_BANDERSNATCH_RING_ROOT_BYTES as BANDERSNATCH_RING_ROOT_BYTES, index$r_BANDERSNATCH_VRF_SIGNATURE_BYTES as BANDERSNATCH_VRF_SIGNATURE_BYTES, index$r_BLS_KEY_BYTES as BLS_KEY_BYTES, index$r_BandersnatchKey as BandersnatchKey, index$r_BandersnatchProof as BandersnatchProof, index$r_BandersnatchRingRoot as BandersnatchRingRoot, index$r_BandersnatchSecretSeed as BandersnatchSecretSeed, index$r_BandersnatchVrfSignature as BandersnatchVrfSignature, index$r_BlsKey as BlsKey, index$r_ED25519_KEY_BYTES as ED25519_KEY_BYTES, index$r_ED25519_PRIV_KEY_BYTES as ED25519_PRIV_KEY_BYTES, index$r_ED25519_SIGNATURE_BYTES as ED25519_SIGNATURE_BYTES, index$r_Ed25519Key as Ed25519Key, index$r_Ed25519SecretSeed as Ed25519SecretSeed, index$r_Ed25519Signature as Ed25519Signature, KeySeed as PublicKeySeed, index$r_SEED_SIZE as SEED_SIZE };
|
|
2288
2301
|
}
|
|
2289
2302
|
|
|
2290
2303
|
/**
|
|
@@ -2413,25 +2426,25 @@ declare enum PvmBackend {
|
|
|
2413
2426
|
Ananas = 1
|
|
2414
2427
|
}
|
|
2415
2428
|
|
|
2416
|
-
type index$
|
|
2417
|
-
declare const index$
|
|
2418
|
-
type index$
|
|
2419
|
-
declare const index$
|
|
2420
|
-
declare const index$
|
|
2421
|
-
declare const index$
|
|
2422
|
-
declare const index$
|
|
2423
|
-
declare const index$
|
|
2424
|
-
declare const index$
|
|
2425
|
-
type index$
|
|
2426
|
-
type index$
|
|
2427
|
-
type index$
|
|
2428
|
-
declare const index$
|
|
2429
|
-
declare const index$
|
|
2430
|
-
declare const index$
|
|
2431
|
-
declare const index$
|
|
2432
|
-
declare namespace index$
|
|
2433
|
-
export { index$
|
|
2434
|
-
export type { index$
|
|
2429
|
+
type index$q_Bootnode = Bootnode;
|
|
2430
|
+
declare const index$q_Bootnode: typeof Bootnode;
|
|
2431
|
+
type index$q_ChainSpec = ChainSpec;
|
|
2432
|
+
declare const index$q_ChainSpec: typeof ChainSpec;
|
|
2433
|
+
declare const index$q_EC_SEGMENT_SIZE: typeof EC_SEGMENT_SIZE;
|
|
2434
|
+
declare const index$q_EST_CORES: typeof EST_CORES;
|
|
2435
|
+
declare const index$q_EST_EPOCH_LENGTH: typeof EST_EPOCH_LENGTH;
|
|
2436
|
+
declare const index$q_EST_VALIDATORS: typeof EST_VALIDATORS;
|
|
2437
|
+
declare const index$q_EST_VALIDATORS_SUPER_MAJORITY: typeof EST_VALIDATORS_SUPER_MAJORITY;
|
|
2438
|
+
type index$q_PeerAddress = PeerAddress;
|
|
2439
|
+
type index$q_PeerId = PeerId;
|
|
2440
|
+
type index$q_PvmBackend = PvmBackend;
|
|
2441
|
+
declare const index$q_PvmBackend: typeof PvmBackend;
|
|
2442
|
+
declare const index$q_PvmBackendNames: typeof PvmBackendNames;
|
|
2443
|
+
declare const index$q_fullChainSpec: typeof fullChainSpec;
|
|
2444
|
+
declare const index$q_tinyChainSpec: typeof tinyChainSpec;
|
|
2445
|
+
declare namespace index$q {
|
|
2446
|
+
export { index$q_Bootnode as Bootnode, index$q_ChainSpec as ChainSpec, index$q_EC_SEGMENT_SIZE as EC_SEGMENT_SIZE, index$q_EST_CORES as EST_CORES, index$q_EST_EPOCH_LENGTH as EST_EPOCH_LENGTH, index$q_EST_VALIDATORS as EST_VALIDATORS, index$q_EST_VALIDATORS_SUPER_MAJORITY as EST_VALIDATORS_SUPER_MAJORITY, index$q_PvmBackend as PvmBackend, index$q_PvmBackendNames as PvmBackendNames, index$q_fullChainSpec as fullChainSpec, index$q_tinyChainSpec as tinyChainSpec };
|
|
2447
|
+
export type { index$q_PeerAddress as PeerAddress, index$q_PeerId as PeerId };
|
|
2435
2448
|
}
|
|
2436
2449
|
|
|
2437
2450
|
/**
|
|
@@ -4041,72 +4054,72 @@ declare namespace codecUtils {
|
|
|
4041
4054
|
*/
|
|
4042
4055
|
declare function reencodeAsView<T, V>(codec: Descriptor<T, V>, object: T, chainSpec?: ChainSpec): V;
|
|
4043
4056
|
|
|
4044
|
-
type index$
|
|
4045
|
-
declare const index$
|
|
4046
|
-
type index$
|
|
4047
|
-
type index$
|
|
4048
|
-
type index$
|
|
4049
|
-
type index$
|
|
4050
|
-
type index$
|
|
4051
|
-
type index$
|
|
4052
|
-
declare const index$
|
|
4053
|
-
type index$
|
|
4054
|
-
type index$
|
|
4055
|
-
declare const index$
|
|
4056
|
-
type index$
|
|
4057
|
-
type index$
|
|
4058
|
-
type index$
|
|
4059
|
-
declare const index$
|
|
4060
|
-
type index$
|
|
4061
|
-
type index$
|
|
4062
|
-
declare const index$
|
|
4063
|
-
type index$
|
|
4064
|
-
type index$
|
|
4065
|
-
type index$
|
|
4066
|
-
type index$
|
|
4067
|
-
type index$
|
|
4068
|
-
type index$
|
|
4069
|
-
type index$
|
|
4070
|
-
type index$
|
|
4071
|
-
type index$
|
|
4072
|
-
declare const index$
|
|
4073
|
-
type index$
|
|
4074
|
-
type index$
|
|
4075
|
-
type index$
|
|
4076
|
-
type index$
|
|
4077
|
-
declare const index$
|
|
4078
|
-
declare const index$
|
|
4079
|
-
declare const index$
|
|
4080
|
-
type index$
|
|
4081
|
-
declare const index$
|
|
4082
|
-
declare const index$
|
|
4083
|
-
declare const index$
|
|
4084
|
-
declare const index$
|
|
4085
|
-
declare const index$
|
|
4086
|
-
declare const index$
|
|
4087
|
-
declare const index$
|
|
4088
|
-
declare const index$
|
|
4089
|
-
declare const index$
|
|
4090
|
-
declare const index$
|
|
4091
|
-
declare const index$
|
|
4092
|
-
declare const index$
|
|
4093
|
-
declare const index$
|
|
4094
|
-
declare const index$
|
|
4095
|
-
declare const index$
|
|
4096
|
-
declare const index$
|
|
4097
|
-
declare const index$
|
|
4098
|
-
declare const index$
|
|
4099
|
-
declare const index$
|
|
4100
|
-
declare const index$
|
|
4101
|
-
declare const index$
|
|
4102
|
-
declare const index$
|
|
4103
|
-
declare const index$
|
|
4104
|
-
declare const index$
|
|
4105
|
-
declare const index$
|
|
4106
|
-
declare const index$
|
|
4107
|
-
declare namespace index$
|
|
4108
|
-
export { index$
|
|
4109
|
-
export type { index$
|
|
4057
|
+
type index$p_Block = Block;
|
|
4058
|
+
declare const index$p_Block: typeof Block;
|
|
4059
|
+
type index$p_BlockView = BlockView;
|
|
4060
|
+
type index$p_CodeHash = CodeHash;
|
|
4061
|
+
type index$p_CoreIndex = CoreIndex;
|
|
4062
|
+
type index$p_EntropyHash = EntropyHash;
|
|
4063
|
+
type index$p_Epoch = Epoch;
|
|
4064
|
+
type index$p_EpochMarker = EpochMarker;
|
|
4065
|
+
declare const index$p_EpochMarker: typeof EpochMarker;
|
|
4066
|
+
type index$p_EpochMarkerView = EpochMarkerView;
|
|
4067
|
+
type index$p_Extrinsic = Extrinsic;
|
|
4068
|
+
declare const index$p_Extrinsic: typeof Extrinsic;
|
|
4069
|
+
type index$p_ExtrinsicHash = ExtrinsicHash;
|
|
4070
|
+
type index$p_ExtrinsicView = ExtrinsicView;
|
|
4071
|
+
type index$p_Header = Header;
|
|
4072
|
+
declare const index$p_Header: typeof Header;
|
|
4073
|
+
type index$p_HeaderHash = HeaderHash;
|
|
4074
|
+
type index$p_HeaderView = HeaderView;
|
|
4075
|
+
declare const index$p_MAX_NUMBER_OF_SEGMENTS: typeof MAX_NUMBER_OF_SEGMENTS;
|
|
4076
|
+
type index$p_PerEpochBlock<T> = PerEpochBlock<T>;
|
|
4077
|
+
type index$p_PerValidator<T> = PerValidator<T>;
|
|
4078
|
+
type index$p_SEGMENT_BYTES = SEGMENT_BYTES;
|
|
4079
|
+
type index$p_Segment = Segment;
|
|
4080
|
+
type index$p_SegmentIndex = SegmentIndex;
|
|
4081
|
+
type index$p_ServiceGas = ServiceGas;
|
|
4082
|
+
type index$p_ServiceId = ServiceId;
|
|
4083
|
+
type index$p_StateRootHash = StateRootHash;
|
|
4084
|
+
type index$p_TicketsMarker = TicketsMarker;
|
|
4085
|
+
declare const index$p_TicketsMarker: typeof TicketsMarker;
|
|
4086
|
+
type index$p_TicketsMarkerView = TicketsMarkerView;
|
|
4087
|
+
type index$p_TimeSlot = TimeSlot;
|
|
4088
|
+
type index$p_ValidatorIndex = ValidatorIndex;
|
|
4089
|
+
type index$p_ValidatorKeys = ValidatorKeys;
|
|
4090
|
+
declare const index$p_ValidatorKeys: typeof ValidatorKeys;
|
|
4091
|
+
declare const index$p_W_E: typeof W_E;
|
|
4092
|
+
declare const index$p_W_S: typeof W_S;
|
|
4093
|
+
type index$p_WorkReportHash = WorkReportHash;
|
|
4094
|
+
declare const index$p_assurances: typeof assurances;
|
|
4095
|
+
declare const index$p_codecPerEpochBlock: typeof codecPerEpochBlock;
|
|
4096
|
+
declare const index$p_codecPerValidator: typeof codecPerValidator;
|
|
4097
|
+
declare const index$p_codecUtils: typeof codecUtils;
|
|
4098
|
+
declare const index$p_disputes: typeof disputes;
|
|
4099
|
+
declare const index$p_emptyBlock: typeof emptyBlock;
|
|
4100
|
+
declare const index$p_encodeUnsealedHeader: typeof encodeUnsealedHeader;
|
|
4101
|
+
declare const index$p_guarantees: typeof guarantees;
|
|
4102
|
+
declare const index$p_headerViewWithHashCodec: typeof headerViewWithHashCodec;
|
|
4103
|
+
declare const index$p_preimage: typeof preimage;
|
|
4104
|
+
declare const index$p_reencodeAsView: typeof reencodeAsView;
|
|
4105
|
+
declare const index$p_refineContext: typeof refineContext;
|
|
4106
|
+
declare const index$p_tickets: typeof tickets;
|
|
4107
|
+
declare const index$p_tryAsCoreIndex: typeof tryAsCoreIndex;
|
|
4108
|
+
declare const index$p_tryAsEpoch: typeof tryAsEpoch;
|
|
4109
|
+
declare const index$p_tryAsPerEpochBlock: typeof tryAsPerEpochBlock;
|
|
4110
|
+
declare const index$p_tryAsPerValidator: typeof tryAsPerValidator;
|
|
4111
|
+
declare const index$p_tryAsSegmentIndex: typeof tryAsSegmentIndex;
|
|
4112
|
+
declare const index$p_tryAsServiceGas: typeof tryAsServiceGas;
|
|
4113
|
+
declare const index$p_tryAsServiceId: typeof tryAsServiceId;
|
|
4114
|
+
declare const index$p_tryAsTimeSlot: typeof tryAsTimeSlot;
|
|
4115
|
+
declare const index$p_tryAsValidatorIndex: typeof tryAsValidatorIndex;
|
|
4116
|
+
declare const index$p_workItem: typeof workItem;
|
|
4117
|
+
declare const index$p_workPackage: typeof workPackage;
|
|
4118
|
+
declare const index$p_workReport: typeof workReport;
|
|
4119
|
+
declare const index$p_workResult: typeof workResult;
|
|
4120
|
+
declare namespace index$p {
|
|
4121
|
+
export { index$p_Block as Block, index$p_EpochMarker as EpochMarker, index$p_Extrinsic as Extrinsic, index$p_Header as Header, index$p_MAX_NUMBER_OF_SEGMENTS as MAX_NUMBER_OF_SEGMENTS, index$p_TicketsMarker as TicketsMarker, index$p_ValidatorKeys as ValidatorKeys, index$p_W_E as W_E, index$p_W_S as W_S, index$p_assurances as assurances, index$p_codecPerEpochBlock as codecPerEpochBlock, index$p_codecPerValidator as codecPerValidator, index$p_codecUtils as codecUtils, index$p_disputes as disputes, index$p_emptyBlock as emptyBlock, index$p_encodeUnsealedHeader as encodeUnsealedHeader, index$p_guarantees as guarantees, index$p_headerViewWithHashCodec as headerViewWithHashCodec, index$p_preimage as preimage, index$p_reencodeAsView as reencodeAsView, index$p_refineContext as refineContext, index$p_tickets as tickets, index$p_tryAsCoreIndex as tryAsCoreIndex, index$p_tryAsEpoch as tryAsEpoch, index$p_tryAsPerEpochBlock as tryAsPerEpochBlock, index$p_tryAsPerValidator as tryAsPerValidator, index$p_tryAsSegmentIndex as tryAsSegmentIndex, index$p_tryAsServiceGas as tryAsServiceGas, index$p_tryAsServiceId as tryAsServiceId, index$p_tryAsTimeSlot as tryAsTimeSlot, index$p_tryAsValidatorIndex as tryAsValidatorIndex, index$p_workItem as workItem, index$p_workPackage as workPackage, index$p_workReport as workReport, index$p_workResult as workResult };
|
|
4122
|
+
export type { index$p_BlockView as BlockView, index$p_CodeHash as CodeHash, index$p_CoreIndex as CoreIndex, index$p_EntropyHash as EntropyHash, index$p_Epoch as Epoch, index$p_EpochMarkerView as EpochMarkerView, index$p_ExtrinsicHash as ExtrinsicHash, index$p_ExtrinsicView as ExtrinsicView, index$p_HeaderHash as HeaderHash, index$p_HeaderView as HeaderView, index$p_PerEpochBlock as PerEpochBlock, index$p_PerValidator as PerValidator, index$p_SEGMENT_BYTES as SEGMENT_BYTES, index$p_Segment as Segment, index$p_SegmentIndex as SegmentIndex, index$p_ServiceGas as ServiceGas, index$p_ServiceId as ServiceId, index$p_StateRootHash as StateRootHash, index$p_TicketsMarkerView as TicketsMarkerView, index$p_TimeSlot as TimeSlot, index$p_ValidatorIndex as ValidatorIndex, index$p_WorkReportHash as WorkReportHash };
|
|
4110
4123
|
}
|
|
4111
4124
|
|
|
4112
4125
|
/** A type that can be read from a JSON-parsed object. */
|
|
@@ -4154,18 +4167,18 @@ declare namespace json {
|
|
|
4154
4167
|
/** Given already parsed JSON, parse & validate it further to match the expected `jsonDescription` type. */
|
|
4155
4168
|
declare function parseFromJson<T>(jsonType: unknown, jsonDescription: FromJson<T>, context?: string): T;
|
|
4156
4169
|
|
|
4157
|
-
type index$
|
|
4158
|
-
type index$
|
|
4159
|
-
type index$
|
|
4160
|
-
type index$
|
|
4161
|
-
type index$
|
|
4162
|
-
type index$
|
|
4163
|
-
type index$
|
|
4164
|
-
import index$
|
|
4165
|
-
declare const index$
|
|
4166
|
-
declare namespace index$
|
|
4167
|
-
export { index$
|
|
4168
|
-
export type { index$
|
|
4170
|
+
type index$o_Builder<TFrom, TInto> = Builder<TFrom, TInto>;
|
|
4171
|
+
type index$o_FromJson<T> = FromJson<T>;
|
|
4172
|
+
type index$o_FromJsonOptional<TInto> = FromJsonOptional<TInto>;
|
|
4173
|
+
type index$o_FromJsonPrimitive<T> = FromJsonPrimitive<T>;
|
|
4174
|
+
type index$o_FromJsonWithParser<TFrom, TInto> = FromJsonWithParser<TFrom, TInto>;
|
|
4175
|
+
type index$o_ObjectFromJson<T> = ObjectFromJson<T>;
|
|
4176
|
+
type index$o_Parser<TFrom, TInto> = Parser<TFrom, TInto>;
|
|
4177
|
+
import index$o_json = json;
|
|
4178
|
+
declare const index$o_parseFromJson: typeof parseFromJson;
|
|
4179
|
+
declare namespace index$o {
|
|
4180
|
+
export { index$o_json as json, index$o_parseFromJson as parseFromJson };
|
|
4181
|
+
export type { index$o_Builder as Builder, index$o_FromJson as FromJson, index$o_FromJsonOptional as FromJsonOptional, index$o_FromJsonPrimitive as FromJsonPrimitive, index$o_FromJsonWithParser as FromJsonWithParser, index$o_ObjectFromJson as ObjectFromJson, index$o_Parser as Parser };
|
|
4169
4182
|
}
|
|
4170
4183
|
|
|
4171
4184
|
declare const getAssurancesExtrinsicFromJson: (ctx: ChainSpec) => ["array", FromJsonWithParser<unknown, AvailabilityAssurance> | FromJsonWithParser<string, AvailabilityAssurance> | FromJsonWithParser<number, AvailabilityAssurance> | ObjectFromJson<AvailabilityAssurance> | FromJsonOptional<AvailabilityAssurance> | Parser<unknown, AvailabilityAssurance[]>];
|
|
@@ -4210,23 +4223,23 @@ declare const workReportFromJson: FromJsonWithParser<unknown, WorkReport>;
|
|
|
4210
4223
|
|
|
4211
4224
|
declare const workResultFromJson: FromJsonWithParser<unknown, WorkResult>;
|
|
4212
4225
|
|
|
4213
|
-
type index$
|
|
4214
|
-
declare const index$
|
|
4215
|
-
declare const index$
|
|
4216
|
-
import index$
|
|
4217
|
-
declare const index$
|
|
4218
|
-
declare const index$
|
|
4219
|
-
declare const index$
|
|
4220
|
-
declare const index$
|
|
4221
|
-
declare const index$
|
|
4222
|
-
declare const index$
|
|
4223
|
-
declare const index$
|
|
4224
|
-
declare const index$
|
|
4225
|
-
declare const index$
|
|
4226
|
-
declare const index$
|
|
4227
|
-
declare namespace index$
|
|
4228
|
-
export { index$
|
|
4229
|
-
export type { index$
|
|
4226
|
+
type index$n_JsonObject<T> = JsonObject<T>;
|
|
4227
|
+
declare const index$n_blockFromJson: typeof blockFromJson;
|
|
4228
|
+
declare const index$n_disputesExtrinsicFromJson: typeof disputesExtrinsicFromJson;
|
|
4229
|
+
import index$n_fromJson = fromJson;
|
|
4230
|
+
declare const index$n_getAssurancesExtrinsicFromJson: typeof getAssurancesExtrinsicFromJson;
|
|
4231
|
+
declare const index$n_getExtrinsicFromJson: typeof getExtrinsicFromJson;
|
|
4232
|
+
declare const index$n_guaranteesExtrinsicFromJson: typeof guaranteesExtrinsicFromJson;
|
|
4233
|
+
declare const index$n_headerFromJson: typeof headerFromJson;
|
|
4234
|
+
declare const index$n_preimagesExtrinsicFromJson: typeof preimagesExtrinsicFromJson;
|
|
4235
|
+
declare const index$n_refineContextFromJson: typeof refineContextFromJson;
|
|
4236
|
+
declare const index$n_segmentRootLookupItemFromJson: typeof segmentRootLookupItemFromJson;
|
|
4237
|
+
declare const index$n_ticketsExtrinsicFromJson: typeof ticketsExtrinsicFromJson;
|
|
4238
|
+
declare const index$n_workReportFromJson: typeof workReportFromJson;
|
|
4239
|
+
declare const index$n_workResultFromJson: typeof workResultFromJson;
|
|
4240
|
+
declare namespace index$n {
|
|
4241
|
+
export { index$n_blockFromJson as blockFromJson, index$n_disputesExtrinsicFromJson as disputesExtrinsicFromJson, index$n_fromJson as fromJson, index$n_getAssurancesExtrinsicFromJson as getAssurancesExtrinsicFromJson, index$n_getExtrinsicFromJson as getExtrinsicFromJson, index$n_guaranteesExtrinsicFromJson as guaranteesExtrinsicFromJson, index$n_headerFromJson as headerFromJson, index$n_preimagesExtrinsicFromJson as preimagesExtrinsicFromJson, index$n_refineContextFromJson as refineContextFromJson, index$n_segmentRootLookupItemFromJson as segmentRootLookupItemFromJson, index$n_ticketsExtrinsicFromJson as ticketsExtrinsicFromJson, index$n_workReportFromJson as workReportFromJson, index$n_workResultFromJson as workResultFromJson };
|
|
4242
|
+
export type { index$n_JsonObject as JsonObject };
|
|
4230
4243
|
}
|
|
4231
4244
|
|
|
4232
4245
|
declare function parseBootnode(v: string): Bootnode;
|
|
@@ -4302,29 +4315,29 @@ declare class NodeConfiguration {
|
|
|
4302
4315
|
}
|
|
4303
4316
|
declare function loadConfig(config: string[], withRelPath: (p: string) => string): NodeConfiguration;
|
|
4304
4317
|
|
|
4305
|
-
declare const index$
|
|
4306
|
-
declare const index$
|
|
4307
|
-
type index$
|
|
4308
|
-
declare const index$
|
|
4309
|
-
type index$
|
|
4310
|
-
declare const index$
|
|
4311
|
-
declare const index$
|
|
4312
|
-
type index$
|
|
4313
|
-
declare const index$
|
|
4314
|
-
declare const index$
|
|
4315
|
-
declare const index$
|
|
4316
|
-
declare const index$
|
|
4317
|
-
declare namespace index$
|
|
4318
|
+
declare const index$m_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
|
|
4319
|
+
declare const index$m_DEV_CONFIG: typeof DEV_CONFIG;
|
|
4320
|
+
type index$m_JipChainSpec = JipChainSpec;
|
|
4321
|
+
declare const index$m_JipChainSpec: typeof JipChainSpec;
|
|
4322
|
+
type index$m_KnownChainSpec = KnownChainSpec;
|
|
4323
|
+
declare const index$m_KnownChainSpec: typeof KnownChainSpec;
|
|
4324
|
+
declare const index$m_NODE_DEFAULTS: typeof NODE_DEFAULTS;
|
|
4325
|
+
type index$m_NodeConfiguration = NodeConfiguration;
|
|
4326
|
+
declare const index$m_NodeConfiguration: typeof NodeConfiguration;
|
|
4327
|
+
declare const index$m_knownChainSpecFromJson: typeof knownChainSpecFromJson;
|
|
4328
|
+
declare const index$m_loadConfig: typeof loadConfig;
|
|
4329
|
+
declare const index$m_parseBootnode: typeof parseBootnode;
|
|
4330
|
+
declare namespace index$m {
|
|
4318
4331
|
export {
|
|
4319
|
-
index$
|
|
4320
|
-
index$
|
|
4321
|
-
index$
|
|
4322
|
-
index$
|
|
4323
|
-
index$
|
|
4324
|
-
index$
|
|
4325
|
-
index$
|
|
4326
|
-
index$
|
|
4327
|
-
index$
|
|
4332
|
+
index$m_DEFAULT_CONFIG as DEFAULT_CONFIG,
|
|
4333
|
+
index$m_DEV_CONFIG as DEV_CONFIG,
|
|
4334
|
+
index$m_JipChainSpec as JipChainSpec,
|
|
4335
|
+
index$m_KnownChainSpec as KnownChainSpec,
|
|
4336
|
+
index$m_NODE_DEFAULTS as NODE_DEFAULTS,
|
|
4337
|
+
index$m_NodeConfiguration as NodeConfiguration,
|
|
4338
|
+
index$m_knownChainSpecFromJson as knownChainSpecFromJson,
|
|
4339
|
+
index$m_loadConfig as loadConfig,
|
|
4340
|
+
index$m_parseBootnode as parseBootnode,
|
|
4328
4341
|
};
|
|
4329
4342
|
}
|
|
4330
4343
|
|
|
@@ -4568,34 +4581,34 @@ declare class InMemoryTrie {
|
|
|
4568
4581
|
}
|
|
4569
4582
|
declare function findSharedPrefix(a: TruncatedStateKey, b: TruncatedStateKey): number;
|
|
4570
4583
|
|
|
4571
|
-
type index$
|
|
4572
|
-
declare const index$
|
|
4573
|
-
type index$
|
|
4574
|
-
declare const index$
|
|
4575
|
-
type index$
|
|
4576
|
-
type index$
|
|
4577
|
-
declare const index$
|
|
4578
|
-
type index$
|
|
4579
|
-
declare const index$
|
|
4580
|
-
type index$
|
|
4581
|
-
declare const index$
|
|
4582
|
-
declare const index$
|
|
4583
|
-
declare const index$
|
|
4584
|
-
type index$
|
|
4585
|
-
type index$
|
|
4586
|
-
type index$
|
|
4587
|
-
declare const index$
|
|
4588
|
-
type index$
|
|
4589
|
-
type index$
|
|
4590
|
-
type index$
|
|
4591
|
-
type index$
|
|
4592
|
-
declare const index$
|
|
4593
|
-
declare const index$
|
|
4594
|
-
declare const index$
|
|
4595
|
-
declare const index$
|
|
4596
|
-
declare namespace index$
|
|
4597
|
-
export { index$
|
|
4598
|
-
export type { index$
|
|
4584
|
+
type index$l_BranchNode = BranchNode;
|
|
4585
|
+
declare const index$l_BranchNode: typeof BranchNode;
|
|
4586
|
+
type index$l_InMemoryTrie = InMemoryTrie;
|
|
4587
|
+
declare const index$l_InMemoryTrie: typeof InMemoryTrie;
|
|
4588
|
+
type index$l_InputKey = InputKey;
|
|
4589
|
+
type index$l_LeafNode = LeafNode;
|
|
4590
|
+
declare const index$l_LeafNode: typeof LeafNode;
|
|
4591
|
+
type index$l_NodeType = NodeType;
|
|
4592
|
+
declare const index$l_NodeType: typeof NodeType;
|
|
4593
|
+
type index$l_NodesDb = NodesDb;
|
|
4594
|
+
declare const index$l_NodesDb: typeof NodesDb;
|
|
4595
|
+
declare const index$l_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
|
|
4596
|
+
declare const index$l_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
|
|
4597
|
+
type index$l_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
|
|
4598
|
+
type index$l_TrieHasher = TrieHasher;
|
|
4599
|
+
type index$l_TrieNode = TrieNode;
|
|
4600
|
+
declare const index$l_TrieNode: typeof TrieNode;
|
|
4601
|
+
type index$l_TrieNodeHash = TrieNodeHash;
|
|
4602
|
+
type index$l_TruncatedStateKey = TruncatedStateKey;
|
|
4603
|
+
type index$l_ValueHash = ValueHash;
|
|
4604
|
+
type index$l_WriteableNodesDb = WriteableNodesDb;
|
|
4605
|
+
declare const index$l_WriteableNodesDb: typeof WriteableNodesDb;
|
|
4606
|
+
declare const index$l_findSharedPrefix: typeof findSharedPrefix;
|
|
4607
|
+
declare const index$l_leafComparator: typeof leafComparator;
|
|
4608
|
+
declare const index$l_parseInputKey: typeof parseInputKey;
|
|
4609
|
+
declare namespace index$l {
|
|
4610
|
+
export { index$l_BranchNode as BranchNode, index$l_InMemoryTrie as InMemoryTrie, index$l_LeafNode as LeafNode, index$l_NodeType as NodeType, index$l_NodesDb as NodesDb, index$l_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$l_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$l_TrieNode as TrieNode, index$l_WriteableNodesDb as WriteableNodesDb, index$l_findSharedPrefix as findSharedPrefix, index$l_leafComparator as leafComparator, index$l_parseInputKey as parseInputKey };
|
|
4611
|
+
export type { index$l_InputKey as InputKey, StateKey$1 as StateKey, index$l_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$l_TrieHasher as TrieHasher, index$l_TrieNodeHash as TrieNodeHash, index$l_TruncatedStateKey as TruncatedStateKey, index$l_ValueHash as ValueHash };
|
|
4599
4612
|
}
|
|
4600
4613
|
|
|
4601
4614
|
/**
|
|
@@ -4987,13 +5000,13 @@ declare class MerkleMountainRange<H extends OpaqueHash> {
|
|
|
4987
5000
|
getPeaks(): MmrPeaks<H>;
|
|
4988
5001
|
}
|
|
4989
5002
|
|
|
4990
|
-
type index$
|
|
4991
|
-
declare const index$
|
|
4992
|
-
type index$
|
|
4993
|
-
type index$
|
|
4994
|
-
declare namespace index$
|
|
4995
|
-
export { index$
|
|
4996
|
-
export type { index$
|
|
5003
|
+
type index$k_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
|
|
5004
|
+
declare const index$k_MerkleMountainRange: typeof MerkleMountainRange;
|
|
5005
|
+
type index$k_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
|
|
5006
|
+
type index$k_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
|
|
5007
|
+
declare namespace index$k {
|
|
5008
|
+
export { index$k_MerkleMountainRange as MerkleMountainRange };
|
|
5009
|
+
export type { index$k_MmrHasher as MmrHasher, index$k_MmrPeaks as MmrPeaks };
|
|
4997
5010
|
}
|
|
4998
5011
|
|
|
4999
5012
|
/**
|
|
@@ -5979,114 +5992,114 @@ type FieldNames<T> = {
|
|
|
5979
5992
|
[K in keyof T]: T[K] extends Function ? never : K;
|
|
5980
5993
|
}[keyof T];
|
|
5981
5994
|
|
|
5982
|
-
type index$
|
|
5983
|
-
type index$
|
|
5984
|
-
declare const index$
|
|
5985
|
-
type index$
|
|
5986
|
-
type index$
|
|
5987
|
-
type index$
|
|
5988
|
-
type index$
|
|
5989
|
-
type index$
|
|
5990
|
-
declare const index$
|
|
5991
|
-
type index$
|
|
5992
|
-
declare const index$
|
|
5993
|
-
type index$
|
|
5994
|
-
declare const index$
|
|
5995
|
-
type index$
|
|
5996
|
-
type index$
|
|
5997
|
-
declare const index$
|
|
5998
|
-
type index$
|
|
5999
|
-
declare const index$
|
|
6000
|
-
declare const index$
|
|
6001
|
-
declare const index$
|
|
6002
|
-
type index$
|
|
6003
|
-
type index$
|
|
6004
|
-
type index$
|
|
6005
|
-
declare const index$
|
|
6006
|
-
type index$
|
|
6007
|
-
declare const index$
|
|
6008
|
-
type index$
|
|
6009
|
-
type index$
|
|
6010
|
-
declare const index$
|
|
6011
|
-
type index$
|
|
6012
|
-
type index$
|
|
6013
|
-
type index$
|
|
6014
|
-
type index$
|
|
6015
|
-
declare const index$
|
|
6016
|
-
type index$
|
|
6017
|
-
type index$
|
|
6018
|
-
declare const index$
|
|
6019
|
-
type index$
|
|
6020
|
-
declare const index$
|
|
6021
|
-
type index$
|
|
6022
|
-
declare const index$
|
|
6023
|
-
type index$
|
|
6024
|
-
type index$
|
|
6025
|
-
type index$
|
|
6026
|
-
type index$
|
|
6027
|
-
declare const index$
|
|
6028
|
-
type index$
|
|
6029
|
-
type index$
|
|
6030
|
-
type index$
|
|
6031
|
-
declare const index$
|
|
6032
|
-
type index$
|
|
6033
|
-
declare const index$
|
|
6034
|
-
type index$
|
|
6035
|
-
type index$
|
|
6036
|
-
declare const index$
|
|
6037
|
-
type index$
|
|
6038
|
-
type index$
|
|
6039
|
-
type index$
|
|
6040
|
-
type index$
|
|
6041
|
-
declare const index$
|
|
6042
|
-
type index$
|
|
6043
|
-
type index$
|
|
6044
|
-
type index$
|
|
6045
|
-
type index$
|
|
6046
|
-
declare const index$
|
|
6047
|
-
type index$
|
|
6048
|
-
type index$
|
|
6049
|
-
declare const index$
|
|
6050
|
-
type index$
|
|
6051
|
-
type index$
|
|
6052
|
-
declare const index$
|
|
6053
|
-
type index$
|
|
6054
|
-
declare const index$
|
|
6055
|
-
type index$
|
|
6056
|
-
declare const index$
|
|
6057
|
-
type index$
|
|
6058
|
-
declare const index$
|
|
6059
|
-
type index$
|
|
6060
|
-
declare const index$
|
|
6061
|
-
type index$
|
|
6062
|
-
declare const index$
|
|
6063
|
-
type index$
|
|
6064
|
-
declare const index$
|
|
6065
|
-
type index$
|
|
6066
|
-
type index$
|
|
6067
|
-
declare const index$
|
|
6068
|
-
type index$
|
|
6069
|
-
type index$
|
|
6070
|
-
declare const index$
|
|
6071
|
-
type index$
|
|
6072
|
-
declare const index$
|
|
6073
|
-
declare const index$
|
|
6074
|
-
declare const index$
|
|
6075
|
-
declare const index$
|
|
6076
|
-
declare const index$
|
|
6077
|
-
declare const index$
|
|
6078
|
-
declare const index$
|
|
6079
|
-
declare const index$
|
|
6080
|
-
declare const index$
|
|
6081
|
-
declare const index$
|
|
6082
|
-
declare const index$
|
|
6083
|
-
declare const index$
|
|
6084
|
-
declare const index$
|
|
6085
|
-
declare const index$
|
|
6086
|
-
declare const index$
|
|
6087
|
-
declare namespace index$
|
|
6088
|
-
export { index$
|
|
6089
|
-
export type { index$
|
|
5995
|
+
type index$j_AUTHORIZATION_QUEUE_SIZE = AUTHORIZATION_QUEUE_SIZE;
|
|
5996
|
+
type index$j_AccumulationOutput = AccumulationOutput;
|
|
5997
|
+
declare const index$j_AccumulationOutput: typeof AccumulationOutput;
|
|
5998
|
+
type index$j_AccumulationQueue = AccumulationQueue;
|
|
5999
|
+
type index$j_AccumulationQueueView = AccumulationQueueView;
|
|
6000
|
+
type index$j_AuthorizationPool = AuthorizationPool;
|
|
6001
|
+
type index$j_AuthorizationQueue = AuthorizationQueue;
|
|
6002
|
+
type index$j_AvailabilityAssignment = AvailabilityAssignment;
|
|
6003
|
+
declare const index$j_AvailabilityAssignment: typeof AvailabilityAssignment;
|
|
6004
|
+
type index$j_AvailabilityAssignmentsView = AvailabilityAssignmentsView;
|
|
6005
|
+
declare const index$j_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
|
|
6006
|
+
type index$j_BlockState = BlockState;
|
|
6007
|
+
declare const index$j_BlockState: typeof BlockState;
|
|
6008
|
+
type index$j_BlocksState = BlocksState;
|
|
6009
|
+
type index$j_CoreStatistics = CoreStatistics;
|
|
6010
|
+
declare const index$j_CoreStatistics: typeof CoreStatistics;
|
|
6011
|
+
type index$j_DisputesRecords = DisputesRecords;
|
|
6012
|
+
declare const index$j_DisputesRecords: typeof DisputesRecords;
|
|
6013
|
+
declare const index$j_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
|
|
6014
|
+
declare const index$j_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
|
|
6015
|
+
type index$j_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
|
|
6016
|
+
type index$j_EnumerableState = EnumerableState;
|
|
6017
|
+
type index$j_InMemoryService = InMemoryService;
|
|
6018
|
+
declare const index$j_InMemoryService: typeof InMemoryService;
|
|
6019
|
+
type index$j_InMemoryState = InMemoryState;
|
|
6020
|
+
declare const index$j_InMemoryState: typeof InMemoryState;
|
|
6021
|
+
type index$j_InMemoryStateFields = InMemoryStateFields;
|
|
6022
|
+
type index$j_LookupHistoryItem = LookupHistoryItem;
|
|
6023
|
+
declare const index$j_LookupHistoryItem: typeof LookupHistoryItem;
|
|
6024
|
+
type index$j_LookupHistorySlots = LookupHistorySlots;
|
|
6025
|
+
type index$j_MAX_AUTH_POOL_SIZE = MAX_AUTH_POOL_SIZE;
|
|
6026
|
+
type index$j_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
|
|
6027
|
+
type index$j_NotYetAccumulatedReport = NotYetAccumulatedReport;
|
|
6028
|
+
declare const index$j_NotYetAccumulatedReport: typeof NotYetAccumulatedReport;
|
|
6029
|
+
type index$j_PerCore<T> = PerCore<T>;
|
|
6030
|
+
type index$j_PreimageItem = PreimageItem;
|
|
6031
|
+
declare const index$j_PreimageItem: typeof PreimageItem;
|
|
6032
|
+
type index$j_PrivilegedServices = PrivilegedServices;
|
|
6033
|
+
declare const index$j_PrivilegedServices: typeof PrivilegedServices;
|
|
6034
|
+
type index$j_RecentBlocks = RecentBlocks;
|
|
6035
|
+
declare const index$j_RecentBlocks: typeof RecentBlocks;
|
|
6036
|
+
type index$j_RecentBlocksView = RecentBlocksView;
|
|
6037
|
+
type index$j_RecentlyAccumulated = RecentlyAccumulated;
|
|
6038
|
+
type index$j_RecentlyAccumulatedView = RecentlyAccumulatedView;
|
|
6039
|
+
type index$j_SafroleData = SafroleData;
|
|
6040
|
+
declare const index$j_SafroleData: typeof SafroleData;
|
|
6041
|
+
type index$j_SafroleDataView = SafroleDataView;
|
|
6042
|
+
type index$j_SafroleSealingKeys = SafroleSealingKeys;
|
|
6043
|
+
type index$j_SafroleSealingKeysData = SafroleSealingKeysData;
|
|
6044
|
+
declare const index$j_SafroleSealingKeysData: typeof SafroleSealingKeysData;
|
|
6045
|
+
type index$j_SafroleSealingKeysKind = SafroleSealingKeysKind;
|
|
6046
|
+
declare const index$j_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
|
|
6047
|
+
type index$j_Service = Service;
|
|
6048
|
+
type index$j_ServiceAccountInfo = ServiceAccountInfo;
|
|
6049
|
+
declare const index$j_ServiceAccountInfo: typeof ServiceAccountInfo;
|
|
6050
|
+
type index$j_ServiceAccountInfoView = ServiceAccountInfoView;
|
|
6051
|
+
type index$j_ServiceData = ServiceData;
|
|
6052
|
+
type index$j_ServiceEntries = ServiceEntries;
|
|
6053
|
+
type index$j_ServiceStatistics = ServiceStatistics;
|
|
6054
|
+
declare const index$j_ServiceStatistics: typeof ServiceStatistics;
|
|
6055
|
+
type index$j_ServicesUpdate = ServicesUpdate;
|
|
6056
|
+
type index$j_State = State;
|
|
6057
|
+
type index$j_StateView = StateView;
|
|
6058
|
+
type index$j_StatisticsData = StatisticsData;
|
|
6059
|
+
declare const index$j_StatisticsData: typeof StatisticsData;
|
|
6060
|
+
type index$j_StatisticsDataView = StatisticsDataView;
|
|
6061
|
+
type index$j_StorageItem = StorageItem;
|
|
6062
|
+
declare const index$j_StorageItem: typeof StorageItem;
|
|
6063
|
+
type index$j_StorageKey = StorageKey;
|
|
6064
|
+
type index$j_UpdateError = UpdateError;
|
|
6065
|
+
declare const index$j_UpdateError: typeof UpdateError;
|
|
6066
|
+
type index$j_UpdatePreimage = UpdatePreimage;
|
|
6067
|
+
declare const index$j_UpdatePreimage: typeof UpdatePreimage;
|
|
6068
|
+
type index$j_UpdatePreimageKind = UpdatePreimageKind;
|
|
6069
|
+
declare const index$j_UpdatePreimageKind: typeof UpdatePreimageKind;
|
|
6070
|
+
type index$j_UpdateService = UpdateService;
|
|
6071
|
+
declare const index$j_UpdateService: typeof UpdateService;
|
|
6072
|
+
type index$j_UpdateServiceKind = UpdateServiceKind;
|
|
6073
|
+
declare const index$j_UpdateServiceKind: typeof UpdateServiceKind;
|
|
6074
|
+
type index$j_UpdateStorage = UpdateStorage;
|
|
6075
|
+
declare const index$j_UpdateStorage: typeof UpdateStorage;
|
|
6076
|
+
type index$j_UpdateStorageKind = UpdateStorageKind;
|
|
6077
|
+
declare const index$j_UpdateStorageKind: typeof UpdateStorageKind;
|
|
6078
|
+
type index$j_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
|
|
6079
|
+
type index$j_ValidatorData = ValidatorData;
|
|
6080
|
+
declare const index$j_ValidatorData: typeof ValidatorData;
|
|
6081
|
+
type index$j_ValidatorDataView = ValidatorDataView;
|
|
6082
|
+
type index$j_ValidatorStatistics = ValidatorStatistics;
|
|
6083
|
+
declare const index$j_ValidatorStatistics: typeof ValidatorStatistics;
|
|
6084
|
+
type index$j_WithStateView<V = StateView> = WithStateView<V>;
|
|
6085
|
+
declare const index$j_accumulationOutputComparator: typeof accumulationOutputComparator;
|
|
6086
|
+
declare const index$j_accumulationQueueCodec: typeof accumulationQueueCodec;
|
|
6087
|
+
declare const index$j_authPoolsCodec: typeof authPoolsCodec;
|
|
6088
|
+
declare const index$j_authQueuesCodec: typeof authQueuesCodec;
|
|
6089
|
+
declare const index$j_availabilityAssignmentsCodec: typeof availabilityAssignmentsCodec;
|
|
6090
|
+
declare const index$j_codecPerCore: typeof codecPerCore;
|
|
6091
|
+
declare const index$j_codecWithVersion: typeof codecWithVersion;
|
|
6092
|
+
declare const index$j_hashComparator: typeof hashComparator;
|
|
6093
|
+
declare const index$j_ignoreValueWithDefault: typeof ignoreValueWithDefault;
|
|
6094
|
+
declare const index$j_recentlyAccumulatedCodec: typeof recentlyAccumulatedCodec;
|
|
6095
|
+
declare const index$j_serviceDataCodec: typeof serviceDataCodec;
|
|
6096
|
+
declare const index$j_serviceEntriesCodec: typeof serviceEntriesCodec;
|
|
6097
|
+
declare const index$j_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
|
|
6098
|
+
declare const index$j_tryAsPerCore: typeof tryAsPerCore;
|
|
6099
|
+
declare const index$j_validatorsDataCodec: typeof validatorsDataCodec;
|
|
6100
|
+
declare namespace index$j {
|
|
6101
|
+
export { index$j_AccumulationOutput as AccumulationOutput, index$j_AvailabilityAssignment as AvailabilityAssignment, index$j_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$j_BlockState as BlockState, index$j_CoreStatistics as CoreStatistics, index$j_DisputesRecords as DisputesRecords, index$j_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$j_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$j_InMemoryService as InMemoryService, index$j_InMemoryState as InMemoryState, index$j_LookupHistoryItem as LookupHistoryItem, index$j_NotYetAccumulatedReport as NotYetAccumulatedReport, index$j_PreimageItem as PreimageItem, index$j_PrivilegedServices as PrivilegedServices, index$j_RecentBlocks as RecentBlocks, index$j_SafroleData as SafroleData, index$j_SafroleSealingKeysData as SafroleSealingKeysData, index$j_SafroleSealingKeysKind as SafroleSealingKeysKind, index$j_ServiceAccountInfo as ServiceAccountInfo, index$j_ServiceStatistics as ServiceStatistics, index$j_StatisticsData as StatisticsData, index$j_StorageItem as StorageItem, index$j_UpdateError as UpdateError, index$j_UpdatePreimage as UpdatePreimage, index$j_UpdatePreimageKind as UpdatePreimageKind, index$j_UpdateService as UpdateService, index$j_UpdateServiceKind as UpdateServiceKind, index$j_UpdateStorage as UpdateStorage, index$j_UpdateStorageKind as UpdateStorageKind, index$j_ValidatorData as ValidatorData, index$j_ValidatorStatistics as ValidatorStatistics, index$j_accumulationOutputComparator as accumulationOutputComparator, index$j_accumulationQueueCodec as accumulationQueueCodec, index$j_authPoolsCodec as authPoolsCodec, index$j_authQueuesCodec as authQueuesCodec, index$j_availabilityAssignmentsCodec as availabilityAssignmentsCodec, index$j_codecPerCore as codecPerCore, index$j_codecWithVersion as codecWithVersion, index$j_hashComparator as hashComparator, index$j_ignoreValueWithDefault as ignoreValueWithDefault, index$j_recentlyAccumulatedCodec as recentlyAccumulatedCodec, index$j_serviceDataCodec as serviceDataCodec, index$j_serviceEntriesCodec as serviceEntriesCodec, index$j_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$j_tryAsPerCore as tryAsPerCore, index$j_validatorsDataCodec as validatorsDataCodec };
|
|
6102
|
+
export type { index$j_AUTHORIZATION_QUEUE_SIZE as AUTHORIZATION_QUEUE_SIZE, index$j_AccumulationQueue as AccumulationQueue, index$j_AccumulationQueueView as AccumulationQueueView, index$j_AuthorizationPool as AuthorizationPool, index$j_AuthorizationQueue as AuthorizationQueue, index$j_AvailabilityAssignmentsView as AvailabilityAssignmentsView, index$j_BlocksState as BlocksState, index$j_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$j_EnumerableState as EnumerableState, index$j_InMemoryStateFields as InMemoryStateFields, index$j_LookupHistorySlots as LookupHistorySlots, index$j_MAX_AUTH_POOL_SIZE as MAX_AUTH_POOL_SIZE, index$j_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$j_PerCore as PerCore, index$j_RecentBlocksView as RecentBlocksView, index$j_RecentlyAccumulated as RecentlyAccumulated, index$j_RecentlyAccumulatedView as RecentlyAccumulatedView, index$j_SafroleDataView as SafroleDataView, index$j_SafroleSealingKeys as SafroleSealingKeys, index$j_Service as Service, index$j_ServiceAccountInfoView as ServiceAccountInfoView, index$j_ServiceData as ServiceData, index$j_ServiceEntries as ServiceEntries, index$j_ServicesUpdate as ServicesUpdate, index$j_State as State, index$j_StateView as StateView, index$j_StatisticsDataView as StatisticsDataView, index$j_StorageKey as StorageKey, index$j_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES, index$j_ValidatorDataView as ValidatorDataView, index$j_WithStateView as WithStateView };
|
|
6090
6103
|
}
|
|
6091
6104
|
|
|
6092
6105
|
type StateKey = Opaque<OpaqueHash, "stateKey">;
|
|
@@ -6418,32 +6431,32 @@ declare const dumpCodec: Descriptor<BytesBlob, BytesBlob>;
|
|
|
6418
6431
|
* hashmap of `key -> value` entries.
|
|
6419
6432
|
*/
|
|
6420
6433
|
|
|
6421
|
-
type index$
|
|
6422
|
-
declare const index$
|
|
6423
|
-
type index$
|
|
6424
|
-
declare const index$
|
|
6425
|
-
type index$
|
|
6426
|
-
type index$
|
|
6427
|
-
declare const index$
|
|
6428
|
-
type index$
|
|
6429
|
-
type index$
|
|
6430
|
-
declare const index$
|
|
6431
|
-
type index$
|
|
6432
|
-
type index$
|
|
6433
|
-
declare const index$
|
|
6434
|
-
type index$
|
|
6435
|
-
type index$
|
|
6436
|
-
declare const index$
|
|
6437
|
-
declare const index$
|
|
6438
|
-
declare const index$
|
|
6439
|
-
declare const index$
|
|
6440
|
-
declare const index$
|
|
6441
|
-
import index$
|
|
6442
|
-
declare const index$
|
|
6443
|
-
import index$
|
|
6444
|
-
declare namespace index$
|
|
6445
|
-
export { index$
|
|
6446
|
-
export type { index$
|
|
6434
|
+
type index$i_SerializedService = SerializedService;
|
|
6435
|
+
declare const index$i_SerializedService: typeof SerializedService;
|
|
6436
|
+
type index$i_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
|
|
6437
|
+
declare const index$i_SerializedState: typeof SerializedState;
|
|
6438
|
+
type index$i_SerializedStateBackend = SerializedStateBackend;
|
|
6439
|
+
type index$i_SerializedStateView<T extends SerializedStateBackend> = SerializedStateView<T>;
|
|
6440
|
+
declare const index$i_SerializedStateView: typeof SerializedStateView;
|
|
6441
|
+
type index$i_StateCodec<T, V = T> = StateCodec<T, V>;
|
|
6442
|
+
type index$i_StateEntries = StateEntries;
|
|
6443
|
+
declare const index$i_StateEntries: typeof StateEntries;
|
|
6444
|
+
type index$i_StateEntryUpdate = StateEntryUpdate;
|
|
6445
|
+
type index$i_StateEntryUpdateAction = StateEntryUpdateAction;
|
|
6446
|
+
declare const index$i_StateEntryUpdateAction: typeof StateEntryUpdateAction;
|
|
6447
|
+
type index$i_StateKey = StateKey;
|
|
6448
|
+
type index$i_StateKeyIdx = StateKeyIdx;
|
|
6449
|
+
declare const index$i_StateKeyIdx: typeof StateKeyIdx;
|
|
6450
|
+
declare const index$i_binaryMerkleization: typeof binaryMerkleization;
|
|
6451
|
+
declare const index$i_dumpCodec: typeof dumpCodec;
|
|
6452
|
+
declare const index$i_legacyServiceNested: typeof legacyServiceNested;
|
|
6453
|
+
declare const index$i_loadState: typeof loadState;
|
|
6454
|
+
import index$i_serialize = serialize;
|
|
6455
|
+
declare const index$i_serializeStateUpdate: typeof serializeStateUpdate;
|
|
6456
|
+
import index$i_stateKeys = stateKeys;
|
|
6457
|
+
declare namespace index$i {
|
|
6458
|
+
export { index$i_SerializedService as SerializedService, index$i_SerializedState as SerializedState, index$i_SerializedStateView as SerializedStateView, index$i_StateEntries as StateEntries, index$i_StateEntryUpdateAction as StateEntryUpdateAction, index$i_StateKeyIdx as StateKeyIdx, index$i_binaryMerkleization as binaryMerkleization, index$i_dumpCodec as dumpCodec, index$i_legacyServiceNested as legacyServiceNested, index$i_loadState as loadState, index$i_serialize as serialize, index$i_serializeStateUpdate as serializeStateUpdate, index$i_stateKeys as stateKeys };
|
|
6459
|
+
export type { index$i_SerializedStateBackend as SerializedStateBackend, index$i_StateCodec as StateCodec, index$i_StateEntryUpdate as StateEntryUpdate, index$i_StateKey as StateKey };
|
|
6447
6460
|
}
|
|
6448
6461
|
|
|
6449
6462
|
/** Error during `LeafDb` creation. */
|
|
@@ -6568,28 +6581,28 @@ declare class InMemorySerializedStates implements StatesDb<SerializedState<LeafD
|
|
|
6568
6581
|
close(): Promise<void>;
|
|
6569
6582
|
}
|
|
6570
6583
|
|
|
6571
|
-
type index$
|
|
6572
|
-
type index$
|
|
6573
|
-
declare const index$
|
|
6574
|
-
type index$
|
|
6575
|
-
declare const index$
|
|
6576
|
-
type index$
|
|
6577
|
-
declare const index$
|
|
6578
|
-
type index$
|
|
6579
|
-
type index$
|
|
6580
|
-
declare const index$
|
|
6581
|
-
type index$
|
|
6582
|
-
declare const index$
|
|
6583
|
-
type index$
|
|
6584
|
-
type index$
|
|
6585
|
-
type index$
|
|
6586
|
-
declare const index$
|
|
6587
|
-
type index$
|
|
6588
|
-
type index$
|
|
6589
|
-
declare const index$
|
|
6590
|
-
declare namespace index$
|
|
6591
|
-
export { index$
|
|
6592
|
-
export type { index$
|
|
6584
|
+
type index$h_BlocksDb = BlocksDb;
|
|
6585
|
+
type index$h_InMemoryBlocks = InMemoryBlocks;
|
|
6586
|
+
declare const index$h_InMemoryBlocks: typeof InMemoryBlocks;
|
|
6587
|
+
type index$h_InMemorySerializedStates = InMemorySerializedStates;
|
|
6588
|
+
declare const index$h_InMemorySerializedStates: typeof InMemorySerializedStates;
|
|
6589
|
+
type index$h_InMemoryStates = InMemoryStates;
|
|
6590
|
+
declare const index$h_InMemoryStates: typeof InMemoryStates;
|
|
6591
|
+
type index$h_InitStatesDb<T = State> = InitStatesDb<T>;
|
|
6592
|
+
type index$h_LeafDb = LeafDb;
|
|
6593
|
+
declare const index$h_LeafDb: typeof LeafDb;
|
|
6594
|
+
type index$h_LeafDbError = LeafDbError;
|
|
6595
|
+
declare const index$h_LeafDbError: typeof LeafDbError;
|
|
6596
|
+
type index$h_RootDb<TBlocks = BlocksDb, TStates = StatesDb> = RootDb<TBlocks, TStates>;
|
|
6597
|
+
type index$h_SerializedStatesDb = SerializedStatesDb;
|
|
6598
|
+
type index$h_StateUpdateError = StateUpdateError;
|
|
6599
|
+
declare const index$h_StateUpdateError: typeof StateUpdateError;
|
|
6600
|
+
type index$h_StatesDb<T extends State = State> = StatesDb<T>;
|
|
6601
|
+
type index$h_ValuesDb = ValuesDb;
|
|
6602
|
+
declare const index$h_updateLeafs: typeof updateLeafs;
|
|
6603
|
+
declare namespace index$h {
|
|
6604
|
+
export { index$h_InMemoryBlocks as InMemoryBlocks, index$h_InMemorySerializedStates as InMemorySerializedStates, index$h_InMemoryStates as InMemoryStates, index$h_LeafDb as LeafDb, index$h_LeafDbError as LeafDbError, index$h_StateUpdateError as StateUpdateError, index$h_updateLeafs as updateLeafs };
|
|
6605
|
+
export type { index$h_BlocksDb as BlocksDb, index$h_InitStatesDb as InitStatesDb, index$h_RootDb as RootDb, index$h_SerializedStatesDb as SerializedStatesDb, index$h_StatesDb as StatesDb, index$h_ValuesDb as ValuesDb };
|
|
6593
6606
|
}
|
|
6594
6607
|
|
|
6595
6608
|
/**
|
|
@@ -6732,29 +6745,29 @@ declare function chunksToShards(spec: ChainSpec, chunks: FixedSizeArray<BytesBlo
|
|
|
6732
6745
|
|
|
6733
6746
|
declare const initEc: () => Promise<void>;
|
|
6734
6747
|
|
|
6735
|
-
declare const index$
|
|
6736
|
-
type index$
|
|
6737
|
-
type index$
|
|
6738
|
-
type index$
|
|
6739
|
-
type index$
|
|
6740
|
-
declare const index$
|
|
6741
|
-
declare const index$
|
|
6742
|
-
declare const index$
|
|
6743
|
-
declare const index$
|
|
6744
|
-
declare const index$
|
|
6745
|
-
declare const index$
|
|
6746
|
-
declare const index$
|
|
6747
|
-
declare const index$
|
|
6748
|
-
declare const index$
|
|
6749
|
-
declare const index$
|
|
6750
|
-
declare const index$
|
|
6751
|
-
declare const index$
|
|
6752
|
-
declare const index$
|
|
6753
|
-
declare const index$
|
|
6754
|
-
declare const index$
|
|
6755
|
-
declare namespace index$
|
|
6756
|
-
export { index$
|
|
6757
|
-
export type { index$
|
|
6748
|
+
declare const index$g_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
|
|
6749
|
+
type index$g_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
|
|
6750
|
+
type index$g_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
|
|
6751
|
+
type index$g_PIECE_SIZE = PIECE_SIZE;
|
|
6752
|
+
type index$g_POINT_LENGTH = POINT_LENGTH;
|
|
6753
|
+
declare const index$g_checkConsistency: typeof checkConsistency;
|
|
6754
|
+
declare const index$g_chunkingFunction: typeof chunkingFunction;
|
|
6755
|
+
declare const index$g_chunksToShards: typeof chunksToShards;
|
|
6756
|
+
declare const index$g_decodeData: typeof decodeData;
|
|
6757
|
+
declare const index$g_decodeDataAndTrim: typeof decodeDataAndTrim;
|
|
6758
|
+
declare const index$g_decodePiece: typeof decodePiece;
|
|
6759
|
+
declare const index$g_encodePoints: typeof encodePoints;
|
|
6760
|
+
declare const index$g_initEc: typeof initEc;
|
|
6761
|
+
declare const index$g_join: typeof join;
|
|
6762
|
+
declare const index$g_lace: typeof lace;
|
|
6763
|
+
declare const index$g_padAndEncodeData: typeof padAndEncodeData;
|
|
6764
|
+
declare const index$g_shardsToChunks: typeof shardsToChunks;
|
|
6765
|
+
declare const index$g_split: typeof split;
|
|
6766
|
+
declare const index$g_transpose: typeof transpose;
|
|
6767
|
+
declare const index$g_unzip: typeof unzip;
|
|
6768
|
+
declare namespace index$g {
|
|
6769
|
+
export { index$g_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$g_checkConsistency as checkConsistency, index$g_chunkingFunction as chunkingFunction, index$g_chunksToShards as chunksToShards, index$g_decodeData as decodeData, index$g_decodeDataAndTrim as decodeDataAndTrim, index$g_decodePiece as decodePiece, index$g_encodePoints as encodePoints, index$g_initEc as initEc, index$g_join as join, index$g_lace as lace, index$g_padAndEncodeData as padAndEncodeData, index$g_shardsToChunks as shardsToChunks, index$g_split as split, index$g_transpose as transpose, index$g_unzip as unzip };
|
|
6770
|
+
export type { index$g_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$g_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$g_PIECE_SIZE as PIECE_SIZE, index$g_POINT_LENGTH as POINT_LENGTH };
|
|
6758
6771
|
}
|
|
6759
6772
|
|
|
6760
6773
|
/** A per-client handler of incoming socket messages. */
|
|
@@ -7030,45 +7043,45 @@ declare class FuzzTarget implements IpcHandler {
|
|
|
7030
7043
|
hasFeature(feature: number): boolean;
|
|
7031
7044
|
}
|
|
7032
7045
|
|
|
7033
|
-
type index$
|
|
7034
|
-
type index$
|
|
7035
|
-
declare const index$
|
|
7036
|
-
type index$
|
|
7037
|
-
declare const index$
|
|
7038
|
-
type index$
|
|
7039
|
-
declare const index$
|
|
7040
|
-
type index$
|
|
7041
|
-
type index$
|
|
7042
|
-
declare const index$
|
|
7043
|
-
type index$
|
|
7044
|
-
type index$
|
|
7045
|
-
declare const index$
|
|
7046
|
-
type index$
|
|
7047
|
-
declare const index$
|
|
7048
|
-
type index$
|
|
7049
|
-
type index$
|
|
7050
|
-
type index$
|
|
7051
|
-
declare const index$
|
|
7052
|
-
type index$
|
|
7053
|
-
declare const index$
|
|
7054
|
-
type index$
|
|
7055
|
-
type index$
|
|
7056
|
-
declare const index$
|
|
7057
|
-
declare const index$
|
|
7058
|
-
declare const index$
|
|
7059
|
-
declare const index$
|
|
7060
|
-
declare const index$
|
|
7061
|
-
declare const index$
|
|
7062
|
-
declare namespace index$
|
|
7063
|
-
export { index$
|
|
7064
|
-
export type { index$
|
|
7046
|
+
type index$f_Ancestry = Ancestry;
|
|
7047
|
+
type index$f_AncestryItem = AncestryItem;
|
|
7048
|
+
declare const index$f_AncestryItem: typeof AncestryItem;
|
|
7049
|
+
type index$f_ErrorMessage = ErrorMessage;
|
|
7050
|
+
declare const index$f_ErrorMessage: typeof ErrorMessage;
|
|
7051
|
+
type index$f_Features = Features;
|
|
7052
|
+
declare const index$f_Features: typeof Features;
|
|
7053
|
+
type index$f_FuzzMessageHandler = FuzzMessageHandler;
|
|
7054
|
+
type index$f_FuzzTarget = FuzzTarget;
|
|
7055
|
+
declare const index$f_FuzzTarget: typeof FuzzTarget;
|
|
7056
|
+
type index$f_GetState = GetState;
|
|
7057
|
+
type index$f_Initialize = Initialize;
|
|
7058
|
+
declare const index$f_Initialize: typeof Initialize;
|
|
7059
|
+
type index$f_KeyValue = KeyValue;
|
|
7060
|
+
declare const index$f_KeyValue: typeof KeyValue;
|
|
7061
|
+
type index$f_Message = Message;
|
|
7062
|
+
type index$f_MessageData = MessageData;
|
|
7063
|
+
type index$f_MessageType = MessageType;
|
|
7064
|
+
declare const index$f_MessageType: typeof MessageType;
|
|
7065
|
+
type index$f_PeerInfo = PeerInfo;
|
|
7066
|
+
declare const index$f_PeerInfo: typeof PeerInfo;
|
|
7067
|
+
type index$f_StateRoot = StateRoot;
|
|
7068
|
+
type index$f_Version = Version;
|
|
7069
|
+
declare const index$f_Version: typeof Version;
|
|
7070
|
+
declare const index$f_ancestryCodec: typeof ancestryCodec;
|
|
7071
|
+
declare const index$f_getStateCodec: typeof getStateCodec;
|
|
7072
|
+
declare const index$f_messageCodec: typeof messageCodec;
|
|
7073
|
+
declare const index$f_stateCodec: typeof stateCodec;
|
|
7074
|
+
declare const index$f_stateRootCodec: typeof stateRootCodec;
|
|
7075
|
+
declare namespace index$f {
|
|
7076
|
+
export { index$f_AncestryItem as AncestryItem, index$f_ErrorMessage as ErrorMessage, index$f_Features as Features, index$f_FuzzTarget as FuzzTarget, index$f_Initialize as Initialize, index$f_KeyValue as KeyValue, index$f_MessageType as MessageType, index$f_PeerInfo as PeerInfo, index$f_Version as Version, index$f_ancestryCodec as ancestryCodec, index$f_getStateCodec as getStateCodec, index$f_messageCodec as messageCodec, index$f_stateCodec as stateCodec, index$f_stateRootCodec as stateRootCodec };
|
|
7077
|
+
export type { index$f_Ancestry as Ancestry, index$f_FuzzMessageHandler as FuzzMessageHandler, index$f_GetState as GetState, index$f_Message as Message, index$f_MessageData as MessageData, index$f_StateRoot as StateRoot };
|
|
7065
7078
|
}
|
|
7066
7079
|
|
|
7067
|
-
type index$
|
|
7068
|
-
type index$
|
|
7069
|
-
declare namespace index$
|
|
7070
|
-
export { index$
|
|
7071
|
-
export type { index$
|
|
7080
|
+
type index$e_IpcHandler = IpcHandler;
|
|
7081
|
+
type index$e_IpcSender = IpcSender;
|
|
7082
|
+
declare namespace index$e {
|
|
7083
|
+
export { index$f as v1 };
|
|
7084
|
+
export type { index$e_IpcHandler as IpcHandler, index$e_IpcSender as IpcSender };
|
|
7072
7085
|
}
|
|
7073
7086
|
|
|
7074
7087
|
/**
|
|
@@ -7200,6 +7213,8 @@ declare class Channel {
|
|
|
7200
7213
|
|
|
7201
7214
|
/** Standardized worker config. */
|
|
7202
7215
|
interface WorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> {
|
|
7216
|
+
/** Node name. */
|
|
7217
|
+
readonly nodeName: string;
|
|
7203
7218
|
/** Chain spec. */
|
|
7204
7219
|
readonly chainSpec: ChainSpec;
|
|
7205
7220
|
/** Worker parameters. */
|
|
@@ -7213,11 +7228,13 @@ interface WorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> {
|
|
|
7213
7228
|
* Worker config with in-thread database.
|
|
7214
7229
|
*/
|
|
7215
7230
|
declare class DirectWorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> implements WorkerConfig<TParams, TBlocks, TStates> {
|
|
7231
|
+
readonly nodeName: string;
|
|
7216
7232
|
readonly chainSpec: ChainSpec;
|
|
7217
7233
|
readonly workerParams: TParams;
|
|
7218
7234
|
private readonly blocksDb;
|
|
7219
7235
|
private readonly statesDb;
|
|
7220
|
-
static new<T, B, S>({ chainSpec, blocksDb, statesDb, params, }: {
|
|
7236
|
+
static new<T, B, S>({ nodeName, chainSpec, blocksDb, statesDb, params, }: {
|
|
7237
|
+
nodeName: string;
|
|
7221
7238
|
chainSpec: ChainSpec;
|
|
7222
7239
|
blocksDb: B;
|
|
7223
7240
|
statesDb: S;
|
|
@@ -7238,35 +7255,35 @@ declare function startSameThread<To, From>(protocol: LousyProtocol<To, From>): {
|
|
|
7238
7255
|
internal: Internal<LousyProtocol<To, From>>;
|
|
7239
7256
|
};
|
|
7240
7257
|
|
|
7241
|
-
type index$
|
|
7242
|
-
type index$
|
|
7243
|
-
declare const index$
|
|
7244
|
-
type index$
|
|
7245
|
-
type index$
|
|
7246
|
-
declare const index$
|
|
7247
|
-
type index$
|
|
7248
|
-
declare const index$
|
|
7249
|
-
type index$
|
|
7250
|
-
type index$
|
|
7251
|
-
type index$
|
|
7252
|
-
type index$
|
|
7253
|
-
type index$
|
|
7254
|
-
type index$
|
|
7255
|
-
type index$
|
|
7256
|
-
type index$
|
|
7257
|
-
type index$
|
|
7258
|
-
type index$
|
|
7259
|
-
type index$
|
|
7260
|
-
type index$
|
|
7261
|
-
type index$
|
|
7262
|
-
type index$
|
|
7263
|
-
type index$
|
|
7264
|
-
type index$
|
|
7265
|
-
declare const index$
|
|
7266
|
-
declare const index$
|
|
7267
|
-
declare namespace index$
|
|
7268
|
-
export { index$
|
|
7269
|
-
export type { index$
|
|
7258
|
+
type index$d_Api<T> = Api<T>;
|
|
7259
|
+
type index$d_Channel = Channel;
|
|
7260
|
+
declare const index$d_Channel: typeof Channel;
|
|
7261
|
+
type index$d_Destroy = Destroy;
|
|
7262
|
+
type index$d_DirectPort = DirectPort;
|
|
7263
|
+
declare const index$d_DirectPort: typeof DirectPort;
|
|
7264
|
+
type index$d_DirectWorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = DirectWorkerConfig<TParams, TBlocks, TStates>;
|
|
7265
|
+
declare const index$d_DirectWorkerConfig: typeof DirectWorkerConfig;
|
|
7266
|
+
type index$d_Envelope<T> = Envelope<T>;
|
|
7267
|
+
type index$d_Handler<Req, Res> = Handler<Req, Res>;
|
|
7268
|
+
type index$d_HandlerKey<K> = HandlerKey<K>;
|
|
7269
|
+
type index$d_Handlers<In> = Handlers<In>;
|
|
7270
|
+
type index$d_Internal<T> = Internal<T>;
|
|
7271
|
+
type index$d_LousyProtocol<To, From> = LousyProtocol<To, From>;
|
|
7272
|
+
type index$d_MessageCodecs<Req, Res> = MessageCodecs<Req, Res>;
|
|
7273
|
+
type index$d_MessagesList<T> = MessagesList<T>;
|
|
7274
|
+
type index$d_Port = Port;
|
|
7275
|
+
type index$d_Protocol<To, From> = Protocol<To, From>;
|
|
7276
|
+
type index$d_Rx<To, From> = Rx<To, From>;
|
|
7277
|
+
type index$d_Sender<Req, Res> = Sender<Req, Res>;
|
|
7278
|
+
type index$d_SenderKey<K> = SenderKey<K>;
|
|
7279
|
+
type index$d_Senders<Out> = Senders<Out>;
|
|
7280
|
+
type index$d_Tx<To, From> = Tx<To, From>;
|
|
7281
|
+
type index$d_WorkerConfig<TParams = void, TBlocks = BlocksDb, TStates = StatesDb> = WorkerConfig<TParams, TBlocks, TStates>;
|
|
7282
|
+
declare const index$d_createProtocol: typeof createProtocol;
|
|
7283
|
+
declare const index$d_startSameThread: typeof startSameThread;
|
|
7284
|
+
declare namespace index$d {
|
|
7285
|
+
export { index$d_Channel as Channel, index$d_DirectPort as DirectPort, index$d_DirectWorkerConfig as DirectWorkerConfig, index$d_createProtocol as createProtocol, index$d_startSameThread as startSameThread };
|
|
7286
|
+
export type { index$d_Api as Api, index$d_Destroy as Destroy, index$d_Envelope as Envelope, index$d_Handler as Handler, index$d_HandlerKey as HandlerKey, index$d_Handlers as Handlers, index$d_Internal as Internal, index$d_LousyProtocol as LousyProtocol, index$d_MessageCodecs as MessageCodecs, index$d_MessagesList as MessagesList, index$d_Port as Port, index$d_Protocol as Protocol, index$d_Rx as Rx, index$d_Sender as Sender, index$d_SenderKey as SenderKey, index$d_Senders as Senders, index$d_Tx as Tx, index$d_WorkerConfig as WorkerConfig };
|
|
7270
7287
|
}
|
|
7271
7288
|
|
|
7272
7289
|
declare enum Level {
|
|
@@ -7344,16 +7361,16 @@ declare class Logger {
|
|
|
7344
7361
|
error(strings: TemplateStringsArray, ...data: unknown[]): void;
|
|
7345
7362
|
}
|
|
7346
7363
|
|
|
7347
|
-
type index$
|
|
7348
|
-
declare const index$
|
|
7349
|
-
type index$
|
|
7350
|
-
declare const index$
|
|
7351
|
-
declare const index$
|
|
7352
|
-
declare namespace index$
|
|
7364
|
+
type index$c_Level = Level;
|
|
7365
|
+
declare const index$c_Level: typeof Level;
|
|
7366
|
+
type index$c_Logger = Logger;
|
|
7367
|
+
declare const index$c_Logger: typeof Logger;
|
|
7368
|
+
declare const index$c_parseLoggerOptions: typeof parseLoggerOptions;
|
|
7369
|
+
declare namespace index$c {
|
|
7353
7370
|
export {
|
|
7354
|
-
index$
|
|
7355
|
-
index$
|
|
7356
|
-
index$
|
|
7371
|
+
index$c_Level as Level,
|
|
7372
|
+
index$c_Logger as Logger,
|
|
7373
|
+
index$c_parseLoggerOptions as parseLoggerOptions,
|
|
7357
7374
|
};
|
|
7358
7375
|
}
|
|
7359
7376
|
|
|
@@ -7583,6 +7600,12 @@ type BigGas = Opaque<U64, "BigGas[U64]">;
|
|
|
7583
7600
|
type SmallGas = Opaque<U32, "SmallGas[U32]">;
|
|
7584
7601
|
/** Gas measuring type. Can be either U64 or U32 for performance reasons. */
|
|
7585
7602
|
type Gas = BigGas | SmallGas;
|
|
7603
|
+
/** Attempt to convert given number into U32 gas representation. */
|
|
7604
|
+
declare const tryAsSmallGas: (v: number) => SmallGas;
|
|
7605
|
+
/** Attempt to convert given number into U64 gas representation. */
|
|
7606
|
+
declare const tryAsBigGas: (v: number | bigint) => BigGas;
|
|
7607
|
+
/** Attempt to convert given number into gas. */
|
|
7608
|
+
declare const tryAsGas: (v: number | bigint) => Gas;
|
|
7586
7609
|
/** An abstraction over gas counter.
|
|
7587
7610
|
*
|
|
7588
7611
|
* It can be optimized to use numbers instead of bigint in case of small gas.
|
|
@@ -7617,9 +7640,12 @@ interface IGasCounter {
|
|
|
7617
7640
|
used(): Gas;
|
|
7618
7641
|
}
|
|
7619
7642
|
|
|
7643
|
+
declare const MAX_MEMORY_INDEX = 4294967295;
|
|
7644
|
+
declare const MEMORY_SIZE: number;
|
|
7620
7645
|
type PageFault$1 = {
|
|
7621
7646
|
address: U32;
|
|
7622
7647
|
};
|
|
7648
|
+
declare function getPageStartAddress(address: U32): U32;
|
|
7623
7649
|
/** Allows store and read segments of memory. */
|
|
7624
7650
|
interface IMemory {
|
|
7625
7651
|
/** Store bytes into memory at given address. */
|
|
@@ -7628,6 +7654,8 @@ interface IMemory {
|
|
|
7628
7654
|
read(address: U32, result: Uint8Array): Result<OK, PageFault$1>;
|
|
7629
7655
|
}
|
|
7630
7656
|
|
|
7657
|
+
declare const NO_OF_REGISTERS = 13;
|
|
7658
|
+
declare const REGISTER_BYTE_SIZE = 8;
|
|
7631
7659
|
/** Allow to set and get all registers encoded into little-endian bytes. */
|
|
7632
7660
|
interface IRegisters {
|
|
7633
7661
|
/**
|
|
@@ -7683,7 +7711,30 @@ interface IPvmInterpreter {
|
|
|
7683
7711
|
getExitParam(): U32 | null;
|
|
7684
7712
|
}
|
|
7685
7713
|
|
|
7714
|
+
type index$b_BigGas = BigGas;
|
|
7715
|
+
type index$b_Gas = Gas;
|
|
7716
|
+
type index$b_IGasCounter = IGasCounter;
|
|
7717
|
+
type index$b_IMemory = IMemory;
|
|
7718
|
+
type index$b_IPvmInterpreter = IPvmInterpreter;
|
|
7719
|
+
type index$b_IRegisters = IRegisters;
|
|
7720
|
+
declare const index$b_MAX_MEMORY_INDEX: typeof MAX_MEMORY_INDEX;
|
|
7721
|
+
declare const index$b_MEMORY_SIZE: typeof MEMORY_SIZE;
|
|
7722
|
+
declare const index$b_NO_OF_REGISTERS: typeof NO_OF_REGISTERS;
|
|
7723
|
+
declare const index$b_REGISTER_BYTE_SIZE: typeof REGISTER_BYTE_SIZE;
|
|
7724
|
+
type index$b_SmallGas = SmallGas;
|
|
7725
|
+
type index$b_Status = Status;
|
|
7726
|
+
declare const index$b_Status: typeof Status;
|
|
7727
|
+
declare const index$b_getPageStartAddress: typeof getPageStartAddress;
|
|
7728
|
+
declare const index$b_tryAsBigGas: typeof tryAsBigGas;
|
|
7729
|
+
declare const index$b_tryAsGas: typeof tryAsGas;
|
|
7730
|
+
declare const index$b_tryAsSmallGas: typeof tryAsSmallGas;
|
|
7731
|
+
declare namespace index$b {
|
|
7732
|
+
export { index$b_MAX_MEMORY_INDEX as MAX_MEMORY_INDEX, index$b_MEMORY_SIZE as MEMORY_SIZE, index$b_NO_OF_REGISTERS as NO_OF_REGISTERS, index$b_REGISTER_BYTE_SIZE as REGISTER_BYTE_SIZE, index$b_Status as Status, index$b_getPageStartAddress as getPageStartAddress, index$b_tryAsBigGas as tryAsBigGas, index$b_tryAsGas as tryAsGas, index$b_tryAsSmallGas as tryAsSmallGas };
|
|
7733
|
+
export type { index$b_BigGas as BigGas, index$b_Gas as Gas, index$b_IGasCounter as IGasCounter, index$b_IMemory as IMemory, index$b_IPvmInterpreter as IPvmInterpreter, index$b_IRegisters as IRegisters, PageFault$1 as PageFault, index$b_SmallGas as SmallGas };
|
|
7734
|
+
}
|
|
7735
|
+
|
|
7686
7736
|
type RegisterIndex = Opaque<number, "register index">;
|
|
7737
|
+
declare const tryAsRegisterIndex: (index: number) => RegisterIndex;
|
|
7687
7738
|
declare class Registers implements IRegisters {
|
|
7688
7739
|
private readonly bytes;
|
|
7689
7740
|
private asSigned;
|
|
@@ -7705,6 +7756,7 @@ declare class Registers implements IRegisters {
|
|
|
7705
7756
|
setI64(registerIndex: number, value: bigint): void;
|
|
7706
7757
|
getAllU64(): BigUint64Array<ArrayBufferLike>;
|
|
7707
7758
|
}
|
|
7759
|
+
declare function signExtend32To64(value: number | bigint): bigint;
|
|
7708
7760
|
|
|
7709
7761
|
declare class HostCallMemory {
|
|
7710
7762
|
private readonly memory;
|
|
@@ -7836,9 +7888,57 @@ declare namespace index$a {
|
|
|
7836
7888
|
export type { index$a_HostCallHandler as HostCallHandler };
|
|
7837
7889
|
}
|
|
7838
7890
|
|
|
7891
|
+
declare class JumpTable {
|
|
7892
|
+
private indices;
|
|
7893
|
+
constructor(itemByteLength: number, bytes: Uint8Array);
|
|
7894
|
+
private decodeNext;
|
|
7895
|
+
hasIndex(index: number): boolean;
|
|
7896
|
+
getDestination(index: number): number;
|
|
7897
|
+
static empty(): JumpTable;
|
|
7898
|
+
getSize(): number;
|
|
7899
|
+
copyFrom(jt: JumpTable): void;
|
|
7900
|
+
}
|
|
7901
|
+
|
|
7902
|
+
/**
|
|
7903
|
+
* Mask class is an implementation of skip function defined in GP.
|
|
7904
|
+
*
|
|
7905
|
+
* https://graypaper.fluffylabs.dev/#/5f542d7/237201239801
|
|
7906
|
+
*/
|
|
7907
|
+
declare class Mask {
|
|
7908
|
+
/**
|
|
7909
|
+
* The lookup table will have `0` at the index which corresponds to an instruction on the same index in the bytecode.
|
|
7910
|
+
* In case the value is non-zero it signifies the offset to the index with next instruction.
|
|
7911
|
+
*
|
|
7912
|
+
* Example:
|
|
7913
|
+
* ```
|
|
7914
|
+
* 0..1..2..3..4..5..6..7..8..9 # Indices
|
|
7915
|
+
* 0..2..1..0..1..0..3..2..1..0 # lookupTable forward values
|
|
7916
|
+
* ```
|
|
7917
|
+
* There are instructions at indices `0, 3, 5, 9`.
|
|
7918
|
+
*/
|
|
7919
|
+
private lookupTableForward;
|
|
7920
|
+
constructor(mask: BitVec);
|
|
7921
|
+
isInstruction(index: number): boolean;
|
|
7922
|
+
getNoOfBytesToNextInstruction(index: number): number;
|
|
7923
|
+
private buildLookupTableForward;
|
|
7924
|
+
static empty(): Mask;
|
|
7925
|
+
}
|
|
7926
|
+
|
|
7839
7927
|
declare enum ProgramDecoderError {
|
|
7840
7928
|
InvalidProgramError = 0
|
|
7841
7929
|
}
|
|
7930
|
+
declare class ProgramDecoder {
|
|
7931
|
+
private code;
|
|
7932
|
+
private mask;
|
|
7933
|
+
private jumpTable;
|
|
7934
|
+
constructor(rawProgram: Uint8Array);
|
|
7935
|
+
private decodeProgram;
|
|
7936
|
+
getMask(): Mask;
|
|
7937
|
+
getCode(): Uint8Array<ArrayBufferLike>;
|
|
7938
|
+
getJumpTable(): JumpTable;
|
|
7939
|
+
/** https://graypaper.fluffylabs.dev/#/68eaa1f/23f400234701?v=0.6.4 */
|
|
7940
|
+
static deblob(program: Uint8Array): Result<ProgramDecoder, ProgramDecoderError>;
|
|
7941
|
+
}
|
|
7842
7942
|
|
|
7843
7943
|
/**
|
|
7844
7944
|
* Program counter is a 64-bit unsigned integer that points to the next instruction
|
|
@@ -9355,6 +9455,7 @@ declare class Importer {
|
|
|
9355
9455
|
private readonly stf;
|
|
9356
9456
|
private readonly state;
|
|
9357
9457
|
private currentHash;
|
|
9458
|
+
private readonly metrics;
|
|
9358
9459
|
constructor(spec: ChainSpec, pvm: PvmBackend, hasher: TransitionHasher, logger: Logger, blocks: BlocksDb, states: StatesDb<SerializedState<LeafDb>>);
|
|
9359
9460
|
/** Do some extra work for preparation for the next epoch. */
|
|
9360
9461
|
prepareForNextEpoch(): Promise<void>;
|
|
@@ -9729,6 +9830,20 @@ declare function createImporter(config: Config): Promise<{
|
|
|
9729
9830
|
*/
|
|
9730
9831
|
declare function main(config: Config, comms: ImporterInternal): Promise<void>;
|
|
9731
9832
|
|
|
9833
|
+
/**
|
|
9834
|
+
* Block importer metrics for JAM implementation.
|
|
9835
|
+
*
|
|
9836
|
+
* https://github.com/polkadot-fellows/JIPs/blob/main/JIP-3.md#block-authoringimporting-events
|
|
9837
|
+
*/
|
|
9838
|
+
declare function createMetrics(): {
|
|
9839
|
+
recordBlockImportComplete(totalDurationMs: number, success: boolean): void;
|
|
9840
|
+
recordBlockImportingStarted(slot: number): void;
|
|
9841
|
+
recordBlockVerificationFailed(reason: string): void;
|
|
9842
|
+
recordBlockVerified(durationMs: number): void;
|
|
9843
|
+
recordBlockExecutionFailed(reason: string): void;
|
|
9844
|
+
recordBlockExecuted(durationMs: number, cost: number): void;
|
|
9845
|
+
};
|
|
9846
|
+
|
|
9732
9847
|
declare const WORKER: url.URL;
|
|
9733
9848
|
|
|
9734
9849
|
type index$6_Config = Config;
|
|
@@ -9738,13 +9853,250 @@ declare const index$6_ImporterConfig: typeof ImporterConfig;
|
|
|
9738
9853
|
type index$6_ImporterInternal = ImporterInternal;
|
|
9739
9854
|
declare const index$6_WORKER: typeof WORKER;
|
|
9740
9855
|
declare const index$6_createImporter: typeof createImporter;
|
|
9856
|
+
declare const index$6_createMetrics: typeof createMetrics;
|
|
9741
9857
|
declare const index$6_main: typeof main;
|
|
9742
9858
|
declare const index$6_protocol: typeof protocol;
|
|
9743
9859
|
declare namespace index$6 {
|
|
9744
|
-
export { index$6_ImporterConfig as ImporterConfig, index$6_WORKER as WORKER, index$6_createImporter as createImporter, index$6_main as main, index$6_protocol as protocol };
|
|
9860
|
+
export { index$6_ImporterConfig as ImporterConfig, index$6_WORKER as WORKER, index$6_createImporter as createImporter, index$6_createMetrics as createMetrics, index$6_main as main, index$6_protocol as protocol };
|
|
9745
9861
|
export type { index$6_Config as Config, index$6_ImporterApi as ImporterApi, index$6_ImporterInternal as ImporterInternal };
|
|
9746
9862
|
}
|
|
9747
9863
|
|
|
9864
|
+
declare enum ArgumentType {
|
|
9865
|
+
NO_ARGUMENTS = 0,
|
|
9866
|
+
ONE_IMMEDIATE = 1,
|
|
9867
|
+
TWO_IMMEDIATES = 2,
|
|
9868
|
+
ONE_OFFSET = 3,
|
|
9869
|
+
ONE_REGISTER_ONE_IMMEDIATE = 4,
|
|
9870
|
+
ONE_REGISTER_TWO_IMMEDIATES = 5,
|
|
9871
|
+
ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET = 6,
|
|
9872
|
+
TWO_REGISTERS = 7,
|
|
9873
|
+
TWO_REGISTERS_ONE_IMMEDIATE = 8,
|
|
9874
|
+
TWO_REGISTERS_ONE_OFFSET = 9,
|
|
9875
|
+
TWO_REGISTERS_TWO_IMMEDIATES = 10,
|
|
9876
|
+
THREE_REGISTERS = 11,
|
|
9877
|
+
ONE_REGISTER_ONE_EXTENDED_WIDTH_IMMEDIATE = 12
|
|
9878
|
+
}
|
|
9879
|
+
|
|
9880
|
+
declare class ExtendedWitdthImmediateDecoder {
|
|
9881
|
+
private unsignedImmediate;
|
|
9882
|
+
private bytes;
|
|
9883
|
+
constructor();
|
|
9884
|
+
setBytes(bytes: Uint8Array): void;
|
|
9885
|
+
getValue(): bigint;
|
|
9886
|
+
getBytesAsLittleEndian(): Uint8Array<ArrayBufferLike>;
|
|
9887
|
+
}
|
|
9888
|
+
|
|
9889
|
+
declare class ImmediateDecoder {
|
|
9890
|
+
private u32;
|
|
9891
|
+
private i32;
|
|
9892
|
+
private u64;
|
|
9893
|
+
private i64;
|
|
9894
|
+
private view;
|
|
9895
|
+
private bytes;
|
|
9896
|
+
constructor();
|
|
9897
|
+
setBytes(bytes: Uint8Array): void;
|
|
9898
|
+
/**
|
|
9899
|
+
* @deprecated Use getU32 instead
|
|
9900
|
+
*/
|
|
9901
|
+
getUnsigned(): number;
|
|
9902
|
+
/**
|
|
9903
|
+
* @deprecated Use getI32 instead
|
|
9904
|
+
*/
|
|
9905
|
+
getSigned(): number;
|
|
9906
|
+
getU32(): number;
|
|
9907
|
+
getI32(): number;
|
|
9908
|
+
getU64(): bigint;
|
|
9909
|
+
getI64(): bigint;
|
|
9910
|
+
getBytesAsLittleEndian(): Uint8Array<ArrayBufferLike>;
|
|
9911
|
+
getExtendedBytesAsLittleEndian(): Uint8Array<ArrayBufferLike>;
|
|
9912
|
+
}
|
|
9913
|
+
|
|
9914
|
+
type EmptyArgs = {
|
|
9915
|
+
type: ArgumentType.NO_ARGUMENTS;
|
|
9916
|
+
noOfBytesToSkip: number;
|
|
9917
|
+
};
|
|
9918
|
+
type OneImmediateArgs = {
|
|
9919
|
+
type: ArgumentType.ONE_IMMEDIATE;
|
|
9920
|
+
noOfBytesToSkip: number;
|
|
9921
|
+
/** V_X */
|
|
9922
|
+
immediateDecoder: ImmediateDecoder;
|
|
9923
|
+
};
|
|
9924
|
+
type ThreeRegistersArgs = {
|
|
9925
|
+
type: ArgumentType.THREE_REGISTERS;
|
|
9926
|
+
noOfBytesToSkip: number;
|
|
9927
|
+
/** W_A */
|
|
9928
|
+
firstRegisterIndex: number;
|
|
9929
|
+
/** W_B */
|
|
9930
|
+
secondRegisterIndex: number;
|
|
9931
|
+
/** W_D */
|
|
9932
|
+
thirdRegisterIndex: number;
|
|
9933
|
+
};
|
|
9934
|
+
type TwoRegistersArgs = {
|
|
9935
|
+
type: ArgumentType.TWO_REGISTERS;
|
|
9936
|
+
noOfBytesToSkip: number;
|
|
9937
|
+
/** W_A */
|
|
9938
|
+
firstRegisterIndex: number;
|
|
9939
|
+
/** W_D */
|
|
9940
|
+
secondRegisterIndex: number;
|
|
9941
|
+
};
|
|
9942
|
+
type TwoRegistersOneImmediateArgs = {
|
|
9943
|
+
type: ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
|
|
9944
|
+
noOfBytesToSkip: number;
|
|
9945
|
+
/** W_A */
|
|
9946
|
+
firstRegisterIndex: number;
|
|
9947
|
+
/** W_B */
|
|
9948
|
+
secondRegisterIndex: number;
|
|
9949
|
+
/** V_X */
|
|
9950
|
+
immediateDecoder: ImmediateDecoder;
|
|
9951
|
+
};
|
|
9952
|
+
type OneRegisterOneImmediateArgs = {
|
|
9953
|
+
type: ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
|
|
9954
|
+
noOfBytesToSkip: number;
|
|
9955
|
+
/** W_A */
|
|
9956
|
+
registerIndex: number;
|
|
9957
|
+
/** V_X */
|
|
9958
|
+
immediateDecoder: ImmediateDecoder;
|
|
9959
|
+
};
|
|
9960
|
+
type OneRegisterOneExtendedWidthImmediateArgs = {
|
|
9961
|
+
type: ArgumentType.ONE_REGISTER_ONE_EXTENDED_WIDTH_IMMEDIATE;
|
|
9962
|
+
noOfBytesToSkip: number;
|
|
9963
|
+
/** W_A */
|
|
9964
|
+
registerIndex: number;
|
|
9965
|
+
/** V_X */
|
|
9966
|
+
immediateDecoder: ExtendedWitdthImmediateDecoder;
|
|
9967
|
+
};
|
|
9968
|
+
type TwoRegistersTwoImmediatesArgs = {
|
|
9969
|
+
type: ArgumentType.TWO_REGISTERS_TWO_IMMEDIATES;
|
|
9970
|
+
noOfBytesToSkip: number;
|
|
9971
|
+
/** W_A */
|
|
9972
|
+
firstRegisterIndex: number;
|
|
9973
|
+
/** W_B */
|
|
9974
|
+
secondRegisterIndex: number;
|
|
9975
|
+
/** V_X */
|
|
9976
|
+
firstImmediateDecoder: ImmediateDecoder;
|
|
9977
|
+
/** V_Y */
|
|
9978
|
+
secondImmediateDecoder: ImmediateDecoder;
|
|
9979
|
+
};
|
|
9980
|
+
type TwoImmediatesArgs = {
|
|
9981
|
+
type: ArgumentType.TWO_IMMEDIATES;
|
|
9982
|
+
noOfBytesToSkip: number;
|
|
9983
|
+
/** V_X */
|
|
9984
|
+
firstImmediateDecoder: ImmediateDecoder;
|
|
9985
|
+
/** V_Y */
|
|
9986
|
+
secondImmediateDecoder: ImmediateDecoder;
|
|
9987
|
+
};
|
|
9988
|
+
type TwoRegistersOneOffsetArgs = {
|
|
9989
|
+
type: ArgumentType.TWO_REGISTERS_ONE_OFFSET;
|
|
9990
|
+
noOfBytesToSkip: number;
|
|
9991
|
+
/** W_A */
|
|
9992
|
+
firstRegisterIndex: number;
|
|
9993
|
+
/** W_B */
|
|
9994
|
+
secondRegisterIndex: number;
|
|
9995
|
+
nextPc: number;
|
|
9996
|
+
};
|
|
9997
|
+
type OneRegisterOneImmediateOneOffsetArgs = {
|
|
9998
|
+
type: ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
|
|
9999
|
+
noOfBytesToSkip: number;
|
|
10000
|
+
/** W_A */
|
|
10001
|
+
registerIndex: number;
|
|
10002
|
+
/** V_X */
|
|
10003
|
+
immediateDecoder: ImmediateDecoder;
|
|
10004
|
+
/** V_Y */
|
|
10005
|
+
nextPc: number;
|
|
10006
|
+
};
|
|
10007
|
+
type OneRegisterTwoImmediatesArgs = {
|
|
10008
|
+
type: ArgumentType.ONE_REGISTER_TWO_IMMEDIATES;
|
|
10009
|
+
noOfBytesToSkip: number;
|
|
10010
|
+
/** W_A */
|
|
10011
|
+
registerIndex: number;
|
|
10012
|
+
/** V_X */
|
|
10013
|
+
firstImmediateDecoder: ImmediateDecoder;
|
|
10014
|
+
/** V_Y */
|
|
10015
|
+
secondImmediateDecoder: ImmediateDecoder;
|
|
10016
|
+
};
|
|
10017
|
+
type OneOffsetArgs = {
|
|
10018
|
+
type: ArgumentType.ONE_OFFSET;
|
|
10019
|
+
noOfBytesToSkip: number;
|
|
10020
|
+
/** V_X */
|
|
10021
|
+
nextPc: number;
|
|
10022
|
+
};
|
|
10023
|
+
type Args = EmptyArgs | OneImmediateArgs | TwoRegistersArgs | ThreeRegistersArgs | TwoRegistersOneImmediateArgs | TwoRegistersTwoImmediatesArgs | OneRegisterOneImmediateOneOffsetArgs | TwoRegistersOneOffsetArgs | OneRegisterOneImmediateArgs | OneOffsetArgs | TwoImmediatesArgs | OneRegisterTwoImmediatesArgs | OneRegisterOneExtendedWidthImmediateArgs;
|
|
10024
|
+
declare class ArgsDecoder {
|
|
10025
|
+
private nibblesDecoder;
|
|
10026
|
+
private offsetDecoder;
|
|
10027
|
+
private code;
|
|
10028
|
+
private mask;
|
|
10029
|
+
reset(code: Uint8Array, mask: Mask): void;
|
|
10030
|
+
fillArgs<T extends Args>(pc: number, result: T): void;
|
|
10031
|
+
}
|
|
10032
|
+
|
|
10033
|
+
type Results = [
|
|
10034
|
+
EmptyArgs,
|
|
10035
|
+
OneImmediateArgs,
|
|
10036
|
+
TwoImmediatesArgs,
|
|
10037
|
+
OneOffsetArgs,
|
|
10038
|
+
OneRegisterOneImmediateArgs,
|
|
10039
|
+
OneRegisterTwoImmediatesArgs,
|
|
10040
|
+
OneRegisterOneImmediateOneOffsetArgs,
|
|
10041
|
+
TwoRegistersArgs,
|
|
10042
|
+
TwoRegistersOneImmediateArgs,
|
|
10043
|
+
TwoRegistersOneOffsetArgs,
|
|
10044
|
+
TwoRegistersTwoImmediatesArgs,
|
|
10045
|
+
ThreeRegistersArgs,
|
|
10046
|
+
OneRegisterOneExtendedWidthImmediateArgs
|
|
10047
|
+
];
|
|
10048
|
+
declare const createResults: () => Results;
|
|
10049
|
+
|
|
10050
|
+
declare class NibblesDecoder {
|
|
10051
|
+
private byte;
|
|
10052
|
+
setByte(byte: number): void;
|
|
10053
|
+
getHighNibble(): number;
|
|
10054
|
+
getLowNibble(): number;
|
|
10055
|
+
getHighNibbleAsRegisterIndex(): number;
|
|
10056
|
+
getLowNibbleAsRegisterIndex(): number;
|
|
10057
|
+
getHighNibbleAsLength(): number;
|
|
10058
|
+
getLowNibbleAsLength(): number;
|
|
10059
|
+
}
|
|
10060
|
+
|
|
10061
|
+
declare const instructionArgumentTypeMap: ArgumentType[];
|
|
10062
|
+
|
|
10063
|
+
type index$5_Args = Args;
|
|
10064
|
+
type index$5_ArgsDecoder = ArgsDecoder;
|
|
10065
|
+
declare const index$5_ArgsDecoder: typeof ArgsDecoder;
|
|
10066
|
+
type index$5_ArgumentType = ArgumentType;
|
|
10067
|
+
declare const index$5_ArgumentType: typeof ArgumentType;
|
|
10068
|
+
type index$5_EmptyArgs = EmptyArgs;
|
|
10069
|
+
type index$5_ExtendedWitdthImmediateDecoder = ExtendedWitdthImmediateDecoder;
|
|
10070
|
+
declare const index$5_ExtendedWitdthImmediateDecoder: typeof ExtendedWitdthImmediateDecoder;
|
|
10071
|
+
type index$5_ImmediateDecoder = ImmediateDecoder;
|
|
10072
|
+
declare const index$5_ImmediateDecoder: typeof ImmediateDecoder;
|
|
10073
|
+
type index$5_NibblesDecoder = NibblesDecoder;
|
|
10074
|
+
declare const index$5_NibblesDecoder: typeof NibblesDecoder;
|
|
10075
|
+
type index$5_OneImmediateArgs = OneImmediateArgs;
|
|
10076
|
+
type index$5_OneOffsetArgs = OneOffsetArgs;
|
|
10077
|
+
type index$5_OneRegisterOneExtendedWidthImmediateArgs = OneRegisterOneExtendedWidthImmediateArgs;
|
|
10078
|
+
type index$5_OneRegisterOneImmediateArgs = OneRegisterOneImmediateArgs;
|
|
10079
|
+
type index$5_OneRegisterOneImmediateOneOffsetArgs = OneRegisterOneImmediateOneOffsetArgs;
|
|
10080
|
+
type index$5_OneRegisterTwoImmediatesArgs = OneRegisterTwoImmediatesArgs;
|
|
10081
|
+
type index$5_ThreeRegistersArgs = ThreeRegistersArgs;
|
|
10082
|
+
type index$5_TwoImmediatesArgs = TwoImmediatesArgs;
|
|
10083
|
+
type index$5_TwoRegistersArgs = TwoRegistersArgs;
|
|
10084
|
+
type index$5_TwoRegistersOneImmediateArgs = TwoRegistersOneImmediateArgs;
|
|
10085
|
+
type index$5_TwoRegistersOneOffsetArgs = TwoRegistersOneOffsetArgs;
|
|
10086
|
+
type index$5_TwoRegistersTwoImmediatesArgs = TwoRegistersTwoImmediatesArgs;
|
|
10087
|
+
declare const index$5_createResults: typeof createResults;
|
|
10088
|
+
declare const index$5_instructionArgumentTypeMap: typeof instructionArgumentTypeMap;
|
|
10089
|
+
declare namespace index$5 {
|
|
10090
|
+
export { index$5_ArgsDecoder as ArgsDecoder, index$5_ArgumentType as ArgumentType, index$5_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$5_ImmediateDecoder as ImmediateDecoder, index$5_NibblesDecoder as NibblesDecoder, index$5_createResults as createResults, index$5_instructionArgumentTypeMap as instructionArgumentTypeMap };
|
|
10091
|
+
export type { index$5_Args as Args, index$5_EmptyArgs as EmptyArgs, index$5_OneImmediateArgs as OneImmediateArgs, index$5_OneOffsetArgs as OneOffsetArgs, index$5_OneRegisterOneExtendedWidthImmediateArgs as OneRegisterOneExtendedWidthImmediateArgs, index$5_OneRegisterOneImmediateArgs as OneRegisterOneImmediateArgs, index$5_OneRegisterOneImmediateOneOffsetArgs as OneRegisterOneImmediateOneOffsetArgs, index$5_OneRegisterTwoImmediatesArgs as OneRegisterTwoImmediatesArgs, index$5_ThreeRegistersArgs as ThreeRegistersArgs, index$5_TwoImmediatesArgs as TwoImmediatesArgs, index$5_TwoRegistersArgs as TwoRegistersArgs, index$5_TwoRegistersOneImmediateArgs as TwoRegistersOneImmediateArgs, index$5_TwoRegistersOneOffsetArgs as TwoRegistersOneOffsetArgs, index$5_TwoRegistersTwoImmediatesArgs as TwoRegistersTwoImmediatesArgs };
|
|
10092
|
+
}
|
|
10093
|
+
|
|
10094
|
+
declare class BasicBlocks {
|
|
10095
|
+
private basicBlocks;
|
|
10096
|
+
reset(code: Uint8Array, mask: Mask): void;
|
|
10097
|
+
isBeginningOfBasicBlock(index: number): boolean;
|
|
10098
|
+
}
|
|
10099
|
+
|
|
9748
10100
|
declare class PageFault implements PageFault$1 {
|
|
9749
10101
|
address: U32;
|
|
9750
10102
|
isAccessFault: boolean;
|
|
@@ -9856,6 +10208,7 @@ declare class MemoryBuilder {
|
|
|
9856
10208
|
declare class DebuggerAdapter {
|
|
9857
10209
|
private readonly pvm;
|
|
9858
10210
|
constructor(useSbrkGas?: boolean);
|
|
10211
|
+
resetJAM(jamProgram: Uint8Array, pc: number, gas: bigint, args: Uint8Array, hasMetadata?: boolean): void;
|
|
9859
10212
|
resetGeneric(rawProgram: Uint8Array, flatRegisters: Uint8Array, initialGas: bigint): void;
|
|
9860
10213
|
reset(rawProgram: Uint8Array, pc: number, gas: bigint, maybeRegisters?: Registers, maybeMemory?: Memory): void;
|
|
9861
10214
|
getPageDump(pageNumber: number): null | Uint8Array;
|
|
@@ -9864,7 +10217,7 @@ declare class DebuggerAdapter {
|
|
|
9864
10217
|
getStatus(): Status;
|
|
9865
10218
|
nextStep(): boolean;
|
|
9866
10219
|
nSteps(steps: number): boolean;
|
|
9867
|
-
getRegisters():
|
|
10220
|
+
getRegisters(): Uint8Array;
|
|
9868
10221
|
setRegisters(registers: Uint8Array): void;
|
|
9869
10222
|
getProgramCounter(): number;
|
|
9870
10223
|
setNextProgramCounter(nextPc: number): void;
|
|
@@ -9906,7 +10259,7 @@ declare class Interpreter implements IPvmInterpreter {
|
|
|
9906
10259
|
private basicBlocks;
|
|
9907
10260
|
private jumpTable;
|
|
9908
10261
|
constructor({ useSbrkGas }?: InterpreterOptions);
|
|
9909
|
-
resetJam(program: Uint8Array, args: Uint8Array, pc: number, gas: Gas): void;
|
|
10262
|
+
resetJam(program: Uint8Array, args: Uint8Array, pc: number, gas: Gas, hasMetadata?: boolean): void;
|
|
9910
10263
|
resetGeneric(rawProgram: Uint8Array, pc: number, gas: Gas, maybeRegisters?: Registers, maybeMemory?: Memory): void;
|
|
9911
10264
|
printProgram(): (string | number)[][];
|
|
9912
10265
|
runProgram(): void;
|
|
@@ -9919,26 +10272,6 @@ declare class Interpreter implements IPvmInterpreter {
|
|
|
9919
10272
|
calculateBlockGasCost(): Map<string, number>;
|
|
9920
10273
|
}
|
|
9921
10274
|
|
|
9922
|
-
type index$5_DebuggerAdapter = DebuggerAdapter;
|
|
9923
|
-
declare const index$5_DebuggerAdapter: typeof DebuggerAdapter;
|
|
9924
|
-
type index$5_Interpreter = Interpreter;
|
|
9925
|
-
declare const index$5_Interpreter: typeof Interpreter;
|
|
9926
|
-
type index$5_Memory = Memory;
|
|
9927
|
-
declare const index$5_Memory: typeof Memory;
|
|
9928
|
-
type index$5_MemoryBuilder = MemoryBuilder;
|
|
9929
|
-
declare const index$5_MemoryBuilder: typeof MemoryBuilder;
|
|
9930
|
-
type index$5_MemoryIndex = MemoryIndex;
|
|
9931
|
-
type index$5_Registers = Registers;
|
|
9932
|
-
declare const index$5_Registers: typeof Registers;
|
|
9933
|
-
type index$5_SbrkIndex = SbrkIndex;
|
|
9934
|
-
declare const index$5_gasCounter: typeof gasCounter;
|
|
9935
|
-
declare const index$5_tryAsMemoryIndex: typeof tryAsMemoryIndex;
|
|
9936
|
-
declare const index$5_tryAsSbrkIndex: typeof tryAsSbrkIndex;
|
|
9937
|
-
declare namespace index$5 {
|
|
9938
|
-
export { index$5_DebuggerAdapter as DebuggerAdapter, index$5_Interpreter as Interpreter, index$5_Memory as Memory, index$5_MemoryBuilder as MemoryBuilder, index$5_Registers as Registers, index$5_gasCounter as gasCounter, index$5_tryAsMemoryIndex as tryAsMemoryIndex, index$5_tryAsSbrkIndex as tryAsSbrkIndex };
|
|
9939
|
-
export type { index$5_MemoryIndex as MemoryIndex, index$5_SbrkIndex as SbrkIndex };
|
|
9940
|
-
}
|
|
9941
|
-
|
|
9942
10275
|
declare class Program {
|
|
9943
10276
|
readonly code: Uint8Array;
|
|
9944
10277
|
readonly registers: Registers;
|
|
@@ -9958,16 +10291,6 @@ declare function extractCodeAndMetadata(blobWithMetadata: Uint8Array): {
|
|
|
9958
10291
|
code: Uint8Array<ArrayBufferLike>;
|
|
9959
10292
|
};
|
|
9960
10293
|
|
|
9961
|
-
type index$4_Program = Program;
|
|
9962
|
-
declare const index$4_Program: typeof Program;
|
|
9963
|
-
declare const index$4_extractCodeAndMetadata: typeof extractCodeAndMetadata;
|
|
9964
|
-
declare namespace index$4 {
|
|
9965
|
-
export {
|
|
9966
|
-
index$4_Program as Program,
|
|
9967
|
-
index$4_extractCodeAndMetadata as extractCodeAndMetadata,
|
|
9968
|
-
};
|
|
9969
|
-
}
|
|
9970
|
-
|
|
9971
10294
|
declare class MemorySegment extends WithDebug {
|
|
9972
10295
|
readonly start: number;
|
|
9973
10296
|
readonly end: number;
|
|
@@ -10002,22 +10325,84 @@ declare class SpiProgram extends WithDebug {
|
|
|
10002
10325
|
*/
|
|
10003
10326
|
declare function decodeStandardProgram(program: Uint8Array, args: Uint8Array): SpiProgram;
|
|
10004
10327
|
|
|
10005
|
-
|
|
10006
|
-
declare const
|
|
10007
|
-
|
|
10008
|
-
declare const
|
|
10009
|
-
|
|
10010
|
-
declare const
|
|
10011
|
-
|
|
10012
|
-
declare
|
|
10328
|
+
declare const PAGE_SIZE: number;
|
|
10329
|
+
declare const SEGMENT_SIZE: number;
|
|
10330
|
+
declare const DATA_LEGNTH: number;
|
|
10331
|
+
declare const STACK_SEGMENT = 4278059008;
|
|
10332
|
+
declare const ARGS_SEGMENT = 4278124544;
|
|
10333
|
+
declare const LAST_PAGE = 4294901760;
|
|
10334
|
+
|
|
10335
|
+
declare function alignToSegmentSize(size: number): number;
|
|
10336
|
+
declare function alignToPageSize(size: number): number;
|
|
10337
|
+
|
|
10338
|
+
declare const index$4_ARGS_SEGMENT: typeof ARGS_SEGMENT;
|
|
10339
|
+
declare const index$4_DATA_LEGNTH: typeof DATA_LEGNTH;
|
|
10340
|
+
declare const index$4_LAST_PAGE: typeof LAST_PAGE;
|
|
10341
|
+
type index$4_MemorySegment = MemorySegment;
|
|
10342
|
+
declare const index$4_MemorySegment: typeof MemorySegment;
|
|
10343
|
+
declare const index$4_PAGE_SIZE: typeof PAGE_SIZE;
|
|
10344
|
+
declare const index$4_SEGMENT_SIZE: typeof SEGMENT_SIZE;
|
|
10345
|
+
declare const index$4_STACK_SEGMENT: typeof STACK_SEGMENT;
|
|
10346
|
+
type index$4_SpiMemory = SpiMemory;
|
|
10347
|
+
declare const index$4_SpiMemory: typeof SpiMemory;
|
|
10348
|
+
type index$4_SpiProgram = SpiProgram;
|
|
10349
|
+
declare const index$4_SpiProgram: typeof SpiProgram;
|
|
10350
|
+
declare const index$4_alignToPageSize: typeof alignToPageSize;
|
|
10351
|
+
declare const index$4_alignToSegmentSize: typeof alignToSegmentSize;
|
|
10352
|
+
declare const index$4_decodeStandardProgram: typeof decodeStandardProgram;
|
|
10353
|
+
declare namespace index$4 {
|
|
10013
10354
|
export {
|
|
10014
|
-
index$
|
|
10015
|
-
index$
|
|
10016
|
-
index$
|
|
10017
|
-
index$
|
|
10355
|
+
index$4_ARGS_SEGMENT as ARGS_SEGMENT,
|
|
10356
|
+
index$4_DATA_LEGNTH as DATA_LEGNTH,
|
|
10357
|
+
index$4_LAST_PAGE as LAST_PAGE,
|
|
10358
|
+
index$4_MemorySegment as MemorySegment,
|
|
10359
|
+
index$4_PAGE_SIZE as PAGE_SIZE,
|
|
10360
|
+
index$4_SEGMENT_SIZE as SEGMENT_SIZE,
|
|
10361
|
+
index$4_STACK_SEGMENT as STACK_SEGMENT,
|
|
10362
|
+
index$4_SpiMemory as SpiMemory,
|
|
10363
|
+
index$4_SpiProgram as SpiProgram,
|
|
10364
|
+
index$4_alignToPageSize as alignToPageSize,
|
|
10365
|
+
index$4_alignToSegmentSize as alignToSegmentSize,
|
|
10366
|
+
index$4_decodeStandardProgram as decodeStandardProgram,
|
|
10018
10367
|
};
|
|
10019
10368
|
}
|
|
10020
10369
|
|
|
10370
|
+
type index$3_BasicBlocks = BasicBlocks;
|
|
10371
|
+
declare const index$3_BasicBlocks: typeof BasicBlocks;
|
|
10372
|
+
type index$3_DebuggerAdapter = DebuggerAdapter;
|
|
10373
|
+
declare const index$3_DebuggerAdapter: typeof DebuggerAdapter;
|
|
10374
|
+
type index$3_Interpreter = Interpreter;
|
|
10375
|
+
declare const index$3_Interpreter: typeof Interpreter;
|
|
10376
|
+
type index$3_JumpTable = JumpTable;
|
|
10377
|
+
declare const index$3_JumpTable: typeof JumpTable;
|
|
10378
|
+
type index$3_Mask = Mask;
|
|
10379
|
+
declare const index$3_Mask: typeof Mask;
|
|
10380
|
+
type index$3_Memory = Memory;
|
|
10381
|
+
declare const index$3_Memory: typeof Memory;
|
|
10382
|
+
type index$3_MemoryBuilder = MemoryBuilder;
|
|
10383
|
+
declare const index$3_MemoryBuilder: typeof MemoryBuilder;
|
|
10384
|
+
type index$3_MemoryIndex = MemoryIndex;
|
|
10385
|
+
type index$3_Program = Program;
|
|
10386
|
+
declare const index$3_Program: typeof Program;
|
|
10387
|
+
type index$3_ProgramDecoder = ProgramDecoder;
|
|
10388
|
+
declare const index$3_ProgramDecoder: typeof ProgramDecoder;
|
|
10389
|
+
type index$3_ProgramDecoderError = ProgramDecoderError;
|
|
10390
|
+
declare const index$3_ProgramDecoderError: typeof ProgramDecoderError;
|
|
10391
|
+
type index$3_RegisterIndex = RegisterIndex;
|
|
10392
|
+
type index$3_Registers = Registers;
|
|
10393
|
+
declare const index$3_Registers: typeof Registers;
|
|
10394
|
+
type index$3_SbrkIndex = SbrkIndex;
|
|
10395
|
+
declare const index$3_extractCodeAndMetadata: typeof extractCodeAndMetadata;
|
|
10396
|
+
declare const index$3_gasCounter: typeof gasCounter;
|
|
10397
|
+
declare const index$3_signExtend32To64: typeof signExtend32To64;
|
|
10398
|
+
declare const index$3_tryAsMemoryIndex: typeof tryAsMemoryIndex;
|
|
10399
|
+
declare const index$3_tryAsRegisterIndex: typeof tryAsRegisterIndex;
|
|
10400
|
+
declare const index$3_tryAsSbrkIndex: typeof tryAsSbrkIndex;
|
|
10401
|
+
declare namespace index$3 {
|
|
10402
|
+
export { index$3_BasicBlocks as BasicBlocks, index$3_DebuggerAdapter as DebuggerAdapter, index$3_Interpreter as Interpreter, index$3_JumpTable as JumpTable, index$3_Mask as Mask, index$3_Memory as Memory, index$3_MemoryBuilder as MemoryBuilder, index$3_Program as Program, index$3_ProgramDecoder as ProgramDecoder, index$3_ProgramDecoderError as ProgramDecoderError, index$3_Registers as Registers, index$5 as args, index$3_extractCodeAndMetadata as extractCodeAndMetadata, index$3_gasCounter as gasCounter, index$3_signExtend32To64 as signExtend32To64, index$4 as spi, index$3_tryAsMemoryIndex as tryAsMemoryIndex, index$3_tryAsRegisterIndex as tryAsRegisterIndex, index$3_tryAsSbrkIndex as tryAsSbrkIndex };
|
|
10403
|
+
export type { index$3_MemoryIndex as MemoryIndex, index$3_RegisterIndex as RegisterIndex, index$3_SbrkIndex as SbrkIndex };
|
|
10404
|
+
}
|
|
10405
|
+
|
|
10021
10406
|
declare const ENTROPY_BYTES = 32;
|
|
10022
10407
|
type ENTROPY_BYTES = typeof ENTROPY_BYTES;
|
|
10023
10408
|
/**
|
|
@@ -10248,4 +10633,4 @@ declare namespace index {
|
|
|
10248
10633
|
};
|
|
10249
10634
|
}
|
|
10250
10635
|
|
|
10251
|
-
export { index$
|
|
10636
|
+
export { index$p as block, index$n as block_json, index$v as bytes, index$u as codec, index$s as collections, index$q as config, index$m as config_node, index$r as crypto, index$h as database, index$g as erasure_coding, index$e as fuzz_proto, index$t as hash, index$9 as jam_host_calls, index$o as json_parser, index$c as logger, index$k as mmr, index$y as numbers, index$x as ordering, index$b as pvm, index$a as pvm_host_calls, index$3 as pvm_interpreter, index$2 as shuffling, index$j as state, index$1 as state_json, index$i as state_merkleization, index as state_vectors, index$7 as transition, index$l as trie, index$6 as typeberry, index$w as utils, index$d as workers };
|