ApeWorX / ApePay

A smart contract payment system built for automated service management
https://apeworx.io/apepay
Apache License 2.0
18 stars 5 forks source link

Refactor stream fetching in the SDK [SBK-347] #72

Open alexisnsns opened 8 months ago

alexisnsns commented 8 months ago

When calling onAllStreams, fetching the streams (using streammanager.publicClient.getContractEvents) can be slow on public nets if you don't pass a 'fromBlock' param to start fetching only from a certain block.

The way we fetch the past streams can be improved.