Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@maci-protocol/subgraph

Package Overview
Dependencies
Maintainers
3
Versions
351
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maci-protocol/subgraph

A subgraph to index data from MACI protocol to serve as data layer for frontend integration

latest
npmnpm
Version
0.0.0-ci.26f28d6
Version published
Maintainers
3
Created
Source

maci-subgraph

  • 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/.

  • 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 variables NETWORK and VERSION to switch config files.
  • Run graph auth --studio {key}. You can find the key in subgraph studio dashboard.
  • Run pnpm run deploy to deploy subgraph

FAQs

Package last updated on 01 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts