{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Polkadot.Api.Engine where
import Data.ByteArray.HexString (HexString)
import Network.JsonRpc.TinyClient (JsonRpc (..))
import Network.Polkadot.Api.Types (CreatedBlock)
createBlock :: JsonRpc m
=> Bool
-> Bool
-> Maybe HexString
-> m CreatedBlock
{-# INLINE createBlock #-}
createBlock = remote "engine_createBlock"
finalizeBlock :: JsonRpc m
=> HexString
-> Maybe HexString
-> m Bool
{-# INLINE finalizeBlock #-}
finalizeBlock = remote "engine_finalizeBlock"