Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 726 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 726 Bytes

maci-subgraph

  1. Make sure you have {network}.json file in config folder, where network is a CLI name supported for subgraph network https://thegraph.com/docs/en/developing/supported-networks/.

  2. Add network, maci contract address and maci contract deployed block.

{
  "network": "optimism-sepolia",
  "maciContractAddress": "0xD18Ca45b6cC1f409380731C40551BD66932046c3",
  "maciContractStartBlock": 11052407
}
  1. Run pnpm run build. You can use env variables NETWORK and VERSION to switch config files.
  2. Run graph auth --studio {key}. You can find the key in subgraph studio dashboard.
  3. Run pnpm run deploy to deploy subgraph