Commit Graph

63 Commits (cecb26c495897cdd69f5f712e8609a2ae992fc15)

Author SHA1 Message Date
Olaoluwa Osuntokun e4ffb0803c
Merge pull request #128 from Free-FreeThinker/free--max-routing-fee-config
Add option for max swap off-chain routing fee
4 years ago
FreeThinker 321f5f791d cmd/loop: add an option for max off chain swap fee 4 years ago
Johan T. Halseth 18608a6aa3
cmd/loop: account for fast swap in loopout cmd quote 4 years ago
Johan T. Halseth dcc5a8ce88
cmd/loop: add fast option to quote cmd 4 years ago
Johan T. Halseth c7e8c9f964
loopd: make RPC listener configurable
Allows to use external listener, such as in-memory.
4 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.
4 years ago
Johan T. Halseth 644b5b16f7
cmd+loopd: move loopd to new folder loopd 4 years ago
Oliver Gugger fa62caa891
cmd/loop: add command to list tokens 4 years ago
Oliver Gugger 47bf510bd8
loopd: add RPC method to list tokens 4 years ago
Oliver Gugger 31bb18255e
lsat+loopd: add logger 4 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.
4 years ago
Johan T. Halseth 7ea0e35299
cmd/loop: delay swap by 30 minutes by default, add --fast to loopout command
We now delay the swap by up to 30 minutes by deafult. To keep the
current imemdiate swap, --fast flag is added.
4 years ago
Johan T. Halseth ea1f9ff8ba
looprpc: add SwapPublicationDeadline to client proto
cmd/loopd swapclient_server: use SwapPublicationDeadline from LoopOutRequest
4 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
Oliver Gugger 36838cf7f4
multi: fix most obvious linter errors 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 c00f831675
cmd/loop: handle external loop in flag 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 5 years ago
Olaoluwa Osuntokun 893954e69b
Merge pull request #47 from alexbosworth/decrease-max-routing-fee
cmd/loop: reduce off-chain payment max-fee
5 years ago
Olaoluwa Osuntokun 6037d0105f
cmd/loopd: rename MacaroonPath to MacaroonDir 5 years ago
Olaoluwa Osuntokun 6d00809575
cmd/loopd+lndclient: based on the network, update the macaron path if unset 5 years ago
Alex Bosworth cdd5a7eea0
cmd/loop: reduce off-chain payment max-fee 5 years ago
Joost Jager 7f9ab312fb
loopd: fix nil ptr derefence for monitor
Reason for the crash was an unpopulated HtlcAddress field.
5 years ago
Joost Jager 30c7d71c57
use np2wsh for loop in htlc 5 years ago
Joost Jager b5d2fb3894
loopd: add loop in state InvoiceSettled 5 years ago
Joost Jager f7676c3489
loop: show correct swap type 5 years ago
Joost Jager f7f9751a1a
loop: hide loop in channel selection flag 5 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.
5 years ago
Joost Jager 8b2da64b0a
loopd: disable mainnet loop in 5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago
Joost Jager 9a1b60b4be
multi: always supply chain params when decoding addresses 5 years ago
Olaoluwa Osuntokun ec40647147
Merge pull request #25 from Roasbeef/testnet-server
cmd/loopd: point to testnet loop server for testnet mode
5 years ago
Olaoluwa Osuntokun e14e7e94b2
Merge pull request #26 from alexbosworth/keyword-amt-argument
cmd/loop: add amount as a discrete argument
5 years ago
Olaoluwa Osuntokun c0a1b4e2ac
cmd/loopd: point to testnet loop server for testnet mode
Fixes #20.
5 years ago
Francisco Calderón c9e482e58f
Change loopd global option parameter to rpcserver 5 years ago
Alex Bosworth dd357ddb22
cmd/loop: add amount as a discrete argument 5 years ago
Joost Jager 4c910f28b0
loop: fix cmd line arg parsing bug 5 years ago
Olaoluwa Osuntokun b744afaa6f
cmd/loop: add new key word argument for optional destination sweep address 5 years ago
Olaoluwa Osuntokun f089ff3484
cmd/loop: use loop.Version() for loop cli version 5 years ago
Olaoluwa Osuntokun fff001fd2e
cmd/loopd: show version on start up, add new --version flag 5 years ago
Olaoluwa Osuntokun 48d34ed398
cmd/loop: add command for quote 5 years ago