Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-22 16:27:08 +03:00
parent 64ed64820b
commit a6f272223a
18 changed files with 237 additions and 179 deletions

View file

@ -32,7 +32,7 @@ interface TangemExpressApi {
@Query("toContractAddress") toContractAddress: String,
@Query("toNetwork") toNetwork: String,
@Query("fromAmount") fromAmount: String,
@Query("providerId") providerId: Int,
@Query("providerId") providerId: String,
@Query("rateType") rateType: String,
): ApiResponse<ExchangeQuoteResponse>

View file

@ -4,19 +4,19 @@ import com.squareup.moshi.Json
data class ExchangeProvider(
@Json(name = "id")
val id: Int,
val id: String,
@Json(name = "name")
val name: String,
@Json(name = "id")
@Json(name = "type")
val type: ExchangeProviderType,
@Json(name = "imageLarge")
val imageLargeUrl: Int,
val imageLargeUrl: String,
@Json(name = "imageSmall")
val imageSmallUrl: Int,
val imageSmallUrl: String,
)
enum class ExchangeProviderType {

View file

@ -17,7 +17,7 @@ data class SwapPair(
data class SwapPairProvider(
@Json(name = "providerId")
val providerId: Int,
val providerId: String,
@Json(name = "rateTypes")
val rateTypes: List<RateType>,