|
|
|
@ -23,6 +23,7 @@ protocol TicketsCoordinatorDelegate: class { |
|
|
|
|
func didCancel(in coordinator: TicketsCoordinator) |
|
|
|
|
func didPressViewRedemptionInfo(in: UIViewController) |
|
|
|
|
func didPressViewEthereumInfo(in: UIViewController) |
|
|
|
|
func didPressViewContractWebPage(for token: TokenObject, in viewController: UIViewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class TicketsCoordinator: NSObject, Coordinator { |
|
|
|
@ -373,6 +374,10 @@ extension TicketsCoordinator: TicketsViewControllerDelegate { |
|
|
|
|
func didPressViewRedemptionInfo(in viewController: TicketsViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: TicketsViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: RedeemTicketsViewControllerDelegate { |
|
|
|
@ -383,6 +388,10 @@ extension TicketsCoordinator: RedeemTicketsViewControllerDelegate { |
|
|
|
|
func didPressViewInfo(in viewController: RedeemTicketsViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: RedeemTicketsViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: RedeemTicketsQuantitySelectionViewControllerDelegate { |
|
|
|
@ -393,6 +402,10 @@ extension TicketsCoordinator: RedeemTicketsQuantitySelectionViewControllerDelega |
|
|
|
|
func didPressViewInfo(in viewController: RedeemTicketsQuantitySelectionViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: RedeemTicketsQuantitySelectionViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: SellTicketsViewControllerDelegate { |
|
|
|
@ -403,6 +416,10 @@ extension TicketsCoordinator: SellTicketsViewControllerDelegate { |
|
|
|
|
func didPressViewInfo(in viewController: SellTicketsViewController) { |
|
|
|
|
delegate?.didPressViewEthereumInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: SellTicketsViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: TransferTicketsQuantitySelectionViewControllerDelegate { |
|
|
|
@ -413,6 +430,10 @@ extension TicketsCoordinator: TransferTicketsQuantitySelectionViewControllerDele |
|
|
|
|
func didPressViewInfo(in viewController: TransferTicketsQuantitySelectionViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: TransferTicketsQuantitySelectionViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: EnterSellTicketsPriceQuantityViewControllerDelegate { |
|
|
|
@ -423,6 +444,10 @@ extension TicketsCoordinator: EnterSellTicketsPriceQuantityViewControllerDelegat |
|
|
|
|
func didPressViewInfo(in viewController: EnterSellTicketsPriceQuantityViewController) { |
|
|
|
|
delegate?.didPressViewEthereumInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: EnterSellTicketsPriceQuantityViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: SetSellTicketsExpiryDateViewControllerDelegate { |
|
|
|
@ -433,6 +458,10 @@ extension TicketsCoordinator: SetSellTicketsExpiryDateViewControllerDelegate { |
|
|
|
|
func didPressViewInfo(in viewController: SetSellTicketsExpiryDateViewController) { |
|
|
|
|
delegate?.didPressViewEthereumInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: SetSellTicketsExpiryDateViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: TransferTicketsViewControllerDelegate { |
|
|
|
@ -443,6 +472,10 @@ extension TicketsCoordinator: TransferTicketsViewControllerDelegate { |
|
|
|
|
func didPressViewInfo(in viewController: TransferTicketsViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: TransferTicketsViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: TransferTicketsCoordinatorDelegate { |
|
|
|
@ -488,6 +521,10 @@ extension TicketsCoordinator: ChooseTicketTransferModeViewControllerDelegate { |
|
|
|
|
func didPressViewInfo(in viewController: ChooseTicketTransferModeViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: ChooseTicketTransferModeViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: SetTransferTicketsExpiryDateViewControllerDelegate { |
|
|
|
@ -498,6 +535,10 @@ extension TicketsCoordinator: SetTransferTicketsExpiryDateViewControllerDelegate |
|
|
|
|
func didPressViewInfo(in viewController: SetTransferTicketsExpiryDateViewController) { |
|
|
|
|
delegate?.didPressViewRedemptionInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: SetTransferTicketsExpiryDateViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extension TicketsCoordinator: GenerateTransferMagicLinkViewControllerDelegate { |
|
|
|
@ -534,4 +575,8 @@ extension TicketsCoordinator: TransferTicketsViaWalletAddressViewControllerDeleg |
|
|
|
|
func didPressViewInfo(in viewController: TransferTicketsViaWalletAddressViewController) { |
|
|
|
|
delegate?.didPressViewEthereumInfo(in: viewController) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func didPressViewContractWebPage(in viewController: TransferTicketsViaWalletAddressViewController) { |
|
|
|
|
delegate?.didPressViewContractWebPage(for: viewController.viewModel.token, in: viewController) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|