593 Commits

Author SHA1 Message Date
edouardparis
ea5d9de54b gui: fix large enum variant clippy error 2024-06-25 12:55:31 +02:00
pythcoiner
a8e256eb6b clippyfy 2024-06-25 03:01:29 +02:00
edouardparis
93dbf6e2f6
Merge #1124: replace the descriptor by template in descriptor registration step
40f9dd9bc43bac0c966585ac2770a02aa4c92765 replace the descriptor by template + key vector in descriptor registration step (pythcoiner)

Pull request description:

  This PR replace the descriptor displayed in the installer descriptor registration step, by the wallet policies template + its keys, as almost (all?) signing devices displays the discriptor in this way for registration.

  ![image](https://github.com/wizardsardine/liana/assets/124568858/ac4d6dee-dbe9-448e-b89f-1d4cc6710676)

  closes #727

ACKs for top commit:
  jp1ac4:
    Tested ACK 40f9dd9bc43bac0c966585ac2770a02aa4c92765.

Tree-SHA512: 396d20d766b89b93d3f598b3168311dfa693fcd83efe02e0515ee6428e006a5e2db4f502e3b21f50a085f37e44a1049bbfa3e4e09719a6101396012b80486cea
2024-06-21 10:23:12 +02:00
pythcoiner
40f9dd9bc4 replace the descriptor by template + key vector in descriptor registration step 2024-06-20 11:40:08 +02:00
edouardparis
610a95bf3b
Merge #1116: Set minimum window size
3bca6faffe6f1802e08471af05548f355804767c set minimum window size (pythcoiner)

Pull request description:

  fixes #506
  i put ~~800x800~~ as default size, feel free to told me if you think something else more appropriate.
  edit: i change to 1000x800 so we can also close #507 (i do not have strong opinion, 1000 looks a bit large to me, but if we decide less than 1000 i think we shouls close #507 also)

ACKs for top commit:
  edouardparis:
    ACK 3bca6faffe6f1802e08471af05548f355804767c

Tree-SHA512: 673e40304c9070777ebcc539975fdc28b14df559330b68dd8f6b23f7ab09dee22364a037967604ab70e1ca9596ecc028930dbb80878faadd085f11e47d3fa491
2024-06-19 15:12:29 +02:00
edouardparis
b36220504f
Merge #1121: fix outdated gui/shell.nix
d919d92cc0b1c90b0ad01bc5a41898c119fef5a1 fix shell.nix (plebhash)

Pull request description:

  fix #1120

ACKs for top commit:
  edouardparis:
    ACK d919d92cc0b1c90b0ad01bc5a41898c119fef5a1

Tree-SHA512: 29d946f4ffab5cf114e01abfc75eeafc925214cff7efe2c6e57cb085dcfd066beca60a31576b672e4ec5258afc2746774cba8c6ddb24fff58c1c13844ab31c5e
2024-06-17 11:11:49 +02:00
plebhash
d919d92cc0
fix shell.nix 2024-06-16 16:02:07 +02:00
pythcoiner
3bca6faffe set minimum window size 2024-06-11 13:04:13 +02:00
edouardparis
dddd62b31e
Merge #1113: Remove ui example
64370af843a6e7442b1c1813fc22c34be68a43d8 remove ui example (pythcoiner)

Pull request description:

  closes #1072

ACKs for top commit:
  jp1ac4:
    ACK 64370af843.

Tree-SHA512: 6efa8d95a16060db5efcfcdc466dfaa41dab583f4faeb5ce7a3f3fd072da11139cbbb9447a6b78813d65f6a48c5b400a0bca1f8cdb4993ad8af560340101bba0
2024-06-10 16:23:59 +02:00
pythcoiner
64370af843 remove ui example 2024-06-10 02:56:46 +02:00
edouardparis
8921140f6b Revert "add specter support for tap-miniscript"
This reverts commit 876d83af6518a3e4ae45e156ef2952a7e67affc1.

TAP_KEY_SIG was in fact not implemented by specter version 1.9.0
db3ce3e918
2024-06-07 12:10:58 +02:00
edouardparis
3e853dddb6
Merge #1103: Add specter support for tap-miniscript
876d83af6518a3e4ae45e156ef2952a7e67affc1 add specter support for tap-miniscript (pythcoiner)

Pull request description:

  This pr enable specter support for tap-miniscript.
  tested:
  - descriptor registration
  - spend trough internal key path
  - spent trough taptree path

ACKs for top commit:
  edouardparis:
    utACK 876d83af6518a3e4ae45e156ef2952a7e67affc1

Tree-SHA512: 98d2596fe4c19c05ebcdc4e7d1d4123088ed8869de31c3b0635d652501f2484eecb16dae405d8b2a42321c11a9ea65a9cf91411413a85ab9cc5e86b55dbcef0b
2024-06-06 17:15:50 +02:00
pythcoiner
876d83af65 add specter support for tap-miniscript 2024-06-06 15:51:06 +02:00
edouardparis
a9cfe45c0a fix ui: wrong usage of widget state
In a previous PR #1096, we made usage
of the widget state instead of the component state to
set the collapsed value when the widget is created.
But the widget is reset at each refresh of the interface,
instead the component state does not change.

This commit makes the distinction between the two by
having the widget state as an initial state and the component
one as a capture of the user clicks.
2024-06-06 13:36:03 +02:00
edouardparis
c0e7b63809 fix launcher wording 2024-05-30 10:47:45 +02:00
edouardparis
977d8fa2dd Create datadir before install to store installer.log
Launcher is not skipped anymore if no datadir exists
the code in main.rs line 138 to create the datadir
needs to be duplicated in this case.
2024-05-30 10:30:24 +02:00
edouardparis
dee083c6d1 Add blue banner for testing network 2024-05-30 10:30:24 +02:00
edouardparis
be343aec37 Add previous button to installer first page 2024-05-30 10:30:24 +02:00
edouardparis
9ae33408cb Move all network setup in launcher 2024-05-30 10:30:24 +02:00
jp1ac4
3b604093ce
gui: fix rbf feerate input form
This will make it possible to edit a single-digit feerate,
for example, by deleting the existing value and then entering
a new one.
2024-05-28 12:29:10 +01:00
edouardparis
a12d7f5788
Merge #1096: Add a warning in installer if mainnet wallet already exists
d770e62e19687a4e6357ac24f899653d922d9293 Collapse advanced settings menu and grey-out `Next` button in installer if mainnet wallet already exists (pythcoiner)

Pull request description:

  this PR fixes #1039, it add a warning in the installer if an wallet already exists on mainnet & grey-out `Next` button if the network  is not valid.

  ![image](https://github.com/wizardsardine/liana/assets/124568858/87b5017d-f44b-47d2-b3bc-77babc0e7cdf)

ACKs for top commit:
  edouardparis:
    ACK d770e62e19687a4e6357ac24f899653d922d9293

Tree-SHA512: c756804fb89aa9cc8bc1009517f88745521580c8d3128ebfdd5b364280fd56dbdbc7490680e0e7208b6c0e1fb55279ce357f46ad2c312311c5cb6e941d27a214
2024-05-27 16:41:20 +02:00
pythcoiner
d770e62e19 Collapse advanced settings menu and grey-out Next button in installer if mainnet wallet already exists 2024-05-27 15:39:27 +02:00
pythcoiner
a913a02646 replace AboutSection -> EditWalletSettings 2024-05-26 01:45:44 +02:00
edouardparis
6531cc293d fix local date time and bump chrono
close #1057
2024-05-24 12:03:04 +02:00
edouardparis
99e4af84ff bum async-hwi 0.0.18
Include coldcard 0.12.2 that fixes the
nightly build on MacOS
2024-05-24 11:39:56 +02:00
edouardparis
570f0af35b installer: refresh hw list only if modal is open 2024-05-06 14:50:45 +02:00
edouardparis
6b0c93c5c3 Add jade hardware wallet 2024-05-06 14:50:45 +02:00
edouardparis
b7a72e064d
Merge #1084: Remove legacy harware_wallets field from gui config
45c7b850a64318152e245b269ffef25d63033384 Remove legacy harware_wallets field from gui config (edouardparis)

Pull request description:

  Ledger hmacs, wallet name and fingerprint labels where moved one year ago in the settings.json file.
  Here the commit of the new settings module:
  bf1e9e4b80

  A second commit in v4 checked that settings.json is present otherwise it does the migration from the gui configuration file to the settings file:
  3eeba08248

  We remove the legacy field from the config field so the wallet module does not depend on the config module anymore to load hardware wallet information.

  Tested on gui.toml config with legacy field hardware_wallets and it does not fail to launch.

ACKs for top commit:
  jp1ac4:
    ACK 45c7b850a6.

Tree-SHA512: a13c042c3842c732117ee8099d5a90d28462c5916408edb9fcee5518427acca5b737cd6e1ebe77a94e7d8dabf7a6bdd124ddf927ed850c58b5f980c6efe4f391
2024-05-03 18:05:31 +02:00
edouardparis
9cd36a76d0 gui: enable advanced text shaping
enable text shaping and font fallback,
It allows emojis
2024-05-03 14:48:24 +02:00
edouardparis
acea67bc35 Remove transaparency from PickList for tiny-skia 2024-05-03 12:27:12 +02:00
edouardparis
7801d8cb1f Change descriptor view in installer behind scrollable
View is broken because of the long line of text of the
descriptor, current fix is to put it behind a scrollable
until we find a better way to display it to the user.
2024-05-03 12:27:12 +02:00
edouardparis
c39d544566 Use wgpu with tiny-skia fallback
to enable the fallback:
ICED_BACKEND=tiny-skia cargo run
2024-05-03 12:27:12 +02:00
edouardparis
4920291d04 fix ui button and badge width 2024-05-03 12:27:12 +02:00
edouardparis
de37111637 Change text size 2024-05-03 12:27:12 +02:00
edouardparis
fdcc302367 gui: iced-0.12 2024-05-03 12:27:12 +02:00
edouardparis
45c7b850a6 Remove legacy harware_wallets field from gui config
Ledger hmacs, wallet name and fingerprint labels where
moved one year ago in the settings.json file.
Here the commit of the new settings module:
bf1e9e4b80

A second commit in v4 checked that settings.json is present
otherwise it does the migration from the gui configuration file
to the settings file:
3eeba08248

We remove the legacy field from the config field so the wallet module
does not depend on the config module anymore to load hardware wallet
information.
2024-05-02 15:31:51 +02:00
edouard
64a626d7e8 gui: bump iced 0.10 2024-05-02 14:46:31 +02:00
edouardparis
8991210573 Add macos arm64 binary to bitcoind download 2024-05-02 12:21:41 +02:00
edouardparis
c21004badb bump ahash dependency to fix macos build 2024-05-02 12:07:08 +02:00
edouardparis
9aa0b990a3 Add nixGL to gui/shell.nix
Nixos 23.11 comes with libc 2.38, this version of libc may not be compatible
with some drivers. For now the hack found is to user a community wrapper that
detects the requirements and do the link (https://github.com/guibou/nixGL).
usage:
nixGL cargo run
2024-04-23 14:28:43 +02:00
edouardparis
687e6d1860
Merge #1021: bump clippy rust toolchain to 1.76.0 for gui + fix new clippy warnings
70058e6af056721abff7a5bbdc6e97427b32dc18 bump rust toolchain to 1.76.0 for gui + fix new clippy warnings introduced by 1.76.0 (pythcoiner)

Pull request description:

  bump rust toolchain to 1.76.0 for gui + fix new clippy warnings introduced by 1.76.0

ACKs for top commit:
  edouardparis:
    ACK 70058e6af056721abff7a5bbdc6e97427b32dc18

Tree-SHA512: f640606496e5b5de51618dad115de06023502e2b6980413a4e67f1041147a9347188a3042f1f382a3cc72c3a1e2edecd563012ab4dc10c5a4b616b40631dd26f
2024-04-22 15:18:38 +02:00
edouardparis
07b47e46db gui: use tokio::sync::Mutex for embedded daemon 2024-04-22 14:35:41 +02:00
edouardparis
7b70c8434a Use async-trait for daemon 2024-04-22 14:35:41 +02:00
edouardparis
f9ea8ec0b6
Merge #967: gui: add listcoins filters
1c99376860458f350c3289cd995716aca96c4d87 gui(app): cache unconfirmed & confirmed coins only (jp1ac4)
daf9f85cfd3ef77698773f9c86763f4bb5122b6a gui(spend): filter for unconfirmed & confirmed coins (jp1ac4)
982220da030d7f4f001374b54345c4703891a3ba gui(home): filter for unconfirmed & confirmed coins (jp1ac4)
85b053ff90d7eb679cd2c1e72a59249b3796400f gui(recovery): filter for unconfirmed & confirmed coins (jp1ac4)
c9fcfae9d46b81a56b731d95a51fa1e3ea812287 gui(recovery): filter coins by psbt outpoints (jp1ac4)
4509bd6baf380c59363a2042fad28796bd0b09ab gui(coins): filter for confirmed & unconfirmed (jp1ac4)
685f83bd0eef46d1448cdc2caf4eef2a7fa09b71 gui(transactions): remove unused list_coins (jp1ac4)
21f87047ac013c22bd405de584d655ad9cdb76f8 gui(transactions): filter coins by tx outpoints (jp1ac4)
ddd1e84700642abbe43d2086de66bcf6d43741fa gui(psbt): get conflicting txs from filtered coins (jp1ac4)
4641d9eb7bd5fd2f8b8ed053601ff296965ea552 gui(daemon): filter coins using spend txs prev outpoints (jp1ac4)
aa578ba1fd846e28ed4566be9069e35a5c22dc43 gui(daemon): filter coins for pending txs (jp1ac4)
46121590c36947d8eac2be4e9989e0b4e8615235 gui(daemon): filter outpoints from txs inputs & outputs (jp1ac4)
f3fdb968275db3987d7afaee3b1ba84e0020f8a9 gui(daemon): extract common function for historytxs (jp1ac4)
6c7ca2ccaebd8acd6629c7faf8e418cb50128677 gui(daemon): add optional filter to `list_coins` (jp1ac4)

Pull request description:

  This is to resolve https://github.com/wizardsardine/liana/issues/677.

  As well as adding the filters to the daemon interface, I've applied filters in separate commits to different sections of the GUI.

  This PR builds on changes from https://github.com/wizardsardine/liana/pull/958 and https://github.com/wizardsardine/liana/pull/965. The latter is required when filtering for pending transactions so that a coin whose spending txid changes (e.g. due to RBF) remains as spending.

ACKs for top commit:
  edouardparis:
    ACK 1c99376860458f350c3289cd995716aca96c4d87

Tree-SHA512: c8b9c68a8344df1dbb04b22e315234dec7ae0c18bfc697f88296d3a4b5e7276a48005db6caf1a0b89a23e174f72118ad10945118be8cd96fbee20ba79c12d721
2024-04-19 10:57:47 +02:00
jp1ac4
1c99376860
gui(app): cache unconfirmed & confirmed coins only 2024-04-18 20:14:50 +01:00
jp1ac4
daf9f85cfd
gui(spend): filter for unconfirmed & confirmed coins 2024-04-18 20:14:49 +01:00
jp1ac4
982220da03
gui(home): filter for unconfirmed & confirmed coins 2024-04-18 20:14:49 +01:00
jp1ac4
85b053ff90
gui(recovery): filter for unconfirmed & confirmed coins 2024-04-18 20:14:49 +01:00
jp1ac4
c9fcfae9d4
gui(recovery): filter coins by psbt outpoints 2024-04-18 20:14:48 +01:00
jp1ac4
4509bd6baf
gui(coins): filter for confirmed & unconfirmed 2024-04-18 20:14:48 +01:00