filecoin-station / spark-evaluate

Evaluate service
Other
1 stars 1 forks source link

Use ethers@6 for events polling #165

Open juliangruber opened 5 months ago

juliangruber commented 5 months ago

Glif & Chain.love RPC nodes now support eth_newFilter and eth_getFilterChanges, so we should be able to use ethers@6 without https://github.com/filecoin-station/on-contract-event

bajtos commented 2 months ago

FWIW, our experience in spark-api is that Lotus does not support filters when using JSON RPC, only when using web sockets.

However, it seems to be possible to configure Ethers v6 to use the old polling mechanism, see https://github.com/filecoin-station/spark-api/pull/306