From d0a896d09eb6274fc2836f2d0e1e59564e9d19f4 Mon Sep 17 00:00:00 2001 From: Lika Vorobeva Date: Mon, 3 Oct 2022 16:38:05 +0300 Subject: [PATCH] #4: Add ClientConnectionConfigurationType --- .../Common/Utilities/ClientConstants.swift | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Common/Utilities/ClientConstants.swift b/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Common/Utilities/ClientConstants.swift index ee43f16..26a89cf 100644 --- a/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Common/Utilities/ClientConstants.swift +++ b/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Common/Utilities/ClientConstants.swift @@ -6,12 +6,25 @@ // import Foundation +import SentinelWallet enum ClientConstants { static let host = "localhost" static let port = 3876 + static let defaultLCDHostString = "lcd-sentinel.dvpn.solar" + static let defaultLCDPort = 993 + static let apiPath = "api" static let backendURL = URL(string: "https://BACKEND")! } + +final class ApplicationConfiguration: ClientConnectionConfigurationType { + private(set) static var shared = ApplicationConfiguration() + + var grpcMirror: ClientConnectionConfiguration = .init( + host: ClientConstants.defaultLCDHostString, + port: ClientConstants.defaultLCDPort + ) +}