This repository has been archived by the owner on May 28, 2021. It is now read-only.
[contracts, client, node, apps] Move initial state validation to init() fn in appDefinition #1116
Labels
Chore
Devops or refactoring task
p4: Eventual Enhancements
Enhancements that will eventually be needed by users but not immediately
Right now, we have to create new initial state validation libraries for every new application that we write. This makes it harder to add new apps and makes the node code less easy to understand. We also have a weird pattern where a proposal can be countersigned by a responder, even if they disagree with the proposed values.
We can move these validators into an
init()
function within the appDefinition which is call from within the propose protocol. This way, any app that makes it through the propose protocol, must necessarily have already been validated.The text was updated successfully, but these errors were encountered: