Skip to content

Commit f47165b

Browse files
committed
renames
1 parent 6d80ecb commit f47165b

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

tests/integration-tests/grafted/schema.graphql renamed to tests/integration-tests/base/schema.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type GraftedData @entity(immutable: true) {
1+
type BaseData @entity(immutable: true) {
22
id: ID!
33
data: String!
44
blockNumber: BigInt!
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ethereum } from '@graphprotocol/graph-ts'
2-
import { GraftedData } from '../generated/schema'
2+
import { BaseData } from '../generated/schema'
33

44
export function handleBlock(block: ethereum.Block): void {
5-
let entity = new GraftedData(block.number.toString())
6-
entity.data = 'from grafted'
5+
let entity = new BaseData(block.number.toString())
6+
entity.data = 'from base'
77
entity.blockNumber = block.number
88
entity.save()
99
}

tests/integration-tests/grafted/subgraph.yaml renamed to tests/integration-tests/base/subgraph.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
specVersion: 0.0.5
2-
description: Grafted Subgraph
2+
description: Base Subgraph
33
repository: https://github.com/graphprotocol/graph-node
44
schema:
55
file: ./schema.graphql
@@ -16,7 +16,7 @@ dataSources:
1616
apiVersion: 0.0.6
1717
language: wasm/assemblyscript
1818
entities:
19-
- GraftedData
19+
- BaseData
2020
abis:
2121
- name: SimpleContract
2222
file: ./abis/Contract.abi

tests/integration-tests/grafting/subgraph.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dataSources:
1616
apiVersion: 0.0.6
1717
language: wasm/assemblyscript
1818
entities:
19-
- GraftedData
19+
- GraftingData
2020
abis:
2121
- name: SimpleContract
2222
file: ./abis/Contract.abi
@@ -26,5 +26,5 @@ dataSources:
2626
features:
2727
- grafting
2828
graft:
29-
base: QmTiueTVFgeUedMsx8trJDYYwCfFxrHmzkgRnKbvBkujq9
29+
base: QmQpiC9bJGFssQfeZippfQ7rcTv7QA67X7jUejc8nV125F
3030
block: 2

tests/tests/integration_tests.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ impl TestCase {
112112
}
113113
}
114114

115-
fn new_with_grafting<T>(name: &str, test: fn(TestContext) -> T, grafted_subgraph: &str) -> Self
115+
fn new_with_grafting<T>(name: &str, test: fn(TestContext) -> T, base_subgraph: &str) -> Self
116116
where
117117
T: Future<Output = Result<(), anyhow::Error>> + Send + 'static,
118118
{
119119
let mut test_case = Self::new(name, test);
120-
test_case.source_subgraph = Some(grafted_subgraph.to_string());
120+
test_case.source_subgraph = Some(base_subgraph.to_string());
121121
test_case
122122
}
123123

@@ -836,9 +836,9 @@ async fn test_subgraph_grafting(ctx: TestContext) -> anyhow::Result<()> {
836836
];
837837

838838
let pois: Vec<&str> = vec![
839-
"0x4f3e32c290fd6aa3613a0bbd0cc4367ae082036086cf75f292f8eaf798648a27",
840-
"0x6053124bc1042dfc9c153b49c626f11860a1bc34d0fde384526a2dbed909d242",
841-
"0xca535e3a5be9b93012f6173b33cf9c053cac8028dda9c398b619b67f53a9e1a4",
839+
"0xea4b60e94bce955975be52560fe816f889ae079faaef82c1d35599e8235d203a",
840+
"0xe4d0e26eca38f03843c816addc428380f28bc8b94335cfcea401f593710b9881",
841+
"0x68308753b13bc7bee7c41ab98321ce52404502b561b42c116e03e2b0b87a0199",
842842
];
843843

844844
for i in 1..4 {
@@ -1040,7 +1040,7 @@ async fn integration_tests() -> anyhow::Result<()> {
10401040
TestCase::new("timestamp", test_timestamp),
10411041
TestCase::new("ethereum-api-tests", test_eth_api),
10421042
TestCase::new("topic-filter", test_topic_filters),
1043-
TestCase::new_with_grafting("grafting", test_subgraph_grafting, "grafted"),
1043+
TestCase::new_with_grafting("grafting", test_subgraph_grafting, "base"),
10441044
TestCase::new_with_source_subgraph(
10451045
"subgraph-data-sources",
10461046
subgraph_data_sources,

0 commit comments

Comments
 (0)