Skip to content

Commit

Permalink
This commit was created automatically by the lipa bot
Browse files Browse the repository at this point in the history
  • Loading branch information
lipa-github-bot committed Dec 10, 2024
1 parent 8872e79 commit ca2d946
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "lipalightninglibFFI",
url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.75.0-beta-mock/lipalightninglibFFI.xcframework.zip",
checksum: "8f16ee48d60252abf573e61b12bf7b02649332eafa7f795fdd26a5457498df36"),
url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.75.1-beta/lipalightninglibFFI.xcframework.zip",
checksum: "e88ddd1b997eebfb1f99aa7d694166ef03ead4e9e0660b535ffbc6eb47435c15"),
.target(
name: "LipaLightningLib",
dependencies: ["lipalightninglibFFI"]),
Expand Down
27 changes: 12 additions & 15 deletions Sources/LipaLightningLib/LipaLightningLib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ public protocol ChannelCloseProtocol : AnyObject {

func prepareSweep(destination: BitcoinAddressData) throws -> SweepChannelCloseInfo

func swap(satsPerVbyte: UInt32, lspFeeParams: OpeningFeeParams?) throws -> String
func swap(satsPerVbyte: UInt32) throws -> String

func sweep(sweepInfo: SweepChannelCloseInfo) throws -> String

Expand Down Expand Up @@ -1183,11 +1183,10 @@ open func prepareSweep(destination: BitcoinAddressData)throws -> SweepChannelCl
})
}

open func swap(satsPerVbyte: UInt32, lspFeeParams: OpeningFeeParams?)throws -> String {
open func swap(satsPerVbyte: UInt32)throws -> String {
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeSweepError.lift) {
uniffi_uniffi_lipalightninglib_fn_method_channelclose_swap(self.uniffiClonePointer(),
FfiConverterUInt32.lower(satsPerVbyte),
FfiConverterOptionTypeOpeningFeeParams.lower(lspFeeParams),$0
FfiConverterUInt32.lower(satsPerVbyte),$0
)
})
}
Expand Down Expand Up @@ -3328,15 +3327,15 @@ public protocol SwapProtocol : AnyObject {

func calculateLspFeeForAmount(amountSat: UInt64) throws -> CalculateLspFeeResponseV2

func create(lspFeeParams: OpeningFeeParams?) throws -> SwapAddressInfo
func create() throws -> SwapAddressInfo

func determineResolvingFees(failedSwapInfo: FailedSwapInfo) throws -> OnchainResolvingFees?

func getLspFee() throws -> LspFee

func prepareSweep(failedSwapInfo: FailedSwapInfo, destination: BitcoinAddressData) throws -> SweepFailedSwapInfo

func swap(failedSwapInfo: FailedSwapInfo, satsPerVbyte: UInt32, lspFeeParam: OpeningFeeParams?) throws -> String
func swap(failedSwapInfo: FailedSwapInfo, satsPerVbyte: UInt32) throws -> String

func sweep(sweepFailedSwapInfo: SweepFailedSwapInfo) throws -> String

Expand Down Expand Up @@ -3400,10 +3399,9 @@ open func calculateLspFeeForAmount(amountSat: UInt64)throws -> CalculateLspFeeR
})
}

open func create(lspFeeParams: OpeningFeeParams?)throws -> SwapAddressInfo {
open func create()throws -> SwapAddressInfo {
return try FfiConverterTypeSwapAddressInfo.lift(try rustCallWithError(FfiConverterTypeSwapError.lift) {
uniffi_uniffi_lipalightninglib_fn_method_swap_create(self.uniffiClonePointer(),
FfiConverterOptionTypeOpeningFeeParams.lower(lspFeeParams),$0
uniffi_uniffi_lipalightninglib_fn_method_swap_create(self.uniffiClonePointer(),$0
)
})
}
Expand Down Expand Up @@ -3432,12 +3430,11 @@ open func prepareSweep(failedSwapInfo: FailedSwapInfo, destination: BitcoinAddre
})
}

open func swap(failedSwapInfo: FailedSwapInfo, satsPerVbyte: UInt32, lspFeeParam: OpeningFeeParams?)throws -> String {
open func swap(failedSwapInfo: FailedSwapInfo, satsPerVbyte: UInt32)throws -> String {
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeLnError.lift) {
uniffi_uniffi_lipalightninglib_fn_method_swap_swap(self.uniffiClonePointer(),
FfiConverterTypeFailedSwapInfo.lower(failedSwapInfo),
FfiConverterUInt32.lower(satsPerVbyte),
FfiConverterOptionTypeOpeningFeeParams.lower(lspFeeParam),$0
FfiConverterUInt32.lower(satsPerVbyte),$0
)
})
}
Expand Down Expand Up @@ -12172,7 +12169,7 @@ private var initializationResult: InitializationResult = {
if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_prepare_sweep() != 44583) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_swap() != 13343) {
if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_swap() != 47042) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_channelclose_sweep() != 3534) {
Expand Down Expand Up @@ -12514,7 +12511,7 @@ private var initializationResult: InitializationResult = {
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_calculate_lsp_fee_for_amount() != 61544) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_create() != 19186) {
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_create() != 14616) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_determine_resolving_fees() != 43015) {
Expand All @@ -12526,7 +12523,7 @@ private var initializationResult: InitializationResult = {
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_prepare_sweep() != 7973) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_swap() != 22862) {
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_swap() != 51446) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_swap_sweep() != 44251) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>CFBundleName</key>
<string>lipalightninglibFFI</string>
<key>CFBundleVersion</key>
<string>0.75.0</string>
<string>0.75.1</string>
<key>CFBundleShortVersionString</key>
<string>0.75.0</string>
<string>0.75.1</string>
<key>CFBundleExecutable</key>
<string>lipalightninglibFFI</string>
<key>MinimumOSVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>CFBundleName</key>
<string>lipalightninglibFFI</string>
<key>CFBundleVersion</key>
<string>0.75.0</string>
<string>0.75.1</string>
<key>CFBundleShortVersionString</key>
<string>0.75.0</string>
<string>0.75.1</string>
<key>CFBundleExecutable</key>
<string>lipalightninglibFFI</string>
<key>MinimumOSVersion</key>
Expand Down

0 comments on commit ca2d946

Please sign in to comment.