Updated on 2026-08-14
This commit is contained in:
parent
3bd0392018
commit
368066a4da
8 changed files with 182 additions and 2 deletions
|
|
@ -80,6 +80,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"vechain/test" -> Blockchain.VeChainTestnet
|
||||
"aptos" -> Blockchain.Aptos
|
||||
"aptos/test" -> Blockchain.AptosTestnet
|
||||
"shibarium" -> Blockchain.Shibarium
|
||||
"shibarium/test" -> Blockchain.ShibariumTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -161,6 +163,9 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.VeChainTestnet -> "vechain/test"
|
||||
Blockchain.Aptos -> "aptos"
|
||||
Blockchain.AptosTestnet -> "aptos/test"
|
||||
Blockchain.Shibarium -> "shibarium"
|
||||
Blockchain.ShibariumTestnet -> "shibarium/test"
|
||||
Blockchain.Playa3ull -> "" // FIXME
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -213,6 +218,9 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Aptos -> "aptos"
|
||||
Blockchain.AptosTestnet -> "aptos/test"
|
||||
Blockchain.Unknown -> "unknown"
|
||||
Blockchain.Shibarium -> "bone-shibaswap"
|
||||
Blockchain.ShibariumTestnet -> "bone-shibaswap/test"
|
||||
Blockchain.Playa3ull -> "" // FIXME
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -241,4 +249,5 @@ private val excludedBlockchains = listOf(
|
|||
Blockchain.Unknown,
|
||||
Blockchain.Ducatus,
|
||||
Blockchain.Aptos,
|
||||
Blockchain.Playa3ull,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue