Updated on 2026-08-14
This commit is contained in:
commit
ac621b6bad
466 changed files with 12729 additions and 3984 deletions
|
|
@ -11,7 +11,7 @@ internal enum class ProviderTypeIdMapping(val id: String, val providerType: Prov
|
|||
BitcoinBlockcypher(id = "blockcypher", providerType = ProviderType.BitcoinLike.Blockcypher),
|
||||
CardanoAdalite(id = "adalite", providerType = ProviderType.Cardano.Adalite),
|
||||
CardanoRosetta(id = "tangemRosetta", providerType = ProviderType.Cardano.Rosetta),
|
||||
CardanoMock(id = "mock", providerType = ProviderType.Mock),
|
||||
WireMock(id = "mock", providerType = ProviderType.Mock),
|
||||
ChiaFireAcademy(id = "fireAcademy", providerType = ProviderType.Chia.FireAcademy),
|
||||
ChiaTangem(id = "tangemChia", providerType = ProviderType.Chia.Tangem),
|
||||
ChiaTangemNew(id = "tangemChia3", providerType = ProviderType.Chia.TangemNew),
|
||||
|
|
|
|||
|
|
@ -169,9 +169,9 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"hyperevm/test" -> Blockchain.HyperliquidTestnet
|
||||
"quai-network" -> Blockchain.Quai
|
||||
"quai-network/test" -> Blockchain.QuaiTestnet
|
||||
// "linea" -> Blockchain.Linea
|
||||
// "linea/test" -> Blockchain.LineaTestnet
|
||||
// "arbitrum-nova" -> Blockchain.ArbitrumNova
|
||||
"linea" -> Blockchain.Linea
|
||||
"linea/test" -> Blockchain.LineaTestnet
|
||||
"arbitrum-nova" -> Blockchain.ArbitrumNova
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -338,9 +338,9 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.HyperliquidTestnet -> "hyperevm/test"
|
||||
Blockchain.Quai -> "quai-network"
|
||||
Blockchain.QuaiTestnet -> "quai-network/test"
|
||||
// Blockchain.Linea -> "linea"
|
||||
// Blockchain.LineaTestnet -> "linea/test"
|
||||
// Blockchain.ArbitrumNova -> "arbitrum-nova"
|
||||
Blockchain.Linea -> "linea"
|
||||
Blockchain.LineaTestnet -> "linea/test"
|
||||
Blockchain.ArbitrumNova -> "arbitrum-nova"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -446,8 +446,8 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Pepecoin, Blockchain.PepecoinTestnet -> "pepecoin-network"
|
||||
Blockchain.Hyperliquid, Blockchain.HyperliquidTestnet -> "hyperliquid"
|
||||
Blockchain.Quai, Blockchain.QuaiTestnet -> "quai-network"
|
||||
// Blockchain.Linea, Blockchain.LineaTestnet -> "linea-ethereum"
|
||||
// Blockchain.ArbitrumNova -> "arbitrum-nova-ethereum"
|
||||
Blockchain.Linea, Blockchain.LineaTestnet -> "linea-ethereum"
|
||||
Blockchain.ArbitrumNova -> "arbitrum-nova-ethereum"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -159,6 +159,13 @@ object BlockchainUtils {
|
|||
return isSolana(blockchainId) || isBSC(blockchainId) || isTon(blockchainId)
|
||||
}
|
||||
|
||||
/** Checks if the blockchain uses case-insensitive contract addresses */
|
||||
fun isCaseInsensitiveContractAddress(blockchainId: String): Boolean {
|
||||
val blockchain = Blockchain.fromId(blockchainId)
|
||||
|
||||
return blockchain.isEvm()
|
||||
}
|
||||
|
||||
private fun getNetworkStandardName(blockchain: Blockchain): String {
|
||||
return when (blockchain) {
|
||||
Blockchain.Ethereum, Blockchain.EthereumTestnet -> "ERC20"
|
||||
|
|
|
|||
|
|
@ -168,8 +168,8 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.Pepecoin,
|
||||
Blockchain.Hyperliquid,
|
||||
Blockchain.Scroll,
|
||||
// Blockchain.Linea,
|
||||
// Blockchain.ArbitrumNova,
|
||||
Blockchain.Linea,
|
||||
Blockchain.ArbitrumNova,
|
||||
Blockchain.Quai,
|
||||
-> true
|
||||
Blockchain.Nexa, // unsupported network
|
||||
|
|
@ -244,7 +244,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.PepecoinTestnet,
|
||||
Blockchain.HyperliquidTestnet,
|
||||
Blockchain.QuaiTestnet,
|
||||
// Blockchain.LineaTestnet,
|
||||
Blockchain.LineaTestnet,
|
||||
-> false
|
||||
// endregion
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue