-
Make sure you have
{network}.jsonfile inconfigfolder, where network is a CLI name supported for subgraph network https://thegraph.com/docs/en/developing/supported-networks/. -
Add network, maci contract address and maci contract deployed block.
{
"network": "optimism-sepolia",
"maciContractAddress": "0xD18Ca45b6cC1f409380731C40551BD66932046c3",
"maciContractStartBlock": 11052407
}- Run
pnpm run build. You can use env variablesNETWORKandVERSIONto switch config files. - Run
graph auth --studio {key}. You can find the key in subgraph studio dashboard. - Run
pnpm run deployto deploy subgraph