From 88e51b0a5a43399b91ecd5447c6d410e61fc2b58 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 19 Nov 2024 15:21:20 -0800 Subject: [PATCH] Add tradingRewardsLearnMore link --- build.gradle.kts | 2 +- .../kotlin/exchange.dydx.abacus/state/manager/Environment.kt | 3 +++ .../exchange.dydx.abacus/tests/payloads/AbacusMockData.kt | 1 + v4_abacus.podspec | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c437aaf2a..b29aac99d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.13.32" +version = "1.13.33" 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 f8dbb496a..eb3e67f52 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/Environment.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/Environment.kt @@ -87,6 +87,7 @@ data class EnvironmentLinks( val statusPage: String?, val withdrawalGateLearnMore: String?, val equityTiersLearnMore: String?, + val tradingRewardsLearnMore: String?, ) { companion object { fun parse( @@ -109,6 +110,7 @@ data class EnvironmentLinks( val withdrawalGateLearnMore = parser.asString(data["withdrawalGateLearnMore"]) val equityTiersLearnMore = parser.asString(data["equityTiersLearnMore"]) val vaultTos = parser.asString(data["vaultTos"]) + val tradingRewardsLearnMore = parser.asString(data["tradingRewardsLearnMore"]) return EnvironmentLinks( tos, privacy, @@ -126,6 +128,7 @@ data class EnvironmentLinks( statusPage, withdrawalGateLearnMore, equityTiersLearnMore, + tradingRewardsLearnMore, ) } } diff --git a/src/commonTest/kotlin/exchange.dydx.abacus/tests/payloads/AbacusMockData.kt b/src/commonTest/kotlin/exchange.dydx.abacus/tests/payloads/AbacusMockData.kt index 7aa8815a4..dca361d18 100644 --- a/src/commonTest/kotlin/exchange.dydx.abacus/tests/payloads/AbacusMockData.kt +++ b/src/commonTest/kotlin/exchange.dydx.abacus/tests/payloads/AbacusMockData.kt @@ -90,6 +90,7 @@ class AbacusMockData { statusPage = "https://status.v4testnet.dydx.exchange/", withdrawalGateLearnMore = "https://help.dydx.exchange/en/articles/8981384-withdrawals-on-dydx-chain#h_23e97bc665", equityTiersLearnMore = "https://help.dydx.trade/en/articles/171918-equity-tiers-and-rate-limits", + tradingRewardsLearnMore = "https://docs.dydx.exchange/concepts-trading/rewards_fees_and_parameters", ), walletConnection = WalletConnection( WalletConnect( diff --git a/v4_abacus.podspec b/v4_abacus.podspec index ff24f26e4..62bc0e5c0 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.13.32' + spec.version = '1.13.33' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''