Commit Graph

2716 Commits

Author SHA1 Message Date
Lee Salminen
a6f0acc030 update readme 2022-08-21 10:31:47 -06:00
Lee Salminen
f6a301668b Revert "convert to using lnbits card id instead of card uid"
This reverts commit 971d8f34e8.
2022-08-21 10:30:25 -06:00
Lee Salminen
38ef4f3a78 Revert "surface the ID"
This reverts commit b11ddf3d61.
2022-08-21 10:30:10 -06:00
Lee Salminen
c4ffd45485 more readme 2022-08-21 10:19:34 -06:00
Lee Salminen
ec9005ffca add info about {card_id} in readme 2022-08-21 10:18:28 -06:00
Lee Salminen
b11ddf3d61 surface the ID 2022-08-21 10:06:39 -06:00
Lee Salminen
971d8f34e8 convert to using lnbits card id instead of card uid 2022-08-21 10:00:16 -06:00
Lee Salminen
a8bc3ea870 card_uid is always upper 2022-08-21 09:47:14 -06:00
Lee Salminen
f41c43cbf4 get the uid back into bytes 2022-08-21 09:09:01 -06:00
Lee Salminen
9dd7d30716 format 2022-08-21 09:02:20 -06:00
Lee Salminen
4242a82029 Add a secondary route with the card_uid appended to it. 2022-08-21 08:58:38 -06:00
Lee Salminen
db83d803f8 add .upper() to other side of the condition 2022-08-21 07:32:11 -06:00
Lee Salminen
6898412e6c more validation 2022-08-19 16:54:06 -06:00
Lee Salminen
302ccfd429 add better error handling 2022-08-19 16:52:06 -06:00
Lee Salminen
b80f2f8e4d error handling if bad input data in db 2022-08-19 16:47:33 -06:00
Lee Salminen
a28bedf430 update link, this will work once merged to main 2022-08-19 08:45:27 -06:00
Lee Salminen
43db91641a .upper() on p and c to handle breez wallet lower-casing the whole url 2022-08-19 07:34:46 -06:00
Lee Salminen
89130bd1fb once over on README 2022-08-14 18:34:19 -06:00
Gene Takavic
0e5f6ac586 adapt to bolt-nfc-android-app 2022-08-14 23:52:55 +02:00
Lee Salminen
293e5394a8 run make format 2022-08-14 10:58:35 -06:00
Lee Salminen
4c758f4665 re-create @iWarpBTC commit ID a9df953990ea454e8cafc87f64395efc1929c321 2022-08-14 10:52:58 -06:00
iWarpBTC
f8d4c39b1e basic readme 2022-08-14 10:52:58 -06:00
iWarpBTC
c04b0a1905 Update index.html
prettier
2022-08-14 10:52:58 -06:00
Gene Takavic
5b8d317441 black & isort 2022-08-14 10:52:58 -06:00
iWarpBTC
5af49e3801 comments and hints 2022-08-14 10:52:58 -06:00
iWarpBTC
2f497ac0ee retreiving hits 2022-08-14 10:52:58 -06:00
iWarpBTC
3cb62d1899 recording card tapping 2022-08-14 10:52:58 -06:00
iWarpBTC
4fab2d3101 new extension
just proof of concept
2022-08-14 10:52:58 -06:00
Lee Salminen
c32ff1de59
New Extension: Invoicing (#733)
* 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>
2022-08-13 21:37:44 +02:00
Tiago Vasconcelos
197ff7d054
Core: reserve fee as an .env variable (#631)
* reserve fee as an .env variable

* fixed bad import

* Update .env.example

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/core/services.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/core/services.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/settings.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* variable consistent names

* fix services.py variable names

* percent default fix

* Update lnbits/settings.py

int to float

* Update lnbits/settings.py

int to float

* Update .env.example

int to float

* make format

* fixed failing bleskomat test, expecting 2000 msats fee

* Update tests/extensions/bleskomat/test_lnurl_api.py

revert to 2 sat

* Update .env.example

* Update lnbits/settings.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 20:19:08 +02:00
dni ⚡
d989441587
added test for issue #847 and fixed it! (#848)
* 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>
2022-08-13 14:47:29 +02:00
dni ⚡
034813a1ab
stuck in retrying backend loop, fix issue #652 (#862)
* maybe solution to issue #652

* formatting, when precommit merge?

* Update lnbits/app.py

* Update lnbits/app.py

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:46:47 +02:00
calle
28661903b6
return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing (#869)
* 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>
2022-08-13 14:41:44 +02:00
dni ⚡
32a09f7359
add apache2 reverse proxy documentation (#868)
* add apache2 reverse proxy documentation

* add certbot

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:23 +02:00
calle
e5d8c500d2
Wallets/unhashed_description (#870)
* 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
2022-08-13 14:29:04 +02:00
dni ⚡
3457ff101e
fix regtest (#867)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-12 21:05:13 +02:00
Arc
d1e1cbed41
Merge pull request #863 from motorina0/onchain_review_fixes
onchain extension - review & fix
2022-08-11 13:24:17 +01:00
Vlad Stan
e20cfd3e6d fix: handle serial port disconnect 2022-08-11 15:06:32 +03:00
Vlad Stan
6b57c8b2a7 chore: code format 2022-08-11 14:31:14 +03:00
Vlad Stan
e884e3b003 fix: look&feel on small screens 2022-08-11 14:22:14 +03:00
Vlad Stan
3d1ea76676 feat: add Copy button for addresses 2022-08-11 13:20:29 +03:00
Vlad Stan
a6fba27554 fix: address link to mempool.space 2022-08-11 13:02:02 +03:00
calle
8dfb4329d1
ssl cert creation method using openssl (#860) 2022-08-10 10:32:43 +02:00
calle
05edd908f0
fix lnurlw balance_check (#854) 2022-08-09 12:48:10 +02:00
calle
4fc0a25d41
Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 (#745)
* 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
2022-08-09 11:49:39 +02:00
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