@aztec/constants 0.77.0-testnet-ignition.17

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.
@@ -0,0 +1,411 @@
1
+ /* eslint-disable */ // GENERATED FILE - DO NOT EDIT, RUN yarn remake-constants
2
+ export const MAX_FIELD_VALUE = 21888242871839275222246405745257275088548364400416034343698204186575808495616n;
3
+ export const ARGS_LENGTH = 16;
4
+ export const MAX_FR_ARGS_TO_ALL_ENQUEUED_CALLS = 16000;
5
+ export const MAX_NOTE_HASHES_PER_CALL = 16;
6
+ export const MAX_NULLIFIERS_PER_CALL = 16;
7
+ export const MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL = 5;
8
+ export const MAX_ENQUEUED_CALLS_PER_CALL = 16;
9
+ export const MAX_L2_TO_L1_MSGS_PER_CALL = 2;
10
+ export const MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_CALL = 63;
11
+ export const MAX_PUBLIC_DATA_READS_PER_CALL = 64;
12
+ export const MAX_NOTE_HASH_READ_REQUESTS_PER_CALL = 16;
13
+ export const MAX_NULLIFIER_READ_REQUESTS_PER_CALL = 16;
14
+ export const MAX_NULLIFIER_NON_EXISTENT_READ_REQUESTS_PER_CALL = 16;
15
+ export const MAX_L1_TO_L2_MSG_READ_REQUESTS_PER_CALL = 16;
16
+ export const MAX_KEY_VALIDATION_REQUESTS_PER_CALL = 16;
17
+ export const MAX_PRIVATE_LOGS_PER_CALL = 16;
18
+ export const MAX_PUBLIC_LOGS_PER_CALL = 4;
19
+ export const MAX_CONTRACT_CLASS_LOGS_PER_CALL = 1;
20
+ export const ARCHIVE_HEIGHT = 29;
21
+ export const VK_TREE_HEIGHT = 6;
22
+ export const PROTOCOL_CONTRACT_TREE_HEIGHT = 3;
23
+ export const FUNCTION_TREE_HEIGHT = 5;
24
+ export const NOTE_HASH_TREE_HEIGHT = 40;
25
+ export const PUBLIC_DATA_TREE_HEIGHT = 40;
26
+ export const NULLIFIER_TREE_HEIGHT = 40;
27
+ export const L1_TO_L2_MSG_TREE_HEIGHT = 39;
28
+ export const ARTIFACT_FUNCTION_TREE_MAX_HEIGHT = 5;
29
+ export const NULLIFIER_TREE_ID = 0;
30
+ export const NOTE_HASH_TREE_ID = 1;
31
+ export const PUBLIC_DATA_TREE_ID = 2;
32
+ export const L1_TO_L2_MESSAGE_TREE_ID = 3;
33
+ export const ARCHIVE_TREE_ID = 4;
34
+ export const NOTE_HASH_SUBTREE_HEIGHT = 6;
35
+ export const NULLIFIER_SUBTREE_HEIGHT = 6;
36
+ export const PUBLIC_DATA_SUBTREE_HEIGHT = 6;
37
+ export const L1_TO_L2_MSG_SUBTREE_HEIGHT = 4;
38
+ export const NOTE_HASH_SUBTREE_SIBLING_PATH_LENGTH = 34;
39
+ export const NULLIFIER_SUBTREE_SIBLING_PATH_LENGTH = 34;
40
+ export const L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH = 35;
41
+ export const MAX_NOTE_HASHES_PER_TX = 64;
42
+ export const MAX_NULLIFIERS_PER_TX = 64;
43
+ export const MAX_PRIVATE_CALL_STACK_LENGTH_PER_TX = 8;
44
+ export const MAX_ENQUEUED_CALLS_PER_TX = 32;
45
+ export const PROTOCOL_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX = 1;
46
+ export const MAX_TOTAL_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX = 64;
47
+ export const MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX = 63;
48
+ export const MAX_PUBLIC_DATA_READS_PER_TX = 64;
49
+ export const MAX_L2_TO_L1_MSGS_PER_TX = 8;
50
+ export const MAX_NOTE_HASH_READ_REQUESTS_PER_TX = 64;
51
+ export const MAX_NULLIFIER_READ_REQUESTS_PER_TX = 64;
52
+ export const MAX_NULLIFIER_NON_EXISTENT_READ_REQUESTS_PER_TX = 64;
53
+ export const MAX_L1_TO_L2_MSG_READ_REQUESTS_PER_TX = 64;
54
+ export const MAX_KEY_VALIDATION_REQUESTS_PER_TX = 64;
55
+ export const MAX_PRIVATE_LOGS_PER_TX = 32;
56
+ export const MAX_PUBLIC_LOGS_PER_TX = 8;
57
+ export const MAX_CONTRACT_CLASS_LOGS_PER_TX = 1;
58
+ export const NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP = 16;
59
+ export const PRIVATE_KERNEL_INIT_INDEX = 0;
60
+ export const PRIVATE_KERNEL_INNER_INDEX = 1;
61
+ export const PRIVATE_KERNEL_TAIL_INDEX = 2;
62
+ export const PRIVATE_KERNEL_TAIL_TO_PUBLIC_INDEX = 3;
63
+ export const TUBE_VK_INDEX = 4;
64
+ export const AVM_VK_INDEX = 5;
65
+ export const PRIVATE_BASE_ROLLUP_VK_INDEX = 6;
66
+ export const PUBLIC_BASE_ROLLUP_VK_INDEX = 7;
67
+ export const MERGE_ROLLUP_INDEX = 8;
68
+ export const BLOCK_ROOT_ROLLUP_INDEX = 9;
69
+ export const BLOCK_ROOT_ROLLUP_SINGLE_TX_INDEX = 10;
70
+ export const BLOCK_ROOT_ROLLUP_EMPTY_INDEX = 11;
71
+ export const BLOCK_MERGE_ROLLUP_INDEX = 12;
72
+ export const ROOT_ROLLUP_INDEX = 13;
73
+ export const BASE_PARITY_INDEX = 14;
74
+ export const ROOT_PARITY_INDEX = 15;
75
+ export const PRIVATE_KERNEL_RESET_INDEX = 20;
76
+ export const FUNCTION_SELECTOR_NUM_BYTES = 4;
77
+ export const INITIALIZATION_SLOT_SEPARATOR = 1000000000;
78
+ export const INITIAL_L2_BLOCK_NUM = 1;
79
+ export const FIELDS_PER_BLOB = 4096;
80
+ export const BLOBS_PER_BLOCK = 3;
81
+ export const PUBLIC_LOG_DATA_SIZE_IN_FIELDS = 13;
82
+ export const PUBLIC_LOG_SIZE_IN_FIELDS = 14;
83
+ export const PRIVATE_LOG_SIZE_IN_FIELDS = 18;
84
+ export const AZTEC_MAX_EPOCH_DURATION = 48;
85
+ export const GENESIS_BLOCK_HASH = 20646204262468251631976884937192820660867507115079672078981654411421834866549n;
86
+ export const GENESIS_ARCHIVE_ROOT = 1002640778211850180189505934749257244705296832326768971348723156503780793518n;
87
+ export const FEE_JUICE_INITIAL_MINT = 200000000000000000000000n;
88
+ export const PUBLIC_DISPATCH_SELECTOR = 3578010381;
89
+ export const MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS = 3000;
90
+ export const MAX_PACKED_BYTECODE_SIZE_PER_PRIVATE_FUNCTION_IN_FIELDS = 3000;
91
+ export const MAX_PACKED_BYTECODE_SIZE_PER_UNCONSTRAINED_FUNCTION_IN_FIELDS = 3000;
92
+ export const REGISTERER_PRIVATE_FUNCTION_BROADCASTED_ADDITIONAL_FIELDS = 19;
93
+ export const REGISTERER_UNCONSTRAINED_FUNCTION_BROADCASTED_ADDITIONAL_FIELDS = 12;
94
+ export const REGISTERER_CONTRACT_CLASS_REGISTERED_MAGIC_VALUE = 11121068431693264234253912047066709627593769337094408533543930778360n;
95
+ export const REGISTERER_PRIVATE_FUNCTION_BROADCASTED_MAGIC_VALUE = 2889881020989534926461066592611988634597302675057895885580456197069n;
96
+ export const REGISTERER_UNCONSTRAINED_FUNCTION_BROADCASTED_MAGIC_VALUE = 24399338136397901754495080759185489776044879232766421623673792970137n;
97
+ export const DEPLOYER_CONTRACT_INSTANCE_DEPLOYED_MAGIC_VALUE = 14061769416655647708490531650437236735160113654556896985372298487345n;
98
+ export const DEPLOYER_CONTRACT_INSTANCE_UPDATED_MAGIC_VALUE = 1534834688047131268740281708431107902615560100979874281215533519862n;
99
+ export const MAX_PROTOCOL_CONTRACTS = 7;
100
+ export const CANONICAL_AUTH_REGISTRY_ADDRESS = 1;
101
+ export const DEPLOYER_CONTRACT_ADDRESS = 2;
102
+ export const REGISTERER_CONTRACT_ADDRESS = 3;
103
+ export const MULTI_CALL_ENTRYPOINT_ADDRESS = 4;
104
+ export const FEE_JUICE_ADDRESS = 5;
105
+ export const ROUTER_ADDRESS = 6;
106
+ export const REGISTERER_CONTRACT_BYTECODE_CAPSULE_SLOT = 79025834455612;
107
+ export const FEE_JUICE_BALANCES_SLOT = 1;
108
+ export const UPDATED_CLASS_IDS_SLOT = 1;
109
+ export const DEFAULT_NPK_M_X = 582240093077765400562621227108555700500271598878376310175765873770292988861n;
110
+ export const DEFAULT_NPK_M_Y = 10422444662424639723529825114205836958711284159673861467999592572974769103684n;
111
+ export const DEFAULT_IVPK_M_X = 339708709767762472786445938838804872781183545349360029270386718856175781484n;
112
+ export const DEFAULT_IVPK_M_Y = 12719619215050539905199178334954929730355853796706924300730604757520758976849n;
113
+ export const DEFAULT_OVPK_M_X = 12212787719617305570587928860288475454328008955283046946846066128763901043335n;
114
+ export const DEFAULT_OVPK_M_Y = 3646747884782549389807830220601404629716007431341772952958971658285958854707n;
115
+ export const DEFAULT_TPK_M_X = 728059161893070741164607238299536939695876538801885465230641192969135857403n;
116
+ export const DEFAULT_TPK_M_Y = 14575718736702206050102425029229426215631664471161015518982549597389390371695n;
117
+ export const AZTEC_ADDRESS_LENGTH = 1;
118
+ export const GAS_FEES_LENGTH = 2;
119
+ export const GAS_LENGTH = 2;
120
+ export const GAS_SETTINGS_LENGTH = 8;
121
+ export const CALL_CONTEXT_LENGTH = 4;
122
+ export const CONTENT_COMMITMENT_LENGTH = 4;
123
+ export const CONTRACT_INSTANCE_LENGTH = 16;
124
+ export const CONTRACT_STORAGE_READ_LENGTH = 3;
125
+ export const CONTRACT_STORAGE_UPDATE_REQUEST_LENGTH = 3;
126
+ export const ETH_ADDRESS_LENGTH = 1;
127
+ export const FUNCTION_DATA_LENGTH = 2;
128
+ export const FUNCTION_LEAF_PREIMAGE_LENGTH = 5;
129
+ export const GLOBAL_VARIABLES_LENGTH = 9;
130
+ export const APPEND_ONLY_TREE_SNAPSHOT_LENGTH = 2;
131
+ export const APPEND_ONLY_TREE_SNAPSHOT_LENGTH_BYTES = 36;
132
+ export const SPONGE_BLOB_LENGTH = 11;
133
+ export const BLOB_PUBLIC_INPUTS = 6;
134
+ export const BLOB_PUBLIC_INPUTS_BYTES = 112;
135
+ export const L1_TO_L2_MESSAGE_LENGTH = 6;
136
+ export const L2_TO_L1_MESSAGE_LENGTH = 3;
137
+ export const SCOPED_L2_TO_L1_MESSAGE_LENGTH = 4;
138
+ export const MAX_BLOCK_NUMBER_LENGTH = 2;
139
+ export const KEY_VALIDATION_REQUEST_LENGTH = 4;
140
+ export const KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH = 5;
141
+ export const SCOPED_KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH = 6;
142
+ export const PARTIAL_STATE_REFERENCE_LENGTH = 6;
143
+ export const READ_REQUEST_LENGTH = 2;
144
+ export const TREE_LEAF_READ_REQUEST_LENGTH = 2;
145
+ export const PRIVATE_LOG_DATA_LENGTH = 20;
146
+ export const SCOPED_PRIVATE_LOG_DATA_LENGTH = 21;
147
+ export const CONTRACT_CLASS_LOG_DATA_SIZE_IN_FIELDS = 3019;
148
+ export const CONTRACT_CLASS_LOG_SIZE_IN_FIELDS = 3020;
149
+ export const LOG_HASH_LENGTH = 3;
150
+ export const SCOPED_LOG_HASH_LENGTH = 4;
151
+ export const NOTE_HASH_LENGTH = 2;
152
+ export const SCOPED_NOTE_HASH_LENGTH = 3;
153
+ export const NULLIFIER_LENGTH = 3;
154
+ export const SCOPED_NULLIFIER_LENGTH = 4;
155
+ export const PUBLIC_DATA_WRITE_LENGTH = 2;
156
+ export const PUBLIC_CALL_STACK_ITEM_COMPRESSED_LENGTH = 12;
157
+ export const PRIVATE_CALL_REQUEST_LENGTH = 8;
158
+ export const PUBLIC_CALL_REQUEST_LENGTH = 5;
159
+ export const COUNTED_PUBLIC_CALL_REQUEST_LENGTH = 6;
160
+ export const PUBLIC_INNER_CALL_REQUEST_LENGTH = 13;
161
+ export const ROLLUP_VALIDATION_REQUESTS_LENGTH = 2;
162
+ export const STATE_REFERENCE_LENGTH = 8;
163
+ export const TREE_SNAPSHOTS_LENGTH = 8;
164
+ export const TX_CONTEXT_LENGTH = 10;
165
+ export const TX_REQUEST_LENGTH = 14;
166
+ export const TOTAL_FEES_LENGTH = 1;
167
+ export const TOTAL_MANA_USED_LENGTH = 1;
168
+ export const BLOCK_HEADER_LENGTH = 25;
169
+ export const BLOCK_HEADER_LENGTH_BYTES = 648;
170
+ export const PRIVATE_CIRCUIT_PUBLIC_INPUTS_LENGTH = 741;
171
+ export const PUBLIC_CIRCUIT_PUBLIC_INPUTS_LENGTH = 908;
172
+ export const PRIVATE_CONTEXT_INPUTS_LENGTH = 40;
173
+ export const FEE_RECIPIENT_LENGTH = 2;
174
+ export const AGGREGATION_OBJECT_LENGTH = 16;
175
+ export const IPA_CLAIM_LENGTH = 10;
176
+ export const SCOPED_READ_REQUEST_LEN = 3;
177
+ export const PUBLIC_DATA_READ_LENGTH = 3;
178
+ export const PRIVATE_VALIDATION_REQUESTS_LENGTH = 772;
179
+ export const PRIVATE_TO_ROLLUP_ACCUMULATED_DATA_LENGTH = 740;
180
+ export const TX_CONSTANT_DATA_LENGTH = 37;
181
+ export const COMBINED_CONSTANT_DATA_LENGTH = 46;
182
+ export const PRIVATE_ACCUMULATED_DATA_LENGTH = 1412;
183
+ export const PRIVATE_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH = 2230;
184
+ export const PRIVATE_TO_PUBLIC_ACCUMULATED_DATA_LENGTH = 900;
185
+ export const PRIVATE_TO_AVM_ACCUMULATED_DATA_LENGTH = 160;
186
+ export const NUM_PRIVATE_TO_AVM_ACCUMULATED_DATA_ARRAYS = 3;
187
+ export const AVM_ACCUMULATED_DATA_LENGTH = 400;
188
+ export const PRIVATE_TO_PUBLIC_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH = 1847;
189
+ export const PRIVATE_TO_ROLLUP_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH = 782;
190
+ export const AVM_CIRCUIT_PUBLIC_INPUTS_LENGTH = 1091;
191
+ export const CONSTANT_ROLLUP_DATA_LENGTH = 13;
192
+ export const BASE_OR_MERGE_PUBLIC_INPUTS_LENGTH = 52;
193
+ export const BLOCK_ROOT_OR_BLOCK_MERGE_PUBLIC_INPUTS_LENGTH = 986;
194
+ export const ROOT_ROLLUP_PUBLIC_INPUTS_LENGTH = 972;
195
+ export const GET_NOTES_ORACLE_RETURN_LENGTH = 674;
196
+ export const NOTE_HASHES_NUM_BYTES_PER_BASE_ROLLUP = 2048;
197
+ export const NULLIFIERS_NUM_BYTES_PER_BASE_ROLLUP = 2048;
198
+ export const PUBLIC_DATA_WRITES_NUM_BYTES_PER_BASE_ROLLUP = 4096;
199
+ export const PRIVATE_LOGS_NUM_BYTES_PER_BASE_ROLLUP = 18432;
200
+ export const CONTRACTS_NUM_BYTES_PER_BASE_ROLLUP = 32;
201
+ export const CONTRACT_DATA_NUM_BYTES_PER_BASE_ROLLUP = 64;
202
+ export const CONTRACT_DATA_NUM_BYTES_PER_BASE_ROLLUP_UNPADDED = 52;
203
+ export const L2_TO_L1_MSGS_NUM_BYTES_PER_BASE_ROLLUP = 256;
204
+ export const LOGS_HASHES_NUM_BYTES_PER_BASE_ROLLUP = 64;
205
+ export const NUM_MSGS_PER_BASE_PARITY = 4;
206
+ export const NUM_BASE_PARITY_PER_ROOT_PARITY = 4;
207
+ export const RECURSIVE_PROOF_LENGTH = 459;
208
+ export const NESTED_RECURSIVE_PROOF_LENGTH = 459;
209
+ export const IPA_PROOF_LENGTH = 69;
210
+ export const RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 538;
211
+ export const NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH = 538;
212
+ export const TUBE_PROOF_LENGTH = 538;
213
+ export const HONK_VERIFICATION_KEY_LENGTH_IN_FIELDS = 128;
214
+ export const ROLLUP_HONK_VERIFICATION_KEY_LENGTH_IN_FIELDS = 139;
215
+ export const CLIENT_IVC_VERIFICATION_KEY_LENGTH_IN_FIELDS = 143;
216
+ export const AVM_VERIFICATION_KEY_LENGTH_IN_FIELDS = 86;
217
+ export const MAX_PUBLIC_BYTECODE_SIZE_IN_BYTES = 96000;
218
+ export const MAX_PUBLIC_CALLS_TO_UNIQUE_CONTRACT_CLASS_IDS = 21;
219
+ export const AVM_PROOF_LENGTH_IN_FIELDS = 4154;
220
+ export const AVM_PUBLIC_COLUMN_MAX_SIZE = 1024;
221
+ export const AVM_PUBLIC_INPUTS_FLATTENED_SIZE = 2956;
222
+ export const MEM_TAG_FF = 0;
223
+ export const MEM_TAG_U1 = 1;
224
+ export const MEM_TAG_U8 = 2;
225
+ export const MEM_TAG_U16 = 3;
226
+ export const MEM_TAG_U32 = 4;
227
+ export const MEM_TAG_U64 = 5;
228
+ export const MEM_TAG_U128 = 6;
229
+ export const SENDER_KERNEL_INPUTS_COL_OFFSET = 0;
230
+ export const ADDRESS_KERNEL_INPUTS_COL_OFFSET = 1;
231
+ export const IS_STATIC_CALL_KERNEL_INPUTS_COL_OFFSET = 3;
232
+ export const CHAIN_ID_KERNEL_INPUTS_COL_OFFSET = 4;
233
+ export const VERSION_KERNEL_INPUTS_COL_OFFSET = 5;
234
+ export const BLOCK_NUMBER_KERNEL_INPUTS_COL_OFFSET = 6;
235
+ export const TIMESTAMP_KERNEL_INPUTS_COL_OFFSET = 7;
236
+ export const FEE_PER_DA_GAS_KERNEL_INPUTS_COL_OFFSET = 8;
237
+ export const FEE_PER_L2_GAS_KERNEL_INPUTS_COL_OFFSET = 9;
238
+ export const DA_START_GAS_KERNEL_INPUTS_COL_OFFSET = 10;
239
+ export const L2_START_GAS_KERNEL_INPUTS_COL_OFFSET = 11;
240
+ export const DA_END_GAS_KERNEL_INPUTS_COL_OFFSET = 12;
241
+ export const L2_END_GAS_KERNEL_INPUTS_COL_OFFSET = 13;
242
+ export const TRANSACTION_FEE_KERNEL_INPUTS_COL_OFFSET = 14;
243
+ export const START_NOTE_HASH_EXISTS_WRITE_OFFSET = 0;
244
+ export const START_NULLIFIER_EXISTS_OFFSET = 16;
245
+ export const START_NULLIFIER_NON_EXISTS_OFFSET = 32;
246
+ export const START_L1_TO_L2_MSG_EXISTS_WRITE_OFFSET = 48;
247
+ export const START_SSTORE_WRITE_OFFSET = 64;
248
+ export const START_SLOAD_WRITE_OFFSET = 127;
249
+ export const START_EMIT_NOTE_HASH_WRITE_OFFSET = 191;
250
+ export const START_EMIT_NULLIFIER_WRITE_OFFSET = 207;
251
+ export const START_EMIT_L2_TO_L1_MSG_WRITE_OFFSET = 223;
252
+ export const START_EMIT_UNENCRYPTED_LOG_WRITE_OFFSET = 225;
253
+ export const DEFAULT_GAS_LIMIT = 1000000000;
254
+ export const MAX_L2_GAS_PER_TX_PUBLIC_PORTION = 6000000;
255
+ export const DEFAULT_TEARDOWN_GAS_LIMIT = 6000000;
256
+ export const DA_BYTES_PER_FIELD = 32;
257
+ export const DA_GAS_PER_BYTE = 16;
258
+ export const FIXED_DA_GAS = 512;
259
+ export const FIXED_L2_GAS = 512;
260
+ export const FIXED_AVM_STARTUP_L2_GAS = 20000;
261
+ export const L2_GAS_DISTRIBUTED_STORAGE_PREMIUM = 1024;
262
+ export const AVM_POSEIDON2_BASE_L2_GAS = 36;
263
+ export const L2_GAS_PER_READ_MERKLE_HASH = 36;
264
+ export const L2_GAS_PER_WRITE_MERKLE_HASH = 36;
265
+ export const L2_GAS_PER_PUBLIC_DATA_UPDATE = 6784;
266
+ export const L2_GAS_PER_NOTE_HASH = 3904;
267
+ export const L2_GAS_PER_NULLIFIER = 5344;
268
+ export const L2_GAS_PER_PUBLIC_DATA_READ = 1440;
269
+ export const L2_GAS_PER_NOTE_HASH_READ_REQUEST = 1440;
270
+ export const L2_GAS_PER_NULLIFIER_READ_REQUEST = 1440;
271
+ export const L2_GAS_PER_L1_TO_L2_MSG_READ_REQUEST = 1404;
272
+ export const L2_GAS_PER_LOG_BYTE = 4;
273
+ export const L2_GAS_PER_PRIVATE_LOG = 0;
274
+ export const L2_GAS_PER_CONTRACT_CLASS_LOG = 0;
275
+ export const L2_GAS_PER_L2_TO_L1_MSG = 200;
276
+ export const AVM_ADD_BASE_L2_GAS = 27;
277
+ export const AVM_SUB_BASE_L2_GAS = 27;
278
+ export const AVM_MUL_BASE_L2_GAS = 27;
279
+ export const AVM_DIV_BASE_L2_GAS = 27;
280
+ export const AVM_FDIV_BASE_L2_GAS = 27;
281
+ export const AVM_EQ_BASE_L2_GAS = 27;
282
+ export const AVM_LT_BASE_L2_GAS = 30;
283
+ export const AVM_LTE_BASE_L2_GAS = 30;
284
+ export const AVM_AND_BASE_L2_GAS = 51;
285
+ export const AVM_OR_BASE_L2_GAS = 51;
286
+ export const AVM_XOR_BASE_L2_GAS = 51;
287
+ export const AVM_NOT_BASE_L2_GAS = 18;
288
+ export const AVM_SHL_BASE_L2_GAS = 27;
289
+ export const AVM_SHR_BASE_L2_GAS = 27;
290
+ export const AVM_CAST_BASE_L2_GAS = 18;
291
+ export const AVM_GETENVVAR_BASE_L2_GAS = 9;
292
+ export const AVM_CALLDATACOPY_BASE_L2_GAS = 24;
293
+ export const AVM_RETURNDATASIZE_BASE_L2_GAS = 9;
294
+ export const AVM_RETURNDATACOPY_BASE_L2_GAS = 24;
295
+ export const AVM_JUMP_BASE_L2_GAS = 3;
296
+ export const AVM_JUMPI_BASE_L2_GAS = 9;
297
+ export const AVM_INTERNALCALL_BASE_L2_GAS = 3;
298
+ export const AVM_INTERNALRETURN_BASE_L2_GAS = 3;
299
+ export const AVM_SET_BASE_L2_GAS = 9;
300
+ export const AVM_MOV_BASE_L2_GAS = 18;
301
+ export const AVM_SLOAD_BASE_L2_GAS = 1458;
302
+ export const AVM_SSTORE_BASE_L2_GAS = 6802;
303
+ export const AVM_NOTEHASHEXISTS_BASE_L2_GAS = 1467;
304
+ export const AVM_EMITNOTEHASH_BASE_L2_GAS = 3913;
305
+ export const AVM_NULLIFIEREXISTS_BASE_L2_GAS = 1467;
306
+ export const AVM_EMITNULLIFIER_BASE_L2_GAS = 5353;
307
+ export const AVM_L1TOL2MSGEXISTS_BASE_L2_GAS = 1431;
308
+ export const AVM_GETCONTRACTINSTANCE_BASE_L2_GAS = 1467;
309
+ export const AVM_EMITUNENCRYPTEDLOG_BASE_L2_GAS = 15;
310
+ export const AVM_SENDL2TOL1MSG_BASE_L2_GAS = 218;
311
+ export const AVM_CALL_BASE_L2_GAS = 2925;
312
+ export const AVM_STATICCALL_BASE_L2_GAS = 2925;
313
+ export const AVM_RETURN_BASE_L2_GAS = 15;
314
+ export const AVM_REVERT_BASE_L2_GAS = 15;
315
+ export const AVM_DEBUGLOG_BASE_L2_GAS = 21;
316
+ export const AVM_SHA256COMPRESSION_BASE_L2_GAS = 114;
317
+ export const AVM_KECCAKF1600_BASE_L2_GAS = 162;
318
+ export const AVM_ECADD_BASE_L2_GAS = 69;
319
+ export const AVM_MSM_BASE_L2_GAS = 36;
320
+ export const AVM_TORADIXBE_BASE_L2_GAS = 24;
321
+ export const AVM_CALLDATACOPY_DYN_L2_GAS = 3;
322
+ export const AVM_RETURNDATACOPY_DYN_L2_GAS = 3;
323
+ export const AVM_EMITUNENCRYPTEDLOG_DYN_L2_GAS = 131;
324
+ export const AVM_CALL_DYN_L2_GAS = 4;
325
+ export const AVM_STATICCALL_DYN_L2_GAS = 4;
326
+ export const AVM_RETURN_DYN_L2_GAS = 3;
327
+ export const AVM_REVERT_DYN_L2_GAS = 3;
328
+ export const AVM_DEBUGLOG_DYN_L2_GAS = 6;
329
+ export const AVM_MSM_DYN_L2_GAS = 6;
330
+ export const AVM_TORADIXBE_DYN_L2_GAS = 3;
331
+ export const AVM_SSTORE_BASE_DA_GAS = 512;
332
+ export const AVM_EMITNOTEHASH_BASE_DA_GAS = 512;
333
+ export const AVM_EMITNULLIFIER_BASE_DA_GAS = 512;
334
+ export const AVM_SENDL2TOL1MSG_BASE_DA_GAS = 512;
335
+ export const AVM_EMITUNENCRYPTEDLOG_DYN_DA_GAS = 512;
336
+ export const TX_START_PREFIX = 8392562855083340404n;
337
+ export const REVERT_CODE_PREFIX = 1;
338
+ export const TX_FEE_PREFIX = 2;
339
+ export const NOTES_PREFIX = 3;
340
+ export const NULLIFIERS_PREFIX = 4;
341
+ export const L2_L1_MSGS_PREFIX = 5;
342
+ export const PUBLIC_DATA_UPDATE_REQUESTS_PREFIX = 6;
343
+ export const PRIVATE_LOGS_PREFIX = 7;
344
+ export const PUBLIC_LOGS_PREFIX = 8;
345
+ export const CONTRACT_CLASS_LOGS_PREFIX = 9;
346
+ export const PROOF_TYPE_PLONK = 0;
347
+ export const PROOF_TYPE_HONK = 1;
348
+ export const PROOF_TYPE_OINK = 2;
349
+ export const PROOF_TYPE_PG = 3;
350
+ export const PROOF_TYPE_AVM = 4;
351
+ export const PROOF_TYPE_ROLLUP_HONK = 5;
352
+ export const PROOF_TYPE_ROOT_ROLLUP_HONK = 6;
353
+ export const TWO_POW_64 = 18446744073709551616n;
354
+ export const DEFAULT_UPDATE_DELAY = 3600;
355
+ export const MINIMUM_UPDATE_DELAY = 25;
356
+ export const UPDATES_VALUE_SIZE = 1;
357
+ export const UPDATES_SHARED_MUTABLE_VALUES_LEN = 3;
358
+ export var GeneratorIndex = /*#__PURE__*/ function(GeneratorIndex) {
359
+ GeneratorIndex[GeneratorIndex["NOTE_HASH"] = 1] = "NOTE_HASH";
360
+ GeneratorIndex[GeneratorIndex["NOTE_HASH_NONCE"] = 2] = "NOTE_HASH_NONCE";
361
+ GeneratorIndex[GeneratorIndex["UNIQUE_NOTE_HASH"] = 3] = "UNIQUE_NOTE_HASH";
362
+ GeneratorIndex[GeneratorIndex["SILOED_NOTE_HASH"] = 4] = "SILOED_NOTE_HASH";
363
+ GeneratorIndex[GeneratorIndex["MESSAGE_NULLIFIER"] = 5] = "MESSAGE_NULLIFIER";
364
+ GeneratorIndex[GeneratorIndex["INITIALIZATION_NULLIFIER"] = 6] = "INITIALIZATION_NULLIFIER";
365
+ GeneratorIndex[GeneratorIndex["OUTER_NULLIFIER"] = 7] = "OUTER_NULLIFIER";
366
+ GeneratorIndex[GeneratorIndex["PUBLIC_DATA_READ"] = 8] = "PUBLIC_DATA_READ";
367
+ GeneratorIndex[GeneratorIndex["PUBLIC_DATA_UPDATE_REQUEST"] = 9] = "PUBLIC_DATA_UPDATE_REQUEST";
368
+ GeneratorIndex[GeneratorIndex["FUNCTION_DATA"] = 10] = "FUNCTION_DATA";
369
+ GeneratorIndex[GeneratorIndex["FUNCTION_LEAF"] = 11] = "FUNCTION_LEAF";
370
+ GeneratorIndex[GeneratorIndex["CONTRACT_DEPLOYMENT_DATA"] = 12] = "CONTRACT_DEPLOYMENT_DATA";
371
+ GeneratorIndex[GeneratorIndex["CONSTRUCTOR"] = 13] = "CONSTRUCTOR";
372
+ GeneratorIndex[GeneratorIndex["CONSTRUCTOR_ARGS"] = 14] = "CONSTRUCTOR_ARGS";
373
+ GeneratorIndex[GeneratorIndex["CONTRACT_ADDRESS_V1"] = 15] = "CONTRACT_ADDRESS_V1";
374
+ GeneratorIndex[GeneratorIndex["CONTRACT_LEAF"] = 16] = "CONTRACT_LEAF";
375
+ GeneratorIndex[GeneratorIndex["CALL_CONTEXT"] = 17] = "CALL_CONTEXT";
376
+ GeneratorIndex[GeneratorIndex["CALL_STACK_ITEM"] = 18] = "CALL_STACK_ITEM";
377
+ GeneratorIndex[GeneratorIndex["CALL_STACK_ITEM_2"] = 19] = "CALL_STACK_ITEM_2";
378
+ GeneratorIndex[GeneratorIndex["SECRET_HASH"] = 20] = "SECRET_HASH";
379
+ GeneratorIndex[GeneratorIndex["L2_TO_L1_MSG"] = 21] = "L2_TO_L1_MSG";
380
+ GeneratorIndex[GeneratorIndex["TX_CONTEXT"] = 22] = "TX_CONTEXT";
381
+ GeneratorIndex[GeneratorIndex["PUBLIC_LEAF_INDEX"] = 23] = "PUBLIC_LEAF_INDEX";
382
+ GeneratorIndex[GeneratorIndex["PUBLIC_DATA_LEAF"] = 24] = "PUBLIC_DATA_LEAF";
383
+ GeneratorIndex[GeneratorIndex["SIGNED_TX_REQUEST"] = 25] = "SIGNED_TX_REQUEST";
384
+ GeneratorIndex[GeneratorIndex["GLOBAL_VARIABLES"] = 26] = "GLOBAL_VARIABLES";
385
+ GeneratorIndex[GeneratorIndex["PARTIAL_ADDRESS"] = 27] = "PARTIAL_ADDRESS";
386
+ GeneratorIndex[GeneratorIndex["BLOCK_HASH"] = 28] = "BLOCK_HASH";
387
+ GeneratorIndex[GeneratorIndex["SIDE_EFFECT"] = 29] = "SIDE_EFFECT";
388
+ GeneratorIndex[GeneratorIndex["FEE_PAYLOAD"] = 30] = "FEE_PAYLOAD";
389
+ GeneratorIndex[GeneratorIndex["COMBINED_PAYLOAD"] = 31] = "COMBINED_PAYLOAD";
390
+ GeneratorIndex[GeneratorIndex["TX_NULLIFIER"] = 32] = "TX_NULLIFIER";
391
+ GeneratorIndex[GeneratorIndex["TX_REQUEST"] = 33] = "TX_REQUEST";
392
+ GeneratorIndex[GeneratorIndex["SIGNATURE_PAYLOAD"] = 34] = "SIGNATURE_PAYLOAD";
393
+ GeneratorIndex[GeneratorIndex["VK"] = 41] = "VK";
394
+ GeneratorIndex[GeneratorIndex["PRIVATE_CIRCUIT_PUBLIC_INPUTS"] = 42] = "PRIVATE_CIRCUIT_PUBLIC_INPUTS";
395
+ GeneratorIndex[GeneratorIndex["PUBLIC_CIRCUIT_PUBLIC_INPUTS"] = 43] = "PUBLIC_CIRCUIT_PUBLIC_INPUTS";
396
+ GeneratorIndex[GeneratorIndex["FUNCTION_ARGS"] = 44] = "FUNCTION_ARGS";
397
+ GeneratorIndex[GeneratorIndex["AUTHWIT_INNER"] = 45] = "AUTHWIT_INNER";
398
+ GeneratorIndex[GeneratorIndex["AUTHWIT_OUTER"] = 46] = "AUTHWIT_OUTER";
399
+ GeneratorIndex[GeneratorIndex["AUTHWIT_NULLIFIER"] = 47] = "AUTHWIT_NULLIFIER";
400
+ GeneratorIndex[GeneratorIndex["NSK_M"] = 48] = "NSK_M";
401
+ GeneratorIndex[GeneratorIndex["IVSK_M"] = 49] = "IVSK_M";
402
+ GeneratorIndex[GeneratorIndex["OVSK_M"] = 50] = "OVSK_M";
403
+ GeneratorIndex[GeneratorIndex["TSK_M"] = 51] = "TSK_M";
404
+ GeneratorIndex[GeneratorIndex["PUBLIC_KEYS_HASH"] = 52] = "PUBLIC_KEYS_HASH";
405
+ GeneratorIndex[GeneratorIndex["NOTE_NULLIFIER"] = 53] = "NOTE_NULLIFIER";
406
+ GeneratorIndex[GeneratorIndex["SYMMETRIC_KEY"] = 54] = "SYMMETRIC_KEY";
407
+ GeneratorIndex[GeneratorIndex["SYMMETRIC_KEY_2"] = 55] = "SYMMETRIC_KEY_2";
408
+ GeneratorIndex[GeneratorIndex["PUBLIC_TX_HASH"] = 56] = "PUBLIC_TX_HASH";
409
+ GeneratorIndex[GeneratorIndex["PRIVATE_TX_HASH"] = 57] = "PRIVATE_TX_HASH";
410
+ return GeneratorIndex;
411
+ }({});
@@ -0,0 +1,4 @@
1
+ // Typescript-land-only constants
2
+ export const FEE_FUNDING_FOR_TESTER_ACCOUNT = BigInt(1_000e18);
3
+ // Autogenerated constants loaded from noir-land
4
+ export * from './constants.gen.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=constants.in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.in.d.ts","sourceRoot":"","sources":["../../src/scripts/constants.in.ts"],"names":[],"mappings":""}