@aztec/cli 3.0.0-nightly.20251112 → 3.0.0-nightly.20251113
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/cmds/contracts/inspect_contract.d.ts.map +1 -1
- package/dest/cmds/contracts/inspect_contract.js +3 -9
- package/dest/config/chain_l2_config.d.ts +9 -9
- package/dest/config/chain_l2_config.d.ts.map +1 -1
- package/dest/config/chain_l2_config.js +40 -25
- package/package.json +28 -25
- package/src/cmds/contracts/inspect_contract.ts +3 -10
- package/src/config/chain_l2_config.ts +53 -35
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect_contract.d.ts","sourceRoot":"","sources":["../../../src/cmds/contracts/inspect_contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAY3D,wBAAsB,eAAe,CAAC,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"inspect_contract.d.ts","sourceRoot":"","sources":["../../../src/cmds/contracts/inspect_contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAY3D,wBAAsB,eAAe,CAAC,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBAsBlG"}
|
|
@@ -16,15 +16,9 @@ export async function inspectContract(contractArtifactFile, debugLogger, log) {
|
|
|
16
16
|
log(`\tprivate function tree root: ${contractClass.privateFunctionsRoot.toString()}`);
|
|
17
17
|
log(`\tpublic bytecode commitment: ${contractClass.publicBytecodeCommitment.toString()}`);
|
|
18
18
|
log(`\tpublic bytecode length: ${contractClass.packedBytecode.length} bytes (${bytecodeLengthInFields} fields)`);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
await Promise.all(externalFunctions.map((f)=>logFunction(f, log)));
|
|
23
|
-
}
|
|
24
|
-
const internalFunctions = contractFns.filter((f)=>f.isInternal);
|
|
25
|
-
if (internalFunctions.length > 0) {
|
|
26
|
-
log(`\nInternal functions:`);
|
|
27
|
-
await Promise.all(internalFunctions.map((f)=>logFunction(f, log)));
|
|
19
|
+
if (contractFns.length > 0) {
|
|
20
|
+
log(`\nExternal contract functions:`);
|
|
21
|
+
await Promise.all(contractFns.map((f)=>logFunction(f, log)));
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
24
|
async function logFunction(fn, log) {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { type L1ContractsConfig } from '@aztec/ethereum';
|
|
1
|
+
import { type L1ContractsConfig, type L1TxUtilsConfig } from '@aztec/ethereum';
|
|
2
2
|
import type { NetworkNames } from '@aztec/foundation/config';
|
|
3
3
|
import type { SharedNodeConfig } from '@aztec/node-lib/config';
|
|
4
|
-
import type {
|
|
5
|
-
|
|
4
|
+
import type { P2PConfig } from '@aztec/p2p';
|
|
5
|
+
import type { SequencerConfig, SlasherConfig } from '@aztec/stdlib/interfaces/server';
|
|
6
|
+
export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> & Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways' | 'slashOverridePayload' | 'slashSelfAllowed'> & Pick<P2PConfig, 'bootstrapNodes' | 'p2pEnabled' | 'txPoolDeleteTxsAfterReorg'> & Pick<SequencerConfig, 'minTxsPerBlock' | 'maxTxsPerBlock'> & {
|
|
6
7
|
l1ChainId: number;
|
|
7
8
|
testAccounts: boolean;
|
|
8
9
|
sponsoredFPC: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
seqMinTxsPerBlock: number;
|
|
12
|
-
seqMaxTxsPerBlock: number;
|
|
10
|
+
minTxsPerBlock: number;
|
|
11
|
+
maxTxsPerBlock: number;
|
|
13
12
|
realProofs: boolean;
|
|
14
13
|
snapshotsUrls: string[];
|
|
15
14
|
autoUpdate: SharedNodeConfig['autoUpdate'];
|
|
@@ -21,7 +20,7 @@ export type L2ChainConfig = L1ContractsConfig & Omit<SlasherConfig, 'slashValida
|
|
|
21
20
|
publicMetricsCollectFrom?: string[];
|
|
22
21
|
skipArchiverInitialSync?: boolean;
|
|
23
22
|
blobAllowEmptySources?: boolean;
|
|
24
|
-
|
|
23
|
+
dataStoreMapSizeKb: number;
|
|
25
24
|
archiverStoreMapSizeKb: number;
|
|
26
25
|
noteHashTreeMapSizeKb: number;
|
|
27
26
|
nullifierTreeMapSizeKb: number;
|
|
@@ -36,5 +35,6 @@ export declare const testnetL2ChainConfig: L2ChainConfig;
|
|
|
36
35
|
export declare const mainnetL2ChainConfig: L2ChainConfig;
|
|
37
36
|
export declare const devnetL2ChainConfig: L2ChainConfig;
|
|
38
37
|
export declare function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined;
|
|
39
|
-
export declare function
|
|
38
|
+
export declare function enrichEnvironmentWithChainName(networkName: NetworkNames): void;
|
|
39
|
+
export declare function enrichEnvironmentWithChainConfig(config: L2ChainConfig): void;
|
|
40
40
|
//# sourceMappingURL=chain_l2_config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/config/chain_l2_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/config/chain_l2_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAYtF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,eAAe,CAAC,GACxE,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,kBAAkB,CAAC,GACnH,IAAI,CAAC,SAAS,EAAE,gBAAgB,GAAG,YAAY,GAAG,2BAA2B,CAAC,GAC9E,IAAI,CAAC,eAAe,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,GAAG;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAIhC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAGhC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AA+CJ,eAAO,MAAM,4BAA4B,EAAE,aAiF1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAqDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAqDlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAuFlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAsFlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAqDjC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAgBrF;AAMD,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,YAAY,QAavE;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,aAAa,QAgGrE"}
|
|
@@ -37,7 +37,7 @@ const DefaultSlashConfig = {
|
|
|
37
37
|
slashExecuteRoundsLookBack: 4
|
|
38
38
|
};
|
|
39
39
|
const DefaultNetworkDBMapSizeConfig = {
|
|
40
|
-
|
|
40
|
+
dataStoreMapSizeKb: defaultDBMapSizeKb,
|
|
41
41
|
archiverStoreMapSizeKb: tbMapSizeKb,
|
|
42
42
|
noteHashTreeMapSizeKb: tbMapSizeKb,
|
|
43
43
|
nullifierTreeMapSizeKb: tbMapSizeKb,
|
|
@@ -49,9 +49,9 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
49
49
|
sponsoredFPC: false,
|
|
50
50
|
disableTransactions: true,
|
|
51
51
|
p2pEnabled: true,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
bootstrapNodes: [],
|
|
53
|
+
minTxsPerBlock: 0,
|
|
54
|
+
maxTxsPerBlock: 0,
|
|
55
55
|
realProofs: true,
|
|
56
56
|
snapshotsUrls: [
|
|
57
57
|
`${SNAPSHOTS_URL}/staging-ignition/`
|
|
@@ -65,6 +65,8 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
65
65
|
publicMetricsCollectFrom: [
|
|
66
66
|
'sequencer'
|
|
67
67
|
],
|
|
68
|
+
txPoolDeleteTxsAfterReorg: false,
|
|
69
|
+
blobAllowEmptySources: true,
|
|
68
70
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
69
71
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
|
|
70
72
|
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
@@ -115,9 +117,9 @@ export const stagingPublicL2ChainConfig = {
|
|
|
115
117
|
sponsoredFPC: true,
|
|
116
118
|
disableTransactions: false,
|
|
117
119
|
p2pEnabled: true,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
bootstrapNodes: [],
|
|
121
|
+
minTxsPerBlock: 0,
|
|
122
|
+
maxTxsPerBlock: 20,
|
|
121
123
|
realProofs: true,
|
|
122
124
|
snapshotsUrls: [
|
|
123
125
|
`${SNAPSHOTS_URL}/staging-public/`
|
|
@@ -131,6 +133,7 @@ export const stagingPublicL2ChainConfig = {
|
|
|
131
133
|
'sequencer'
|
|
132
134
|
],
|
|
133
135
|
maxTxPoolSize: 100_000_000,
|
|
136
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
134
137
|
// Deployment stuff
|
|
135
138
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
136
139
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
@@ -155,9 +158,9 @@ export const nextNetL2ChainConfig = {
|
|
|
155
158
|
sponsoredFPC: true,
|
|
156
159
|
p2pEnabled: true,
|
|
157
160
|
disableTransactions: false,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
bootstrapNodes: [],
|
|
162
|
+
minTxsPerBlock: 0,
|
|
163
|
+
maxTxsPerBlock: 8,
|
|
161
164
|
realProofs: true,
|
|
162
165
|
snapshotsUrls: [],
|
|
163
166
|
autoUpdate: 'config-and-version',
|
|
@@ -169,6 +172,7 @@ export const nextNetL2ChainConfig = {
|
|
|
169
172
|
''
|
|
170
173
|
],
|
|
171
174
|
maxTxPoolSize: 100_000_000,
|
|
175
|
+
txPoolDeleteTxsAfterReorg: false,
|
|
172
176
|
// Deployment stuff
|
|
173
177
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
174
178
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
@@ -193,9 +197,9 @@ export const testnetL2ChainConfig = {
|
|
|
193
197
|
sponsoredFPC: true,
|
|
194
198
|
p2pEnabled: true,
|
|
195
199
|
disableTransactions: true,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
200
|
+
bootstrapNodes: [],
|
|
201
|
+
minTxsPerBlock: 0,
|
|
202
|
+
maxTxsPerBlock: 0,
|
|
199
203
|
realProofs: true,
|
|
200
204
|
snapshotsUrls: [
|
|
201
205
|
`${SNAPSHOTS_URL}/testnet/`
|
|
@@ -209,6 +213,7 @@ export const testnetL2ChainConfig = {
|
|
|
209
213
|
publicMetricsCollectFrom: [
|
|
210
214
|
'sequencer'
|
|
211
215
|
],
|
|
216
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
212
217
|
skipArchiverInitialSync: true,
|
|
213
218
|
blobAllowEmptySources: true,
|
|
214
219
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
@@ -257,14 +262,15 @@ export const testnetL2ChainConfig = {
|
|
|
257
262
|
...DefaultNetworkDBMapSizeConfig
|
|
258
263
|
};
|
|
259
264
|
export const mainnetL2ChainConfig = {
|
|
265
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
266
|
+
disableTransactions: true,
|
|
260
267
|
l1ChainId: 1,
|
|
261
268
|
testAccounts: false,
|
|
262
269
|
sponsoredFPC: false,
|
|
263
270
|
p2pEnabled: true,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
seqMaxTxsPerBlock: 0,
|
|
271
|
+
bootstrapNodes: [],
|
|
272
|
+
minTxsPerBlock: 0,
|
|
273
|
+
maxTxsPerBlock: 0,
|
|
268
274
|
realProofs: true,
|
|
269
275
|
snapshotsUrls: [
|
|
270
276
|
`${SNAPSHOTS_URL}/mainnet/`
|
|
@@ -329,9 +335,9 @@ export const devnetL2ChainConfig = {
|
|
|
329
335
|
sponsoredFPC: true,
|
|
330
336
|
p2pEnabled: true,
|
|
331
337
|
disableTransactions: false,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
338
|
+
bootstrapNodes: [],
|
|
339
|
+
minTxsPerBlock: 0,
|
|
340
|
+
maxTxsPerBlock: 8,
|
|
335
341
|
realProofs: false,
|
|
336
342
|
snapshotsUrls: [],
|
|
337
343
|
autoUpdate: 'config-and-version',
|
|
@@ -343,6 +349,7 @@ export const devnetL2ChainConfig = {
|
|
|
343
349
|
''
|
|
344
350
|
],
|
|
345
351
|
maxTxPoolSize: 100_000_000,
|
|
352
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
346
353
|
// Deployment stuff
|
|
347
354
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
348
355
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
@@ -393,7 +400,7 @@ export function getL2ChainConfig(networkName) {
|
|
|
393
400
|
function getDefaultDataDir(networkName) {
|
|
394
401
|
return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
|
|
395
402
|
}
|
|
396
|
-
export function
|
|
403
|
+
export function enrichEnvironmentWithChainName(networkName) {
|
|
397
404
|
if (networkName === 'local') {
|
|
398
405
|
return;
|
|
399
406
|
}
|
|
@@ -402,18 +409,22 @@ export function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
402
409
|
if (!config) {
|
|
403
410
|
throw new Error(`Unknown network name: ${networkName}`);
|
|
404
411
|
}
|
|
405
|
-
|
|
412
|
+
enrichEnvironmentWithChainConfig(config);
|
|
413
|
+
}
|
|
414
|
+
export function enrichEnvironmentWithChainConfig(config) {
|
|
415
|
+
enrichVar('BOOTSTRAP_NODES', config.bootstrapNodes.join(','));
|
|
406
416
|
enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
|
|
407
417
|
enrichVar('SPONSORED_FPC', config.sponsoredFPC.toString());
|
|
408
418
|
enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
|
|
409
419
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
410
|
-
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.
|
|
411
|
-
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.
|
|
420
|
+
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.minTxsPerBlock.toString());
|
|
421
|
+
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.maxTxsPerBlock.toString());
|
|
412
422
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
413
423
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
414
424
|
enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
|
|
415
425
|
enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
|
|
416
|
-
enrichVar('
|
|
426
|
+
enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
|
|
427
|
+
enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
|
|
417
428
|
enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
|
|
418
429
|
enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
|
|
419
430
|
enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
|
|
@@ -445,6 +456,7 @@ export function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
445
456
|
enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
|
|
446
457
|
enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
|
|
447
458
|
enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
|
|
459
|
+
enrichVar('AZTEC_LAG_IN_EPOCHS', config.lagInEpochs.toString());
|
|
448
460
|
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
449
461
|
enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
|
|
450
462
|
enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
|
|
@@ -462,6 +474,7 @@ export function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
462
474
|
enrichVar('AZTEC_SLASHING_EXECUTION_DELAY_IN_ROUNDS', config.slashingExecutionDelayInRounds.toString());
|
|
463
475
|
enrichVar('AZTEC_SLASHING_OFFSET_IN_ROUNDS', config.slashingOffsetInRounds.toString());
|
|
464
476
|
enrichVar('AZTEC_SLASHER_FLAVOR', config.slasherFlavor);
|
|
477
|
+
enrichVar('AZTEC_SLASHING_DISABLE_DURATION', config.slashingDisableDuration.toString());
|
|
465
478
|
enrichVar('AZTEC_EXIT_DELAY_SECONDS', config.exitDelaySeconds.toString());
|
|
466
479
|
enrichEthAddressVar('AZTEC_SLASHING_VETOER', config.slashingVetoer.toString());
|
|
467
480
|
// Slashing
|
|
@@ -478,6 +491,8 @@ export function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
478
491
|
enrichVar('SLASH_INVALID_BLOCK_PENALTY', config.slashBroadcastedInvalidBlockPenalty.toString());
|
|
479
492
|
enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
|
|
480
493
|
enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
|
|
494
|
+
enrichVar('SLASH_GRACE_PERIOD_L2_SLOTS', config.slashGracePeriodL2Slots.toString());
|
|
495
|
+
enrichVar('SLASH_EXECUTE_ROUNDS_LOOK_BACK', config.slashExecuteRoundsLookBack.toString());
|
|
481
496
|
enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
|
|
482
497
|
enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
|
|
483
498
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251113",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -71,21 +71,21 @@
|
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
75
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
76
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
77
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
78
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
79
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
80
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
81
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
82
|
-
"@aztec/node-keystore": "3.0.0-nightly.
|
|
83
|
-
"@aztec/node-lib": "3.0.0-nightly.
|
|
84
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
85
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
86
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
87
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
88
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
74
|
+
"@aztec/accounts": "3.0.0-nightly.20251113",
|
|
75
|
+
"@aztec/archiver": "3.0.0-nightly.20251113",
|
|
76
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251113",
|
|
77
|
+
"@aztec/constants": "3.0.0-nightly.20251113",
|
|
78
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251113",
|
|
79
|
+
"@aztec/ethereum": "3.0.0-nightly.20251113",
|
|
80
|
+
"@aztec/foundation": "3.0.0-nightly.20251113",
|
|
81
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251113",
|
|
82
|
+
"@aztec/node-keystore": "3.0.0-nightly.20251113",
|
|
83
|
+
"@aztec/node-lib": "3.0.0-nightly.20251113",
|
|
84
|
+
"@aztec/p2p": "3.0.0-nightly.20251113",
|
|
85
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251113",
|
|
86
|
+
"@aztec/stdlib": "3.0.0-nightly.20251113",
|
|
87
|
+
"@aztec/test-wallet": "3.0.0-nightly.20251113",
|
|
88
|
+
"@aztec/world-state": "3.0.0-nightly.20251113",
|
|
89
89
|
"@ethersproject/wallet": "^5.8.0",
|
|
90
90
|
"@iarna/toml": "^2.2.5",
|
|
91
91
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
@@ -99,6 +99,9 @@
|
|
|
99
99
|
"viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
+
"@aztec/aztec-node": "3.0.0-nightly.20251113",
|
|
103
|
+
"@aztec/kv-store": "3.0.0-nightly.20251113",
|
|
104
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251113",
|
|
102
105
|
"@jest/globals": "^30.0.0",
|
|
103
106
|
"@types/jest": "^30.0.0",
|
|
104
107
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -114,15 +117,15 @@
|
|
|
114
117
|
"typescript": "^5.3.3"
|
|
115
118
|
},
|
|
116
119
|
"peerDependencies": {
|
|
117
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
118
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
119
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
120
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
121
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
122
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
123
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
124
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
125
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
120
|
+
"@aztec/accounts": "3.0.0-nightly.20251113",
|
|
121
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251113",
|
|
122
|
+
"@aztec/ethereum": "3.0.0-nightly.20251113",
|
|
123
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251113",
|
|
124
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251113",
|
|
125
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251113",
|
|
126
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20251113",
|
|
127
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251113",
|
|
128
|
+
"@aztec/stdlib": "3.0.0-nightly.20251113"
|
|
126
129
|
},
|
|
127
130
|
"files": [
|
|
128
131
|
"dest",
|
|
@@ -29,16 +29,9 @@ export async function inspectContract(contractArtifactFile: string, debugLogger:
|
|
|
29
29
|
log(`\tpublic bytecode commitment: ${contractClass.publicBytecodeCommitment.toString()}`);
|
|
30
30
|
log(`\tpublic bytecode length: ${contractClass.packedBytecode.length} bytes (${bytecodeLengthInFields} fields)`);
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
await Promise.all(externalFunctions.map(f => logFunction(f, log)));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const internalFunctions = contractFns.filter(f => f.isInternal);
|
|
39
|
-
if (internalFunctions.length > 0) {
|
|
40
|
-
log(`\nInternal functions:`);
|
|
41
|
-
await Promise.all(internalFunctions.map(f => logFunction(f, log)));
|
|
32
|
+
if (contractFns.length > 0) {
|
|
33
|
+
log(`\nExternal contract functions:`);
|
|
34
|
+
await Promise.all(contractFns.map(f => logFunction(f, log)));
|
|
42
35
|
}
|
|
43
36
|
}
|
|
44
37
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { DefaultL1ContractsConfig, type L1ContractsConfig } from '@aztec/ethereum';
|
|
1
|
+
import { DefaultL1ContractsConfig, type L1ContractsConfig, type L1TxUtilsConfig } from '@aztec/ethereum';
|
|
2
2
|
import type { NetworkNames } from '@aztec/foundation/config';
|
|
3
3
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
4
4
|
import type { SharedNodeConfig } from '@aztec/node-lib/config';
|
|
5
|
-
import type {
|
|
5
|
+
import type { P2PConfig } from '@aztec/p2p';
|
|
6
|
+
import type { SequencerConfig, SlasherConfig } from '@aztec/stdlib/interfaces/server';
|
|
6
7
|
|
|
7
8
|
import path from 'path';
|
|
8
9
|
|
|
@@ -14,15 +15,15 @@ const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
|
|
|
14
15
|
const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
|
|
15
16
|
const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
|
|
16
17
|
|
|
17
|
-
export type L2ChainConfig = L1ContractsConfig &
|
|
18
|
-
Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways'> &
|
|
18
|
+
export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> &
|
|
19
|
+
Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways' | 'slashOverridePayload' | 'slashSelfAllowed'> &
|
|
20
|
+
Pick<P2PConfig, 'bootstrapNodes' | 'p2pEnabled' | 'txPoolDeleteTxsAfterReorg'> &
|
|
21
|
+
Pick<SequencerConfig, 'minTxsPerBlock' | 'maxTxsPerBlock'> & {
|
|
19
22
|
l1ChainId: number;
|
|
20
23
|
testAccounts: boolean;
|
|
21
24
|
sponsoredFPC: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
seqMinTxsPerBlock: number;
|
|
25
|
-
seqMaxTxsPerBlock: number;
|
|
25
|
+
minTxsPerBlock: number;
|
|
26
|
+
maxTxsPerBlock: number;
|
|
26
27
|
realProofs: boolean;
|
|
27
28
|
snapshotsUrls: string[];
|
|
28
29
|
autoUpdate: SharedNodeConfig['autoUpdate'];
|
|
@@ -35,9 +36,9 @@ export type L2ChainConfig = L1ContractsConfig &
|
|
|
35
36
|
skipArchiverInitialSync?: boolean;
|
|
36
37
|
blobAllowEmptySources?: boolean;
|
|
37
38
|
|
|
38
|
-
// Setting the
|
|
39
|
+
// Setting the dataStoreMapSize provides the default for every DB in the node.
|
|
39
40
|
// Then we explicitly override the sizes for the archiver and the larger trees.
|
|
40
|
-
|
|
41
|
+
dataStoreMapSizeKb: number;
|
|
41
42
|
archiverStoreMapSizeKb: number;
|
|
42
43
|
noteHashTreeMapSizeKb: number;
|
|
43
44
|
nullifierTreeMapSizeKb: number;
|
|
@@ -86,7 +87,7 @@ const DefaultSlashConfig = {
|
|
|
86
87
|
} satisfies Partial<L2ChainConfig>;
|
|
87
88
|
|
|
88
89
|
const DefaultNetworkDBMapSizeConfig = {
|
|
89
|
-
|
|
90
|
+
dataStoreMapSizeKb: defaultDBMapSizeKb,
|
|
90
91
|
archiverStoreMapSizeKb: tbMapSizeKb,
|
|
91
92
|
noteHashTreeMapSizeKb: tbMapSizeKb,
|
|
92
93
|
nullifierTreeMapSizeKb: tbMapSizeKb,
|
|
@@ -99,9 +100,9 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
99
100
|
sponsoredFPC: false,
|
|
100
101
|
disableTransactions: true,
|
|
101
102
|
p2pEnabled: true,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
bootstrapNodes: [],
|
|
104
|
+
minTxsPerBlock: 0,
|
|
105
|
+
maxTxsPerBlock: 0,
|
|
105
106
|
realProofs: true,
|
|
106
107
|
snapshotsUrls: [`${SNAPSHOTS_URL}/staging-ignition/`],
|
|
107
108
|
autoUpdate: 'config-and-version',
|
|
@@ -111,6 +112,8 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
111
112
|
publicIncludeMetrics,
|
|
112
113
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
113
114
|
publicMetricsCollectFrom: ['sequencer'],
|
|
115
|
+
txPoolDeleteTxsAfterReorg: false,
|
|
116
|
+
blobAllowEmptySources: true,
|
|
114
117
|
|
|
115
118
|
/** How many seconds an L1 slot lasts. */
|
|
116
119
|
ethereumSlotDuration: 12,
|
|
@@ -180,9 +183,9 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
180
183
|
sponsoredFPC: true,
|
|
181
184
|
disableTransactions: false,
|
|
182
185
|
p2pEnabled: true,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
bootstrapNodes: [],
|
|
187
|
+
minTxsPerBlock: 0,
|
|
188
|
+
maxTxsPerBlock: 20,
|
|
186
189
|
realProofs: true,
|
|
187
190
|
snapshotsUrls: [`${SNAPSHOTS_URL}/staging-public/`],
|
|
188
191
|
autoUpdate: 'config-and-version',
|
|
@@ -192,6 +195,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
192
195
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
193
196
|
publicMetricsCollectFrom: ['sequencer'],
|
|
194
197
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
198
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
195
199
|
|
|
196
200
|
// Deployment stuff
|
|
197
201
|
/** How many seconds an L1 slot lasts. */
|
|
@@ -234,9 +238,9 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
|
|
|
234
238
|
sponsoredFPC: true,
|
|
235
239
|
p2pEnabled: true,
|
|
236
240
|
disableTransactions: false,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
bootstrapNodes: [],
|
|
242
|
+
minTxsPerBlock: 0,
|
|
243
|
+
maxTxsPerBlock: 8,
|
|
240
244
|
realProofs: true,
|
|
241
245
|
snapshotsUrls: [],
|
|
242
246
|
autoUpdate: 'config-and-version',
|
|
@@ -246,6 +250,7 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
|
|
|
246
250
|
publicMetricsCollectorUrl: '',
|
|
247
251
|
publicMetricsCollectFrom: [''],
|
|
248
252
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
253
|
+
txPoolDeleteTxsAfterReorg: false,
|
|
249
254
|
|
|
250
255
|
// Deployment stuff
|
|
251
256
|
/** How many seconds an L1 slot lasts. */
|
|
@@ -288,9 +293,9 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
288
293
|
sponsoredFPC: true,
|
|
289
294
|
p2pEnabled: true,
|
|
290
295
|
disableTransactions: true,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
296
|
+
bootstrapNodes: [],
|
|
297
|
+
minTxsPerBlock: 0,
|
|
298
|
+
maxTxsPerBlock: 0,
|
|
294
299
|
realProofs: true,
|
|
295
300
|
snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
|
|
296
301
|
autoUpdate: 'config-and-version',
|
|
@@ -300,6 +305,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
300
305
|
publicIncludeMetrics,
|
|
301
306
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
302
307
|
publicMetricsCollectFrom: ['sequencer'],
|
|
308
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
303
309
|
skipArchiverInitialSync: true,
|
|
304
310
|
blobAllowEmptySources: true,
|
|
305
311
|
|
|
@@ -371,14 +377,16 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
371
377
|
};
|
|
372
378
|
|
|
373
379
|
export const mainnetL2ChainConfig: L2ChainConfig = {
|
|
380
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
381
|
+
disableTransactions: true,
|
|
382
|
+
|
|
374
383
|
l1ChainId: 1,
|
|
375
384
|
testAccounts: false,
|
|
376
385
|
sponsoredFPC: false,
|
|
377
386
|
p2pEnabled: true,
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
seqMaxTxsPerBlock: 0,
|
|
387
|
+
bootstrapNodes: [],
|
|
388
|
+
minTxsPerBlock: 0,
|
|
389
|
+
maxTxsPerBlock: 0,
|
|
382
390
|
realProofs: true,
|
|
383
391
|
snapshotsUrls: [`${SNAPSHOTS_URL}/mainnet/`],
|
|
384
392
|
autoUpdate: 'notify',
|
|
@@ -462,9 +470,9 @@ export const devnetL2ChainConfig: L2ChainConfig = {
|
|
|
462
470
|
sponsoredFPC: true,
|
|
463
471
|
p2pEnabled: true,
|
|
464
472
|
disableTransactions: false,
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
473
|
+
bootstrapNodes: [],
|
|
474
|
+
minTxsPerBlock: 0,
|
|
475
|
+
maxTxsPerBlock: 8,
|
|
468
476
|
realProofs: false,
|
|
469
477
|
snapshotsUrls: [],
|
|
470
478
|
autoUpdate: 'config-and-version',
|
|
@@ -474,6 +482,7 @@ export const devnetL2ChainConfig: L2ChainConfig = {
|
|
|
474
482
|
publicMetricsCollectorUrl: '',
|
|
475
483
|
publicMetricsCollectFrom: [''],
|
|
476
484
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
485
|
+
txPoolDeleteTxsAfterReorg: true,
|
|
477
486
|
|
|
478
487
|
// Deployment stuff
|
|
479
488
|
/** How many seconds an L1 slot lasts. */
|
|
@@ -532,7 +541,7 @@ function getDefaultDataDir(networkName: NetworkNames): string {
|
|
|
532
541
|
return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
|
|
533
542
|
}
|
|
534
543
|
|
|
535
|
-
export function
|
|
544
|
+
export function enrichEnvironmentWithChainName(networkName: NetworkNames) {
|
|
536
545
|
if (networkName === 'local') {
|
|
537
546
|
return;
|
|
538
547
|
}
|
|
@@ -544,19 +553,24 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
|
|
|
544
553
|
throw new Error(`Unknown network name: ${networkName}`);
|
|
545
554
|
}
|
|
546
555
|
|
|
547
|
-
|
|
556
|
+
enrichEnvironmentWithChainConfig(config);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export function enrichEnvironmentWithChainConfig(config: L2ChainConfig) {
|
|
560
|
+
enrichVar('BOOTSTRAP_NODES', config.bootstrapNodes.join(','));
|
|
548
561
|
enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
|
|
549
562
|
enrichVar('SPONSORED_FPC', config.sponsoredFPC.toString());
|
|
550
563
|
enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
|
|
551
564
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
552
|
-
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.
|
|
553
|
-
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.
|
|
565
|
+
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.minTxsPerBlock.toString());
|
|
566
|
+
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.maxTxsPerBlock.toString());
|
|
554
567
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
555
568
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
556
569
|
enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
|
|
557
570
|
enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
|
|
571
|
+
enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
|
|
558
572
|
|
|
559
|
-
enrichVar('DATA_STORE_MAP_SIZE_KB', config.
|
|
573
|
+
enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
|
|
560
574
|
enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
|
|
561
575
|
enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
|
|
562
576
|
enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
|
|
@@ -597,6 +611,7 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
|
|
|
597
611
|
enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
|
|
598
612
|
enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
|
|
599
613
|
enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
|
|
614
|
+
enrichVar('AZTEC_LAG_IN_EPOCHS', config.lagInEpochs.toString());
|
|
600
615
|
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
601
616
|
enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
|
|
602
617
|
enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
|
|
@@ -614,6 +629,7 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
|
|
|
614
629
|
enrichVar('AZTEC_SLASHING_EXECUTION_DELAY_IN_ROUNDS', config.slashingExecutionDelayInRounds.toString());
|
|
615
630
|
enrichVar('AZTEC_SLASHING_OFFSET_IN_ROUNDS', config.slashingOffsetInRounds.toString());
|
|
616
631
|
enrichVar('AZTEC_SLASHER_FLAVOR', config.slasherFlavor);
|
|
632
|
+
enrichVar('AZTEC_SLASHING_DISABLE_DURATION', config.slashingDisableDuration.toString());
|
|
617
633
|
enrichVar('AZTEC_EXIT_DELAY_SECONDS', config.exitDelaySeconds.toString());
|
|
618
634
|
enrichEthAddressVar('AZTEC_SLASHING_VETOER', config.slashingVetoer.toString());
|
|
619
635
|
|
|
@@ -631,6 +647,8 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
|
|
|
631
647
|
enrichVar('SLASH_INVALID_BLOCK_PENALTY', config.slashBroadcastedInvalidBlockPenalty.toString());
|
|
632
648
|
enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
|
|
633
649
|
enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
|
|
650
|
+
enrichVar('SLASH_GRACE_PERIOD_L2_SLOTS', config.slashGracePeriodL2Slots.toString());
|
|
651
|
+
enrichVar('SLASH_EXECUTE_ROUNDS_LOOK_BACK', config.slashExecuteRoundsLookBack.toString());
|
|
634
652
|
|
|
635
653
|
enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
|
|
636
654
|
enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
|