Deploying AZTEC to Ganache
For most dApp builders, deploying to Ganache is essential to test smart contract interactions with AZTEC.
To get started, check out the starter kit on the AZTEC github here. This kit contains the required migrations to deploy AZTEC to a local blockchain as well as example flows. This flow is the same for deploying AZTEC to a private fork of Ethereum.
Clone the repository
git clone git@github.com:AztecProtocol/aztec-ganache-starter-kit.git
Install the dependencies
cd aztec-ganache-starter-kit && yarn install
Rename the
.env
filemv RENAME_ME.env .env
Start up Ganache with
yarn start
(This will create 5 test Ethereum accounts from the credentials in.env
)Deploy AZTEC!
yarn migrate
If you would like to have a look under the hood at the required migrations and what they do, read the full article here.
Last updated