You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
package com.xsn.explorer.data
|
|
|
|
import com.alexitc.playsonify.core.ApplicationResult
|
|
import com.alexitc.playsonify.models.ordering.FieldOrdering
|
|
import com.alexitc.playsonify.models.pagination.{Limit, PaginatedQuery, PaginatedResult}
|
|
import com.xsn.explorer.models._
|
|
import com.xsn.explorer.models.fields.TransactionField
|
|
import org.scalactic.Every
|
|
|
|
import scala.language.higherKinds
|
|
|
|
trait TransactionDataHandler[F[_]] {
|
|
|
|
def getBy(
|
|
address: Address,
|
|
paginatedQuery: PaginatedQuery,
|
|
ordering: FieldOrdering[TransactionField]): F[PaginatedResult[TransactionWithValues]]
|
|
|
|
def getBy(address: Address, before: Long, limit: Limit): F[List[Transaction]]
|
|
|
|
def getUnspentOutputs(address: Address): F[List[Transaction.Output]]
|
|
|
|
def getByBlockhash(
|
|
blockhash: Blockhash,
|
|
paginatedQuery: PaginatedQuery,
|
|
ordering: FieldOrdering[TransactionField]): F[PaginatedResult[TransactionWithValues]]
|
|
|
|
def getLatestTransactionBy(addresses: Every[Address]): F[Map[String, String]]
|
|
}
|
|
|
|
trait TransactionBlockingDataHandler extends TransactionDataHandler[ApplicationResult]
|
|
|