Skip to content

Commit

Permalink
feat(docs): Macros explainer (#7172)
Browse files Browse the repository at this point in the history
I had already written a lot of this before so just adding to the other
macros since then

Closes AztecProtocol/dev-rel#200

---------

Co-authored-by: James Zaki <james.zaki@proton.me>
  • Loading branch information
catmcgee and jzaki authored Jul 2, 2024
1 parent 5d25860 commit bb2ebfc
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 62 deletions.

This file was deleted.

5 changes: 3 additions & 2 deletions docs/docs/aztec/concepts/smart_contracts/functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ Initializers are regular functions that set an "initialized" flag (a nullifier)

There are also special oracle functions, which can get data from outside of the smart contract. In the context of Aztec, oracles are often used to get user-provided inputs.

Explore this section to learn:
## Learn more about functions

- [How function visibility works in Aztec](./visibility.md)
- [Function types and Macros](./function_types_macros.md), and how to write them
- How to write an [initializer function](../../../../guides/smart_contracts/writing_contracts/initializers.md)
- [Calling functions from within the same smart contract and from different contracts](../../../../guides/smart_contracts/writing_contracts/call_functions.md), including calling private functions from private functions, public from public, and even private from public
- [Oracles](../oracles/index.md) and how Aztec smart contracts might use them
- [How functions work under the hood](./inner_workings.md)

Find a function macros reference [here](../../../../reference/smart_contract_reference/macros.md).
Loading

0 comments on commit bb2ebfc

Please sign in to comment.