NEAR Indexer Framework 0.9.0 Release notes #4257
khorolets
started this conversation in
Node Public Interfaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This version expected to be included in the nearcore release of version 1.19. Please, update your indexers before the next Protocol Version upgrade land to the network (the current Protocol Version is 44).
See CHANGELOG for brief information about the changes.
Here I'll try to provide information about the migration to version 0.9.0 from 0.8.1
The most important change is that we've introduced a new structure
IndexerShard
now contains chunks and execution outcomes.The structure of
StreamerMessage
has changed:chunks: Vec<IndexerChunkView>
was replaced withshards: Vec<IndexerShard>
StreamerMessage
changesIf in your indexer you were iterating over the chunks to get transactions, receipts or execution outcomes for receipts you'll need to change the iterator:
BEFORE
AFTER
IndexerExecutionOutcomeWithReceipt
changesPreviously (before 0.9.0) we use the same structure for transaction execution outcomes and for receipt ones. It was
IndexerExecutionOutcomeWithReceipt
since 0.9.0 we've separate structures.So
IndexerTransactionWithOutcome
usesIndexerExecutionOutcomeWithOptionalReceipt
which correspondingly contains optionalreceipt
field.And original
IndexerExecutionOutcomeWithReceipt
fieldreceipt
is not optional anymore.So if you had been using something like:
You should use:
That's pretty much all the changes on the usage side of things.
If you have any questions according to the migration or the release of NEAR Indexer Framework 0.9.0 feel free to ask it here in the comments.
Beta Was this translation helpful? Give feedback.
All reactions