@aztec/constants 3.0.3-rc.3 → 4.0.0-devnet.1-patch.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.
- package/dest/constants.d.ts +4 -2
- package/dest/constants.d.ts.map +1 -1
- package/dest/constants.gen.d.ts +106 -117
- package/dest/constants.gen.d.ts.map +1 -1
- package/dest/constants.gen.js +105 -116
- package/dest/constants.js +7 -5
- package/dest/scripts/constants.in.js +19 -12
- package/package.json +10 -3
- package/src/constants.gen.ts +105 -116
- package/src/constants.ts +10 -4
package/dest/constants.gen.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// GENERATED FILE - DO NOT EDIT, RUN yarn remake-constants
|
|
2
2
|
export const MAX_FIELD_VALUE = 21888242871839275222246405745257275088548364400416034343698204186575808495616n;
|
|
3
|
+
export const MAX_ETH_ADDRESS_BIT_SIZE = 160;
|
|
4
|
+
export const MAX_ETH_ADDRESS_VALUE = 1461501637330902918203684832716283019655932542975n;
|
|
3
5
|
export const MAX_U64_VALUE = 18446744073709551615n;
|
|
4
6
|
export const MAX_U32_VALUE = 4294967295;
|
|
5
7
|
export const MAX_FR_CALLDATA_TO_ALL_ENQUEUED_CALLS = 16000;
|
|
@@ -10,6 +12,7 @@ export const NOTE_HASH_TREE_HEIGHT = 42;
|
|
|
10
12
|
export const PUBLIC_DATA_TREE_HEIGHT = 40;
|
|
11
13
|
export const NULLIFIER_TREE_HEIGHT = 42;
|
|
12
14
|
export const L1_TO_L2_MSG_TREE_HEIGHT = 36;
|
|
15
|
+
export const OUT_HASH_TREE_HEIGHT = 5;
|
|
13
16
|
export const ARTIFACT_FUNCTION_TREE_MAX_HEIGHT = 7;
|
|
14
17
|
export const NULLIFIER_TREE_ID = 0;
|
|
15
18
|
export const NOTE_HASH_TREE_ID = 1;
|
|
@@ -18,6 +21,7 @@ export const L1_TO_L2_MESSAGE_TREE_ID = 3;
|
|
|
18
21
|
export const ARCHIVE_TREE_ID = 4;
|
|
19
22
|
export const NOTE_HASH_TREE_LEAF_COUNT = 4398046511104;
|
|
20
23
|
export const L1_TO_L2_MSG_TREE_LEAF_COUNT = 68719476736;
|
|
24
|
+
export const OUT_HASH_TREE_LEAF_COUNT = 32;
|
|
21
25
|
export const NOTE_HASH_SUBTREE_HEIGHT = 6;
|
|
22
26
|
export const NULLIFIER_SUBTREE_HEIGHT = 6;
|
|
23
27
|
export const PUBLIC_DATA_SUBTREE_HEIGHT = 6;
|
|
@@ -35,26 +39,26 @@ export const MAX_TOTAL_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX = 64;
|
|
|
35
39
|
export const MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX = 63;
|
|
36
40
|
export const MAX_PUBLIC_DATA_READS_PER_TX = 64;
|
|
37
41
|
export const MAX_L2_TO_L1_MSGS_PER_TX = 8;
|
|
42
|
+
export const MAX_PRIVATE_LOGS_PER_TX = 64;
|
|
43
|
+
export const MAX_CONTRACT_CLASS_LOGS_PER_TX = 1;
|
|
38
44
|
export const MAX_NOTE_HASH_READ_REQUESTS_PER_TX = 64;
|
|
39
45
|
export const MAX_NULLIFIER_READ_REQUESTS_PER_TX = 64;
|
|
40
46
|
export const MAX_KEY_VALIDATION_REQUESTS_PER_TX = 64;
|
|
41
|
-
export const MAX_PRIVATE_LOGS_PER_TX = 64;
|
|
42
|
-
export const MAX_CONTRACT_CLASS_LOGS_PER_TX = 1;
|
|
43
47
|
export const MAX_NOTE_HASHES_PER_CALL = 16;
|
|
44
48
|
export const MAX_NULLIFIERS_PER_CALL = 16;
|
|
45
49
|
export const MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL = 8;
|
|
46
50
|
export const MAX_ENQUEUED_CALLS_PER_CALL = 32;
|
|
47
51
|
export const MAX_L2_TO_L1_MSGS_PER_CALL = 8;
|
|
52
|
+
export const MAX_PRIVATE_LOGS_PER_CALL = 16;
|
|
53
|
+
export const MAX_CONTRACT_CLASS_LOGS_PER_CALL = 1;
|
|
48
54
|
export const MAX_NOTE_HASH_READ_REQUESTS_PER_CALL = 16;
|
|
49
55
|
export const MAX_NULLIFIER_READ_REQUESTS_PER_CALL = 16;
|
|
50
56
|
export const MAX_KEY_VALIDATION_REQUESTS_PER_CALL = 16;
|
|
51
|
-
export const MAX_PRIVATE_LOGS_PER_CALL = 16;
|
|
52
|
-
export const MAX_CONTRACT_CLASS_LOGS_PER_CALL = 1;
|
|
53
57
|
export const NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP = 1024;
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
57
|
-
export const
|
|
58
|
+
export const PRIVATE_KERNEL_INIT_VK_INDEX = 0;
|
|
59
|
+
export const PRIVATE_KERNEL_INNER_VK_INDEX = 1;
|
|
60
|
+
export const PRIVATE_KERNEL_TAIL_VK_INDEX = 2;
|
|
61
|
+
export const PRIVATE_KERNEL_TAIL_TO_PUBLIC_VK_INDEX = 3;
|
|
58
62
|
export const HIDING_KERNEL_TO_ROLLUP_VK_INDEX = 4;
|
|
59
63
|
export const HIDING_KERNEL_TO_PUBLIC_VK_INDEX = 5;
|
|
60
64
|
export const PUBLIC_CHONK_VERIFIER_VK_INDEX = 6;
|
|
@@ -74,47 +78,49 @@ export const CHECKPOINT_MERGE_ROLLUP_VK_INDEX = 19;
|
|
|
74
78
|
export const ROOT_ROLLUP_VK_INDEX = 20;
|
|
75
79
|
export const PARITY_BASE_VK_INDEX = 21;
|
|
76
80
|
export const PARITY_ROOT_VK_INDEX = 22;
|
|
77
|
-
export const
|
|
81
|
+
export const PRIVATE_KERNEL_RESET_VK_INDEX = 23;
|
|
78
82
|
export const GLOBAL_INDEX_NOTE_HASH_READ_REQUEST_OFFSET = 0;
|
|
79
83
|
export const GLOBAL_INDEX_NULLIFIER_READ_REQUEST_OFFSET = 16;
|
|
80
84
|
export const GLOBAL_INDEX_NOTE_HASH_OFFSET = 32;
|
|
81
85
|
export const GLOBAL_INDEX_NULLIFIER_OFFSET = 48;
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
86
|
+
export const GLOBAL_INDEX_PRIVATE_CALL_REQUEST_START_OFFSET = 64;
|
|
87
|
+
export const GLOBAL_INDEX_PRIVATE_CALL_REQUEST_END_OFFSET = 72;
|
|
88
|
+
export const GLOBAL_INDEX_PUBLIC_CALL_REQUEST_OFFSET = 80;
|
|
89
|
+
export const GLOBAL_INDEX_L2_TO_L1_MSG_OFFSET = 112;
|
|
90
|
+
export const GLOBAL_INDEX_PRIVATE_LOG_OFFSET = 120;
|
|
91
|
+
export const GLOBAL_INDEX_CONTRACT_CLASS_LOG_HASH_OFFSET = 136;
|
|
92
|
+
export const GLOBAL_INDEX_CONTRACT_MIN_REVERTIBLE_SIDE_EFFECT_COUNTER_OFFSET = 137;
|
|
93
|
+
export const TOTAL_COUNTED_SIDE_EFFECTS_PER_CALL = 138;
|
|
89
94
|
export const FUNCTION_SELECTOR_NUM_BYTES = 4;
|
|
90
95
|
export const INITIAL_CHECKPOINT_NUMBER = 1;
|
|
91
96
|
export const INITIAL_L2_BLOCK_NUM = 1;
|
|
92
97
|
export const FIELDS_PER_BLOB = 4096;
|
|
93
98
|
export const BLOBS_PER_CHECKPOINT = 6;
|
|
94
|
-
export const
|
|
99
|
+
export const MAX_CHECKPOINTS_PER_EPOCH = 32;
|
|
95
100
|
export const MAX_INCLUDE_BY_TIMESTAMP_DURATION = 86400;
|
|
96
|
-
export const GENESIS_BLOCK_HEADER_HASH =
|
|
97
|
-
export const GENESIS_ARCHIVE_ROOT =
|
|
101
|
+
export const GENESIS_BLOCK_HEADER_HASH = 21694244557328181932449230888455310614586084993178835904749768133365362325861n;
|
|
102
|
+
export const GENESIS_ARCHIVE_ROOT = 9682850228538071369704502076456077473410427336083826595120404283897422804423n;
|
|
103
|
+
export const EMPTY_EPOCH_OUT_HASH = 355785372471781095838790036702437931769306153278986832745847530947941691539n;
|
|
98
104
|
export const MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS = 3000;
|
|
99
105
|
export const MAX_PACKED_BYTECODE_SIZE_PER_PRIVATE_FUNCTION_IN_FIELDS = 3000;
|
|
100
106
|
export const MAX_PACKED_BYTECODE_SIZE_PER_UTILITY_FUNCTION_IN_FIELDS = 3000;
|
|
101
107
|
export const CLASS_REGISTRY_PRIVATE_FUNCTION_BROADCASTED_ADDITIONAL_FIELDS = 23;
|
|
102
108
|
export const CLASS_REGISTRY_UTILITY_FUNCTION_BROADCASTED_ADDITIONAL_FIELDS = 14;
|
|
103
|
-
export const CONTRACT_CLASS_PUBLISHED_MAGIC_VALUE =
|
|
104
|
-
export const CONTRACT_CLASS_REGISTRY_PRIVATE_FUNCTION_BROADCASTED_MAGIC_VALUE =
|
|
105
|
-
export const CONTRACT_CLASS_REGISTRY_UTILITY_FUNCTION_BROADCASTED_MAGIC_VALUE =
|
|
106
|
-
export const CONTRACT_INSTANCE_PUBLISHED_MAGIC_VALUE =
|
|
107
|
-
export const CONTRACT_INSTANCE_UPDATED_MAGIC_VALUE =
|
|
109
|
+
export const CONTRACT_CLASS_PUBLISHED_MAGIC_VALUE = 14907836659448373306373608164128296596488873008270905914742877230397948162628n;
|
|
110
|
+
export const CONTRACT_CLASS_REGISTRY_PRIVATE_FUNCTION_BROADCASTED_MAGIC_VALUE = 6632427679359753950122686582223287785801228472790519808071945107172278003224n;
|
|
111
|
+
export const CONTRACT_CLASS_REGISTRY_UTILITY_FUNCTION_BROADCASTED_MAGIC_VALUE = 2863388930963370662477859081312917957786876946407365497018765359301074232169n;
|
|
112
|
+
export const CONTRACT_INSTANCE_PUBLISHED_MAGIC_VALUE = 10538216027419913765597387738085647348651103543680388181336823392401502757423n;
|
|
113
|
+
export const CONTRACT_INSTANCE_UPDATED_MAGIC_VALUE = 20721543224513346060908370400407150739273836456436647488068002302723900469047n;
|
|
108
114
|
export const MAX_PROTOCOL_CONTRACTS = 11;
|
|
109
115
|
export const CANONICAL_AUTH_REGISTRY_ADDRESS = 1;
|
|
110
116
|
export const CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS = 2;
|
|
111
117
|
export const CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS = 3;
|
|
112
118
|
export const MULTI_CALL_ENTRYPOINT_ADDRESS = 4;
|
|
113
119
|
export const FEE_JUICE_ADDRESS = 5;
|
|
114
|
-
export const
|
|
115
|
-
export const SIDE_EFFECT_MASKING_ADDRESS =
|
|
120
|
+
export const PUBLIC_CHECKS_ADDRESS = 6;
|
|
121
|
+
export const SIDE_EFFECT_MASKING_ADDRESS = 19523154334483583633304358390644137470227519736821975910774528428729027989987n;
|
|
116
122
|
export const NULL_MSG_SENDER_CONTRACT_ADDRESS = 21888242871839275222246405745257275088548364400416034343698204186575808495616n;
|
|
117
|
-
export const CONTRACT_CLASS_REGISTRY_BYTECODE_CAPSULE_SLOT =
|
|
123
|
+
export const CONTRACT_CLASS_REGISTRY_BYTECODE_CAPSULE_SLOT = 14193106819744442689484501689686180698286338820089744102289275815863062044599n;
|
|
118
124
|
export const FEE_JUICE_BALANCES_SLOT = 1;
|
|
119
125
|
export const UPDATED_CLASS_IDS_SLOT = 1;
|
|
120
126
|
export const DEFAULT_NPK_M_X = 582240093077765400562621227108555700500271598878376310175765873770292988861n;
|
|
@@ -130,7 +136,6 @@ export const GAS_FEES_LENGTH = 2;
|
|
|
130
136
|
export const GAS_LENGTH = 2;
|
|
131
137
|
export const GAS_SETTINGS_LENGTH = 8;
|
|
132
138
|
export const CALL_CONTEXT_LENGTH = 4;
|
|
133
|
-
export const CONTENT_COMMITMENT_LENGTH = 3;
|
|
134
139
|
export const CONTRACT_INSTANCE_LENGTH = 16;
|
|
135
140
|
export const CONTRACT_STORAGE_READ_LENGTH = 3;
|
|
136
141
|
export const CONTRACT_STORAGE_UPDATE_REQUEST_LENGTH = 3;
|
|
@@ -191,16 +196,15 @@ export const TX_REQUEST_LENGTH = 15;
|
|
|
191
196
|
export const TOTAL_FEES_LENGTH = 1;
|
|
192
197
|
export const TOTAL_MANA_USED_LENGTH = 1;
|
|
193
198
|
export const BLOCK_HEADER_LENGTH = 22;
|
|
194
|
-
export const BLOCK_HEADER_LENGTH_BYTES = 616;
|
|
195
199
|
export const CHECKPOINT_HEADER_LENGTH = 12;
|
|
196
200
|
export const CHECKPOINT_HEADER_SIZE_IN_BYTES = 316;
|
|
197
201
|
export const SCOPED_READ_REQUEST_LEN = 3;
|
|
198
202
|
export const PRIVATE_CIRCUIT_PUBLIC_INPUTS_LENGTH = 902;
|
|
199
203
|
export const PRIVATE_CONTEXT_INPUTS_LENGTH = 37;
|
|
200
204
|
export const FEE_RECIPIENT_LENGTH = 2;
|
|
201
|
-
export const HIDING_KERNEL_IO_PUBLIC_INPUTS_SIZE =
|
|
202
|
-
export const PAIRING_POINTS_SIZE =
|
|
203
|
-
export const IPA_CLAIM_SIZE =
|
|
205
|
+
export const HIDING_KERNEL_IO_PUBLIC_INPUTS_SIZE = 28;
|
|
206
|
+
export const PAIRING_POINTS_SIZE = 8;
|
|
207
|
+
export const IPA_CLAIM_SIZE = 6;
|
|
204
208
|
export const PUBLIC_DATA_READ_LENGTH = 3;
|
|
205
209
|
export const PRIVATE_VALIDATION_REQUESTS_LENGTH = 771;
|
|
206
210
|
export const PRIVATE_TO_ROLLUP_ACCUMULATED_DATA_LENGTH = 1371;
|
|
@@ -221,18 +225,18 @@ export const BLOCK_CONSTANT_DATA_LENGTH = 16;
|
|
|
221
225
|
export const CHECKPOINT_CONSTANT_DATA_LENGTH = 10;
|
|
222
226
|
export const EPOCH_CONSTANT_DATA_LENGTH = 5;
|
|
223
227
|
export const TX_ROLLUP_PUBLIC_INPUTS_LENGTH = 52;
|
|
224
|
-
export const BLOCK_ROLLUP_PUBLIC_INPUTS_LENGTH =
|
|
225
|
-
export const CHECKPOINT_ROLLUP_PUBLIC_INPUTS_LENGTH =
|
|
226
|
-
export const ROOT_ROLLUP_PUBLIC_INPUTS_LENGTH =
|
|
228
|
+
export const BLOCK_ROLLUP_PUBLIC_INPUTS_LENGTH = 56;
|
|
229
|
+
export const CHECKPOINT_ROLLUP_PUBLIC_INPUTS_LENGTH = 149;
|
|
230
|
+
export const ROOT_ROLLUP_PUBLIC_INPUTS_LENGTH = 111;
|
|
227
231
|
export const NUM_MSGS_PER_BASE_PARITY = 256;
|
|
228
232
|
export const NUM_BASE_PARITY_PER_ROOT_PARITY = 4;
|
|
229
|
-
export const RECURSIVE_PROOF_LENGTH =
|
|
230
|
-
export const NESTED_RECURSIVE_PROOF_LENGTH =
|
|
233
|
+
export const RECURSIVE_PROOF_LENGTH = 449;
|
|
234
|
+
export const NESTED_RECURSIVE_PROOF_LENGTH = 449;
|
|
231
235
|
export const IPA_PROOF_LENGTH = 64;
|
|
232
|
-
export const ULTRA_KECCAK_PROOF_LENGTH =
|
|
233
|
-
export const RECURSIVE_ROLLUP_HONK_PROOF_LENGTH =
|
|
234
|
-
export const NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH =
|
|
235
|
-
export const CHONK_PROOF_LENGTH =
|
|
236
|
+
export const ULTRA_KECCAK_PROOF_LENGTH = 331;
|
|
237
|
+
export const RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 519;
|
|
238
|
+
export const NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 519;
|
|
239
|
+
export const CHONK_PROOF_LENGTH = 1935;
|
|
236
240
|
export const ULTRA_VK_LENGTH_IN_FIELDS = 115;
|
|
237
241
|
export const MEGA_VK_LENGTH_IN_FIELDS = 127;
|
|
238
242
|
export const CHONK_VK_LENGTH_IN_FIELDS = 127;
|
|
@@ -249,9 +253,9 @@ export const MEM_TAG_U128 = 6;
|
|
|
249
253
|
export const AVM_HIGHEST_MEM_ADDRESS = 4294967295;
|
|
250
254
|
export const AVM_MEMORY_NUM_BITS = 32;
|
|
251
255
|
export const AVM_MEMORY_SIZE = 4294967296;
|
|
252
|
-
export const AVM_BITWISE_AND_OP_ID =
|
|
253
|
-
export const AVM_BITWISE_OR_OP_ID =
|
|
254
|
-
export const AVM_BITWISE_XOR_OP_ID =
|
|
256
|
+
export const AVM_BITWISE_AND_OP_ID = 1;
|
|
257
|
+
export const AVM_BITWISE_OR_OP_ID = 2;
|
|
258
|
+
export const AVM_BITWISE_XOR_OP_ID = 4;
|
|
255
259
|
export const AVM_KECCAKF1600_NUM_ROUNDS = 24;
|
|
256
260
|
export const AVM_KECCAKF1600_STATE_SIZE = 25;
|
|
257
261
|
export const AVM_TX_PHASE_VALUE_START = 0;
|
|
@@ -379,7 +383,7 @@ export const AVM_PUBLIC_INPUTS_REVERTED_ROW_IDX = 4684;
|
|
|
379
383
|
export const AVM_PUBLIC_INPUTS_COLUMNS_MAX_LENGTH = 4685;
|
|
380
384
|
export const AVM_NUM_PUBLIC_INPUT_COLUMNS = 4;
|
|
381
385
|
export const AVM_PUBLIC_INPUTS_COLUMNS_COMBINED_LENGTH = 18740;
|
|
382
|
-
export const AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED =
|
|
386
|
+
export const AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED = 16200;
|
|
383
387
|
export const AVM_V2_VERIFICATION_KEY_LENGTH_IN_FIELDS_PADDED = 1000;
|
|
384
388
|
export const AVM_MAX_PROCESSABLE_L2_GAS = 6000000;
|
|
385
389
|
export const DA_BYTES_PER_FIELD = 32;
|
|
@@ -412,7 +416,7 @@ export const AVM_ADD_BASE_L2_GAS = 12;
|
|
|
412
416
|
export const AVM_SUB_BASE_L2_GAS = 12;
|
|
413
417
|
export const AVM_MUL_BASE_L2_GAS = 27;
|
|
414
418
|
export const AVM_DIV_BASE_L2_GAS = 27;
|
|
415
|
-
export const AVM_FDIV_BASE_L2_GAS =
|
|
419
|
+
export const AVM_FDIV_BASE_L2_GAS = 225;
|
|
416
420
|
export const AVM_EQ_BASE_L2_GAS = 12;
|
|
417
421
|
export const AVM_LT_BASE_L2_GAS = 42;
|
|
418
422
|
export const AVM_LTE_BASE_L2_GAS = 42;
|
|
@@ -434,25 +438,25 @@ export const AVM_INTERNALCALL_BASE_L2_GAS = 9;
|
|
|
434
438
|
export const AVM_INTERNALRETURN_BASE_L2_GAS = 9;
|
|
435
439
|
export const AVM_SET_BASE_L2_GAS = 27;
|
|
436
440
|
export const AVM_MOV_BASE_L2_GAS = 12;
|
|
437
|
-
export const AVM_SLOAD_BASE_L2_GAS =
|
|
438
|
-
export const AVM_SSTORE_BASE_L2_GAS =
|
|
439
|
-
export const AVM_NOTEHASHEXISTS_BASE_L2_GAS =
|
|
440
|
-
export const AVM_EMITNOTEHASH_BASE_L2_GAS =
|
|
441
|
-
export const AVM_NULLIFIEREXISTS_BASE_L2_GAS =
|
|
442
|
-
export const AVM_EMITNULLIFIER_BASE_L2_GAS =
|
|
443
|
-
export const AVM_L1TOL2MSGEXISTS_BASE_L2_GAS =
|
|
444
|
-
export const AVM_GETCONTRACTINSTANCE_BASE_L2_GAS =
|
|
441
|
+
export const AVM_SLOAD_BASE_L2_GAS = 1290;
|
|
442
|
+
export const AVM_SSTORE_BASE_L2_GAS = 33140;
|
|
443
|
+
export const AVM_NOTEHASHEXISTS_BASE_L2_GAS = 504;
|
|
444
|
+
export const AVM_EMITNOTEHASH_BASE_L2_GAS = 19275;
|
|
445
|
+
export const AVM_NULLIFIEREXISTS_BASE_L2_GAS = 903;
|
|
446
|
+
export const AVM_EMITNULLIFIER_BASE_L2_GAS = 30800;
|
|
447
|
+
export const AVM_L1TOL2MSGEXISTS_BASE_L2_GAS = 540;
|
|
448
|
+
export const AVM_GETCONTRACTINSTANCE_BASE_L2_GAS = 6108;
|
|
445
449
|
export const AVM_EMITUNENCRYPTEDLOG_BASE_L2_GAS = 15;
|
|
446
|
-
export const AVM_SENDL2TOL1MSG_BASE_L2_GAS =
|
|
447
|
-
export const AVM_CALL_BASE_L2_GAS =
|
|
448
|
-
export const AVM_STATICCALL_BASE_L2_GAS =
|
|
450
|
+
export const AVM_SENDL2TOL1MSG_BASE_L2_GAS = 478;
|
|
451
|
+
export const AVM_CALL_BASE_L2_GAS = 9936;
|
|
452
|
+
export const AVM_STATICCALL_BASE_L2_GAS = 9936;
|
|
449
453
|
export const AVM_RETURN_BASE_L2_GAS = 9;
|
|
450
454
|
export const AVM_REVERT_BASE_L2_GAS = 9;
|
|
451
455
|
export const AVM_DEBUGLOG_BASE_L2_GAS = 9;
|
|
452
|
-
export const AVM_POSEIDON2_BASE_L2_GAS =
|
|
456
|
+
export const AVM_POSEIDON2_BASE_L2_GAS = 360;
|
|
453
457
|
export const AVM_SHA256COMPRESSION_BASE_L2_GAS = 12288;
|
|
454
458
|
export const AVM_KECCAKF1600_BASE_L2_GAS = 58176;
|
|
455
|
-
export const AVM_ECADD_BASE_L2_GAS =
|
|
459
|
+
export const AVM_ECADD_BASE_L2_GAS = 270;
|
|
456
460
|
export const AVM_TORADIXBE_BASE_L2_GAS = 24;
|
|
457
461
|
export const AVM_CALLDATACOPY_DYN_L2_GAS = 3;
|
|
458
462
|
export const AVM_RETURNDATACOPY_DYN_L2_GAS = 3;
|
|
@@ -465,9 +469,9 @@ export const AVM_SENDL2TOL1MSG_BASE_DA_GAS = 512;
|
|
|
465
469
|
export const AVM_EMITUNENCRYPTEDLOG_BASE_DA_GAS = 1024;
|
|
466
470
|
export const AVM_EMITUNENCRYPTEDLOG_DYN_DA_GAS = 512;
|
|
467
471
|
export const AVM_SSTORE_DYN_DA_GAS = 1024;
|
|
468
|
-
export const TX_START_PREFIX =
|
|
469
|
-
export const BLOCK_END_PREFIX =
|
|
470
|
-
export const CHECKPOINT_END_PREFIX =
|
|
472
|
+
export const TX_START_PREFIX = 2624615704;
|
|
473
|
+
export const BLOCK_END_PREFIX = 3951939007;
|
|
474
|
+
export const CHECKPOINT_END_PREFIX = 2355328067;
|
|
471
475
|
export const PROOF_TYPE_HONK = 0;
|
|
472
476
|
export const PROOF_TYPE_OINK = 1;
|
|
473
477
|
export const PROOF_TYPE_HN = 2;
|
|
@@ -497,59 +501,44 @@ export const GRUMPKIN_ONE_X = 1;
|
|
|
497
501
|
export const GRUMPKIN_ONE_Y = 17631683881184975370165255887551781615748388533673675138860n;
|
|
498
502
|
export const DEFAULT_MAX_DEBUG_LOG_MEMORY_READS = 125000;
|
|
499
503
|
export var GeneratorIndex = /*#__PURE__*/ function(GeneratorIndex) {
|
|
500
|
-
GeneratorIndex[GeneratorIndex["NOTE_HASH"] =
|
|
501
|
-
GeneratorIndex[GeneratorIndex["NOTE_HASH_NONCE"] =
|
|
502
|
-
GeneratorIndex[GeneratorIndex["UNIQUE_NOTE_HASH"] =
|
|
503
|
-
GeneratorIndex[GeneratorIndex["SILOED_NOTE_HASH"] =
|
|
504
|
-
GeneratorIndex[GeneratorIndex["
|
|
505
|
-
GeneratorIndex[GeneratorIndex["
|
|
506
|
-
GeneratorIndex[GeneratorIndex["
|
|
507
|
-
GeneratorIndex[GeneratorIndex["
|
|
508
|
-
GeneratorIndex[GeneratorIndex["
|
|
509
|
-
GeneratorIndex[GeneratorIndex["
|
|
510
|
-
GeneratorIndex[GeneratorIndex["
|
|
511
|
-
GeneratorIndex[GeneratorIndex["
|
|
512
|
-
GeneratorIndex[GeneratorIndex["
|
|
513
|
-
GeneratorIndex[GeneratorIndex["
|
|
514
|
-
GeneratorIndex[GeneratorIndex["
|
|
515
|
-
GeneratorIndex[GeneratorIndex["
|
|
516
|
-
GeneratorIndex[GeneratorIndex["
|
|
517
|
-
GeneratorIndex[GeneratorIndex["
|
|
518
|
-
GeneratorIndex[GeneratorIndex["
|
|
519
|
-
GeneratorIndex[GeneratorIndex["
|
|
520
|
-
GeneratorIndex[GeneratorIndex["
|
|
521
|
-
GeneratorIndex[GeneratorIndex["
|
|
522
|
-
GeneratorIndex[GeneratorIndex["
|
|
523
|
-
GeneratorIndex[GeneratorIndex["
|
|
524
|
-
GeneratorIndex[GeneratorIndex["
|
|
525
|
-
GeneratorIndex[GeneratorIndex["
|
|
526
|
-
GeneratorIndex[GeneratorIndex["
|
|
527
|
-
GeneratorIndex[GeneratorIndex["
|
|
528
|
-
GeneratorIndex[GeneratorIndex["
|
|
529
|
-
GeneratorIndex[GeneratorIndex["
|
|
530
|
-
GeneratorIndex[GeneratorIndex["
|
|
531
|
-
GeneratorIndex[GeneratorIndex["
|
|
532
|
-
GeneratorIndex[GeneratorIndex["
|
|
533
|
-
GeneratorIndex[GeneratorIndex["
|
|
534
|
-
GeneratorIndex[GeneratorIndex["
|
|
535
|
-
GeneratorIndex[GeneratorIndex["
|
|
536
|
-
GeneratorIndex[GeneratorIndex["
|
|
537
|
-
GeneratorIndex[GeneratorIndex["
|
|
538
|
-
GeneratorIndex[GeneratorIndex["
|
|
539
|
-
GeneratorIndex[GeneratorIndex["AUTHWIT_NULLIFIER"] = 47] = "AUTHWIT_NULLIFIER";
|
|
540
|
-
GeneratorIndex[GeneratorIndex["NSK_M"] = 48] = "NSK_M";
|
|
541
|
-
GeneratorIndex[GeneratorIndex["IVSK_M"] = 49] = "IVSK_M";
|
|
542
|
-
GeneratorIndex[GeneratorIndex["OVSK_M"] = 50] = "OVSK_M";
|
|
543
|
-
GeneratorIndex[GeneratorIndex["TSK_M"] = 51] = "TSK_M";
|
|
544
|
-
GeneratorIndex[GeneratorIndex["PUBLIC_KEYS_HASH"] = 52] = "PUBLIC_KEYS_HASH";
|
|
545
|
-
GeneratorIndex[GeneratorIndex["NOTE_NULLIFIER"] = 53] = "NOTE_NULLIFIER";
|
|
546
|
-
GeneratorIndex[GeneratorIndex["SYMMETRIC_KEY"] = 54] = "SYMMETRIC_KEY";
|
|
547
|
-
GeneratorIndex[GeneratorIndex["SYMMETRIC_KEY_2"] = 55] = "SYMMETRIC_KEY_2";
|
|
548
|
-
GeneratorIndex[GeneratorIndex["PUBLIC_TX_HASH"] = 56] = "PUBLIC_TX_HASH";
|
|
549
|
-
GeneratorIndex[GeneratorIndex["PRIVATE_TX_HASH"] = 57] = "PRIVATE_TX_HASH";
|
|
550
|
-
GeneratorIndex[GeneratorIndex["PARTIAL_NOTE_VALIDITY_COMMITMENT"] = 58] = "PARTIAL_NOTE_VALIDITY_COMMITMENT";
|
|
551
|
-
GeneratorIndex[GeneratorIndex["EVENT_COMMITMENT"] = 59] = "EVENT_COMMITMENT";
|
|
552
|
-
GeneratorIndex[GeneratorIndex["PUBLIC_BYTECODE"] = 60] = "PUBLIC_BYTECODE";
|
|
553
|
-
GeneratorIndex[GeneratorIndex["PROTOCOL_CONTRACTS"] = 61] = "PROTOCOL_CONTRACTS";
|
|
504
|
+
GeneratorIndex[GeneratorIndex["NOTE_HASH"] = 116501019] = "NOTE_HASH";
|
|
505
|
+
GeneratorIndex[GeneratorIndex["NOTE_HASH_NONCE"] = 1721808740] = "NOTE_HASH_NONCE";
|
|
506
|
+
GeneratorIndex[GeneratorIndex["UNIQUE_NOTE_HASH"] = 226850429] = "UNIQUE_NOTE_HASH";
|
|
507
|
+
GeneratorIndex[GeneratorIndex["SILOED_NOTE_HASH"] = 3361878420] = "SILOED_NOTE_HASH";
|
|
508
|
+
GeneratorIndex[GeneratorIndex["NOTE_NULLIFIER"] = 50789342] = "NOTE_NULLIFIER";
|
|
509
|
+
GeneratorIndex[GeneratorIndex["MESSAGE_NULLIFIER"] = 3754509616] = "MESSAGE_NULLIFIER";
|
|
510
|
+
GeneratorIndex[GeneratorIndex["SILOED_NULLIFIER"] = 57496191] = "SILOED_NULLIFIER";
|
|
511
|
+
GeneratorIndex[GeneratorIndex["PRIVATE_LOG_FIRST_FIELD"] = 2769976252] = "PRIVATE_LOG_FIRST_FIELD";
|
|
512
|
+
GeneratorIndex[GeneratorIndex["PUBLIC_LEAF_SLOT"] = 1247650290] = "PUBLIC_LEAF_SLOT";
|
|
513
|
+
GeneratorIndex[GeneratorIndex["PUBLIC_STORAGE_MAP_SLOT"] = 4015149901] = "PUBLIC_STORAGE_MAP_SLOT";
|
|
514
|
+
GeneratorIndex[GeneratorIndex["PRIVATE_FUNCTION_LEAF"] = 1389398688] = "PRIVATE_FUNCTION_LEAF";
|
|
515
|
+
GeneratorIndex[GeneratorIndex["PUBLIC_BYTECODE"] = 260313585] = "PUBLIC_BYTECODE";
|
|
516
|
+
GeneratorIndex[GeneratorIndex["CONTRACT_CLASS_ID"] = 3923495515] = "CONTRACT_CLASS_ID";
|
|
517
|
+
GeneratorIndex[GeneratorIndex["INITIALIZER"] = 385396519] = "INITIALIZER";
|
|
518
|
+
GeneratorIndex[GeneratorIndex["NHK_M"] = 242137788] = "NHK_M";
|
|
519
|
+
GeneratorIndex[GeneratorIndex["IVSK_M"] = 2747825907] = "IVSK_M";
|
|
520
|
+
GeneratorIndex[GeneratorIndex["OVSK_M"] = 4272201051] = "OVSK_M";
|
|
521
|
+
GeneratorIndex[GeneratorIndex["TSK_M"] = 1546190975] = "TSK_M";
|
|
522
|
+
GeneratorIndex[GeneratorIndex["PUBLIC_KEYS_HASH"] = 777457226] = "PUBLIC_KEYS_HASH";
|
|
523
|
+
GeneratorIndex[GeneratorIndex["PARTIAL_ADDRESS"] = 2103633018] = "PARTIAL_ADDRESS";
|
|
524
|
+
GeneratorIndex[GeneratorIndex["CONTRACT_ADDRESS_V1"] = 1788365517] = "CONTRACT_ADDRESS_V1";
|
|
525
|
+
GeneratorIndex[GeneratorIndex["BLOCK_HEADER_HASH"] = 4195546849] = "BLOCK_HEADER_HASH";
|
|
526
|
+
GeneratorIndex[GeneratorIndex["TX_REQUEST"] = 3763737512] = "TX_REQUEST";
|
|
527
|
+
GeneratorIndex[GeneratorIndex["PUBLIC_TX_HASH"] = 1630108851] = "PUBLIC_TX_HASH";
|
|
528
|
+
GeneratorIndex[GeneratorIndex["PRIVATE_TX_HASH"] = 1971680439] = "PRIVATE_TX_HASH";
|
|
529
|
+
GeneratorIndex[GeneratorIndex["PUBLIC_CALLDATA"] = 2760353947] = "PUBLIC_CALLDATA";
|
|
530
|
+
GeneratorIndex[GeneratorIndex["FUNCTION_ARGS"] = 3576554347] = "FUNCTION_ARGS";
|
|
531
|
+
GeneratorIndex[GeneratorIndex["PROTOCOL_CONTRACTS"] = 3904434327] = "PROTOCOL_CONTRACTS";
|
|
532
|
+
GeneratorIndex[GeneratorIndex["EVENT_COMMITMENT"] = 2517418573] = "EVENT_COMMITMENT";
|
|
533
|
+
GeneratorIndex[GeneratorIndex["AUTHWIT_INNER"] = 221354163] = "AUTHWIT_INNER";
|
|
534
|
+
GeneratorIndex[GeneratorIndex["AUTHWIT_OUTER"] = 3283595782] = "AUTHWIT_OUTER";
|
|
535
|
+
GeneratorIndex[GeneratorIndex["AUTHWIT_NULLIFIER"] = 1239150694] = "AUTHWIT_NULLIFIER";
|
|
536
|
+
GeneratorIndex[GeneratorIndex["SYMMETRIC_KEY"] = 3882206064] = "SYMMETRIC_KEY";
|
|
537
|
+
GeneratorIndex[GeneratorIndex["SYMMETRIC_KEY_2"] = 4129434989] = "SYMMETRIC_KEY_2";
|
|
538
|
+
GeneratorIndex[GeneratorIndex["PARTIAL_NOTE_VALIDITY_COMMITMENT"] = 623934423] = "PARTIAL_NOTE_VALIDITY_COMMITMENT";
|
|
539
|
+
GeneratorIndex[GeneratorIndex["INITIALIZATION_NULLIFIER"] = 1653084894] = "INITIALIZATION_NULLIFIER";
|
|
540
|
+
GeneratorIndex[GeneratorIndex["SECRET_HASH"] = 4199652938] = "SECRET_HASH";
|
|
541
|
+
GeneratorIndex[GeneratorIndex["TX_NULLIFIER"] = 1025801951] = "TX_NULLIFIER";
|
|
542
|
+
GeneratorIndex[GeneratorIndex["SIGNATURE_PAYLOAD"] = 463525807] = "SIGNATURE_PAYLOAD";
|
|
554
543
|
return GeneratorIndex;
|
|
555
544
|
}({});
|
package/dest/constants.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
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
|
|
9
|
-
// eslint-disable-next-line import/export
|
|
9
|
+
// eslint-disable-next-line import-x/export
|
|
10
10
|
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
|
-
// eslint-disable-next-line import/export
|
|
12
|
+
// eslint-disable-next-line import-x/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 checkpoint number in the Aztec L2 chain. */ // Shadow the export from constants.gen above
|
|
15
|
+
export const INITIAL_L2_CHECKPOINT_NUM = CheckpointNumber(INITIAL_CHECKPOINT_NUM_RAW);
|
|
14
16
|
/** The block header hash for the genesis block 0. */ // Shadow the export from constants.gen above
|
|
15
|
-
// eslint-disable-next-line import/export
|
|
17
|
+
// eslint-disable-next-line import-x/export
|
|
16
18
|
export const GENESIS_BLOCK_HEADER_HASH = new Fr(GENESIS_BLOCK_HEADER_HASH_BIGINT);
|
|
@@ -9,6 +9,8 @@ const SOLIDITY_CONSTANTS_FILE = '../../../../l1-contracts/src/core/libraries/Con
|
|
|
9
9
|
// Whitelist of constants that will be copied to aztec_constants.hpp.
|
|
10
10
|
// We don't copy everything as just a handful are needed, and updating them breaks the cache and triggers expensive bb builds.
|
|
11
11
|
const CPP_CONSTANTS = [
|
|
12
|
+
'MAX_ETH_ADDRESS_BIT_SIZE',
|
|
13
|
+
'MAX_ETH_ADDRESS_VALUE',
|
|
12
14
|
'GENESIS_BLOCK_HEADER_HASH',
|
|
13
15
|
'GENESIS_ARCHIVE_ROOT',
|
|
14
16
|
'MEM_TAG_U1',
|
|
@@ -24,7 +26,7 @@ const CPP_CONSTANTS = [
|
|
|
24
26
|
'CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS',
|
|
25
27
|
'MULTI_CALL_ENTRYPOINT_ADDRESS',
|
|
26
28
|
'FEE_JUICE_ADDRESS',
|
|
27
|
-
'
|
|
29
|
+
'PUBLIC_CHECKS_ADDRESS',
|
|
28
30
|
'FEE_JUICE_BALANCES_SLOT',
|
|
29
31
|
'UPDATED_CLASS_IDS_SLOT',
|
|
30
32
|
'UPDATES_DELAYED_PUBLIC_MUTABLE_VALUES_LEN',
|
|
@@ -111,19 +113,22 @@ const CPP_CONSTANTS = [
|
|
|
111
113
|
'DEFAULT_MAX_DEBUG_LOG_MEMORY_READS'
|
|
112
114
|
];
|
|
113
115
|
const CPP_GENERATORS = [
|
|
116
|
+
'BLOCK_HEADER_HASH',
|
|
114
117
|
'PARTIAL_ADDRESS',
|
|
115
118
|
'CONTRACT_ADDRESS_V1',
|
|
116
|
-
'
|
|
119
|
+
'CONTRACT_CLASS_ID',
|
|
117
120
|
'PUBLIC_KEYS_HASH',
|
|
118
121
|
'NOTE_HASH_NONCE',
|
|
119
122
|
'UNIQUE_NOTE_HASH',
|
|
120
123
|
'SILOED_NOTE_HASH',
|
|
121
|
-
'
|
|
122
|
-
'
|
|
124
|
+
'SILOED_NULLIFIER',
|
|
125
|
+
'PUBLIC_LEAF_SLOT',
|
|
126
|
+
'PUBLIC_STORAGE_MAP_SLOT',
|
|
123
127
|
'PUBLIC_CALLDATA',
|
|
124
128
|
'PUBLIC_BYTECODE'
|
|
125
129
|
];
|
|
126
130
|
const PIL_CONSTANTS = [
|
|
131
|
+
'MAX_ETH_ADDRESS_VALUE',
|
|
127
132
|
'MEM_TAG_U1',
|
|
128
133
|
'MEM_TAG_U8',
|
|
129
134
|
'MEM_TAG_U16',
|
|
@@ -159,7 +164,7 @@ const PIL_CONSTANTS = [
|
|
|
159
164
|
'CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS',
|
|
160
165
|
'MULTI_CALL_ENTRYPOINT_ADDRESS',
|
|
161
166
|
'FEE_JUICE_ADDRESS',
|
|
162
|
-
'
|
|
167
|
+
'PUBLIC_CHECKS_ADDRESS',
|
|
163
168
|
'FEE_JUICE_BALANCES_SLOT',
|
|
164
169
|
'TIMESTAMP_OF_CHANGE_BIT_SIZE',
|
|
165
170
|
'UPDATES_DELAYED_PUBLIC_MUTABLE_METADATA_BIT_SIZE',
|
|
@@ -297,19 +302,21 @@ const PIL_CONSTANTS = [
|
|
|
297
302
|
const PIL_GENERATORS = [
|
|
298
303
|
'PARTIAL_ADDRESS',
|
|
299
304
|
'CONTRACT_ADDRESS_V1',
|
|
300
|
-
'
|
|
305
|
+
'CONTRACT_CLASS_ID',
|
|
301
306
|
'PUBLIC_KEYS_HASH',
|
|
302
307
|
'NOTE_HASH_NONCE',
|
|
303
308
|
'UNIQUE_NOTE_HASH',
|
|
304
309
|
'SILOED_NOTE_HASH',
|
|
305
|
-
'
|
|
306
|
-
'
|
|
310
|
+
'SILOED_NULLIFIER',
|
|
311
|
+
'PUBLIC_LEAF_SLOT',
|
|
312
|
+
'PUBLIC_STORAGE_MAP_SLOT',
|
|
307
313
|
'PUBLIC_CALLDATA',
|
|
308
314
|
'PUBLIC_BYTECODE'
|
|
309
315
|
];
|
|
310
316
|
const SOLIDITY_CONSTANTS = [
|
|
311
317
|
'MAX_FIELD_VALUE',
|
|
312
318
|
'MAX_L2_TO_L1_MSGS_PER_TX',
|
|
319
|
+
'EMPTY_EPOCH_OUT_HASH',
|
|
313
320
|
'L1_TO_L2_MSG_SUBTREE_HEIGHT',
|
|
314
321
|
'NUM_MSGS_PER_BASE_PARITY',
|
|
315
322
|
'NUM_BASE_PARITY_PER_ROOT_PARITY',
|
|
@@ -318,7 +325,7 @@ const SOLIDITY_CONSTANTS = [
|
|
|
318
325
|
'INITIAL_CHECKPOINT_NUMBER',
|
|
319
326
|
'GENESIS_ARCHIVE_ROOT',
|
|
320
327
|
'FEE_JUICE_ADDRESS',
|
|
321
|
-
'
|
|
328
|
+
'MAX_CHECKPOINTS_PER_EPOCH'
|
|
322
329
|
];
|
|
323
330
|
/**
|
|
324
331
|
* Processes a collection of constants and generates code to export them as TypeScript constants.
|
|
@@ -353,7 +360,7 @@ const SOLIDITY_CONSTANTS = [
|
|
|
353
360
|
});
|
|
354
361
|
Object.entries(generatorIndices).forEach(([key, value])=>{
|
|
355
362
|
if (CPP_GENERATORS.includes(key)) {
|
|
356
|
-
code.push(`#define
|
|
363
|
+
code.push(`#define DOM_SEP__${key} ${value}UL`);
|
|
357
364
|
}
|
|
358
365
|
});
|
|
359
366
|
return code.join('\n');
|
|
@@ -373,7 +380,7 @@ const SOLIDITY_CONSTANTS = [
|
|
|
373
380
|
});
|
|
374
381
|
Object.entries(generatorIndices).forEach(([key, value])=>{
|
|
375
382
|
if (PIL_GENERATORS.includes(key)) {
|
|
376
|
-
code.push(` pol
|
|
383
|
+
code.push(` pol DOM_SEP__${key} = ${value};`);
|
|
377
384
|
}
|
|
378
385
|
});
|
|
379
386
|
return code.join('\n');
|
|
@@ -482,7 +489,7 @@ ${processConstantsSolidity(constants)}
|
|
|
482
489
|
{
|
|
483
490
|
const [, name, _type, value, end] = line.match(/global\s+(\w+)(\s*:\s*\w+)?\s*=\s*([^;]*)(;)?/) || [];
|
|
484
491
|
if (name && value) {
|
|
485
|
-
const [, indexName] = name.match(/
|
|
492
|
+
const [, indexName] = name.match(/DOM_SEP__(\w+)/) || [];
|
|
486
493
|
if (indexName) {
|
|
487
494
|
// Generator index.
|
|
488
495
|
generatorIndexEnum[indexName] = +value;
|
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/constants",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-devnet.1-patch.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json"
|
|
7
7
|
],
|
|
8
|
+
"typedocOptions": {
|
|
9
|
+
"entryPoints": [
|
|
10
|
+
"./src/constants.gen.ts"
|
|
11
|
+
],
|
|
12
|
+
"name": "Constants",
|
|
13
|
+
"tsconfig": "./tsconfig.json"
|
|
14
|
+
},
|
|
8
15
|
"exports": {
|
|
9
16
|
".": "./dest/constants.js"
|
|
10
17
|
},
|
|
@@ -16,14 +23,14 @@
|
|
|
16
23
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
17
24
|
},
|
|
18
25
|
"dependencies": {
|
|
19
|
-
"@aztec/foundation": "
|
|
26
|
+
"@aztec/foundation": "4.0.0-devnet.1-patch.0",
|
|
20
27
|
"tslib": "^2.4.0"
|
|
21
28
|
},
|
|
22
29
|
"devDependencies": {
|
|
23
30
|
"@jest/globals": "^30.0.0",
|
|
24
31
|
"@types/jest": "^30.0.0",
|
|
25
32
|
"@types/node": "^22.15.17",
|
|
26
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
33
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
27
34
|
"eslint": "^9.26.0",
|
|
28
35
|
"jest": "^30.0.0",
|
|
29
36
|
"prettier": "^3.5.3",
|