mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-30 13:02:49 +03:00
37 lines
1002 B
Swift
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
|
|
}
|
|
}
|
|
}
|