Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.36 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.36 KB

zkSync Hardhat project

Quick start

To have compatibility with default .env.example in FE, make sure you're executing this in this exact order on fresh (cleaned with clear.sh) local-setup.

yarn
yarn hardhat compile
cp .env.example .env
export NODE_ENV=test ALICE_PRIVATE_KEY=0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110

# should say that deployed to address 0x111C3E89Ce80e62EE88318C2804920D4c96f92bb
yarn hardhat deploy-zksync --script deploy-paymaster.ts

# should say that deployed to address 0x4B5DF730c2e6b28E17013A1485E5d9BC41Efe021
yarn hardhat deploy-zksync --script deploy-factory.ts

# should say that deployed to address 0x26b368C3Ed16313eBd6660b72d8e4439a697Cb0B
yarn hardhat deploy-zksync --script deploy-test-token.ts

Commands

  • yarn hardhat compile will compile the contracts.
  • yarn run lint: lint the code using solhint
  • yarn test: run tests

Testnet deployment

Deployed from commit 7f8f5bace3b01663ca16487b931b3e0674e3c3a6