This is DID Registry contract based on Semaphore. It comes with DID Registry contract, a test for that contract and a task that deploys that contract.
yarn compile
yarn test
You can also generate a test coverage report:
yarn test:coverage
Or a test gas report:
yarn test:report-gas
- Copy the
.env.example
file as.env
.
cp .env.example .env
- Add your environment variables.
Note
For networks except Nova, you should at least set a valid Ethereum URL (e.g. Infura) and a private key with some ethers.
- And deploy your contract.
yarn deploy-nova
Note
Check the Semaphore contract addresses here for the supported EVM networks. If you want to deploy the Semaphore contract into your own preferred EVM network, you can do it by$ yarn deploy --network <network-name>
.
Warning
The group id is a number!
Or deploy contract with a new Semaphore contract.
This would cost extra gas fee because of 5 new deployments
yarn deploy-nova
# set the deployed block number for event query from
yarn post-deploy-nova