Skip to content

Conversation

@ciaranightingale
Copy link
Contributor

@ciaranightingale ciaranightingale commented Jan 19, 2026

Add Nico's detailed Aztec.nr content

@ciaranightingale ciaranightingale marked this pull request as ready for review January 20, 2026 14:13
Copy link
Contributor

@critesjosh critesjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor suggestions. I think having Claude do a pass on your PR would helpful as well to catch grammatical errors. I suggest telling it to use the guidelines defined in docs/CLAUDE.md

@nchamo nchamo requested review from nventuro and removed request for nchamo January 20, 2026 17:52
@critesjosh
Copy link
Contributor

Also have Claude do a pass, following the guidelines in docs/CLAUDE.md for grammar and style consistency

@ciaranightingale ciaranightingale force-pushed the docs/nico-changes branch 3 times, most recently from c7b1de3 to 8d575aa Compare January 30, 2026 14:26
// A private numeric value which can change over time. This value will be hidden, and only those with the secret can know its current value.
my_private_state_variable: Owned<PrivateMutable<NoteType, Context>>,
// A public numeric value which can change over time. This value will be known to everyone and is equivalent to the Solidity example above.
my_public_state_variable: Owned<PublicMutable<NoteType, Context>>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public mutables arent owned. also it may be confusing to call the type a NoteType since public state doesnt actually use notes

#### Delivery Methods

Private notes need to be communicated to their recipients so they know the note exists and can use it. The [`NoteMessage`](https://docs.aztec.network/aztec-nr-api/nightly/noir_aztec/note/struct.notemessage) wrapper forces you to make an explicit choice about how this happens:
[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[

}
```

In Aztec.nr, we define a [`struct`](https://noir-lang.org/docs/noir/concepts/data_types/structs) that holds _all_ state variables. This struct is called **the storage struct**, and it is identified by having the [`#[storage]` macro](https://docs.aztec.network/aztec-nr-api/nightly/noir_aztec/macros/storage/fn.storage) applied to it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a relative link to the appropriate version. wdyt about adding a preprocessing macro, something like (to include_version.js?

  // New macro for API ref paths                                                                             
  const apiRefVersion = releaseType === "nightly" ? "nightly"                                                
                      : releaseType === "devnet" ? "devnet"                                                  
                      : "next";                                                                              
  markdownContent = markdownContent.replaceAll(`#api_ref_version`, apiRefVersion);                           

Then links could be:
"[#[storage] macro] (/aztec-nr-api/#api_ref_version/noir_aztec/macros/storage/fn.storage)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants