-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c88435
commit 7260917
Showing
29 changed files
with
798 additions
and
358 deletions.
There are no files selected for viewing
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
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 @@ | ||
{ | ||
"scripts": { | ||
"build": "yarn clean && yarn generate && tsc -b", | ||
"generate": "./scripts/copy-test-artifacts.sh", | ||
"clean": "rm -rf ./dest .tsbuildinfo ./test/artifacts" | ||
}, | ||
"files": [ | ||
"dest", | ||
"src", | ||
"!*.test.*" | ||
] | ||
} |
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,16 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# Check for .json files existence | ||
if ! ls ../../noir-projects/noir-contracts/target/*.json >/dev/null 2>&1; then | ||
echo "Error: No .json files found in noir-contracts/target folder." | ||
echo "Make sure noir-contracts is built before running this script." | ||
exit 1 | ||
fi | ||
|
||
# Ensure outdir exists | ||
mkdir -p ./src/test/artifacts | ||
|
||
# Copy the token contract for testing | ||
cp ../../noir-projects/noir-contracts/target/token_contract-Token.json ./src/test/artifacts/ | ||
echo "Copied token_contract-Token.json to ./src/test/artifacts/" |
Oops, something went wrong.