Commit Graph

80 Commits (360e3347be6997057d04b18c90774207a4af8728)

Author SHA1 Message Date
Oliver Gugger ca9ec4cfe7
looprpc: generate JSON/WASM client stubs 3 years ago
Andras Banki-Horvath 0e7ed91d5d
loop: integrate the probe api with loop-in quote
In this commit we add a call to the new probe endpoint directly into the
loop-in quote call. Furthermore we add an option to include private
channels in the loopin swap payment request. This is also useful for when
users quote/probe directly using the client API and specify hop hints.
3 years ago
Andras Banki-Horvath f786aaa016
loop: add support for the probe API 3 years ago
Oliver Gugger a7fff0ac2f
multi: update lnd master with grpc-gateway upgrade
To make loop work with the latest lnd version inside of LiT, we need
to upgrade the grpc-gateway library to the same v2 version here too.
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 77f7b73570
looprpc: document missing CLI commands 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
yyforyongyu c4d46a24a0
looprpc: add conf_target to loop in/out quote resp 3 years ago
carla 90561f8ac7
multi: add fee percentage to rpc 3 years ago
carla dd1a2de731
multi: add flat fee percentage to autoloop 3 years ago
carla 949e76bb2a
looprpc: add peer level rules to rpc 3 years ago
carla 22bd4cabb4
looprpc: add disqualified channels to suggest swaps response 3 years ago
carla 71ace95ac8
loop: rename autoloop specific parameters 3 years ago
carla 74f2c96810
looprpc: add custom client sizes for autoloop 3 years ago
Oliver Gugger 58c1c25a8b
looprpc: add initiator field to swap requests 4 years ago
Oliver Gugger 785acf74ca
looprpc: unify formatting 4 years ago
carla 87b02b7715
multi: add force tick endpoint behind debug server
To itest our autolooper, we need to be able to trigger dispatch on
demand. This functionality is included in a separate rpc server behind
a dev flag. Since it is unlikely that we need to split loop into
multiple rpc servers, this commit simply adds an additional debug server
rather than opting for a full subserver setup.
4 years ago
Carla Kirk-Cohen afc41adab0
Merge pull request #295 from carlaKC/205-autoout
liquidity: add budget-limited autoloop
4 years ago
Oliver Gugger 61b2387be7
looprpc+swap_client: add user agent string to swaps 4 years ago
carla eb6b476469
looprpc: add autoloop parameters to rpc server 4 years ago
carla f23a527927
looprpc: add fee and backoff parameters to rpc 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
carla 6b93c70b8a
looprpc: add swap suggestions endpoint 4 years ago
carla 6fcbf54c02
looprpc: add get and set liquidity parameters endpoints 4 years ago
carla 852f459391
multi: add htlc confirmations parameter to client loop out request 4 years ago
carla 8da0ea6048
looprpc: add label to swap creation and display in list swaps 4 years ago
carla a9849bb317
multi: add failure reason to swap client server
To provide more information about swaps, we add a failure reason field
to our swaps. We do not extend our existing state enum to remain
backwards compatible.
4 years ago
Gabriel Comte 6e916f2e40 looprpc/docs: fix typo 4 years ago
Joost Jager e72d998e78
loopout: show expiry range in terms 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 8d1ec50fa7
looprpc: split quote message 4 years ago
Joost Jager 24099aa4f9
looprpc: split terms message 4 years ago
Joost Jager 1869ad670f
looprpc: expose server message to clients 4 years ago
Joost Jager c6c30e2988
multi: log server message 4 years ago
Joost Jager 8a4ce0ed89
looprpc: fix doc on routing fee units 4 years ago
Joost Jager 0ef659a486
looprpc: generate with latest lnd versions of the proto generators
3ef41dd198
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
Joost Jager ccec719423
looprpc: add outgoing channel set restriction
Expose the new channel set restriction on the loopd client rpc.
4 years ago
Andras Banki-Horvath c6e3829acd looprpc: bump protocol version 4 years ago
Andras Banki-Horvath f0aff9b7bd looprpc+loopin: support for native segwit htlcs
This commit extends SwapResponse and SwapStatus with np2wsh and p2wsh
htlc output addresses to support both nested and native segwit htlcs
in loop-in.

Furthermore the commit adds support for native segwith loop-in htlcs.
When the htlc is paid internally, as of this commit we'll use NP2WSH,
otherwise users are free to select whether to pay the NP2WSH or the
P2WSH htlc.
4 years ago
Joost Jager 92730e0eaf
multi: report protocol version 4 years ago
Joost Jager 7cb914927f
looprpc: fix formatting 4 years ago
carla fc99c8b320
multi: add confirmation target to loop in 4 years ago
Oliver Gugger f5fbf6655d
looprpc: clarify loop quote response 4 years ago