# Hardhat graph plugin

**URL:** <https://forum.thegraph.com/t/hardhat-graph-plugin/2863>\
**Category:** Community & Grants\
**Tags:** subgraph-devs\
**Created:** [December 22, 2021, 1:17pm UTC](https://forum.thegraph.com/t/hardhat-graph-plugin/2863 "2021-12-22T13:17:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![adamfuller](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@adamfuller](https://forum.thegraph.com/u/adamfuller)\
**Post date:** [February 17, 2022, 3:29pm UTC](https://forum.thegraph.com/t/hardhat-graph-plugin/2863/4 "2022-02-17T15:29:08Z")

</div>

Hi! I wanted to share a related proposal, adding functionality to `graph-cli`:

- Add an easy `networks.json` standard for **updating** the contract addresses & network for a subgraph as part of `graph build`
  - e.g. during local development, or when deploying the same subgraph to multiple networks

- Let developers `graph add` dataSources to a subgraph programmatically (based on deployed contracts), in the same way they can currently use `graph init`

More detailed write up:

> **[graph-cli: update & add - HackMD](https://hackmd.io/Fc0gQXHDT8-OtqVf76e23w?view)**

These interfaces will be useful for development of a Hardhat graph plugin. Feedback welcome!

---

_[View the full topic](https://forum.thegraph.com/t/hardhat-graph-plugin/2863)._
