f-o-a-m / purescript-web3

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

Handle the case of Pending blocks #127

Closed martyall closed 11 months ago

martyall commented 5 years ago

We need to define a PendingChange type that can handle responses from eth_getFilterChanges for pending blocks, defined here

We also need to figure out how this fits into the Filter type, or doesnt -- maybe we need a Pending filter type wrapper?

then we can use pollFilter' to get pending changes. IMO this process should only accept a Pending to Pending block range, because all other cases are handled by event'