From e6744044d320e74bed93037ae4cd62a69752c361 Mon Sep 17 00:00:00 2001 From: Prashan Dharmasena Date: Mon, 13 May 2024 18:53:29 -0400 Subject: [PATCH] chore: Update SubaccountPosition fields to be non-nullable. --- build.gradle.kts | 2 +- .../exchange.dydx.abacus/output/Account.kt | 38 +++++++++---------- v4_abacus.podspec | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 12e6993fa..412596649 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -49,7 +49,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.7.11" +version = "1.7.13" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/output/Account.kt b/src/commonMain/kotlin/exchange.dydx.abacus/output/Account.kt index 2ed71c12b..4b2a450d7 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/output/Account.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/output/Account.kt @@ -228,31 +228,31 @@ data class SubaccountPosition( val id: String, val assetId: String, val side: TradeStatesWithPositionSides, - val entryPrice: TradeStatesWithDoubleValues?, + val entryPrice: TradeStatesWithDoubleValues, val exitPrice: Double?, val createdAtMilliseconds: Double?, val closedAtMilliseconds: Double?, val netFunding: Double?, - val realizedPnl: TradeStatesWithDoubleValues?, - val realizedPnlPercent: TradeStatesWithDoubleValues?, - val unrealizedPnl: TradeStatesWithDoubleValues?, - val unrealizedPnlPercent: TradeStatesWithDoubleValues?, - val size: TradeStatesWithDoubleValues?, - val notionalTotal: TradeStatesWithDoubleValues?, - val valueTotal: TradeStatesWithDoubleValues?, - val initialRiskTotal: TradeStatesWithDoubleValues?, - val adjustedImf: TradeStatesWithDoubleValues?, - val adjustedMmf: TradeStatesWithDoubleValues?, - val leverage: TradeStatesWithDoubleValues?, - val maxLeverage: TradeStatesWithDoubleValues?, - val buyingPower: TradeStatesWithDoubleValues?, - val liquidationPrice: TradeStatesWithDoubleValues?, + val realizedPnl: TradeStatesWithDoubleValues, + val realizedPnlPercent: TradeStatesWithDoubleValues, + val unrealizedPnl: TradeStatesWithDoubleValues, + val unrealizedPnlPercent: TradeStatesWithDoubleValues, + val size: TradeStatesWithDoubleValues, + val notionalTotal: TradeStatesWithDoubleValues, + val valueTotal: TradeStatesWithDoubleValues, + val initialRiskTotal: TradeStatesWithDoubleValues, + val adjustedImf: TradeStatesWithDoubleValues, + val adjustedMmf: TradeStatesWithDoubleValues, + val leverage: TradeStatesWithDoubleValues, + val maxLeverage: TradeStatesWithDoubleValues, + val buyingPower: TradeStatesWithDoubleValues, + val liquidationPrice: TradeStatesWithDoubleValues, val resources: SubaccountPositionResources, val childSubaccountNumber: Int?, - val freeCollateral: TradeStatesWithDoubleValues?, - val marginUsage: TradeStatesWithDoubleValues?, - val quoteBalance: TradeStatesWithDoubleValues?, // available for isolated market position - val equity: TradeStatesWithDoubleValues?, // available for isolated market position + val freeCollateral: TradeStatesWithDoubleValues, + val marginUsage: TradeStatesWithDoubleValues, + val quoteBalance: TradeStatesWithDoubleValues, // available for isolated market position + val equity: TradeStatesWithDoubleValues, // available for isolated market position ) { companion object { internal fun create( diff --git a/v4_abacus.podspec b/v4_abacus.podspec index 11c21fb08..59cc275ba 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.7.11' + spec.version = '1.7.13' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''