tokenary/Shared/Models/AuthenticationReason.swift
2022-05-07 17:52:16 +03:00

37 lines
1002 B
Swift

// Copyright © 2021 Tokenary. All rights reserved.
enum AuthenticationReason {
case start
case sendTransaction
case removeWallet
case showPrivateKey
case showSecretWords
case signMessage
case signPersonalMessage
case signTypedData
case approveTransaction
var title: String {
switch self {
case .start:
return Strings.start
case .sendTransaction:
return Strings.sendTransaction
case .removeWallet:
return Strings.removeWallet
case .showPrivateKey:
return Strings.showPrivateKey
case .showSecretWords:
return Strings.showSecretWords
case .signMessage:
return Strings.signMessage
case .signPersonalMessage:
return Strings.signPersonalMessage
case .signTypedData:
return Strings.signTypedData
case .approveTransaction:
return Strings.approveTransaction
}
}
}