Updated on 2026-08-14
This commit is contained in:
parent
59b02e2e7a
commit
485430f6f4
20 changed files with 259 additions and 45 deletions
|
|
@ -12,6 +12,7 @@ interface SwapChooseTokenNetworkComponent : ComposableBottomSheetComponent {
|
|||
data class Params(
|
||||
val userWalletId: UserWalletId,
|
||||
val initialCurrency: CryptoCurrency,
|
||||
val selectedCurrency: CryptoCurrency?,
|
||||
val token: ManagedCryptoCurrency.Token,
|
||||
val onDismiss: () -> Unit,
|
||||
val onResult: (SwapCurrencies, CryptoCurrency) -> Unit,
|
||||
|
|
|
|||
|
|
@ -9,12 +9,18 @@ import kotlinx.coroutines.flow.SharedFlow
|
|||
*/
|
||||
interface SwapChooseTokenNetworkTrigger {
|
||||
|
||||
suspend fun trigger(swapCurrencies: SwapCurrencies, cryptoCurrency: CryptoCurrency)
|
||||
suspend fun trigger(swapCurrencies: SwapCurrencies, cryptoCurrency: CryptoCurrency, shouldResetNavigation: Boolean)
|
||||
}
|
||||
|
||||
/**
|
||||
* Listens to swap token selection
|
||||
*/
|
||||
interface SwapChooseTokenNetworkListener {
|
||||
val swapChooseTokenNetworkResultFlow: SharedFlow<Pair<SwapCurrencies, CryptoCurrency>>
|
||||
}
|
||||
val swapChooseTokenNetworkResultFlow: SharedFlow<SwapChooseTokenTriggerData>
|
||||
}
|
||||
|
||||
data class SwapChooseTokenTriggerData(
|
||||
val swapCurrencies: SwapCurrencies,
|
||||
val cryptoCurrency: CryptoCurrency,
|
||||
val shouldResetNavigation: Boolean,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue