This project was scaffolded with zksync-cli.
/contracts
: Contains solidity smart contracts./deploy
: Scripts for contract deployment and interaction./test
: Test files.hardhat.config.ts
: Configuration settings.
npm run compile
: Compiles contracts.npm run deploy
: Deploys using script/deploy/deploy.ts
.npm run interact
: Interacts with the deployed contract using/deploy/interact.ts
.npm run test
: Tests the contracts.
Note: Both npm run deploy
and npm run interact
are set in the package.json
. You can also run your files directly, for example: npx hardhat deploy-zksync --script deploy.ts
npx hardhat compile
npx hardhat deploy-zksync --script deploy.ts
npx hardhat deploy-zksync --script deploy-distributor.ts --network zkSyncMainnet
zkSync Mainnet:
- HappyRedPacket: 0x0Aa38Cffc6A72e6349c8bfF22497AeC4A02fc75c
- Groth16Verifier: 0x590d335091F55b0aC08E49868ec30f2e164eab32
- MerkleDistributorFactory: 0x7a532BD262291EeA040A3D61d7BeB3220ff06687