Skip to content
View TouchFan's full-sized avatar

Block or report TouchFan

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
TouchFan/README.md

zkSync Hardhat project

This project was scaffolded with zksync-cli.

Project structure

  • /contracts: smart contracts.
  • /deploy: deployment and contract interaction scripts.
  • /test: test files
  • hardhat.config.ts: configuration file.

Commands

  • yarn hardhat compile will compile the contracts.
  • yarn run deploy will execute the deployment script /deploy/deploy-greeter.ts. Requires environment variable setup.
  • yarn run greet will execute the script /deploy/use-greeter.ts which interacts with the Greeter contract deployed.
  • yarn test: run tests. Check test requirements below.

Both yarn run deploy and yarn run greet are configured in the package.json file and run yarn hardhat deploy-zksync.

Environment variables

In order to prevent users to leak private keys, this project includes the dotenv package which is used to load environment variables. It's used to load the wallet private key, required to run the deploy script.

To use it, rename .env.example to .env and enter your private key.

WALLET_PRIVATE_KEY=123cde574ccff....

Local testing

In order to run test, you need to start the zkSync local environment. Please check this section of the docs which contains all the details.

If you do not start the zkSync local environment, the tests will fail with error Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

Official Links

Popular repositories Loading

  1. TouchFan TouchFan Public

    Solidity 1

  2. dimension-adapters dimension-adapters Public

    Forked from DefiLlama/dimension-adapters

    TypeScript

  3. DefiLlama-Adapters DefiLlama-Adapters Public

    Forked from DefiLlama/DefiLlama-Adapters

    JavaScript