/
App.swift
53 lines (37 loc) · 1.29 KB
/
App.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// App.swift
// Multisig
//
// Created by Dmitry Bespalov on 22.04.20.
// Copyright © 2020 Gnosis Ltd. All rights reserved.
//
import Foundation
class App {
static let shared = App()
// UI layer
let viewState = ViewState()
let theme = Theme()
let snackbar = SnackbarCenter()
// Business Logic Layer
let ens = ENS(registryAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e")
let gnosisSafe = GnosisSafe()
// Data Layer
var coreDataStack: CoreDataProtocol = CoreDataStack()
var keychainService: SecureStore = KeychainService(identifier: App.configuration.app.bundleIdentifier)
// Services
let safeTransactionService = SafeTransactionService(
url: configuration.services.transactionServiceURL,
logger: LogService.shared)
let clientGatewayService = SafeClientGatewayService(
url: configuration.services.clientGatewayURL,
logger: LogService.shared)
let nodeService = EthereumNodeService(
url: configuration.services.ethereumServiceURL)
let tokenRegistry = TokenRegistry()
let notificationHandler = RemoteNotificationHandler()
// Cross-layer
static let configuration = AppConfiguration()
let firebaseConfig = FirebaseConfig()
lazy var settings = Settings()
private init() {}
}