f-o-a-m / purescript-web3

a purescript library for the web3 api
Apache License 2.0
127 stars 24 forks source link

MultiFilters #115

Closed martyall closed 5 years ago

martyall commented 6 years ago

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