diff --git a/package.json b/package.json index 205336e..27c7f66 100644 --- a/package.json +++ b/package.json @@ -7,17 +7,20 @@ "create:local": "graph create perspectivefi/spectra-mainnet --node http://127.0.0.1:8020", "create": "graph create perspectivefi/spectra-mainnet --node https://api.thegraph.com/deploy/", "codegen": "graph codegen", + "codegen:arbitrum": "graph codegen subgraph.arbitrum.yaml", "codegen:goerli": "graph codegen subgraph.goerli.yaml", "codegen:sepolia": "graph codegen subgraph.sepolia.yaml", "authorize": "graph auth https://api.thegraph.com/deploy/", "build": "graph build", - "deploy": "graph deploy perspectivefi/spectra-mainnet --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/", + "deploy": "graph deploy --studio spectra-mainnet subgraph.yaml", "deploy:local": "graph deploy perspectivefi/spectra-mainnet --ipfs http://localhost:5001 --node http://127.0.0.1:8020", + "deploy:arbitrum": "graph deploy --studio spectra-arbitrum subgraph.arbitrum.yaml", "deploy:goerli": "graph deploy perspectivefi/spectra-goerli subgraph.goerli.yaml --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/", "deploy:sepolia": "graph deploy --studio spectra-sepolia subgraph.sepolia.yaml", "deploy:test": "graph deploy matstyler/spectra-subgraph subgraph.goerli.yaml --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/", - "generate-config:local": "node ./src/scripts/subgraphConfigGenerator.js local", "generate-config": "node ./src/scripts/subgraphConfigGenerator.js", + "generate-config:local": "node ./src/scripts/subgraphConfigGenerator.js local", + "generate-config:arbitrum": "node ./src/scripts/subgraphConfigGenerator.js arbitrum", "generate-config:goerli": "node ./src/scripts/subgraphConfigGenerator.js goerli", "generate-config:sepolia": "node ./src/scripts/subgraphConfigGenerator.js sepolia", "test": "graph test", diff --git a/src/configs/arbitrum.json b/src/configs/arbitrum.json index 0d519f9..fc0a89a 100644 --- a/src/configs/arbitrum.json +++ b/src/configs/arbitrum.json @@ -1,5 +1,5 @@ { - "network": "arbitrum", + "network": "arbitrum-one", "startBlock": 204418891, "registry": "0x786Da12e9836a9ff9b7d92e8bac1C849e2ACe378",