diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e87280c..947fba7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Sources/ZcashLightClientKit/Synchronizer.swift b/Sources/ZcashLightClientKit/Synchronizer.swift index c48f887d..79bdd067 100644 --- a/Sources/ZcashLightClientKit/Synchronizer.swift +++ b/Sources/ZcashLightClientKit/Synchronizer.swift @@ -209,6 +209,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, @@ -222,6 +223,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, diff --git a/Sources/ZcashLightClientKit/Synchronizer/ClosureSDKSynchronizer.swift b/Sources/ZcashLightClientKit/Synchronizer/ClosureSDKSynchronizer.swift index 8db106dd..086b47e1 100644 --- a/Sources/ZcashLightClientKit/Synchronizer/ClosureSDKSynchronizer.swift +++ b/Sources/ZcashLightClientKit/Synchronizer/ClosureSDKSynchronizer.swift @@ -103,6 +103,7 @@ extension ClosureSDKSynchronizer: ClosureSynchronizer { } } + @available(*, deprecated, message: "Upcoming SDK 2.1 will create multiple transactions at once for some recipients.") public func sendToAddress( spendingKey: UnifiedSpendingKey, zatoshi: Zatoshi, @@ -115,6 +116,7 @@ extension ClosureSDKSynchronizer: ClosureSynchronizer { } } + @available(*, deprecated, message: "Upcoming SDK 2.1 will create multiple transactions at once for some recipients.") public func shieldFunds( spendingKey: UnifiedSpendingKey, memo: Memo, diff --git a/Sources/ZcashLightClientKit/Synchronizer/CombineSDKSynchronizer.swift b/Sources/ZcashLightClientKit/Synchronizer/CombineSDKSynchronizer.swift index 2fef6c23..e30625a0 100644 --- a/Sources/ZcashLightClientKit/Synchronizer/CombineSDKSynchronizer.swift +++ b/Sources/ZcashLightClientKit/Synchronizer/CombineSDKSynchronizer.swift @@ -99,6 +99,7 @@ extension CombineSDKSynchronizer: CombineSynchronizer { } } + @available(*, deprecated, message: "Upcoming SDK 2.1 will create multiple transactions at once for some recipients.") public func sendToAddress( spendingKey: UnifiedSpendingKey, zatoshi: Zatoshi, @@ -110,6 +111,7 @@ extension CombineSDKSynchronizer: CombineSynchronizer { } } + @available(*, deprecated, message: "Upcoming SDK 2.1 will create multiple transactions at once for some recipients.") public func shieldFunds( spendingKey: UnifiedSpendingKey, memo: Memo,