Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gammaswap/v1-subgraph
https://github.com/gammaswap/v1-subgraph
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gammaswap/v1-subgraph
- Owner: gammaswap
- Created: 2023-05-10T15:05:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T15:33:54.000Z (about 1 year ago)
- Last Synced: 2023-12-19T11:23:45.429Z (about 1 year ago)
- Language: TypeScript
- Size: 320 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Subgraph Deployment Instructions
Subgraph must have already been created in https://thegraph.com under the GammaSwap Labs account
**IMPORTANT** Use all lowercase addresses in config json files1. Run "yarn prepare arbitrum"
2. Run "yarn codegen arbitrum"
3. Run "yarn build arbitrum" (optional, only to see if there are any compilation errors)
4. Run "graph auth --product hosted-service 'ACCESS_TOKEN'" (get ACCESS_TOKEN from https://thegraph.com)
5. Run "yarn deploy:arbitrum"*If authenticating to studio run the following
graph auth --studio 'ACCESS_TOKEN'
*The deployment script for base mainnet uses launch instead of the deploy command to deploy to graph studio
### Process for updating Arbitrum Subgraph
After confident changes in test environments are safe in the subgraph and UI (e.g. arbitrumSepolia), do the following
in order making sure each step is successful1. Update gammaswap-v1-arbitrum-dev
2. Test main branch of UI against gammaswap-v1-arbitrum-dev
3. Deploy to gammaswap-v1-arbitrum### Versioning
If only updating configurations, then bump to next minor version. If also updating subgraph source code, ABIs or yaml
templates, then bump to next major version### Goldsky Commands
deploy a subgraph:
`goldsky subgraph deploy `
delete a subgraph:
`goldsky subgraph delete `
update a subgraph:
`goldsky subgraph update `
show logs of a subgraph:
`goldsky subgraph log `
create a subgraph tag:
`goldsky subgraph tag create --tag `
delete a subgraph tag:
`goldsky subgraph tag delete --tag `
list subgraphs:
`goldsky subgraph list `
Source: https://docs.goldsky.com/reference/cli