Skip to content

Releases: graphprotocol/graph-network-subgraph

Removed pruning and trigger resync

14 May 18:44
Compare
Choose a tag to compare
v1.1.1

feat: removed pruning for safety reasons, trigger full resync

L2 tests, fixes to allocation status and startBlock for manifests

15 Apr 05:30
Compare
Choose a tag to compare

Changes:

Entity changes:

  • SubgraphDeplyomentManifest: added startBlock for the whole manifest (minimum start block detected, takes into consideration not defined start blocks too)

Workflow changes:

  • Fixed L2 tests and enabled them as a GH workflow

Fixes:

  • Fixed allocation status changing when collecting rebates before closing an allocation

Allocation count, Metadata entities renamed and auto pruning

29 Feb 13:55
Compare
Choose a tag to compare

Entity changes:

  • GraphNetwork
    • Added allocationCount which depicts the total amount of Allocation entities ever created
    • Added activeAllocationCount which depicts the current amount of open Allocation entities
  • GraphAccountMetadata renamed to GraphAccountMeta
  • SubgraphMetadata renamed to SubgraphMeta
  • SubgraphVersionMetadata renamed to SubgraphVersionMeta

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.

fix: totalDelegatedTokens and totalUnstakedLockedTokens

31 Jan 20:54
Compare
Choose a tag to compare

Some issues on global trackers were detected and fixed on mainnet. Kudos to @pcarranzav for the quick fix!

File Data Sources refactor

23 Jan 13:52
Compare
Choose a tag to compare

Add support for IPFS fetching of files using the latest File Data Source approach

This update contains some breaking changes, mainly due to FDS limitations on how the data needs to be structured (due to the isolation principle).

For the most part, entities that are affected (i.e. entities that contained IPFS data) will have a separate metadata entity created and linked to the base entity, which contains all the same fields that were previously available in the base entity.

The only changes required are to add a new level of indirection to the fields, an example of this would be for the Subgraph entity. If you wanted to access the subgraph image, you'd previously get it as Subgraph.image whereas you now will need to get the metadata entity first Subgraph.metadata.image. (The obvious edge case here is if the metadata doesn't exist, which you now have to check for).

Changelog:

  • GraphAccount:

    • All IPFS related fields have been moved to the GraphAccountMetadata entity, linked on the base entity in the metadata field. This includes:
      • isOrganization
      • codeRepository
      • description
      • image
      • website
      • displayName
  • Subgraph

    • All IPFS related fields have been moved to the SubgraphMetadata entity, linked on the base entity in the metadata field. This includes:
      • description
      • image
      • nftImage
      • codeRepository
      • website
      • displayName
      • categories-> No longer [SubgraphCategoryRelation!]! @derivedFrom(field: "subgraph") but rather a [String!] due to limitations for FDS
    • Deprecated entityVersion and linkedEntity as entity duplication is no longer needed. To be removed in future updates
  • SubgraphVersion

    • All IPFS related fields have been moved to the SubgraphVersionMetadata entity, linked on the base entity in the metadata field. This includes:
      • description
      • label
    • Deprecated entityVersion and linkedEntity as entity duplication is no longer needed. To be removed in future updates
  • SubgraphDeployment

    • All IPFS related fields have been moved to the SubgraphDeploymentManifest entity, linked on the base entity in the manifest field. This includes:
      • manifest
      • network -> No longer a Network entity, but rather a raw String
      • poweredBySubstreams
      • schema -> No longer a raw String, but rather a SubgraphDeploymentSchema entity due to the way FDS needs to be structured
      • schemaIpfsHash
  • NameSignal

    • Deprecated entityVersion and linkedEntity as entity duplication is no longer needed. To be removed in future updates
  • subgraphSearch renamed to subgraphMetadataSearch for fulltext search due to changes in the way we store the metadata fields now.

  • Network, SubgraphCategory and SubgraphCategoryRelation entities removed

Fix delegation params not updating correctly

30 Nov 15:26
Compare
Choose a tag to compare
v0.22.1

fix: delegation params

Unit tests for L1 and Sepolia/Arbitrum Sepolia deployment

24 Nov 20:47
Compare
Choose a tag to compare
v0.22.0

fix: changed log from critical to warning

Fix network totals and add tracking for transfers to L2

31 Aug 18:44
Compare
Choose a tag to compare
v0.20.2

feat: add l2 transferred totals tracking

Fix default delegation parameters on L2

24 Aug 15:52
Compare
Choose a tag to compare

Small fix to delegation parameters defaulting to 0% instead of 100% in L2

L2 transfer tools support

22 Aug 13:47
Compare
Choose a tag to compare

Added support for L2 transfer tools:

  • Adds fields to denote when a Subgraph, Indexer, DelegatedStake, NameSignal and SubgraphDeployment has been transferred to L2 (albeit the last one is just to make indexer-agent integration easier)
    • transferredToL2: Whether the L2 transfer has happened
    • transferredToL2At: Timestamp for the L2 transfer
    • transferredToL2AtBlockNumber: Block number for the L2 transfer
    • transferredToL2AtTx: Transaction hash of the L2 transfer
    • Additionally, Subgraph transfers have a startedTransferredToL2 (and all auxiliary fields), since the Subgraph transfer isn't a single step procedure.
  • Adds fields to denote the transfer of GRT through the different transfer tools for the aforementioned entities