This PR introduces the following (breaking) changes
Remove Pending and Earliest from ChainCursor constructors.
For Earliest this is not a big deal, it should have never been there. It's just some cute replacement for the 0 block number, and it encourages "more than one way to do something" which adds no value.
For Pending, we never had correct behavior in the first place. For one thing, the coroutines were never set up for that. Another problem is that for pending blocks half of the fields in the Change type (e.g. blockNumber`) are null and would fail to parse anyway. See here. I would propose that we put it back when we know how to do it right.
Adds the trailBy as a event option.
This is similar to hs-web3. You can say that you would like to always trail by a certain number of blocks once you've "caught up"
This PR introduces the following (breaking) changes
Remove
Pending
andEarliest
fromChainCursor
constructors. ForEarliest
this is not a big deal, it should have never been there. It's just some cute replacement for the0
block number, and it encourages "more than one way to do something" which adds no value. ForPending
, we never had correct behavior in the first place. For one thing, the coroutines were never set up for that. Another problem is that for pending blocks half of the fields in theChange
type (e.g. blockNumber`) are null and would fail to parse anyway. See here. I would propose that we put it back when we know how to do it right.Adds the
trailBy
as a event option. This is similar to hs-web3. You can say that you would like to always trail by a certain number of blocks once you've "caught up"