plutus-chain-index-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.ChainIndex.Config

Synopsis

Documentation

data ChainIndexConfig Source #

Constructors

ChainIndexConfig 

Fields

Instances

Instances details
Eq ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

Show ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

Generic ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

Associated Types

type Rep ChainIndexConfig :: Type -> Type Source #

FromJSON ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

Methods

parseJSON :: Value -> Parser ChainIndexConfig

parseJSONList :: Value -> Parser [ChainIndexConfig]

ToJSON ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

Pretty ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

Methods

pretty :: ChainIndexConfig -> Doc ann

prettyList :: [ChainIndexConfig] -> Doc ann

type Rep ChainIndexConfig Source # 
Instance details

Defined in Plutus.ChainIndex.Config

type Rep ChainIndexConfig = D1 ('MetaData "ChainIndexConfig" "Plutus.ChainIndex.Config" "plutus-chain-index-1.2.0.0-45ZSeuYJXy24BPKsWnWcAF" 'False) (C1 ('MetaCons "ChainIndexConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cicSocketPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "cicDbPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :*: (S1 ('MetaSel ('Just "cicPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "cicNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkId))) :*: ((S1 ('MetaSel ('Just "cicSecurityParam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "cicSlotConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotConfig)) :*: (S1 ('MetaSel ('Just "cicStoreFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BlockNo) :*: S1 ('MetaSel ('Just "cicAppendTransactionQueueSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))))

defaultConfig :: ChainIndexConfig Source #

These settings work with the main testnet

Lenses

networkId :: Lens' ChainIndexConfig NetworkId Source #

slotConfig :: Lens' ChainIndexConfig SlotConfig Source #

Orphan instances

FromJSON NetworkId Source #

For some reason these are not defined anywhere, and these are the reason for the -Wno-orphans option.

Instance details

Methods

parseJSON :: Value -> Parser NetworkId

parseJSONList :: Value -> Parser [NetworkId]

FromJSON BlockNo Source # 
Instance details

Methods

parseJSON :: Value -> Parser BlockNo

parseJSONList :: Value -> Parser [BlockNo]

FromJSON NetworkMagic Source # 
Instance details

Methods

parseJSON :: Value -> Parser NetworkMagic

parseJSONList :: Value -> Parser [NetworkMagic]

ToJSON NetworkId Source # 
Instance details

Methods

toJSON :: NetworkId -> Value

toEncoding :: NetworkId -> Encoding

toJSONList :: [NetworkId] -> Value

toEncodingList :: [NetworkId] -> Encoding

ToJSON BlockNo Source # 
Instance details

Methods

toJSON :: BlockNo -> Value

toEncoding :: BlockNo -> Encoding

toJSONList :: [BlockNo] -> Value

toEncodingList :: [BlockNo] -> Encoding

ToJSON NetworkMagic Source # 
Instance details

Methods

toJSON :: NetworkMagic -> Value

toEncoding :: NetworkMagic -> Encoding

toJSONList :: [NetworkMagic] -> Value

toEncodingList :: [NetworkMagic] -> Encoding