create-aztec-privacy-template
v0.2.0
Published
CLI to scaffold protocol-agnostic Aztec privacy starter projects
Downloads
85
Readme
create-aztec-privacy-template
CLI generator for scaffolding Aztec privacy starter projects.
- npm: https://www.npmjs.com/package/create-aztec-privacy-template
Usage
npx create-aztec-privacy-template@latest my-aztec-appNon-interactive:
npx create-aztec-privacy-template@latest my-aztec-app --yesCLI
create-aztec-privacy-template <project-name-or-path> \
[--pm <bun|npm|pnpm|yarn>] \
[--example <none|aave|lido|uniswap|all>] \
[--example-source <github-url|owner/repo[/path][#ref]>] \
[--yes] [--skip-install] [--disable-git]Generated Contracts
The scaffold includes a minimal, protocol-agnostic contract stack:
contracts/l1/BasePortal.solImplements deterministic message hashing and message lifecycle tracking between Aztec and L1.contracts/l1/EscapeHatch.solImplements timeout-gated escape requests so users can reclaim funds after failed execution paths.contracts/l1/GenericPortal.solMain L1 bridge contract for request/execute/finalize flow with relayer gating and protocol executor integration hook.contracts/aztec/src/main.nr(GenericPrivacyAdapter) Noir contract skeleton for private request + finalize flow and pending intent tracking.
The scaffold also includes Solidity tests for all three L1 contracts under contracts/l1/test.
Examples
--example can add adaptation guides under examples/:
aavelidouniswapall
Local Development
bun install
bun run build
node dist/cli.js my-local-app --yes