Updated on 2026-08-14
This commit is contained in:
parent
664e71b782
commit
d349f986c5
7 changed files with 16 additions and 5 deletions
|
|
@ -81,6 +81,7 @@ class UserTokensResponseAddressesEnricherTest {
|
|||
},
|
||||
amounts = emptyMap(),
|
||||
pendingTransactions = emptyMap(),
|
||||
yieldSupplyStatuses = emptyMap(),
|
||||
source = StatusSource.ACTUAL,
|
||||
),
|
||||
),
|
||||
|
|
@ -124,6 +125,7 @@ class UserTokensResponseAddressesEnricherTest {
|
|||
},
|
||||
amounts = emptyMap(),
|
||||
pendingTransactions = emptyMap(),
|
||||
yieldSupplyStatuses = emptyMap(),
|
||||
source = StatusSource.ACTUAL,
|
||||
),
|
||||
),
|
||||
|
|
@ -161,6 +163,7 @@ class UserTokensResponseAddressesEnricherTest {
|
|||
},
|
||||
amounts = emptyMap(),
|
||||
pendingTransactions = emptyMap(),
|
||||
yieldSupplyStatuses = emptyMap(),
|
||||
source = StatusSource.ACTUAL,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ internal class UpdateWalletManagerResultFactoryTest {
|
|||
),
|
||||
currenciesAmounts = setOf(
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Coin(value = BigDecimal.ONE),
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Token(
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Token.BasicToken(
|
||||
value = BigDecimal.ZERO,
|
||||
currencyRawId = usdtToken.id?.let(CryptoCurrency::RawID),
|
||||
contractAddress = usdtToken.contractAddress,
|
||||
|
|
@ -416,7 +416,7 @@ internal class UpdateWalletManagerResultFactoryTest {
|
|||
),
|
||||
currenciesAmounts = setOf(
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Coin(value = BigDecimal.ZERO),
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Token(
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Token.BasicToken(
|
||||
value = BigDecimal.ZERO,
|
||||
currencyRawId = usdtToken.id?.let(CryptoCurrency::RawID),
|
||||
contractAddress = usdtToken.contractAddress,
|
||||
|
|
@ -477,7 +477,7 @@ internal class UpdateWalletManagerResultFactoryTest {
|
|||
),
|
||||
currenciesAmounts = setOf(
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Coin(value = BigDecimal.TEN),
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Token(
|
||||
UpdateWalletManagerResult.CryptoCurrencyAmount.Token.BasicToken(
|
||||
value = BigDecimal.TEN,
|
||||
currencyRawId = usdtToken.id?.let(CryptoCurrency::RawID),
|
||||
contractAddress = usdtToken.contractAddress,
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ internal object MockNetworks {
|
|||
defaultAddress = NetworkAddress.Address(value = "mock", NetworkAddress.Address.Type.Primary),
|
||||
),
|
||||
source = StatusSource.ACTUAL,
|
||||
yieldSupplyStatuses = mapOf(),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -113,6 +114,7 @@ internal object MockNetworks {
|
|||
defaultAddress = NetworkAddress.Address(value = "mock", NetworkAddress.Address.Type.Primary),
|
||||
),
|
||||
source = StatusSource.ACTUAL,
|
||||
yieldSupplyStatuses = mapOf(),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -130,6 +132,7 @@ internal object MockNetworks {
|
|||
defaultAddress = NetworkAddress.Address(value = "mock", NetworkAddress.Address.Type.Primary),
|
||||
),
|
||||
source = StatusSource.ACTUAL,
|
||||
yieldSupplyStatuses = mapOf(),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
@ -156,6 +156,7 @@ internal object MockTokensStates {
|
|||
).address,
|
||||
yieldBalance = null,
|
||||
sources = CryptoCurrencyStatus.Sources(),
|
||||
yieldSupplyStatus = null,
|
||||
)
|
||||
is QuoteStatus.Data -> CryptoCurrencyStatus.Loaded(
|
||||
amount = amount,
|
||||
|
|
@ -167,6 +168,7 @@ internal object MockTokensStates {
|
|||
networkAddress = requireNotNull(networkStatus.value as? NetworkStatus.Verified).address,
|
||||
yieldBalance = null,
|
||||
sources = CryptoCurrencyStatus.Sources(),
|
||||
yieldSupplyStatus = null,
|
||||
)
|
||||
}
|
||||
status.copy(value = value)
|
||||
|
|
@ -185,6 +187,7 @@ internal object MockTokensStates {
|
|||
).address,
|
||||
yieldBalance = null,
|
||||
sources = CryptoCurrencyStatus.Sources(),
|
||||
yieldSupplyStatus = null,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ class FeeCalculationUtilsTest {
|
|||
hasCurrentNetworkTransactions = false,
|
||||
pendingTransactions = emptySet(),
|
||||
networkAddress = mockk(relaxed = true),
|
||||
yieldSupplyStatus = null,
|
||||
sources = CryptoCurrencyStatus.Sources(),
|
||||
)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -795,6 +795,7 @@ class DefaultPromoDeeplinkHandlerTest {
|
|||
amounts = emptyMap(),
|
||||
pendingTransactions = emptyMap(),
|
||||
source = StatusSource.ACTUAL,
|
||||
yieldSupplyStatuses = emptyMap(),
|
||||
)
|
||||
|
||||
return NetworkStatus(network = network, value = value)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
#tangemBlockchainSdk = "develop-1222"
|
||||
tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemBlockchainSdk = "develop-1225"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-561"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
tangemVico = "2.0.0-alpha.25-tangem12"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue