Joost Jager
8c544bf2ba
loopdb: store outgoing channel set
...
Upgrade the database schema to allow for multiple outgoing channels.
This is implemented as an on-the-fly migration leaving the old key in
place.
4 years ago
Joost Jager
503c83c29f
loopdb: unroll shared fetch logic
...
Split the fetch logic so that it is easier to add loop type-specific
serialization.
4 years ago
Joost Jager
9927139dd3
loopdb: extract update deserialization
...
Preparation to prevent code duplication in future refactoring.
4 years ago
Joost Jager
ba5577748b
loopdb: unroll shared creation logic
...
Another step in the separation of loop in and loop out. This prepares
for a new loop out-specific key to be added.
4 years ago
Johan T. Halseth
034cba5b95
loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract
...
We also add a migration for the new LoopOut DB format.
5 years ago
Joost Jager
24a1b8d642
loopdb: initialize new database with current version
5 years ago
Joost Jager
1b306ad425
loopdb: replace swap state enum by state data object
...
This commits lays down the foundation in the database for adding more
persistent state data to swaps.
5 years ago
Joost Jager
6a0a9556a0
loopdb: add loop in
...
This commit adds the required code to persist loop in swaps. It also
introduces the file loop.go to which shared code is moved.
Sharing of contract serialization/deserialization code has been
reverted. The prepay fields do not apply to loop in, but were part of
the shared contract struct. Without also adding a migration, it wouldn't
be possible to keep the shared code.
In general it is probably more flexible to keep the contract
serialization code separated between in and out swaps.
6 years ago
Joost Jager
9a1b60b4be
multi: always supply chain params when decoding addresses
6 years ago
Olaoluwa Osuntokun
94f347e673
multi: finalize rename from uncharge to loop out
6 years ago
Olaoluwa Osuntokun
cdcb9f8345
loopdb: make new loopdb package to house persistent storage
6 years ago