Releases: graphprotocol/graph-network-analytics-subgraph
Releases · graphprotocol/graph-network-analytics-subgraph
Performance improvements
Schema changes:
- Replaced almost all entity IDs with
Bytes
. OnlyGraphAccountName
still usesID
because of how the id itself was generated. - Replaced all usages of
String
to represent entity links with the newly correspondingBytes
- By replacing
ID
withBytes
, the IDs themselves have been altered, so they will not match with previous implementations or with the core network subgraph currently (since it still usesString/ID
IDs) - Transaction entities are now
immutable
IndexerDelegatedStakeRelation
now only has an ID and a link to the indexer, for performance purposes when handling indexers with lots of delegations
Tests:
- Added a small test to make sure our new
Bytes
based ID approach works correctly.
Fix totalDelegatedTokens and totalUnstakedLockedTokens and added pruning
Fixes:
- Fixed
GraphNetwork.totalDelegatedTokens
- Fixed
GraphNetwork.totalUnstakedTokensLocked
- Fixed
GraphAccountMetadata
not being the same as in core network subgraph
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:
- 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.
File Data Sources refactor
Add support for IPFS fetching of files using the latest File Data Source approach
Fix Exponential Rebates
v0.22.1 fix: missing RebateCollected
Exponential rebates and Sepolia support
v0.22.0 feat: fix getAllocation
Performance improvements
Decreased the amount of times we do batch updates for delegator data.
Refactored the logic for batch updates to use the new feature for derived fields.
L2 transfer tools support
Adds support for L2 transfer tools like in the core network subgraph, but mainly to avoid having bad leftover state from the transfers.
Fix Arbitrum workflow
v0.19.1 fix: arbitrum workflow
Arbitrum ENS issue hotfix
v0.19.0 fix: ensure ENS address is always present