@typeberry/lib 0.5.1-1dda9d6 → 0.5.1
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 +429 -455
- package/index.d.ts +19 -268
- package/{index.mjs → index.js} +429 -455
- package/package.json +3 -5
package/index.d.ts
CHANGED
|
@@ -954,7 +954,7 @@ declare class Skipper {
|
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
/** Infer the type that is described by given descriptor `T` */
|
|
957
|
-
type DescribedBy<T> = T extends Descriptor<infer V
|
|
957
|
+
type DescribedBy<T> = T extends Descriptor<infer V> ? V : never;
|
|
958
958
|
/**
|
|
959
959
|
* Converts a class `T` into an object with the same fields as the class.
|
|
960
960
|
*/
|
|
@@ -1206,21 +1206,6 @@ declare const custom: <T>({ name, sizeHint, }: {
|
|
|
1206
1206
|
name: string;
|
|
1207
1207
|
sizeHint: SizeHint;
|
|
1208
1208
|
}, encode: (e: Encoder, x: T) => void, decode: (d: Decoder) => T, skip: (s: Skipper) => void) => Descriptor<T>;
|
|
1209
|
-
/**
|
|
1210
|
-
* Descriptor record for union variants.
|
|
1211
|
-
* Each variant can have its own view type, but the union itself won't expose views.
|
|
1212
|
-
*/
|
|
1213
|
-
type UnionDescriptorRecord<TKind extends number, T extends {
|
|
1214
|
-
kind: TKind;
|
|
1215
|
-
}> = {
|
|
1216
|
-
[K in TKind]: Descriptor<Omit<Extract<T, {
|
|
1217
|
-
kind: K;
|
|
1218
|
-
}>, "kind">, unknown>;
|
|
1219
|
-
};
|
|
1220
|
-
/** Tagged union type encoding. */
|
|
1221
|
-
declare const union: <TKind extends number, T extends {
|
|
1222
|
-
kind: TKind;
|
|
1223
|
-
}, TVariants extends UnionDescriptorRecord<TKind, T> = UnionDescriptorRecord<TKind, T>>(name: string, variants: TVariants) => Descriptor<T>;
|
|
1224
1209
|
/** Choose a descriptor depending on the encoding/decoding context. */
|
|
1225
1210
|
declare const select: <T, V = T>({ name, sizeHint, }: {
|
|
1226
1211
|
name: string;
|
|
@@ -1277,17 +1262,13 @@ declare const descriptors_u24: typeof u24;
|
|
|
1277
1262
|
declare const descriptors_u32: typeof u32;
|
|
1278
1263
|
declare const descriptors_u64: typeof u64;
|
|
1279
1264
|
declare const descriptors_u8: typeof u8;
|
|
1280
|
-
declare const descriptors_union: typeof union;
|
|
1281
1265
|
declare const descriptors_varU32: typeof varU32;
|
|
1282
1266
|
declare const descriptors_varU64: typeof varU64;
|
|
1283
1267
|
declare namespace descriptors {
|
|
1284
|
-
export { descriptors_Class as Class, descriptors_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, descriptors_bitVecFixLen as bitVecFixLen, descriptors_bitVecVarLen as bitVecVarLen, descriptors_blob as blob, descriptors_bool as bool, descriptors_bytes as bytes, descriptors_custom as custom, descriptors_dictionary as dictionary, descriptors_forEachDescriptor as forEachDescriptor, descriptors_i16 as i16, descriptors_i24 as i24, descriptors_i32 as i32, descriptors_i64 as i64, descriptors_i8 as i8, descriptors_nothing as nothing, descriptors_object as object, descriptors_optional as optional, descriptors_pair as pair, descriptors_readonlyArray as readonlyArray, descriptors_select as select, descriptors_sequenceFixLen as sequenceFixLen, descriptors_sequenceVarLen as sequenceVarLen, descriptors_string as string, descriptors_u16 as u16, descriptors_u24 as u24, descriptors_u32 as u32, descriptors_u64 as u64, descriptors_u8 as u8,
|
|
1268
|
+
export { descriptors_Class as Class, descriptors_TYPICAL_DICTIONARY_LENGTH as TYPICAL_DICTIONARY_LENGTH, descriptors_bitVecFixLen as bitVecFixLen, descriptors_bitVecVarLen as bitVecVarLen, descriptors_blob as blob, descriptors_bool as bool, descriptors_bytes as bytes, descriptors_custom as custom, descriptors_dictionary as dictionary, descriptors_forEachDescriptor as forEachDescriptor, descriptors_i16 as i16, descriptors_i24 as i24, descriptors_i32 as i32, descriptors_i64 as i64, descriptors_i8 as i8, descriptors_nothing as nothing, descriptors_object as object, descriptors_optional as optional, descriptors_pair as pair, descriptors_readonlyArray as readonlyArray, descriptors_select as select, descriptors_sequenceFixLen as sequenceFixLen, descriptors_sequenceVarLen as sequenceVarLen, descriptors_string as string, descriptors_u16 as u16, descriptors_u24 as u24, descriptors_u32 as u32, descriptors_u64 as u64, descriptors_u8 as u8, descriptors_varU32 as varU32, descriptors_varU64 as varU64 };
|
|
1285
1269
|
export type { descriptors_SequenceVarLenOptions as SequenceVarLenOptions };
|
|
1286
1270
|
}
|
|
1287
1271
|
|
|
1288
|
-
declare const codec: typeof descriptors;
|
|
1289
|
-
|
|
1290
|
-
declare const index$x_Class: typeof Class;
|
|
1291
1272
|
type index$x_ClassConstructor<T> = ClassConstructor<T>;
|
|
1292
1273
|
type index$x_Codec<T> = Codec<T>;
|
|
1293
1274
|
type index$x_CodecRecord<T> = CodecRecord<T>;
|
|
@@ -1309,53 +1290,20 @@ type index$x_ObjectView<T> = ObjectView<T>;
|
|
|
1309
1290
|
declare const index$x_ObjectView: typeof ObjectView;
|
|
1310
1291
|
type index$x_OptionalRecord<T> = OptionalRecord<T>;
|
|
1311
1292
|
type index$x_PropertyKeys<T> = PropertyKeys<T>;
|
|
1312
|
-
type index$x_SequenceVarLenOptions = SequenceVarLenOptions;
|
|
1313
1293
|
type index$x_SequenceView<T, V = T> = SequenceView<T, V>;
|
|
1314
1294
|
declare const index$x_SequenceView: typeof SequenceView;
|
|
1315
1295
|
type index$x_SimpleDescriptorRecord<T> = SimpleDescriptorRecord<T>;
|
|
1316
1296
|
type index$x_SizeHint = SizeHint;
|
|
1317
|
-
declare const index$x_TYPICAL_DICTIONARY_LENGTH: typeof TYPICAL_DICTIONARY_LENGTH;
|
|
1318
1297
|
type index$x_ViewField<T, V> = ViewField<T, V>;
|
|
1319
1298
|
declare const index$x_ViewField: typeof ViewField;
|
|
1320
1299
|
type index$x_ViewOf<T, D extends DescriptorRecord<T>> = ViewOf<T, D>;
|
|
1321
1300
|
declare const index$x_addSizeHints: typeof addSizeHints;
|
|
1322
|
-
declare const index$x_bitVecFixLen: typeof bitVecFixLen;
|
|
1323
|
-
declare const index$x_bitVecVarLen: typeof bitVecVarLen;
|
|
1324
|
-
declare const index$x_blob: typeof blob;
|
|
1325
|
-
declare const index$x_bool: typeof bool;
|
|
1326
|
-
declare const index$x_bytes: typeof bytes;
|
|
1327
|
-
declare const index$x_codec: typeof codec;
|
|
1328
|
-
declare const index$x_custom: typeof custom;
|
|
1329
1301
|
declare const index$x_decodeVariableLengthExtraBytes: typeof decodeVariableLengthExtraBytes;
|
|
1330
|
-
declare const index$x_dictionary: typeof dictionary;
|
|
1331
|
-
declare const index$x_forEachDescriptor: typeof forEachDescriptor;
|
|
1332
|
-
declare const index$x_i16: typeof i16;
|
|
1333
|
-
declare const index$x_i24: typeof i24;
|
|
1334
|
-
declare const index$x_i32: typeof i32;
|
|
1335
|
-
declare const index$x_i64: typeof i64;
|
|
1336
|
-
declare const index$x_i8: typeof i8;
|
|
1337
|
-
declare const index$x_nothing: typeof nothing;
|
|
1338
|
-
declare const index$x_object: typeof object;
|
|
1339
|
-
declare const index$x_optional: typeof optional;
|
|
1340
|
-
declare const index$x_pair: typeof pair;
|
|
1341
|
-
declare const index$x_readonlyArray: typeof readonlyArray;
|
|
1342
|
-
declare const index$x_select: typeof select;
|
|
1343
|
-
declare const index$x_sequenceFixLen: typeof sequenceFixLen;
|
|
1344
|
-
declare const index$x_sequenceVarLen: typeof sequenceVarLen;
|
|
1345
|
-
declare const index$x_string: typeof string;
|
|
1346
1302
|
declare const index$x_tryAsExactBytes: typeof tryAsExactBytes;
|
|
1347
|
-
declare const index$x_u16: typeof u16;
|
|
1348
|
-
declare const index$x_u24: typeof u24;
|
|
1349
|
-
declare const index$x_u32: typeof u32;
|
|
1350
|
-
declare const index$x_u64: typeof u64;
|
|
1351
|
-
declare const index$x_u8: typeof u8;
|
|
1352
|
-
declare const index$x_union: typeof union;
|
|
1353
1303
|
declare const index$x_validateLength: typeof validateLength;
|
|
1354
|
-
declare const index$x_varU32: typeof varU32;
|
|
1355
|
-
declare const index$x_varU64: typeof varU64;
|
|
1356
1304
|
declare namespace index$x {
|
|
1357
|
-
export { index$
|
|
1358
|
-
export type { index$x_ClassConstructor as ClassConstructor, index$x_Codec as Codec, index$x_CodecRecord as CodecRecord, index$x_CodecWithView as CodecWithView, index$x_Decode as Decode, index$x_DescribedBy as DescribedBy, index$x_DescriptorRecord as DescriptorRecord, index$x_Encode as Encode, index$x_LengthRange as LengthRange, index$x_OptionalRecord as OptionalRecord, Options$1 as Options, index$x_PropertyKeys as PropertyKeys, index$
|
|
1305
|
+
export { index$x_Decoder as Decoder, index$x_Descriptor as Descriptor, index$x_Encoder as Encoder, index$x_EndOfDataError as EndOfDataError, index$x_ObjectView as ObjectView, index$x_SequenceView as SequenceView, index$x_ViewField as ViewField, index$x_addSizeHints as addSizeHints, descriptors as codec, index$x_decodeVariableLengthExtraBytes as decodeVariableLengthExtraBytes, index$x_tryAsExactBytes as tryAsExactBytes, index$x_validateLength as validateLength };
|
|
1306
|
+
export type { index$x_ClassConstructor as ClassConstructor, index$x_Codec as Codec, index$x_CodecRecord as CodecRecord, index$x_CodecWithView as CodecWithView, index$x_Decode as Decode, index$x_DescribedBy as DescribedBy, index$x_DescriptorRecord as DescriptorRecord, index$x_Encode as Encode, index$x_LengthRange as LengthRange, index$x_OptionalRecord as OptionalRecord, Options$1 as Options, index$x_PropertyKeys as PropertyKeys, index$x_SimpleDescriptorRecord as SimpleDescriptorRecord, index$x_SizeHint as SizeHint, index$x_ViewOf as ViewOf };
|
|
1359
1307
|
}
|
|
1360
1308
|
|
|
1361
1309
|
/**
|
|
@@ -3140,29 +3088,13 @@ declare enum WorkExecResultKind {
|
|
|
3140
3088
|
/** `BIG`: the code was too big (beyond the maximum allowed size `W_C`) */
|
|
3141
3089
|
codeOversize = 6
|
|
3142
3090
|
}
|
|
3143
|
-
type WorkExecResultUnion = {
|
|
3144
|
-
kind: WorkExecResultKind.ok;
|
|
3145
|
-
okBlob: BytesBlob;
|
|
3146
|
-
} | {
|
|
3147
|
-
kind: WorkExecResultKind.outOfGas;
|
|
3148
|
-
} | {
|
|
3149
|
-
kind: WorkExecResultKind.panic;
|
|
3150
|
-
} | {
|
|
3151
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
3152
|
-
} | {
|
|
3153
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
3154
|
-
} | {
|
|
3155
|
-
kind: WorkExecResultKind.badCode;
|
|
3156
|
-
} | {
|
|
3157
|
-
kind: WorkExecResultKind.codeOversize;
|
|
3158
|
-
};
|
|
3159
3091
|
/** The execution result of some work-package. */
|
|
3160
3092
|
declare class WorkExecResult extends WithDebug {
|
|
3161
3093
|
/** The execution result tag. */
|
|
3162
3094
|
readonly kind: WorkExecResultKind;
|
|
3163
3095
|
/** Optional octet sequence - available only if `kind === ok` */
|
|
3164
3096
|
readonly okBlob: BytesBlob | null;
|
|
3165
|
-
static Codec: Descriptor<WorkExecResult,
|
|
3097
|
+
static Codec: Descriptor<WorkExecResult, WorkExecResult>;
|
|
3166
3098
|
constructor(
|
|
3167
3099
|
/** The execution result tag. */
|
|
3168
3100
|
kind: WorkExecResultKind,
|
|
@@ -3237,7 +3169,7 @@ declare class WorkResult {
|
|
|
3237
3169
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
3238
3170
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
3239
3171
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
3240
|
-
result: Descriptor<WorkExecResult,
|
|
3172
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
3241
3173
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
3242
3174
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
3243
3175
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -3619,22 +3551,7 @@ declare class WorkReport extends WithDebug {
|
|
|
3619
3551
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
3620
3552
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
3621
3553
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
3622
|
-
result: Descriptor<WorkExecResult,
|
|
3623
|
-
kind: WorkExecResultKind.ok;
|
|
3624
|
-
okBlob: BytesBlob;
|
|
3625
|
-
} | {
|
|
3626
|
-
kind: WorkExecResultKind.outOfGas;
|
|
3627
|
-
} | {
|
|
3628
|
-
kind: WorkExecResultKind.panic;
|
|
3629
|
-
} | {
|
|
3630
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
3631
|
-
} | {
|
|
3632
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
3633
|
-
} | {
|
|
3634
|
-
kind: WorkExecResultKind.badCode;
|
|
3635
|
-
} | {
|
|
3636
|
-
kind: WorkExecResultKind.codeOversize;
|
|
3637
|
-
}>;
|
|
3554
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
3638
3555
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
3639
3556
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
3640
3557
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -3751,22 +3668,7 @@ declare class ReportGuarantee extends WithDebug {
|
|
|
3751
3668
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
3752
3669
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
3753
3670
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
3754
|
-
result: Descriptor<WorkExecResult,
|
|
3755
|
-
kind: WorkExecResultKind.ok;
|
|
3756
|
-
okBlob: BytesBlob;
|
|
3757
|
-
} | {
|
|
3758
|
-
kind: WorkExecResultKind.outOfGas;
|
|
3759
|
-
} | {
|
|
3760
|
-
kind: WorkExecResultKind.panic;
|
|
3761
|
-
} | {
|
|
3762
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
3763
|
-
} | {
|
|
3764
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
3765
|
-
} | {
|
|
3766
|
-
kind: WorkExecResultKind.badCode;
|
|
3767
|
-
} | {
|
|
3768
|
-
kind: WorkExecResultKind.codeOversize;
|
|
3769
|
-
}>;
|
|
3671
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
3770
3672
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
3771
3673
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
3772
3674
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -3825,22 +3727,7 @@ declare const guaranteesExtrinsicCodec: Descriptor<readonly ReportGuarantee[] &
|
|
|
3825
3727
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
3826
3728
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
3827
3729
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
3828
|
-
result: Descriptor<WorkExecResult,
|
|
3829
|
-
kind: WorkExecResultKind.ok;
|
|
3830
|
-
okBlob: BytesBlob;
|
|
3831
|
-
} | {
|
|
3832
|
-
kind: WorkExecResultKind.outOfGas;
|
|
3833
|
-
} | {
|
|
3834
|
-
kind: WorkExecResultKind.panic;
|
|
3835
|
-
} | {
|
|
3836
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
3837
|
-
} | {
|
|
3838
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
3839
|
-
} | {
|
|
3840
|
-
kind: WorkExecResultKind.badCode;
|
|
3841
|
-
} | {
|
|
3842
|
-
kind: WorkExecResultKind.codeOversize;
|
|
3843
|
-
}>;
|
|
3730
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
3844
3731
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
3845
3732
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
3846
3733
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -3985,22 +3872,7 @@ declare class Extrinsic extends WithDebug {
|
|
|
3985
3872
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
3986
3873
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
3987
3874
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
3988
|
-
result: Descriptor<WorkExecResult,
|
|
3989
|
-
kind: WorkExecResultKind.ok;
|
|
3990
|
-
okBlob: BytesBlob;
|
|
3991
|
-
} | {
|
|
3992
|
-
kind: WorkExecResultKind.outOfGas;
|
|
3993
|
-
} | {
|
|
3994
|
-
kind: WorkExecResultKind.panic;
|
|
3995
|
-
} | {
|
|
3996
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
3997
|
-
} | {
|
|
3998
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
3999
|
-
} | {
|
|
4000
|
-
kind: WorkExecResultKind.badCode;
|
|
4001
|
-
} | {
|
|
4002
|
-
kind: WorkExecResultKind.codeOversize;
|
|
4003
|
-
}>;
|
|
3875
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
4004
3876
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
4005
3877
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
4006
3878
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -4125,22 +3997,7 @@ declare class Block extends WithDebug {
|
|
|
4125
3997
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
4126
3998
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
4127
3999
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
4128
|
-
result: Descriptor<WorkExecResult,
|
|
4129
|
-
kind: WorkExecResultKind.ok;
|
|
4130
|
-
okBlob: BytesBlob;
|
|
4131
|
-
} | {
|
|
4132
|
-
kind: WorkExecResultKind.outOfGas;
|
|
4133
|
-
} | {
|
|
4134
|
-
kind: WorkExecResultKind.panic;
|
|
4135
|
-
} | {
|
|
4136
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
4137
|
-
} | {
|
|
4138
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
4139
|
-
} | {
|
|
4140
|
-
kind: WorkExecResultKind.badCode;
|
|
4141
|
-
} | {
|
|
4142
|
-
kind: WorkExecResultKind.codeOversize;
|
|
4143
|
-
}>;
|
|
4000
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
4144
4001
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
4145
4002
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
4146
4003
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -4865,22 +4722,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
|
|
|
4865
4722
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
4866
4723
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
4867
4724
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
4868
|
-
result: Descriptor<WorkExecResult,
|
|
4869
|
-
kind: WorkExecResultKind.ok;
|
|
4870
|
-
okBlob: BytesBlob;
|
|
4871
|
-
} | {
|
|
4872
|
-
kind: WorkExecResultKind.outOfGas;
|
|
4873
|
-
} | {
|
|
4874
|
-
kind: WorkExecResultKind.panic;
|
|
4875
|
-
} | {
|
|
4876
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
4877
|
-
} | {
|
|
4878
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
4879
|
-
} | {
|
|
4880
|
-
kind: WorkExecResultKind.badCode;
|
|
4881
|
-
} | {
|
|
4882
|
-
kind: WorkExecResultKind.codeOversize;
|
|
4883
|
-
}>;
|
|
4725
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
4884
4726
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
4885
4727
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
4886
4728
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -4929,22 +4771,7 @@ declare const accumulationQueueCodec: Descriptor<readonly (readonly NotYetAccumu
|
|
|
4929
4771
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
4930
4772
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
4931
4773
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
4932
|
-
result: Descriptor<WorkExecResult,
|
|
4933
|
-
kind: WorkExecResultKind.ok;
|
|
4934
|
-
okBlob: BytesBlob;
|
|
4935
|
-
} | {
|
|
4936
|
-
kind: WorkExecResultKind.outOfGas;
|
|
4937
|
-
} | {
|
|
4938
|
-
kind: WorkExecResultKind.panic;
|
|
4939
|
-
} | {
|
|
4940
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
4941
|
-
} | {
|
|
4942
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
4943
|
-
} | {
|
|
4944
|
-
kind: WorkExecResultKind.badCode;
|
|
4945
|
-
} | {
|
|
4946
|
-
kind: WorkExecResultKind.codeOversize;
|
|
4947
|
-
}>;
|
|
4774
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
4948
4775
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
4949
4776
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
4950
4777
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -5001,22 +4828,7 @@ declare class AvailabilityAssignment extends WithDebug {
|
|
|
5001
4828
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
5002
4829
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
5003
4830
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
5004
|
-
result: Descriptor<WorkExecResult,
|
|
5005
|
-
kind: WorkExecResultKind.ok;
|
|
5006
|
-
okBlob: BytesBlob;
|
|
5007
|
-
} | {
|
|
5008
|
-
kind: WorkExecResultKind.outOfGas;
|
|
5009
|
-
} | {
|
|
5010
|
-
kind: WorkExecResultKind.panic;
|
|
5011
|
-
} | {
|
|
5012
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
5013
|
-
} | {
|
|
5014
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
5015
|
-
} | {
|
|
5016
|
-
kind: WorkExecResultKind.badCode;
|
|
5017
|
-
} | {
|
|
5018
|
-
kind: WorkExecResultKind.codeOversize;
|
|
5019
|
-
}>;
|
|
4831
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
5020
4832
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
5021
4833
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
5022
4834
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -5061,22 +4873,7 @@ declare const availabilityAssignmentsCodec: Descriptor<readonly (AvailabilityAss
|
|
|
5061
4873
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
5062
4874
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
5063
4875
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
5064
|
-
result: Descriptor<WorkExecResult,
|
|
5065
|
-
kind: WorkExecResultKind.ok;
|
|
5066
|
-
okBlob: BytesBlob;
|
|
5067
|
-
} | {
|
|
5068
|
-
kind: WorkExecResultKind.outOfGas;
|
|
5069
|
-
} | {
|
|
5070
|
-
kind: WorkExecResultKind.panic;
|
|
5071
|
-
} | {
|
|
5072
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
5073
|
-
} | {
|
|
5074
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
5075
|
-
} | {
|
|
5076
|
-
kind: WorkExecResultKind.badCode;
|
|
5077
|
-
} | {
|
|
5078
|
-
kind: WorkExecResultKind.codeOversize;
|
|
5079
|
-
}>;
|
|
4876
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
5080
4877
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
5081
4878
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
5082
4879
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -10158,22 +9955,7 @@ declare class Operand extends WithDebug {
|
|
|
10158
9955
|
authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
|
|
10159
9956
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
10160
9957
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
10161
|
-
result: Descriptor<WorkExecResult,
|
|
10162
|
-
kind: WorkExecResultKind.ok;
|
|
10163
|
-
okBlob: BytesBlob;
|
|
10164
|
-
} | {
|
|
10165
|
-
kind: WorkExecResultKind.outOfGas;
|
|
10166
|
-
} | {
|
|
10167
|
-
kind: WorkExecResultKind.panic;
|
|
10168
|
-
} | {
|
|
10169
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
10170
|
-
} | {
|
|
10171
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
10172
|
-
} | {
|
|
10173
|
-
kind: WorkExecResultKind.badCode;
|
|
10174
|
-
} | {
|
|
10175
|
-
kind: WorkExecResultKind.codeOversize;
|
|
10176
|
-
}>;
|
|
9958
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
10177
9959
|
authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
|
|
10178
9960
|
}>>;
|
|
10179
9961
|
/**
|
|
@@ -10456,22 +10238,7 @@ declare const protocol: LousyProtocol<{
|
|
|
10456
10238
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
10457
10239
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
10458
10240
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
10459
|
-
result: Descriptor<WorkExecResult,
|
|
10460
|
-
kind: WorkExecResultKind.ok;
|
|
10461
|
-
okBlob: BytesBlob;
|
|
10462
|
-
} | {
|
|
10463
|
-
kind: WorkExecResultKind.outOfGas;
|
|
10464
|
-
} | {
|
|
10465
|
-
kind: WorkExecResultKind.panic;
|
|
10466
|
-
} | {
|
|
10467
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
10468
|
-
} | {
|
|
10469
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
10470
|
-
} | {
|
|
10471
|
-
kind: WorkExecResultKind.badCode;
|
|
10472
|
-
} | {
|
|
10473
|
-
kind: WorkExecResultKind.codeOversize;
|
|
10474
|
-
}>;
|
|
10241
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
10475
10242
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
10476
10243
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
10477
10244
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -10580,22 +10347,7 @@ declare const protocol: LousyProtocol<{
|
|
|
10580
10347
|
codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
|
|
10581
10348
|
payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
|
|
10582
10349
|
gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
|
|
10583
|
-
result: Descriptor<WorkExecResult,
|
|
10584
|
-
kind: WorkExecResultKind.ok;
|
|
10585
|
-
okBlob: BytesBlob;
|
|
10586
|
-
} | {
|
|
10587
|
-
kind: WorkExecResultKind.outOfGas;
|
|
10588
|
-
} | {
|
|
10589
|
-
kind: WorkExecResultKind.panic;
|
|
10590
|
-
} | {
|
|
10591
|
-
kind: WorkExecResultKind.incorrectNumberOfExports;
|
|
10592
|
-
} | {
|
|
10593
|
-
kind: WorkExecResultKind.digestTooBig;
|
|
10594
|
-
} | {
|
|
10595
|
-
kind: WorkExecResultKind.badCode;
|
|
10596
|
-
} | {
|
|
10597
|
-
kind: WorkExecResultKind.codeOversize;
|
|
10598
|
-
}>;
|
|
10350
|
+
result: Descriptor<WorkExecResult, WorkExecResult>;
|
|
10599
10351
|
load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
|
|
10600
10352
|
gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
|
|
10601
10353
|
importedSegments: Descriptor<U32, U32>;
|
|
@@ -11575,5 +11327,4 @@ declare namespace index {
|
|
|
11575
11327
|
};
|
|
11576
11328
|
}
|
|
11577
11329
|
|
|
11578
|
-
export {
|
|
11579
|
-
export type { WithBytesRepresentation, WithOpaque };
|
|
11330
|
+
export { index$s as block, index$q as block_json, index$y as bytes, index$x as codec, index$v as collections, index$t as config, index$p as config_node, index$u as crypto, index$k as database, index$j as erasure_coding, index$h as fuzz_proto, index$w as hash, index$9 as jam_host_calls, index$r as json_parser, index$f as logger, index$n as mmr, index$B as numbers, index$A as ordering, index$e as pvm, index$d as pvm_host_calls, index$3 as pvm_interpreter, index$2 as shuffling, index$m as state, index$1 as state_json, index$l as state_merkleization, index as state_vectors, index$7 as transition, index$o as trie, index$6 as typeberry, index$z as utils, index$g as workers };
|