Closed hackfisher closed 3 years ago
s2s bridge is using https://github.com/darwinia-network/parity-bridges-common/blob/master/relays/client-substrate/src/client.rs
and currently bridger is using substrate-xt, as a result, this caused different runtime client types definition. Current Bridger: #178 s2s bridge: https://github.com/darwinia-network/darwinia-common/pull/605/files?file-filters%5B%5D=.rs&file-filters%5B%5D=.toml#diff-e401ad5fc8fcd05972dc2243897b1c62a3b6fe5b430ce996dfa450098594820a
Will require merge here.
Some summary for the design discussion:
About cli, may we don't need web server and client, the substrate-relay modified the implementation method, it's very simple, web server and client will become complicated. Another reason is that dynamic loading has not yet been implemented, and we don't need a web server to manage chains.
About cli, may we don't need web server and client, the substrate-relay modified the implementation method, it's very simple, web server and client will become complicated. Another reason is that dynamic loading has not yet been implemented, and we don't need a web server to manage chains.
web server and client is a plus, just like the design of geth and geth attach
, why not keep it if it has already been implemented?
Another plus is that we may able to give web ui for bridgers in far future, which could be more friendly.
Currently in substrate-relay, web server and client mode, I think the most valuable thing is that you can add chains dynamically, but the dynamic loading of the chain has not yet been implemented. So if we provide a web ui, I don’t know what data should be displayed.
About bridge relay data monitor we can set Prometheus server to watch it.
If want to provide a web server, we need to discuss which api should be design.
Currently in substrate-relay, web server and client mode, I think the most valuable thing is that you can add chains dynamically, but the dynamic loading of the chain has not yet been implemented. So if we provide a web ui, I don’t know what data should be displayed.
About bridge relay data monitor we can set Prometheus server to watch it.
If want to provide a web server, we need to discuss which api should be design.
Make sense, good with removing web server, let's just keep simple for now. We can add web server later if we need it.
https://github.com/darwinia-network/parity-bridges-common/tree/master/relays