-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat!: require trait primitive functions/calls to have their trait in scope (noir-lang/noir#6901) feat(lsp): use trait method docs for trait impl method docs on hover (noir-lang/noir#7003) chore: turn on averaging for protocol circuits metrics in CI (noir-lang/noir#6999) feat(comptime): Implement to_be_bits and to_le_bits in the interpreter (noir-lang/noir#7008) chore: Add short circuit in ssa-gen for known if conditions (noir-lang/noir#7007) chore: Only resolved globals monomorphization (noir-lang/noir#7006) chore: Remove resolve_is_unconstrained pass (noir-lang/noir#7004) chore: require safety doc comment for unsafe instead of `//@safety` (noir-lang/noir#6992) fix: Reproduce and fix bytecode blowup (noir-lang/noir#6972) chore: mark casts as able to be deduplicated (noir-lang/noir#6996) fix: return trait impl method as FuncId if there's only one (noir-lang/noir#6989) chore(ci): fail properly in `external-repo-checks` (noir-lang/noir#6988) fix: allow multiple trait impls for the same trait as long as one is in scope (noir-lang/noir#6987) chore: Use DFG in SSA printer (noir-lang/noir#6986) chore!: Reserve `enum` and `match` keywords (noir-lang/noir#6961) END_COMMIT_OVERRIDE --------- Co-authored-by: Tom French <[email protected]>
- Loading branch information
1 parent
9b99126
commit 9189120
Showing
1,069 changed files
with
2,526 additions
and
90,888 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3c488f4b272f460383341c51270b87bfe2b94468 | ||
db28cb9ffb710c286b54dbfcf57292ae3dffb03d |
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
17 changes: 6 additions & 11 deletions
17
noir-projects/noir-contracts/contracts/easy_private_voting_contract/src/test/utils.nr
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,21 +1,16 @@ | ||
use dep::aztec::{ | ||
note::{note_getter::{MAX_NOTES_PER_PAGE, view_notes}, note_viewer_options::NoteViewerOptions}, | ||
prelude::AztecAddress, | ||
protocol_types::storage::map::derive_storage_slot_in_map, | ||
test::helpers::test_environment::TestEnvironment, | ||
}; | ||
use dep::aztec::{prelude::AztecAddress, test::helpers::test_environment::TestEnvironment}; | ||
|
||
use crate::EasyPrivateVoting; | ||
|
||
pub fn setup() -> (&mut TestEnvironment, AztecAddress, AztecAddress) { | ||
let mut env = TestEnvironment::new(); | ||
let mut env = unsafe { TestEnvironment::new() }; | ||
|
||
let admin = env.create_account(); | ||
let admin = unsafe { env.create_account() }; | ||
|
||
let initializer_call_interface = EasyPrivateVoting::interface().constructor(admin); | ||
let voting_contract = env.deploy_self("EasyPrivateVoting").with_public_void_initializer( | ||
initializer_call_interface, | ||
); | ||
let voting_contract = unsafe { | ||
env.deploy_self("EasyPrivateVoting").with_public_void_initializer(initializer_call_interface) | ||
}; | ||
// std::println(voting_contract); | ||
(&mut env, voting_contract.to_address(), admin) | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
yarn-lock: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -492,7 +492,7 @@ jobs: | |
uses: foundry-rs/[email protected] | ||
with: | ||
version: nightly-8660e5b941fe7f4d67e246cfd3dafea330fb53b1 | ||
|
||
|
||
- name: Install `bb` | ||
run: | | ||
|
@@ -530,10 +530,10 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build list of libraries | ||
id: get_critical_libraries | ||
run: | | ||
run: | | ||
LIBRARIES=$(grep -Po "^https://github.com/\K.+" ./CRITICAL_NOIR_LIBRARIES | jq -R -s -c 'split("\n") | map(select(. != "")) | map({ repo: ., path: ""})') | ||
echo "libraries=$LIBRARIES" | ||
echo "libraries=$LIBRARIES" >> $GITHUB_OUTPUT | ||
|
@@ -593,11 +593,16 @@ jobs: | |
# Github actions seems to not expand "**" in globs by default. | ||
shopt -s globstar | ||
sed -i '/^compiler_version/d' ./**/Nargo.toml | ||
- name: Run nargo test | ||
working-directory: ./test-repo/${{ matrix.project.path }} | ||
run: | | ||
nargo test --silence-warnings --skip-brillig-constraints-check --format json ${{ matrix.project.nargo_args }} | tee ${{ github.workspace }}/noir-repo/.github/critical_libraries_status/${{ matrix.project.repo }}/${{ matrix.project.path }}.actual.jsonl | ||
output_file=${{ github.workspace }}/noir-repo/.github/critical_libraries_status/${{ matrix.project.repo }}/${{ matrix.project.path }}.actual.jsonl | ||
nargo test --silence-warnings --skip-brillig-constraints-check --format json ${{ matrix.project.nargo_args }} | tee $output_file | ||
if [ ! -s $output_file ]; then | ||
# The file is empty so we delete it to signal that `nargo test` failed before it could run any tests | ||
rm -f $output_file | ||
fi | ||
env: | ||
NARGO_IGNORE_TEST_FAILURES_FROM_FOREIGN_CALLS: true | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.