-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graph init
: add subgraph composition (#1920)
* Fix subgraphs without abi field failing to build * Fix graph init for composed subgraphs * Add changeset * Fix validation not working * Support declared calls in manifest * Lint fix * Address review comments * Dont allow adding new contracts when subgraph is a composed subgraph * Allow init of subgraph datasource subgraphs without the interactive mode * Reduce code duplication between subgraph datasource and normal data source * prevent using --from-contract and --from-source-subgraph flags together * cli: validate protocol and source subgraph relationship * chore(dependencies): updated changesets for modified dependencies * change flag name for source subgraph * Refactor manifest validation util functions * get start block from source manifest * set fromSubgraph to be default value for graph init in interactive mode * fix protocol flag validation * Add init test for subgraphs * Fix error message * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: YaroShkvorets <shkvorets@gmail.com>
- Loading branch information
1 parent
7f22631
commit b6d7f1c
Showing
10 changed files
with
330 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphprotocol/graph-cli': minor | ||
--- | ||
|
||
Add support for subgraph datasource in `graph init` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ type ContractABI { | |
type EntityHandler { | ||
handler: String! | ||
entity: String! | ||
calls: JSON | ||
} | ||
|
||
type Graft { | ||
|
Oops, something went wrong.