Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-23 14:55:04 +02:00
parent c3c5874060
commit 016b1e18d2
13 changed files with 858 additions and 421 deletions

View file

@ -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

View file

@ -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
*