Updated on 2026-08-14
This commit is contained in:
commit
aa10ef1182
1206 changed files with 26404 additions and 12548 deletions
|
|
@ -37,8 +37,8 @@ internal class BlockchainProvidersResponseLoader @Inject constructor(
|
|||
remote = remoteResponse,
|
||||
)
|
||||
},
|
||||
onFailure = {
|
||||
Timber.e(it, "Failed to load blockchain provider types from backend")
|
||||
onFailure = { throwable ->
|
||||
Timber.e(throwable, "Failed to load blockchain provider types from backend")
|
||||
localResponse
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ internal class BlockchainProvidersResponseMerger @Inject internal constructor(
|
|||
*/
|
||||
fun merge(local: BlockchainProvidersResponse, remote: BlockchainProvidersResponse): BlockchainProvidersResponse {
|
||||
val remoteWithoutInvalidProviders = remote
|
||||
.mapValues {
|
||||
it.value
|
||||
.mapValues { entry ->
|
||||
entry.value
|
||||
.filterUnsupportedProviders()
|
||||
.filterInvalidProviders()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,10 +52,10 @@ internal class DevBlockchainProvidersTypesManager(
|
|||
}
|
||||
|
||||
override suspend fun update(blockchain: Blockchain, providers: List<ProviderType>) {
|
||||
changedBlockchainProvidersStore.updateData {
|
||||
changedBlockchainProvidersStore.updateData { blockchainProviders ->
|
||||
val providerModels = BlockchainProviderTypesConverter.convertBack(value = mapOf(blockchain to providers))
|
||||
|
||||
it + providerModels
|
||||
blockchainProviders + providerModels
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +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),
|
||||
ChiaFireAcademy(id = "fireAcademy", providerType = ProviderType.Chia.FireAcademy),
|
||||
ChiaTangem(id = "tangemChia", providerType = ProviderType.Chia.Tangem),
|
||||
ChiaTangemNew(id = "tangemChia3", providerType = ProviderType.Chia.TangemNew),
|
||||
|
|
@ -26,5 +27,4 @@ internal enum class ProviderTypeIdMapping(val id: String, val providerType: Prov
|
|||
AlephiumTangem(id = "tangemAlephium", providerType = ProviderType.Alephium.Tangem),
|
||||
Blink(id = "blink", providerType = ProviderType.Blink),
|
||||
Tatum(id = "tatum", providerType = ProviderType.Kusama.Tatum),
|
||||
;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue