Updated on 2026-08-14
This commit is contained in:
commit
6b9fc4a3ce
1058 changed files with 48197 additions and 12718 deletions
|
|
@ -1,5 +0,0 @@
|
|||
package com.tangem.lib.auth
|
||||
|
||||
interface ExpressAuthProvider {
|
||||
fun getSessionId(): String
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package com.tangem.lib.auth
|
||||
|
||||
interface P2PEthPoolAuthProvider {
|
||||
|
||||
fun getApiKey(): String
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package com.tangem.lib.auth
|
||||
|
||||
interface StakeKitAuthProvider {
|
||||
|
||||
fun getApiKey(): String
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@ internal enum class ProviderTypeIdMapping(val id: String, val providerType: Prov
|
|||
NowNodes(id = "nownodes", providerType = ProviderType.NowNodes),
|
||||
GetBlock(id = "getblock", providerType = ProviderType.GetBlock),
|
||||
QuickNode(id = "quicknode", providerType = ProviderType.QuickNode),
|
||||
Alchemy(id = "alchemy", providerType = ProviderType.Alchemy),
|
||||
BitcoinBlockchair(id = "blockchair", providerType = ProviderType.BitcoinLike.Blockchair),
|
||||
BitcoinBlockcypher(id = "blockcypher", providerType = ProviderType.BitcoinLike.Blockcypher),
|
||||
CardanoAdalite(id = "adalite", providerType = ProviderType.Cardano.Adalite),
|
||||
|
|
|
|||
|
|
@ -174,6 +174,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"arbitrum-nova" -> Blockchain.ArbitrumNova
|
||||
"plasma" -> Blockchain.Plasma
|
||||
"plasma/test" -> Blockchain.PlasmaTestnet
|
||||
"adi-token" -> Blockchain.Adi
|
||||
"adi-token/test" -> Blockchain.AdiTestnet
|
||||
"sei-v2" -> Blockchain.SeiEvm
|
||||
"sei-v2/test" -> Blockchain.SeiEvmTestnet
|
||||
"monad" -> Blockchain.Monad
|
||||
|
|
@ -349,6 +351,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.ArbitrumNova -> "arbitrum-nova"
|
||||
Blockchain.Plasma -> "plasma"
|
||||
Blockchain.PlasmaTestnet -> "plasma/test"
|
||||
Blockchain.Adi -> "adi-token"
|
||||
Blockchain.AdiTestnet -> "adi-token/test"
|
||||
Blockchain.SeiEvm -> "sei-v2"
|
||||
Blockchain.SeiEvmTestnet -> "sei-v2/test"
|
||||
Blockchain.Monad -> "monad"
|
||||
|
|
@ -461,6 +465,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Linea, Blockchain.LineaTestnet -> "linea-ethereum"
|
||||
Blockchain.ArbitrumNova -> "arbitrum-nova-ethereum"
|
||||
Blockchain.Plasma, Blockchain.PlasmaTestnet -> "plasma"
|
||||
Blockchain.Adi, Blockchain.AdiTestnet -> "adi-token"
|
||||
Blockchain.SeiEvm, Blockchain.SeiEvmTestnet -> "sei-v2"
|
||||
Blockchain.Monad, Blockchain.MonadTestnet -> "monad"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.ArbitrumNova,
|
||||
Blockchain.Quai,
|
||||
Blockchain.Plasma,
|
||||
Blockchain.Adi,
|
||||
Blockchain.SeiEvm,
|
||||
Blockchain.Monad,
|
||||
-> true
|
||||
|
|
@ -254,6 +255,7 @@ class AccountNodeRecognizer(private val blockchain: Blockchain) {
|
|||
Blockchain.QuaiTestnet,
|
||||
Blockchain.LineaTestnet,
|
||||
Blockchain.PlasmaTestnet,
|
||||
Blockchain.AdiTestnet,
|
||||
Blockchain.SeiEvmTestnet,
|
||||
Blockchain.MonadTestnet,
|
||||
-> false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue