347 Commits

Author SHA1 Message Date
Antoine Poinsot
35dc4abd00
Merge #132: contrib: add a script to generate coverage data for the daemon
94f313133b80d9bd684fefee644a44621aed9066 contrib: add a script to generate coverage data for the daemon (Antoine Poinsot)

Pull request description:

  Taken and adapted from revaultd. Can be trivially adapted to the GUI.

ACKs for top commit:
  darosior:
    ACK 94f313133b80d9bd684fefee644a44621aed9066

Tree-SHA512: 1899526aa134f01d36ce624fad536a3794afb61ddbdd55a5688c0d9647405c3200354634a05348e8b801c174ddcdbaf3f98609ef07f3d360222ef808b649d012
2022-12-06 13:22:44 +01:00
Antoine Poinsot
6d95aaedec
Merge #145: gui: use glow feature instead of wgpu
2e8b72a809155b6ec4989da270a96119956d531e gui: use glow feature instead of wgpu (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 2e8b72a809155b6ec4989da270a96119956d531e. We don't need an efficient renderer, and it looks like it's helpful for Guix builds.

Tree-SHA512: eb75c2ef6913cd5a90a29843e4d2470f1693b2bdb814ba953dd7ee1d9b27d3a9a95712cd7b7bedf4627853993a9f25fc70a8a12cf7df6c042ae2be72bad3e27b
2022-12-06 13:20:46 +01:00
Antoine Poinsot
0c80702f1b
Merge #151: Some tiny cleanups
a4e66566886901f28e383e67f06de2215e3ebc42 daemon: remove / correct some TODOs (Antoine Poinsot)
628ed3d0ed3997a64d8d0d92206842ef5445e2fa descriptors: remove TODO in assertions, explain instead (Antoine Poinsot)
62067f0030795143cbec87dcc1d5db0e5265c5c5 qa: remove needless import in fixtures (Antoine Poinsot)

Pull request description:

  Small things i noticed while working on #148.

ACKs for top commit:
  darosior:
    ACK a4e66566886901f28e383e67f06de2215e3ebc42

Tree-SHA512: 0d6b6b95a99744cd92b9ecd30d9678ff27c7223238a31c3e9093899caa11889d40cfe4c7d855c07c378ca127ca900269980d179aeb02478f04e3eaa1e20e1721
2022-12-06 13:20:33 +01:00
Antoine Poinsot
493dbde666
gui: cleanup the "amount left to select" calculation
It was making unnecessary computations when no feerate was provided, and
was not accounting for VarInt's. Instead of adding more magic values
just build a transaction template and use that.
2022-12-06 12:16:56 +01:00
edouard
36dbe27b03
Merge #146: Add warning to home panel
53514939da522f557c9c804a2b97fd5731b17864 Add clipboard to coin outpoint (edouard)
23e533fbeea96bb6ea5137ff66414e94b997b513 Add warning to home panel (edouard)

Pull request description:

  when remaining sequence is inferior to timelock*10/100, a warning is displayed in home panel
  based on #137

ACKs for top commit:
  edouardparis:
    Self-ACK 53514939da522f557c9c804a2b97fd5731b17864

Tree-SHA512: 5d317ae7e2094e6d8841ef58ed362abcc211111fa951969d42dc96ac1729055c60edc355de17524408e4e918de3d62d419d65869348c22b48e7d9ea42449dbac
2022-12-06 11:20:10 +01:00
edouard
53514939da Add clipboard to coin outpoint 2022-12-06 10:18:39 +01:00
edouard
23e533fbee Add warning to home panel
close #121
2022-12-06 09:47:28 +01:00
edouard
552920589e
Merge #137: Refac spend steps
9d60db3abf04cc03a36462a8b45b7d4da3978339 fix view: spend detail width (edouard)
70527a002ed04718789ba05389899b731e40146b spend: display amount left to select (edouard)
c3471c066540743b3725bd68abbff7779b1e79e6 spend: order coins by remaining sequence and amount (edouard)
c88c39a8b92854f5d50f267ee82be429c328e011 spend steps: add total sent (edouard)
f0758d28abf2ee255f02bafb0deb806ba4ac98aa spend: add remaining sequence to coins (edouard)
6d92056b9d5ea4c64d89845ead13b2fff2a3689d bump liana#38e342c8 (edouard)

Pull request description:

  - [x] Add remaining sequence to coins
   - [x] Order coins by remaining sequence or amount
   - [x] Move feerate form to coins selection step
   - [x] Check amount left to select at coins selection step

ACKs for top commit:
  edouardparis:
    Self-ACK 9d60db3abf04cc03a36462a8b45b7d4da3978339

Tree-SHA512: 8ecb9a7c75e2ecf2dcd90111d532542a83128209dc9d6057636fc5e6ceb5c1091633b987d64f30c46e1a75a6f27a26e05f469eb8b45b980e1fabd3a798e69a71
2022-12-06 09:45:48 +01:00
edouard
9d60db3abf fix view: spend detail width 2022-12-05 18:22:27 +01:00
edouard
2342923fc2 installer: change default xpub derivation path 2022-12-05 16:25:59 +01:00
edouard
70527a002e spend: display amount left to select 2022-12-05 15:39:34 +01:00
edouard
c3471c0665 spend: order coins by remaining sequence and amount 2022-12-05 15:39:19 +01:00
edouard
c88c39a8b9 spend steps: add total sent 2022-12-05 15:39:19 +01:00
edouard
f0758d28ab spend: add remaining sequence to coins 2022-12-05 15:39:19 +01:00
edouard
6d92056b9d bump liana#38e342c8 2022-12-05 15:39:19 +01:00
Antoine Poinsot
a4e6656688
daemon: remove / correct some TODOs 2022-12-05 11:17:27 +01:00
edouard
38e342c8cd
Merge #148: descriptors: add a method to get the size of a spending input
eebc96c4d53f0f6a86d5ddf4267b3d4a45aa7e3f descriptors: add a method to get the size of a spending input (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  edouardparis:
    utACK eebc96c4d53f0f6a86d5ddf4267b3d4a45aa7e3f

Tree-SHA512: 6d94d7eccfed1d828633f7942072c7b044339c1df7add1df209bba6409131aa138f8cf83a36691df88af237943dcc45c3b1e050745143ab663a6c9c13c83176a
2022-12-05 11:15:13 +01:00
Antoine Poinsot
628ed3d0ed
descriptors: remove TODO in assertions, explain instead 2022-12-05 10:05:26 +01:00
Antoine Poinsot
62067f0030
qa: remove needless import in fixtures 2022-12-05 10:04:03 +01:00
Antoine Poinsot
eebc96c4d5
descriptors: add a method to get the size of a spending input
This is useful for the GUI.
2022-12-05 09:58:04 +01:00
edouard
2e8b72a809 gui: use glow feature instead of wgpu 2022-12-02 11:23:29 +01:00
edouard
606e2cd1b3
Merge #144: Smooth border color
9948b10689ae98312f0740ecb09fea26e56031b0 Smooth border color (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    ACK 9948b10689ae98312f0740ecb09fea26e56031b0

Tree-SHA512: 3ae2bd8ba20314d6bf3787ba2db8d3a042c096952cf5d10f22fd02c6edabc468ec7d94037e010685045b5477bb0d9dfbbabce6d3faef9c3ded1217528d324fab
2022-12-01 18:35:22 +01:00
edouard
9948b10689 Smooth border color 2022-12-01 17:11:56 +01:00
edouard
c369984bf4
Merge #141: Display output and input in collapse component
e13050385382a114b79f19e298fc74f2a3fbbf0d change clipboard icon (edouard)
4205f62972b4c61c4c1878fb120564bfedbd5eac Display output and input in collapse component (edouard)

Pull request description:

  this resolve some comments in #50

ACKs for top commit:
  edouardparis:
    Self-ACK e13050385382a114b79f19e298fc74f2a3fbbf0d

Tree-SHA512: ddc4d1f5770fa5f839ef189a495f67f6a10c02d866bc3da23d245f0add532600fe24e819b8e119303128d10a355fee0f8aa75085db7653d0a46a6567b469e5ae
2022-12-01 11:34:27 +01:00
edouard
e130503853 change clipboard icon 2022-12-01 10:56:49 +01:00
edouard
4205f62972 Display output and input in collapse component 2022-12-01 10:56:49 +01:00
edouard
4b16195f40
Merge #135: Add loader error message
17669547ed8716c5bba08f73067c74ba7cb9c0ab Add loader error message and retry button (edouard)

Pull request description:

  Refac notification::warning component to use a Collapse instead of Tooltip.

  close #134

ACKs for top commit:
  edouardparis:
    Self-ACK 17669547ed8716c5bba08f73067c74ba7cb9c0ab

Tree-SHA512: b7c031e4daf99706bd46c83c6687b1c55b4d8ce496ea58c86db003c161fd281904e8ba76cd572bdc5c332ba96a9005cc1386e1a5967ecc4dd0d088e9f28e286b
2022-12-01 09:44:53 +01:00
edouard
17669547ed Add loader error message and retry button
Refac notification::warning component to use a Collapse
instead of Tooltip.

Add a retry button to start again Liana.

close #134
2022-12-01 09:23:43 +01:00
edouard
d6e6c67d1d
Merge #136: gui: clean static directory
0f760c68adaabb699a3e33b721196c4b8cf00d5f gui: clean static directory (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 0f760c68adaabb699a3e33b721196c4b8cf00d5f

Tree-SHA512: a53e1e0ac2d44b6aaf59324597c7c0c99aa82867d017c60ad7c3f2c22737d4c79608bcebe1107297bfa3ecda8328eb31984cd506cf63f96e5d65272f3665d509
2022-12-01 08:38:31 +01:00
edouard
0f760c68ad gui: clean static directory 2022-11-30 08:51:24 +01:00
edouard
27e170f659
Merge #130: Fix installer wording
59c12cd5844e19f296066465fd34a3be48e26f2e installer: wait process is done before next step (edouard)
0577b971b77c0691f0dbb948956eb7616c4c8614 installer: add progress information (edouard)
0365794f910833e400f2418e52b6259f3ccb9b22 installer: add final step summary (edouard)
437faef1af01d9952f5ed3156ce38d9964ba5efb Add learn more collapse to installer (edouard)
8348ad1afadc2e46994b364d595491cc327d4961 installer: add backup descriptor step (edouard)
b260ac420819cb41f8740fa12f65b3a79d69eed3 installer: keep refresh button to list hws (edouard)
92699c645b38f97bfcde35d30b83981335285bdf installer: create or import wallet (edouard)
c89b8d88f59f4dec556d083b6f39c8263279741c installer: rename network pick_list (edouard)

Pull request description:

  base on #129

ACKs for top commit:
  edouardparis:
    Self-ACK 59c12cd5844e19f296066465fd34a3be48e26f2e

Tree-SHA512: d8016b353b54a744ab69c4d7278f4c04aab18326d97293b1b145bb5c3a46633c4ebbc4ccd3291e88fb508f02d44137d82f88218ce936b4a221335b16be879ff6
2022-11-29 17:22:28 +01:00
edouard
59c12cd584 installer: wait process is done before next step 2022-11-29 17:00:03 +01:00
edouard
90dd1871c2
Merge #131: bump async-hwi 0.0.2
0a756747df102323fa86c1198820319ce1c2f27f bump async-hwi 0.0.2 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Selg-ACK 0a756747df102323fa86c1198820319ce1c2f27f

Tree-SHA512: 8a5bdecaa03c72a54dbabb59d425fe0c3d6409246d10c9f63e8bfb3363b78e6c758687b852afe3ddb854398f7595cc7db9c868fe05659dd1c511acc9c86cce93
2022-11-29 15:44:55 +01:00
edouard
0577b971b7 installer: add progress information 2022-11-29 12:12:02 +01:00
edouard
0365794f91 installer: add final step summary 2022-11-29 12:12:02 +01:00
edouard
437faef1af Add learn more collapse to installer 2022-11-29 12:12:02 +01:00
edouard
8348ad1afa installer: add backup descriptor step 2022-11-29 12:12:02 +01:00
edouard
b260ac4208 installer: keep refresh button to list hws 2022-11-29 12:12:02 +01:00
edouard
92699c645b installer: create or import wallet 2022-11-29 12:12:02 +01:00
Antoine Poinsot
94f313133b
contrib: add a script to generate coverage data for the daemon 2022-11-28 16:10:01 +01:00
edouard
0a756747df bump async-hwi 0.0.2 2022-11-28 15:23:26 +01:00
edouard
c89b8d88f5 installer: rename network pick_list 2022-11-28 10:29:50 +01:00
edouard
7794ed12d0
Merge #129: Bump iced 0.5
6897f317d087e2320aeb51c982f09d862fe797a1 bump async-hwi (edouard)
083066900fd324dfa6339950aebba0d46714eb18 gui: silence winit logs (edouard)
ea7ab5e4f1d47d67dc28124daa0ec084b3913993 Reintroduce ui component: collapse (edouard)
de738105c0d630e2286888d9c63541eedbf01441 Bump iced 0.5 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 6897f317d087e2320aeb51c982f09d862fe797a1

Tree-SHA512: 8c47e738e7de618a28d20802cbb338c6f74bb17fc4c473422076c528054efe07317f81bf4369acc8bf84494aaaffab62632c4114e8f4cf2f97cf2ab7ef60434b
2022-11-28 10:27:49 +01:00
edouard
6897f317d0 bump async-hwi 2022-11-28 09:54:33 +01:00
edouard
083066900f gui: silence winit logs 2022-11-28 09:44:47 +01:00
edouard
ea7ab5e4f1 Reintroduce ui component: collapse 2022-11-25 19:06:33 +01:00
edouard
de738105c0 Bump iced 0.5 2022-11-24 12:09:18 +01:00
edouard
60defd672c
Merge #127: fix gui: jsonrpc client
1cb633157365bf2931feb35b3a964118e484abbc fix gui: jsonrpc client (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 1cb633157365bf2931feb35b3a964118e484abbc

Tree-SHA512: e7b4cd20b728928d94e3290a9f7c44aa23f5a61b3b0145c4bb4f2a25f9efecaebc383f78b85c064bd894847a3e13899a61b96459878972553f239fb8e3517a44
2022-11-23 15:31:44 +01:00
edouard
1cb6331573 fix gui: jsonrpc client 2022-11-23 15:03:34 +01:00
Antoine Poinsot
ad8a034ed0
Merge #126: Spent coin detection fixes
5721ab0fdeb5927b4a53a90d4820e30d3dcfea6a qa: test spent coins are always marked as such (Antoine Poinsot)
478707df27f411c1ca983def07b6f804369a6e82 bitcoind: detect coins as spent even if they are unconfirmed (Antoine Poinsot)
8e7e46a52c74fbd2c14f3647e5395c5737153fb1 bitcoind: detect spent coins for send-to-self transactions (Antoine Poinsot)

Pull request description:

  There were a couple cases in which we would not detect a coin as spent:
  1. If the deposit transaction was still unconfirmed
  2. If the spend transaction did not contain any external output

  This comes with a functional test that will fail on master. It tests both above cases as well as many other.

  Fixes #125

ACKs for top commit:
  edouardparis:
    utACK 5721ab0fdeb5927b4a53a90d4820e30d3dcfea6a

Tree-SHA512: b05d3c3f7f4e9810346e5a86d4d789ab3dc2e1b5d6595e59bf140cb1c6d9c823ac3974ec89f1107e21e45711a8fe3e56dc20b9d094c965c92bb5640297baeea9
2022-11-23 12:25:03 +01:00