Commit Graph

2671 Commits

Author SHA1 Message Date
Vlad Stan
1f139884fe
WatchOnly Extension - add Serial Port communication (#839)
* feat: add `Share PSBT` button with options

* feat: add basic communication via the serial port

* chore: code format

* feat: send data to and from serial port

* fix: port disconnect

* feat: handle psbt extract

* feat: show signed transaction details

* fix: handle Connect/Disconnect failure state

* feat:small UI improvements

* feat: broadcast transaction (partial solution)

* feat: integrate psbt response from HWW

* feat: login and send commands to HWW

* feat: ui improvements

* feat: ui/ux improvements

* feat: more small UI impreovemsnts

* feat: simplify UI

* feat: add `help` command

* feat: add wipe command

* feet: add `seed` command

* feat: add `restore` command

* feat: always show PSBT input text (for outside PSBTs)

* feat: show spinner while signing tx

* feat: hide panels after transaction is broadcast

* feat: basic use of custom components

* refactor: move components one folder up

* refactor: extract wallet-config

* refactor: extract `wallet-list` component

* refactor: clean-up

* chore: code format html component files

* refactor: extract address-list component

* refactor: extract `history` component

* refactor: extract `utxo-list` component

* feat: UI/UX improvements

* feat: partial payment redesign

* refactor: rename `fee` to `fee-rate`

* refactor: rename component

* refactor: extract `send-to` component

* refactor: payment: first migration

* fix: init `sendToList`

* fix: change address

* fix: change address and `Select All` coins

* feat: show custom fees & two way binding for addresses

* fix: scanAddressesWithAmount

* fix: max amount

* fix: coin selection mode

* chore: code clean-up

* feat: shuffle the UI

* fix: change amount

* feat: update tx size in real time

* fix: coin selection

* fix: show erro messages

* fix: psbt generation

* refactor: move serial port logic

* refactor: payment component

* refactor: code clean-up; use `slot` for `serial-signer`

* feat: toggle serial port

* feat: add Disconnect command

* feat: prompt for `Connect` and `Login` before signing

* refactor: send psbt to device

* feat: extract signed transaction

* refactor: code clean-up

* feat: show auth green icon

* chore: code clean-up

* feat: show console

* feat: allow `Connect` from dropdown menu

* fix: stop if serial port cannot be open

* feat: confirm outputs and fee

* feat: add cancel command

* fix:  add `sats-denominated` for confirmations

* feat: wait for HWW to authenticate, then open dialog

* feat: share PSBT as text

* refactor: extract `refreshAddresses`

* feat: small UI improvements

* feat: add default `Mainnet` network

* feat: fix mempool endpint

* feat: propagate config update only when explicitly updated

* feat: add network for wallet accounts

* fix: stop scanning when network changed

* chore: code clean-up

* chore: code clean-up

* feat: show hardware device Xpub option

* fix: handle failed to parse psbt

* feat: add accounts using the HWW

* fix: testnet is in the bip32 derivation path

* feat: add spinner while wallet account is created

* fix: check network and masterpub for duplicate accounts

* feat: integrate transaction broadcast

* feat: add password confirmation for `Wipe` and `Restore`

* fix: fingerprint is not unique per account (it is the fingerprint of the master)

* chore: code clean-up, remove `masterpub_fingerprint`

* fix: account name diplay

* chore: code format

* fix: memppol links

* fix: shortcut buttons

* fix: note update

* chore: code format

* chore: clean-up rebase left overs

* chore: clean-up

* feat: less technical labels for addresses

* feat: add serial port config params

* fix: address type selection

* chore: drop `mempool` table

* fix: change & fee value

* fix: handle no input signed scenario

* fix: sat/btc unit

* fix: small UI stuff

* doc: update the readme

* Update README.md
2022-08-09 11:00:09 +02:00
Vlad Stan
63849a0894
Generalize conv.py (#849)
* feat: generalize the script for  `sqlite` to `postgres`

* fix: revert db connection params

* doc: remove manual conversion docs

* chore: fix formatting

* fix: add back instructions for `mock_data.zip`

* fix: exclude SQLite tables from migration

* fix: rename `your_extension.db` to `your_extension.sqlite3`
2022-08-09 10:45:50 +02:00
Tiago Vasconcelos
af8af54376
Fix/hotfix custom design (#850)
* allow to toggle custom desing on and off

* make custom design off by default, toggle custom design
2022-08-09 10:05:37 +02:00
calle
b83fb1d5d8
VoidWallet: return PaymentStatus(None) (#845) 2022-08-04 18:40:46 +02:00
calle
7fc1361475
cln invoice only int (#844) 2022-08-04 17:40:04 +02:00
calle
9b27c2da01
argparser respect boolean arguments (#842) 2022-08-04 16:37:48 +02:00
dni ⚡
48a57513f4
create new Dockerfile using poetry (#806)
* 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>
2022-08-04 08:05:51 +02:00
2624789
fa2a0ab1bd
Fix Get a withdraw link (#617) 2022-08-03 15:06:25 +02:00
calle
8535d70d36
Poetry dev (#837)
* 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>
2022-08-03 14:10:32 +02:00
calle
2edaa0ee03
Poetry: uvicorn with .env and command line arguments (#836)
* 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>
2022-08-03 13:16:50 +02:00
calle
91fefdb83d
migration for extensions (#835) 2022-08-03 11:27:08 +02:00
fusion44
989c6b51ba
Updates to documentation (#574)
* 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>
2022-08-03 10:03:01 +02:00
Arc
d38ff896f6
update dev docs for internal testing before pushing (#801) 2022-08-03 09:55:20 +02:00
MatthewCroughan
28af0a2100
nix: add defaultText to services.lnbits.package (#803)
Without this, evaluating the module doesn't provide a default value visible on search.nixos.org
2022-08-03 09:52:04 +02:00
Tiago Vasconcelos
716a30a0fc
make instant wallet available in custom vouchers (#830) 2022-08-03 09:51:16 +02:00
Arc
972a1d4ac9
Update installation.md 2022-08-02 22:02:53 +01:00
Arc
a948f0f8d9
Update installation.md 2022-08-02 22:01:09 +01:00
Arc
08fd967f8a
Update installation.md 2022-08-02 22:00:55 +01:00
Arc
3b6c2b0103
Update installation.md 2022-08-02 21:59:55 +01:00
Arc
88ef3a38fc
Update installation.md 2022-08-02 21:01:58 +01:00
calle
b3c866fd1d
Code health: Small linting fix (#813)
* small linting fix

* je lint therefore je suis
2022-08-02 16:17:47 +02:00
Tiago Vasconcelos
9154660479
Fix/tipjar desc and satspay (#824)
* fix tipjar description from screwing charges

* small fix for charges when onchain isn't set

* make dni happy

* make black happy
2022-08-02 16:16:32 +02:00
Tiago Vasconcelos
c36da4172c
reset the form after close (#821) 2022-08-02 16:14:52 +02:00
Arc
1374aabf92
Merge pull request #826 from lnbits/poetrypy
poetry python dependency to any 3.9
2022-08-01 18:59:10 +01:00
ben
b8c1b2ad8f Set dep in poetry 2022-08-01 18:58:36 +01:00
Arc
0b2c01e388
Merge pull request #825 from lnbits/poetrypy
poetry python dependency to any 3.9
2022-08-01 18:49:19 +01:00
ben
cb87b55e9d format 2022-08-01 18:48:56 +01:00
ben
da57f55493 poetry python dependency to any 3.9 2022-08-01 18:46:28 +01:00
ben
fed01b70bd Set python version in Poetry 2022-08-01 18:37:37 +01:00
calle
d841690460
try except for check payment status (#820) 2022-08-01 16:51:19 +02:00
calle
9c19b61e4a
Mega-merge 3: CLN update client lib with descriptionhash support (WIP) (#792)
* CoreLightningWallet
2022-08-01 16:41:50 +02:00
calle
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) (#814)
* description hashing in backend
2022-08-01 16:20:25 +02:00
calle
c88e6b0e62
Mega-merge 1: Test invoice creation with description hash (WIP) (#812)
* check for description hash

* remove unnecessary asserts for clarity

* assume that description_hash is a hash already

* no lock

* restore bolt11.py

* /api/v1/payments with hex of description

* comment
2022-08-01 16:12:25 +02:00
Tiago Vasconcelos
a1919e0619
reset data (#819) 2022-08-01 12:57:30 +02:00
Tiago Vasconcelos
925a7735da
change z-index for wallet tab (#818) 2022-08-01 12:56:56 +02:00
Arc
28c50d93ce
Merge pull request #817 from lnbits/clichefund
Adds Cliche as a funding source
2022-08-01 10:47:26 +01:00
ben
457829de0c Make format 2022-08-01 10:22:51 +01:00
ben
cf85018f9d Queens English 2022-08-01 10:19:07 +01:00
Arc
f7a675962a
Update lnbits/wallets/cliche.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-01 09:51:52 +01:00
ben
3e40d91466 changed to hex 2022-08-01 09:50:24 +01:00
ben
84cb581207 mypy 2022-08-01 09:48:00 +01:00
ben
0d4ccad6d7 some mypy 2022-08-01 09:41:03 +01:00
ben
17cd1dec47 Added dependencies 2022-08-01 09:26:15 +01:00
ben
723d7fffd2 Changed back to VoidWallet 2022-08-01 08:58:21 +01:00
ben
c6b72f7f47 Make format 2022-08-01 08:56:37 +01:00
ben
940ef26003 format 2022-07-31 23:51:57 +01:00
ben
cac7e1e3c0 Works almost
Stream needs work
2022-07-31 23:46:42 +01:00
calle
c9c3dd3f66
add coverage report for regtest tests (#816) 2022-07-31 19:48:20 +02:00
Arc
c075b28a96
Put venv server un direction back 2022-07-31 10:22:29 +01:00
calle
f24d593f00
Fix docker staticfiles (#811)
* Fix staticfiles for docker install

* docker build instructions

* all tests python 3.9

Co-authored-by: cryptoteun <73664763+cryptoteun@users.noreply.github.com>
2022-07-30 17:09:14 +02:00