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

224 Commits

Author SHA1 Message Date
Boris Nagaev
e30cb5f2a8
multi: apply make fmt 2024-04-23 15:18:15 -03:00
sputn1ck
1f211e5647
swapclientserver: add listinstantouts 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
Slyghtning
5214da8822
loopd: cleanup db utils func 2024-03-01 10:02:29 +01:00
Slyghtning
755d5dc68e
loopd: new loopin state for incorrect amount sweeps 2024-02-13 15:03:03 +01:00
András Bánki-Horváth
8ca08455dd
Merge pull request #700 from bhandras/lnd-17-4
build: bump lnd dependency to v0.17.4-beta
2024-02-09 18:27:22 +01:00
Andras Banki-Horvath
12f7956fd8
build: bump lnd dependency to v0.17.4-beta 2024-02-09 18:20:18 +01:00
sputn1ck
b3fe9a9c61
loopd: add instantout quote 2024-02-08 17:52:08 +01:00
sputn1ck
7cafbe957d
loopd: add instantout handling 2024-02-06 15:07:59 +01:00
George Tsagkarelis
0914074b10
loop: integrate sweepbatcher to loopout flow 2024-01-23 20:38:10 +02:00
George Tsagkarelis
56784ab921
sweepbatcher: add sweep batch 2024-01-23 20:38:09 +02:00
George Tsagkarelis
b43fa11cc1
utils: add htlc & swap related helpers 2024-01-23 20:38:08 +02:00
George Tsagkarelis
a9be69b281
multi: use isExternalAddr flag 2024-01-23 20:38:07 +02:00
sputn1ck
f00329d7c7
loopd: hide reservation manager behind flag. 2024-01-17 15:59:08 +01:00
sputn1ck
49c40d9173
loopd: add reservation handling 2024-01-17 15:59:08 +01:00
sputn1ck
a38e817b49
swapserver: add listswaps filtering 2024-01-04 15:14:31 +01:00
Slyghtning
0bd4b7cf89
loopdb: state insufficient confirmed funds 2023-11-27 13:46:18 +01:00
Slyghtning
378d817f20
cmd: abandon api support 2023-11-27 11:14:14 +01:00
Slyghtning
5e91c446b8
loopd: abandon loop-ins 2023-11-27 11:14:13 +01:00
Slyghtning
427251d176
loopd: fix error checks and format 2023-11-15 10:51:31 +01:00
Slyghtning
79063d788a
db: refactor db opening 2023-10-13 10:39:17 +02:00
Oliver Gugger
08026dab93
multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
sputn1ck
20db07dccf
fsm: add fsm module
This commit adds a module for a finite state machine. The goal of the
module is to provide a simple, easy to use, and easy to understand
finite state machine. The module is designed to be used in future
loop subsystems. Additionally a state visualizer is provided to
help with understanding the state machine.
2023-09-07 17:41:15 +02:00
Andras Banki-Horvath
cc24bebea8
loopd: always skip migration if loop_sqlite.db file already exists
This commit ensures that we don't even check for the existence of
the loop.db file if loop_sqlite.db already present. This is to ensure
that on systems that may by any trigger restore deleted files we don't
try to re-run migration which would otherwise make loopd unable to start
up properly.
2023-08-17 19:46:06 +02:00
Slyghtning
20316042d9
trivial: clean up typos and comments 2023-08-10 15:43:33 +02:00
sputn1ck
be9ca71bf2
loopd: convert unix millisecond timestamps to seconds 2023-08-08 08:42:16 +02:00
George Tsagkarelis
921f4d06e7
multi: integrate initiator string to various calls 2023-07-28 14:43:18 +03:00
Konstantin Nick
8986763470
Merge pull request #614 from gcaracuel/tlsvalidity_flag
Allow loopd autogenerated TLS cert validity override with a new flag
2023-07-27 16:27:05 +02:00
Guillermo Caracuel
7b31f1f64d
Update loopd/config.go
Co-authored-by: George Tsagkarelis <34623190+GeorgeTsagk@users.noreply.github.com>
2023-07-27 16:12:20 +02:00
gcaracuel
123d531c8b
Allow loopd autogenerated TLS cert validity override with a new loopd flag
Co-authored-by: George Tsagkarelis <34623190+GeorgeTsagk@users.noreply.github.com>
2023-07-27 16:04:06 +02:00
Slyghtning
ca933f843c
loopd: xpub support for loop out 2023-07-27 13:51:53 +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
sputn1ck
270bc3104e
multi: add sql stores to loopd
This commit adds the ability to choose between different sql stores
for loopd. The default is sqlite, but it can be changed to postgres.
2023-06-20 18:59:32 +02:00
sputn1ck
a2abcd07d8
loopd: Run migration if boltdb exists 2023-06-20 18:59:32 +02:00
sputn1ck
becc8a38d8
multi: use context in loopdb call
This commit adds a context to our loopdb interface, which we should use
in the sqlite migration.
2023-06-19 12:28:32 +02:00
George Tsagkarelis
a48924a664
liquidity: get autoloop flag directly from params
Previously we would exclusively pass the autoloop boolean to multiple
functions while they had directly access to the manager's parameters.
With this commit we remove this explicit flag from the various function
interfaces and retrieve the value directly from the parameters.
2023-05-29 13:24:16 +03:00
Slyghtning
043f780198 loopd: adding getInfo rpc call 2023-05-24 17:50:24 +02:00
George Tsagkarelis
fad9f40ae3
liquidity+loopd: add easy autoloop
Adds the easy autoloop function which executes a budget update and the
best easy-autoloop swap. The easy-autoloop function re-uses functions
used in the normal autoloop that relate to on-going swaps and traffic
summary.
2023-05-22 15:48:38 +03:00
sputn1ck
ec2ed79f48
loopd: fix macaroons typo
This commit fixes a typo which leads to a broken macaroon store.
2023-03-29 16:19:08 +02:00
Andras Banki-Horvath
451311d582
build: bump lnd dep to v0.16.0-beta 2023-03-29 15:39:14 +02:00
George Tsagkarelis
aca6428b0e
liquidity+loopd: move last budget refresh to parameters 2023-03-16 02:10:32 +02:00
George Tsagkarelis
af7a470aea
liquidity+loopd: add sticky loop out swap with amount backoff 2023-03-09 00:43:07 +02:00
George Tsagkarelis
b025b9ae37
multi: add recurring autoloop budget 2023-02-22 19:48:03 +02:00
Andras Banki-Horvath
4ab6c65186
dep+build: bump LND dependency to include GenCertPair fix 2023-02-09 11:22:14 +01:00
Andras Banki-Horvath
476f47275b
loopd: set minimum LND version to 0.15.99-beta 2023-02-06 20:46:03 +01:00
Andras Banki-Horvath
a7451622e5
mod: bump LND and lndclient to include musig2 1.0rc2 changes
This commit bumps LND and lndclient to make it possible to upgrade
taproot HTLC construction with a MuSig2 version. This is required to
support both old (MuSig2 0.4) and new (MuSig2 1.0) clients.
2023-02-06 20:46:03 +01:00
George Tsagkarelis
fa0393b331
multi: add OutAddr parameter for autoloop loop out 2022-12-16 12:02:46 +02:00
Andras Banki-Horvath
049b17ff96
misc: refactor loop tests to use require where possible 2022-11-30 18:16:45 +01:00
Andras Banki-Horvath
bdb4b773ed
swap: refactor htlc construction to allow passing of internal keys
This commit is a refactor of how we construct htlcs to make it possible
to pass in internal keys for the sender and receiver when creating P2TR
htlcs. Furthermore the commit also cleans up constructors to not pass in
script versions and output types to make the code more readable.
2022-11-30 18:16:44 +01:00
Andras Banki-Horvath
105d3d1ab4
loopd: bump minimum lnd version to v0.15.4 2022-11-18 21:24:31 +01:00