@@ -90,6 +90,8 @@ class TransferViewControllerBase: FormViewController {
9090 // MARK: - Rows
9191
9292 enum BaseRows {
93+ case senderAddress
94+ case type
9395 case balance
9496 case amount
9597 case fiat
@@ -105,6 +107,8 @@ class TransferViewControllerBase: FormViewController {
105107
106108 var tag : String {
107109 switch self {
110+ case . senderAddress: return " senderAddress "
111+ case . type: return " type "
108112 case . balance: return " balance "
109113 case . amount: return " amount "
110114 case . fiat: return " fiat "
@@ -122,6 +126,8 @@ class TransferViewControllerBase: FormViewController {
122126
123127 var localized : String {
124128 switch self {
129+ case . senderAddress: return . localized( " TransferScene.Row.SenderAddress " , comment: " Transfer: sender address " )
130+ case . type: return . localized( " TransferScene.Row.Type " , comment: " Transfer: transaction type " )
125131 case . balance: return . localized( " TransferScene.Row.Balance " , comment: " Transfer: logged user balance. " )
126132 case . amount: return . localized( " TransferScene.Row.Amount " , comment: " Transfer: amount of adamant to transfer. " )
127133 case . fiat: return . localized( " TransferScene.Row.Fiat " , comment: " Transfer: fiat value of crypto-amout " )
@@ -188,6 +194,8 @@ class TransferViewControllerBase: FormViewController {
188194 let walletCore : WalletCoreProtocol
189195 let reachabilityMonitor : ReachabilityMonitor
190196 let apiServiceCompose : ApiServiceComposeProtocol
197+ let secretWalletManager : SecretWalletsManagerProtocol
198+ let secretWalletViewModel : SecretWalletsViewModel
191199
192200 // MARK: - Properties
193201
@@ -319,7 +327,9 @@ class TransferViewControllerBase: FormViewController {
319327 vibroService: VibroService ,
320328 walletService: WalletService ,
321329 reachabilityMonitor: ReachabilityMonitor ,
322- apiServiceCompose: ApiServiceComposeProtocol
330+ apiServiceCompose: ApiServiceComposeProtocol ,
331+ secretWalletManager: SecretWalletsManagerProtocol ,
332+ secretWalletViewModel: SecretWalletsViewModel
323333 ) {
324334 self . accountService = accountService
325335 self . accountsProvider = accountsProvider
@@ -333,6 +343,8 @@ class TransferViewControllerBase: FormViewController {
333343 self . walletCore = walletService. core
334344 self . reachabilityMonitor = reachabilityMonitor
335345 self . apiServiceCompose = apiServiceCompose
346+ self . secretWalletManager = secretWalletManager
347+ self . secretWalletViewModel = secretWalletViewModel
336348 super. init ( style: . insetGrouped)
337349 }
338350
@@ -501,6 +513,8 @@ class TransferViewControllerBase: FormViewController {
501513 $0. tag = Sections . wallet. tag
502514 }
503515
516+ section. append ( defaultRowFor ( baseRow: BaseRows . senderAddress) )
517+ section. append ( defaultRowFor ( baseRow: BaseRows . type) )
504518 section. append ( defaultRowFor ( baseRow: BaseRows . balance) )
505519 section. append ( defaultRowFor ( baseRow: BaseRows . maxToTransfer) )
506520
@@ -1023,6 +1037,28 @@ class TransferViewControllerBase: FormViewController {
10231037extension TransferViewControllerBase {
10241038 func defaultRowFor( baseRow: BaseRows ) -> BaseRow {
10251039 switch baseRow {
1040+ case . senderAddress:
1041+ return LabelRow { [ weak self] in
1042+ $0. title = BaseRows . senderAddress. localized
1043+ $0. tag = BaseRows . senderAddress. tag
1044+ $0. disabled = true
1045+ $0. cell. detailTextLabel? . lineBreakMode = . byTruncatingMiddle
1046+ $0. value = self ? . walletCore. wallet? . address
1047+ }
1048+ case . type:
1049+ return LabelRow {
1050+ $0. title = BaseRows . type. localized
1051+ $0. tag = BaseRows . type. tag
1052+ $0. disabled = true
1053+
1054+ $0. value = secretWalletViewModel. state. currentWallet? . name ?? String . localized ( " SecretWallets.Menu.Regular " , comment: " Regular Wallet " )
1055+
1056+ for wallet in secretWalletManager. getRegularWallet ( ) . sorted ( includeInvisible: false ) where wallet. core. wallet? . address == walletCore. wallet? . address {
1057+ $0. value = String . localized ( " SecretWallets.Menu.Regular " , comment: " Regular Wallet " )
1058+ break
1059+ }
1060+ }
1061+
10261062 case . balance:
10271063 return SafeDecimalRow { [ weak self] in
10281064 $0. title = BaseRows . balance. localized
0 commit comments