Constellation-Labs / tessellation

Monadic execution contexts for topology organization
Apache License 2.0
49 stars 28 forks source link

Viewable queue exposed in Data Application Routes #852

Closed scasplte2 closed 6 months ago

scasplte2 commented 6 months ago

Summary

This PR introduces a ViewableQueue trait and implementation in order to expose pending data updates via a GET public HTTP route. This work is motivated to provide a "mempool" equivalent at the metagraph layer while maintaining atomicity, minimizing changes to existing usages of currency.l1.modules.Queues, and reusing the available API of Cats standard Queue.

Additionally, smaller changes were incorporated to facilitate encoding and decoding of DataUpdates and HttpSuite was updated to MutableIOSuite as the override of Res and def sharedResource were causing compilation errors.

Changes

Testing

marcinwadon commented 6 months ago

@scasplte2 please remember to squash your commits into a single atomic change.