Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into issue/1416
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	backend-lib/Cargo.lock
#	backend-lib/Cargo.toml
#	sdk-incubator-lib/src/main/java/cash/z/ecc/android/sdk/model/FiatCurrencyConversionExt.kt
#	sdk-incubator-lib/src/main/java/cash/z/ecc/android/sdk/model/ZatoshiExt.kt
#	sdk-lib/src/androidTest/java/cash/z/ecc/fixture/FakeRustBackend.kt
#	sdk-lib/src/main/java/cash/z/ecc/android/sdk/model/FiatCurrency.kt
  • Loading branch information
Milan-Cerovsky committed Sep 9, 2024
2 parents a078f28 + 6b2bb61 commit 8f1e667
Show file tree
Hide file tree
Showing 51 changed files with 1,197 additions and 362 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
zip -r ${BINARIES_ZIP_PATH} . -i *build/outputs/*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 10
with:
name: Release binaries
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
zip -r ${BINARIES_ZIP_PATH} . -i *build/outputs/*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 10
with:
name: Snapshot binaries
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
zip -r ${REPORTS_ZIP_PATH} . -i build/reports/detekt/\*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Detekt static analysis results
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
zip -r ${REPORTS_ZIP_PATH} . -i build/reports/ktlint/\*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Ktlint static analysis results
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
zip -r ${LINT_ZIP_PATH} . -i \*build/reports/\*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Android Lint static analysis results
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
zip -r ${TEST_RESULTS_ZIP_PATH} . -i \*/build/test-results/\* \*/build/reports/\*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Test Android modules with Unit Tests
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
./gradlew assembleDebug assembleAndroidTest
- name: Authenticate to Google Cloud for Firebase Test Lab
id: auth_test_lab
uses: google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2
uses: google-github-actions/auth@62cf5bd3e4211a0a0b51f2c6d6a37129d828611d
with:
create_credentials_file: true
project_id: ${{ vars.FIREBASE_TEST_LAB_PROJECT }}
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
zip -r ${TEST_RESULTS_ZIP_PATH} . -i build/fladle/\* \*/build/outputs/androidTest-results/\*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Test Android modules with FTL results
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
zip -r ${TEST_RESULTS_ZIP_PATH} . -i \*/build/test-results/\*
- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Test Android modules with WTF results
Expand Down Expand Up @@ -355,7 +355,7 @@ jobs:
zip -r ${BINARIES_ZIP_PATH} . -i demo-app/build/outputs/apk/\*/release/\*.apk demo-app/build/outputs/bundle/\*/release/\*.aab
zip -r ${MAPPINGS_ZIP_PATH} . -i demo-app/build/outputs/mapping/\*/mapping.txt
- name: Upload Artifacts
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
timeout-minutes: 1
with:
name: Demo app release binaries
Expand All @@ -380,7 +380,7 @@ jobs:
uses: ./.github/actions/setup
- name: Authenticate to Google Cloud for Firebase Test Lab
id: auth_test_lab
uses: google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2
uses: google-github-actions/auth@62cf5bd3e4211a0a0b51f2c6d6a37129d828611d
with:
create_credentials_file: true
project_id: ${{ vars.FIREBASE_TEST_LAB_PROJECT }}
Expand Down
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,55 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Several functions have been updated to accept `cash.z.ecc.android.sdk.model.Locale` instead of
`cash.z.ecc.android.sdk.model.MonetarySeparators` as an argument. MonetarySeparators are derived from Locale now.
- `FiatCurrencyConversion.toZatoshi`
- `Zatoshi.toFiatCurrencyState`
- `Zatoshi.toFiatString`
- `BigDecimal.convertFiatDecimalToFiatString`
- `Zatoshi.Companion.fromZecString`

### Added
- `Double?.convertUsdToZec` has been added as we are moving away from `BigDecimal` in favor of primitive types
- `Locale.getDefault()` has been added

## [2.2.2] - 2024-09-03

### Fixed
- Migrated to `zcash_client_sqlite 0.11.2` to remove use of a database feature
that prevented use of Zashi on older devices.

### Changed
- Checkpoints update

## [2.2.1] - 2024-08-22

### Fixed
- A database migration misconfiguration that could result in problems with wallet
initialization was fixed.

## [2.2.0] - 2024-08-22

This release adds several important new features:
- Currency exchange rates (currently just USD/ZEC) are now made available via the SDK.
The exchange rate computed as the median of values provided by at least three separate
cryptocurrency exchanges, and is fetched over Tor connections in order to avoid leaking
the wallet's IP address to the exchanges.
- Sending to ZIP 320 (TEX) addresses is now supported. When sending to a ZIP 320 address,
the wallet will first automatically de-shield the required funds to a fresh ephemeral
transparent address, and then will make a second fully-transparent transaction sending
the funds to the eventual recipient that is not linkable via on-chain information to any
other transaction in the user's wallet.
- As part of adding ZIP 320 support, the SDK now also provides full support for recovering
transparent transaction history. Prior to this release, only transactions belonging to the
wallet that contained either some shielded component OR a member of the current
transparent UTXO set were included in transaction history.

### Changed
- Migrated to Rust 1.80.0.
- `Synchronizer.proposeTransfer` now supports TEX addresses (ZIP 320).
- Internal transactions-enhancing logic has changed to support the history of transactions made to TEX addresses

### Added
- `Synchronizer.isValidTexAddr` which checks whether the given address is a valid ZIP 320 TEX address
Expand All @@ -18,6 +64,10 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `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
- `Synchronizer.getTAddressTransactions` returns all the transactions for a given t-address over the given range

### Changed
- Checkpoints update

## [2.1.3] - 2024-08-08

Expand Down
Loading

0 comments on commit 8f1e667

Please sign in to comment.