https://github.com/cowprotocol/subgraph
CoW Protocol Subgraph
https://github.com/cowprotocol/subgraph
Last synced: about 1 year ago
JSON representation
CoW Protocol Subgraph
- Host: GitHub
- URL: https://github.com/cowprotocol/subgraph
- Owner: cowprotocol
- Created: 2022-03-29T13:53:14.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-18T17:08:23.000Z (over 1 year ago)
- Last Synced: 2025-04-12T23:13:44.378Z (about 1 year ago)
- Language: TypeScript
- Size: 418 KB
- Stars: 4
- Watchers: 7
- Forks: 5
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoW-subgraph
Implements a subgraph for the [CoW Protocol](https://github.com/cowprotocol/contracts)
_This is a work in progress_
- [Subgraph on mainnet](https://thegraph.com/studio/subgraph/cow-subgraph-mainnet/)
- [Subgraph on sepolia](https://thegraph.com/studio/subgraph/cow-subgraph-sepolia/)
- [Subgraph on gnosis chain network](https://thegraph.com/studio/subgraph/cow-subgraph-gnosis/)
- [Subgraph on arbitrum one network](https://thegraph.com/studio/subgraph/cow-subgraph-arb/)
For more information about:
The Cow Protocol:
The Graph:
There is also a GP v1 subgraph here:
## Model
Further information about the model [here](./model.md)
## Setup of your own test subgraph
_Requisites:_ You must have access to a console and have yarn installed. More info about [yarn](https://classic.yarnpkg.com/lang/en/docs/)
1. Install the dependencies by executing:
```bash
yarn
```
2. Go to The Graph [Studio](https://thegraph.com/studio/dashboard) and log in using your github credentials.
3. In your browser, create a new subgraph in the dashboard by clicking "Add Subgraph" button. Complete the form.
4. Create your own environment and edit so it points to your testing subgraph:
```bash
cp .env.example .env
```
5. Deploy:
```bash
yarn deploy
```
If everything went well you'll have a copy of this subgraph running on your hosted service account indexing your desired network.
Please notice a subgraph can only index a single network, if you want to index another network you should create a new subgraph and do same steps starting from step 3.