| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Marconi.Api.Types
Contents
Description
This module provides support for writing handlers for JSON-RPC endpoints
Synopsis
- type TargetAddresses = NonEmpty (Address ShelleyAddr)
- type RpcPortNumber = Int
- data CliArgs = CliArgs {}
- data DBQueryEnv = DBQueryEnv {}
- class HasDBQueryEnv c where
- data JsonRpcEnv = JsonRpcEnv {}
- class HasJsonRpcEnv c where
- jsonRpcEnv :: Lens' c JsonRpcEnv
- httpSettings :: Lens' c Settings
- queryEnv :: Lens' c DBQueryEnv
- newtype UtxoRowWrapper = UtxoRowWrapper UtxoRow
- data UtxoTxOutReport = UtxoTxOutReport {
- bech32Address :: Text
- utxoReport :: [UtxoRow]
- newtype UtxoQueryTMVar = UtxoQueryTMVar {}
- data QueryExceptions
Documentation
type TargetAddresses = NonEmpty (Address ShelleyAddr) Source #
Typre represents non empty list of Bech32 Shelley compatable addresses
type RpcPortNumber = Int Source #
Type represents http port for JSON-RPC
Constructors
| CliArgs | |
Fields
| |
data DBQueryEnv Source #
Constructors
| DBQueryEnv | |
Fields
| |
Instances
| HasDBQueryEnv DBQueryEnv Source # | |
Defined in Marconi.Api.Types | |
class HasDBQueryEnv c where Source #
Minimal complete definition
Methods
dBQueryEnv :: Lens' c DBQueryEnv Source #
queryAddresses :: Lens' c TargetAddresses Source #
queryTMVar :: Lens' c UtxoQueryTMVar Source #
Instances
| HasDBQueryEnv DBQueryEnv Source # | |
Defined in Marconi.Api.Types | |
data JsonRpcEnv Source #
JSON-RPC configuration
Constructors
| JsonRpcEnv | |
Fields
| |
Instances
| HasJsonRpcEnv JsonRpcEnv Source # | |
Defined in Marconi.Api.Types Methods jsonRpcEnv :: Lens' JsonRpcEnv JsonRpcEnv Source # | |
class HasJsonRpcEnv c where Source #
Minimal complete definition
Methods
jsonRpcEnv :: Lens' c JsonRpcEnv Source #
httpSettings :: Lens' c Settings Source #
queryEnv :: Lens' c DBQueryEnv Source #
Instances
| HasJsonRpcEnv JsonRpcEnv Source # | |
Defined in Marconi.Api.Types Methods jsonRpcEnv :: Lens' JsonRpcEnv JsonRpcEnv Source # | |
newtype UtxoRowWrapper Source #
Constructors
| UtxoRowWrapper UtxoRow |
Instances
data UtxoTxOutReport Source #
Constructors
| UtxoTxOutReport | |
Fields
| |
Instances
newtype UtxoQueryTMVar Source #
Constructors
| UtxoQueryTMVar | |
Fields
| |
data QueryExceptions Source #
Constructors
| AddressNotInListError QueryExceptions | |
| AddressConversionError QueryExceptions | |
| TxRefConversionError QueryExceptions | |
| QueryError String |
Instances
| Show QueryExceptions Source # | |
Defined in Marconi.Api.Types | |
| Exception QueryExceptions Source # | |
Defined in Marconi.Api.Types Methods toException :: QueryExceptions -> SomeException Source # fromException :: SomeException -> Maybe QueryExceptions Source # | |
Orphan instances
| ToJSON ByteString Source # | |
Methods toJSON :: ByteString -> Value Source # toEncoding :: ByteString -> Encoding Source # toJSONList :: [ByteString] -> Value Source # toEncodingList :: [ByteString] -> Encoding Source # | |
| ToJSON AddressAny Source # | |
Methods toJSON :: AddressAny -> Value Source # toEncoding :: AddressAny -> Encoding Source # toJSONList :: [AddressAny] -> Value Source # toEncodingList :: [AddressAny] -> Encoding Source # | |
| ToJSON ScriptData Source # | |
Methods toJSON :: ScriptData -> Value Source # toEncoding :: ScriptData -> Encoding Source # toJSONList :: [ScriptData] -> Value Source # toEncodingList :: [ScriptData] -> Encoding Source # | |
| ToJSON BlockNo Source # | |
| ToJSON UtxoRow Source # | |
| ToJSON Utxo Source # | |