[indexer] Get ready for nearcore 1.21.0 #4689
khorolets
started this conversation in
Node Public Interfaces
Replies: 3 comments
-
FYI the release is delayed |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI I've added a new commit hash and additional PR for reference. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Heads up, release dates were updated |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nearcore
is planned to be updated to version 1.21.0:Mon 16 Aug, 2021UPD: Aug 18, 2021Mon 23 Aug, 2021UPD: Sep 6, 2021Protocol upgrade is expected in this release (it means that your old indexers will work for ~2 days after release on testnet and ~7 days after release on mainnet)
Quick info
Commit hash 4c4f18b581b7a652388c8a9c650e203726aabf7d
Expected issues none
Reference have a look at how we made it on NEAR Indexer for Explorer + near/near-indexer-for-explorer#151
Heads up
Introduction of strictly typed
AccountId
(#4440)For your information nearcore 1.21.0 includes breaking change in primitive type
AccountId
. It used to be an alias toString
but now it is a separate type.If your data handlers contain any logic around accounts (
receiver_id
,signer_id
, etc.) you'll need to update the logic.For example, if you were watching for
Receipts
and check if thereceiver_id
corresponds to the name of the contract you're watching you might have had something like:Now
&receipt.receiver_id
has the type&near_indexer::near_primitives::types::AccountId
. You may want to change your code as following:Please note the examples are synthetic.
Names and number of arguments of
init_config
has changes innearcore
(#4427 and #4453)download
argument has been replaced withdownload_config
anddownload_genesis
boot_nodes
argument was addeddownload_config_url
was addedFeel free to leave your questions in the comments below.
Beta Was this translation helpful? Give feedback.
All reactions