semaphore-protocol / semaphore

A zero-knowledge protocol for anonymous interactions.
https://semaphore.pse.dev
MIT License
887 stars 194 forks source link

Add deployed contracts to utils package #719

Closed cedoor closed 5 months ago

cedoor commented 5 months ago

Description

This PR centralizes the management of the networks and the deployed contracts supported by Semaphore, making it easier to deploy and support new networks. Here the steps:

  1. Go to packages/utils and add a new network to the src/networks.ts file
  2. Build the package with yarn build
  3. Go to packages/contracts and deploy the Semaphore contracts with yarn deploy --network <new-network>
  4. Run yarn prettier:write and commit your changes

Additionally, it removes OpenZeppelin Defender, as we cannot use it to deploy contracts due to the free subscription limits. It will be necessary to open another PR to integrate a mechanism to deploy contracts deterministically without Open Zeppelin.

Related Issue(s)

Closes #715

Checklist

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ā†—ļøŽ

Name Status Preview Comments Updated (UTC)
semaphore-docs āœ… Ready (Inspect) Visit Preview šŸ’¬ Add feedback Mar 25, 2024 11:46am
semaphore-website āœ… Ready (Inspect) Visit Preview šŸ’¬ Add feedback Mar 25, 2024 11:46am