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.
18 lines
494 B
18 lines
494 B
7 years ago
|
package com.xsn.explorer.data
|
||
|
|
||
|
import com.alexitc.playsonify.core.ApplicationResult
|
||
|
import com.xsn.explorer.models.{Blockhash, Transaction, TransactionId}
|
||
|
|
||
|
import scala.language.higherKinds
|
||
|
|
||
|
trait TransactionDataHandler[F[_]] {
|
||
|
|
||
|
def upsert(transaction: Transaction): F[Transaction]
|
||
|
|
||
|
def delete(transactionId: TransactionId): F[Transaction]
|
||
|
|
||
|
def deleteBy(blockhash: Blockhash): F[List[Transaction]]
|
||
|
}
|
||
|
|
||
|
trait TransactionBlockingDataHandler extends TransactionDataHandler[ApplicationResult]
|