plutus-chain-index-1.2.0.0
Safe Haskell None
Language Haskell2010

Plutus.ChainIndex.SyncStats

Synopsis

Documentation

data SyncStats Source #

Constructors

SyncStats

Fields

Instances

Instances details
Eq SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Show SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Generic SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Semigroup SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Monoid SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

ToJSON SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

FromJSON SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

ToObject SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

type Rep SyncStats Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

data SyncLog Source #

Constructors

SyncLog

Fields

Instances

Instances details
Eq SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Show SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Generic SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

ToJSON SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

FromJSON SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Pretty SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

ToObject SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

type Rep SyncLog Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

data SyncState Source #

Instances

Instances details
Eq SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Show SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Generic SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

ToJSON SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

FromJSON SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

Pretty SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

ToObject SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

type Rep SyncState Source #
Instance details

Defined in Plutus.ChainIndex.SyncStats

type Rep SyncState = D1 (' MetaData "SyncState" "Plutus.ChainIndex.SyncStats" "plutus-chain-index-1.2.0.0-3CbZJi76XkaE20yvLJVl75" ' False ) ( C1 (' MetaCons "Synced" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "Syncing" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Double )) :+: C1 (' MetaCons "NotSyncing" ' PrefixI ' False ) ( U1 :: Type -> Type )))

logProgress :: forall effs. Member ( LogMsg SyncLog ) effs => [ ChainSyncEvent ] -> TimeSpec -> Eff effs () Source #

Log syncing summary.

getSyncStateFromStats :: SyncStats -> SyncState Source #

Get the SyncState for a SyncState .

TODO: The syncing percentage is valid when the node is already fully synced. But when the node and chain-index are started at the same time, the syncing percentage is not a valid number considering the actual tip of the node. Find a better way to calculate this percentage.