Signal-iOS/SignalServiceKit/Payments/MobileCoinHelper.swift
Jordan Rose b0de59f2e2 Remove required from every init that is not dynamically dispatched
This included:
- Removing unavailable inits wholesale if no longer `required`
- Marking a few classes `final` so they could continue using
  `Self(...)` rather than `OWSWhatever(...)`
2024-04-01 15:27:20 -07:00

35 lines
821 B
Swift

//
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
public protocol MobileCoinHelper: AnyObject {
func info(forReceiptData receiptData: Data) throws -> MobileCoinReceiptInfo
func isValidMobileCoinPublicAddress(_ addressData: Data) -> Bool
}
// MARK: -
public class MobileCoinReceiptInfo: NSObject {
public let txOutPublicKey: Data
public init(txOutPublicKey: Data) {
self.txOutPublicKey = txOutPublicKey
}
}
// MARK: -
public class MobileCoinHelperMock: NSObject, MobileCoinHelper {
public func info(forReceiptData receiptData: Data) throws -> MobileCoinReceiptInfo {
throw OWSAssertionError("Not implemented.")
}
public func isValidMobileCoinPublicAddress(_ addressData: Data) -> Bool {
false
}
}