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.
20 lines
474 B
20 lines
474 B
package com.xsn.explorer.data
|
|
|
|
import com.alexitc.playsonify.core.ApplicationResult
|
|
import com.xsn.explorer.models.Blockhash
|
|
import com.xsn.explorer.models.rpc.Block
|
|
|
|
import scala.language.higherKinds
|
|
|
|
trait BlockDataHandler[F[_]] {
|
|
|
|
def upsert(block: Block): F[Block]
|
|
|
|
def getBy(blockhash: Blockhash): F[Block]
|
|
|
|
def delete(blockhash: Blockhash): F[Block]
|
|
|
|
def getLatestBlock(): F[Block]
|
|
}
|
|
|
|
trait BlockBlockingDataHandler extends BlockDataHandler[ApplicationResult]
|
|
|