From 5d87bafa512ba16de7ba4e623041080971d092c7 Mon Sep 17 00:00:00 2001 From: aleka Date: Mon, 14 Oct 2024 16:26:39 -0400 Subject: [PATCH] pass in ff_enable_timestamp_nonce flag for validator config (#706) --- build.gradle.kts | 2 +- .../kotlin/exchange.dydx.abacus/state/manager/Environment.kt | 1 + .../state/v2/supervisor/ConnectionsSupervisor.kt | 4 ++++ v4_abacus.podspec | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 298c835b5..91f85a81f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.12.22" +version = "1.12.23" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/Environment.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/Environment.kt index 626daa8ca..a84f3d590 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/Environment.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/Environment.kt @@ -549,6 +549,7 @@ class V4Environment( data object StatsigConfig { var dc_max_safe_bridge_fees: Float = Float.POSITIVE_INFINITY var ff_enable_limit_close: Boolean = false + var ff_enable_timestamp_nonce: Boolean = false } @JsExport diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt index 113b6e7ce..d23cf2916 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt @@ -7,6 +7,7 @@ import exchange.dydx.abacus.protocols.TransactionType import exchange.dydx.abacus.state.manager.GasToken import exchange.dydx.abacus.state.manager.IndexerURIs import exchange.dydx.abacus.state.manager.NetworkState +import exchange.dydx.abacus.state.manager.StatsigConfig import exchange.dydx.abacus.state.manager.SystemUtils import exchange.dydx.abacus.state.model.TradingStateMachine import exchange.dydx.abacus.utils.AnalyticsUtils @@ -243,6 +244,9 @@ internal class ConnectionsSupervisor( params.safeSet("CHAINTOKEN_DENOM", chainTokenDenom) params.safeSet("CHAINTOKEN_DECIMALS", chainTokenDecimals) params.safeSet("txnMemo", "dYdX Frontend (${SystemUtils.platform.rawValue})") + + params.safeSet("enableTimestampNonce", StatsigConfig.ff_enable_timestamp_nonce) + val jsonString = JsonEncoder().encode(params) ?: return helper.ioImplementations.threading?.async(ThreadingType.main) { diff --git a/v4_abacus.podspec b/v4_abacus.podspec index 775815611..121a6104b 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.12.22' + spec.version = '1.12.23' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''