worldcoin / signup-sequencer

signup-sequencer repository
MIT License
67 stars 33 forks source link

Introduce transaction manager #742

Closed piohei closed 2 months ago

piohei commented 2 months ago

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