Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ChainIndexConfig = ChainIndexConfig {
- cicSocketPath :: String
- cicDbPath :: String
- cicPort :: Int
- cicNetworkId :: NetworkId
- cicSecurityParam :: Int
- cicSlotConfig :: SlotConfig
- cicStoreFrom :: BlockNo
- cicAppendTransactionQueueSize :: Natural
- newtype DecodeConfigException = DecodeConfigException String
- defaultConfig :: ChainIndexConfig
- socketPath :: Lens' ChainIndexConfig String
- dbPath :: Lens' ChainIndexConfig String
- port :: Lens' ChainIndexConfig Int
- networkId :: Lens' ChainIndexConfig NetworkId
- securityParam :: Lens' ChainIndexConfig Int
- slotConfig :: Lens' ChainIndexConfig SlotConfig
- storeFrom :: Lens' ChainIndexConfig BlockNo
- appendTransactionQueueSize :: Lens' ChainIndexConfig Natural
Documentation
data ChainIndexConfig Source #
ChainIndexConfig | |
|
Instances
newtype DecodeConfigException Source #
Instances
defaultConfig :: ChainIndexConfig Source #
These settings work with the main testnet
Lenses
socketPath :: Lens' ChainIndexConfig String Source #
dbPath :: Lens' ChainIndexConfig String Source #
port :: Lens' ChainIndexConfig Int Source #
networkId :: Lens' ChainIndexConfig NetworkId Source #
securityParam :: Lens' ChainIndexConfig Int Source #
slotConfig :: Lens' ChainIndexConfig SlotConfig Source #
storeFrom :: Lens' ChainIndexConfig BlockNo Source #
Orphan instances
FromJSON NetworkId Source # | For some reason these are not defined anywhere, and these are the reason for the -Wno-orphans option. |
parseJSON :: Value -> Parser NetworkId parseJSONList :: Value -> Parser [NetworkId] | |
FromJSON BlockNo Source # | |
parseJSON :: Value -> Parser BlockNo parseJSONList :: Value -> Parser [BlockNo] | |
FromJSON NetworkMagic Source # | |
parseJSON :: Value -> Parser NetworkMagic parseJSONList :: Value -> Parser [NetworkMagic] | |
ToJSON NetworkId Source # | |
toJSON :: NetworkId -> Value toEncoding :: NetworkId -> Encoding toJSONList :: [NetworkId] -> Value toEncodingList :: [NetworkId] -> Encoding | |
ToJSON BlockNo Source # | |
toJSON :: BlockNo -> Value toEncoding :: BlockNo -> Encoding toJSONList :: [BlockNo] -> Value toEncodingList :: [BlockNo] -> Encoding | |
ToJSON NetworkMagic Source # | |
toJSON :: NetworkMagic -> Value toEncoding :: NetworkMagic -> Encoding toJSONList :: [NetworkMagic] -> Value toEncodingList :: [NetworkMagic] -> Encoding |