Commit Graph

151 Commits

Author SHA1 Message Date
Jack Grigg 9591f7cbe5 sync: Correctly render the blocks around the chain tip in the TUI
Previously we were using floor division to determine the number of
blocks per cell, which would then exceed the number of cells available
to render, leading to information around the chain tip not being shown.
We now use ceiling division, as well as specifically rendering blocks
above the chain tip as "ignored" with no background (rather than as
"chain tip" scan ranges).
2024-04-22 22:18:19 +00:00
Jack Grigg 885f9ced26 Log lightwalletd connection instead of printing to stdout 2024-04-22 21:53:46 +00:00
Jack Grigg 67e75babca Connect defrag-style TUI to sync command 2024-04-22 21:53:43 +00:00
Jack Grigg 1dcd4b28b6 Create defrag-style TUI for wallet syncing 2024-04-20 21:39:38 +00:00
Jack Grigg 94e1337b46 Add TUI handler 2024-04-20 20:46:27 +00:00
str4d 6161dde702
Merge pull request #16 from Electric-Coin-Company/bump-rust-crates-again
Bump Rust crates again
2024-04-19 23:11:48 +01:00
Jack Grigg 58eacc2bde cargo update 2024-04-19 22:00:28 +00:00
Kris Nuttycombe 3bcd2d2836
Merge pull request #15 from Electric-Coin-Company/bump-rust-crates
Bump Rust crates
2024-04-03 11:34:10 -06:00
Jack Grigg ee7f5814c3 cargo update 2024-04-02 23:41:57 +00:00
Jack Grigg cd58b19888 Migrate to `zcash_client_sqlite 0.10` plus bugfixes 2024-04-02 23:41:57 +00:00
str4d 18499d7f28
Merge pull request #14 from Electric-Coin-Company/update_librustzcash
Update to librustzcash c45d3aed8a
2024-03-27 14:47:58 +00:00
Kris Nuttycombe 14d6fe18de Update to librustzcash c45d3aed8a 2024-03-23 09:53:02 -06:00
str4d 159ec41a71
Merge pull request #12 from Electric-Coin-Company/fix-network-handling
Fix how the wallet network is handled
2023-11-18 01:10:27 +00:00
Jack Grigg 15dffd83eb Fix how the wallet network is handled
Now that the wallet network is stored in `keys.txt`, it is invalid to
pass around network parameters alongside the wallet directory. They
are now parsed at the place where the wallet directory is used (often at
the same time as parsing the rest of `keys.txt`), and then passed around
with other variables derived from it.

This also fixes a bug with the `init` command, where a new wallet could
not be created unless an existing wallet at that path existed (to parse
the network parameters from), but if that path existed then `init`
(correctly) refused to overwrite it. The network parameters for this
command are now correctly constructed from the config option.
2023-11-18 00:56:13 +00:00
Kris Nuttycombe f54e31c7f5
Merge pull request #11 from Electric-Coin-Company/network_config
Allow the network for a wallet to be specified in the `keys.txt` file.
2023-11-17 09:02:28 -07:00
Kris Nuttycombe 0fa38f6ab1 Allow the network for a wallet to be specified in the `keys.txt` file. 2023-11-16 15:54:17 -07:00
str4d 17163de0d7
Merge pull request #10 from Electric-Coin-Company/propose_transactions
Add `propose` command.
2023-11-16 22:15:49 +00:00
Kris Nuttycombe 0973bfd868 Add `propose` command.
This command takes the same arguments as `send`, but instead of
executing a transaction, it simply creates and prints out the proposal
for the transaction without executing it.
2023-11-16 14:42:26 -07:00
str4d f3449b6a45
Merge pull request #9 from Electric-Coin-Company/add-missing-file
Add missing file
2023-11-15 23:55:40 +00:00
Jack Grigg 2d1d211e31 Fix clippy lints 2023-11-15 23:40:26 +00:00
Jack Grigg 67a0ba30ad Add missing file for `zec_sqlite_cli::commands::reset` 2023-11-15 23:33:48 +00:00
Jack Grigg 3173529212 Add basic CI 2023-11-15 23:32:46 +00:00
str4d 1f839cd253
Merge pull request #8 from zcash-hackworks/dev-changes
Development changes
2023-11-11 12:11:53 +00:00
Jack Grigg 2cc7637342 Add reset command
This makes it simpler to re-initialize the wallet without needing to
load in the existing mnemonic phrase again.
2023-11-10 05:00:56 +00:00
Jack Grigg 9a5b97898b list-unspent: Migrate to `select_spendable_sapling_notes` API
`get_spendable_sapling_notes` will be removed in the next release.
2023-11-10 04:27:27 +00:00
Jack Grigg 6f19bbc6d8 list-tx: Sort the transactions by effective height 2023-11-10 04:22:24 +00:00
str4d 23df8960a2
Merge pull request #7 from zcash-hackworks/updates
Updates
2023-10-31 04:06:43 +00:00
Jack Grigg 8032fc9054 cargo update 2023-10-31 13:13:24 +13:00
Jack Grigg 315b9b230f sync: Delete cached block files after scanning 2023-09-26 17:46:22 +00:00
Jack Grigg 408a05b469 Migrate to production version of Zcash Rust crates 2023-09-26 17:46:22 +00:00
Jack Grigg c9510540ab list-tx: Show account balance delta for each transaction 2023-09-25 23:22:45 +00:00
str4d 8385f44fd7
Merge pull request #2 from zcash-hackworks/fast-spendability
Migrate to Spend-before-Sync release candidate
2023-09-13 13:47:20 +01:00
Jack Grigg 1943e7ef9e Migrate to `zcash_client_sqlite` with fast spendability 2023-09-11 20:56:50 +00:00
str4d ef2fb68e9d
Merge pull request #6 from zcash-hackworks/ui-zec
Render zatoshi amounts in UI as ZEC
2023-09-07 21:19:02 +01:00
Jack Grigg 0dd82e112f Render zatoshi amounts in UI as ZEC 2023-09-07 20:11:37 +00:00
str4d 1450faa017
Merge pull request #5 from zcash-hackworks/list-cmds
Add `list-tx` and `list-unspent` commands
2023-09-01 09:46:36 +01:00
Jack Grigg 44f151c750 Add `list-tx` and `list-unspent` commands 2023-09-01 00:52:37 +00:00
str4d b5a5a1d68d
Merge pull request #4 from zcash-hackworks/name-threads
Name threads
2023-07-10 14:25:20 +01:00
Jack Grigg 4f02192408 Name threads 2023-07-10 12:40:38 +00:00
str4d 1c9b81a0ae
Merge pull request #3 from zcash-hackworks/ux-improvements
UX improvements
2023-07-07 00:07:42 +01:00
Jack Grigg 05a7a540c2 Make arguments to `send` command required 2023-07-06 14:05:02 +00:00
Jack Grigg b4859dd24b Show the height for which the balance is accurate 2023-07-06 00:26:38 +00:00
Jack Grigg 620001574f Use `tracing` for logging 2023-07-06 00:23:44 +00:00
str4d 6117b49916
Merge pull request #1 from zcash-hackworks/zcash_client_sqlite-0.7
Upgrade to `zcash_client_sqlite 0.7`
2023-07-05 03:50:26 +01:00
Jack Grigg 6e7681f4ae Remove `tls-api-rustls` dependency
It was left over in zcash/librustzcash#317 from an earlier version that
used the `grpc` crate. The version imported into this repository had
been migrated to `zcash_client_backend 0.6` which switched to the
`tonic` crate for gRPC, which doesn't use `tls-api`.
2023-07-05 02:36:02 +00:00
Jack Grigg 62b58243ab zcash_client_sqlite 0.7 2023-07-05 02:32:49 +00:00
Jack Grigg d3f53f6939 zcash_client_sqlite 0.6 2023-07-05 02:29:30 +00:00
Jack Grigg cb92a67534 zcash_client_sqlite 0.5 2023-07-05 02:26:32 +00:00
Jack Grigg 6e36725fa0 Add readme and licenses 2023-07-05 02:21:47 +00:00
Jack Grigg ddcd1a79f9 Example CLI wallet using zcash_client_sqlite
This is a direct port of zcash/librustzcash#317, with minor tweaks to
account for the missing `std::error::Error` impls that the original PR
included, and removing the `src/init.rs` file left over from a previous
rebase of the PR.
2023-07-05 00:52:02 +00:00