Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-30 14:23:50 +03:00
commit c32a5fa18d
711 changed files with 18558 additions and 4312 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

View file

@ -4,6 +4,7 @@ import com.tangem.core.decompose.context.AppComponentContext
import com.tangem.core.ui.decompose.ComposableBottomSheetComponent
import com.tangem.domain.walletconnect.WcAnalyticEvents
import com.tangem.features.send.v2.api.FeeSelectorComponent
import com.tangem.features.send.v2.api.analytics.CommonSendAnalyticEvents
import com.tangem.features.send.v2.api.params.FeeSelectorParams.FeeDisplaySource
import com.tangem.features.send.v2.api.params.FeeSelectorParams.FeeSelectorDetailsParams
import com.tangem.features.walletconnect.connections.components.AlertsComponentV2
@ -55,6 +56,7 @@ internal fun getWcCommonScreen(
feeStateConfiguration = model.feeStateConfiguration,
feeDisplaySource = FeeDisplaySource.BottomSheet,
analyticsCategoryName = WcAnalyticEvents.WC_CATEGORY_NAME,
analyticsSendSource = CommonSendAnalyticEvents.CommonSendSource.WalletConnect,
),
)
}

View file

@ -8,6 +8,7 @@ import com.tangem.core.decompose.context.AppComponentContext
import com.tangem.core.ui.decompose.ComposableBottomSheetComponent
import com.tangem.domain.walletconnect.WcAnalyticEvents
import com.tangem.features.send.v2.api.FeeSelectorBlockComponent
import com.tangem.features.send.v2.api.analytics.CommonSendAnalyticEvents
import com.tangem.features.send.v2.api.entity.FeeSelectorUM
import com.tangem.features.send.v2.api.params.FeeSelectorParams
import com.tangem.features.walletconnect.transaction.entity.common.WcTransactionFeeState
@ -74,6 +75,7 @@ internal class WcSendTransactionComponent(
feeStateConfiguration = model.feeStateConfiguration,
feeDisplaySource = FeeSelectorParams.FeeDisplaySource.BottomSheet,
analyticsCategoryName = WcAnalyticEvents.WC_CATEGORY_NAME,
analyticsSendSource = CommonSendAnalyticEvents.CommonSendSource.WalletConnect,
),
onResult = model::updateFee,
)