Awesome
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
- Install Docker if you don't have it already
- Install postgres:
brew install postgresql
yarn run build:docker
yarn run test
Adding New Chains
- Create a new subgraph config in
src/utils/chains.ts
. This will require adding a new<NETWORK_NAME>_NETWORK_NAME
const for the corresponding network. - 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. The factory address can be derived from Uniswap's deployments documentation. - To deploy to Alchemy, run the following command:
yarn run deploy:alchemy --
<SUBGRAPH_NAME>
--version-label <VERSION_LABEL>
--deploy-key <DEPLOYMENT_KEY>
--network <NETWORK_NAME>