@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.cjs CHANGED
@@ -19,7 +19,11 @@ var TestSuite;
19
19
  })(TestSuite || (TestSuite = {}));
20
20
  const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1, GpVersion.V0_7_2];
21
21
  const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
22
- const DEFAULT_VERSION = GpVersion.V0_7_2;
22
+ /**
23
+ * Current version is set to track the jam-conformance testing.
24
+ * Since we are currently at 0.7.1 not 0.7.2, we set our default version accordingly.
25
+ */
26
+ const DEFAULT_VERSION = GpVersion.V0_7_1;
23
27
  const env$1 = typeof process === "undefined" ? {} : process.env;
24
28
  let CURRENT_VERSION = parseCurrentVersion(env$1.GP_VERSION) ?? DEFAULT_VERSION;
25
29
  let CURRENT_SUITE = parseCurrentSuite(env$1.TEST_SUITE) ?? DEFAULT_SUITE;
@@ -78,8 +82,8 @@ class Compatibility {
78
82
  /**
79
83
  * Allows selecting different values for different Gray Paper versions from one record.
80
84
  *
81
- * @param fallback The default value to return if no value is found for the current.
82
- * @param record A record mapping versions to values, checking if the version is greater or equal to the current version.
85
+ * fallback The default value to return if no value is found for the current.
86
+ * versions A record mapping versions to values, checking if the version is greater or equal to the current version.
83
87
  * @returns The value for the current version, or the default value.
84
88
  */
85
89
  static selectIfGreaterOrEqual({ fallback, versions, }) {
@@ -239,7 +243,7 @@ const workspacePathFix = env.NODE_ENV === "development"
239
243
  : () => (p) => p;
240
244
 
241
245
  /**
242
- * @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
246
+ * `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
243
247
  * specified unique token Token. It means that base type cannot be assigned to unique type by accident.
244
248
  * Good examples of opaque types include:
245
249
  * - JWTs or other tokens - these are special kinds of string used for authorization purposes.
@@ -6712,6 +6716,8 @@ var index$m = /*#__PURE__*/Object.freeze({
6712
6716
  SEGMENT_BYTES: SEGMENT_BYTES,
6713
6717
  TicketsMarker: TicketsMarker,
6714
6718
  ValidatorKeys: ValidatorKeys,
6719
+ W_E: W_E,
6720
+ W_S: W_S,
6715
6721
  assurances: assurances,
6716
6722
  codecPerEpochBlock: codecPerEpochBlock,
6717
6723
  codecPerValidator: codecPerValidator,
@@ -7100,12 +7106,12 @@ const workRefineLoadFromJson = json.object({
7100
7106
  extrinsic_count: "number",
7101
7107
  extrinsic_size: "number",
7102
7108
  exports: "number",
7103
- }, ({ gas_used, imports, extrinsic_count, extrinsic_size, exports }) => WorkRefineLoad.create({
7109
+ }, ({ gas_used, imports, extrinsic_count, extrinsic_size, exports: exports$1 }) => WorkRefineLoad.create({
7104
7110
  gasUsed: tryAsServiceGas(gas_used),
7105
7111
  importedSegments: tryAsU32(imports),
7106
7112
  extrinsicCount: tryAsU32(extrinsic_count),
7107
7113
  extrinsicSize: tryAsU32(extrinsic_size),
7108
- exportedSegments: tryAsU32(exports),
7114
+ exportedSegments: tryAsU32(exports$1),
7109
7115
  }));
7110
7116
  const workResultFromJson = json.object({
7111
7117
  service_id: "number",
@@ -7267,7 +7273,7 @@ function parseBootnode(v) {
7267
7273
  if (name === "" || ip === "" || port === "") {
7268
7274
  throw new Error(`Invalid bootnode format, expected: <name>@<ip>:<port>, got: "${v}"`);
7269
7275
  }
7270
- const portNumber = Number.parseInt(port);
7276
+ const portNumber = Number.parseInt(port, 10);
7271
7277
  if (!isU16(portNumber)) {
7272
7278
  throw new Error(`Invalid port number: "${port}"`);
7273
7279
  }
@@ -8872,7 +8878,7 @@ class CoreStatistics {
8872
8878
  /** `i` */
8873
8879
  imports,
8874
8880
  /** `e` */
8875
- exports,
8881
+ exports$1,
8876
8882
  /** `z` */
8877
8883
  extrinsicSize,
8878
8884
  /** `x` */
@@ -8884,7 +8890,7 @@ class CoreStatistics {
8884
8890
  this.dataAvailabilityLoad = dataAvailabilityLoad;
8885
8891
  this.popularity = popularity;
8886
8892
  this.imports = imports;
8887
- this.exports = exports;
8893
+ this.exports = exports$1;
8888
8894
  this.extrinsicSize = extrinsicSize;
8889
8895
  this.extrinsicCount = extrinsicCount;
8890
8896
  this.bundleSize = bundleSize;
@@ -8977,7 +8983,7 @@ class ServiceStatistics {
8977
8983
  /** `i` */
8978
8984
  imports,
8979
8985
  /** `e` */
8980
- exports,
8986
+ exports$1,
8981
8987
  /** `z` */
8982
8988
  extrinsicSize,
8983
8989
  /** `x` */
@@ -8995,7 +9001,7 @@ class ServiceStatistics {
8995
9001
  this.refinementCount = refinementCount;
8996
9002
  this.refinementGasUsed = refinementGasUsed;
8997
9003
  this.imports = imports;
8998
- this.exports = exports;
9004
+ this.exports = exports$1;
8999
9005
  this.extrinsicSize = extrinsicSize;
9000
9006
  this.extrinsicCount = extrinsicCount;
9001
9007
  this.accumulateCount = accumulateCount;
@@ -10376,7 +10382,6 @@ class LeafNode {
10376
10382
  /**
10377
10383
  * Get the byte length of embedded value.
10378
10384
  *
10379
- * @remark
10380
10385
  * Note in case this node only contains hash this is going to be 0.
10381
10386
  */
10382
10387
  getValueLength() {
@@ -10387,7 +10392,6 @@ class LeafNode {
10387
10392
  /**
10388
10393
  * Returns the embedded value.
10389
10394
  *
10390
- * @remark
10391
10395
  * Note that this is going to be empty for a regular leaf node (i.e. containing a hash).
10392
10396
  */
10393
10397
  getValue() {
@@ -10397,7 +10401,6 @@ class LeafNode {
10397
10401
  /**
10398
10402
  * Returns contained value hash.
10399
10403
  *
10400
- * @remark
10401
10404
  * Note that for embedded value this is going to be full 0-padded 32 bytes.
10402
10405
  */
10403
10406
  getValueHash() {
@@ -16837,18 +16840,18 @@ async function instantiate$1(module, imports = {}) {
16837
16840
  },
16838
16841
  }, Object.assign(Object.create(globalThis), imports.env || {})),
16839
16842
  };
16840
- const { exports } = await WebAssembly.instantiate(module, adaptedImports);
16841
- const memory = exports.memory || imports.env.memory;
16843
+ const { exports: exports$1 } = await WebAssembly.instantiate(module, adaptedImports);
16844
+ const memory = exports$1.memory || imports.env.memory;
16842
16845
  const adaptedExports = Object.setPrototypeOf({
16843
16846
  getAssembly(p) {
16844
16847
  // assembly/api-internal/getAssembly(assembly/program/Program) => ~lib/string/String
16845
16848
  p = __lowerInternref(p) || __notnull();
16846
- return __liftString(exports.getAssembly(p) >>> 0);
16849
+ return __liftString(exports$1.getAssembly(p) >>> 0);
16847
16850
  },
16848
16851
  wrapAsProgram(bytecode) {
16849
16852
  // assembly/program-build/wrapAsProgram(~lib/typedarray/Uint8Array) => ~lib/typedarray/Uint8Array
16850
16853
  bytecode = __lowerTypedArray(Uint8Array, 10, 0, bytecode) || __notnull();
16851
- return __liftTypedArray(Uint8Array, exports.wrapAsProgram(bytecode) >>> 0);
16854
+ return __liftTypedArray(Uint8Array, exports$1.wrapAsProgram(bytecode) >>> 0);
16852
16855
  },
16853
16856
  resetJAM(program, pc, initialGas, args, hasMetadata) {
16854
16857
  // assembly/api-debugger/resetJAM(~lib/array/Array<u8>, f64, i64, ~lib/array/Array<u8>, bool?) => void
@@ -16857,8 +16860,8 @@ async function instantiate$1(module, imports = {}) {
16857
16860
  args = __lowerArray(__setU8, 6, 0, args) || __notnull();
16858
16861
  hasMetadata = hasMetadata ? 1 : 0;
16859
16862
  try {
16860
- exports.__setArgumentsLength(arguments.length);
16861
- exports.resetJAM(program, pc, initialGas, args, hasMetadata);
16863
+ exports$1.__setArgumentsLength(arguments.length);
16864
+ exports$1.resetJAM(program, pc, initialGas, args, hasMetadata);
16862
16865
  } finally {
16863
16866
  __release(program);
16864
16867
  }
@@ -16870,8 +16873,8 @@ async function instantiate$1(module, imports = {}) {
16870
16873
  initialGas = initialGas || 0n;
16871
16874
  hasMetadata = hasMetadata ? 1 : 0;
16872
16875
  try {
16873
- exports.__setArgumentsLength(arguments.length);
16874
- exports.resetGeneric(program, flatRegisters, initialGas, hasMetadata);
16876
+ exports$1.__setArgumentsLength(arguments.length);
16877
+ exports$1.resetGeneric(program, flatRegisters, initialGas, hasMetadata);
16875
16878
  } finally {
16876
16879
  __release(program);
16877
16880
  }
@@ -16885,8 +16888,8 @@ async function instantiate$1(module, imports = {}) {
16885
16888
  initialGas = initialGas || 0n;
16886
16889
  hasMetadata = hasMetadata ? 1 : 0;
16887
16890
  try {
16888
- exports.__setArgumentsLength(arguments.length);
16889
- exports.resetGenericWithMemory(program, flatRegisters, pageMap, chunks, initialGas, hasMetadata);
16891
+ exports$1.__setArgumentsLength(arguments.length);
16892
+ exports$1.resetGenericWithMemory(program, flatRegisters, pageMap, chunks, initialGas, hasMetadata);
16890
16893
  } finally {
16891
16894
  __release(program);
16892
16895
  __release(flatRegisters);
@@ -16895,68 +16898,68 @@ async function instantiate$1(module, imports = {}) {
16895
16898
  },
16896
16899
  nextStep() {
16897
16900
  // assembly/api-debugger/nextStep() => bool
16898
- return exports.nextStep() != 0;
16901
+ return exports$1.nextStep() != 0;
16899
16902
  },
16900
16903
  nSteps(steps) {
16901
16904
  // assembly/api-debugger/nSteps(u32) => bool
16902
- return exports.nSteps(steps) != 0;
16905
+ return exports$1.nSteps(steps) != 0;
16903
16906
  },
16904
16907
  getProgramCounter() {
16905
16908
  // assembly/api-debugger/getProgramCounter() => u32
16906
- return exports.getProgramCounter() >>> 0;
16909
+ return exports$1.getProgramCounter() >>> 0;
16907
16910
  },
16908
16911
  getExitArg() {
16909
16912
  // assembly/api-debugger/getExitArg() => u32
16910
- return exports.getExitArg() >>> 0;
16913
+ return exports$1.getExitArg() >>> 0;
16911
16914
  },
16912
16915
  setGasLeft(gas) {
16913
16916
  // assembly/api-debugger/setGasLeft(i64) => void
16914
16917
  gas = gas || 0n;
16915
- exports.setGasLeft(gas);
16918
+ exports$1.setGasLeft(gas);
16916
16919
  },
16917
16920
  getRegisters() {
16918
16921
  // assembly/api-debugger/getRegisters() => ~lib/typedarray/Uint8Array
16919
- return __liftTypedArray(Uint8Array, exports.getRegisters() >>> 0);
16922
+ return __liftTypedArray(Uint8Array, exports$1.getRegisters() >>> 0);
16920
16923
  },
16921
16924
  setRegisters(flatRegisters) {
16922
16925
  // assembly/api-debugger/setRegisters(~lib/array/Array<u8>) => void
16923
16926
  flatRegisters = __lowerArray(__setU8, 6, 0, flatRegisters) || __notnull();
16924
- exports.setRegisters(flatRegisters);
16927
+ exports$1.setRegisters(flatRegisters);
16925
16928
  },
16926
16929
  getPageDump(index) {
16927
16930
  // assembly/api-debugger/getPageDump(u32) => ~lib/typedarray/Uint8Array
16928
- return __liftTypedArray(Uint8Array, exports.getPageDump(index) >>> 0);
16931
+ return __liftTypedArray(Uint8Array, exports$1.getPageDump(index) >>> 0);
16929
16932
  },
16930
16933
  getMemory(address, length) {
16931
16934
  // assembly/api-debugger/getMemory(u32, u32) => ~lib/typedarray/Uint8Array | null
16932
- return __liftTypedArray(Uint8Array, exports.getMemory(address, length) >>> 0);
16935
+ return __liftTypedArray(Uint8Array, exports$1.getMemory(address, length) >>> 0);
16933
16936
  },
16934
16937
  setMemory(address, data) {
16935
16938
  // assembly/api-debugger/setMemory(u32, ~lib/typedarray/Uint8Array) => bool
16936
16939
  data = __lowerTypedArray(Uint8Array, 10, 0, data) || __notnull();
16937
- return exports.setMemory(address, data) != 0;
16940
+ return exports$1.setMemory(address, data) != 0;
16938
16941
  },
16939
16942
  InputKind: (values => (
16940
16943
  // assembly/api-utils/InputKind
16941
- values[values.Generic = exports["InputKind.Generic"].valueOf()] = "Generic",
16942
- values[values.SPI = exports["InputKind.SPI"].valueOf()] = "SPI",
16944
+ values[values.Generic = exports$1["InputKind.Generic"].valueOf()] = "Generic",
16945
+ values[values.SPI = exports$1["InputKind.SPI"].valueOf()] = "SPI",
16943
16946
  values
16944
16947
  ))({}),
16945
16948
  HasMetadata: (values => (
16946
16949
  // assembly/api-utils/HasMetadata
16947
- values[values.Yes = exports["HasMetadata.Yes"].valueOf()] = "Yes",
16948
- values[values.No = exports["HasMetadata.No"].valueOf()] = "No",
16950
+ values[values.Yes = exports$1["HasMetadata.Yes"].valueOf()] = "Yes",
16951
+ values[values.No = exports$1["HasMetadata.No"].valueOf()] = "No",
16949
16952
  values
16950
16953
  ))({}),
16951
16954
  getGasCosts(input, kind, withMetadata) {
16952
16955
  // assembly/api-utils/getGasCosts(~lib/array/Array<u8>, i32, i32) => ~lib/array/Array<assembly/gas-costs/BlockGasCost>
16953
16956
  input = __lowerArray(__setU8, 6, 0, input) || __notnull();
16954
- return __liftArray(pointer => __liftRecord50(__getU32(pointer)), 2, exports.getGasCosts(input, kind, withMetadata) >>> 0);
16957
+ return __liftArray(pointer => __liftRecord50(__getU32(pointer)), 2, exports$1.getGasCosts(input, kind, withMetadata) >>> 0);
16955
16958
  },
16956
16959
  disassemble(input, kind, withMetadata) {
16957
16960
  // assembly/api-utils/disassemble(~lib/array/Array<u8>, i32, i32) => ~lib/string/String
16958
16961
  input = __lowerArray(__setU8, 6, 0, input) || __notnull();
16959
- return __liftString(exports.disassemble(input, kind, withMetadata) >>> 0);
16962
+ return __liftString(exports$1.disassemble(input, kind, withMetadata) >>> 0);
16960
16963
  },
16961
16964
  prepareProgram(kind, hasMetadata, program, initialRegisters, initialPageMap, initialMemory, args) {
16962
16965
  // assembly/api-utils/prepareProgram(i32, i32, ~lib/array/Array<u8>, ~lib/array/Array<u64>, ~lib/array/Array<assembly/api-internal/InitialPage>, ~lib/array/Array<assembly/api-internal/InitialChunk>, ~lib/array/Array<u8>) => assembly/spi/StandardProgram
@@ -16966,7 +16969,7 @@ async function instantiate$1(module, imports = {}) {
16966
16969
  initialMemory = __retain(__lowerArray((pointer, value) => { __setU32(pointer, __lowerRecord48(value) || __notnull()); }, 49, 2, initialMemory) || __notnull());
16967
16970
  args = __lowerArray(__setU8, 6, 0, args) || __notnull();
16968
16971
  try {
16969
- return __liftInternref(exports.prepareProgram(kind, hasMetadata, program, initialRegisters, initialPageMap, initialMemory, args) >>> 0);
16972
+ return __liftInternref(exports$1.prepareProgram(kind, hasMetadata, program, initialRegisters, initialPageMap, initialMemory, args) >>> 0);
16970
16973
  } finally {
16971
16974
  __release(program);
16972
16975
  __release(initialRegisters);
@@ -16980,10 +16983,10 @@ async function instantiate$1(module, imports = {}) {
16980
16983
  initialGas = initialGas || 0n;
16981
16984
  logs = logs ? 1 : 0;
16982
16985
  useSbrkGas = useSbrkGas ? 1 : 0;
16983
- exports.__setArgumentsLength(arguments.length);
16984
- return __liftRecord55(exports.runProgram(program, initialGas, programCounter, logs, useSbrkGas) >>> 0);
16986
+ exports$1.__setArgumentsLength(arguments.length);
16987
+ return __liftRecord55(exports$1.runProgram(program, initialGas, programCounter, logs, useSbrkGas) >>> 0);
16985
16988
  },
16986
- }, exports);
16989
+ }, exports$1);
16987
16990
  function __liftRecord50(pointer) {
16988
16991
  // assembly/gas-costs/BlockGasCost
16989
16992
  // Hint: Opt-out from lifting as a record by providing an empty constructor
@@ -16997,21 +17000,21 @@ async function instantiate$1(module, imports = {}) {
16997
17000
  // assembly/api-internal/InitialPage
16998
17001
  // Hint: Opt-out from lowering as a record by providing an empty constructor
16999
17002
  if (value == null) return 0;
17000
- const pointer = exports.__pin(exports.__new(12, 46));
17003
+ const pointer = exports$1.__pin(exports$1.__new(12, 46));
17001
17004
  __setU32(pointer + 0, value.address);
17002
17005
  __setU32(pointer + 4, value.length);
17003
17006
  __setU32(pointer + 8, value.access);
17004
- exports.__unpin(pointer);
17007
+ exports$1.__unpin(pointer);
17005
17008
  return pointer;
17006
17009
  }
17007
17010
  function __lowerRecord48(value) {
17008
17011
  // assembly/api-internal/InitialChunk
17009
17012
  // Hint: Opt-out from lowering as a record by providing an empty constructor
17010
17013
  if (value == null) return 0;
17011
- const pointer = exports.__pin(exports.__new(8, 48));
17014
+ const pointer = exports$1.__pin(exports$1.__new(8, 48));
17012
17015
  __setU32(pointer + 0, value.address);
17013
17016
  __setU32(pointer + 4, __lowerArray(__setU8, 6, 0, value.data) || __notnull());
17014
- exports.__unpin(pointer);
17017
+ exports$1.__unpin(pointer);
17015
17018
  return pointer;
17016
17019
  }
17017
17020
  function __liftRecord48(pointer) {
@@ -17060,15 +17063,15 @@ async function instantiate$1(module, imports = {}) {
17060
17063
  if (values == null) return 0;
17061
17064
  const
17062
17065
  length = values.length,
17063
- buffer = exports.__pin(exports.__new(length << align, 1)) >>> 0,
17064
- header = exports.__pin(exports.__new(16, id)) >>> 0;
17066
+ buffer = exports$1.__pin(exports$1.__new(length << align, 1)) >>> 0,
17067
+ header = exports$1.__pin(exports$1.__new(16, id)) >>> 0;
17065
17068
  __setU32(header + 0, buffer);
17066
17069
  __dataview.setUint32(header + 4, buffer, true);
17067
17070
  __dataview.setUint32(header + 8, length << align, true);
17068
17071
  __dataview.setUint32(header + 12, length, true);
17069
17072
  for (let i = 0; i < length; ++i) lowerElement(buffer + (i << align >>> 0), values[i]);
17070
- exports.__unpin(buffer);
17071
- exports.__unpin(header);
17073
+ exports$1.__unpin(buffer);
17074
+ exports$1.__unpin(header);
17072
17075
  return header;
17073
17076
  }
17074
17077
  function __liftTypedArray(constructor, pointer) {
@@ -17083,13 +17086,13 @@ async function instantiate$1(module, imports = {}) {
17083
17086
  if (values == null) return 0;
17084
17087
  const
17085
17088
  length = values.length,
17086
- buffer = exports.__pin(exports.__new(length << align, 1)) >>> 0,
17087
- header = exports.__new(12, id) >>> 0;
17089
+ buffer = exports$1.__pin(exports$1.__new(length << align, 1)) >>> 0,
17090
+ header = exports$1.__new(12, id) >>> 0;
17088
17091
  __setU32(header + 0, buffer);
17089
17092
  __dataview.setUint32(header + 4, buffer, true);
17090
17093
  __dataview.setUint32(header + 8, length << align, true);
17091
17094
  new constructor(memory.buffer, buffer, length).set(values);
17092
- exports.__unpin(buffer);
17095
+ exports$1.__unpin(buffer);
17093
17096
  return header;
17094
17097
  }
17095
17098
  class Internref extends Number {}
@@ -17110,14 +17113,14 @@ async function instantiate$1(module, imports = {}) {
17110
17113
  if (pointer) {
17111
17114
  const refcount = refcounts.get(pointer);
17112
17115
  if (refcount) refcounts.set(pointer, refcount + 1);
17113
- else refcounts.set(exports.__pin(pointer), 1);
17116
+ else refcounts.set(exports$1.__pin(pointer), 1);
17114
17117
  }
17115
17118
  return pointer;
17116
17119
  }
17117
17120
  function __release(pointer) {
17118
17121
  if (pointer) {
17119
17122
  const refcount = refcounts.get(pointer);
17120
- if (refcount === 1) exports.__unpin(pointer), refcounts.delete(pointer);
17123
+ if (refcount === 1) exports$1.__unpin(pointer), refcounts.delete(pointer);
17121
17124
  else if (refcount) refcounts.set(pointer, refcount - 1);
17122
17125
  else throw Error(`invalid refcount '${refcount}' for reference '${pointer}'`);
17123
17126
  }
@@ -17719,79 +17722,7 @@ class DebuggerAdapter {
17719
17722
 
17720
17723
  var index$4 = /*#__PURE__*/Object.freeze({
17721
17724
  __proto__: null,
17722
- AccumulationStateUpdate: AccumulationStateUpdate,
17723
- ArgsDecoder: ArgsDecoder,
17724
- get ArgumentType () { return ArgumentType; },
17725
- BasicBlocks: BasicBlocks,
17726
- CURRENT_SERVICE_ID: CURRENT_SERVICE_ID,
17727
- get EjectError () { return EjectError; },
17728
- ExtendedWitdthImmediateDecoder: ExtendedWitdthImmediateDecoder,
17729
- get ForgetPreimageError () { return ForgetPreimageError; },
17730
- HostCallMemory: HostCallMemory,
17731
- HostCallRegisters: HostCallRegisters,
17732
- HostCallResult: HostCallResult,
17733
- ImmediateDecoder: ImmediateDecoder,
17734
- InsufficientFundsError: InsufficientFundsError,
17735
- MachineInstance: MachineInstance,
17736
- Mask: Mask,
17737
- get MemoryOperation () { return MemoryOperation; },
17738
- MemorySegment: MemorySegment,
17739
- NO_OF_REGISTERS: NO_OF_REGISTERS$1,
17740
- get NewServiceError () { return NewServiceError; },
17741
- NibblesDecoder: NibblesDecoder,
17742
- NoMachineError: NoMachineError,
17743
- OK: OK,
17744
- get PagesError () { return PagesError; },
17745
- PartiallyUpdatedState: PartiallyUpdatedState,
17746
- get PeekPokeError () { return PeekPokeError; },
17747
- PendingTransfer: PendingTransfer,
17748
- get PreimageStatusKind () { return PreimageStatusKind; },
17749
- Program: Program,
17750
- ProgramDecoder: ProgramDecoder,
17751
- get ProvidePreimageError () { return ProvidePreimageError; },
17752
- Pvm: DebuggerAdapter,
17753
- Registers: Registers,
17754
- get RequestPreimageError () { return RequestPreimageError; },
17755
- Result: Result$1,
17756
- SERVICE_ID_BYTES: SERVICE_ID_BYTES,
17757
- SegmentExportError: SegmentExportError,
17758
- SpiMemory: SpiMemory,
17759
- SpiProgram: SpiProgram,
17760
- TRANSFER_MEMO_BYTES: TRANSFER_MEMO_BYTES,
17761
- get TransferError () { return TransferError; },
17762
- UnprivilegedError: UnprivilegedError,
17763
- get UpdatePrivilegesError () { return UpdatePrivilegesError; },
17764
- WithDebug: WithDebug,
17765
- get ZeroVoidError () { return ZeroVoidError; },
17766
- asOpaqueType: asOpaqueType,
17767
- assertEmpty: assertEmpty,
17768
- assertNever: assertNever,
17769
- block: index$m,
17770
- bytes: index$t,
17771
- check: check,
17772
- clampU64ToU32: clampU64ToU32,
17773
- createResults: createResults,
17774
- decodeStandardProgram: decodeStandardProgram,
17775
- emptyRegistersBuffer: emptyRegistersBuffer,
17776
- extractCodeAndMetadata: extractCodeAndMetadata,
17777
- getServiceId: getServiceId,
17778
- getServiceIdOrCurrent: getServiceIdOrCurrent,
17779
- hash: index$p,
17780
- hostCallInfoAccount: codecServiceAccountInfoWithThresholdBalance,
17781
- inspect: inspect,
17782
- instructionArgumentTypeMap: instructionArgumentTypeMap,
17783
- interpreter: index$8,
17784
- isBrowser: isBrowser,
17785
- lazyInspect: lazyInspect,
17786
- measure: measure,
17787
- numbers: index$s,
17788
- resultToString: resultToString,
17789
- seeThrough: seeThrough,
17790
- slotsToPreimageStatus: slotsToPreimageStatus,
17791
- toMemoryOperation: toMemoryOperation,
17792
- tryAsMachineId: tryAsMachineId,
17793
- tryAsProgramCounter: tryAsProgramCounter,
17794
- writeServiceIdAsLeBytes: writeServiceIdAsLeBytes
17725
+ Pvm: DebuggerAdapter
17795
17726
  });
17796
17727
 
17797
17728
  const ENTROPY_BYTES = 32;
@@ -18065,12 +17996,12 @@ class JsonCoreStatistics {
18065
17996
  extrinsic_count: "number",
18066
17997
  bundle_size: "number",
18067
17998
  gas_used: json.fromBigInt(tryAsServiceGas),
18068
- }, ({ da_load, popularity, imports, exports, extrinsic_size, extrinsic_count, bundle_size, gas_used }) => {
17999
+ }, ({ da_load, popularity, imports, exports: exports$1, extrinsic_size, extrinsic_count, bundle_size, gas_used }) => {
18069
18000
  return CoreStatistics.create({
18070
18001
  dataAvailabilityLoad: da_load,
18071
18002
  popularity,
18072
18003
  imports,
18073
- exports,
18004
+ exports: exports$1,
18074
18005
  extrinsicSize: extrinsic_size,
18075
18006
  extrinsicCount: extrinsic_count,
18076
18007
  bundleSize: bundle_size,
@@ -18104,14 +18035,14 @@ class JsonServiceStatistics {
18104
18035
  on_transfers_gas_used: json.fromBigInt(tryAsServiceGas),
18105
18036
  }
18106
18037
  : {}),
18107
- }, ({ provided_count, provided_size, refinement_count, refinement_gas_used, imports, exports, extrinsic_size, extrinsic_count, accumulate_count, accumulate_gas_used, on_transfers_count, on_transfers_gas_used, }) => {
18038
+ }, ({ provided_count, provided_size, refinement_count, refinement_gas_used, imports, exports: exports$1, extrinsic_size, extrinsic_count, accumulate_count, accumulate_gas_used, on_transfers_count, on_transfers_gas_used, }) => {
18108
18039
  return ServiceStatistics.create({
18109
18040
  providedCount: provided_count,
18110
18041
  providedSize: provided_size,
18111
18042
  refinementCount: refinement_count,
18112
18043
  refinementGasUsed: refinement_gas_used,
18113
18044
  imports,
18114
- exports,
18045
+ exports: exports$1,
18115
18046
  extrinsicSize: extrinsic_size,
18116
18047
  extrinsicCount: extrinsic_count,
18117
18048
  accumulateCount: accumulate_count,
@@ -18319,11 +18250,9 @@ var index$1 = /*#__PURE__*/Object.freeze({
18319
18250
 
18320
18251
  /** Helper function to create most used hashes in the block */
18321
18252
  class TransitionHasher {
18322
- context;
18323
18253
  keccakHasher;
18324
18254
  blake2b;
18325
- constructor(context, keccakHasher, blake2b) {
18326
- this.context = context;
18255
+ constructor(keccakHasher, blake2b) {
18327
18256
  this.keccakHasher = keccakHasher;
18328
18257
  this.blake2b = blake2b;
18329
18258
  }