You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
// C o p y r i g h t © 2 0 2 3 R a n g e p r o o f P t y L t d . A l l r i g h t s r e s e r v e d .
//
// s t r i n g l i n t : d i s a b l e
import Foundation
// MARK: - F e a t u r e S t o r a g e
public extension FeatureStorage {
static let serviceNetwork : FeatureConfig < ServiceNetwork > = Dependencies . create (
identifier : " serviceNetwork " ,
defaultOption : . mainnet
)
}
// MARK: - S e r v i c e N e t w o r k F e a t u r e
public enum ServiceNetwork : Int , FeatureOption {
case mainnet = 1
case testnet = 2
// MARK: - F e a t u r e O p t i o n
public static var defaultOption : ServiceNetwork = . mainnet
public var title : String {
switch self {
case . mainnet : return " Mainnet "
case . testnet : return " Testnet "
}
}
public var subtitle : String ? {
switch self {
case . mainnet : return " This is the production service node network. "
case . testnet : return " This is the test service node network, it should be used for testing features which are currently in development and may be unstable. "
}
}
}