2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
Commit Graph

82 Commits

Author SHA1 Message Date
Andras Banki-Horvath
461ceeeb28
looprpc: add payment_timeout to the LoopOutRequest 2024-05-23 17:17:21 +02:00
Boris Nagaev
5a1f79557d
loopd: re-add GetLsatTokens method in gRPC
This is needed not to break existing client binaries, e.g. `loop listauth`,
Terminal Web, RTL.

The API should be removed in a couple of releases. For now, GetLsatTokens
just prints a warning message about the API being deprecated and that the
client binary should be updated, and calls GetL402Tokens API, as a wrapper.

Type LsatToken used by GetLsatTokens in the past was renamed to L402Token,
but this does not affect binary encoding, so type L402Token can be used
(as part of TokensResponse) without breaking backward compatibility.

Updated release_notes.md.

See https://github.com/lightninglabs/loop/pull/730#discussion_r1579251294
2024-04-29 09:39:28 -03:00
Boris Nagaev
0e7927ac96
multi: replace LSAT with L402
git mv ./cmd/loop/lsat.go ./cmd/loop/l402.go
sed 's@lsat@l402@g' -i `git grep -l lsat`
sed 's@Lsat@L402@g' -i `git grep -l Lsat`
sed 's@LSAT@L402@g' -i `git grep -l LSAT`
make rpc

Updated release_notes.md.
2024-04-24 13:28:28 -03:00
sputn1ck
1f96a61d21
looprpc: add listinstantouts 2024-03-04 12:26:15 +01:00
sputn1ck
6a62be0d09
instantout: add addr to send funds to 2024-03-04 09:43:52 +01:00
Slyghtning
6f3c68fb21
looprpc: new state for incorrect amount sweeps 2024-02-13 10:43:15 +01:00
sputn1ck
ca8f91ab77
looprpc: add instantout quote 2024-02-07 16:08:14 +01:00
sputn1ck
6c07f88458
looprpc: add reservations to loop out 2024-02-06 15:07:59 +01:00
George Tsagkarelis
627eb5cb68
looprpc: add is_external_addr to loopout req 2024-01-23 20:38:07 +02:00
sputn1ck
091c0a86bd
looprpc: add reservation rpcs 2024-01-17 15:59:07 +01:00
sputn1ck
90f5a8851e
looprpc: add swap filter 2024-01-04 15:14:31 +01:00
Slyghtning
0060e3fe53
looprpc: failure reason insufficient confirmed balance 2023-11-27 13:45:31 +01:00
Slyghtning
8612912e97
looprpc: abandon swap api
swaprpc: abandon swap api
2023-11-24 11:09:53 +01:00
Slyghtning
647333ac64
looprpc: account field for LoopOutRequest 2023-07-27 13:51:52 +02:00
sputn1ck
ca032b1f1d
multi: expose l402 id in grpc interface
This commit adds an additional field to the tokens in order to fetch the
relevant l402 ids for the users tokens.
2023-06-22 17:55:47 +02:00
Slyghtning
7f6f265db3 looprpc: request and response params for new getInfo rpc 2023-05-24 17:32:23 +02:00
George Tsagkarelis
cd9f6f142b
cmd+looprpc: add new parameters for easy autoloop
This commit introduces the new parameters to the protofiles and the
cmd interface. If easy autoloop is enabled we just ignore the rest of
the rules and use the defaults of easy autoloop.
2023-05-22 15:48:37 +03:00
George Tsagkarelis
72f284ecb4
looprpc: restore autoloop_budget_start_sec 2023-03-20 17:20:54 +02:00
George Tsagkarelis
74f6cc8d4b
looprpc: add last budget refresh to rpc parameters 2023-03-14 16:49:08 +02:00
George Tsagkarelis
b025b9ae37
multi: add recurring autoloop budget 2023-02-22 19:48:03 +02:00
George Tsagkarelis
0ef205cb24
looprpc: add autoloop outaddr 2022-12-16 12:02:43 +02:00
Andras Banki-Horvath
88956455b4
multi: completely remove support for NP2WSH htlcs
This commit removes all code related to NP2WSH htlcs. These were
historically used when segwit adoption was very sporadic and are not
used anywhere anymore. Some historical swaps stored in the DB may be
listed with incorrect htlc adresses from here on.
2022-11-04 17:14:53 +01:00
Andras Banki-Horvath
901a935514
loopin: enable p2tr htlcs without keyspend 2022-06-30 16:59:55 +02:00
sputn1ck
ece0f76e7f
loop: update listswaps api 2022-05-31 16:26:55 +02:00
carla
16799838f7
multi: surface loop in parameters on rpc 2021-12-15 09:11:46 +02:00
carla
4689040333
multi: surface suggested loop in swap on rpc 2021-12-15 09:10:28 +02:00
carla
dad103530f
multi: move server proto files to their own directory
Protobuf does not allow naming conflicts for files within the same
process, because all proto messages register themselves in a global
registry.

This is problematic because the server's itests import the client's
looprpc package to make rpc queries to the loopd client, thus importing
duplicate common.proto and server.proto from the client's looprc package
(since they're both in there as well).

This change moves the server's proto files into their own directory so
that they are not imported when we want to use the client's files. We
cannot change the package name for the server, because that would be
a breaking change (the package name is included in URIS). Fortunately,
we have the go_package option which allows us to place generated files
in a different location.
2021-12-13 13:56:40 +02:00
Harsha Goli
f1a7d8fb49
multi: pass private, routehints from loopcli - loopd - loop server
This commit passes routehints all the way from when/if the user passes
them from the cli all the way to the backend loop server. If private is
used, this commit passes that boolean down to different stages, where it
is then converted into routehints.

main: add --private and --route_hints to quote

Adds --private and --route_hints flags to quote cli
2021-12-07 21:04:07 -05:00
carla
91a90968d0
multi: surface swap type on rpc 2021-11-30 13:18:28 +02:00
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.
2021-07-30 13:22:12 +02:00
Andras Banki-Horvath
f786aaa016
loop: add support for the probe API 2021-07-30 13:22:12 +02:00
Oliver Gugger
77f7b73570
looprpc: document missing CLI commands 2021-07-14 16:08:53 +02:00
Oliver Gugger
86df44362f
make+looprpc: use Docker to compile and format protos 2021-07-13 09:41:28 +02:00
Oliver Gugger
67c81204f6
looprpc: extract REST annotations into yaml 2021-07-13 09:37:08 +02:00
yyforyongyu
c4d46a24a0
looprpc: add conf_target to loop in/out quote resp 2021-03-08 02:23:25 +08:00
carla
90561f8ac7
multi: add fee percentage to rpc 2021-03-04 10:14:52 +02:00
carla
dd1a2de731
multi: add flat fee percentage to autoloop 2021-03-04 10:14:37 +02:00
carla
949e76bb2a
looprpc: add peer level rules to rpc 2021-02-17 10:56:32 +02:00
carla
22bd4cabb4
looprpc: add disqualified channels to suggest swaps response 2021-02-08 09:39:03 +02:00
carla
71ace95ac8
loop: rename autoloop specific parameters 2021-02-03 08:54:48 +02:00
carla
74f2c96810
looprpc: add custom client sizes for autoloop 2020-12-01 13:06:37 +02:00
Oliver Gugger
58c1c25a8b
looprpc: add initiator field to swap requests 2020-11-06 10:43:00 +01:00
Oliver Gugger
785acf74ca
looprpc: unify formatting 2020-11-06 10:42:59 +01:00
carla
eb6b476469
looprpc: add autoloop parameters to rpc server 2020-10-12 13:34:56 +02:00
carla
f23a527927
looprpc: add fee and backoff parameters to rpc 2020-09-30 12:46:35 +02:00
carla
6b93c70b8a
looprpc: add swap suggestions endpoint 2020-09-03 10:36:44 +02:00
carla
6fcbf54c02
looprpc: add get and set liquidity parameters endpoints 2020-09-02 11:50:15 +02:00
carla
852f459391
multi: add htlc confirmations parameter to client loop out request 2020-08-04 20:29:09 +02:00
carla
8da0ea6048
looprpc: add label to swap creation and display in list swaps 2020-08-03 11:00:56 +02:00
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.
2020-07-30 09:15:42 +02:00