loop/loopdb
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.
2019-03-28 11:47:38 +01:00
..
codec.go loopdb: make new loopdb package to house persistent storage 2019-03-06 20:33:27 -08:00
interface.go loopdb: add loop in 2019-03-28 11:47:38 +01:00
log.go loopdb: make new loopdb package to house persistent storage 2019-03-06 20:33:27 -08:00
loop.go loopdb: add loop in 2019-03-28 11:47:38 +01:00
loopin.go loopdb: add loop in 2019-03-28 11:47:38 +01:00
loopout.go loopdb: add loop in 2019-03-28 11:47:38 +01:00
meta.go loopdb: make new loopdb package to house persistent storage 2019-03-06 20:33:27 -08:00
store.go loopdb: add loop in 2019-03-28 11:47:38 +01:00
store_test.go loopdb: add loop in 2019-03-28 11:47:38 +01:00
swapstate.go loopdb: add loop in 2019-03-28 11:47:38 +01:00