It is hard to introduce a new storage for transactions (off chain mode) with current state of code. Disabling some tasks for off-chain mode is not enough to make it work (initialization phase, connection to relayer, etc).
Solution
This PR is about extracting transactions layer to separate types for future work where we will allow different storage for transactions (not only chain as now). There are also small changes to unify how tasks are written in terms of waiting between executions.
Motivation
It is hard to introduce a new storage for transactions (off chain mode) with current state of code. Disabling some tasks for off-chain mode is not enough to make it work (initialization phase, connection to relayer, etc).
Solution
This PR is about extracting transactions layer to separate types for future work where we will allow different storage for transactions (not only chain as now). There are also small changes to unify how tasks are written in terms of waiting between executions.
PR Checklist