Skip to content

Commit

Permalink
Deprecate Synchronizer.sendToAddress and Synchronizer.shieldFunds
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Feb 21, 2024
1 parent d4b0306 commit 35cc57b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ shielding funds, and then creating transactions from a proposal. The intermediat
proposal can be used to determine the required fee, before committing to producing
transactions.

The old `Synchronizer.sendToAddress` and `Synchronizer.shieldFunds` APIs have been
deprecated, and will be removed in 2.1.0 (which will create multiple transactions
at once for some recipients).

# 2.0.10 - 2024-02-12

## Added
Expand Down
2 changes: 2 additions & 0 deletions Sources/ZcashLightClientKit/Synchronizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public protocol Synchronizer: AnyObject {
///
/// If `prepare()` hasn't already been called since creating of synchronizer instance or since the last wipe then this method throws
/// `SynchronizerErrors.notPrepared`.
@available(*, deprecated, message: "Upcoming SDK 2.1 will create multiple transactions at once for some recipients.")
func sendToAddress(
spendingKey: UnifiedSpendingKey,
zatoshi: Zatoshi,
Expand All @@ -217,6 +218,7 @@ public protocol Synchronizer: AnyObject {
///
/// If `prepare()` hasn't already been called since creating of synchronizer instance or since the last wipe then this method throws
/// `SynchronizerErrors.notPrepared`.
@available(*, deprecated, message: "Upcoming SDK 2.1 will create multiple transactions at once for some recipients.")
func shieldFunds(
spendingKey: UnifiedSpendingKey,
memo: Memo,
Expand Down

0 comments on commit 35cc57b

Please sign in to comment.