From 1ea9c7de84e83d1c727b04e11a77c54f05ff5bc2 Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Wed, 14 Feb 2024 12:23:23 +0000 Subject: [PATCH] - add delegation to list of handled WC2 conformation screens - add the same header UI to stake confirm to allow display of WC2 dApp info (name, image etc) --- .../xcshareddata/swiftpm/Package.resolved | 2 +- .../Modules/Home/Base.lproj/Home.storyboard | 13 +- .../Modules/Home/HomeTabBarController.swift | 3 + .../Modules/Send/Base.lproj/Send.storyboard | 468 +++++++++--------- .../Stake/ConfirmStakeViewController.swift | 87 +++- Kukai Mobile/Modules/Stake/Stake.storyboard | 385 ++++++++------ .../Services/WalletConnectService.swift | 45 ++ 7 files changed, 591 insertions(+), 412 deletions(-) diff --git a/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index fd2bd017..afc69477 100644 --- a/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -69,7 +69,7 @@ "location" : "https://github.com/kukai-wallet/kukai-core-swift", "state" : { "branch" : "develop", - "revision" : "50642c483fcc185a2bf55f3fc2334154f703b79d" + "revision" : "137b92329aa18883efd2c73a0002f61ea9e4ee53" } }, { diff --git a/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard b/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard index 5d488c5d..33026ec2 100644 --- a/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard +++ b/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard @@ -114,6 +114,7 @@ + @@ -550,7 +551,7 @@ - + @@ -1372,7 +1373,15 @@ - + + + + + + + + + diff --git a/Kukai Mobile/Modules/Home/HomeTabBarController.swift b/Kukai Mobile/Modules/Home/HomeTabBarController.swift index 59312013..2781f1a6 100644 --- a/Kukai Mobile/Modules/Home/HomeTabBarController.swift +++ b/Kukai Mobile/Modules/Home/HomeTabBarController.swift @@ -538,6 +538,9 @@ extension HomeTabBarController: WalletConnectServiceDelegate { case .batch: self.performSegue(withIdentifier: "wallet-connect-batch", sender: nil) + case .delegate: + self.performSegue(withIdentifier: "wallet-connect-delegate", sender: nil) + case .generic: self.performSegue(withIdentifier: "wallet-connect-generic", sender: nil) } diff --git a/Kukai Mobile/Modules/Send/Base.lproj/Send.storyboard b/Kukai Mobile/Modules/Send/Base.lproj/Send.storyboard index 8172976a..2bbff08a 100644 --- a/Kukai Mobile/Modules/Send/Base.lproj/Send.storyboard +++ b/Kukai Mobile/Modules/Send/Base.lproj/Send.storyboard @@ -56,7 +56,7 @@