From 34f96723246c8fb9caa7d49530298c0a74155251 Mon Sep 17 00:00:00 2001 From: lipa Bot Date: Thu, 21 Nov 2024 15:19:10 +0000 Subject: [PATCH] This commit was created automatically by the lipa bot --- Package.swift | 4 ++-- .../LipaLightningLib/LipaLightningLib.swift | 24 +++++++++---------- .../lipalightninglibFFI.framework/Info.plist | 4 ++-- .../lipalightninglibFFI.framework/Info.plist | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Package.swift b/Package.swift index 28a8b28..d49a119 100644 --- a/Package.swift +++ b/Package.swift @@ -16,8 +16,8 @@ let package = Package( targets: [ .binaryTarget( name: "lipalightninglibFFI", - url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.70.0-beta.debug.0-mock/lipalightninglibFFI.xcframework.zip", - checksum: "1f829b2407a7057d2eca4c25eb505d205b5f97c578afc462871a49099cdf139b"), + url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.71.0-beta/lipalightninglibFFI.xcframework.zip", + checksum: "07b3ec31a017344956fe9417c14ddc4fdfd975e919e9f8ab5c1a0f737f60eef5"), .target( name: "LipaLightningLib", dependencies: ["lipalightninglibFFI"]), diff --git a/Sources/LipaLightningLib/LipaLightningLib.swift b/Sources/LipaLightningLib/LipaLightningLib.swift index b591f0e..d33b754 100644 --- a/Sources/LipaLightningLib/LipaLightningLib.swift +++ b/Sources/LipaLightningLib/LipaLightningLib.swift @@ -1110,7 +1110,7 @@ public protocol ChannelCloseProtocol : AnyObject { func determineResolvingFees() throws -> OnchainResolvingFees? - func prepareSweep(address: String) throws -> SweepChannelCloseInfo + func prepareSweep(destination: BitcoinAddressData) throws -> SweepChannelCloseInfo func swap(satsPerVbyte: UInt32, lspFeeParams: OpeningFeeParams?) throws -> String @@ -1175,10 +1175,10 @@ open func determineResolvingFees()throws -> OnchainResolvingFees? { }) } -open func prepareSweep(address: String)throws -> SweepChannelCloseInfo { +open func prepareSweep(destination: BitcoinAddressData)throws -> SweepChannelCloseInfo { return try FfiConverterTypeSweepChannelCloseInfo.lift(try rustCallWithError(FfiConverterTypeSweepError.lift) { uniffi_uniffi_lipalightninglib_fn_method_channelclose_prepare_sweep(self.uniffiClonePointer(), - FfiConverterString.lower(address),$0 + FfiConverterTypeBitcoinAddressData.lower(destination),$0 ) }) } @@ -3197,7 +3197,7 @@ public func FfiConverterTypePhoneNumber_lower(_ value: PhoneNumber) -> UnsafeMut public protocol ReverseSwapProtocol : AnyObject { - func clearWallet(clearWalletInfo: ClearWalletInfo, destinationOnchainAddressData: BitcoinAddressData) throws + func clearWallet(clearWalletInfo: ClearWalletInfo, destination: BitcoinAddressData) throws func determineClearWalletFeasibility() throws -> RangeHit @@ -3255,10 +3255,10 @@ open class ReverseSwap: -open func clearWallet(clearWalletInfo: ClearWalletInfo, destinationOnchainAddressData: BitcoinAddressData)throws {try rustCallWithError(FfiConverterTypeLnError.lift) { +open func clearWallet(clearWalletInfo: ClearWalletInfo, destination: BitcoinAddressData)throws {try rustCallWithError(FfiConverterTypeLnError.lift) { uniffi_uniffi_lipalightninglib_fn_method_reverseswap_clear_wallet(self.uniffiClonePointer(), FfiConverterTypeClearWalletInfo.lower(clearWalletInfo), - FfiConverterTypeBitcoinAddressData.lower(destinationOnchainAddressData),$0 + FfiConverterTypeBitcoinAddressData.lower(destination),$0 ) } } @@ -3340,7 +3340,7 @@ public protocol SwapProtocol : AnyObject { func determineResolvingFees(failedSwapInfo: FailedSwapInfo) throws -> OnchainResolvingFees? - func prepareSweep(failedSwapInfo: FailedSwapInfo, toAddress: String) throws -> SweepFailedSwapInfo + func prepareSweep(failedSwapInfo: FailedSwapInfo, destination: BitcoinAddressData) throws -> SweepFailedSwapInfo func swap(failedSwapInfo: FailedSwapInfo, satsPerVbyte: UInt32, lspFeeParam: OpeningFeeParams?) throws -> String @@ -3414,11 +3414,11 @@ open func determineResolvingFees(failedSwapInfo: FailedSwapInfo)throws -> Oncha }) } -open func prepareSweep(failedSwapInfo: FailedSwapInfo, toAddress: String)throws -> SweepFailedSwapInfo { +open func prepareSweep(failedSwapInfo: FailedSwapInfo, destination: BitcoinAddressData)throws -> SweepFailedSwapInfo { return try FfiConverterTypeSweepFailedSwapInfo.lift(try rustCallWithError(FfiConverterTypeLnError.lift) { uniffi_uniffi_lipalightninglib_fn_method_swap_prepare_sweep(self.uniffiClonePointer(), FfiConverterTypeFailedSwapInfo.lower(failedSwapInfo), - FfiConverterString.lower(toAddress),$0 + FfiConverterTypeBitcoinAddressData.lower(destination),$0 ) }) } @@ -12085,7 +12085,7 @@ private var initializationResult: InitializationResult = { if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_determine_resolving_fees() != 21525) { return InitializationResult.apiChecksumMismatch } - if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_prepare_sweep() != 21435) { + if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_prepare_sweep() != 44583) { return InitializationResult.apiChecksumMismatch } if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_swap() != 13343) { @@ -12421,7 +12421,7 @@ private var initializationResult: InitializationResult = { if (uniffi_uniffi_lipalightninglib_checksum_method_phonenumber_verify() != 24882) { return InitializationResult.apiChecksumMismatch } - if (uniffi_uniffi_lipalightninglib_checksum_method_reverseswap_clear_wallet() != 5945) { + if (uniffi_uniffi_lipalightninglib_checksum_method_reverseswap_clear_wallet() != 36987) { return InitializationResult.apiChecksumMismatch } if (uniffi_uniffi_lipalightninglib_checksum_method_reverseswap_determine_clear_wallet_feasibility() != 40903) { @@ -12436,7 +12436,7 @@ private var initializationResult: InitializationResult = { if (uniffi_uniffi_lipalightninglib_checksum_method_swap_determine_resolving_fees() != 43015) { return InitializationResult.apiChecksumMismatch } - if (uniffi_uniffi_lipalightninglib_checksum_method_swap_prepare_sweep() != 47233) { + if (uniffi_uniffi_lipalightninglib_checksum_method_swap_prepare_sweep() != 7973) { return InitializationResult.apiChecksumMismatch } if (uniffi_uniffi_lipalightninglib_checksum_method_swap_swap() != 22862) { diff --git a/lipalightninglibFFI.xcframework/ios-arm64/lipalightninglibFFI.framework/Info.plist b/lipalightninglibFFI.xcframework/ios-arm64/lipalightninglibFFI.framework/Info.plist index d05a3b5..c4e1972 100644 --- a/lipalightninglibFFI.xcframework/ios-arm64/lipalightninglibFFI.framework/Info.plist +++ b/lipalightninglibFFI.xcframework/ios-arm64/lipalightninglibFFI.framework/Info.plist @@ -7,9 +7,9 @@ CFBundleName lipalightninglibFFI CFBundleVersion - 0.70.0..0 + 0.71.0 CFBundleShortVersionString - 0.70.0..0 + 0.71.0 CFBundleExecutable lipalightninglibFFI MinimumOSVersion diff --git a/lipalightninglibFFI.xcframework/ios-arm64_x86_64-simulator/lipalightninglibFFI.framework/Info.plist b/lipalightninglibFFI.xcframework/ios-arm64_x86_64-simulator/lipalightninglibFFI.framework/Info.plist index d05a3b5..c4e1972 100644 --- a/lipalightninglibFFI.xcframework/ios-arm64_x86_64-simulator/lipalightninglibFFI.framework/Info.plist +++ b/lipalightninglibFFI.xcframework/ios-arm64_x86_64-simulator/lipalightninglibFFI.framework/Info.plist @@ -7,9 +7,9 @@ CFBundleName lipalightninglibFFI CFBundleVersion - 0.70.0..0 + 0.71.0 CFBundleShortVersionString - 0.70.0..0 + 0.71.0 CFBundleExecutable lipalightninglibFFI MinimumOSVersion