Skip to content

Commit

Permalink
fix: arbitrum deployment (#153)
Browse files Browse the repository at this point in the history
* fix: arbitrum deployment

* chore: add all subgraphs to the readme
  • Loading branch information
matstyler authored May 22, 2024
1 parent ee2520e commit e86ff9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

This subgraph can be found on The Graph Hosted Service for the following networks:

- [Mainnet](https://thegraph.com/hosted-service/subgraph/perspectivefi/spectra-mainnet)
- [Sepolia](https://api.studio.thegraph.com/query/58996/spectra-sepolia/version/latest)
- [Mainnet](https://api.studio.thegraph.com/query/75970/spectra-mainnet/version/latest)
- [Arbitrum](https://api.studio.thegraph.com/query/75970/spectra-arbitrum/version/latest)
- [Sepolia](https://api.studio.thegraph.com/query/75970/spectra-sepolia/version/latest)

You can also run this subgraph locally, if you wish. Instructions for that can be found in [The Graph Documentation](https://thegraph.com/docs/en/cookbook/quick-start/).

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/configs/arbitrum.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"network": "arbitrum",
"network": "arbitrum-one",
"startBlock": 204418891,

"registry": "0x786Da12e9836a9ff9b7d92e8bac1C849e2ACe378",
Expand Down

0 comments on commit e86ff9b

Please sign in to comment.