@aztec/cli 0.78.0 → 0.79.0

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.
@@ -104,8 +104,8 @@ export async function bootstrapNetwork(pxeUrl, l1Urls, l1ChainId, l1PrivateKey,
104
104
  universalDeploy: true
105
105
  }).deployed(waitOpts);
106
106
  await new BatchCall(wallet, [
107
- await devCoin.methods.set_minter(bridge.address, true).request(),
108
- await devCoin.methods.set_admin(bridge.address).request()
107
+ devCoin.methods.set_minter(bridge.address, true),
108
+ devCoin.methods.set_admin(bridge.address)
109
109
  ]).send().wait(waitOpts);
110
110
  return {
111
111
  token: {
@@ -1 +1 @@
1
- {"version":3,"file":"advance_epoch.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/advance_epoch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBAQjF"}
1
+ {"version":3,"file":"advance_epoch.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/advance_epoch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBAQjF"}
@@ -1,4 +1,5 @@
1
- import { CheatCodes, createPXEClient, makeFetch } from '@aztec/aztec.js';
1
+ import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
+ import { CheatCodes } from '@aztec/aztec.js/testing';
2
3
  export async function advanceEpoch(l1RpcUrls, rpcUrl, log) {
3
4
  const pxe = createPXEClient(rpcUrl, {}, makeFetch([], true));
4
5
  const rollupAddress = await pxe.getNodeInfo().then((i)=>i.l1ContractAddresses.rollupAddress);
@@ -1 +1 @@
1
- {"version":3,"file":"assume_proven_through.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/assume_proven_through.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,mBAAmB,CACvC,mBAAmB,EAAE,MAAM,GAAG,SAAS,EACvC,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,iBAWX"}
1
+ {"version":3,"file":"assume_proven_through.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/assume_proven_through.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,mBAAmB,CACvC,mBAAmB,EAAE,MAAM,GAAG,SAAS,EACvC,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,iBAWX"}
@@ -1,4 +1,5 @@
1
- import { EthCheatCodes, RollupCheatCodes, createPXEClient, makeFetch } from '@aztec/aztec.js';
1
+ import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
+ import { EthCheatCodes, RollupCheatCodes } from '@aztec/aztec.js/testing';
2
3
  export async function assumeProvenThrough(blockNumberOrLatest, l1RpcUrls, rpcUrl, log) {
3
4
  const pxe = createPXEClient(rpcUrl, {}, makeFetch([], true));
4
5
  const rollupAddress = await pxe.getNodeInfo().then((i)=>i.l1ContractAddresses.rollupAddress);
@@ -44,7 +44,7 @@ import { encodeArgs } from './encoding.js';
44
44
  }, config);
45
45
  }
46
46
  export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, genesisBlockHash, config, logger) {
47
- const { createEthereumChain, deployRollupAndPeriphery, createL1Clients } = await import('@aztec/ethereum');
47
+ const { createEthereumChain, deployRollupForUpgrade, createL1Clients } = await import('@aztec/ethereum');
48
48
  const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
49
49
  const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
50
50
  const account = !privateKey ? mnemonicToAccount(mnemonic, {
@@ -52,7 +52,7 @@ export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId
52
52
  }) : privateKeyToAccount(`${privateKey.startsWith('0x') ? '' : '0x'}${privateKey}`);
53
53
  const chain = createEthereumChain(rpcUrls, chainId);
54
54
  const clients = createL1Clients(rpcUrls, account, chain.chainInfo, mnemonicIndex);
55
- const { payloadAddress, rollup } = await deployRollupAndPeriphery(clients, {
55
+ const { payloadAddress, rollup } = await deployRollupForUpgrade(clients, {
56
56
  salt,
57
57
  vkTreeRoot: getVKTreeRoot(),
58
58
  protocolContractTreeRoot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "0.78.0",
3
+ "version": "0.79.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -67,14 +67,14 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/archiver": "0.78.0",
71
- "@aztec/aztec.js": "0.78.0",
72
- "@aztec/constants": "0.78.0",
73
- "@aztec/foundation": "0.78.0",
74
- "@aztec/l1-artifacts": "0.78.0",
75
- "@aztec/p2p": "0.78.0",
76
- "@aztec/stdlib": "0.78.0",
77
- "@aztec/world-state": "0.78.0",
70
+ "@aztec/archiver": "0.79.0",
71
+ "@aztec/aztec.js": "0.79.0",
72
+ "@aztec/constants": "0.79.0",
73
+ "@aztec/foundation": "0.79.0",
74
+ "@aztec/l1-artifacts": "0.79.0",
75
+ "@aztec/p2p": "0.79.0",
76
+ "@aztec/stdlib": "0.79.0",
77
+ "@aztec/world-state": "0.79.0",
78
78
  "@iarna/toml": "^2.2.5",
79
79
  "@libp2p/peer-id-factory": "^3.0.4",
80
80
  "commander": "^12.1.0",
@@ -83,12 +83,12 @@
83
83
  "semver": "^7.5.4",
84
84
  "source-map-support": "^0.5.21",
85
85
  "tslib": "^2.4.0",
86
- "viem": "2.22.8"
86
+ "viem": "2.23.7"
87
87
  },
88
88
  "devDependencies": {
89
- "@aztec/accounts": "0.78.0",
90
- "@aztec/ethereum": "0.78.0",
91
- "@aztec/protocol-contracts": "0.78.0",
89
+ "@aztec/accounts": "0.79.0",
90
+ "@aztec/ethereum": "0.79.0",
91
+ "@aztec/protocol-contracts": "0.79.0",
92
92
  "@jest/globals": "^29.5.0",
93
93
  "@types/jest": "^29.5.0",
94
94
  "@types/lodash.chunk": "^4.2.9",
@@ -104,14 +104,14 @@
104
104
  "typescript": "^5.0.4"
105
105
  },
106
106
  "peerDependencies": {
107
- "@aztec/accounts": "0.78.0",
108
- "@aztec/bb-prover": "0.78.0",
109
- "@aztec/ethereum": "0.78.0",
110
- "@aztec/l1-artifacts": "0.78.0",
111
- "@aztec/noir-contracts.js": "0.78.0",
112
- "@aztec/noir-protocol-circuits-types": "0.78.0",
113
- "@aztec/protocol-contracts": "0.78.0",
114
- "@aztec/stdlib": "0.78.0"
107
+ "@aztec/accounts": "0.79.0",
108
+ "@aztec/bb-prover": "0.79.0",
109
+ "@aztec/ethereum": "0.79.0",
110
+ "@aztec/l1-artifacts": "0.79.0",
111
+ "@aztec/noir-contracts.js": "0.79.0",
112
+ "@aztec/noir-protocol-circuits-types": "0.79.0",
113
+ "@aztec/protocol-contracts": "0.79.0",
114
+ "@aztec/stdlib": "0.79.0"
115
115
  },
116
116
  "files": [
117
117
  "dest",
@@ -179,8 +179,8 @@ async function deployToken(
179
179
  .deployed(waitOpts);
180
180
 
181
181
  await new BatchCall(wallet, [
182
- await devCoin.methods.set_minter(bridge.address, true).request(),
183
- await devCoin.methods.set_admin(bridge.address).request(),
182
+ devCoin.methods.set_minter(bridge.address, true),
183
+ devCoin.methods.set_admin(bridge.address),
184
184
  ])
185
185
  .send()
186
186
  .wait(waitOpts);
@@ -1,4 +1,5 @@
1
- import { CheatCodes, createPXEClient, makeFetch } from '@aztec/aztec.js';
1
+ import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
+ import { CheatCodes } from '@aztec/aztec.js/testing';
2
3
  import type { LogFn } from '@aztec/foundation/log';
3
4
 
4
5
  export async function advanceEpoch(l1RpcUrls: string[], rpcUrl: string, log: LogFn) {
@@ -1,4 +1,5 @@
1
- import { EthCheatCodes, RollupCheatCodes, createPXEClient, makeFetch } from '@aztec/aztec.js';
1
+ import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
+ import { EthCheatCodes, RollupCheatCodes } from '@aztec/aztec.js/testing';
2
3
  import type { LogFn } from '@aztec/foundation/log';
3
4
 
4
5
  export async function assumeProvenThrough(
@@ -92,7 +92,7 @@ export async function deployNewRollupContracts(
92
92
  config: L1ContractsConfig,
93
93
  logger: Logger,
94
94
  ): Promise<{ payloadAddress: EthAddress; rollup: RollupContract }> {
95
- const { createEthereumChain, deployRollupAndPeriphery, createL1Clients } = await import('@aztec/ethereum');
95
+ const { createEthereumChain, deployRollupForUpgrade, createL1Clients } = await import('@aztec/ethereum');
96
96
  const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
97
97
  const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
98
98
 
@@ -102,7 +102,7 @@ export async function deployNewRollupContracts(
102
102
  const chain = createEthereumChain(rpcUrls, chainId);
103
103
  const clients = createL1Clients(rpcUrls, account, chain.chainInfo, mnemonicIndex);
104
104
 
105
- const { payloadAddress, rollup } = await deployRollupAndPeriphery(
105
+ const { payloadAddress, rollup } = await deployRollupForUpgrade(
106
106
  clients,
107
107
  {
108
108
  salt,