Johan T. Halseth
c7e8c9f964
loopd: make RPC listener configurable
...
Allows to use external listener, such as in-memory.
5 years ago
Johan T. Halseth
704bfff8f6
cmd+loopd: new cmd/loopd main method replacing the one now in ./loopd
...
This allows loopd to be used as a library by importing it and calling
Start.
5 years ago
Johan T. Halseth
644b5b16f7
cmd+loopd: move loopd to new folder loopd
5 years ago
Oliver Gugger
47bf510bd8
loopd: add RPC method to list tokens
5 years ago
Oliver Gugger
31bb18255e
lsat+loopd: add logger
5 years ago
Oliver Gugger
49cbe9aa63
loopd: add swap server TLS cert path
...
We need the ability to connect to a swap server that uses
a self-signed certificate. The LSAT proxy cannot proxy insecure
gRPC requests since they don't conform to the HTTP 1.1 standard.
Therefore the LSAT proxy fill only serve TLS connections.
This means, we need the TLS path option to specify the certificate
the test environment LSAT proxy uses.
5 years ago
Johan T. Halseth
ea1f9ff8ba
looprpc: add SwapPublicationDeadline to client proto
...
cmd/loopd swapclient_server: use SwapPublicationDeadline from LoopOutRequest
5 years ago
Oliver Gugger
b574e344ea
multi: add persistent logger
5 years ago
Oliver Gugger
69f2af9fdc
loop+cmd: extract types into swap module
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
0cff92d265
looprpc+cmd: deprecate dynamic terms
...
We move destination and cltv to QuoteResponse, and deprecate the
non-static fields.
Terms will now only show max/min swap sizes.
5 years ago
Oliver Gugger
489ab5620e
loopd: receive external HTLC flag in loop in quote request
5 years ago
Wilmer Paulino
c16e170338
multi: expose confirmation target for loop out HTLC sweep
5 years ago
Wilmer Paulino
a138790822
multi: expose confirmation target for loop out quotes
5 years ago
Joost Jager
13ab5a219f
loopd: remove mainnet loop in block
5 years ago
Joost Jager
6aa9071c4d
looprpc+loop: report swap cost over rpc
5 years ago
Joost Jager
6efa62347b
multi: store swap cost in database
5 years ago
Joost Jager
ca3cfc1431
loopd: use proper default swap server address
...
This commit fixes the bug that caused running loopd on testnet to
connect to the mainnet swap server.
5 years ago
Olaoluwa Osuntokun
f1f72bb2d1
cmd/loopd: only replace testnet swapserver if not already set
6 years ago
Olaoluwa Osuntokun
6037d0105f
cmd/loopd: rename MacaroonPath to MacaroonDir
6 years ago
Olaoluwa Osuntokun
6d00809575
cmd/loopd+lndclient: based on the network, update the macaron path if unset
6 years ago
Joost Jager
7f9ab312fb
loopd: fix nil ptr derefence for monitor
...
Reason for the crash was an unpopulated HtlcAddress field.
6 years ago
Joost Jager
30c7d71c57
use np2wsh for loop in htlc
6 years ago
Joost Jager
b5d2fb3894
loopd: add loop in state InvoiceSettled
6 years ago
Joost Jager
2e48ead6d6
loopd: loop in from external address
...
Allow user to specify that htlc will be published by an external source.
In that case no internal htlc tx will be published.
To facilitate sending to the htlc address, the swap initiation response
is extended with that address.
6 years ago
Joost Jager
8b2da64b0a
loopd: disable mainnet loop in
6 years ago
Joost Jager
3e960b8b54
multi: loop in swap
6 years ago
Joost Jager
9a1b60b4be
multi: always supply chain params when decoding addresses
6 years ago
Olaoluwa Osuntokun
c0a1b4e2ac
cmd/loopd: point to testnet loop server for testnet mode
...
Fixes #20 .
6 years ago
Olaoluwa Osuntokun
fff001fd2e
cmd/loopd: show version on start up, add new --version flag
6 years ago
Alex Bosworth
2e4b5dfd37
loopd: increase swap fee window
6 years ago
Wilmer Paulino
eb8277b9f9
cmd/loopd: add REST proxy
6 years ago
Wilmer Paulino
9edb910f53
looprpc: generate client REST definitions
6 years ago
Joost Jager
6eb9861eb4
loopd: persistent configuration
6 years ago
Olaoluwa Osuntokun
94f347e673
multi: finalize rename from uncharge to loop out
6 years ago
Olaoluwa Osuntokun
925b52e01f
multi: rename swapcli to loop, swapd to loopd
6 years ago