Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
* development:
  removed internal handling (#565)
  MOB-2043 - Handle email in activate mpc wallet deep link event (#568)
  MOB-2043 - Handle ud.me/wallet deep link (#567)
  MOB-2042 - Added feature flags (#566)
  MOB-1955 - Added support & feedback for all mail clients (#563)
  MOB-1808 - Improved badges API usage (#564)
  MOB-1764 - Disable AI search for domain name (#562)
  Fixed preview and tests targets
  • Loading branch information
rommex committed May 28, 2024
2 parents 9510198 + 8b3c799 commit c51d31e
Show file tree
Hide file tree
Showing 50 changed files with 489 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ final class AppContext: AppContextProtocol {

walletTransactionsService = WalletTransactionsService(networkService: NetworkService(),
cache: InMemoryWalletTransactionsCache())
mpcWalletsService = MPCWalletsService(udWalletsService: udWalletsService,
mpcWalletsService = MPCWalletsService(udWalletsService: udWalletsService,
udFeatureFlagsService: udFeatureFlagsService,
uiHandler: coreAppCoordinator)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// PreviewEIP712TypedData.swift
// unstoppable-preview
//
// Created by Oleg Kuplin on 24.05.2024.
//

import Foundation

public struct EIP712TypedData: Codable {
public let domain: JSON
public let message: JSON
}

public enum JSON: Equatable, Codable {
case string(String)
case number(Float)
case object([String: JSON])
case array([JSON])
case bool(Bool)
case null
}

public extension JSON {
public var debugDescription: String { "" }

subscript(index: Int) -> JSON? {
if case .array(let arr) = self, arr.indices.contains(index) {
return arr[index]
}
return nil
}

subscript(key: String) -> JSON? {
if case .object(let dict) = self {
return dict[key]
}
return nil
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import SwiftUI
let connectConfiguration = createConnectConfiguration()
let signConfiguration = createSignConfiguration()
let paymentConfiguration = createPaymentConfiguration()
_ = try? await appContext.pullUpViewService.showServerConnectConfirmationPullUp(for: connectConfiguration,
_ = try? await appContext.pullUpViewService.showWCRequestConfirmationPullUp(for: connectConfiguration,
in: vc)
}
}
Expand Down
28 changes: 24 additions & 4 deletions unstoppable-ios-app/domains-manager-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

/* Begin PBXBuildFile section */
290136B42BFBFA3F00AB126D /* EIP712View.xib in Resources */ = {isa = PBXBuildFile; fileRef = 290136B32BFBFA3F00AB126D /* EIP712View.xib */; };
290136B52BFBFA3F00AB126D /* EIP712View.xib in Resources */ = {isa = PBXBuildFile; fileRef = 290136B32BFBFA3F00AB126D /* EIP712View.xib */; };
290136B72BFBFAAE00AB126D /* EIP712View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 290136B62BFBFAAE00AB126D /* EIP712View.swift */; };
290136B82BFBFAAE00AB126D /* EIP712View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 290136B62BFBFAAE00AB126D /* EIP712View.swift */; };
29018C8D2BACB7BC0004545D /* JRPC_Client.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29018C8C2BACB7BC0004545D /* JRPC_Client.swift */; };
290A60422950A89900882109 /* WalletConnectServiceV2.swift in Sources */ = {isa = PBXBuildFile; fileRef = 290A60412950A89900882109 /* WalletConnectServiceV2.swift */; };
290A60482950AA1600882109 /* WalletConnect in Frameworks */ = {isa = PBXBuildFile; productRef = 290A60472950AA1600882109 /* WalletConnect */; };
Expand Down Expand Up @@ -1420,6 +1418,8 @@
C6A359332BB699FC00B1209A /* ConfirmSendTokenDataModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A359312BB699FC00B1209A /* ConfirmSendTokenDataModel.swift */; };
C6A359352BB6BB2100B1209A /* TxHash.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A359342BB6BB2000B1209A /* TxHash.swift */; };
C6A359362BB6BB2100B1209A /* TxHash.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A359342BB6BB2000B1209A /* TxHash.swift */; };
C6A440092C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A440082C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift */; };
C6A4400A2C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A440082C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift */; };
C6A474C729D149560073415F /* LoginFlowNavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A474C629D149560073415F /* LoginFlowNavigationController.swift */; };
C6A474D029D150A40073415F /* NoParkedDomainsFoundViewPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A474CD29D150A40073415F /* NoParkedDomainsFoundViewPresenter.swift */; };
C6A474D429D150A40073415F /* NoParkedDomainsFoundViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6A474CE29D150A40073415F /* NoParkedDomainsFoundViewController.swift */; };
Expand Down Expand Up @@ -1593,6 +1593,12 @@
C6BA74742AD5013500628DC6 /* PullUpViewService+DomainProfile.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BA74732AD5013500628DC6 /* PullUpViewService+DomainProfile.swift */; };
C6BB08EE2BFDB50A00123465 /* FB_UD_MPCAPIBadResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BB08ED2BFDB50A00123465 /* FB_UD_MPCAPIBadResponse.swift */; };
C6BB08EF2BFDB50A00123465 /* FB_UD_MPCAPIBadResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BB08ED2BFDB50A00123465 /* FB_UD_MPCAPIBadResponse.swift */; };
C6BEC94B2C00382900F21FB6 /* EIP712View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 290136B62BFBFAAE00AB126D /* EIP712View.swift */; };
C6BEC94C2C00382900F21FB6 /* EIP712View.xib in Resources */ = {isa = PBXBuildFile; fileRef = 290136B32BFBFA3F00AB126D /* EIP712View.xib */; };
C6BEC94F2C0038F700F21FB6 /* PreviewEIP712TypedData.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BEC94E2C0038F700F21FB6 /* PreviewEIP712TypedData.swift */; };
C6BEC9512C004B0700F21FB6 /* RequestsLimitControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BEC9502C004B0700F21FB6 /* RequestsLimitControllerTests.swift */; };
C6BEC9532C004D2A00F21FB6 /* RequestsLimitController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BEC9522C004D2A00F21FB6 /* RequestsLimitController.swift */; };
C6BEC9542C004D2A00F21FB6 /* RequestsLimitController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BEC9522C004D2A00F21FB6 /* RequestsLimitController.swift */; };
C6BEEF3029C30C89000489B9 /* FirebaseNetworkConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BEEF2F29C30C89000489B9 /* FirebaseNetworkConfig.swift */; };
C6BF0C5B2B8EDEB4009CB50F /* CheckPendingEventsOnAppearViewModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BF0C5A2B8EDEB4009CB50F /* CheckPendingEventsOnAppearViewModifier.swift */; };
C6BF0C5C2B8EDEB4009CB50F /* CheckPendingEventsOnAppearViewModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6BF0C5A2B8EDEB4009CB50F /* CheckPendingEventsOnAppearViewModifier.swift */; };
Expand Down Expand Up @@ -3614,6 +3620,7 @@
C6A359292BB5586700B1209A /* NavigationTrackerViewModifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationTrackerViewModifier.swift; sourceTree = "<group>"; };
C6A359312BB699FC00B1209A /* ConfirmSendTokenDataModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfirmSendTokenDataModel.swift; sourceTree = "<group>"; };
C6A359342BB6BB2000B1209A /* TxHash.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TxHash.swift; sourceTree = "<group>"; };
C6A440082C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UDFeatureFlagsServiceEnvironmentKey.swift; sourceTree = "<group>"; };
C6A474C629D149560073415F /* LoginFlowNavigationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginFlowNavigationController.swift; sourceTree = "<group>"; };
C6A474CD29D150A40073415F /* NoParkedDomainsFoundViewPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoParkedDomainsFoundViewPresenter.swift; sourceTree = "<group>"; };
C6A474CE29D150A40073415F /* NoParkedDomainsFoundViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoParkedDomainsFoundViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3725,6 +3732,9 @@
C6BA74712AD4FEE600628DC6 /* PullUpViewService+ExternalWallets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PullUpViewService+ExternalWallets.swift"; sourceTree = "<group>"; };
C6BA74732AD5013500628DC6 /* PullUpViewService+DomainProfile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PullUpViewService+DomainProfile.swift"; sourceTree = "<group>"; };
C6BB08ED2BFDB50A00123465 /* FB_UD_MPCAPIBadResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FB_UD_MPCAPIBadResponse.swift; sourceTree = "<group>"; };
C6BEC94E2C0038F700F21FB6 /* PreviewEIP712TypedData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewEIP712TypedData.swift; sourceTree = "<group>"; };
C6BEC9502C004B0700F21FB6 /* RequestsLimitControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestsLimitControllerTests.swift; sourceTree = "<group>"; };
C6BEC9522C004D2A00F21FB6 /* RequestsLimitController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestsLimitController.swift; sourceTree = "<group>"; };
C6BEEF2F29C30C89000489B9 /* FirebaseNetworkConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirebaseNetworkConfig.swift; sourceTree = "<group>"; };
C6BF0C5A2B8EDEB4009CB50F /* CheckPendingEventsOnAppearViewModifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckPendingEventsOnAppearViewModifier.swift; sourceTree = "<group>"; };
C6BF6BD92B8EE724006CC2BD /* PassViewAnalyticsDetailsViewModifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PassViewAnalyticsDetailsViewModifier.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -4258,6 +4268,7 @@
30C0F94927D8CB250060D283 /* PrivateKeyStorageTests.swift */,
C62900FD2BAAD126008B35A2 /* NumberPadInputInterpreterTests.swift */,
29EDB622290A94E700A0BD08 /* ProfilesTests.swift */,
C6BEC9502C004B0700F21FB6 /* RequestsLimitControllerTests.swift */,
30F526452785BB22004C7AB6 /* ResolutionInitTests.swift */,
308B1D4025B8A75D005FE726 /* testUpdateRecords.swift */,
C6D9E29D28537AC8002CDAC2 /* TransactionsDecodingTests.swift */,
Expand Down Expand Up @@ -4941,6 +4952,7 @@
C63095C72B0DA5DE00205054 /* PurchaseDomainsPreferencesStorageEnvironmentKey.swift */,
C617FD9D2B58DBCA00B93433 /* WalletsDataServiceEnvironmentKey.swift */,
C65CEB8A2B674FC700A13B34 /* UDWalletsServiceEnvironmentKey.swift */,
C6A440082C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift */,
);
path = EnvironmentKeys;
sourceTree = "<group>";
Expand Down Expand Up @@ -5001,6 +5013,7 @@
C6960C652B199B6F00B79E28 /* PreviewDomainItem.swift */,
C6D6475A2B1EDCED00D724AC /* PreviewDomainProfileInfoStorage.swift */,
C6D646DB2B1ED3F500D724AC /* PreviewDomainProfileSignatureValidator.swift */,
C6BEC94E2C0038F700F21FB6 /* PreviewEIP712TypedData.swift */,
C6C8F95C2B21867E00A9834D /* PreviewEncrypting.swift */,
C6A89C602B31657D008AB043 /* PreviewHotFeaturesSuggestionsFetcher.swift */,
C6C8F8572B217F8200A9834D /* PreviewiCloudPrivateKeyStorage.swift */,
Expand Down Expand Up @@ -7348,6 +7361,7 @@
C6DF46222AA180C000D124E7 /* PublicDomainDisplayInfo.swift */,
C63095D52B0DA61600205054 /* PublishingAppStorage.swift */,
C643129A2B68A1AE00BCA2A4 /* PhotoLibraryImageSaver.swift */,
C6BEC9522C004D2A00F21FB6 /* RequestsLimitController.swift */,
C61FD05528FD3F540088CFDD /* ShareDomainHandler.swift */,
C669C37E29124C2600837F21 /* SocialsType.swift */,
C69F99552A9F167F004B1958 /* DomainProfileSocialAccount.swift */,
Expand Down Expand Up @@ -8534,7 +8548,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
290136B52BFBFA3F00AB126D /* EIP712View.xib in Resources */,
C67B6D5E2AE7F8FB00F74B0B /* Media.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -8616,6 +8629,7 @@
C6960C2D2B19945000B79E28 /* Assets.xcassets in Resources */,
C6FEA9192BEB700E004FD740 /* SettingsCollectionViewCell.xib in Resources */,
C6D6473D2B1ED9EF00D724AC /* PaymentTransactionCostView.xib in Resources */,
C6BEC94C2C00382900F21FB6 /* EIP712View.xib in Resources */,
C6D646D42B1ED2D500D724AC /* UDTextField.xib in Resources */,
C6D646F02B1ED5B200D724AC /* AddWalletViewController.xib in Resources */,
C6C8F8422B217E9600A9834D /* CreatePasswordViewController.xib in Resources */,
Expand Down Expand Up @@ -9169,6 +9183,7 @@
C61B3E72283E43D000500B6D /* EnterEmailViewPresenter.swift in Sources */,
C6ED320D295E8EDE00BC6919 /* NonEmptyArray.swift in Sources */,
C63DBCCB2BE49376008F3D2C /* NetworkService+Common.swift in Sources */,
C6BEC9532C004D2A00F21FB6 /* RequestsLimitController.swift in Sources */,
C63F1CFF28AD099C000A5C12 /* EmptyRootCNavigationController.swift in Sources */,
309BD85F265679EA00CB0C49 /* PaymentConfiguration.swift in Sources */,
C6B761FC2BB403F700773943 /* HomeActivity.swift in Sources */,
Expand Down Expand Up @@ -9741,6 +9756,7 @@
C671CD2B2BC6D5F3005DA2FB /* PreviewEcomPurchaseMPCWalletService.swift in Sources */,
C6B761DF2BB3D78F00773943 /* SerializedWalletTransaction.swift in Sources */,
C60DCEE2282D0C4000F71C13 /* ResizableRoundedWalletImageView.swift in Sources */,
C6A440092C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift in Sources */,
C61808822B19BC680032E543 /* TransactionError.swift in Sources */,
C6534A912BBFBA10008EEBB5 /* HomeExploreFollowersSectionView.swift in Sources */,
C6534AA92BBFBA10008EEBB5 /* HomeExploreSeparatorView.swift in Sources */,
Expand Down Expand Up @@ -9909,8 +9925,8 @@
C6B2E2122B970E0900CEA1F9 /* DomainProfileSocialRelationshipDetailsTests.swift in Sources */,
C617CFA42B9ED9F200663516 /* TestableDomainTransactionsService.swift in Sources */,
C632C9432BA957BF00B0072B /* UserProfilesServiceTests.swift in Sources */,
C6BEC9512C004B0700F21FB6 /* RequestsLimitControllerTests.swift in Sources */,
C63391782A86819600623188 /* XMTPMessagingAPIServiceTests.swift in Sources */,
290136B82BFBFAAE00AB126D /* EIP712View.swift in Sources */,
C67B6D572AE79E8400F74B0B /* ImagesCacheStorageTests.swift in Sources */,
C67DE1432B983FD0002374CE /* HomeExploreViewModelTests.swift in Sources */,
C6B6B8732B91A4F900565ED2 /* TaskWithDeadlineTests.swift in Sources */,
Expand Down Expand Up @@ -9986,6 +10002,7 @@
C6C8F9912B218B0E00A9834D /* TextWhiteButton.swift in Sources */,
C6D646782B1ED12100D724AC /* RecordChangeType.swift in Sources */,
C6534AB02BBFBA10008EEBB5 /* HomeExploreSuggestedProfilesListView.swift in Sources */,
C6A4400A2C0448530042FFCC /* UDFeatureFlagsServiceEnvironmentKey.swift in Sources */,
C688C1802B845FE500BD233A /* ChatListUserRowView.swift in Sources */,
C6A231FD2BEB494D0037E093 /* WalletDetailsDomainItemView.swift in Sources */,
C6B761F12BB3F9D900773943 /* WalletTransactionsResponse.swift in Sources */,
Expand All @@ -10006,6 +10023,7 @@
C6D6472E2B1ED9AA00D724AC /* SelectAppearanceThemePullUpView.swift in Sources */,
C6C8F8722B21822700A9834D /* TutorialViewController.swift in Sources */,
C6D647372B1ED9EF00D724AC /* PaymentTransactionGasOnlyCostView.swift in Sources */,
C6BEC9542C004D2A00F21FB6 /* RequestsLimitController.swift in Sources */,
C61808712B19BC150032E543 /* Image.swift in Sources */,
C61807F92B19A7DF0032E543 /* ImageLoadingServiceProtocol.swift in Sources */,
C61808302B19AD9D0032E543 /* PreviewStripeService.swift in Sources */,
Expand Down Expand Up @@ -10084,6 +10102,7 @@
C6F7D9D02B8D6EFC00764708 /* MessageActionReplyButtonView.swift in Sources */,
C68BAC932B919D8E00001CA0 /* ChatViewScrollHandler.swift in Sources */,
C618080F2B19AA420032E543 /* UserDataServiceProtocol.swift in Sources */,
C6BEC94F2C0038F700F21FB6 /* PreviewEIP712TypedData.swift in Sources */,
C618083A2B19AF800032E543 /* PreviewExternalEventsService.swift in Sources */,
C61808402B19B0870032E543 /* PreviewDomainTransactionsService.swift in Sources */,
C6D646042B1DBFF700D724AC /* WalletConnectServiceConnectionListener.swift in Sources */,
Expand All @@ -10109,6 +10128,7 @@
C6C8F8B72B2182CF00A9834D /* MintDomainsConfigurationSelectionCell.swift in Sources */,
C61807C22B19A2E70032E543 /* PermissionsService.swift in Sources */,
C6D646B72B1ED18F00D724AC /* SaveDomainImageTypePullUpView.swift in Sources */,
C6BEC94B2C00382900F21FB6 /* EIP712View.swift in Sources */,
C6D011C62B996A5C0008BF40 /* DomainProfileSuggestion.swift in Sources */,
C6C8F8CD2B21832F00A9834D /* BaseMintingTransactionInProgressViewPresenter.swift in Sources */,
C6C8F8592B217F8200A9834D /* PreviewiCloudPrivateKeyStorage.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ final class GeneralAppContext: AppContextProtocol {
let walletTransactionsService: WalletTransactionsServiceProtocol
let ecomPurchaseMPCWalletService: EcomPurchaseMPCWalletServiceProtocol
let mpcWalletsService: MPCWalletsServiceProtocol
let udFeatureFlagsService: UDFeatureFlagsServiceProtocol

private(set) lazy var coinRecordsService: CoinRecordsServiceProtocol = CoinRecordsService()
private(set) lazy var imageLoadingService: ImageLoadingServiceProtocol = ImageLoadingService(qrCodeService: qrCodeService,
Expand All @@ -56,7 +57,6 @@ final class GeneralAppContext: AppContextProtocol {
private(set) lazy var userDataService: UserDataServiceProtocol = UserDataService()
private(set) lazy var linkPresentationService: LinkPresentationServiceProtocol = LinkPresentationService()
private(set) lazy var domainTransferService: DomainTransferServiceProtocol = DomainTransferService()
private(set) lazy var udFeatureFlagsService: UDFeatureFlagsServiceProtocol = UDFeatureFlagsService()
private(set) lazy var hotFeatureSuggestionsService: HotFeatureSuggestionsServiceProtocol = HotFeatureSuggestionsService(fetcher: DefaultHotFeaturesSuggestionsFetcher())

init() {
Expand All @@ -65,6 +65,7 @@ final class GeneralAppContext: AppContextProtocol {
udDomainsService = UDDomainsService()
udWalletsService = UDWalletsService()
walletNFTsService = WalletNFTsService()
udFeatureFlagsService = UDFeatureFlagsService()
walletTransactionsService = WalletTransactionsService(networkService: NetworkService(),
cache: InMemoryWalletTransactionsCache())

Expand All @@ -77,7 +78,8 @@ final class GeneralAppContext: AppContextProtocol {
let coreAppCoordinator = CoreAppCoordinator(pullUpViewService: pullUpViewService)
self.coreAppCoordinator = coreAppCoordinator
walletConnectServiceV2.setUIHandler(coreAppCoordinator)
mpcWalletsService = MPCWalletsService(udWalletsService: udWalletsService,
mpcWalletsService = MPCWalletsService(udWalletsService: udWalletsService,
udFeatureFlagsService: udFeatureFlagsService,
uiHandler: coreAppCoordinator)

// Wallets data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ final class MockContext: AppContextProtocol {
private(set) lazy var walletTransactionsService: WalletTransactionsServiceProtocol = WalletTransactionsService(networkService: NetworkService(),
cache: InMemoryWalletTransactionsCache())
private(set) lazy var mpcWalletsService: MPCWalletsServiceProtocol = MPCWalletsService(udWalletsService: udWalletsService,
udFeatureFlagsService: udFeatureFlagsService,
uiHandler: coreAppCoordinator)
private(set) lazy var ecomPurchaseMPCWalletService: EcomPurchaseMPCWalletServiceProtocol = PreviewEcomPurchaseMPCWalletService()

Expand Down
Loading

0 comments on commit c51d31e

Please sign in to comment.