Files
self/contracts/ignition
Evi Nova 8c5b90e89f Contracts cleanup (#1311)
* refactor: use singular ETHERSCAN_API_KEY in .env

Etherscan has unified all keys of associated explorers like Celoscan into a singular key rather than different keys for different networks.

* refactor: use one .env instead of separate .env.test + .env files

* refactor: deploy contracts with runs of 1000 instead of 200

Decreases gas cost of function calls on deployed contracts

* clean: remove duplicate/redundant deploy modules + scripts

* clean: cleanup empty script file

* refactor: cleanup default network of scripts

Read network from .env instead of using defaults of alfajores (outdated) or staging

* clean: remove references to Alfajores, replace with Sepolia

* chore: add default .env variables

* chore: update build-all script to include aardhaar circuit

* chore: update broken Powers of Tau download link (use iden3)

* chore: remove duplicate script

* fix: use stable version 18 for disclose circuits

* test: update test import paths to allow for .ts version of generateProof

* test: fix broken tests

* test: uncomment critical code for registration, change error names to updated names, fix broken import paths, update disclose tests for new scope generation/handling

* fix: broken import path

* test: fix Airdrop tests to use V2 logic

* docs: update docs for necessary prerequisite programs

* chore: yarn prettier formatting

* fix: CI errors occuring when deploying contracts as can't read .env

Using a dummy key for CI builds

* chore: yarn prettier

* refactor: change runs to 100000
2025-10-27 11:50:19 +01:00
..
2025-10-27 11:50:19 +01:00

how to deploy and update the protocol

Main contracts:

  • Hub
  • Registries
    • Passports
    • ID cards

Hub and Registries are following an upgradeable proxy pattern. Use only the Proxy address for everything.

Secondary contracts:

  • vc_and_disclose verifiers
  • vc_and_disclose_id verifiers
  • register verifiers'
  • register id verifiers
  • dsc verifiers

How to update the protocol:

Deploy the Hub V2 and the Identity registry

yarn deploy:hub:v2
yarn deploy:registry:idcard

Set the registries address in the hub

yarn set:hub:v2

Set the verifiers in the hub

yarn set:verifiers:v2

Update the registries

yarn set:registry:hub:v2
```