Skip to content

Commit

Permalink
frefactor: renaming as
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Apr 23, 2024
1 parent 8a5ece7 commit 3212adc
Show file tree
Hide file tree
Showing 44 changed files with 82 additions and 88 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ Alternatively, to just hack on Noir contracts and Typescript, run `./bootstrap.s

To build Typescript code, make sure to have [`nvm`](https://github.com/nvm-sh/nvm) (node version manager) installed.

To build noir code, make sure that you are using the version from `yarn-project/noir-compiler/src/noir-version.json`.

Install nargo by running

```
noirup -v TAG_FROM_THE_FILE
```

## Continuous Integration

This repository uses CircleCI for continuous integration. Build steps are managed using [`build-system`](https://github.com/AztecProtocol/build-system). Small packages are built and tested as part of a docker build operation, while larger ones and end-to-end tests spin up a large AWS spot instance. Each successful build step creates a new docker image that gets tagged with the package name and commit.
Expand Down
2 changes: 1 addition & 1 deletion boxes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY --from=noir-projects /usr/src/noir-projects/noir-protocol-circuits/crates/t
WORKDIR /usr/src/boxes
COPY . .
ENV AZTEC_NARGO=/usr/src/noir/noir-repo/target/release/nargo
ENV AZTEC_COMPILE=/usr/src/yarn-project/noir-compiler/aztec-compile-dest
ENV AZTEC_COMPILE=/usr/src/yarn-project/builder/aztec-compile-dest
RUN yarn
RUN npx -y playwright@1.42 install --with-deps
ENTRYPOINT ["/bin/sh", "-c"]
2 changes: 1 addition & 1 deletion boxes/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
WORKDIR /usr/src/boxes
COPY . .
ENV AZTEC_NARGO=/usr/src/noir/noir-repo/target/release/nargo
ENV AZTEC_COMPILE=/usr/src/yarn-project/noir-compiler/aztec-compile-dest
ENV AZTEC_COMPILE=/usr/src/yarn-project/builder/aztec-compile-dest
RUN yarn && yarn build
RUN npx -y playwright@1.42 install --with-deps
ENTRYPOINT ["/bin/sh", "-c"]
22 changes: 11 additions & 11 deletions yarn-project/.earthlyignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ end-to-end/src/web/main.js
end-to-end/src/web/main.js.LICENSE.txt
entry-points/src/artifacts
l1-contracts/generated
noir-compiler/target/
noir-compiler/proofs/
noir-compiler/Prover.toml
noir-compiler/Verifier.toml
noir-compiler/noir-protocol-circuits-types/.gitignore wow
noir-compiler/proofs/
noir-compiler/Prover.toml
noir-compiler/Verifier.toml
noir-compiler/src/target
noir-compiler/src/crs
noir-compiler/src/types
builder/target/
builder/proofs/
builder/Prover.toml
builder/Verifier.toml
builder/noir-protocol-circuits-types/.gitignore wow
builder/proofs/
builder/Prover.toml
builder/Verifier.toml
builder/src/target
builder/src/crs
builder/src/types
protocol-contracts/src/artifacts
scripts/tmp
noir-contracts.js/src
Expand Down
22 changes: 11 additions & 11 deletions yarn-project/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ end-to-end/src/web/main.js.LICENSE.txt
entry-points/src/artifacts
l1-artifacts/generated
l1-contracts/generated
noir-compiler/target/
noir-compiler/proofs/
noir-compiler/Prover.toml
noir-compiler/Verifier.toml
noir-compiler/noir-protocol-circuits-types/.gitignore wow
noir-compiler/proofs/
noir-compiler/Prover.toml
noir-compiler/Verifier.toml
noir-compiler/src/target
noir-compiler/src/crs
noir-compiler/src/types
builder/target/
builder/proofs/
builder/Prover.toml
builder/Verifier.toml
builder/noir-protocol-circuits-types/.gitignore wow
builder/proofs/
builder/Prover.toml
builder/Verifier.toml
builder/src/target
builder/src/crs
builder/src/types
noir-protocol-circuits-types/src/types/
protocol-contracts/src/artifacts
scripts/tmp
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
"@aztec/archiver": "workspace:^",
"@aztec/aztec-node": "workspace:^",
"@aztec/aztec.js": "workspace:^",
"@aztec/builder": "workspace:^",
"@aztec/circuit-types": "workspace:^",
"@aztec/circuits.js": "workspace:^",
"@aztec/entrypoints": "workspace:^",
"@aztec/ethereum": "workspace:^",
"@aztec/foundation": "workspace:^",
"@aztec/kv-store": "workspace:^",
"@aztec/l1-artifacts": "workspace:^",
"@aztec/noir-compiler": "workspace:^",
"@aztec/noir-contracts.js": "workspace:^",
"@aztec/p2p": "workspace:^",
"@aztec/protocol-contracts": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"path": "../l1-artifacts"
},
{
"path": "../noir-compiler"
"path": "../builder"
},
{
"path": "../noir-contracts.js"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Aztec.nr compiler

The Aztec.nr compiler compiles Aztec.nr contracts using nargo and outputs Aztec formatted contract ABIs. The compiler can also generate typescript classes for each contract, as well as Aztec.nr interfaces for calling external functions.
The Aztec.nr compiler compiles Aztec.nr contracts using nargo and outputs Aztec formatted contract ABIs.
The compiler can also generate typescript classes for each contract, as well as Aztec.nr interfaces for calling external functions.
it can also be used to update aztec project dependencies.

## Installation

To install the package, run:

```bash
yarn add @aztec/noir-compiler
yarn add @aztec/builder
```

## Usage
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@aztec/noir-compiler",
"name": "@aztec/builder",
"version": "0.1.0",
"type": "module",
"exports": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion yarn-project/deploy_npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ deploy_package entrypoints
deploy_package accounts
deploy_package l1-artifacts
deploy_package ethereum
deploy_package noir-compiler
deploy_package builder
deploy_package noir-contracts.js
deploy_package kv-store
deploy_package merkle-tree
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/noir-contracts.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"tslib": "^2.4.0"
},
"devDependencies": {
"@aztec/noir-compiler": "workspace:^",
"@aztec/builder": "workspace:^",
"@jest/globals": "^29.5.0",
"@types/jest": "^29.5.0",
"jest": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/noir-contracts.js/scripts/generate-types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ for ABI in $(find ../../noir-projects/noir-contracts/target -maxdepth 1 -type f
done

# Generate types for the contracts
node --no-warnings ../noir-compiler/dest/cli.js codegen -o $OUT_DIR artifacts
node --no-warnings ../builder/dest/cli.js codegen -o $OUT_DIR artifacts

# Append exports for each generated TypeScript file to index.ts
find "$OUT_DIR" -maxdepth 1 -type f -name '*.ts' ! -name 'index.ts' | while read -r TS_FILE; do
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/noir-contracts.js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"path": "../aztec.js"
},
{
"path": "../noir-compiler"
"path": "../builder"
}
],
"include": [
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/noir-protocol-circuits-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
}
},
"dependencies": {
"@aztec/builder": "workspace:^",
"@aztec/circuits.js": "workspace:^",
"@aztec/foundation": "workspace:^",
"@aztec/noir-compiler": "workspace:^",
"@aztec/types": "workspace:^",
"@noir-lang/acvm_js": "portal:../../noir/packages/acvm_js",
"@noir-lang/noirc_abi": "portal:../../noir/packages/noirc_abi",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/noir-protocol-circuits-types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"path": "../foundation"
},
{
"path": "../noir-compiler"
"path": "../builder"
},
{
"path": "../types"
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"kv-store",
"l1-artifacts",
"merkle-tree",
"noir-compiler",
"builder",
"noir-contracts.js",
"noir-protocol-circuits-types",
"p2p",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/pxe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
]
},
"dependencies": {
"@aztec/builder": "workspace:^",
"@aztec/circuit-types": "workspace:^",
"@aztec/circuits.js": "workspace:^",
"@aztec/ethereum": "workspace:^",
"@aztec/foundation": "workspace:^",
"@aztec/key-store": "workspace:^",
"@aztec/kv-store": "workspace:^",
"@aztec/noir-compiler": "workspace:^",
"@aztec/noir-protocol-circuits-types": "workspace:^",
"@aztec/protocol-contracts": "workspace:^",
"@aztec/simulator": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/pxe/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"path": "../kv-store"
},
{
"path": "../noir-compiler"
"path": "../builder"
},
{
"path": "../noir-protocol-circuits-types"
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{ "path": "l1-artifacts/tsconfig.json" },
{ "path": "merkle-tree/tsconfig.json" },
{ "path": "noir-contracts.js/tsconfig.json" },
{ "path": "noir-compiler/tsconfig.json" },
{ "path": "builder/tsconfig.json" },
{ "path": "noir-protocol-circuits-types/tsconfig.json" },
{ "path": "p2p/tsconfig.json" },
{ "path": "p2p-bootstrap/tsconfig.json" },
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"aztec.js",
"key-store",
"noir-contracts.js",
"noir-compiler",
"builder",
"p2p",
"prover-client",
"aztec-node",
Expand Down
80 changes: 40 additions & 40 deletions yarn-project/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ __metadata:
"@aztec/archiver": "workspace:^"
"@aztec/aztec-node": "workspace:^"
"@aztec/aztec.js": "workspace:^"
"@aztec/builder": "workspace:^"
"@aztec/circuit-types": "workspace:^"
"@aztec/circuits.js": "workspace:^"
"@aztec/entrypoints": "workspace:^"
"@aztec/ethereum": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/kv-store": "workspace:^"
"@aztec/l1-artifacts": "workspace:^"
"@aztec/noir-compiler": "workspace:^"
"@aztec/noir-contracts.js": "workspace:^"
"@aztec/p2p": "workspace:^"
"@aztec/protocol-contracts": "workspace:^"
Expand Down Expand Up @@ -239,6 +239,42 @@ __metadata:
languageName: node
linkType: soft

"@aztec/builder@workspace:^, @aztec/builder@workspace:builder":
version: 0.0.0-use.local
resolution: "@aztec/builder@workspace:builder"
dependencies:
"@aztec/circuits.js": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/types": "workspace:^"
"@iarna/toml": ^2.2.5
"@jest/globals": ^29.5.0
"@types/fs-extra": ^11.0.1
"@types/jest": ^29.5.0
"@types/lodash.camelcase": ^4.3.7
"@types/lodash.capitalize": ^4.2.7
"@types/lodash.uniqby": ^4.7.9
"@types/node": ^18.7.23
"@types/pako": ^2.0.0
"@types/semver": ^7.5.4
base64-js: ^1.5.1
commander: ^9.0.0
fs-extra: ^11.1.1
jest: ^29.5.0
lodash.camelcase: ^4.3.0
lodash.capitalize: ^4.2.1
lodash.uniqby: ^4.7.0
memfs: ^4.6.0
pako: ^2.1.0
semver: ^7.5.4
ts-node: ^10.9.1
tslib: ^2.4.0
typescript: ^5.0.4
unzipit: ^1.4.3
bin:
aztec-compile: dest/cli.js
languageName: unknown
linkType: soft

"@aztec/circuit-types@workspace:^, @aztec/circuit-types@workspace:circuit-types":
version: 0.0.0-use.local
resolution: "@aztec/circuit-types@workspace:circuit-types"
Expand Down Expand Up @@ -525,48 +561,12 @@ __metadata:
languageName: unknown
linkType: soft

"@aztec/noir-compiler@workspace:^, @aztec/noir-compiler@workspace:noir-compiler":
version: 0.0.0-use.local
resolution: "@aztec/noir-compiler@workspace:noir-compiler"
dependencies:
"@aztec/circuits.js": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/types": "workspace:^"
"@iarna/toml": ^2.2.5
"@jest/globals": ^29.5.0
"@types/fs-extra": ^11.0.1
"@types/jest": ^29.5.0
"@types/lodash.camelcase": ^4.3.7
"@types/lodash.capitalize": ^4.2.7
"@types/lodash.uniqby": ^4.7.9
"@types/node": ^18.7.23
"@types/pako": ^2.0.0
"@types/semver": ^7.5.4
base64-js: ^1.5.1
commander: ^9.0.0
fs-extra: ^11.1.1
jest: ^29.5.0
lodash.camelcase: ^4.3.0
lodash.capitalize: ^4.2.1
lodash.uniqby: ^4.7.0
memfs: ^4.6.0
pako: ^2.1.0
semver: ^7.5.4
ts-node: ^10.9.1
tslib: ^2.4.0
typescript: ^5.0.4
unzipit: ^1.4.3
bin:
aztec-compile: dest/cli.js
languageName: unknown
linkType: soft

"@aztec/noir-contracts.js@workspace:^, @aztec/noir-contracts.js@workspace:noir-contracts.js":
version: 0.0.0-use.local
resolution: "@aztec/noir-contracts.js@workspace:noir-contracts.js"
dependencies:
"@aztec/aztec.js": "workspace:^"
"@aztec/noir-compiler": "workspace:^"
"@aztec/builder": "workspace:^"
"@jest/globals": ^29.5.0
"@types/jest": ^29.5.0
jest: ^29.5.0
Expand All @@ -580,12 +580,12 @@ __metadata:
version: 0.0.0-use.local
resolution: "@aztec/noir-protocol-circuits-types@workspace:noir-protocol-circuits-types"
dependencies:
"@aztec/builder": "workspace:^"
"@aztec/circuit-types": "workspace:^"
"@aztec/circuits.js": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/kv-store": "workspace:^"
"@aztec/merkle-tree": "workspace:^"
"@aztec/noir-compiler": "workspace:^"
"@aztec/types": "workspace:^"
"@jest/globals": ^29.5.0
"@noir-lang/acvm_js": "portal:../../noir/packages/acvm_js"
Expand Down Expand Up @@ -711,13 +711,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@aztec/pxe@workspace:pxe"
dependencies:
"@aztec/builder": "workspace:^"
"@aztec/circuit-types": "workspace:^"
"@aztec/circuits.js": "workspace:^"
"@aztec/ethereum": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/key-store": "workspace:^"
"@aztec/kv-store": "workspace:^"
"@aztec/noir-compiler": "workspace:^"
"@aztec/noir-contracts.js": "workspace:^"
"@aztec/noir-protocol-circuits-types": "workspace:^"
"@aztec/protocol-contracts": "workspace:^"
Expand Down

0 comments on commit 3212adc

Please sign in to comment.