-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use workspace build with
nargo compile --workspace
(#2266)
fixes: - #2258
- Loading branch information
Showing
18 changed files
with
67 additions
and
82 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
yarn-project/aztec.js/src/abis/schnorr_auth_witness_account_contract.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
yarn-project/aztec.js/src/abis/schnorr_single_key_account_contract.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"tag": "aztec", | ||
"commit": "39e1433a9c4184b72f3c5ab0368cfaa5d4ce537b" | ||
"commit": "f173c05cbff96dfc48a22cc2f1f76396b968d5a0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Handler for SIGCHLD, cleanup if child exit with error, used by nargo_test.sh and compile.sh | ||
handle_sigchld() { | ||
for pid in "${pids[@]}"; do | ||
# If process is no longer running | ||
if ! kill -0 "$pid" 2>/dev/null; then | ||
# Wait for the process and get exit status | ||
wait "$pid" | ||
status=$? | ||
|
||
# If exit status is error | ||
if [ $status -ne 0 ]; then | ||
# Create error file | ||
touch "$error_file" | ||
fi | ||
fi | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Compiles all noir contracts | ||
|
||
source ./scripts/nargo_check.sh | ||
|
||
echo "Checking noir version" | ||
nargo_check | ||
|
||
# Runs the compile scripts for all contracts. | ||
echo "Compiling all contracts" | ||
|
||
nargo compile --workspace |
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
yarn-project/noir-contracts/scripts/install_noir_backend.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Check nargo version matches the expected one | ||
nargo_check() { | ||
echo "Using $(nargo --version)" | ||
EXPECTED_VERSION=$(jq -r '.commit' ../noir-compiler/src/noir-version.json) | ||
FOUND_VERSION=$(nargo --version | grep -oP 'git version hash: \K[0-9a-f]+') | ||
if [ "$EXPECTED_VERSION" != "$FOUND_VERSION" ]; then | ||
echo "Expected nargo version $EXPECTED_VERSION but found version $FOUND_VERSION. Aborting." | ||
exit 1 | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
|
||
#!/bin/bash | ||
|
||
# Runs tests scripts for all contracts, then for all libraries. | ||
|
||
./scripts/nargo_test.sh CONTRACT $(./scripts/get_all_contracts.sh) | ||
./scripts/nargo_test.sh LIB $(./scripts/get_all_libraries.sh) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters