|
|
|
@ -115,7 +115,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private func makeTokensCardViewController(with account: Wallet, viewModel: TokensCardViewModel) -> TokensCardViewController { |
|
|
|
|
let controller = TokensCardViewController(tokenObject: token, account: account, tokensStorage: tokensStorage, assetDefinitionStore: assetDefinitionStore, viewModel: viewModel) |
|
|
|
|
let controller = TokensCardViewController(analyticsCoordinator: analyticsCoordinator, tokenObject: token, account: account, tokensStorage: tokensStorage, assetDefinitionStore: assetDefinitionStore, viewModel: viewModel) |
|
|
|
|
controller.hidesBottomBarWhenPushed = true |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -224,7 +224,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeRedeemTokensCardQuantitySelectionViewController(token: TokenObject, for tokenHolder: TokenHolder) -> RedeemTokenCardQuantitySelectionViewController { |
|
|
|
|
let viewModel = RedeemTokenCardQuantitySelectionViewModel(token: token, tokenHolder: tokenHolder, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = RedeemTokenCardQuantitySelectionViewController(token: token, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = RedeemTokenCardQuantitySelectionViewController(analyticsCoordinator: analyticsCoordinator, token: token, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -232,7 +232,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeEnterSellTokensCardPriceQuantityViewController(token: TokenObject, for tokenHolder: TokenHolder, paymentFlow: PaymentFlow) -> EnterSellTokensCardPriceQuantityViewController { |
|
|
|
|
let viewModel = EnterSellTokensCardPriceQuantityViewControllerViewModel(token: token, tokenHolder: tokenHolder, server: session.server, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = EnterSellTokensCardPriceQuantityViewController(storage: tokensStorage, paymentFlow: paymentFlow, cryptoPrice: ethPrice, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = EnterSellTokensCardPriceQuantityViewController(analyticsCoordinator: analyticsCoordinator, storage: tokensStorage, paymentFlow: paymentFlow, cryptoPrice: ethPrice, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -240,7 +240,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeEnterTransferTokensCardExpiryDateViewController(token: TokenObject, for tokenHolder: TokenHolder, paymentFlow: PaymentFlow) -> SetTransferTokensCardExpiryDateViewController { |
|
|
|
|
let viewModel = SetTransferTokensCardExpiryDateViewControllerViewModel(token: token, tokenHolder: tokenHolder, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = SetTransferTokensCardExpiryDateViewController(tokenHolder: tokenHolder, paymentFlow: paymentFlow, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = SetTransferTokensCardExpiryDateViewController(analyticsCoordinator: analyticsCoordinator, tokenHolder: tokenHolder, paymentFlow: paymentFlow, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -248,7 +248,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeTransferTokensCardViaWalletAddressViewController(token: TokenObject, for tokenHolder: TokenHolder, paymentFlow: PaymentFlow) -> TransferTokensCardViaWalletAddressViewController { |
|
|
|
|
let viewModel = TransferTokensCardViaWalletAddressViewControllerViewModel(token: token, tokenHolder: tokenHolder, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = TransferTokensCardViaWalletAddressViewController(token: token, tokenHolder: tokenHolder, paymentFlow: paymentFlow, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = TransferTokensCardViaWalletAddressViewController(analyticsCoordinator: analyticsCoordinator, token: token, tokenHolder: tokenHolder, paymentFlow: paymentFlow, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -256,7 +256,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeEnterSellTokensCardExpiryDateViewController(token: TokenObject, for tokenHolder: TokenHolder, ethCost: Ether, paymentFlow: PaymentFlow) -> SetSellTokensCardExpiryDateViewController { |
|
|
|
|
let viewModel = SetSellTokensCardExpiryDateViewControllerViewModel(token: token, tokenHolder: tokenHolder, ethCost: ethCost, server: session.server, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = SetSellTokensCardExpiryDateViewController(storage: tokensStorage, paymentFlow: paymentFlow, tokenHolder: tokenHolder, ethCost: ethCost, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = SetSellTokensCardExpiryDateViewController(analyticsCoordinator: analyticsCoordinator, storage: tokensStorage, paymentFlow: paymentFlow, tokenHolder: tokenHolder, ethCost: ethCost, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -272,7 +272,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeTransferTokensCardQuantitySelectionViewController(token: TokenObject, for tokenHolder: TokenHolder, paymentFlow: PaymentFlow) -> TransferTokensCardQuantitySelectionViewController { |
|
|
|
|
let viewModel = TransferTokensCardQuantitySelectionViewModel(token: token, tokenHolder: tokenHolder, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = TransferTokensCardQuantitySelectionViewController(paymentFlow: paymentFlow, token: token, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = TransferTokensCardQuantitySelectionViewController(analyticsCoordinator: analyticsCoordinator, paymentFlow: paymentFlow, token: token, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -280,7 +280,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
|
|
|
|
|
private func makeChooseTokenCardTransferModeViewController(token: TokenObject, for tokenHolder: TokenHolder, paymentFlow: PaymentFlow) -> ChooseTokenCardTransferModeViewController { |
|
|
|
|
let viewModel = ChooseTokenCardTransferModeViewControllerViewModel(token: token, tokenHolder: tokenHolder, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = ChooseTokenCardTransferModeViewController(tokenHolder: tokenHolder, paymentFlow: paymentFlow, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let controller = ChooseTokenCardTransferModeViewController(analyticsCoordinator: analyticsCoordinator, tokenHolder: tokenHolder, paymentFlow: paymentFlow, viewModel: viewModel, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
controller.configure() |
|
|
|
|
controller.delegate = self |
|
|
|
|
return controller |
|
|
|
@ -398,7 +398,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private func showTokenInstanceViewController(tokenHolder: TokenHolder, in viewController: TokensCardViewController) { |
|
|
|
|
let vc = TokenInstanceViewController(tokenObject: token, tokenHolder: tokenHolder, account: session.account, tokensStorage: tokensStorage, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
let vc = TokenInstanceViewController(analyticsCoordinator: analyticsCoordinator, tokenObject: token, tokenHolder: tokenHolder, account: session.account, tokensStorage: tokensStorage, assetDefinitionStore: assetDefinitionStore) |
|
|
|
|
vc.delegate = self |
|
|
|
|
vc.configure() |
|
|
|
|
vc.navigationItem.largeTitleDisplayMode = .never |
|
|
|
@ -407,7 +407,7 @@ class TokensCardCoordinator: NSObject, Coordinator { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private func showTokenInstanceActionView(forAction action: TokenInstanceAction, tokenHolder: TokenHolder, viewController: UIViewController) { |
|
|
|
|
let vc = TokenInstanceActionViewController(tokenObject: token, tokenHolder: tokenHolder, tokensStorage: tokensStorage, assetDefinitionStore: assetDefinitionStore, action: action, session: session, keystore: keystore) |
|
|
|
|
let vc = TokenInstanceActionViewController(analyticsCoordinator: analyticsCoordinator, tokenObject: token, tokenHolder: tokenHolder, tokensStorage: tokensStorage, assetDefinitionStore: assetDefinitionStore, action: action, session: session, keystore: keystore) |
|
|
|
|
vc.delegate = self |
|
|
|
|
vc.configure() |
|
|
|
|
vc.navigationItem.largeTitleDisplayMode = .never |
|
|
|
|