-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from HausDAO/develop
deploy v0.5.0
- Loading branch information
Showing
24 changed files
with
79 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,51 @@ | ||
# DAOhaus v3 Subgraph | ||
|
||
The v3 subgraph currently supports goerli. It's deployed here: https://api.thegraph.com/subgraphs/name/hausdao/daohaus-v3-goerli/graphql | ||
## Deployment | ||
|
||
Complete steps 1-3 for each network. | ||
|
||
These require installing the graph cli locally and auth tokens for deployment to the hosted service or studio subgraphs | ||
|
||
`npm install -g @graphprotocol/graph-cli` | ||
|
||
## Local Development | ||
`graph auth --studio <DEPLOY KEY>` | ||
|
||
### Subgraph yaml Generation | ||
### 1. Subgraph yaml Generation | ||
|
||
`nx run moloch-v3-subgraph:generate-config --network=goerli` | ||
|
||
`nx run moloch-v3-subgraph:generate-config --network=xdai` | ||
|
||
`nx run moloch-v3-subgraph:generate-config --network=mainnet` | ||
|
||
`nx run moloch-v3-subgraph:generate-config --network=optimism` | ||
|
||
`nx run moloch-v3-subgraph:generate-config --network=arbitrum-one` | ||
|
||
`nx run moloch-v3-subgraph:generate-config --network=matic` | ||
`nx run moloch-v3-subgraph:generate-config --network=sepolia` | ||
`nx run moloch-v3-subgraph:generate-config --network=base` | ||
|
||
Supported Networks: | ||
`nx run moloch-v3-subgraph:generate-config --network=sepolia` | ||
|
||
- goerli | ||
- gnosis | ||
- mainnet | ||
- optimism | ||
- arbitrum-one | ||
- polygon | ||
`nx run moloch-v3-subgraph:generate-config --network=base` | ||
|
||
### Generate Subgraph Code | ||
### 2. Generate Subgraph Code | ||
|
||
To generate subgraph code, run the following command: | ||
|
||
`nx run moloch-v3-subgraph:generate-code` | ||
|
||
## Deployment | ||
|
||
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-goerli --network=goerli` | ||
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-optimism --network=optimism` | ||
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-arbitrum --network=arbitrum-one` | ||
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-polygon --network=matic` | ||
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-sepolia-2 --network=sepolia` | ||
## Deploy | ||
|
||
### mainnet and gnosis chain deployment to studio | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3 --network=mainnet --semver=<NEW VERSION NUMBER>` | ||
|
||
`cd apps/moloch-v3-subgraph` | ||
`graph deploy --studio daohaus-v3` | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-base --network=base --semver=<NEW VERSION NUMBER>` | ||
|
||
todo: get this nx command running with a version: | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3 --network=mainnet` | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-gnosis --network=gnosis` | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-base --network=base` | ||
|
||
_These require installing the graph cli locally and auth tokens for deployment to the hosted service or studio subgraphs_ | ||
`npm install -g @graphprotocol/graph-cli` | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-sepolia-2 --network=sepolia --semver=<NEW VERSION NUMBER>` | ||
|
||
Supported names: | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-polygon --network=matic --semver=<NEW VERSION NUMBER>` | ||
|
||
- `hausdao/daohaus-v3-goerli` | ||
- `hausdao/daohaus-v3-gnosis` | ||
- `hausdao/daohaus-v3-optimism` | ||
- `hausdao/daohaus-v3-arbitrum` | ||
- `hausdao/daohaus-v3-polygon` | ||
- `daohaus-v3` | ||
- `daohaus-v3-gnosis` | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-arbitrum --network=arbitrum-one --semver=<NEW VERSION NUMBER>` | ||
|
||
Playgrounds: | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-optimism --network=optimism --semver=<NEW VERSION NUMBER>` | ||
|
||
- https://thegraph.com/hosted-service/subgraph/hausdao/daohaus-v3-goerli | ||
- https://thegraph.com/hosted-service/subgraph/hausdao/daohaus-v3-optimism | ||
- https://thegraph.com/hosted-service/subgraph/hausdao/daohaus-v3-arbitrum | ||
- https://thegraph.com/hosted-service/subgraph/hausdao/daohaus-v3-polygon | ||
- https://thegraph.com/explorer/subgraph?id=GfHFdFmiSwW1PKtnDhhcxhArwtTjVuMnXxQ5XcETF1bP&view=Overview | ||
- https://thegraph.com/explorer/subgraphs/5oXHJGgAWTSEXHK5FGf7mcxYtk6rSz7MJV5ccvGfoW6q?view=Overview&chain=mainnet | ||
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-gnosis --network=xdai --semver=<NEW VERSION NUMBER>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.