@aztec/cli 1.0.0-nightly.20250807 → 1.0.0-nightly.20250809
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/cmds/l1/deploy_l1_contracts.d.ts +1 -1
- package/dest/cmds/l1/deploy_l1_contracts.d.ts.map +1 -1
- package/dest/cmds/l1/deploy_l1_contracts.js +5 -2
- package/dest/utils/aztec.d.ts.map +1 -1
- package/dest/utils/aztec.js +2 -1
- package/package.json +22 -22
- package/src/cmds/l1/deploy_l1_contracts.ts +6 -4
- package/src/utils/aztec.ts +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type EthAddress } from '@aztec/aztec.js';
|
|
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, initialValidators: EthAddress[], realVerifier: boolean, 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,KAAK,
|
|
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,iBAAiB,EAAE,UAAU,EAAE,EAC/B,YAAY,EAAE,OAAO,EACrB,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,iBA2DpB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { getInitialTestAccounts } from '@aztec/accounts/testing';
|
|
2
|
+
import { Fr } from '@aztec/aztec.js';
|
|
2
3
|
import { getL1ContractsConfigEnvVars } from '@aztec/ethereum';
|
|
4
|
+
import { SecretValue } from '@aztec/foundation/config';
|
|
3
5
|
import { getGenesisValues } from '@aztec/world-state/testing';
|
|
4
6
|
import { deployAztecContracts } from '../../utils/aztec.js';
|
|
5
7
|
import { getSponsoredFPCAddress } from '../../utils/setup_contracts.js';
|
|
@@ -11,13 +13,14 @@ export async function deployL1Contracts(rpcUrls, chainId, privateKey, mnemonic,
|
|
|
11
13
|
const { genesisArchiveRoot, fundingNeeded } = await getGenesisValues(initialFundedAccounts);
|
|
12
14
|
const initialValidatorOperators = initialValidators.map((a)=>({
|
|
13
15
|
attester: a,
|
|
14
|
-
withdrawer: a
|
|
16
|
+
withdrawer: a,
|
|
17
|
+
bn254SecretKey: new SecretValue(Fr.random().toBigInt())
|
|
15
18
|
}));
|
|
16
19
|
const { l1ContractAddresses } = await deployAztecContracts(rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidatorOperators, genesisArchiveRoot, fundingNeeded, acceleratedTestDeployments, config, realVerifier, debugLogger);
|
|
17
20
|
if (json) {
|
|
18
21
|
log(JSON.stringify(Object.fromEntries(Object.entries(l1ContractAddresses).map(([k, v])=>[
|
|
19
22
|
k,
|
|
20
|
-
v
|
|
23
|
+
v?.toString() ?? 'Not deployed'
|
|
21
24
|
])), null, 2));
|
|
22
25
|
} else {
|
|
23
26
|
log(`Rollup Address: ${l1ContractAddresses.rollupAddress.toString()}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aztec.d.ts","sourceRoot":"","sources":["../../src/utils/aztec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAIjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,cAAc,EACf,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"aztec.d.ts","sourceRoot":"","sources":["../../src/utils/aztec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAIjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAShE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAMtF;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE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AAM,KAAG,KAAK,MAAM,EAKtD,CAAC;AAOF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAUtE;AAKD;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,iBAyB9E"}
|
package/dest/utils/aztec.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EthAddress } from '@aztec/aztec.js';
|
|
2
2
|
import { FunctionType, getAllFunctionAbis, loadContractArtifact } from '@aztec/aztec.js/abi';
|
|
3
|
+
import { SecretValue } from '@aztec/foundation/config';
|
|
3
4
|
import { Fr } from '@aztec/foundation/fields';
|
|
4
5
|
import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
|
|
5
6
|
import TOML from '@iarna/toml';
|
|
@@ -62,7 +63,7 @@ export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId
|
|
|
62
63
|
attester: amin,
|
|
63
64
|
withdrawer: amin,
|
|
64
65
|
// No secrets here. The actual keys are not currently used.
|
|
65
|
-
bn254SecretKey: Fr.fromHexString(aminAddressString).toBigInt()
|
|
66
|
+
bn254SecretKey: new SecretValue(Fr.fromHexString(aminAddressString).toBigInt())
|
|
66
67
|
}
|
|
67
68
|
];
|
|
68
69
|
logger.info('Initializing new rollup with old attesters', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250809",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aztec/archiver": "1.0.0-nightly.
|
|
73
|
-
"@aztec/aztec.js": "1.0.0-nightly.
|
|
74
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
75
|
-
"@aztec/entrypoints": "1.0.0-nightly.
|
|
76
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
77
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
78
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
79
|
-
"@aztec/p2p": "1.0.0-nightly.
|
|
80
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
81
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
72
|
+
"@aztec/archiver": "1.0.0-nightly.20250809",
|
|
73
|
+
"@aztec/aztec.js": "1.0.0-nightly.20250809",
|
|
74
|
+
"@aztec/constants": "1.0.0-nightly.20250809",
|
|
75
|
+
"@aztec/entrypoints": "1.0.0-nightly.20250809",
|
|
76
|
+
"@aztec/ethereum": "1.0.0-nightly.20250809",
|
|
77
|
+
"@aztec/foundation": "1.0.0-nightly.20250809",
|
|
78
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250809",
|
|
79
|
+
"@aztec/p2p": "1.0.0-nightly.20250809",
|
|
80
|
+
"@aztec/stdlib": "1.0.0-nightly.20250809",
|
|
81
|
+
"@aztec/world-state": "1.0.0-nightly.20250809",
|
|
82
82
|
"@iarna/toml": "^2.2.5",
|
|
83
83
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
84
84
|
"commander": "^12.1.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"viem": "2.23.7"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
94
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
93
|
+
"@aztec/accounts": "1.0.0-nightly.20250809",
|
|
94
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250809",
|
|
95
95
|
"@jest/globals": "^30.0.0",
|
|
96
96
|
"@types/jest": "^30.0.0",
|
|
97
97
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -107,15 +107,15 @@
|
|
|
107
107
|
"typescript": "^5.3.3"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
111
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
112
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
113
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
114
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
115
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
116
|
-
"@aztec/noir-test-contracts.js": "1.0.0-nightly.
|
|
117
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
118
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
110
|
+
"@aztec/accounts": "1.0.0-nightly.20250809",
|
|
111
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250809",
|
|
112
|
+
"@aztec/ethereum": "1.0.0-nightly.20250809",
|
|
113
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250809",
|
|
114
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250809",
|
|
115
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250809",
|
|
116
|
+
"@aztec/noir-test-contracts.js": "1.0.0-nightly.20250809",
|
|
117
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250809",
|
|
118
|
+
"@aztec/stdlib": "1.0.0-nightly.20250809"
|
|
119
119
|
},
|
|
120
120
|
"files": [
|
|
121
121
|
"dest",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getInitialTestAccounts } from '@aztec/accounts/testing';
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
2
|
+
import { type EthAddress, Fr } from '@aztec/aztec.js';
|
|
3
|
+
import { getL1ContractsConfigEnvVars } from '@aztec/ethereum';
|
|
4
|
+
import { SecretValue } from '@aztec/foundation/config';
|
|
4
5
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
5
6
|
import { getGenesisValues } from '@aztec/world-state/testing';
|
|
6
7
|
|
|
@@ -33,7 +34,8 @@ export async function deployL1Contracts(
|
|
|
33
34
|
const initialValidatorOperators = initialValidators.map(a => ({
|
|
34
35
|
attester: a,
|
|
35
36
|
withdrawer: a,
|
|
36
|
-
|
|
37
|
+
bn254SecretKey: new SecretValue(Fr.random().toBigInt()),
|
|
38
|
+
}));
|
|
37
39
|
|
|
38
40
|
const { l1ContractAddresses } = await deployAztecContracts(
|
|
39
41
|
rpcUrls,
|
|
@@ -54,7 +56,7 @@ export async function deployL1Contracts(
|
|
|
54
56
|
if (json) {
|
|
55
57
|
log(
|
|
56
58
|
JSON.stringify(
|
|
57
|
-
Object.fromEntries(Object.entries(l1ContractAddresses).map(([k, v]) => [k, v
|
|
59
|
+
Object.fromEntries(Object.entries(l1ContractAddresses).map(([k, v]) => [k, v?.toString() ?? 'Not deployed'])),
|
|
58
60
|
null,
|
|
59
61
|
2,
|
|
60
62
|
),
|
package/src/utils/aztec.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
type Operator,
|
|
13
13
|
RollupContract,
|
|
14
14
|
} from '@aztec/ethereum';
|
|
15
|
+
import { SecretValue } from '@aztec/foundation/config';
|
|
15
16
|
import { Fr } from '@aztec/foundation/fields';
|
|
16
17
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
17
18
|
import type { NoirPackageConfig } from '@aztec/foundation/noir';
|
|
@@ -124,7 +125,7 @@ export async function deployNewRollupContracts(
|
|
|
124
125
|
attester: amin,
|
|
125
126
|
withdrawer: amin,
|
|
126
127
|
// No secrets here. The actual keys are not currently used.
|
|
127
|
-
bn254SecretKey: Fr.fromHexString(aminAddressString).toBigInt(),
|
|
128
|
+
bn254SecretKey: new SecretValue(Fr.fromHexString(aminAddressString).toBigInt()),
|
|
128
129
|
},
|
|
129
130
|
];
|
|
130
131
|
logger.info('Initializing new rollup with old attesters', { initialValidators });
|