Skip to content

Commit

Permalink
Add FF
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Aug 30, 2024
1 parent d1fdc63 commit 23e43b5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public enum dydxBoolFeatureFlag: String, CaseIterable {
case shouldUseSkip = "ff_skip_migration"
case isVaultEnabled = "ff_vault_enabled"
case showPredictionMarketsUI = "ff_show_prediction_markets_ui"
case abacus_static_typing

var defaultValue: Bool {
switch self {
Expand All @@ -28,6 +29,8 @@ public enum dydxBoolFeatureFlag: String, CaseIterable {
return false
case .showPredictionMarketsUI:
return false
case .abacus_static_typing:
return false
}
}

Expand Down
20 changes: 20 additions & 0 deletions dydx/dydxPresenters/dydxPresenters/_Features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,26 @@
}
]
}
},
{
"title":{
"text":"Abacus Static Typing"
},
"field":{
"field":"abacus_static_typing",
"optional":true,
"type" : "bool",
"options" : [
{
"text": "yes",
"value" : 1
},
{
"text": "no",
"value" : 0
}
]
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public final class AbacusStateManager: NSObject {
appConfigs.onboardingConfigs.squidVersion = OnboardingConfigs.SquidVersion.v2
appConfigs.onboardingConfigs.alchemyApiKey = CredientialConfig.shared.credential(for: "alchemyApiKey")
StatsigConfig.shared.useSkip = dydxBoolFeatureFlag.shouldUseSkip.isEnabled
appConfigs.staticTyping = dydxBoolFeatureFlag.abacus_static_typing.isEnabled

return AsyncAbacusStateManagerV2(
deploymentUri: deploymentUri,
Expand Down

0 comments on commit 23e43b5

Please sign in to comment.