@aztec/aztec 3.0.0-nightly.20251108 → 3.0.0-nightly.20251109
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/cli/cli.d.ts.map +1 -1
- package/dest/cli/cli.js +46 -1
- package/package.json +32 -32
- package/src/cli/cli.ts +46 -1
package/dest/cli/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAwFlG"}
|
package/dest/cli/cli.js
CHANGED
|
@@ -24,10 +24,55 @@ import { addOptions, printAztecStartHelpText } from './util.js';
|
|
|
24
24
|
|
|
25
25
|
Additional commands:
|
|
26
26
|
|
|
27
|
+
init [folder] [options]: creates a new Noir project
|
|
28
|
+
Options:
|
|
29
|
+
--name <name> Name of the package
|
|
30
|
+
--contract Use a contract template (default)
|
|
31
|
+
--lib Use a library template
|
|
32
|
+
--bin Use a binary template
|
|
33
|
+
Examples:
|
|
34
|
+
$ aztec init # creates a contract project in current directory
|
|
35
|
+
$ aztec init --lib # creates a library project
|
|
36
|
+
|
|
37
|
+
new <path> [options]: creates a new Noir project in a new directory
|
|
38
|
+
Options:
|
|
39
|
+
--name <name> Name of the package
|
|
40
|
+
--contract Use a contract template (default)
|
|
41
|
+
--lib Use a library template
|
|
42
|
+
--bin Use a binary template
|
|
43
|
+
Examples:
|
|
44
|
+
$ aztec new my-project # creates a contract project in ./my-project
|
|
45
|
+
$ aztec new my-lib --lib # creates a library project in ./my-lib
|
|
46
|
+
|
|
47
|
+
compile [options]: compiles Aztec Noir contracts
|
|
48
|
+
Compiles contracts with nargo compile and then postprocesses them to generate Aztec-specific artifacts including:
|
|
49
|
+
- Transpiled contract artifacts
|
|
50
|
+
- Verification keys
|
|
51
|
+
The compiled contracts will be placed in the target/ directory by default.
|
|
52
|
+
Supports standard nargo compile options.
|
|
53
|
+
|
|
54
|
+
fmt [options]: formats Noir code using nargo fmt
|
|
55
|
+
Example:
|
|
56
|
+
$ aztec fmt # formats all Noir files in the project
|
|
57
|
+
|
|
58
|
+
check [options]: type-checks Noir code without compiling using nargo check
|
|
59
|
+
Example:
|
|
60
|
+
$ aztec check # checks all Noir files in the project
|
|
61
|
+
|
|
27
62
|
test [options]: starts a dockerized TXE node via
|
|
28
63
|
$ aztec start --txe
|
|
29
64
|
then runs
|
|
30
|
-
$ aztec
|
|
65
|
+
$ aztec test --silence-warnings --oracle-resolver=<TXE_ADDRESS> [options]
|
|
66
|
+
|
|
67
|
+
lsp: starts the Nargo Language Server Protocol server
|
|
68
|
+
Runs nargo lsp in a Docker container for IDE integration with Noir.
|
|
69
|
+
This command is typically used by IDE extensions and not called directly by users.
|
|
70
|
+
Example:
|
|
71
|
+
$ aztec lsp # starts the LSP server
|
|
72
|
+
|
|
73
|
+
preload-crs: Downloads and caches the Common Reference String (CRS) data required for zero-knowledge proofs.
|
|
74
|
+
Example:
|
|
75
|
+
$ aztec preload-crs # preloads CRS data
|
|
31
76
|
`);
|
|
32
77
|
program.command('preload-crs').description('Preload the points data needed for proving and verifying').action(async (options)=>{
|
|
33
78
|
const { preloadCrs } = await import('./preload_crs.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251109",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -28,37 +28,37 @@
|
|
|
28
28
|
"../package.common.json"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
32
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
33
|
-
"@aztec/aztec-faucet": "3.0.0-nightly.
|
|
34
|
-
"@aztec/aztec-node": "3.0.0-nightly.
|
|
35
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
36
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
37
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
38
|
-
"@aztec/blob-sink": "3.0.0-nightly.
|
|
39
|
-
"@aztec/bot": "3.0.0-nightly.
|
|
40
|
-
"@aztec/builder": "3.0.0-nightly.
|
|
41
|
-
"@aztec/cli": "3.0.0-nightly.
|
|
42
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
43
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
44
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
45
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
46
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
47
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
48
|
-
"@aztec/node-lib": "3.0.0-nightly.
|
|
49
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
50
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
51
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
52
|
-
"@aztec/p2p-bootstrap": "3.0.0-nightly.
|
|
53
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
54
|
-
"@aztec/prover-client": "3.0.0-nightly.
|
|
55
|
-
"@aztec/prover-node": "3.0.0-nightly.
|
|
56
|
-
"@aztec/pxe": "3.0.0-nightly.
|
|
57
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
58
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
59
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
60
|
-
"@aztec/txe": "3.0.0-nightly.
|
|
61
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
31
|
+
"@aztec/accounts": "3.0.0-nightly.20251109",
|
|
32
|
+
"@aztec/archiver": "3.0.0-nightly.20251109",
|
|
33
|
+
"@aztec/aztec-faucet": "3.0.0-nightly.20251109",
|
|
34
|
+
"@aztec/aztec-node": "3.0.0-nightly.20251109",
|
|
35
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251109",
|
|
36
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251109",
|
|
37
|
+
"@aztec/bb.js": "3.0.0-nightly.20251109",
|
|
38
|
+
"@aztec/blob-sink": "3.0.0-nightly.20251109",
|
|
39
|
+
"@aztec/bot": "3.0.0-nightly.20251109",
|
|
40
|
+
"@aztec/builder": "3.0.0-nightly.20251109",
|
|
41
|
+
"@aztec/cli": "3.0.0-nightly.20251109",
|
|
42
|
+
"@aztec/constants": "3.0.0-nightly.20251109",
|
|
43
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251109",
|
|
44
|
+
"@aztec/ethereum": "3.0.0-nightly.20251109",
|
|
45
|
+
"@aztec/foundation": "3.0.0-nightly.20251109",
|
|
46
|
+
"@aztec/kv-store": "3.0.0-nightly.20251109",
|
|
47
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251109",
|
|
48
|
+
"@aztec/node-lib": "3.0.0-nightly.20251109",
|
|
49
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251109",
|
|
50
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251109",
|
|
51
|
+
"@aztec/p2p": "3.0.0-nightly.20251109",
|
|
52
|
+
"@aztec/p2p-bootstrap": "3.0.0-nightly.20251109",
|
|
53
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251109",
|
|
54
|
+
"@aztec/prover-client": "3.0.0-nightly.20251109",
|
|
55
|
+
"@aztec/prover-node": "3.0.0-nightly.20251109",
|
|
56
|
+
"@aztec/pxe": "3.0.0-nightly.20251109",
|
|
57
|
+
"@aztec/stdlib": "3.0.0-nightly.20251109",
|
|
58
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251109",
|
|
59
|
+
"@aztec/test-wallet": "3.0.0-nightly.20251109",
|
|
60
|
+
"@aztec/txe": "3.0.0-nightly.20251109",
|
|
61
|
+
"@aztec/world-state": "3.0.0-nightly.20251109",
|
|
62
62
|
"@types/chalk": "^2.2.0",
|
|
63
63
|
"abitype": "^0.8.11",
|
|
64
64
|
"chalk": "^5.3.0",
|
package/src/cli/cli.ts
CHANGED
|
@@ -37,10 +37,55 @@ export function injectAztecCommands(program: Command, userLog: LogFn, debugLogge
|
|
|
37
37
|
|
|
38
38
|
Additional commands:
|
|
39
39
|
|
|
40
|
+
init [folder] [options]: creates a new Noir project
|
|
41
|
+
Options:
|
|
42
|
+
--name <name> Name of the package
|
|
43
|
+
--contract Use a contract template (default)
|
|
44
|
+
--lib Use a library template
|
|
45
|
+
--bin Use a binary template
|
|
46
|
+
Examples:
|
|
47
|
+
$ aztec init # creates a contract project in current directory
|
|
48
|
+
$ aztec init --lib # creates a library project
|
|
49
|
+
|
|
50
|
+
new <path> [options]: creates a new Noir project in a new directory
|
|
51
|
+
Options:
|
|
52
|
+
--name <name> Name of the package
|
|
53
|
+
--contract Use a contract template (default)
|
|
54
|
+
--lib Use a library template
|
|
55
|
+
--bin Use a binary template
|
|
56
|
+
Examples:
|
|
57
|
+
$ aztec new my-project # creates a contract project in ./my-project
|
|
58
|
+
$ aztec new my-lib --lib # creates a library project in ./my-lib
|
|
59
|
+
|
|
60
|
+
compile [options]: compiles Aztec Noir contracts
|
|
61
|
+
Compiles contracts with nargo compile and then postprocesses them to generate Aztec-specific artifacts including:
|
|
62
|
+
- Transpiled contract artifacts
|
|
63
|
+
- Verification keys
|
|
64
|
+
The compiled contracts will be placed in the target/ directory by default.
|
|
65
|
+
Supports standard nargo compile options.
|
|
66
|
+
|
|
67
|
+
fmt [options]: formats Noir code using nargo fmt
|
|
68
|
+
Example:
|
|
69
|
+
$ aztec fmt # formats all Noir files in the project
|
|
70
|
+
|
|
71
|
+
check [options]: type-checks Noir code without compiling using nargo check
|
|
72
|
+
Example:
|
|
73
|
+
$ aztec check # checks all Noir files in the project
|
|
74
|
+
|
|
40
75
|
test [options]: starts a dockerized TXE node via
|
|
41
76
|
$ aztec start --txe
|
|
42
77
|
then runs
|
|
43
|
-
$ aztec
|
|
78
|
+
$ aztec test --silence-warnings --oracle-resolver=<TXE_ADDRESS> [options]
|
|
79
|
+
|
|
80
|
+
lsp: starts the Nargo Language Server Protocol server
|
|
81
|
+
Runs nargo lsp in a Docker container for IDE integration with Noir.
|
|
82
|
+
This command is typically used by IDE extensions and not called directly by users.
|
|
83
|
+
Example:
|
|
84
|
+
$ aztec lsp # starts the LSP server
|
|
85
|
+
|
|
86
|
+
preload-crs: Downloads and caches the Common Reference String (CRS) data required for zero-knowledge proofs.
|
|
87
|
+
Example:
|
|
88
|
+
$ aztec preload-crs # preloads CRS data
|
|
44
89
|
`,
|
|
45
90
|
);
|
|
46
91
|
|