Commit Graph

110 Commits (master)

Author SHA1 Message Date
sputn1ck 1f96a61d21
looprpc: add listinstantouts 2 months ago
sputn1ck 6a62be0d09
instantout: add addr to send funds to 2 months ago
Slyghtning 6f3c68fb21
looprpc: new state for incorrect amount sweeps 2 months ago
sputn1ck ca8f91ab77
looprpc: add instantout quote 3 months ago
sputn1ck 6c07f88458
looprpc: add reservations to loop out 3 months ago
George Tsagkarelis 627eb5cb68
looprpc: add is_external_addr to loopout req 3 months ago
sputn1ck 091c0a86bd
looprpc: add reservation rpcs 3 months ago
sputn1ck 90f5a8851e
looprpc: add swap filter 4 months ago
Slyghtning 0060e3fe53
looprpc: failure reason insufficient confirmed balance 5 months ago
Slyghtning 8612912e97
looprpc: abandon swap api
swaprpc: abandon swap api
5 months ago
Oliver Gugger bac1416636
multi: bump lnd version to v0.17.0-beta 7 months ago
Slyghtning 647333ac64
looprpc: account field for LoopOutRequest 9 months ago
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.
10 months ago
Slyghtning d84af7065c looprpc: add rest entries for getinfo rpc 11 months ago
Slyghtning 7f6f265db3 looprpc: request and response params for new getInfo rpc 11 months ago
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.
11 months ago
George Tsagkarelis 72f284ecb4
looprpc: restore autoloop_budget_start_sec 1 year ago
George Tsagkarelis 74f6cc8d4b
looprpc: add last budget refresh to rpc parameters 1 year ago
George Tsagkarelis b025b9ae37
multi: add recurring autoloop budget 1 year ago
George Tsagkarelis 0ef205cb24
looprpc: add autoloop outaddr 1 year ago
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.
1 year ago
Evan Kaloudis 84d3adf969
looprpc/gen_protos.sh: remove js build tag 2 years ago
Andras Banki-Horvath 901a935514
loopin: enable p2tr htlcs without keyspend 2 years ago
sputn1ck ece0f76e7f
loop: update listswaps api 2 years ago
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2 years ago
carla 16799838f7
multi: surface loop in parameters on rpc 2 years ago
carla 4689040333
multi: surface suggested loop in swap on rpc 2 years ago
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.
2 years ago
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
2 years ago
carla 91a90968d0
multi: surface swap type on rpc 2 years ago
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