@aztec/constants 0.0.1-commit.3469e52 → 0.0.1-commit.350e0a4d
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 +30 -2
- package/dest/constants.d.ts.map +1 -1
- package/dest/constants.gen.d.ts +199 -149
- package/dest/constants.gen.d.ts.map +1 -1
- package/dest/constants.gen.js +199 -149
- package/dest/constants.js +30 -7
- package/package.json +10 -3
- package/src/constants.gen.ts +198 -148
- package/src/constants.ts +38 -5
- package/dest/scripts/constants.in.d.ts +0 -2
- package/dest/scripts/constants.in.d.ts.map +0 -1
- package/dest/scripts/constants.in.js +0 -599
package/dest/constants.d.ts
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
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
|
+
/**
|
|
5
|
+
* Network-minimum per-block budget multiplier for L2 gas / tx count. Operators may configure a higher value,
|
|
6
|
+
* but never lower: a node admitting txs under a smaller multiplier would accept work it can never pack.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MIN_PER_BLOCK_ALLOCATION_MULTIPLIER = 1.2;
|
|
9
|
+
/**
|
|
10
|
+
* Network-minimum per-block budget multiplier for DA gas / blob fields. See
|
|
11
|
+
* {@link MIN_PER_BLOCK_ALLOCATION_MULTIPLIER}. The DA-specific operator knob and its runtime enforcement land
|
|
12
|
+
* with the network tx admission limits (#23947); until then this constant is documentation of the network
|
|
13
|
+
* minimum only.
|
|
14
|
+
*/
|
|
15
|
+
export declare const MIN_PER_BLOCK_DA_ALLOCATION_MULTIPLIER = 1.5;
|
|
16
|
+
/**
|
|
17
|
+
* The most DA gas a single tx can consume. A tx's effects cannot encode more than
|
|
18
|
+
* MAX_TX_BLOB_DATA_SIZE_IN_FIELDS fields in a blob, each costing DA_GAS_PER_FIELD, so this is the maximum
|
|
19
|
+
* DA gas a tx could ever use; declaring a higher limit is rejected by inbound validation.
|
|
20
|
+
*/
|
|
21
|
+
export declare const MAX_TX_DA_GAS: number;
|
|
4
22
|
export * from './constants.gen.js';
|
|
5
23
|
/** The initial L2 block number (typed as BlockNumber). This is the first block number in the Aztec L2 chain. */
|
|
6
24
|
export declare const INITIAL_L2_BLOCK_NUM: BlockNumber;
|
|
7
25
|
/** The initial L2 checkpoint number (typed as CheckpointNumber). This is the first checkpoint number in the Aztec L2 chain. */
|
|
8
|
-
export declare const
|
|
26
|
+
export declare const INITIAL_CHECKPOINT_NUMBER: CheckpointNumber;
|
|
9
27
|
/** The block header hash for the genesis block 0. */
|
|
10
28
|
export declare const GENESIS_BLOCK_HEADER_HASH: Fr;
|
|
11
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The RAW DA capacity of a checkpoint's blobs: `BLOBS_PER_CHECKPOINT * FIELDS_PER_BLOB * DA_GAS_PER_FIELD`.
|
|
31
|
+
* This value is NOT attainable by transactions. The blob encoding reserves overhead fields that no tx pays
|
|
32
|
+
* DA gas for: a checkpoint-end marker field plus per-block block-end fields (7 for the first block in a
|
|
33
|
+
* checkpoint, 6 for each subsequent block — see `@aztec/blob-lib` encoding). The true tx-usable DA budget
|
|
34
|
+
* is lower and block-count-dependent; consumers budgeting tx data should subtract the encoding overhead (as
|
|
35
|
+
* `CheckpointBuilder` and the network tx gas limits in `@aztec/stdlib/gas` do) rather than use this value
|
|
36
|
+
* directly.
|
|
37
|
+
*/
|
|
38
|
+
export declare const MAX_PROCESSABLE_DA_GAS_PER_CHECKPOINT = 786432;
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNoRixPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFjcEQsZUFBTyxNQUFNLGtCQUFrQixRQUFZLENBQUM7QUFFNUM7OztHQUdHO0FBQ0gsZUFBTyxNQUFNLG1DQUFtQyxNQUFNLENBQUM7QUFFdkQ7Ozs7O0dBS0c7QUFDSCxlQUFPLE1BQU0sc0NBQXNDLE1BQU0sQ0FBQztBQUUxRDs7OztHQUlHO0FBQ0gsZUFBTyxNQUFNLGFBQWEsUUFBcUQsQ0FBQztBQUloRixjQUFjLG9CQUFvQixDQUFDO0FBRW5DLGdIQUFnSDtBQUVoSCxlQUFPLE1BQU0sb0JBQW9CLEVBQUUsV0FBbUQsQ0FBQztBQUV2RiwrSEFBK0g7QUFFL0gsZUFBTyxNQUFNLHlCQUF5QixFQUFFLGdCQUErRCxDQUFDO0FBRXhHLHFEQUFxRDtBQUVyRCxlQUFPLE1BQU0seUJBQXlCLElBQTJDLENBQUM7QUFFbEY7Ozs7Ozs7O0dBUUc7QUFFSCxlQUFPLE1BQU0scUNBQXFDLFNBQTRDLENBQUMifQ==
|
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,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,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;AAcpD,eAAO,MAAM,kBAAkB,QAAY,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,mCAAmC,MAAM,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,MAAM,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAqD,CAAC;AAIhF,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;AAElF;;;;;;;;GAQG;AAEH,eAAO,MAAM,qCAAqC,SAA4C,CAAC"}
|