Updated on 2026-08-14
This commit is contained in:
parent
f4898a4475
commit
fd1e3bb447
6 changed files with 54 additions and 1 deletions
|
|
@ -139,6 +139,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"casper-network" -> Blockchain.Casper
|
||||
"casper-network/test" -> Blockchain.CasperTestnet
|
||||
"xodex" -> Blockchain.Xodex
|
||||
"canxium" -> Blockchain.Canxium
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -277,6 +278,7 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Core -> "core"
|
||||
Blockchain.CoreTestnet -> "core/test"
|
||||
Blockchain.Xodex -> "xodex"
|
||||
Blockchain.Canxium -> "canxium"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -367,6 +369,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
|
||||
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
|
||||
Blockchain.Xodex -> "xodex"
|
||||
Blockchain.Canxium -> "canxium"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue