Skip to content

Commit

Permalink
fix subgraph version, description and adding subgraph.yaml in the gra…
Browse files Browse the repository at this point in the history
…ph_sink substreams.yaml
  • Loading branch information
Eduard-Voiculescu committed Oct 13, 2023
1 parent 398bb56 commit 266f0fd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ sink:
type: sf.substreams.sink.subgraph.v1.Service
config:
schema: "./schema.graphql"
subgraph_yaml: "./subgraph.yaml"
postgres_direct_protocol_access: true
pgweb_frontend:
enabled: true
4 changes: 2 additions & 2 deletions codegen/templates/ethereum/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
specVersion: v0.1.0
description: # add description
specVersion: 0.0.6
description: substreams-init-test substreams based subgraph
repository: # fill in with git remote url
schema:
file: ./schema.graphql
Expand Down
4 changes: 2 additions & 2 deletions codegen/templates/ethereum/subgraph.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
specVersion: v0.1.0
description: # add description
specVersion: 0.0.6
description: {{ .name }} substreams based subgraph
repository: # fill in with git remote url
schema:
file: ./schema.graphql
Expand Down
2 changes: 2 additions & 0 deletions codegen/templates/ethereum/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ sink:
type: {{ if eq .sinkChoice 1 }}sf.substreams.sink.sql.v1.Service{{ else if eq .sinkChoice 2}}sf.substreams.sink.subgraph.v1.Service{{ end }}
config:
schema: {{ if eq .sinkChoice 1}}"./schema.sql"{{ else if eq .sinkChoice 2}}"./schema.graphql"{{ end }}
{{ if eq .sinkChoice 2}}subgraph_yaml: "./subgraph.yaml"
{{ end -}}
{{ if eq .sinkChoice 1}}wire_protocol_access{{ else if eq .sinkChoice 2}}postgres_direct_protocol_access{{ end }}: true
{{- if eq .sinkChoice 1}}
postgraphile_frontend:
Expand Down

0 comments on commit 266f0fd

Please sign in to comment.