{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Polkadot.Api.Author where
import Data.Text (Text)
import Data.ByteArray.HexString (HexString)
import Network.JsonRpc.TinyClient (JsonRpc (..))
hasKey :: JsonRpc m
=> HexString
-> Text
-> m Bool
{-# INLINE hasKey #-}
hasKey = remote "author_hasKey"
hasSessionKeys :: JsonRpc m
=> HexString
-> m Bool
{-# INLINE hasSessionKeys #-}
hasSessionKeys = remote "author_hasSessionKeys"
insertKey :: JsonRpc m
=> Text
-> Text
-> HexString
-> m HexString
{-# INLINE insertKey #-}
insertKey = remote "author_insertKey"
pendingExtrinsics :: JsonRpc m => m [HexString]
{-# INLINE pendingExtrinsics #-}
pendingExtrinsics = remote "author_pendingExtrinsics"
removeExtrinsic :: JsonRpc m
=> [HexString]
-> m HexString
{-# INLINE removeExtrinsic #-}
removeExtrinsic = remote "author_removeExtrinsic"
rotateKeys :: JsonRpc m => m HexString
{-# INLINE rotateKeys #-}
rotateKeys = remote "author_rotateKeys"
submitExtrinsic :: JsonRpc m
=> HexString
-> m HexString
{-# INLINE submitExtrinsic #-}
submitExtrinsic = remote "author_submitExtrinsic"