{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Polkadot.Api.Offchain where
import Data.ByteArray.HexString (HexString)
import Network.JsonRpc.TinyClient (JsonRpc (..))
import Network.Polkadot.Api.Types (StorageKind)
localStorageGet :: JsonRpc m
=> StorageKind
-> HexString
-> m (Maybe HexString)
{-# INLINE localStorageGet #-}
localStorageGet = remote "offchain_localStorageGet"
localStorageSet :: JsonRpc m
=> StorageKind
-> HexString
-> HexString
-> m ()
{-# INLINE localStorageSet #-}
localStorageSet = remote "offchain_localStorageSet"