str4d
aeb51708ca
Merge pull request #1240 from zcash/migration-errors
...
zcash_client_sqlite: Use errors instead of panics in down-migrations
2024-03-08 22:39:11 +00:00
Kris Nuttycombe
c107f3df11
zcash_client_sqlite: Use errors instead of panics for unimplemented or unsupported down migrations.
2024-03-08 22:19:05 +00:00
Jack Grigg
e4a8b3abd4
CI: Remove timeouts from rustfmt and clippy
2024-03-08 22:01:48 +00:00
Jack Grigg
f12b2b5a1f
CI: Add caching
2024-03-08 21:23:28 +00:00
Kris Nuttycombe
54addb6ca6
Merge pull request #1234 from nuttycom/wallet/spendable_value
...
zcash_client_backend: Update `DecryptedTransaction` to support Orchard
2024-03-08 14:12:52 -07:00
Kris Nuttycombe
78e4916899
zcash_client_backend: Generalize `DecryptedOutput` to support Orchard
2024-03-08 13:48:30 -07:00
Kris Nuttycombe
4c5ce32dee
zcash_client_backend: Use `NonNegativeAmount` for `select_spendable_notes`
2024-03-08 13:48:30 -07:00
Kris Nuttycombe
cb4b9f80bc
zcash_protocol: Add `TryFrom<&MemoBytes>` for `Memo`
2024-03-08 13:48:30 -07:00
Kris Nuttycombe
dbf7c85afe
Merge pull request #1237 from zcash/faster-ci
...
Faster CI
2024-03-08 13:48:16 -07:00
Kris Nuttycombe
8f4de9b235
Merge pull request #1235 from zcash/diverse_accounts
...
zcash_client_sqlite: Rework accounts to support imported viewing keys
2024-03-08 13:39:08 -07:00
Jack Grigg
46f2815ad3
CI: Only run CI workflow once per PR
...
The previous configuration would run CI twice for every PR, on:
- The merge commit with the base branch.
- The tip commit of the PR branch.
The latter is only useful for debugging. However, we still want to run
CI directly on the `main` branch, to ensure that any PRs with runtime
conflicts but not code conflicts get tested in combination.
2024-03-08 20:35:04 +00:00
Jack Grigg
e7be194912
CI: Use faster Ubuntu and Windows runners for testing
2024-03-08 20:35:04 +00:00
Jack Grigg
bfc2278bfe
Encode UIVK Sapling component with `sapling-crypto`
2024-03-08 20:22:45 +00:00
Jack Grigg
054b374b5a
Add missing feature flag conditional
2024-03-08 19:08:20 +00:00
Jack Grigg
f9bf5a173f
bugfix: Encode transparent IVK in UIVKs instead of transparent FVK
2024-03-08 19:06:27 +00:00
Andrew Arnott
0c80893ce0
zcash_client_sqlite: Rework accounts to support imported viewing keys
2024-03-08 18:55:18 +00:00
Kris Nuttycombe
63450533dd
Merge pull request #1233 from zcash/test-harness-orchard-fvk
...
zcash_client_sqlite: Add Orchard support to test harness
2024-03-08 11:37:32 -07:00
Jack Grigg
c8d03f69ef
Extend `TestState::generate_next_block_spending` with Orchard support
2024-03-08 14:40:25 +00:00
Jack Grigg
cc90c4c405
Avoid excessive Orchard dummies in `TestState::generate_next_block_spending`
2024-03-08 13:29:13 +00:00
Jack Grigg
6c6080c99c
`impl TestFvk for orchard::keys::FullViewingKey`
2024-03-08 13:28:55 +00:00
Jack Grigg
0a41d65910
Generalise `TestState::generate_*` methods over a `TestFvk` trait
2024-03-08 00:02:28 +00:00
Jack Grigg
291a6f5799
Use correct change address in `TestState::generate_next_block_spending`
2024-03-07 23:26:43 +00:00
Jack Grigg
bc0b1aed07
De-duplicate compact Sapling output creation in `TestState`
2024-03-07 23:26:43 +00:00
Kris Nuttycombe
d48e45ee71
Merge pull request #1232 from nuttycom/wallet/orchard_account_birthday
...
zcash_client_backend: Add Orchard frontier to `AccountBirthday`
2024-03-07 15:27:06 -07:00
Jack Grigg
f306a0a78a
zcash_client_sqlite: Make internal testing functions module-private
...
This ensures we only access them through `TestState` in future.
2024-03-07 22:14:15 +00:00
Kris Nuttycombe
4532520670
zcash_client_backend: Add Orchard frontier to `AccountBirthday`
2024-03-07 14:45:23 -07:00
Oscar Pepper
ab701118f3
zcash_client_backend: Fixed cargo doc build failure when transparent-inputs feature is not specified
2024-03-07 11:33:10 +00:00
Kris Nuttycombe
81303590ab
Merge pull request #1226 from zcash/tex-addrs
...
zcash_address 0.3.2: ZIP 320 TEX address support
2024-03-06 08:40:13 -07:00
Jack Grigg
d539f04f2e
zcash_address 0.3.2
2024-03-06 15:07:51 +00:00
Jack Grigg
d0673c9bc3
zcash_protocol 0.1.0
2024-03-06 15:07:11 +00:00
Kris Nuttycombe
cef9e7641d
`zcash_address`: Add support for ZIP 320, TEX addresses.
2024-03-06 14:59:16 +00:00
str4d
16e3d1bf07
Merge pull request #1142 from nuttycom/crate_zcash_protocol
...
Factor out protocol constants and value types into a `zcash_protocol` crate.
2024-03-06 14:39:11 +00:00
Kris Nuttycombe
376db4684b
Fix incorrect zip321 amount parsing.
2024-03-05 21:50:25 -07:00
Kris Nuttycombe
6b4942f8eb
Add failing test for incorrect zip321 amount parsing.
2024-03-05 21:48:05 -07:00
Kris Nuttycombe
eaabc0f514
Apply suggestions from code review
...
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-03-05 20:03:46 -07:00
Kris Nuttycombe
8955cfc559
Add missing CHANGELOG entries.
2024-03-05 14:37:26 -07:00
Kris Nuttycombe
5675a76f0d
zcash_protocol: Use `BalanceError` instead of `()` for monetary range violations.
2024-03-05 13:59:26 -07:00
Kris Nuttycombe
51d4464472
Remove `network_type` calls that are obviated by the blanket impl.
2024-03-05 13:36:15 -07:00
Kris Nuttycombe
b8aa5132c2
Apply suggestions from code review
...
Co-authored-by: str4d <thestr4d@gmail.com>
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-03-05 13:36:15 -07:00
Kris Nuttycombe
04fdac7931
zcash_primitives: Move the `memo` module to the `zcash_protocol` crate.
2024-03-05 13:36:15 -07:00
Kris Nuttycombe
a823ed776f
Expose address generation errors when constructing default addresses
2024-03-05 13:36:15 -07:00
Kris Nuttycombe
4b18426fcd
zcash_address: Use `zcash_protocol::consensus::NetworkType`
...
This inverts the dependency relationship between `zcash_protocol` and
`zcash_address`, permitting the network constants (primarily the HRPs)
defined in `zcash_protocol` to be used directly in `zcash_address`
instead of being duplicated.
2024-03-05 13:36:15 -07:00
Kris Nuttycombe
64454100c5
zcash_client_backend: Move the `ShieldedProtocol` and `PoolType` types to `zcash_protocol`
2024-03-05 09:46:03 -07:00
Kris Nuttycombe
a35ccfc10b
Fix broken intra-doc links after `zcash_protocol` crate extraction.
2024-03-05 09:45:24 -07:00
Kris Nuttycombe
85d1ca251a
zcash_primitives: Move the `local-consensus` module to the `zcash_protocol` crate.
2024-03-05 09:45:24 -07:00
Kris Nuttycombe
eb3c7b479e
zcash_protocol: Modify `Zatoshis` to directly wrap a u64
2024-03-05 09:45:24 -07:00
Kris Nuttycombe
7188482225
zcash_protocol: Rename value amounts to `Zatoshis` and `ZatBalance`
2024-03-05 09:45:24 -07:00
Kris Nuttycombe
5e4d9abbce
Move `Amount` and `NonNegativeAmount` types to the `zcash_protocol` crate.
2024-03-05 09:45:24 -07:00
Kris Nuttycombe
bacfe3cb9d
Move `zcash_primitives::{consensus, constants}` to the `zcash_protocol` crate
2024-03-05 09:45:24 -07:00
Kris Nuttycombe
66c6bba84e
Add stub for a `zcash_protocol` crate.
2024-03-05 09:45:24 -07:00