Safe Haskell | None |
---|---|
Language | Haskell2010 |
Tendermint.Utils.Client
Synopsis
- class Monad m => RunQueryClient m where
- class HasQueryClient m layout where
- type ClientQ (m :: Type -> Type) layout :: Type
- genClientQ :: Proxy m -> Proxy layout -> (Query, QueryStringList) -> ClientQ m layout
- data QueryClientResponse a
- data EmptyQueryClient = EmptyQueryClient
- class HasTxClient m layoutC layoutD where
- class Monad m => RunTxClient m where
- runTx :: RawTransaction -> m ResultBroadcastTxCommit
- getNonce :: Address -> m Word64
- data EmptyTxClient = EmptyTxClient
- data TxClientResponse c d
- data SynchronousResponse c d = SynchronousResponse {}
- data TxResponse a
- = TxResponse {
- txResponseResult :: a
- txResponseEvents :: [Event]
- | TxError AppError
- = TxResponse {
- data ClientConfig = ClientConfig {}
- defaultClientTxOpts :: ClientTxOpts
- data Signer = Signer {}
- data TxOpts = TxOpts {
- txOptsGas :: Int64
- txOptsSigner :: Signer
- makeSignerFromKey :: RecoverableSignatureSchema alg => Message alg ~ Digest SHA256 => Proxy alg -> PrivateKey alg -> Signer
Documentation
class Monad m => RunQueryClient m where Source #
class HasQueryClient m layout where Source #
Methods
genClientQ :: Proxy m -> Proxy layout -> (Query, QueryStringList) -> ClientQ m layout Source #
Instances
data QueryClientResponse a Source #
Data is Nothing iff Raw includes a non-0 response value
Constructors
QueryResponse (QueryResult a) | |
QueryError AppError |
Instances
Eq a => Eq (QueryClientResponse a) Source # | |
Defined in Tendermint.Utils.QueryClient.Types Methods (==) :: QueryClientResponse a -> QueryClientResponse a -> Bool # (/=) :: QueryClientResponse a -> QueryClientResponse a -> Bool # | |
Show a => Show (QueryClientResponse a) Source # | |
Defined in Tendermint.Utils.QueryClient.Types Methods showsPrec :: Int -> QueryClientResponse a -> ShowS # show :: QueryClientResponse a -> String # showList :: [QueryClientResponse a] -> ShowS # |
data EmptyQueryClient Source #
Singleton type representing a client for an empty API.
Constructors
EmptyQueryClient |
Instances
class HasTxClient m layoutC layoutD where Source #
Methods
genClientT :: Proxy m -> Proxy layoutC -> Proxy layoutD -> ClientTxOpts -> ClientT m layoutC layoutD Source #
Instances
class Monad m => RunTxClient m where Source #
Instances
RunTxClient (ReaderT ClientConfig IO) Source # | |
Defined in Tendermint.Utils.TxClient.Class Methods runTx :: RawTransaction -> ReaderT ClientConfig IO ResultBroadcastTxCommit Source # getNonce :: Address -> ReaderT ClientConfig IO Word64 Source # |
data EmptyTxClient Source #
Singleton type representing a client for an empty API.
Constructors
EmptyTxClient |
Instances
Bounded EmptyTxClient Source # | |
Defined in Tendermint.Utils.TxClient.Class | |
Enum EmptyTxClient Source # | |
Defined in Tendermint.Utils.TxClient.Class Methods succ :: EmptyTxClient -> EmptyTxClient # pred :: EmptyTxClient -> EmptyTxClient # toEnum :: Int -> EmptyTxClient # fromEnum :: EmptyTxClient -> Int # enumFrom :: EmptyTxClient -> [EmptyTxClient] # enumFromThen :: EmptyTxClient -> EmptyTxClient -> [EmptyTxClient] # enumFromTo :: EmptyTxClient -> EmptyTxClient -> [EmptyTxClient] # enumFromThenTo :: EmptyTxClient -> EmptyTxClient -> EmptyTxClient -> [EmptyTxClient] # | |
Eq EmptyTxClient Source # | |
Defined in Tendermint.Utils.TxClient.Class Methods (==) :: EmptyTxClient -> EmptyTxClient -> Bool # (/=) :: EmptyTxClient -> EmptyTxClient -> Bool # | |
Show EmptyTxClient Source # | |
Defined in Tendermint.Utils.TxClient.Class Methods showsPrec :: Int -> EmptyTxClient -> ShowS # show :: EmptyTxClient -> String # showList :: [EmptyTxClient] -> ShowS # |
data TxClientResponse c d Source #
Constructors
RPCError Text | |
ParseError RouteContext Text | |
Response (SynchronousResponse c d) |
Instances
(Eq c, Eq d) => Eq (TxClientResponse c d) Source # | |
Defined in Tendermint.Utils.TxClient.Types Methods (==) :: TxClientResponse c d -> TxClientResponse c d -> Bool # (/=) :: TxClientResponse c d -> TxClientResponse c d -> Bool # | |
(Show c, Show d) => Show (TxClientResponse c d) Source # | |
Defined in Tendermint.Utils.TxClient.Types Methods showsPrec :: Int -> TxClientResponse c d -> ShowS # show :: TxClientResponse c d -> String # showList :: [TxClientResponse c d] -> ShowS # |
data SynchronousResponse c d Source #
Constructors
SynchronousResponse | |
Fields
|
Instances
(Eq c, Eq d) => Eq (SynchronousResponse c d) Source # | |
Defined in Tendermint.Utils.TxClient.Types Methods (==) :: SynchronousResponse c d -> SynchronousResponse c d -> Bool # (/=) :: SynchronousResponse c d -> SynchronousResponse c d -> Bool # | |
(Show c, Show d) => Show (SynchronousResponse c d) Source # | |
Defined in Tendermint.Utils.TxClient.Types Methods showsPrec :: Int -> SynchronousResponse c d -> ShowS # show :: SynchronousResponse c d -> String # showList :: [SynchronousResponse c d] -> ShowS # |
data TxResponse a Source #
Constructors
TxResponse | |
Fields
| |
TxError AppError |
Instances
Eq a => Eq (TxResponse a) Source # | |
Defined in Tendermint.Utils.TxClient.Types | |
Show a => Show (TxResponse a) Source # | |
Defined in Tendermint.Utils.TxClient.Types Methods showsPrec :: Int -> TxResponse a -> ShowS # show :: TxResponse a -> String # showList :: [TxResponse a] -> ShowS # |
data ClientConfig Source #
Constructors
ClientConfig | |
Instances
RunTxClient (ReaderT ClientConfig IO) Source # | |
Defined in Tendermint.Utils.TxClient.Class Methods runTx :: RawTransaction -> ReaderT ClientConfig IO ResultBroadcastTxCommit Source # getNonce :: Address -> ReaderT ClientConfig IO Word64 Source # |
defaultClientTxOpts :: ClientTxOpts Source #
Constructors
Signer | |
Fields |
makeSignerFromKey :: RecoverableSignatureSchema alg => Message alg ~ Digest SHA256 => Proxy alg -> PrivateKey alg -> Signer Source #