@semaphore-protocol/cli-template-monorepo-ethers

4.0.0-beta.9 • Public • Published

Semaphore Hardhat + Next.js + SemaphoreEthers template

This project is a complete application that demonstrates a basic Semaphore use case. It comes with a sample contract, a test for that contract and a sample task that deploys that contract. It also contains a frontend to play around with the contract.

Install

Install dependencies

yarn

📜 Usage

Local server

You can start your app locally with:

yarn dev

Deploy the contract

  1. Go to the apps/contracts directory and deploy your contract:
yarn deploy --semaphore <semaphore-address> --group <group-id> --network arbitrum-sepolia
  1. Update your .env file with your new contract address, the group id and the semaphore contract address.

  2. Copy your contract artifacts from apps/contracts/artifacts/contracts/ folder to apps/web-app/contract-artifacts folder manually.

Note
Check the Semaphore contract addresses here.

Warning
The group id is a number!

Code quality and formatting

Run ESLint and solhint to analyze the code and catch bugs:

yarn lint

Run Prettier to check formatting rules:

yarn prettier

Or to automatically format the code:

yarn prettier:write

Readme

Keywords

none

Package Sidebar

Install

npm i @semaphore-protocol/cli-template-monorepo-ethers

Weekly Downloads

24

Version

4.0.0-beta.9

License

Unlicense

Unpacked Size

1.25 MB

Total Files

7

Last publish

Collaborators

  • vplasencia
  • cedoor