-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from tohrxyz/fix/sync-after-broadcast-tx
fix: sync after broadcast tx
- Loading branch information
Showing
4 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
app/src/main/java/xyz/tomashrib/zephyruswallet/data/ZephyrusViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package xyz.tomashrib.zephyruswallet.data | ||
|
||
import android.content.Context | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.lifecycle.ViewModel | ||
import androidx.lifecycle.viewModelScope | ||
import kotlinx.coroutines.launch | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
class ZephyrusViewModel : ViewModel() { | ||
// Define your mutable states and other properties here | ||
|
||
val hasSynced = mutableStateOf(false) | ||
|
||
// // Define your update functions and other ViewModel related functions here | ||
// fun updateBalance() { | ||
// viewModelScope.launch(Dispatchers.IO) { | ||
// // Update balance logic | ||
// } | ||
// } | ||
// | ||
// fun updatePrice(context: Context) { | ||
// viewModelScope.launch(Dispatchers.IO) { | ||
// // Update price logic | ||
// } | ||
// } | ||
|
||
// Other ViewModel related functions | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters