@typeberry/lib 0.4.0-5a35a0a → 0.4.0-da92f56

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.
Files changed (4) hide show
  1. package/index.cjs +66 -137
  2. package/index.d.ts +15 -490
  3. package/index.js +66 -137
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -13,7 +13,11 @@ declare enum TestSuite {
13
13
  declare const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1, GpVersion.V0_7_2];
14
14
 
15
15
  declare const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
16
- declare const DEFAULT_VERSION = GpVersion.V0_7_2;
16
+ /**
17
+ * Current version is set to track the jam-conformance testing.
18
+ * Since we are currently at 0.7.1 not 0.7.2, we set our default version accordingly.
19
+ */
20
+ declare const DEFAULT_VERSION = GpVersion.V0_7_1;
17
21
  declare let CURRENT_VERSION = parseCurrentVersion(env.GP_VERSION) ?? DEFAULT_VERSION;
18
22
  declare let CURRENT_SUITE = parseCurrentSuite(env.TEST_SUITE) ?? DEFAULT_SUITE;
19
23
 
@@ -85,8 +89,8 @@ declare class Compatibility {
85
89
  /**
86
90
  * Allows selecting different values for different Gray Paper versions from one record.
87
91
  *
88
- * @param fallback The default value to return if no value is found for the current.
89
- * @param record A record mapping versions to values, checking if the version is greater or equal to the current version.
92
+ * fallback The default value to return if no value is found for the current.
93
+ * versions A record mapping versions to values, checking if the version is greater or equal to the current version.
90
94
  * @returns The value for the current version, or the default value.
91
95
  */
92
96
  static selectIfGreaterOrEqual<T>({
@@ -274,7 +278,7 @@ declare const workspacePathFix =
274
278
  : () => (p: string) => p;
275
279
 
276
280
  /**
277
- * @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
281
+ * `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
278
282
  * specified unique token Token. It means that base type cannot be assigned to unique type by accident.
279
283
  * Good examples of opaque types include:
280
284
  * - JWTs or other tokens - these are special kinds of string used for authorization purposes.
@@ -431,7 +435,7 @@ declare const Result$2 = {
431
435
  // - https://onnxruntime.ai/docs/tutorials/web/large-models.html#maximum-size-of-arraybuffer
432
436
  declare const MAX_LENGTH$1 = 2145386496;
433
437
 
434
- declare function safeAllocUint8Array(length: number) {
438
+ declare function safeAllocUint8Array(length: number): Uint8Array {
435
439
  if (length > MAX_LENGTH) {
436
440
  // biome-ignore lint/suspicious/noConsole: can't have a dependency on logger here
437
441
  console.warn(`Trying to allocate ${length} bytes, which is greater than the maximum of ${MAX_LENGTH}.`);
@@ -2435,10 +2439,10 @@ type ClassConstructor<T> = {
2435
2439
  type Codec<T> = Encode<T> & Decode<T>;
2436
2440
 
2437
2441
  /** A codec descriptor with extra view. */
2438
- type CodecWithView<T, V> = Codec<T> & {
2442
+ interface CodecWithView<T, V> extends Codec<T> {
2439
2443
  /** encoded data view codec. */
2440
2444
  View: Codec<V>;
2441
- };
2445
+ }
2442
2446
 
2443
2447
  /**
2444
2448
  * Type descriptor definition.
@@ -7911,7 +7915,7 @@ declare function parseBootnode(v: string): Bootnode {
7911
7915
  throw new Error(`Invalid bootnode format, expected: <name>@<ip>:<port>, got: "${v}"`);
7912
7916
  }
7913
7917
 
7914
- const portNumber = Number.parseInt(port);
7918
+ const portNumber = Number.parseInt(port, 10);
7915
7919
  if (!isU16(portNumber)) {
7916
7920
  throw new Error(`Invalid port number: "${port}"`);
7917
7921
  }
@@ -8695,7 +8699,6 @@ declare class LeafNode {
8695
8699
  /**
8696
8700
  * Get the byte length of embedded value.
8697
8701
  *
8698
- * @remark
8699
8702
  * Note in case this node only contains hash this is going to be 0.
8700
8703
  */
8701
8704
  getValueLength(): number {
@@ -8707,7 +8710,6 @@ declare class LeafNode {
8707
8710
  /**
8708
8711
  * Returns the embedded value.
8709
8712
  *
8710
- * @remark
8711
8713
  * Note that this is going to be empty for a regular leaf node (i.e. containing a hash).
8712
8714
  */
8713
8715
  getValue(): BytesBlob {
@@ -8718,7 +8720,6 @@ declare class LeafNode {
8718
8720
  /**
8719
8721
  * Returns contained value hash.
8720
8722
  *
8721
- * @remark
8722
8723
  * Note that for embedded value this is going to be full 0-padded 32 bytes.
8723
8724
  */
8724
8725
  getValueHash(): ValueHash {
@@ -14547,8 +14548,6 @@ interface IMemory {
14547
14548
  read(address: U32, result: Uint8Array): Result$2<OK, PageFault$1>;
14548
14549
  }
14549
14550
 
14550
- declare const NO_OF_REGISTERS$1 = 13;
14551
-
14552
14551
  /** Allow to set and get all registers encoded into little-endian bytes. */
14553
14552
  interface IRegisters {
14554
14553
  /**
@@ -15722,38 +15721,6 @@ declare class ImmediateDecoder {
15722
15721
  }
15723
15722
  }
15724
15723
 
15725
- declare class NibblesDecoder {
15726
- private byte = new Int8Array(1);
15727
-
15728
- setByte(byte: number) {
15729
- this.byte[0] = byte;
15730
- }
15731
-
15732
- getHighNibble() {
15733
- return (this.byte[0] & 0xf0) >>> 4;
15734
- }
15735
-
15736
- getLowNibble() {
15737
- return this.byte[0] & 0x0f;
15738
- }
15739
-
15740
- getHighNibbleAsRegisterIndex() {
15741
- return Math.min(this.getHighNibble(), MAX_REGISTER_INDEX);
15742
- }
15743
-
15744
- getLowNibbleAsRegisterIndex() {
15745
- return Math.min(this.getLowNibble(), MAX_REGISTER_INDEX);
15746
- }
15747
-
15748
- getHighNibbleAsLength() {
15749
- return Math.min(this.getHighNibble(), MAX_LENGTH);
15750
- }
15751
-
15752
- getLowNibbleAsLength() {
15753
- return Math.min(this.getLowNibble(), MAX_LENGTH);
15754
- }
15755
- }
15756
-
15757
15724
  type EmptyArgs = {
15758
15725
  type: ArgumentType.NO_ARGUMENTS;
15759
15726
  noOfBytesToSkip: number;
@@ -16092,106 +16059,6 @@ declare class ArgsDecoder {
16092
16059
  }
16093
16060
  }
16094
16061
 
16095
- declare const createResults = () => {
16096
- const results = new Array(ARGUMENT_TYPE_LENGTH) as Results;
16097
-
16098
- results[ArgumentType.NO_ARGUMENTS] = {
16099
- type: ArgumentType.NO_ARGUMENTS,
16100
- noOfBytesToSkip: 1,
16101
- };
16102
-
16103
- results[ArgumentType.ONE_IMMEDIATE] = {
16104
- type: ArgumentType.ONE_IMMEDIATE,
16105
- noOfBytesToSkip: 1,
16106
- immediateDecoder: new ImmediateDecoder(),
16107
- };
16108
-
16109
- results[ArgumentType.TWO_REGISTERS] = {
16110
- type: ArgumentType.TWO_REGISTERS,
16111
- noOfBytesToSkip: 1,
16112
- firstRegisterIndex: 0,
16113
- secondRegisterIndex: 0,
16114
- };
16115
-
16116
- results[ArgumentType.THREE_REGISTERS] = {
16117
- type: ArgumentType.THREE_REGISTERS,
16118
- noOfBytesToSkip: 1,
16119
- firstRegisterIndex: 0,
16120
- secondRegisterIndex: 0,
16121
- thirdRegisterIndex: 0,
16122
- };
16123
-
16124
- results[ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET] = {
16125
- type: ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET,
16126
- noOfBytesToSkip: 1,
16127
- registerIndex: 0,
16128
- immediateDecoder: new ImmediateDecoder(),
16129
- nextPc: 0,
16130
- };
16131
-
16132
- results[ArgumentType.TWO_REGISTERS_ONE_OFFSET] = {
16133
- type: ArgumentType.TWO_REGISTERS_ONE_OFFSET,
16134
- noOfBytesToSkip: 1,
16135
- firstRegisterIndex: 0,
16136
- secondRegisterIndex: 0,
16137
- nextPc: 0,
16138
- };
16139
-
16140
- results[ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE] = {
16141
- type: ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE,
16142
- noOfBytesToSkip: 1,
16143
- firstRegisterIndex: 0,
16144
- secondRegisterIndex: 0,
16145
- immediateDecoder: new ImmediateDecoder(),
16146
- };
16147
-
16148
- results[ArgumentType.ONE_REGISTER_ONE_IMMEDIATE] = {
16149
- type: ArgumentType.ONE_REGISTER_ONE_IMMEDIATE,
16150
- noOfBytesToSkip: 1,
16151
- registerIndex: 0,
16152
- immediateDecoder: new ImmediateDecoder(),
16153
- };
16154
-
16155
- results[ArgumentType.ONE_REGISTER_TWO_IMMEDIATES] = {
16156
- type: ArgumentType.ONE_REGISTER_TWO_IMMEDIATES,
16157
- noOfBytesToSkip: 1,
16158
- registerIndex: 0,
16159
- firstImmediateDecoder: new ImmediateDecoder(),
16160
- secondImmediateDecoder: new ImmediateDecoder(),
16161
- };
16162
-
16163
- results[ArgumentType.ONE_OFFSET] = {
16164
- type: ArgumentType.ONE_OFFSET,
16165
- noOfBytesToSkip: 1,
16166
- nextPc: 0,
16167
- };
16168
-
16169
- results[ArgumentType.TWO_IMMEDIATES] = {
16170
- type: ArgumentType.TWO_IMMEDIATES,
16171
- noOfBytesToSkip: 1,
16172
- firstImmediateDecoder: new ImmediateDecoder(),
16173
- secondImmediateDecoder: new ImmediateDecoder(),
16174
- };
16175
-
16176
- results[ArgumentType.TWO_REGISTERS_TWO_IMMEDIATES] = {
16177
- type: ArgumentType.TWO_REGISTERS_TWO_IMMEDIATES,
16178
- noOfBytesToSkip: 1,
16179
- firstImmediateDecoder: new ImmediateDecoder(),
16180
- secondImmediateDecoder: new ImmediateDecoder(),
16181
- firstRegisterIndex: 0,
16182
- secondRegisterIndex: 0,
16183
- };
16184
-
16185
- results[ArgumentType.ONE_REGISTER_ONE_EXTENDED_WIDTH_IMMEDIATE] = {
16186
- type: ArgumentType.ONE_REGISTER_ONE_EXTENDED_WIDTH_IMMEDIATE,
16187
- noOfBytesToSkip: 9,
16188
- registerIndex: 0,
16189
- immediateDecoder: new ExtendedWitdthImmediateDecoder(),
16190
- };
16191
-
16192
- return results;
16193
- };
16194
-
16195
16062
  declare enum Instruction {
16196
16063
  TRAP = 0,
16197
16064
  FALLTHROUGH = 1,
@@ -16334,164 +16201,6 @@ declare enum Instruction {
16334
16201
  MIN_U = 230,
16335
16202
  }
16336
16203
 
16337
- declare const instructionArgumentTypeMap = (() => {
16338
- const instructionArgumentTypeMap = new Array<ArgumentType>(HIGHEST_INSTRUCTION_NUMBER + 1);
16339
-
16340
- instructionArgumentTypeMap[Instruction.TRAP] = ArgumentType.NO_ARGUMENTS;
16341
- instructionArgumentTypeMap[Instruction.FALLTHROUGH] = ArgumentType.NO_ARGUMENTS;
16342
-
16343
- instructionArgumentTypeMap[Instruction.ECALLI] = ArgumentType.ONE_IMMEDIATE;
16344
-
16345
- instructionArgumentTypeMap[Instruction.LOAD_IMM_64] = ArgumentType.ONE_REGISTER_ONE_EXTENDED_WIDTH_IMMEDIATE;
16346
-
16347
- instructionArgumentTypeMap[Instruction.STORE_IMM_U8] = ArgumentType.TWO_IMMEDIATES;
16348
- instructionArgumentTypeMap[Instruction.STORE_IMM_U16] = ArgumentType.TWO_IMMEDIATES;
16349
- instructionArgumentTypeMap[Instruction.STORE_IMM_U32] = ArgumentType.TWO_IMMEDIATES;
16350
- instructionArgumentTypeMap[Instruction.STORE_IMM_U64] = ArgumentType.TWO_IMMEDIATES;
16351
-
16352
- instructionArgumentTypeMap[Instruction.JUMP] = ArgumentType.ONE_OFFSET;
16353
-
16354
- instructionArgumentTypeMap[Instruction.JUMP_IND] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16355
- instructionArgumentTypeMap[Instruction.LOAD_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16356
- instructionArgumentTypeMap[Instruction.LOAD_U8] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16357
- instructionArgumentTypeMap[Instruction.LOAD_I8] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16358
- instructionArgumentTypeMap[Instruction.LOAD_U16] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16359
- instructionArgumentTypeMap[Instruction.LOAD_I16] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16360
- instructionArgumentTypeMap[Instruction.LOAD_U32] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16361
- instructionArgumentTypeMap[Instruction.LOAD_I32] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16362
- instructionArgumentTypeMap[Instruction.LOAD_U64] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16363
- instructionArgumentTypeMap[Instruction.STORE_U8] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16364
- instructionArgumentTypeMap[Instruction.STORE_U16] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16365
- instructionArgumentTypeMap[Instruction.STORE_U32] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16366
- instructionArgumentTypeMap[Instruction.STORE_U64] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE;
16367
-
16368
- instructionArgumentTypeMap[Instruction.STORE_IMM_IND_U8] = ArgumentType.ONE_REGISTER_TWO_IMMEDIATES;
16369
- instructionArgumentTypeMap[Instruction.STORE_IMM_IND_U16] = ArgumentType.ONE_REGISTER_TWO_IMMEDIATES;
16370
- instructionArgumentTypeMap[Instruction.STORE_IMM_IND_U32] = ArgumentType.ONE_REGISTER_TWO_IMMEDIATES;
16371
- instructionArgumentTypeMap[Instruction.STORE_IMM_IND_U64] = ArgumentType.ONE_REGISTER_TWO_IMMEDIATES;
16372
-
16373
- instructionArgumentTypeMap[Instruction.LOAD_IMM_JUMP] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16374
- instructionArgumentTypeMap[Instruction.BRANCH_EQ_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16375
- instructionArgumentTypeMap[Instruction.BRANCH_NE_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16376
- instructionArgumentTypeMap[Instruction.BRANCH_LT_U_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16377
- instructionArgumentTypeMap[Instruction.BRANCH_LE_U_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16378
- instructionArgumentTypeMap[Instruction.BRANCH_GE_U_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16379
- instructionArgumentTypeMap[Instruction.BRANCH_GT_U_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16380
- instructionArgumentTypeMap[Instruction.BRANCH_LT_S_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16381
- instructionArgumentTypeMap[Instruction.BRANCH_LE_S_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16382
- instructionArgumentTypeMap[Instruction.BRANCH_GE_S_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16383
- instructionArgumentTypeMap[Instruction.BRANCH_GT_S_IMM] = ArgumentType.ONE_REGISTER_ONE_IMMEDIATE_ONE_OFFSET;
16384
-
16385
- instructionArgumentTypeMap[Instruction.MOVE_REG] = ArgumentType.TWO_REGISTERS;
16386
- instructionArgumentTypeMap[Instruction.SBRK] = ArgumentType.TWO_REGISTERS;
16387
- instructionArgumentTypeMap[Instruction.COUNT_SET_BITS_64] = ArgumentType.TWO_REGISTERS;
16388
- instructionArgumentTypeMap[Instruction.COUNT_SET_BITS_32] = ArgumentType.TWO_REGISTERS;
16389
- instructionArgumentTypeMap[Instruction.LEADING_ZERO_BITS_64] = ArgumentType.TWO_REGISTERS;
16390
- instructionArgumentTypeMap[Instruction.LEADING_ZERO_BITS_32] = ArgumentType.TWO_REGISTERS;
16391
- instructionArgumentTypeMap[Instruction.TRAILING_ZERO_BITS_64] = ArgumentType.TWO_REGISTERS;
16392
- instructionArgumentTypeMap[Instruction.TRAILING_ZERO_BITS_32] = ArgumentType.TWO_REGISTERS;
16393
- instructionArgumentTypeMap[Instruction.SIGN_EXTEND_8] = ArgumentType.TWO_REGISTERS;
16394
- instructionArgumentTypeMap[Instruction.SIGN_EXTEND_16] = ArgumentType.TWO_REGISTERS;
16395
- instructionArgumentTypeMap[Instruction.ZERO_EXTEND_16] = ArgumentType.TWO_REGISTERS;
16396
- instructionArgumentTypeMap[Instruction.REVERSE_BYTES] = ArgumentType.TWO_REGISTERS;
16397
-
16398
- instructionArgumentTypeMap[Instruction.STORE_IND_U8] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16399
- instructionArgumentTypeMap[Instruction.STORE_IND_U16] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16400
- instructionArgumentTypeMap[Instruction.STORE_IND_U32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16401
- instructionArgumentTypeMap[Instruction.STORE_IND_U64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16402
- instructionArgumentTypeMap[Instruction.LOAD_IND_U8] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16403
- instructionArgumentTypeMap[Instruction.LOAD_IND_I8] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16404
- instructionArgumentTypeMap[Instruction.LOAD_IND_U16] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16405
- instructionArgumentTypeMap[Instruction.LOAD_IND_I16] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16406
- instructionArgumentTypeMap[Instruction.LOAD_IND_U32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16407
- instructionArgumentTypeMap[Instruction.LOAD_IND_I32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16408
- instructionArgumentTypeMap[Instruction.LOAD_IND_U64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16409
- instructionArgumentTypeMap[Instruction.ADD_IMM_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16410
- instructionArgumentTypeMap[Instruction.ADD_IMM_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16411
- instructionArgumentTypeMap[Instruction.AND_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16412
- instructionArgumentTypeMap[Instruction.XOR_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16413
- instructionArgumentTypeMap[Instruction.OR_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16414
- instructionArgumentTypeMap[Instruction.MUL_IMM_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16415
- instructionArgumentTypeMap[Instruction.MUL_IMM_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16416
- instructionArgumentTypeMap[Instruction.SET_LT_U_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16417
- instructionArgumentTypeMap[Instruction.SET_LT_S_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16418
- instructionArgumentTypeMap[Instruction.SHLO_L_IMM_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16419
- instructionArgumentTypeMap[Instruction.SHLO_R_IMM_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16420
- instructionArgumentTypeMap[Instruction.SHAR_R_IMM_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16421
- instructionArgumentTypeMap[Instruction.NEG_ADD_IMM_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16422
- instructionArgumentTypeMap[Instruction.SHLO_L_IMM_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16423
- instructionArgumentTypeMap[Instruction.SHLO_R_IMM_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16424
- instructionArgumentTypeMap[Instruction.SHAR_R_IMM_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16425
- instructionArgumentTypeMap[Instruction.NEG_ADD_IMM_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16426
- instructionArgumentTypeMap[Instruction.SET_GT_U_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16427
- instructionArgumentTypeMap[Instruction.SET_GT_S_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16428
- instructionArgumentTypeMap[Instruction.SHLO_L_IMM_ALT_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16429
- instructionArgumentTypeMap[Instruction.SHLO_R_IMM_ALT_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16430
- instructionArgumentTypeMap[Instruction.SHAR_R_IMM_ALT_32] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16431
- instructionArgumentTypeMap[Instruction.SHLO_L_IMM_ALT_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16432
- instructionArgumentTypeMap[Instruction.SHLO_R_IMM_ALT_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16433
- instructionArgumentTypeMap[Instruction.SHAR_R_IMM_ALT_64] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16434
- instructionArgumentTypeMap[Instruction.CMOV_IZ_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16435
- instructionArgumentTypeMap[Instruction.CMOV_NZ_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16436
- instructionArgumentTypeMap[Instruction.ROT_R_64_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16437
- instructionArgumentTypeMap[Instruction.ROT_R_64_IMM_ALT] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16438
- instructionArgumentTypeMap[Instruction.ROT_R_32_IMM] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16439
- instructionArgumentTypeMap[Instruction.ROT_R_32_IMM_ALT] = ArgumentType.TWO_REGISTERS_ONE_IMMEDIATE;
16440
-
16441
- instructionArgumentTypeMap[Instruction.BRANCH_EQ] = ArgumentType.TWO_REGISTERS_ONE_OFFSET;
16442
- instructionArgumentTypeMap[Instruction.BRANCH_NE] = ArgumentType.TWO_REGISTERS_ONE_OFFSET;
16443
- instructionArgumentTypeMap[Instruction.BRANCH_LT_U] = ArgumentType.TWO_REGISTERS_ONE_OFFSET;
16444
- instructionArgumentTypeMap[Instruction.BRANCH_LT_S] = ArgumentType.TWO_REGISTERS_ONE_OFFSET;
16445
- instructionArgumentTypeMap[Instruction.BRANCH_GE_U] = ArgumentType.TWO_REGISTERS_ONE_OFFSET;
16446
- instructionArgumentTypeMap[Instruction.BRANCH_GE_S] = ArgumentType.TWO_REGISTERS_ONE_OFFSET;
16447
-
16448
- instructionArgumentTypeMap[Instruction.LOAD_IMM_JUMP_IND] = ArgumentType.TWO_REGISTERS_TWO_IMMEDIATES;
16449
-
16450
- instructionArgumentTypeMap[Instruction.ADD_32] = ArgumentType.THREE_REGISTERS;
16451
- instructionArgumentTypeMap[Instruction.ADD_64] = ArgumentType.THREE_REGISTERS;
16452
- instructionArgumentTypeMap[Instruction.SUB_32] = ArgumentType.THREE_REGISTERS;
16453
- instructionArgumentTypeMap[Instruction.SUB_64] = ArgumentType.THREE_REGISTERS;
16454
- instructionArgumentTypeMap[Instruction.AND] = ArgumentType.THREE_REGISTERS;
16455
- instructionArgumentTypeMap[Instruction.XOR] = ArgumentType.THREE_REGISTERS;
16456
- instructionArgumentTypeMap[Instruction.OR] = ArgumentType.THREE_REGISTERS;
16457
- instructionArgumentTypeMap[Instruction.MUL_32] = ArgumentType.THREE_REGISTERS;
16458
- instructionArgumentTypeMap[Instruction.MUL_64] = ArgumentType.THREE_REGISTERS;
16459
- instructionArgumentTypeMap[Instruction.MUL_UPPER_S_S] = ArgumentType.THREE_REGISTERS;
16460
- instructionArgumentTypeMap[Instruction.MUL_UPPER_U_U] = ArgumentType.THREE_REGISTERS;
16461
- instructionArgumentTypeMap[Instruction.MUL_UPPER_S_U] = ArgumentType.THREE_REGISTERS;
16462
- instructionArgumentTypeMap[Instruction.DIV_U_32] = ArgumentType.THREE_REGISTERS;
16463
- instructionArgumentTypeMap[Instruction.DIV_S_32] = ArgumentType.THREE_REGISTERS;
16464
- instructionArgumentTypeMap[Instruction.REM_U_32] = ArgumentType.THREE_REGISTERS;
16465
- instructionArgumentTypeMap[Instruction.REM_S_32] = ArgumentType.THREE_REGISTERS;
16466
- instructionArgumentTypeMap[Instruction.DIV_U_64] = ArgumentType.THREE_REGISTERS;
16467
- instructionArgumentTypeMap[Instruction.DIV_S_64] = ArgumentType.THREE_REGISTERS;
16468
- instructionArgumentTypeMap[Instruction.REM_U_64] = ArgumentType.THREE_REGISTERS;
16469
- instructionArgumentTypeMap[Instruction.REM_S_64] = ArgumentType.THREE_REGISTERS;
16470
- instructionArgumentTypeMap[Instruction.SET_LT_U] = ArgumentType.THREE_REGISTERS;
16471
- instructionArgumentTypeMap[Instruction.SET_LT_S] = ArgumentType.THREE_REGISTERS;
16472
- instructionArgumentTypeMap[Instruction.SHLO_L_32] = ArgumentType.THREE_REGISTERS;
16473
- instructionArgumentTypeMap[Instruction.SHLO_R_32] = ArgumentType.THREE_REGISTERS;
16474
- instructionArgumentTypeMap[Instruction.SHAR_R_32] = ArgumentType.THREE_REGISTERS;
16475
- instructionArgumentTypeMap[Instruction.SHLO_L_64] = ArgumentType.THREE_REGISTERS;
16476
- instructionArgumentTypeMap[Instruction.SHLO_R_64] = ArgumentType.THREE_REGISTERS;
16477
- instructionArgumentTypeMap[Instruction.SHAR_R_64] = ArgumentType.THREE_REGISTERS;
16478
- instructionArgumentTypeMap[Instruction.CMOV_IZ] = ArgumentType.THREE_REGISTERS;
16479
- instructionArgumentTypeMap[Instruction.CMOV_NZ] = ArgumentType.THREE_REGISTERS;
16480
- instructionArgumentTypeMap[Instruction.ROT_L_64] = ArgumentType.THREE_REGISTERS;
16481
- instructionArgumentTypeMap[Instruction.ROT_L_32] = ArgumentType.THREE_REGISTERS;
16482
- instructionArgumentTypeMap[Instruction.ROT_R_64] = ArgumentType.THREE_REGISTERS;
16483
- instructionArgumentTypeMap[Instruction.ROT_R_32] = ArgumentType.THREE_REGISTERS;
16484
- instructionArgumentTypeMap[Instruction.AND_INV] = ArgumentType.THREE_REGISTERS;
16485
- instructionArgumentTypeMap[Instruction.OR_INV] = ArgumentType.THREE_REGISTERS;
16486
- instructionArgumentTypeMap[Instruction.XNOR] = ArgumentType.THREE_REGISTERS;
16487
- instructionArgumentTypeMap[Instruction.MAX] = ArgumentType.THREE_REGISTERS;
16488
- instructionArgumentTypeMap[Instruction.MAX_U] = ArgumentType.THREE_REGISTERS;
16489
- instructionArgumentTypeMap[Instruction.MIN] = ArgumentType.THREE_REGISTERS;
16490
- instructionArgumentTypeMap[Instruction.MIN_U] = ArgumentType.THREE_REGISTERS;
16491
-
16492
- return instructionArgumentTypeMap;
16493
- })();
16494
-
16495
16204
  declare class BasicBlocks {
16496
16205
  private basicBlocks: Set<number> = new Set();
16497
16206
 
@@ -18267,66 +17976,6 @@ declare enum ProgramDecoderError {
18267
17976
  InvalidProgramError = 0,
18268
17977
  }
18269
17978
 
18270
- declare class ProgramDecoder {
18271
- private code: Uint8Array;
18272
- private mask: Mask;
18273
- private jumpTable: JumpTable;
18274
-
18275
- constructor(rawProgram: Uint8Array) {
18276
- const { code, mask, jumpTable, jumpTableItemLength } = this.decodeProgram(rawProgram);
18277
-
18278
- this.code = new Uint8Array(code);
18279
- this.mask = new Mask(mask);
18280
- this.jumpTable = new JumpTable(jumpTableItemLength, jumpTable);
18281
- }
18282
-
18283
- private decodeProgram(program: Uint8Array) {
18284
- const decoder = Decoder.fromBlob(program);
18285
- // number of items in the jump table
18286
- const jumpTableLength = decoder.varU32();
18287
- // how many bytes are used to encode a single item of the jump table
18288
- const jumpTableItemLength = decoder.u8();
18289
- // the length of the code (in bytes).
18290
- const codeLength = decoder.varU32();
18291
-
18292
- const jumpTableLengthInBytes = jumpTableLength * jumpTableItemLength;
18293
- const jumpTable = decoder.bytes(jumpTableLengthInBytes).raw;
18294
-
18295
- const code = decoder.bytes(codeLength).raw;
18296
- const mask = decoder.bitVecFixLen(codeLength);
18297
- decoder.finish();
18298
-
18299
- return {
18300
- mask,
18301
- code,
18302
- jumpTableItemLength,
18303
- jumpTable,
18304
- };
18305
- }
18306
-
18307
- getMask() {
18308
- return this.mask;
18309
- }
18310
-
18311
- getCode() {
18312
- return this.code;
18313
- }
18314
-
18315
- getJumpTable() {
18316
- return this.jumpTable;
18317
- }
18318
-
18319
- /** https://graypaper.fluffylabs.dev/#/68eaa1f/23f400234701?v=0.6.4 */
18320
- static deblob(program: Uint8Array): Result$2<ProgramDecoder, ProgramDecoderError> {
18321
- try {
18322
- return Result.ok(new ProgramDecoder(program));
18323
- } catch (e) {
18324
- logger.error`Invalid program: ${e}`;
18325
- return Result.error(ProgramDecoderError.InvalidProgramError, () => `Program decoder error: ${e}`);
18326
- }
18327
- }
18328
- }
18329
-
18330
17979
  type InterpreterOptions = {
18331
17980
  useSbrkGas?: boolean;
18332
17981
  };
@@ -19609,133 +19258,10 @@ declare class DebuggerAdapter {
19609
19258
  }
19610
19259
  }
19611
19260
 
19612
- type index$4_AccumulationStateUpdate = AccumulationStateUpdate;
19613
- declare const index$4_AccumulationStateUpdate: typeof AccumulationStateUpdate;
19614
- type index$4_Args = Args;
19615
- type index$4_ArgsDecoder = ArgsDecoder;
19616
- declare const index$4_ArgsDecoder: typeof ArgsDecoder;
19617
- type index$4_ArgumentType = ArgumentType;
19618
- declare const index$4_ArgumentType: typeof ArgumentType;
19619
- type index$4_BasicBlocks = BasicBlocks;
19620
- declare const index$4_BasicBlocks: typeof BasicBlocks;
19621
- declare const index$4_CURRENT_SERVICE_ID: typeof CURRENT_SERVICE_ID;
19622
- type index$4_EjectError = EjectError;
19623
- declare const index$4_EjectError: typeof EjectError;
19624
- type index$4_EnumMapping = EnumMapping;
19625
- type index$4_ErrorResult<Error> = ErrorResult<Error>;
19626
- type index$4_ExtendedWitdthImmediateDecoder = ExtendedWitdthImmediateDecoder;
19627
- declare const index$4_ExtendedWitdthImmediateDecoder: typeof ExtendedWitdthImmediateDecoder;
19628
- type index$4_ForgetPreimageError = ForgetPreimageError;
19629
- declare const index$4_ForgetPreimageError: typeof ForgetPreimageError;
19630
- type index$4_HostCallMemory = HostCallMemory;
19631
- declare const index$4_HostCallMemory: typeof HostCallMemory;
19632
- type index$4_HostCallRegisters = HostCallRegisters;
19633
- declare const index$4_HostCallRegisters: typeof HostCallRegisters;
19634
- declare const index$4_HostCallResult: typeof HostCallResult;
19635
- type index$4_ImmediateDecoder = ImmediateDecoder;
19636
- declare const index$4_ImmediateDecoder: typeof ImmediateDecoder;
19637
- type index$4_InsufficientFundsError = InsufficientFundsError;
19638
- declare const index$4_MAX_U32: typeof MAX_U32;
19639
- declare const index$4_MAX_U32_BIG_INT: typeof MAX_U32_BIG_INT;
19640
- type index$4_MachineId = MachineId;
19641
- type index$4_MachineInstance = MachineInstance;
19642
- declare const index$4_MachineInstance: typeof MachineInstance;
19643
- type index$4_MachineResult = MachineResult;
19644
- type index$4_MachineStatus = MachineStatus;
19645
- type index$4_Mask = Mask;
19646
- declare const index$4_Mask: typeof Mask;
19647
- type index$4_MemoryOperation = MemoryOperation;
19648
- declare const index$4_MemoryOperation: typeof MemoryOperation;
19649
- type index$4_MemorySegment = MemorySegment;
19650
- declare const index$4_MemorySegment: typeof MemorySegment;
19651
- type index$4_NewServiceError = NewServiceError;
19652
- declare const index$4_NewServiceError: typeof NewServiceError;
19653
- type index$4_NibblesDecoder = NibblesDecoder;
19654
- declare const index$4_NibblesDecoder: typeof NibblesDecoder;
19655
- type index$4_NoMachineError = NoMachineError;
19656
- type index$4_OK = OK;
19657
- type index$4_OkResult<Ok> = OkResult<Ok>;
19658
- type index$4_Opaque<Type, Token extends string> = Opaque<Type, Token>;
19659
- type index$4_PagesError = PagesError;
19660
- declare const index$4_PagesError: typeof PagesError;
19661
- type index$4_PartialState = PartialState;
19662
- type index$4_PartiallyUpdatedState<T extends StateSlice = StateSlice> = PartiallyUpdatedState<T>;
19663
- declare const index$4_PartiallyUpdatedState: typeof PartiallyUpdatedState;
19664
- type index$4_PeekPokeError = PeekPokeError;
19665
- declare const index$4_PeekPokeError: typeof PeekPokeError;
19666
- type index$4_PendingTransfer = PendingTransfer;
19667
- declare const index$4_PendingTransfer: typeof PendingTransfer;
19668
- type index$4_PreimageStatus = PreimageStatus;
19669
- type index$4_PreimageStatusKind = PreimageStatusKind;
19670
- declare const index$4_PreimageStatusKind: typeof PreimageStatusKind;
19671
- type index$4_Program = Program;
19672
- declare const index$4_Program: typeof Program;
19673
- type index$4_ProgramCounter = ProgramCounter;
19674
- type index$4_ProgramDecoder = ProgramDecoder;
19675
- declare const index$4_ProgramDecoder: typeof ProgramDecoder;
19676
- type index$4_ProvidePreimageError = ProvidePreimageError;
19677
- declare const index$4_ProvidePreimageError: typeof ProvidePreimageError;
19678
- type index$4_RefineExternalities = RefineExternalities;
19679
- type index$4_Registers = Registers;
19680
- declare const index$4_Registers: typeof Registers;
19681
- type index$4_RequestPreimageError = RequestPreimageError;
19682
- declare const index$4_RequestPreimageError: typeof RequestPreimageError;
19683
- type index$4_RichTaggedError<Kind extends string | number, Nested> = RichTaggedError<Kind, Nested>;
19684
- declare const index$4_RichTaggedError: typeof RichTaggedError;
19685
- declare const index$4_SERVICE_ID_BYTES: typeof SERVICE_ID_BYTES;
19686
- type index$4_SegmentExportError = SegmentExportError;
19687
- type index$4_ServiceStateUpdate = ServiceStateUpdate;
19688
- type index$4_SpiMemory = SpiMemory;
19689
- declare const index$4_SpiMemory: typeof SpiMemory;
19690
- type index$4_SpiProgram = SpiProgram;
19691
- declare const index$4_SpiProgram: typeof SpiProgram;
19692
- type index$4_StateSlice = StateSlice;
19693
- type index$4_StringLiteral<Type> = StringLiteral<Type>;
19694
- type index$4_TRANSFER_MEMO_BYTES = TRANSFER_MEMO_BYTES;
19695
- type index$4_TaggedError<Kind, Nested> = TaggedError<Kind, Nested>;
19696
- type index$4_TokenOf<OpaqueType, Type> = TokenOf<OpaqueType, Type>;
19697
- type index$4_TransferError = TransferError;
19698
- declare const index$4_TransferError: typeof TransferError;
19699
- type index$4_Uninstantiable = Uninstantiable;
19700
- type index$4_UnprivilegedError = UnprivilegedError;
19701
- type index$4_UpdatePrivilegesError = UpdatePrivilegesError;
19702
- declare const index$4_UpdatePrivilegesError: typeof UpdatePrivilegesError;
19703
- type index$4_WithDebug = WithDebug;
19704
- declare const index$4_WithDebug: typeof WithDebug;
19705
- type index$4_WithOpaque<Token extends string> = WithOpaque<Token>;
19706
- type index$4_ZeroVoidError = ZeroVoidError;
19707
- declare const index$4_ZeroVoidError: typeof ZeroVoidError;
19708
- declare const index$4___OPAQUE_TYPE__: typeof __OPAQUE_TYPE__;
19709
- declare const index$4_asOpaqueType: typeof asOpaqueType;
19710
- declare const index$4_assertEmpty: typeof assertEmpty;
19711
- declare const index$4_assertNever: typeof assertNever;
19712
- declare const index$4_check: typeof check;
19713
- declare const index$4_clampU64ToU32: typeof clampU64ToU32;
19714
- declare const index$4_createResults: typeof createResults;
19715
- declare const index$4_decodeStandardProgram: typeof decodeStandardProgram;
19716
- declare const index$4_deepCloneMapWithArray: typeof deepCloneMapWithArray;
19717
- declare const index$4_emptyRegistersBuffer: typeof emptyRegistersBuffer;
19718
- declare const index$4_extractCodeAndMetadata: typeof extractCodeAndMetadata;
19719
- declare const index$4_getServiceId: typeof getServiceId;
19720
- declare const index$4_getServiceIdOrCurrent: typeof getServiceIdOrCurrent;
19721
- declare const index$4_inspect: typeof inspect;
19722
- declare const index$4_instructionArgumentTypeMap: typeof instructionArgumentTypeMap;
19723
- declare const index$4_isBrowser: typeof isBrowser;
19724
- declare const index$4_isTaggedError: typeof isTaggedError;
19725
- declare const index$4_lazyInspect: typeof lazyInspect;
19726
- declare const index$4_maybeTaggedErrorToString: typeof maybeTaggedErrorToString;
19727
- declare const index$4_measure: typeof measure;
19728
- declare const index$4_preimageLenAsU32: typeof preimageLenAsU32;
19729
- declare const index$4_resultToString: typeof resultToString;
19730
- declare const index$4_seeThrough: typeof seeThrough;
19731
- declare const index$4_slotsToPreimageStatus: typeof slotsToPreimageStatus;
19732
- declare const index$4_toMemoryOperation: typeof toMemoryOperation;
19733
- declare const index$4_tryAsMachineId: typeof tryAsMachineId;
19734
- declare const index$4_tryAsProgramCounter: typeof tryAsProgramCounter;
19735
- declare const index$4_writeServiceIdAsLeBytes: typeof writeServiceIdAsLeBytes;
19736
19261
  declare namespace index$4 {
19737
- export { index$4_AccumulationStateUpdate as AccumulationStateUpdate, index$4_ArgsDecoder as ArgsDecoder, index$4_ArgumentType as ArgumentType, index$4_BasicBlocks as BasicBlocks, index$4_CURRENT_SERVICE_ID as CURRENT_SERVICE_ID, index$4_EjectError as EjectError, index$4_ExtendedWitdthImmediateDecoder as ExtendedWitdthImmediateDecoder, index$4_ForgetPreimageError as ForgetPreimageError, index$4_HostCallMemory as HostCallMemory, index$4_HostCallRegisters as HostCallRegisters, index$4_HostCallResult as HostCallResult, index$4_ImmediateDecoder as ImmediateDecoder, index$4_MAX_U32 as MAX_U32, index$4_MAX_U32_BIG_INT as MAX_U32_BIG_INT, index$4_MachineInstance as MachineInstance, index$4_Mask as Mask, index$4_MemoryOperation as MemoryOperation, index$4_MemorySegment as MemorySegment, NO_OF_REGISTERS$1 as NO_OF_REGISTERS, index$4_NewServiceError as NewServiceError, index$4_NibblesDecoder as NibblesDecoder, index$4_PagesError as PagesError, index$4_PartiallyUpdatedState as PartiallyUpdatedState, index$4_PeekPokeError as PeekPokeError, index$4_PendingTransfer as PendingTransfer, index$4_PreimageStatusKind as PreimageStatusKind, index$4_Program as Program, index$4_ProgramDecoder as ProgramDecoder, index$4_ProvidePreimageError as ProvidePreimageError, DebuggerAdapter as Pvm, index$4_Registers as Registers, index$4_RequestPreimageError as RequestPreimageError, Result$2 as Result, index$4_RichTaggedError as RichTaggedError, index$4_SERVICE_ID_BYTES as SERVICE_ID_BYTES, index$4_SpiMemory as SpiMemory, index$4_SpiProgram as SpiProgram, index$4_TransferError as TransferError, index$4_UpdatePrivilegesError as UpdatePrivilegesError, index$4_WithDebug as WithDebug, index$4_ZeroVoidError as ZeroVoidError, index$4___OPAQUE_TYPE__ as __OPAQUE_TYPE__, index$4_asOpaqueType as asOpaqueType, index$4_assertEmpty as assertEmpty, index$4_assertNever as assertNever, index$m as block, index$t as bytes, index$4_check as check, index$4_clampU64ToU32 as clampU64ToU32, index$4_createResults as createResults, index$4_decodeStandardProgram as decodeStandardProgram, index$4_deepCloneMapWithArray as deepCloneMapWithArray, index$4_emptyRegistersBuffer as emptyRegistersBuffer, index$4_extractCodeAndMetadata as extractCodeAndMetadata, index$4_getServiceId as getServiceId, index$4_getServiceIdOrCurrent as getServiceIdOrCurrent, index$q as hash, codecServiceAccountInfoWithThresholdBalance as hostCallInfoAccount, index$4_inspect as inspect, index$4_instructionArgumentTypeMap as instructionArgumentTypeMap, index$7 as interpreter, index$4_isBrowser as isBrowser, index$4_isTaggedError as isTaggedError, index$4_lazyInspect as lazyInspect, index$4_maybeTaggedErrorToString as maybeTaggedErrorToString, index$4_measure as measure, index$s as numbers, index$4_preimageLenAsU32 as preimageLenAsU32, index$4_resultToString as resultToString, index$4_seeThrough as seeThrough, index$4_slotsToPreimageStatus as slotsToPreimageStatus, index$4_toMemoryOperation as toMemoryOperation, index$4_tryAsMachineId as tryAsMachineId, index$4_tryAsProgramCounter as tryAsProgramCounter, index$4_writeServiceIdAsLeBytes as writeServiceIdAsLeBytes };
19738
- export type { index$4_Args as Args, index$4_EnumMapping as EnumMapping, index$4_ErrorResult as ErrorResult, index$4_InsufficientFundsError as InsufficientFundsError, index$4_MachineId as MachineId, index$4_MachineResult as MachineResult, index$4_MachineStatus as MachineStatus, index$4_NoMachineError as NoMachineError, index$4_OK as OK, index$4_OkResult as OkResult, index$4_Opaque as Opaque, index$4_PartialState as PartialState, index$4_PreimageStatus as PreimageStatus, index$4_ProgramCounter as ProgramCounter, index$4_RefineExternalities as RefineExternalities, index$4_SegmentExportError as SegmentExportError, index$4_ServiceStateUpdate as ServiceStateUpdate, index$4_StateSlice as StateSlice, index$4_StringLiteral as StringLiteral, index$4_TRANSFER_MEMO_BYTES as TRANSFER_MEMO_BYTES, index$4_TaggedError as TaggedError, index$4_TokenOf as TokenOf, index$4_Uninstantiable as Uninstantiable, index$4_UnprivilegedError as UnprivilegedError, index$4_WithOpaque as WithOpaque };
19262
+ export {
19263
+ DebuggerAdapter as Pvm,
19264
+ };
19739
19265
  }
19740
19266
 
19741
19267
  declare const ENTROPY_BYTES = 32;
@@ -20539,7 +20065,6 @@ declare namespace index$1 {
20539
20065
  /** Helper function to create most used hashes in the block */
20540
20066
  declare class TransitionHasher implements MmrHasher<KeccakHash> {
20541
20067
  constructor(
20542
- private readonly context: ChainSpec,
20543
20068
  private readonly keccakHasher: KeccakHasher,
20544
20069
  public readonly blake2b: Blake2b,
20545
20070
  ) {}