We came up with a decent solution for indexing events in order of (BlockNumber, LogIndex) in hs-web3 which we called multifilters. We should do the same thing here.
For hs-web3, we used the vinyl library for extensible records, which was arguably the hardest part. Here, we get extensible records for free from the purescript type system, and using this together with purescript-variant should make it possible to reimplement the same thing here, even without the type families.
We came up with a decent solution for indexing events in order of (
BlockNumber
,LogIndex
) in hs-web3 which we called multifilters. We should do the same thing here.For hs-web3, we used the vinyl library for extensible records, which was arguably the hardest part. Here, we get extensible records for free from the purescript type system, and using this together with purescript-variant should make it possible to reimplement the same thing here, even without the type families.
Tests should also be update in purescript-web3-tests