Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

0xTARC/dyad-subgraph

Repository files navigation

Dyad Subgraph

Setup

To generate types based on ABI for use in mappings, build subgraph schema, and deploy to hosted service, run:

npm install -g @graphprotocol/graph-cli
npm install -g yarn
yarn install

# generate bindings based on ABI and schema
graph codegen
# generate files for clients
graph build

If you make contract changes, like to emit a new event, cd into the contracts directory, rebuild the ABIs with forge build, and copy them into the abis/ directory in this repository.

Deploy

# deploy to the graph hosted service
graph auth --product hosted-service <your_key> # authenticated through cli
graph deploy --product hosted-service 0xtarc/dyad-subgraph-goerli

Releases

No releases published

Packages

No packages published