Updated on 2026-08-14
This commit is contained in:
commit
2a5e3fa7eb
220 changed files with 5932 additions and 1815 deletions
|
|
@ -16,8 +16,8 @@ interface TangemTechMarketsApi {
|
|||
@Query("offset") offset: Int,
|
||||
@Query("limit") limit: Int,
|
||||
@Query("order") order: String,
|
||||
@Query("general_coins") generalCoins: Boolean,
|
||||
@Query("search") search: String?,
|
||||
@Query("timestamp") timestamp: Long?,
|
||||
): ApiResponse<TokenMarketListResponse>
|
||||
|
||||
@GET("coins/{coin_id}")
|
||||
|
|
@ -28,6 +28,7 @@ interface TangemTechMarketsApi {
|
|||
|
||||
@GET("coins/{coin_id}/history")
|
||||
suspend fun getCoinChart(
|
||||
@Path("coin_id") coinId: String,
|
||||
@Query("currency") currency: String,
|
||||
@Query("interval") interval: String,
|
||||
): ApiResponse<TokenMarketChartResponse>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ data class TokenMarketListResponse(
|
|||
val limit: Int,
|
||||
@Json(name = "offset")
|
||||
val offset: Int,
|
||||
@Json(name = "timestamp")
|
||||
val timestamp: Long? = null,
|
||||
) {
|
||||
data class Token(
|
||||
@Json(name = "id")
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.tangem.datasource.api.stakekit.models.response.model
|
|||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
import java.math.BigDecimal
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class AddressArgumentDTO(
|
||||
|
|
@ -10,7 +11,7 @@ data class AddressArgumentDTO(
|
|||
@Json(name = "network")
|
||||
val network: String? = null,
|
||||
@Json(name = "minimum")
|
||||
val minimum: Double? = null,
|
||||
val minimum: BigDecimal? = null,
|
||||
@Json(name = "maximum")
|
||||
val maximum: Double? = null,
|
||||
val maximum: BigDecimal? = null,
|
||||
)
|
||||
|
|
@ -16,7 +16,7 @@ class StakeKitErrorResponse(
|
|||
@Json(name = "code")
|
||||
val code: String? = null,
|
||||
@Json(name = "countryCode")
|
||||
val countryCode: String,
|
||||
val countryCode: String?,
|
||||
@Json(name = "regionCode")
|
||||
val regionCode: String? = null,
|
||||
@Json(name = "tags")
|
||||
|
|
|
|||
|
|
@ -154,6 +154,8 @@ internal class ConfigManagerImpl @Inject constructor() : ConfigManager {
|
|||
zkSyncEra = GetBlockAccessToken(rest = accessTokens.zksync?.jsonRPC),
|
||||
polygonZkEvm = GetBlockAccessToken(rest = accessTokens.polygonZkevm?.jsonRPC),
|
||||
base = GetBlockAccessToken(rest = accessTokens.base?.jsonRPC),
|
||||
blast = GetBlockAccessToken(jsonRpc = accessTokens.blast?.jsonRPC),
|
||||
filecoin = GetBlockAccessToken(jsonRpc = accessTokens.filecoin?.jsonRPC),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@ data class GetBlockAccessTokens(
|
|||
@Json(name = "polygon-zkevm") val polygonZkevm: GetBlockToken?,
|
||||
@Json(name = "zksync") val zksync: GetBlockToken?,
|
||||
@Json(name = "base") val base: GetBlockToken?,
|
||||
@Json(name = "blast") val blast: GetBlockToken?,
|
||||
@Json(name = "filecoin") val filecoin: GetBlockToken?,
|
||||
)
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue