@aztec/cli 3.0.0-nightly.20251023 → 3.0.0-nightly.20251025

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.
Files changed (73) hide show
  1. package/dest/cmds/aztec_node/block_number.js +1 -1
  2. package/dest/cmds/aztec_node/get_block.js +1 -1
  3. package/dest/cmds/aztec_node/get_current_base_fee.js +1 -1
  4. package/dest/cmds/aztec_node/get_l1_to_l2_message_witness.d.ts +2 -1
  5. package/dest/cmds/aztec_node/get_l1_to_l2_message_witness.d.ts.map +1 -1
  6. package/dest/cmds/aztec_node/get_l1_to_l2_message_witness.js +1 -1
  7. package/dest/cmds/aztec_node/get_logs.d.ts +3 -1
  8. package/dest/cmds/aztec_node/get_logs.d.ts.map +1 -1
  9. package/dest/cmds/aztec_node/get_logs.js +1 -1
  10. package/dest/cmds/aztec_node/get_node_info.js +1 -1
  11. package/dest/cmds/infrastructure/sequencers.d.ts.map +1 -1
  12. package/dest/cmds/infrastructure/sequencers.js +2 -1
  13. package/dest/cmds/infrastructure/setup_l2_contract.d.ts.map +1 -1
  14. package/dest/cmds/infrastructure/setup_l2_contract.js +1 -1
  15. package/dest/cmds/l1/advance_epoch.js +1 -1
  16. package/dest/cmds/l1/assume_proven_through.js +1 -1
  17. package/dest/cmds/l1/bridge_erc20.d.ts +1 -1
  18. package/dest/cmds/l1/bridge_erc20.d.ts.map +1 -1
  19. package/dest/cmds/l1/bridge_erc20.js +1 -1
  20. package/dest/cmds/l1/deploy_l1_contracts.d.ts +1 -1
  21. package/dest/cmds/l1/deploy_l1_contracts.d.ts.map +1 -1
  22. package/dest/cmds/l1/deploy_l1_contracts.js +1 -1
  23. package/dest/cmds/l1/deploy_new_rollup.d.ts +1 -1
  24. package/dest/cmds/l1/deploy_new_rollup.d.ts.map +1 -1
  25. package/dest/cmds/l1/deploy_new_rollup.js +2 -2
  26. package/dest/cmds/l1/get_l1_addresses.d.ts +1 -1
  27. package/dest/cmds/l1/get_l1_addresses.d.ts.map +1 -1
  28. package/dest/cmds/l1/index.d.ts.map +1 -1
  29. package/dest/cmds/l1/index.js +2 -2
  30. package/dest/cmds/misc/generate_secret_and_hash.js +1 -1
  31. package/dest/cmds/misc/generate_secret_key.d.ts +1 -1
  32. package/dest/cmds/misc/generate_secret_key.d.ts.map +1 -1
  33. package/dest/cmds/misc/generate_secret_key.js +1 -1
  34. package/dest/config/cached_fetch.d.ts +1 -1
  35. package/dest/config/cached_fetch.d.ts.map +1 -1
  36. package/dest/config/cached_fetch.js +1 -1
  37. package/dest/config/chain_l2_config.d.ts +3 -1
  38. package/dest/config/chain_l2_config.d.ts.map +1 -1
  39. package/dest/config/chain_l2_config.js +54 -7
  40. package/dest/config/enrich_env.js +1 -1
  41. package/dest/utils/aztec.d.ts +2 -2
  42. package/dest/utils/aztec.d.ts.map +1 -1
  43. package/dest/utils/aztec.js +3 -3
  44. package/dest/utils/commands.d.ts +3 -4
  45. package/dest/utils/commands.d.ts.map +1 -1
  46. package/dest/utils/commands.js +3 -4
  47. package/dest/utils/setup_contracts.d.ts +2 -1
  48. package/dest/utils/setup_contracts.d.ts.map +1 -1
  49. package/dest/utils/setup_contracts.js +2 -1
  50. package/package.json +24 -24
  51. package/src/cmds/aztec_node/block_number.ts +1 -1
  52. package/src/cmds/aztec_node/get_block.ts +1 -1
  53. package/src/cmds/aztec_node/get_current_base_fee.ts +1 -1
  54. package/src/cmds/aztec_node/get_l1_to_l2_message_witness.ts +3 -1
  55. package/src/cmds/aztec_node/get_logs.ts +4 -2
  56. package/src/cmds/aztec_node/get_node_info.ts +1 -1
  57. package/src/cmds/infrastructure/sequencers.ts +2 -1
  58. package/src/cmds/infrastructure/setup_l2_contract.ts +4 -1
  59. package/src/cmds/l1/advance_epoch.ts +1 -1
  60. package/src/cmds/l1/assume_proven_through.ts +1 -1
  61. package/src/cmds/l1/bridge_erc20.ts +3 -1
  62. package/src/cmds/l1/deploy_l1_contracts.ts +2 -1
  63. package/src/cmds/l1/deploy_new_rollup.ts +2 -0
  64. package/src/cmds/l1/get_l1_addresses.ts +1 -1
  65. package/src/cmds/l1/index.ts +2 -0
  66. package/src/cmds/misc/generate_secret_and_hash.ts +1 -1
  67. package/src/cmds/misc/generate_secret_key.ts +1 -1
  68. package/src/config/cached_fetch.ts +1 -1
  69. package/src/config/chain_l2_config.ts +69 -7
  70. package/src/config/enrich_env.ts +1 -1
  71. package/src/utils/aztec.ts +3 -1
  72. package/src/utils/commands.ts +3 -4
  73. package/src/utils/setup_contracts.ts +4 -2
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  export async function blockNumber(nodeUrl, log) {
3
3
  const aztecNode = createAztecNodeClient(nodeUrl);
4
4
  const [latestNum, provenNum] = await Promise.all([
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { inspectBlock } from '../../utils/inspect.js';
3
3
  export async function getBlock(nodeUrl, maybeBlockNumber, log) {
4
4
  const aztecNode = createAztecNodeClient(nodeUrl);
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { jsonStringify } from '@aztec/foundation/json-rpc';
3
3
  export async function getCurrentBaseFee(nodeUrl, debugLogger, log) {
4
4
  const node = createAztecNodeClient(nodeUrl);
@@ -1,4 +1,5 @@
1
- import { type AztecAddress, type Fr } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { Fr } from '@aztec/aztec.js/fields';
2
3
  import type { LogFn } from '@aztec/foundation/log';
3
4
  export declare function getL1ToL2MessageWitness(nodeUrl: string, contractAddress: AztecAddress, messageHash: Fr, secret: Fr, log: LogFn): Promise<void>;
4
5
  //# sourceMappingURL=get_l1_to_l2_message_witness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_l1_to_l2_message_witness.d.ts","sourceRoot":"","sources":["../../../src/cmds/aztec_node/get_l1_to_l2_message_witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,EAAE,EAAyB,MAAM,iBAAiB,CAAC;AACpF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,YAAY,EAC7B,WAAW,EAAE,EAAE,EACf,MAAM,EAAE,EAAE,EACV,GAAG,EAAE,KAAK,iBAeX"}
1
+ {"version":3,"file":"get_l1_to_l2_message_witness.d.ts","sourceRoot":"","sources":["../../../src/cmds/aztec_node/get_l1_to_l2_message_witness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,YAAY,EAC7B,WAAW,EAAE,EAAE,EACf,MAAM,EAAE,EAAE,EACV,GAAG,EAAE,KAAK,iBAeX"}
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { getNonNullifiedL1ToL2MessageWitness } from '@aztec/stdlib/messaging';
3
3
  export async function getL1ToL2MessageWitness(nodeUrl, contractAddress, messageHash, secret, log) {
4
4
  const node = createAztecNodeClient(nodeUrl);
@@ -1,4 +1,6 @@
1
- import type { AztecAddress, LogId, TxHash } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { LogId } from '@aztec/aztec.js/log';
3
+ import type { TxHash } from '@aztec/aztec.js/tx';
2
4
  import type { LogFn } from '@aztec/foundation/log';
3
5
  export declare function getLogs(txHash: TxHash, fromBlock: number, toBlock: number, afterLog: LogId, contractAddress: AztecAddress, nodeUrl: string, follow: boolean, log: LogFn): Promise<void>;
4
6
  //# sourceMappingURL=get_logs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_logs.d.ts","sourceRoot":"","sources":["../../../src/cmds/aztec_node/get_logs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAa,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,KAAK,EACf,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,EACf,GAAG,EAAE,KAAK,iBAmDX"}
1
+ {"version":3,"file":"get_logs.d.ts","sourceRoot":"","sources":["../../../src/cmds/aztec_node/get_logs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAa,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,KAAK,EACf,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,EACf,GAAG,EAAE,KAAK,iBAmDX"}
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { sleep } from '@aztec/foundation/sleep';
3
3
  export async function getLogs(txHash, fromBlock, toBlock, afterLog, contractAddress, nodeUrl, follow, log) {
4
4
  const node = createAztecNodeClient(nodeUrl);
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  export async function getNodeInfo(nodeUrl, json, log, logJson) {
3
3
  const client = createAztecNodeClient(nodeUrl);
4
4
  const info = await client.getNodeInfo();
@@ -1 +1 @@
1
- {"version":3,"file":"sequencers.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/sequencers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,KAAK,CAAC;CACZ,iBAoGA"}
1
+ {"version":3,"file":"sequencers.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/sequencers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,KAAK,CAAC;CACZ,iBAoGA"}
@@ -1,4 +1,5 @@
1
- import { Fr, createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { Fr } from '@aztec/aztec.js/fields';
2
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
3
  import { GSEContract, RollupContract, createEthereumChain, getL1ContractsConfigEnvVars } from '@aztec/ethereum';
3
4
  import { RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';
4
5
  import { createPublicClient, createWalletClient, fallback, getContract, http } from 'viem';
@@ -1 +1 @@
1
- {"version":3,"file":"setup_l2_contract.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/setup_l2_contract.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,iBAwBvG"}
1
+ {"version":3,"file":"setup_l2_contract.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/setup_l2_contract.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,iBAwBvG"}
@@ -1,5 +1,5 @@
1
1
  import { getInitialTestAccountsData } from '@aztec/accounts/testing';
2
- import { createAztecNodeClient } from '@aztec/aztec.js';
2
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
3
3
  import { jsonStringify } from '@aztec/foundation/json-rpc';
4
4
  import { ProtocolContractAddress } from '@aztec/protocol-contracts';
5
5
  import { TestWallet, deployFundedSchnorrAccounts } from '@aztec/test-wallet/server';
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  import { DateProvider } from '@aztec/foundation/timer';
4
4
  export async function advanceEpoch(l1RpcUrls, nodeUrl, log) {
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  import { DateProvider } from '@aztec/foundation/timer';
4
4
  export async function assumeProvenThrough(blockNumberOrLatest, l1RpcUrls, nodeUrl, log) {
@@ -1,4 +1,4 @@
1
- import { type AztecAddress, type EthAddress } from '@aztec/aztec.js';
1
+ import type { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
2
2
  import type { LogFn, Logger } from '@aztec/foundation/log';
3
3
  export declare function bridgeERC20(amount: bigint, recipient: AztecAddress, l1RpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, tokenAddress: EthAddress, handlerAddress: EthAddress | undefined, portalAddress: EthAddress, privateTransfer: boolean, mint: boolean, json: boolean, log: LogFn, debugLogger: Logger): Promise<void>;
4
4
  //# sourceMappingURL=bridge_erc20.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge_erc20.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/bridge_erc20.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAqC,MAAM,iBAAiB,CAAC;AAExG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAI3D,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,UAAU,EACxB,cAAc,EAAE,UAAU,GAAG,SAAS,EACtC,aAAa,EAAE,UAAU,EACzB,eAAe,EAAE,OAAO,EACxB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,iBAgCpB"}
1
+ {"version":3,"file":"bridge_erc20.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/bridge_erc20.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAI1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAI3D,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,UAAU,EACxB,cAAc,EAAE,UAAU,GAAG,SAAS,EACtC,aAAa,EAAE,UAAU,EACzB,eAAe,EAAE,OAAO,EACxB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,iBAgCpB"}
@@ -1,4 +1,4 @@
1
- import { L1ToL2TokenPortalManager } from '@aztec/aztec.js';
1
+ import { L1ToL2TokenPortalManager } from '@aztec/aztec.js/ethereum';
2
2
  import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
3
3
  import { prettyPrintJSON } from '../../utils/commands.js';
4
4
  export async function bridgeERC20(amount, recipient, l1RpcUrls, chainId, privateKey, mnemonic, tokenAddress, handlerAddress, portalAddress, privateTransfer, mint, json, log, debugLogger) {
@@ -1,4 +1,4 @@
1
- import { type EthAddress } from '@aztec/aztec.js';
1
+ import type { EthAddress } from '@aztec/aztec.js/addresses';
2
2
  import type { LogFn, Logger } from '@aztec/foundation/log';
3
3
  export declare function deployL1Contracts(rpcUrls: string[], chainId: number, privateKey: string | undefined, mnemonic: string, mnemonicIndex: number, salt: number | undefined, testAccounts: boolean, sponsoredFPC: boolean, acceleratedTestDeployments: boolean, json: boolean, createVerificationJson: string | false, initialValidators: EthAddress[], realVerifier: boolean, existingToken: EthAddress | undefined, log: LogFn, debugLogger: Logger): Promise<void>;
4
4
  //# sourceMappingURL=deploy_l1_contracts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploy_l1_contracts.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/deploy_l1_contracts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAM,MAAM,iBAAiB,CAAC;AAGtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM3D,wBAAsB,iBAAiB,CACrC,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,0BAA0B,EAAE,OAAO,EACnC,IAAI,EAAE,OAAO,EACb,sBAAsB,EAAE,MAAM,GAAG,KAAK,EACtC,iBAAiB,EAAE,UAAU,EAAE,EAC/B,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,UAAU,GAAG,SAAS,EACrC,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,iBA8DpB"}
1
+ {"version":3,"file":"deploy_l1_contracts.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/deploy_l1_contracts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAI5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM3D,wBAAsB,iBAAiB,CACrC,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,0BAA0B,EAAE,OAAO,EACnC,IAAI,EAAE,OAAO,EACb,sBAAsB,EAAE,MAAM,GAAG,KAAK,EACtC,iBAAiB,EAAE,UAAU,EAAE,EAC/B,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,UAAU,GAAG,SAAS,EACrC,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,iBA8DpB"}
@@ -1,5 +1,5 @@
1
1
  import { getInitialTestAccountsData } from '@aztec/accounts/testing';
2
- import { Fr } from '@aztec/aztec.js';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
3
  import { getL1ContractsConfigEnvVars } from '@aztec/ethereum';
4
4
  import { SecretValue } from '@aztec/foundation/config';
5
5
  import { getGenesisValues } from '@aztec/world-state/testing';
@@ -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,iBA8CpB"}
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 getInitialTestAccountsData() : [];
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,4 +1,4 @@
1
- import { EthAddress } from '@aztec/aztec.js';
1
+ import { EthAddress } from '@aztec/aztec.js/addresses';
2
2
  import type { LogFn } from '@aztec/foundation/log';
3
3
  export declare function getL1Addresses(registryAddress: EthAddress, rollupVersion: number | bigint | 'canonical', rpcUrls: string[], chainId: number, json: boolean, log: LogFn): Promise<void>;
4
4
  //# sourceMappingURL=get_l1_addresses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_l1_addresses.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/get_l1_addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,wBAAsB,cAAc,CAClC,eAAe,EAAE,UAAU,EAC3B,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,EAC5C,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,iBAiBX"}
1
+ {"version":3,"file":"get_l1_addresses.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/get_l1_addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,wBAAsB,cAAc,CAClC,eAAe,EAAE,UAAU,EAC3B,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,EAC5C,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,iBAiBX"}
@@ -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,WAkf/E"}
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"}
@@ -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');
@@ -1,4 +1,4 @@
1
- import { computeSecretHash } from '@aztec/aztec.js';
1
+ import { computeSecretHash } from '@aztec/aztec.js/crypto';
2
2
  import { Fr } from '@aztec/foundation/fields';
3
3
  export async function generateSecretAndHash(log) {
4
4
  const secret = Fr.random();
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/aztec.js';
1
+ import { Fr } from '@aztec/aztec.js/fields';
2
2
  export declare function generateSecretKey(): {
3
3
  secretKey: Fr;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"generate_secret_key.d.ts","sourceRoot":"","sources":["../../../src/cmds/misc/generate_secret_key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,wBAAgB,iBAAiB;;EAEhC"}
1
+ {"version":3,"file":"generate_secret_key.d.ts","sourceRoot":"","sources":["../../../src/cmds/misc/generate_secret_key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAE5C,wBAAgB,iBAAiB;;EAEhC"}
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/aztec.js';
1
+ import { Fr } from '@aztec/aztec.js/fields';
2
2
  export function generateSecretKey() {
3
3
  return {
4
4
  secretKey: Fr.random()
@@ -14,5 +14,5 @@ export interface CachedFetchOptions {
14
14
  * @param cacheDir - Optional cache directory (defaults to no caching)
15
15
  * @returns The fetched and parsed JSON data, or undefined if fetch fails and throwOnError is false
16
16
  */
17
- export declare function cachedFetch<T = any>(url: string, options: CachedFetchOptions, fetch?: typeof globalThis.fetch, log?: import("@aztec/aztec.js").Logger): Promise<T | undefined>;
17
+ export declare function cachedFetch<T = any>(url: string, options: CachedFetchOptions, fetch?: typeof globalThis.fetch, log?: import("@aztec/aztec.js/log").Logger): Promise<T | undefined>;
18
18
  //# sourceMappingURL=cached_fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cached_fetch.d.ts","sourceRoot":"","sources":["../../src/config/cached_fetch.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,GAAG,EACvC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,kBAAkB,EAC3B,KAAK,0BAAmB,EACxB,GAAG,mCAA+B,GACjC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAuCxB"}
1
+ {"version":3,"file":"cached_fetch.d.ts","sourceRoot":"","sources":["../../src/config/cached_fetch.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,GAAG,EACvC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,kBAAkB,EAC3B,KAAK,0BAAmB,EACxB,GAAG,uCAA+B,GACjC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAuCxB"}
@@ -1,4 +1,4 @@
1
- import { createLogger } from '@aztec/aztec.js';
1
+ import { createLogger } from '@aztec/aztec.js/log';
2
2
  import { mkdir, readFile, stat, writeFile } from 'fs/promises';
3
3
  import { dirname } from 'path';
4
4
  /**
@@ -24,12 +24,14 @@ export type L2ChainConfig = L1ContractsConfig & Omit<SlasherConfig, 'slashValida
24
24
  nullifierTreeMapSizeKb: number;
25
25
  publicDataTreeMapSizeKb: number;
26
26
  sentinelEnabled: boolean;
27
+ disableTransactions: boolean;
27
28
  };
28
29
  export declare const stagingIgnitionL2ChainConfig: L2ChainConfig;
29
30
  export declare const stagingPublicL2ChainConfig: L2ChainConfig;
30
31
  export declare const nextNetL2ChainConfig: L2ChainConfig;
31
32
  export declare const testnetL2ChainConfig: L2ChainConfig;
32
- export declare const ignitionL2ChainConfig: L2ChainConfig;
33
+ export declare const mainnetL2ChainConfig: L2ChainConfig;
34
+ export declare const devnetL2ChainConfig: L2ChainConfig;
33
35
  export declare function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined;
34
36
  export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): void;
35
37
  //# 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;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAYrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,uBAAuB,C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,aAmDlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAqDlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAiFlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAmDjC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAgBrF;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,
@@ -112,6 +113,7 @@ export const stagingPublicL2ChainConfig = {
112
113
  l1ChainId: 11155111,
113
114
  testAccounts: false,
114
115
  sponsoredFPC: true,
116
+ disableTransactions: false,
115
117
  p2pEnabled: true,
116
118
  p2pBootstrapNodes: [],
117
119
  seqMinTxsPerBlock: 0,
@@ -151,6 +153,7 @@ export const nextNetL2ChainConfig = {
151
153
  testAccounts: true,
152
154
  sponsoredFPC: true,
153
155
  p2pEnabled: true,
156
+ disableTransactions: false,
154
157
  p2pBootstrapNodes: [],
155
158
  seqMinTxsPerBlock: 0,
156
159
  seqMaxTxsPerBlock: 8,
@@ -187,9 +190,10 @@ export const testnetL2ChainConfig = {
187
190
  testAccounts: false,
188
191
  sponsoredFPC: true,
189
192
  p2pEnabled: true,
193
+ disableTransactions: true,
190
194
  p2pBootstrapNodes: [],
191
195
  seqMinTxsPerBlock: 0,
192
- seqMaxTxsPerBlock: 20,
196
+ seqMaxTxsPerBlock: 0,
193
197
  realProofs: true,
194
198
  snapshotsUrls: [
195
199
  `${SNAPSHOTS_URL}/testnet/`
@@ -214,7 +218,7 @@ export const testnetL2ChainConfig = {
214
218
  /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
215
219
  /** The slashing round size */ slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
216
220
  /** Governance proposing round size */ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
217
- /** The mana target for the rollup */ manaTarget: DefaultL1ContractsConfig.manaTarget,
221
+ /** The mana target for the rollup */ manaTarget: 0n,
218
222
  /** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
219
223
  /** Exit delay for stakers */ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
220
224
  ...DefaultSlashConfig,
@@ -222,20 +226,21 @@ export const testnetL2ChainConfig = {
222
226
  slashDataWithholdingPenalty: 0n,
223
227
  ...DefaultNetworkDBMapSizeConfig
224
228
  };
225
- export const ignitionL2ChainConfig = {
229
+ export const mainnetL2ChainConfig = {
226
230
  l1ChainId: 1,
227
231
  testAccounts: false,
228
232
  sponsoredFPC: false,
229
233
  p2pEnabled: true,
234
+ disableTransactions: true,
230
235
  p2pBootstrapNodes: [],
231
236
  seqMinTxsPerBlock: 0,
232
237
  seqMaxTxsPerBlock: 0,
233
238
  realProofs: true,
234
239
  snapshotsUrls: [
235
- `${SNAPSHOTS_URL}/ignition-mainnet/`
240
+ `${SNAPSHOTS_URL}/mainnet/`
236
241
  ],
237
242
  autoUpdate: 'notify',
238
- autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/ignition-mainnet.json',
243
+ autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
239
244
  maxTxPoolSize: 100_000_000,
240
245
  publicIncludeMetrics,
241
246
  publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
@@ -287,6 +292,43 @@ export const ignitionL2ChainConfig = {
287
292
  slashExecuteRoundsLookBack: 4,
288
293
  ...DefaultNetworkDBMapSizeConfig
289
294
  };
295
+ export const devnetL2ChainConfig = {
296
+ l1ChainId: 11155111,
297
+ testAccounts: true,
298
+ sponsoredFPC: true,
299
+ p2pEnabled: true,
300
+ disableTransactions: false,
301
+ p2pBootstrapNodes: [],
302
+ seqMinTxsPerBlock: 0,
303
+ seqMaxTxsPerBlock: 8,
304
+ realProofs: false,
305
+ snapshotsUrls: [],
306
+ autoUpdate: 'config-and-version',
307
+ autoUpdateUrl: '',
308
+ publicIncludeMetrics,
309
+ publicMetricsCollectorUrl: '',
310
+ publicMetricsCollectFrom: [
311
+ ''
312
+ ],
313
+ maxTxPoolSize: 100_000_000,
314
+ // Deployment stuff
315
+ /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
316
+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
317
+ /** How many L2 slots an epoch lasts. */ aztecEpochDuration: 8,
318
+ /** The target validator committee size. */ aztecTargetCommitteeSize: 1,
319
+ /** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: 0,
320
+ /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
321
+ /** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
322
+ /** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
323
+ /** The minimum stake for a validator. */ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
324
+ /** The slashing round size */ slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
325
+ /** Governance proposing round size */ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
326
+ /** The mana target for the rollup */ manaTarget: DefaultL1ContractsConfig.manaTarget,
327
+ /** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
328
+ /** Exit delay for stakers */ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
329
+ ...DefaultSlashConfig,
330
+ ...DefaultNetworkDBMapSizeConfig
331
+ };
290
332
  export function getL2ChainConfig(networkName) {
291
333
  let config;
292
334
  if (networkName === 'staging-public') {
@@ -301,14 +343,18 @@ export function getL2ChainConfig(networkName) {
301
343
  config = {
302
344
  ...stagingIgnitionL2ChainConfig
303
345
  };
304
- } else if (networkName === 'ignition') {
346
+ } else if (networkName === 'mainnet') {
305
347
  config = {
306
- ...ignitionL2ChainConfig
348
+ ...mainnetL2ChainConfig
307
349
  };
308
350
  } else if (networkName === 'next-net') {
309
351
  config = {
310
352
  ...nextNetL2ChainConfig
311
353
  };
354
+ } else if (networkName === 'devnet') {
355
+ config = {
356
+ ...devnetL2ChainConfig
357
+ };
312
358
  }
313
359
  return config;
314
360
  }
@@ -394,4 +440,5 @@ export function enrichEnvironmentWithChainConfig(networkName) {
394
440
  enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
395
441
  enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
396
442
  enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
443
+ enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
397
444
  }
@@ -1,4 +1,4 @@
1
- import { EthAddress } from '@aztec/aztec.js';
1
+ import { EthAddress } from '@aztec/aztec.js/addresses';
2
2
  export function enrichVar(envVar, value) {
3
3
  // Don't override
4
4
  if (process.env[envVar] || value === undefined) {
@@ -1,5 +1,5 @@
1
- import { EthAddress } from '@aztec/aztec.js';
2
1
  import { type ContractArtifact, type FunctionAbi } from '@aztec/aztec.js/abi';
2
+ import { EthAddress } from '@aztec/aztec.js/addresses';
3
3
  import { type DeployL1ContractsReturnType, type L1ContractsConfig, type Operator, RollupContract } from '@aztec/ethereum';
4
4
  import { Fr } from '@aztec/foundation/fields';
5
5
  import type { LogFn, Logger } from '@aztec/foundation/log';
@@ -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,MAAM,iBAAiB,CAAC;AAC7C,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,KAA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,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"}
@@ -1,5 +1,5 @@
1
- import { EthAddress } from '@aztec/aztec.js';
2
1
  import { FunctionType, getAllFunctionAbis, loadContractArtifact } from '@aztec/aztec.js/abi';
2
+ import { EthAddress } from '@aztec/aztec.js/addresses';
3
3
  import { SecretValue } from '@aztec/foundation/config';
4
4
  import { Fr } from '@aztec/foundation/fields';
5
5
  import { protocolContractsHash } from '@aztec/protocol-contracts';
@@ -46,7 +46,7 @@ import { encodeArgs } from './encoding.js';
46
46
  }, config, createVerificationJson);
47
47
  return result;
48
48
  }
49
- export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, feeJuicePortalInitialBalance, config, realVerifier, logger) {
49
+ export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, feeJuicePortalInitialBalance, config, realVerifier, createVerificationJson, logger) {
50
50
  const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
51
51
  const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
52
52
  const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
@@ -80,7 +80,7 @@ export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId
80
80
  feeJuicePortalInitialBalance,
81
81
  realVerifier,
82
82
  ...config
83
- }, registryAddress, logger, config);
83
+ }, registryAddress, logger, config, createVerificationJson);
84
84
  return {
85
85
  rollup,
86
86
  slashFactoryAddress
@@ -1,9 +1,8 @@
1
1
  import { FunctionSelector } from '@aztec/aztec.js/abi';
2
- import { AztecAddress } from '@aztec/aztec.js/addresses';
3
- import { EthAddress } from '@aztec/aztec.js/eth_address';
2
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
4
3
  import { Fr } from '@aztec/aztec.js/fields';
5
- import { LogId } from '@aztec/aztec.js/log_id';
6
- import { TxHash } from '@aztec/aztec.js/tx_hash';
4
+ import { LogId } from '@aztec/aztec.js/log';
5
+ import { TxHash } from '@aztec/aztec.js/tx';
7
6
  import type { LogFn } from '@aztec/foundation/log';
8
7
  import type { PXE } from '@aztec/pxe/server';
9
8
  import { PublicKeys } from '@aztec/stdlib/keys';
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/utils/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,KAAK,OAAO,EAAwC,MAAM,EAAE,MAAM,WAAW,CAAC;AAIvF;;;GAGG;AACH,eAAO,MAAM,YAAY,uBAGI,CAAC;AAE9B,eAAO,MAAM,SAAS,QAAuB,CAAC;AAC9C,eAAO,MAAQ,cAAc,UAA+B,WAAW,sBAAE,QAAQ,sBAAE,OAAO,sBAAE,WAAW,oBAAgB,CAAC;AAExH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,E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;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAKnF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAKnE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CASpF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAStE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CASxE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,EAAE,CAMvD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,EAAE,CAMpD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,EAAE,CAyB5C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAElD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAcjE"}
@@ -1,9 +1,8 @@
1
1
  import { FunctionSelector } from '@aztec/aztec.js/abi';
2
- import { AztecAddress } from '@aztec/aztec.js/addresses';
3
- import { EthAddress } from '@aztec/aztec.js/eth_address';
2
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
4
3
  import { Fr } from '@aztec/aztec.js/fields';
5
- import { LogId } from '@aztec/aztec.js/log_id';
6
- import { TxHash } from '@aztec/aztec.js/tx_hash';
4
+ import { LogId } from '@aztec/aztec.js/log';
5
+ import { TxHash } from '@aztec/aztec.js/tx';
7
6
  import { PublicKeys } from '@aztec/stdlib/keys';
8
7
  import { CommanderError, InvalidArgumentError, Option } from 'commander';
9
8
  import { lookup } from 'dns/promises';
@@ -1,2 +1,3 @@
1
- export declare function getSponsoredFPCAddress(): Promise<import("@aztec/aztec.js").AztecAddress>;
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ export declare function getSponsoredFPCAddress(): Promise<AztecAddress>;
2
3
  //# sourceMappingURL=setup_contracts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup_contracts.d.ts","sourceRoot":"","sources":["../../src/utils/setup_contracts.ts"],"names":[],"mappings":"AAUA,wBAAsB,sBAAsB,oDAM3C"}
1
+ {"version":3,"file":"setup_contracts.d.ts","sourceRoot":"","sources":["../../src/utils/setup_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAY9D,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,YAAY,CAAC,CAMpE"}
@@ -1,4 +1,5 @@
1
- import { Fr, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js';
1
+ import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
2
+ import { Fr } from '@aztec/aztec.js/fields';
2
3
  import { SPONSORED_FPC_SALT } from '@aztec/constants';
3
4
  async function getSponsoredFPCContract() {
4
5
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "3.0.0-nightly.20251023",
3
+ "version": "3.0.0-nightly.20251025",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -70,20 +70,20 @@
70
70
  ]
71
71
  },
72
72
  "dependencies": {
73
- "@aztec/accounts": "3.0.0-nightly.20251023",
74
- "@aztec/archiver": "3.0.0-nightly.20251023",
75
- "@aztec/aztec.js": "3.0.0-nightly.20251023",
76
- "@aztec/constants": "3.0.0-nightly.20251023",
77
- "@aztec/entrypoints": "3.0.0-nightly.20251023",
78
- "@aztec/ethereum": "3.0.0-nightly.20251023",
79
- "@aztec/foundation": "3.0.0-nightly.20251023",
80
- "@aztec/l1-artifacts": "3.0.0-nightly.20251023",
81
- "@aztec/node-lib": "3.0.0-nightly.20251023",
82
- "@aztec/p2p": "3.0.0-nightly.20251023",
83
- "@aztec/protocol-contracts": "3.0.0-nightly.20251023",
84
- "@aztec/stdlib": "3.0.0-nightly.20251023",
85
- "@aztec/test-wallet": "3.0.0-nightly.20251023",
86
- "@aztec/world-state": "3.0.0-nightly.20251023",
73
+ "@aztec/accounts": "3.0.0-nightly.20251025",
74
+ "@aztec/archiver": "3.0.0-nightly.20251025",
75
+ "@aztec/aztec.js": "3.0.0-nightly.20251025",
76
+ "@aztec/constants": "3.0.0-nightly.20251025",
77
+ "@aztec/entrypoints": "3.0.0-nightly.20251025",
78
+ "@aztec/ethereum": "3.0.0-nightly.20251025",
79
+ "@aztec/foundation": "3.0.0-nightly.20251025",
80
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251025",
81
+ "@aztec/node-lib": "3.0.0-nightly.20251025",
82
+ "@aztec/p2p": "3.0.0-nightly.20251025",
83
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251025",
84
+ "@aztec/stdlib": "3.0.0-nightly.20251025",
85
+ "@aztec/test-wallet": "3.0.0-nightly.20251025",
86
+ "@aztec/world-state": "3.0.0-nightly.20251025",
87
87
  "@iarna/toml": "^2.2.5",
88
88
  "@libp2p/peer-id-factory": "^3.0.4",
89
89
  "commander": "^12.1.0",
@@ -110,15 +110,15 @@
110
110
  "typescript": "^5.3.3"
111
111
  },
112
112
  "peerDependencies": {
113
- "@aztec/accounts": "3.0.0-nightly.20251023",
114
- "@aztec/bb-prover": "3.0.0-nightly.20251023",
115
- "@aztec/ethereum": "3.0.0-nightly.20251023",
116
- "@aztec/l1-artifacts": "3.0.0-nightly.20251023",
117
- "@aztec/noir-contracts.js": "3.0.0-nightly.20251023",
118
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251023",
119
- "@aztec/noir-test-contracts.js": "3.0.0-nightly.20251023",
120
- "@aztec/protocol-contracts": "3.0.0-nightly.20251023",
121
- "@aztec/stdlib": "3.0.0-nightly.20251023"
113
+ "@aztec/accounts": "3.0.0-nightly.20251025",
114
+ "@aztec/bb-prover": "3.0.0-nightly.20251025",
115
+ "@aztec/ethereum": "3.0.0-nightly.20251025",
116
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251025",
117
+ "@aztec/noir-contracts.js": "3.0.0-nightly.20251025",
118
+ "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251025",
119
+ "@aztec/noir-test-contracts.js": "3.0.0-nightly.20251025",
120
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251025",
121
+ "@aztec/stdlib": "3.0.0-nightly.20251025"
122
122
  },
123
123
  "files": [
124
124
  "dest",
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import type { LogFn } from '@aztec/foundation/log';
3
3
 
4
4
  export async function blockNumber(nodeUrl: string, log: LogFn) {
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import type { LogFn } from '@aztec/foundation/log';
3
3
 
4
4
  import { inspectBlock } from '../../utils/inspect.js';
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { jsonStringify } from '@aztec/foundation/json-rpc';
3
3
  import type { LogFn, Logger } from '@aztec/foundation/log';
4
4
 
@@ -1,4 +1,6 @@
1
- import { type AztecAddress, type Fr, createAztecNodeClient } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { Fr } from '@aztec/aztec.js/fields';
3
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
4
  import type { LogFn } from '@aztec/foundation/log';
3
5
  import { getNonNullifiedL1ToL2MessageWitness } from '@aztec/stdlib/messaging';
4
6
 
@@ -1,5 +1,7 @@
1
- import type { AztecAddress, LogFilter, LogId, TxHash } from '@aztec/aztec.js';
2
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { LogFilter, LogId } from '@aztec/aztec.js/log';
3
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
4
+ import type { TxHash } from '@aztec/aztec.js/tx';
3
5
  import type { LogFn } from '@aztec/foundation/log';
4
6
  import { sleep } from '@aztec/foundation/sleep';
5
7
 
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import type { LogFn } from '@aztec/foundation/log';
3
3
 
4
4
  export async function getNodeInfo(nodeUrl: string, json: boolean, log: LogFn, logJson: (output: any) => void) {
@@ -1,4 +1,5 @@
1
- import { Fr, createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { Fr } from '@aztec/aztec.js/fields';
2
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
3
  import { GSEContract, RollupContract, createEthereumChain, getL1ContractsConfigEnvVars } from '@aztec/ethereum';
3
4
  import type { LogFn } from '@aztec/foundation/log';
4
5
  import { RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';
@@ -1,5 +1,8 @@
1
1
  import { getInitialTestAccountsData } from '@aztec/accounts/testing';
2
- import { AccountManager, type AztecAddress, type WaitOpts, createAztecNodeClient } from '@aztec/aztec.js';
2
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
3
+ import type { WaitOpts } from '@aztec/aztec.js/contracts';
4
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
5
+ import { AccountManager } from '@aztec/aztec.js/wallet';
3
6
  import { jsonStringify } from '@aztec/foundation/json-rpc';
4
7
  import type { LogFn } from '@aztec/foundation/log';
5
8
  import { ProtocolContractAddress } from '@aztec/protocol-contracts';
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  import type { LogFn } from '@aztec/foundation/log';
4
4
  import { DateProvider } from '@aztec/foundation/timer';
@@ -1,4 +1,4 @@
1
- import { createAztecNodeClient } from '@aztec/aztec.js';
1
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
2
2
  import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  import type { LogFn } from '@aztec/foundation/log';
4
4
  import { DateProvider } from '@aztec/foundation/timer';
@@ -1,4 +1,6 @@
1
- import { type AztecAddress, type EthAddress, type Fr, L1ToL2TokenPortalManager } from '@aztec/aztec.js';
1
+ import type { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
2
+ import { L1ToL2TokenPortalManager } from '@aztec/aztec.js/ethereum';
3
+ import type { Fr } from '@aztec/aztec.js/fields';
2
4
  import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
3
5
  import type { LogFn, Logger } from '@aztec/foundation/log';
4
6
 
@@ -1,5 +1,6 @@
1
1
  import { getInitialTestAccountsData } from '@aztec/accounts/testing';
2
- import { type EthAddress, Fr } from '@aztec/aztec.js';
2
+ import type { EthAddress } from '@aztec/aztec.js/addresses';
3
+ import { Fr } from '@aztec/aztec.js/fields';
3
4
  import { getL1ContractsConfigEnvVars } from '@aztec/ethereum';
4
5
  import { SecretValue } from '@aztec/foundation/config';
5
6
  import type { LogFn, Logger } from '@aztec/foundation/log';
@@ -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
 
@@ -1,4 +1,4 @@
1
- import { EthAddress } from '@aztec/aztec.js';
1
+ import { EthAddress } from '@aztec/aztec.js/addresses';
2
2
  import { RegistryContract, type ViemPublicClient, createEthereumChain } from '@aztec/ethereum';
3
3
  import type { LogFn } from '@aztec/foundation/log';
4
4
 
@@ -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
  );
@@ -1,4 +1,4 @@
1
- import { computeSecretHash } from '@aztec/aztec.js';
1
+ import { computeSecretHash } from '@aztec/aztec.js/crypto';
2
2
  import { Fr } from '@aztec/foundation/fields';
3
3
  import type { LogFn } from '@aztec/foundation/log';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/aztec.js';
1
+ import { Fr } from '@aztec/aztec.js/fields';
2
2
 
3
3
  export function generateSecretKey() {
4
4
  return { secretKey: Fr.random() };
@@ -1,4 +1,4 @@
1
- import { createLogger } from '@aztec/aztec.js';
1
+ import { createLogger } from '@aztec/aztec.js/log';
2
2
 
3
3
  import { mkdir, readFile, stat, writeFile } from 'fs/promises';
4
4
  import { dirname } from 'path';
@@ -42,6 +42,7 @@ export type L2ChainConfig = L1ContractsConfig &
42
42
 
43
43
  // Control whether sentinel is enabled or not. Needed for slashing
44
44
  sentinelEnabled: boolean;
45
+ disableTransactions: boolean;
45
46
  };
46
47
 
47
48
  const DefaultSlashConfig = {
@@ -93,6 +94,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
93
94
  l1ChainId: 11155111,
94
95
  testAccounts: false,
95
96
  sponsoredFPC: false,
97
+ disableTransactions: true,
96
98
  p2pEnabled: true,
97
99
  p2pBootstrapNodes: [],
98
100
  seqMinTxsPerBlock: 0,
@@ -173,6 +175,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
173
175
  l1ChainId: 11155111,
174
176
  testAccounts: false,
175
177
  sponsoredFPC: true,
178
+ disableTransactions: false,
176
179
  p2pEnabled: true,
177
180
  p2pBootstrapNodes: [],
178
181
  seqMinTxsPerBlock: 0,
@@ -226,6 +229,7 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
226
229
  testAccounts: true,
227
230
  sponsoredFPC: true,
228
231
  p2pEnabled: true,
232
+ disableTransactions: false,
229
233
  p2pBootstrapNodes: [],
230
234
  seqMinTxsPerBlock: 0,
231
235
  seqMaxTxsPerBlock: 8,
@@ -278,9 +282,10 @@ export const testnetL2ChainConfig: L2ChainConfig = {
278
282
  testAccounts: false,
279
283
  sponsoredFPC: true,
280
284
  p2pEnabled: true,
285
+ disableTransactions: true,
281
286
  p2pBootstrapNodes: [],
282
287
  seqMinTxsPerBlock: 0,
283
- seqMaxTxsPerBlock: 20,
288
+ seqMaxTxsPerBlock: 0,
284
289
  realProofs: true,
285
290
  snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
286
291
  autoUpdate: 'config-and-version',
@@ -314,7 +319,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
314
319
  /** Governance proposing round size */
315
320
  governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
316
321
  /** The mana target for the rollup */
317
- manaTarget: DefaultL1ContractsConfig.manaTarget,
322
+ manaTarget: 0n,
318
323
  /** The proving cost per mana */
319
324
  provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
320
325
  /** Exit delay for stakers */
@@ -327,18 +332,19 @@ export const testnetL2ChainConfig: L2ChainConfig = {
327
332
  ...DefaultNetworkDBMapSizeConfig,
328
333
  };
329
334
 
330
- export const ignitionL2ChainConfig: L2ChainConfig = {
335
+ export const mainnetL2ChainConfig: L2ChainConfig = {
331
336
  l1ChainId: 1,
332
337
  testAccounts: false,
333
338
  sponsoredFPC: false,
334
339
  p2pEnabled: true,
340
+ disableTransactions: true,
335
341
  p2pBootstrapNodes: [],
336
342
  seqMinTxsPerBlock: 0,
337
343
  seqMaxTxsPerBlock: 0,
338
344
  realProofs: true,
339
- snapshotsUrls: [`${SNAPSHOTS_URL}/ignition-mainnet/`],
345
+ snapshotsUrls: [`${SNAPSHOTS_URL}/mainnet/`],
340
346
  autoUpdate: 'notify',
341
- autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/ignition-mainnet.json',
347
+ autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
342
348
  maxTxPoolSize: 100_000_000, // 100MB
343
349
  publicIncludeMetrics,
344
350
  publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
@@ -409,6 +415,59 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
409
415
  ...DefaultNetworkDBMapSizeConfig,
410
416
  };
411
417
 
418
+ export const devnetL2ChainConfig: L2ChainConfig = {
419
+ l1ChainId: 11155111,
420
+ testAccounts: true,
421
+ sponsoredFPC: true,
422
+ p2pEnabled: true,
423
+ disableTransactions: false,
424
+ p2pBootstrapNodes: [],
425
+ seqMinTxsPerBlock: 0,
426
+ seqMaxTxsPerBlock: 8,
427
+ realProofs: false,
428
+ snapshotsUrls: [],
429
+ autoUpdate: 'config-and-version',
430
+ autoUpdateUrl: '',
431
+ publicIncludeMetrics,
432
+ publicMetricsCollectorUrl: '',
433
+ publicMetricsCollectFrom: [''],
434
+ maxTxPoolSize: 100_000_000, // 100MB
435
+
436
+ // Deployment stuff
437
+ /** How many seconds an L1 slot lasts. */
438
+ ethereumSlotDuration: 12,
439
+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
440
+ aztecSlotDuration: 36,
441
+ /** How many L2 slots an epoch lasts. */
442
+ aztecEpochDuration: 8,
443
+ /** The target validator committee size. */
444
+ aztecTargetCommitteeSize: 1,
445
+ /** The number of epochs to lag behind the current epoch for validator selection. */
446
+ lagInEpochs: 0,
447
+ /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
448
+ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
449
+ /** The number of epochs after an epoch ends that proofs are still accepted. */
450
+ aztecProofSubmissionEpochs: 1,
451
+ /** The deposit amount for a validator */
452
+ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
453
+ /** The minimum stake for a validator. */
454
+ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
455
+ /** The slashing round size */
456
+ slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
457
+ /** Governance proposing round size */
458
+ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
459
+ /** The mana target for the rollup */
460
+ manaTarget: DefaultL1ContractsConfig.manaTarget,
461
+ /** The proving cost per mana */
462
+ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
463
+ /** Exit delay for stakers */
464
+ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
465
+
466
+ ...DefaultSlashConfig,
467
+
468
+ ...DefaultNetworkDBMapSizeConfig,
469
+ };
470
+
412
471
  export function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined {
413
472
  let config: L2ChainConfig | undefined;
414
473
  if (networkName === 'staging-public') {
@@ -417,10 +476,12 @@ export function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | und
417
476
  config = { ...testnetL2ChainConfig };
418
477
  } else if (networkName === 'staging-ignition') {
419
478
  config = { ...stagingIgnitionL2ChainConfig };
420
- } else if (networkName === 'ignition') {
421
- config = { ...ignitionL2ChainConfig };
479
+ } else if (networkName === 'mainnet') {
480
+ config = { ...mainnetL2ChainConfig };
422
481
  } else if (networkName === 'next-net') {
423
482
  config = { ...nextNetL2ChainConfig };
483
+ } else if (networkName === 'devnet') {
484
+ config = { ...devnetL2ChainConfig };
424
485
  }
425
486
  return config;
426
487
  }
@@ -520,4 +581,5 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
520
581
  enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
521
582
 
522
583
  enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
584
+ enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
523
585
  }
@@ -1,4 +1,4 @@
1
- import { EthAddress } from '@aztec/aztec.js';
1
+ import { EthAddress } from '@aztec/aztec.js/addresses';
2
2
  import type { EnvVar } from '@aztec/foundation/config';
3
3
 
4
4
  export function enrichVar(envVar: EnvVar, value: string | undefined) {
@@ -1,4 +1,3 @@
1
- import { EthAddress } from '@aztec/aztec.js';
2
1
  import {
3
2
  type ContractArtifact,
4
3
  type FunctionAbi,
@@ -6,6 +5,7 @@ import {
6
5
  getAllFunctionAbis,
7
6
  loadContractArtifact,
8
7
  } from '@aztec/aztec.js/abi';
8
+ import { EthAddress } from '@aztec/aztec.js/addresses';
9
9
  import {
10
10
  type DeployL1ContractsReturnType,
11
11
  type L1ContractsConfig,
@@ -108,6 +108,7 @@ export async function deployNewRollupContracts(
108
108
  feeJuicePortalInitialBalance: bigint,
109
109
  config: L1ContractsConfig,
110
110
  realVerifier: boolean,
111
+ createVerificationJson: string | false,
111
112
  logger: Logger,
112
113
  ): Promise<{ rollup: RollupContract; slashFactoryAddress: EthAddress }> {
113
114
  const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
@@ -151,6 +152,7 @@ export async function deployNewRollupContracts(
151
152
  registryAddress,
152
153
  logger,
153
154
  config,
155
+ createVerificationJson,
154
156
  );
155
157
 
156
158
  return { rollup, slashFactoryAddress };
@@ -1,9 +1,8 @@
1
1
  import { FunctionSelector } from '@aztec/aztec.js/abi';
2
- import { AztecAddress } from '@aztec/aztec.js/addresses';
3
- import { EthAddress } from '@aztec/aztec.js/eth_address';
2
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
4
3
  import { Fr } from '@aztec/aztec.js/fields';
5
- import { LogId } from '@aztec/aztec.js/log_id';
6
- import { TxHash } from '@aztec/aztec.js/tx_hash';
4
+ import { LogId } from '@aztec/aztec.js/log';
5
+ import { TxHash } from '@aztec/aztec.js/tx';
7
6
  import type { LogFn } from '@aztec/foundation/log';
8
7
  import type { PXE } from '@aztec/pxe/server';
9
8
  import { PublicKeys } from '@aztec/stdlib/keys';
@@ -1,4 +1,6 @@
1
- import { Fr, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
3
+ import { Fr } from '@aztec/aztec.js/fields';
2
4
  import { SPONSORED_FPC_SALT } from '@aztec/constants';
3
5
 
4
6
  async function getSponsoredFPCContract() {
@@ -8,7 +10,7 @@ async function getSponsoredFPCContract() {
8
10
  return SponsoredFPCContract;
9
11
  }
10
12
 
11
- export async function getSponsoredFPCAddress() {
13
+ export async function getSponsoredFPCAddress(): Promise<AztecAddress> {
12
14
  const SponsoredFPCContract = await getSponsoredFPCContract();
13
15
  const sponsoredFPCInstance = await getContractInstanceFromInstantiationParams(SponsoredFPCContract.artifact, {
14
16
  salt: new Fr(SPONSORED_FPC_SALT),