2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-16 00:12:52 +00:00
Commit Graph

150 Commits

Author SHA1 Message Date
Andras Banki-Horvath
01c017d913
cli: add payment_timeout option to the CLI as well 2024-05-23 17:17:21 +02: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
034bc246ca
cmd: add listinstantouts cmd 2024-03-04 12:26:17 +01:00
sputn1ck
6a62be0d09
instantout: add addr to send funds to 2024-03-04 09:43:52 +01:00
sputn1ck
194d021824
cmd: improve instantout ux 2024-03-03 11:49:53 +01:00
sputn1ck
cf6552944f
cmd: add instantout quote 2024-02-08 17:52:09 +01:00
sputn1ck
8c7c7cf8b5
loop: add instantout cmd 2024-02-06 15:07:59 +01:00
George Tsagkarelis
a9be69b281
multi: use isExternalAddr flag 2024-01-23 20:38:07 +02:00
sputn1ck
30acccbb6f
loop: add reservation cli commands 2024-01-17 15:59:08 +01:00
sputn1ck
c8172ade21
cmd: add listswaps filtering 2024-01-04 15:14:32 +01:00
Slyghtning
378d817f20
cmd: abandon api support 2023-11-27 11:14:14 +01:00
Oliver Gugger
bac1416636
multi: bump lnd version to v0.17.0-beta 2023-10-03 19:36:32 +02:00
Slyghtning
e490d97f3f
loop: fix loop out help text 2023-08-21 15:30:02 +02:00
Slyghtning
d975b56f0e
loop: xpub support for loop out 2023-07-27 13:51:53 +02:00
Slyghtning
ae76aee14b
fix typos 2023-06-26 16:51:50 +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
84bf30301f loop: client calls getInfo rpc 2023-05-24 17:50:26 +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
b025b9ae37
multi: add recurring autoloop budget 2023-02-22 19:48:03 +02:00
George Tsagkarelis
fa0393b331
multi: add OutAddr parameter for autoloop loop out 2022-12-16 12:02:46 +02:00
sputn1ck
4baf88c414
multi: fix linter issues
This commit fixes outstanding linter issues, that we're not found by
running `make lint` locally. The linter issues were found by running
`docker run -v $(pwd):/build loop-tools golangci-lint run --whole-files`

I added the `revive` to the excludes as it would be to much of a
refactor and IMO seems unneccesary. E.g.
`interface.go:222:6: exported: type name will be used as
loop.LoopInTerms by other packages, and that stutters; consider
 calling this InTerms (revive)`. I think `loop.LoopInTerms` is fine.
2022-12-15 18:08:38 +01: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
yyforyongyu
425a007aaf
loopd+liquidity: persist parameters on disk
This commit saves the RPC request used to construct the `Parameters` on
disk. Since it's a proto message, an easy way to read/write it is to
rely on the proto marshal/unmarshal methods. A side effect is that
migration also becomes easy as proto message have its own internal
mechanism to keep track of the compatibility.
2022-06-07 20:18:11 +08:00
sputn1ck
a34f22c443
make fmt 2022-05-20 10:16:47 +02:00
sputn1ck
a1271fee40
multi: fix linter issues 2022-05-20 10:16:46 +02:00
Harsha Goli
7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
Harsha Goli
0b414cb45e
main: fix feepercetn from intflags to float
Previously, the feepercent flag on autoloop was set to an IntFlag and
later converted to Float, leading to the issue where users couldn't
specify decimal rates even though we allowed it.
2022-03-01 10:55:22 -05:00
carla
2542038243
loop: allow setting swap type for individual rules 2021-12-15 09:11:49 +02:00
carla
5e24beb5a7
loop: add htlc conf target to set params 2021-12-15 09:11:48 +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
b7ba19394b
Merge pull request #415 from lightninglabs/routehints
loopin: Add --private parameter
2021-12-08 13:54:39 -05:00
Harsha Goli
05693411f7
Merge pull request #436 from arshbot/assume-yes
main: add --force to loop in/loop out
2021-12-08 13:51:45 -05: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
Harsha Goli
4299147895
main: add --private flag to loop in
Adding the --private flag informs loopd that the connected node is
considered private (all channels are marked private) and the loop in
server may have trouble routing the payment. To handle this, loopd will
construct some hophints that will be sent to the loopin server to help
route. This commit merely adds the flag to the cli.
2021-12-07 14:23:41 -05:00
Harsha Goli
5504368844
loopin: Add --route_hints parameter
Adds the --route_hints parameter to loop quote
2021-12-07 14:23:40 -05:00
carla
91a90968d0
multi: surface swap type on rpc 2021-11-30 13:18:28 +02:00
Harsha Goli
e52f6eff47
main: add --force to loop in/loop out
--force skips the confirmation prompt when performing loops. This is
super userful for scripts and negates the use of gnu yes
2021-11-17 16:30:31 -05:00
Oliver Gugger
2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 2021-11-03 19:31:21 +01:00
Andras Banki-Horvath
9af6576dae
cli: add optional last hop to the loop in quote 2021-07-30 13:22:13 +02:00
Oliver Gugger
803773bb65
loop+loopd: fix linter after re-generating protos
Apparently re-generating the protos caused the linter to pick up on
fields that are now deprecated. We need to fix that with a few comments.
2021-07-14 17:21:54 +02:00
Oliver Gugger
27fd6b3304
multi: use aperture instead of local lsat library
Since the lsat code was copied over to aperture a while ago for other
projects to use as well, we should migrate over to that shared code
also. This will give us the recently added "remove token if payment
failed and try again" feature for free along with some other small
updates to the lsat package.
2021-04-29 10:01:15 +02:00
yyforyongyu
d8f45b645c
cmd: increase max miner fee multiplier 2021-04-08 05:04:48 +08:00
yyforyongyu
82401ff1ba
cmd: prettify loop quote in/out responses 2021-03-08 20:08:49 +08:00
carla
299a0a4ff9
loop: add fee ppm to autoloop cli 2021-03-04 10:15:11 +02:00
carla
bf9dfdabbe
loop: fix typo in htlc confs 2021-02-25 10:49:31 +02:00
carla
b9aae4f8f9
loop: add peer rules to set rule command 2021-02-17 14:12:56 +02:00
carla
22bd4cabb4
looprpc: add disqualified channels to suggest swaps response 2021-02-08 09:39:03 +02:00
carla
7ba1821696
liquidity: fail suggest swaps when no rules are set
In an effort to surface more information about why autoloop is not
executing, we add an error when suggest swaps is called with no rules.
In other cases we can surface a reason enum with each rule that is set,
but in the case where we have no rules, there are no results to
accompany with reasons.
2021-02-08 09:38:23 +02:00
carla
71ace95ac8
loop: rename autoloop specific parameters 2021-02-03 08:54:48 +02:00