Skip to content

Commit

Permalink
Add native currency to model
Browse files Browse the repository at this point in the history
  • Loading branch information
ligi committed Jan 15, 2022
1 parent 214ecb3 commit 1365ead
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 1365ead

Please sign in to comment.