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