Skip to content

Commit 6208908

Browse files
committed
Remove unused 'fork-test' network configuration and update Docker Compose to use dynamic NETWORK_NAME for Ethereum service
1 parent 5965823 commit 6208908

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

networks.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
11
{
2-
"fork-test": {
3-
"ERC1538": {
4-
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
5-
"startBlock": 4543300
6-
},
7-
"Core": {
8-
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
9-
"startBlock": 4543300
10-
},
11-
"AppRegistry": {
12-
"address": "0xB1C52075b276f87b1834919167312221d50c9D16",
13-
"startBlock": 4543300
14-
},
15-
"DatasetRegistry": {
16-
"address": "0x799DAa22654128d0C64d5b79eac9283008158730",
17-
"startBlock": 4543300
18-
},
19-
"WorkerpoolRegistry": {
20-
"address": "0xC76A18c78B7e530A165c5683CB1aB134E21938B4",
21-
"startBlock": 4543300
22-
}
23-
},
242
"bellecour": {
253
"ERC1538": {
264
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"deploy": "graph deploy ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --version-label ${VERSION_LABEL:-bellecour/poco-v5}",
1616
"all": "npm run clean && npm run codegen && npm run build && npm run create && npm run deploy",
1717
"stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes",
18-
"start-test-stack": "npm run stop-test-stack && cd test-stack && docker compose build && node prepare-test-env.js && docker compose up -d",
18+
"start-test-stack": "npm run stop-test-stack && cd test-stack && docker compose build && node prepare-test-env.js && NETWORK_NAME=${NETWORK_NAME:-bellecour} docker compose up -d",
1919
"itest": "DEBUG=testcontainers:* mocha"
2020
},
2121
"lint-staged": {

test-stack/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ services:
6767
postgres_pass: password
6868
postgres_db: graphnode-db
6969
ipfs: ipfs:5001
70-
ethereum: blockchain:http://blockchain-fork:8545
70+
ethereum: ${NETWORK_NAME}:http://blockchain-fork:8545
7171
GRAPH_ETHEREUM_GENESIS_BLOCK_NUMBER: $FORK_BLOCK
7272
depends_on:
7373
blockchain-fork:
@@ -90,6 +90,7 @@ services:
9090
environment:
9191
GRAPHNODE_URL: http://graphnode:8020
9292
IPFS_URL: http://ipfs:5001
93+
NETWORK_NAME: ${NETWORK_NAME}
9394
depends_on:
9495
blockchain-fork:
9596
condition: service_healthy

0 commit comments

Comments
 (0)