Skip to content

Commit

Permalink
Update Swift bindings to version 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK release tagger committed Sep 25, 2024
1 parent f1acb1c commit d1b44db
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion BreezSDKLiquid.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BreezSDKLiquid"
spec.version = "0.3.3"
spec.version = "0.3.4"
spec.license = { :type => "MIT" }
spec.summary = "Swift bindings to the Breez Liquid SDK"
spec.homepage = "https://breez.technology"
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
.library(name: "BreezSDKLiquid", targets: ["breez_sdk_liquidFFI", "BreezSDKLiquid"]),
],
targets: [
.binaryTarget(name: "breez_sdk_liquidFFI", url: "https://github.com/breez/breez-sdk-liquid-swift/releases/download/0.3.3/breez_sdk_liquidFFI.xcframework.zip", checksum: "f9813eee37a881af6dd9a46be23c54c03a04c584ae8e88ef37237190b24d1fa5"),
.binaryTarget(name: "breez_sdk_liquidFFI", url: "https://github.com/breez/breez-sdk-liquid-swift/releases/download/0.3.4/breez_sdk_liquidFFI.xcframework.zip", checksum: "ad5676758e9ce3c83362c426388497a659f2efa726fa517e971595335e191fbd"),
.target(name: "BreezSDKLiquid", dependencies: ["breez_sdk_liquidFFI"]),
]
)
42 changes: 21 additions & 21 deletions Sources/BreezSDKLiquid/BreezSDKLiquid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3168,13 +3168,13 @@ public func FfiConverterTypePrepareBuyBitcoinResponse_lower(_ value: PrepareBuyB

public struct PreparePayOnchainRequest {
public var amount: PayOnchainAmount
public var feeRateMsatPerVbyte: UInt32?
public var feeRateSatPerVbyte: UInt32?

// Default memberwise initializers are never public by default, so we
// declare one manually.
public init(amount: PayOnchainAmount, feeRateMsatPerVbyte: UInt32? = nil) {
public init(amount: PayOnchainAmount, feeRateSatPerVbyte: UInt32? = nil) {
self.amount = amount
self.feeRateMsatPerVbyte = feeRateMsatPerVbyte
self.feeRateSatPerVbyte = feeRateSatPerVbyte
}
}

Expand All @@ -3184,15 +3184,15 @@ extension PreparePayOnchainRequest: Equatable, Hashable {
if lhs.amount != rhs.amount {
return false
}
if lhs.feeRateMsatPerVbyte != rhs.feeRateMsatPerVbyte {
if lhs.feeRateSatPerVbyte != rhs.feeRateSatPerVbyte {
return false
}
return true
}

public func hash(into hasher: inout Hasher) {
hasher.combine(amount)
hasher.combine(feeRateMsatPerVbyte)
hasher.combine(feeRateSatPerVbyte)
}
}

Expand All @@ -3201,13 +3201,13 @@ public struct FfiConverterTypePreparePayOnchainRequest: FfiConverterRustBuffer {
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PreparePayOnchainRequest {
return try PreparePayOnchainRequest(
amount: FfiConverterTypePayOnchainAmount.read(from: &buf),
feeRateMsatPerVbyte: FfiConverterOptionUInt32.read(from: &buf)
feeRateSatPerVbyte: FfiConverterOptionUInt32.read(from: &buf)
)
}

public static func write(_ value: PreparePayOnchainRequest, into buf: inout [UInt8]) {
FfiConverterTypePayOnchainAmount.write(value.amount, into: &buf)
FfiConverterOptionUInt32.write(value.feeRateMsatPerVbyte, into: &buf)
FfiConverterOptionUInt32.write(value.feeRateSatPerVbyte, into: &buf)
}
}

Expand Down Expand Up @@ -3405,14 +3405,14 @@ public func FfiConverterTypePrepareReceiveResponse_lower(_ value: PrepareReceive
public struct PrepareRefundRequest {
public var swapAddress: String
public var refundAddress: String
public var feeRateMsatPerVbyte: UInt32
public var feeRateSatPerVbyte: UInt32

// Default memberwise initializers are never public by default, so we
// declare one manually.
public init(swapAddress: String, refundAddress: String, feeRateMsatPerVbyte: UInt32) {
public init(swapAddress: String, refundAddress: String, feeRateSatPerVbyte: UInt32) {
self.swapAddress = swapAddress
self.refundAddress = refundAddress
self.feeRateMsatPerVbyte = feeRateMsatPerVbyte
self.feeRateSatPerVbyte = feeRateSatPerVbyte
}
}

Expand All @@ -3425,7 +3425,7 @@ extension PrepareRefundRequest: Equatable, Hashable {
if lhs.refundAddress != rhs.refundAddress {
return false
}
if lhs.feeRateMsatPerVbyte != rhs.feeRateMsatPerVbyte {
if lhs.feeRateSatPerVbyte != rhs.feeRateSatPerVbyte {
return false
}
return true
Expand All @@ -3434,7 +3434,7 @@ extension PrepareRefundRequest: Equatable, Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(swapAddress)
hasher.combine(refundAddress)
hasher.combine(feeRateMsatPerVbyte)
hasher.combine(feeRateSatPerVbyte)
}
}

Expand All @@ -3444,14 +3444,14 @@ public struct FfiConverterTypePrepareRefundRequest: FfiConverterRustBuffer {
return try PrepareRefundRequest(
swapAddress: FfiConverterString.read(from: &buf),
refundAddress: FfiConverterString.read(from: &buf),
feeRateMsatPerVbyte: FfiConverterUInt32.read(from: &buf)
feeRateSatPerVbyte: FfiConverterUInt32.read(from: &buf)
)
}

public static func write(_ value: PrepareRefundRequest, into buf: inout [UInt8]) {
FfiConverterString.write(value.swapAddress, into: &buf)
FfiConverterString.write(value.refundAddress, into: &buf)
FfiConverterUInt32.write(value.feeRateMsatPerVbyte, into: &buf)
FfiConverterUInt32.write(value.feeRateSatPerVbyte, into: &buf)
}
}

Expand Down Expand Up @@ -3885,14 +3885,14 @@ public func FfiConverterTypeRecommendedFees_lower(_ value: RecommendedFees) -> R
public struct RefundRequest {
public var swapAddress: String
public var refundAddress: String
public var feeRateMsatPerVbyte: UInt32
public var feeRateSatPerVbyte: UInt32

// Default memberwise initializers are never public by default, so we
// declare one manually.
public init(swapAddress: String, refundAddress: String, feeRateMsatPerVbyte: UInt32) {
public init(swapAddress: String, refundAddress: String, feeRateSatPerVbyte: UInt32) {
self.swapAddress = swapAddress
self.refundAddress = refundAddress
self.feeRateMsatPerVbyte = feeRateMsatPerVbyte
self.feeRateSatPerVbyte = feeRateSatPerVbyte
}
}

Expand All @@ -3905,7 +3905,7 @@ extension RefundRequest: Equatable, Hashable {
if lhs.refundAddress != rhs.refundAddress {
return false
}
if lhs.feeRateMsatPerVbyte != rhs.feeRateMsatPerVbyte {
if lhs.feeRateSatPerVbyte != rhs.feeRateSatPerVbyte {
return false
}
return true
Expand All @@ -3914,7 +3914,7 @@ extension RefundRequest: Equatable, Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(swapAddress)
hasher.combine(refundAddress)
hasher.combine(feeRateMsatPerVbyte)
hasher.combine(feeRateSatPerVbyte)
}
}

Expand All @@ -3924,14 +3924,14 @@ public struct FfiConverterTypeRefundRequest: FfiConverterRustBuffer {
return try RefundRequest(
swapAddress: FfiConverterString.read(from: &buf),
refundAddress: FfiConverterString.read(from: &buf),
feeRateMsatPerVbyte: FfiConverterUInt32.read(from: &buf)
feeRateSatPerVbyte: FfiConverterUInt32.read(from: &buf)
)
}

public static func write(_ value: RefundRequest, into buf: inout [UInt8]) {
FfiConverterString.write(value.swapAddress, into: &buf)
FfiConverterString.write(value.refundAddress, into: &buf)
FfiConverterUInt32.write(value.feeRateMsatPerVbyte, into: &buf)
FfiConverterUInt32.write(value.feeRateSatPerVbyte, into: &buf)
}
}

Expand Down
2 changes: 1 addition & 1 deletion breez_sdk_liquidFFI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "breez_sdk_liquidFFI"
spec.version = "0.3.3"
spec.version = "0.3.4"
spec.license = { :type => "MIT" }
spec.summary = "Low-level bindings to the Breez Liquid SDK Rust API"
spec.homepage = "https://breez.technology"
Expand Down

0 comments on commit d1b44db

Please sign in to comment.