Updated on 2026-08-14
This commit is contained in:
parent
c3c5874060
commit
016b1e18d2
13 changed files with 858 additions and 421 deletions
|
|
@ -11,7 +11,7 @@ import java.math.BigDecimal
|
|||
* Strategy interface for staking integrations.
|
||||
* Abstracts over StakeKit and P2PEthPool staking providers.
|
||||
*/
|
||||
interface StakingIntegration {
|
||||
sealed interface StakingIntegration {
|
||||
|
||||
// Basic
|
||||
|
||||
|
|
|
|||
|
|
@ -132,6 +132,16 @@ interface P2PEthPoolRepository {
|
|||
*/
|
||||
fun getVaultsFlow(): Flow<List<P2PEthPoolVault>>
|
||||
|
||||
/**
|
||||
* Get cached vaults synchronously from local store.
|
||||
*
|
||||
* This returns vaults from the local cache/store without network call.
|
||||
* Call [fetchVaults] first to populate the cache from the network.
|
||||
*
|
||||
* @return List of cached vaults (empty if cache is not populated)
|
||||
*/
|
||||
suspend fun getVaultsSync(): List<P2PEthPoolVault>
|
||||
|
||||
/**
|
||||
* Check P2PEthPool staking availability by finding public vault
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue