core-lightning/plugins/bkpr
niftynei a0b34066e0 bkpr: add dumpincomecsv command
Prints out the `listincome` events as a CSV formatted file

Current csv_format options:

- koinly
- cointracker
- harmony (https://github.com/harmony-csv/harmony)
- quickbooks*

*Quickbooks expects values in 'USD', whereas we print values out
in <currency> (will be noted in the Description field). This won't work
how you'd expect -> you might need to do some conversion etc before
uploading it.

All amounts emitted as 'btc' w/ *11* decimals.
2022-07-28 12:08:18 +09:30
..
test bkpr: properly account for onchain fees for channel closes 2022-07-28 12:08:18 +09:30
account_entry.c bkpr: properly account for onchain fees for channel closes 2022-07-28 12:08:18 +09:30
account_entry.h bkpr: properly account for onchain fees for channel closes 2022-07-28 12:08:18 +09:30
account.c bkpr: save closed_count for account, when known 2022-07-28 12:08:18 +09:30
account.h bkpr: save closed_count for account, when known 2022-07-28 12:08:18 +09:30
bookkeeper.c bkpr: add dumpincomecsv command 2022-07-28 12:08:18 +09:30
chain_event.c bkpr: move json_to functions to respective type files 2022-07-28 12:08:18 +09:30
chain_event.h bkpr: move json_to functions to respective type files 2022-07-28 12:08:18 +09:30
channel_event.c bkpr: move json_to functions to respective type files 2022-07-28 12:08:18 +09:30
channel_event.h bkpr: move json_to functions to respective type files 2022-07-28 12:08:18 +09:30
db.c bkpr: save closed_count for account, when known 2022-07-28 12:08:18 +09:30
db.h bkpr: first attempt at database code for accounting 2022-07-28 12:08:18 +09:30
incomestmt.c bkpr: add dumpincomecsv command 2022-07-28 12:08:18 +09:30
incomestmt.h bkpr: add dumpincomecsv command 2022-07-28 12:08:18 +09:30
Makefile bkpr: add a 'listincome' event 2022-07-28 12:08:18 +09:30
onchain_fee.c bkpr: move json_to functions to respective type files 2022-07-28 12:08:18 +09:30
onchain_fee.h bkpr: move json_to functions to respective type files 2022-07-28 12:08:18 +09:30
recorder.c bkpr: add a 'consolidate-fees' flag to the income stmt 2022-07-28 12:08:18 +09:30
recorder.h bkpr: add a 'consolidate-fees' flag to the income stmt 2022-07-28 12:08:18 +09:30