@typeberry/jam 0.0.4 → 0.0.5-6e657f4

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/index.js CHANGED
@@ -35765,6 +35765,7 @@ function legacyServiceNested(serviceId, hash) {
35765
35765
  ;// CONCATENATED MODULE: ./packages/jam/state/accumulation-output.ts
35766
35766
 
35767
35767
 
35768
+
35768
35769
  /**
35769
35770
  * Single service-indexed commitment to accumulation output
35770
35771
  *
@@ -35785,6 +35786,16 @@ class AccumulationOutput {
35785
35786
  this.output = output;
35786
35787
  }
35787
35788
  }
35789
+ function accumulationOutputComparator(a, b) {
35790
+ const result = a.serviceId - b.serviceId;
35791
+ if (result < 0) {
35792
+ return Ordering.Less;
35793
+ }
35794
+ if (result > 0) {
35795
+ return Ordering.Greater;
35796
+ }
35797
+ return Ordering.Equal;
35798
+ }
35788
35799
 
35789
35800
  ;// CONCATENATED MODULE: ./packages/jam/state/assurances.ts
35790
35801
 
@@ -36890,6 +36901,7 @@ class StatisticsData {
36890
36901
 
36891
36902
 
36892
36903
 
36904
+
36893
36905
 
36894
36906
  var in_memory_state_UpdateError;
36895
36907
  (function (UpdateError) {
@@ -37293,7 +37305,7 @@ class InMemoryState extends WithDebug {
37293
37305
  validatorsManager: common_tryAsServiceId(0),
37294
37306
  autoAccumulateServices: [],
37295
37307
  }),
37296
- accumulationOutputLog: [],
37308
+ accumulationOutputLog: SortedArray.fromArray(accumulationOutputComparator, []),
37297
37309
  services: new Map(),
37298
37310
  });
37299
37311
  }
@@ -37492,7 +37504,7 @@ var serialize;
37492
37504
  /** C(16): https://graypaper.fluffylabs.dev/#/38c4e62/3b46033b4603?v=0.7.0 */
37493
37505
  serialize.accumulationOutputLog = {
37494
37506
  key: stateKeys.index(StateKeyIdx.Theta),
37495
- Codec: descriptors_codec.sequenceVarLen(AccumulationOutput.Codec),
37507
+ Codec: descriptors_codec.sequenceVarLen(AccumulationOutput.Codec).convert((i) => i.array, (o) => SortedArray.fromSortedArray(accumulationOutputComparator, o)),
37496
37508
  extract: (s) => s.accumulationOutputLog,
37497
37509
  };
37498
37510
  /** C(255, s): https://graypaper.fluffylabs.dev/#/85129da/383103383103?v=0.6.3 */
@@ -57026,7 +57038,7 @@ async function startNetwork(config) {
57026
57038
  }
57027
57039
 
57028
57040
  ;// CONCATENATED MODULE: ./packages/jam/node/package.json
57029
- const package_namespaceObject = {"rE":"0.0.4"};
57041
+ const package_namespaceObject = {"rE":"0.0.5"};
57030
57042
  ;// CONCATENATED MODULE: ./packages/jam/node/main.ts
57031
57043
 
57032
57044
 
@@ -57293,7 +57305,7 @@ function readJsonBlock(file, chainSpec) {
57293
57305
  var minimist = __nccwpck_require__(8595);
57294
57306
  var minimist_default = /*#__PURE__*/__nccwpck_require__.n(minimist);
57295
57307
  ;// CONCATENATED MODULE: ./bin/jam/package.json
57296
- const jam_package_namespaceObject = {"rE":"0.0.4"};
57308
+ const jam_package_namespaceObject = {"rE":"0.0.5"};
57297
57309
  ;// CONCATENATED MODULE: ./bin/jam/args.ts
57298
57310
 
57299
57311