Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-05 20:34:10 +04:00
parent 74accc90c9
commit b6777bbb7a
16 changed files with 1 additions and 117 deletions

View file

@ -176,8 +176,6 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"plasma/test" -> Blockchain.PlasmaTestnet
"monad" -> Blockchain.Monad
"monad/test" -> Blockchain.MonadTestnet
"berachain" -> Blockchain.Berachain
"berachain/test" -> Blockchain.BerachainTestnet
else -> null
}
}
@ -351,8 +349,6 @@ fun Blockchain.toNetworkId(): String {
Blockchain.PlasmaTestnet -> "plasma/test"
Blockchain.Monad -> "monad"
Blockchain.MonadTestnet -> "monad/test"
Blockchain.Berachain -> "berachain"
Blockchain.BerachainTestnet -> "berachain/test"
}
}
@ -462,7 +458,6 @@ fun Blockchain.toCoinId(): String {
Blockchain.ArbitrumNova -> "arbitrum-nova-ethereum"
Blockchain.Plasma, Blockchain.PlasmaTestnet -> "plasma"
Blockchain.Monad, Blockchain.MonadTestnet -> "monad"
Blockchain.Berachain, Blockchain.BerachainTestnet -> "berachain-bera"
}
}

View file

@ -178,7 +178,6 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
Blockchain.Quai,
Blockchain.Plasma,
Blockchain.Monad,
Blockchain.Berachain,
-> true
Blockchain.Nexa, // unsupported network
Blockchain.Chia,
@ -255,7 +254,6 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
Blockchain.LineaTestnet,
Blockchain.PlasmaTestnet,
Blockchain.MonadTestnet,
Blockchain.BerachainTestnet,
-> false
// endregion
}

View file

@ -103,29 +103,6 @@ internal class AccountNodeRecognizerTest {
expected = null,
),
// endregion
// region Berachain blockchain (EVM-like)
TestModel(
blockchain = Blockchain.Berachain,
derivationPath = "m/44'/60'/0'/0/1",
expected = 1,
),
TestModel(
blockchain = Blockchain.Berachain,
derivationPath = "m/44'/60'/0'/0/0",
expected = 0,
),
TestModel(
blockchain = Blockchain.Berachain,
derivationPath = "m/44'/60'/0'/0",
expected = null,
),
TestModel(
blockchain = Blockchain.Berachain,
derivationPath = "m/44'/60'",
expected = null,
),
// endregion
)
private fun provideUTXOTestModels() = listOf(