Skip to content

Commit c04a5ef

Browse files
lutterclaude
andcommitted
tests: Update subgraph datasource imports to use name-based paths
Update integration test mappings to use the new name-based import paths generated by gnd codegen: - subgraph-data-sources: use `subgraph-Contract` - multiple-subgraph-datasources: use `subgraph-SourceA` and `subgraph-SourceB` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e829a85 commit c04a5ef

File tree

2 files changed

+3
-3
lines changed
  • tests/integration-tests

2 files changed

+3
-3
lines changed

tests/integration-tests/multiple-subgraph-datasources/src/mapping.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dataSource, EntityTrigger, log } from '@graphprotocol/graph-ts'
22
import { AggregatedData } from '../generated/schema'
3-
import { SourceAData } from '../generated/subgraph-QmZBecjQfrQG5BfpapLywSAzVb5FSFty4j9hVSAhkxbBas'
4-
import { SourceBData } from '../generated/subgraph-QmaqX7yefmvgVTbc2ZukVYasSgXtE7Xg5b79Z7afVx4y6u'
3+
import { SourceAData } from '../generated/subgraph-SourceA'
4+
import { SourceBData } from '../generated/subgraph-SourceB'
55

66

77
// We know this handler will run first since its defined first in the manifest

tests/integration-tests/subgraph-data-sources/src/mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { log, store } from '@graphprotocol/graph-ts';
2-
import { Block, Block2, Block3 } from '../generated/subgraph-QmRWTEejPDDwALaquFGm6X2GBbbh5osYDXwCRRkoZ6KQhb';
2+
import { Block, Block2, Block3 } from '../generated/subgraph-Contract';
33
import { MirrorBlock, MirrorBlockBytes } from '../generated/schema';
44

55
export function handleEntity(block: Block): void {

0 commit comments

Comments
 (0)