graphprotocol / graph-network-subgraph

The subgraph, the smart contracts, the tests, and documents for the Graph Explorer Decentralized Application
MIT License
70 stars 45 forks source link

feature request: allocationCount in GraphNetwork entity #259

Closed sahra-karakoc closed 6 months ago

sahra-karakoc commented 7 months ago

Currently, network subgraph doesn't track network-wide allocationCount. It would be useful to add it to the GraphNetwork entity.

Similar fields exist for the Indexer entity:

"Number of active allocations of stake for this Indexer" allocationCount: Int! "All allocations for this Indexer (i.e. closed and active)" totalAllocationCount: BigInt!

juanmardefago commented 7 months ago

PR for this: https://github.com/graphprotocol/graph-network-subgraph/pull/262

Changed the name slightly to make it more in line to what the GraphNetwork entity normally uses.

Will be merged to mainnet staging as soon as the dev-subgraph is confirmed working

juanmardefago commented 6 months ago

This has been merged and it's gonna be released in production endpoints tomorrow!