Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SignedMsgType
- type Tx = Base64String
- data Vote = Vote {}
- data Commit = Commit {
- commitBlockId :: BlockID
- commitPrecommits :: [Vote]
- type EvidenceList = WrappedVal [Evidence]
- data EvidenceData = EvidenceData {}
- data Data = Data {
- dataTxs :: WrappedVal [Tx]
- data Block = Block {}
- data BlockMeta = BlockMeta {}
- data SimpleProof = SimpleProof {}
- data TxProof = TxProof {}
- data ResultBroadcastTx = ResultBroadcastTx {}
- data ResultABCIInfo = ResultABCIInfo {}
- data ResultHealth = ResultHealth
- data ResultBroadcastTxCommit = ResultBroadcastTxCommit {}
- data RequestBroadcastTxCommit = RequestBroadcastTxCommit {}
- data RequestBroadcastTxSync = RequestBroadcastTxSync {}
- data RequestBroadcastTxAsync = RequestBroadcastTxAsync {}
- data ResultTx = ResultTx {}
- data RequestTx = RequestTx {}
- data ResultBlock = ResultBlock {}
- data RequestBlock = RequestBlock {}
- data ResultABCIQuery = ResultABCIQuery {}
- data RequestABCIQuery = RequestABCIQuery {}
- type TendermintM = ReaderT Config IO
- runTendermintM :: Config -> TendermintM a -> IO a
- defaultConfig :: ByteString -> Int -> Config
- abciQuery :: RequestABCIQuery -> TendermintM ResultABCIQuery
- block :: RequestBlock -> TendermintM ResultBlock
- tx :: RequestTx -> TendermintM ResultTx
- broadcastTxAsync :: RequestBroadcastTxAsync -> TendermintM ResultBroadcastTx
- broadcastTxSync :: RequestBroadcastTxSync -> TendermintM ResultBroadcastTx
- broadcastTxCommit :: RequestBroadcastTxCommit -> TendermintM ResultBroadcastTxCommit
- health :: TendermintM ResultHealth
- abciInfo :: TendermintM ResultABCIInfo
- defaultRPCOptions :: String -> Options
- data Config = Config {
- cBaseHTTPRequest :: Request
- withRequest :: Request -> IO ()
- withResponse :: Response -> IO ()
- data JsonRpcException
- data RpcError = RpcError {
- errCode :: !Int
- errMessage :: !Text
- errData :: !(Maybe Value)
Documentation
data SignedMsgType Source #
Instances
type Tx = Base64String Source #
Instances
Commit | |
|
Instances
Eq Commit Source # | |
Show Commit Source # | |
Generic Commit Source # | |
FromJSON Commit Source # | |
Defined in Network.Tendermint.Client parseJSON :: Value -> Parser Commit parseJSONList :: Value -> Parser [Commit] | |
type Rep Commit Source # | |
Defined in Network.Tendermint.Client type Rep Commit = D1 (MetaData "Commit" "Network.Tendermint.Client" "hs-tendermint-client-0.1.0.0-AEFlZ8KDMlW8Spav1uWoBK" False) (C1 (MetaCons "Commit" PrefixI True) (S1 (MetaSel (Just "commitBlockId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BlockID) :*: S1 (MetaSel (Just "commitPrecommits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Vote]))) |
type EvidenceList = WrappedVal [Evidence] Source #
data EvidenceData Source #
Instances
Data | |
|
Instances
Eq Data Source # | |
Show Data Source # | |
Generic Data Source # | |
FromJSON Data Source # | |
Defined in Network.Tendermint.Client parseJSON :: Value -> Parser Data parseJSONList :: Value -> Parser [Data] | |
type Rep Data Source # | |
Defined in Network.Tendermint.Client type Rep Data = D1 (MetaData "Data" "Network.Tendermint.Client" "hs-tendermint-client-0.1.0.0-AEFlZ8KDMlW8Spav1uWoBK" False) (C1 (MetaCons "Data" PrefixI True) (S1 (MetaSel (Just "dataTxs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (WrappedVal [Tx])))) |
Instances
Eq Block Source # | |
Show Block Source # | |
Generic Block Source # | |
FromJSON Block Source # | |
Defined in Network.Tendermint.Client parseJSON :: Value -> Parser Block parseJSONList :: Value -> Parser [Block] | |
type Rep Block Source # | |
Defined in Network.Tendermint.Client type Rep Block = D1 (MetaData "Block" "Network.Tendermint.Client" "hs-tendermint-client-0.1.0.0-AEFlZ8KDMlW8Spav1uWoBK" False) (C1 (MetaCons "Block" PrefixI True) ((S1 (MetaSel (Just "blockHeader") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Header) :*: S1 (MetaSel (Just "blockData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Data)) :*: (S1 (MetaSel (Just "blockEvidence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 EvidenceData) :*: S1 (MetaSel (Just "blockLastCommit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Commit))))) |
Instances
Eq BlockMeta Source # | |
Show BlockMeta Source # | |
Generic BlockMeta Source # | |
FromJSON BlockMeta Source # | |
Defined in Network.Tendermint.Client parseJSON :: Value -> Parser BlockMeta parseJSONList :: Value -> Parser [BlockMeta] | |
type Rep BlockMeta Source # | |
Defined in Network.Tendermint.Client type Rep BlockMeta = D1 (MetaData "BlockMeta" "Network.Tendermint.Client" "hs-tendermint-client-0.1.0.0-AEFlZ8KDMlW8Spav1uWoBK" False) (C1 (MetaCons "BlockMeta" PrefixI True) (S1 (MetaSel (Just "blockMetaBlockId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BlockID) :*: S1 (MetaSel (Just "blockMetaHeader") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Header))) |
data SimpleProof Source #
Instances
Instances
Eq TxProof Source # | |
Show TxProof Source # | |
Generic TxProof Source # | |
FromJSON TxProof Source # | |
Defined in Network.Tendermint.Client parseJSON :: Value -> Parser TxProof parseJSONList :: Value -> Parser [TxProof] | |
type Rep TxProof Source # | |
Defined in Network.Tendermint.Client type Rep TxProof = D1 (MetaData "TxProof" "Network.Tendermint.Client" "hs-tendermint-client-0.1.0.0-AEFlZ8KDMlW8Spav1uWoBK" False) (C1 (MetaCons "TxProof" PrefixI True) (S1 (MetaSel (Just "txProofRootHash") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HexString) :*: (S1 (MetaSel (Just "txProofData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Tx) :*: S1 (MetaSel (Just "txProofProof") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SimpleProof)))) |
data ResultBroadcastTx Source #
Instances
data ResultABCIInfo Source #
Instances
data ResultHealth Source #
Instances
Eq ResultHealth Source # | |
Defined in Network.Tendermint.Client (==) :: ResultHealth -> ResultHealth -> Bool # (/=) :: ResultHealth -> ResultHealth -> Bool # | |
Show ResultHealth Source # | |
Defined in Network.Tendermint.Client showsPrec :: Int -> ResultHealth -> ShowS # show :: ResultHealth -> String # showList :: [ResultHealth] -> ShowS # | |
FromJSON ResultHealth Source # | |
Defined in Network.Tendermint.Client parseJSON :: Value -> Parser ResultHealth parseJSONList :: Value -> Parser [ResultHealth] |
data ResultBroadcastTxCommit Source #
Instances
data RequestBroadcastTxCommit Source #
Instances
data RequestBroadcastTxSync Source #
Instances
data RequestBroadcastTxAsync Source #
Instances
Instances
Instances
Eq RequestTx Source # | |
Show RequestTx Source # | |
Generic RequestTx Source # | |
ToJSON RequestTx Source # | |
Defined in Network.Tendermint.Client toEncoding :: RequestTx -> Encoding toJSONList :: [RequestTx] -> Value toEncodingList :: [RequestTx] -> Encoding | |
Default RequestTx Source # | |
Defined in Network.Tendermint.Client | |
type Rep RequestTx Source # | |
Defined in Network.Tendermint.Client type Rep RequestTx = D1 (MetaData "RequestTx" "Network.Tendermint.Client" "hs-tendermint-client-0.1.0.0-AEFlZ8KDMlW8Spav1uWoBK" False) (C1 (MetaCons "RequestTx" PrefixI True) (S1 (MetaSel (Just "requestTxHash") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Tx)) :*: S1 (MetaSel (Just "requestTxProve") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) |
data ResultBlock Source #
Instances
data RequestBlock Source #
Instances
data ResultABCIQuery Source #
Instances
data RequestABCIQuery Source #
Instances
runTendermintM :: Config -> TendermintM a -> IO a Source #
Execute an RPC request with the given configuration.
:: ByteString | Hostname or IP (e.g. "localhost", "127.0.0.1", "151.101.208.68") |
-> Int | Port |
-> Config |
defaultRPCOptions :: String -> Options Source #
ReExports
JSON-RPC client config
Config | |
|
data JsonRpcException Source #
Instances
Eq JsonRpcException Source # | |
Defined in Network.Tendermint.Client.Internal.RPCClient (==) :: JsonRpcException -> JsonRpcException -> Bool # (/=) :: JsonRpcException -> JsonRpcException -> Bool # | |
Show JsonRpcException Source # | |
Defined in Network.Tendermint.Client.Internal.RPCClient showsPrec :: Int -> JsonRpcException -> ShowS # show :: JsonRpcException -> String # showList :: [JsonRpcException] -> ShowS # | |
Exception JsonRpcException Source # | |
JSON-RPC error message
Instances
Eq RpcError Source # | |
Show RpcError Source # | |
FromJSON RpcError Source # | |
Defined in Network.Tendermint.Client.Internal.RPCClient parseJSON :: Value -> Parser RpcError parseJSONList :: Value -> Parser [RpcError] | |
ToJSON RpcError Source # | |
Defined in Network.Tendermint.Client.Internal.RPCClient toEncoding :: RpcError -> Encoding toJSONList :: [RpcError] -> Value toEncodingList :: [RpcError] -> Encoding |