Skip to content

Commit

Permalink
graph init: Bump up api and spec versions (#1965)
Browse files Browse the repository at this point in the history
* bump apiVersion and specVersion

* bump apiVersion in composite subgraph scaffolding

* changeset
  • Loading branch information
YaroShkvorets authored Feb 19, 2025
1 parent 50aed5d commit e7b0e72
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-llamas-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

`graph init`: get generated apiVersion and specVersion up to date
2 changes: 1 addition & 1 deletion packages/cli/src/protocols/ethereum/scaffold/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const source = ({

export const mapping = ({ abi, contractName }: { abi: ABI; contractName: string }) => `
kind: ethereum/events
apiVersion: 0.0.7
apiVersion: 0.0.9
language: wasm/assemblyscript
entities:
${abiEvents(abi)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/protocols/subgraph/scaffold/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const mapping = ({
contractName: string;
}) => `
kind: ethereum/events
apiVersion: 0.0.7
apiVersion: 0.0.9
language: wasm/assemblyscript
entities:
- ExampleEntity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Cosmos subgraph scaffolding > Manifest 1`] = `
"specVersion: 1.0.0
"specVersion: 1.2.0
indexerHints:
prune: auto
schema:
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/scaffold/__snapshots__/ethereum.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Ethereum subgraph scaffolding > Manifest 1`] = `
"specVersion: 1.0.0
"specVersion: 1.2.0
indexerHints:
prune: auto
schema:
Expand All @@ -16,7 +16,7 @@ dataSources:
startBlock: 12345
mapping:
kind: ethereum/events
apiVersion: 0.0.7
apiVersion: 0.0.9
language: wasm/assemblyscript
entities:
- ExampleEvent
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/scaffold/__snapshots__/near.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`NEAR subgraph scaffolding > Manifest 1`] = `
"specVersion: 1.0.0
"specVersion: 1.2.0
indexerHints:
prune: auto
schema:
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/scaffold/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const GRAPH_CLI_VERSION = process.env.GRAPH_CLI_TESTS
undefined
: // For scaffolding real subgraphs
version;
const GRAPH_TS_VERSION = '0.36.0';
const GRAPH_TS_VERSION = '0.37.0';
const GRAPH_MATCHSTICK_VERSION = '0.6.0';

export interface ScaffoldOptions {
Expand Down Expand Up @@ -141,7 +141,7 @@ export default class Scaffold {

return await prettier.format(
`
specVersion: 1.0.0
specVersion: 1.2.0
indexerHints:
prune: auto
schema:
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tests/cli/add/expected/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dataSources:
startBlock: 6175244
mapping:
kind: ethereum/events
apiVersion: 0.0.7
apiVersion: 0.0.9
language: wasm/assemblyscript
entities:
- GravatarNewGravatar
Expand Down

0 comments on commit e7b0e72

Please sign in to comment.