Skip to main content

30 docs tagged with "contracts"

View all tags

Aztec macros

Learn about macros available in Aztec.nr for code generation and abstraction.

Call Types

Understand the different types of contract calls in Aztec, including private and public execution modes, and how they compare to Ethereum's call types.

Communicating with L1

Learn how to communicate with L1 contracts through portals in your Aztec smart contracts.

Contract Deployment

Learn how contract classes and instances are created and deployed on the Aztec network.

Contract Structure

Learn the fundamental structure of Aztec smart contracts including the contract keyword, directory layout, and how contracts manage state and functions.

Contract Upgrades

Understand contract upgrade patterns in Aztec and how to implement upgradeable contracts.

Declaring Storage

Comprehensive guide to storage management in your Aztec smart contracts.

Emitting Events

Learn how to emit events from your Aztec smart contracts for off-chain applications to consume.

How to Pay Fees

This guide shows you how to pay fees for transactions in Aztec using different payment methods.

Inbox

Learn about the inbox mechanism in Aztec portals for receiving messages from L1.

Notes

Comprehensive guide to using notes for private state management in your Aztec smart contracts.

Outbox

Learn about the outbox mechanism in Aztec portals for sending messages to L1.

Registry

Learn about the portal registry and how it manages L1-L2 contract mappings.

Smart Contracts

Introduction to Aztec smart contracts, their unique features, and how they differ from traditional blockchain contracts.

Storage slots

Detailed walkthrough of storage slot computation in Aztec smart contracts, including private state note hash creation and siloing mechanisms.

Writing Efficient Contracts

Best practices and techniques for writing gas-efficient contracts on Aztec, optimizing for both proving and execution costs.