Skip to content

Commit

Permalink
Add new blockchain type ECash
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Apr 3, 2023
1 parent a27adcf commit 6d48ad0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ sealed class BlockchainType : Parcelable {
@Parcelize
object BitcoinCash : BlockchainType()

@Parcelize
object ECash : BlockchainType()

@Parcelize
object Litecoin : BlockchainType()

Expand Down Expand Up @@ -59,6 +62,7 @@ sealed class BlockchainType : Parcelable {
get() = when (this) {
is Bitcoin -> "bitcoin"
is BitcoinCash -> "bitcoin-cash"
is ECash -> "ecash"
is Litecoin -> "litecoin"
is Dash -> "dash"
is Zcash -> "zcash"
Expand Down Expand Up @@ -87,6 +91,7 @@ sealed class BlockchainType : Parcelable {
override fun toString() = when (this) {
Bitcoin -> "bitcoin"
BitcoinCash -> "bitcoinCash"
ECash -> "ecash"
Litecoin -> "litecoin"
Dash -> "dash"
Zcash -> "zcash"
Expand All @@ -110,6 +115,7 @@ sealed class BlockchainType : Parcelable {
when (uid) {
"bitcoin" -> Bitcoin
"bitcoin-cash" -> BitcoinCash
"ecash" -> ECash
"litecoin" -> Litecoin
"dash" -> Dash
"zcash" -> Zcash
Expand Down

0 comments on commit 6d48ad0

Please sign in to comment.