* initial commit
* add docs
* black & prettier
* mobile styles
* add print view
* prettier
* make format
* initial migrations un-messed
* make migrations work for sqlite
* add invoices table
* clean migrations
* add migration to conv
* fix card size
* hopefully fix test migration
* add missing status
* timestamp
* init testing
* remove draft invoice by default on create
* what should i test
* make format
* raise if not invoice
* new test and renaming
* fix issue reported by @talvasconcelos which prevented users from setting status on creation
* readme
* run black
* trying to make tests work
* make it work again
* send paid amount
* partial pay flow
* good coding
* can't get these test to work
* clean up and commenting
* make format
* validation for 2 decimals
Co-authored-by: ben <ben@arc.wales>
Co-authored-by: Tiago vasconcelos <talvasconcelos@gmail.com>
* added test for empty post data, for issue #847
* black
* fixed the failing testcase
* Update lnbits/decorators.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing
* fix regtest (#867)
Co-authored-by: dni <dni.khr@gmail.com>
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing
Co-authored-by: dni ⚡ <office@dnilabs.com>
Co-authored-by: dni <dni.khr@gmail.com>
* new argument: unhashed_description
* accept in api
* set unhashed_description for memo case
* bolt11.py: dont be like CLN, accept the hash
* send hash to lnd in b64
* fix cln
* skip descr_hash for cln
* skip
* format
* readd lndgrpc
* debug logging
* Use TrackPaymentV2
* /v2/router/track
* lnd_router_grpc
* flag for blocking check
* error handling
* fix name
* regtest lndgrpc
* new test pipeline
* fix env
* check for description hash
* remove unnecessary asserts for clarity
* assume that description_hash is a hash already
* no lock
* description hashing in backend
* restore bolt11.py
* /api/v1/payments with hex of description
* comment
* refactor wallets
* forgot eclair
* fix lnpay
* bytes directly
* make format
* mypy check
* make format
* remove old code
* WIP status check
* LND GRPC docs
* restore cln to main
* fix regtest
* import
* remove unused import
* format
* do not expect ok
* check ok
* delete comments
* create new Dockerfile using poetry
* dont use unsure docker hub image
* add example env variable to docker command
* remove copy of lnbits, and order of commands
* add build.py for static files
* add compiled resources to docker ignore, so we don't accidently add it to image
* use generic python
* CMD with arguments
Co-authored-by: dni <dni.khr@gmail.com>
* black and isort for tests
* black and isort for build
* use poetry in Makefile, update pyproject.toml dependencies and add configs for black, pytest, mypy, isort there
* switching github workflow to poetry
* set mininum version to python 3.7
* fix tests
* add types-protobuf to dev packages
* fix cln regtest
* update docs
* try fix 1
* mypy fix2
* fix isort formatting workflow
* add prettier to dev docs
* multiple valid python version for pyproject
* update poetry.lock
* remove development installation, not needed anymore
* fix migration workflows
* format into one test
* fix yaml
* fix pipeline
* fix pipeline
* fix again
* fix
* rename checks
* remove venv tests
* venv test once
Co-authored-by: dni <dni.khr@gmail.com>
* fixed poetry logs
* make isort happy
* Poetry: uvicorn .env and command line arguments
* restore commands.py
* format
* own it
Co-authored-by: dni <dni.khr@gmail.com>
* fix: rpc library install when using LND
fixes#563
* chore: improve some out of date docs
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>