Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-30 22:55:21 +05:00
parent 0db08ff571
commit a48967b3ce
6 changed files with 50 additions and 1 deletions

View file

@ -138,6 +138,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"core/test" -> Blockchain.CoreTestnet
"casper-network" -> Blockchain.Casper
"casper-network/test" -> Blockchain.CasperTestnet
"xodex" -> Blockchain.Xodex
else -> null
}
}
@ -275,6 +276,7 @@ fun Blockchain.toNetworkId(): String {
Blockchain.CasperTestnet -> "casper-network/test"
Blockchain.Core -> "core"
Blockchain.CoreTestnet -> "core/test"
Blockchain.Xodex -> "xodex"
}
}
@ -364,6 +366,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.EnergyWebX, Blockchain.EnergyWebXTestnet -> "energy-web-token"
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
Blockchain.Xodex -> "xodex"
}
}