package com.github.nullptroma.wallenc.app.di.modules.data

import com.github.nullptroma.wallenc.domain.interfaces.IVaultsManager
import com.github.nullptroma.wallenc.domain.vault.vaults.VaultsManager
import com.github.nullptroma.wallenc.vault.contract.VaultRegistrar
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
abstract class VaultBindingsModule {

    @Binds
    @Singleton
    abstract fun bindVaultsManager(impl: VaultsManager): IVaultsManager

    @Binds
    @Singleton
    abstract fun bindVaultRegistrar(impl: VaultsManager): VaultRegistrar
}
