Skip to content

Commit

Permalink
#4: Add ClientConnectionConfigurationType
Browse files Browse the repository at this point in the history
  • Loading branch information
lika-vorobeva committed Oct 3, 2022
1 parent 4f3ec6e commit d0a896d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

0 comments on commit d0a896d

Please sign in to comment.