Updated on 2026-08-14
This commit is contained in:
parent
263ee55122
commit
0f600e9dcf
12 changed files with 489 additions and 11 deletions
|
|
@ -93,6 +93,10 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"areon-network/test" -> Blockchain.AreonTestnet
|
||||
"pulsechain" -> Blockchain.PulseChain
|
||||
"pulsechain/test" -> Blockchain.PulseChainTestnet
|
||||
"nexa" -> Blockchain.Nexa // FIXME
|
||||
"nexa/testnet" -> Blockchain.NexaTestnet // FIXME
|
||||
"zksync" -> Blockchain.ZkSyncEra // FIXME
|
||||
"zksync/testnet" -> Blockchain.ZkSyncEraTestnet // FIXME
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -187,6 +191,10 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.AreonTestnet -> "areon-network/test"
|
||||
Blockchain.PulseChain -> "pulsechain"
|
||||
Blockchain.PulseChainTestnet -> "pulsechain/test"
|
||||
Blockchain.ZkSyncEra -> "zksync" // FIXME
|
||||
Blockchain.ZkSyncEraTestnet -> "zksync/testnet" // FIXME
|
||||
Blockchain.Nexa -> "nexa" // FIXME
|
||||
Blockchain.NexaTestnet -> "nexa/testnet" // FIXME
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -249,6 +257,10 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Aurora, Blockchain.AuroraTestnet -> "aurora-near"
|
||||
Blockchain.Areon, Blockchain.AreonTestnet -> "areon-network"
|
||||
Blockchain.PulseChain, Blockchain.PulseChainTestnet -> "pulsechain"
|
||||
Blockchain.ZkSyncEra -> "zksync" // FIXME
|
||||
Blockchain.ZkSyncEraTestnet -> "zksync/testnet" // FIXME
|
||||
Blockchain.Nexa -> "nexa" // FIXME
|
||||
Blockchain.NexaTestnet -> "nexa/testnet" // FIXME
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -276,4 +288,8 @@ private const val NODL_AMOUNT_TO_CREATE_ACCOUNT = 1.5
|
|||
private val excludedBlockchains = listOf(
|
||||
Blockchain.Unknown,
|
||||
Blockchain.Playa3ull,
|
||||
Blockchain.ZkSyncEra,
|
||||
Blockchain.ZkSyncEraTestnet,
|
||||
Blockchain.Nexa,
|
||||
Blockchain.NexaTestnet,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue