Consensys / gpact

General Purpose Atomic Crosschain Transaction Protocol
Apache License 2.0
83 stars 26 forks source link

Add multi-source observer #130

Closed ermyas closed 2 years ago

ermyas commented 2 years ago

At present, a Relayer observer instance can only observe a single source. This PR introduces a multi-source observer that can dynamically be configured to manage any number of different sources simultaneously. The sources observed can be of different contract types or have different finalisation requirements. The multi-source observer works by managing a set of other observers. This PR also includes general code refactoring and other small improvements to the code-base.