VoteOnObservedInboundTx
: separate cctx state transition logic from the message into new functions
#1800
Labels
VoteOnObservedInboundTx
: separate cctx state transition logic from the message into new functions
#1800
We currently have an open PR to move voting logic out of the message: #1511
In this PR we simplify the message logic by moving the voting logic into a separate function. The idea of this issue is to do the same for the CCTX state transition.
Basically, all the logic after
We have in the docs a graph representing the control flow of the message: https://www.zetachain.com/docs/architecture/modules/crosschain/messages/#msgvoteonobservedinboundtx
This control is very hard to visualizing by looking at the message body, while it shouldn't be the case.
The idea of this issues is to separate the components into smaller functions so the high level logic can be easy to visualize.
The vision of this task is to end up in a message logic looking like:
Adding this task in the epic #1799 as the idea is to get a future proof design simplifying adding new logic in the CCTX control flow
Tests should be added for the new methods. Therefore #1316 might be completed in this task
The text was updated successfully, but these errors were encountered: