Updated on 2026-08-14
This commit is contained in:
parent
8adc179449
commit
d5f9410905
35 changed files with 892 additions and 324 deletions
|
|
@ -213,10 +213,10 @@ interface TangemTechApi {
|
|||
@Query("page") page: String? = null,
|
||||
@Query("limit") limit: Int? = null,
|
||||
@Query("type") type: String? = null,
|
||||
@Query("network") network: String? = null,
|
||||
@Query("networkIds") networks: List<String>? = null,
|
||||
): ApiResponse<EarnListResponse>
|
||||
|
||||
@GET("v1/earn/networks")
|
||||
suspend fun getEarnNetworks(@Query("type") type: String): ApiResponse<EarnNetworkListResponse>
|
||||
suspend fun getEarnNetworks(@Query("type") type: String? = null): ApiResponse<EarnNetworkListResponse>
|
||||
// endregion
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ data class EarnTokenResponse(
|
|||
@Json(name = "id") val id: String,
|
||||
@Json(name = "symbol") val symbol: String,
|
||||
@Json(name = "name") val name: String,
|
||||
@Json(name = "address") val address: String,
|
||||
@Json(name = "address") val address: String? = null,
|
||||
@Json(name = "decimalCount") val decimalCount: Int? = null,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue