@aztec/constants 3.0.0-nightly.20251203 → 3.0.0-nightly.20251205
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 +7 -1
- package/dest/constants.d.ts.map +1 -1
- package/dest/constants.gen.d.ts +1 -1
- package/dest/constants.gen.js +1 -1
- package/dest/constants.js +12 -0
- package/package.json +4 -3
- package/src/constants.gen.ts +2 -2
- package/src/constants.ts +21 -0
package/dest/constants.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
1
3
|
export declare const SPONSORED_FPC_SALT: bigint;
|
|
2
4
|
export * from './constants.gen.js';
|
|
3
|
-
|
|
5
|
+
/** The initial L2 block number (typed as BlockNumber). This is the first block number in the Aztec L2 chain. */
|
|
6
|
+
export declare const INITIAL_L2_BLOCK_NUM: BlockNumber;
|
|
7
|
+
/** The block header hash for the genesis block 0. */
|
|
8
|
+
export declare const GENESIS_BLOCK_HEADER_HASH: Fr;
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM5RCxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFVOUMsZUFBTyxNQUFNLGtCQUFrQixRQUFZLENBQUM7QUFJNUMsY0FBYyxvQkFBb0IsQ0FBQztBQUVuQyxnSEFBZ0g7QUFHaEgsZUFBTyxNQUFNLG9CQUFvQixFQUFFLFdBQW1ELENBQUM7QUFFdkYscURBQXFEO0FBR3JELGVBQU8sTUFBTSx5QkFBeUIsSUFBMkMsQ0FBQyJ9
|
package/dest/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAU9C,eAAO,MAAM,kBAAkB,QAAY,CAAC;AAI5C,cAAc,oBAAoB,CAAC;AAEnC,gHAAgH;AAGhH,eAAO,MAAM,oBAAoB,EAAE,WAAmD,CAAC;AAEvF,qDAAqD;AAGrD,eAAO,MAAM,yBAAyB,IAA2C,CAAC"}
|
package/dest/constants.gen.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ export declare const IPA_PROOF_LENGTH = 64;
|
|
|
231
231
|
export declare const ULTRA_KECCAK_PROOF_LENGTH = 339;
|
|
232
232
|
export declare const RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 531;
|
|
233
233
|
export declare const NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 531;
|
|
234
|
-
export declare const CHONK_PROOF_LENGTH =
|
|
234
|
+
export declare const CHONK_PROOF_LENGTH = 1961;
|
|
235
235
|
export declare const ULTRA_VK_LENGTH_IN_FIELDS = 115;
|
|
236
236
|
export declare const MEGA_VK_LENGTH_IN_FIELDS = 127;
|
|
237
237
|
export declare const CHONK_VK_LENGTH_IN_FIELDS = 127;
|
package/dest/constants.gen.js
CHANGED
|
@@ -232,7 +232,7 @@ export const IPA_PROOF_LENGTH = 64;
|
|
|
232
232
|
export const ULTRA_KECCAK_PROOF_LENGTH = 339;
|
|
233
233
|
export const RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 531;
|
|
234
234
|
export const NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 531;
|
|
235
|
-
export const CHONK_PROOF_LENGTH =
|
|
235
|
+
export const CHONK_PROOF_LENGTH = 1961;
|
|
236
236
|
export const ULTRA_VK_LENGTH_IN_FIELDS = 115;
|
|
237
237
|
export const MEGA_VK_LENGTH_IN_FIELDS = 127;
|
|
238
238
|
export const CHONK_VK_LENGTH_IN_FIELDS = 127;
|
package/dest/constants.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
3
|
+
// Re-export L2 block number constants with proper BlockNumber type
|
|
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';
|
|
1
6
|
// Typescript-land-only constants
|
|
2
7
|
export const SPONSORED_FPC_SALT = BigInt(0);
|
|
3
8
|
// Autogenerated constants loaded from noir-land
|
|
9
|
+
// eslint-disable-next-line import/export
|
|
4
10
|
export * from './constants.gen.js';
|
|
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
|
+
// eslint-disable-next-line import/export
|
|
13
|
+
export const INITIAL_L2_BLOCK_NUM = BlockNumber(INITIAL_L2_BLOCK_NUM_RAW);
|
|
14
|
+
/** The block header hash for the genesis block 0. */ // Shadow the export from constants.gen above
|
|
15
|
+
// eslint-disable-next-line import/export
|
|
16
|
+
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.20251205",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json"
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
".": "./dest/constants.js"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "yarn clean &&
|
|
13
|
-
"build:dev": "
|
|
12
|
+
"build": "yarn clean && ../scripts/tsc.sh",
|
|
13
|
+
"build:dev": "../scripts/tsc.sh --watch",
|
|
14
14
|
"clean": "rm -rf ./dest .tsbuildinfo",
|
|
15
15
|
"remake-constants": "node --loader @swc-node/register/esm src/scripts/constants.in.ts && cd ../../l1-contracts && forge fmt",
|
|
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.20251205",
|
|
19
20
|
"tslib": "^2.4.0"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
package/src/constants.gen.ts
CHANGED
|
@@ -232,7 +232,7 @@ export const IPA_PROOF_LENGTH = 64;
|
|
|
232
232
|
export const ULTRA_KECCAK_PROOF_LENGTH = 339;
|
|
233
233
|
export const RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 531;
|
|
234
234
|
export const NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 531;
|
|
235
|
-
export const CHONK_PROOF_LENGTH =
|
|
235
|
+
export const CHONK_PROOF_LENGTH = 1961;
|
|
236
236
|
export const ULTRA_VK_LENGTH_IN_FIELDS = 115;
|
|
237
237
|
export const MEGA_VK_LENGTH_IN_FIELDS = 127;
|
|
238
238
|
export const CHONK_VK_LENGTH_IN_FIELDS = 127;
|
|
@@ -552,4 +552,4 @@ export enum GeneratorIndex {
|
|
|
552
552
|
EVENT_COMMITMENT = 59,
|
|
553
553
|
PUBLIC_BYTECODE = 60,
|
|
554
554
|
PROTOCOL_CONTRACTS = 61,
|
|
555
|
-
}
|
|
555
|
+
}
|
package/src/constants.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
+
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
3
|
+
|
|
4
|
+
// Re-export L2 block number constants with proper BlockNumber type
|
|
5
|
+
// Note: The generated constants are plain numbers, but we provide typed versions here
|
|
6
|
+
import {
|
|
7
|
+
GENESIS_BLOCK_HEADER_HASH as GENESIS_BLOCK_HEADER_HASH_BIGINT,
|
|
8
|
+
INITIAL_L2_BLOCK_NUM as INITIAL_L2_BLOCK_NUM_RAW,
|
|
9
|
+
} from './constants.gen.js';
|
|
10
|
+
|
|
1
11
|
// Typescript-land-only constants
|
|
2
12
|
export const SPONSORED_FPC_SALT = BigInt(0);
|
|
3
13
|
|
|
4
14
|
// Autogenerated constants loaded from noir-land
|
|
15
|
+
// eslint-disable-next-line import/export
|
|
5
16
|
export * from './constants.gen.js';
|
|
17
|
+
|
|
18
|
+
/** The initial L2 block number (typed as BlockNumber). This is the first block number in the Aztec L2 chain. */
|
|
19
|
+
// Shadow the export from constants.gen above
|
|
20
|
+
// eslint-disable-next-line import/export
|
|
21
|
+
export const INITIAL_L2_BLOCK_NUM: BlockNumber = BlockNumber(INITIAL_L2_BLOCK_NUM_RAW);
|
|
22
|
+
|
|
23
|
+
/** The block header hash for the genesis block 0. */
|
|
24
|
+
// Shadow the export from constants.gen above
|
|
25
|
+
// eslint-disable-next-line import/export
|
|
26
|
+
export const GENESIS_BLOCK_HEADER_HASH = new Fr(GENESIS_BLOCK_HEADER_HASH_BIGINT);
|