/aztec-sandbox-l1l2-init

A repo to help you get started with L1<>L2 interactions on aztec sandbox using hardhat, commonJS and aztec dependencies

Primary LanguageSolidity

Sandbox Initialisation for L1<>L2

Packages:

  • l1-contracts - a JS Hardhat project
  • aztec-contracts - a nargo project
  • src - mjs files that we can run against the sandbox

Prerequisites

  • node v18+
  • docker
  • Installed aztec sandbox
  • Nargo

Installation

  • Run yarn install in packages/src
  • Run yarn install in packages/l1-contracts

Compile L1 contracts

cd packages/l1-contracts
npx hardhat compile

Compile aztec contracts

cd packages/aztec-contracts
aztec-cli compile PACKAGE_NAME

Running

  • Run the sandbox:
cd ~/.aztec && docker-compose up

In a separate terminal

cd YOUR_REPO/packages/src
node index.mjs