diff --git a/packages/swift-sdk/Sources/SwiftDashSDK/Tx/TransactionBuilder.swift b/packages/swift-sdk/Sources/SwiftDashSDK/Tx/TransactionBuilder.swift deleted file mode 100644 index 068d186769c..00000000000 --- a/packages/swift-sdk/Sources/SwiftDashSDK/Tx/TransactionBuilder.swift +++ /dev/null @@ -1,53 +0,0 @@ -import Foundation - -/// Minimal transaction builder facade exposed by SwiftDashSDK. -/// Implementation will be wired to FFI in a follow-up; for now it surfaces a stable API. -public final class SDKTransactionBuilder { - public struct Input { - public let txid: Data - public let vout: UInt32 - public let scriptPubKey: Data - public let privateKey: Data - public init(txid: Data, vout: UInt32, scriptPubKey: Data, privateKey: Data) { - self.txid = txid - self.vout = vout - self.scriptPubKey = scriptPubKey - self.privateKey = privateKey - } - } - - public struct Output { - public let address: String - public let amount: UInt64 - public init(address: String, amount: UInt64) { - self.address = address - self.amount = amount - } - } - - private let feePerKB: UInt64 - private var inputs: [Input] = [] - private var outputs: [Output] = [] - private var changeAddress: String? - - public init(feePerKB: UInt64 = 1000) { - self.feePerKB = feePerKB - } - - public func setChangeAddress(_ address: String) throws { - // TODO: validate address via SDK once available - self.changeAddress = address - } - - public func addInput(_ input: Input) throws { - inputs.append(input) - } - - public func addOutput(_ output: Output) throws { - outputs.append(output) - } - - public func build() throws -> SDKBuiltTransaction { - throw SDKTxError.notImplemented("Transaction building is not yet implemented in SwiftDashSDK") - } -} diff --git a/packages/swift-sdk/Sources/SwiftDashSDK/Tx/TransactionTypes.swift b/packages/swift-sdk/Sources/SwiftDashSDK/Tx/TransactionTypes.swift deleted file mode 100644 index c47306edfed..00000000000 --- a/packages/swift-sdk/Sources/SwiftDashSDK/Tx/TransactionTypes.swift +++ /dev/null @@ -1,21 +0,0 @@ -import Foundation - -public struct SDKBuiltTransaction { - public let txid: String - public let rawTransaction: Data - public let fee: UInt64 -} - -public enum SDKTxError: LocalizedError { - case notImplemented(String) - case invalidInput(String) - case invalidState(String) - - public var errorDescription: String? { - switch self { - case .notImplemented(let msg): return msg - case .invalidInput(let msg): return msg - case .invalidState(let msg): return msg - } - } -}