Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data RpcQuery a where
- data BlockNumber
- mkr :: Addr
- rpc :: String -> [String] -> Value
- class ToRPC a where
- readText :: Read a => Text -> a
- fetchQuery :: Show a => BlockNumber -> (Value -> IO (Maybe Text)) -> RpcQuery a -> IO (Maybe a)
- fetchWithSession :: Text -> Session -> Value -> IO (Maybe Text)
- fetchContractWithSession :: BlockNumber -> Text -> Session -> Addr -> IO (Maybe Contract)
- fetchSlotWithSession :: BlockNumber -> Text -> Session -> Addr -> W256 -> IO (Maybe Word)
- fetchContractFrom :: BlockNumber -> Text -> Addr -> IO (Maybe Contract)
- fetchSlotFrom :: BlockNumber -> Text -> Addr -> W256 -> IO (Maybe Word)
- http :: BlockNumber -> Text -> Query -> IO (EVM ())
- zero :: Monad m => Query -> m (EVM ())
- type Fetcher = Query -> IO (EVM ())
Documentation
data RpcQuery a where Source #
Abstract representation of an RPC fetch request
data BlockNumber Source #
Instances
ToRPC BlockNumber Source # | |
fetchQuery :: Show a => BlockNumber -> (Value -> IO (Maybe Text)) -> RpcQuery a -> IO (Maybe a) Source #
fetchContractWithSession :: BlockNumber -> Text -> Session -> Addr -> IO (Maybe Contract) Source #
fetchContractFrom :: BlockNumber -> Text -> Addr -> IO (Maybe Contract) Source #
fetchSlotFrom :: BlockNumber -> Text -> Addr -> W256 -> IO (Maybe Word) Source #