 fileprivate enum MetricsPayloadData: Encodable {
     case launch(LaunchData)
     case checkout(CheckoutData)
-    case enableSegWit(SegWitData)
-    case viewLegacyAddress(SegWitData)
+    case enableSegWit(EnableSegWitData)
+    case viewLegacyAddress(ViewLegacyAddressData)
     
     var metric: String {
         switch self {

        case .checkout(_):
            return "pigeon-transaction"
        case .enableSegWit(_):
            return "enableSegWit"
        case .viewLegacyAddress(_):
            return "viewLegacyAddress"
        }
    }
    

    let timestamp: Int
}

fileprivate struct EnableSegWitData: Encodable {
    let eventType = "enableSegWit"
    let timestamp = Int(Date().timeIntervalSince1970)
}

fileprivate struct ViewLegacyAddressData: Encodable {
    let eventType = "viewLegacyAddress"
    let timestamp = Int(Date().timeIntervalSince1970)
}
