mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Add native currency to model
This commit is contained in:
parent
214ecb3ff6
commit
1365ead0ac
|
@ -15,7 +15,8 @@ data class Chain(
|
|||
val faucets: List<String>,
|
||||
val explorers: List<Explorer>?,
|
||||
val infoURL: String,
|
||||
val title: String?
|
||||
val title: String?,
|
||||
val nativeCurrency: NativeCurrency
|
||||
)
|
||||
|
||||
fun List<Chain>.filterEIP3019Explorers() = map { it.copy(explorers = it.explorers?.filterEIP3019()) }
|
|
@ -0,0 +1,10 @@
|
|||
package org.ethereum.lists.chains.model
|
||||
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class NativeCurrency(
|
||||
val name : String,
|
||||
val symbol : String,
|
||||
val decimals : Int,
|
||||
)
|
Loading…
Reference in New Issue
Block a user