diff --git a/build.gradle.kts b/build.gradle.kts index cd8fa56d8..e9b965810 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.8.92" +version = "1.8.93" repositories { google() diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAPIOrderStatus.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAPIOrderStatus.kt index 2fb74b79a..25afc8b03 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAPIOrderStatus.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAPIOrderStatus.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: OPEN,FILLED,CANCELED,BEST_EFFORT_CANCELED,UNTRIGGERED,BEST_EFFORT_OPENED */ +@JsExport @Serializable enum class IndexerAPIOrderStatus(val value: kotlin.String) { OPEN("OPEN"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAPITimeInForce.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAPITimeInForce.kt index a239ea244..4ba4bb7ba 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAPITimeInForce.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAPITimeInForce.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: GTT,FOK,IOC */ +@JsExport @Serializable enum class IndexerAPITimeInForce(val value: kotlin.String) { GTT("GTT"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAddressResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAddressResponse.kt index 31054e30d..8a6287ff5 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAddressResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAddressResponse.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param subaccounts * @param totalTradingRewards */ +@JsExport @Serializable data class IndexerAddressResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAllOfPerpetualPositionResponseObjectClosedAt.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAllOfPerpetualPositionResponseObjectClosedAt.kt index dcd321927..f07e26240 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAllOfPerpetualPositionResponseObjectClosedAt.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAllOfPerpetualPositionResponseObjectClosedAt.kt @@ -12,9 +12,11 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * */ +@JsExport @Serializable class IndexerAllOfPerpetualPositionResponseObjectClosedAt() diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponse.kt index 61ff6d91b..789a6f26d 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param positions */ +@JsExport @Serializable data class IndexerAssetPositionResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponseObject.kt index 3c8a283a3..94ef006bb 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -21,6 +22,7 @@ import kotlinx.serialization.Serializable * @param assetId * @param subaccountNumber */ +@JsExport @Serializable data class IndexerAssetPositionResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionsMap.kt b/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionsMap.kt index 62e131f32..c9a53cc49 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionsMap.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerAssetPositionsMap.kt @@ -12,9 +12,11 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * */ +@JsExport @Serializable class IndexerAssetPositionsMap() diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerBestEffortOpenedStatus.kt b/src/commonMain/kotlin/indexer/codegen/IndexerBestEffortOpenedStatus.kt index b2dfca372..95691303c 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerBestEffortOpenedStatus.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerBestEffortOpenedStatus.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: BESTEFFORTOPENED */ +@JsExport @Serializable enum class IndexerBestEffortOpenedStatus(val value: kotlin.String) { BESTEFFORTOPENED("BEST_EFFORT_OPENED"); // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerCandleResolution.kt b/src/commonMain/kotlin/indexer/codegen/IndexerCandleResolution.kt index d40f00a84..4006f3ed9 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerCandleResolution.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerCandleResolution.kt @@ -13,11 +13,13 @@ package indexer.codegen import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: _1MIN,_5MINS,_15MINS,_30MINS,_1HOUR,_4HOURS,_1DAY */ +@JsExport @Serializable enum class IndexerCandleResolution(val value: kotlin.String) { @SerialName("1MIN") diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponse.kt index f5d6ce00f..a71d0fad2 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param candles */ +@JsExport @Serializable data class IndexerCandleResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponseObject.kt index 5e1269125..6dd36825f 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerCandleResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -26,8 +27,11 @@ import kotlinx.serialization.Serializable * @param usdVolume * @param trades * @param startingOpenInterest + * @param orderbookMidPriceOpen + * @param orderbookMidPriceClose * @param id */ +@JsExport @Serializable data class IndexerCandleResponseObject( @@ -42,5 +46,7 @@ data class IndexerCandleResponseObject( val usdVolume: kotlin.String? = null, val trades: kotlin.Double? = null, val startingOpenInterest: kotlin.String? = null, + val orderbookMidPriceOpen: kotlin.String? = null, + val orderbookMidPriceClose: kotlin.String? = null, val id: kotlin.String? = null ) diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceReason.kt b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceReason.kt index 3c14ae1b0..913da0f92 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceReason.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceReason.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: MANUAL,USGEO,CAGEO,GBGEO,SANCTIONEDGEO,COMPLIANCEPROVIDER */ +@JsExport @Serializable enum class IndexerComplianceReason(val value: kotlin.String) { MANUAL("MANUAL"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceResponse.kt index 9345945df..ab922a430 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceResponse.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param restricted * @param reason */ +@JsExport @Serializable data class IndexerComplianceResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceStatus.kt b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceStatus.kt index 030a5d375..33952e842 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceStatus.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceStatus.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: COMPLIANT,FIRSTSTRIKECLOSEONLY,FIRSTSTRIKE,CLOSEONLY,BLOCKED */ +@JsExport @Serializable enum class IndexerComplianceStatus(val value: kotlin.String) { COMPLIANT("COMPLIANT"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceV2Response.kt b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceV2Response.kt index 243a8d2d6..4314bbc06 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerComplianceV2Response.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerComplianceV2Response.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -19,6 +20,7 @@ import kotlinx.serialization.Serializable * @param reason * @param updatedAt */ +@JsExport @Serializable data class IndexerComplianceV2Response( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerFillResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerFillResponse.kt index c190dbe38..d33ae8f74 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerFillResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerFillResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable * @param offset * @param fills */ +@JsExport @Serializable data class IndexerFillResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerFillResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerFillResponseObject.kt index 1a9991521..f92fceb0a 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerFillResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerFillResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -30,6 +31,7 @@ import kotlinx.serialization.Serializable * @param clientMetadata * @param subaccountNumber */ +@JsExport @Serializable data class IndexerFillResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerFillType.kt b/src/commonMain/kotlin/indexer/codegen/IndexerFillType.kt index ac78e5651..12f0d1e43 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerFillType.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerFillType.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: LIMIT,LIQUIDATED,LIQUIDATION,DELEVERAGED,OFFSETTING */ +@JsExport @Serializable enum class IndexerFillType(val value: kotlin.String) { LIMIT("LIMIT"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHeightResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHeightResponse.kt index 8c6cc66fe..256d34a8b 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHeightResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHeightResponse.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param height * @param time */ +@JsExport @Serializable data class IndexerHeightResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingReward.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingReward.kt index 5db0fe5b7..887e2fdf6 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingReward.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingReward.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -19,6 +20,7 @@ import kotlinx.serialization.Serializable * @param createdAt * @param createdAtHeight */ +@JsExport @Serializable data class IndexerHistoricalBlockTradingReward( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingRewardsResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingRewardsResponse.kt index 879713924..4fb40dc77 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingRewardsResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalBlockTradingRewardsResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param rewards */ +@JsExport @Serializable data class IndexerHistoricalBlockTradingRewardsResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponse.kt index e871d1bfd..ff7f2780d 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param historicalFunding */ +@JsExport @Serializable data class IndexerHistoricalFundingResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponseObject.kt index 3d714cea8..6c9576a43 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalFundingResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -21,6 +22,7 @@ import kotlinx.serialization.Serializable * @param effectiveAt * @param effectiveAtHeight */ +@JsExport @Serializable data class IndexerHistoricalFundingResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalPnlResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalPnlResponse.kt index e647c2cf9..5d652fe52 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalPnlResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalPnlResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable * @param offset * @param historicalPnl */ +@JsExport @Serializable data class IndexerHistoricalPnlResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregation.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregation.kt index 8a538f3d0..4439553a1 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregation.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregation.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -22,6 +23,7 @@ import kotlinx.serialization.Serializable * @param endedAtHeight * @param period */ +@JsExport @Serializable data class IndexerHistoricalTradingRewardAggregation( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregationsResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregationsResponse.kt index 64b67c8be..18d28af52 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregationsResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerHistoricalTradingRewardAggregationsResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param rewards */ +@JsExport @Serializable data class IndexerHistoricalTradingRewardAggregationsResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerLiquidity.kt b/src/commonMain/kotlin/indexer/codegen/IndexerLiquidity.kt index 847e7df5e..ea7cbf3f3 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerLiquidity.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerLiquidity.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: TAKER,MAKER */ +@JsExport @Serializable enum class IndexerLiquidity(val value: kotlin.String) { TAKER("TAKER"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerMarketType.kt b/src/commonMain/kotlin/indexer/codegen/IndexerMarketType.kt index ddfe85ae5..af988eb01 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerMarketType.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerMarketType.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: PERPETUAL,SPOT */ +@JsExport @Serializable enum class IndexerMarketType(val value: kotlin.String) { PERPETUAL("PERPETUAL"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerOrderResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerOrderResponseObject.kt index 077c8f639..790a51a61 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerOrderResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerOrderResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -39,6 +40,7 @@ import kotlinx.serialization.Serializable * @param updatedAtHeight * @param subaccountNumber */ +@JsExport @Serializable data class IndexerOrderResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerOrderSide.kt b/src/commonMain/kotlin/indexer/codegen/IndexerOrderSide.kt index eb0de3e5a..3de4c583b 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerOrderSide.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerOrderSide.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: BUY,SELL */ +@JsExport @Serializable enum class IndexerOrderSide(val value: kotlin.String) { BUY("BUY"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerOrderStatus.kt b/src/commonMain/kotlin/indexer/codegen/IndexerOrderStatus.kt index 65cb06f72..ca655fb89 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerOrderStatus.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerOrderStatus.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: OPEN,FILLED,CANCELED,BEST_EFFORT_CANCELED,UNTRIGGERED */ +@JsExport @Serializable enum class IndexerOrderStatus(val value: kotlin.String) { OPEN("OPEN"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerOrderType.kt b/src/commonMain/kotlin/indexer/codegen/IndexerOrderType.kt index a6f2c804d..c1570a343 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerOrderType.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerOrderType.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: LIMIT,MARKET,STOP_LIMIT,STOP_MARKET,TRAILING_STOP,TAKE_PROFIT,TAKE_PROFIT_MARKET */ +@JsExport @Serializable enum class IndexerOrderType(val value: kotlin.String) { LIMIT("LIMIT"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponseObject.kt index 9e643eeba..a3ca3ba08 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponseObject.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param bids * @param asks */ +@JsExport @Serializable data class IndexerOrderbookResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponsePriceLevel.kt b/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponsePriceLevel.kt index c5ee0a2f1..9ff7ba710 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponsePriceLevel.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerOrderbookResponsePriceLevel.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param price * @param size */ +@JsExport @Serializable data class IndexerOrderbookResponsePriceLevel( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountResponse.kt index 6c361258d..a1ad87994 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -21,6 +22,7 @@ import kotlinx.serialization.Serializable * @param freeCollateral * @param childSubaccounts */ +@JsExport @Serializable data class IndexerParentSubaccountResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountTransferResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountTransferResponse.kt index ae358b39a..8b8495743 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountTransferResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerParentSubaccountTransferResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable * @param offset * @param transfers */ +@JsExport @Serializable data class IndexerParentSubaccountTransferResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponse.kt index d8e18a32e..95fb592d2 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param markets */ +@JsExport @Serializable data class IndexerPerpetualMarketResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponseObject.kt index 24ab96002..cf67dc538 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -37,6 +38,7 @@ import kotlinx.serialization.Serializable * @param openInterestUpperCap * @param baseOpenInterest */ +@JsExport @Serializable data class IndexerPerpetualMarketResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketStatus.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketStatus.kt index 6b6fecf5c..da7f09f80 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketStatus.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketStatus.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: ACTIVE,PAUSED,CANCELONLY,POSTONLY,INITIALIZING,FINALSETTLEMENT */ +@JsExport @Serializable enum class IndexerPerpetualMarketStatus(val value: kotlin.String) { ACTIVE("ACTIVE"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketType.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketType.kt index 5d39e47a6..d64b1d674 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketType.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualMarketType.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: CROSS,ISOLATED */ +@JsExport @Serializable enum class IndexerPerpetualMarketType(val value: kotlin.String) { CROSS("CROSS"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponse.kt index eb8d0cb7f..374a3f88a 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param positions */ +@JsExport @Serializable data class IndexerPerpetualPositionResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponseObject.kt index 09cef3d96..15f3c6f90 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -32,6 +33,7 @@ import kotlinx.serialization.Serializable * @param exitPrice * @param subaccountNumber */ +@JsExport @Serializable data class IndexerPerpetualPositionResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionStatus.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionStatus.kt index 91d52cf76..f2d8a4575 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionStatus.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionStatus.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: OPEN,CLOSED,LIQUIDATED */ +@JsExport @Serializable enum class IndexerPerpetualPositionStatus(val value: kotlin.String) { OPEN("OPEN"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionsMap.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionsMap.kt index d00a0a515..bb70bb116 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionsMap.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPerpetualPositionsMap.kt @@ -12,9 +12,11 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * */ +@JsExport @Serializable class IndexerPerpetualPositionsMap() diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPnlTicksResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPnlTicksResponseObject.kt index b5ef8912a..6797e561a 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPnlTicksResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPnlTicksResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -24,6 +25,7 @@ import kotlinx.serialization.Serializable * @param blockHeight * @param blockTime */ +@JsExport @Serializable data class IndexerPnlTicksResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerPositionSide.kt b/src/commonMain/kotlin/indexer/codegen/IndexerPositionSide.kt index 07576b7fb..5bf9eb911 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerPositionSide.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerPositionSide.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: LONG,SHORT */ +@JsExport @Serializable enum class IndexerPositionSide(val value: kotlin.String) { LONG("LONG"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerSparklineResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerSparklineResponseObject.kt index 42a5efc7b..5d2357c9f 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerSparklineResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerSparklineResponseObject.kt @@ -12,9 +12,11 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * */ +@JsExport @Serializable class IndexerSparklineResponseObject() diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerSparklineTimePeriod.kt b/src/commonMain/kotlin/indexer/codegen/IndexerSparklineTimePeriod.kt index 11628ba53..d204ac645 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerSparklineTimePeriod.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerSparklineTimePeriod.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: ONEDAY,SEVENDAYS */ +@JsExport @Serializable enum class IndexerSparklineTimePeriod(val value: kotlin.String) { ONEDAY("ONE_DAY"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerSubaccountResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerSubaccountResponseObject.kt index 54ca659f8..efdaaa9a5 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerSubaccountResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerSubaccountResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -25,6 +26,7 @@ import kotlinx.serialization.Serializable * @param updatedAtHeight * @param latestProcessedBlockHeight */ +@JsExport @Serializable data class IndexerSubaccountResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTimeResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTimeResponse.kt index 6143e4bf3..47ad8ae9a 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTimeResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTimeResponse.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param iso * @param epoch */ +@JsExport @Serializable data class IndexerTimeResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponse.kt index 87562b335..1a2e2e0c7 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable * @param offset * @param trades */ +@JsExport @Serializable data class IndexerTradeResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponseObject.kt index 2c80cbdab..aeed1c027 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTradeResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -23,6 +24,7 @@ import kotlinx.serialization.Serializable * @param createdAt * @param createdAtHeight */ +@JsExport @Serializable data class IndexerTradeResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTradeType.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTradeType.kt index 32305d93c..33a809273 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTradeType.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTradeType.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: LIMIT,LIQUIDATED,DELEVERAGED */ +@JsExport @Serializable enum class IndexerTradeType(val value: kotlin.String) { LIMIT("LIMIT"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponse.kt index 579948fd0..ac82321f4 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponse.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param result */ +@JsExport @Serializable data class IndexerTraderSearchResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponseObject.kt index ef0f82a88..1008b102a 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTraderSearchResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable * @param subaccountId * @param username */ +@JsExport @Serializable data class IndexerTraderSearchResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTradingRewardAggregationPeriod.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTradingRewardAggregationPeriod.kt index e6cf30ba0..b6dded47f 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTradingRewardAggregationPeriod.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTradingRewardAggregationPeriod.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: DAILY,WEEKLY,MONTHLY */ +@JsExport @Serializable enum class IndexerTradingRewardAggregationPeriod(val value: kotlin.String) { DAILY("DAILY"), // :/ diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTransferBetweenResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTransferBetweenResponse.kt index a8c088d69..b1c0b627c 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTransferBetweenResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTransferBetweenResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -21,6 +22,7 @@ import kotlinx.serialization.Serializable * @param transfersSubset * @param totalNetTransfers */ +@JsExport @Serializable data class IndexerTransferBetweenResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponse.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponse.kt index 283646e88..a9430e2e3 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponse.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponse.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable * @param offset * @param transfers */ +@JsExport @Serializable data class IndexerTransferResponse( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObject.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObject.kt index 142442589..516b1add7 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObject.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObject.kt @@ -12,6 +12,7 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * @@ -25,6 +26,7 @@ import kotlinx.serialization.Serializable * @param type * @param transactionHash */ +@JsExport @Serializable data class IndexerTransferResponseObject( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObjectSender.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObjectSender.kt index 65ae9ba92..b7a682666 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObjectSender.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTransferResponseObjectSender.kt @@ -12,12 +12,14 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * @param subaccountNumber * @param address */ +@JsExport @Serializable data class IndexerTransferResponseObjectSender( diff --git a/src/commonMain/kotlin/indexer/codegen/IndexerTransferType.kt b/src/commonMain/kotlin/indexer/codegen/IndexerTransferType.kt index 62fc4bd42..e36f688d8 100644 --- a/src/commonMain/kotlin/indexer/codegen/IndexerTransferType.kt +++ b/src/commonMain/kotlin/indexer/codegen/IndexerTransferType.kt @@ -12,11 +12,13 @@ package indexer.codegen import kotlinx.serialization.Serializable +import kotlin.js.JsExport /** * * Values: TRANSFERIN,TRANSFEROUT,DEPOSIT,WITHDRAWAL */ +@JsExport @Serializable enum class IndexerTransferType(val value: kotlin.String) { TRANSFERIN("TRANSFER_IN"), // :/ diff --git a/swagger_update_file.sh b/swagger_update_file.sh index 8780e9262..ecb6284af 100755 --- a/swagger_update_file.sh +++ b/swagger_update_file.sh @@ -10,12 +10,12 @@ if [ -z "$FILE" ]; then fi # Add "import kotlinx.serialization.Serializable" after "package indexer.codegen" -sed -i '' 's/package indexer.codegen/package indexer.codegen\n\nimport kotlinx.serialization.Serializable/' $FILE +sed -i '' 's/package indexer.codegen/package indexer.codegen\n\nimport kotlinx.serialization.Serializable\nimport kotlin.js.JsExport/' $FILE # Add @Serializable annotation to the class -sed -i '' 's/^data\ class /@Serializable\ndata\ class /' $FILE -sed -i '' 's/^enum\ class /@Serializable\nenum\ class /' $FILE -sed -i '' 's/^class /@Serializable\nclass /' $FILE +sed -i '' 's/^data\ class /@JsExport\n@Serializable\ndata\ class /' $FILE +sed -i '' 's/^enum\ class /@JsExport\n@Serializable\nenum\ class /' $FILE +sed -i '' 's/^class /@JsExport\n@Serializable\nclass /' $FILE # For each of the line that starts with ""import indexer.codegen.", get the class name and replace it with IndexerCLASSNAME" # For example, if the line is "import indexer.codegen.Order", replace it with "import indexer.codegen.IndexerOrder" diff --git a/v4_abacus.podspec b/v4_abacus.podspec index 0f6822f1c..a4eeb3110 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.8.92' + spec.version = '1.8.93' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''