-
Notifications
You must be signed in to change notification settings - Fork 49
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Overview] Prepare XUD for ERC20<>Lightning swap #797
Comments
Alright, I think we all agree that this is our overall top prio at the moment (by far). So my idea would be that we double check again that the list above. Make sure it is complete - definitely needs your input @offerm . And then the 3 of you divide (open & assign issues for each point) and conquer (start working on these while leaving everything else aside, with @offerm offer until feedback from the raiden team comes in) with the goal to raiden working with xud by the end of this milestone in 10 days from now. I bet @offerm will find a way to demo a BTC<-> WETH swap with this. Completely unreasonable? 😎 Other suggestions? @offerm @sangaman @erkarl |
Lets break this to internal and external tasks (from XUD POV): External:
With these changes XUD can use raiden. Internal:
For now, I'm working on the external items. Note sure this is doable in 2 weeks. Lets see |
Good news is that the external and internal steps that @offerm mentioned are completely independent of each other and can be done in isolation.
Via REST API - https://raiden-network.readthedocs.io/en/stable/rest_api.html Breaking it down into smaller steps for implementation:
As of now the swaps module of xud is hardcoded to support Also, how will we handle unknown rHash resolving within Raiden? |
currently there is no good way to deal with unknown rHash. Basically the
caller would need to block until timeout. We will need to do something
about it but it is less urgent.
About the API, better to check what we need. For example, connectPeer,
closeChannel, deploy/registerToken we don't need. QueryRoutes we do.
…On Wed, Mar 6, 2019 at 7:48 PM Karl Ranna ***@***.***> wrote:
Good news is that the external and internal steps that @offerm
<https://github.com/offerm> mentioned are completely independent of each
other and can be done in isolation.
Connect to Raiden
Via REST API -
https://raiden-network.readthedocs.io/en/stable/rest_api.html
Breaking it down into smaller steps for implementation:
- init/start
- getInfo
- verifyConnection
- sendPayment POST
/api/(version)/payments/(token_address)/(target_address)
- getAddress GET /api/(version)/address
- connectPeer
- listChannels GET /api/(version)/channels/(token_address)
- openChannel PUT /api/(version)/channels
- closeChannel
- close/exit
- queryRoutes?
- deploy/registerToken? PUT /api/(version)/tokens/(token_address) - do
we need this? is W-ETH deployed automatically?
LND vs Raiden handling of the swap
As of now the swaps module of xud is hardcoded to support BTC/LTC
clients. There's work to be done there (needs further scoping).
Also, how will we handle unknown rHash resolving within Raiden?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#797 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJQ0ci9z3a7h2e3XI942n9Mbs5BaFogFks5vT_9qgaJpZM4aVgqo>
.
|
All one-time actions like deploy/registerToken definitely not, but |
I understand you have done the heavy lifting in terms of adding Raiden support. Thanks to you Raiden now has support to include secret and secret hash as part of payment request and response. Awesome work :). Can you please elaborate on caller blocking until the timeout?
In order to clarify what exactly needs to be done I started: |
We do need the raiden address of our peers to be shared in the handshake and to be returned in the |
Is this merged? @sangaman I could only find raiden address updates: #858 |
In parallel to extending Raiden with swap support we can enhance XUD to make sure we are ready.
Need to take care for the following:
PUT /api/(version)/channels
POST /api/(version)/payments/(token_address)/(target_address)
Suggest to gave a separate issue for each step once we start the implementation.
The text was updated successfully, but these errors were encountered: