Skip to content

Commit

Permalink
Update Swift files for v0.2.1
Browse files Browse the repository at this point in the history
... including a hotfix for macOS builds.
  • Loading branch information
tnull committed Jan 26, 2024
1 parent d57b394 commit 1fe855a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import PackageDescription

let tag = "v0.2.1"
let checksum = "8b03d5e8c4c415e6143d834a24037fc7223d9da712941467777668a42ee93ab1"
let checksum = "cca3d5f380c3c216c22ac892cb04a792f3982730e570df71d824462f14c1350e"
let url = "https://github.com/lightningdevkit/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"

let package = Package(
Expand Down
14 changes: 13 additions & 1 deletion bindings/swift/Sources/LDKNode/LDKNode.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!
import Foundation
import SystemConfiguration

// Depending on the consumer's build setup, the low-level FFI code
// might be in a separate module, or it might be compiled inline into
Expand Down Expand Up @@ -2994,6 +2995,7 @@ public func FfiConverterTypeAddress_lower(_ value: Address) -> RustBuffer {
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3027,6 +3029,7 @@ public func FfiConverterTypeBolt11Invoice_lower(_ value: Bolt11Invoice) -> RustB
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3060,6 +3063,7 @@ public func FfiConverterTypeChannelId_lower(_ value: ChannelId) -> RustBuffer {
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3093,6 +3097,7 @@ public func FfiConverterTypeMnemonic_lower(_ value: Mnemonic) -> RustBuffer {
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3126,6 +3131,7 @@ public func FfiConverterTypePaymentHash_lower(_ value: PaymentHash) -> RustBuffe
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3159,6 +3165,7 @@ public func FfiConverterTypePaymentPreimage_lower(_ value: PaymentPreimage) -> R
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3192,6 +3199,7 @@ public func FfiConverterTypePaymentSecret_lower(_ value: PaymentSecret) -> RustB
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3225,6 +3233,7 @@ public func FfiConverterTypePublicKey_lower(_ value: PublicKey) -> RustBuffer {
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3258,6 +3267,7 @@ public func FfiConverterTypeSocketAddress_lower(_ value: SocketAddress) -> RustB
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3291,6 +3301,7 @@ public func FfiConverterTypeTxid_lower(_ value: Txid) -> RustBuffer {
}



/**
* Typealias from the type name used in the UDL file to the builtin type. This
* is needed because the UDL type name is used in function/method signatures.
Expand Down Expand Up @@ -3323,6 +3334,7 @@ public func FfiConverterTypeUserChannelId_lower(_ value: UserChannelId) -> RustB
return FfiConverterTypeUserChannelId.lower(value)
}


public func generateEntropyMnemonic() -> Mnemonic {
return try! FfiConverterTypeMnemonic.lift(
try! rustCall() {
Expand Down Expand Up @@ -3539,4 +3551,4 @@ private func uniffiEnsureInitialized() {
case .apiChecksumMismatch:
fatalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
}
}

0 comments on commit 1fe855a

Please sign in to comment.