Updated on 2026-08-14
This commit is contained in:
parent
caa0a0eb39
commit
9d91a5a6de
6 changed files with 51 additions and 2 deletions
|
|
@ -126,6 +126,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"sei-network" -> Blockchain.Sei
|
||||
"sei-network/test" -> Blockchain.SeiTestnet
|
||||
"internet-computer" -> Blockchain.InternetComputer
|
||||
"energy-web-chain" -> Blockchain.EnergyWebChain
|
||||
"energy-web-chain/test" -> Blockchain.EnergyWebChainTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -253,6 +255,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Sei -> "sei-network"
|
||||
Blockchain.SeiTestnet -> "sei-network/test"
|
||||
Blockchain.InternetComputer -> "internet-computer"
|
||||
Blockchain.EnergyWebChain -> "energy-web-chain"
|
||||
Blockchain.EnergyWebChainTestnet -> "energy-web-chain/test"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -337,6 +341,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Cyber, Blockchain.CyberTestnet -> "cyber-ethereum"
|
||||
Blockchain.Sei, Blockchain.SeiTestnet -> "sei-network"
|
||||
Blockchain.InternetComputer -> "internet-computer"
|
||||
Blockchain.EnergyWebChain, Blockchain.EnergyWebChainTestnet -> "energy-web-chain"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -363,10 +368,11 @@ fun Blockchain.minimalAmount(): BigDecimal {
|
|||
private const val NODL = "NODL"
|
||||
private const val NODL_AMOUNT_TO_CREATE_ACCOUNT = 1.5
|
||||
|
||||
// no need to add testnets
|
||||
private val excludedBlockchains = listOf(
|
||||
Blockchain.Unknown,
|
||||
Blockchain.Nexa,
|
||||
Blockchain.NexaTestnet,
|
||||
Blockchain.Sei,
|
||||
Blockchain.InternetComputer,
|
||||
Blockchain.EnergyWebChain,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue