2215 Commits

Author SHA1 Message Date
pythcoiner
aa0c5d303a
gui: minor cleanup in export_subscription() 2025-03-02 13:15:29 +01:00
pythcoiner
3513226af0
gui: fix the export subscription being stuck in Running state 2025-03-02 13:15:28 +01:00
pythcoiner
85024d64bd
gui: ExportModal.update() pass an ExportMessage instead app::message::Message in order to be used in a more generic way 2025-03-02 13:15:28 +01:00
edouardparis
74f10a564f Add overlay with copy paste to text_input 2025-02-12 16:22:43 +01:00
edouardparis
64dc91b578 fork widget text_input 2025-02-12 16:22:43 +01:00
edouardparis
27570b4de9
Merge #1569: gui(installer): widen button to fit text on single line
8565dd31a9cc9b284601564671d64f9e2fc39193 gui(installer): widen button to fit text on single line (Michael Mallan)

Pull request description:

  This fixes #1568.

ACKs for top commit:
  edouardparis:
    ACK 8565dd31a9cc9b284601564671d64f9e2fc39193

Tree-SHA512: 4795692a8453609e3977ae817516e746b59f6c6fce8a10c9dd2ff6fd2385f959f2f3c457137065261d9bf39e713a260c586e9b01bab75fa396caac2371ce3679
2025-02-11 14:58:54 +01:00
Michael Mallan
8565dd31a9
gui(installer): widen button to fit text on single line 2025-02-11 10:04:24 +00:00
edouardparis
b1354be726
Merge #1567: gui(installer): fix misalignment in template intro images
449d54f8532a866607346c87c09a07a5f40afc16 gui(installer): fix misalignment in template intro images (Michael Mallan)

Pull request description:

  This is to fix #1486 using the images provided in that issue.

ACKs for top commit:
  edouardparis:
    ACK 449d54f8532a866607346c87c09a07a5f40afc16

Tree-SHA512: 75a50d82a1434bb3850edfe81b05b6476194f3e0875031235f4c1000c1fa3ee96fbddec524bd3757615458e94445b1b8cec9f36aeb60bfffa56aa6e99b199d62
2025-02-10 16:01:20 +01:00
edouardparis
a46cb5f8b4
Merge #1565: chore: fix some typos
37f0d543604b41254c466f3b3ddd3b16b42f560c chore: fix some typos (zoupingshi)

Pull request description:

ACKs for top commit:
  jp1ac4:
    ACK 37f0d543604b41254c466f3b3ddd3b16b42f560c. Thanks!

Tree-SHA512: ce04a47a018be1cac92dcadc67e00330cee1d4767c37cedda9daa88164988365c97c17bf5e65480b89dcc7e86855d48d94e69889e3c385501c7eeb3cd6139141
2025-02-10 15:39:28 +01:00
Michael Mallan
449d54f853
gui(installer): fix misalignment in template intro images 2025-02-10 14:19:41 +00:00
edouardparis
4dc10d1d7c
Merge #1566: gui(installer): allow deletion of any primary key and prevent deletion of all recovery paths
99ba17d0920d9d00a6d0df6d3c5169fe524b1363 gui(installer): allow deletion of any prim key if more than one (Michael Mallan)
ca3bd63667c7c357e899aeceb91d7adb512d65eb gui(installer): prevent deletion of all recovery paths (Michael Mallan)

Pull request description:

  This is to fix #1411 and #1407, which relate to whether primary or recovery keys, respectively, can be deleted in the installer.

  It lets a user delete any primary key as long as there are two or more.

  It lets a user delete a key from a recovery path only if there are at least two recovery paths or at least two keys in the given recovery path.

ACKs for top commit:
  edouardparis:
    ACK 99ba17d0920d9d00a6d0df6d3c5169fe524b1363

Tree-SHA512: 3838c29d92b1f0f5bd60cee303771e98434382c4fcf2a38a013b86a66cd9943dc299129534530469a0cb7c3eb62929b4fedb346e40d90fb3fd18b27c4c376fb4
2025-02-10 15:18:43 +01:00
Michael Mallan
99ba17d092
gui(installer): allow deletion of any prim key if more than one 2025-02-10 13:29:52 +00:00
Michael Mallan
ca3bd63667
gui(installer): prevent deletion of all recovery paths 2025-02-10 11:19:49 +00:00
zoupingshi
37f0d54360 chore: fix some typos
Signed-off-by: zoupingshi <hangfachang@outlook.com>
2025-02-08 14:39:56 +08:00
edouardparis
66f5b68a2f
Merge #1564: fix gui: style of hot signer button in installer
d86b79c91de4a08670e729d3e85efa52db8611b5 fix gui: style of hot signer button in installer (edouardparis)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK d86b79c91de4a08670e729d3e85efa52db8611b5

Tree-SHA512: 849094cacf05ae2501a07a52dec1d5038c79f4ddaf6e62276af6a69a5be7f9f72224c94db9d896de3161a2c3f7535da4f1a27dfde88a58097022ad470c94c1b6
2025-02-07 11:21:47 +01:00
edouardparis
d86b79c91d fix gui: style of hot signer button in installer 2025-02-07 10:55:37 +01:00
edouardparis
4b8febe5e5
Merge #1562: Use theme text methods instead of hard coded colors
f6a932b8fa69ad0e84fdb1a75bd3e70b993e6b35 set GREY_2 as theme::text::secondary (edouardparis)
dc5b57c8590b484e26f34f8e6f5423c054957e5f Use theme text methods instead of hard coded colors (edouardparis)

Pull request description:

ACKs for top commit:
  jp1ac4:
    tACK f6a932b8fa69ad0e84fdb1a75bd3e70b993e6b35.

Tree-SHA512: a275661ec01febfc05f04af592f92c6cbdc5daba0a83ab2515a9fad3e95dae71089b50ce38d518050086229cd56bfa5b00c243df472fbd28544c1607ed42fc59
2025-02-07 09:56:31 +01:00
edouardparis
f6a932b8fa set GREY_2 as theme::text::secondary 2025-02-06 16:55:27 +01:00
edouardparis
42798cd967
Merge #1563: bump async-hwi 0.0.27
8abf0d9058cae8d4be72437907e06f3488c6b6dd bump async-hwi 0.0.27 (edouardparis)

Pull request description:

  Bump required to fix a problem with coldcard while fetching xpub

ACKs for top commit:
  edouardparis:
    Self-ACK 8abf0d9058cae8d4be72437907e06f3488c6b6dd

Tree-SHA512: 40405de8aaf94f7f0b4763487828ac760a852af7f473c200e2a0ae69aa2b614aede73ed4db40a216609ff2b05ddc92512eba4e0dbf4bee3f1138322717c496a3
2025-02-06 16:47:02 +01:00
edouardparis
36f47df60c
Merge #1508: [GUI] Improve coin selection logic when creating spend
e8d2fe2717583c071fc878b6d3f1fdb42c120bed send max from all owned coins only (Michael Mallan)
021c8e2a43239c39fffac26dc2f8a04eda3efda0 gui(spend): improve insufficient funds handling (Michael Mallan)
1b33e74a7a8b1d185a3aaea84a3ec6520ee05976 refactor: add `coin_is_owned` method (Michael Mallan)

Pull request description:

  This is to resolve #1326. In case of insufficient funds when creating a spend, the selected coins will be updated to correspond to the missing amount. Previously, no changes were made to selected coins.

  Furthermore, if a user selects the max option for a recipient, only owned coins (confirmed or unconfirmed from self) will be considered rather than all coins, since unconfirmed coins that are not from self should only be used if the user has selected them manually.

ACKs for top commit:
  edouardparis:
    utACK e8d2fe2717583c071fc878b6d3f1fdb42c120bed

Tree-SHA512: 57869e04d486bb1debab323453183536f3d0ef65522a26aeb2be205262da52881f45a47035a8d0ad62c2e28366e4f23b44df70d41dd8cb017aad29dda651e5ed
2025-02-06 16:24:38 +01:00
edouardparis
8abf0d9058 bump async-hwi 0.0.27 2025-02-06 16:23:10 +01:00
Michael Mallan
e8d2fe2717
send max from all owned coins only
Coin selection considers only those unconfirmed coins from self,
and the same should apply when the user chooses the MAX option
without explicitly selecting coins.

Unconfirmed coins that are not from self should only be included
if the user has selected them explicitly.
2025-02-06 14:08:10 +00:00
Michael Mallan
021c8e2a43
gui(spend): improve insufficient funds handling
The coins selected should correspond to the missing amount.
2025-02-06 14:08:08 +00:00
Michael Mallan
1b33e74a7a
refactor: add coin_is_owned method 2025-02-06 14:08:02 +00:00
edouardparis
dc5b57c859 Use theme text methods instead of hard coded colors 2025-02-04 15:46:10 +01:00
edouardparis
3a4df7aeec
Merge #1550: liana-gui: Iced v13
178f8182840435b419600e91e9212756f450ff2e fix subscriptions: channel size and ContentLength error (edouardparis)
8c800a275c12b63752a1ca966aa3847fea9bbc5f fix warning banner colors (edouardparis)
cfa737196908aaf199c3ccc0fa217d33407dbd40 fix hw buttons: use secondary button (edouardparis)
4fbef503e6520fbef40d509fc80433398d0f279b fix launcher: wallet button (edouardparis)
c76109e09cc1e88a3c26c76ad90df02f024c0dfa fix sandbox for liana-gui tests (edouardparis)
bf8c2eaf4ff60d56530c173ec0c83db99b06ab20 fix main (edouardparis)
a4adab5cd1c99fb0a29526112ca8c541bd040655 fix subscriptions (edouardparis)
ad297d1ef8da0e7c165fc17d940c419b785f0c1d iced v0.13 (edouardparis)

Pull request description:

  - [x] update `liana-ui`
  - [x] update `liana-gui`

ACKs for top commit:
  jp1ac4:
    tACK 178f8182840435b419600e91e9212756f450ff2e.

Tree-SHA512: 056635f9b596add207f66f735c3ead435552c6f82ecd19793329717db86b592dead6aae92f12be4b9b62ff6b1938d3e310fda90f792debe682185bc79c03443a
2025-02-04 11:31:18 +01:00
edouardparis
178f818284 fix subscriptions: channel size and ContentLength error 2025-02-04 10:41:12 +01:00
edouardparis
8c800a275c fix warning banner colors 2025-02-03 16:24:19 +01:00
edouardparis
cfa7371969 fix hw buttons: use secondary button 2025-02-03 16:24:19 +01:00
edouardparis
4fbef503e6 fix launcher: wallet button 2025-02-03 16:24:19 +01:00
edouardparis
c76109e09c fix sandbox for liana-gui tests 2025-02-03 16:24:19 +01:00
edouardparis
bf8c2eaf4f fix main 2025-02-03 16:24:19 +01:00
edouardparis
a4adab5cd1 fix subscriptions 2025-02-03 16:24:19 +01:00
edouardparis
ad297d1ef8 iced v0.13 2025-02-03 15:47:38 +01:00
edouardparis
b7a51c8141
Merge #1398: ci: use bitcoind version 28.1
c17e945fd4bd5b784754e4b8a7c38c5060e37831 ci: use bitcoind version 28.1 (Michael Mallan)
7ad3e3f0d6ff9fe01441d71b6caaed0eb9113e78 ci: use electrs v0.10.6 (Michael Mallan)

Pull request description:

  This resolves #1397.

ACKs for top commit:
  edouardparis:
    ACK c17e945fd4bd5b784754e4b8a7c38c5060e37831

Tree-SHA512: b1a9765a8111c5a1b6a54a77972cfda882212c7281310523f8f4a7feb9dc601ef2383b3ffb46027188281d398af99b7ce5d4cdc143e0358ea8977ab8d2496c20
2025-02-03 15:01:43 +01:00
Michael Mallan
c17e945fd4
ci: use bitcoind version 28.1 2025-02-03 09:27:32 +00:00
Michael Mallan
7ad3e3f0d6
ci: use electrs v0.10.6 2025-01-31 12:19:40 +00:00
edouardparis
1d9ff9d8fe
Merge #1559: bump bdk_coin_select to 0.4
1859a2d5f0fe67b22a850d0f7daac43b06bce163 bump bdk_coin_select to 0.4 (Michael Mallan)

Pull request description:

  Weights are now stored in the crate as `u64` instead of `u32` and so we can keep our weights and vsizes as `u64`.

  The tests have been updated to reflect that coin selection now calculates feerates using a transaction's size in rounded-up vbytes, which fixes #1132.

ACKs for top commit:
  edouardparis:
    ACK 1859a2d5f0fe67b22a850d0f7daac43b06bce163

Tree-SHA512: 703edd66db85fff0bef34eee282493c371ad7f3ff512f4c0b7c39ee7fc8b2878647c19b81ab31f9d04cbd7d8770455dfcf8929587aa3e98025ce9ccd31027350
2025-01-30 17:22:20 +01:00
Michael Mallan
1859a2d5f0
bump bdk_coin_select to 0.4
Weights are now stored as `u64` instead of `u32`.

The tests have been updated to reflect that coin selection now
calculates feerates using a transaction's size in rounded-up
vbytes.
2025-01-30 15:45:15 +00:00
edouardparis
b98cff0579
Merge #1558: Allow RBF without saved PSBT
4d05c1f0ffb9cb9a7dd070342a7d19b9227ab8a2 commands: allow rbf for spending txs without saved psbt (Michael Mallan)
4ce5ca4d80cde79de60d545a7b992907cc5450e4 qa: check psbt must be saved in db to use rbf (Michael Mallan)

Pull request description:

  This is to fix #854 when using a local node. If we don't have the PSBT saved in our DB, we query the wallet transaction instead.

  The Liana Connect backend will also need to be updated in a similar way.

ACKs for top commit:
  edouardparis:
    ACK 4d05c1f0ffb9cb9a7dd070342a7d19b9227ab8a2

Tree-SHA512: 2b5425ac2391e7f044c404f7ff449292807b360e14f33b6f2afbcd0c22bb399c371f950e0d43c0ab30e3a4ba76d83d257686de8e862e5dbee909577ed69d7dcd
2025-01-30 15:13:20 +01:00
Michael Mallan
4d05c1f0ff
commands: allow rbf for spending txs without saved psbt 2025-01-29 15:54:39 +00:00
Michael Mallan
4ce5ca4d80
qa: check psbt must be saved in db to use rbf 2025-01-29 15:45:20 +00:00
edouardparis
71959b47ee
Merge #1557: move the unlocking of bitbox to a method
3ced1dbea9283d814b06b6e60a74f573e94847f7 move the unlocking of bb to a method (edouardparis)

Pull request description:

  This is preparatory work for #1550

ACKs for top commit:
  edouardparis:
    Self-ACK 3ced1dbea9283d814b06b6e60a74f573e94847f7

Tree-SHA512: 1ff5aef26ed13446750a5f1c339d47b35a15227df98bb57321f81520294f35fd23fd226f3ccf515a56f07b8ec5b4f1d9c0fcb854f743d862389ab4605afcd3df
2025-01-28 14:13:12 +01:00
edouardparis
3ced1dbea9 move the unlocking of bb to a method 2025-01-28 13:10:52 +01:00
edouardparis
3c8e412384
Merge #1555: upgrade bitcoin dependency to 0.32 and related
c5f5284f57e37e578cc3001a7da1790c724437a3 upgrade bitcoin to 0.32 and related (Michael Mallan)

Pull request description:

  This is to upgrade bitcoin to 0.32 and related dependencies accordingly.

  Note that the bdk_electrum crate has not been upgraded to the most recent version available as the Electrum syncing there takes much longer due to the fetching and validation of Merkle proofs. There are ongoing changes in relation to that (https://github.com/bitcoindevkit/bdk/issues/1699) and so we can further upgrade this dependency once those changes have been completed.

  Non-BDK changes to the liana and lianad crates are taken from commit 20ee8b1e7b77cbf65942bc4f083afea95f2d1506 in draft PR https://github.com/wizardsardine/liana/pull/1228, which this replaces.

  (Once this PR has been tested and approved, we can release a new version of the async_hwi crate and point to that.)

ACKs for top commit:
  edouardparis:
    ACK c5f5284f57e37e578cc3001a7da1790c724437a3

Tree-SHA512: 3cb1a2060ecc4c6b9631df0eadf5692ad35495b9303edbb80a437aca60ae062a7227f20ddeb5eb722cf57dd80bfa752372a14d26b8f306844237bfdb5f41e51a
2025-01-27 18:04:19 +01:00
edouardparis
eae89211d1
Merge #1554: chore: fix some comments
f12c65cdd26f9b611b524b4f30c69bb4ad956c22 chore: fix some comments (damuzhi0810)

Pull request description:

  fix some comments

ACKs for top commit:
  jp1ac4:
    ACK f12c65cdd26f9b611b524b4f30c69bb4ad956c22.

Tree-SHA512: 540abcc6d1faddb9f9b81f8dc5c7918daa4bb4bf7179276c768d49c18109283f45eb62734892ad9c40460bc07daa2001967bcbecb0de77335f308d627195930c
2025-01-27 15:52:57 +01:00
Michael Mallan
c5f5284f57
upgrade bitcoin to 0.32 and related
This upgrades bitcoin to 0.32 and related dependencies accordingly.

Note that the bdk_electrum crate has not been upgraded to the most
recent version available as the Electrum syncing there takes much
longer due to the fetching and validation of Merkle proofs. There
are ongoing BDK changes in relation to that and so we can further
upgrade this dependency once those changes have been completed.

Non-BDK changes to the liana and lianad crates are taken from
darosior's commit 20ee8b1e7b77cbf65942bc4f083afea95f2d1506 in
draft PR https://github.com/wizardsardine/liana/pull/1228.
2025-01-27 14:36:29 +00:00
edouardparis
15994b85b5
Merge #1556: ci: reduce number of tasks
5edbcb9033dc1e5dbf20b43cd0db736aa0222612 ci: reduce number of tasks (Michael Mallan)

Pull request description:

  This will reduce some of the overhead of setting up each task.

ACKs for top commit:
  edouardparis:
    ACK 5edbcb9033dc1e5dbf20b43cd0db736aa0222612

Tree-SHA512: 7360be30fda9bbb567813acbba858bc231d13ede2facc0db8a33cc2e9a21b4542f63a504babc94c19243fd364c2adbe72f4cbce1883ae7cf60c157a5a481909d
2025-01-27 14:49:33 +01:00
Michael Mallan
5edbcb9033
ci: reduce number of tasks
This will reduce some of the overhead of setting up each task.
2025-01-27 11:34:03 +00:00
damuzhi0810
f12c65cdd2 chore: fix some comments
Signed-off-by: damuzhi0810 <rust@before.tech>
2025-01-23 22:05:18 +08:00