feat: replace _validate_from for #[authorize_once] macro#247
Open
wei3erHase wants to merge 7 commits intodevfrom
Open
feat: replace _validate_from for #[authorize_once] macro#247wei3erHase wants to merge 7 commits intodevfrom
wei3erHase wants to merge 7 commits intodevfrom
Conversation
# 🤖 Linear Closes AZT-XXX ## Description
# 🤖 Linear
Closes AZT-494
## Description
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Upgrade to Aztec v3 devnet.20251212 and refactor Noir contracts,
benchmarks, JS tests, and GitHub workflows to new APIs and state
patterns.
>
> - **Dependencies & Versions**
> - Bump package to `3.0.0-devnet.20251212`; switch all Aztec deps and
Noir `Nargo.toml` tags to `v3.0.0-devnet.20251212`.
> - Update `config.aztecVersion` and yarn lock to devnet.
> - **Contracts (Noir)**
> - Replace `Map<AztecAddress, PrivateSet<...>>` with
`Owned<PrivateSet<...>>` and use `get_storage_slot()`.
> - Update note/message APIs (`emit` → `deliver`, use
`MessageDelivery.CONSTRAINED_ONCHAIN`).
> - Refactor NFT note to `NFTNote { token_id }`, revise note
hash/nullifier and partial-note commitment logic.
> - Adjust token balance set to use `OwnedStateVariable` and
`MaybeNoteMessage`; adapt getters and storage access.
> - **Benchmarks**
> - Inject `AztecLMDBStoreV2` into contexts and add `teardown` to delete
store.
> - Adapt to new deploy helpers (`deployEscrow` returns `{ contract,
instance }`) and updated method signatures.
> - Comment out `escrow` and `logic` entries in root `Nargo.toml`
benchmark config.
> - **JS Tests/Utils**
> - Update crypto/import paths, event fetching API (scoped options,
`.event` access), and private log field indexing.
> - Use shared node from setup; adjust `deployEscrow` to return instance
for `registerContract`.
> - **CI/CD**
> - Workflows: use "local network" nomenclature, ensure Buildx, tag
docker `latest`, start/kill `--local-network`, and minor step renames in
benchmarks/tests.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1a3fca1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: zorzal <zorzal@defi.sucks>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
https://docs.aztec.network/developers/docs/aztec-js/how_to_use_authwit
Note
Migrates authorization to the
#[authorize_once("from", "_nonce")]macro and removes bespoke authwit checks.#[authorize_once]to NFT and Token contract entrypoints (private/public transfer, burn, deposit, withdraw, redeem, issue) and drop_validate_from_private/_validate_from_publiccalls_validate_minter#[authorize_once("from", "_nonce")]Written by Cursor Bugbot for commit ca6ed6a. This will update automatically on new commits. Configure here.