graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.89k stars 962 forks source link

[meta] Update NEAR Proto definitions for the latest Firehose types #2936

Closed azf20 closed 2 years ago

azf20 commented 2 years ago

The type definitions have been updated for the NEAR firehose. In order to migrate to the latest version, we need to make the Graph Node and graph-ts types compatible too

maoueh commented 2 years ago

Here the upgrade plan:

azf20 commented 2 years ago

This sounds good @maoueh - let us know when the v1 symlink is in place and we can make the config update

azf20 commented 2 years ago

We will also add testnet support at the same time as this switch-over, assuming the endpoint is ready cc @sduchesneau

maoueh commented 2 years ago

To fix an issue when dealing with undo on Near, we will need to add a field previous_block_height in the protobuf definition so we are able to fully reconstruct the parent ptr when a block is undo.

This means we will need to reprocess again so we will need to post-pone a bit the upgrade.