Commit Graph
75 Commits
Author SHA1 Message Date
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
Vlad StanandGitHub 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 StanandGitHub 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
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
Vlad Stan a9506cee11 feat: show pending funds 2022-07-28 15:35:39 +03:00
Vlad Stan efbf34a51e feat: show message when new payment detected 2022-07-28 15:35:39 +03:00
Vlad Stan 0cd8ba956a feat: more UI polishing 2022-07-28 15:35:39 +03:00
Vlad Stan 05bc887ad5 feat: make the panels responsive 2022-07-28 15:35:39 +03:00
Vlad Stan 80e1545920 core: code format 2022-07-28 15:35:39 +03:00
Vlad Stan 728209da7d refactor: replace mempool internal API with a more generic config API 2022-07-28 15:35:39 +03:00
Vlad Stan 3bd4253292 feat: use bootstrap tables for the layout (not fixed px values) 2022-07-28 15:34:37 +03:00
Vlad Stan 912a7e1c4b feat: add web-socket to mempool; & replace UI mappings 2022-07-28 15:34:37 +03:00
Vlad Stan d74b48b0b6 refactor: method renamings 2022-07-28 15:34:37 +03:00
Vlad Stan 615520bcb3 feat: separate invoice check from onchain check 2022-07-28 15:34:36 +03:00
Vlad Stan 1dd51a2752 refactor: extract methods to utils 2022-07-28 15:34:36 +03:00
Vlad Stan e3d36e6a3a feat: extract utils to static/js 2022-07-28 15:34:36 +03:00
Vlad Stan 09a9a0f9ec refactor: remove extra state fields 2022-07-28 15:34:36 +03:00
Vlad Stan 74322232d0 fix: add await for rescan 2022-07-28 15:34:36 +03:00
Vlad Stan 91c6d32852 feat: do client side rescan for onchain address 2022-07-28 15:34:36 +03:00
Vlad Stan 6c21bf359c choe: format 2022-07-28 15:34:36 +03:00
Vlad Stan b5e97f08a6 chore: code clean-up 2022-07-28 15:34:36 +03:00
Vlad Stan 8e05a11978 refactor: replace var with const 2022-07-28 15:34:36 +03:00
Vlad Stan 50b2dcfcaa refactor: clean-up unnecessary self 2022-07-28 15:34:36 +03:00
Vlad Stan 6cfa8e30bc refactor: replace promises with async/await 2022-07-28 15:34:36 +03:00
Vlad Stan 5a005e830c chore: add a todo 2022-07-28 15:34:36 +03:00
Vlad Stan d93b199735 fix: pass charge param as JSON 2022-07-28 15:34:36 +03:00
Vlad Stan 87dc9136a4 chore: code format 2022-07-28 15:09:23 +03:00
Vlad Stan c1f6845ad9 feat: update SQLite to Postgre conversion scripts 2022-07-28 15:04:14 +03:00
Vlad Stan 3f51117ea9 refactor: move logic out of crud into the api layer 2022-07-28 15:04:14 +03:00
Vlad Stan 3d1b3b7173 fix: set default value for NOT NULL column 2022-07-28 15:04:14 +03:00
Vlad Stan cff9a59693 doc: fix typos 2022-07-28 15:04:14 +03:00
Vlad Stan 5bc2907f80 doc: update readme 2022-07-28 15:04:14 +03:00
Vlad Stan 7bb936b09b feat: allow custom file name for exportCSV 2022-07-28 15:04:14 +03:00
Vlad Stan f72421c62c chore: code clean-up 2022-07-28 15:04:14 +03:00
Vlad Stan cf75df366a fix: refresh change address when wallet is created/deleted 2022-07-28 15:04:14 +03:00
Vlad Stan 23954b501f chore: code format 2022-07-28 15:04:14 +03:00
Vlad Stan 98366cfaf1 refactor: remove snake_case from JS code 2022-07-28 15:04:13 +03:00
Vlad Stan ee2342e1ba fix: adress can have activity even if the current amount is zero 2022-07-28 15:04:13 +03:00
Vlad Stan c1289c43a4 feat: add on-chain watch-only functionality 2022-07-28 15:04:13 +03:00
Vlad Stan 92e7dde500 doc: update extension name 2022-07-28 15:04:13 +03:00
Vlad Stan 085bcb8234 doc: reference Swagger documentation for REST APIs 2022-07-28 15:04:13 +03:00
Vlad Stan 8e4e0bdf2d feat: update addresses and wallets table; add config table 2022-07-28 15:03:22 +03:00
Vlad Stan a2f48de583 doc: update extension name Watch Only -> Onchain Wallet 2022-07-28 15:03:22 +03:00
Vlad Stan dec8d4b6b3 feat: add support for static files 2022-07-28 15:03:22 +03:00
Vlad Stan 2b5fc82110 feat: update text Watch-Only -> Onchain Wallet (watch-only) 2022-07-28 15:03:22 +03:00