@aztec/constants
Advanced tools
@@ -8,5 +8,9 @@ import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types'; | ||
| /** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpoint number in the Aztec L2 chain. */ | ||
| export declare const INITIAL_L2_CHECKPOINT_NUM: CheckpointNumber; | ||
| export declare const INITIAL_CHECKPOINT_NUMBER: CheckpointNumber; | ||
| /** The block header hash for the genesis block 0. */ | ||
| export declare const GENESIS_BLOCK_HEADER_HASH: Fr; | ||
| //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNoRixPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFXcEQsZUFBTyxNQUFNLGtCQUFrQixRQUFZLENBQUM7QUFJNUMsY0FBYyxvQkFBb0IsQ0FBQztBQUVuQyxnSEFBZ0g7QUFHaEgsZUFBTyxNQUFNLG9CQUFvQixFQUFFLFdBQW1ELENBQUM7QUFFdkYsK0hBQStIO0FBRy9ILGVBQU8sTUFBTSx5QkFBeUIsRUFBRSxnQkFBK0QsQ0FBQztBQUV4RyxxREFBcUQ7QUFHckQsZUFBTyxNQUFNLHlCQUF5QixJQUEyQyxDQUFDIn0= | ||
| export declare const DEFAULT_L2_GAS_LIMIT = 6540000; | ||
| export declare const DEFAULT_TEARDOWN_L2_GAS_LIMIT: number; | ||
| export declare const DEFAULT_DA_GAS_LIMIT: number; | ||
| export declare const DEFAULT_TEARDOWN_DA_GAS_LIMIT: number; | ||
| //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY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C;AAExG,qDAAqD;AAGrD,eAAO,MAAM,yBAAyB,IAA2C,CAAC"} | ||
| {"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;AAapD,eAAO,MAAM,kBAAkB,QAAY,CAAC;AAI5C,cAAc,oBAAoB,CAAC;AAEnC,gHAAgH;AAEhH,eAAO,MAAM,oBAAoB,EAAE,WAAmD,CAAC;AAEvF,+HAA+H;AAE/H,eAAO,MAAM,yBAAyB,EAAE,gBAA+D,CAAC;AAExG,qDAAqD;AAErD,eAAO,MAAM,yBAAyB,IAA2C,CAAC;AAKlF,eAAO,MAAM,oBAAoB,UAAyB,CAAC;AAE3D,eAAO,MAAM,6BAA6B,QAA2B,CAAC;AAEtE,eAAO,MAAM,oBAAoB,QAA4C,CAAC;AAE9E,eAAO,MAAM,6BAA6B,QAA2B,CAAC"} |
+15
-7
@@ -5,3 +5,3 @@ import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types'; | ||
| // Note: The generated constants are plain numbers, but we provide typed versions here | ||
| 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'; | ||
| 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, MAX_PROCESSABLE_DA_GAS_PER_CHECKPOINT, MAX_PROCESSABLE_L2_GAS } from './constants.gen.js'; | ||
| // Typescript-land-only constants | ||
@@ -12,9 +12,17 @@ export const SPONSORED_FPC_SALT = BigInt(0); | ||
| export * from './constants.gen.js'; | ||
| /** 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 | ||
| // eslint-disable-next-line import-x/export | ||
| /** The initial L2 block number (typed as BlockNumber). This is the first block number in the Aztec L2 chain. */ // eslint-disable-next-line import-x/export | ||
| export const INITIAL_L2_BLOCK_NUM = BlockNumber(INITIAL_L2_BLOCK_NUM_RAW); | ||
| /** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpoint number in the Aztec L2 chain. */ // Shadow the export from constants.gen above | ||
| export const INITIAL_L2_CHECKPOINT_NUM = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW); | ||
| /** The block header hash for the genesis block 0. */ // Shadow the export from constants.gen above | ||
| /** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpoint number in the Aztec L2 chain. */ // eslint-disable-next-line import-x/export | ||
| export const INITIAL_CHECKPOINT_NUMBER = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW); | ||
| /** The block header hash for the genesis block 0. */ // eslint-disable-next-line import-x/export | ||
| export const GENESIS_BLOCK_HEADER_HASH = new Fr(GENESIS_BLOCK_HEADER_HASH_BIGINT); | ||
| // Override the default gas limits set in noir-protocol-circuit constants with saner ones | ||
| // Note that these values are not used in noir-land and are only for use in TypeScript code, so we can set them to whatever we want. | ||
| // eslint-disable-next-line import-x/export | ||
| export const GENESIS_BLOCK_HEADER_HASH = new Fr(GENESIS_BLOCK_HEADER_HASH_BIGINT); | ||
| export const DEFAULT_L2_GAS_LIMIT = MAX_PROCESSABLE_L2_GAS; | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_TEARDOWN_L2_GAS_LIMIT = DEFAULT_L2_GAS_LIMIT / 8; | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_DA_GAS_LIMIT = MAX_PROCESSABLE_DA_GAS_PER_CHECKPOINT / 4; | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_TEARDOWN_DA_GAS_LIMIT = DEFAULT_DA_GAS_LIMIT / 2; |
+2
-2
| { | ||
| "name": "@aztec/constants", | ||
| "version": "4.0.4", | ||
| "version": "4.1.0-rc.2", | ||
| "type": "module", | ||
@@ -26,3 +26,3 @@ "inherits": [ | ||
| "dependencies": { | ||
| "@aztec/foundation": "4.0.4", | ||
| "@aztec/foundation": "4.1.0-rc.2", | ||
| "tslib": "^2.4.0" | ||
@@ -29,0 +29,0 @@ }, |
+15
-5
@@ -10,2 +10,4 @@ import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types'; | ||
| INITIAL_L2_BLOCK_NUM as INITIAL_L2_BLOCK_NUM_RAW, | ||
| MAX_PROCESSABLE_DA_GAS_PER_CHECKPOINT, | ||
| MAX_PROCESSABLE_L2_GAS, | ||
| } from './constants.gen.js'; | ||
@@ -21,3 +23,2 @@ | ||
| /** 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 | ||
| // eslint-disable-next-line import-x/export | ||
@@ -27,9 +28,18 @@ export const INITIAL_L2_BLOCK_NUM: BlockNumber = BlockNumber(INITIAL_L2_BLOCK_NUM_RAW); | ||
| /** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpoint number in the Aztec L2 chain. */ | ||
| // Shadow the export from constants.gen above | ||
| // eslint-disable-next-line import-x/export | ||
| export const INITIAL_CHECKPOINT_NUMBER: CheckpointNumber = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW); | ||
| export const INITIAL_L2_CHECKPOINT_NUM: CheckpointNumber = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW); | ||
| /** The block header hash for the genesis block 0. */ | ||
| // Shadow the export from constants.gen above | ||
| // eslint-disable-next-line import-x/export | ||
| export const GENESIS_BLOCK_HEADER_HASH = new Fr(GENESIS_BLOCK_HEADER_HASH_BIGINT); | ||
| // Override the default gas limits set in noir-protocol-circuit constants with saner ones | ||
| // Note that these values are not used in noir-land and are only for use in TypeScript code, so we can set them to whatever we want. | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_L2_GAS_LIMIT = MAX_PROCESSABLE_L2_GAS; | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_TEARDOWN_L2_GAS_LIMIT = DEFAULT_L2_GAS_LIMIT / 8; | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_DA_GAS_LIMIT = MAX_PROCESSABLE_DA_GAS_PER_CHECKPOINT / 4; | ||
| // eslint-disable-next-line import-x/export | ||
| export const DEFAULT_TEARDOWN_DA_GAS_LIMIT = DEFAULT_DA_GAS_LIMIT / 2; |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
170279
1.1%2322
0.96%2
100%+ Added
+ Added
- Removed
- Removed
Updated