Skip to content

Commit 61ca642

Browse files
committed
feat: add support for arbitrum-one network and update build scripts
1 parent 8cb98e7 commit 61ca642

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.github/workflows/deploy-subgraph-chainX.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy Subgraph - on TheGraph Network
22

33
on:
4+
push:
45
workflow_dispatch: # Manual trigger
56
inputs:
67
network:

networks.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,28 @@
4343
"startBlock": 145249746
4444
}
4545
},
46+
"arbitrum-one": {
47+
"ERC1538": {
48+
"address": "0x0000000000000000000000000000000000000000",
49+
"startBlock": 0
50+
},
51+
"Core": {
52+
"address": "0x0000000000000000000000000000000000000000",
53+
"startBlock": 0
54+
},
55+
"AppRegistry": {
56+
"address": "0x0000000000000000000000000000000000000000",
57+
"startBlock": 0
58+
},
59+
"DatasetRegistry": {
60+
"address": "0x0000000000000000000000000000000000000000",
61+
"startBlock": 0
62+
},
63+
"WorkerpoolRegistry": {
64+
"address": "0x0000000000000000000000000000000000000000",
65+
"startBlock": 0
66+
}
67+
},
4668
"bellecour": {
4769
"ERC1538": {
4870
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
"scripts": {
88
"prepare": "husky",
99
"generate:typechain": "typechain --target ethers-v6 --out-dir generated/typechain './node_modules/@iexec/poco/build/contracts/*.json' --ts-nocheck",
10-
"build": "dotenv -e .env -- rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}",
10+
"build": "dotenv -e .env -- sh -c 'rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}'",
1111
"test": "npm run test:unit && npm run test:e2e",
1212
"test:unit": "graph test unit",
1313
"test:e2e": "mocha tests/e2e/**/*.ts",
1414
"coverage": "graph test -- -c",
15-
"create": "dotenv -e .env -- graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}",
16-
"deploy": "dotenv -e .env -- 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}",
15+
"create": "dotenv -e .env -- sh -c 'graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}'",
16+
"deploy": "dotenv -e .env -- sh -c '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}'",
17+
"deploy-chainX": "dotenv -e .env -- sh -c 'graph deploy ${SUBGRAPH_SLUG} subgraph.template.yaml --deploy-key ${SUBGRAPH_DEPLOY_KEY} --network ${SUBGRAPH_NETWORK_NAME} --version-label ${VERSION_LABEL}'",
1718
"all": "npm run build && npm run create && npm run deploy",
1819
"stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes",
1920
"start-test-stack": "npm run stop-test-stack && cd test-stack && export NETWORK_NAME=${NETWORK_NAME:-bellecour} && tsx prepare-test-env.ts && docker compose build && docker compose up -d",

0 commit comments

Comments
 (0)