Commit Graph

26 Commits (f786aaa01655ed1b212bdca148070fab8bf9612c)

Author SHA1 Message Date
Andras Banki-Horvath f786aaa016
loop: add support for the probe API 3 years ago
carla 94692678f3
looprpc: add swap multiple swap scripts server state to rpc enum
Add a new failure state that the server may send to the client.
This state is sent for loop in swaps where the client has
erroneously published multiple outputs for a loop in swap (this
could happen if an end user created an external tx with too many
outputs). Failing the swap server side protects users from potential
footguns where they publish the hltc then the server can claim more
money than was paid out off chain. This can never happen when the
loop client publishes the htlc because it only ever contains one
output.
3 years ago
Oliver Gugger 86df44362f
make+looprpc: use Docker to compile and format protos 3 years ago
Oliver Gugger 67c81204f6
looprpc: extract REST annotations into yaml 3 years ago
carla 1bdcc2cd41
looprpc: prefix server and lnd enums to create unique names 3 years ago
carla 3aee9ae924
looprpc: add new server states for client-initiated cancelation 3 years ago
carla 71501ef2e8
looprpc: add server cancelation rpc to server.proto 3 years ago
Oliver Gugger 61b2387be7
looprpc+swap_client: add user agent string to swaps 4 years ago
Joost Jager c8666caf20
loopin: mpp pre-swap probe 4 years ago
Andras Banki-Horvath 133f3cac5f multi: integrate the new htlc v2 scripts to loop in/out
This commit bumps the current protocol version and integrates htlc v2
with loop in/out for new swaps, while keeping htlc v1 for any pending
swaps with previous protocol versions.
4 years ago
Joost Jager 05fd1da496
looprpc: update server proto 4 years ago
carla cd2b08aec6
multi: consume and log sever state updates 4 years ago
Joost Jager c6c30e2988
multi: log server message 4 years ago
carla 65c847674d
multi: add preimage push to loop out after sweep attempt
Once we have revealed our preimage to the world with a sweep attempt,
we can safely push our preimage to the server to speed up on chain
claim.

Rather than rely on the server, we use the state of our invoice in lnd
to determine whether we should continue trying to push the preimage to
the server.
4 years ago
Andras Banki-Horvath c6e3829acd looprpc: bump protocol version 4 years ago
Joost Jager 92730e0eaf
multi: report protocol version 4 years ago
Joost Jager 7cb914927f
looprpc: fix formatting 4 years ago
Joost Jager b69e8cb275
multi: allow loop in last hop restriction 4 years ago
Johan T. Halseth 48f6f0fc5c
looprpc: add updated server proto 4 years ago
Johan T. Halseth ae3893c2d4
looprpc: add swap_publication_deadline to ServerLoopOutRequest 5 years ago
Johan T. Halseth 0023d1a0da
looprpc: update to new server protos
We update to new set of server protos where new Terms calls are added.
Here static information will be returned from the server.

We no longer have a feebase+feerate, but get a final fee directly
returned by the server.
5 years ago
Johan T. Halseth 5fd51c0a3f
looprpc: remove go_package option
Not needed.
5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago
Olaoluwa Osuntokun e299dc696c
looprpc: rename service actions from uncharge to loop out
In this commit, we rename all the service actions from uncharge, to loop
out instead. We do this in order to be line with the new naming scheme
for the service.
5 years ago
Olaoluwa Osuntokun 68d49eee88
multi: update import paths to point to new looprpc pacakge 5 years ago
Olaoluwa Osuntokun ba1f427cf4
looprpc: move client+server protos to new looprpc package 5 years ago