SPB Git

spb/os-vault Public

Self-custody, multi-chain crypto wallet for macOS. One recovery phrase, six chain families, zero API keys — nothing leaves your Mac.

Swift 96% Shell 3.4% Makefile 0.6%
702 B · 33 lines swift
Raw Blame History
1import WalletCoreC2import Foundation3// SPDX-License-Identifier: Apache-2.04//5// Copyright © 2017 Trust Wallet.6//7// This is a GENERATED FILE, changes made here WILL BE LOST.8//910import Foundation1112/// THORChain swap functions13public struct THORChainSwap {1415    /// Builds a THORChainSwap transaction input.16    ///17    /// - Parameter input: The serialized data of SwapInput.18    /// - Returns: The serialized data of SwapOutput.19    public static func buildSwap(input: Data) -> Data {20        let inputData = TWDataCreateWithNSData(input)21        defer {22            TWDataDelete(inputData)23        }24        return TWDataNSData(TWTHORChainSwapBuildSwap(inputData))25    }262728    init() {29    }303132}33