@aztec/cli 0.82.2 → 0.82.3
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/devnet/bootstrap_network.d.ts.map +1 -1
- package/dest/cmds/devnet/bootstrap_network.js +6 -2
- package/dest/cmds/l1/governance_utils.js +1 -1
- package/dest/cmds/l1/index.js +1 -1
- package/package.json +21 -21
- package/src/cmds/devnet/bootstrap_network.ts +7 -2
- package/src/cmds/l1/governance_utils.ts +1 -1
- package/src/cmds/l1/index.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap_network.d.ts","sourceRoot":"","sources":["../../../src/cmds/devnet/bootstrap_network.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAqB3D,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,KAAK,MAAM,EAAE,GAAG,SAAS,EACvC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"bootstrap_network.d.ts","sourceRoot":"","sources":["../../../src/cmds/devnet/bootstrap_network.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAqB3D,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,KAAK,MAAM,EAAE,GAAG,SAAS,EACvC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,iBAiFjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getInitialTestAccountsManagers } from '@aztec/accounts/testing';
|
|
2
2
|
import { BatchCall, Fr, L1FeeJuicePortalManager, createCompatibleClient, retryUntil, waitForProven } from '@aztec/aztec.js';
|
|
3
3
|
import { createEthereumChain, createL1Clients, deployL1Contract } from '@aztec/ethereum';
|
|
4
4
|
import { getContract } from 'viem';
|
|
@@ -13,7 +13,11 @@ const provenWaitOpts = {
|
|
|
13
13
|
};
|
|
14
14
|
export async function bootstrapNetwork(pxeUrl, l1Urls, l1ChainId, l1PrivateKey, l1Mnemonic, addressIndex, json, log, debugLog) {
|
|
15
15
|
const pxe = await createCompatibleClient(pxeUrl, debugLog);
|
|
16
|
-
|
|
16
|
+
// We assume here that the initial test accounts were prefunded with deploy-l1-contracts, and deployed with setup-l2-contracts
|
|
17
|
+
// so all we need to do is register them to our pxe.
|
|
18
|
+
const [accountManager] = await getInitialTestAccountsManagers(pxe);
|
|
19
|
+
await accountManager.register();
|
|
20
|
+
const wallet = await accountManager.getWallet();
|
|
17
21
|
const l1Clients = createL1Clients(l1Urls, l1PrivateKey ? privateKeyToAccount(l1PrivateKey) : // Note that this account needs to be funded on L1 !
|
|
18
22
|
mnemonicToAccount(l1Mnemonic, {
|
|
19
23
|
addressIndex
|
|
@@ -5,7 +5,7 @@ export async function depositGovernanceTokens({ registryAddress, rpcUrls, chainI
|
|
|
5
5
|
const { publicClient, walletClient } = createL1Clients(rpcUrls, privateKey ?? mnemonic, chain.chainInfo, mnemonicIndex);
|
|
6
6
|
const addresses = await RegistryContract.collectAddresses(publicClient, registryAddress, 'canonical');
|
|
7
7
|
const governanceAddress = addresses.governanceAddress.toString();
|
|
8
|
-
const tokenAddress = addresses.
|
|
8
|
+
const tokenAddress = addresses.stakingAssetAddress.toString();
|
|
9
9
|
const feeJuice = new FeeJuiceContract(tokenAddress, publicClient, walletClient);
|
|
10
10
|
const governance = new GovernanceContract(governanceAddress, publicClient, walletClient);
|
|
11
11
|
if (mint) {
|
package/dest/cmds/l1/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export function injectCommands(program, log, debugLogger) {
|
|
|
9
9
|
program.command('deploy-l1-contracts').description('Deploys all necessary Ethereum contracts for Aztec.').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', '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('--accelerated-test-deployments', 'Fire and forget deployment transactions, use in testing only', false).action(async (options)=>{
|
|
10
10
|
const { deployL1Contracts } = await import('./deploy_l1_contracts.js');
|
|
11
11
|
const initialValidators = options.validators?.split(',').map((validator)=>EthAddress.fromString(validator)) || [];
|
|
12
|
-
await deployL1Contracts(options.l1RpcUrls, options.l1ChainId, options.privateKey, options.mnemonic, options.mnemonicIndex, options.salt, options.testAccounts, options.
|
|
12
|
+
await deployL1Contracts(options.l1RpcUrls, options.l1ChainId, options.privateKey, options.mnemonic, options.mnemonicIndex, options.salt, options.testAccounts, options.sponsoredFpc, options.acceleratedTestDeployments, options.json, initialValidators, log, debugLogger);
|
|
13
13
|
});
|
|
14
14
|
program.command('deploy-new-rollup').description('Deploys a new rollup contract and a payload to upgrade the registry with it.').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', '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').action(async (options)=>{
|
|
15
15
|
const { deployNewRollup } = await import('./deploy_new_rollup.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/archiver": "0.82.
|
|
71
|
-
"@aztec/aztec.js": "0.82.
|
|
72
|
-
"@aztec/constants": "0.82.
|
|
73
|
-
"@aztec/entrypoints": "0.82.
|
|
74
|
-
"@aztec/foundation": "0.82.
|
|
75
|
-
"@aztec/l1-artifacts": "0.82.
|
|
76
|
-
"@aztec/p2p": "0.82.
|
|
77
|
-
"@aztec/stdlib": "0.82.
|
|
78
|
-
"@aztec/world-state": "0.82.
|
|
70
|
+
"@aztec/archiver": "0.82.3",
|
|
71
|
+
"@aztec/aztec.js": "0.82.3",
|
|
72
|
+
"@aztec/constants": "0.82.3",
|
|
73
|
+
"@aztec/entrypoints": "0.82.3",
|
|
74
|
+
"@aztec/foundation": "0.82.3",
|
|
75
|
+
"@aztec/l1-artifacts": "0.82.3",
|
|
76
|
+
"@aztec/p2p": "0.82.3",
|
|
77
|
+
"@aztec/stdlib": "0.82.3",
|
|
78
|
+
"@aztec/world-state": "0.82.3",
|
|
79
79
|
"@iarna/toml": "^2.2.5",
|
|
80
80
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
81
81
|
"commander": "^12.1.0",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"viem": "2.23.7"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@aztec/accounts": "0.82.
|
|
91
|
-
"@aztec/ethereum": "0.82.
|
|
92
|
-
"@aztec/protocol-contracts": "0.82.
|
|
90
|
+
"@aztec/accounts": "0.82.3",
|
|
91
|
+
"@aztec/ethereum": "0.82.3",
|
|
92
|
+
"@aztec/protocol-contracts": "0.82.3",
|
|
93
93
|
"@jest/globals": "^29.5.0",
|
|
94
94
|
"@types/jest": "^29.5.0",
|
|
95
95
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -105,14 +105,14 @@
|
|
|
105
105
|
"typescript": "^5.0.4"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
|
-
"@aztec/accounts": "0.82.
|
|
109
|
-
"@aztec/bb-prover": "0.82.
|
|
110
|
-
"@aztec/ethereum": "0.82.
|
|
111
|
-
"@aztec/l1-artifacts": "0.82.
|
|
112
|
-
"@aztec/noir-contracts.js": "0.82.
|
|
113
|
-
"@aztec/noir-protocol-circuits-types": "0.82.
|
|
114
|
-
"@aztec/protocol-contracts": "0.82.
|
|
115
|
-
"@aztec/stdlib": "0.82.
|
|
108
|
+
"@aztec/accounts": "0.82.3",
|
|
109
|
+
"@aztec/bb-prover": "0.82.3",
|
|
110
|
+
"@aztec/ethereum": "0.82.3",
|
|
111
|
+
"@aztec/l1-artifacts": "0.82.3",
|
|
112
|
+
"@aztec/noir-contracts.js": "0.82.3",
|
|
113
|
+
"@aztec/noir-protocol-circuits-types": "0.82.3",
|
|
114
|
+
"@aztec/protocol-contracts": "0.82.3",
|
|
115
|
+
"@aztec/stdlib": "0.82.3"
|
|
116
116
|
},
|
|
117
117
|
"files": [
|
|
118
118
|
"dest",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getInitialTestAccountsManagers } from '@aztec/accounts/testing';
|
|
2
2
|
import {
|
|
3
3
|
AztecAddress,
|
|
4
4
|
BatchCall,
|
|
@@ -54,7 +54,12 @@ export async function bootstrapNetwork(
|
|
|
54
54
|
) {
|
|
55
55
|
const pxe = await createCompatibleClient(pxeUrl, debugLog);
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
// We assume here that the initial test accounts were prefunded with deploy-l1-contracts, and deployed with setup-l2-contracts
|
|
58
|
+
// so all we need to do is register them to our pxe.
|
|
59
|
+
const [accountManager] = await getInitialTestAccountsManagers(pxe);
|
|
60
|
+
await accountManager.register();
|
|
61
|
+
|
|
62
|
+
const wallet = await accountManager.getWallet();
|
|
58
63
|
|
|
59
64
|
const l1Clients = createL1Clients(
|
|
60
65
|
l1Urls,
|
|
@@ -42,7 +42,7 @@ export async function depositGovernanceTokens({
|
|
|
42
42
|
|
|
43
43
|
const addresses = await RegistryContract.collectAddresses(publicClient, registryAddress, 'canonical');
|
|
44
44
|
const governanceAddress = addresses.governanceAddress.toString();
|
|
45
|
-
const tokenAddress = addresses.
|
|
45
|
+
const tokenAddress = addresses.stakingAssetAddress.toString();
|
|
46
46
|
|
|
47
47
|
const feeJuice = new FeeJuiceContract(tokenAddress, publicClient, walletClient);
|
|
48
48
|
const governance = new GovernanceContract(governanceAddress, publicClient, walletClient);
|
package/src/cmds/l1/index.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
|
|
|
57
57
|
options.mnemonicIndex,
|
|
58
58
|
options.salt,
|
|
59
59
|
options.testAccounts,
|
|
60
|
-
options.
|
|
60
|
+
options.sponsoredFpc,
|
|
61
61
|
options.acceleratedTestDeployments,
|
|
62
62
|
options.json,
|
|
63
63
|
initialValidators,
|