Updated on 2026-08-14
This commit is contained in:
parent
f011cba752
commit
d2c40cfd5c
9 changed files with 54 additions and 1 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue