@aztec/cli 2.1.0-rc.20 → 2.1.0-rc.22
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/l1/deploy_new_rollup.d.ts +1 -1
- package/dest/cmds/l1/deploy_new_rollup.d.ts.map +1 -1
- package/dest/cmds/l1/deploy_new_rollup.js +2 -2
- package/dest/cmds/l1/index.d.ts.map +1 -1
- package/dest/cmds/l1/index.js +2 -2
- package/dest/config/chain_l2_config.d.ts +2 -1
- package/dest/config/chain_l2_config.d.ts.map +1 -1
- package/dest/config/chain_l2_config.js +12 -7
- package/dest/utils/aztec.d.ts +1 -1
- package/dest/utils/aztec.d.ts.map +1 -1
- package/dest/utils/aztec.js +2 -2
- package/package.json +23 -23
- package/src/cmds/l1/deploy_new_rollup.ts +2 -0
- package/src/cmds/l1/index.ts +2 -0
- package/src/config/chain_l2_config.ts +13 -7
- package/src/utils/aztec.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Operator } from '@aztec/ethereum';
|
|
2
2
|
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
3
3
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
4
|
-
export declare function deployNewRollup(registryAddress: EthAddress, rpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, mnemonicIndex: number, salt: number | undefined, testAccounts: boolean, sponsoredFPC: boolean, json: boolean, initialValidators: Operator[], realVerifier: boolean, log: LogFn, debugLogger: Logger): Promise<void>;
|
|
4
|
+
export declare function deployNewRollup(registryAddress: EthAddress, rpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, mnemonicIndex: number, salt: number | undefined, testAccounts: boolean, sponsoredFPC: boolean, json: boolean, initialValidators: Operator[], realVerifier: boolean, createVerificationJson: string | false, log: LogFn, debugLogger: Logger): Promise<void>;
|
|
5
5
|
//# sourceMappingURL=deploy_new_rollup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy_new_rollup.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/deploy_new_rollup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM3D,wBAAsB,eAAe,CACnC,eAAe,EAAE,UAAU,EAC3B,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,YAAY,EAAE,OAAO,EACrB,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,QAAQ,EAAE,EAC7B,YAAY,EAAE,OAAO,EACrB,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deploy_new_rollup.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/deploy_new_rollup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM3D,wBAAsB,eAAe,CACnC,eAAe,EAAE,UAAU,EAC3B,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,YAAY,EAAE,OAAO,EACrB,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,QAAQ,EAAE,EAC7B,YAAY,EAAE,OAAO,EACrB,sBAAsB,EAAE,MAAM,GAAG,KAAK,EACtC,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,iBA+CpB"}
|
|
@@ -3,13 +3,13 @@ import { getL1ContractsConfigEnvVars } from '@aztec/ethereum';
|
|
|
3
3
|
import { getGenesisValues } from '@aztec/world-state/testing';
|
|
4
4
|
import { deployNewRollupContracts } from '../../utils/aztec.js';
|
|
5
5
|
import { getSponsoredFPCAddress } from '../../utils/setup_contracts.js';
|
|
6
|
-
export async function deployNewRollup(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, testAccounts, sponsoredFPC, json, initialValidators, realVerifier, log, debugLogger) {
|
|
6
|
+
export async function deployNewRollup(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, testAccounts, sponsoredFPC, json, initialValidators, realVerifier, createVerificationJson, log, debugLogger) {
|
|
7
7
|
const config = getL1ContractsConfigEnvVars();
|
|
8
8
|
const initialAccounts = testAccounts ? await getInitialTestAccounts() : [];
|
|
9
9
|
const sponsoredFPCAddress = sponsoredFPC ? await getSponsoredFPCAddress() : [];
|
|
10
10
|
const initialFundedAccounts = initialAccounts.map((a)=>a.address).concat(sponsoredFPCAddress);
|
|
11
11
|
const { genesisArchiveRoot, fundingNeeded } = await getGenesisValues(initialFundedAccounts);
|
|
12
|
-
const { rollup, slashFactoryAddress } = await deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, fundingNeeded, config, realVerifier, debugLogger);
|
|
12
|
+
const { rollup, slashFactoryAddress } = await deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, fundingNeeded, config, realVerifier, createVerificationJson, debugLogger);
|
|
13
13
|
if (json) {
|
|
14
14
|
log(JSON.stringify({
|
|
15
15
|
rollupAddress: rollup.address,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAcjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAcjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,WAof/E"}
|
package/dest/cmds/l1/index.js
CHANGED
|
@@ -13,10 +13,10 @@ export function injectCommands(program, log, debugLogger) {
|
|
|
13
13
|
const initialValidators = options.validators?.split(',').map((validator)=>EthAddress.fromString(validator)) || [];
|
|
14
14
|
await deployL1Contracts(options.l1RpcUrls, options.l1ChainId, options.privateKey, options.mnemonic, options.mnemonicIndex, options.salt, options.testAccounts, options.sponsoredFpc, options.acceleratedTestDeployments, options.json, options.createVerificationJson, initialValidators, options.realVerifier, options.existingToken, log, debugLogger);
|
|
15
15
|
});
|
|
16
|
-
program.command('deploy-new-rollup').description('Deploys a new rollup contract and adds it to the registry (if you are the owner).').requiredOption('-r, --registry-address <string>', 'The address of the registry contract', parseEthereumAddress).addOption(l1RpcUrlsOption).option('-pk, --private-key <string>', 'The private key to use for deployment', PRIVATE_KEY).option('--validators <string>', 'Comma separated list of validators').option('-m, --mnemonic <string>', 'The mnemonic to use in deployment', MNEMONIC ?? 'test test test test test test test test test test test junk').option('-i, --mnemonic-index <number>', 'The index of the mnemonic to use in deployment', (arg)=>parseInt(arg), 0).addOption(l1ChainIdOption).option('--salt <number>', 'The optional salt to use in deployment', (arg)=>parseInt(arg)).option('--json', 'Output the contract addresses in JSON format').option('--test-accounts', 'Populate genesis state with initial fee juice for test accounts').option('--sponsored-fpc', 'Populate genesis state with a testing sponsored FPC contract').option('--real-verifier', 'Deploy the real verifier', false).action(async (options)=>{
|
|
16
|
+
program.command('deploy-new-rollup').description('Deploys a new rollup contract and adds it to the registry (if you are the owner).').requiredOption('-r, --registry-address <string>', 'The address of the registry contract', parseEthereumAddress).addOption(l1RpcUrlsOption).option('-pk, --private-key <string>', 'The private key to use for deployment', PRIVATE_KEY).option('--validators <string>', 'Comma separated list of validators').option('-m, --mnemonic <string>', 'The mnemonic to use in deployment', MNEMONIC ?? 'test test test test test test test test test test test junk').option('-i, --mnemonic-index <number>', 'The index of the mnemonic to use in deployment', (arg)=>parseInt(arg), 0).addOption(l1ChainIdOption).option('--salt <number>', 'The optional salt to use in deployment', (arg)=>parseInt(arg)).option('--json', 'Output the contract addresses in JSON format').option('--test-accounts', 'Populate genesis state with initial fee juice for test accounts').option('--sponsored-fpc', 'Populate genesis state with a testing sponsored FPC contract').option('--real-verifier', 'Deploy the real verifier', false).option('--create-verification-json [path]', 'Create JSON file for etherscan contract verification', false).action(async (options)=>{
|
|
17
17
|
const { deployNewRollup } = await import('./deploy_new_rollup.js');
|
|
18
18
|
const initialValidators = options.validators?.split(',').map((validator)=>EthAddress.fromString(validator)) || [];
|
|
19
|
-
await deployNewRollup(options.registryAddress, options.l1RpcUrls, options.l1ChainId, options.privateKey, options.mnemonic, options.mnemonicIndex, options.salt, options.testAccounts, options.sponsoredFpc, options.json, initialValidators, options.realVerifier, log, debugLogger);
|
|
19
|
+
await deployNewRollup(options.registryAddress, options.l1RpcUrls, options.l1ChainId, options.privateKey, options.mnemonic, options.mnemonicIndex, options.salt, options.testAccounts, options.sponsoredFpc, options.json, initialValidators, options.realVerifier, options.createVerificationJson, log, debugLogger);
|
|
20
20
|
});
|
|
21
21
|
program.command('deposit-governance-tokens').description('Deposits governance tokens to the governance contract.').requiredOption('-r, --registry-address <string>', 'The address of the registry contract', parseEthereumAddress).requiredOption('--recipient <string>', 'The recipient of the tokens', parseEthereumAddress).requiredOption('-a, --amount <string>', 'The amount of tokens to deposit', parseBigint).option('--mint', 'Mint the tokens on L1', false).addOption(l1RpcUrlsOption).addOption(l1ChainIdOption).option('-p, --private-key <string>', 'The private key to use to deposit', PRIVATE_KEY).option('-m, --mnemonic <string>', 'The mnemonic to use to deposit', 'test test test test test test test test test test test junk').option('-i, --mnemonic-index <number>', 'The index of the mnemonic to use to deposit', (arg)=>parseInt(arg), 0).action(async (options)=>{
|
|
22
22
|
const { depositGovernanceTokens } = await import('./governance_utils.js');
|
|
@@ -25,11 +25,12 @@ export type L2ChainConfig = L1ContractsConfig & Pick<P2PConfig, 'txPoolDeleteTxs
|
|
|
25
25
|
nullifierTreeMapSizeKb: number;
|
|
26
26
|
publicDataTreeMapSizeKb: number;
|
|
27
27
|
sentinelEnabled: boolean;
|
|
28
|
+
disableTransactions: boolean;
|
|
28
29
|
};
|
|
29
30
|
export declare const stagingIgnitionL2ChainConfig: L2ChainConfig;
|
|
30
31
|
export declare const stagingPublicL2ChainConfig: L2ChainConfig;
|
|
31
32
|
export declare const testnetL2ChainConfig: L2ChainConfig;
|
|
32
|
-
export declare const
|
|
33
|
+
export declare const mainnetL2ChainConfig: L2ChainConfig;
|
|
33
34
|
export declare function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined;
|
|
34
35
|
export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): void;
|
|
35
36
|
//# sourceMappingURL=chain_l2_config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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,aAgF1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAoDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAuDlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAgFlC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAYrF;AAMD,wBAAgB,gCAAgC,CAAC,WAAW,EAAE,YAAY,QA4FzE"}
|
|
@@ -47,6 +47,7 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
47
47
|
l1ChainId: 11155111,
|
|
48
48
|
testAccounts: false,
|
|
49
49
|
sponsoredFPC: false,
|
|
50
|
+
disableTransactions: true,
|
|
50
51
|
p2pEnabled: true,
|
|
51
52
|
p2pBootstrapNodes: [],
|
|
52
53
|
seqMinTxsPerBlock: 0,
|
|
@@ -113,6 +114,7 @@ export const stagingPublicL2ChainConfig = {
|
|
|
113
114
|
l1ChainId: 11155111,
|
|
114
115
|
testAccounts: false,
|
|
115
116
|
sponsoredFPC: true,
|
|
117
|
+
disableTransactions: false,
|
|
116
118
|
p2pEnabled: true,
|
|
117
119
|
p2pBootstrapNodes: [],
|
|
118
120
|
seqMinTxsPerBlock: 0,
|
|
@@ -153,9 +155,10 @@ export const testnetL2ChainConfig = {
|
|
|
153
155
|
testAccounts: false,
|
|
154
156
|
sponsoredFPC: true,
|
|
155
157
|
p2pEnabled: true,
|
|
158
|
+
disableTransactions: true,
|
|
156
159
|
p2pBootstrapNodes: [],
|
|
157
160
|
seqMinTxsPerBlock: 0,
|
|
158
|
-
seqMaxTxsPerBlock:
|
|
161
|
+
seqMaxTxsPerBlock: 0,
|
|
159
162
|
realProofs: true,
|
|
160
163
|
snapshotsUrls: [
|
|
161
164
|
`${SNAPSHOTS_URL}/testnet/`
|
|
@@ -181,7 +184,7 @@ export const testnetL2ChainConfig = {
|
|
|
181
184
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
182
185
|
/** The slashing round size */ slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
|
|
183
186
|
/** Governance proposing round size */ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
|
|
184
|
-
/** The mana target for the rollup */ manaTarget:
|
|
187
|
+
/** The mana target for the rollup */ manaTarget: 0n,
|
|
185
188
|
/** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
|
|
186
189
|
/** Exit delay for stakers */ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
|
|
187
190
|
...DefaultSlashConfig,
|
|
@@ -190,20 +193,21 @@ export const testnetL2ChainConfig = {
|
|
|
190
193
|
slashInactivityPenalty: DefaultL1ContractsConfig.slashAmountMedium,
|
|
191
194
|
...DefaultNetworkDBMapSizeConfig
|
|
192
195
|
};
|
|
193
|
-
export const
|
|
196
|
+
export const mainnetL2ChainConfig = {
|
|
194
197
|
l1ChainId: 1,
|
|
195
198
|
testAccounts: false,
|
|
196
199
|
sponsoredFPC: false,
|
|
197
200
|
p2pEnabled: true,
|
|
201
|
+
disableTransactions: true,
|
|
198
202
|
p2pBootstrapNodes: [],
|
|
199
203
|
seqMinTxsPerBlock: 0,
|
|
200
204
|
seqMaxTxsPerBlock: 0,
|
|
201
205
|
realProofs: true,
|
|
202
206
|
snapshotsUrls: [
|
|
203
|
-
`${SNAPSHOTS_URL}/
|
|
207
|
+
`${SNAPSHOTS_URL}/mainnet/`
|
|
204
208
|
],
|
|
205
209
|
autoUpdate: 'notify',
|
|
206
|
-
autoUpdateUrl: 'https://storage.googleapis.com/aztec-
|
|
210
|
+
autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
|
|
207
211
|
maxTxPoolSize: 100_000_000,
|
|
208
212
|
publicIncludeMetrics,
|
|
209
213
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -270,9 +274,9 @@ export function getL2ChainConfig(networkName) {
|
|
|
270
274
|
config = {
|
|
271
275
|
...stagingIgnitionL2ChainConfig
|
|
272
276
|
};
|
|
273
|
-
} else if (networkName === '
|
|
277
|
+
} else if (networkName === 'mainnet') {
|
|
274
278
|
config = {
|
|
275
|
-
...
|
|
279
|
+
...mainnetL2ChainConfig
|
|
276
280
|
};
|
|
277
281
|
}
|
|
278
282
|
return config;
|
|
@@ -359,4 +363,5 @@ export function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
359
363
|
enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
|
|
360
364
|
enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
|
|
361
365
|
enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
|
|
366
|
+
enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
|
|
362
367
|
}
|
package/dest/utils/aztec.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function getFunctionAbi(artifact: ContractArtifact, fnName: strin
|
|
|
19
19
|
* @param mnemonic - The mnemonic to be used in contract deployment.
|
|
20
20
|
*/
|
|
21
21
|
export declare function deployAztecContracts(rpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, mnemonicIndex: number, salt: number | undefined, initialValidators: Operator[], genesisArchiveRoot: Fr, feeJuicePortalInitialBalance: bigint, acceleratedTestDeployments: boolean, config: L1ContractsConfig, existingToken: EthAddress | undefined, realVerifier: boolean, createVerificationJson: string | false, debugLogger: Logger): Promise<DeployL1ContractsReturnType>;
|
|
22
|
-
export declare function deployNewRollupContracts(registryAddress: EthAddress, rpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, mnemonicIndex: number, salt: number | undefined, initialValidators: Operator[], genesisArchiveRoot: Fr, feeJuicePortalInitialBalance: bigint, config: L1ContractsConfig, realVerifier: boolean, logger: Logger): Promise<{
|
|
22
|
+
export declare function deployNewRollupContracts(registryAddress: EthAddress, rpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, mnemonicIndex: number, salt: number | undefined, initialValidators: Operator[], genesisArchiveRoot: Fr, feeJuicePortalInitialBalance: bigint, config: L1ContractsConfig, realVerifier: boolean, createVerificationJson: string | false, logger: Logger): Promise<{
|
|
23
23
|
rollup: RollupContract;
|
|
24
24
|
slashFactoryAddress: EthAddress;
|
|
25
25
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aztec.d.ts","sourceRoot":"","sources":["../../src/utils/aztec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAIjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAShE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAMtF;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,E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,MAAM,GACb,OAAO,CAAC;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,mBAAmB,EAAE,UAAU,CAAA;CAAE,CAAC,CA8CtE;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAKjE;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,6BA4BpE;AAED;;;;;;;GAOG;AACH,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,KAAK;;;;GAO3G;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,MAK7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,KAAK,MAAM,EAKtD,CAAC;AAOF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAUtE;AAKD;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,iBAyB9E"}
|
package/dest/utils/aztec.js
CHANGED
|
@@ -47,7 +47,7 @@ import { encodeArgs } from './encoding.js';
|
|
|
47
47
|
}, config, createVerificationJson);
|
|
48
48
|
return result;
|
|
49
49
|
}
|
|
50
|
-
export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, feeJuicePortalInitialBalance, config, realVerifier, logger) {
|
|
50
|
+
export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, feeJuicePortalInitialBalance, config, realVerifier, createVerificationJson, logger) {
|
|
51
51
|
const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
|
|
52
52
|
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
|
|
53
53
|
const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
|
|
@@ -81,7 +81,7 @@ export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId
|
|
|
81
81
|
feeJuicePortalInitialBalance,
|
|
82
82
|
realVerifier,
|
|
83
83
|
...config
|
|
84
|
-
}, registryAddress, logger, config);
|
|
84
|
+
}, registryAddress, logger, config, createVerificationJson);
|
|
85
85
|
return {
|
|
86
86
|
rollup,
|
|
87
87
|
slashFactoryAddress
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@aztec/archiver": "2.1.0-rc.
|
|
74
|
-
"@aztec/aztec.js": "2.1.0-rc.
|
|
75
|
-
"@aztec/constants": "2.1.0-rc.
|
|
76
|
-
"@aztec/entrypoints": "2.1.0-rc.
|
|
77
|
-
"@aztec/ethereum": "2.1.0-rc.
|
|
78
|
-
"@aztec/foundation": "2.1.0-rc.
|
|
79
|
-
"@aztec/l1-artifacts": "2.1.0-rc.
|
|
80
|
-
"@aztec/node-lib": "2.1.0-rc.
|
|
81
|
-
"@aztec/p2p": "2.1.0-rc.
|
|
82
|
-
"@aztec/stdlib": "2.1.0-rc.
|
|
83
|
-
"@aztec/world-state": "2.1.0-rc.
|
|
73
|
+
"@aztec/archiver": "2.1.0-rc.22",
|
|
74
|
+
"@aztec/aztec.js": "2.1.0-rc.22",
|
|
75
|
+
"@aztec/constants": "2.1.0-rc.22",
|
|
76
|
+
"@aztec/entrypoints": "2.1.0-rc.22",
|
|
77
|
+
"@aztec/ethereum": "2.1.0-rc.22",
|
|
78
|
+
"@aztec/foundation": "2.1.0-rc.22",
|
|
79
|
+
"@aztec/l1-artifacts": "2.1.0-rc.22",
|
|
80
|
+
"@aztec/node-lib": "2.1.0-rc.22",
|
|
81
|
+
"@aztec/p2p": "2.1.0-rc.22",
|
|
82
|
+
"@aztec/stdlib": "2.1.0-rc.22",
|
|
83
|
+
"@aztec/world-state": "2.1.0-rc.22",
|
|
84
84
|
"@iarna/toml": "^2.2.5",
|
|
85
85
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
86
86
|
"commander": "^12.1.0",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@aztec/accounts": "2.1.0-rc.
|
|
96
|
-
"@aztec/protocol-contracts": "2.1.0-rc.
|
|
95
|
+
"@aztec/accounts": "2.1.0-rc.22",
|
|
96
|
+
"@aztec/protocol-contracts": "2.1.0-rc.22",
|
|
97
97
|
"@jest/globals": "^30.0.0",
|
|
98
98
|
"@types/jest": "^30.0.0",
|
|
99
99
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -109,15 +109,15 @@
|
|
|
109
109
|
"typescript": "^5.3.3"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@aztec/accounts": "2.1.0-rc.
|
|
113
|
-
"@aztec/bb-prover": "2.1.0-rc.
|
|
114
|
-
"@aztec/ethereum": "2.1.0-rc.
|
|
115
|
-
"@aztec/l1-artifacts": "2.1.0-rc.
|
|
116
|
-
"@aztec/noir-contracts.js": "2.1.0-rc.
|
|
117
|
-
"@aztec/noir-protocol-circuits-types": "2.1.0-rc.
|
|
118
|
-
"@aztec/noir-test-contracts.js": "2.1.0-rc.
|
|
119
|
-
"@aztec/protocol-contracts": "2.1.0-rc.
|
|
120
|
-
"@aztec/stdlib": "2.1.0-rc.
|
|
112
|
+
"@aztec/accounts": "2.1.0-rc.22",
|
|
113
|
+
"@aztec/bb-prover": "2.1.0-rc.22",
|
|
114
|
+
"@aztec/ethereum": "2.1.0-rc.22",
|
|
115
|
+
"@aztec/l1-artifacts": "2.1.0-rc.22",
|
|
116
|
+
"@aztec/noir-contracts.js": "2.1.0-rc.22",
|
|
117
|
+
"@aztec/noir-protocol-circuits-types": "2.1.0-rc.22",
|
|
118
|
+
"@aztec/noir-test-contracts.js": "2.1.0-rc.22",
|
|
119
|
+
"@aztec/protocol-contracts": "2.1.0-rc.22",
|
|
120
|
+
"@aztec/stdlib": "2.1.0-rc.22"
|
|
121
121
|
},
|
|
122
122
|
"files": [
|
|
123
123
|
"dest",
|
|
@@ -20,6 +20,7 @@ export async function deployNewRollup(
|
|
|
20
20
|
json: boolean,
|
|
21
21
|
initialValidators: Operator[],
|
|
22
22
|
realVerifier: boolean,
|
|
23
|
+
createVerificationJson: string | false,
|
|
23
24
|
log: LogFn,
|
|
24
25
|
debugLogger: Logger,
|
|
25
26
|
) {
|
|
@@ -43,6 +44,7 @@ export async function deployNewRollup(
|
|
|
43
44
|
fundingNeeded,
|
|
44
45
|
config,
|
|
45
46
|
realVerifier,
|
|
47
|
+
createVerificationJson,
|
|
46
48
|
debugLogger,
|
|
47
49
|
);
|
|
48
50
|
|
package/src/cmds/l1/index.ts
CHANGED
|
@@ -94,6 +94,7 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
|
|
|
94
94
|
.option('--test-accounts', 'Populate genesis state with initial fee juice for test accounts')
|
|
95
95
|
.option('--sponsored-fpc', 'Populate genesis state with a testing sponsored FPC contract')
|
|
96
96
|
.option('--real-verifier', 'Deploy the real verifier', false)
|
|
97
|
+
.option('--create-verification-json [path]', 'Create JSON file for etherscan contract verification', false)
|
|
97
98
|
.action(async options => {
|
|
98
99
|
const { deployNewRollup } = await import('./deploy_new_rollup.js');
|
|
99
100
|
|
|
@@ -112,6 +113,7 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
|
|
|
112
113
|
options.json,
|
|
113
114
|
initialValidators,
|
|
114
115
|
options.realVerifier,
|
|
116
|
+
options.createVerificationJson,
|
|
115
117
|
log,
|
|
116
118
|
debugLogger,
|
|
117
119
|
);
|
|
@@ -44,6 +44,7 @@ export type L2ChainConfig = L1ContractsConfig &
|
|
|
44
44
|
|
|
45
45
|
// Control whether sentinel is enabled or not. Needed for slashing
|
|
46
46
|
sentinelEnabled: boolean;
|
|
47
|
+
disableTransactions: boolean;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
const DefaultSlashConfig = {
|
|
@@ -95,6 +96,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
95
96
|
l1ChainId: 11155111,
|
|
96
97
|
testAccounts: false,
|
|
97
98
|
sponsoredFPC: false,
|
|
99
|
+
disableTransactions: true,
|
|
98
100
|
p2pEnabled: true,
|
|
99
101
|
p2pBootstrapNodes: [],
|
|
100
102
|
seqMinTxsPerBlock: 0,
|
|
@@ -176,6 +178,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
176
178
|
l1ChainId: 11155111,
|
|
177
179
|
testAccounts: false,
|
|
178
180
|
sponsoredFPC: true,
|
|
181
|
+
disableTransactions: false,
|
|
179
182
|
p2pEnabled: true,
|
|
180
183
|
p2pBootstrapNodes: [],
|
|
181
184
|
seqMinTxsPerBlock: 0,
|
|
@@ -230,9 +233,10 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
230
233
|
testAccounts: false,
|
|
231
234
|
sponsoredFPC: true,
|
|
232
235
|
p2pEnabled: true,
|
|
236
|
+
disableTransactions: true,
|
|
233
237
|
p2pBootstrapNodes: [],
|
|
234
238
|
seqMinTxsPerBlock: 0,
|
|
235
|
-
seqMaxTxsPerBlock:
|
|
239
|
+
seqMaxTxsPerBlock: 0,
|
|
236
240
|
realProofs: true,
|
|
237
241
|
snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
|
|
238
242
|
autoUpdate: 'config-and-version',
|
|
@@ -267,7 +271,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
267
271
|
/** Governance proposing round size */
|
|
268
272
|
governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
|
|
269
273
|
/** The mana target for the rollup */
|
|
270
|
-
manaTarget:
|
|
274
|
+
manaTarget: 0n,
|
|
271
275
|
/** The proving cost per mana */
|
|
272
276
|
provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
|
|
273
277
|
/** Exit delay for stakers */
|
|
@@ -281,18 +285,19 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
281
285
|
...DefaultNetworkDBMapSizeConfig,
|
|
282
286
|
};
|
|
283
287
|
|
|
284
|
-
export const
|
|
288
|
+
export const mainnetL2ChainConfig: L2ChainConfig = {
|
|
285
289
|
l1ChainId: 1,
|
|
286
290
|
testAccounts: false,
|
|
287
291
|
sponsoredFPC: false,
|
|
288
292
|
p2pEnabled: true,
|
|
293
|
+
disableTransactions: true,
|
|
289
294
|
p2pBootstrapNodes: [],
|
|
290
295
|
seqMinTxsPerBlock: 0,
|
|
291
296
|
seqMaxTxsPerBlock: 0,
|
|
292
297
|
realProofs: true,
|
|
293
|
-
snapshotsUrls: [`${SNAPSHOTS_URL}/
|
|
298
|
+
snapshotsUrls: [`${SNAPSHOTS_URL}/mainnet/`],
|
|
294
299
|
autoUpdate: 'notify',
|
|
295
|
-
autoUpdateUrl: 'https://storage.googleapis.com/aztec-
|
|
300
|
+
autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
|
|
296
301
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
297
302
|
publicIncludeMetrics,
|
|
298
303
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -370,8 +375,8 @@ export function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | und
|
|
|
370
375
|
config = { ...testnetL2ChainConfig };
|
|
371
376
|
} else if (networkName === 'staging-ignition') {
|
|
372
377
|
config = { ...stagingIgnitionL2ChainConfig };
|
|
373
|
-
} else if (networkName === '
|
|
374
|
-
config = { ...
|
|
378
|
+
} else if (networkName === 'mainnet') {
|
|
379
|
+
config = { ...mainnetL2ChainConfig };
|
|
375
380
|
}
|
|
376
381
|
return config;
|
|
377
382
|
}
|
|
@@ -471,4 +476,5 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
|
|
|
471
476
|
enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
|
|
472
477
|
|
|
473
478
|
enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
|
|
479
|
+
enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
|
|
474
480
|
}
|
package/src/utils/aztec.ts
CHANGED
|
@@ -109,6 +109,7 @@ export async function deployNewRollupContracts(
|
|
|
109
109
|
feeJuicePortalInitialBalance: bigint,
|
|
110
110
|
config: L1ContractsConfig,
|
|
111
111
|
realVerifier: boolean,
|
|
112
|
+
createVerificationJson: string | false,
|
|
112
113
|
logger: Logger,
|
|
113
114
|
): Promise<{ rollup: RollupContract; slashFactoryAddress: EthAddress }> {
|
|
114
115
|
const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
|
|
@@ -152,6 +153,7 @@ export async function deployNewRollupContracts(
|
|
|
152
153
|
registryAddress,
|
|
153
154
|
logger,
|
|
154
155
|
config,
|
|
156
|
+
createVerificationJson,
|
|
155
157
|
);
|
|
156
158
|
|
|
157
159
|
return { rollup, slashFactoryAddress };
|