git clone https://github.com/onetxpunch/zksync-era-hardhat-template
cd zksync-era-hardhat-template
yarn && echo 'DEPLOY_KEY=' > .env
yarn compile
Solidity contracts.
Edit hardhat.config.ts
, deploy/deploy.ts
and use yarn deploy
for deploying, currently configured for the testnet.
Uses forge test
for testing. See https://getfoundry.sh to install.
forge test -vv
https://era.zksync.io/docs/dev/building-on-zksync/hello-world.html#initializing-the-project-deploying-a-smart-contract - The template walkthrough
https://era.zksync.io/docs/dev/ - Important caveats about old versions