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