lnd/lnrpc/invoicesrpc
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
..
addinvoice_test.go lnrpc: provide hop hints when adding an invoice with no amount 2022-11-12 05:01:10 -05:00
addinvoice.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
config_active.go rpcserver+invoicesrpc: alias-aware AddInvoice,AddHoldInvoice rpc 2022-07-07 17:10:29 -04:00
config_default.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
driver.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
invoices_grpc.pb.go lnrpc: re-compile protos w/ Go 1.19 2022-08-24 11:43:00 -05:00
invoices_server.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoices.pb.go lnrpc: update invoice request expiry comment 2023-01-12 09:17:34 +09:00
invoices.pb.gw.go lnrpc/invoicesrpc: add new invoice ref LookupInvoiceV2 method 2021-10-28 15:49:25 -07:00
invoices.pb.json.go lnrpc/gen_protos.sh: remove js build tag 2022-09-07 18:32:05 -04:00
invoices.proto lnrpc: update invoice request expiry comment 2023-01-12 09:17:34 +09:00
invoices.swagger.json lnrpc: update invoice request expiry comment 2023-01-12 09:17:34 +09:00
invoices.yaml lnrpc/invoicesrpc: add new invoice ref LookupInvoiceV2 method 2021-10-28 15:49:25 -07:00
log.go lnrpc: fix log.go files 2022-04-01 18:12:59 -07:00
utils.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00