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%
1import Foundation23public extension TransactionInfo {4 struct ParsedInstructionData {5 public let instruction: ParsedInstruction6 public let innerInstruction: InnerInstruction?7 }89 func instructionsData() -> [ParsedInstructionData] {10 let instructions = transaction.message.instructions11 let innerInstructions = meta?.innerInstructions ?? []1213 return instructions.enumerated().map { index, element in14 ParsedInstructionData(15 instruction: element,16 innerInstruction: innerInstructions.first(where: { $0.index == index })17 )18 }19 }20}21