Download the zkSNARK contracts for 'x32' circuits and copy them into /contracts/contracts/snarkVerifiers
.
BatchUpdateStateTreeVerifier32.sol
QuadVoteTallyVerifier32.sol
E.g.
RECIPIENT_REGISTRY_TYPE=simple
USER_REGISTRY_TYPE=brightid
BRIGHTID_CONTEXT=clr.fund.test
BRIGHTID_VERIFIER_ADDR=0xb1d71F62bEe34E9Fc349234C201090c33BCdF6DB
JSONRPC_HTTP_URL=https://NETWORK.alchemyapi.io/v2/ADD_API_KEY
WALLET_PRIVATE_KEY=
NATIVE_TOKEN_ADDRESS=
- Adjust the
/contracts/scripts/deployRound.ts
as you wish. By default, it will deploy a new round with two random recipients. - Run
npx hardhat run --network {network} scripts/deployRound.ts
or use one of theyarn deploy:{network}
available in/contracts/package.json
.
Currently, we are using the Hosted Service. First, check out the official instructions to authenicate using the Graph CLI https://thegraph.com/docs/legacyexplorer/deploy-subgraph-hosted and create a new subgraph.
Inside /subgraph
:
- Prepare the
subgraph.yaml
with the correct network data- Update or create a new JSON file which you want to use, under
/config
- Run
yarn prepare:{network}
- Update or create a new JSON file which you want to use, under
- Deploy it by running
graph deploy --product hosted-service USERNAME/SUBGRAPH