New: Expose the stateflows for balances.

This conveniently makes the 'value' property accessible without a cast.
This commit is contained in:
Kevin Gorham 2021-06-30 02:30:24 -04:00
parent e7ec713d5f
commit d4f0b0474c
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
1 changed files with 3 additions and 3 deletions

View File

@ -101,17 +101,17 @@ interface Synchronizer {
/**
* A stream of balance values for the orchard pool. Includes the available and total balance.
*/
val orchardBalances: Flow<WalletBalance>
val orchardBalances: StateFlow<WalletBalance>
/**
* A stream of balance values for the sapling pool. Includes the available and total balance.
*/
val saplingBalances: Flow<WalletBalance>
val saplingBalances: StateFlow<WalletBalance>
/**
* A stream of balance values for the transparent pool. Includes the available and total balance.
*/
val transparentBalances: Flow<WalletBalance>
val transparentBalances: StateFlow<WalletBalance>
/* Transactions */