Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 406 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 406 Bytes

Subgraph Generator

Simple tool to generate a Subgraph to subscribe all events

Usage

$ cat subgen.json
{
  "startBlock": "789000",
  "outDir": "./generated",
  "contracts": [
    {
      name: "Foo",
      address: "0xfE54AEF5540C40C8C9e0ad1bAFDbd64e334D101B",
      path: "abi/Foo.json",
    }
  ]
}

$subgen --config subgen.json

The above snippet will generate repo to specified outDir