Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-29 19:27:56 +05:00
commit fbec0d5a58
8 changed files with 101 additions and 7 deletions

View file

@ -21,4 +21,6 @@ interface NetworksRepository {
* @param network network
*/
suspend fun getNetworkAddresses(userWalletId: UserWalletId, network: Network): List<CryptoCurrencyAddress>
suspend fun getNetworkAddresses(userWalletId: UserWalletId, network: Network.RawID): List<CryptoCurrencyAddress>
}

View file

@ -9,6 +9,10 @@ class GetNetworkAddressesUseCase(
private val networksRepository: NetworksRepository,
) {
suspend fun invokeSync(userWalletId: UserWalletId, networkRawId: Network.RawID): List<CryptoCurrencyAddress> {
return networksRepository.getNetworkAddresses(userWalletId, networkRawId)
}
suspend fun invokeSync(userWalletId: UserWalletId, network: Network): List<CryptoCurrencyAddress> {
return networksRepository.getNetworkAddresses(userWalletId, network)
}