lnd/invoices
positiveblue 5ff5225245
multi: break invoice depenency on channeldb
Now that we have the new package `lnd/channeldb/models` we can invert the
depenency between `channeldb` and `invoices`.

- Move all the invoice related types and errors to the
`invoices` package.

- Ensure that all the packages dealing with invoices use the types and
  interfaces defined in the `invoices` package.

- Implement the InvoiceDB interface (defined in `lnd/invoices`) in
  channeldb.

- Add new mock for InterfaceDB.

- `InvoiceRegistery` tests are now in its own subpacakge (they need to
  import both invoices & channeldb). This is temporary until we can
  decouple them.
2023-01-16 07:31:09 -08:00
..
errors.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
interface.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoice_expiry_watcher_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoice_expiry_watcher.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoiceregistry_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoiceregistry.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoices.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
log.go invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00
mock.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
resolution_result.go trivial typo[skip ci] 2022-07-01 11:21:46 +02:00
resolution.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
test_utils_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
test_utils.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
update.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00