Add native currency to model

This commit is contained in:
ligi 2022-01-15 10:59:52 +01:00
parent 214ecb3ff6
commit 1365ead0ac
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
2 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,8 @@ data class Chain(
val faucets: List<String>, val faucets: List<String>,
val explorers: List<Explorer>?, val explorers: List<Explorer>?,
val infoURL: String, val infoURL: String,
val title: String? val title: String?,
val nativeCurrency: NativeCurrency
) )
fun List<Chain>.filterEIP3019Explorers() = map { it.copy(explorers = it.explorers?.filterEIP3019()) } fun List<Chain>.filterEIP3019Explorers() = map { it.copy(explorers = it.explorers?.filterEIP3019()) }

View File

@ -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,
)