Skip to content

Commit

Permalink
Merge commit '4457d71b66ee4d03c277cd75874bf791a551f96b' into 2.2.5
Browse files Browse the repository at this point in the history
* commit '4457d71b66ee4d03c277cd75874bf791a551f96b':
  add dogecoin
  • Loading branch information
JiangSonglun committed Dec 18, 2023
2 parents 2b9818b + 4457d71 commit d8fda17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/MarketKit/Classes/Models/BlockchainType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ public enum BlockchainType {
case bitcoinCash
case ecash
case litecoin
case dogecoin
case dash
case zcash
case ethereum
Expand All @@ -16,6 +17,7 @@ public enum BlockchainType {
case fantom
case tron
case solana
case safe
case unsupported(uid: String)

public init(uid: String) {
Expand All @@ -24,6 +26,7 @@ public enum BlockchainType {
case "bitcoin-cash": self = .bitcoinCash
case "ecash": self = .ecash
case "litecoin": self = .litecoin
case "dogecoin": self = .dogecoin
case "dash": self = .dash
case "zcash": self = .zcash
case "ethereum": self = .ethereum
Expand All @@ -37,6 +40,7 @@ public enum BlockchainType {
case "fantom": self = .fantom
case "tron": self = .tron
case "solana": self = .solana
case "safe-anwang": self = .safe
default: self = .unsupported(uid: uid)
}
}
Expand All @@ -47,6 +51,7 @@ public enum BlockchainType {
case .bitcoinCash: return "bitcoin-cash"
case .ecash: return "ecash"
case .litecoin: return "litecoin"
case .dogecoin: return "dogecoin"
case .dash: return "dash"
case .zcash: return "zcash"
case .ethereum: return "ethereum"
Expand All @@ -60,6 +65,7 @@ public enum BlockchainType {
case .fantom: return "fantom"
case .tron: return "tron"
case .solana: return "solana"
case .safe: return "safe-anwang"
case .unsupported(let uid): return uid
}
}
Expand Down

0 comments on commit d8fda17

Please sign in to comment.