Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Uniswap/v3-subgraph
Subgraph for Uniswap V3
https://github.com/Uniswap/v3-subgraph
Last synced: 3 months ago
JSON representation
Subgraph for Uniswap V3
- Host: GitHub
- URL: https://github.com/Uniswap/v3-subgraph
- Owner: Uniswap
- License: gpl-3.0
- Created: 2021-01-27T19:32:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T22:06:15.000Z (6 months ago)
- Last Synced: 2024-05-22T22:44:27.302Z (6 months ago)
- Language: TypeScript
- Size: 1.08 MB
- Stars: 318
- Watchers: 36
- Forks: 440
- Open Issues: 115
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- best-of-crypto - GitHub - 84% open · ⏱️ 30.05.2024): (Automated Market Maker (AMM))
README
# Uniswap V3 Subgraph
### Subgraph Endpoint
Synced at: https://thegraph.com/hosted-service/subgraph/ianlapham/uniswap-v3-subgraph?selected=playground
Pending Changes at same URL
### Running Unit Tests
1. Install [Docker](https://docs.docker.com/get-docker/) if you don't have it already
2. Install postgres: `brew install postgresql`
3. `yarn run build:docker`
4. `yarn run test`### Adding New Chains
1. Create a new subgraph config in `src/utils/chains.ts`. This will require adding a new `_NETWORK_NAME` const for the corresponding network.
2. Add a new entry in `networks.json` for the new chain. The network name should be derived from the CLI Name in The Graph's [supported networks documenation](https://thegraph.com/docs/en/developing/supported-networks/). The factory address can be derived from Uniswap's [deployments documentation](https://docs.uniswap.org/contracts/v3/reference/deployments/ethereum-deployments).
3. To deploy to Alchemy, run the following command:```
yarn run deploy:alchemy --
--version-label
--deploy-key
--network
```