Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-22 17:20:18 +03:00
commit 7db00540c5
351 changed files with 6478 additions and 1691 deletions

View file

@ -45,7 +45,7 @@ internal class WcConnectedAppInfoModel @Inject constructor(
private val params = paramsContainer.require<WcConnectedAppInfoContainerComponent.Params>()
val uiState: StateFlow<WcConnectedAppInfoUM?>
field = MutableStateFlow<WcConnectedAppInfoUM?>(null)
field = MutableStateFlow<WcConnectedAppInfoUM?>(null)
val stackNavigation = StackNavigation<ConnectedAppInfoRoutes>()

View file

@ -55,7 +55,7 @@ internal class WcConnectionsModel @Inject constructor(
private val params = paramsContainer.require<WcConnectionsComponent.Params>()
val uiState: StateFlow<WcConnectionsState>
field = MutableStateFlow<WcConnectionsState>(getInitialState())
field = MutableStateFlow<WcConnectionsState>(getInitialState())
val bottomSheetNavigation: SlotNavigation<WcConnectionsBottomSheetConfig> = SlotNavigation()
init {

View file

@ -80,7 +80,7 @@ internal class WcPairModel @Inject constructor(
private val dAppVerifiedStateConverter = WcDAppVerifiedStateConverter(onVerifiedClick = ::showVerifiedAlert)
val appInfoUiState: StateFlow<WcAppInfoUM>
field = MutableStateFlow<WcAppInfoUM>(createLoadingState())
field = MutableStateFlow<WcAppInfoUM>(createLoadingState())
init {
loadDAppInfo()

View file

@ -37,7 +37,7 @@ internal class WcSelectNetworksModel @Inject constructor(
)
val state: StateFlow<WcSelectNetworksUM>
field = MutableStateFlow(getInitialState())
field = MutableStateFlow(getInitialState())
private fun onCheckedChange(isChecked: Boolean, network: Network) {
additionallyEnabledNetworks.update {

View file

@ -32,12 +32,12 @@ internal class WcSelectWalletModel @Inject constructor(
private val params = paramsContainer.require<WcSelectWalletParams>()
internal val state: StateFlow<WcAppInfoWalletUM>
field = MutableStateFlow<WcAppInfoWalletUM>(
WcAppInfoWalletUM(
wallets = persistentListOf(),
selectedUserWalletId = params.selectedWalletId,
),
)
field = MutableStateFlow<WcAppInfoWalletUM>(
WcAppInfoWalletUM(
wallets = persistentListOf(),
selectedUserWalletId = params.selectedWalletId,
),
)
private val userWalletsFetcher = WcUserWalletsFetcher(
userWalletsFetcherFactory = userWalletsFetcherFactory,

View file

@ -13,6 +13,7 @@ internal class WcSwitchNetworkComponent(
params: WcTransactionModelParams,
) : AppComponentContext by appComponentContext, ComposableContentComponent {
@Suppress("UnusedPrivateProperty")
private val model: WcSwitchNetworkModel = getOrCreateModel(params = params)
@Composable