@aztec/cli 0.0.1-commit.e558bd1c → 0.0.1-commit.e5a3663dd

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 (45) hide show
  1. package/dest/cmds/aztec_node/block_number.js +1 -1
  2. package/dest/cmds/aztec_node/get_node_info.d.ts +1 -1
  3. package/dest/cmds/aztec_node/get_node_info.d.ts.map +1 -1
  4. package/dest/cmds/aztec_node/get_node_info.js +0 -2
  5. package/dest/cmds/infrastructure/setup_l2_contract.d.ts +1 -1
  6. package/dest/cmds/infrastructure/setup_l2_contract.d.ts.map +1 -1
  7. package/dest/cmds/infrastructure/setup_l2_contract.js +3 -2
  8. package/dest/cmds/l1/deploy_l1_contracts_cmd.d.ts +1 -1
  9. package/dest/cmds/l1/deploy_l1_contracts_cmd.d.ts.map +1 -1
  10. package/dest/cmds/l1/deploy_l1_contracts_cmd.js +0 -1
  11. package/dest/cmds/l1/deploy_new_rollup.d.ts +1 -1
  12. package/dest/cmds/l1/deploy_new_rollup.d.ts.map +1 -1
  13. package/dest/cmds/l1/deploy_new_rollup.js +2 -4
  14. package/dest/cmds/l1/update_l1_validators.js +5 -5
  15. package/dest/config/cached_fetch.d.ts +19 -10
  16. package/dest/config/cached_fetch.d.ts.map +1 -1
  17. package/dest/config/cached_fetch.js +110 -32
  18. package/dest/config/chain_l2_config.d.ts +1 -1
  19. package/dest/config/chain_l2_config.d.ts.map +1 -1
  20. package/dest/config/chain_l2_config.js +3 -1
  21. package/dest/config/generated/networks.d.ts +46 -39
  22. package/dest/config/generated/networks.d.ts.map +1 -1
  23. package/dest/config/generated/networks.js +47 -40
  24. package/dest/config/network_config.d.ts +1 -1
  25. package/dest/config/network_config.d.ts.map +1 -1
  26. package/dest/config/network_config.js +6 -2
  27. package/dest/utils/aztec.d.ts +1 -2
  28. package/dest/utils/aztec.d.ts.map +1 -1
  29. package/dest/utils/aztec.js +2 -3
  30. package/dest/utils/inspect.d.ts +1 -1
  31. package/dest/utils/inspect.d.ts.map +1 -1
  32. package/dest/utils/inspect.js +6 -5
  33. package/package.json +30 -30
  34. package/src/cmds/aztec_node/block_number.ts +1 -1
  35. package/src/cmds/aztec_node/get_node_info.ts +0 -2
  36. package/src/cmds/infrastructure/setup_l2_contract.ts +4 -3
  37. package/src/cmds/l1/deploy_l1_contracts_cmd.ts +0 -1
  38. package/src/cmds/l1/deploy_new_rollup.ts +1 -3
  39. package/src/cmds/l1/update_l1_validators.ts +5 -5
  40. package/src/config/cached_fetch.ts +119 -31
  41. package/src/config/chain_l2_config.ts +3 -1
  42. package/src/config/generated/networks.ts +45 -38
  43. package/src/config/network_config.ts +6 -2
  44. package/src/utils/aztec.ts +12 -18
  45. package/src/utils/inspect.ts +4 -5
@@ -49,7 +49,7 @@ export async function deployNewRollupContracts(
49
49
  feeJuicePortalInitialBalance: bigint,
50
50
  config: L1ContractsConfig,
51
51
  realVerifier: boolean,
52
- ): Promise<{ rollup: RollupContract; slashFactoryAddress: EthAddress }> {
52
+ ): Promise<{ rollup: RollupContract }> {
53
53
  const { deployRollupForUpgrade } = await import('@aztec/ethereum/deploy-aztec-l1-contracts');
54
54
  const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
55
55
  const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
@@ -80,23 +80,17 @@ export async function deployNewRollupContracts(
80
80
  logger.info('Initializing new rollup with old attesters', { initialValidators });
81
81
  }
82
82
 
83
- const { rollup, slashFactoryAddress } = await deployRollupForUpgrade(
84
- privateKey as Hex,
85
- rpcUrls[0],
86
- chainId,
87
- registryAddress,
88
- {
89
- vkTreeRoot: getVKTreeRoot(),
90
- protocolContractsHash,
91
- genesisArchiveRoot,
92
- initialValidators,
93
- feeJuicePortalInitialBalance,
94
- realVerifier,
95
- ...config,
96
- },
97
- );
98
-
99
- return { rollup, slashFactoryAddress: EthAddress.fromString(slashFactoryAddress!) };
83
+ const { rollup } = await deployRollupForUpgrade(privateKey as Hex, rpcUrls[0], chainId, registryAddress, {
84
+ vkTreeRoot: getVKTreeRoot(),
85
+ protocolContractsHash,
86
+ genesisArchiveRoot,
87
+ initialValidators,
88
+ feeJuicePortalInitialBalance,
89
+ realVerifier,
90
+ ...config,
91
+ });
92
+
93
+ return { rollup };
100
94
  }
101
95
 
102
96
  /**
@@ -9,14 +9,13 @@ export async function inspectBlock(
9
9
  log: LogFn,
10
10
  opts: { showTxs?: boolean } = {},
11
11
  ) {
12
- const block = await aztecNode.getBlock(blockNumber);
12
+ const block = await aztecNode.getBlock(blockNumber, { includeTransactions: opts.showTxs });
13
13
  if (!block) {
14
14
  log(`No block found for block number ${blockNumber}`);
15
15
  return;
16
16
  }
17
17
 
18
- const blockHash = await block.hash();
19
- log(`Block ${blockNumber} (${blockHash.toString()})`);
18
+ log(`Block ${blockNumber} (${block.hash.toString()})`);
20
19
  log(` Total fees: ${block.header.totalFees.toBigInt()}`);
21
20
  log(` Total mana used: ${block.header.totalManaUsed.toBigInt()}`);
22
21
  log(
@@ -25,12 +24,12 @@ export async function inspectBlock(
25
24
  log(` Coinbase: ${block.header.globalVariables.coinbase}`);
26
25
  log(` Fee recipient: ${block.header.globalVariables.feeRecipient}`);
27
26
  log(` Timestamp: ${new Date(Number(block.header.globalVariables.timestamp) * 500)}`);
28
- if (opts.showTxs) {
27
+ if (opts.showTxs && block.body) {
29
28
  log(``);
30
29
  for (const txHash of block.body.txEffects.map(tx => tx.txHash)) {
31
30
  await inspectTx(aztecNode, txHash, log, { includeBlockInfo: false });
32
31
  }
33
- } else {
32
+ } else if (block.body) {
34
33
  log(` Transactions: ${block.body.txEffects.length}`);
35
34
  }
36
35
  }