Skip to main content

22 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 Cross-Chain

Send messages and data between L1 and L2 contracts using portal contracts and cross-chain messaging.

Compiling Contracts

Compile your Aztec smart contracts into deployable artifacts using aztec-nargo.

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.

Emitting Events

Learn how to emit events from your Aztec smart contracts for offchain applications to consume.

Inbox

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

Outbox

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

Proving Historic State

Prove historical state and note inclusion in your Aztec smart contracts using the Archive tree.

Registry

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

Sending Transactions

Send transactions to Aztec contracts using Aztec.js with various options and error handling

Testing Contracts

Write and run tests for your Aztec smart contracts using Noir's TestEnvironment.

Writing Efficient Contracts

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