-
Notifications
You must be signed in to change notification settings - Fork 377
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
API endpoint for UDC contract to deposit and withdraw RDN tokens #5497
Comments
I'm taking this over now to provide a better UX. After a discussion with @karlb, we decided to have 3 API calls: deposit, plan withdraw and withdraw. For this it makes sense to have a new endpoint. I propose for it to be Methods:
The first two are idempotent. The parameters are exactly what the respective contract functions expect. The requirements for doing the transactions (e.g. there must be a planned withdraw before withdrawing) should get checked in the API before sending a transaction to avoid it to be failing. As we do with the other API calls which trigger an on-chain transaction we should wait for the transaction to be mined before returning the response. The call for planning a withdraw can then respond with the number of blocks for it to be ready. |
This includes three POST requests: - deposit to UDC - plan withdraw from UDC - withdraw from UDC Resolves raiden-network#5497
This includes three POST requests: - deposit to UDC - plan withdraw from UDC - withdraw from UDC Resolves raiden-network#5497
This includes three POST requests: - deposit to UDC - plan withdraw from UDC - withdraw from UDC Resolves #5497
This includes three POST requests: - deposit to UDC - plan withdraw from UDC - withdraw from UDC Resolves raiden-network#5497
This includes three POST requests: - deposit to UDC - plan withdraw from UDC - withdraw from UDC Resolves raiden-network#5497
This includes three POST requests: - deposit to UDC - plan withdraw from UDC - withdraw from UDC Resolves #5497
We need an API endpoint to be able to deposit RDN tokens (or services tokens on the testnet) into the UDC.
This is related to #5407
The text was updated successfully, but these errors were encountered: