Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 0f940d4

Browse files
author
github-actions
committed
Update Nostr Swift bindings to version 0.32.1
1 parent e4434e9 commit 0f940d4

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
],
1515
dependencies: [],
1616
targets: [
17-
.binaryTarget(name: "nostrFFI", url: "https://github.com/rust-nostr/nostr-swift/releases/download/0.32.0/nostrFFI.xcframework.zip", checksum: "75f9849a6771e488557ed280c221374fe785853e494d42ce323238e8845c0375"),
17+
.binaryTarget(name: "nostrFFI", url: "https://github.com/rust-nostr/nostr-swift/releases/download/0.32.1/nostrFFI.xcframework.zip", checksum: "440c9bb42ef42f6f73bc8c4131917cd48de424d000a43c196aba9c1a3e29f43a"),
1818
.target(name: "Nostr", dependencies: ["nostrFFI"]),
1919
]
2020
)

Sources/Nostr/Nostr.swift

+17-18
Original file line numberDiff line numberDiff line change
@@ -6546,21 +6546,6 @@ public convenience init() {
65466546
}
65476547

65486548

6549-
public static func get(url: String, proxy: String? = nil)async throws -> RelayInformationDocument {
6550-
return
6551-
try await uniffiRustCallAsync(
6552-
rustFutureFunc: {
6553-
uniffi_nostr_ffi_fn_constructor_relayinformationdocument_get(FfiConverterString.lower(url),FfiConverterOptionString.lower(proxy)
6554-
)
6555-
},
6556-
pollFunc: ffi_nostr_ffi_rust_future_poll_pointer,
6557-
completeFunc: ffi_nostr_ffi_rust_future_complete_pointer,
6558-
freeFunc: ffi_nostr_ffi_rust_future_free_pointer,
6559-
liftFunc: FfiConverterTypeRelayInformationDocument.lift,
6560-
errorHandler: FfiConverterTypeNostrError.lift
6561-
)
6562-
}
6563-
65646549

65656550

65666551
open func contact() -> String? {
@@ -18720,6 +18705,20 @@ public func nip04Encrypt(secretKey: SecretKey, publicKey: PublicKey, content: St
1872018705
)
1872118706
})
1872218707
}
18708+
public func nip11GetInformationDocument(url: String, proxy: String? = nil)async throws -> RelayInformationDocument {
18709+
return
18710+
try await uniffiRustCallAsync(
18711+
rustFutureFunc: {
18712+
uniffi_nostr_ffi_fn_func_nip11_get_information_document(FfiConverterString.lower(url),FfiConverterOptionString.lower(proxy)
18713+
)
18714+
},
18715+
pollFunc: ffi_nostr_ffi_rust_future_poll_pointer,
18716+
completeFunc: ffi_nostr_ffi_rust_future_complete_pointer,
18717+
freeFunc: ffi_nostr_ffi_rust_future_free_pointer,
18718+
liftFunc: FfiConverterTypeRelayInformationDocument.lift,
18719+
errorHandler: FfiConverterTypeNostrError.lift
18720+
)
18721+
}
1872318722
public func nip44Decrypt(secretKey: SecretKey, publicKey: PublicKey, payload: String)throws -> String {
1872418723
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNostrError.lift) {
1872518724
uniffi_nostr_ffi_fn_func_nip44_decrypt(
@@ -18865,6 +18864,9 @@ private var initializationResult: InitializationResult {
1886518864
if (uniffi_nostr_ffi_checksum_func_nip04_encrypt() != 24648) {
1886618865
return InitializationResult.apiChecksumMismatch
1886718866
}
18867+
if (uniffi_nostr_ffi_checksum_func_nip11_get_information_document() != 42127) {
18868+
return InitializationResult.apiChecksumMismatch
18869+
}
1886818870
if (uniffi_nostr_ffi_checksum_func_nip44_decrypt() != 37647) {
1886918871
return InitializationResult.apiChecksumMismatch
1887018872
}
@@ -19864,9 +19866,6 @@ private var initializationResult: InitializationResult {
1986419866
if (uniffi_nostr_ffi_checksum_constructor_rawevent_from_record() != 51955) {
1986519867
return InitializationResult.apiChecksumMismatch
1986619868
}
19867-
if (uniffi_nostr_ffi_checksum_constructor_relayinformationdocument_get() != 5909) {
19868-
return InitializationResult.apiChecksumMismatch
19869-
}
1987019869
if (uniffi_nostr_ffi_checksum_constructor_relayinformationdocument_new() != 46265) {
1987119870
return InitializationResult.apiChecksumMismatch
1987219871
}

0 commit comments

Comments
 (0)