Commit graph

1349 commits

Author SHA1 Message Date
dni ⚡
853536ea32
lnAdress fix link to docs (#903)
Fixes: https://github.com/lnbits/lnbits-legend/issues/900
2022-08-18 10:17:16 +02:00
Tiago Vasconcelos
7bba742faf
delete tips first... (#888) 2022-08-16 17:01:53 +02:00
Lee Salminen
6aef9bfd45
Add NFC support to TPOS Extension (#856)
* WIP

* styling

* WIP

* WIP

* WIP

* Clean up for PR

* isort

* hold abortContoller for a while longer
2022-08-15 15:37:10 +02:00
calle
4ac73f1a79
Lnurlp/url_validation_fix (#883)
* dont assume field

* fix https check
2022-08-15 00:20:57 +02:00
calle
0f760bf39e
Lnurlp: use unhashed_description instead of description_hash (#878)
* dont assume field

* pass unhashed_description instead of description_hash for LNURL stuff

* more
2022-08-14 21:59:36 +02:00
Lee Salminen
3df66334db
clean up mobile layout per @callebtc (#874) 2022-08-14 19:41:26 +02:00
Lee Salminen
fc427e7ccc
resolves issue #872 & #815, error deleting lnurlp/lnurlw links (#877)
* resolves issue #872, error deleting lnurlp link

* apply the same fix for lnurlw in issue #815
2022-08-14 19:38:26 +02: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
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
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
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
Tiago Vasconcelos
716a30a0fc
make instant wallet available in custom vouchers (#830) 2022-08-03 09:51:16 +02: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
calle
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) (#814)
* description hashing in backend
2022-08-01 16:20:25 +02:00
Tiago Vasconcelos
a1919e0619
reset data (#819) 2022-08-01 12:57:30 +02:00
Arc
3b98a10c9e
Merge pull request #728 from motorina0/ext_satspay_onchain_fix
`satspay` extension improvements
2022-07-28 14:46:08 +01:00
Vlad Stan
ffcff3f441 fix: rebase issues 2022-07-28 16:37:42 +03:00
Vlad Stan
191124d8fc chore: code format 2022-07-28 16:34:42 +03:00
Vlad Stan
66a3b24dd5 chore: code clean-up 2022-07-28 15:35:54 +03:00
Vlad Stan
809d03d3db fix: at least one charge must be active in order to fetch balance 2022-07-28 15:35:54 +03:00
Vlad Stan
f9fd071315 feat: update API doc to use swagger 2022-07-28 15:35:54 +03:00
Vlad Stan
739c108bdf feat: add (hh:mm) to time columns 2022-07-28 15:35:39 +03:00
Vlad Stan
c419afc1b1 refactor: code clean-up 2022-07-28 15:35:39 +03:00
Vlad Stan
46a7b54a00 fix: fix progress for charges 2022-07-28 15:35:39 +03:00
Vlad Stan
0f204485c3 feat: return time_elapsed, time_left and paid fields 2022-07-28 15:35:39 +03:00
Vlad Stan
8c6b31ec12 feat: mapCharge now computes fields progress, timeLeft and fixes time 2022-07-28 15:35:39 +03:00
Vlad Stan
d79d4e371e feat: use datetime to compute time_left and time_elapsed 2022-07-28 15:35:39 +03:00
Vlad Stan
e4078504ba fix: do not update charge if balance has not changed 2022-07-28 15:35:39 +03:00
Vlad Stan
25f37b0e4f chore: code clean-up 2022-07-28 15:35:39 +03:00
Vlad Stan
057de41678 feat: only refresh balance on the back-end if new funds are detected by the front-end refresh 2022-07-28 15:35:39 +03:00
Vlad Stan
31b6a9410c refactor: move setInterval outside method logic 2022-07-28 15:35:39 +03:00
Vlad Stan
e960285c8f chore: code format 2022-07-28 15:35:39 +03:00
Vlad Stan
86f7ea64c4 fix: use the config mempool.space endpoint 2022-07-28 15:35:39 +03:00
Vlad Stan
ac3f95e6c2 feat: use custom mempool_endpoint for the charge details 2022-07-28 15:35:39 +03:00
Vlad Stan
4cb54ce549 feat: allow refresh balance for individual charge
- expired or paid charges are not auto-refreshed
2022-07-28 15:35:39 +03:00
Vlad Stan
5a3e1d7fbb feat: add expanding details to rows 2022-07-28 15:35:39 +03:00
Vlad Stan
4fa8b5a292 feat: enforce order for charges ORDER BY "timestamp" DESC 2022-07-28 15:35:39 +03:00
Vlad Stan
ccae7876d9 feat: show status as badge 2022-07-28 15:35:39 +03:00
Vlad Stan
cce341fb39 fix: search and export csv layout 2022-07-28 15:35:39 +03:00
Vlad Stan
5317d5afd5 feat: use multiple charges balance endpoint (one call only) 2022-07-28 15:35:39 +03:00
Vlad Stan
6da62c648a feat: use single charge endpoint for balance 2022-07-28 15:35:39 +03:00
Vlad Stan
40f5cf77f6 feat: add endpoint for multiple charges balance; 2022-07-28 15:35:39 +03:00
Vlad Stan
475fd566e6 fix: remove retry logic for pending funds 2022-07-28 15:35:39 +03:00