Aztec.nr
Aztec.nr is the smart contract development framework for Aztec. It is a set of utilities that help you write Noir programs to deploy on the Aztec network.
Contract Development
Prerequisites
- Install Aztec Sandbox and tooling
- Install the Noir LSP for your editor.
Flow
- Write your contract and specify your contract dependencies. Every contract written for Aztec will have
aztec-nr as a dependency. Add it to your
Nargo.toml
with
# Nargo.toml
[dependencies]
aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="v1.2.0", directory="noir-projects/aztec-nr/aztec" }
- Write your contracts.
- Profile the private functions in your contract to get a sense of how long generating client side proofs will take
- Write unit tests using the TXE and end-to-end tests with typescript
- Compile your contract
- Deploy your contract with Aztec.js
Section Contents
🗃️ Writing Contracts
11 items
📄️ Profiling Transactions
Learn how to profile your Aztec transactions to optimize performance and gas usage.
📄️ Testing Contracts
Learn how to write and run tests for your Aztec smart contracts.
📄️ How to Compile a Contract
Learn how to compile your Noir smart contracts for deployment on Aztec.