This subgraph is prepared with the help of code from openzeppelin-subgraphs
Base Mainnet - erc20-subgraph-base
Hemi Mainnet - erc20-subgraph-hemi
Optimism mainnet - erc20-subgraph-optimism
Run yarn install
Run yarn codegen
Follow deployment guide here to understand the process of deployment.
Graph auth
- Get the graph deploy key, follow steps here.
- Run
yarn graph auth <Deploy Key>
Deploy Subgraph
- Run
yarn deploy
This command is going to ask subgraph name. As a rule of thumb you should follow "erc20-subgraph-${chainName}" pattern for subgraph name.