Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph init: Bump up api and spec versions #1965

Merged
merged 3 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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