proto-kit / framework

Apache License 2.0
28 stars 10 forks source link

Seperate User interfaces from AppChain composability layer #80

Open rpanic opened 11 months ago

rpanic commented 11 months ago

Currently the AppChain class acts both as the main composability layer to stich together modules and containers and as the primary user-facing API access point. This introduces unnessecary size and coupling into the AppChain class. An example for this is insufficient seperation for the transaction() API, which is almost entirely implement inside Appchain. As a solution, seperate those two functions into seperate classes and allow access through getters on Appchain. A example for how this should be is the .query accessor.