https://github.com/curvefi/crv-distribution
https://github.com/curvefi/crv-distribution
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/curvefi/crv-distribution
- Owner: curvefi
- Created: 2020-08-09T19:46:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-09T20:19:47.000Z (almost 5 years ago)
- Last Synced: 2025-01-09T08:28:53.443Z (4 months ago)
- Language: TypeScript
- Size: 17.6 MB
- Stars: 2
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRV Distribution Subgraph
### Subgraph to get Curve transfer events and virtual prices needed for calculating historical CRV Distribution data
[CRV distribution subgraph](https://thegraph.com/explorer/subgraph/pengiundev/crv-distribution)
#### All transfers query:
```sql
query getTransfers($first: Int!, $skip: Int!) {
transferEvents(orderBy: block, orderDirection: asc, first: $first, skip: $skip) {
id
block
timestamp
transfers(orderBy: logIndex, orderDirection: asc) {
id
logIndex
from
to
value
address
}
}
}
```#### All virtual prices query
```sql
query getVirtualPrices($first: Int!, $skip: Int!) {
virtualPrices(orderBy: block, orderDirection: asc, first: $first, skip: $skip) {
id
address
block
timestamp
virtualPrice
}
}
```