Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
trait PortfolioAssetRepository {
def portfolioAssetRepository: PortfolioAssetRepository.Service
}
object PortfolioAssetRepository {
trait Service {
def add(name: String, price: BigDecimal): IO[RepositoryException, AssetId]
def getById(id: AssetId): IO[RepositoryException, Option[Asset]]
def update(id: AssetId, name: String, price: BigDecimal): IO[RepositoryException, Unit]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.