@aztec/stdlib 4.0.0-nightly.20260130 → 4.0.0-nightly.20260201

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 (37) hide show
  1. package/dest/database-version/database_version.d.ts +58 -0
  2. package/dest/database-version/database_version.d.ts.map +1 -0
  3. package/dest/database-version/database_version.js +69 -0
  4. package/dest/database-version/version_manager.d.ts +2 -50
  5. package/dest/database-version/version_manager.d.ts.map +1 -1
  6. package/dest/database-version/version_manager.js +1 -66
  7. package/dest/interfaces/aztec-node.d.ts +28 -21
  8. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  9. package/dest/interfaces/aztec-node.js +1 -1
  10. package/dest/interfaces/block-builder.d.ts +8 -3
  11. package/dest/interfaces/block-builder.d.ts.map +1 -1
  12. package/dest/interfaces/block-builder.js +7 -0
  13. package/dest/keys/derivation.d.ts +3 -3
  14. package/dest/keys/derivation.js +8 -8
  15. package/dest/keys/key_types.d.ts +1 -1
  16. package/dest/keys/utils.d.ts +1 -1
  17. package/dest/keys/utils.d.ts.map +1 -1
  18. package/dest/keys/utils.js +7 -3
  19. package/dest/l1-contracts/slash_factory.d.ts +1 -1
  20. package/dest/l1-contracts/slash_factory.d.ts.map +1 -1
  21. package/dest/l1-contracts/slash_factory.js +1 -0
  22. package/dest/stats/stats.d.ts +1 -3
  23. package/dest/stats/stats.d.ts.map +1 -1
  24. package/package.json +11 -10
  25. package/src/database-version/database_version.ts +87 -0
  26. package/src/database-version/version_manager.ts +1 -77
  27. package/src/interfaces/aztec-node.ts +34 -24
  28. package/src/interfaces/block-builder.ts +10 -2
  29. package/src/keys/derivation.ts +8 -8
  30. package/src/keys/key_types.ts +1 -1
  31. package/src/keys/utils.ts +7 -3
  32. package/src/l1-contracts/slash_factory.ts +1 -0
  33. package/src/stats/stats.ts +0 -2
  34. package/dest/database-version/index.d.ts +0 -2
  35. package/dest/database-version/index.d.ts.map +0 -1
  36. package/dest/database-version/index.js +0 -1
  37. package/src/database-version/index.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import type { GeneratorIndex } from '@aztec/constants';
2
2
 
3
- export type KeyGenerator = GeneratorIndex.NSK_M | GeneratorIndex.IVSK_M | GeneratorIndex.OVSK_M | GeneratorIndex.TSK_M;
3
+ export type KeyGenerator = GeneratorIndex.NHK_M | GeneratorIndex.IVSK_M | GeneratorIndex.OVSK_M | GeneratorIndex.TSK_M;
4
4
  export type KeyPrefix = 'n' | 'iv' | 'ov' | 't';
5
5
  export const KEY_PREFIXES: KeyPrefix[] = ['n', 'iv', 'ov', 't'];
package/src/keys/utils.ts CHANGED
@@ -3,7 +3,11 @@ import { GeneratorIndex } from '@aztec/constants';
3
3
  import type { KeyGenerator, KeyPrefix } from './key_types.js';
4
4
 
5
5
  export function getKeyGenerator(prefix: KeyPrefix): KeyGenerator {
6
- // We get enum key by capitalizing key prefix and concatenating it with 'SK_M'
7
- const enumKey = `${prefix.toUpperCase()}SK_M`;
8
- return GeneratorIndex[enumKey as keyof typeof GeneratorIndex] as KeyGenerator;
6
+ const map: Record<KeyPrefix, KeyGenerator> = {
7
+ n: GeneratorIndex.NHK_M,
8
+ iv: GeneratorIndex.IVSK_M,
9
+ ov: GeneratorIndex.OVSK_M,
10
+ t: GeneratorIndex.TSK_M,
11
+ };
12
+ return map[prefix];
9
13
  }
@@ -41,6 +41,7 @@ export class SlashFactoryContract {
41
41
 
42
42
  return {
43
43
  to: this.contract.address,
44
+ abi: SlashFactoryAbi,
44
45
  data: encodeFunctionData({
45
46
  abi: SlashFactoryAbi,
46
47
  functionName: 'createSlashPayload',
@@ -202,8 +202,6 @@ export type L2BlockBuiltStats = {
202
202
  duration: number;
203
203
  /** Time for processing public txs in ms. */
204
204
  publicProcessDuration: number;
205
- /** Time for running rollup circuits in ms. */
206
- rollupCircuitsDuration: number;
207
205
  } & L2BlockStats;
208
206
 
209
207
  /** Stats for an L2 block processed by the world state synchronizer. */
@@ -1,2 +0,0 @@
1
- export * from './version_manager.js';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXRhYmFzZS12ZXJzaW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMifQ==
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-version/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- export * from './version_manager.js';
@@ -1 +0,0 @@
1
- export * from './version_manager.js';