Updated on 2026-08-14
This commit is contained in:
parent
ff5df41d6a
commit
1626270ae9
17 changed files with 118 additions and 2 deletions
|
|
@ -178,6 +178,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.Quai,
|
||||
Blockchain.Plasma,
|
||||
Blockchain.Monad,
|
||||
Blockchain.Berachain,
|
||||
-> true
|
||||
Blockchain.Nexa, // unsupported network
|
||||
Blockchain.Chia,
|
||||
|
|
@ -254,6 +255,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.LineaTestnet,
|
||||
Blockchain.PlasmaTestnet,
|
||||
Blockchain.MonadTestnet,
|
||||
Blockchain.BerachainTestnet,
|
||||
-> false
|
||||
// endregion
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,29 @@ 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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue