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 Oct 31, 2024
1 parent bd835eb commit d940416
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 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.67.0-beta-mock/lipalightninglibFFI.xcframework.zip",
checksum: "b3dc9d46bcfba688314cc44cc8e95dc6c91e2abb803c8be64283689b92e1dcb0"),
url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.68.0-beta/lipalightninglibFFI.xcframework.zip",
checksum: "7f49a0ab8c727ec38640004d5de9b928e2c920a7788fab44d6a368f8f84fc784"),
.target(
name: "LipaLightningLib",
dependencies: ["lipalightninglibFFI"]),
Expand Down
12 changes: 2 additions & 10 deletions Sources/LipaLightningLib/LipaLightningLib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4669,15 +4669,13 @@ public struct SwapInfo {
public var bitcoinAddress: String
public var createdAt: TzTime
public var paidAmount: Amount
public var txid: String

// Default memberwise initializers are never public by default, so we
// declare one manually.
public init(bitcoinAddress: String, createdAt: TzTime, paidAmount: Amount, txid: String) {
public init(bitcoinAddress: String, createdAt: TzTime, paidAmount: Amount) {
self.bitcoinAddress = bitcoinAddress
self.createdAt = createdAt
self.paidAmount = paidAmount
self.txid = txid
}
}

Expand All @@ -4694,17 +4692,13 @@ extension SwapInfo: Equatable, Hashable {
if lhs.paidAmount != rhs.paidAmount {
return false
}
if lhs.txid != rhs.txid {
return false
}
return true
}

public func hash(into hasher: inout Hasher) {
hasher.combine(bitcoinAddress)
hasher.combine(createdAt)
hasher.combine(paidAmount)
hasher.combine(txid)
}
}

Expand All @@ -4718,16 +4712,14 @@ public struct FfiConverterTypeSwapInfo: FfiConverterRustBuffer {
try SwapInfo(
bitcoinAddress: FfiConverterString.read(from: &buf),
createdAt: FfiConverterTypeTzTime.read(from: &buf),
paidAmount: FfiConverterTypeAmount.read(from: &buf),
txid: FfiConverterString.read(from: &buf)
paidAmount: FfiConverterTypeAmount.read(from: &buf)
)
}

public static func write(_ value: SwapInfo, into buf: inout [UInt8]) {
FfiConverterString.write(value.bitcoinAddress, into: &buf)
FfiConverterTypeTzTime.write(value.createdAt, into: &buf)
FfiConverterTypeAmount.write(value.paidAmount, into: &buf)
FfiConverterString.write(value.txid, into: &buf)
}
}

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.67.0</string>
<string>0.68.0</string>
<key>CFBundleShortVersionString</key>
<string>0.67.0</string>
<string>0.68.0</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.67.0</string>
<string>0.68.0</string>
<key>CFBundleShortVersionString</key>
<string>0.67.0</string>
<string>0.68.0</string>
<key>CFBundleExecutable</key>
<string>lipalightninglibFFI</string>
<key>MinimumOSVersion</key>
Expand Down

0 comments on commit d940416

Please sign in to comment.