@aztec/node-lib 0.86.0-starknet.1 → 0.87.0

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.
@@ -8,6 +8,10 @@ export type SharedNodeConfig = {
8
8
  syncMode: 'full' | 'snapshot' | 'force-snapshot';
9
9
  /** Base URL for snapshots index. Index file will be searched at `SNAPSHOTS_BASE_URL/aztec-L1_CHAIN_ID-VERSION-ROLLUP_ADDRESS/index.json` */
10
10
  snapshotsUrl?: string;
11
+ /** Auto update mode: disabled - to completely ignore remote signals to update the node. enabled - to respect the signals (potentially shutting this node down). log - check for updates but log a warning instead of applying them*/
12
+ autoUpdate?: 'disabled' | 'notify' | 'config' | 'config-and-version';
13
+ /** The base URL against which to check for updates */
14
+ autoUpdateUrl?: string;
11
15
  };
12
16
  export declare const sharedNodeConfigMappings: ConfigMappingsType<SharedNodeConfig>;
13
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAuB,MAAM,0BAA0B,CAAC;AAExF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;IACtB,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;IACtB,gKAAgK;IAChK,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,CAAC;IACjD,4IAA4I;IAC5I,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CAAC,gBAAgB,CAqBzE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAuB,MAAM,0BAA0B,CAAC;AAExF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;IACtB,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;IACtB,gKAAgK;IAChK,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,CAAC;IACjD,4IAA4I;IAC5I,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,qOAAqO;IACrO,UAAU,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,oBAAoB,CAAC;IACrE,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CAAC,gBAAgB,CA8BzE,CAAC"}
@@ -18,5 +18,14 @@ export const sharedNodeConfigMappings = {
18
18
  snapshotsUrl: {
19
19
  env: 'SYNC_SNAPSHOTS_URL',
20
20
  description: 'Base URL for snapshots index.'
21
+ },
22
+ autoUpdate: {
23
+ env: 'AUTO_UPDATE',
24
+ description: 'The auto update mode for this node',
25
+ defaultValue: 'disabled'
26
+ },
27
+ autoUpdateUrl: {
28
+ env: 'AUTO_UPDATE_URL',
29
+ description: 'Base URL to check for updates'
21
30
  }
22
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/node-lib",
3
- "version": "0.86.0-starknet.1",
3
+ "version": "0.87.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./actions": "./dest/actions/index.js",
@@ -50,34 +50,34 @@
50
50
  ]
51
51
  },
52
52
  "dependencies": {
53
- "@aztec/archiver": "0.86.0-starknet.1",
54
- "@aztec/bb-prover": "0.86.0-starknet.1",
55
- "@aztec/blob-sink": "0.86.0-starknet.1",
56
- "@aztec/constants": "0.86.0-starknet.1",
57
- "@aztec/epoch-cache": "0.86.0-starknet.1",
58
- "@aztec/ethereum": "0.86.0-starknet.1",
59
- "@aztec/foundation": "0.86.0-starknet.1",
60
- "@aztec/kv-store": "0.86.0-starknet.1",
61
- "@aztec/merkle-tree": "0.86.0-starknet.1",
62
- "@aztec/p2p": "0.86.0-starknet.1",
63
- "@aztec/protocol-contracts": "0.86.0-starknet.1",
64
- "@aztec/prover-client": "0.86.0-starknet.1",
65
- "@aztec/sequencer-client": "0.86.0-starknet.1",
66
- "@aztec/simulator": "0.86.0-starknet.1",
67
- "@aztec/stdlib": "0.86.0-starknet.1",
68
- "@aztec/telemetry-client": "0.86.0-starknet.1",
69
- "@aztec/validator-client": "0.86.0-starknet.1",
70
- "@aztec/world-state": "0.86.0-starknet.1",
53
+ "@aztec/archiver": "0.87.0",
54
+ "@aztec/bb-prover": "0.87.0",
55
+ "@aztec/blob-sink": "0.87.0",
56
+ "@aztec/constants": "0.87.0",
57
+ "@aztec/epoch-cache": "0.87.0",
58
+ "@aztec/ethereum": "0.87.0",
59
+ "@aztec/foundation": "0.87.0",
60
+ "@aztec/kv-store": "0.87.0",
61
+ "@aztec/merkle-tree": "0.87.0",
62
+ "@aztec/p2p": "0.87.0",
63
+ "@aztec/protocol-contracts": "0.87.0",
64
+ "@aztec/prover-client": "0.87.0",
65
+ "@aztec/sequencer-client": "0.87.0",
66
+ "@aztec/simulator": "0.87.0",
67
+ "@aztec/stdlib": "0.87.0",
68
+ "@aztec/telemetry-client": "0.87.0",
69
+ "@aztec/validator-client": "0.87.0",
70
+ "@aztec/world-state": "0.87.0",
71
71
  "tslib": "^2.4.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@jest/globals": "^29.5.0",
75
75
  "@types/jest": "^29.5.0",
76
- "@types/node": "^18.7.23",
76
+ "@types/node": "^22.15.17",
77
77
  "jest": "^29.5.0",
78
78
  "jest-mock-extended": "^3.0.3",
79
79
  "ts-node": "^10.9.1",
80
- "typescript": "^5.0.4"
80
+ "typescript": "^5.3.3"
81
81
  },
82
82
  "files": [
83
83
  "dest",
@@ -86,6 +86,6 @@
86
86
  ],
87
87
  "types": "./dest/index.d.ts",
88
88
  "engines": {
89
- "node": ">=18"
89
+ "node": ">=20.10"
90
90
  }
91
91
  }
@@ -9,6 +9,11 @@ export type SharedNodeConfig = {
9
9
  syncMode: 'full' | 'snapshot' | 'force-snapshot';
10
10
  /** Base URL for snapshots index. Index file will be searched at `SNAPSHOTS_BASE_URL/aztec-L1_CHAIN_ID-VERSION-ROLLUP_ADDRESS/index.json` */
11
11
  snapshotsUrl?: string;
12
+
13
+ /** Auto update mode: disabled - to completely ignore remote signals to update the node. enabled - to respect the signals (potentially shutting this node down). log - check for updates but log a warning instead of applying them*/
14
+ autoUpdate?: 'disabled' | 'notify' | 'config' | 'config-and-version';
15
+ /** The base URL against which to check for updates */
16
+ autoUpdateUrl?: string;
12
17
  };
13
18
 
14
19
  export const sharedNodeConfigMappings: ConfigMappingsType<SharedNodeConfig> = {
@@ -32,4 +37,13 @@ export const sharedNodeConfigMappings: ConfigMappingsType<SharedNodeConfig> = {
32
37
  env: 'SYNC_SNAPSHOTS_URL',
33
38
  description: 'Base URL for snapshots index.',
34
39
  },
40
+ autoUpdate: {
41
+ env: 'AUTO_UPDATE',
42
+ description: 'The auto update mode for this node',
43
+ defaultValue: 'disabled',
44
+ },
45
+ autoUpdateUrl: {
46
+ env: 'AUTO_UPDATE_URL',
47
+ description: 'Base URL to check for updates',
48
+ },
35
49
  };