Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-24 18:00:16 +05:00
parent 2c57ba3611
commit 110ff5c745
101 changed files with 235 additions and 229 deletions

View file

@ -1,7 +0,0 @@
package com.tangem.features.send.api.callbacks
import com.tangem.features.send.api.entity.FeeSelectorUM
interface FeeSelectorModelCallback {
fun onFeeResult(feeSelectorUM: FeeSelectorUM)
}

View file

@ -1,9 +1,9 @@
package com.tangem.features.send.api
package com.tangem.features.send.api.subcomponents.feeSelector
import com.tangem.core.decompose.context.AppComponentContext
import com.tangem.core.ui.decompose.ComposableContentComponent
import com.tangem.features.send.api.entity.FeeSelectorUM
import com.tangem.features.send.api.params.FeeSelectorParams
import com.tangem.features.send.api.subcomponents.feeSelector.entity.FeeSelectorUM
import com.tangem.features.send.api.subcomponents.feeSelector.params.FeeSelectorParams
interface FeeSelectorBlockComponent : ComposableContentComponent {

View file

@ -1,8 +1,8 @@
package com.tangem.features.send.api
package com.tangem.features.send.api.subcomponents.feeSelector
import com.tangem.core.decompose.context.AppComponentContext
import com.tangem.core.ui.decompose.ComposableBottomSheetComponent
import com.tangem.features.send.api.params.FeeSelectorParams
import com.tangem.features.send.api.subcomponents.feeSelector.params.FeeSelectorParams
interface FeeSelectorComponent : ComposableBottomSheetComponent {
interface Factory {

View file

@ -0,0 +1,7 @@
package com.tangem.features.send.api.subcomponents.feeSelector.callbacks
import com.tangem.features.send.api.subcomponents.feeSelector.entity.FeeSelectorUM
interface FeeSelectorModelCallback {
fun onFeeResult(feeSelectorUM: FeeSelectorUM)
}

View file

@ -1,4 +1,4 @@
package com.tangem.features.send.api.entity
package com.tangem.features.send.api.subcomponents.feeSelector.entity
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions

View file

@ -1,4 +1,4 @@
package com.tangem.features.send.api.entity
package com.tangem.features.send.api.subcomponents.feeSelector.entity
import androidx.compose.runtime.Immutable
import com.tangem.blockchain.common.Amount

View file

@ -1,4 +1,4 @@
package com.tangem.features.send.api.params
package com.tangem.features.send.api.subcomponents.feeSelector.params
import arrow.core.Either
import com.tangem.blockchain.common.transaction.Fee
@ -9,8 +9,8 @@ import com.tangem.domain.models.wallet.UserWalletId
import com.tangem.domain.transaction.error.GetFeeError
import com.tangem.domain.transaction.models.TransactionFeeExtended
import com.tangem.features.send.api.analytics.CommonSendAnalyticEvents
import com.tangem.features.send.api.callbacks.FeeSelectorModelCallback
import com.tangem.features.send.api.entity.FeeSelectorUM
import com.tangem.features.send.api.subcomponents.feeSelector.callbacks.FeeSelectorModelCallback
import com.tangem.features.send.api.subcomponents.feeSelector.entity.FeeSelectorUM
sealed class FeeSelectorParams {
abstract val state: FeeSelectorUM

View file

@ -4,8 +4,8 @@ import com.tangem.blockchain.common.transaction.TransactionFee
import com.tangem.core.ui.utils.parseBigDecimal
import com.tangem.core.ui.utils.parseToBigDecimal
import com.tangem.domain.models.currency.CryptoCurrencyStatus
import com.tangem.features.send.api.entity.FeeItem
import com.tangem.features.send.api.entity.FeeSelectorUM
import com.tangem.features.send.api.subcomponents.feeSelector.entity.FeeItem
import com.tangem.features.send.api.subcomponents.feeSelector.entity.FeeSelectorUM
import com.tangem.utils.extensions.isZero
import java.math.BigDecimal
import java.math.RoundingMode

View file

@ -1,4 +1,4 @@
package com.tangem.features.send.api
package com.tangem.features.send.api.subcomponents.notifications
import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.ui.Modifier

View file

@ -1,6 +1,5 @@
package com.tangem.features.send.api.subcomponents.notifications
import com.tangem.features.send.api.SendNotificationsComponent
import kotlinx.coroutines.flow.Flow
interface SendNotificationsUpdateListener {

View file

@ -1,7 +1,5 @@
package com.tangem.features.send.api.subcomponents.notifications
import com.tangem.features.send.api.SendNotificationsComponent
interface SendNotificationsUpdateTrigger {
/** Trigger return callback with check result */
suspend fun callbackHasError(hasError: Boolean)