Skip to content

Commit 7343f50

Browse files
improve substreams support and cleanup init prompts (#1335)
* upgrade to use gluegun latest and refactor prompts * chore(dependencies): updated changesets for modified dependencies * remove start block, index events as option for substreams * improve directory tree * fix: install cli part of substreams flow * fix: respect --abi init flag * fix: validate loading a localfile * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7276a77 commit 7343f50

File tree

9 files changed

+442
-357
lines changed

9 files changed

+442
-357
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@graphprotocol/graph-cli": patch
3+
---
4+
dependencies updates:
5+
- Updated dependency [`@oclif/[email protected]` ↗︎](https://www.npmjs.com/package/@oclif/core/v/2.8.4) (from `2.8.2`, in `dependencies`)
6+
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/gluegun/v/5.1.2) (from `https://github.com/edgeandnode/gluegun#v4.3.1-pin-colors-dep`, in `dependencies`)

.changeset/neat-apples-know.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
For substreams generate the directory tree as follows
6+
```
7+
.
8+
├── package.json
9+
├── schema.graphql
10+
└── subgraph.yaml
11+
```
12+
13+
In the `package.json` we only depend on the CLI since that is what developer will use to deploy the subgraph. The `schema.graphql` is the schema of the subgraph and the `subgraph.yaml` is the manifest file for the subgraph.

.changeset/nine-moles-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
respect --abi flag instead of loading from etherscan

.changeset/quick-avocados-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
remove index events as entities for substreams

.changeset/tame-ducks-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
remove start block selection for substreams

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"dockerode": "2.5.8",
4141
"fs-extra": "9.1.0",
4242
"glob": "9.3.5",
43-
"gluegun": "https://github.com/edgeandnode/gluegun#v4.3.1-pin-colors-dep",
43+
"gluegun": "5.1.2",
4444
"graphql": "15.5.0",
4545
"immutable": "4.2.1",
4646
"ipfs-http-client": "55.0.0",

0 commit comments

Comments
 (0)