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%
574 B · 26 lines swift
Raw Blame History
1import Foundation23public enum PendingTransactionStatus: Equatable, Hashable {4    case sending5    case confirmed(numberOfConfirmations: UInt64, slot: UInt64?)6    case finalized78    public var numberOfConfirmations: UInt64 {9        switch self {10        case let .confirmed(numberOfConfirmations, _):11            return numberOfConfirmations12        default:13            return 014        }15    }1617    public var slot: UInt64? {18        switch self {19        case let .confirmed(_, slot):20            return slot21        default:22            return nil23        }24    }25}26