@typeberry/lib 0.0.5-1ef0e31 → 0.0.5-6197992

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 (5) hide show
  1. package/configs/index.d.ts +30 -28
  2. package/index.cjs +17453 -0
  3. package/index.d.ts +448 -421
  4. package/index.js +820 -834
  5. package/package.json +9 -2
package/index.d.ts CHANGED
@@ -4474,6 +4474,9 @@ declare namespace bandersnatch_d_exports {
4474
4474
  }
4475
4475
  /* tslint:disable */
4476
4476
  /* eslint-disable */
4477
+ /**
4478
+ * Generate ring commitment given concatenation of ring keys.
4479
+ */
4477
4480
  declare function ring_commitment(keys: Uint8Array): Uint8Array;
4478
4481
  /**
4479
4482
  * Derive Private and Public Key from Seed
@@ -4487,21 +4490,21 @@ declare function derive_public_key(seed: Uint8Array): Uint8Array;
4487
4490
  * or
4488
4491
  * https://graypaper.fluffylabs.dev/#/68eaa1f/0e54010e5401?v=0.6.4
4489
4492
  */
4490
- declare function verify_seal(keys: Uint8Array, signer_key_index: number, seal_data: Uint8Array, payload: Uint8Array, aux_data: Uint8Array): Uint8Array;
4493
+ declare function verify_seal(signer_key: Uint8Array, seal_data: Uint8Array, payload: Uint8Array, aux_data: Uint8Array): Uint8Array;
4491
4494
  /**
4492
4495
  * Verify multiple tickets at once as defined in:
4493
4496
  * https://graypaper.fluffylabs.dev/#/68eaa1f/0f3e000f3e00?v=0.6.4
4494
4497
  *
4495
4498
  * NOTE: the aux_data of VRF function is empty!
4496
4499
  */
4497
- declare function batch_verify_tickets(keys: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
4500
+ declare function batch_verify_tickets(ring_size: number, commitment: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
4498
4501
  type InitInput$2 = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
4499
4502
  interface InitOutput$2 {
4500
4503
  readonly memory: WebAssembly.Memory;
4501
4504
  readonly ring_commitment: (a: number, b: number) => [number, number];
4502
4505
  readonly derive_public_key: (a: number, b: number) => [number, number];
4503
- readonly verify_seal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
4504
- readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number) => [number, number];
4506
+ readonly verify_seal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
4507
+ readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
4505
4508
  readonly __wbindgen_export_0: WebAssembly.Table;
4506
4509
  readonly __wbindgen_malloc: (a: number, b: number) => number;
4507
4510
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -7852,6 +7855,173 @@ declare class JipChainSpec extends WithDebug {
7852
7855
  }
7853
7856
  }
7854
7857
 
7858
+ declare enum Level {
7859
+ INSANE = 1,
7860
+ TRACE = 2,
7861
+ LOG = 3,
7862
+ INFO = 4,
7863
+ WARN = 5,
7864
+ ERROR = 6,
7865
+ }
7866
+
7867
+ type Options = {
7868
+ defaultLevel: Level;
7869
+ workingDir: string;
7870
+ modules: Map<string, Level>;
7871
+ };
7872
+
7873
+ /**
7874
+ * A function to parse logger definition (including modules) given as a string.
7875
+ *
7876
+ * Examples
7877
+ * - `info` - setup default logging level to `info`.
7878
+ * - `trace` - default logging level set to `trace`.
7879
+ * - `debug;consensus=trace` - default level is set to `debug/log`, but consensus is in trace mode.
7880
+ */
7881
+ declare function parseLoggerOptions(input: string, defaultLevel: Level, workingDir?: string): Options {
7882
+ const modules = new Map<string, Level>();
7883
+ const parts = input.toLowerCase().split(",");
7884
+ let defLevel = defaultLevel;
7885
+
7886
+ for (const p of parts) {
7887
+ const clean = p.trim();
7888
+ // skip empty objects (forgotten `,` removed)
7889
+ if (clean.length === 0) {
7890
+ continue;
7891
+ }
7892
+ // we just have the default level
7893
+ if (clean.includes("=")) {
7894
+ const [mod, lvl] = clean.split("=");
7895
+ modules.set(mod.trim(), parseLevel(lvl.trim()));
7896
+ } else {
7897
+ defLevel = parseLevel(clean);
7898
+ }
7899
+ }
7900
+
7901
+ // TODO [ToDr] Fix dirname for workers.
7902
+ const myDir = (import.meta.dirname ?? "").split("/");
7903
+ myDir.pop();
7904
+ myDir.pop();
7905
+ return {
7906
+ defaultLevel: defLevel,
7907
+ modules,
7908
+ workingDir: workingDir ?? myDir.join("/"),
7909
+ };
7910
+ }
7911
+
7912
+ declare const GLOBAL_CONFIG = {
7913
+ options: DEFAULT_OPTIONS,
7914
+ transport: ConsoleTransport.create(DEFAULT_OPTIONS.defaultLevel, DEFAULT_OPTIONS),
7915
+ };
7916
+
7917
+ /**
7918
+ * A logger instance.
7919
+ */
7920
+ declare class Logger {
7921
+ /**
7922
+ * Create a new logger instance given filename and an optional module name.
7923
+ *
7924
+ * If the module name is not given, `fileName` becomes the module name.
7925
+ * The module name can be composed from multiple parts separated with `/`.
7926
+ *
7927
+ * The logger will use a global configuration which can be changed using
7928
+ * [`configureLogger`] function.
7929
+ */
7930
+ static new(fileName?: string, moduleName?: string) {
7931
+ const fName = fileName ?? "unknown";
7932
+ const module = moduleName ?? fName;
7933
+ return new Logger(module.padStart(8, " "), GLOBAL_CONFIG);
7934
+ }
7935
+
7936
+ /**
7937
+ * Return currently configured level for given module. */
7938
+ static getLevel(moduleName: string): Level {
7939
+ return findLevel(GLOBAL_CONFIG.options, moduleName);
7940
+ }
7941
+
7942
+ /**
7943
+ * Global configuration of all loggers.
7944
+ *
7945
+ * One can specify a default logging level (only logs with level >= default will be printed).
7946
+ * It's also possible to configure per-module logging level that takes precedence
7947
+ * over the default one.
7948
+ *
7949
+ * Changing the options affects all previously created loggers.
7950
+ */
7951
+ static configureAllFromOptions(options: Options) {
7952
+ // find minimal level to optimise logging in case
7953
+ // we don't care about low-level logs.
7954
+ const minimalLevel = Array.from(options.modules.values()).reduce((level, modLevel) => {
7955
+ return level < modLevel ? level : modLevel;
7956
+ }, options.defaultLevel);
7957
+
7958
+ const transport = ConsoleTransport.create(minimalLevel, options);
7959
+
7960
+ // set the global config
7961
+ GLOBAL_CONFIG.options = options;
7962
+ GLOBAL_CONFIG.transport = transport;
7963
+ }
7964
+
7965
+ /**
7966
+ * Global configuration of all loggers.
7967
+ *
7968
+ * Parse configuration options from an input string typically obtained
7969
+ * from environment variable `JAM_LOG`.
7970
+ */
7971
+ static configureAll(input: string, defaultLevel: Level, workingDir?: string) {
7972
+ const options = parseLoggerOptions(input, defaultLevel, workingDir);
7973
+ Logger.configureAllFromOptions(options);
7974
+ }
7975
+
7976
+ private constructor(
7977
+ private readonly moduleName: string,
7978
+ private readonly config: typeof GLOBAL_CONFIG,
7979
+ ) {}
7980
+
7981
+ /** Log a message with `INSANE` level. */
7982
+ insane(val: string) {
7983
+ this.config.transport.insane(this.moduleName, val);
7984
+ }
7985
+
7986
+ /** Log a message with `TRACE` level. */
7987
+ trace(val: string) {
7988
+ this.config.transport.trace(this.moduleName, val);
7989
+ }
7990
+
7991
+ /** Log a message with `DEBUG`/`LOG` level. */
7992
+ log(val: string) {
7993
+ this.config.transport.log(this.moduleName, val);
7994
+ }
7995
+
7996
+ /** Log a message with `INFO` level. */
7997
+ info(val: string) {
7998
+ this.config.transport.info(this.moduleName, val);
7999
+ }
8000
+
8001
+ /** Log a message with `WARN` level. */
8002
+ warn(val: string) {
8003
+ this.config.transport.warn(this.moduleName, val);
8004
+ }
8005
+
8006
+ /** Log a message with `ERROR` level. */
8007
+ error(val: string) {
8008
+ this.config.transport.error(this.moduleName, val);
8009
+ }
8010
+ }
8011
+
8012
+ type index$g_Level = Level;
8013
+ declare const index$g_Level: typeof Level;
8014
+ type index$g_Logger = Logger;
8015
+ declare const index$g_Logger: typeof Logger;
8016
+ declare const index$g_parseLoggerOptions: typeof parseLoggerOptions;
8017
+ declare namespace index$g {
8018
+ export {
8019
+ index$g_Level as Level,
8020
+ index$g_Logger as Logger,
8021
+ index$g_parseLoggerOptions as parseLoggerOptions,
8022
+ };
8023
+ }
8024
+
7855
8025
  /** Block authorship options. */
7856
8026
  declare class AuthorshipOptions {
7857
8027
  static fromJson = json.object<JsonObject<AuthorshipOptions>, AuthorshipOptions>(
@@ -7871,6 +8041,8 @@ declare class AuthorshipOptions {
7871
8041
  ) {}
7872
8042
  }
7873
8043
 
8044
+ declare const logger$1 = Logger.new(import.meta.filename, "config");
8045
+
7874
8046
  /** Development config. Will accept unsealed blocks for now. */
7875
8047
  declare const DEV_CONFIG = "dev";
7876
8048
  /** Default config file. */
@@ -7932,14 +8104,17 @@ declare class NodeConfiguration {
7932
8104
 
7933
8105
  declare function loadConfig(configPath: string): NodeConfiguration {
7934
8106
  if (configPath === DEFAULT_CONFIG) {
8107
+ logger.log("🔧 Loading DEFAULT config");
7935
8108
  return parseFromJson(configs.default, NodeConfiguration.fromJson);
7936
8109
  }
7937
8110
 
7938
8111
  if (configPath === DEV_CONFIG) {
8112
+ logger.log("🔧 Loading DEV config");
7939
8113
  return parseFromJson(configs.dev, NodeConfiguration.fromJson);
7940
8114
  }
7941
8115
 
7942
8116
  try {
8117
+ logger.log(`🔧 Loading config from ${configPath}`);
7943
8118
  const configFile = fs.readFileSync(configPath, "utf8");
7944
8119
  const parsed = JSON.parse(configFile);
7945
8120
  return parseFromJson(parsed, NodeConfiguration.fromJson);
@@ -7948,29 +8123,30 @@ declare function loadConfig(configPath: string): NodeConfiguration {
7948
8123
  }
7949
8124
  }
7950
8125
 
7951
- declare const index$g_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
7952
- declare const index$g_DEV_CONFIG: typeof DEV_CONFIG;
7953
- type index$g_JipChainSpec = JipChainSpec;
7954
- declare const index$g_JipChainSpec: typeof JipChainSpec;
7955
- type index$g_KnownChainSpec = KnownChainSpec;
7956
- declare const index$g_KnownChainSpec: typeof KnownChainSpec;
7957
- declare const index$g_NODE_DEFAULTS: typeof NODE_DEFAULTS;
7958
- type index$g_NodeConfiguration = NodeConfiguration;
7959
- declare const index$g_NodeConfiguration: typeof NodeConfiguration;
7960
- declare const index$g_knownChainSpecFromJson: typeof knownChainSpecFromJson;
7961
- declare const index$g_loadConfig: typeof loadConfig;
7962
- declare const index$g_parseBootnode: typeof parseBootnode;
7963
- declare namespace index$g {
8126
+ declare const index$f_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
8127
+ declare const index$f_DEV_CONFIG: typeof DEV_CONFIG;
8128
+ type index$f_JipChainSpec = JipChainSpec;
8129
+ declare const index$f_JipChainSpec: typeof JipChainSpec;
8130
+ type index$f_KnownChainSpec = KnownChainSpec;
8131
+ declare const index$f_KnownChainSpec: typeof KnownChainSpec;
8132
+ declare const index$f_NODE_DEFAULTS: typeof NODE_DEFAULTS;
8133
+ type index$f_NodeConfiguration = NodeConfiguration;
8134
+ declare const index$f_NodeConfiguration: typeof NodeConfiguration;
8135
+ declare const index$f_knownChainSpecFromJson: typeof knownChainSpecFromJson;
8136
+ declare const index$f_loadConfig: typeof loadConfig;
8137
+ declare const index$f_parseBootnode: typeof parseBootnode;
8138
+ declare namespace index$f {
7964
8139
  export {
7965
- index$g_DEFAULT_CONFIG as DEFAULT_CONFIG,
7966
- index$g_DEV_CONFIG as DEV_CONFIG,
7967
- index$g_JipChainSpec as JipChainSpec,
7968
- index$g_KnownChainSpec as KnownChainSpec,
7969
- index$g_NODE_DEFAULTS as NODE_DEFAULTS,
7970
- index$g_NodeConfiguration as NodeConfiguration,
7971
- index$g_knownChainSpecFromJson as knownChainSpecFromJson,
7972
- index$g_loadConfig as loadConfig,
7973
- index$g_parseBootnode as parseBootnode,
8140
+ index$f_DEFAULT_CONFIG as DEFAULT_CONFIG,
8141
+ index$f_DEV_CONFIG as DEV_CONFIG,
8142
+ index$f_JipChainSpec as JipChainSpec,
8143
+ index$f_KnownChainSpec as KnownChainSpec,
8144
+ index$f_NODE_DEFAULTS as NODE_DEFAULTS,
8145
+ index$f_NodeConfiguration as NodeConfiguration,
8146
+ index$f_knownChainSpecFromJson as knownChainSpecFromJson,
8147
+ index$f_loadConfig as loadConfig,
8148
+ logger$1 as logger,
8149
+ index$f_parseBootnode as parseBootnode,
7974
8150
  };
7975
8151
  }
7976
8152
 
@@ -8654,40 +8830,40 @@ declare function trieStringify(root: TrieNode | null, nodes: NodesDb): string {
8654
8830
  return `\nLeaf('${leaf.getKey().toString()}',${value})`;
8655
8831
  }
8656
8832
 
8657
- type index$f_BranchNode = BranchNode;
8658
- declare const index$f_BranchNode: typeof BranchNode;
8659
- type index$f_InMemoryTrie = InMemoryTrie;
8660
- declare const index$f_InMemoryTrie: typeof InMemoryTrie;
8661
- type index$f_InputKey = InputKey;
8662
- type index$f_LeafNode = LeafNode;
8663
- declare const index$f_LeafNode: typeof LeafNode;
8664
- type index$f_NodeType = NodeType;
8665
- declare const index$f_NodeType: typeof NodeType;
8666
- type index$f_NodesDb = NodesDb;
8667
- declare const index$f_NodesDb: typeof NodesDb;
8668
- declare const index$f_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
8669
- declare const index$f_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
8670
- type index$f_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
8671
- type index$f_TraversedPath = TraversedPath;
8672
- declare const index$f_TraversedPath: typeof TraversedPath;
8673
- type index$f_TrieHasher = TrieHasher;
8674
- type index$f_TrieNode = TrieNode;
8675
- declare const index$f_TrieNode: typeof TrieNode;
8676
- type index$f_TrieNodeHash = TrieNodeHash;
8677
- type index$f_TruncatedStateKey = TruncatedStateKey;
8678
- type index$f_ValueHash = ValueHash;
8679
- type index$f_WriteableNodesDb = WriteableNodesDb;
8680
- declare const index$f_WriteableNodesDb: typeof WriteableNodesDb;
8681
- declare const index$f_createSubtreeForBothLeaves: typeof createSubtreeForBothLeaves;
8682
- declare const index$f_findNodeToReplace: typeof findNodeToReplace;
8683
- declare const index$f_getBit: typeof getBit;
8684
- declare const index$f_leafComparator: typeof leafComparator;
8685
- declare const index$f_parseInputKey: typeof parseInputKey;
8686
- declare const index$f_trieInsert: typeof trieInsert;
8687
- declare const index$f_trieStringify: typeof trieStringify;
8688
- declare namespace index$f {
8689
- export { index$f_BranchNode as BranchNode, index$f_InMemoryTrie as InMemoryTrie, index$f_LeafNode as LeafNode, index$f_NodeType as NodeType, index$f_NodesDb as NodesDb, index$f_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$f_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$f_TraversedPath as TraversedPath, index$f_TrieNode as TrieNode, index$f_WriteableNodesDb as WriteableNodesDb, index$f_createSubtreeForBothLeaves as createSubtreeForBothLeaves, index$f_findNodeToReplace as findNodeToReplace, index$f_getBit as getBit, index$f_leafComparator as leafComparator, index$f_parseInputKey as parseInputKey, index$f_trieInsert as trieInsert, index$f_trieStringify as trieStringify };
8690
- export type { index$f_InputKey as InputKey, StateKey$1 as StateKey, index$f_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$f_TrieHasher as TrieHasher, index$f_TrieNodeHash as TrieNodeHash, index$f_TruncatedStateKey as TruncatedStateKey, index$f_ValueHash as ValueHash };
8833
+ type index$e_BranchNode = BranchNode;
8834
+ declare const index$e_BranchNode: typeof BranchNode;
8835
+ type index$e_InMemoryTrie = InMemoryTrie;
8836
+ declare const index$e_InMemoryTrie: typeof InMemoryTrie;
8837
+ type index$e_InputKey = InputKey;
8838
+ type index$e_LeafNode = LeafNode;
8839
+ declare const index$e_LeafNode: typeof LeafNode;
8840
+ type index$e_NodeType = NodeType;
8841
+ declare const index$e_NodeType: typeof NodeType;
8842
+ type index$e_NodesDb = NodesDb;
8843
+ declare const index$e_NodesDb: typeof NodesDb;
8844
+ declare const index$e_TRIE_NODE_BYTES: typeof TRIE_NODE_BYTES;
8845
+ declare const index$e_TRUNCATED_KEY_BITS: typeof TRUNCATED_KEY_BITS;
8846
+ type index$e_TRUNCATED_KEY_BYTES = TRUNCATED_KEY_BYTES;
8847
+ type index$e_TraversedPath = TraversedPath;
8848
+ declare const index$e_TraversedPath: typeof TraversedPath;
8849
+ type index$e_TrieHasher = TrieHasher;
8850
+ type index$e_TrieNode = TrieNode;
8851
+ declare const index$e_TrieNode: typeof TrieNode;
8852
+ type index$e_TrieNodeHash = TrieNodeHash;
8853
+ type index$e_TruncatedStateKey = TruncatedStateKey;
8854
+ type index$e_ValueHash = ValueHash;
8855
+ type index$e_WriteableNodesDb = WriteableNodesDb;
8856
+ declare const index$e_WriteableNodesDb: typeof WriteableNodesDb;
8857
+ declare const index$e_createSubtreeForBothLeaves: typeof createSubtreeForBothLeaves;
8858
+ declare const index$e_findNodeToReplace: typeof findNodeToReplace;
8859
+ declare const index$e_getBit: typeof getBit;
8860
+ declare const index$e_leafComparator: typeof leafComparator;
8861
+ declare const index$e_parseInputKey: typeof parseInputKey;
8862
+ declare const index$e_trieInsert: typeof trieInsert;
8863
+ declare const index$e_trieStringify: typeof trieStringify;
8864
+ declare namespace index$e {
8865
+ export { index$e_BranchNode as BranchNode, index$e_InMemoryTrie as InMemoryTrie, index$e_LeafNode as LeafNode, index$e_NodeType as NodeType, index$e_NodesDb as NodesDb, index$e_TRIE_NODE_BYTES as TRIE_NODE_BYTES, index$e_TRUNCATED_KEY_BITS as TRUNCATED_KEY_BITS, index$e_TraversedPath as TraversedPath, index$e_TrieNode as TrieNode, index$e_WriteableNodesDb as WriteableNodesDb, index$e_createSubtreeForBothLeaves as createSubtreeForBothLeaves, index$e_findNodeToReplace as findNodeToReplace, index$e_getBit as getBit, index$e_leafComparator as leafComparator, index$e_parseInputKey as parseInputKey, index$e_trieInsert as trieInsert, index$e_trieStringify as trieStringify };
8866
+ export type { index$e_InputKey as InputKey, StateKey$1 as StateKey, index$e_TRUNCATED_KEY_BYTES as TRUNCATED_KEY_BYTES, index$e_TrieHasher as TrieHasher, index$e_TrieNodeHash as TrieNodeHash, index$e_TruncatedStateKey as TruncatedStateKey, index$e_ValueHash as ValueHash };
8691
8867
  }
8692
8868
 
8693
8869
  /**
@@ -8743,6 +8919,20 @@ declare class AccumulationOutput {
8743
8919
  ) {}
8744
8920
  }
8745
8921
 
8922
+ declare function accumulationOutputComparator(a: AccumulationOutput, b: AccumulationOutput) {
8923
+ const result = a.serviceId - b.serviceId;
8924
+
8925
+ if (result < 0) {
8926
+ return Ordering.Less;
8927
+ }
8928
+
8929
+ if (result > 0) {
8930
+ return Ordering.Greater;
8931
+ }
8932
+
8933
+ return Ordering.Equal;
8934
+ }
8935
+
8746
8936
  declare const codecWithHash = <T, V, H extends OpaqueHash>(val: Descriptor<T, V>): Descriptor<WithHash<H, T>, V> =>
8747
8937
  Descriptor.withView(
8748
8938
  val.name,
@@ -9115,16 +9305,16 @@ declare class Mountain<H extends OpaqueHash> {
9115
9305
  }
9116
9306
  }
9117
9307
 
9118
- type index$e_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
9119
- declare const index$e_MerkleMountainRange: typeof MerkleMountainRange;
9120
- type index$e_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
9121
- type index$e_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
9122
- type index$e_Mountain<H extends OpaqueHash> = Mountain<H>;
9123
- declare const index$e_Mountain: typeof Mountain;
9124
- declare const index$e_SUPER_PEAK_STRING: typeof SUPER_PEAK_STRING;
9125
- declare namespace index$e {
9126
- export { index$e_MerkleMountainRange as MerkleMountainRange, index$e_Mountain as Mountain, index$e_SUPER_PEAK_STRING as SUPER_PEAK_STRING };
9127
- export type { index$e_MmrHasher as MmrHasher, index$e_MmrPeaks as MmrPeaks };
9308
+ type index$d_MerkleMountainRange<H extends OpaqueHash> = MerkleMountainRange<H>;
9309
+ declare const index$d_MerkleMountainRange: typeof MerkleMountainRange;
9310
+ type index$d_MmrHasher<H extends OpaqueHash> = MmrHasher<H>;
9311
+ type index$d_MmrPeaks<H extends OpaqueHash> = MmrPeaks<H>;
9312
+ type index$d_Mountain<H extends OpaqueHash> = Mountain<H>;
9313
+ declare const index$d_Mountain: typeof Mountain;
9314
+ declare const index$d_SUPER_PEAK_STRING: typeof SUPER_PEAK_STRING;
9315
+ declare namespace index$d {
9316
+ export { index$d_MerkleMountainRange as MerkleMountainRange, index$d_Mountain as Mountain, index$d_SUPER_PEAK_STRING as SUPER_PEAK_STRING };
9317
+ export type { index$d_MmrHasher as MmrHasher, index$d_MmrPeaks as MmrPeaks };
9128
9318
  }
9129
9319
 
9130
9320
  /**
@@ -10043,7 +10233,7 @@ type State = {
10043
10233
  *
10044
10234
  * NOTE Maximum size of this array is unspecified in GP
10045
10235
  */
10046
- readonly accumulationOutputLog: AccumulationOutput[];
10236
+ readonly accumulationOutputLog: SortedArray<AccumulationOutput>;
10047
10237
 
10048
10238
  /**
10049
10239
  * Retrieve details about single service.
@@ -10631,7 +10821,7 @@ declare class InMemoryState extends WithDebug implements State, EnumerableState
10631
10821
  sealingKeySeries: SafroleSealingKeys;
10632
10822
  epochRoot: BandersnatchRingRoot;
10633
10823
  privilegedServices: PrivilegedServices;
10634
- accumulationOutputLog: AccumulationOutput[];
10824
+ accumulationOutputLog: SortedArray<AccumulationOutput>;
10635
10825
  services: Map<ServiceId, InMemoryService>;
10636
10826
 
10637
10827
  recentServiceIds(): readonly ServiceId[] {
@@ -10775,7 +10965,7 @@ declare class InMemoryState extends WithDebug implements State, EnumerableState
10775
10965
  validatorsManager: tryAsServiceId(0),
10776
10966
  autoAccumulateServices: [],
10777
10967
  }),
10778
- accumulationOutputLog: [],
10968
+ accumulationOutputLog: SortedArray.fromArray(accumulationOutputComparator, []),
10779
10969
  services: new Map(),
10780
10970
  });
10781
10971
  }
@@ -10822,102 +11012,103 @@ type FieldNames<T> = {
10822
11012
  [K in keyof T]: T[K] extends Function ? never : K;
10823
11013
  }[keyof T];
10824
11014
 
10825
- type index$d_AccumulationOutput = AccumulationOutput;
10826
- declare const index$d_AccumulationOutput: typeof AccumulationOutput;
10827
- type index$d_AutoAccumulate = AutoAccumulate;
10828
- declare const index$d_AutoAccumulate: typeof AutoAccumulate;
10829
- type index$d_AvailabilityAssignment = AvailabilityAssignment;
10830
- declare const index$d_AvailabilityAssignment: typeof AvailabilityAssignment;
10831
- declare const index$d_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
10832
- type index$d_BlockState = BlockState;
10833
- declare const index$d_BlockState: typeof BlockState;
10834
- type index$d_BlocksState = BlocksState;
10835
- type index$d_CoreStatistics = CoreStatistics;
10836
- declare const index$d_CoreStatistics: typeof CoreStatistics;
10837
- type index$d_DisputesRecords = DisputesRecords;
10838
- declare const index$d_DisputesRecords: typeof DisputesRecords;
10839
- declare const index$d_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
10840
- declare const index$d_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
10841
- type index$d_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
10842
- type index$d_EnumerableState = EnumerableState;
10843
- type index$d_FieldNames<T> = FieldNames<T>;
10844
- type index$d_InMemoryService = InMemoryService;
10845
- declare const index$d_InMemoryService: typeof InMemoryService;
10846
- type index$d_InMemoryState = InMemoryState;
10847
- declare const index$d_InMemoryState: typeof InMemoryState;
10848
- type index$d_InMemoryStateFields = InMemoryStateFields;
10849
- type index$d_LookupHistoryItem = LookupHistoryItem;
10850
- declare const index$d_LookupHistoryItem: typeof LookupHistoryItem;
10851
- type index$d_LookupHistorySlots = LookupHistorySlots;
10852
- declare const index$d_MAX_LOOKUP_HISTORY_SLOTS: typeof MAX_LOOKUP_HISTORY_SLOTS;
10853
- type index$d_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
10854
- type index$d_PerCore<T> = PerCore<T>;
10855
- type index$d_PreimageItem = PreimageItem;
10856
- declare const index$d_PreimageItem: typeof PreimageItem;
10857
- type index$d_PrivilegedServices = PrivilegedServices;
10858
- declare const index$d_PrivilegedServices: typeof PrivilegedServices;
10859
- type index$d_RecentBlocks = RecentBlocks;
10860
- declare const index$d_RecentBlocks: typeof RecentBlocks;
10861
- type index$d_RecentBlocksHistory = RecentBlocksHistory;
10862
- declare const index$d_RecentBlocksHistory: typeof RecentBlocksHistory;
10863
- type index$d_SafroleData = SafroleData;
10864
- declare const index$d_SafroleData: typeof SafroleData;
10865
- type index$d_SafroleSealingKeys = SafroleSealingKeys;
10866
- type index$d_SafroleSealingKeysData = SafroleSealingKeysData;
10867
- declare const index$d_SafroleSealingKeysData: typeof SafroleSealingKeysData;
10868
- type index$d_SafroleSealingKeysKind = SafroleSealingKeysKind;
10869
- declare const index$d_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
10870
- type index$d_Service = Service;
10871
- type index$d_ServiceAccountInfo = ServiceAccountInfo;
10872
- declare const index$d_ServiceAccountInfo: typeof ServiceAccountInfo;
10873
- type index$d_ServiceData = ServiceData;
10874
- type index$d_ServiceEntries = ServiceEntries;
10875
- type index$d_ServiceStatistics = ServiceStatistics;
10876
- declare const index$d_ServiceStatistics: typeof ServiceStatistics;
10877
- type index$d_ServicesUpdate = ServicesUpdate;
10878
- type index$d_State = State;
10879
- type index$d_StatisticsData = StatisticsData;
10880
- declare const index$d_StatisticsData: typeof StatisticsData;
10881
- type index$d_StorageItem = StorageItem;
10882
- declare const index$d_StorageItem: typeof StorageItem;
10883
- type index$d_StorageKey = StorageKey;
10884
- type index$d_UpdateError = UpdateError;
10885
- declare const index$d_UpdateError: typeof UpdateError;
10886
- type index$d_UpdatePreimage = UpdatePreimage;
10887
- declare const index$d_UpdatePreimage: typeof UpdatePreimage;
10888
- type index$d_UpdatePreimageKind = UpdatePreimageKind;
10889
- declare const index$d_UpdatePreimageKind: typeof UpdatePreimageKind;
10890
- type index$d_UpdateService = UpdateService;
10891
- declare const index$d_UpdateService: typeof UpdateService;
10892
- type index$d_UpdateServiceKind = UpdateServiceKind;
10893
- declare const index$d_UpdateServiceKind: typeof UpdateServiceKind;
10894
- type index$d_UpdateStorage = UpdateStorage;
10895
- declare const index$d_UpdateStorage: typeof UpdateStorage;
10896
- type index$d_UpdateStorageKind = UpdateStorageKind;
10897
- declare const index$d_UpdateStorageKind: typeof UpdateStorageKind;
10898
- type index$d_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
10899
- type index$d_ValidatorData = ValidatorData;
10900
- declare const index$d_ValidatorData: typeof ValidatorData;
10901
- type index$d_ValidatorStatistics = ValidatorStatistics;
10902
- declare const index$d_ValidatorStatistics: typeof ValidatorStatistics;
10903
- declare const index$d_codecBandersnatchKey: typeof codecBandersnatchKey;
10904
- declare const index$d_codecPerCore: typeof codecPerCore;
10905
- declare const index$d_codecServiceId: typeof codecServiceId;
10906
- declare const index$d_codecVarGas: typeof codecVarGas;
10907
- declare const index$d_codecVarU16: typeof codecVarU16;
10908
- declare const index$d_codecWithHash: typeof codecWithHash;
10909
- declare const index$d_hashComparator: typeof hashComparator;
10910
- declare const index$d_ignoreValueWithDefault: typeof ignoreValueWithDefault;
10911
- declare const index$d_serviceDataCodec: typeof serviceDataCodec;
10912
- declare const index$d_serviceEntriesCodec: typeof serviceEntriesCodec;
10913
- declare const index$d_sortedSetCodec: typeof sortedSetCodec;
10914
- declare const index$d_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
10915
- declare const index$d_tryAsPerCore: typeof tryAsPerCore;
10916
- declare const index$d_workReportsSortedSetCodec: typeof workReportsSortedSetCodec;
10917
- declare const index$d_zeroSizeHint: typeof zeroSizeHint;
10918
- declare namespace index$d {
10919
- export { index$d_AccumulationOutput as AccumulationOutput, index$d_AutoAccumulate as AutoAccumulate, index$d_AvailabilityAssignment as AvailabilityAssignment, index$d_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$d_BlockState as BlockState, index$d_CoreStatistics as CoreStatistics, index$d_DisputesRecords as DisputesRecords, index$d_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$d_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$d_InMemoryService as InMemoryService, index$d_InMemoryState as InMemoryState, index$d_LookupHistoryItem as LookupHistoryItem, index$d_MAX_LOOKUP_HISTORY_SLOTS as MAX_LOOKUP_HISTORY_SLOTS, index$d_PreimageItem as PreimageItem, index$d_PrivilegedServices as PrivilegedServices, index$d_RecentBlocks as RecentBlocks, index$d_RecentBlocksHistory as RecentBlocksHistory, index$d_SafroleData as SafroleData, index$d_SafroleSealingKeysData as SafroleSealingKeysData, index$d_SafroleSealingKeysKind as SafroleSealingKeysKind, index$d_ServiceAccountInfo as ServiceAccountInfo, index$d_ServiceStatistics as ServiceStatistics, index$d_StatisticsData as StatisticsData, index$d_StorageItem as StorageItem, index$d_UpdateError as UpdateError, index$d_UpdatePreimage as UpdatePreimage, index$d_UpdatePreimageKind as UpdatePreimageKind, index$d_UpdateService as UpdateService, index$d_UpdateServiceKind as UpdateServiceKind, index$d_UpdateStorage as UpdateStorage, index$d_UpdateStorageKind as UpdateStorageKind, index$d_ValidatorData as ValidatorData, index$d_ValidatorStatistics as ValidatorStatistics, index$d_codecBandersnatchKey as codecBandersnatchKey, index$d_codecPerCore as codecPerCore, index$d_codecServiceId as codecServiceId, index$d_codecVarGas as codecVarGas, index$d_codecVarU16 as codecVarU16, index$d_codecWithHash as codecWithHash, index$d_hashComparator as hashComparator, index$d_ignoreValueWithDefault as ignoreValueWithDefault, index$d_serviceDataCodec as serviceDataCodec, index$d_serviceEntriesCodec as serviceEntriesCodec, index$d_sortedSetCodec as sortedSetCodec, index$d_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$d_tryAsPerCore as tryAsPerCore, index$d_workReportsSortedSetCodec as workReportsSortedSetCodec, index$d_zeroSizeHint as zeroSizeHint };
10920
- export type { index$d_BlocksState as BlocksState, index$d_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$d_EnumerableState as EnumerableState, index$d_FieldNames as FieldNames, index$d_InMemoryStateFields as InMemoryStateFields, index$d_LookupHistorySlots as LookupHistorySlots, index$d_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$d_PerCore as PerCore, index$d_SafroleSealingKeys as SafroleSealingKeys, index$d_Service as Service, index$d_ServiceData as ServiceData, index$d_ServiceEntries as ServiceEntries, index$d_ServicesUpdate as ServicesUpdate, index$d_State as State, index$d_StorageKey as StorageKey, index$d_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES };
11015
+ type index$c_AccumulationOutput = AccumulationOutput;
11016
+ declare const index$c_AccumulationOutput: typeof AccumulationOutput;
11017
+ type index$c_AutoAccumulate = AutoAccumulate;
11018
+ declare const index$c_AutoAccumulate: typeof AutoAccumulate;
11019
+ type index$c_AvailabilityAssignment = AvailabilityAssignment;
11020
+ declare const index$c_AvailabilityAssignment: typeof AvailabilityAssignment;
11021
+ declare const index$c_BASE_SERVICE_BALANCE: typeof BASE_SERVICE_BALANCE;
11022
+ type index$c_BlockState = BlockState;
11023
+ declare const index$c_BlockState: typeof BlockState;
11024
+ type index$c_BlocksState = BlocksState;
11025
+ type index$c_CoreStatistics = CoreStatistics;
11026
+ declare const index$c_CoreStatistics: typeof CoreStatistics;
11027
+ type index$c_DisputesRecords = DisputesRecords;
11028
+ declare const index$c_DisputesRecords: typeof DisputesRecords;
11029
+ declare const index$c_ELECTIVE_BYTE_BALANCE: typeof ELECTIVE_BYTE_BALANCE;
11030
+ declare const index$c_ELECTIVE_ITEM_BALANCE: typeof ELECTIVE_ITEM_BALANCE;
11031
+ type index$c_ENTROPY_ENTRIES = ENTROPY_ENTRIES;
11032
+ type index$c_EnumerableState = EnumerableState;
11033
+ type index$c_FieldNames<T> = FieldNames<T>;
11034
+ type index$c_InMemoryService = InMemoryService;
11035
+ declare const index$c_InMemoryService: typeof InMemoryService;
11036
+ type index$c_InMemoryState = InMemoryState;
11037
+ declare const index$c_InMemoryState: typeof InMemoryState;
11038
+ type index$c_InMemoryStateFields = InMemoryStateFields;
11039
+ type index$c_LookupHistoryItem = LookupHistoryItem;
11040
+ declare const index$c_LookupHistoryItem: typeof LookupHistoryItem;
11041
+ type index$c_LookupHistorySlots = LookupHistorySlots;
11042
+ declare const index$c_MAX_LOOKUP_HISTORY_SLOTS: typeof MAX_LOOKUP_HISTORY_SLOTS;
11043
+ type index$c_MAX_RECENT_HISTORY = MAX_RECENT_HISTORY;
11044
+ type index$c_PerCore<T> = PerCore<T>;
11045
+ type index$c_PreimageItem = PreimageItem;
11046
+ declare const index$c_PreimageItem: typeof PreimageItem;
11047
+ type index$c_PrivilegedServices = PrivilegedServices;
11048
+ declare const index$c_PrivilegedServices: typeof PrivilegedServices;
11049
+ type index$c_RecentBlocks = RecentBlocks;
11050
+ declare const index$c_RecentBlocks: typeof RecentBlocks;
11051
+ type index$c_RecentBlocksHistory = RecentBlocksHistory;
11052
+ declare const index$c_RecentBlocksHistory: typeof RecentBlocksHistory;
11053
+ type index$c_SafroleData = SafroleData;
11054
+ declare const index$c_SafroleData: typeof SafroleData;
11055
+ type index$c_SafroleSealingKeys = SafroleSealingKeys;
11056
+ type index$c_SafroleSealingKeysData = SafroleSealingKeysData;
11057
+ declare const index$c_SafroleSealingKeysData: typeof SafroleSealingKeysData;
11058
+ type index$c_SafroleSealingKeysKind = SafroleSealingKeysKind;
11059
+ declare const index$c_SafroleSealingKeysKind: typeof SafroleSealingKeysKind;
11060
+ type index$c_Service = Service;
11061
+ type index$c_ServiceAccountInfo = ServiceAccountInfo;
11062
+ declare const index$c_ServiceAccountInfo: typeof ServiceAccountInfo;
11063
+ type index$c_ServiceData = ServiceData;
11064
+ type index$c_ServiceEntries = ServiceEntries;
11065
+ type index$c_ServiceStatistics = ServiceStatistics;
11066
+ declare const index$c_ServiceStatistics: typeof ServiceStatistics;
11067
+ type index$c_ServicesUpdate = ServicesUpdate;
11068
+ type index$c_State = State;
11069
+ type index$c_StatisticsData = StatisticsData;
11070
+ declare const index$c_StatisticsData: typeof StatisticsData;
11071
+ type index$c_StorageItem = StorageItem;
11072
+ declare const index$c_StorageItem: typeof StorageItem;
11073
+ type index$c_StorageKey = StorageKey;
11074
+ type index$c_UpdateError = UpdateError;
11075
+ declare const index$c_UpdateError: typeof UpdateError;
11076
+ type index$c_UpdatePreimage = UpdatePreimage;
11077
+ declare const index$c_UpdatePreimage: typeof UpdatePreimage;
11078
+ type index$c_UpdatePreimageKind = UpdatePreimageKind;
11079
+ declare const index$c_UpdatePreimageKind: typeof UpdatePreimageKind;
11080
+ type index$c_UpdateService = UpdateService;
11081
+ declare const index$c_UpdateService: typeof UpdateService;
11082
+ type index$c_UpdateServiceKind = UpdateServiceKind;
11083
+ declare const index$c_UpdateServiceKind: typeof UpdateServiceKind;
11084
+ type index$c_UpdateStorage = UpdateStorage;
11085
+ declare const index$c_UpdateStorage: typeof UpdateStorage;
11086
+ type index$c_UpdateStorageKind = UpdateStorageKind;
11087
+ declare const index$c_UpdateStorageKind: typeof UpdateStorageKind;
11088
+ type index$c_VALIDATOR_META_BYTES = VALIDATOR_META_BYTES;
11089
+ type index$c_ValidatorData = ValidatorData;
11090
+ declare const index$c_ValidatorData: typeof ValidatorData;
11091
+ type index$c_ValidatorStatistics = ValidatorStatistics;
11092
+ declare const index$c_ValidatorStatistics: typeof ValidatorStatistics;
11093
+ declare const index$c_accumulationOutputComparator: typeof accumulationOutputComparator;
11094
+ declare const index$c_codecBandersnatchKey: typeof codecBandersnatchKey;
11095
+ declare const index$c_codecPerCore: typeof codecPerCore;
11096
+ declare const index$c_codecServiceId: typeof codecServiceId;
11097
+ declare const index$c_codecVarGas: typeof codecVarGas;
11098
+ declare const index$c_codecVarU16: typeof codecVarU16;
11099
+ declare const index$c_codecWithHash: typeof codecWithHash;
11100
+ declare const index$c_hashComparator: typeof hashComparator;
11101
+ declare const index$c_ignoreValueWithDefault: typeof ignoreValueWithDefault;
11102
+ declare const index$c_serviceDataCodec: typeof serviceDataCodec;
11103
+ declare const index$c_serviceEntriesCodec: typeof serviceEntriesCodec;
11104
+ declare const index$c_sortedSetCodec: typeof sortedSetCodec;
11105
+ declare const index$c_tryAsLookupHistorySlots: typeof tryAsLookupHistorySlots;
11106
+ declare const index$c_tryAsPerCore: typeof tryAsPerCore;
11107
+ declare const index$c_workReportsSortedSetCodec: typeof workReportsSortedSetCodec;
11108
+ declare const index$c_zeroSizeHint: typeof zeroSizeHint;
11109
+ declare namespace index$c {
11110
+ export { index$c_AccumulationOutput as AccumulationOutput, index$c_AutoAccumulate as AutoAccumulate, index$c_AvailabilityAssignment as AvailabilityAssignment, index$c_BASE_SERVICE_BALANCE as BASE_SERVICE_BALANCE, index$c_BlockState as BlockState, index$c_CoreStatistics as CoreStatistics, index$c_DisputesRecords as DisputesRecords, index$c_ELECTIVE_BYTE_BALANCE as ELECTIVE_BYTE_BALANCE, index$c_ELECTIVE_ITEM_BALANCE as ELECTIVE_ITEM_BALANCE, index$c_InMemoryService as InMemoryService, index$c_InMemoryState as InMemoryState, index$c_LookupHistoryItem as LookupHistoryItem, index$c_MAX_LOOKUP_HISTORY_SLOTS as MAX_LOOKUP_HISTORY_SLOTS, index$c_PreimageItem as PreimageItem, index$c_PrivilegedServices as PrivilegedServices, index$c_RecentBlocks as RecentBlocks, index$c_RecentBlocksHistory as RecentBlocksHistory, index$c_SafroleData as SafroleData, index$c_SafroleSealingKeysData as SafroleSealingKeysData, index$c_SafroleSealingKeysKind as SafroleSealingKeysKind, index$c_ServiceAccountInfo as ServiceAccountInfo, index$c_ServiceStatistics as ServiceStatistics, index$c_StatisticsData as StatisticsData, index$c_StorageItem as StorageItem, index$c_UpdateError as UpdateError, index$c_UpdatePreimage as UpdatePreimage, index$c_UpdatePreimageKind as UpdatePreimageKind, index$c_UpdateService as UpdateService, index$c_UpdateServiceKind as UpdateServiceKind, index$c_UpdateStorage as UpdateStorage, index$c_UpdateStorageKind as UpdateStorageKind, index$c_ValidatorData as ValidatorData, index$c_ValidatorStatistics as ValidatorStatistics, index$c_accumulationOutputComparator as accumulationOutputComparator, index$c_codecBandersnatchKey as codecBandersnatchKey, index$c_codecPerCore as codecPerCore, index$c_codecServiceId as codecServiceId, index$c_codecVarGas as codecVarGas, index$c_codecVarU16 as codecVarU16, index$c_codecWithHash as codecWithHash, index$c_hashComparator as hashComparator, index$c_ignoreValueWithDefault as ignoreValueWithDefault, index$c_serviceDataCodec as serviceDataCodec, index$c_serviceEntriesCodec as serviceEntriesCodec, index$c_sortedSetCodec as sortedSetCodec, index$c_tryAsLookupHistorySlots as tryAsLookupHistorySlots, index$c_tryAsPerCore as tryAsPerCore, index$c_workReportsSortedSetCodec as workReportsSortedSetCodec, index$c_zeroSizeHint as zeroSizeHint };
11111
+ export type { index$c_BlocksState as BlocksState, index$c_ENTROPY_ENTRIES as ENTROPY_ENTRIES, index$c_EnumerableState as EnumerableState, index$c_FieldNames as FieldNames, index$c_InMemoryStateFields as InMemoryStateFields, index$c_LookupHistorySlots as LookupHistorySlots, index$c_MAX_RECENT_HISTORY as MAX_RECENT_HISTORY, index$c_PerCore as PerCore, index$c_SafroleSealingKeys as SafroleSealingKeys, index$c_Service as Service, index$c_ServiceData as ServiceData, index$c_ServiceEntries as ServiceEntries, index$c_ServicesUpdate as ServicesUpdate, index$c_State as State, index$c_StorageKey as StorageKey, index$c_VALIDATOR_META_BYTES as VALIDATOR_META_BYTES };
10921
11112
  }
10922
11113
 
10923
11114
  type StateKey = Opaque<OpaqueHash, "stateKey">;
@@ -11191,7 +11382,10 @@ declare namespace serialize {
11191
11382
  /** C(16): https://graypaper.fluffylabs.dev/#/38c4e62/3b46033b4603?v=0.7.0 */
11192
11383
  export const accumulationOutputLog: StateCodec<State["accumulationOutputLog"]> = {
11193
11384
  key: stateKeys.index(StateKeyIdx.Theta),
11194
- Codec: codec.sequenceVarLen(AccumulationOutput.Codec),
11385
+ Codec: codec.sequenceVarLen(AccumulationOutput.Codec).convert(
11386
+ (i) => i.array,
11387
+ (o) => SortedArray.fromSortedArray(accumulationOutputComparator, o),
11388
+ ),
11195
11389
  extract: (s) => s.accumulationOutputLog,
11196
11390
  };
11197
11391
 
@@ -11866,44 +12060,44 @@ declare function loadState(spec: ChainSpec, entries: Iterable<[StateKey | Trunca
11866
12060
  * hashmap of `key -> value` entries.
11867
12061
  */
11868
12062
 
11869
- declare const index$c_EMPTY_BLOB: typeof EMPTY_BLOB;
11870
- type index$c_EncodeFun = EncodeFun;
11871
- type index$c_KeyAndCodec<T> = KeyAndCodec<T>;
11872
- type index$c_SerializedService = SerializedService;
11873
- declare const index$c_SerializedService: typeof SerializedService;
11874
- type index$c_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
11875
- declare const index$c_SerializedState: typeof SerializedState;
11876
- type index$c_SerializedStateBackend = SerializedStateBackend;
11877
- type index$c_StateCodec<T> = StateCodec<T>;
11878
- type index$c_StateEntries = StateEntries;
11879
- declare const index$c_StateEntries: typeof StateEntries;
11880
- type index$c_StateEntryUpdate = StateEntryUpdate;
11881
- type index$c_StateEntryUpdateAction = StateEntryUpdateAction;
11882
- declare const index$c_StateEntryUpdateAction: typeof StateEntryUpdateAction;
11883
- type index$c_StateKey = StateKey;
11884
- type index$c_StateKeyIdx = StateKeyIdx;
11885
- declare const index$c_StateKeyIdx: typeof StateKeyIdx;
11886
- declare const index$c_TYPICAL_STATE_ITEMS: typeof TYPICAL_STATE_ITEMS;
11887
- declare const index$c_TYPICAL_STATE_ITEM_LEN: typeof TYPICAL_STATE_ITEM_LEN;
11888
- declare const index$c_U32_BYTES: typeof U32_BYTES;
11889
- declare const index$c_binaryMerkleization: typeof binaryMerkleization;
11890
- declare const index$c_convertInMemoryStateToDictionary: typeof convertInMemoryStateToDictionary;
11891
- declare const index$c_dumpCodec: typeof dumpCodec;
11892
- declare const index$c_getSafroleData: typeof getSafroleData;
11893
- declare const index$c_legacyServiceNested: typeof legacyServiceNested;
11894
- declare const index$c_loadState: typeof loadState;
11895
- import index$c_serialize = serialize;
11896
- declare const index$c_serializeBasicKeys: typeof serializeBasicKeys;
11897
- declare const index$c_serializePreimages: typeof serializePreimages;
11898
- declare const index$c_serializeRemovedServices: typeof serializeRemovedServices;
11899
- declare const index$c_serializeServiceUpdates: typeof serializeServiceUpdates;
11900
- declare const index$c_serializeStateUpdate: typeof serializeStateUpdate;
11901
- declare const index$c_serializeStorage: typeof serializeStorage;
11902
- declare const index$c_stateEntriesSequenceCodec: typeof stateEntriesSequenceCodec;
11903
- import index$c_stateKeys = stateKeys;
11904
- declare namespace index$c {
11905
- export { index$c_EMPTY_BLOB as EMPTY_BLOB, index$c_SerializedService as SerializedService, index$c_SerializedState as SerializedState, index$c_StateEntries as StateEntries, index$c_StateEntryUpdateAction as StateEntryUpdateAction, index$c_StateKeyIdx as StateKeyIdx, index$c_TYPICAL_STATE_ITEMS as TYPICAL_STATE_ITEMS, index$c_TYPICAL_STATE_ITEM_LEN as TYPICAL_STATE_ITEM_LEN, index$c_U32_BYTES as U32_BYTES, index$c_binaryMerkleization as binaryMerkleization, index$c_convertInMemoryStateToDictionary as convertInMemoryStateToDictionary, index$c_dumpCodec as dumpCodec, index$c_getSafroleData as getSafroleData, index$c_legacyServiceNested as legacyServiceNested, index$c_loadState as loadState, index$c_serialize as serialize, index$c_serializeBasicKeys as serializeBasicKeys, index$c_serializePreimages as serializePreimages, index$c_serializeRemovedServices as serializeRemovedServices, index$c_serializeServiceUpdates as serializeServiceUpdates, index$c_serializeStateUpdate as serializeStateUpdate, index$c_serializeStorage as serializeStorage, index$c_stateEntriesSequenceCodec as stateEntriesSequenceCodec, index$c_stateKeys as stateKeys };
11906
- export type { index$c_EncodeFun as EncodeFun, index$c_KeyAndCodec as KeyAndCodec, index$c_SerializedStateBackend as SerializedStateBackend, index$c_StateCodec as StateCodec, index$c_StateEntryUpdate as StateEntryUpdate, index$c_StateKey as StateKey };
12063
+ declare const index$b_EMPTY_BLOB: typeof EMPTY_BLOB;
12064
+ type index$b_EncodeFun = EncodeFun;
12065
+ type index$b_KeyAndCodec<T> = KeyAndCodec<T>;
12066
+ type index$b_SerializedService = SerializedService;
12067
+ declare const index$b_SerializedService: typeof SerializedService;
12068
+ type index$b_SerializedState<T extends SerializedStateBackend = SerializedStateBackend> = SerializedState<T>;
12069
+ declare const index$b_SerializedState: typeof SerializedState;
12070
+ type index$b_SerializedStateBackend = SerializedStateBackend;
12071
+ type index$b_StateCodec<T> = StateCodec<T>;
12072
+ type index$b_StateEntries = StateEntries;
12073
+ declare const index$b_StateEntries: typeof StateEntries;
12074
+ type index$b_StateEntryUpdate = StateEntryUpdate;
12075
+ type index$b_StateEntryUpdateAction = StateEntryUpdateAction;
12076
+ declare const index$b_StateEntryUpdateAction: typeof StateEntryUpdateAction;
12077
+ type index$b_StateKey = StateKey;
12078
+ type index$b_StateKeyIdx = StateKeyIdx;
12079
+ declare const index$b_StateKeyIdx: typeof StateKeyIdx;
12080
+ declare const index$b_TYPICAL_STATE_ITEMS: typeof TYPICAL_STATE_ITEMS;
12081
+ declare const index$b_TYPICAL_STATE_ITEM_LEN: typeof TYPICAL_STATE_ITEM_LEN;
12082
+ declare const index$b_U32_BYTES: typeof U32_BYTES;
12083
+ declare const index$b_binaryMerkleization: typeof binaryMerkleization;
12084
+ declare const index$b_convertInMemoryStateToDictionary: typeof convertInMemoryStateToDictionary;
12085
+ declare const index$b_dumpCodec: typeof dumpCodec;
12086
+ declare const index$b_getSafroleData: typeof getSafroleData;
12087
+ declare const index$b_legacyServiceNested: typeof legacyServiceNested;
12088
+ declare const index$b_loadState: typeof loadState;
12089
+ import index$b_serialize = serialize;
12090
+ declare const index$b_serializeBasicKeys: typeof serializeBasicKeys;
12091
+ declare const index$b_serializePreimages: typeof serializePreimages;
12092
+ declare const index$b_serializeRemovedServices: typeof serializeRemovedServices;
12093
+ declare const index$b_serializeServiceUpdates: typeof serializeServiceUpdates;
12094
+ declare const index$b_serializeStateUpdate: typeof serializeStateUpdate;
12095
+ declare const index$b_serializeStorage: typeof serializeStorage;
12096
+ declare const index$b_stateEntriesSequenceCodec: typeof stateEntriesSequenceCodec;
12097
+ import index$b_stateKeys = stateKeys;
12098
+ declare namespace index$b {
12099
+ export { index$b_EMPTY_BLOB as EMPTY_BLOB, index$b_SerializedService as SerializedService, index$b_SerializedState as SerializedState, index$b_StateEntries as StateEntries, index$b_StateEntryUpdateAction as StateEntryUpdateAction, index$b_StateKeyIdx as StateKeyIdx, index$b_TYPICAL_STATE_ITEMS as TYPICAL_STATE_ITEMS, index$b_TYPICAL_STATE_ITEM_LEN as TYPICAL_STATE_ITEM_LEN, index$b_U32_BYTES as U32_BYTES, index$b_binaryMerkleization as binaryMerkleization, index$b_convertInMemoryStateToDictionary as convertInMemoryStateToDictionary, index$b_dumpCodec as dumpCodec, index$b_getSafroleData as getSafroleData, index$b_legacyServiceNested as legacyServiceNested, index$b_loadState as loadState, index$b_serialize as serialize, index$b_serializeBasicKeys as serializeBasicKeys, index$b_serializePreimages as serializePreimages, index$b_serializeRemovedServices as serializeRemovedServices, index$b_serializeServiceUpdates as serializeServiceUpdates, index$b_serializeStateUpdate as serializeStateUpdate, index$b_serializeStorage as serializeStorage, index$b_stateEntriesSequenceCodec as stateEntriesSequenceCodec, index$b_stateKeys as stateKeys };
12100
+ export type { index$b_EncodeFun as EncodeFun, index$b_KeyAndCodec as KeyAndCodec, index$b_SerializedStateBackend as SerializedStateBackend, index$b_StateCodec as StateCodec, index$b_StateEntryUpdate as StateEntryUpdate, index$b_StateKey as StateKey };
11907
12101
  }
11908
12102
 
11909
12103
  /** Error during `LeafDb` creation. */
@@ -12111,25 +12305,25 @@ declare class InMemoryStates implements StatesDb<InMemoryState> {
12111
12305
  }
12112
12306
  }
12113
12307
 
12114
- type index$b_BlocksDb = BlocksDb;
12115
- type index$b_InMemoryBlocks = InMemoryBlocks;
12116
- declare const index$b_InMemoryBlocks: typeof InMemoryBlocks;
12117
- type index$b_InMemoryStates = InMemoryStates;
12118
- declare const index$b_InMemoryStates: typeof InMemoryStates;
12119
- type index$b_LeafDb = LeafDb;
12120
- declare const index$b_LeafDb: typeof LeafDb;
12121
- type index$b_LeafDbError = LeafDbError;
12122
- declare const index$b_LeafDbError: typeof LeafDbError;
12123
- type index$b_Lookup = Lookup;
12124
- type index$b_LookupKind = LookupKind;
12125
- declare const index$b_LookupKind: typeof LookupKind;
12126
- type index$b_StateUpdateError = StateUpdateError;
12127
- declare const index$b_StateUpdateError: typeof StateUpdateError;
12128
- type index$b_StatesDb<T extends State = State> = StatesDb<T>;
12129
- type index$b_ValuesDb = ValuesDb;
12130
- declare namespace index$b {
12131
- export { index$b_InMemoryBlocks as InMemoryBlocks, index$b_InMemoryStates as InMemoryStates, index$b_LeafDb as LeafDb, index$b_LeafDbError as LeafDbError, index$b_LookupKind as LookupKind, index$b_StateUpdateError as StateUpdateError };
12132
- export type { index$b_BlocksDb as BlocksDb, index$b_Lookup as Lookup, index$b_StatesDb as StatesDb, index$b_ValuesDb as ValuesDb };
12308
+ type index$a_BlocksDb = BlocksDb;
12309
+ type index$a_InMemoryBlocks = InMemoryBlocks;
12310
+ declare const index$a_InMemoryBlocks: typeof InMemoryBlocks;
12311
+ type index$a_InMemoryStates = InMemoryStates;
12312
+ declare const index$a_InMemoryStates: typeof InMemoryStates;
12313
+ type index$a_LeafDb = LeafDb;
12314
+ declare const index$a_LeafDb: typeof LeafDb;
12315
+ type index$a_LeafDbError = LeafDbError;
12316
+ declare const index$a_LeafDbError: typeof LeafDbError;
12317
+ type index$a_Lookup = Lookup;
12318
+ type index$a_LookupKind = LookupKind;
12319
+ declare const index$a_LookupKind: typeof LookupKind;
12320
+ type index$a_StateUpdateError = StateUpdateError;
12321
+ declare const index$a_StateUpdateError: typeof StateUpdateError;
12322
+ type index$a_StatesDb<T extends State = State> = StatesDb<T>;
12323
+ type index$a_ValuesDb = ValuesDb;
12324
+ declare namespace index$a {
12325
+ export { index$a_InMemoryBlocks as InMemoryBlocks, index$a_InMemoryStates as InMemoryStates, index$a_LeafDb as LeafDb, index$a_LeafDbError as LeafDbError, index$a_LookupKind as LookupKind, index$a_StateUpdateError as StateUpdateError };
12326
+ export type { index$a_BlocksDb as BlocksDb, index$a_Lookup as Lookup, index$a_StatesDb as StatesDb, index$a_ValuesDb as ValuesDb };
12133
12327
  }
12134
12328
 
12135
12329
  /**
@@ -12548,30 +12742,30 @@ declare const initEc = async () => {
12548
12742
  await init.reedSolomon();
12549
12743
  };
12550
12744
 
12551
- declare const index$a_HALF_POINT_SIZE: typeof HALF_POINT_SIZE;
12552
- declare const index$a_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
12553
- type index$a_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
12554
- type index$a_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
12555
- type index$a_PIECE_SIZE = PIECE_SIZE;
12556
- declare const index$a_POINT_ALIGNMENT: typeof POINT_ALIGNMENT;
12557
- type index$a_POINT_LENGTH = POINT_LENGTH;
12558
- declare const index$a_chunkingFunction: typeof chunkingFunction;
12559
- declare const index$a_chunksToShards: typeof chunksToShards;
12560
- declare const index$a_decodeData: typeof decodeData;
12561
- declare const index$a_decodeDataAndTrim: typeof decodeDataAndTrim;
12562
- declare const index$a_decodePiece: typeof decodePiece;
12563
- declare const index$a_encodePoints: typeof encodePoints;
12564
- declare const index$a_initEc: typeof initEc;
12565
- declare const index$a_join: typeof join;
12566
- declare const index$a_lace: typeof lace;
12567
- declare const index$a_padAndEncodeData: typeof padAndEncodeData;
12568
- declare const index$a_shardsToChunks: typeof shardsToChunks;
12569
- declare const index$a_split: typeof split;
12570
- declare const index$a_transpose: typeof transpose;
12571
- declare const index$a_unzip: typeof unzip;
12572
- declare namespace index$a {
12573
- export { index$a_HALF_POINT_SIZE as HALF_POINT_SIZE, index$a_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$a_POINT_ALIGNMENT as POINT_ALIGNMENT, index$a_chunkingFunction as chunkingFunction, index$a_chunksToShards as chunksToShards, index$a_decodeData as decodeData, index$a_decodeDataAndTrim as decodeDataAndTrim, index$a_decodePiece as decodePiece, index$a_encodePoints as encodePoints, index$a_initEc as initEc, index$a_join as join, index$a_lace as lace, index$a_padAndEncodeData as padAndEncodeData, index$a_shardsToChunks as shardsToChunks, index$a_split as split, index$a_transpose as transpose, index$a_unzip as unzip };
12574
- export type { index$a_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$a_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$a_PIECE_SIZE as PIECE_SIZE, index$a_POINT_LENGTH as POINT_LENGTH };
12745
+ declare const index$9_HALF_POINT_SIZE: typeof HALF_POINT_SIZE;
12746
+ declare const index$9_N_CHUNKS_REDUNDANCY: typeof N_CHUNKS_REDUNDANCY;
12747
+ type index$9_N_CHUNKS_REQUIRED = N_CHUNKS_REQUIRED;
12748
+ type index$9_N_CHUNKS_TOTAL = N_CHUNKS_TOTAL;
12749
+ type index$9_PIECE_SIZE = PIECE_SIZE;
12750
+ declare const index$9_POINT_ALIGNMENT: typeof POINT_ALIGNMENT;
12751
+ type index$9_POINT_LENGTH = POINT_LENGTH;
12752
+ declare const index$9_chunkingFunction: typeof chunkingFunction;
12753
+ declare const index$9_chunksToShards: typeof chunksToShards;
12754
+ declare const index$9_decodeData: typeof decodeData;
12755
+ declare const index$9_decodeDataAndTrim: typeof decodeDataAndTrim;
12756
+ declare const index$9_decodePiece: typeof decodePiece;
12757
+ declare const index$9_encodePoints: typeof encodePoints;
12758
+ declare const index$9_initEc: typeof initEc;
12759
+ declare const index$9_join: typeof join;
12760
+ declare const index$9_lace: typeof lace;
12761
+ declare const index$9_padAndEncodeData: typeof padAndEncodeData;
12762
+ declare const index$9_shardsToChunks: typeof shardsToChunks;
12763
+ declare const index$9_split: typeof split;
12764
+ declare const index$9_transpose: typeof transpose;
12765
+ declare const index$9_unzip: typeof unzip;
12766
+ declare namespace index$9 {
12767
+ export { index$9_HALF_POINT_SIZE as HALF_POINT_SIZE, index$9_N_CHUNKS_REDUNDANCY as N_CHUNKS_REDUNDANCY, index$9_POINT_ALIGNMENT as POINT_ALIGNMENT, index$9_chunkingFunction as chunkingFunction, index$9_chunksToShards as chunksToShards, index$9_decodeData as decodeData, index$9_decodeDataAndTrim as decodeDataAndTrim, index$9_decodePiece as decodePiece, index$9_encodePoints as encodePoints, index$9_initEc as initEc, index$9_join as join, index$9_lace as lace, index$9_padAndEncodeData as padAndEncodeData, index$9_shardsToChunks as shardsToChunks, index$9_split as split, index$9_transpose as transpose, index$9_unzip as unzip };
12768
+ export type { index$9_N_CHUNKS_REQUIRED as N_CHUNKS_REQUIRED, index$9_N_CHUNKS_TOTAL as N_CHUNKS_TOTAL, index$9_PIECE_SIZE as PIECE_SIZE, index$9_POINT_LENGTH as POINT_LENGTH };
12575
12769
  }
12576
12770
 
12577
12771
  /** Size of the transfer memo. */
@@ -12914,173 +13108,6 @@ interface GasCounter {
12914
13108
  sub(g: Gas): boolean;
12915
13109
  }
12916
13110
 
12917
- declare enum Level {
12918
- INSANE = 1,
12919
- TRACE = 2,
12920
- LOG = 3,
12921
- INFO = 4,
12922
- WARN = 5,
12923
- ERROR = 6,
12924
- }
12925
-
12926
- type Options = {
12927
- defaultLevel: Level;
12928
- workingDir: string;
12929
- modules: Map<string, Level>;
12930
- };
12931
-
12932
- /**
12933
- * A function to parse logger definition (including modules) given as a string.
12934
- *
12935
- * Examples
12936
- * - `info` - setup default logging level to `info`.
12937
- * - `trace` - default logging level set to `trace`.
12938
- * - `debug;consensus=trace` - default level is set to `debug/log`, but consensus is in trace mode.
12939
- */
12940
- declare function parseLoggerOptions(input: string, defaultLevel: Level, workingDir?: string): Options {
12941
- const modules = new Map<string, Level>();
12942
- const parts = input.toLowerCase().split(",");
12943
- let defLevel = defaultLevel;
12944
-
12945
- for (const p of parts) {
12946
- const clean = p.trim();
12947
- // skip empty objects (forgotten `,` removed)
12948
- if (clean.length === 0) {
12949
- continue;
12950
- }
12951
- // we just have the default level
12952
- if (clean.includes("=")) {
12953
- const [mod, lvl] = clean.split("=");
12954
- modules.set(mod.trim(), parseLevel(lvl.trim()));
12955
- } else {
12956
- defLevel = parseLevel(clean);
12957
- }
12958
- }
12959
-
12960
- // TODO [ToDr] Fix dirname for workers.
12961
- const myDir = (import.meta.dirname ?? "").split("/");
12962
- myDir.pop();
12963
- myDir.pop();
12964
- return {
12965
- defaultLevel: defLevel,
12966
- modules,
12967
- workingDir: workingDir ?? myDir.join("/"),
12968
- };
12969
- }
12970
-
12971
- declare const GLOBAL_CONFIG = {
12972
- options: DEFAULT_OPTIONS,
12973
- transport: ConsoleTransport.create(DEFAULT_OPTIONS.defaultLevel, DEFAULT_OPTIONS),
12974
- };
12975
-
12976
- /**
12977
- * A logger instance.
12978
- */
12979
- declare class Logger {
12980
- /**
12981
- * Create a new logger instance given filename and an optional module name.
12982
- *
12983
- * If the module name is not given, `fileName` becomes the module name.
12984
- * The module name can be composed from multiple parts separated with `/`.
12985
- *
12986
- * The logger will use a global configuration which can be changed using
12987
- * [`configureLogger`] function.
12988
- */
12989
- static new(fileName?: string, moduleName?: string) {
12990
- const fName = fileName ?? "unknown";
12991
- return new Logger(moduleName ?? fName, fName, GLOBAL_CONFIG);
12992
- }
12993
-
12994
- /**
12995
- * Return currently configured level for given module. */
12996
- static getLevel(moduleName: string): Level {
12997
- return findLevel(GLOBAL_CONFIG.options, moduleName);
12998
- }
12999
-
13000
- /**
13001
- * Global configuration of all loggers.
13002
- *
13003
- * One can specify a default logging level (only logs with level >= default will be printed).
13004
- * It's also possible to configure per-module logging level that takes precedence
13005
- * over the default one.
13006
- *
13007
- * Changing the options affects all previously created loggers.
13008
- */
13009
- static configureAllFromOptions(options: Options) {
13010
- // find minimal level to optimise logging in case
13011
- // we don't care about low-level logs.
13012
- const minimalLevel = Array.from(options.modules.values()).reduce((level, modLevel) => {
13013
- return level < modLevel ? level : modLevel;
13014
- }, options.defaultLevel);
13015
-
13016
- const transport = ConsoleTransport.create(minimalLevel, options);
13017
-
13018
- // set the global config
13019
- GLOBAL_CONFIG.options = options;
13020
- GLOBAL_CONFIG.transport = transport;
13021
- }
13022
-
13023
- /**
13024
- * Global configuration of all loggers.
13025
- *
13026
- * Parse configuration options from an input string typically obtained
13027
- * from environment variable `JAM_LOG`.
13028
- */
13029
- static configureAll(input: string, defaultLevel: Level, workingDir?: string) {
13030
- const options = parseLoggerOptions(input, defaultLevel, workingDir);
13031
- Logger.configureAllFromOptions(options);
13032
- }
13033
-
13034
- constructor(
13035
- private readonly moduleName: string,
13036
- private readonly fileName: string,
13037
- private readonly config: typeof GLOBAL_CONFIG,
13038
- ) {}
13039
-
13040
- /** Log a message with `INSANE` level. */
13041
- insane(val: string) {
13042
- this.config.transport.insane(this.moduleName, val);
13043
- }
13044
-
13045
- /** Log a message with `TRACE` level. */
13046
- trace(val: string) {
13047
- this.config.transport.trace(this.moduleName, val);
13048
- }
13049
-
13050
- /** Log a message with `DEBUG`/`LOG` level. */
13051
- log(val: string) {
13052
- this.config.transport.log(this.moduleName, val);
13053
- }
13054
-
13055
- /** Log a message with `INFO` level. */
13056
- info(val: string) {
13057
- this.config.transport.info(this.moduleName, val);
13058
- }
13059
-
13060
- /** Log a message with `WARN` level. */
13061
- warn(val: string) {
13062
- this.config.transport.warn(this.moduleName, val);
13063
- }
13064
-
13065
- /** Log a message with `ERROR` level. */
13066
- error(val: string) {
13067
- this.config.transport.error(this.moduleName, val);
13068
- }
13069
- }
13070
-
13071
- type index$9_Level = Level;
13072
- declare const index$9_Level: typeof Level;
13073
- type index$9_Logger = Logger;
13074
- declare const index$9_Logger: typeof Logger;
13075
- declare const index$9_parseLoggerOptions: typeof parseLoggerOptions;
13076
- declare namespace index$9 {
13077
- export {
13078
- index$9_Level as Level,
13079
- index$9_Logger as Logger,
13080
- index$9_parseLoggerOptions as parseLoggerOptions,
13081
- };
13082
- }
13083
-
13084
13111
  /**
13085
13112
  * Mask class is an implementation of skip function defined in GP.
13086
13113
  *
@@ -18630,7 +18657,7 @@ type JsonStateDump = {
18630
18657
  pi: JsonStatisticsData;
18631
18658
  omega: State["accumulationQueue"];
18632
18659
  xi: PerEpochBlock<WorkPackageHash[]>;
18633
- theta: State["accumulationOutputLog"] | null;
18660
+ theta: AccumulationOutput[] | null;
18634
18661
  accounts: InMemoryService[];
18635
18662
  };
18636
18663
 
@@ -18732,7 +18759,7 @@ declare const fullStateDumpFromJson = (spec: ChainSpec) =>
18732
18759
  xi.map((x) => HashSet.from(x)),
18733
18760
  spec,
18734
18761
  ),
18735
- accumulationOutputLog: theta ?? [],
18762
+ accumulationOutputLog: SortedArray.fromArray(accumulationOutputComparator, theta ?? []),
18736
18763
  services: new Map(accounts.map((x) => [x.serviceId, x])),
18737
18764
  });
18738
18765
  },
@@ -19090,4 +19117,4 @@ declare namespace index {
19090
19117
  export type { index_PreimagesInput as PreimagesInput, index_PreimagesState as PreimagesState, index_PreimagesStateUpdate as PreimagesStateUpdate };
19091
19118
  }
19092
19119
 
19093
- export { index$j as block, index$h as block_json, index$q as bytes, index$o as codec, index$m as collections, index$k as config, index$g as config_node, index$l as crypto, index$b as database, index$a as erasure_coding, index$n as hash, index$6 as jam_host_calls, index$i as json_parser, index$9 as logger, index$e as mmr, index$p as numbers, index$r as ordering, index$3 as pvm, index$7 as pvm_host_calls, index$8 as pvm_interpreter, index$4 as pvm_program, index$5 as pvm_spi_decoder, index$2 as shuffling, index$d as state, index$1 as state_json, index$c as state_merkleization, index as transition, index$f as trie, index$s as utils };
19120
+ export { index$j as block, index$h as block_json, index$q as bytes, index$o as codec, index$m as collections, index$k as config, index$f as config_node, index$l as crypto, index$a as database, index$9 as erasure_coding, index$n as hash, index$6 as jam_host_calls, index$i as json_parser, index$g as logger, index$d as mmr, index$p as numbers, index$r as ordering, index$3 as pvm, index$7 as pvm_host_calls, index$8 as pvm_interpreter, index$4 as pvm_program, index$5 as pvm_spi_decoder, index$2 as shuffling, index$c as state, index$1 as state_json, index$b as state_merkleization, index as transition, index$e as trie, index$s as utils };