Skip to content

Commit

Permalink
Merge pull request #1533 from Electric-Coin-Company/tor-exchange-rate
Browse files Browse the repository at this point in the history
Add `Synchronizer` APIs for USD/ZEC exchange rate
  • Loading branch information
str4d authored Aug 13, 2024
2 parents 4eb11f8 + 2e24b4b commit 02857a5
Show file tree
Hide file tree
Showing 33 changed files with 4,916 additions and 860 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Changed
- Migrated to Rust 1.79.0.
- Migrated to Rust 1.80.0.
- `Synchronizer.proposeTransfer` now supports TEX addresses (ZIP 320).

### Added
- `Synchronizer.isValidTexAddr` which checks whether the given address is a valid ZIP 320 TEX address
- `Synchronizer.exchangeRateUsd` is a `StateFlow` containing the latest USD/ZEC
exchange rate, along with the `Instant` it was fetched. It can be initialized
and refreshed by calling `Synchronizer.refreshExchangeRateUsd()`.
- `ZatoshiExt.toFiatString` is now a public function
- `Synchronizer.getFastestServers([LightWalletEndpoint])` is a flow that measures connections to given endpoints and
returns the three fastest ones

## [2.1.3] - 2024-08-08

Expand Down
Loading

0 comments on commit 02857a5

Please sign in to comment.