Allocation count, Metadata entities renamed and auto pruning
Entity changes:
GraphNetwork
- Added
allocationCount
which depicts the total amount ofAllocation
entities ever created - Added
activeAllocationCount
which depicts the current amount of openAllocation
entities
- Added
GraphAccountMetadata
renamed toGraphAccountMeta
SubgraphMetadata
renamed toSubgraphMeta
SubgraphVersionMetadata
renamed toSubgraphVersionMeta
Manifest changes:
- Added auto pruning. This disables time travel queries.
- Auto pruning settings:
- 400 blocks for L1 (roughly over 1 hour on ethereum mainnet)
- 15000 blocks for L2 (roughly over 1 hour on arbitrum one)
- Bumped spec version to 1.0.0 to enable auto pruning
Dependencies changes:
- Bumped contracts package from 5.3.3 to 6.2.0
- Bumped graph-cli package from 0.48.0 to 0.68.0
- Bumped graph-ts package from 0.29.3 to 0.32.0
Breaking changes:
- Due to an issue on the query type generation, we needed to rename the metadata entities previously described. This changes the schema so it is considered a breaking change, but given that the previous schema was bugged (plural/singular query types for those entities wasn't being created properly, and thus, they didn't work), there shouldn't be any changes required to make this work, as the types that changed were not working before and couldn't have been used at all.
- Auto pruning removes support for time travel queries older than the specified blocks for L1 (400) and L2 (15000). This breaks any app relying on historical data from this subgraph.