Updated on 2026-08-14

This commit is contained in:
Tangem 2022-04-12 17:08:21 +03:00
parent a73558501c
commit b718f39048
5 changed files with 8 additions and 9 deletions

View file

@ -36,7 +36,7 @@ object TapWorkarounds {
)
private val tangemWalletBatchesWithStandardDerivationType = listOf(
"AC01", "AC02"
"AC01", "AC02", "CB95"
)
fun Card.getTangemNoteBlockchain(): Blockchain? = tangemNoteBatches[batchId]

View file

@ -4,11 +4,14 @@ import com.tangem.blockchain.common.Blockchain
import com.tangem.domain.common.form.BaseFieldDataConverter
import com.tangem.domain.common.form.FieldDataConverter
import com.tangem.domain.common.form.FieldId
import com.tangem.domain.features.addCustomToken.redux.CompleteDataType
/**
[REDACTED_AUTHOR]
*/
enum class CompleteDataType {
Blockchain, Token
}
sealed class CompleteData() {
companion object {

View file

@ -3,10 +3,6 @@ package com.tangem.domain.features.addCustomToken.redux
/**
[REDACTED_AUTHOR]
*/
enum class CompleteDataType {
Blockchain, Token
}
// describes state the screen, except the form fields
data class ScreenState(
val contractAddressField: ViewStates.TokenField,

View file

@ -14,8 +14,8 @@ import java.util.concurrent.Executors
[REDACTED_AUTHOR]
* ReStoreHub's should not store the <StoreState> or the <State>, because this can lead to destabilization of
* a state behavior.
* All ReStoreHub's must be marked as internal
*/
// all ReStoreHub's must be marked as internal
internal interface ReStoreHub<StoreState, State> : HubMiddleware<StoreState>, HubReducer<StoreState>
internal interface HubMiddleware<StoreState> {
@ -77,7 +77,7 @@ internal abstract class BaseStoreHub<State>(
}
/**
* Reduce the action and check if - if the action hasn't updated the hubState, then it doesn't need to update
* Reduce the action and check it. If the action hasn't updated the hubState, then it doesn't need to update
* storeState
*/
override fun reduce(action: Action, storeState: DomainState): DomainState {

View file

@ -6,7 +6,7 @@ import java.math.BigDecimal
[REDACTED_AUTHOR]
*/
interface HttpResponse
interface TangemTechResponse : HttpResponse
sealed interface TangemTechResponse : HttpResponse
sealed class Coins : TangemTechResponse {
data class PricesResponse(val prices: List<Price>) : Coins() {