Updated on 2026-08-14

This commit is contained in:
Tangem 2024-11-12 20:37:51 +07:00
parent f011cba752
commit d2c40cfd5c
9 changed files with 54 additions and 1 deletions

View file

@ -138,6 +138,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"core/test" -> Blockchain.CoreTestnet
"casper-network" -> Blockchain.Casper
"casper-network/test" -> Blockchain.CasperTestnet
"chiliz" -> Blockchain.Chiliz
"chiliz/test" -> Blockchain.ChilizTestnet
"xodex" -> Blockchain.Xodex
"canxium" -> Blockchain.Canxium
else -> null
@ -277,6 +279,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.CasperTestnet -> "casper-network/test"
Blockchain.Core -> "core"
Blockchain.CoreTestnet -> "core/test"
Blockchain.Chiliz -> "chiliz"
Blockchain.ChilizTestnet -> "chiliz/test"
Blockchain.Xodex -> "xodex"
Blockchain.Canxium -> "canxium"
}
@ -368,6 +372,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.EnergyWebX, Blockchain.EnergyWebXTestnet -> "energy-web-token"
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
Blockchain.Chiliz, Blockchain.ChilizTestnet -> "chiliz"
Blockchain.Xodex -> "xodex"
Blockchain.Canxium -> "canxium"
}