Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-02 11:13:34 +05:00
parent 01e6e50bcb
commit 0d7dce3fbc
6 changed files with 51 additions and 1 deletions

View file

@ -134,6 +134,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"energy-web-x/test" -> Blockchain.EnergyWebXTestnet
"add_later" -> Blockchain.Casper
"add_later_test" -> Blockchain.CasperTestnet
"core" -> Blockchain.Core
"core/test" -> Blockchain.CoreTestnet
else -> null
}
}
@ -269,6 +271,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.EnergyWebXTestnet -> "energy-web-x/test"
Blockchain.Casper -> "add_later"
Blockchain.CasperTestnet -> "add_later_test"
Blockchain.Core -> "core"
Blockchain.CoreTestnet -> "core/test"
}
}
@ -358,6 +362,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.EnergyWebX, Blockchain.EnergyWebXTestnet -> "energy-web-token"
Blockchain.Casper -> "add_later"
Blockchain.CasperTestnet -> "add_later_test"
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
}
}