@typeberry/jam 0.2.0-c96e8ef → 0.2.0-eae807e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,8 +14,8 @@ Gray Paper compliance can be controlled via `GP_VERSION` environment variable.
14
14
 
15
15
  - [x] 0.6.7
16
16
  - [x] 0.7.0
17
- - [ ] 0.7.1 (partial)
18
- - [ ] 0.7.2 (partial)
17
+ - [x] 0.7.1
18
+ - [x] 0.7.2
19
19
 
20
20
  JAM Prize requirements
21
21
 
@@ -75,7 +75,7 @@ $ docker run typeberry
75
75
  $ docker run typeberry --config /app/configs/typeberry-dev.json --node-name my-node
76
76
 
77
77
  # Run with environment variables (e.g., for logging)
78
- $ docker run -e JAM_LOG=trace GP_VERSION=0.7.0 typeberry
78
+ $ docker run -e JAM_LOG=trace GP_VERSION=0.7.2 typeberry
79
79
 
80
80
  # Run with volume mounts for persistent data
81
81
  $ docker run -v $(pwd)/database:/app/database typeberry
@@ -2869,44 +2869,40 @@ var GpVersion;
2869
2869
  GpVersion["V0_6_7"] = "0.6.7";
2870
2870
  GpVersion["V0_7_0"] = "0.7.0";
2871
2871
  GpVersion["V0_7_1"] = "0.7.1";
2872
- GpVersion["V0_7_2"] = "0.7.2-preview";
2872
+ GpVersion["V0_7_2"] = "0.7.2";
2873
2873
  })(GpVersion || (GpVersion = {}));
2874
2874
  var TestSuite;
2875
2875
  (function (TestSuite) {
2876
2876
  TestSuite["W3F_DAVXY"] = "w3f-davxy";
2877
2877
  TestSuite["JAMDUNA"] = "jamduna";
2878
2878
  })(TestSuite || (TestSuite = {}));
2879
+ const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1, GpVersion.V0_7_2];
2879
2880
  const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
2880
- const DEFAULT_VERSION = GpVersion.V0_7_1;
2881
+ const DEFAULT_VERSION = GpVersion.V0_7_2;
2881
2882
  const env = typeof process === "undefined" ? {} : process.env;
2882
2883
  let CURRENT_VERSION = parseCurrentVersion(env.GP_VERSION) ?? DEFAULT_VERSION;
2883
2884
  let CURRENT_SUITE = parseCurrentSuite(env.TEST_SUITE) ?? DEFAULT_SUITE;
2884
- const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1, GpVersion.V0_7_2];
2885
2885
  function parseCurrentVersion(env) {
2886
2886
  if (env === undefined) {
2887
2887
  return undefined;
2888
2888
  }
2889
- switch (env) {
2890
- case GpVersion.V0_6_7:
2891
- case GpVersion.V0_7_0:
2892
- case GpVersion.V0_7_1:
2893
- case GpVersion.V0_7_2:
2894
- return env;
2895
- default:
2896
- throw new Error(`Configured environment variable GP_VERSION is unknown: '${env}'. Use one of: ${ALL_VERSIONS_IN_ORDER}`);
2889
+ for (const v of Object.values(GpVersion)) {
2890
+ if (env === v) {
2891
+ return v;
2892
+ }
2897
2893
  }
2894
+ throw new Error(`Configured environment variable GP_VERSION is unknown: '${env}'. Use one of: ${ALL_VERSIONS_IN_ORDER}`);
2898
2895
  }
2899
2896
  function parseCurrentSuite(env) {
2900
2897
  if (env === undefined) {
2901
2898
  return undefined;
2902
2899
  }
2903
- switch (env) {
2904
- case TestSuite.W3F_DAVXY:
2905
- case TestSuite.JAMDUNA:
2906
- return env;
2907
- default:
2908
- throw new Error(`Configured environment variable TEST_SUITE is unknown: '${env}'. Use one of: ${Object.values(TestSuite)}`);
2900
+ for (const s of Object.values(TestSuite)) {
2901
+ if (env === s) {
2902
+ return s;
2903
+ }
2909
2904
  }
2905
+ throw new Error(`Configured environment variable TEST_SUITE is unknown: '${env}'. Use one of: ${Object.values(TestSuite)}`);
2910
2906
  }
2911
2907
  class Compatibility {
2912
2908
  static override(version) {
@@ -7453,10 +7449,23 @@ const fullChainSpec = new ChainSpec({
7453
7449
  maxLookupAnchorAge: numbers_tryAsU32(14_400),
7454
7450
  });
7455
7451
 
7452
+ ;// CONCATENATED MODULE: ./packages/jam/config/pvm-backend.ts
7453
+ /** Implemented PVM Backends names in THE SAME ORDER as enum. */
7454
+ const PvmBackendNames = (/* unused pure expression or super */ null && (["built-in", "ananas"]));
7455
+ /** Implemented PVM Backends to choose from. */
7456
+ var PvmBackend;
7457
+ (function (PvmBackend) {
7458
+ /** Built-in aka. Typeberry 🫐 interpreter. */
7459
+ PvmBackend[PvmBackend["BuiltIn"] = 0] = "BuiltIn";
7460
+ /** Ananas 🍍 interpreter. */
7461
+ PvmBackend[PvmBackend["Ananas"] = 1] = "Ananas";
7462
+ })(PvmBackend || (PvmBackend = {}));
7463
+
7456
7464
  ;// CONCATENATED MODULE: ./packages/jam/config/index.ts
7457
7465
 
7458
7466
 
7459
7467
 
7468
+
7460
7469
  ;// CONCATENATED MODULE: ./packages/jam/block/codec.ts
7461
7470
 
7462
7471