@typeberry/lib 0.5.6 → 0.5.7-a809a5e

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.
@@ -85,7 +85,7 @@ const DIST_DIR = path.resolve(ROOT_DIR, "dist/lib");
85
85
  * getVersion("0.5.1") // Returns "0.5.1"
86
86
  */
87
87
  function getVersion(baseVersion) {
88
- const isRelease = process.env.IS_RELEASE !== undefined;
88
+ const isRelease = Boolean(process.env.IS_RELEASE);
89
89
  if (isRelease) {
90
90
  return baseVersion;
91
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeberry/lib",
3
- "version": "0.5.6",
3
+ "version": "0.5.7-a809a5e",
4
4
  "description": "Typeberry Library",
5
5
  "main": "./bin/lib/index.js",
6
6
  "types": "./bin/lib/index.d.ts",
@@ -264,8 +264,10 @@
264
264
  "dependencies": {
265
265
  "@fluffylabs/anan-as": "^1.1.5",
266
266
  "@noble/ed25519": "2.2.3",
267
- "@typeberry/native": "0.0.4-4c0cd28",
268
- "hash-wasm": "4.12.0"
267
+ "hash-wasm": "4.12.0",
268
+ "@typeberry/native": "0.2.0-74dd7d7",
269
+ "eventemitter3": "^5.0.1",
270
+ "@opentelemetry/api": "1.9.0"
269
271
  },
270
272
  "repository": {
271
273
  "type": "git",
@@ -1,12 +1,12 @@
1
1
  import { metrics } from "@opentelemetry/api";
2
- import packageJson from "./package.json" with { type: "json" };
2
+ import { version } from "#@typeberry/utils";
3
3
  /**
4
4
  * Network metrics for JAM implementation.
5
5
  *
6
6
  * https://github.com/polkadot-fellows/JIPs/blob/main/JIP-3.md#networking-events
7
7
  */
8
8
  export function createMetrics() {
9
- const meter = metrics.getMeter(packageJson.name, packageJson.version);
9
+ const meter = metrics.getMeter("@typeberry/networking", version);
10
10
  const connectionDuration = meter.createHistogram("jam.connectionTime", {
11
11
  description: "Duration of connection to another peer",
12
12
  unit: "ms",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/telemetry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAQlD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,SAAS;aAoBgB,GAAG,EAAE,OAAO;IAnBhD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe;IAmBzC,OAAO;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/telemetry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAOlD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,SAAS;aAoBgB,GAAG,EAAE,OAAO;IAnBhD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe;IAmBzC,OAAO;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7B"}
@@ -5,8 +5,7 @@ import { PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics";
5
5
  import { NodeSDK } from "@opentelemetry/sdk-node";
6
6
  import { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from "@opentelemetry/semantic-conventions";
7
7
  import { Logger } from "#@typeberry/logger";
8
- import { env } from "#@typeberry/utils";
9
- import packageJson from "./package.json" with { type: "json" };
8
+ import { env, version } from "#@typeberry/utils";
10
9
  const logger = Logger.new(import.meta.filename, "tele");
11
10
  export class Telemetry {
12
11
  sdk;
@@ -14,7 +13,7 @@ export class Telemetry {
14
13
  const sdk = initializeTelemetry({
15
14
  isMain: config.isMain ?? false,
16
15
  serviceName: `typeberry-${config.nodeName}`,
17
- serviceVersion: packageJson.version,
16
+ serviceVersion: version,
18
17
  enabled: env.OTEL_ENABLED !== "false",
19
18
  otlpEndpoint: env.OTEL_EXPORTER_OTLP_ENDPOINT ?? "http://localhost:9090/api/v1/otlp",
20
19
  resourceAttributes: {
@@ -15,6 +15,7 @@ export * from "./debug.js";
15
15
  export * from "./dev.js";
16
16
  export * from "./env.js";
17
17
  export * from "./opaque.js";
18
+ export { name, version } from "./package.js";
18
19
  export * from "./result.js";
19
20
  export * from "./safe-alloc-uint8array.js";
20
21
  export * from "./test.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC"}
@@ -15,6 +15,7 @@ export * from "./debug.js";
15
15
  export * from "./dev.js";
16
16
  export * from "./env.js";
17
17
  export * from "./opaque.js";
18
+ export { name, version } from "./package.js";
18
19
  export * from "./result.js";
19
20
  export * from "./safe-alloc-uint8array.js";
20
21
  export * from "./test.js";
@@ -0,0 +1,3 @@
1
+ export declare const name: string;
2
+ export declare const version: string;
3
+ //# sourceMappingURL=package.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../../../../packages/core/utils/package.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,QAAW,CAAC;AAC7B,eAAO,MAAM,OAAO,QAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ // eslint-disable-next-line import/no-relative-packages
2
+ import pkg from "../../../package.json" with { type: "json" };
3
+ export const name = pkg.name;
4
+ export const version = pkg.version;
@@ -1 +1 @@
1
- {"version":3,"file":"main-fuzz.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/node/main-fuzz.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AAIF,wBAAgB,cAAc;;;;EAM7B;AAED,wBAAsB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,uBAoExF"}
1
+ {"version":3,"file":"main-fuzz.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/node/main-fuzz.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AAIF,wBAAgB,cAAc;;;;EAM7B;AAED,wBAAsB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,uBAoExF"}
@@ -6,15 +6,14 @@ import { startFuzzTarget } from "#@typeberry/ext-ipc";
6
6
  import { v1 as fuzzV1 } from "#@typeberry/fuzz-proto";
7
7
  import { HASH_SIZE } from "#@typeberry/hash";
8
8
  import { Logger } from "#@typeberry/logger";
9
- import { CURRENT_VERSION, Result } from "#@typeberry/utils";
9
+ import { CURRENT_VERSION, Result, version } from "#@typeberry/utils";
10
10
  import { getChainSpec } from "./common.js";
11
11
  import { mainImporter } from "./main-importer.js";
12
- import packageJson from "./package.json" with { type: "json" };
13
12
  const logger = Logger.new(import.meta.filename, "fuzztarget");
14
13
  export function getFuzzDetails() {
15
14
  return {
16
15
  nodeName: "@typeberry/jam",
17
- nodeVersion: fuzzV1.Version.tryFromString(packageJson.version),
16
+ nodeVersion: fuzzV1.Version.tryFromString(version),
18
17
  gpVersion: fuzzV1.Version.tryFromString(CURRENT_VERSION.split("-")[0]),
19
18
  };
20
19
  }
@@ -1,12 +1,10 @@
1
1
  import { describe, it } from "node:test";
2
2
  import { tryAsU8 } from "#@typeberry/numbers";
3
- import { CURRENT_VERSION, deepEqual } from "#@typeberry/utils";
4
- //eslint-disable-next-line import/no-relative-packages
5
- import pkg from "../../../package.json" with { type: "json" };
3
+ import { CURRENT_VERSION, deepEqual, version } from "#@typeberry/utils";
6
4
  import { getFuzzDetails } from "./main-fuzz.js";
7
5
  describe("fuzzing config", () => {
8
6
  it("should create config from current version", () => {
9
- const [m, i, p] = pkg.version.split(".").map((x) => Number.parseInt(x, 10));
7
+ const [m, i, p] = version.split(".").map((x) => Number.parseInt(x, 10));
10
8
  const [gpM, gpI, gpP] = CURRENT_VERSION.split(".").map((x) => Number.parseInt(x, 10));
11
9
  const fuzzDetails = getFuzzDetails();
12
10
  deepEqual(fuzzDetails, {
@@ -1 +1 @@
1
- {"version":3,"file":"main-importer.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/node/main-importer.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,MAAM,MAAM,eAAe,GAAG;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAClC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,OAAO,CAAC,CA+ElB"}
1
+ {"version":3,"file":"main-importer.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/node/main-importer.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,MAAM,MAAM,eAAe,GAAG;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAClC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,OAAO,CAAC,CA+ElB"}
@@ -3,15 +3,14 @@ import { PvmBackend } from "#@typeberry/config";
3
3
  import { bandersnatch, initWasm } from "#@typeberry/crypto";
4
4
  import { Blake2b, HASH_SIZE } from "#@typeberry/hash";
5
5
  import { createImporter } from "#@typeberry/importer";
6
- import { CURRENT_SUITE, CURRENT_VERSION, Result, resultToString } from "#@typeberry/utils";
6
+ import { CURRENT_SUITE, CURRENT_VERSION, Result, resultToString, version } from "#@typeberry/utils";
7
7
  import { InMemWorkerConfig, LmdbWorkerConfig } from "#@typeberry/workers-api-node";
8
8
  import { getChainSpec, getDatabasePath, initializeDatabase, logger } from "./common.js";
9
- import packageJson from "./package.json" with { type: "json" };
10
9
  const zeroHash = Bytes.zero(HASH_SIZE).asOpaque();
11
10
  export async function mainImporter(config, withRelPath, options = {}) {
12
11
  await initWasm();
13
12
  const bandesnatchNative = bandersnatch.checkNativeBindings();
14
- logger.info `🫐 Typeberry ${packageJson.version}. GP: ${CURRENT_VERSION} (${CURRENT_SUITE})`;
13
+ logger.info `🫐 Typeberry ${version}. GP: ${CURRENT_VERSION} (${CURRENT_SUITE})`;
15
14
  logger.info `🎸 Starting importer: ${config.nodeName}.`;
16
15
  logger.info `🖥️ PVM Backend: ${PvmBackend[config.pvmBackend]}.`;
17
16
  logger.info `🐇 Bandersnatch ${bandesnatchNative.isOk ? "native 🚀" : `using wasm: ${bandesnatchNative.error}`}`;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/node/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAc,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,mBAAmB,CAAC;AAe/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAkC,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAK1E,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,iBAAiB,CAAC;AAYhE,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAChE,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IACtE,oBAAoB,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB,CAAC;AAEF,wBAAsB,IAAI,CACxB,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAClC,SAAS,EAAE,SAAS,GAAG,IAAI,GAC1B,OAAO,CAAC,OAAO,CAAC,CAuJlB"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/node/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAc,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,mBAAmB,CAAC;AAe/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAkC,MAAM,EAAW,MAAM,kBAAkB,CAAC;AAKnF,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,iBAAiB,CAAC;AAWhE,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAChE,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IACtE,oBAAoB,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB,CAAC;AAEF,wBAAsB,IAAI,CACxB,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAClC,SAAS,EAAE,SAAS,GAAG,IAAI,GAC1B,OAAO,CAAC,OAAO,CAAC,CAuJlB"}
@@ -7,13 +7,12 @@ import { ImporterConfig } from "#@typeberry/importer";
7
7
  import { NetworkingConfig } from "#@typeberry/jam-network";
8
8
  import { Listener } from "#@typeberry/listener";
9
9
  import { tryAsU16, tryAsU32 } from "#@typeberry/numbers";
10
- import { CURRENT_SUITE, CURRENT_VERSION, Result } from "#@typeberry/utils";
10
+ import { CURRENT_SUITE, CURRENT_VERSION, Result, version } from "#@typeberry/utils";
11
11
  import { DirectWorkerConfig } from "#@typeberry/workers-api";
12
12
  import { InMemWorkerConfig, LmdbWorkerConfig } from "#@typeberry/workers-api-node";
13
13
  import { getChainSpec, getDatabasePath, initializeDatabase, logger } from "./common.js";
14
14
  import { initializeExtensions } from "./extensions.js";
15
15
  import * as metrics from "./metrics.js";
16
- import packageJson from "./package.json" with { type: "json" };
17
16
  import { spawnBlockGeneratorWorker, spawnImporterWorker, spawnNetworkWorker, startBlockGenerator, startImporterDirect, startNetwork, } from "./workers.js";
18
17
  export async function main(config, withRelPath, telemetry) {
19
18
  if (!isMainThread) {
@@ -21,7 +20,7 @@ export async function main(config, withRelPath, telemetry) {
21
20
  }
22
21
  await initWasm();
23
22
  const nodeMetrics = metrics.createMetrics();
24
- logger.info `🫐 Typeberry ${packageJson.version}. GP: ${CURRENT_VERSION} (${CURRENT_SUITE})`;
23
+ logger.info `🫐 Typeberry ${version}. GP: ${CURRENT_VERSION} (${CURRENT_SUITE})`;
25
24
  logger.info `🎸 Starting node: ${config.nodeName}.`;
26
25
  logger.info `🖥️ PVM Backend: ${PvmBackend[config.pvmBackend]}.`;
27
26
  const chainSpec = getChainSpec(config.node.flavor);
@@ -1,12 +1,12 @@
1
1
  import { metrics } from "@opentelemetry/api";
2
- import packageJson from "./package.json" with { type: "json" };
2
+ import { version } from "#@typeberry/utils";
3
3
  /**
4
4
  * Node-level metrics for JAM implementation.
5
5
  *
6
6
  * https://github.com/polkadot-fellows/JIPs/blob/main/JIP-3.md#status-events
7
7
  */
8
8
  export function createMetrics() {
9
- const meter = metrics.getMeter(packageJson.name, packageJson.version);
9
+ const meter = metrics.getMeter("@typeberry/node", version);
10
10
  // JIP-3
11
11
  // 11
12
12
  const bestBlockChangedCounter = meter.createCounter("jam.jip3.best_block_changed", {
@@ -1,12 +1,12 @@
1
1
  import { metrics } from "@opentelemetry/api";
2
- import packageJson from "./package.json" with { type: "json" };
2
+ import { version } from "#@typeberry/utils";
3
3
  /**
4
4
  * Block authoring metrics for JAM implementation.
5
5
  *
6
6
  * https://github.com/polkadot-fellows/JIPs/blob/main/JIP-3.md#block-authoringimporting-events
7
7
  */
8
8
  export function createMetrics() {
9
- const meter = metrics.getMeter(packageJson.name, packageJson.version);
9
+ const meter = metrics.getMeter("@typeberry/block-authorship", version);
10
10
  const blockAuthoringDuration = meter.createHistogram("jam.blockAuthoringTime", {
11
11
  description: "Duration of block authoring process",
12
12
  unit: "ms",
@@ -1,12 +1,12 @@
1
1
  import { metrics } from "@opentelemetry/api";
2
- import packageJson from "./package.json" with { type: "json" };
2
+ import { version } from "#@typeberry/utils";
3
3
  /**
4
4
  * Block importer metrics for JAM implementation.
5
5
  *
6
6
  * https://github.com/polkadot-fellows/JIPs/blob/main/JIP-3.md#block-authoringimporting-events
7
7
  */
8
8
  export function createMetrics() {
9
- const meter = metrics.getMeter(packageJson.name, packageJson.version);
9
+ const meter = metrics.getMeter("@typeberry/importer", version);
10
10
  const blockVerificationDuration = meter.createHistogram("jam.blockVerificationTime", {
11
11
  description: "Duration of block verification",
12
12
  unit: "ms",
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@typeberry/networking",
3
- "version": "0.5.6",
4
- "description": "QUIC-based p2p networking.",
5
- "license": "MPL-2.0",
6
- "author": "Fluffy Labs",
7
- "bin": "./bin/test.ts",
8
- "main": "index.ts",
9
- "type": "module",
10
- "scripts": {
11
- "start": "tsx ./bin/test.ts",
12
- "test": "tsx --test $(find . -type f -name '*.test.ts' | tr '\\n' ' ')"
13
- },
14
- "dependencies": {
15
- "@matrixai/quic": "2.0.9",
16
- "@opentelemetry/api": "1.9.0",
17
- "@peculiar/webcrypto": "1.5.0",
18
- "@peculiar/x509": "1.12.3",
19
- "@typeberry/bytes": "*",
20
- "@typeberry/config": "*",
21
- "@typeberry/crypto": "*",
22
- "@typeberry/logger": "*",
23
- "@typeberry/numbers": "*",
24
- "@typeberry/utils": "*"
25
- }
26
- }
@@ -1,19 +0,0 @@
1
- {
2
- "name": "@typeberry/telemetry",
3
- "version": "0.5.6",
4
- "description": "OpenTelemetry initialization utilities for Typeberry",
5
- "license": "MPL-2.0",
6
- "author": "Fluffy Labs",
7
- "main": "index.ts",
8
- "type": "module",
9
- "dependencies": {
10
- "@opentelemetry/auto-instrumentations-node": "^0.67.0",
11
- "@opentelemetry/exporter-metrics-otlp-http": "^0.208.0",
12
- "@opentelemetry/resources": "^2.2.0",
13
- "@opentelemetry/sdk-metrics": "^2.2.0",
14
- "@opentelemetry/sdk-node": "^0.208.0",
15
- "@opentelemetry/semantic-conventions": "^1.38.0",
16
- "@typeberry/logger": "*",
17
- "@typeberry/utils": "*"
18
- }
19
- }
@@ -1,39 +0,0 @@
1
- {
2
- "name": "@typeberry/node",
3
- "version": "0.5.6",
4
- "description": "The main typeberry node.",
5
- "main": "index.ts",
6
- "dependencies": {
7
- "@opentelemetry/api": "1.9.0",
8
- "@typeberry/block": "*",
9
- "@typeberry/block-authorship": "*",
10
- "@typeberry/block-json": "*",
11
- "@typeberry/bytes": "*",
12
- "@typeberry/codec": "*",
13
- "@typeberry/collections": "*",
14
- "@typeberry/config": "*",
15
- "@typeberry/config-node": "*",
16
- "@typeberry/configs": "*",
17
- "@typeberry/crypto": "*",
18
- "@typeberry/ext-ipc": "*",
19
- "@typeberry/fuzz-proto": "*",
20
- "@typeberry/hash": "*",
21
- "@typeberry/importer": "*",
22
- "@typeberry/jam-network": "*",
23
- "@typeberry/json-parser": "*",
24
- "@typeberry/listener": "*",
25
- "@typeberry/logger": "*",
26
- "@typeberry/numbers": "*",
27
- "@typeberry/state-json": "*",
28
- "@typeberry/state-merkleization": "*",
29
- "@typeberry/utils": "*",
30
- "@typeberry/workers-api": "*",
31
- "@typeberry/workers-api-node": "*"
32
- },
33
- "scripts": {
34
- "test": "tsx --test $(find . -type f -name '*.test.ts' | tr '\\n' ' ')"
35
- },
36
- "author": "Fluffy Labs",
37
- "license": "MPL-2.0",
38
- "type": "module"
39
- }
@@ -1,33 +0,0 @@
1
- {
2
- "name": "@typeberry/block-authorship",
3
- "version": "0.5.6",
4
- "description": "A test block generator simulating blocks received over the network.",
5
- "main": "index.ts",
6
- "dependencies": {
7
- "@opentelemetry/api": "^1.9.0",
8
- "@typeberry/block": "*",
9
- "@typeberry/bytes": "*",
10
- "@typeberry/codec": "*",
11
- "@typeberry/collections": "*",
12
- "@typeberry/config": "*",
13
- "@typeberry/crypto": "*",
14
- "@typeberry/database": "*",
15
- "@typeberry/hash": "*",
16
- "@typeberry/logger": "*",
17
- "@typeberry/numbers": "*",
18
- "@typeberry/safrole": "*",
19
- "@typeberry/state": "*",
20
- "@typeberry/state-merkleization": "*",
21
- "@typeberry/telemetry": "*",
22
- "@typeberry/transition": "*",
23
- "@typeberry/utils": "*",
24
- "@typeberry/workers-api": "*",
25
- "@typeberry/workers-api-node": "*"
26
- },
27
- "scripts": {
28
- "test": "tsx --test $(find . -type f -name '*.test.ts' | tr '\\n' ' ')"
29
- },
30
- "author": "Fluffy Labs",
31
- "license": "MPL-2.0",
32
- "type": "module"
33
- }
@@ -1,33 +0,0 @@
1
- {
2
- "name": "@typeberry/importer",
3
- "version": "0.5.6",
4
- "description": "A JAM block importer queue.",
5
- "main": "index.ts",
6
- "dependencies": {
7
- "@opentelemetry/api": "1.9.0",
8
- "@typeberry/block": "*",
9
- "@typeberry/bytes": "*",
10
- "@typeberry/codec": "*",
11
- "@typeberry/collections": "*",
12
- "@typeberry/config": "*",
13
- "@typeberry/config-node": "*",
14
- "@typeberry/crypto": "*",
15
- "@typeberry/database": "*",
16
- "@typeberry/hash": "*",
17
- "@typeberry/logger": "*",
18
- "@typeberry/numbers": "*",
19
- "@typeberry/ordering": "*",
20
- "@typeberry/state-merkleization": "*",
21
- "@typeberry/telemetry": "*",
22
- "@typeberry/transition": "*",
23
- "@typeberry/utils": "*",
24
- "@typeberry/workers-api": "*",
25
- "@typeberry/workers-api-node": "*"
26
- },
27
- "scripts": {
28
- "test": "tsx --test $(find . -type f -name '*.test.ts' | tr '\\n' ' ')"
29
- },
30
- "author": "Fluffy Labs",
31
- "license": "MPL-2.0",
32
- "type": "module"
33
- }