Commit Graph
299 Commits
Author SHA1 Message Date
edouard 6572b2fa4a Merge #154: gui: cleanup the "amount left to select" calculation
493dbde666 gui: cleanup the "amount left to select" calculation (Antoine Poinsot)

Pull request description:

  It don't think it was blatantly wrong, but neither was it entirely correct. And it was seriously lacking comments explaining what was going on for such a tricky calculation.

  In order to make sure it's correct, and make this more code more maintainable (and readable to future contributors), clean it up by using a more obviously-correct approach: a transaction template that is filled with inputs depending on the coins that were selected.

  I DID NOT TEST IT!

ACKs for top commit:
  edouardparis:
    ACK 493dbde666

Tree-SHA512: b8094326f42ed86a4fcd4e16961a7cb77b07d423215665248dd20db66e2c2eb5500fd7cbdb58d0febae5beb3a40f7b531ec24d1c3e7d7a16a45686ac40a89e9b
2022-12-06 15:10:28 +01:00
edouard aaf489dbdf Merge #152: installer: change default xpub derivation path
2342923fc2 installer: change default xpub derivation path (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 2342923fc2

Tree-SHA512: c25516c744c2f4b1869fd02b424723d8f2cc0da5b1ae407ccedf325add2c75dceced16a0137ded25140fe8ca84a7945842fe867b72bde2596d3441021e8589a1
2022-12-06 13:38:35 +01:00
Antoine Poinsot 35dc4abd00 Merge #132: contrib: add a script to generate coverage data for the daemon
94f313133b 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 94f313133b

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

Pull request description:

ACKs for top commit:
  darosior:
    ACK 2e8b72a809. 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
a4e6656688 daemon: remove / correct some TODOs (Antoine Poinsot)
628ed3d0ed descriptors: remove TODO in assertions, explain instead (Antoine Poinsot)
62067f0030 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 a4e6656688

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
53514939da Add clipboard to coin outpoint (edouard)
23e533fbee 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 53514939da

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
9d60db3abf fix view: spend detail width (edouard)
70527a002e spend: display amount left to select (edouard)
c3471c0665 spend: order coins by remaining sequence and amount (edouard)
c88c39a8b9 spend steps: add total sent (edouard)
f0758d28ab spend: add remaining sequence to coins (edouard)
6d92056b9d 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 9d60db3abf

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
eebc96c4d5 descriptors: add a method to get the size of a spending input (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  edouardparis:
    utACK eebc96c4d5

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
9948b10689 Smooth border color (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    ACK 9948b10689

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
e130503853 change clipboard icon (edouard)
4205f62972 Display output and input in collapse component (edouard)

Pull request description:

  this resolve some comments in #50

ACKs for top commit:
  edouardparis:
    Self-ACK e130503853

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
17669547ed 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 17669547ed

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
0f760c68ad gui: clean static directory (edouard)

Pull request description:

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

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
59c12cd584 installer: wait process is done before next step (edouard)
0577b971b7 installer: add progress information (edouard)
0365794f91 installer: add final step summary (edouard)
437faef1af Add learn more collapse to installer (edouard)
8348ad1afa installer: add backup descriptor step (edouard)
b260ac4208 installer: keep refresh button to list hws (edouard)
92699c645b installer: create or import wallet (edouard)
c89b8d88f5 installer: rename network pick_list (edouard)

Pull request description:

  base on #129

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

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
0a756747df bump async-hwi 0.0.2 (edouard)

Pull request description:

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

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
6897f317d0 bump async-hwi (edouard)
083066900f gui: silence winit logs (edouard)
ea7ab5e4f1 Reintroduce ui component: collapse (edouard)
de738105c0 Bump iced 0.5 (edouard)

Pull request description:

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

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
1cb6331573 fix gui: jsonrpc client (edouard)

Pull request description:

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

Tree-SHA512: e7b4cd20b728928d94e3290a9f7c44aa23f5a61b3b0145c4bb4f2a25f9efecaebc383f78b85c064bd894847a3e13899a61b96459878972553f239fb8e3517a44
2022-11-23 15:31:44 +01:00