Skip to content

Repository files navigation

CRV Distribution Subgraph

Subgraph to get Curve transfer events and virtual prices needed for calculating historical CRV Distribution data

CRV distribution subgraph

All transfers query:

	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

	query getVirtualPrices($first: Int!, $skip: Int!) {
		virtualPrices(orderBy: block, orderDirection: asc, first: $first, skip: $skip) {
		    id
		    address
		    block
		    timestamp
		    virtualPrice
	  	}
	}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages