Updated on 2026-08-14
This commit is contained in:
parent
bc414f1e4a
commit
b0cb12b56a
12 changed files with 82 additions and 22 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package com.tangem.features.staking.impl.presentation.state.stub
|
||||
|
||||
import com.tangem.domain.staking.model.Yield
|
||||
import com.tangem.features.staking.impl.presentation.state.BalanceState
|
||||
import com.tangem.features.staking.impl.presentation.state.transformers.InfoType
|
||||
import com.tangem.features.staking.impl.presentation.viewmodel.StakingClickIntents
|
||||
|
||||
|
|
@ -35,4 +36,6 @@ object StakingClickIntentsStub : StakingClickIntents {
|
|||
override fun onExploreClick() {}
|
||||
|
||||
override fun onShareClick() {}
|
||||
|
||||
override fun onActiveStake(activeStake: BalanceState) {}
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ package com.tangem.features.staking.impl.presentation.viewmodel
|
|||
|
||||
import com.tangem.common.ui.amountScreen.AmountScreenClickIntents
|
||||
import com.tangem.domain.staking.model.Yield
|
||||
import com.tangem.features.staking.impl.presentation.state.BalanceState
|
||||
import com.tangem.features.staking.impl.presentation.state.transformers.InfoType
|
||||
|
||||
internal interface StakingClickIntents : AmountScreenClickIntents {
|
||||
|
|
@ -24,6 +25,8 @@ internal interface StakingClickIntents : AmountScreenClickIntents {
|
|||
|
||||
fun selectRewardValidator(rewardValue: String)
|
||||
|
||||
fun onActiveStake(activeStake: BalanceState)
|
||||
|
||||
fun onExploreClick()
|
||||
|
||||
fun onShareClick()
|
||||
|
|
|
|||
|
|
@ -217,6 +217,10 @@ internal class StakingViewModel @Inject constructor(
|
|||
stakingStateRouter.onNextClick()
|
||||
}
|
||||
|
||||
override fun onActiveStake(activeStake: BalanceState) {
|
||||
// todo unstake
|
||||
}
|
||||
|
||||
override fun onExploreClick() {
|
||||
val confirmationDataState = uiState.value.confirmationState as? StakingStates.ConfirmationState.Data
|
||||
val transactionDoneState = confirmationDataState?.transactionDoneState as? TransactionDoneState.Content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue