Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Marconi.Cardano.Core.Types
Description
This module provides several type aliases and utility functions to deal with them.
Synopsis
- data RetryConfig = RetryConfig {}
- data TipAndBlock = TipAndBlock ChainTip (Maybe (WithDistance BlockEvent))
- type TxOut = TxOut CtxTx ConwayEra
- type TxOutRef = TxIn
- txOutRef :: TxId -> TxIx -> TxIn
- data AnyTxBody = forall era.IsCardanoEra era => AnyTxBody BlockNo TxIndexInBlock (TxBody era)
- data BlockEvent = BlockEvent {
- blockInMode :: BlockInMode CardanoMode
- epochNo :: EpochNo
- blockTime :: POSIXTime
- newtype SecurityParam = SecurityParam Word64
- newtype TxIndexInBlock = TxIndexInBlock Word64
Config for retrying
data RetryConfig #
Config type for node retries
Constructors
RetryConfig | |
Fields
|
Instances
FromJSON RetryConfig # | |
Defined in Marconi.Cardano.Core.Types | |
ToJSON RetryConfig # | |
Defined in Marconi.Cardano.Core.Types Methods toJSON :: RetryConfig -> Value toEncoding :: RetryConfig -> Encoding toJSONList :: [RetryConfig] -> Value toEncodingList :: [RetryConfig] -> Encoding | |
Generic RetryConfig # | |
Defined in Marconi.Cardano.Core.Types Methods from :: RetryConfig -> Rep RetryConfig x Source # to :: Rep RetryConfig x -> RetryConfig Source # | |
Show RetryConfig # | |
Defined in Marconi.Cardano.Core.Types | |
type Rep RetryConfig # | |
Defined in Marconi.Cardano.Core.Types type Rep RetryConfig = D1 ('MetaData "RetryConfig" "Marconi.Cardano.Core.Types" "marconi-cardano-core-1.2.0.0-inplace" 'False) (C1 ('MetaCons "RetryConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "baseTimeBeforeNextRetry") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "maybeMaxWaitTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Word64)))) |
A type representing either a ChainTip
or a Block
, with an attached distance to the tip
data TipAndBlock #
A type representing a ChainTip
and maybe a Block
, with an attached distance to the tip
Constructors
TipAndBlock ChainTip (Maybe (WithDistance BlockEvent)) |
Instances
Aliases for the current Cardano era
Aliases to ease concept mapping between plutus types and cardano types
A reference to a transaction output. This is a pair of a transaction reference, and an index indicating which of the outputs of that transaction we are referring to.
An existential type representing a transaction with C.
for any Cardano era.TxBody
era
Constructors
forall era.IsCardanoEra era => AnyTxBody BlockNo TxIndexInBlock (TxBody era) |
Instances
type Point [AnyTxBody] # | |
Defined in Marconi.Cardano.Core.Types |
Reexport from cardano-api-extended
data BlockEvent #
Constructors
BlockEvent | |
Fields
|
Instances
Show BlockEvent | |
Defined in Cardano.Api.Extended.Streaming | |
type Point BlockEvent # | |
Defined in Marconi.Cardano.Core.Types | |
type Point BlockEvent # | |
Defined in Marconi.Cardano.Core.Runner |
newtype SecurityParam #
Constructors
SecurityParam Word64 |
Instances
newtype TxIndexInBlock #
Constructors
TxIndexInBlock Word64 |