All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.plasmalabs.sdk.dataApi.FellowshipStorageAlgebra.scala Maven / Gradle / Ivy

The newest version!
package org.plasmalabs.sdk.dataApi

/**
 * @param xIdx The X coordinate associated with the entity
 * @param name The name of the entity
 */
case class WalletFellowship(xIdx: Int, name: String)

/**
 * Defines a fellowship storage API.
 */
trait FellowshipStorageAlgebra[F[_]] {

  /**
   * Fetches all fellowships.
   * @return The fetched fellowships.
   */
  def findFellowships(): F[Seq[WalletFellowship]]

  /**
   * Add a new fellowship.
   * @param walletEntity The wallet entity to add.
   */
  def addFellowship(walletEntity: WalletFellowship): F[Int]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy