Currently, this bridge acts against downstream to upstream bridging
sequenceDiagram
actor u as user
participant d as downstream
actor b as bridge
participant us as upstream
u ->> d: send tx to burn asset
b -->> d: observe burnt events
b ->> us: send tx to release asset
us -->> u: release assets to user
This implementation is quite simple, but we need to have different frontend for downstream→upstream(burn asset) than upstream→downstream(transfer asset),
To unify them, bridge needs to observe transferring events like upstream, for downstream too.
sequenceDiagram
actor u as user
participant d as downstream
actor b as bridge
participant us as upstream
u ->> d: send tx to transfer
b -->> d: observe burnt events
b ->> d: send tx to burn asset
b ->> us: send tx to release asset
us -->> u: release assets to user
Currently, this bridge acts against downstream to upstream bridging
This implementation is quite simple, but we need to have different frontend for downstream→upstream(burn asset) than upstream→downstream(transfer asset),
To unify them, bridge needs to observe transferring events like upstream, for downstream too.