Skip to content

Files

subgraph

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 6, 2024
Dec 16, 2024
Jan 7, 2025
Jan 7, 2025
Dec 16, 2024
Aug 6, 2024
Aug 6, 2024
Nov 20, 2024
Aug 6, 2024
Aug 6, 2024
Aug 6, 2024
Jan 28, 2025
Aug 6, 2024
Aug 6, 2024

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