Skip to content

Commit 0dbfbe5

Browse files
authored
chore: backport #17949 (#17955)
1 parent 607ed1e commit 0dbfbe5

File tree

5 files changed

+218
-140
lines changed

5 files changed

+218
-140
lines changed

yarn-project/cli/src/cmds/l1/deploy_new_rollup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export async function deployNewRollup(
2020
json: boolean,
2121
initialValidators: Operator[],
2222
realVerifier: boolean,
23+
createVerificationJson: string | false,
2324
log: LogFn,
2425
debugLogger: Logger,
2526
) {
@@ -43,6 +44,7 @@ export async function deployNewRollup(
4344
fundingNeeded,
4445
config,
4546
realVerifier,
47+
createVerificationJson,
4648
debugLogger,
4749
);
4850

yarn-project/cli/src/cmds/l1/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
9494
.option('--test-accounts', 'Populate genesis state with initial fee juice for test accounts')
9595
.option('--sponsored-fpc', 'Populate genesis state with a testing sponsored FPC contract')
9696
.option('--real-verifier', 'Deploy the real verifier', false)
97+
.option('--create-verification-json [path]', 'Create JSON file for etherscan contract verification', false)
9798
.action(async options => {
9899
const { deployNewRollup } = await import('./deploy_new_rollup.js');
99100

@@ -112,6 +113,7 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
112113
options.json,
113114
initialValidators,
114115
options.realVerifier,
116+
options.createVerificationJson,
115117
log,
116118
debugLogger,
117119
);

yarn-project/cli/src/config/chain_l2_config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export type L2ChainConfig = L1ContractsConfig &
4444

4545
// Control whether sentinel is enabled or not. Needed for slashing
4646
sentinelEnabled: boolean;
47+
disableTransactions: boolean;
4748
};
4849

4950
const DefaultSlashConfig = {
@@ -95,6 +96,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
9596
l1ChainId: 11155111,
9697
testAccounts: false,
9798
sponsoredFPC: false,
99+
disableTransactions: true,
98100
p2pEnabled: true,
99101
p2pBootstrapNodes: [],
100102
seqMinTxsPerBlock: 0,
@@ -176,6 +178,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
176178
l1ChainId: 11155111,
177179
testAccounts: false,
178180
sponsoredFPC: true,
181+
disableTransactions: false,
179182
p2pEnabled: true,
180183
p2pBootstrapNodes: [],
181184
seqMinTxsPerBlock: 0,
@@ -230,9 +233,10 @@ export const testnetL2ChainConfig: L2ChainConfig = {
230233
testAccounts: false,
231234
sponsoredFPC: true,
232235
p2pEnabled: true,
236+
disableTransactions: true,
233237
p2pBootstrapNodes: [],
234238
seqMinTxsPerBlock: 0,
235-
seqMaxTxsPerBlock: 20,
239+
seqMaxTxsPerBlock: 0,
236240
realProofs: true,
237241
snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
238242
autoUpdate: 'config-and-version',
@@ -267,7 +271,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
267271
/** Governance proposing round size */
268272
governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
269273
/** The mana target for the rollup */
270-
manaTarget: DefaultL1ContractsConfig.manaTarget,
274+
manaTarget: 0n,
271275
/** The proving cost per mana */
272276
provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
273277
/** Exit delay for stakers */
@@ -286,6 +290,7 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
286290
testAccounts: false,
287291
sponsoredFPC: false,
288292
p2pEnabled: true,
293+
disableTransactions: true,
289294
p2pBootstrapNodes: [],
290295
seqMinTxsPerBlock: 0,
291296
seqMaxTxsPerBlock: 0,
@@ -471,4 +476,5 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
471476
enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
472477

473478
enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
479+
enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
474480
}

yarn-project/cli/src/utils/aztec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export async function deployNewRollupContracts(
109109
feeJuicePortalInitialBalance: bigint,
110110
config: L1ContractsConfig,
111111
realVerifier: boolean,
112+
createVerificationJson: string | false,
112113
logger: Logger,
113114
): Promise<{ rollup: RollupContract; slashFactoryAddress: EthAddress }> {
114115
const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
@@ -152,6 +153,7 @@ export async function deployNewRollupContracts(
152153
registryAddress,
153154
logger,
154155
config,
156+
createVerificationJson,
155157
);
156158

157159
return { rollup, slashFactoryAddress };

0 commit comments

Comments
 (0)