Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: arbitrum deployment #153

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading