diff --git a/Sources/ElixxirDAppsSDK/Functors/GetE2EFileTransferParams.swift b/Sources/ElixxirDAppsSDK/Functors/GetE2EFileTransferParams.swift new file mode 100644 index 0000000000000000000000000000000000000000..28618064d1c2528669c6d479fe32a84f71291b4f --- /dev/null +++ b/Sources/ElixxirDAppsSDK/Functors/GetE2EFileTransferParams.swift @@ -0,0 +1,26 @@ +import Bindings +import XCTestDynamicOverlay + +public struct GetE2EFileTransferParams { + public var run: () -> Data + + public func callAsFunction() -> Data { + run() + } +} + +extension GetE2EFileTransferParams { + public static let liveDefault = GetE2EFileTransferParams { + guard let data = BindingsGetDefaultE2eFileTransferParams() else { + fatalError("BindingsGetDefaultE2eFileTransferParams returned `nil`") + } + return data + } +} + +extension GetE2EFileTransferParams { + public static let unimplemented = GetE2EFileTransferParams( + run: XCTUnimplemented("\(Self.self)") + ) +} +