nervosnetwork / fiber

19 stars 10 forks source link

simple cross-chain hub demo #46

Closed doitian closed 3 months ago

doitian commented 5 months ago

Specification: #85

Future Works: #88

doitian commented 4 months ago

This PR is a little bit centered at BTC<->wBTC (an xDUT token with 1-1 pegging to BTC). I am wondering how easy it is to tweak code in this PR to support other assets. To be clear, we currently are only interested in BTC<->wBTC exchange. But the code can be make more generic.

The code base before this PR supports CKB <-> BTC by configuring a ratio. A similar change can be applied to support other xUDT.

contrun commented 4 months ago

While trying to demo the functionality of cross chain hub, I also added a few requests to close the channels in both lightning network and fiber network. Can you also add these to current PR? I think it would make the e2e test more complete. Here is my additional bruno files. https://github.com/nervosnetwork/cfn-node/tree/afbfc1e5a1c2dc2f900dae57f00ba1ac86f4927c/tests/bruno/e2e/cross-chain-hub

doitian commented 4 months ago

While trying to demo the functionality of cross chain hub, I also added a few requests to close the channels in both lightning network and fiber network. Can you also add these to current PR? I think it would make the e2e test more complete. Here is my additional bruno files. https://github.com/nervosnetwork/cfn-node/tree/afbfc1e5a1c2dc2f900dae57f00ba1ac86f4927c/tests/bruno/e2e/cross-chain-hub

You can send a PR to https://github.com/doitian/cfn-node/tree/feature/cch

doitian commented 4 months ago

While trying to demo the functionality of cross chain hub, I also added a few requests to close the channels in both lightning network and fiber network. Can you also add these to current PR? I think it would make the e2e test more complete. Here is my additional bruno files. https://github.com/nervosnetwork/cfn-node/tree/afbfc1e5a1c2dc2f900dae57f00ba1ac86f4927c/tests/bruno/e2e/cross-chain-hub

You can send a PR to https://github.com/doitian/cfn-node/tree/feature/cch

https://github.com/doitian/cfn-node/pull/2

doitian commented 4 months ago

Blocking, see https://github.com/nervosnetwork/cfn-node/pull/123