@typeberry/lib 0.5.0 → 0.5.1-31343a9

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 (122) hide show
  1. package/benchmarks/bytes/bytes-to-number.d.ts +6 -0
  2. package/benchmarks/bytes/compare.d.ts +6 -0
  3. package/benchmarks/bytes/hex-from.d.ts +1 -0
  4. package/benchmarks/bytes/hex-to.d.ts +1 -0
  5. package/benchmarks/codec/bigint.compare.d.ts +1 -0
  6. package/benchmarks/codec/bigint.decode.d.ts +1 -0
  7. package/benchmarks/codec/decoding.d.ts +1 -0
  8. package/benchmarks/codec/encoding.d.ts +1 -0
  9. package/benchmarks/codec/view_vs_collection.d.ts +1 -0
  10. package/benchmarks/codec/view_vs_object.d.ts +1 -0
  11. package/benchmarks/collections/hash-dict-vs-blob-dict_delete.d.ts +1 -0
  12. package/benchmarks/collections/hash-dict-vs-blob-dict_get.d.ts +1 -0
  13. package/benchmarks/collections/hash-dict-vs-blob-dict_set.d.ts +1 -0
  14. package/benchmarks/collections/map-set.d.ts +1 -0
  15. package/benchmarks/collections/map_vs_sorted.d.ts +1 -0
  16. package/benchmarks/crypto/ed25519.d.ts +1 -0
  17. package/benchmarks/hash/blake2b.d.ts +1 -0
  18. package/benchmarks/hash/index.d.ts +1 -0
  19. package/benchmarks/logger/index.d.ts +1 -0
  20. package/benchmarks/math/add_one_overflow.d.ts +1 -0
  21. package/benchmarks/math/count-bits-u32.d.ts +1 -0
  22. package/benchmarks/math/count-bits-u64.d.ts +2 -0
  23. package/benchmarks/math/mul_overflow.d.ts +1 -0
  24. package/benchmarks/math/switch.d.ts +1 -0
  25. package/block-json.cjs +1 -0
  26. package/block-json.d.ts +1 -0
  27. package/block-json.mjs +1 -0
  28. package/block.cjs +1 -0
  29. package/block.d.ts +1 -0
  30. package/block.mjs +1 -0
  31. package/bytes.cjs +1 -0
  32. package/bytes.d.ts +1 -0
  33. package/bytes.mjs +1 -0
  34. package/codec.cjs +1 -0
  35. package/codec.d.ts +1 -0
  36. package/codec.mjs +1 -0
  37. package/collections.cjs +1 -0
  38. package/collections.d.ts +1 -0
  39. package/collections.mjs +1 -0
  40. package/config-node.cjs +1 -0
  41. package/config-node.d.ts +1 -0
  42. package/config-node.mjs +1 -0
  43. package/config.cjs +1 -0
  44. package/config.d.ts +1 -0
  45. package/config.mjs +1 -0
  46. package/crypto.cjs +1 -0
  47. package/crypto.d.ts +1 -0
  48. package/crypto.mjs +1 -0
  49. package/database.cjs +1 -0
  50. package/database.d.ts +1 -0
  51. package/database.mjs +1 -0
  52. package/erasure-coding.cjs +1 -0
  53. package/erasure-coding.d.ts +1 -0
  54. package/erasure-coding.mjs +1 -0
  55. package/fuzz-proto.cjs +1 -0
  56. package/fuzz-proto.d.ts +1 -0
  57. package/fuzz-proto.mjs +1 -0
  58. package/hash.cjs +1 -0
  59. package/hash.d.ts +1 -0
  60. package/hash.mjs +1 -0
  61. package/importer.cjs +1 -0
  62. package/importer.d.ts +1 -0
  63. package/importer.mjs +1 -0
  64. package/index.cjs +389 -26727
  65. package/index.d.ts +1867 -1320
  66. package/index.mjs +450 -0
  67. package/jam-host-calls.cjs +1 -0
  68. package/jam-host-calls.d.ts +1 -0
  69. package/jam-host-calls.mjs +1 -0
  70. package/json-parser.cjs +1 -0
  71. package/json-parser.d.ts +1 -0
  72. package/json-parser.mjs +1 -0
  73. package/logger.cjs +1 -0
  74. package/logger.d.ts +1 -0
  75. package/logger.mjs +1 -0
  76. package/mmr.cjs +1 -0
  77. package/mmr.d.ts +1 -0
  78. package/mmr.mjs +1 -0
  79. package/numbers.cjs +1 -0
  80. package/numbers.d.ts +1 -0
  81. package/numbers.mjs +1 -0
  82. package/ordering.cjs +1 -0
  83. package/ordering.d.ts +1 -0
  84. package/ordering.mjs +1 -0
  85. package/package.json +160 -3
  86. package/pvm-host-calls.cjs +1 -0
  87. package/pvm-host-calls.d.ts +1 -0
  88. package/pvm-host-calls.mjs +1 -0
  89. package/pvm-interface.cjs +1 -0
  90. package/pvm-interface.d.ts +1 -0
  91. package/pvm-interface.mjs +1 -0
  92. package/pvm-interpreter.cjs +1 -0
  93. package/pvm-interpreter.d.ts +1 -0
  94. package/pvm-interpreter.mjs +1 -0
  95. package/shuffling.cjs +1 -0
  96. package/shuffling.d.ts +1 -0
  97. package/shuffling.mjs +1 -0
  98. package/state-json.cjs +1 -0
  99. package/state-json.d.ts +1 -0
  100. package/state-json.mjs +1 -0
  101. package/state-merkleization.cjs +1 -0
  102. package/state-merkleization.d.ts +1 -0
  103. package/state-merkleization.mjs +1 -0
  104. package/state-vectors.cjs +1 -0
  105. package/state-vectors.d.ts +1 -0
  106. package/state-vectors.mjs +1 -0
  107. package/state.cjs +1 -0
  108. package/state.d.ts +1 -0
  109. package/state.mjs +1 -0
  110. package/transition.cjs +1 -0
  111. package/transition.d.ts +1 -0
  112. package/transition.mjs +1 -0
  113. package/trie.cjs +1 -0
  114. package/trie.d.ts +1 -0
  115. package/trie.mjs +1 -0
  116. package/utils.cjs +1 -0
  117. package/utils.d.ts +1 -0
  118. package/utils.mjs +1 -0
  119. package/workers-api.cjs +1 -0
  120. package/workers-api.d.ts +1 -0
  121. package/workers-api.mjs +1 -0
  122. package/index.js +0 -26836
package/index.mjs ADDED
@@ -0,0 +1,450 @@
1
+ import * as block$1 from '@typeberry/block';
2
+ import * as blockJson$1 from '@typeberry/block-json';
3
+ import * as bytes$1 from '@typeberry/bytes';
4
+ import * as codec$1 from '@typeberry/codec';
5
+ import * as collections$1 from '@typeberry/collections';
6
+ import * as config$1 from '@typeberry/config';
7
+ import * as configNode$1 from '@typeberry/config-node';
8
+ import * as crypto$1 from '@typeberry/crypto';
9
+ import * as database$1 from '@typeberry/database';
10
+ import * as erasureCoding$1 from '@typeberry/erasure-coding';
11
+ import * as fuzzProto$1 from '@typeberry/fuzz-proto';
12
+ import * as hash$1 from '@typeberry/hash';
13
+ import * as importer$1 from '@typeberry/importer';
14
+ import * as jamHostCalls$1 from '@typeberry/jam-host-calls';
15
+ import * as jsonParser$1 from '@typeberry/json-parser';
16
+ import * as logger$1 from '@typeberry/logger';
17
+ import * as mmr$1 from '@typeberry/mmr';
18
+ import * as numbers$1 from '@typeberry/numbers';
19
+ import * as ordering$1 from '@typeberry/ordering';
20
+ import * as pvmHostCalls$1 from '@typeberry/pvm-host-calls';
21
+ import * as pvmInterface$1 from '@typeberry/pvm-interface';
22
+ import * as pvmInterpreter$1 from '@typeberry/pvm-interpreter';
23
+ import * as shuffling$1 from '@typeberry/shuffling';
24
+ import * as state$1 from '@typeberry/state';
25
+ import * as stateJson$1 from '@typeberry/state-json';
26
+ import * as stateMerkleization$1 from '@typeberry/state-merkleization';
27
+ import * as stateVectors$1 from '@typeberry/state-vectors';
28
+ import * as transition$1 from '@typeberry/transition';
29
+ import * as trie$1 from '@typeberry/trie';
30
+ import * as utils$1 from '@typeberry/utils';
31
+ import * as workersApi$1 from '@typeberry/workers-api';
32
+
33
+ function _mergeNamespaces(n, m) {
34
+ m.forEach(function (e) {
35
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
36
+ if (k !== 'default' && !(k in n)) {
37
+ var d = Object.getOwnPropertyDescriptor(e, k);
38
+ Object.defineProperty(n, k, d.get ? d : {
39
+ enumerable: true,
40
+ get: function () { return e[k]; }
41
+ });
42
+ }
43
+ });
44
+ });
45
+ return Object.freeze(n);
46
+ }
47
+
48
+ /**
49
+ * Block structures and types for JAM protocol.
50
+ *
51
+ * This module provides the core block data structures used in the JAM protocol,
52
+ * including block headers, bodies, and related types.
53
+ *
54
+ * @module block
55
+ */
56
+
57
+ var block = /*#__PURE__*/_mergeNamespaces({
58
+ __proto__: null
59
+ }, [block$1]);
60
+
61
+ /**
62
+ * JSON serialization and deserialization for block structures.
63
+ *
64
+ * This module provides utilities for converting JAM block structures to and from
65
+ * JSON format, useful for debugging, logging, and data interchange.
66
+ *
67
+ * @module block-json
68
+ */
69
+
70
+ var blockJson = /*#__PURE__*/_mergeNamespaces({
71
+ __proto__: null
72
+ }, [blockJson$1]);
73
+
74
+ /**
75
+ * Byte array utilities and operations.
76
+ *
77
+ * This module provides utilities for working with byte arrays, including
78
+ * conversions, comparisons, and manipulations of binary data.
79
+ *
80
+ * @module bytes
81
+ */
82
+
83
+ var bytes = /*#__PURE__*/_mergeNamespaces({
84
+ __proto__: null
85
+ }, [bytes$1]);
86
+
87
+ /**
88
+ * JAM/GP codec implementation for encoding and decoding data.
89
+ *
90
+ * This module provides the JAM/GP codec used throughout the
91
+ * JAM protocol for efficient binary serialization.
92
+ *
93
+ * @module codec
94
+ */
95
+
96
+ var codec = /*#__PURE__*/_mergeNamespaces({
97
+ __proto__: null
98
+ }, [codec$1]);
99
+
100
+ /**
101
+ * Specialized data structures and collections.
102
+ *
103
+ * This module provides custom data structures optimized for JAM protocol operations,
104
+ * including specialized maps, sets, and other collection types.
105
+ *
106
+ * @module collections
107
+ */
108
+
109
+ var collections = /*#__PURE__*/_mergeNamespaces({
110
+ __proto__: null
111
+ }, [collections$1]);
112
+
113
+ /**
114
+ * Configuration types and constants for JAM protocol.
115
+ *
116
+ * This module defines the core configuration parameters, constants, and types
117
+ * used throughout the JAM protocol implementation.
118
+ *
119
+ * @module config
120
+ */
121
+
122
+ var config = /*#__PURE__*/_mergeNamespaces({
123
+ __proto__: null
124
+ }, [config$1]);
125
+
126
+ /**
127
+ * Node-specific configuration utilities.
128
+ *
129
+ * This module provides configuration utilities specific to Node.js environments,
130
+ * including environment variable handling and runtime configuration.
131
+ *
132
+ * @module config-node
133
+ */
134
+
135
+ var configNode = /*#__PURE__*/_mergeNamespaces({
136
+ __proto__: null
137
+ }, [configNode$1]);
138
+
139
+ /**
140
+ * Cryptographic primitives and operations.
141
+ *
142
+ * This module provides cryptographic functionality including Ed25519, Sr25519,
143
+ * and BLS signature schemes, key generation, and signing operations.
144
+ *
145
+ * @module crypto
146
+ */
147
+
148
+ var crypto = /*#__PURE__*/_mergeNamespaces({
149
+ __proto__: null
150
+ }, [crypto$1]);
151
+
152
+ /**
153
+ * Database abstractions and storage interfaces.
154
+ *
155
+ * This module provides database interfaces and abstractions for persistent storage,
156
+ * supporting various backend implementations.
157
+ *
158
+ * @module database
159
+ */
160
+
161
+ var database = /*#__PURE__*/_mergeNamespaces({
162
+ __proto__: null
163
+ }, [database$1]);
164
+
165
+ /**
166
+ * Erasure coding implementation for data availability.
167
+ *
168
+ * This module provides erasure coding functionality used in JAM's data availability
169
+ * system, enabling data reconstruction from partial information.
170
+ *
171
+ * @module erasure-coding
172
+ */
173
+
174
+ var erasureCoding = /*#__PURE__*/_mergeNamespaces({
175
+ __proto__: null
176
+ }, [erasureCoding$1]);
177
+
178
+ /**
179
+ * Fuzzing protocol support and utilities.
180
+ *
181
+ * This module provides utilities and types for protocol fuzzing and testing,
182
+ * helping ensure robustness of the JAM implementation.
183
+ *
184
+ * @module fuzz-proto
185
+ */
186
+
187
+ var fuzzProto = /*#__PURE__*/_mergeNamespaces({
188
+ __proto__: null
189
+ }, [fuzzProto$1]);
190
+
191
+ /**
192
+ * Hashing functions and utilities.
193
+ *
194
+ * This module provides cryptographic hash functions including Blake2b and other
195
+ * hashing algorithms used throughout the JAM protocol.
196
+ *
197
+ * @module hash
198
+ */
199
+
200
+ var hash = /*#__PURE__*/_mergeNamespaces({
201
+ __proto__: null
202
+ }, [hash$1]);
203
+
204
+ /**
205
+ * JAM block importer utilities.
206
+ *
207
+ * This is the main module implementing JAM blocks importing.
208
+ *
209
+ * @module importer
210
+ */
211
+
212
+ var importer = /*#__PURE__*/_mergeNamespaces({
213
+ __proto__: null
214
+ }, [importer$1]);
215
+
216
+ /**
217
+ * JAM-specific host call implementations.
218
+ *
219
+ * This module provides the host call interface implementations specific to JAM,
220
+ * enabling communication between the host and guest environments.
221
+ *
222
+ * @module jam-host-calls
223
+ */
224
+
225
+ var jamHostCalls = /*#__PURE__*/_mergeNamespaces({
226
+ __proto__: null
227
+ }, [jamHostCalls$1]);
228
+
229
+ /**
230
+ * JSON parsing utilities and helpers.
231
+ *
232
+ * This module provides enhanced JSON parsing capabilities with support for
233
+ * JAM-specific data types and structures.
234
+ *
235
+ * @module json-parser
236
+ */
237
+
238
+ var jsonParser = /*#__PURE__*/_mergeNamespaces({
239
+ __proto__: null
240
+ }, [jsonParser$1]);
241
+
242
+ /**
243
+ * Logging framework and utilities.
244
+ *
245
+ * This module provides a structured logging framework with support for different
246
+ * log levels, formatting, and output targets.
247
+ *
248
+ * @module logger
249
+ */
250
+
251
+ var logger = /*#__PURE__*/_mergeNamespaces({
252
+ __proto__: null
253
+ }, [logger$1]);
254
+
255
+ /**
256
+ * Merkle Mountain Range implementation.
257
+ *
258
+ * This module provides an implementation of Merkle Mountain Range (MMR),
259
+ * a data structure for efficient append-only Merkle tree operations.
260
+ *
261
+ * @module mmr
262
+ */
263
+
264
+ var mmr = /*#__PURE__*/_mergeNamespaces({
265
+ __proto__: null
266
+ }, [mmr$1]);
267
+
268
+ /**
269
+ * Fixed-size numeric types and operations.
270
+ *
271
+ * This module provides fixed-size integer types (U8, U16, U32, U64, etc.) and
272
+ * operations, ensuring consistent numeric behavior across platforms.
273
+ *
274
+ * @module numbers
275
+ */
276
+
277
+ var numbers = /*#__PURE__*/_mergeNamespaces({
278
+ __proto__: null
279
+ }, [numbers$1]);
280
+
281
+ /**
282
+ * Ordering and comparison utilities.
283
+ *
284
+ * This module provides utilities for ordering, sorting, and comparing values
285
+ * with support for custom comparison logic.
286
+ *
287
+ * @module ordering
288
+ */
289
+
290
+ var ordering = /*#__PURE__*/_mergeNamespaces({
291
+ __proto__: null
292
+ }, [ordering$1]);
293
+
294
+ /**
295
+ * PVM host call implementations.
296
+ *
297
+ * This module provides the Polka Virtual Machine (PVM) host call interface,
298
+ * enabling guest programs to interact with the host environment.
299
+ *
300
+ * @module pvm-host-calls
301
+ */
302
+
303
+ var pvmHostCalls = /*#__PURE__*/_mergeNamespaces({
304
+ __proto__: null
305
+ }, [pvmHostCalls$1]);
306
+
307
+ /**
308
+ * PVM interface and program utilities.
309
+ *
310
+ * This module provides the core PVM interface definitions, program structures,
311
+ * and utilities for working with PVM bytecode.
312
+ *
313
+ * @module pvm-interface
314
+ */
315
+
316
+ var pvmInterface = /*#__PURE__*/_mergeNamespaces({
317
+ __proto__: null
318
+ }, [pvmInterface$1]);
319
+
320
+ /**
321
+ * Typeberry PVM interpreter.
322
+ *
323
+ * This module provides the Polka Virtual Machine interpreter that executes
324
+ * PVM bytecode with support for all standard PVM operations.
325
+ *
326
+ * @module pvm-interpreter
327
+ */
328
+
329
+ var pvmInterpreter = /*#__PURE__*/_mergeNamespaces({
330
+ __proto__: null
331
+ }, [pvmInterpreter$1]);
332
+
333
+ /**
334
+ * Shuffling algorithms and utilities.
335
+ *
336
+ * This module provides deterministic shuffling algorithms used for validator
337
+ * selection and other randomization needs in the JAM protocol.
338
+ *
339
+ * @module shuffling
340
+ */
341
+
342
+ var shuffling = /*#__PURE__*/_mergeNamespaces({
343
+ __proto__: null
344
+ }, [shuffling$1]);
345
+
346
+ /**
347
+ * State management and data structures.
348
+ *
349
+ * This module provides the core state management functionality for JAM,
350
+ * including state types, transitions, and persistence operations.
351
+ *
352
+ * @module state
353
+ */
354
+
355
+ var state = /*#__PURE__*/_mergeNamespaces({
356
+ __proto__: null
357
+ }, [state$1]);
358
+
359
+ /**
360
+ * JSON serialization for state structures.
361
+ *
362
+ * This module provides utilities for converting JAM state structures to and from
363
+ * JSON format for debugging, testing, and data interchange.
364
+ *
365
+ * @module state-json
366
+ */
367
+
368
+ var stateJson = /*#__PURE__*/_mergeNamespaces({
369
+ __proto__: null
370
+ }, [stateJson$1]);
371
+
372
+ /**
373
+ * State Merkleization and proof generation.
374
+ *
375
+ * This module provides functionality for computing Merkle roots of state data
376
+ * and generating/verifying Merkle proofs.
377
+ *
378
+ * @module state-merkleization
379
+ */
380
+
381
+ var stateMerkleization = /*#__PURE__*/_mergeNamespaces({
382
+ __proto__: null
383
+ }, [stateMerkleization$1]);
384
+
385
+ /**
386
+ * State test vectors and fixtures.
387
+ *
388
+ * This module provides test vectors and fixtures for validating state
389
+ * operations and ensuring conformance with the JAM specification.
390
+ *
391
+ * @module state-vectors
392
+ */
393
+
394
+ var stateVectors = /*#__PURE__*/_mergeNamespaces({
395
+ __proto__: null
396
+ }, [stateVectors$1]);
397
+
398
+ /**
399
+ * State transition functions and logic.
400
+ *
401
+ * This module provides the state transition functions that define how JAM state
402
+ * evolves in response to blocks, extrinsics, and other events.
403
+ *
404
+ * @module transition
405
+ */
406
+
407
+ var transition = /*#__PURE__*/_mergeNamespaces({
408
+ __proto__: null
409
+ }, [transition$1]);
410
+
411
+ /**
412
+ * Trie data structures and operations.
413
+ *
414
+ * This module provides trie (prefix tree) data structures used for efficient
415
+ * key-value storage and Merkle proof generation.
416
+ *
417
+ * @module trie
418
+ */
419
+
420
+ var trie = /*#__PURE__*/_mergeNamespaces({
421
+ __proto__: null
422
+ }, [trie$1]);
423
+
424
+ /**
425
+ * General utility functions and helpers.
426
+ *
427
+ * This module provides a collection of general-purpose utility functions,
428
+ * type helpers, and common operations used throughout Typeberry.
429
+ *
430
+ * @module utils
431
+ */
432
+
433
+ var utils = /*#__PURE__*/_mergeNamespaces({
434
+ __proto__: null
435
+ }, [utils$1]);
436
+
437
+ /**
438
+ * Workers API and multi-threading utilities.
439
+ *
440
+ * This module provides the Workers API for parallel processing and multi-threading,
441
+ * enabling efficient utilization of system resources.
442
+ *
443
+ * @module workers-api
444
+ */
445
+
446
+ var workersApi = /*#__PURE__*/_mergeNamespaces({
447
+ __proto__: null
448
+ }, [workersApi$1]);
449
+
450
+ export { block, blockJson as block_json, bytes, codec, collections, config, configNode as config_node, crypto, database, erasureCoding as erasure_coding, fuzzProto as fuzz_proto, hash, jamHostCalls as jam_host_calls, jsonParser as json_parser, logger, mmr, numbers, ordering, pvmInterface as pvm, pvmHostCalls as pvm_host_calls, pvmInterpreter as pvm_interpreter, shuffling, state, stateJson as state_json, stateMerkleization as state_merkleization, stateVectors as state_vectors, transition, trie, importer as typeberry, utils, workersApi as workers };
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/jam-host-calls");
@@ -0,0 +1 @@
1
+ export * from "@typeberry/jam-host-calls";
@@ -0,0 +1 @@
1
+ export * from "@typeberry/jam-host-calls";
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/json-parser");
@@ -0,0 +1 @@
1
+ export * from "@typeberry/json-parser";
@@ -0,0 +1 @@
1
+ export * from "@typeberry/json-parser";
package/logger.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/logger");
package/logger.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/logger";
package/logger.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/logger";
package/mmr.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/mmr");
package/mmr.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/mmr";
package/mmr.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/mmr";
package/numbers.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/numbers");
package/numbers.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/numbers";
package/numbers.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/numbers";
package/ordering.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/ordering");
package/ordering.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/ordering";
package/ordering.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "@typeberry/ordering";
package/package.json CHANGED
@@ -1,14 +1,171 @@
1
1
  {
2
2
  "name": "@typeberry/lib",
3
- "version": "0.5.0",
4
- "main": "index.js",
3
+ "version": "0.5.1-31343a9",
4
+ "main": "index.cjs",
5
+ "types": "index.d.ts",
5
6
  "author": "Fluffy Labs",
6
7
  "license": "MPL-2.0",
7
8
  "sideEffects": false,
8
9
  "exports": {
9
10
  ".": {
10
- "import": "./index.js",
11
+ "types": "./index.d.ts",
12
+ "import": "./index.mjs",
11
13
  "require": "./index.cjs"
14
+ },
15
+ "./block": {
16
+ "types": "./block.d.ts",
17
+ "import": "./block.mjs",
18
+ "require": "./block.cjs"
19
+ },
20
+ "./block-json": {
21
+ "types": "./block-json.d.ts",
22
+ "import": "./block-json.mjs",
23
+ "require": "./block-json.cjs"
24
+ },
25
+ "./bytes": {
26
+ "types": "./bytes.d.ts",
27
+ "import": "./bytes.mjs",
28
+ "require": "./bytes.cjs"
29
+ },
30
+ "./codec": {
31
+ "types": "./codec.d.ts",
32
+ "import": "./codec.mjs",
33
+ "require": "./codec.cjs"
34
+ },
35
+ "./collections": {
36
+ "types": "./collections.d.ts",
37
+ "import": "./collections.mjs",
38
+ "require": "./collections.cjs"
39
+ },
40
+ "./config": {
41
+ "types": "./config.d.ts",
42
+ "import": "./config.mjs",
43
+ "require": "./config.cjs"
44
+ },
45
+ "./config-node": {
46
+ "types": "./config-node.d.ts",
47
+ "import": "./config-node.mjs",
48
+ "require": "./config-node.cjs"
49
+ },
50
+ "./crypto": {
51
+ "types": "./crypto.d.ts",
52
+ "import": "./crypto.mjs",
53
+ "require": "./crypto.cjs"
54
+ },
55
+ "./database": {
56
+ "types": "./database.d.ts",
57
+ "import": "./database.mjs",
58
+ "require": "./database.cjs"
59
+ },
60
+ "./erasure-coding": {
61
+ "types": "./erasure-coding.d.ts",
62
+ "import": "./erasure-coding.mjs",
63
+ "require": "./erasure-coding.cjs"
64
+ },
65
+ "./fuzz-proto": {
66
+ "types": "./fuzz-proto.d.ts",
67
+ "import": "./fuzz-proto.mjs",
68
+ "require": "./fuzz-proto.cjs"
69
+ },
70
+ "./hash": {
71
+ "types": "./hash.d.ts",
72
+ "import": "./hash.mjs",
73
+ "require": "./hash.cjs"
74
+ },
75
+ "./importer": {
76
+ "types": "./importer.d.ts",
77
+ "import": "./importer.mjs",
78
+ "require": "./importer.cjs"
79
+ },
80
+ "./jam-host-calls": {
81
+ "types": "./jam-host-calls.d.ts",
82
+ "import": "./jam-host-calls.mjs",
83
+ "require": "./jam-host-calls.cjs"
84
+ },
85
+ "./json-parser": {
86
+ "types": "./json-parser.d.ts",
87
+ "import": "./json-parser.mjs",
88
+ "require": "./json-parser.cjs"
89
+ },
90
+ "./logger": {
91
+ "types": "./logger.d.ts",
92
+ "import": "./logger.mjs",
93
+ "require": "./logger.cjs"
94
+ },
95
+ "./mmr": {
96
+ "types": "./mmr.d.ts",
97
+ "import": "./mmr.mjs",
98
+ "require": "./mmr.cjs"
99
+ },
100
+ "./numbers": {
101
+ "types": "./numbers.d.ts",
102
+ "import": "./numbers.mjs",
103
+ "require": "./numbers.cjs"
104
+ },
105
+ "./ordering": {
106
+ "types": "./ordering.d.ts",
107
+ "import": "./ordering.mjs",
108
+ "require": "./ordering.cjs"
109
+ },
110
+ "./pvm-host-calls": {
111
+ "types": "./pvm-host-calls.d.ts",
112
+ "import": "./pvm-host-calls.mjs",
113
+ "require": "./pvm-host-calls.cjs"
114
+ },
115
+ "./pvm-interface": {
116
+ "types": "./pvm-interface.d.ts",
117
+ "import": "./pvm-interface.mjs",
118
+ "require": "./pvm-interface.cjs"
119
+ },
120
+ "./pvm-interpreter": {
121
+ "types": "./pvm-interpreter.d.ts",
122
+ "import": "./pvm-interpreter.mjs",
123
+ "require": "./pvm-interpreter.cjs"
124
+ },
125
+ "./shuffling": {
126
+ "types": "./shuffling.d.ts",
127
+ "import": "./shuffling.mjs",
128
+ "require": "./shuffling.cjs"
129
+ },
130
+ "./state": {
131
+ "types": "./state.d.ts",
132
+ "import": "./state.mjs",
133
+ "require": "./state.cjs"
134
+ },
135
+ "./state-json": {
136
+ "types": "./state-json.d.ts",
137
+ "import": "./state-json.mjs",
138
+ "require": "./state-json.cjs"
139
+ },
140
+ "./state-merkleization": {
141
+ "types": "./state-merkleization.d.ts",
142
+ "import": "./state-merkleization.mjs",
143
+ "require": "./state-merkleization.cjs"
144
+ },
145
+ "./state-vectors": {
146
+ "types": "./state-vectors.d.ts",
147
+ "import": "./state-vectors.mjs",
148
+ "require": "./state-vectors.cjs"
149
+ },
150
+ "./transition": {
151
+ "types": "./transition.d.ts",
152
+ "import": "./transition.mjs",
153
+ "require": "./transition.cjs"
154
+ },
155
+ "./trie": {
156
+ "types": "./trie.d.ts",
157
+ "import": "./trie.mjs",
158
+ "require": "./trie.cjs"
159
+ },
160
+ "./utils": {
161
+ "types": "./utils.d.ts",
162
+ "import": "./utils.mjs",
163
+ "require": "./utils.cjs"
164
+ },
165
+ "./workers-api": {
166
+ "types": "./workers-api.d.ts",
167
+ "import": "./workers-api.mjs",
168
+ "require": "./workers-api.cjs"
12
169
  }
13
170
  }
14
171
  }
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/pvm-host-calls");
@@ -0,0 +1 @@
1
+ export * from "@typeberry/pvm-host-calls";
@@ -0,0 +1 @@
1
+ export * from "@typeberry/pvm-host-calls";
@@ -0,0 +1 @@
1
+ module.exports = require("@typeberry/pvm-interface");