streamr-dev / network

Monorepo containing all the main components of Streamr Network.
574 stars 38 forks source link

refactor(sdk): `Stream` methods call `StreamrClient` #2861

Closed teogeb closed 4 days ago

teogeb commented 1 week ago

Refactored Stream to use StreamrClient instead of directly using service classes (e.g. StreamRegistry).

Also reordered Stream methods to to match the order in StreamrClient.

Removed StreamFactory class, as Stream instances can now be created directly with the Stream constructor.

Small functionality change

Moved clearStreamCache() call from Stream#delete() into StreamRegistry.deleteStream(). This way the cache is cleared also when StreamrClient#deleteStream() is called.

Also removed unnecessary clearStreamCache() from removeStorageNode().