@aztec/constants 3.0.0-nightly.20251216 → 3.0.0-nightly.20251218
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/dest/constants.d.ts +4 -2
- package/dest/constants.d.ts.map +1 -1
- package/dest/constants.js +5 -2
- package/package.json +2 -2
- package/src/constants.gen.ts +1 -1
- package/src/constants.ts +7 -1
package/dest/constants.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
1
|
+
import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
export declare const SPONSORED_FPC_SALT: bigint;
|
|
4
4
|
export * from './constants.gen.js';
|
|
5
5
|
/** The initial L2 block number (typed as BlockNumber). This is the first block number in the Aztec L2 chain. */
|
|
6
6
|
export declare const INITIAL_L2_BLOCK_NUM: BlockNumber;
|
|
7
|
+
/** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpont number in the Aztec L2 chain. */
|
|
8
|
+
export declare const INITIAL_L2_CHECKPOINT_NUM: CheckpointNumber;
|
|
7
9
|
/** The block header hash for the genesis block 0. */
|
|
8
10
|
export declare const GENESIS_BLOCK_HEADER_HASH: Fr;
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNoRixPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFXcEQsZUFBTyxNQUFNLGtCQUFrQixRQUFZLENBQUM7QUFJNUMsY0FBYyxvQkFBb0IsQ0FBQztBQUVuQyxnSEFBZ0g7QUFHaEgsZUFBTyxNQUFNLG9CQUFvQixFQUFFLFdBQW1ELENBQUM7QUFFdkYsOEhBQThIO0FBRzlILGVBQU8sTUFBTSx5QkFBeUIsRUFBRSxnQkFBK0QsQ0FBQztBQUV4RyxxREFBcUQ7QUFHckQsZUFBTyxNQUFNLHlCQUF5QixJQUEyQyxDQUFDIn0=
|
package/dest/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAWpD,eAAO,MAAM,kBAAkB,QAAY,CAAC;AAI5C,cAAc,oBAAoB,CAAC;AAEnC,gHAAgH;AAGhH,eAAO,MAAM,oBAAoB,EAAE,WAAmD,CAAC;AAEvF,8HAA8H;AAG9H,eAAO,MAAM,yBAAyB,EAAE,gBAA+D,CAAC;AAExG,qDAAqD;AAGrD,eAAO,MAAM,yBAAyB,IAA2C,CAAC"}
|
package/dest/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
1
|
+
import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
// Re-export L2 block number constants with proper BlockNumber type
|
|
4
4
|
// Note: The generated constants are plain numbers, but we provide typed versions here
|
|
5
|
-
import { GENESIS_BLOCK_HEADER_HASH as GENESIS_BLOCK_HEADER_HASH_BIGINT, INITIAL_L2_BLOCK_NUM as INITIAL_L2_BLOCK_NUM_RAW } from './constants.gen.js';
|
|
5
|
+
import { GENESIS_BLOCK_HEADER_HASH as GENESIS_BLOCK_HEADER_HASH_BIGINT, INITIAL_CHECKPOINT_NUMBER as INITIAL_CHECKPOINT_NUM_RAW, INITIAL_L2_BLOCK_NUM as INITIAL_L2_BLOCK_NUM_RAW } from './constants.gen.js';
|
|
6
6
|
// Typescript-land-only constants
|
|
7
7
|
export const SPONSORED_FPC_SALT = BigInt(0);
|
|
8
8
|
// Autogenerated constants loaded from noir-land
|
|
@@ -11,6 +11,9 @@ export * from './constants.gen.js';
|
|
|
11
11
|
/** The initial L2 block number (typed as BlockNumber). This is the first block number in the Aztec L2 chain. */ // Shadow the export from constants.gen above
|
|
12
12
|
// eslint-disable-next-line import/export
|
|
13
13
|
export const INITIAL_L2_BLOCK_NUM = BlockNumber(INITIAL_L2_BLOCK_NUM_RAW);
|
|
14
|
+
/** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpont number in the Aztec L2 chain. */ // Shadow the export from constants.gen above
|
|
15
|
+
// eslint-disable-next-line import/export
|
|
16
|
+
export const INITIAL_L2_CHECKPOINT_NUM = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW);
|
|
14
17
|
/** The block header hash for the genesis block 0. */ // Shadow the export from constants.gen above
|
|
15
18
|
// eslint-disable-next-line import/export
|
|
16
19
|
export const GENESIS_BLOCK_HEADER_HASH = new Fr(GENESIS_BLOCK_HEADER_HASH_BIGINT);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/constants",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251218",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
19
|
+
"@aztec/foundation": "3.0.0-nightly.20251218",
|
|
20
20
|
"tslib": "^2.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
package/src/constants.gen.ts
CHANGED
package/src/constants.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
1
|
+
import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
|
|
4
4
|
// Re-export L2 block number constants with proper BlockNumber type
|
|
5
5
|
// Note: The generated constants are plain numbers, but we provide typed versions here
|
|
6
6
|
import {
|
|
7
7
|
GENESIS_BLOCK_HEADER_HASH as GENESIS_BLOCK_HEADER_HASH_BIGINT,
|
|
8
|
+
INITIAL_CHECKPOINT_NUMBER as INITIAL_CHECKPOINT_NUM_RAW,
|
|
8
9
|
INITIAL_L2_BLOCK_NUM as INITIAL_L2_BLOCK_NUM_RAW,
|
|
9
10
|
} from './constants.gen.js';
|
|
10
11
|
|
|
@@ -20,6 +21,11 @@ export * from './constants.gen.js';
|
|
|
20
21
|
// eslint-disable-next-line import/export
|
|
21
22
|
export const INITIAL_L2_BLOCK_NUM: BlockNumber = BlockNumber(INITIAL_L2_BLOCK_NUM_RAW);
|
|
22
23
|
|
|
24
|
+
/** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpont number in the Aztec L2 chain. */
|
|
25
|
+
// Shadow the export from constants.gen above
|
|
26
|
+
// eslint-disable-next-line import/export
|
|
27
|
+
export const INITIAL_L2_CHECKPOINT_NUM: CheckpointNumber = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW);
|
|
28
|
+
|
|
23
29
|
/** The block header hash for the genesis block 0. */
|
|
24
30
|
// Shadow the export from constants.gen above
|
|
25
31
|
// eslint-disable-next-line import/export
|