Updated on 2026-08-14
This commit is contained in:
commit
7db00540c5
351 changed files with 6478 additions and 1691 deletions
|
|
@ -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>()
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ internal class WcSwitchNetworkComponent(
|
|||
params: WcTransactionModelParams,
|
||||
) : AppComponentContext by appComponentContext, ComposableContentComponent {
|
||||
|
||||
@Suppress("UnusedPrivateProperty")
|
||||
private val model: WcSwitchNetworkModel = getOrCreateModel(params = params)
|
||||
|
||||
@Composable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue