Updated on 2026-08-14
This commit is contained in:
commit
fbec0d5a58
8 changed files with 101 additions and 7 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue